/[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.4, Sun Mar 4 20:15:02 2001 UTC revision 1.6, Wed Nov 21 08:25:04 2001 UTC
# Line 20  Line 20 
20  ac_help="$ac_help  ac_help="$ac_help
21    --with-z-lib=DIR        location of zlib library"    --with-z-lib=DIR        location of zlib library"
22  ac_help="$ac_help  ac_help="$ac_help
23    --with-png=DIR          location of png lib/inc"    --with-png-inc=DIR      location of png includes"
24    ac_help="$ac_help
25      --with-png-lib=DIR      location of png library"
26    ac_help="$ac_help
27      --with-jpeg-inc=DIR    location of jpeg includes"
28    ac_help="$ac_help
29      --with-jpeg-lib=DIR    location of jpeg library"
30  ac_help="$ac_help  ac_help="$ac_help
31    --disable-speed         Turn off lex table optimization reducing speed and size of executable"    --disable-speed         Turn off lex table optimization reducing speed and size of executable"
32    
# Line 538  Line 544 
544  # 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.
545  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
546  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
547  echo "configure:542: checking for $ac_word" >&5  echo "configure:548: checking for $ac_word" >&5
548  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
549    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
550  else  else
# Line 568  Line 574 
574    # 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.
575  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
576  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
577  echo "configure:572: checking for $ac_word" >&5  echo "configure:578: checking for $ac_word" >&5
578  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
579    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
580  else  else
# Line 619  Line 625 
625        # 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.
626  set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
627  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
628  echo "configure:623: checking for $ac_word" >&5  echo "configure:629: checking for $ac_word" >&5
629  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
630    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
631  else  else
# Line 651  Line 657 
657  fi  fi
658    
659  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
660  echo "configure:655: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:661: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
661    
662  ac_ext=c  ac_ext=c
663  # 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 662  Line 668 
668    
669  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
670    
671  #line 666 "configure"  #line 672 "configure"
672  #include "confdefs.h"  #include "confdefs.h"
673    
674  main(){return(0);}  main(){return(0);}
675  EOF  EOF
676  if { (eval echo configure:671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
677    ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
678    # 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.
679    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 693  Line 699 
699    { 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; }
700  fi  fi
701  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
702  echo "configure:697: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
703  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
704  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
705    
706  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
707  echo "configure:702: checking whether we are using GNU C" >&5  echo "configure:708: checking whether we are using GNU C" >&5
708  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
709    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
710  else  else
# Line 707  Line 713 
713    yes;    yes;
714  #endif  #endif
715  EOF  EOF
716  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:711: \"$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:717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
717    ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
718  else  else
719    ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
# Line 726  Line 732 
732  ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
733  CFLAGS=  CFLAGS=
734  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
735  echo "configure:730: checking whether ${CC-cc} accepts -g" >&5  echo "configure:736: checking whether ${CC-cc} accepts -g" >&5
736  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
737    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
738  else  else
# Line 760  Line 766 
766  # 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.
767  set dummy flex; ac_word=$2  set dummy flex; ac_word=$2
768  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
769  echo "configure:764: checking for $ac_word" >&5  echo "configure:770: checking for $ac_word" >&5
770  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
771    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
772  else  else
# Line 794  Line 800 
800    *) ac_lib=l ;;    *) ac_lib=l ;;
801    esac    esac
802    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
803  echo "configure:798: checking for yywrap in -l$ac_lib" >&5  echo "configure:804: checking for yywrap in -l$ac_lib" >&5
804  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
805  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
806    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 802  Line 808 
808    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
809  LIBS="-l$ac_lib  $LIBS"  LIBS="-l$ac_lib  $LIBS"
810  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
811  #line 806 "configure"  #line 812 "configure"
812  #include "confdefs.h"  #include "confdefs.h"
813  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
814  /* 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 813  Line 819 
819  yywrap()  yywrap()
820  ; return 0; }  ; return 0; }
821  EOF  EOF
822  if { (eval echo configure:817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
823    rm -rf conftest*    rm -rf conftest*
824    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
825  else  else
# Line 840  Line 846 
846  # 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.
847  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
848  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849  echo "configure:844: checking for $ac_word" >&5  echo "configure:850: checking for $ac_word" >&5
850  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
851    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
852  else  else
# Line 873  Line 879 
879    
880  LEXFLAGS="-8"  LEXFLAGS="-8"
881  LEXSPEED="-Cf"  LEXSPEED="-Cf"
882    INCL=""
883    
884    # Check whether --with-gd-inc or --without-gd-inc was given.
885    if test "${with_gd_inc+set}" = set; then
886      withval="$with_gd_inc"
887      INCL="${INCL} -I${withval}"
888    
889    fi
890    
891    
892    # Check whether --with-gd-lib or --without-gd-lib was given.
893    if test "${with_gd_lib+set}" = set; then
894      withval="$with_gd_lib"
895      LIBS="${LIBS} -L${withval}"
896    
897    fi
898    
899    
900    LIBS="$LIBS -lgd"
901    
902  # Check whether --with-gd or --without-gd was given.  # Check whether --with-z-inc or --without-z-inc was given.
903  if test "${with_gd+set}" = set; then  if test "${with_z_inc+set}" = set; then
904    withval="$with_gd"    withval="$with_z_inc"
905    CFLAGS="${CFLAGS} -I${withval}"    INCL="${INCL} -I${withval}"
906    
907  fi  fi
908    
909    
910  # Check whether --with-gd or --without-gd was given.  # Check whether --with-z-lib or --without-z-lib was given.
911  if test "${with_gd+set}" = set; then  if test "${with_z_lib+set}" = set; then
912    withval="$with_gd"    withval="$with_z_lib"
913    LDFLAGS="${LDFLAGS} -L${withval}"    LIBS="${LIBS} -L${withval} -lz"
914    
915  fi  fi
916    
917    
918  # Check whether --with-z or --without-z was given.  # Check whether --with-png-inc or --without-png-inc was given.
919  if test "${with_z+set}" = set; then  if test "${with_png_inc+set}" = set; then
920    withval="$with_z"    withval="$with_png_inc"
921    CFLAGS="${CFLAGS} -I${withval}"    INCL="${INCL} -I${withval}"
922    
923  fi  fi
924    
925    
926  # Check whether --with-z or --without-z was given.  # Check whether --with-png-lib or --without-png-lib was given.
927  if test "${with_z+set}" = set; then  if test "${with_png_lib+set}" = set; then
928    withval="$with_z"    withval="$with_png_lib"
929    LDFLAGS="${LDFLAGS} -L${withval} -lz"    LIBS="${LIBS} -L${withval} -lpng"
930    
931  fi  fi
932    
933    
934  # Check whether --with-png or --without-png was given.  # Check whether --with-jpeg-inc or --without-jpeg-inc was given.
935  if test "${with_png+set}" = set; then  if test "${with_jpeg_inc+set}" = set; then
936    withval="$with_png"    withval="$with_jpeg_inc"
937    LDFLAGS="${LDFLAGS} -L${withval} -lpng"    INCL="${INCL} -I${withval}"
938                  CFLAGS="${CFLAGS} -I${withval}"  
939    fi
940    
941    
942    # Check whether --with-jpeg-lib or --without-jpeg-lib was given.
943    if test "${with_jpeg_lib+set}" = set; then
944      withval="$with_jpeg_lib"
945      LIBS="${LIBS} -L${withval} -ljpeg"
946    
947  fi  fi
948    
# Line 927  Line 959 
959    LEXFLAGS="$LEXFLAGS $LEXSPEED"    LEXFLAGS="$LEXFLAGS $LEXSPEED"
960  fi  fi
961    
962  LDFLAGS="${LDFLAGS} -lgd"  CPPFLAGS="$CPPFLAGS $INCL"
963    CFLAGS="$CFLAGS $INCL"
964    
965  if test "x${GCC}" = "xyes"  if test "x${GCC}" = "xyes"
966  then  then
967    CFLAGS="$CFLAGS -Wall"    CFLAGS="$CFLAGS -Wall"
968    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
969  echo "configure:938: checking "for gcc strength-reduce bug"" >&5  echo "configure:970: checking "for gcc strength-reduce bug"" >&5
970  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
971    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
972  else  else
# Line 942  Line 974 
974    ac_cv_c_gcc_strength_bug="yes"    ac_cv_c_gcc_strength_bug="yes"
975  else  else
976    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
977  #line 946 "configure"  #line 978 "configure"
978  #include "confdefs.h"  #include "confdefs.h"
979    
980  int main(void) {  int main(void) {
# Line 953  Line 985 
985    exit( Array[1] != -2 );    exit( Array[1] != -2 );
986  }  }
987  EOF  EOF
988  if { (eval echo configure:957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
989  then  then
990    ac_cv_c_gcc_strength_bug="no"    ac_cv_c_gcc_strength_bug="no"
991  else  else
# Line 974  Line 1006 
1006    fi    fi
1007  fi  fi
1008    
1009    echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1010    echo "configure:1011: checking how to run the C preprocessor" >&5
1011    # On Suns, sometimes $CPP names a directory.
1012    if test -n "$CPP" && test -d "$CPP"; then
1013      CPP=
1014    fi
1015    if test -z "$CPP"; then
1016    if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1017      echo $ac_n "(cached) $ac_c" 1>&6
1018    else
1019        # This must be in double quotes, not single quotes, because CPP may get
1020      # substituted into the Makefile and "${CC-cc}" will confuse make.
1021      CPP="${CC-cc} -E"
1022      # On the NeXT, cc -E runs the code through the compiler's parser,
1023      # not just through cpp.
1024      cat > conftest.$ac_ext <<EOF
1025    #line 1026 "configure"
1026    #include "confdefs.h"
1027    #include <assert.h>
1028    Syntax Error
1029    EOF
1030    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1031    { (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1032    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1033    if test -z "$ac_err"; then
1034      :
1035    else
1036      echo "$ac_err" >&5
1037      echo "configure: failed program was:" >&5
1038      cat conftest.$ac_ext >&5
1039      rm -rf conftest*
1040      CPP="${CC-cc} -E -traditional-cpp"
1041      cat > conftest.$ac_ext <<EOF
1042    #line 1043 "configure"
1043    #include "confdefs.h"
1044    #include <assert.h>
1045    Syntax Error
1046    EOF
1047    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048    { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1050    if test -z "$ac_err"; then
1051      :
1052    else
1053      echo "$ac_err" >&5
1054      echo "configure: failed program was:" >&5
1055      cat conftest.$ac_ext >&5
1056      rm -rf conftest*
1057      CPP="${CC-cc} -nologo -E"
1058      cat > conftest.$ac_ext <<EOF
1059    #line 1060 "configure"
1060    #include "confdefs.h"
1061    #include <assert.h>
1062    Syntax Error
1063    EOF
1064    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1065    { (eval echo configure:1066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1066    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1067    if test -z "$ac_err"; then
1068      :
1069    else
1070      echo "$ac_err" >&5
1071      echo "configure: failed program was:" >&5
1072      cat conftest.$ac_ext >&5
1073      rm -rf conftest*
1074      CPP=/lib/cpp
1075    fi
1076    rm -f conftest*
1077    fi
1078    rm -f conftest*
1079    fi
1080    rm -f conftest*
1081      ac_cv_prog_CPP="$CPP"
1082    fi
1083      CPP="$ac_cv_prog_CPP"
1084    else
1085      ac_cv_prog_CPP="$CPP"
1086    fi
1087    echo "$ac_t""$CPP" 1>&6
1088    
1089    ac_safe=`echo "getopt.h" | sed 'y%./+-%__p_%'`
1090    echo $ac_n "checking for getopt.h""... $ac_c" 1>&6
1091    echo "configure:1092: checking for getopt.h" >&5
1092    if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1093      echo $ac_n "(cached) $ac_c" 1>&6
1094    else
1095      cat > conftest.$ac_ext <<EOF
1096    #line 1097 "configure"
1097    #include "confdefs.h"
1098    #include <getopt.h>
1099    EOF
1100    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1101    { (eval echo configure:1102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1102    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1103    if test -z "$ac_err"; then
1104      rm -rf conftest*
1105      eval "ac_cv_header_$ac_safe=yes"
1106    else
1107      echo "$ac_err" >&5
1108      echo "configure: failed program was:" >&5
1109      cat conftest.$ac_ext >&5
1110      rm -rf conftest*
1111      eval "ac_cv_header_$ac_safe=no"
1112    fi
1113    rm -f conftest*
1114    fi
1115    if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1116      echo "$ac_t""yes" 1>&6
1117       cat >> confdefs.h <<\EOF
1118    #define HAVE_GETOPT_H 1
1119    EOF
1120    
1121    else
1122      echo "$ac_t""no" 1>&6
1123    fi
1124    
1125    
1126  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
1127  echo "configure:980: checking for sqrt in -lm" >&5  echo "configure:1128: checking for sqrt in -lm" >&5
1128  ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
1129  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
1130    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 984  Line 1132 
1132    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1133  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
1134  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1135  #line 988 "configure"  #line 1136 "configure"
1136  #include "confdefs.h"  #include "confdefs.h"
1137  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1138  /* 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 995  Line 1143 
1143  sqrt()  sqrt()
1144  ; return 0; }  ; return 0; }
1145  EOF  EOF
1146  if { (eval echo configure:999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1147    rm -rf conftest*    rm -rf conftest*
1148    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1149  else  else
# Line 1022  Line 1170 
1170    
1171    
1172  echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6
1173  echo "configure:1026: checking for gdImageGif in -lgd" >&5  echo "configure:1174: checking for gdImageGif in -lgd" >&5
1174  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`
1175  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
1176    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1030  Line 1178 
1178    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1179  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1180  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1181  #line 1034 "configure"  #line 1182 "configure"
1182  #include "confdefs.h"  #include "confdefs.h"
1183  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1184  /* 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 1041  Line 1189 
1189  gdImageGif()  gdImageGif()
1190  ; return 0; }  ; return 0; }
1191  EOF  EOF
1192  if { (eval echo configure:1045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1193    rm -rf conftest*    rm -rf conftest*
1194    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1195  else  else
# Line 1067  Line 1215 
1215  fi  fi
1216    
1217  echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6
1218  echo "configure:1071: checking for gdImagePng in -lgd" >&5  echo "configure:1219: checking for gdImagePng in -lgd" >&5
1219  ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`
1220  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
1221    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1075  Line 1223 
1223    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1224  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1225  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1226  #line 1079 "configure"  #line 1227 "configure"
1227  #include "confdefs.h"  #include "confdefs.h"
1228  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1229  /* 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 1086  Line 1234 
1234  gdImagePng()  gdImagePng()
1235  ; return 0; }  ; return 0; }
1236  EOF  EOF
1237  if { (eval echo configure:1090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1238    rm -rf conftest*    rm -rf conftest*
1239    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1240  else  else
# Line 1106  Line 1254 
1254  #define HAVE_IMAGE_PNG 1  #define HAVE_IMAGE_PNG 1
1255  EOF  EOF
1256    
         LDFLAGS="$LDFLAGS -lpng -lz ${MATHLIBS}"  
1257    
1258  else  else
1259    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1260  fi  fi
1261    
1262  echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6
1263  echo "configure:1117: checking for gdImageJpeg in -lgd" >&5  echo "configure:1264: checking for gdImageJpeg in -lgd" >&5
1264  ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`
1265  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
1266    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1121  Line 1268 
1268    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1269  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1270  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1271  #line 1125 "configure"  #line 1272 "configure"
1272  #include "confdefs.h"  #include "confdefs.h"
1273  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1274  /* 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 1132  Line 1279 
1279  gdImageJpeg()  gdImageJpeg()
1280  ; return 0; }  ; return 0; }
1281  EOF  EOF
1282  if { (eval echo configure:1136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1283    rm -rf conftest*    rm -rf conftest*
1284    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1285  else  else
# Line 1152  Line 1299 
1299  #define HAVE_IMAGE_JPEG 1  #define HAVE_IMAGE_JPEG 1
1300  EOF  EOF
1301    
         LDFLAGS="$LDFLAGS -ljpeg"  
1302    
1303  else  else
1304    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
# Line 1160  Line 1306 
1306    
1307    
1308    
 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  
 echo "configure:1165: checking how to run the C preprocessor" >&5  
 # On Suns, sometimes $CPP names a directory.  
 if test -n "$CPP" && test -d "$CPP"; then  
   CPP=  
 fi  
 if test -z "$CPP"; then  
 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
     # This must be in double quotes, not single quotes, because CPP may get  
   # substituted into the Makefile and "${CC-cc}" will confuse make.  
   CPP="${CC-cc} -E"  
   # On the NeXT, cc -E runs the code through the compiler's parser,  
   # not just through cpp.  
   cat > conftest.$ac_ext <<EOF  
 #line 1180 "configure"  
 #include "confdefs.h"  
 #include <assert.h>  
 Syntax Error  
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:1186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   :  
 else  
   echo "$ac_err" >&5  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   CPP="${CC-cc} -E -traditional-cpp"  
   cat > conftest.$ac_ext <<EOF  
 #line 1197 "configure"  
 #include "confdefs.h"  
 #include <assert.h>  
 Syntax Error  
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:1203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   :  
 else  
   echo "$ac_err" >&5  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   CPP="${CC-cc} -nologo -E"  
   cat > conftest.$ac_ext <<EOF  
 #line 1214 "configure"  
 #include "confdefs.h"  
 #include <assert.h>  
 Syntax Error  
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:1220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   :  
 else  
   echo "$ac_err" >&5  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   CPP=/lib/cpp  
 fi  
 rm -f conftest*  
 fi  
 rm -f conftest*  
 fi  
 rm -f conftest*  
   ac_cv_prog_CPP="$CPP"  
 fi  
   CPP="$ac_cv_prog_CPP"  
 else  
   ac_cv_prog_CPP="$CPP"  
 fi  
 echo "$ac_t""$CPP" 1>&6  
   
1309  ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`  ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`
1310  echo $ac_n "checking for gd.h""... $ac_c" 1>&6  echo $ac_n "checking for gd.h""... $ac_c" 1>&6
1311  echo "configure:1246: checking for gd.h" >&5  echo "configure:1312: checking for gd.h" >&5
1312  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1313    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1314  else  else
1315    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1316  #line 1251 "configure"  #line 1317 "configure"
1317  #include "confdefs.h"  #include "confdefs.h"
1318  #include <gd.h>  #include <gd.h>
1319  EOF  EOF
1320  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1321  { (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1322  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1323  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1324    rm -rf conftest*    rm -rf conftest*

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0