/[CvsGraph]/cvsgraph/configure
ViewVC logotype

Diff of /cvsgraph/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Fri Feb 23 00:11:30 2001 UTC revision 1.2, Sat Feb 24 00:31:03 2001 UTC
# Line 528  Line 528 
528    
529    
530    
531    
532  # Extract the first word of "gcc", so it can be a program name with args.  # Extract the first word of "gcc", so it can be a program name with args.
533  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
534  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
535  echo "configure:535: checking for $ac_word" >&5  echo "configure:536: checking for $ac_word" >&5
536  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
537    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
538  else  else
# Line 561  Line 562 
562    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
563  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
564  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
565  echo "configure:565: checking for $ac_word" >&5  echo "configure:566: checking for $ac_word" >&5
566  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
567    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
568  else  else
# Line 612  Line 613 
613        # Extract the first word of "cl", so it can be a program name with args.        # Extract the first word of "cl", so it can be a program name with args.
614  set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
615  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
616  echo "configure:616: checking for $ac_word" >&5  echo "configure:617: checking for $ac_word" >&5
617  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
618    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
619  else  else
# Line 644  Line 645 
645  fi  fi
646    
647  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
648  echo "configure:648: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:649: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
649    
650  ac_ext=c  ac_ext=c
651  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# Line 655  Line 656 
656    
657  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
658    
659  #line 659 "configure"  #line 660 "configure"
660  #include "confdefs.h"  #include "confdefs.h"
661    
662  main(){return(0);}  main(){return(0);}
663  EOF  EOF
664  if { (eval echo configure:664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
665    ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
666    # If we can't run a trivial program, we are probably using a cross compiler.    # If we can't run a trivial program, we are probably using a cross compiler.
667    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 686  Line 687 
687    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
688  fi  fi
689  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
690  echo "configure:690: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:691: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
691  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
692  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
693    
694  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
695  echo "configure:695: checking whether we are using GNU C" >&5  echo "configure:696: checking whether we are using GNU C" >&5
696  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
697    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
698  else  else
# Line 700  Line 701 
701    yes;    yes;
702  #endif  #endif
703  EOF  EOF
704  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
705    ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
706  else  else
707    ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
# Line 719  Line 720 
720  ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
721  CFLAGS=  CFLAGS=
722  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
723  echo "configure:723: checking whether ${CC-cc} accepts -g" >&5  echo "configure:724: checking whether ${CC-cc} accepts -g" >&5
724  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
725    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
726  else  else
# Line 753  Line 754 
754  # Extract the first word of "flex", so it can be a program name with args.  # Extract the first word of "flex", so it can be a program name with args.
755  set dummy flex; ac_word=$2  set dummy flex; ac_word=$2
756  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
757  echo "configure:757: checking for $ac_word" >&5  echo "configure:758: checking for $ac_word" >&5
758  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
759    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
760  else  else
# Line 787  Line 788 
788    *) ac_lib=l ;;    *) ac_lib=l ;;
789    esac    esac
790    echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6    echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
791  echo "configure:791: checking for yywrap in -l$ac_lib" >&5  echo "configure:792: checking for yywrap in -l$ac_lib" >&5
792  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
793  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
794    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 795  Line 796 
796    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
797  LIBS="-l$ac_lib  $LIBS"  LIBS="-l$ac_lib  $LIBS"
798  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
799  #line 799 "configure"  #line 800 "configure"
800  #include "confdefs.h"  #include "confdefs.h"
801  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
802  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 806  Line 807 
807  yywrap()  yywrap()
808  ; return 0; }  ; return 0; }
809  EOF  EOF
810  if { (eval echo configure:810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
811    rm -rf conftest*    rm -rf conftest*
812    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
813  else  else
# Line 833  Line 834 
834  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
835  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
836  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
837  echo "configure:837: checking for $ac_word" >&5  echo "configure:838: checking for $ac_word" >&5
838  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
839    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
840  else  else
# Line 898  Line 899 
899  then  then
900    CFLAGS="$CFLAGS -Wall"    CFLAGS="$CFLAGS -Wall"
901    echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6    echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
902  echo "configure:902: checking "for gcc strength-reduce bug"" >&5  echo "configure:903: checking "for gcc strength-reduce bug"" >&5
903  if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
904    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
905  else  else
# Line 906  Line 907 
907    ac_cv_c_gcc_strength_bug="yes"    ac_cv_c_gcc_strength_bug="yes"
908  else  else
909    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
910  #line 910 "configure"  #line 911 "configure"
911  #include "confdefs.h"  #include "confdefs.h"
912    
913  int main(void) {  int main(void) {
# Line 917  Line 918 
918    exit( Array[1] != -2 );    exit( Array[1] != -2 );
919  }  }
920  EOF  EOF
921  if { (eval echo configure:921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
922  then  then
923    ac_cv_c_gcc_strength_bug="no"    ac_cv_c_gcc_strength_bug="no"
924  else  else
# Line 940  Line 941 
941    
942    
943  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
944  echo "configure:944: checking for sqrt in -lm" >&5  echo "configure:945: checking for sqrt in -lm" >&5
945  ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
946  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
947    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 948  Line 949 
949    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
950  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
951  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
952  #line 952 "configure"  #line 953 "configure"
953  #include "confdefs.h"  #include "confdefs.h"
954  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
955  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 959  Line 960 
960  sqrt()  sqrt()
961  ; return 0; }  ; return 0; }
962  EOF  EOF
963  if { (eval echo configure:963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
964    rm -rf conftest*    rm -rf conftest*
965    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
966  else  else
# Line 986  Line 987 
987    
988    
989  echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6
990  echo "configure:990: checking for gdImageGif in -lgd" >&5  echo "configure:991: checking for gdImageGif in -lgd" >&5
991  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`
992  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
993    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 994  Line 995 
995    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
996  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
997  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
998  #line 998 "configure"  #line 999 "configure"
999  #include "confdefs.h"  #include "confdefs.h"
1000  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1001  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 1005  Line 1006 
1006  gdImageGif()  gdImageGif()
1007  ; return 0; }  ; return 0; }
1008  EOF  EOF
1009  if { (eval echo configure:1009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1010    rm -rf conftest*    rm -rf conftest*
1011    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1012  else  else
# Line 1021  Line 1022 
1022  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1023    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
1024    
1025    CFLAGS="$CFLAGS -DGD_IMAGE_XXX=gdImageGif"          cat >> confdefs.h <<\EOF
1026    #define HAVE_IMAGE_GIF 1
1027    EOF
1028    
1029    
1030  else  else
1031    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1032  fi  fi
1033    
1034  echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6
1035  echo "configure:1032: checking for gdImagePng in -lgd" >&5  echo "configure:1036: checking for gdImagePng in -lgd" >&5
1036  ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`
1037  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1038    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1039  else  else
1040    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1041  LIBS="-lgd -lpng -lz ${MATHLIBS} $LIBS"  LIBS="-lgd  $LIBS"
1042  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1043  #line 1040 "configure"  #line 1044 "configure"
1044  #include "confdefs.h"  #include "confdefs.h"
1045  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1046  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 1047  Line 1051 
1051  gdImagePng()  gdImagePng()
1052  ; return 0; }  ; return 0; }
1053  EOF  EOF
1054  if { (eval echo configure:1051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1055      rm -rf conftest*
1056      eval "ac_cv_lib_$ac_lib_var=yes"
1057    else
1058      echo "configure: failed program was:" >&5
1059      cat conftest.$ac_ext >&5
1060      rm -rf conftest*
1061      eval "ac_cv_lib_$ac_lib_var=no"
1062    fi
1063    rm -f conftest*
1064    LIBS="$ac_save_LIBS"
1065    
1066    fi
1067    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1068      echo "$ac_t""yes" 1>&6
1069    
1070            cat >> confdefs.h <<\EOF
1071    #define HAVE_IMAGE_PNG 1
1072    EOF
1073    
1074            LDFLAGS="$LDFLAGS -lpng -lz ${MATHLIBS}"
1075    
1076    else
1077      echo "$ac_t""no" 1>&6
1078    fi
1079    
1080    echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6
1081    echo "configure:1082: checking for gdImageJpeg in -lgd" >&5
1082    ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`
1083    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1084      echo $ac_n "(cached) $ac_c" 1>&6
1085    else
1086      ac_save_LIBS="$LIBS"
1087    LIBS="-lgd  $LIBS"
1088    cat > conftest.$ac_ext <<EOF
1089    #line 1090 "configure"
1090    #include "confdefs.h"
1091    /* Override any gcc2 internal prototype to avoid an error.  */
1092    /* We use char because int might match the return type of a gcc2
1093        builtin and then its argument prototype would still apply.  */
1094    char gdImageJpeg();
1095    
1096    int main() {
1097    gdImageJpeg()
1098    ; return 0; }
1099    EOF
1100    if { (eval echo configure:1101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1101    rm -rf conftest*    rm -rf conftest*
1102    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1103  else  else
# Line 1063  Line 1113 
1113  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1114    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
1115    
1116    CFLAGS="$CFLAGS -DGD_IMAGE_XXX=gdImagePng"          cat >> confdefs.h <<\EOF
1117    LDFLAGS="$LDFLAGS -lpng -lz ${MATHLIBS}"  #define HAVE_IMAGE_JPEG 1
1118    EOF
1119    
1120            LDFLAGS="$LDFLAGS -ljpeg"
1121    
1122  else  else
1123    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
 :  
1124  fi  fi
1125    
1126    
1127    
1128  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1129  echo "configure:1078: checking how to run the C preprocessor" >&5  echo "configure:1130: checking how to run the C preprocessor" >&5
1130  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
1131  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
1132    CPP=    CPP=
# Line 1089  Line 1141 
1141    # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
1142    # not just through cpp.    # not just through cpp.
1143    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1144  #line 1093 "configure"  #line 1145 "configure"
1145  #include "confdefs.h"  #include "confdefs.h"
1146  #include <assert.h>  #include <assert.h>
1147  Syntax Error  Syntax Error
1148  EOF  EOF
1149  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1150  { (eval echo configure:1099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1151  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1152  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1153    :    :
# Line 1106  Line 1158 
1158    rm -rf conftest*    rm -rf conftest*
1159    CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
1160    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1161  #line 1110 "configure"  #line 1162 "configure"
1162  #include "confdefs.h"  #include "confdefs.h"
1163  #include <assert.h>  #include <assert.h>
1164  Syntax Error  Syntax Error
1165  EOF  EOF
1166  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1167  { (eval echo configure:1116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1168  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1169  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1170    :    :
# Line 1123  Line 1175 
1175    rm -rf conftest*    rm -rf conftest*
1176    CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
1177    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1178  #line 1127 "configure"  #line 1179 "configure"
1179  #include "confdefs.h"  #include "confdefs.h"
1180  #include <assert.h>  #include <assert.h>
1181  Syntax Error  Syntax Error
1182  EOF  EOF
1183  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1184  { (eval echo configure:1133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1185  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1186  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1187    :    :
# Line 1155  Line 1207 
1207    
1208  ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`  ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`
1209  echo $ac_n "checking for gd.h""... $ac_c" 1>&6  echo $ac_n "checking for gd.h""... $ac_c" 1>&6
1210  echo "configure:1159: checking for gd.h" >&5  echo "configure:1211: checking for gd.h" >&5
1211  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1212    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1213  else  else
1214    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1215  #line 1164 "configure"  #line 1216 "configure"
1216  #include "confdefs.h"  #include "confdefs.h"
1217  #include <gd.h>  #include <gd.h>
1218  EOF  EOF
1219  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1220  { (eval echo configure:1169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1221  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1222  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1223    rm -rf conftest*    rm -rf conftest*
# Line 1264  Line 1316 
1316    
1317  trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15  trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1318    
1319  # Transform confdefs.h into DEFS.  DEFS=-DHAVE_CONFIG_H
 # Protect against shell expansion while executing Makefile rules.  
 # Protect against Makefile macro expansion.  
 cat > conftest.defs <<\EOF  
 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g  
 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g  
 s%\[%\\&%g  
 s%\]%\\&%g  
 s%\$%$$%g  
 EOF  
 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`  
 rm -f conftest.defs  
   
1320    
1321  # Without the "./", some shells look in PATH for config.status.  # Without the "./", some shells look in PATH for config.status.
1322  : ${CONFIG_STATUS=./config.status}  : ${CONFIG_STATUS=./config.status}
# Line 1313  Line 1353 
1353    
1354  ac_given_srcdir=$srcdir  ac_given_srcdir=$srcdir
1355    
1356  trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15  trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1357  EOF  EOF
1358  cat >> $CONFIG_STATUS <<EOF  cat >> $CONFIG_STATUS <<EOF
1359    
# Line 1445  Line 1485 
1485  fi; done  fi; done
1486  rm -f conftest.s*  rm -f conftest.s*
1487    
1488    # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1489    # NAME is the cpp macro being defined and VALUE is the value it is being given.
1490    #
1491    # ac_d sets the value in "#define NAME VALUE" lines.
1492    ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1493    ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1494    ac_dC='\3'
1495    ac_dD='%g'
1496    # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1497    ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1498    ac_uB='\([      ]\)%\1#\2define\3'
1499    ac_uC=' '
1500    ac_uD='\4%g'
1501    # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1502    ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1503    ac_eB='$%\1#\2define\3'
1504    ac_eC=' '
1505    ac_eD='%g'
1506    
1507    if test "${CONFIG_HEADERS+set}" != set; then
1508    EOF
1509    cat >> $CONFIG_STATUS <<EOF
1510      CONFIG_HEADERS="config.h"
1511    EOF
1512    cat >> $CONFIG_STATUS <<\EOF
1513    fi
1514    for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1515      # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1516      case "$ac_file" in
1517      *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1518           ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1519      *) ac_file_in="${ac_file}.in" ;;
1520      esac
1521    
1522      echo creating $ac_file
1523    
1524      rm -f conftest.frag conftest.in conftest.out
1525      ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1526      cat $ac_file_inputs > conftest.in
1527    
1528    EOF
1529    
1530    # Transform confdefs.h into a sed script conftest.vals that substitutes
1531    # the proper values into config.h.in to produce config.h.  And first:
1532    # Protect against being on the right side of a sed subst in config.status.
1533    # Protect against being in an unquoted here document in config.status.
1534    rm -f conftest.vals
1535    cat > conftest.hdr <<\EOF
1536    s/[\\&%]/\\&/g
1537    s%[\\$`]%\\&%g
1538    s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1539    s%ac_d%ac_u%gp
1540    s%ac_u%ac_e%gp
1541    EOF
1542    sed -n -f conftest.hdr confdefs.h > conftest.vals
1543    rm -f conftest.hdr
1544    
1545    # This sed command replaces #undef with comments.  This is necessary, for
1546    # example, in the case of _POSIX_SOURCE, which is predefined and required
1547    # on some systems where configure will not decide to define it.
1548    cat >> conftest.vals <<\EOF
1549    s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1550    EOF
1551    
1552    # Break up conftest.vals because some shells have a limit on
1553    # the size of here documents, and old seds have small limits too.
1554    
1555    rm -f conftest.tail
1556    while :
1557    do
1558      ac_lines=`grep -c . conftest.vals`
1559      # grep -c gives empty output for an empty file on some AIX systems.
1560      if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1561      # Write a limited-size here document to conftest.frag.
1562      echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1563      sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1564      echo 'CEOF
1565      sed -f conftest.frag conftest.in > conftest.out
1566      rm -f conftest.in
1567      mv conftest.out conftest.in
1568    ' >> $CONFIG_STATUS
1569      sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1570      rm -f conftest.vals
1571      mv conftest.tail conftest.vals
1572    done
1573    rm -f conftest.vals
1574    
1575    cat >> $CONFIG_STATUS <<\EOF
1576      rm -f conftest.frag conftest.h
1577      echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
1578      cat conftest.in >> conftest.h
1579      rm -f conftest.in
1580      if cmp -s $ac_file conftest.h 2>/dev/null; then
1581        echo "$ac_file is unchanged"
1582        rm -f conftest.h
1583      else
1584        # Remove last slash and all that follows it.  Not all systems have dirname.
1585          ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1586          if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1587          # The file is in a subdirectory.
1588          test ! -d "$ac_dir" && mkdir "$ac_dir"
1589        fi
1590        rm -f $ac_file
1591        mv conftest.h $ac_file
1592      fi
1593    fi; done
1594    
1595  EOF  EOF
1596  cat >> $CONFIG_STATUS <<EOF  cat >> $CONFIG_STATUS <<EOF
1597    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0