/[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.6, Wed Nov 21 08:25:04 2001 UTC revision 1.7, Wed Jan 9 00:28:36 2002 UTC
# Line 28  Line 28 
28  ac_help="$ac_help  ac_help="$ac_help
29    --with-jpeg-lib=DIR    location of jpeg library"    --with-jpeg-lib=DIR    location of jpeg library"
30  ac_help="$ac_help  ac_help="$ac_help
31      --with-freetype-lib=DIR    location of freetype library"
32    ac_help="$ac_help
33    --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"
34    
35  # Initialize some variables set by options.  # Initialize some variables set by options.
# Line 544  Line 546 
546  # 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.
547  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
548  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
549  echo "configure:548: checking for $ac_word" >&5  echo "configure:550: checking for $ac_word" >&5
550  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
551    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
552  else  else
# Line 574  Line 576 
576    # 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.
577  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
578  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
579  echo "configure:578: checking for $ac_word" >&5  echo "configure:580: checking for $ac_word" >&5
580  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
581    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
582  else  else
# Line 625  Line 627 
627        # 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.
628  set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
629  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
630  echo "configure:629: checking for $ac_word" >&5  echo "configure:631: checking for $ac_word" >&5
631  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
632    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
633  else  else
# Line 657  Line 659 
659  fi  fi
660    
661  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
662  echo "configure:661: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:663: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
663    
664  ac_ext=c  ac_ext=c
665  # 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 668  Line 670 
670    
671  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
672    
673  #line 672 "configure"  #line 674 "configure"
674  #include "confdefs.h"  #include "confdefs.h"
675    
676  main(){return(0);}  main(){return(0);}
677  EOF  EOF
678  if { (eval echo configure:677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
679    ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
680    # 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.
681    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 699  Line 701 
701    { 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; }
702  fi  fi
703  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
704  echo "configure:703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:705: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
705  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
706  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
707    
708  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
709  echo "configure:708: checking whether we are using GNU C" >&5  echo "configure:710: checking whether we are using GNU C" >&5
710  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
711    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
712  else  else
# Line 713  Line 715 
715    yes;    yes;
716  #endif  #endif
717  EOF  EOF
718  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  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
719    ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
720  else  else
721    ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
# Line 732  Line 734 
734  ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
735  CFLAGS=  CFLAGS=
736  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
737  echo "configure:736: checking whether ${CC-cc} accepts -g" >&5  echo "configure:738: checking whether ${CC-cc} accepts -g" >&5
738  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
739    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
740  else  else
# Line 766  Line 768 
768  # 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.
769  set dummy flex; ac_word=$2  set dummy flex; ac_word=$2
770  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
771  echo "configure:770: checking for $ac_word" >&5  echo "configure:772: checking for $ac_word" >&5
772  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
773    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
774  else  else
# Line 800  Line 802 
802    *) ac_lib=l ;;    *) ac_lib=l ;;
803    esac    esac
804    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
805  echo "configure:804: checking for yywrap in -l$ac_lib" >&5  echo "configure:806: checking for yywrap in -l$ac_lib" >&5
806  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
807  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
808    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 808  Line 810 
810    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
811  LIBS="-l$ac_lib  $LIBS"  LIBS="-l$ac_lib  $LIBS"
812  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
813  #line 812 "configure"  #line 814 "configure"
814  #include "confdefs.h"  #include "confdefs.h"
815  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
816  /* 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 819  Line 821 
821  yywrap()  yywrap()
822  ; return 0; }  ; return 0; }
823  EOF  EOF
824  if { (eval echo configure:823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
825    rm -rf conftest*    rm -rf conftest*
826    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
827  else  else
# Line 846  Line 848 
848  # 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.
849  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
850  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
851  echo "configure:850: checking for $ac_word" >&5  echo "configure:852: checking for $ac_word" >&5
852  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
853    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
854  else  else
# Line 947  Line 949 
949  fi  fi
950    
951    
952    # Check whether --with-freetype-lib or --without-freetype-lib was given.
953    if test "${with_freetype_lib+set}" = set; then
954      withval="$with_freetype_lib"
955      LIBS="${LIBS} -L${withval} -lttf"
956    
957    fi
958    
959    
960  # Check whether --enable-speed or --disable-speed was given.  # Check whether --enable-speed or --disable-speed was given.
961  if test "${enable_speed+set}" = set; then  if test "${enable_speed+set}" = set; then
962    enableval="$enable_speed"    enableval="$enable_speed"
# Line 966  Line 976 
976  then  then
977    CFLAGS="$CFLAGS -Wall"    CFLAGS="$CFLAGS -Wall"
978    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
979  echo "configure:970: checking "for gcc strength-reduce bug"" >&5  echo "configure:980: checking "for gcc strength-reduce bug"" >&5
980  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
981    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
982  else  else
# Line 974  Line 984 
984    ac_cv_c_gcc_strength_bug="yes"    ac_cv_c_gcc_strength_bug="yes"
985  else  else
986    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
987  #line 978 "configure"  #line 988 "configure"
988  #include "confdefs.h"  #include "confdefs.h"
989    
990  int main(void) {  int main(void) {
# Line 985  Line 995 
995    exit( Array[1] != -2 );    exit( Array[1] != -2 );
996  }  }
997  EOF  EOF
998  if { (eval echo configure:989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
999  then  then
1000    ac_cv_c_gcc_strength_bug="no"    ac_cv_c_gcc_strength_bug="no"
1001  else  else
# Line 1007  Line 1017 
1017  fi  fi
1018    
1019  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
1020  echo "configure:1011: checking how to run the C preprocessor" >&5  echo "configure:1021: checking how to run the C preprocessor" >&5
1021  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
1022  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
1023    CPP=    CPP=
# Line 1022  Line 1032 
1032    # 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,
1033    # not just through cpp.    # not just through cpp.
1034    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1035  #line 1026 "configure"  #line 1036 "configure"
1036  #include "confdefs.h"  #include "confdefs.h"
1037  #include <assert.h>  #include <assert.h>
1038  Syntax Error  Syntax Error
1039  EOF  EOF
1040  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1041  { (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1042  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1043  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1044    :    :
# Line 1039  Line 1049 
1049    rm -rf conftest*    rm -rf conftest*
1050    CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
1051    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1052  #line 1043 "configure"  #line 1053 "configure"
1053  #include "confdefs.h"  #include "confdefs.h"
1054  #include <assert.h>  #include <assert.h>
1055  Syntax Error  Syntax Error
1056  EOF  EOF
1057  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1058  { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1059  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1060  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1061    :    :
# Line 1056  Line 1066 
1066    rm -rf conftest*    rm -rf conftest*
1067    CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
1068    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1069  #line 1060 "configure"  #line 1070 "configure"
1070  #include "confdefs.h"  #include "confdefs.h"
1071  #include <assert.h>  #include <assert.h>
1072  Syntax Error  Syntax Error
1073  EOF  EOF
1074  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1075  { (eval echo configure:1066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1076  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1077  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1078    :    :
# Line 1088  Line 1098 
1098    
1099  ac_safe=`echo "getopt.h" | sed 'y%./+-%__p_%'`  ac_safe=`echo "getopt.h" | sed 'y%./+-%__p_%'`
1100  echo $ac_n "checking for getopt.h""... $ac_c" 1>&6  echo $ac_n "checking for getopt.h""... $ac_c" 1>&6
1101  echo "configure:1092: checking for getopt.h" >&5  echo "configure:1102: checking for getopt.h" >&5
1102  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1103    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1104  else  else
1105    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1106  #line 1097 "configure"  #line 1107 "configure"
1107  #include "confdefs.h"  #include "confdefs.h"
1108  #include <getopt.h>  #include <getopt.h>
1109  EOF  EOF
1110  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1111  { (eval echo configure:1102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1112  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1113  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1114    rm -rf conftest*    rm -rf conftest*
# Line 1124  Line 1134 
1134    
1135    
1136  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
1137  echo "configure:1128: checking for sqrt in -lm" >&5  echo "configure:1138: checking for sqrt in -lm" >&5
1138  ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
1139  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
1140    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1132  Line 1142 
1142    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1143  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
1144  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1145  #line 1136 "configure"  #line 1146 "configure"
1146  #include "confdefs.h"  #include "confdefs.h"
1147  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1148  /* 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 1143  Line 1153 
1153  sqrt()  sqrt()
1154  ; return 0; }  ; return 0; }
1155  EOF  EOF
1156  if { (eval echo configure:1147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1157    rm -rf conftest*    rm -rf conftest*
1158    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1159  else  else
# Line 1170  Line 1180 
1180    
1181    
1182  echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6
1183  echo "configure:1174: checking for gdImageGif in -lgd" >&5  echo "configure:1184: checking for gdImageGif in -lgd" >&5
1184  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`
1185  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
1186    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1178  Line 1188 
1188    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1189  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1190  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1191  #line 1182 "configure"  #line 1192 "configure"
1192  #include "confdefs.h"  #include "confdefs.h"
1193  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1194  /* 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 1189  Line 1199 
1199  gdImageGif()  gdImageGif()
1200  ; return 0; }  ; return 0; }
1201  EOF  EOF
1202  if { (eval echo configure:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1203    rm -rf conftest*    rm -rf conftest*
1204    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1205  else  else
# Line 1215  Line 1225 
1225  fi  fi
1226    
1227  echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6
1228  echo "configure:1219: checking for gdImagePng in -lgd" >&5  echo "configure:1229: checking for gdImagePng in -lgd" >&5
1229  ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`
1230  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
1231    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1223  Line 1233 
1233    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1234  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1235  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1236  #line 1227 "configure"  #line 1237 "configure"
1237  #include "confdefs.h"  #include "confdefs.h"
1238  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1239  /* 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 1234  Line 1244 
1244  gdImagePng()  gdImagePng()
1245  ; return 0; }  ; return 0; }
1246  EOF  EOF
1247  if { (eval echo configure:1238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1248    rm -rf conftest*    rm -rf conftest*
1249    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1250  else  else
# Line 1260  Line 1270 
1270  fi  fi
1271    
1272  echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6
1273  echo "configure:1264: checking for gdImageJpeg in -lgd" >&5  echo "configure:1274: checking for gdImageJpeg in -lgd" >&5
1274  ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`
1275  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
1276    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1268  Line 1278 
1278    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1279  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1280  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1281  #line 1272 "configure"  #line 1282 "configure"
1282  #include "confdefs.h"  #include "confdefs.h"
1283  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1284  /* 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 1279  Line 1289 
1289  gdImageJpeg()  gdImageJpeg()
1290  ; return 0; }  ; return 0; }
1291  EOF  EOF
1292  if { (eval echo configure:1283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1293    rm -rf conftest*    rm -rf conftest*
1294    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1295  else  else
# Line 1304  Line 1314 
1314    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1315  fi  fi
1316    
1317    echo $ac_n "checking for gdImageStringTTF in -lgd""... $ac_c" 1>&6
1318    echo "configure:1319: checking for gdImageStringTTF in -lgd" >&5
1319    ac_lib_var=`echo gd'_'gdImageStringTTF | sed 'y%./+-%__p_%'`
1320    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1321      echo $ac_n "(cached) $ac_c" 1>&6
1322    else
1323      ac_save_LIBS="$LIBS"
1324    LIBS="-lgd  $LIBS"
1325    cat > conftest.$ac_ext <<EOF
1326    #line 1327 "configure"
1327    #include "confdefs.h"
1328    /* Override any gcc2 internal prototype to avoid an error.  */
1329    /* We use char because int might match the return type of a gcc2
1330        builtin and then its argument prototype would still apply.  */
1331    char gdImageStringTTF();
1332    
1333    int main() {
1334    gdImageStringTTF()
1335    ; return 0; }
1336    EOF
1337    if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1338      rm -rf conftest*
1339      eval "ac_cv_lib_$ac_lib_var=yes"
1340    else
1341      echo "configure: failed program was:" >&5
1342      cat conftest.$ac_ext >&5
1343      rm -rf conftest*
1344      eval "ac_cv_lib_$ac_lib_var=no"
1345    fi
1346    rm -f conftest*
1347    LIBS="$ac_save_LIBS"
1348    
1349    fi
1350    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1351      echo "$ac_t""yes" 1>&6
1352    
1353            cat >> confdefs.h <<\EOF
1354    #define HAVE_GDIMAGESTRINGTTF 1
1355    EOF
1356    
1357    
1358    else
1359      echo "$ac_t""no" 1>&6
1360    fi
1361    
1362    echo $ac_n "checking for gdImageStringFT in -lgd""... $ac_c" 1>&6
1363    echo "configure:1364: checking for gdImageStringFT in -lgd" >&5
1364    ac_lib_var=`echo gd'_'gdImageStringFT | sed 'y%./+-%__p_%'`
1365    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1366      echo $ac_n "(cached) $ac_c" 1>&6
1367    else
1368      ac_save_LIBS="$LIBS"
1369    LIBS="-lgd  $LIBS"
1370    cat > conftest.$ac_ext <<EOF
1371    #line 1372 "configure"
1372    #include "confdefs.h"
1373    /* Override any gcc2 internal prototype to avoid an error.  */
1374    /* We use char because int might match the return type of a gcc2
1375        builtin and then its argument prototype would still apply.  */
1376    char gdImageStringFT();
1377    
1378    int main() {
1379    gdImageStringFT()
1380    ; return 0; }
1381    EOF
1382    if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1383      rm -rf conftest*
1384      eval "ac_cv_lib_$ac_lib_var=yes"
1385    else
1386      echo "configure: failed program was:" >&5
1387      cat conftest.$ac_ext >&5
1388      rm -rf conftest*
1389      eval "ac_cv_lib_$ac_lib_var=no"
1390    fi
1391    rm -f conftest*
1392    LIBS="$ac_save_LIBS"
1393    
1394    fi
1395    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1396      echo "$ac_t""yes" 1>&6
1397    
1398            cat >> confdefs.h <<\EOF
1399    #define HAVE_GDIMAGESTRINGFT 1
1400    EOF
1401    
1402    
1403    else
1404      echo "$ac_t""no" 1>&6
1405    fi
1406    
1407    
1408    
1409  ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`  ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`
1410  echo $ac_n "checking for gd.h""... $ac_c" 1>&6  echo $ac_n "checking for gd.h""... $ac_c" 1>&6
1411  echo "configure:1312: checking for gd.h" >&5  echo "configure:1412: checking for gd.h" >&5
1412  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1413    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1414  else  else
1415    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1416  #line 1317 "configure"  #line 1417 "configure"
1417  #include "confdefs.h"  #include "confdefs.h"
1418  #include <gd.h>  #include <gd.h>
1419  EOF  EOF
1420  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1421  { (eval echo configure:1322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1422  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1423  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1424    rm -rf conftest*    rm -rf conftest*

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

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0