/[public]/psiconv/trunk/configure
ViewVC logotype

Diff of /psiconv/trunk/configure

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

Revision 2 Revision 16
20ac_help="$ac_help 20ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22ac_help="$ac_help 22ac_help="$ac_help
23 --disable-libtool-lock avoid locking (might break parallel builds)" 23 --disable-libtool-lock avoid locking (might break parallel builds)"
24ac_help="$ac_help 24ac_help="$ac_help
25 --with-imagemagick enable ImageMagick (default = yes)"
26ac_help="$ac_help
25 --disable-html-docs Disable generation of HTML 3.2 docs (default: on)" 27 --disable-html-docs Disable generation of HTML 3.2 docs (default: on)"
26ac_help="$ac_help 28ac_help="$ac_help
27 --enable-html4-docs Enable generation of HTML 4 docs (default: off)" 29 --enable-html4-docs Enable generation of HTML 4 docs (default: off)"
28ac_help="$ac_help 30ac_help="$ac_help
29 --enable-ascii-docs Enable generation of ASCII docs (default: off)" 31 --enable-ascii-docs Enable generation of ASCII docs (default: off)"
32ac_help="$ac_help
33 --enable-rtf-docs Enable generation of RTF docs (default: off)"
30 34
31# Initialize some variables set by options. 35# Initialize some variables set by options.
32# The variables have the same names as the options, with 36# The variables have the same names as the options, with
33# dashes changed to underlines. 37# dashes changed to underlines.
34build=NONE 38build=NONE
566# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 570# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
567# AFS /usr/afsws/bin/install, which mishandles nonexistent args 571# AFS /usr/afsws/bin/install, which mishandles nonexistent args
568# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 572# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
569# ./install, which can be erroneously created by make from ./install.sh. 573# ./install, which can be erroneously created by make from ./install.sh.
570echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 574echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
571echo "configure:572: checking for a BSD compatible install" >&5 575echo "configure:576: checking for a BSD compatible install" >&5
572if test -z "$INSTALL"; then 576if test -z "$INSTALL"; then
573if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 577if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
574 echo $ac_n "(cached) $ac_c" 1>&6 578 echo $ac_n "(cached) $ac_c" 1>&6
575else 579else
576 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 580 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
619test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 623test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
620 624
621test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 625test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
622 626
623echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 627echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
624echo "configure:625: checking whether build environment is sane" >&5 628echo "configure:629: checking whether build environment is sane" >&5
625# Just in case 629# Just in case
626sleep 1 630sleep 1
627echo timestamp > conftestfile 631echo timestamp > conftestfile
628# Do `set' in a subshell so we don't clobber the current shell's 632# Do `set' in a subshell so we don't clobber the current shell's
629# arguments. Must try -L first in case configure is actually a 633# arguments. Must try -L first in case configure is actually a
676 680
677# sed with no file args requires a program. 681# sed with no file args requires a program.
678test "$program_transform_name" = "" && program_transform_name="s,x,x," 682test "$program_transform_name" = "" && program_transform_name="s,x,x,"
679 683
680echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 684echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
681echo "configure:682: checking whether ${MAKE-make} sets \${MAKE}" >&5 685echo "configure:686: checking whether ${MAKE-make} sets \${MAKE}" >&5
682set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 686set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
683if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 687if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
684 echo $ac_n "(cached) $ac_c" 1>&6 688 echo $ac_n "(cached) $ac_c" 1>&6
685else 689else
686 cat > conftestmake <<\EOF 690 cat > conftestmake <<\EOF
705fi 709fi
706 710
707 711
708PACKAGE=psiconv 712PACKAGE=psiconv
709 713
710VERSION=0.5.0 714VERSION=0.5.0a
711 715
712if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 716if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
713 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 717 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
714fi 718fi
715cat >> confdefs.h <<EOF 719cat >> confdefs.h <<EOF
722 726
723 727
724 728
725missing_dir=`cd $ac_aux_dir && pwd` 729missing_dir=`cd $ac_aux_dir && pwd`
726echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 730echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
727echo "configure:728: checking for working aclocal" >&5 731echo "configure:732: checking for working aclocal" >&5
728# Run test in a subshell; some versions of sh will print an error if 732# Run test in a subshell; some versions of sh will print an error if
729# an executable is not found, even if stderr is redirected. 733# an executable is not found, even if stderr is redirected.
730# Redirect stdin to placate older versions of autoconf. Sigh. 734# Redirect stdin to placate older versions of autoconf. Sigh.
731if (aclocal --version) < /dev/null > /dev/null 2>&1; then 735if (aclocal --version) < /dev/null > /dev/null 2>&1; then
732 ACLOCAL=aclocal 736 ACLOCAL=aclocal
735 ACLOCAL="$missing_dir/missing aclocal" 739 ACLOCAL="$missing_dir/missing aclocal"
736 echo "$ac_t""missing" 1>&6 740 echo "$ac_t""missing" 1>&6
737fi 741fi
738 742
739echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 743echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
740echo "configure:741: checking for working autoconf" >&5 744echo "configure:745: checking for working autoconf" >&5
741# Run test in a subshell; some versions of sh will print an error if 745# Run test in a subshell; some versions of sh will print an error if
742# an executable is not found, even if stderr is redirected. 746# an executable is not found, even if stderr is redirected.
743# Redirect stdin to placate older versions of autoconf. Sigh. 747# Redirect stdin to placate older versions of autoconf. Sigh.
744if (autoconf --version) < /dev/null > /dev/null 2>&1; then 748if (autoconf --version) < /dev/null > /dev/null 2>&1; then
745 AUTOCONF=autoconf 749 AUTOCONF=autoconf
748 AUTOCONF="$missing_dir/missing autoconf" 752 AUTOCONF="$missing_dir/missing autoconf"
749 echo "$ac_t""missing" 1>&6 753 echo "$ac_t""missing" 1>&6
750fi 754fi
751 755
752echo $ac_n "checking for working automake""... $ac_c" 1>&6 756echo $ac_n "checking for working automake""... $ac_c" 1>&6
753echo "configure:754: checking for working automake" >&5 757echo "configure:758: checking for working automake" >&5
754# Run test in a subshell; some versions of sh will print an error if 758# Run test in a subshell; some versions of sh will print an error if
755# an executable is not found, even if stderr is redirected. 759# an executable is not found, even if stderr is redirected.
756# Redirect stdin to placate older versions of autoconf. Sigh. 760# Redirect stdin to placate older versions of autoconf. Sigh.
757if (automake --version) < /dev/null > /dev/null 2>&1; then 761if (automake --version) < /dev/null > /dev/null 2>&1; then
758 AUTOMAKE=automake 762 AUTOMAKE=automake
761 AUTOMAKE="$missing_dir/missing automake" 765 AUTOMAKE="$missing_dir/missing automake"
762 echo "$ac_t""missing" 1>&6 766 echo "$ac_t""missing" 1>&6
763fi 767fi
764 768
765echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 769echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
766echo "configure:767: checking for working autoheader" >&5 770echo "configure:771: checking for working autoheader" >&5
767# Run test in a subshell; some versions of sh will print an error if 771# Run test in a subshell; some versions of sh will print an error if
768# an executable is not found, even if stderr is redirected. 772# an executable is not found, even if stderr is redirected.
769# Redirect stdin to placate older versions of autoconf. Sigh. 773# Redirect stdin to placate older versions of autoconf. Sigh.
770if (autoheader --version) < /dev/null > /dev/null 2>&1; then 774if (autoheader --version) < /dev/null > /dev/null 2>&1; then
771 AUTOHEADER=autoheader 775 AUTOHEADER=autoheader
774 AUTOHEADER="$missing_dir/missing autoheader" 778 AUTOHEADER="$missing_dir/missing autoheader"
775 echo "$ac_t""missing" 1>&6 779 echo "$ac_t""missing" 1>&6
776fi 780fi
777 781
778echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 782echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
779echo "configure:780: checking for working makeinfo" >&5 783echo "configure:784: checking for working makeinfo" >&5
780# Run test in a subshell; some versions of sh will print an error if 784# Run test in a subshell; some versions of sh will print an error if
781# an executable is not found, even if stderr is redirected. 785# an executable is not found, even if stderr is redirected.
782# Redirect stdin to placate older versions of autoconf. Sigh. 786# Redirect stdin to placate older versions of autoconf. Sigh.
783if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 787if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
784 MAKEINFO=makeinfo 788 MAKEINFO=makeinfo
868if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 872if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
869else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 873else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
870fi 874fi
871 875
872echo $ac_n "checking host system type""... $ac_c" 1>&6 876echo $ac_n "checking host system type""... $ac_c" 1>&6
873echo "configure:874: checking host system type" >&5 877echo "configure:878: checking host system type" >&5
874 878
875host_alias=$host 879host_alias=$host
876case "$host_alias" in 880case "$host_alias" in
877NONE) 881NONE)
878 case $nonopt in 882 case $nonopt in
889host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 893host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
890host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 894host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
891echo "$ac_t""$host" 1>&6 895echo "$ac_t""$host" 1>&6
892 896
893echo $ac_n "checking build system type""... $ac_c" 1>&6 897echo $ac_n "checking build system type""... $ac_c" 1>&6
894echo "configure:895: checking build system type" >&5 898echo "configure:899: checking build system type" >&5
895 899
896build_alias=$build 900build_alias=$build
897case "$build_alias" in 901case "$build_alias" in
898NONE) 902NONE)
899 case $nonopt in 903 case $nonopt in
909echo "$ac_t""$build" 1>&6 913echo "$ac_t""$build" 1>&6
910 914
911# Extract the first word of "ranlib", so it can be a program name with args. 915# Extract the first word of "ranlib", so it can be a program name with args.
912set dummy ranlib; ac_word=$2 916set dummy ranlib; ac_word=$2
913echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 917echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
914echo "configure:915: checking for $ac_word" >&5 918echo "configure:919: checking for $ac_word" >&5
915if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 919if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
916 echo $ac_n "(cached) $ac_c" 1>&6 920 echo $ac_n "(cached) $ac_c" 1>&6
917else 921else
918 if test -n "$RANLIB"; then 922 if test -n "$RANLIB"; then
919 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 923 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
939fi 943fi
940 944
941# Extract the first word of "gcc", so it can be a program name with args. 945# Extract the first word of "gcc", so it can be a program name with args.
942set dummy gcc; ac_word=$2 946set dummy gcc; ac_word=$2
943echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 947echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
944echo "configure:945: checking for $ac_word" >&5 948echo "configure:949: checking for $ac_word" >&5
945if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 949if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6 950 echo $ac_n "(cached) $ac_c" 1>&6
947else 951else
948 if test -n "$CC"; then 952 if test -n "$CC"; then
949 ac_cv_prog_CC="$CC" # Let the user override the test. 953 ac_cv_prog_CC="$CC" # Let the user override the test.
969 973
970if test -z "$CC"; then 974if test -z "$CC"; then
971 # Extract the first word of "cc", so it can be a program name with args. 975 # Extract the first word of "cc", so it can be a program name with args.
972set dummy cc; ac_word=$2 976set dummy cc; ac_word=$2
973echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 977echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974echo "configure:975: checking for $ac_word" >&5 978echo "configure:979: checking for $ac_word" >&5
975if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 979if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6 980 echo $ac_n "(cached) $ac_c" 1>&6
977else 981else
978 if test -n "$CC"; then 982 if test -n "$CC"; then
979 ac_cv_prog_CC="$CC" # Let the user override the test. 983 ac_cv_prog_CC="$CC" # Let the user override the test.
1020 case "`uname -s`" in 1024 case "`uname -s`" in
1021 *win32* | *WIN32*) 1025 *win32* | *WIN32*)
1022 # Extract the first word of "cl", so it can be a program name with args. 1026 # Extract the first word of "cl", so it can be a program name with args.
1023set dummy cl; ac_word=$2 1027set dummy cl; ac_word=$2
1024echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1028echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1025echo "configure:1026: checking for $ac_word" >&5 1029echo "configure:1030: checking for $ac_word" >&5
1026if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1030if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1027 echo $ac_n "(cached) $ac_c" 1>&6 1031 echo $ac_n "(cached) $ac_c" 1>&6
1028else 1032else
1029 if test -n "$CC"; then 1033 if test -n "$CC"; then
1030 ac_cv_prog_CC="$CC" # Let the user override the test. 1034 ac_cv_prog_CC="$CC" # Let the user override the test.
1052 fi 1056 fi
1053 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1057 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1054fi 1058fi
1055 1059
1056echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1060echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1057echo "configure:1058: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1061echo "configure:1062: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1058 1062
1059ac_ext=c 1063ac_ext=c
1060# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1064# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1061ac_cpp='$CPP $CPPFLAGS' 1065ac_cpp='$CPP $CPPFLAGS'
1062ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1066ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1063ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1067ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1064cross_compiling=$ac_cv_prog_cc_cross 1068cross_compiling=$ac_cv_prog_cc_cross
1065 1069
1066cat > conftest.$ac_ext << EOF 1070cat > conftest.$ac_ext << EOF
1067 1071
1068#line 1069 "configure" 1072#line 1073 "configure"
1069#include "confdefs.h" 1073#include "confdefs.h"
1070 1074
1071main(){return(0);} 1075main(){return(0);}
1072EOF 1076EOF
1073if { (eval echo configure:1074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1077if { (eval echo configure:1078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1074 ac_cv_prog_cc_works=yes 1078 ac_cv_prog_cc_works=yes
1075 # If we can't run a trivial program, we are probably using a cross compiler. 1079 # If we can't run a trivial program, we are probably using a cross compiler.
1076 if (./conftest; exit) 2>/dev/null; then 1080 if (./conftest; exit) 2>/dev/null; then
1077 ac_cv_prog_cc_cross=no 1081 ac_cv_prog_cc_cross=no
1078 else 1082 else
1094echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1098echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1095if test $ac_cv_prog_cc_works = no; then 1099if test $ac_cv_prog_cc_works = no; then
1096 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1100 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1097fi 1101fi
1098echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1102echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1099echo "configure:1100: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1103echo "configure:1104: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1100echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1104echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1101cross_compiling=$ac_cv_prog_cc_cross 1105cross_compiling=$ac_cv_prog_cc_cross
1102 1106
1103echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1107echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1104echo "configure:1105: checking whether we are using GNU C" >&5 1108echo "configure:1109: checking whether we are using GNU C" >&5
1105if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1109if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&6 1110 echo $ac_n "(cached) $ac_c" 1>&6
1107else 1111else
1108 cat > conftest.c <<EOF 1112 cat > conftest.c <<EOF
1109#ifdef __GNUC__ 1113#ifdef __GNUC__
1110 yes; 1114 yes;
1111#endif 1115#endif
1112EOF 1116EOF
1113if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1117if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1114 ac_cv_prog_gcc=yes 1118 ac_cv_prog_gcc=yes
1115else 1119else
1116 ac_cv_prog_gcc=no 1120 ac_cv_prog_gcc=no
1117fi 1121fi
1118fi 1122fi
1127 1131
1128ac_test_CFLAGS="${CFLAGS+set}" 1132ac_test_CFLAGS="${CFLAGS+set}"
1129ac_save_CFLAGS="$CFLAGS" 1133ac_save_CFLAGS="$CFLAGS"
1130CFLAGS= 1134CFLAGS=
1131echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1135echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1132echo "configure:1133: checking whether ${CC-cc} accepts -g" >&5 1136echo "configure:1137: checking whether ${CC-cc} accepts -g" >&5
1133if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1137if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1134 echo $ac_n "(cached) $ac_c" 1>&6 1138 echo $ac_n "(cached) $ac_c" 1>&6
1135else 1139else
1136 echo 'void f(){}' > conftest.c 1140 echo 'void f(){}' > conftest.c
1137if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1141if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1170 1174
1171ac_prog=ld 1175ac_prog=ld
1172if test "$ac_cv_prog_gcc" = yes; then 1176if test "$ac_cv_prog_gcc" = yes; then
1173 # Check if gcc -print-prog-name=ld gives a path. 1177 # Check if gcc -print-prog-name=ld gives a path.
1174 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 1178 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1175echo "configure:1176: checking for ld used by GCC" >&5 1179echo "configure:1180: checking for ld used by GCC" >&5
1176 ac_prog=`($CC -print-prog-name=ld) 2>&5` 1180 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1177 case "$ac_prog" in 1181 case "$ac_prog" in
1178 # Accept absolute paths. 1182 # Accept absolute paths.
1179 [\\/]* | [A-Za-z]:[\\/]*) 1183 [\\/]* | [A-Za-z]:[\\/]*)
1180 re_direlt='/[^/][^/]*/\.\./' 1184 re_direlt='/[^/][^/]*/\.\./'
1194 with_gnu_ld=unknown 1198 with_gnu_ld=unknown
1195 ;; 1199 ;;
1196 esac 1200 esac
1197elif test "$with_gnu_ld" = yes; then 1201elif test "$with_gnu_ld" = yes; then
1198 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 1202 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1199echo "configure:1200: checking for GNU ld" >&5 1203echo "configure:1204: checking for GNU ld" >&5
1200else 1204else
1201 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 1205 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1202echo "configure:1203: checking for non-GNU ld" >&5 1206echo "configure:1207: checking for non-GNU ld" >&5
1203fi 1207fi
1204if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then 1208if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6 1209 echo $ac_n "(cached) $ac_c" 1>&6
1206else 1210else
1207 if test -z "$LD"; then 1211 if test -z "$LD"; then
1233 echo "$ac_t""no" 1>&6 1237 echo "$ac_t""no" 1>&6
1234fi 1238fi
1235test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 1239test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1236 1240
1237echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 1241echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1238echo "configure:1239: checking if the linker ($LD) is GNU ld" >&5 1242echo "configure:1243: checking if the linker ($LD) is GNU ld" >&5
1239if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then 1243if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6 1244 echo $ac_n "(cached) $ac_c" 1>&6
1241else 1245else
1242 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 1246 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1243if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 1247if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1249 1253
1250echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 1254echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1251 1255
1252 1256
1253echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 1257echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1254echo "configure:1255: checking for BSD-compatible nm" >&5 1258echo "configure:1259: checking for BSD-compatible nm" >&5
1255if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then 1259if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6 1260 echo $ac_n "(cached) $ac_c" 1>&6
1257else 1261else
1258 if test -n "$NM"; then 1262 if test -n "$NM"; then
1259 # Let the user override the test. 1263 # Let the user override the test.
1286NM="$ac_cv_path_NM" 1290NM="$ac_cv_path_NM"
1287echo "$ac_t""$NM" 1>&6 1291echo "$ac_t""$NM" 1>&6
1288 1292
1289 1293
1290echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1294echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1291echo "configure:1292: checking whether ln -s works" >&5 1295echo "configure:1296: checking whether ln -s works" >&5
1292if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1296if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6 1297 echo $ac_n "(cached) $ac_c" 1>&6
1294else 1298else
1295 rm -f conftestdata 1299 rm -f conftestdata
1296if ln -s X conftestdata 2>/dev/null 1300if ln -s X conftestdata 2>/dev/null
1330# Some flags need to be propagated to the compiler or linker for good 1334# Some flags need to be propagated to the compiler or linker for good
1331# libtool support. 1335# libtool support.
1332case "$host" in 1336case "$host" in
1333*-*-irix6*) 1337*-*-irix6*)
1334 # Find out which ABI we are using. 1338 # Find out which ABI we are using.
1335 echo '#line 1336 "configure"' > conftest.$ac_ext 1339 echo '#line 1340 "configure"' > conftest.$ac_ext
1336 if { (eval echo configure:1337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1340 if { (eval echo configure:1341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1337 case "`/usr/bin/file conftest.o`" in 1341 case "`/usr/bin/file conftest.o`" in
1338 *32-bit*) 1342 *32-bit*)
1339 LD="${LD-ld} -32" 1343 LD="${LD-ld} -32"
1340 ;; 1344 ;;
1341 *N32*) 1345 *N32*)
1352*-*-sco3.2v5*) 1356*-*-sco3.2v5*)
1353 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1357 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1354 SAVE_CFLAGS="$CFLAGS" 1358 SAVE_CFLAGS="$CFLAGS"
1355 CFLAGS="$CFLAGS -belf" 1359 CFLAGS="$CFLAGS -belf"
1356 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 1360 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1357echo "configure:1358: checking whether the C compiler needs -belf" >&5 1361echo "configure:1362: checking whether the C compiler needs -belf" >&5
1358if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 1362if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6 1363 echo $ac_n "(cached) $ac_c" 1>&6
1360else 1364else
1361 cat > conftest.$ac_ext <<EOF 1365 cat > conftest.$ac_ext <<EOF
1362#line 1363 "configure" 1366#line 1367 "configure"
1363#include "confdefs.h" 1367#include "confdefs.h"
1364 1368
1365int main() { 1369int main() {
1366 1370
1367; return 0; } 1371; return 0; }
1368EOF 1372EOF
1369if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1373if { (eval echo configure:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1370 rm -rf conftest* 1374 rm -rf conftest*
1371 lt_cv_cc_needs_belf=yes 1375 lt_cv_cc_needs_belf=yes
1372else 1376else
1373 echo "configure: failed program was:" >&5 1377 echo "configure: failed program was:" >&5
1374 cat conftest.$ac_ext >&5 1378 cat conftest.$ac_ext >&5
1466# Redirect the config.log output again, so that the ltconfig log is not 1470# Redirect the config.log output again, so that the ltconfig log is not
1467# clobbered by the next message. 1471# clobbered by the next message.
1468exec 5>>./config.log 1472exec 5>>./config.log
1469 1473
1470 1474
1475# Check whether --with-imagemagick or --without-imagemagick was given.
1476if test "${with_imagemagick+set}" = set; then
1477 withval="$with_imagemagick"
1478 IMAGEMAGICK=$withval
1479else
1480 IMAGEMAGICK='yes'
1481fi
1482
1483if test x"$IMAGEMAGICK" != xno ; then
1484 echo $ac_n "checking for MagickWarning in -lMagick""... $ac_c" 1>&6
1485echo "configure:1486: checking for MagickWarning in -lMagick" >&5
1486ac_lib_var=`echo Magick'_'MagickWarning | sed 'y%./+-%__p_%'`
1487if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1488 echo $ac_n "(cached) $ac_c" 1>&6
1489else
1490 ac_save_LIBS="$LIBS"
1491LIBS="-lMagick $LIBS"
1492cat > conftest.$ac_ext <<EOF
1493#line 1494 "configure"
1494#include "confdefs.h"
1495/* Override any gcc2 internal prototype to avoid an error. */
1496/* We use char because int might match the return type of a gcc2
1497 builtin and then its argument prototype would still apply. */
1498char MagickWarning();
1499
1500int main() {
1501MagickWarning()
1502; return 0; }
1503EOF
1504if { (eval echo configure:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1505 rm -rf conftest*
1506 eval "ac_cv_lib_$ac_lib_var=yes"
1507else
1508 echo "configure: failed program was:" >&5
1509 cat conftest.$ac_ext >&5
1510 rm -rf conftest*
1511 eval "ac_cv_lib_$ac_lib_var=no"
1512fi
1513rm -f conftest*
1514LIBS="$ac_save_LIBS"
1515
1516fi
1517if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1518 echo "$ac_t""yes" 1>&6
1519 IMAGEMAGICK=yes
1520else
1521 echo "$ac_t""no" 1>&6
1522IMAGEMAGICK=no
1523fi
1524
1525 if test x"$IMAGEMAGICK" = xno ; then
1526 echo "configure: warning: ImageMagick support disabled!" 1>&2
1527 fi
1528fi
1529if test x"$IMAGEMAGICK" = xyes ; then
1530 LIB_MAGICK=-lMagick
1531 cat >> confdefs.h <<\EOF
1532#define IMAGEMAGICK 1
1533EOF
1534
1535else
1536 LIB_MAGICK=
1537fi
1538
1471 1539
1472echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1540echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1473echo "configure:1474: checking how to run the C preprocessor" >&5 1541echo "configure:1542: checking how to run the C preprocessor" >&5
1474# On Suns, sometimes $CPP names a directory. 1542# On Suns, sometimes $CPP names a directory.
1475if test -n "$CPP" && test -d "$CPP"; then 1543if test -n "$CPP" && test -d "$CPP"; then
1476 CPP= 1544 CPP=
1477fi 1545fi
1478if test -z "$CPP"; then 1546if test -z "$CPP"; then
1483 # substituted into the Makefile and "${CC-cc}" will confuse make. 1551 # substituted into the Makefile and "${CC-cc}" will confuse make.
1484 CPP="${CC-cc} -E" 1552 CPP="${CC-cc} -E"
1485 # On the NeXT, cc -E runs the code through the compiler's parser, 1553 # On the NeXT, cc -E runs the code through the compiler's parser,
1486 # not just through cpp. 1554 # not just through cpp.
1487 cat > conftest.$ac_ext <<EOF 1555 cat > conftest.$ac_ext <<EOF
1488#line 1489 "configure" 1556#line 1557 "configure"
1489#include "confdefs.h" 1557#include "confdefs.h"
1490#include <assert.h> 1558#include <assert.h>
1491Syntax Error 1559Syntax Error
1492EOF 1560EOF
1493ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1561ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1494{ (eval echo configure:1495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1562{ (eval echo configure:1563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1495ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1563ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1496if test -z "$ac_err"; then 1564if test -z "$ac_err"; then
1497 : 1565 :
1498else 1566else
1499 echo "$ac_err" >&5 1567 echo "$ac_err" >&5
1500 echo "configure: failed program was:" >&5 1568 echo "configure: failed program was:" >&5
1501 cat conftest.$ac_ext >&5 1569 cat conftest.$ac_ext >&5
1502 rm -rf conftest* 1570 rm -rf conftest*
1503 CPP="${CC-cc} -E -traditional-cpp" 1571 CPP="${CC-cc} -E -traditional-cpp"
1504 cat > conftest.$ac_ext <<EOF 1572 cat > conftest.$ac_ext <<EOF
1505#line 1506 "configure" 1573#line 1574 "configure"
1506#include "confdefs.h" 1574#include "confdefs.h"
1507#include <assert.h> 1575#include <assert.h>
1508Syntax Error 1576Syntax Error
1509EOF 1577EOF
1510ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1578ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1511{ (eval echo configure:1512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1579{ (eval echo configure:1580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1512ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1580ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1513if test -z "$ac_err"; then 1581if test -z "$ac_err"; then
1514 : 1582 :
1515else 1583else
1516 echo "$ac_err" >&5 1584 echo "$ac_err" >&5
1517 echo "configure: failed program was:" >&5 1585 echo "configure: failed program was:" >&5
1518 cat conftest.$ac_ext >&5 1586 cat conftest.$ac_ext >&5
1519 rm -rf conftest* 1587 rm -rf conftest*
1520 CPP="${CC-cc} -nologo -E" 1588 CPP="${CC-cc} -nologo -E"
1521 cat > conftest.$ac_ext <<EOF 1589 cat > conftest.$ac_ext <<EOF
1522#line 1523 "configure" 1590#line 1591 "configure"
1523#include "confdefs.h" 1591#include "confdefs.h"
1524#include <assert.h> 1592#include <assert.h>
1525Syntax Error 1593Syntax Error
1526EOF 1594EOF
1527ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1595ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1528{ (eval echo configure:1529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1596{ (eval echo configure:1597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1529ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1597ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1530if test -z "$ac_err"; then 1598if test -z "$ac_err"; then
1531 : 1599 :
1532else 1600else
1533 echo "$ac_err" >&5 1601 echo "$ac_err" >&5
1548 ac_cv_prog_CPP="$CPP" 1616 ac_cv_prog_CPP="$CPP"
1549fi 1617fi
1550echo "$ac_t""$CPP" 1>&6 1618echo "$ac_t""$CPP" 1>&6
1551 1619
1552echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1620echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1553echo "configure:1554: checking for ANSI C header files" >&5 1621echo "configure:1622: checking for ANSI C header files" >&5
1554if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1622if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6 1623 echo $ac_n "(cached) $ac_c" 1>&6
1556else 1624else
1557 cat > conftest.$ac_ext <<EOF 1625 cat > conftest.$ac_ext <<EOF
1558#line 1559 "configure" 1626#line 1627 "configure"
1559#include "confdefs.h" 1627#include "confdefs.h"
1560#include <stdlib.h> 1628#include <stdlib.h>
1561#include <stdarg.h> 1629#include <stdarg.h>
1562#include <string.h> 1630#include <string.h>
1563#include <float.h> 1631#include <float.h>
1564EOF 1632EOF
1565ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1633ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1566{ (eval echo configure:1567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1634{ (eval echo configure:1635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1567ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1635ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1568if test -z "$ac_err"; then 1636if test -z "$ac_err"; then
1569 rm -rf conftest* 1637 rm -rf conftest*
1570 ac_cv_header_stdc=yes 1638 ac_cv_header_stdc=yes
1571else 1639else
1578rm -f conftest* 1646rm -f conftest*
1579 1647
1580if test $ac_cv_header_stdc = yes; then 1648if test $ac_cv_header_stdc = yes; then
1581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1582cat > conftest.$ac_ext <<EOF 1650cat > conftest.$ac_ext <<EOF
1583#line 1584 "configure" 1651#line 1652 "configure"
1584#include "confdefs.h" 1652#include "confdefs.h"
1585#include <string.h> 1653#include <string.h>
1586EOF 1654EOF
1587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1588 egrep "memchr" >/dev/null 2>&1; then 1656 egrep "memchr" >/dev/null 2>&1; then
1596fi 1664fi
1597 1665
1598if test $ac_cv_header_stdc = yes; then 1666if test $ac_cv_header_stdc = yes; then
1599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1600cat > conftest.$ac_ext <<EOF 1668cat > conftest.$ac_ext <<EOF
1601#line 1602 "configure" 1669#line 1670 "configure"
1602#include "confdefs.h" 1670#include "confdefs.h"
1603#include <stdlib.h> 1671#include <stdlib.h>
1604EOF 1672EOF
1605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1606 egrep "free" >/dev/null 2>&1; then 1674 egrep "free" >/dev/null 2>&1; then
1617 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1685 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1618if test "$cross_compiling" = yes; then 1686if test "$cross_compiling" = yes; then
1619 : 1687 :
1620else 1688else
1621 cat > conftest.$ac_ext <<EOF 1689 cat > conftest.$ac_ext <<EOF
1622#line 1623 "configure" 1690#line 1691 "configure"
1623#include "confdefs.h" 1691#include "confdefs.h"
1624#include <ctype.h> 1692#include <ctype.h>
1625#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1693#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1626#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1694#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1627#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1695#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1628int main () { int i; for (i = 0; i < 256; i++) 1696int main () { int i; for (i = 0; i < 256; i++)
1629if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1697if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1630exit (0); } 1698exit (0); }
1631 1699
1632EOF 1700EOF
1633if { (eval echo configure:1634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1701if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1634then 1702then
1635 : 1703 :
1636else 1704else
1637 echo "configure: failed program was:" >&5 1705 echo "configure: failed program was:" >&5
1638 cat conftest.$ac_ext >&5 1706 cat conftest.$ac_ext >&5
1655 1723
1656for ac_hdr in unistd.h 1724for ac_hdr in unistd.h
1657do 1725do
1658ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1726ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1659echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1727echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1660echo "configure:1661: checking for $ac_hdr" >&5 1728echo "configure:1729: checking for $ac_hdr" >&5
1661if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1729if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6 1730 echo $ac_n "(cached) $ac_c" 1>&6
1663else 1731else
1664 cat > conftest.$ac_ext <<EOF 1732 cat > conftest.$ac_ext <<EOF
1665#line 1666 "configure" 1733#line 1734 "configure"
1666#include "confdefs.h" 1734#include "confdefs.h"
1667#include <$ac_hdr> 1735#include <$ac_hdr>
1668EOF 1736EOF
1669ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1737ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1670{ (eval echo configure:1671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1738{ (eval echo configure:1739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1671ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1739ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1672if test -z "$ac_err"; then 1740if test -z "$ac_err"; then
1673 rm -rf conftest* 1741 rm -rf conftest*
1674 eval "ac_cv_header_$ac_safe=yes" 1742 eval "ac_cv_header_$ac_safe=yes"
1675else 1743else
1693fi 1761fi
1694done 1762done
1695 1763
1696 1764
1697echo $ac_n "checking for working const""... $ac_c" 1>&6 1765echo $ac_n "checking for working const""... $ac_c" 1>&6
1698echo "configure:1699: checking for working const" >&5 1766echo "configure:1767: checking for working const" >&5
1699if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1767if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6 1768 echo $ac_n "(cached) $ac_c" 1>&6
1701else 1769else
1702 cat > conftest.$ac_ext <<EOF 1770 cat > conftest.$ac_ext <<EOF
1703#line 1704 "configure" 1771#line 1772 "configure"
1704#include "confdefs.h" 1772#include "confdefs.h"
1705 1773
1706int main() { 1774int main() {
1707 1775
1708/* Ultrix mips cc rejects this. */ 1776/* Ultrix mips cc rejects this. */
1747 const int foo = 10; 1815 const int foo = 10;
1748} 1816}
1749 1817
1750; return 0; } 1818; return 0; }
1751EOF 1819EOF
1752if { (eval echo configure:1753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1820if { (eval echo configure:1821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1753 rm -rf conftest* 1821 rm -rf conftest*
1754 ac_cv_c_const=yes 1822 ac_cv_c_const=yes
1755else 1823else
1756 echo "configure: failed program was:" >&5 1824 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5 1825 cat conftest.$ac_ext >&5
1768EOF 1836EOF
1769 1837
1770fi 1838fi
1771 1839
1772echo $ac_n "checking for size_t""... $ac_c" 1>&6 1840echo $ac_n "checking for size_t""... $ac_c" 1>&6
1773echo "configure:1774: checking for size_t" >&5 1841echo "configure:1842: checking for size_t" >&5
1774if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1842if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6 1843 echo $ac_n "(cached) $ac_c" 1>&6
1776else 1844else
1777 cat > conftest.$ac_ext <<EOF 1845 cat > conftest.$ac_ext <<EOF
1778#line 1779 "configure" 1846#line 1847 "configure"
1779#include "confdefs.h" 1847#include "confdefs.h"
1780#include <sys/types.h> 1848#include <sys/types.h>
1781#if STDC_HEADERS 1849#if STDC_HEADERS
1782#include <stdlib.h> 1850#include <stdlib.h>
1783#include <stddef.h> 1851#include <stddef.h>
1803fi 1871fi
1804 1872
1805 1873
1806 1874
1807echo $ac_n "checking size of char""... $ac_c" 1>&6 1875echo $ac_n "checking size of char""... $ac_c" 1>&6
1808echo "configure:1809: checking size of char" >&5 1876echo "configure:1877: checking size of char" >&5
1809if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 1877if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6 1878 echo $ac_n "(cached) $ac_c" 1>&6
1811else 1879else
1812 if test "$cross_compiling" = yes; then 1880 if test "$cross_compiling" = yes; then
1813 ac_cv_sizeof_char=1 1881 ac_cv_sizeof_char=1
1814else 1882else
1815 cat > conftest.$ac_ext <<EOF 1883 cat > conftest.$ac_ext <<EOF
1816#line 1817 "configure" 1884#line 1885 "configure"
1817#include "confdefs.h" 1885#include "confdefs.h"
1818#include <stdio.h> 1886#include <stdio.h>
1819main() 1887main()
1820{ 1888{
1821 FILE *f=fopen("conftestval", "w"); 1889 FILE *f=fopen("conftestval", "w");
1822 if (!f) exit(1); 1890 if (!f) exit(1);
1823 fprintf(f, "%d\n", sizeof(char)); 1891 fprintf(f, "%d\n", sizeof(char));
1824 exit(0); 1892 exit(0);
1825} 1893}
1826EOF 1894EOF
1827if { (eval echo configure:1828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1895if { (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1828then 1896then
1829 ac_cv_sizeof_char=`cat conftestval` 1897 ac_cv_sizeof_char=`cat conftestval`
1830else 1898else
1831 echo "configure: failed program was:" >&5 1899 echo "configure: failed program was:" >&5
1832 cat conftest.$ac_ext >&5 1900 cat conftest.$ac_ext >&5
1842#define SIZEOF_CHAR $ac_cv_sizeof_char 1910#define SIZEOF_CHAR $ac_cv_sizeof_char
1843EOF 1911EOF
1844 1912
1845 1913
1846echo $ac_n "checking size of short""... $ac_c" 1>&6 1914echo $ac_n "checking size of short""... $ac_c" 1>&6
1847echo "configure:1848: checking size of short" >&5 1915echo "configure:1916: checking size of short" >&5
1848if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 1916if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6 1917 echo $ac_n "(cached) $ac_c" 1>&6
1850else 1918else
1851 if test "$cross_compiling" = yes; then 1919 if test "$cross_compiling" = yes; then
1852 ac_cv_sizeof_short=1 1920 ac_cv_sizeof_short=1
1853else 1921else
1854 cat > conftest.$ac_ext <<EOF 1922 cat > conftest.$ac_ext <<EOF
1855#line 1856 "configure" 1923#line 1924 "configure"
1856#include "confdefs.h" 1924#include "confdefs.h"
1857#include <stdio.h> 1925#include <stdio.h>
1858main() 1926main()
1859{ 1927{
1860 FILE *f=fopen("conftestval", "w"); 1928 FILE *f=fopen("conftestval", "w");
1861 if (!f) exit(1); 1929 if (!f) exit(1);
1862 fprintf(f, "%d\n", sizeof(short)); 1930 fprintf(f, "%d\n", sizeof(short));
1863 exit(0); 1931 exit(0);
1864} 1932}
1865EOF 1933EOF
1866if { (eval echo configure:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1934if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1867then 1935then
1868 ac_cv_sizeof_short=`cat conftestval` 1936 ac_cv_sizeof_short=`cat conftestval`
1869else 1937else
1870 echo "configure: failed program was:" >&5 1938 echo "configure: failed program was:" >&5
1871 cat conftest.$ac_ext >&5 1939 cat conftest.$ac_ext >&5
1881#define SIZEOF_SHORT $ac_cv_sizeof_short 1949#define SIZEOF_SHORT $ac_cv_sizeof_short
1882EOF 1950EOF
1883 1951
1884 1952
1885echo $ac_n "checking size of int""... $ac_c" 1>&6 1953echo $ac_n "checking size of int""... $ac_c" 1>&6
1886echo "configure:1887: checking size of int" >&5 1954echo "configure:1955: checking size of int" >&5
1887if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 1955if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6 1956 echo $ac_n "(cached) $ac_c" 1>&6
1889else 1957else
1890 if test "$cross_compiling" = yes; then 1958 if test "$cross_compiling" = yes; then
1891 ac_cv_sizeof_int=2 1959 ac_cv_sizeof_int=2
1892else 1960else
1893 cat > conftest.$ac_ext <<EOF 1961 cat > conftest.$ac_ext <<EOF
1894#line 1895 "configure" 1962#line 1963 "configure"
1895#include "confdefs.h" 1963#include "confdefs.h"
1896#include <stdio.h> 1964#include <stdio.h>
1897main() 1965main()
1898{ 1966{
1899 FILE *f=fopen("conftestval", "w"); 1967 FILE *f=fopen("conftestval", "w");
1900 if (!f) exit(1); 1968 if (!f) exit(1);
1901 fprintf(f, "%d\n", sizeof(int)); 1969 fprintf(f, "%d\n", sizeof(int));
1902 exit(0); 1970 exit(0);
1903} 1971}
1904EOF 1972EOF
1905if { (eval echo configure:1906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1973if { (eval echo configure:1974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1906then 1974then
1907 ac_cv_sizeof_int=`cat conftestval` 1975 ac_cv_sizeof_int=`cat conftestval`
1908else 1976else
1909 echo "configure: failed program was:" >&5 1977 echo "configure: failed program was:" >&5
1910 cat conftest.$ac_ext >&5 1978 cat conftest.$ac_ext >&5
1920#define SIZEOF_INT $ac_cv_sizeof_int 1988#define SIZEOF_INT $ac_cv_sizeof_int
1921EOF 1989EOF
1922 1990
1923 1991
1924echo $ac_n "checking size of long""... $ac_c" 1>&6 1992echo $ac_n "checking size of long""... $ac_c" 1>&6
1925echo "configure:1926: checking size of long" >&5 1993echo "configure:1994: checking size of long" >&5
1926if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 1994if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1927 echo $ac_n "(cached) $ac_c" 1>&6 1995 echo $ac_n "(cached) $ac_c" 1>&6
1928else 1996else
1929 if test "$cross_compiling" = yes; then 1997 if test "$cross_compiling" = yes; then
1930 ac_cv_sizeof_long=4 1998 ac_cv_sizeof_long=4
1931else 1999else
1932 cat > conftest.$ac_ext <<EOF 2000 cat > conftest.$ac_ext <<EOF
1933#line 1934 "configure" 2001#line 2002 "configure"
1934#include "confdefs.h" 2002#include "confdefs.h"
1935#include <stdio.h> 2003#include <stdio.h>
1936main() 2004main()
1937{ 2005{
1938 FILE *f=fopen("conftestval", "w"); 2006 FILE *f=fopen("conftestval", "w");
1939 if (!f) exit(1); 2007 if (!f) exit(1);
1940 fprintf(f, "%d\n", sizeof(long)); 2008 fprintf(f, "%d\n", sizeof(long));
1941 exit(0); 2009 exit(0);
1942} 2010}
1943EOF 2011EOF
1944if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2012if { (eval echo configure:2013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1945then 2013then
1946 ac_cv_sizeof_long=`cat conftestval` 2014 ac_cv_sizeof_long=`cat conftestval`
1947else 2015else
1948 echo "configure: failed program was:" >&5 2016 echo "configure: failed program was:" >&5
1949 cat conftest.$ac_ext >&5 2017 cat conftest.$ac_ext >&5
1960EOF 2028EOF
1961 2029
1962 2030
1963 2031
1964echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 2032echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6
1965echo "configure:1966: checking for an 8 bit integer type" >&5 2033echo "configure:2034: checking for an 8 bit integer type" >&5
1966if test $ac_cv_sizeof_char -ge 1 ; then 2034if test $ac_cv_sizeof_char -ge 1 ; then
1967 INT_8_BIT=char 2035 INT_8_BIT=char
1968 echo "$ac_t""char" 1>&6 2036 echo "$ac_t""char" 1>&6
1969elif test $ac_cv_sizeof_short -ge 1 ; then 2037elif test $ac_cv_sizeof_short -ge 1 ; then
1970 INT_8_BIT=short 2038 INT_8_BIT=short
1978else 2046else
1979 { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } 2047 { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; }
1980fi 2048fi
1981 2049
1982echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 2050echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6
1983echo "configure:1984: checking for a 16 bit integer type" >&5 2051echo "configure:2052: checking for a 16 bit integer type" >&5
1984if test $ac_cv_sizeof_char -ge 2 ; then 2052if test $ac_cv_sizeof_char -ge 2 ; then
1985 INT_16_BIT=char 2053 INT_16_BIT=char
1986 echo "$ac_t""char" 1>&6 2054 echo "$ac_t""char" 1>&6
1987elif test $ac_cv_sizeof_short -ge 2 ; then 2055elif test $ac_cv_sizeof_short -ge 2 ; then
1988 INT_16_BIT=short 2056 INT_16_BIT=short
1996else 2064else
1997 { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } 2065 { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; }
1998fi 2066fi
1999 2067
2000echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 2068echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6
2001echo "configure:2002: checking for a 32 bit integer type" >&5 2069echo "configure:2070: checking for a 32 bit integer type" >&5
2002if test $ac_cv_sizeof_char -ge 4 ; then 2070if test $ac_cv_sizeof_char -ge 4 ; then
2003 INT_32_BIT=char 2071 INT_32_BIT=char
2004 echo "$ac_t""char" 1>&6 2072 echo "$ac_t""char" 1>&6
2005elif test $ac_cv_sizeof_short -ge 4 ; then 2073elif test $ac_cv_sizeof_short -ge 4 ; then
2006 INT_32_BIT=short 2074 INT_32_BIT=short
2018 2086
2019 2087
2020 2088
2021 2089
2022echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2090echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2023echo "configure:2024: checking for vprintf" >&5 2091echo "configure:2092: checking for vprintf" >&5
2024if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2092if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6 2093 echo $ac_n "(cached) $ac_c" 1>&6
2026else 2094else
2027 cat > conftest.$ac_ext <<EOF 2095 cat > conftest.$ac_ext <<EOF
2028#line 2029 "configure" 2096#line 2097 "configure"
2029#include "confdefs.h" 2097#include "confdefs.h"
2030/* System header to define __stub macros and hopefully few prototypes, 2098/* System header to define __stub macros and hopefully few prototypes,
2031 which can conflict with char vprintf(); below. */ 2099 which can conflict with char vprintf(); below. */
2032#include <assert.h> 2100#include <assert.h>
2033/* Override any gcc2 internal prototype to avoid an error. */ 2101/* Override any gcc2 internal prototype to avoid an error. */
2046vprintf(); 2114vprintf();
2047#endif 2115#endif
2048 2116
2049; return 0; } 2117; return 0; }
2050EOF 2118EOF
2051if { (eval echo configure:2052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2119if { (eval echo configure:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2052 rm -rf conftest* 2120 rm -rf conftest*
2053 eval "ac_cv_func_vprintf=yes" 2121 eval "ac_cv_func_vprintf=yes"
2054else 2122else
2055 echo "configure: failed program was:" >&5 2123 echo "configure: failed program was:" >&5
2056 cat conftest.$ac_ext >&5 2124 cat conftest.$ac_ext >&5
2070 echo "$ac_t""no" 1>&6 2138 echo "$ac_t""no" 1>&6
2071fi 2139fi
2072 2140
2073if test "$ac_cv_func_vprintf" != yes; then 2141if test "$ac_cv_func_vprintf" != yes; then
2074echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2142echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2075echo "configure:2076: checking for _doprnt" >&5 2143echo "configure:2144: checking for _doprnt" >&5
2076if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2144if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6 2145 echo $ac_n "(cached) $ac_c" 1>&6
2078else 2146else
2079 cat > conftest.$ac_ext <<EOF 2147 cat > conftest.$ac_ext <<EOF
2080#line 2081 "configure" 2148#line 2149 "configure"
2081#include "confdefs.h" 2149#include "confdefs.h"
2082/* System header to define __stub macros and hopefully few prototypes, 2150/* System header to define __stub macros and hopefully few prototypes,
2083 which can conflict with char _doprnt(); below. */ 2151 which can conflict with char _doprnt(); below. */
2084#include <assert.h> 2152#include <assert.h>
2085/* Override any gcc2 internal prototype to avoid an error. */ 2153/* Override any gcc2 internal prototype to avoid an error. */
2098_doprnt(); 2166_doprnt();
2099#endif 2167#endif
2100 2168
2101; return 0; } 2169; return 0; }
2102EOF 2170EOF
2103if { (eval echo configure:2104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2171if { (eval echo configure:2172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2104 rm -rf conftest* 2172 rm -rf conftest*
2105 eval "ac_cv_func__doprnt=yes" 2173 eval "ac_cv_func__doprnt=yes"
2106else 2174else
2107 echo "configure: failed program was:" >&5 2175 echo "configure: failed program was:" >&5
2108 cat conftest.$ac_ext >&5 2176 cat conftest.$ac_ext >&5
2125fi 2193fi
2126 2194
2127for ac_func in strdup 2195for ac_func in strdup
2128do 2196do
2129echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2197echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2130echo "configure:2131: checking for $ac_func" >&5 2198echo "configure:2199: checking for $ac_func" >&5
2131if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2199if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6 2200 echo $ac_n "(cached) $ac_c" 1>&6
2133else 2201else
2134 cat > conftest.$ac_ext <<EOF 2202 cat > conftest.$ac_ext <<EOF
2135#line 2136 "configure" 2203#line 2204 "configure"
2136#include "confdefs.h" 2204#include "confdefs.h"
2137/* System header to define __stub macros and hopefully few prototypes, 2205/* System header to define __stub macros and hopefully few prototypes,
2138 which can conflict with char $ac_func(); below. */ 2206 which can conflict with char $ac_func(); below. */
2139#include <assert.h> 2207#include <assert.h>
2140/* Override any gcc2 internal prototype to avoid an error. */ 2208/* Override any gcc2 internal prototype to avoid an error. */
2153$ac_func(); 2221$ac_func();
2154#endif 2222#endif
2155 2223
2156; return 0; } 2224; return 0; }
2157EOF 2225EOF
2158if { (eval echo configure:2159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2226if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2159 rm -rf conftest* 2227 rm -rf conftest*
2160 eval "ac_cv_func_$ac_func=yes" 2228 eval "ac_cv_func_$ac_func=yes"
2161else 2229else
2162 echo "configure: failed program was:" >&5 2230 echo "configure: failed program was:" >&5
2163 cat conftest.$ac_ext >&5 2231 cat conftest.$ac_ext >&5
2180done 2248done
2181 2249
2182for ac_func in strdup 2250for ac_func in strdup
2183do 2251do
2184echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2252echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2185echo "configure:2186: checking for $ac_func" >&5 2253echo "configure:2254: checking for $ac_func" >&5
2186if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2254if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6 2255 echo $ac_n "(cached) $ac_c" 1>&6
2188else 2256else
2189 cat > conftest.$ac_ext <<EOF 2257 cat > conftest.$ac_ext <<EOF
2190#line 2191 "configure" 2258#line 2259 "configure"
2191#include "confdefs.h" 2259#include "confdefs.h"
2192/* System header to define __stub macros and hopefully few prototypes, 2260/* System header to define __stub macros and hopefully few prototypes,
2193 which can conflict with char $ac_func(); below. */ 2261 which can conflict with char $ac_func(); below. */
2194#include <assert.h> 2262#include <assert.h>
2195/* Override any gcc2 internal prototype to avoid an error. */ 2263/* Override any gcc2 internal prototype to avoid an error. */
2208$ac_func(); 2276$ac_func();
2209#endif 2277#endif
2210 2278
2211; return 0; } 2279; return 0; }
2212EOF 2280EOF
2213if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2281if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2214 rm -rf conftest* 2282 rm -rf conftest*
2215 eval "ac_cv_func_$ac_func=yes" 2283 eval "ac_cv_func_$ac_func=yes"
2216else 2284else
2217 echo "configure: failed program was:" >&5 2285 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5 2286 cat conftest.$ac_ext >&5
2299 ASCIIDOCS_TRUE= 2367 ASCIIDOCS_TRUE=
2300 ASCIIDOCS_FALSE='#' 2368 ASCIIDOCS_FALSE='#'
2301else 2369else
2302 ASCIIDOCS_TRUE='#' 2370 ASCIIDOCS_TRUE='#'
2303 ASCIIDOCS_FALSE= 2371 ASCIIDOCS_FALSE=
2372fi
2373
2374# Check whether --enable-rtf-docs or --disable-rtf-docs was given.
2375if test "${enable_rtf_docs+set}" = set; then
2376 enableval="$enable_rtf_docs"
2377 case "${enableval}" in
2378 yes) rtfdocs=true ;;
2379 no) rtfdocs=false ;;
2380 *) { echo "configure: error: bad value ${enableval} for --enable-rtf-docs" 1>&2; exit 1; } ;;
2381esac
2382else
2383 rtfdocs=false
2384fi
2385
2386
2387
2388if test x$rtfdocs = xtrue; then
2389 RTFDOCS_TRUE=
2390 RTFDOCS_FALSE='#'
2391else
2392 RTFDOCS_TRUE='#'
2393 RTFDOCS_FALSE=
2304fi 2394fi
2305 2395
2306trap '' 1 2 15 2396trap '' 1 2 15
2307cat > confcache <<\EOF 2397cat > confcache <<\EOF
2308# This file is a shell script that caches the results of configure 2398# This file is a shell script that caches the results of configure
2461s%@CC@%$CC%g 2551s%@CC@%$CC%g
2462s%@LD@%$LD%g 2552s%@LD@%$LD%g
2463s%@NM@%$NM%g 2553s%@NM@%$NM%g
2464s%@LN_S@%$LN_S%g 2554s%@LN_S@%$LN_S%g
2465s%@LIBTOOL@%$LIBTOOL%g 2555s%@LIBTOOL@%$LIBTOOL%g
2556s%@LIB_MAGICK@%$LIB_MAGICK%g
2466s%@CPP@%$CPP%g 2557s%@CPP@%$CPP%g
2467s%@INT_8_BIT@%$INT_8_BIT%g 2558s%@INT_8_BIT@%$INT_8_BIT%g
2468s%@INT_16_BIT@%$INT_16_BIT%g 2559s%@INT_16_BIT@%$INT_16_BIT%g
2469s%@INT_32_BIT@%$INT_32_BIT%g 2560s%@INT_32_BIT@%$INT_32_BIT%g
2470s%@LIBOBJS@%$LIBOBJS%g 2561s%@LIBOBJS@%$LIBOBJS%g
2472s%@HTMLDOCS_FALSE@%$HTMLDOCS_FALSE%g 2563s%@HTMLDOCS_FALSE@%$HTMLDOCS_FALSE%g
2473s%@HTML4DOCS_TRUE@%$HTML4DOCS_TRUE%g 2564s%@HTML4DOCS_TRUE@%$HTML4DOCS_TRUE%g
2474s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g 2565s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g
2475s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g 2566s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g
2476s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g 2567s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g
2568s%@RTFDOCS_TRUE@%$RTFDOCS_TRUE%g
2569s%@RTFDOCS_FALSE@%$RTFDOCS_FALSE%g
2477 2570
2478CEOF 2571CEOF
2479EOF 2572EOF
2480 2573
2481cat >> $CONFIG_STATUS <<\EOF 2574cat >> $CONFIG_STATUS <<\EOF

Legend:
Removed from v.2  
changed lines
  Added in v.16

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26