Mercurial > noffle
comparison configure @ 288:c02c4eb95f95 noffle
[svn] * src/configfile.h,src/configfile.c,docs/noffle.conf.5: Add noffle-user
and noffle-group configs.
* src/configfile.c,src/fetch.c,src/fetchlist.c,src/protocol.c,
src/server.c: Replace strcpy() with Utl_cpyStr() where appropriate.
See Debian bug 168128.
* src/control.c,src/configfile.c,src/noffle.c: Replace [s]scanf("%s")
with [s]scanf(MAXCHAR_FMT).
* src/noffle.c: Log warning if noffle.conf is world readable.
* src/noffle.c: Restrict most options to news admins; i.e. those who
are root or news on running Noffle.
* Makefile.in,acconfig.h,aclocal.m4,config.h.in,configure,configure.in,
docs/Makefile.in,docs/noffle.conf.5,packages/Makefile.in,
packages/redhat/Makefile.in,src/Makefile.am,src/Makefile.in,
src/authenticate.c,src/authenticate.h,src/noffle.c,src/server.c:
Add basic authentication using either Noffle-specific user file
or authenticating via PAM (service 'noffle'). PAM authentication
needs to run as root, so a Noffle server that needs PAM
must be started by root. Helpful (?) error messages will be logged
if not. Noffle will switch ruid and euid to 'news' (or whatever
is configured) ASAP.
* src/noffle.c: Add uid checking.
author | bears |
---|---|
date | Fri, 10 Jan 2003 23:25:45 +0000 |
parents | a0497ffac49b |
children | 4dc7dabd9318 |
comparison
equal
deleted
inserted
replaced
287:01755687c565 | 288:c02c4eb95f95 |
---|---|
13 # Any additions from configure.in: | 13 # Any additions from configure.in: |
14 ac_help="$ac_help | 14 ac_help="$ac_help |
15 --with-gdbm-include=DIR GDBM header files are in DIR" | 15 --with-gdbm-include=DIR GDBM header files are in DIR" |
16 ac_help="$ac_help | 16 ac_help="$ac_help |
17 --with-gdbm-libdir=DIR GDBM library files are in DIR" | 17 --with-gdbm-libdir=DIR GDBM library files are in DIR" |
18 ac_help="$ac_help | |
19 --enable-auth=[no/file/pam] enable authentication [default=no]" | |
20 ac_help="$ac_help | |
21 --with-usersfile=FILE users file [/etc/noffle.users]" | |
18 ac_help="$ac_help | 22 ac_help="$ac_help |
19 --enable-debug=[no/yes] build with debugging [default=no]" | 23 --enable-debug=[no/yes] build with debugging [default=no]" |
20 ac_help="$ac_help | 24 ac_help="$ac_help |
21 --with-docdir=DIR other documentation [PREFIX/share/doc/noffle]" | 25 --with-docdir=DIR other documentation [PREFIX/share/doc/noffle]" |
22 ac_help="$ac_help | 26 ac_help="$ac_help |
558 fi | 562 fi |
559 ac_config_guess=$ac_aux_dir/config.guess | 563 ac_config_guess=$ac_aux_dir/config.guess |
560 ac_config_sub=$ac_aux_dir/config.sub | 564 ac_config_sub=$ac_aux_dir/config.sub |
561 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | 565 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
562 | 566 |
567 am__api_version="1.4" | |
563 # Find a good install program. We prefer a C program (faster), | 568 # Find a good install program. We prefer a C program (faster), |
564 # so one script is as good as another. But avoid the broken or | 569 # so one script is as good as another. But avoid the broken or |
565 # incompatible versions: | 570 # incompatible versions: |
566 # SysV /etc/install, /usr/sbin/install | 571 # SysV /etc/install, /usr/sbin/install |
567 # SunOS /usr/etc/install | 572 # SunOS /usr/etc/install |
570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 575 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 576 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 577 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
573 # ./install, which can be erroneously created by make from ./install.sh. | 578 # ./install, which can be erroneously created by make from ./install.sh. |
574 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 579 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
575 echo "configure:576: checking for a BSD compatible install" >&5 | 580 echo "configure:581: checking for a BSD compatible install" >&5 |
576 if test -z "$INSTALL"; then | 581 if test -z "$INSTALL"; then |
577 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | 582 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
578 echo $ac_n "(cached) $ac_c" 1>&6 | 583 echo $ac_n "(cached) $ac_c" 1>&6 |
579 else | 584 else |
580 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | 585 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
623 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | 628 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
624 | 629 |
625 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 630 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
626 | 631 |
627 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | 632 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
628 echo "configure:629: checking whether build environment is sane" >&5 | 633 echo "configure:634: checking whether build environment is sane" >&5 |
629 # Just in case | 634 # Just in case |
630 sleep 1 | 635 sleep 1 |
631 echo timestamp > conftestfile | 636 echo timestamp > conftestfile |
632 # Do `set' in a subshell so we don't clobber the current shell's | 637 # Do `set' in a subshell so we don't clobber the current shell's |
633 # arguments. Must try -L first in case configure is actually a | 638 # arguments. Must try -L first in case configure is actually a |
680 | 685 |
681 # sed with no file args requires a program. | 686 # sed with no file args requires a program. |
682 test "$program_transform_name" = "" && program_transform_name="s,x,x," | 687 test "$program_transform_name" = "" && program_transform_name="s,x,x," |
683 | 688 |
684 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 689 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
685 echo "configure:686: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 690 echo "configure:691: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
686 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 691 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
687 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | 692 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
688 echo $ac_n "(cached) $ac_c" 1>&6 | 693 echo $ac_n "(cached) $ac_c" 1>&6 |
689 else | 694 else |
690 cat > conftestmake <<\EOF | 695 cat > conftestmake <<\EOF |
725 EOF | 730 EOF |
726 | 731 |
727 | 732 |
728 | 733 |
729 missing_dir=`cd $ac_aux_dir && pwd` | 734 missing_dir=`cd $ac_aux_dir && pwd` |
730 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | 735 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6 |
731 echo "configure:732: checking for working aclocal" >&5 | 736 echo "configure:737: checking for working aclocal-${am__api_version}" >&5 |
732 # Run test in a subshell; some versions of sh will print an error if | 737 # Run test in a subshell; some versions of sh will print an error if |
733 # an executable is not found, even if stderr is redirected. | 738 # an executable is not found, even if stderr is redirected. |
734 # Redirect stdin to placate older versions of autoconf. Sigh. | 739 # Redirect stdin to placate older versions of autoconf. Sigh. |
735 if (aclocal --version) < /dev/null > /dev/null 2>&1; then | 740 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
736 ACLOCAL=aclocal | 741 ACLOCAL=aclocal-${am__api_version} |
737 echo "$ac_t""found" 1>&6 | 742 echo "$ac_t""found" 1>&6 |
738 else | 743 else |
739 ACLOCAL="$missing_dir/missing aclocal" | 744 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" |
740 echo "$ac_t""missing" 1>&6 | 745 echo "$ac_t""missing" 1>&6 |
741 fi | 746 fi |
742 | 747 |
743 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | 748 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
744 echo "configure:745: checking for working autoconf" >&5 | 749 echo "configure:750: checking for working autoconf" >&5 |
745 # Run test in a subshell; some versions of sh will print an error if | 750 # Run test in a subshell; some versions of sh will print an error if |
746 # an executable is not found, even if stderr is redirected. | 751 # an executable is not found, even if stderr is redirected. |
747 # Redirect stdin to placate older versions of autoconf. Sigh. | 752 # Redirect stdin to placate older versions of autoconf. Sigh. |
748 if (autoconf --version) < /dev/null > /dev/null 2>&1; then | 753 if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
749 AUTOCONF=autoconf | 754 AUTOCONF=autoconf |
751 else | 756 else |
752 AUTOCONF="$missing_dir/missing autoconf" | 757 AUTOCONF="$missing_dir/missing autoconf" |
753 echo "$ac_t""missing" 1>&6 | 758 echo "$ac_t""missing" 1>&6 |
754 fi | 759 fi |
755 | 760 |
756 echo $ac_n "checking for working automake""... $ac_c" 1>&6 | 761 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6 |
757 echo "configure:758: checking for working automake" >&5 | 762 echo "configure:763: checking for working automake-${am__api_version}" >&5 |
758 # Run test in a subshell; some versions of sh will print an error if | 763 # Run test in a subshell; some versions of sh will print an error if |
759 # an executable is not found, even if stderr is redirected. | 764 # an executable is not found, even if stderr is redirected. |
760 # Redirect stdin to placate older versions of autoconf. Sigh. | 765 # Redirect stdin to placate older versions of autoconf. Sigh. |
761 if (automake --version) < /dev/null > /dev/null 2>&1; then | 766 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
762 AUTOMAKE=automake | 767 AUTOMAKE=automake-${am__api_version} |
763 echo "$ac_t""found" 1>&6 | 768 echo "$ac_t""found" 1>&6 |
764 else | 769 else |
765 AUTOMAKE="$missing_dir/missing automake" | 770 AUTOMAKE="$missing_dir/missing automake-${am__api_version}" |
766 echo "$ac_t""missing" 1>&6 | 771 echo "$ac_t""missing" 1>&6 |
767 fi | 772 fi |
768 | 773 |
769 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | 774 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
770 echo "configure:771: checking for working autoheader" >&5 | 775 echo "configure:776: checking for working autoheader" >&5 |
771 # Run test in a subshell; some versions of sh will print an error if | 776 # Run test in a subshell; some versions of sh will print an error if |
772 # an executable is not found, even if stderr is redirected. | 777 # an executable is not found, even if stderr is redirected. |
773 # Redirect stdin to placate older versions of autoconf. Sigh. | 778 # Redirect stdin to placate older versions of autoconf. Sigh. |
774 if (autoheader --version) < /dev/null > /dev/null 2>&1; then | 779 if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
775 AUTOHEADER=autoheader | 780 AUTOHEADER=autoheader |
778 AUTOHEADER="$missing_dir/missing autoheader" | 783 AUTOHEADER="$missing_dir/missing autoheader" |
779 echo "$ac_t""missing" 1>&6 | 784 echo "$ac_t""missing" 1>&6 |
780 fi | 785 fi |
781 | 786 |
782 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | 787 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
783 echo "configure:784: checking for working makeinfo" >&5 | 788 echo "configure:789: checking for working makeinfo" >&5 |
784 # Run test in a subshell; some versions of sh will print an error if | 789 # Run test in a subshell; some versions of sh will print an error if |
785 # an executable is not found, even if stderr is redirected. | 790 # an executable is not found, even if stderr is redirected. |
786 # Redirect stdin to placate older versions of autoconf. Sigh. | 791 # Redirect stdin to placate older versions of autoconf. Sigh. |
787 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | 792 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
788 MAKEINFO=makeinfo | 793 MAKEINFO=makeinfo |
811 | 816 |
812 | 817 |
813 # Extract the first word of "gcc", so it can be a program name with args. | 818 # Extract the first word of "gcc", so it can be a program name with args. |
814 set dummy gcc; ac_word=$2 | 819 set dummy gcc; ac_word=$2 |
815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
816 echo "configure:817: checking for $ac_word" >&5 | 821 echo "configure:822: checking for $ac_word" >&5 |
817 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 822 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
818 echo $ac_n "(cached) $ac_c" 1>&6 | 823 echo $ac_n "(cached) $ac_c" 1>&6 |
819 else | 824 else |
820 if test -n "$CC"; then | 825 if test -n "$CC"; then |
821 ac_cv_prog_CC="$CC" # Let the user override the test. | 826 ac_cv_prog_CC="$CC" # Let the user override the test. |
841 | 846 |
842 if test -z "$CC"; then | 847 if test -z "$CC"; then |
843 # Extract the first word of "cc", so it can be a program name with args. | 848 # Extract the first word of "cc", so it can be a program name with args. |
844 set dummy cc; ac_word=$2 | 849 set dummy cc; ac_word=$2 |
845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
846 echo "configure:847: checking for $ac_word" >&5 | 851 echo "configure:852: checking for $ac_word" >&5 |
847 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 852 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
848 echo $ac_n "(cached) $ac_c" 1>&6 | 853 echo $ac_n "(cached) $ac_c" 1>&6 |
849 else | 854 else |
850 if test -n "$CC"; then | 855 if test -n "$CC"; then |
851 ac_cv_prog_CC="$CC" # Let the user override the test. | 856 ac_cv_prog_CC="$CC" # Let the user override the test. |
892 case "`uname -s`" in | 897 case "`uname -s`" in |
893 *win32* | *WIN32*) | 898 *win32* | *WIN32*) |
894 # Extract the first word of "cl", so it can be a program name with args. | 899 # Extract the first word of "cl", so it can be a program name with args. |
895 set dummy cl; ac_word=$2 | 900 set dummy cl; ac_word=$2 |
896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
897 echo "configure:898: checking for $ac_word" >&5 | 902 echo "configure:903: checking for $ac_word" >&5 |
898 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 903 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
899 echo $ac_n "(cached) $ac_c" 1>&6 | 904 echo $ac_n "(cached) $ac_c" 1>&6 |
900 else | 905 else |
901 if test -n "$CC"; then | 906 if test -n "$CC"; then |
902 ac_cv_prog_CC="$CC" # Let the user override the test. | 907 ac_cv_prog_CC="$CC" # Let the user override the test. |
924 fi | 929 fi |
925 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 930 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
926 fi | 931 fi |
927 | 932 |
928 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 933 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
929 echo "configure:930: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 934 echo "configure:935: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
930 | 935 |
931 ac_ext=c | 936 ac_ext=c |
932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
933 ac_cpp='$CPP $CPPFLAGS' | 938 ac_cpp='$CPP $CPPFLAGS' |
934 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
935 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
936 cross_compiling=$ac_cv_prog_cc_cross | 941 cross_compiling=$ac_cv_prog_cc_cross |
937 | 942 |
938 cat > conftest.$ac_ext << EOF | 943 cat > conftest.$ac_ext << EOF |
939 | 944 |
940 #line 941 "configure" | 945 #line 946 "configure" |
941 #include "confdefs.h" | 946 #include "confdefs.h" |
942 | 947 |
943 main(){return(0);} | 948 main(){return(0);} |
944 EOF | 949 EOF |
945 if { (eval echo configure:946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 950 if { (eval echo configure:951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
946 ac_cv_prog_cc_works=yes | 951 ac_cv_prog_cc_works=yes |
947 # If we can't run a trivial program, we are probably using a cross compiler. | 952 # If we can't run a trivial program, we are probably using a cross compiler. |
948 if (./conftest; exit) 2>/dev/null; then | 953 if (./conftest; exit) 2>/dev/null; then |
949 ac_cv_prog_cc_cross=no | 954 ac_cv_prog_cc_cross=no |
950 else | 955 else |
966 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 971 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
967 if test $ac_cv_prog_cc_works = no; then | 972 if test $ac_cv_prog_cc_works = no; then |
968 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 973 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
969 fi | 974 fi |
970 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 975 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
971 echo "configure:972: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | 976 echo "configure:977: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
972 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 977 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
973 cross_compiling=$ac_cv_prog_cc_cross | 978 cross_compiling=$ac_cv_prog_cc_cross |
974 | 979 |
975 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 980 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
976 echo "configure:977: checking whether we are using GNU C" >&5 | 981 echo "configure:982: checking whether we are using GNU C" >&5 |
977 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | 982 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
978 echo $ac_n "(cached) $ac_c" 1>&6 | 983 echo $ac_n "(cached) $ac_c" 1>&6 |
979 else | 984 else |
980 cat > conftest.c <<EOF | 985 cat > conftest.c <<EOF |
981 #ifdef __GNUC__ | 986 #ifdef __GNUC__ |
982 yes; | 987 yes; |
983 #endif | 988 #endif |
984 EOF | 989 EOF |
985 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 990 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
986 ac_cv_prog_gcc=yes | 991 ac_cv_prog_gcc=yes |
987 else | 992 else |
988 ac_cv_prog_gcc=no | 993 ac_cv_prog_gcc=no |
989 fi | 994 fi |
990 fi | 995 fi |
999 | 1004 |
1000 ac_test_CFLAGS="${CFLAGS+set}" | 1005 ac_test_CFLAGS="${CFLAGS+set}" |
1001 ac_save_CFLAGS="$CFLAGS" | 1006 ac_save_CFLAGS="$CFLAGS" |
1002 CFLAGS= | 1007 CFLAGS= |
1003 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 1008 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
1004 echo "configure:1005: checking whether ${CC-cc} accepts -g" >&5 | 1009 echo "configure:1010: checking whether ${CC-cc} accepts -g" >&5 |
1005 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | 1010 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1006 echo $ac_n "(cached) $ac_c" 1>&6 | 1011 echo $ac_n "(cached) $ac_c" 1>&6 |
1007 else | 1012 else |
1008 echo 'void f(){}' > conftest.c | 1013 echo 'void f(){}' > conftest.c |
1009 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 1014 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
1031 CFLAGS= | 1036 CFLAGS= |
1032 fi | 1037 fi |
1033 fi | 1038 fi |
1034 | 1039 |
1035 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 1040 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1036 echo "configure:1037: checking how to run the C preprocessor" >&5 | 1041 echo "configure:1042: checking how to run the C preprocessor" >&5 |
1037 # On Suns, sometimes $CPP names a directory. | 1042 # On Suns, sometimes $CPP names a directory. |
1038 if test -n "$CPP" && test -d "$CPP"; then | 1043 if test -n "$CPP" && test -d "$CPP"; then |
1039 CPP= | 1044 CPP= |
1040 fi | 1045 fi |
1041 if test -z "$CPP"; then | 1046 if test -z "$CPP"; then |
1046 # substituted into the Makefile and "${CC-cc}" will confuse make. | 1051 # substituted into the Makefile and "${CC-cc}" will confuse make. |
1047 CPP="${CC-cc} -E" | 1052 CPP="${CC-cc} -E" |
1048 # On the NeXT, cc -E runs the code through the compiler's parser, | 1053 # On the NeXT, cc -E runs the code through the compiler's parser, |
1049 # not just through cpp. | 1054 # not just through cpp. |
1050 cat > conftest.$ac_ext <<EOF | 1055 cat > conftest.$ac_ext <<EOF |
1051 #line 1052 "configure" | 1056 #line 1057 "configure" |
1052 #include "confdefs.h" | 1057 #include "confdefs.h" |
1053 #include <assert.h> | 1058 #include <assert.h> |
1054 Syntax Error | 1059 Syntax Error |
1055 EOF | 1060 EOF |
1056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 1061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1057 { (eval echo configure:1058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 1062 { (eval echo configure:1063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 1063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1059 if test -z "$ac_err"; then | 1064 if test -z "$ac_err"; then |
1060 : | 1065 : |
1061 else | 1066 else |
1062 echo "$ac_err" >&5 | 1067 echo "$ac_err" >&5 |
1063 echo "configure: failed program was:" >&5 | 1068 echo "configure: failed program was:" >&5 |
1064 cat conftest.$ac_ext >&5 | 1069 cat conftest.$ac_ext >&5 |
1065 rm -rf conftest* | 1070 rm -rf conftest* |
1066 CPP="${CC-cc} -E -traditional-cpp" | 1071 CPP="${CC-cc} -E -traditional-cpp" |
1067 cat > conftest.$ac_ext <<EOF | 1072 cat > conftest.$ac_ext <<EOF |
1068 #line 1069 "configure" | 1073 #line 1074 "configure" |
1069 #include "confdefs.h" | 1074 #include "confdefs.h" |
1070 #include <assert.h> | 1075 #include <assert.h> |
1071 Syntax Error | 1076 Syntax Error |
1072 EOF | 1077 EOF |
1073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 1078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1074 { (eval echo configure:1075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 1079 { (eval echo configure:1080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 1080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1076 if test -z "$ac_err"; then | 1081 if test -z "$ac_err"; then |
1077 : | 1082 : |
1078 else | 1083 else |
1079 echo "$ac_err" >&5 | 1084 echo "$ac_err" >&5 |
1080 echo "configure: failed program was:" >&5 | 1085 echo "configure: failed program was:" >&5 |
1081 cat conftest.$ac_ext >&5 | 1086 cat conftest.$ac_ext >&5 |
1082 rm -rf conftest* | 1087 rm -rf conftest* |
1083 CPP="${CC-cc} -nologo -E" | 1088 CPP="${CC-cc} -nologo -E" |
1084 cat > conftest.$ac_ext <<EOF | 1089 cat > conftest.$ac_ext <<EOF |
1085 #line 1086 "configure" | 1090 #line 1091 "configure" |
1086 #include "confdefs.h" | 1091 #include "confdefs.h" |
1087 #include <assert.h> | 1092 #include <assert.h> |
1088 Syntax Error | 1093 Syntax Error |
1089 EOF | 1094 EOF |
1090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 1095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1091 { (eval echo configure:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 1096 { (eval echo configure:1097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 1097 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1093 if test -z "$ac_err"; then | 1098 if test -z "$ac_err"; then |
1094 : | 1099 : |
1095 else | 1100 else |
1096 echo "$ac_err" >&5 | 1101 echo "$ac_err" >&5 |
1112 fi | 1117 fi |
1113 echo "$ac_t""$CPP" 1>&6 | 1118 echo "$ac_t""$CPP" 1>&6 |
1114 | 1119 |
1115 if test $ac_cv_prog_gcc = yes; then | 1120 if test $ac_cv_prog_gcc = yes; then |
1116 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | 1121 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 |
1117 echo "configure:1118: checking whether ${CC-cc} needs -traditional" >&5 | 1122 echo "configure:1123: checking whether ${CC-cc} needs -traditional" >&5 |
1118 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then | 1123 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
1119 echo $ac_n "(cached) $ac_c" 1>&6 | 1124 echo $ac_n "(cached) $ac_c" 1>&6 |
1120 else | 1125 else |
1121 ac_pattern="Autoconf.*'x'" | 1126 ac_pattern="Autoconf.*'x'" |
1122 cat > conftest.$ac_ext <<EOF | 1127 cat > conftest.$ac_ext <<EOF |
1123 #line 1124 "configure" | 1128 #line 1129 "configure" |
1124 #include "confdefs.h" | 1129 #include "confdefs.h" |
1125 #include <sgtty.h> | 1130 #include <sgtty.h> |
1126 Autoconf TIOCGETP | 1131 Autoconf TIOCGETP |
1127 EOF | 1132 EOF |
1128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 1133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1136 rm -f conftest* | 1141 rm -f conftest* |
1137 | 1142 |
1138 | 1143 |
1139 if test $ac_cv_prog_gcc_traditional = no; then | 1144 if test $ac_cv_prog_gcc_traditional = no; then |
1140 cat > conftest.$ac_ext <<EOF | 1145 cat > conftest.$ac_ext <<EOF |
1141 #line 1142 "configure" | 1146 #line 1147 "configure" |
1142 #include "confdefs.h" | 1147 #include "confdefs.h" |
1143 #include <termio.h> | 1148 #include <termio.h> |
1144 Autoconf TCGETA | 1149 Autoconf TCGETA |
1145 EOF | 1150 EOF |
1146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 1151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1169 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 1174 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1170 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 1175 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1171 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 1176 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1172 # ./install, which can be erroneously created by make from ./install.sh. | 1177 # ./install, which can be erroneously created by make from ./install.sh. |
1173 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 1178 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
1174 echo "configure:1175: checking for a BSD compatible install" >&5 | 1179 echo "configure:1180: checking for a BSD compatible install" >&5 |
1175 if test -z "$INSTALL"; then | 1180 if test -z "$INSTALL"; then |
1176 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | 1181 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
1177 echo $ac_n "(cached) $ac_c" 1>&6 | 1182 echo $ac_n "(cached) $ac_c" 1>&6 |
1178 else | 1183 else |
1179 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | 1184 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
1222 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | 1227 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
1223 | 1228 |
1224 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 1229 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
1225 | 1230 |
1226 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 1231 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
1227 echo "configure:1228: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 1232 echo "configure:1233: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
1228 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 1233 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
1229 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | 1234 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
1230 echo $ac_n "(cached) $ac_c" 1>&6 | 1235 echo $ac_n "(cached) $ac_c" 1>&6 |
1231 else | 1236 else |
1232 cat > conftestmake <<\EOF | 1237 cat > conftestmake <<\EOF |
1252 | 1257 |
1253 | 1258 |
1254 # Extract the first word of "sendmail", so it can be a program name with args. | 1259 # Extract the first word of "sendmail", so it can be a program name with args. |
1255 set dummy sendmail; ac_word=$2 | 1260 set dummy sendmail; ac_word=$2 |
1256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1257 echo "configure:1258: checking for $ac_word" >&5 | 1262 echo "configure:1263: checking for $ac_word" >&5 |
1258 if eval "test \"`echo '$''{'ac_cv_path_SENDMAILPROG'+set}'`\" = set"; then | 1263 if eval "test \"`echo '$''{'ac_cv_path_SENDMAILPROG'+set}'`\" = set"; then |
1259 echo $ac_n "(cached) $ac_c" 1>&6 | 1264 echo $ac_n "(cached) $ac_c" 1>&6 |
1260 else | 1265 else |
1261 case "$SENDMAILPROG" in | 1266 case "$SENDMAILPROG" in |
1262 /*) | 1267 /*) |
1291 { echo "configure: error: sendmail program not found in /usr/lib:/usr/sbin:$PATH ." 1>&2; exit 1; } | 1296 { echo "configure: error: sendmail program not found in /usr/lib:/usr/sbin:$PATH ." 1>&2; exit 1; } |
1292 fi | 1297 fi |
1293 | 1298 |
1294 | 1299 |
1295 echo $ac_n "checking for AIX""... $ac_c" 1>&6 | 1300 echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
1296 echo "configure:1297: checking for AIX" >&5 | 1301 echo "configure:1302: checking for AIX" >&5 |
1297 cat > conftest.$ac_ext <<EOF | 1302 cat > conftest.$ac_ext <<EOF |
1298 #line 1299 "configure" | 1303 #line 1304 "configure" |
1299 #include "confdefs.h" | 1304 #include "confdefs.h" |
1300 #ifdef _AIX | 1305 #ifdef _AIX |
1301 yes | 1306 yes |
1302 #endif | 1307 #endif |
1303 | 1308 |
1314 echo "$ac_t""no" 1>&6 | 1319 echo "$ac_t""no" 1>&6 |
1315 fi | 1320 fi |
1316 rm -f conftest* | 1321 rm -f conftest* |
1317 | 1322 |
1318 | 1323 |
1319 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 | 1324 |
1320 echo "configure:1321: checking for POSIXized ISC" >&5 | 1325 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
1321 if test -d /etc/conf/kconfig.d && | 1326 echo "configure:1327: checking for strerror in -lcposix" >&5 |
1322 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 | 1327 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
1323 then | 1328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1329 echo $ac_n "(cached) $ac_c" 1>&6 | |
1330 else | |
1331 ac_save_LIBS="$LIBS" | |
1332 LIBS="-lcposix $LIBS" | |
1333 cat > conftest.$ac_ext <<EOF | |
1334 #line 1335 "configure" | |
1335 #include "confdefs.h" | |
1336 /* Override any gcc2 internal prototype to avoid an error. */ | |
1337 /* We use char because int might match the return type of a gcc2 | |
1338 builtin and then its argument prototype would still apply. */ | |
1339 char strerror(); | |
1340 | |
1341 int main() { | |
1342 strerror() | |
1343 ; return 0; } | |
1344 EOF | |
1345 if { (eval echo configure:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
1346 rm -rf conftest* | |
1347 eval "ac_cv_lib_$ac_lib_var=yes" | |
1348 else | |
1349 echo "configure: failed program was:" >&5 | |
1350 cat conftest.$ac_ext >&5 | |
1351 rm -rf conftest* | |
1352 eval "ac_cv_lib_$ac_lib_var=no" | |
1353 fi | |
1354 rm -f conftest* | |
1355 LIBS="$ac_save_LIBS" | |
1356 | |
1357 fi | |
1358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1324 echo "$ac_t""yes" 1>&6 | 1359 echo "$ac_t""yes" 1>&6 |
1325 ISC=yes # If later tests want to check for ISC. | 1360 LIBS="$LIBS -lcposix" |
1326 cat >> confdefs.h <<\EOF | |
1327 #define _POSIX_SOURCE 1 | |
1328 EOF | |
1329 | |
1330 if test "$GCC" = yes; then | |
1331 CC="$CC -posix" | |
1332 else | |
1333 CC="$CC -Xp" | |
1334 fi | |
1335 else | 1361 else |
1336 echo "$ac_t""no" 1>&6 | 1362 echo "$ac_t""no" 1>&6 |
1337 ISC= | 1363 fi |
1338 fi | 1364 |
1365 | |
1339 | 1366 |
1340 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` | 1367 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
1341 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 | 1368 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
1342 echo "configure:1343: checking for minix/config.h" >&5 | 1369 echo "configure:1370: checking for minix/config.h" >&5 |
1343 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 1370 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1344 echo $ac_n "(cached) $ac_c" 1>&6 | 1371 echo $ac_n "(cached) $ac_c" 1>&6 |
1345 else | 1372 else |
1346 cat > conftest.$ac_ext <<EOF | 1373 cat > conftest.$ac_ext <<EOF |
1347 #line 1348 "configure" | 1374 #line 1375 "configure" |
1348 #include "confdefs.h" | 1375 #include "confdefs.h" |
1349 #include <minix/config.h> | 1376 #include <minix/config.h> |
1350 EOF | 1377 EOF |
1351 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 1378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1352 { (eval echo configure:1353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 1379 { (eval echo configure:1380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1353 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 1380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1354 if test -z "$ac_err"; then | 1381 if test -z "$ac_err"; then |
1355 rm -rf conftest* | 1382 rm -rf conftest* |
1356 eval "ac_cv_header_$ac_safe=yes" | 1383 eval "ac_cv_header_$ac_safe=yes" |
1357 else | 1384 else |
1396 # candidate. So, let's use it below instead of gethostbyname, and see. | 1423 # candidate. So, let's use it below instead of gethostbyname, and see. |
1397 | 1424 |
1398 # [ This is ripped from GNU tar. ] | 1425 # [ This is ripped from GNU tar. ] |
1399 | 1426 |
1400 echo $ac_n "checking for gethostent""... $ac_c" 1>&6 | 1427 echo $ac_n "checking for gethostent""... $ac_c" 1>&6 |
1401 echo "configure:1402: checking for gethostent" >&5 | 1428 echo "configure:1429: checking for gethostent" >&5 |
1402 if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then | 1429 if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then |
1403 echo $ac_n "(cached) $ac_c" 1>&6 | 1430 echo $ac_n "(cached) $ac_c" 1>&6 |
1404 else | 1431 else |
1405 cat > conftest.$ac_ext <<EOF | 1432 cat > conftest.$ac_ext <<EOF |
1406 #line 1407 "configure" | 1433 #line 1434 "configure" |
1407 #include "confdefs.h" | 1434 #include "confdefs.h" |
1408 /* System header to define __stub macros and hopefully few prototypes, | 1435 /* System header to define __stub macros and hopefully few prototypes, |
1409 which can conflict with char gethostent(); below. */ | 1436 which can conflict with char gethostent(); below. */ |
1410 #include <assert.h> | 1437 #include <assert.h> |
1411 /* Override any gcc2 internal prototype to avoid an error. */ | 1438 /* Override any gcc2 internal prototype to avoid an error. */ |
1424 gethostent(); | 1451 gethostent(); |
1425 #endif | 1452 #endif |
1426 | 1453 |
1427 ; return 0; } | 1454 ; return 0; } |
1428 EOF | 1455 EOF |
1429 if { (eval echo configure:1430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 1456 if { (eval echo configure:1457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1430 rm -rf conftest* | 1457 rm -rf conftest* |
1431 eval "ac_cv_func_gethostent=yes" | 1458 eval "ac_cv_func_gethostent=yes" |
1432 else | 1459 else |
1433 echo "configure: failed program was:" >&5 | 1460 echo "configure: failed program was:" >&5 |
1434 cat conftest.$ac_ext >&5 | 1461 cat conftest.$ac_ext >&5 |
1445 echo "$ac_t""no" 1>&6 | 1472 echo "$ac_t""no" 1>&6 |
1446 fi | 1473 fi |
1447 | 1474 |
1448 if test $ac_cv_func_gethostent = no; then | 1475 if test $ac_cv_func_gethostent = no; then |
1449 echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6 | 1476 echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6 |
1450 echo "configure:1451: checking for gethostent in -lnsl" >&5 | 1477 echo "configure:1478: checking for gethostent in -lnsl" >&5 |
1451 ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'` | 1478 ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'` |
1452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 1479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1453 echo $ac_n "(cached) $ac_c" 1>&6 | 1480 echo $ac_n "(cached) $ac_c" 1>&6 |
1454 else | 1481 else |
1455 ac_save_LIBS="$LIBS" | 1482 ac_save_LIBS="$LIBS" |
1456 LIBS="-lnsl $LIBS" | 1483 LIBS="-lnsl $LIBS" |
1457 cat > conftest.$ac_ext <<EOF | 1484 cat > conftest.$ac_ext <<EOF |
1458 #line 1459 "configure" | 1485 #line 1486 "configure" |
1459 #include "confdefs.h" | 1486 #include "confdefs.h" |
1460 /* Override any gcc2 internal prototype to avoid an error. */ | 1487 /* Override any gcc2 internal prototype to avoid an error. */ |
1461 /* We use char because int might match the return type of a gcc2 | 1488 /* We use char because int might match the return type of a gcc2 |
1462 builtin and then its argument prototype would still apply. */ | 1489 builtin and then its argument prototype would still apply. */ |
1463 char gethostent(); | 1490 char gethostent(); |
1464 | 1491 |
1465 int main() { | 1492 int main() { |
1466 gethostent() | 1493 gethostent() |
1467 ; return 0; } | 1494 ; return 0; } |
1468 EOF | 1495 EOF |
1469 if { (eval echo configure:1470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 1496 if { (eval echo configure:1497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1470 rm -rf conftest* | 1497 rm -rf conftest* |
1471 eval "ac_cv_lib_$ac_lib_var=yes" | 1498 eval "ac_cv_lib_$ac_lib_var=yes" |
1472 else | 1499 else |
1473 echo "configure: failed program was:" >&5 | 1500 echo "configure: failed program was:" >&5 |
1474 cat conftest.$ac_ext >&5 | 1501 cat conftest.$ac_ext >&5 |
1493 echo "$ac_t""no" 1>&6 | 1520 echo "$ac_t""no" 1>&6 |
1494 fi | 1521 fi |
1495 | 1522 |
1496 fi | 1523 fi |
1497 echo $ac_n "checking for setsockopt""... $ac_c" 1>&6 | 1524 echo $ac_n "checking for setsockopt""... $ac_c" 1>&6 |
1498 echo "configure:1499: checking for setsockopt" >&5 | 1525 echo "configure:1526: checking for setsockopt" >&5 |
1499 if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then | 1526 if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then |
1500 echo $ac_n "(cached) $ac_c" 1>&6 | 1527 echo $ac_n "(cached) $ac_c" 1>&6 |
1501 else | 1528 else |
1502 cat > conftest.$ac_ext <<EOF | 1529 cat > conftest.$ac_ext <<EOF |
1503 #line 1504 "configure" | 1530 #line 1531 "configure" |
1504 #include "confdefs.h" | 1531 #include "confdefs.h" |
1505 /* System header to define __stub macros and hopefully few prototypes, | 1532 /* System header to define __stub macros and hopefully few prototypes, |
1506 which can conflict with char setsockopt(); below. */ | 1533 which can conflict with char setsockopt(); below. */ |
1507 #include <assert.h> | 1534 #include <assert.h> |
1508 /* Override any gcc2 internal prototype to avoid an error. */ | 1535 /* Override any gcc2 internal prototype to avoid an error. */ |
1521 setsockopt(); | 1548 setsockopt(); |
1522 #endif | 1549 #endif |
1523 | 1550 |
1524 ; return 0; } | 1551 ; return 0; } |
1525 EOF | 1552 EOF |
1526 if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 1553 if { (eval echo configure:1554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1527 rm -rf conftest* | 1554 rm -rf conftest* |
1528 eval "ac_cv_func_setsockopt=yes" | 1555 eval "ac_cv_func_setsockopt=yes" |
1529 else | 1556 else |
1530 echo "configure: failed program was:" >&5 | 1557 echo "configure: failed program was:" >&5 |
1531 cat conftest.$ac_ext >&5 | 1558 cat conftest.$ac_ext >&5 |
1542 echo "$ac_t""no" 1>&6 | 1569 echo "$ac_t""no" 1>&6 |
1543 fi | 1570 fi |
1544 | 1571 |
1545 if test $ac_cv_func_setsockopt = no; then | 1572 if test $ac_cv_func_setsockopt = no; then |
1546 echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6 | 1573 echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6 |
1547 echo "configure:1548: checking for setsockopt in -lsocket" >&5 | 1574 echo "configure:1575: checking for setsockopt in -lsocket" >&5 |
1548 ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'` | 1575 ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'` |
1549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 1576 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1550 echo $ac_n "(cached) $ac_c" 1>&6 | 1577 echo $ac_n "(cached) $ac_c" 1>&6 |
1551 else | 1578 else |
1552 ac_save_LIBS="$LIBS" | 1579 ac_save_LIBS="$LIBS" |
1553 LIBS="-lsocket $LIBS" | 1580 LIBS="-lsocket $LIBS" |
1554 cat > conftest.$ac_ext <<EOF | 1581 cat > conftest.$ac_ext <<EOF |
1555 #line 1556 "configure" | 1582 #line 1583 "configure" |
1556 #include "confdefs.h" | 1583 #include "confdefs.h" |
1557 /* Override any gcc2 internal prototype to avoid an error. */ | 1584 /* Override any gcc2 internal prototype to avoid an error. */ |
1558 /* We use char because int might match the return type of a gcc2 | 1585 /* We use char because int might match the return type of a gcc2 |
1559 builtin and then its argument prototype would still apply. */ | 1586 builtin and then its argument prototype would still apply. */ |
1560 char setsockopt(); | 1587 char setsockopt(); |
1561 | 1588 |
1562 int main() { | 1589 int main() { |
1563 setsockopt() | 1590 setsockopt() |
1564 ; return 0; } | 1591 ; return 0; } |
1565 EOF | 1592 EOF |
1566 if { (eval echo configure:1567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 1593 if { (eval echo configure:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1567 rm -rf conftest* | 1594 rm -rf conftest* |
1568 eval "ac_cv_lib_$ac_lib_var=yes" | 1595 eval "ac_cv_lib_$ac_lib_var=yes" |
1569 else | 1596 else |
1570 echo "configure: failed program was:" >&5 | 1597 echo "configure: failed program was:" >&5 |
1571 cat conftest.$ac_ext >&5 | 1598 cat conftest.$ac_ext >&5 |
1605 LIBS="$LIBS -L$withval" | 1632 LIBS="$LIBS -L$withval" |
1606 | 1633 |
1607 fi | 1634 fi |
1608 | 1635 |
1609 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6 | 1636 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6 |
1610 echo "configure:1611: checking for gdbm_open in -lgdbm" >&5 | 1637 echo "configure:1638: checking for gdbm_open in -lgdbm" >&5 |
1611 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'` | 1638 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'` |
1612 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 1639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1613 echo $ac_n "(cached) $ac_c" 1>&6 | 1640 echo $ac_n "(cached) $ac_c" 1>&6 |
1614 else | 1641 else |
1615 ac_save_LIBS="$LIBS" | 1642 ac_save_LIBS="$LIBS" |
1616 LIBS="-lgdbm $LIBS" | 1643 LIBS="-lgdbm $LIBS" |
1617 cat > conftest.$ac_ext <<EOF | 1644 cat > conftest.$ac_ext <<EOF |
1618 #line 1619 "configure" | 1645 #line 1646 "configure" |
1619 #include "confdefs.h" | 1646 #include "confdefs.h" |
1620 /* Override any gcc2 internal prototype to avoid an error. */ | 1647 /* Override any gcc2 internal prototype to avoid an error. */ |
1621 /* We use char because int might match the return type of a gcc2 | 1648 /* We use char because int might match the return type of a gcc2 |
1622 builtin and then its argument prototype would still apply. */ | 1649 builtin and then its argument prototype would still apply. */ |
1623 char gdbm_open(); | 1650 char gdbm_open(); |
1624 | 1651 |
1625 int main() { | 1652 int main() { |
1626 gdbm_open() | 1653 gdbm_open() |
1627 ; return 0; } | 1654 ; return 0; } |
1628 EOF | 1655 EOF |
1629 if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 1656 if { (eval echo configure:1657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1630 rm -rf conftest* | 1657 rm -rf conftest* |
1631 eval "ac_cv_lib_$ac_lib_var=yes" | 1658 eval "ac_cv_lib_$ac_lib_var=yes" |
1632 else | 1659 else |
1633 echo "configure: failed program was:" >&5 | 1660 echo "configure: failed program was:" >&5 |
1634 cat conftest.$ac_ext >&5 | 1661 cat conftest.$ac_ext >&5 |
1641 fi | 1668 fi |
1642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 1669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1643 echo "$ac_t""yes" 1>&6 | 1670 echo "$ac_t""yes" 1>&6 |
1644 ac_safe=`echo "gdbm.h" | sed 'y%./+-%__p_%'` | 1671 ac_safe=`echo "gdbm.h" | sed 'y%./+-%__p_%'` |
1645 echo $ac_n "checking for gdbm.h""... $ac_c" 1>&6 | 1672 echo $ac_n "checking for gdbm.h""... $ac_c" 1>&6 |
1646 echo "configure:1647: checking for gdbm.h" >&5 | 1673 echo "configure:1674: checking for gdbm.h" >&5 |
1647 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 1674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1648 echo $ac_n "(cached) $ac_c" 1>&6 | 1675 echo $ac_n "(cached) $ac_c" 1>&6 |
1649 else | 1676 else |
1650 cat > conftest.$ac_ext <<EOF | 1677 cat > conftest.$ac_ext <<EOF |
1651 #line 1652 "configure" | 1678 #line 1679 "configure" |
1652 #include "confdefs.h" | 1679 #include "confdefs.h" |
1653 #include <gdbm.h> | 1680 #include <gdbm.h> |
1654 EOF | 1681 EOF |
1655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 1682 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; } | 1683 { (eval echo configure:1684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1657 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 1684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1658 if test -z "$ac_err"; then | 1685 if test -z "$ac_err"; then |
1659 rm -rf conftest* | 1686 rm -rf conftest* |
1660 eval "ac_cv_header_$ac_safe=yes" | 1687 eval "ac_cv_header_$ac_safe=yes" |
1661 else | 1688 else |
1681 fi | 1708 fi |
1682 | 1709 |
1683 | 1710 |
1684 | 1711 |
1685 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 1712 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1686 echo "configure:1687: checking for ANSI C header files" >&5 | 1713 echo "configure:1714: checking for ANSI C header files" >&5 |
1687 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | 1714 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1688 echo $ac_n "(cached) $ac_c" 1>&6 | 1715 echo $ac_n "(cached) $ac_c" 1>&6 |
1689 else | 1716 else |
1690 cat > conftest.$ac_ext <<EOF | 1717 cat > conftest.$ac_ext <<EOF |
1691 #line 1692 "configure" | 1718 #line 1719 "configure" |
1692 #include "confdefs.h" | 1719 #include "confdefs.h" |
1693 #include <stdlib.h> | 1720 #include <stdlib.h> |
1694 #include <stdarg.h> | 1721 #include <stdarg.h> |
1695 #include <string.h> | 1722 #include <string.h> |
1696 #include <float.h> | 1723 #include <float.h> |
1697 EOF | 1724 EOF |
1698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 1725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1699 { (eval echo configure:1700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 1726 { (eval echo configure:1727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 1727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1701 if test -z "$ac_err"; then | 1728 if test -z "$ac_err"; then |
1702 rm -rf conftest* | 1729 rm -rf conftest* |
1703 ac_cv_header_stdc=yes | 1730 ac_cv_header_stdc=yes |
1704 else | 1731 else |
1711 rm -f conftest* | 1738 rm -f conftest* |
1712 | 1739 |
1713 if test $ac_cv_header_stdc = yes; then | 1740 if test $ac_cv_header_stdc = yes; then |
1714 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 1741 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
1715 cat > conftest.$ac_ext <<EOF | 1742 cat > conftest.$ac_ext <<EOF |
1716 #line 1717 "configure" | 1743 #line 1744 "configure" |
1717 #include "confdefs.h" | 1744 #include "confdefs.h" |
1718 #include <string.h> | 1745 #include <string.h> |
1719 EOF | 1746 EOF |
1720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 1747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1721 egrep "memchr" >/dev/null 2>&1; then | 1748 egrep "memchr" >/dev/null 2>&1; then |
1729 fi | 1756 fi |
1730 | 1757 |
1731 if test $ac_cv_header_stdc = yes; then | 1758 if test $ac_cv_header_stdc = yes; then |
1732 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 1759 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
1733 cat > conftest.$ac_ext <<EOF | 1760 cat > conftest.$ac_ext <<EOF |
1734 #line 1735 "configure" | 1761 #line 1762 "configure" |
1735 #include "confdefs.h" | 1762 #include "confdefs.h" |
1736 #include <stdlib.h> | 1763 #include <stdlib.h> |
1737 EOF | 1764 EOF |
1738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 1765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1739 egrep "free" >/dev/null 2>&1; then | 1766 egrep "free" >/dev/null 2>&1; then |
1750 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 1777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
1751 if test "$cross_compiling" = yes; then | 1778 if test "$cross_compiling" = yes; then |
1752 : | 1779 : |
1753 else | 1780 else |
1754 cat > conftest.$ac_ext <<EOF | 1781 cat > conftest.$ac_ext <<EOF |
1755 #line 1756 "configure" | 1782 #line 1783 "configure" |
1756 #include "confdefs.h" | 1783 #include "confdefs.h" |
1757 #include <ctype.h> | 1784 #include <ctype.h> |
1758 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 1785 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1759 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 1786 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1760 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 1787 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1761 int main () { int i; for (i = 0; i < 256; i++) | 1788 int main () { int i; for (i = 0; i < 256; i++) |
1762 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 1789 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1763 exit (0); } | 1790 exit (0); } |
1764 | 1791 |
1765 EOF | 1792 EOF |
1766 if { (eval echo configure:1767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 1793 if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1767 then | 1794 then |
1768 : | 1795 : |
1769 else | 1796 else |
1770 echo "configure: failed program was:" >&5 | 1797 echo "configure: failed program was:" >&5 |
1771 cat conftest.$ac_ext >&5 | 1798 cat conftest.$ac_ext >&5 |
1789 ac_header_dirent=no | 1816 ac_header_dirent=no |
1790 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h | 1817 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
1791 do | 1818 do |
1792 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 1819 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1793 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 | 1820 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
1794 echo "configure:1795: checking for $ac_hdr that defines DIR" >&5 | 1821 echo "configure:1822: checking for $ac_hdr that defines DIR" >&5 |
1795 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then | 1822 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
1796 echo $ac_n "(cached) $ac_c" 1>&6 | 1823 echo $ac_n "(cached) $ac_c" 1>&6 |
1797 else | 1824 else |
1798 cat > conftest.$ac_ext <<EOF | 1825 cat > conftest.$ac_ext <<EOF |
1799 #line 1800 "configure" | 1826 #line 1827 "configure" |
1800 #include "confdefs.h" | 1827 #include "confdefs.h" |
1801 #include <sys/types.h> | 1828 #include <sys/types.h> |
1802 #include <$ac_hdr> | 1829 #include <$ac_hdr> |
1803 int main() { | 1830 int main() { |
1804 DIR *dirp = 0; | 1831 DIR *dirp = 0; |
1805 ; return 0; } | 1832 ; return 0; } |
1806 EOF | 1833 EOF |
1807 if { (eval echo configure:1808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 1834 if { (eval echo configure:1835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1808 rm -rf conftest* | 1835 rm -rf conftest* |
1809 eval "ac_cv_header_dirent_$ac_safe=yes" | 1836 eval "ac_cv_header_dirent_$ac_safe=yes" |
1810 else | 1837 else |
1811 echo "configure: failed program was:" >&5 | 1838 echo "configure: failed program was:" >&5 |
1812 cat conftest.$ac_ext >&5 | 1839 cat conftest.$ac_ext >&5 |
1827 fi | 1854 fi |
1828 done | 1855 done |
1829 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 1856 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
1830 if test $ac_header_dirent = dirent.h; then | 1857 if test $ac_header_dirent = dirent.h; then |
1831 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 | 1858 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
1832 echo "configure:1833: checking for opendir in -ldir" >&5 | 1859 echo "configure:1860: checking for opendir in -ldir" >&5 |
1833 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` | 1860 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
1834 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 1861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1835 echo $ac_n "(cached) $ac_c" 1>&6 | 1862 echo $ac_n "(cached) $ac_c" 1>&6 |
1836 else | 1863 else |
1837 ac_save_LIBS="$LIBS" | 1864 ac_save_LIBS="$LIBS" |
1838 LIBS="-ldir $LIBS" | 1865 LIBS="-ldir $LIBS" |
1839 cat > conftest.$ac_ext <<EOF | 1866 cat > conftest.$ac_ext <<EOF |
1840 #line 1841 "configure" | 1867 #line 1868 "configure" |
1841 #include "confdefs.h" | 1868 #include "confdefs.h" |
1842 /* Override any gcc2 internal prototype to avoid an error. */ | 1869 /* Override any gcc2 internal prototype to avoid an error. */ |
1843 /* We use char because int might match the return type of a gcc2 | 1870 /* We use char because int might match the return type of a gcc2 |
1844 builtin and then its argument prototype would still apply. */ | 1871 builtin and then its argument prototype would still apply. */ |
1845 char opendir(); | 1872 char opendir(); |
1846 | 1873 |
1847 int main() { | 1874 int main() { |
1848 opendir() | 1875 opendir() |
1849 ; return 0; } | 1876 ; return 0; } |
1850 EOF | 1877 EOF |
1851 if { (eval echo configure:1852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 1878 if { (eval echo configure:1879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1852 rm -rf conftest* | 1879 rm -rf conftest* |
1853 eval "ac_cv_lib_$ac_lib_var=yes" | 1880 eval "ac_cv_lib_$ac_lib_var=yes" |
1854 else | 1881 else |
1855 echo "configure: failed program was:" >&5 | 1882 echo "configure: failed program was:" >&5 |
1856 cat conftest.$ac_ext >&5 | 1883 cat conftest.$ac_ext >&5 |
1868 echo "$ac_t""no" 1>&6 | 1895 echo "$ac_t""no" 1>&6 |
1869 fi | 1896 fi |
1870 | 1897 |
1871 else | 1898 else |
1872 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 | 1899 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
1873 echo "configure:1874: checking for opendir in -lx" >&5 | 1900 echo "configure:1901: checking for opendir in -lx" >&5 |
1874 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` | 1901 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
1875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 1902 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1876 echo $ac_n "(cached) $ac_c" 1>&6 | 1903 echo $ac_n "(cached) $ac_c" 1>&6 |
1877 else | 1904 else |
1878 ac_save_LIBS="$LIBS" | 1905 ac_save_LIBS="$LIBS" |
1879 LIBS="-lx $LIBS" | 1906 LIBS="-lx $LIBS" |
1880 cat > conftest.$ac_ext <<EOF | 1907 cat > conftest.$ac_ext <<EOF |
1881 #line 1882 "configure" | 1908 #line 1909 "configure" |
1882 #include "confdefs.h" | 1909 #include "confdefs.h" |
1883 /* Override any gcc2 internal prototype to avoid an error. */ | 1910 /* Override any gcc2 internal prototype to avoid an error. */ |
1884 /* We use char because int might match the return type of a gcc2 | 1911 /* We use char because int might match the return type of a gcc2 |
1885 builtin and then its argument prototype would still apply. */ | 1912 builtin and then its argument prototype would still apply. */ |
1886 char opendir(); | 1913 char opendir(); |
1887 | 1914 |
1888 int main() { | 1915 int main() { |
1889 opendir() | 1916 opendir() |
1890 ; return 0; } | 1917 ; return 0; } |
1891 EOF | 1918 EOF |
1892 if { (eval echo configure:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 1919 if { (eval echo configure:1920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1893 rm -rf conftest* | 1920 rm -rf conftest* |
1894 eval "ac_cv_lib_$ac_lib_var=yes" | 1921 eval "ac_cv_lib_$ac_lib_var=yes" |
1895 else | 1922 else |
1896 echo "configure: failed program was:" >&5 | 1923 echo "configure: failed program was:" >&5 |
1897 cat conftest.$ac_ext >&5 | 1924 cat conftest.$ac_ext >&5 |
1913 | 1940 |
1914 for ac_hdr in syslog.h sys/resource.h sys/utsname.h | 1941 for ac_hdr in syslog.h sys/resource.h sys/utsname.h |
1915 do | 1942 do |
1916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 1943 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 1944 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1918 echo "configure:1919: checking for $ac_hdr" >&5 | 1945 echo "configure:1946: checking for $ac_hdr" >&5 |
1919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 1946 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1920 echo $ac_n "(cached) $ac_c" 1>&6 | 1947 echo $ac_n "(cached) $ac_c" 1>&6 |
1921 else | 1948 else |
1922 cat > conftest.$ac_ext <<EOF | 1949 cat > conftest.$ac_ext <<EOF |
1923 #line 1924 "configure" | 1950 #line 1951 "configure" |
1924 #include "confdefs.h" | 1951 #include "confdefs.h" |
1925 #include <$ac_hdr> | 1952 #include <$ac_hdr> |
1926 EOF | 1953 EOF |
1927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 1954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1928 { (eval echo configure:1929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 1955 { (eval echo configure:1956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 1956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1930 if test -z "$ac_err"; then | 1957 if test -z "$ac_err"; then |
1931 rm -rf conftest* | 1958 rm -rf conftest* |
1932 eval "ac_cv_header_$ac_safe=yes" | 1959 eval "ac_cv_header_$ac_safe=yes" |
1933 else | 1960 else |
1953 | 1980 |
1954 for ac_hdr in fnmatch.h errno.h getopt.h time.h sys/time.h signal.h | 1981 for ac_hdr in fnmatch.h errno.h getopt.h time.h sys/time.h signal.h |
1955 do | 1982 do |
1956 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 1983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 1984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1958 echo "configure:1959: checking for $ac_hdr" >&5 | 1985 echo "configure:1986: checking for $ac_hdr" >&5 |
1959 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 1986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1960 echo $ac_n "(cached) $ac_c" 1>&6 | 1987 echo $ac_n "(cached) $ac_c" 1>&6 |
1961 else | 1988 else |
1962 cat > conftest.$ac_ext <<EOF | 1989 cat > conftest.$ac_ext <<EOF |
1963 #line 1964 "configure" | 1990 #line 1991 "configure" |
1964 #include "confdefs.h" | 1991 #include "confdefs.h" |
1965 #include <$ac_hdr> | 1992 #include <$ac_hdr> |
1966 EOF | 1993 EOF |
1967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 1994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1968 { (eval echo configure:1969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 1995 { (eval echo configure:1996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 1996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1970 if test -z "$ac_err"; then | 1997 if test -z "$ac_err"; then |
1971 rm -rf conftest* | 1998 rm -rf conftest* |
1972 eval "ac_cv_header_$ac_safe=yes" | 1999 eval "ac_cv_header_$ac_safe=yes" |
1973 else | 2000 else |
1993 | 2020 |
1994 for ac_hdr in netdb.h sys/socket.h fcntl.h limits.h unistd.h | 2021 for ac_hdr in netdb.h sys/socket.h fcntl.h limits.h unistd.h |
1995 do | 2022 do |
1996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 2023 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 2024 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1998 echo "configure:1999: checking for $ac_hdr" >&5 | 2025 echo "configure:2026: checking for $ac_hdr" >&5 |
1999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 2026 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2000 echo $ac_n "(cached) $ac_c" 1>&6 | 2027 echo $ac_n "(cached) $ac_c" 1>&6 |
2001 else | 2028 else |
2002 cat > conftest.$ac_ext <<EOF | 2029 cat > conftest.$ac_ext <<EOF |
2003 #line 2004 "configure" | 2030 #line 2031 "configure" |
2004 #include "confdefs.h" | 2031 #include "confdefs.h" |
2005 #include <$ac_hdr> | 2032 #include <$ac_hdr> |
2006 EOF | 2033 EOF |
2007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2008 { (eval echo configure:2009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2035 { (eval echo configure:2036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2010 if test -z "$ac_err"; then | 2037 if test -z "$ac_err"; then |
2011 rm -rf conftest* | 2038 rm -rf conftest* |
2012 eval "ac_cv_header_$ac_safe=yes" | 2039 eval "ac_cv_header_$ac_safe=yes" |
2013 else | 2040 else |
2029 else | 2056 else |
2030 echo "$ac_t""no" 1>&6 | 2057 echo "$ac_t""no" 1>&6 |
2031 fi | 2058 fi |
2032 done | 2059 done |
2033 | 2060 |
2034 for ac_hdr in sys/types.h regex.h | 2061 for ac_hdr in sys/types.h regex.h pwd.h |
2035 do | 2062 do |
2036 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 2063 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2037 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 2064 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2038 echo "configure:2039: checking for $ac_hdr" >&5 | 2065 echo "configure:2066: checking for $ac_hdr" >&5 |
2039 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 2066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2040 echo $ac_n "(cached) $ac_c" 1>&6 | 2067 echo $ac_n "(cached) $ac_c" 1>&6 |
2041 else | 2068 else |
2042 cat > conftest.$ac_ext <<EOF | 2069 cat > conftest.$ac_ext <<EOF |
2043 #line 2044 "configure" | 2070 #line 2071 "configure" |
2044 #include "confdefs.h" | 2071 #include "confdefs.h" |
2045 #include <$ac_hdr> | 2072 #include <$ac_hdr> |
2046 EOF | 2073 EOF |
2047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2048 { (eval echo configure:2049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2075 { (eval echo configure:2076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2050 if test -z "$ac_err"; then | 2077 if test -z "$ac_err"; then |
2051 rm -rf conftest* | 2078 rm -rf conftest* |
2052 eval "ac_cv_header_$ac_safe=yes" | 2079 eval "ac_cv_header_$ac_safe=yes" |
2053 else | 2080 else |
2073 | 2100 |
2074 | 2101 |
2075 | 2102 |
2076 | 2103 |
2077 echo $ac_n "checking for working const""... $ac_c" 1>&6 | 2104 echo $ac_n "checking for working const""... $ac_c" 1>&6 |
2078 echo "configure:2079: checking for working const" >&5 | 2105 echo "configure:2106: checking for working const" >&5 |
2079 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | 2106 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
2080 echo $ac_n "(cached) $ac_c" 1>&6 | 2107 echo $ac_n "(cached) $ac_c" 1>&6 |
2081 else | 2108 else |
2082 cat > conftest.$ac_ext <<EOF | 2109 cat > conftest.$ac_ext <<EOF |
2083 #line 2084 "configure" | 2110 #line 2111 "configure" |
2084 #include "confdefs.h" | 2111 #include "confdefs.h" |
2085 | 2112 |
2086 int main() { | 2113 int main() { |
2087 | 2114 |
2088 /* Ultrix mips cc rejects this. */ | 2115 /* Ultrix mips cc rejects this. */ |
2127 const int foo = 10; | 2154 const int foo = 10; |
2128 } | 2155 } |
2129 | 2156 |
2130 ; return 0; } | 2157 ; return 0; } |
2131 EOF | 2158 EOF |
2132 if { (eval echo configure:2133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2159 if { (eval echo configure:2160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2133 rm -rf conftest* | 2160 rm -rf conftest* |
2134 ac_cv_c_const=yes | 2161 ac_cv_c_const=yes |
2135 else | 2162 else |
2136 echo "configure: failed program was:" >&5 | 2163 echo "configure: failed program was:" >&5 |
2137 cat conftest.$ac_ext >&5 | 2164 cat conftest.$ac_ext >&5 |
2148 EOF | 2175 EOF |
2149 | 2176 |
2150 fi | 2177 fi |
2151 | 2178 |
2152 echo $ac_n "checking for size_t""... $ac_c" 1>&6 | 2179 echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
2153 echo "configure:2154: checking for size_t" >&5 | 2180 echo "configure:2181: checking for size_t" >&5 |
2154 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | 2181 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
2155 echo $ac_n "(cached) $ac_c" 1>&6 | 2182 echo $ac_n "(cached) $ac_c" 1>&6 |
2156 else | 2183 else |
2157 cat > conftest.$ac_ext <<EOF | 2184 cat > conftest.$ac_ext <<EOF |
2158 #line 2159 "configure" | 2185 #line 2186 "configure" |
2159 #include "confdefs.h" | 2186 #include "confdefs.h" |
2160 #include <sys/types.h> | 2187 #include <sys/types.h> |
2161 #if STDC_HEADERS | 2188 #if STDC_HEADERS |
2162 #include <stdlib.h> | 2189 #include <stdlib.h> |
2163 #include <stddef.h> | 2190 #include <stddef.h> |
2181 EOF | 2208 EOF |
2182 | 2209 |
2183 fi | 2210 fi |
2184 | 2211 |
2185 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | 2212 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
2186 echo "configure:2187: checking whether time.h and sys/time.h may both be included" >&5 | 2213 echo "configure:2214: checking whether time.h and sys/time.h may both be included" >&5 |
2187 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then | 2214 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
2188 echo $ac_n "(cached) $ac_c" 1>&6 | 2215 echo $ac_n "(cached) $ac_c" 1>&6 |
2189 else | 2216 else |
2190 cat > conftest.$ac_ext <<EOF | 2217 cat > conftest.$ac_ext <<EOF |
2191 #line 2192 "configure" | 2218 #line 2219 "configure" |
2192 #include "confdefs.h" | 2219 #include "confdefs.h" |
2193 #include <sys/types.h> | 2220 #include <sys/types.h> |
2194 #include <sys/time.h> | 2221 #include <sys/time.h> |
2195 #include <time.h> | 2222 #include <time.h> |
2196 int main() { | 2223 int main() { |
2197 struct tm *tp; | 2224 struct tm *tp; |
2198 ; return 0; } | 2225 ; return 0; } |
2199 EOF | 2226 EOF |
2200 if { (eval echo configure:2201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2227 if { (eval echo configure:2228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2201 rm -rf conftest* | 2228 rm -rf conftest* |
2202 ac_cv_header_time=yes | 2229 ac_cv_header_time=yes |
2203 else | 2230 else |
2204 echo "configure: failed program was:" >&5 | 2231 echo "configure: failed program was:" >&5 |
2205 cat conftest.$ac_ext >&5 | 2232 cat conftest.$ac_ext >&5 |
2216 EOF | 2243 EOF |
2217 | 2244 |
2218 fi | 2245 fi |
2219 | 2246 |
2220 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | 2247 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
2221 echo "configure:2222: checking whether struct tm is in sys/time.h or time.h" >&5 | 2248 echo "configure:2249: checking whether struct tm is in sys/time.h or time.h" >&5 |
2222 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then | 2249 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
2223 echo $ac_n "(cached) $ac_c" 1>&6 | 2250 echo $ac_n "(cached) $ac_c" 1>&6 |
2224 else | 2251 else |
2225 cat > conftest.$ac_ext <<EOF | 2252 cat > conftest.$ac_ext <<EOF |
2226 #line 2227 "configure" | 2253 #line 2254 "configure" |
2227 #include "confdefs.h" | 2254 #include "confdefs.h" |
2228 #include <sys/types.h> | 2255 #include <sys/types.h> |
2229 #include <time.h> | 2256 #include <time.h> |
2230 int main() { | 2257 int main() { |
2231 struct tm *tp; tp->tm_sec; | 2258 struct tm *tp; tp->tm_sec; |
2232 ; return 0; } | 2259 ; return 0; } |
2233 EOF | 2260 EOF |
2234 if { (eval echo configure:2235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2261 if { (eval echo configure:2262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2235 rm -rf conftest* | 2262 rm -rf conftest* |
2236 ac_cv_struct_tm=time.h | 2263 ac_cv_struct_tm=time.h |
2237 else | 2264 else |
2238 echo "configure: failed program was:" >&5 | 2265 echo "configure: failed program was:" >&5 |
2239 cat conftest.$ac_ext >&5 | 2266 cat conftest.$ac_ext >&5 |
2251 | 2278 |
2252 fi | 2279 fi |
2253 | 2280 |
2254 | 2281 |
2255 echo $ac_n "checking socklen_t""... $ac_c" 1>&6 | 2282 echo $ac_n "checking socklen_t""... $ac_c" 1>&6 |
2256 echo "configure:2257: checking socklen_t" >&5 | 2283 echo "configure:2284: checking socklen_t" >&5 |
2257 if eval "test \"`echo '$''{'noffle_cv_type_socklen_t'+set}'`\" = set"; then | 2284 if eval "test \"`echo '$''{'noffle_cv_type_socklen_t'+set}'`\" = set"; then |
2258 echo $ac_n "(cached) $ac_c" 1>&6 | 2285 echo $ac_n "(cached) $ac_c" 1>&6 |
2259 else | 2286 else |
2260 cat > conftest.$ac_ext <<EOF | 2287 cat > conftest.$ac_ext <<EOF |
2261 #line 2262 "configure" | 2288 #line 2289 "configure" |
2262 #include "confdefs.h" | 2289 #include "confdefs.h" |
2263 | 2290 |
2264 #include <sys/types.h> | 2291 #include <sys/types.h> |
2265 #include <sys/socket.h> | 2292 #include <sys/socket.h> |
2266 | 2293 |
2267 int main() { | 2294 int main() { |
2268 socklen_t s; | 2295 socklen_t s; |
2269 ; return 0; } | 2296 ; return 0; } |
2270 EOF | 2297 EOF |
2271 if { (eval echo configure:2272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2298 if { (eval echo configure:2299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2272 rm -rf conftest* | 2299 rm -rf conftest* |
2273 noffle_cv_type_socklen_t=yes | 2300 noffle_cv_type_socklen_t=yes |
2274 else | 2301 else |
2275 echo "configure: failed program was:" >&5 | 2302 echo "configure: failed program was:" >&5 |
2276 cat conftest.$ac_ext >&5 | 2303 cat conftest.$ac_ext >&5 |
2292 fi | 2319 fi |
2293 | 2320 |
2294 | 2321 |
2295 | 2322 |
2296 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | 2323 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
2297 echo "configure:2298: checking return type of signal handlers" >&5 | 2324 echo "configure:2325: checking return type of signal handlers" >&5 |
2298 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then | 2325 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
2299 echo $ac_n "(cached) $ac_c" 1>&6 | 2326 echo $ac_n "(cached) $ac_c" 1>&6 |
2300 else | 2327 else |
2301 cat > conftest.$ac_ext <<EOF | 2328 cat > conftest.$ac_ext <<EOF |
2302 #line 2303 "configure" | 2329 #line 2330 "configure" |
2303 #include "confdefs.h" | 2330 #include "confdefs.h" |
2304 #include <sys/types.h> | 2331 #include <sys/types.h> |
2305 #include <signal.h> | 2332 #include <signal.h> |
2306 #ifdef signal | 2333 #ifdef signal |
2307 #undef signal | 2334 #undef signal |
2314 | 2341 |
2315 int main() { | 2342 int main() { |
2316 int i; | 2343 int i; |
2317 ; return 0; } | 2344 ; return 0; } |
2318 EOF | 2345 EOF |
2319 if { (eval echo configure:2320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2346 if { (eval echo configure:2347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2320 rm -rf conftest* | 2347 rm -rf conftest* |
2321 ac_cv_type_signal=void | 2348 ac_cv_type_signal=void |
2322 else | 2349 else |
2323 echo "configure: failed program was:" >&5 | 2350 echo "configure: failed program was:" >&5 |
2324 cat conftest.$ac_ext >&5 | 2351 cat conftest.$ac_ext >&5 |
2333 #define RETSIGTYPE $ac_cv_type_signal | 2360 #define RETSIGTYPE $ac_cv_type_signal |
2334 EOF | 2361 EOF |
2335 | 2362 |
2336 | 2363 |
2337 echo $ac_n "checking for strftime""... $ac_c" 1>&6 | 2364 echo $ac_n "checking for strftime""... $ac_c" 1>&6 |
2338 echo "configure:2339: checking for strftime" >&5 | 2365 echo "configure:2366: checking for strftime" >&5 |
2339 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then | 2366 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then |
2340 echo $ac_n "(cached) $ac_c" 1>&6 | 2367 echo $ac_n "(cached) $ac_c" 1>&6 |
2341 else | 2368 else |
2342 cat > conftest.$ac_ext <<EOF | 2369 cat > conftest.$ac_ext <<EOF |
2343 #line 2344 "configure" | 2370 #line 2371 "configure" |
2344 #include "confdefs.h" | 2371 #include "confdefs.h" |
2345 /* System header to define __stub macros and hopefully few prototypes, | 2372 /* System header to define __stub macros and hopefully few prototypes, |
2346 which can conflict with char strftime(); below. */ | 2373 which can conflict with char strftime(); below. */ |
2347 #include <assert.h> | 2374 #include <assert.h> |
2348 /* Override any gcc2 internal prototype to avoid an error. */ | 2375 /* Override any gcc2 internal prototype to avoid an error. */ |
2361 strftime(); | 2388 strftime(); |
2362 #endif | 2389 #endif |
2363 | 2390 |
2364 ; return 0; } | 2391 ; return 0; } |
2365 EOF | 2392 EOF |
2366 if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 2393 if { (eval echo configure:2394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2367 rm -rf conftest* | 2394 rm -rf conftest* |
2368 eval "ac_cv_func_strftime=yes" | 2395 eval "ac_cv_func_strftime=yes" |
2369 else | 2396 else |
2370 echo "configure: failed program was:" >&5 | 2397 echo "configure: failed program was:" >&5 |
2371 cat conftest.$ac_ext >&5 | 2398 cat conftest.$ac_ext >&5 |
2383 | 2410 |
2384 else | 2411 else |
2385 echo "$ac_t""no" 1>&6 | 2412 echo "$ac_t""no" 1>&6 |
2386 # strftime is in -lintl on SCO UNIX. | 2413 # strftime is in -lintl on SCO UNIX. |
2387 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 | 2414 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 |
2388 echo "configure:2389: checking for strftime in -lintl" >&5 | 2415 echo "configure:2416: checking for strftime in -lintl" >&5 |
2389 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` | 2416 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` |
2390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 2417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2391 echo $ac_n "(cached) $ac_c" 1>&6 | 2418 echo $ac_n "(cached) $ac_c" 1>&6 |
2392 else | 2419 else |
2393 ac_save_LIBS="$LIBS" | 2420 ac_save_LIBS="$LIBS" |
2394 LIBS="-lintl $LIBS" | 2421 LIBS="-lintl $LIBS" |
2395 cat > conftest.$ac_ext <<EOF | 2422 cat > conftest.$ac_ext <<EOF |
2396 #line 2397 "configure" | 2423 #line 2424 "configure" |
2397 #include "confdefs.h" | 2424 #include "confdefs.h" |
2398 /* Override any gcc2 internal prototype to avoid an error. */ | 2425 /* Override any gcc2 internal prototype to avoid an error. */ |
2399 /* We use char because int might match the return type of a gcc2 | 2426 /* We use char because int might match the return type of a gcc2 |
2400 builtin and then its argument prototype would still apply. */ | 2427 builtin and then its argument prototype would still apply. */ |
2401 char strftime(); | 2428 char strftime(); |
2402 | 2429 |
2403 int main() { | 2430 int main() { |
2404 strftime() | 2431 strftime() |
2405 ; return 0; } | 2432 ; return 0; } |
2406 EOF | 2433 EOF |
2407 if { (eval echo configure:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 2434 if { (eval echo configure:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2408 rm -rf conftest* | 2435 rm -rf conftest* |
2409 eval "ac_cv_lib_$ac_lib_var=yes" | 2436 eval "ac_cv_lib_$ac_lib_var=yes" |
2410 else | 2437 else |
2411 echo "configure: failed program was:" >&5 | 2438 echo "configure: failed program was:" >&5 |
2412 cat conftest.$ac_ext >&5 | 2439 cat conftest.$ac_ext >&5 |
2429 fi | 2456 fi |
2430 | 2457 |
2431 fi | 2458 fi |
2432 | 2459 |
2433 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6 | 2460 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6 |
2434 echo "configure:2435: checking for working fnmatch" >&5 | 2461 echo "configure:2462: checking for working fnmatch" >&5 |
2435 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then | 2462 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then |
2436 echo $ac_n "(cached) $ac_c" 1>&6 | 2463 echo $ac_n "(cached) $ac_c" 1>&6 |
2437 else | 2464 else |
2438 # Some versions of Solaris or SCO have a broken fnmatch function. | 2465 # Some versions of Solaris or SCO have a broken fnmatch function. |
2439 # So we run a test program. If we are cross-compiling, take no chance. | 2466 # So we run a test program. If we are cross-compiling, take no chance. |
2440 # Thanks to John Oleynick and Franc,ois Pinard for this test. | 2467 # Thanks to John Oleynick and Franc,ois Pinard for this test. |
2441 if test "$cross_compiling" = yes; then | 2468 if test "$cross_compiling" = yes; then |
2442 ac_cv_func_fnmatch_works=no | 2469 ac_cv_func_fnmatch_works=no |
2443 else | 2470 else |
2444 cat > conftest.$ac_ext <<EOF | 2471 cat > conftest.$ac_ext <<EOF |
2445 #line 2446 "configure" | 2472 #line 2473 "configure" |
2446 #include "confdefs.h" | 2473 #include "confdefs.h" |
2447 main() { exit (fnmatch ("a*", "abc", 0) != 0); } | 2474 main() { exit (fnmatch ("a*", "abc", 0) != 0); } |
2448 EOF | 2475 EOF |
2449 if { (eval echo configure:2450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 2476 if { (eval echo configure:2477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2450 then | 2477 then |
2451 ac_cv_func_fnmatch_works=yes | 2478 ac_cv_func_fnmatch_works=yes |
2452 else | 2479 else |
2453 echo "configure: failed program was:" >&5 | 2480 echo "configure: failed program was:" >&5 |
2454 cat conftest.$ac_ext >&5 | 2481 cat conftest.$ac_ext >&5 |
2469 fi | 2496 fi |
2470 | 2497 |
2471 for ac_func in fdopen mkdir select socket | 2498 for ac_func in fdopen mkdir select socket |
2472 do | 2499 do |
2473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 2500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2474 echo "configure:2475: checking for $ac_func" >&5 | 2501 echo "configure:2502: checking for $ac_func" >&5 |
2475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 2502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2476 echo $ac_n "(cached) $ac_c" 1>&6 | 2503 echo $ac_n "(cached) $ac_c" 1>&6 |
2477 else | 2504 else |
2478 cat > conftest.$ac_ext <<EOF | 2505 cat > conftest.$ac_ext <<EOF |
2479 #line 2480 "configure" | 2506 #line 2507 "configure" |
2480 #include "confdefs.h" | 2507 #include "confdefs.h" |
2481 /* System header to define __stub macros and hopefully few prototypes, | 2508 /* System header to define __stub macros and hopefully few prototypes, |
2482 which can conflict with char $ac_func(); below. */ | 2509 which can conflict with char $ac_func(); below. */ |
2483 #include <assert.h> | 2510 #include <assert.h> |
2484 /* Override any gcc2 internal prototype to avoid an error. */ | 2511 /* Override any gcc2 internal prototype to avoid an error. */ |
2497 $ac_func(); | 2524 $ac_func(); |
2498 #endif | 2525 #endif |
2499 | 2526 |
2500 ; return 0; } | 2527 ; return 0; } |
2501 EOF | 2528 EOF |
2502 if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 2529 if { (eval echo configure:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2503 rm -rf conftest* | 2530 rm -rf conftest* |
2504 eval "ac_cv_func_$ac_func=yes" | 2531 eval "ac_cv_func_$ac_func=yes" |
2505 else | 2532 else |
2506 echo "configure: failed program was:" >&5 | 2533 echo "configure: failed program was:" >&5 |
2507 cat conftest.$ac_ext >&5 | 2534 cat conftest.$ac_ext >&5 |
2524 done | 2551 done |
2525 | 2552 |
2526 for ac_func in gethostname uname | 2553 for ac_func in gethostname uname |
2527 do | 2554 do |
2528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 2555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2529 echo "configure:2530: checking for $ac_func" >&5 | 2556 echo "configure:2557: checking for $ac_func" >&5 |
2530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 2557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2531 echo $ac_n "(cached) $ac_c" 1>&6 | 2558 echo $ac_n "(cached) $ac_c" 1>&6 |
2532 else | 2559 else |
2533 cat > conftest.$ac_ext <<EOF | 2560 cat > conftest.$ac_ext <<EOF |
2534 #line 2535 "configure" | 2561 #line 2562 "configure" |
2535 #include "confdefs.h" | 2562 #include "confdefs.h" |
2536 /* System header to define __stub macros and hopefully few prototypes, | 2563 /* System header to define __stub macros and hopefully few prototypes, |
2537 which can conflict with char $ac_func(); below. */ | 2564 which can conflict with char $ac_func(); below. */ |
2538 #include <assert.h> | 2565 #include <assert.h> |
2539 /* Override any gcc2 internal prototype to avoid an error. */ | 2566 /* Override any gcc2 internal prototype to avoid an error. */ |
2552 $ac_func(); | 2579 $ac_func(); |
2553 #endif | 2580 #endif |
2554 | 2581 |
2555 ; return 0; } | 2582 ; return 0; } |
2556 EOF | 2583 EOF |
2557 if { (eval echo configure:2558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 2584 if { (eval echo configure:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2558 rm -rf conftest* | 2585 rm -rf conftest* |
2559 eval "ac_cv_func_$ac_func=yes" | 2586 eval "ac_cv_func_$ac_func=yes" |
2560 else | 2587 else |
2561 echo "configure: failed program was:" >&5 | 2588 echo "configure: failed program was:" >&5 |
2562 cat conftest.$ac_ext >&5 | 2589 cat conftest.$ac_ext >&5 |
2579 done | 2606 done |
2580 | 2607 |
2581 for ac_func in snprintf vsnprintf __vsnprintf __snprintf | 2608 for ac_func in snprintf vsnprintf __vsnprintf __snprintf |
2582 do | 2609 do |
2583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 2610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2584 echo "configure:2585: checking for $ac_func" >&5 | 2611 echo "configure:2612: checking for $ac_func" >&5 |
2585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 2612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2586 echo $ac_n "(cached) $ac_c" 1>&6 | 2613 echo $ac_n "(cached) $ac_c" 1>&6 |
2587 else | 2614 else |
2588 cat > conftest.$ac_ext <<EOF | 2615 cat > conftest.$ac_ext <<EOF |
2589 #line 2590 "configure" | 2616 #line 2617 "configure" |
2590 #include "confdefs.h" | 2617 #include "confdefs.h" |
2591 /* System header to define __stub macros and hopefully few prototypes, | 2618 /* System header to define __stub macros and hopefully few prototypes, |
2592 which can conflict with char $ac_func(); below. */ | 2619 which can conflict with char $ac_func(); below. */ |
2593 #include <assert.h> | 2620 #include <assert.h> |
2594 /* Override any gcc2 internal prototype to avoid an error. */ | 2621 /* Override any gcc2 internal prototype to avoid an error. */ |
2607 $ac_func(); | 2634 $ac_func(); |
2608 #endif | 2635 #endif |
2609 | 2636 |
2610 ; return 0; } | 2637 ; return 0; } |
2611 EOF | 2638 EOF |
2612 if { (eval echo configure:2613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 2639 if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2613 rm -rf conftest* | 2640 rm -rf conftest* |
2614 eval "ac_cv_func_$ac_func=yes" | 2641 eval "ac_cv_func_$ac_func=yes" |
2615 else | 2642 else |
2616 echo "configure: failed program was:" >&5 | 2643 echo "configure: failed program was:" >&5 |
2617 cat conftest.$ac_ext >&5 | 2644 cat conftest.$ac_ext >&5 |
2634 done | 2661 done |
2635 | 2662 |
2636 for ac_func in strerror strstr | 2663 for ac_func in strerror strstr |
2637 do | 2664 do |
2638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 2665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2639 echo "configure:2640: checking for $ac_func" >&5 | 2666 echo "configure:2667: checking for $ac_func" >&5 |
2640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 2667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2641 echo $ac_n "(cached) $ac_c" 1>&6 | 2668 echo $ac_n "(cached) $ac_c" 1>&6 |
2642 else | 2669 else |
2643 cat > conftest.$ac_ext <<EOF | 2670 cat > conftest.$ac_ext <<EOF |
2644 #line 2645 "configure" | 2671 #line 2672 "configure" |
2645 #include "confdefs.h" | 2672 #include "confdefs.h" |
2646 /* System header to define __stub macros and hopefully few prototypes, | 2673 /* System header to define __stub macros and hopefully few prototypes, |
2647 which can conflict with char $ac_func(); below. */ | 2674 which can conflict with char $ac_func(); below. */ |
2648 #include <assert.h> | 2675 #include <assert.h> |
2649 /* Override any gcc2 internal prototype to avoid an error. */ | 2676 /* Override any gcc2 internal prototype to avoid an error. */ |
2662 $ac_func(); | 2689 $ac_func(); |
2663 #endif | 2690 #endif |
2664 | 2691 |
2665 ; return 0; } | 2692 ; return 0; } |
2666 EOF | 2693 EOF |
2667 if { (eval echo configure:2668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 2694 if { (eval echo configure:2695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2668 rm -rf conftest* | 2695 rm -rf conftest* |
2669 eval "ac_cv_func_$ac_func=yes" | 2696 eval "ac_cv_func_$ac_func=yes" |
2670 else | 2697 else |
2671 echo "configure: failed program was:" >&5 | 2698 echo "configure: failed program was:" >&5 |
2672 cat conftest.$ac_ext >&5 | 2699 cat conftest.$ac_ext >&5 |
2689 done | 2716 done |
2690 | 2717 |
2691 for ac_func in mktime timegm | 2718 for ac_func in mktime timegm |
2692 do | 2719 do |
2693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 2720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2694 echo "configure:2695: checking for $ac_func" >&5 | 2721 echo "configure:2722: checking for $ac_func" >&5 |
2695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 2722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2696 echo $ac_n "(cached) $ac_c" 1>&6 | 2723 echo $ac_n "(cached) $ac_c" 1>&6 |
2697 else | 2724 else |
2698 cat > conftest.$ac_ext <<EOF | 2725 cat > conftest.$ac_ext <<EOF |
2699 #line 2700 "configure" | 2726 #line 2727 "configure" |
2700 #include "confdefs.h" | 2727 #include "confdefs.h" |
2701 /* System header to define __stub macros and hopefully few prototypes, | 2728 /* System header to define __stub macros and hopefully few prototypes, |
2702 which can conflict with char $ac_func(); below. */ | 2729 which can conflict with char $ac_func(); below. */ |
2703 #include <assert.h> | 2730 #include <assert.h> |
2704 /* Override any gcc2 internal prototype to avoid an error. */ | 2731 /* Override any gcc2 internal prototype to avoid an error. */ |
2717 $ac_func(); | 2744 $ac_func(); |
2718 #endif | 2745 #endif |
2719 | 2746 |
2720 ; return 0; } | 2747 ; return 0; } |
2721 EOF | 2748 EOF |
2722 if { (eval echo configure:2723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 2749 if { (eval echo configure:2750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2723 rm -rf conftest* | 2750 rm -rf conftest* |
2724 eval "ac_cv_func_$ac_func=yes" | 2751 eval "ac_cv_func_$ac_func=yes" |
2725 else | 2752 else |
2726 echo "configure: failed program was:" >&5 | 2753 echo "configure: failed program was:" >&5 |
2727 cat conftest.$ac_ext >&5 | 2754 cat conftest.$ac_ext >&5 |
2742 echo "$ac_t""no" 1>&6 | 2769 echo "$ac_t""no" 1>&6 |
2743 fi | 2770 fi |
2744 done | 2771 done |
2745 | 2772 |
2746 | 2773 |
2774 | |
2775 | |
2776 | |
2777 | |
2778 # Check whether --enable-auth or --disable-auth was given. | |
2779 if test "${enable_auth+set}" = set; then | |
2780 enableval="$enable_auth" | |
2781 : | |
2782 else | |
2783 enable_auth=no | |
2784 fi | |
2785 | |
2786 | |
2787 if test "x$enable_auth" = "xfile"; then | |
2788 cat >> confdefs.h <<\EOF | |
2789 #define USE_AUTH 1 | |
2790 EOF | |
2791 | |
2792 fi | |
2793 if test "x$enable_auth" = "xpam"; then | |
2794 | |
2795 echo $ac_n "checking for pam_start in -lpam""... $ac_c" 1>&6 | |
2796 echo "configure:2797: checking for pam_start in -lpam" >&5 | |
2797 ac_lib_var=`echo pam'_'pam_start | sed 'y%./+-%__p_%'` | |
2798 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2799 echo $ac_n "(cached) $ac_c" 1>&6 | |
2800 else | |
2801 ac_save_LIBS="$LIBS" | |
2802 LIBS="-lpam $LIBS" | |
2803 cat > conftest.$ac_ext <<EOF | |
2804 #line 2805 "configure" | |
2805 #include "confdefs.h" | |
2806 /* Override any gcc2 internal prototype to avoid an error. */ | |
2807 /* We use char because int might match the return type of a gcc2 | |
2808 builtin and then its argument prototype would still apply. */ | |
2809 char pam_start(); | |
2810 | |
2811 int main() { | |
2812 pam_start() | |
2813 ; return 0; } | |
2814 EOF | |
2815 if { (eval echo configure:2816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2816 rm -rf conftest* | |
2817 eval "ac_cv_lib_$ac_lib_var=yes" | |
2818 else | |
2819 echo "configure: failed program was:" >&5 | |
2820 cat conftest.$ac_ext >&5 | |
2821 rm -rf conftest* | |
2822 eval "ac_cv_lib_$ac_lib_var=no" | |
2823 fi | |
2824 rm -f conftest* | |
2825 LIBS="$ac_save_LIBS" | |
2826 | |
2827 fi | |
2828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2829 echo "$ac_t""yes" 1>&6 | |
2830 ac_safe=`echo "security/pam_appl.h" | sed 'y%./+-%__p_%'` | |
2831 echo $ac_n "checking for security/pam_appl.h""... $ac_c" 1>&6 | |
2832 echo "configure:2833: checking for security/pam_appl.h" >&5 | |
2833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
2834 echo $ac_n "(cached) $ac_c" 1>&6 | |
2835 else | |
2836 cat > conftest.$ac_ext <<EOF | |
2837 #line 2838 "configure" | |
2838 #include "confdefs.h" | |
2839 #include <security/pam_appl.h> | |
2840 EOF | |
2841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2842 { (eval echo configure:2843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
2844 if test -z "$ac_err"; then | |
2845 rm -rf conftest* | |
2846 eval "ac_cv_header_$ac_safe=yes" | |
2847 else | |
2848 echo "$ac_err" >&5 | |
2849 echo "configure: failed program was:" >&5 | |
2850 cat conftest.$ac_ext >&5 | |
2851 rm -rf conftest* | |
2852 eval "ac_cv_header_$ac_safe=no" | |
2853 fi | |
2854 rm -f conftest* | |
2855 fi | |
2856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2857 echo "$ac_t""yes" 1>&6 | |
2858 : | |
2859 else | |
2860 echo "$ac_t""no" 1>&6 | |
2861 { echo "configure: error: cannot find security/pam_appl.h" 1>&2; exit 1; } | |
2862 fi | |
2863 | |
2864 else | |
2865 echo "$ac_t""no" 1>&6 | |
2866 { echo "configure: error: cannot find libpam" 1>&2; exit 1; } | |
2867 fi | |
2868 | |
2869 LIBPAM="-lpam" | |
2870 cat >> confdefs.h <<\EOF | |
2871 #define USE_PAM 1 | |
2872 EOF | |
2873 | |
2874 cat >> confdefs.h <<\EOF | |
2875 #define USE_AUTH 1 | |
2876 EOF | |
2877 | |
2878 fi | |
2879 | |
2880 echo $ac_n "checking usersfile""... $ac_c" 1>&6 | |
2881 echo "configure:2882: checking usersfile" >&5 | |
2882 # Check whether --with-usersfile or --without-usersfile was given. | |
2883 if test "${with_usersfile+set}" = set; then | |
2884 withval="$with_usersfile" | |
2885 if echo "$withval" | egrep >/dev/null -v '^/' ; then | |
2886 { echo "configure: error: you must give an absolute path" 1>&2; exit 1; } | |
2887 fi | |
2888 withval=`echo "$withval" | sed 'sx/*$xx;'` | |
2889 else | |
2890 withval="/etc/$PACKAGE.users" | |
2891 | |
2892 fi | |
2893 | |
2894 USERSFILE=$withval | |
2895 echo "$ac_t""$USERSFILE" 1>&6 | |
2896 cat >> confdefs.h <<EOF | |
2897 #define USERSFILE "$USERSFILE" | |
2898 EOF | |
2747 | 2899 |
2748 | 2900 |
2749 | 2901 |
2750 | 2902 |
2751 # Check whether --enable-debug or --disable-debug was given. | 2903 # Check whether --enable-debug or --disable-debug was given. |
2776 # Check whether --with-docdir or --without-docdir was given. | 2928 # Check whether --with-docdir or --without-docdir was given. |
2777 if test "${with_docdir+set}" = set; then | 2929 if test "${with_docdir+set}" = set; then |
2778 withval="$with_docdir" | 2930 withval="$with_docdir" |
2779 noffle_cv_docdir=$withval | 2931 noffle_cv_docdir=$withval |
2780 else | 2932 else |
2781 echo $ac_n "checking other documentation diretcory""... $ac_c" 1>&6 | 2933 echo $ac_n "checking other documentation directory""... $ac_c" 1>&6 |
2782 echo "configure:2783: checking other documentation diretcory" >&5 | 2934 echo "configure:2935: checking other documentation directory" >&5 |
2783 if eval "test \"`echo '$''{'noffle_cv_docdir'+set}'`\" = set"; then | 2935 if eval "test \"`echo '$''{'noffle_cv_docdir'+set}'`\" = set"; then |
2784 echo $ac_n "(cached) $ac_c" 1>&6 | 2936 echo $ac_n "(cached) $ac_c" 1>&6 |
2785 else | 2937 else |
2786 if test x$prefix = xNONE; then | 2938 if test x$prefix = xNONE; then |
2787 noffle_cv_prefix=$ac_default_prefix | 2939 noffle_cv_prefix=$ac_default_prefix |
2796 | 2948 |
2797 fi | 2949 fi |
2798 | 2950 |
2799 | 2951 |
2800 echo $ac_n "checking spooldir""... $ac_c" 1>&6 | 2952 echo $ac_n "checking spooldir""... $ac_c" 1>&6 |
2801 echo "configure:2802: checking spooldir" >&5 | 2953 echo "configure:2954: checking spooldir" >&5 |
2802 # Check whether --with-spooldir or --without-spooldir was given. | 2954 # Check whether --with-spooldir or --without-spooldir was given. |
2803 if test "${with_spooldir+set}" = set; then | 2955 if test "${with_spooldir+set}" = set; then |
2804 withval="$with_spooldir" | 2956 withval="$with_spooldir" |
2805 if echo "$withval" | egrep >/dev/null -v '^/' ; then | 2957 if echo "$withval" | egrep >/dev/null -v '^/' ; then |
2806 { echo "configure: error: you must give an absolute path" 1>&2; exit 1; } | 2958 { echo "configure: error: you must give an absolute path" 1>&2; exit 1; } |
2819 EOF | 2971 EOF |
2820 | 2972 |
2821 | 2973 |
2822 | 2974 |
2823 echo $ac_n "checking configfile""... $ac_c" 1>&6 | 2975 echo $ac_n "checking configfile""... $ac_c" 1>&6 |
2824 echo "configure:2825: checking configfile" >&5 | 2976 echo "configure:2977: checking configfile" >&5 |
2825 # Check whether --with-configfile or --without-configfile was given. | 2977 # Check whether --with-configfile or --without-configfile was given. |
2826 if test "${with_configfile+set}" = set; then | 2978 if test "${with_configfile+set}" = set; then |
2827 withval="$with_configfile" | 2979 withval="$with_configfile" |
2828 if echo "$withval" | egrep >/dev/null -v '^/' ; then | 2980 if echo "$withval" | egrep >/dev/null -v '^/' ; then |
2829 { echo "configure: error: you must give an absolute path" 1>&2; exit 1; } | 2981 { echo "configure: error: you must give an absolute path" 1>&2; exit 1; } |
3000 s%@MAKEINFO@%$MAKEINFO%g | 3152 s%@MAKEINFO@%$MAKEINFO%g |
3001 s%@SET_MAKE@%$SET_MAKE%g | 3153 s%@SET_MAKE@%$SET_MAKE%g |
3002 s%@CC@%$CC%g | 3154 s%@CC@%$CC%g |
3003 s%@CPP@%$CPP%g | 3155 s%@CPP@%$CPP%g |
3004 s%@SENDMAILPROG@%$SENDMAILPROG%g | 3156 s%@SENDMAILPROG@%$SENDMAILPROG%g |
3157 s%@LIBPAM@%$LIBPAM%g | |
3158 s%@USERSFILE@%$USERSFILE%g | |
3005 s%@SPOOLDIR@%$SPOOLDIR%g | 3159 s%@SPOOLDIR@%$SPOOLDIR%g |
3006 s%@CONFIGFILE@%$CONFIGFILE%g | 3160 s%@CONFIGFILE@%$CONFIGFILE%g |
3007 s%@DOCDIR@%$DOCDIR%g | 3161 s%@DOCDIR@%$DOCDIR%g |
3008 | 3162 |
3009 CEOF | 3163 CEOF |