comparison configure @ 198:79e324213734 noffle

[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some items causing RPM3 vs RPM4 problems. * configure,configure.in: Bump version to 1.1.1-unstable-develop, and add --with-spooldir and --with-configfile options (idea due to Mirko Liss).
author bears
date Tue, 06 Nov 2001 21:22:19 +0000
parents fed1334d766b
children b4f1731a6470
comparison
equal deleted inserted replaced
197:24d4cd032da5 198:79e324213734
14 ac_help="$ac_help 14 ac_help="$ac_help
15 15
16 NOFFLE options: 16 NOFFLE options:
17 --enable-debug=[no/yes] build with debugging [default=no]" 17 --enable-debug=[no/yes] build with debugging [default=no]"
18 ac_help="$ac_help 18 ac_help="$ac_help
19 --with-docdir=PATH specify where to put the documentation 19 --with-docdir=PATH specify where to put the documentation"
20 " 20 ac_help="$ac_help
21 --with-spooldir=PATH news spool directory (/var/spool/noffle)"
22 ac_help="$ac_help
23 --with-configfile=PATH configuration file (/etc/noffle.conf)"
21 24
22 # Initialize some variables set by options. 25 # Initialize some variables set by options.
23 # The variables have the same names as the options, with 26 # The variables have the same names as the options, with
24 # dashes changed to underlines. 27 # dashes changed to underlines.
25 build=NONE 28 build=NONE
530 533
531 534
532 535
533 536
534 PACKAGE=noffle 537 PACKAGE=noffle
535 VERSION=1.1-unstable-develop 538 VERSION=1.1.1-unstable-develop
536 539
537 540
538 541
539 542
540 ac_aux_dir= 543 ac_aux_dir=
566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 569 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 570 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 571 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
569 # ./install, which can be erroneously created by make from ./install.sh. 572 # ./install, which can be erroneously created by make from ./install.sh.
570 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 573 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
571 echo "configure:572: checking for a BSD compatible install" >&5 574 echo "configure:575: checking for a BSD compatible install" >&5
572 if test -z "$INSTALL"; then 575 if test -z "$INSTALL"; then
573 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 576 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
574 echo $ac_n "(cached) $ac_c" 1>&6 577 echo $ac_n "(cached) $ac_c" 1>&6
575 else 578 else
576 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 579 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 622 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
620 623
621 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 624 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
622 625
623 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 626 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
624 echo "configure:625: checking whether build environment is sane" >&5 627 echo "configure:628: checking whether build environment is sane" >&5
625 # Just in case 628 # Just in case
626 sleep 1 629 sleep 1
627 echo timestamp > conftestfile 630 echo timestamp > conftestfile
628 # Do `set' in a subshell so we don't clobber the current shell's 631 # 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 632 # arguments. Must try -L first in case configure is actually a
676 679
677 # sed with no file args requires a program. 680 # sed with no file args requires a program.
678 test "$program_transform_name" = "" && program_transform_name="s,x,x," 681 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
679 682
680 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 683 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
681 echo "configure:682: checking whether ${MAKE-make} sets \${MAKE}" >&5 684 echo "configure:685: checking whether ${MAKE-make} sets \${MAKE}" >&5
682 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 685 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
683 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 686 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
684 echo $ac_n "(cached) $ac_c" 1>&6 687 echo $ac_n "(cached) $ac_c" 1>&6
685 else 688 else
686 cat > conftestmake <<\EOF 689 cat > conftestmake <<\EOF
722 725
723 726
724 727
725 missing_dir=`cd $ac_aux_dir && pwd` 728 missing_dir=`cd $ac_aux_dir && pwd`
726 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 729 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
727 echo "configure:728: checking for working aclocal" >&5 730 echo "configure:731: checking for working aclocal" >&5
728 # Run test in a subshell; some versions of sh will print an error if 731 # 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. 732 # an executable is not found, even if stderr is redirected.
730 # Redirect stdin to placate older versions of autoconf. Sigh. 733 # Redirect stdin to placate older versions of autoconf. Sigh.
731 if (aclocal --version) < /dev/null > /dev/null 2>&1; then 734 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
732 ACLOCAL=aclocal 735 ACLOCAL=aclocal
735 ACLOCAL="$missing_dir/missing aclocal" 738 ACLOCAL="$missing_dir/missing aclocal"
736 echo "$ac_t""missing" 1>&6 739 echo "$ac_t""missing" 1>&6
737 fi 740 fi
738 741
739 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 742 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
740 echo "configure:741: checking for working autoconf" >&5 743 echo "configure:744: checking for working autoconf" >&5
741 # Run test in a subshell; some versions of sh will print an error if 744 # 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. 745 # an executable is not found, even if stderr is redirected.
743 # Redirect stdin to placate older versions of autoconf. Sigh. 746 # Redirect stdin to placate older versions of autoconf. Sigh.
744 if (autoconf --version) < /dev/null > /dev/null 2>&1; then 747 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
745 AUTOCONF=autoconf 748 AUTOCONF=autoconf
748 AUTOCONF="$missing_dir/missing autoconf" 751 AUTOCONF="$missing_dir/missing autoconf"
749 echo "$ac_t""missing" 1>&6 752 echo "$ac_t""missing" 1>&6
750 fi 753 fi
751 754
752 echo $ac_n "checking for working automake""... $ac_c" 1>&6 755 echo $ac_n "checking for working automake""... $ac_c" 1>&6
753 echo "configure:754: checking for working automake" >&5 756 echo "configure:757: checking for working automake" >&5
754 # Run test in a subshell; some versions of sh will print an error if 757 # 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. 758 # an executable is not found, even if stderr is redirected.
756 # Redirect stdin to placate older versions of autoconf. Sigh. 759 # Redirect stdin to placate older versions of autoconf. Sigh.
757 if (automake --version) < /dev/null > /dev/null 2>&1; then 760 if (automake --version) < /dev/null > /dev/null 2>&1; then
758 AUTOMAKE=automake 761 AUTOMAKE=automake
761 AUTOMAKE="$missing_dir/missing automake" 764 AUTOMAKE="$missing_dir/missing automake"
762 echo "$ac_t""missing" 1>&6 765 echo "$ac_t""missing" 1>&6
763 fi 766 fi
764 767
765 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 768 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
766 echo "configure:767: checking for working autoheader" >&5 769 echo "configure:770: checking for working autoheader" >&5
767 # Run test in a subshell; some versions of sh will print an error if 770 # 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. 771 # an executable is not found, even if stderr is redirected.
769 # Redirect stdin to placate older versions of autoconf. Sigh. 772 # Redirect stdin to placate older versions of autoconf. Sigh.
770 if (autoheader --version) < /dev/null > /dev/null 2>&1; then 773 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
771 AUTOHEADER=autoheader 774 AUTOHEADER=autoheader
774 AUTOHEADER="$missing_dir/missing autoheader" 777 AUTOHEADER="$missing_dir/missing autoheader"
775 echo "$ac_t""missing" 1>&6 778 echo "$ac_t""missing" 1>&6
776 fi 779 fi
777 780
778 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 781 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
779 echo "configure:780: checking for working makeinfo" >&5 782 echo "configure:783: checking for working makeinfo" >&5
780 # Run test in a subshell; some versions of sh will print an error if 783 # 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. 784 # an executable is not found, even if stderr is redirected.
782 # Redirect stdin to placate older versions of autoconf. Sigh. 785 # Redirect stdin to placate older versions of autoconf. Sigh.
783 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 786 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
784 MAKEINFO=makeinfo 787 MAKEINFO=makeinfo
807 810
808 811
809 # Extract the first word of "gcc", so it can be a program name with args. 812 # Extract the first word of "gcc", so it can be a program name with args.
810 set dummy gcc; ac_word=$2 813 set dummy gcc; ac_word=$2
811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
812 echo "configure:813: checking for $ac_word" >&5 815 echo "configure:816: checking for $ac_word" >&5
813 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 816 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
814 echo $ac_n "(cached) $ac_c" 1>&6 817 echo $ac_n "(cached) $ac_c" 1>&6
815 else 818 else
816 if test -n "$CC"; then 819 if test -n "$CC"; then
817 ac_cv_prog_CC="$CC" # Let the user override the test. 820 ac_cv_prog_CC="$CC" # Let the user override the test.
837 840
838 if test -z "$CC"; then 841 if test -z "$CC"; then
839 # Extract the first word of "cc", so it can be a program name with args. 842 # Extract the first word of "cc", so it can be a program name with args.
840 set dummy cc; ac_word=$2 843 set dummy cc; ac_word=$2
841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
842 echo "configure:843: checking for $ac_word" >&5 845 echo "configure:846: checking for $ac_word" >&5
843 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 846 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6 847 echo $ac_n "(cached) $ac_c" 1>&6
845 else 848 else
846 if test -n "$CC"; then 849 if test -n "$CC"; then
847 ac_cv_prog_CC="$CC" # Let the user override the test. 850 ac_cv_prog_CC="$CC" # Let the user override the test.
888 case "`uname -s`" in 891 case "`uname -s`" in
889 *win32* | *WIN32*) 892 *win32* | *WIN32*)
890 # Extract the first word of "cl", so it can be a program name with args. 893 # Extract the first word of "cl", so it can be a program name with args.
891 set dummy cl; ac_word=$2 894 set dummy cl; ac_word=$2
892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 895 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
893 echo "configure:894: checking for $ac_word" >&5 896 echo "configure:897: checking for $ac_word" >&5
894 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 897 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
895 echo $ac_n "(cached) $ac_c" 1>&6 898 echo $ac_n "(cached) $ac_c" 1>&6
896 else 899 else
897 if test -n "$CC"; then 900 if test -n "$CC"; then
898 ac_cv_prog_CC="$CC" # Let the user override the test. 901 ac_cv_prog_CC="$CC" # Let the user override the test.
920 fi 923 fi
921 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 924 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
922 fi 925 fi
923 926
924 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 927 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
925 echo "configure:926: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 928 echo "configure:929: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
926 929
927 ac_ext=c 930 ac_ext=c
928 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 931 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
929 ac_cpp='$CPP $CPPFLAGS' 932 ac_cpp='$CPP $CPPFLAGS'
930 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 933 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
931 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 934 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
932 cross_compiling=$ac_cv_prog_cc_cross 935 cross_compiling=$ac_cv_prog_cc_cross
933 936
934 cat > conftest.$ac_ext << EOF 937 cat > conftest.$ac_ext << EOF
935 938
936 #line 937 "configure" 939 #line 940 "configure"
937 #include "confdefs.h" 940 #include "confdefs.h"
938 941
939 main(){return(0);} 942 main(){return(0);}
940 EOF 943 EOF
941 if { (eval echo configure:942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 944 if { (eval echo configure:945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
942 ac_cv_prog_cc_works=yes 945 ac_cv_prog_cc_works=yes
943 # If we can't run a trivial program, we are probably using a cross compiler. 946 # If we can't run a trivial program, we are probably using a cross compiler.
944 if (./conftest; exit) 2>/dev/null; then 947 if (./conftest; exit) 2>/dev/null; then
945 ac_cv_prog_cc_cross=no 948 ac_cv_prog_cc_cross=no
946 else 949 else
962 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 965 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
963 if test $ac_cv_prog_cc_works = no; then 966 if test $ac_cv_prog_cc_works = no; then
964 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 967 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
965 fi 968 fi
966 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 969 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
967 echo "configure:968: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 970 echo "configure:971: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
968 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 971 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
969 cross_compiling=$ac_cv_prog_cc_cross 972 cross_compiling=$ac_cv_prog_cc_cross
970 973
971 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 974 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
972 echo "configure:973: checking whether we are using GNU C" >&5 975 echo "configure:976: checking whether we are using GNU C" >&5
973 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 976 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6 977 echo $ac_n "(cached) $ac_c" 1>&6
975 else 978 else
976 cat > conftest.c <<EOF 979 cat > conftest.c <<EOF
977 #ifdef __GNUC__ 980 #ifdef __GNUC__
978 yes; 981 yes;
979 #endif 982 #endif
980 EOF 983 EOF
981 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 984 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
982 ac_cv_prog_gcc=yes 985 ac_cv_prog_gcc=yes
983 else 986 else
984 ac_cv_prog_gcc=no 987 ac_cv_prog_gcc=no
985 fi 988 fi
986 fi 989 fi
995 998
996 ac_test_CFLAGS="${CFLAGS+set}" 999 ac_test_CFLAGS="${CFLAGS+set}"
997 ac_save_CFLAGS="$CFLAGS" 1000 ac_save_CFLAGS="$CFLAGS"
998 CFLAGS= 1001 CFLAGS=
999 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1002 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1000 echo "configure:1001: checking whether ${CC-cc} accepts -g" >&5 1003 echo "configure:1004: checking whether ${CC-cc} accepts -g" >&5
1001 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1004 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1002 echo $ac_n "(cached) $ac_c" 1>&6 1005 echo $ac_n "(cached) $ac_c" 1>&6
1003 else 1006 else
1004 echo 'void f(){}' > conftest.c 1007 echo 'void f(){}' > conftest.c
1005 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1008 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1027 CFLAGS= 1030 CFLAGS=
1028 fi 1031 fi
1029 fi 1032 fi
1030 1033
1031 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1034 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1032 echo "configure:1033: checking how to run the C preprocessor" >&5 1035 echo "configure:1036: checking how to run the C preprocessor" >&5
1033 # On Suns, sometimes $CPP names a directory. 1036 # On Suns, sometimes $CPP names a directory.
1034 if test -n "$CPP" && test -d "$CPP"; then 1037 if test -n "$CPP" && test -d "$CPP"; then
1035 CPP= 1038 CPP=
1036 fi 1039 fi
1037 if test -z "$CPP"; then 1040 if test -z "$CPP"; then
1042 # substituted into the Makefile and "${CC-cc}" will confuse make. 1045 # substituted into the Makefile and "${CC-cc}" will confuse make.
1043 CPP="${CC-cc} -E" 1046 CPP="${CC-cc} -E"
1044 # On the NeXT, cc -E runs the code through the compiler's parser, 1047 # On the NeXT, cc -E runs the code through the compiler's parser,
1045 # not just through cpp. 1048 # not just through cpp.
1046 cat > conftest.$ac_ext <<EOF 1049 cat > conftest.$ac_ext <<EOF
1047 #line 1048 "configure" 1050 #line 1051 "configure"
1048 #include "confdefs.h" 1051 #include "confdefs.h"
1049 #include <assert.h> 1052 #include <assert.h>
1050 Syntax Error 1053 Syntax Error
1051 EOF 1054 EOF
1052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1053 { (eval echo configure:1054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1056 { (eval echo configure:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1055 if test -z "$ac_err"; then 1058 if test -z "$ac_err"; then
1056 : 1059 :
1057 else 1060 else
1058 echo "$ac_err" >&5 1061 echo "$ac_err" >&5
1059 echo "configure: failed program was:" >&5 1062 echo "configure: failed program was:" >&5
1060 cat conftest.$ac_ext >&5 1063 cat conftest.$ac_ext >&5
1061 rm -rf conftest* 1064 rm -rf conftest*
1062 CPP="${CC-cc} -E -traditional-cpp" 1065 CPP="${CC-cc} -E -traditional-cpp"
1063 cat > conftest.$ac_ext <<EOF 1066 cat > conftest.$ac_ext <<EOF
1064 #line 1065 "configure" 1067 #line 1068 "configure"
1065 #include "confdefs.h" 1068 #include "confdefs.h"
1066 #include <assert.h> 1069 #include <assert.h>
1067 Syntax Error 1070 Syntax Error
1068 EOF 1071 EOF
1069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1070 { (eval echo configure:1071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1073 { (eval echo configure:1074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1072 if test -z "$ac_err"; then 1075 if test -z "$ac_err"; then
1073 : 1076 :
1074 else 1077 else
1075 echo "$ac_err" >&5 1078 echo "$ac_err" >&5
1076 echo "configure: failed program was:" >&5 1079 echo "configure: failed program was:" >&5
1077 cat conftest.$ac_ext >&5 1080 cat conftest.$ac_ext >&5
1078 rm -rf conftest* 1081 rm -rf conftest*
1079 CPP="${CC-cc} -nologo -E" 1082 CPP="${CC-cc} -nologo -E"
1080 cat > conftest.$ac_ext <<EOF 1083 cat > conftest.$ac_ext <<EOF
1081 #line 1082 "configure" 1084 #line 1085 "configure"
1082 #include "confdefs.h" 1085 #include "confdefs.h"
1083 #include <assert.h> 1086 #include <assert.h>
1084 Syntax Error 1087 Syntax Error
1085 EOF 1088 EOF
1086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1087 { (eval echo configure:1088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1090 { (eval echo configure:1091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1089 if test -z "$ac_err"; then 1092 if test -z "$ac_err"; then
1090 : 1093 :
1091 else 1094 else
1092 echo "$ac_err" >&5 1095 echo "$ac_err" >&5
1108 fi 1111 fi
1109 echo "$ac_t""$CPP" 1>&6 1112 echo "$ac_t""$CPP" 1>&6
1110 1113
1111 if test $ac_cv_prog_gcc = yes; then 1114 if test $ac_cv_prog_gcc = yes; then
1112 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 1115 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1113 echo "configure:1114: checking whether ${CC-cc} needs -traditional" >&5 1116 echo "configure:1117: checking whether ${CC-cc} needs -traditional" >&5
1114 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 1117 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6 1118 echo $ac_n "(cached) $ac_c" 1>&6
1116 else 1119 else
1117 ac_pattern="Autoconf.*'x'" 1120 ac_pattern="Autoconf.*'x'"
1118 cat > conftest.$ac_ext <<EOF 1121 cat > conftest.$ac_ext <<EOF
1119 #line 1120 "configure" 1122 #line 1123 "configure"
1120 #include "confdefs.h" 1123 #include "confdefs.h"
1121 #include <sgtty.h> 1124 #include <sgtty.h>
1122 Autoconf TIOCGETP 1125 Autoconf TIOCGETP
1123 EOF 1126 EOF
1124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1132 rm -f conftest* 1135 rm -f conftest*
1133 1136
1134 1137
1135 if test $ac_cv_prog_gcc_traditional = no; then 1138 if test $ac_cv_prog_gcc_traditional = no; then
1136 cat > conftest.$ac_ext <<EOF 1139 cat > conftest.$ac_ext <<EOF
1137 #line 1138 "configure" 1140 #line 1141 "configure"
1138 #include "confdefs.h" 1141 #include "confdefs.h"
1139 #include <termio.h> 1142 #include <termio.h>
1140 Autoconf TCGETA 1143 Autoconf TCGETA
1141 EOF 1144 EOF
1142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1165 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1168 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1166 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 1169 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1167 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1170 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1168 # ./install, which can be erroneously created by make from ./install.sh. 1171 # ./install, which can be erroneously created by make from ./install.sh.
1169 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1172 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1170 echo "configure:1171: checking for a BSD compatible install" >&5 1173 echo "configure:1174: checking for a BSD compatible install" >&5
1171 if test -z "$INSTALL"; then 1174 if test -z "$INSTALL"; then
1172 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1175 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6 1176 echo $ac_n "(cached) $ac_c" 1>&6
1174 else 1177 else
1175 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1178 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1218 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1221 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1219 1222
1220 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1223 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1221 1224
1222 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1225 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1223 echo "configure:1224: checking whether ${MAKE-make} sets \${MAKE}" >&5 1226 echo "configure:1227: checking whether ${MAKE-make} sets \${MAKE}" >&5
1224 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1227 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1225 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1228 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6 1229 echo $ac_n "(cached) $ac_c" 1>&6
1227 else 1230 else
1228 cat > conftestmake <<\EOF 1231 cat > conftestmake <<\EOF
1248 1251
1249 1252
1250 # Extract the first word of "sendmail", so it can be a program name with args. 1253 # Extract the first word of "sendmail", so it can be a program name with args.
1251 set dummy sendmail; ac_word=$2 1254 set dummy sendmail; ac_word=$2
1252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1253 echo "configure:1254: checking for $ac_word" >&5 1256 echo "configure:1257: checking for $ac_word" >&5
1254 if eval "test \"`echo '$''{'ac_cv_path_SENDMAILPROG'+set}'`\" = set"; then 1257 if eval "test \"`echo '$''{'ac_cv_path_SENDMAILPROG'+set}'`\" = set"; then
1255 echo $ac_n "(cached) $ac_c" 1>&6 1258 echo $ac_n "(cached) $ac_c" 1>&6
1256 else 1259 else
1257 case "$SENDMAILPROG" in 1260 case "$SENDMAILPROG" in
1258 /*) 1261 /*)
1287 { echo "configure: error: sendmail program not found in /usr/lib:/usr/sbin:$PATH ." 1>&2; exit 1; } 1290 { echo "configure: error: sendmail program not found in /usr/lib:/usr/sbin:$PATH ." 1>&2; exit 1; }
1288 fi 1291 fi
1289 1292
1290 1293
1291 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1294 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1292 echo "configure:1293: checking for AIX" >&5 1295 echo "configure:1296: checking for AIX" >&5
1293 cat > conftest.$ac_ext <<EOF 1296 cat > conftest.$ac_ext <<EOF
1294 #line 1295 "configure" 1297 #line 1298 "configure"
1295 #include "confdefs.h" 1298 #include "confdefs.h"
1296 #ifdef _AIX 1299 #ifdef _AIX
1297 yes 1300 yes
1298 #endif 1301 #endif
1299 1302
1311 fi 1314 fi
1312 rm -f conftest* 1315 rm -f conftest*
1313 1316
1314 1317
1315 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 1318 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1316 echo "configure:1317: checking for POSIXized ISC" >&5 1319 echo "configure:1320: checking for POSIXized ISC" >&5
1317 if test -d /etc/conf/kconfig.d && 1320 if test -d /etc/conf/kconfig.d &&
1318 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 1321 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1319 then 1322 then
1320 echo "$ac_t""yes" 1>&6 1323 echo "$ac_t""yes" 1>&6
1321 ISC=yes # If later tests want to check for ISC. 1324 ISC=yes # If later tests want to check for ISC.
1333 ISC= 1336 ISC=
1334 fi 1337 fi
1335 1338
1336 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` 1339 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1337 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 1340 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1338 echo "configure:1339: checking for minix/config.h" >&5 1341 echo "configure:1342: checking for minix/config.h" >&5
1339 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1342 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6 1343 echo $ac_n "(cached) $ac_c" 1>&6
1341 else 1344 else
1342 cat > conftest.$ac_ext <<EOF 1345 cat > conftest.$ac_ext <<EOF
1343 #line 1344 "configure" 1346 #line 1347 "configure"
1344 #include "confdefs.h" 1347 #include "confdefs.h"
1345 #include <minix/config.h> 1348 #include <minix/config.h>
1346 EOF 1349 EOF
1347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1348 { (eval echo configure:1349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1351 { (eval echo configure:1352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1350 if test -z "$ac_err"; then 1353 if test -z "$ac_err"; then
1351 rm -rf conftest* 1354 rm -rf conftest*
1352 eval "ac_cv_header_$ac_safe=yes" 1355 eval "ac_cv_header_$ac_safe=yes"
1353 else 1356 else
1392 # candidate. So, let's use it below instead of gethostbyname, and see. 1395 # candidate. So, let's use it below instead of gethostbyname, and see.
1393 1396
1394 # [ This is ripped from GNU tar. ] 1397 # [ This is ripped from GNU tar. ]
1395 1398
1396 echo $ac_n "checking for gethostent""... $ac_c" 1>&6 1399 echo $ac_n "checking for gethostent""... $ac_c" 1>&6
1397 echo "configure:1398: checking for gethostent" >&5 1400 echo "configure:1401: checking for gethostent" >&5
1398 if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then 1401 if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6 1402 echo $ac_n "(cached) $ac_c" 1>&6
1400 else 1403 else
1401 cat > conftest.$ac_ext <<EOF 1404 cat > conftest.$ac_ext <<EOF
1402 #line 1403 "configure" 1405 #line 1406 "configure"
1403 #include "confdefs.h" 1406 #include "confdefs.h"
1404 /* System header to define __stub macros and hopefully few prototypes, 1407 /* System header to define __stub macros and hopefully few prototypes,
1405 which can conflict with char gethostent(); below. */ 1408 which can conflict with char gethostent(); below. */
1406 #include <assert.h> 1409 #include <assert.h>
1407 /* Override any gcc2 internal prototype to avoid an error. */ 1410 /* Override any gcc2 internal prototype to avoid an error. */
1420 gethostent(); 1423 gethostent();
1421 #endif 1424 #endif
1422 1425
1423 ; return 0; } 1426 ; return 0; }
1424 EOF 1427 EOF
1425 if { (eval echo configure:1426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1428 if { (eval echo configure:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1426 rm -rf conftest* 1429 rm -rf conftest*
1427 eval "ac_cv_func_gethostent=yes" 1430 eval "ac_cv_func_gethostent=yes"
1428 else 1431 else
1429 echo "configure: failed program was:" >&5 1432 echo "configure: failed program was:" >&5
1430 cat conftest.$ac_ext >&5 1433 cat conftest.$ac_ext >&5
1441 echo "$ac_t""no" 1>&6 1444 echo "$ac_t""no" 1>&6
1442 fi 1445 fi
1443 1446
1444 if test $ac_cv_func_gethostent = no; then 1447 if test $ac_cv_func_gethostent = no; then
1445 echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6 1448 echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6
1446 echo "configure:1447: checking for gethostent in -lnsl" >&5 1449 echo "configure:1450: checking for gethostent in -lnsl" >&5
1447 ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'` 1450 ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'`
1448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1449 echo $ac_n "(cached) $ac_c" 1>&6 1452 echo $ac_n "(cached) $ac_c" 1>&6
1450 else 1453 else
1451 ac_save_LIBS="$LIBS" 1454 ac_save_LIBS="$LIBS"
1452 LIBS="-lnsl $LIBS" 1455 LIBS="-lnsl $LIBS"
1453 cat > conftest.$ac_ext <<EOF 1456 cat > conftest.$ac_ext <<EOF
1454 #line 1455 "configure" 1457 #line 1458 "configure"
1455 #include "confdefs.h" 1458 #include "confdefs.h"
1456 /* Override any gcc2 internal prototype to avoid an error. */ 1459 /* Override any gcc2 internal prototype to avoid an error. */
1457 /* We use char because int might match the return type of a gcc2 1460 /* We use char because int might match the return type of a gcc2
1458 builtin and then its argument prototype would still apply. */ 1461 builtin and then its argument prototype would still apply. */
1459 char gethostent(); 1462 char gethostent();
1460 1463
1461 int main() { 1464 int main() {
1462 gethostent() 1465 gethostent()
1463 ; return 0; } 1466 ; return 0; }
1464 EOF 1467 EOF
1465 if { (eval echo configure:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1468 if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1466 rm -rf conftest* 1469 rm -rf conftest*
1467 eval "ac_cv_lib_$ac_lib_var=yes" 1470 eval "ac_cv_lib_$ac_lib_var=yes"
1468 else 1471 else
1469 echo "configure: failed program was:" >&5 1472 echo "configure: failed program was:" >&5
1470 cat conftest.$ac_ext >&5 1473 cat conftest.$ac_ext >&5
1489 echo "$ac_t""no" 1>&6 1492 echo "$ac_t""no" 1>&6
1490 fi 1493 fi
1491 1494
1492 fi 1495 fi
1493 echo $ac_n "checking for setsockopt""... $ac_c" 1>&6 1496 echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
1494 echo "configure:1495: checking for setsockopt" >&5 1497 echo "configure:1498: checking for setsockopt" >&5
1495 if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then 1498 if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6 1499 echo $ac_n "(cached) $ac_c" 1>&6
1497 else 1500 else
1498 cat > conftest.$ac_ext <<EOF 1501 cat > conftest.$ac_ext <<EOF
1499 #line 1500 "configure" 1502 #line 1503 "configure"
1500 #include "confdefs.h" 1503 #include "confdefs.h"
1501 /* System header to define __stub macros and hopefully few prototypes, 1504 /* System header to define __stub macros and hopefully few prototypes,
1502 which can conflict with char setsockopt(); below. */ 1505 which can conflict with char setsockopt(); below. */
1503 #include <assert.h> 1506 #include <assert.h>
1504 /* Override any gcc2 internal prototype to avoid an error. */ 1507 /* Override any gcc2 internal prototype to avoid an error. */
1517 setsockopt(); 1520 setsockopt();
1518 #endif 1521 #endif
1519 1522
1520 ; return 0; } 1523 ; return 0; }
1521 EOF 1524 EOF
1522 if { (eval echo configure:1523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1525 if { (eval echo configure:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1523 rm -rf conftest* 1526 rm -rf conftest*
1524 eval "ac_cv_func_setsockopt=yes" 1527 eval "ac_cv_func_setsockopt=yes"
1525 else 1528 else
1526 echo "configure: failed program was:" >&5 1529 echo "configure: failed program was:" >&5
1527 cat conftest.$ac_ext >&5 1530 cat conftest.$ac_ext >&5
1538 echo "$ac_t""no" 1>&6 1541 echo "$ac_t""no" 1>&6
1539 fi 1542 fi
1540 1543
1541 if test $ac_cv_func_setsockopt = no; then 1544 if test $ac_cv_func_setsockopt = no; then
1542 echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6 1545 echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6
1543 echo "configure:1544: checking for setsockopt in -lsocket" >&5 1546 echo "configure:1547: checking for setsockopt in -lsocket" >&5
1544 ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'` 1547 ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'`
1545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1546 echo $ac_n "(cached) $ac_c" 1>&6 1549 echo $ac_n "(cached) $ac_c" 1>&6
1547 else 1550 else
1548 ac_save_LIBS="$LIBS" 1551 ac_save_LIBS="$LIBS"
1549 LIBS="-lsocket $LIBS" 1552 LIBS="-lsocket $LIBS"
1550 cat > conftest.$ac_ext <<EOF 1553 cat > conftest.$ac_ext <<EOF
1551 #line 1552 "configure" 1554 #line 1555 "configure"
1552 #include "confdefs.h" 1555 #include "confdefs.h"
1553 /* Override any gcc2 internal prototype to avoid an error. */ 1556 /* Override any gcc2 internal prototype to avoid an error. */
1554 /* We use char because int might match the return type of a gcc2 1557 /* We use char because int might match the return type of a gcc2
1555 builtin and then its argument prototype would still apply. */ 1558 builtin and then its argument prototype would still apply. */
1556 char setsockopt(); 1559 char setsockopt();
1557 1560
1558 int main() { 1561 int main() {
1559 setsockopt() 1562 setsockopt()
1560 ; return 0; } 1563 ; return 0; }
1561 EOF 1564 EOF
1562 if { (eval echo configure:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1565 if { (eval echo configure:1566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1563 rm -rf conftest* 1566 rm -rf conftest*
1564 eval "ac_cv_lib_$ac_lib_var=yes" 1567 eval "ac_cv_lib_$ac_lib_var=yes"
1565 else 1568 else
1566 echo "configure: failed program was:" >&5 1569 echo "configure: failed program was:" >&5
1567 cat conftest.$ac_ext >&5 1570 cat conftest.$ac_ext >&5
1588 1591
1589 fi 1592 fi
1590 1593
1591 1594
1592 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6 1595 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
1593 echo "configure:1594: checking for gdbm_open in -lgdbm" >&5 1596 echo "configure:1597: checking for gdbm_open in -lgdbm" >&5
1594 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'` 1597 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
1595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6 1599 echo $ac_n "(cached) $ac_c" 1>&6
1597 else 1600 else
1598 ac_save_LIBS="$LIBS" 1601 ac_save_LIBS="$LIBS"
1599 LIBS="-lgdbm $LIBS" 1602 LIBS="-lgdbm $LIBS"
1600 cat > conftest.$ac_ext <<EOF 1603 cat > conftest.$ac_ext <<EOF
1601 #line 1602 "configure" 1604 #line 1605 "configure"
1602 #include "confdefs.h" 1605 #include "confdefs.h"
1603 /* Override any gcc2 internal prototype to avoid an error. */ 1606 /* Override any gcc2 internal prototype to avoid an error. */
1604 /* We use char because int might match the return type of a gcc2 1607 /* We use char because int might match the return type of a gcc2
1605 builtin and then its argument prototype would still apply. */ 1608 builtin and then its argument prototype would still apply. */
1606 char gdbm_open(); 1609 char gdbm_open();
1607 1610
1608 int main() { 1611 int main() {
1609 gdbm_open() 1612 gdbm_open()
1610 ; return 0; } 1613 ; return 0; }
1611 EOF 1614 EOF
1612 if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1615 if { (eval echo configure:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1613 rm -rf conftest* 1616 rm -rf conftest*
1614 eval "ac_cv_lib_$ac_lib_var=yes" 1617 eval "ac_cv_lib_$ac_lib_var=yes"
1615 else 1618 else
1616 echo "configure: failed program was:" >&5 1619 echo "configure: failed program was:" >&5
1617 cat conftest.$ac_ext >&5 1620 cat conftest.$ac_ext >&5
1638 1641
1639 1642
1640 1643
1641 1644
1642 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1645 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1643 echo "configure:1644: checking for ANSI C header files" >&5 1646 echo "configure:1647: checking for ANSI C header files" >&5
1644 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1647 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6 1648 echo $ac_n "(cached) $ac_c" 1>&6
1646 else 1649 else
1647 cat > conftest.$ac_ext <<EOF 1650 cat > conftest.$ac_ext <<EOF
1648 #line 1649 "configure" 1651 #line 1652 "configure"
1649 #include "confdefs.h" 1652 #include "confdefs.h"
1650 #include <stdlib.h> 1653 #include <stdlib.h>
1651 #include <stdarg.h> 1654 #include <stdarg.h>
1652 #include <string.h> 1655 #include <string.h>
1653 #include <float.h> 1656 #include <float.h>
1654 EOF 1657 EOF
1655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1656 { (eval echo configure:1657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1659 { (eval echo configure:1660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1657 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1658 if test -z "$ac_err"; then 1661 if test -z "$ac_err"; then
1659 rm -rf conftest* 1662 rm -rf conftest*
1660 ac_cv_header_stdc=yes 1663 ac_cv_header_stdc=yes
1661 else 1664 else
1668 rm -f conftest* 1671 rm -f conftest*
1669 1672
1670 if test $ac_cv_header_stdc = yes; then 1673 if test $ac_cv_header_stdc = yes; then
1671 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1672 cat > conftest.$ac_ext <<EOF 1675 cat > conftest.$ac_ext <<EOF
1673 #line 1674 "configure" 1676 #line 1677 "configure"
1674 #include "confdefs.h" 1677 #include "confdefs.h"
1675 #include <string.h> 1678 #include <string.h>
1676 EOF 1679 EOF
1677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1678 egrep "memchr" >/dev/null 2>&1; then 1681 egrep "memchr" >/dev/null 2>&1; then
1686 fi 1689 fi
1687 1690
1688 if test $ac_cv_header_stdc = yes; then 1691 if test $ac_cv_header_stdc = yes; then
1689 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1692 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1690 cat > conftest.$ac_ext <<EOF 1693 cat > conftest.$ac_ext <<EOF
1691 #line 1692 "configure" 1694 #line 1695 "configure"
1692 #include "confdefs.h" 1695 #include "confdefs.h"
1693 #include <stdlib.h> 1696 #include <stdlib.h>
1694 EOF 1697 EOF
1695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1696 egrep "free" >/dev/null 2>&1; then 1699 egrep "free" >/dev/null 2>&1; then
1707 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1710 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1708 if test "$cross_compiling" = yes; then 1711 if test "$cross_compiling" = yes; then
1709 : 1712 :
1710 else 1713 else
1711 cat > conftest.$ac_ext <<EOF 1714 cat > conftest.$ac_ext <<EOF
1712 #line 1713 "configure" 1715 #line 1716 "configure"
1713 #include "confdefs.h" 1716 #include "confdefs.h"
1714 #include <ctype.h> 1717 #include <ctype.h>
1715 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1718 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1716 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1719 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1717 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1718 int main () { int i; for (i = 0; i < 256; i++) 1721 int main () { int i; for (i = 0; i < 256; i++)
1719 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1722 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1720 exit (0); } 1723 exit (0); }
1721 1724
1722 EOF 1725 EOF
1723 if { (eval echo configure:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1726 if { (eval echo configure:1727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1724 then 1727 then
1725 : 1728 :
1726 else 1729 else
1727 echo "configure: failed program was:" >&5 1730 echo "configure: failed program was:" >&5
1728 cat conftest.$ac_ext >&5 1731 cat conftest.$ac_ext >&5
1746 ac_header_dirent=no 1749 ac_header_dirent=no
1747 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 1750 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1748 do 1751 do
1749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1750 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 1753 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1751 echo "configure:1752: checking for $ac_hdr that defines DIR" >&5 1754 echo "configure:1755: checking for $ac_hdr that defines DIR" >&5
1752 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 1755 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6 1756 echo $ac_n "(cached) $ac_c" 1>&6
1754 else 1757 else
1755 cat > conftest.$ac_ext <<EOF 1758 cat > conftest.$ac_ext <<EOF
1756 #line 1757 "configure" 1759 #line 1760 "configure"
1757 #include "confdefs.h" 1760 #include "confdefs.h"
1758 #include <sys/types.h> 1761 #include <sys/types.h>
1759 #include <$ac_hdr> 1762 #include <$ac_hdr>
1760 int main() { 1763 int main() {
1761 DIR *dirp = 0; 1764 DIR *dirp = 0;
1762 ; return 0; } 1765 ; return 0; }
1763 EOF 1766 EOF
1764 if { (eval echo configure:1765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1767 if { (eval echo configure:1768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1765 rm -rf conftest* 1768 rm -rf conftest*
1766 eval "ac_cv_header_dirent_$ac_safe=yes" 1769 eval "ac_cv_header_dirent_$ac_safe=yes"
1767 else 1770 else
1768 echo "configure: failed program was:" >&5 1771 echo "configure: failed program was:" >&5
1769 cat conftest.$ac_ext >&5 1772 cat conftest.$ac_ext >&5
1784 fi 1787 fi
1785 done 1788 done
1786 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 1789 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1787 if test $ac_header_dirent = dirent.h; then 1790 if test $ac_header_dirent = dirent.h; then
1788 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 1791 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1789 echo "configure:1790: checking for opendir in -ldir" >&5 1792 echo "configure:1793: checking for opendir in -ldir" >&5
1790 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 1793 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6 1795 echo $ac_n "(cached) $ac_c" 1>&6
1793 else 1796 else
1794 ac_save_LIBS="$LIBS" 1797 ac_save_LIBS="$LIBS"
1795 LIBS="-ldir $LIBS" 1798 LIBS="-ldir $LIBS"
1796 cat > conftest.$ac_ext <<EOF 1799 cat > conftest.$ac_ext <<EOF
1797 #line 1798 "configure" 1800 #line 1801 "configure"
1798 #include "confdefs.h" 1801 #include "confdefs.h"
1799 /* Override any gcc2 internal prototype to avoid an error. */ 1802 /* Override any gcc2 internal prototype to avoid an error. */
1800 /* We use char because int might match the return type of a gcc2 1803 /* We use char because int might match the return type of a gcc2
1801 builtin and then its argument prototype would still apply. */ 1804 builtin and then its argument prototype would still apply. */
1802 char opendir(); 1805 char opendir();
1803 1806
1804 int main() { 1807 int main() {
1805 opendir() 1808 opendir()
1806 ; return 0; } 1809 ; return 0; }
1807 EOF 1810 EOF
1808 if { (eval echo configure:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1811 if { (eval echo configure:1812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1809 rm -rf conftest* 1812 rm -rf conftest*
1810 eval "ac_cv_lib_$ac_lib_var=yes" 1813 eval "ac_cv_lib_$ac_lib_var=yes"
1811 else 1814 else
1812 echo "configure: failed program was:" >&5 1815 echo "configure: failed program was:" >&5
1813 cat conftest.$ac_ext >&5 1816 cat conftest.$ac_ext >&5
1825 echo "$ac_t""no" 1>&6 1828 echo "$ac_t""no" 1>&6
1826 fi 1829 fi
1827 1830
1828 else 1831 else
1829 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 1832 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1830 echo "configure:1831: checking for opendir in -lx" >&5 1833 echo "configure:1834: checking for opendir in -lx" >&5
1831 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 1834 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1832 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1833 echo $ac_n "(cached) $ac_c" 1>&6 1836 echo $ac_n "(cached) $ac_c" 1>&6
1834 else 1837 else
1835 ac_save_LIBS="$LIBS" 1838 ac_save_LIBS="$LIBS"
1836 LIBS="-lx $LIBS" 1839 LIBS="-lx $LIBS"
1837 cat > conftest.$ac_ext <<EOF 1840 cat > conftest.$ac_ext <<EOF
1838 #line 1839 "configure" 1841 #line 1842 "configure"
1839 #include "confdefs.h" 1842 #include "confdefs.h"
1840 /* Override any gcc2 internal prototype to avoid an error. */ 1843 /* Override any gcc2 internal prototype to avoid an error. */
1841 /* We use char because int might match the return type of a gcc2 1844 /* We use char because int might match the return type of a gcc2
1842 builtin and then its argument prototype would still apply. */ 1845 builtin and then its argument prototype would still apply. */
1843 char opendir(); 1846 char opendir();
1844 1847
1845 int main() { 1848 int main() {
1846 opendir() 1849 opendir()
1847 ; return 0; } 1850 ; return 0; }
1848 EOF 1851 EOF
1849 if { (eval echo configure:1850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1852 if { (eval echo configure:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1850 rm -rf conftest* 1853 rm -rf conftest*
1851 eval "ac_cv_lib_$ac_lib_var=yes" 1854 eval "ac_cv_lib_$ac_lib_var=yes"
1852 else 1855 else
1853 echo "configure: failed program was:" >&5 1856 echo "configure: failed program was:" >&5
1854 cat conftest.$ac_ext >&5 1857 cat conftest.$ac_ext >&5
1870 1873
1871 for ac_hdr in gdbm.h syslog.h sys/resource.h sys/utsname.h 1874 for ac_hdr in gdbm.h syslog.h sys/resource.h sys/utsname.h
1872 do 1875 do
1873 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1876 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1874 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1877 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1875 echo "configure:1876: checking for $ac_hdr" >&5 1878 echo "configure:1879: checking for $ac_hdr" >&5
1876 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1879 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6 1880 echo $ac_n "(cached) $ac_c" 1>&6
1878 else 1881 else
1879 cat > conftest.$ac_ext <<EOF 1882 cat > conftest.$ac_ext <<EOF
1880 #line 1881 "configure" 1883 #line 1884 "configure"
1881 #include "confdefs.h" 1884 #include "confdefs.h"
1882 #include <$ac_hdr> 1885 #include <$ac_hdr>
1883 EOF 1886 EOF
1884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1885 { (eval echo configure:1886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1888 { (eval echo configure:1889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1887 if test -z "$ac_err"; then 1890 if test -z "$ac_err"; then
1888 rm -rf conftest* 1891 rm -rf conftest*
1889 eval "ac_cv_header_$ac_safe=yes" 1892 eval "ac_cv_header_$ac_safe=yes"
1890 else 1893 else
1910 1913
1911 for ac_hdr in fnmatch.h errno.h getopt.h time.h sys/time.h signal.h 1914 for ac_hdr in fnmatch.h errno.h getopt.h time.h sys/time.h signal.h
1912 do 1915 do
1913 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1914 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1915 echo "configure:1916: checking for $ac_hdr" >&5 1918 echo "configure:1919: checking for $ac_hdr" >&5
1916 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6 1920 echo $ac_n "(cached) $ac_c" 1>&6
1918 else 1921 else
1919 cat > conftest.$ac_ext <<EOF 1922 cat > conftest.$ac_ext <<EOF
1920 #line 1921 "configure" 1923 #line 1924 "configure"
1921 #include "confdefs.h" 1924 #include "confdefs.h"
1922 #include <$ac_hdr> 1925 #include <$ac_hdr>
1923 EOF 1926 EOF
1924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1925 { (eval echo configure:1926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1928 { (eval echo configure:1929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1927 if test -z "$ac_err"; then 1930 if test -z "$ac_err"; then
1928 rm -rf conftest* 1931 rm -rf conftest*
1929 eval "ac_cv_header_$ac_safe=yes" 1932 eval "ac_cv_header_$ac_safe=yes"
1930 else 1933 else
1950 1953
1951 for ac_hdr in netdb.h sys/socket.h fcntl.h limits.h unistd.h 1954 for ac_hdr in netdb.h sys/socket.h fcntl.h limits.h unistd.h
1952 do 1955 do
1953 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1956 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1954 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1955 echo "configure:1956: checking for $ac_hdr" >&5 1958 echo "configure:1959: checking for $ac_hdr" >&5
1956 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1959 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6 1960 echo $ac_n "(cached) $ac_c" 1>&6
1958 else 1961 else
1959 cat > conftest.$ac_ext <<EOF 1962 cat > conftest.$ac_ext <<EOF
1960 #line 1961 "configure" 1963 #line 1964 "configure"
1961 #include "confdefs.h" 1964 #include "confdefs.h"
1962 #include <$ac_hdr> 1965 #include <$ac_hdr>
1963 EOF 1966 EOF
1964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1965 { (eval echo configure:1966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1968 { (eval echo configure:1969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1967 if test -z "$ac_err"; then 1970 if test -z "$ac_err"; then
1968 rm -rf conftest* 1971 rm -rf conftest*
1969 eval "ac_cv_header_$ac_safe=yes" 1972 eval "ac_cv_header_$ac_safe=yes"
1970 else 1973 else
1990 1993
1991 1994
1992 1995
1993 1996
1994 echo $ac_n "checking for working const""... $ac_c" 1>&6 1997 echo $ac_n "checking for working const""... $ac_c" 1>&6
1995 echo "configure:1996: checking for working const" >&5 1998 echo "configure:1999: checking for working const" >&5
1996 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1999 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6 2000 echo $ac_n "(cached) $ac_c" 1>&6
1998 else 2001 else
1999 cat > conftest.$ac_ext <<EOF 2002 cat > conftest.$ac_ext <<EOF
2000 #line 2001 "configure" 2003 #line 2004 "configure"
2001 #include "confdefs.h" 2004 #include "confdefs.h"
2002 2005
2003 int main() { 2006 int main() {
2004 2007
2005 /* Ultrix mips cc rejects this. */ 2008 /* Ultrix mips cc rejects this. */
2044 const int foo = 10; 2047 const int foo = 10;
2045 } 2048 }
2046 2049
2047 ; return 0; } 2050 ; return 0; }
2048 EOF 2051 EOF
2049 if { (eval echo configure:2050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2052 if { (eval echo configure:2053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2050 rm -rf conftest* 2053 rm -rf conftest*
2051 ac_cv_c_const=yes 2054 ac_cv_c_const=yes
2052 else 2055 else
2053 echo "configure: failed program was:" >&5 2056 echo "configure: failed program was:" >&5
2054 cat conftest.$ac_ext >&5 2057 cat conftest.$ac_ext >&5
2065 EOF 2068 EOF
2066 2069
2067 fi 2070 fi
2068 2071
2069 echo $ac_n "checking for size_t""... $ac_c" 1>&6 2072 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2070 echo "configure:2071: checking for size_t" >&5 2073 echo "configure:2074: checking for size_t" >&5
2071 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 2074 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2072 echo $ac_n "(cached) $ac_c" 1>&6 2075 echo $ac_n "(cached) $ac_c" 1>&6
2073 else 2076 else
2074 cat > conftest.$ac_ext <<EOF 2077 cat > conftest.$ac_ext <<EOF
2075 #line 2076 "configure" 2078 #line 2079 "configure"
2076 #include "confdefs.h" 2079 #include "confdefs.h"
2077 #include <sys/types.h> 2080 #include <sys/types.h>
2078 #if STDC_HEADERS 2081 #if STDC_HEADERS
2079 #include <stdlib.h> 2082 #include <stdlib.h>
2080 #include <stddef.h> 2083 #include <stddef.h>
2098 EOF 2101 EOF
2099 2102
2100 fi 2103 fi
2101 2104
2102 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2105 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2103 echo "configure:2104: checking whether time.h and sys/time.h may both be included" >&5 2106 echo "configure:2107: checking whether time.h and sys/time.h may both be included" >&5
2104 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2107 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6 2108 echo $ac_n "(cached) $ac_c" 1>&6
2106 else 2109 else
2107 cat > conftest.$ac_ext <<EOF 2110 cat > conftest.$ac_ext <<EOF
2108 #line 2109 "configure" 2111 #line 2112 "configure"
2109 #include "confdefs.h" 2112 #include "confdefs.h"
2110 #include <sys/types.h> 2113 #include <sys/types.h>
2111 #include <sys/time.h> 2114 #include <sys/time.h>
2112 #include <time.h> 2115 #include <time.h>
2113 int main() { 2116 int main() {
2114 struct tm *tp; 2117 struct tm *tp;
2115 ; return 0; } 2118 ; return 0; }
2116 EOF 2119 EOF
2117 if { (eval echo configure:2118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2120 if { (eval echo configure:2121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2118 rm -rf conftest* 2121 rm -rf conftest*
2119 ac_cv_header_time=yes 2122 ac_cv_header_time=yes
2120 else 2123 else
2121 echo "configure: failed program was:" >&5 2124 echo "configure: failed program was:" >&5
2122 cat conftest.$ac_ext >&5 2125 cat conftest.$ac_ext >&5
2133 EOF 2136 EOF
2134 2137
2135 fi 2138 fi
2136 2139
2137 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2140 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2138 echo "configure:2139: checking whether struct tm is in sys/time.h or time.h" >&5 2141 echo "configure:2142: checking whether struct tm is in sys/time.h or time.h" >&5
2139 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2142 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6 2143 echo $ac_n "(cached) $ac_c" 1>&6
2141 else 2144 else
2142 cat > conftest.$ac_ext <<EOF 2145 cat > conftest.$ac_ext <<EOF
2143 #line 2144 "configure" 2146 #line 2147 "configure"
2144 #include "confdefs.h" 2147 #include "confdefs.h"
2145 #include <sys/types.h> 2148 #include <sys/types.h>
2146 #include <time.h> 2149 #include <time.h>
2147 int main() { 2150 int main() {
2148 struct tm *tp; tp->tm_sec; 2151 struct tm *tp; tp->tm_sec;
2149 ; return 0; } 2152 ; return 0; }
2150 EOF 2153 EOF
2151 if { (eval echo configure:2152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2154 if { (eval echo configure:2155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2152 rm -rf conftest* 2155 rm -rf conftest*
2153 ac_cv_struct_tm=time.h 2156 ac_cv_struct_tm=time.h
2154 else 2157 else
2155 echo "configure: failed program was:" >&5 2158 echo "configure: failed program was:" >&5
2156 cat conftest.$ac_ext >&5 2159 cat conftest.$ac_ext >&5
2168 2171
2169 fi 2172 fi
2170 2173
2171 2174
2172 echo $ac_n "checking socklen_t""... $ac_c" 1>&6 2175 echo $ac_n "checking socklen_t""... $ac_c" 1>&6
2173 echo "configure:2174: checking socklen_t" >&5 2176 echo "configure:2177: checking socklen_t" >&5
2174 if eval "test \"`echo '$''{'noffle_cv_type_socklen_t'+set}'`\" = set"; then 2177 if eval "test \"`echo '$''{'noffle_cv_type_socklen_t'+set}'`\" = set"; then
2175 echo $ac_n "(cached) $ac_c" 1>&6 2178 echo $ac_n "(cached) $ac_c" 1>&6
2176 else 2179 else
2177 cat > conftest.$ac_ext <<EOF 2180 cat > conftest.$ac_ext <<EOF
2178 #line 2179 "configure" 2181 #line 2182 "configure"
2179 #include "confdefs.h" 2182 #include "confdefs.h"
2180 2183
2181 #include <sys/types.h> 2184 #include <sys/types.h>
2182 #include <sys/socket.h> 2185 #include <sys/socket.h>
2183 2186
2184 int main() { 2187 int main() {
2185 socklen_t s; 2188 socklen_t s;
2186 ; return 0; } 2189 ; return 0; }
2187 EOF 2190 EOF
2188 if { (eval echo configure:2189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2191 if { (eval echo configure:2192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2189 rm -rf conftest* 2192 rm -rf conftest*
2190 noffle_cv_type_socklen_t=yes 2193 noffle_cv_type_socklen_t=yes
2191 else 2194 else
2192 echo "configure: failed program was:" >&5 2195 echo "configure: failed program was:" >&5
2193 cat conftest.$ac_ext >&5 2196 cat conftest.$ac_ext >&5
2209 fi 2212 fi
2210 2213
2211 2214
2212 2215
2213 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2216 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2214 echo "configure:2215: checking return type of signal handlers" >&5 2217 echo "configure:2218: checking return type of signal handlers" >&5
2215 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2218 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2216 echo $ac_n "(cached) $ac_c" 1>&6 2219 echo $ac_n "(cached) $ac_c" 1>&6
2217 else 2220 else
2218 cat > conftest.$ac_ext <<EOF 2221 cat > conftest.$ac_ext <<EOF
2219 #line 2220 "configure" 2222 #line 2223 "configure"
2220 #include "confdefs.h" 2223 #include "confdefs.h"
2221 #include <sys/types.h> 2224 #include <sys/types.h>
2222 #include <signal.h> 2225 #include <signal.h>
2223 #ifdef signal 2226 #ifdef signal
2224 #undef signal 2227 #undef signal
2231 2234
2232 int main() { 2235 int main() {
2233 int i; 2236 int i;
2234 ; return 0; } 2237 ; return 0; }
2235 EOF 2238 EOF
2236 if { (eval echo configure:2237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2239 if { (eval echo configure:2240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2237 rm -rf conftest* 2240 rm -rf conftest*
2238 ac_cv_type_signal=void 2241 ac_cv_type_signal=void
2239 else 2242 else
2240 echo "configure: failed program was:" >&5 2243 echo "configure: failed program was:" >&5
2241 cat conftest.$ac_ext >&5 2244 cat conftest.$ac_ext >&5
2250 #define RETSIGTYPE $ac_cv_type_signal 2253 #define RETSIGTYPE $ac_cv_type_signal
2251 EOF 2254 EOF
2252 2255
2253 2256
2254 echo $ac_n "checking for strftime""... $ac_c" 1>&6 2257 echo $ac_n "checking for strftime""... $ac_c" 1>&6
2255 echo "configure:2256: checking for strftime" >&5 2258 echo "configure:2259: checking for strftime" >&5
2256 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then 2259 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6 2260 echo $ac_n "(cached) $ac_c" 1>&6
2258 else 2261 else
2259 cat > conftest.$ac_ext <<EOF 2262 cat > conftest.$ac_ext <<EOF
2260 #line 2261 "configure" 2263 #line 2264 "configure"
2261 #include "confdefs.h" 2264 #include "confdefs.h"
2262 /* System header to define __stub macros and hopefully few prototypes, 2265 /* System header to define __stub macros and hopefully few prototypes,
2263 which can conflict with char strftime(); below. */ 2266 which can conflict with char strftime(); below. */
2264 #include <assert.h> 2267 #include <assert.h>
2265 /* Override any gcc2 internal prototype to avoid an error. */ 2268 /* Override any gcc2 internal prototype to avoid an error. */
2278 strftime(); 2281 strftime();
2279 #endif 2282 #endif
2280 2283
2281 ; return 0; } 2284 ; return 0; }
2282 EOF 2285 EOF
2283 if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2286 if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2284 rm -rf conftest* 2287 rm -rf conftest*
2285 eval "ac_cv_func_strftime=yes" 2288 eval "ac_cv_func_strftime=yes"
2286 else 2289 else
2287 echo "configure: failed program was:" >&5 2290 echo "configure: failed program was:" >&5
2288 cat conftest.$ac_ext >&5 2291 cat conftest.$ac_ext >&5
2300 2303
2301 else 2304 else
2302 echo "$ac_t""no" 1>&6 2305 echo "$ac_t""no" 1>&6
2303 # strftime is in -lintl on SCO UNIX. 2306 # strftime is in -lintl on SCO UNIX.
2304 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 2307 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
2305 echo "configure:2306: checking for strftime in -lintl" >&5 2308 echo "configure:2309: checking for strftime in -lintl" >&5
2306 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` 2309 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
2307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2308 echo $ac_n "(cached) $ac_c" 1>&6 2311 echo $ac_n "(cached) $ac_c" 1>&6
2309 else 2312 else
2310 ac_save_LIBS="$LIBS" 2313 ac_save_LIBS="$LIBS"
2311 LIBS="-lintl $LIBS" 2314 LIBS="-lintl $LIBS"
2312 cat > conftest.$ac_ext <<EOF 2315 cat > conftest.$ac_ext <<EOF
2313 #line 2314 "configure" 2316 #line 2317 "configure"
2314 #include "confdefs.h" 2317 #include "confdefs.h"
2315 /* Override any gcc2 internal prototype to avoid an error. */ 2318 /* Override any gcc2 internal prototype to avoid an error. */
2316 /* We use char because int might match the return type of a gcc2 2319 /* We use char because int might match the return type of a gcc2
2317 builtin and then its argument prototype would still apply. */ 2320 builtin and then its argument prototype would still apply. */
2318 char strftime(); 2321 char strftime();
2319 2322
2320 int main() { 2323 int main() {
2321 strftime() 2324 strftime()
2322 ; return 0; } 2325 ; return 0; }
2323 EOF 2326 EOF
2324 if { (eval echo configure:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2327 if { (eval echo configure:2328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2325 rm -rf conftest* 2328 rm -rf conftest*
2326 eval "ac_cv_lib_$ac_lib_var=yes" 2329 eval "ac_cv_lib_$ac_lib_var=yes"
2327 else 2330 else
2328 echo "configure: failed program was:" >&5 2331 echo "configure: failed program was:" >&5
2329 cat conftest.$ac_ext >&5 2332 cat conftest.$ac_ext >&5
2346 fi 2349 fi
2347 2350
2348 fi 2351 fi
2349 2352
2350 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6 2353 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
2351 echo "configure:2352: checking for working fnmatch" >&5 2354 echo "configure:2355: checking for working fnmatch" >&5
2352 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then 2355 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6 2356 echo $ac_n "(cached) $ac_c" 1>&6
2354 else 2357 else
2355 # Some versions of Solaris or SCO have a broken fnmatch function. 2358 # Some versions of Solaris or SCO have a broken fnmatch function.
2356 # So we run a test program. If we are cross-compiling, take no chance. 2359 # So we run a test program. If we are cross-compiling, take no chance.
2357 # Thanks to John Oleynick and Franc,ois Pinard for this test. 2360 # Thanks to John Oleynick and Franc,ois Pinard for this test.
2358 if test "$cross_compiling" = yes; then 2361 if test "$cross_compiling" = yes; then
2359 ac_cv_func_fnmatch_works=no 2362 ac_cv_func_fnmatch_works=no
2360 else 2363 else
2361 cat > conftest.$ac_ext <<EOF 2364 cat > conftest.$ac_ext <<EOF
2362 #line 2363 "configure" 2365 #line 2366 "configure"
2363 #include "confdefs.h" 2366 #include "confdefs.h"
2364 main() { exit (fnmatch ("a*", "abc", 0) != 0); } 2367 main() { exit (fnmatch ("a*", "abc", 0) != 0); }
2365 EOF 2368 EOF
2366 if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2369 if { (eval echo configure:2370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2367 then 2370 then
2368 ac_cv_func_fnmatch_works=yes 2371 ac_cv_func_fnmatch_works=yes
2369 else 2372 else
2370 echo "configure: failed program was:" >&5 2373 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5 2374 cat conftest.$ac_ext >&5
2386 fi 2389 fi
2387 2390
2388 for ac_func in fdopen vsnprintf snprintf __vsnprintf __snprintf 2391 for ac_func in fdopen vsnprintf snprintf __vsnprintf __snprintf
2389 do 2392 do
2390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2391 echo "configure:2392: checking for $ac_func" >&5 2394 echo "configure:2395: checking for $ac_func" >&5
2392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6 2396 echo $ac_n "(cached) $ac_c" 1>&6
2394 else 2397 else
2395 cat > conftest.$ac_ext <<EOF 2398 cat > conftest.$ac_ext <<EOF
2396 #line 2397 "configure" 2399 #line 2400 "configure"
2397 #include "confdefs.h" 2400 #include "confdefs.h"
2398 /* System header to define __stub macros and hopefully few prototypes, 2401 /* System header to define __stub macros and hopefully few prototypes,
2399 which can conflict with char $ac_func(); below. */ 2402 which can conflict with char $ac_func(); below. */
2400 #include <assert.h> 2403 #include <assert.h>
2401 /* Override any gcc2 internal prototype to avoid an error. */ 2404 /* Override any gcc2 internal prototype to avoid an error. */
2414 $ac_func(); 2417 $ac_func();
2415 #endif 2418 #endif
2416 2419
2417 ; return 0; } 2420 ; return 0; }
2418 EOF 2421 EOF
2419 if { (eval echo configure:2420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2422 if { (eval echo configure:2423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2420 rm -rf conftest* 2423 rm -rf conftest*
2421 eval "ac_cv_func_$ac_func=yes" 2424 eval "ac_cv_func_$ac_func=yes"
2422 else 2425 else
2423 echo "configure: failed program was:" >&5 2426 echo "configure: failed program was:" >&5
2424 cat conftest.$ac_ext >&5 2427 cat conftest.$ac_ext >&5
2441 done 2444 done
2442 2445
2443 for ac_func in gethostname mkdir mktime select socket strerror strstr uname 2446 for ac_func in gethostname mkdir mktime select socket strerror strstr uname
2444 do 2447 do
2445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2446 echo "configure:2447: checking for $ac_func" >&5 2449 echo "configure:2450: checking for $ac_func" >&5
2447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6 2451 echo $ac_n "(cached) $ac_c" 1>&6
2449 else 2452 else
2450 cat > conftest.$ac_ext <<EOF 2453 cat > conftest.$ac_ext <<EOF
2451 #line 2452 "configure" 2454 #line 2455 "configure"
2452 #include "confdefs.h" 2455 #include "confdefs.h"
2453 /* System header to define __stub macros and hopefully few prototypes, 2456 /* System header to define __stub macros and hopefully few prototypes,
2454 which can conflict with char $ac_func(); below. */ 2457 which can conflict with char $ac_func(); below. */
2455 #include <assert.h> 2458 #include <assert.h>
2456 /* Override any gcc2 internal prototype to avoid an error. */ 2459 /* Override any gcc2 internal prototype to avoid an error. */
2469 $ac_func(); 2472 $ac_func();
2470 #endif 2473 #endif
2471 2474
2472 ; return 0; } 2475 ; return 0; }
2473 EOF 2476 EOF
2474 if { (eval echo configure:2475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2477 if { (eval echo configure:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2475 rm -rf conftest* 2478 rm -rf conftest*
2476 eval "ac_cv_func_$ac_func=yes" 2479 eval "ac_cv_func_$ac_func=yes"
2477 else 2480 else
2478 echo "configure: failed program was:" >&5 2481 echo "configure: failed program was:" >&5
2479 cat conftest.$ac_ext >&5 2482 cat conftest.$ac_ext >&5
2526 if test "${with_docdir+set}" = set; then 2529 if test "${with_docdir+set}" = set; then
2527 withval="$with_docdir" 2530 withval="$with_docdir"
2528 noffle_cv_docdir=$withval 2531 noffle_cv_docdir=$withval
2529 else 2532 else
2530 echo $ac_n "checking where to put the documentation""... $ac_c" 1>&6 2533 echo $ac_n "checking where to put the documentation""... $ac_c" 1>&6
2531 echo "configure:2532: checking where to put the documentation" >&5 2534 echo "configure:2535: checking where to put the documentation" >&5
2532 if eval "test \"`echo '$''{'noffle_cv_docdir'+set}'`\" = set"; then 2535 if eval "test \"`echo '$''{'noffle_cv_docdir'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6 2536 echo $ac_n "(cached) $ac_c" 1>&6
2534 else 2537 else
2535 if test x$prefix = xNONE; then 2538 if test x$prefix = xNONE; then
2536 noffle_cv_prefix=$ac_default_prefix 2539 noffle_cv_prefix=$ac_default_prefix
2544 echo "$ac_t""$noffle_cv_docdir" 1>&6 2547 echo "$ac_t""$noffle_cv_docdir" 1>&6
2545 2548
2546 fi 2549 fi
2547 2550
2548 2551
2549 2552 echo $ac_n "checking spooldir""... $ac_c" 1>&6
2550 2553 echo "configure:2554: checking spooldir" >&5
2551 CONFIGFILE="/etc/noffle.conf" 2554 # Check whether --with-spooldir or --without-spooldir was given.
2555 if test "${with_spooldir+set}" = set; then
2556 withval="$with_spooldir"
2557 if echo "$withval" | egrep >/dev/null -v '^/' ; then
2558 { echo "configure: error: you must give an absolute path" 1>&2; exit 1; }
2559 fi
2560 withval=`echo "$withval" | sed 'sx/*$xx;'`
2561
2562 else
2563 withval="/var/spool/$PACKAGE"
2564
2565 fi
2566
2567 SPOOLDIR=$withval
2568 echo "$ac_t""$SPOOLDIR" 1>&6
2569 cat >> confdefs.h <<EOF
2570 #define SPOOLDIR "$SPOOLDIR"
2571 EOF
2572
2573
2574
2575 echo $ac_n "checking configfile""... $ac_c" 1>&6
2576 echo "configure:2577: checking configfile" >&5
2577 # Check whether --with-configfile or --without-configfile was given.
2578 if test "${with_configfile+set}" = set; then
2579 withval="$with_configfile"
2580 if echo "$withval" | egrep >/dev/null -v '^/' ; then
2581 { echo "configure: error: you must give an absolute path" 1>&2; exit 1; }
2582 fi
2583 withval=`echo "$withval" | sed 'sx/*$xx;'`
2584
2585 else
2586 withval="/etc/$PACKAGE.conf"
2587
2588 fi
2589
2590 CONFIGFILE=$withval
2591 echo "$ac_t""$CONFIGFILE" 1>&6
2552 cat >> confdefs.h <<EOF 2592 cat >> confdefs.h <<EOF
2553 #define CONFIGFILE "$CONFIGFILE" 2593 #define CONFIGFILE "$CONFIGFILE"
2554 EOF 2594 EOF
2555 2595
2556 2596
2557 2597
2558
2559
2560 SPOOLDIR="/var/spool/$PACKAGE"
2561 cat >> confdefs.h <<EOF
2562 #define SPOOLDIR "$SPOOLDIR"
2563 EOF
2564 2598
2565 2599
2566 2600
2567 DOCDIR=$noffle_cv_docdir 2601 DOCDIR=$noffle_cv_docdir
2568 2602
2718 s%@MAKEINFO@%$MAKEINFO%g 2752 s%@MAKEINFO@%$MAKEINFO%g
2719 s%@SET_MAKE@%$SET_MAKE%g 2753 s%@SET_MAKE@%$SET_MAKE%g
2720 s%@CC@%$CC%g 2754 s%@CC@%$CC%g
2721 s%@CPP@%$CPP%g 2755 s%@CPP@%$CPP%g
2722 s%@SENDMAILPROG@%$SENDMAILPROG%g 2756 s%@SENDMAILPROG@%$SENDMAILPROG%g
2757 s%@SPOOLDIR@%$SPOOLDIR%g
2723 s%@CONFIGFILE@%$CONFIGFILE%g 2758 s%@CONFIGFILE@%$CONFIGFILE%g
2724 s%@SPOOLDIR@%$SPOOLDIR%g
2725 s%@DOCDIR@%$DOCDIR%g 2759 s%@DOCDIR@%$DOCDIR%g
2726 2760
2727 CEOF 2761 CEOF
2728 EOF 2762 EOF
2729 2763