Thu Feb 21 16:50:08 2008 UTC ()
libnbcompat-20080221:
- Use AC_FUNC_VFORK, needed on IRIX to get missing vfork() defined
  to fork(). Ok by joerg.


(tnn)
diff -r1.56 -r1.57 pkgsrc/pkgtools/libnbcompat/Makefile
diff -r1.57 -r1.58 pkgsrc/pkgtools/libnbcompat/files/configure
diff -r1.58 -r1.59 pkgsrc/pkgtools/libnbcompat/files/configure.ac
diff -r1.19 -r1.20 pkgsrc/pkgtools/libnbcompat/files/nbcompat/config.h.in

cvs diff -r1.56 -r1.57 pkgsrc/pkgtools/libnbcompat/Makefile (switch to unified diff)

--- pkgsrc/pkgtools/libnbcompat/Makefile 2008/02/12 13:43:23 1.56
+++ pkgsrc/pkgtools/libnbcompat/Makefile 2008/02/21 16:50:07 1.57
@@ -1,31 +1,31 @@ @@ -1,31 +1,31 @@
1# $NetBSD: Makefile,v 1.56 2008/02/12 13:43:23 joerg Exp $ 1# $NetBSD: Makefile,v 1.57 2008/02/21 16:50:07 tnn Exp $
2# 2#
3# NOTE: If you update this package, it is *mandatory* that you update 3# NOTE: If you update this package, it is *mandatory* that you update
4# pkgsrc/pkgtools/libnbcompat/files/README to reflect the actual 4# pkgsrc/pkgtools/libnbcompat/files/README to reflect the actual
5# list of tested and supported platforms. 5# list of tested and supported platforms.
6# 6#
7 7
8DISTNAME= libnbcompat-20080212 8DISTNAME= libnbcompat-20080221
9CATEGORIES= pkgtools devel 9CATEGORIES= pkgtools devel
10MASTER_SITES= # empty 10MASTER_SITES= # empty
11DISTFILES= # empty 11DISTFILES= # empty
12 12
13MAINTAINER= grant@NetBSD.org 13MAINTAINER= grant@NetBSD.org
14HOMEPAGE= http://www.NetBSD.org/ 14HOMEPAGE= http://www.NetBSD.org/
15COMMENT= Portable NetBSD compatibility library 15COMMENT= Portable NetBSD compatibility library
16 16
17NO_PKGTOOLS_REQD_CHECK= yes 17NO_PKGTOOLS_REQD_CHECK= yes
18NO_CHECKSUM= yes 18NO_CHECKSUM= yes
19NO_MTREE= yes 19NO_MTREE= yes
20 20
21GNU_CONFIGURE= yes 21GNU_CONFIGURE= yes
22MAKE_ENV+= BINMODE=${BINMODE} 22MAKE_ENV+= BINMODE=${BINMODE}
23 23
24PKG_INFO= PKG_DBDIR=${_PKG_DBDIR} ${PKG_INFO_CMD} 24PKG_INFO= PKG_DBDIR=${_PKG_DBDIR} ${PKG_INFO_CMD}
25PKG_CREATE= PKG_DBDIR=${_PKG_DBDIR} ${PKG_CREATE_CMD} 25PKG_CREATE= PKG_DBDIR=${_PKG_DBDIR} ${PKG_CREATE_CMD}
26PKG_DELETE= PKG_DBDIR=${_PKG_DBDIR} ${PKG_DELETE_CMD} 26PKG_DELETE= PKG_DBDIR=${_PKG_DBDIR} ${PKG_DELETE_CMD}
27 27
28do-extract: 28do-extract:
29 @${CP} -R ${FILESDIR} ${WRKSRC} 29 @${CP} -R ${FILESDIR} ${WRKSRC}
30 30
31.include "../../mk/bsd.pkg.mk" 31.include "../../mk/bsd.pkg.mk"

cvs diff -r1.57 -r1.58 pkgsrc/pkgtools/libnbcompat/files/configure (switch to unified diff)

--- pkgsrc/pkgtools/libnbcompat/files/configure 2007/09/21 19:51:58 1.57
+++ pkgsrc/pkgtools/libnbcompat/files/configure 2008/02/21 16:50:08 1.58
@@ -7793,1998 +7793,2552 @@ main () @@ -7793,1998 +7793,2552 @@ main ()
7793 /* Are we little or big endian? From Harbison&Steele. */ 7793 /* Are we little or big endian? From Harbison&Steele. */
7794 union 7794 union
7795 { 7795 {
7796 long int l; 7796 long int l;
7797 char c[sizeof (long int)]; 7797 char c[sizeof (long int)];
7798 } u; 7798 } u;
7799 u.l = 1; 7799 u.l = 1;
7800 return u.c[sizeof (long int) - 1] == 1; 7800 return u.c[sizeof (long int) - 1] == 1;
7801 7801
7802 ; 7802 ;
7803 return 0; 7803 return 0;
7804} 7804}
7805_ACEOF 7805_ACEOF
7806rm -f conftest$ac_exeext 7806rm -f conftest$ac_exeext
7807if { (ac_try="$ac_link" 7807if { (ac_try="$ac_link"
7808case "(($ac_try" in 7808case "(($ac_try" in
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;; 7810 *) ac_try_echo=$ac_try;;
7811esac 7811esac
7812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813 (eval "$ac_link") 2>&5 7813 (eval "$ac_link") 2>&5
7814 ac_status=$? 7814 ac_status=$?
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7817 { (case "(($ac_try" in 7817 { (case "(($ac_try" in
7818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819 *) ac_try_echo=$ac_try;; 7819 *) ac_try_echo=$ac_try;;
7820esac 7820esac
7821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7822 (eval "$ac_try") 2>&5 7822 (eval "$ac_try") 2>&5
7823 ac_status=$? 7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then 7825 (exit $ac_status); }; }; then
7826 ac_cv_c_bigendian=no 7826 ac_cv_c_bigendian=no
7827else 7827else
7828 echo "$as_me: program exited with status $ac_status" >&5 7828 echo "$as_me: program exited with status $ac_status" >&5
7829echo "$as_me: failed program was:" >&5 7829echo "$as_me: failed program was:" >&5
7830sed 's/^/| /' conftest.$ac_ext >&5 7830sed 's/^/| /' conftest.$ac_ext >&5
7831 7831
7832( exit $ac_status ) 7832( exit $ac_status )
7833ac_cv_c_bigendian=yes 7833ac_cv_c_bigendian=yes
7834fi 7834fi
7835rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7835rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7836fi 7836fi
7837 7837
7838 7838
7839fi 7839fi
7840 7840
7841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7842fi 7842fi
7843{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 7843{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7844echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 7844echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
7845case $ac_cv_c_bigendian in 7845case $ac_cv_c_bigendian in
7846 yes) 7846 yes)
7847 7847
7848cat >>confdefs.h <<\_ACEOF 7848cat >>confdefs.h <<\_ACEOF
7849#define WORDS_BIGENDIAN 1 7849#define WORDS_BIGENDIAN 1
7850_ACEOF 7850_ACEOF
7851 ;; 7851 ;;
7852 no) 7852 no)
7853 ;; 7853 ;;
7854 *) 7854 *)
7855 { { echo "$as_me:$LINENO: error: unknown endianness 7855 { { echo "$as_me:$LINENO: error: unknown endianness
7856presetting ac_cv_c_bigendian=no (or yes) will help" >&5 7856presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7857echo "$as_me: error: unknown endianness 7857echo "$as_me: error: unknown endianness
7858presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 7858presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7859 { (exit 1); exit 1; }; } ;; 7859 { (exit 1); exit 1; }; } ;;
7860esac 7860esac
7861 7861
7862{ echo "$as_me:$LINENO: checking for off_t" >&5 7862{ echo "$as_me:$LINENO: checking for off_t" >&5
7863echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } 7863echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7864if test "${ac_cv_type_off_t+set}" = set; then 7864if test "${ac_cv_type_off_t+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6 7865 echo $ECHO_N "(cached) $ECHO_C" >&6
7866else 7866else
7867 cat >conftest.$ac_ext <<_ACEOF 7867 cat >conftest.$ac_ext <<_ACEOF
7868/* confdefs.h. */ 7868/* confdefs.h. */
7869_ACEOF 7869_ACEOF
7870cat confdefs.h >>conftest.$ac_ext 7870cat confdefs.h >>conftest.$ac_ext
7871cat >>conftest.$ac_ext <<_ACEOF 7871cat >>conftest.$ac_ext <<_ACEOF
7872/* end confdefs.h. */ 7872/* end confdefs.h. */
7873$ac_includes_default 7873$ac_includes_default
7874typedef off_t ac__type_new_; 7874typedef off_t ac__type_new_;
7875int 7875int
7876main () 7876main ()
7877{ 7877{
7878if ((ac__type_new_ *) 0) 7878if ((ac__type_new_ *) 0)
7879 return 0; 7879 return 0;
7880if (sizeof (ac__type_new_)) 7880if (sizeof (ac__type_new_))
7881 return 0; 7881 return 0;
7882 ; 7882 ;
7883 return 0; 7883 return 0;
7884} 7884}
7885_ACEOF 7885_ACEOF
7886rm -f conftest.$ac_objext 7886rm -f conftest.$ac_objext
7887if { (ac_try="$ac_compile" 7887if { (ac_try="$ac_compile"
7888case "(($ac_try" in 7888case "(($ac_try" in
7889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890 *) ac_try_echo=$ac_try;; 7890 *) ac_try_echo=$ac_try;;
7891esac 7891esac
7892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893 (eval "$ac_compile") 2>conftest.er1 7893 (eval "$ac_compile") 2>conftest.er1
7894 ac_status=$? 7894 ac_status=$?
7895 grep -v '^ *+' conftest.er1 >conftest.err 7895 grep -v '^ *+' conftest.er1 >conftest.err
7896 rm -f conftest.er1 7896 rm -f conftest.er1
7897 cat conftest.err >&5 7897 cat conftest.err >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); } && { 7899 (exit $ac_status); } && {
7900 test -z "$ac_c_werror_flag" || 7900 test -z "$ac_c_werror_flag" ||
7901 test ! -s conftest.err 7901 test ! -s conftest.err
7902 } && test -s conftest.$ac_objext; then 7902 } && test -s conftest.$ac_objext; then
7903 ac_cv_type_off_t=yes 7903 ac_cv_type_off_t=yes
7904else 7904else
7905 echo "$as_me: failed program was:" >&5 7905 echo "$as_me: failed program was:" >&5
7906sed 's/^/| /' conftest.$ac_ext >&5 7906sed 's/^/| /' conftest.$ac_ext >&5
7907 7907
7908 ac_cv_type_off_t=no 7908 ac_cv_type_off_t=no
7909fi 7909fi
7910 7910
7911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912fi 7912fi
7913{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 7913{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7914echo "${ECHO_T}$ac_cv_type_off_t" >&6; } 7914echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7915 7915
7916# The cast to long int works around a bug in the HP C Compiler 7916# The cast to long int works around a bug in the HP C Compiler
7917# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7917# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7918# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7918# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7919# This bug is HP SR number 8606223364. 7919# This bug is HP SR number 8606223364.
7920{ echo "$as_me:$LINENO: checking size of off_t" >&5 7920{ echo "$as_me:$LINENO: checking size of off_t" >&5
7921echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; } 7921echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
7922if test "${ac_cv_sizeof_off_t+set}" = set; then 7922if test "${ac_cv_sizeof_off_t+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6 7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7924else 7924else
7925 if test "$cross_compiling" = yes; then 7925 if test "$cross_compiling" = yes; then
7926 # Depending upon the size, compute the lo and hi bounds. 7926 # Depending upon the size, compute the lo and hi bounds.
7927cat >conftest.$ac_ext <<_ACEOF 7927cat >conftest.$ac_ext <<_ACEOF
7928/* confdefs.h. */ 7928/* confdefs.h. */
7929_ACEOF 7929_ACEOF
7930cat confdefs.h >>conftest.$ac_ext 7930cat confdefs.h >>conftest.$ac_ext
7931cat >>conftest.$ac_ext <<_ACEOF 7931cat >>conftest.$ac_ext <<_ACEOF
7932/* end confdefs.h. */ 7932/* end confdefs.h. */
7933$ac_includes_default 7933$ac_includes_default
7934 typedef off_t ac__type_sizeof_; 7934 typedef off_t ac__type_sizeof_;
7935int 7935int
7936main () 7936main ()
7937{ 7937{
7938static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 7938static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7939test_array [0] = 0 7939test_array [0] = 0
7940 7940
7941 ; 7941 ;
7942 return 0; 7942 return 0;
7943} 7943}
7944_ACEOF 7944_ACEOF
7945rm -f conftest.$ac_objext 7945rm -f conftest.$ac_objext
7946if { (ac_try="$ac_compile" 7946if { (ac_try="$ac_compile"
7947case "(($ac_try" in 7947case "(($ac_try" in
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;; 7949 *) ac_try_echo=$ac_try;;
7950esac 7950esac
7951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952 (eval "$ac_compile") 2>conftest.er1 7952 (eval "$ac_compile") 2>conftest.er1
7953 ac_status=$? 7953 ac_status=$?
7954 grep -v '^ *+' conftest.er1 >conftest.err 7954 grep -v '^ *+' conftest.er1 >conftest.err
7955 rm -f conftest.er1 7955 rm -f conftest.er1
7956 cat conftest.err >&5 7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } && { 7958 (exit $ac_status); } && {
7959 test -z "$ac_c_werror_flag" || 7959 test -z "$ac_c_werror_flag" ||
7960 test ! -s conftest.err 7960 test ! -s conftest.err
7961 } && test -s conftest.$ac_objext; then 7961 } && test -s conftest.$ac_objext; then
7962 ac_lo=0 ac_mid=0 7962 ac_lo=0 ac_mid=0
7963 while :; do 7963 while :; do
7964 cat >conftest.$ac_ext <<_ACEOF 7964 cat >conftest.$ac_ext <<_ACEOF
7965/* confdefs.h. */ 7965/* confdefs.h. */
7966_ACEOF 7966_ACEOF
7967cat confdefs.h >>conftest.$ac_ext 7967cat confdefs.h >>conftest.$ac_ext
7968cat >>conftest.$ac_ext <<_ACEOF 7968cat >>conftest.$ac_ext <<_ACEOF
7969/* end confdefs.h. */ 7969/* end confdefs.h. */
7970$ac_includes_default 7970$ac_includes_default
7971 typedef off_t ac__type_sizeof_; 7971 typedef off_t ac__type_sizeof_;
7972int 7972int
7973main () 7973main ()
7974{ 7974{
7975static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7975static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7976test_array [0] = 0 7976test_array [0] = 0
7977 7977
7978 ; 7978 ;
7979 return 0; 7979 return 0;
7980} 7980}
7981_ACEOF 7981_ACEOF
7982rm -f conftest.$ac_objext 7982rm -f conftest.$ac_objext
7983if { (ac_try="$ac_compile" 7983if { (ac_try="$ac_compile"
7984case "(($ac_try" in 7984case "(($ac_try" in
7985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986 *) ac_try_echo=$ac_try;; 7986 *) ac_try_echo=$ac_try;;
7987esac 7987esac
7988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989 (eval "$ac_compile") 2>conftest.er1 7989 (eval "$ac_compile") 2>conftest.er1
7990 ac_status=$? 7990 ac_status=$?
7991 grep -v '^ *+' conftest.er1 >conftest.err 7991 grep -v '^ *+' conftest.er1 >conftest.err
7992 rm -f conftest.er1 7992 rm -f conftest.er1
7993 cat conftest.err >&5 7993 cat conftest.err >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } && { 7995 (exit $ac_status); } && {
7996 test -z "$ac_c_werror_flag" || 7996 test -z "$ac_c_werror_flag" ||
7997 test ! -s conftest.err 7997 test ! -s conftest.err
7998 } && test -s conftest.$ac_objext; then 7998 } && test -s conftest.$ac_objext; then
7999 ac_hi=$ac_mid; break 7999 ac_hi=$ac_mid; break
8000else 8000else
8001 echo "$as_me: failed program was:" >&5 8001 echo "$as_me: failed program was:" >&5
8002sed 's/^/| /' conftest.$ac_ext >&5 8002sed 's/^/| /' conftest.$ac_ext >&5
8003 8003
8004 ac_lo=`expr $ac_mid + 1` 8004 ac_lo=`expr $ac_mid + 1`
8005 if test $ac_lo -le $ac_mid; then 8005 if test $ac_lo -le $ac_mid; then
8006 ac_lo= ac_hi= 8006 ac_lo= ac_hi=
8007 break 8007 break
8008 fi 8008 fi
8009 ac_mid=`expr 2 '*' $ac_mid + 1` 8009 ac_mid=`expr 2 '*' $ac_mid + 1`
8010fi 8010fi
8011 8011
8012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013 done 8013 done
8014else 8014else
8015 echo "$as_me: failed program was:" >&5 8015 echo "$as_me: failed program was:" >&5
8016sed 's/^/| /' conftest.$ac_ext >&5 8016sed 's/^/| /' conftest.$ac_ext >&5
8017 8017
8018 cat >conftest.$ac_ext <<_ACEOF 8018 cat >conftest.$ac_ext <<_ACEOF
8019/* confdefs.h. */ 8019/* confdefs.h. */
8020_ACEOF 8020_ACEOF
8021cat confdefs.h >>conftest.$ac_ext 8021cat confdefs.h >>conftest.$ac_ext
8022cat >>conftest.$ac_ext <<_ACEOF 8022cat >>conftest.$ac_ext <<_ACEOF
8023/* end confdefs.h. */ 8023/* end confdefs.h. */
8024$ac_includes_default 8024$ac_includes_default
8025 typedef off_t ac__type_sizeof_; 8025 typedef off_t ac__type_sizeof_;
8026int 8026int
8027main () 8027main ()
8028{ 8028{
8029static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 8029static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8030test_array [0] = 0 8030test_array [0] = 0
8031 8031
8032 ; 8032 ;
8033 return 0; 8033 return 0;
8034} 8034}
8035_ACEOF 8035_ACEOF
8036rm -f conftest.$ac_objext 8036rm -f conftest.$ac_objext
8037if { (ac_try="$ac_compile" 8037if { (ac_try="$ac_compile"
8038case "(($ac_try" in 8038case "(($ac_try" in
8039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040 *) ac_try_echo=$ac_try;; 8040 *) ac_try_echo=$ac_try;;
8041esac 8041esac
8042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8043 (eval "$ac_compile") 2>conftest.er1 8043 (eval "$ac_compile") 2>conftest.er1
8044 ac_status=$? 8044 ac_status=$?
8045 grep -v '^ *+' conftest.er1 >conftest.err 8045 grep -v '^ *+' conftest.er1 >conftest.err
8046 rm -f conftest.er1 8046 rm -f conftest.er1
8047 cat conftest.err >&5 8047 cat conftest.err >&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } && { 8049 (exit $ac_status); } && {
8050 test -z "$ac_c_werror_flag" || 8050 test -z "$ac_c_werror_flag" ||
8051 test ! -s conftest.err 8051 test ! -s conftest.err
8052 } && test -s conftest.$ac_objext; then 8052 } && test -s conftest.$ac_objext; then
8053 ac_hi=-1 ac_mid=-1 8053 ac_hi=-1 ac_mid=-1
8054 while :; do 8054 while :; do
8055 cat >conftest.$ac_ext <<_ACEOF 8055 cat >conftest.$ac_ext <<_ACEOF
8056/* confdefs.h. */ 8056/* confdefs.h. */
8057_ACEOF 8057_ACEOF
8058cat confdefs.h >>conftest.$ac_ext 8058cat confdefs.h >>conftest.$ac_ext
8059cat >>conftest.$ac_ext <<_ACEOF 8059cat >>conftest.$ac_ext <<_ACEOF
8060/* end confdefs.h. */ 8060/* end confdefs.h. */
8061$ac_includes_default 8061$ac_includes_default
8062 typedef off_t ac__type_sizeof_; 8062 typedef off_t ac__type_sizeof_;
8063int 8063int
8064main () 8064main ()
8065{ 8065{
8066static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 8066static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8067test_array [0] = 0 8067test_array [0] = 0
8068 8068
8069 ; 8069 ;
8070 return 0; 8070 return 0;
8071} 8071}
8072_ACEOF 8072_ACEOF
8073rm -f conftest.$ac_objext 8073rm -f conftest.$ac_objext
8074if { (ac_try="$ac_compile" 8074if { (ac_try="$ac_compile"
8075case "(($ac_try" in 8075case "(($ac_try" in
8076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077 *) ac_try_echo=$ac_try;; 8077 *) ac_try_echo=$ac_try;;
8078esac 8078esac
8079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8080 (eval "$ac_compile") 2>conftest.er1 8080 (eval "$ac_compile") 2>conftest.er1
8081 ac_status=$? 8081 ac_status=$?
8082 grep -v '^ *+' conftest.er1 >conftest.err 8082 grep -v '^ *+' conftest.er1 >conftest.err
8083 rm -f conftest.er1 8083 rm -f conftest.er1
8084 cat conftest.err >&5 8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } && { 8086 (exit $ac_status); } && {
8087 test -z "$ac_c_werror_flag" || 8087 test -z "$ac_c_werror_flag" ||
8088 test ! -s conftest.err 8088 test ! -s conftest.err
8089 } && test -s conftest.$ac_objext; then 8089 } && test -s conftest.$ac_objext; then
8090 ac_lo=$ac_mid; break 8090 ac_lo=$ac_mid; break
8091else 8091else
8092 echo "$as_me: failed program was:" >&5 8092 echo "$as_me: failed program was:" >&5
8093sed 's/^/| /' conftest.$ac_ext >&5 8093sed 's/^/| /' conftest.$ac_ext >&5
8094 8094
8095 ac_hi=`expr '(' $ac_mid ')' - 1` 8095 ac_hi=`expr '(' $ac_mid ')' - 1`
8096 if test $ac_mid -le $ac_hi; then 8096 if test $ac_mid -le $ac_hi; then
8097 ac_lo= ac_hi= 8097 ac_lo= ac_hi=
8098 break 8098 break
8099 fi 8099 fi
8100 ac_mid=`expr 2 '*' $ac_mid` 8100 ac_mid=`expr 2 '*' $ac_mid`
8101fi 8101fi
8102 8102
8103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8104 done 8104 done
8105else 8105else
8106 echo "$as_me: failed program was:" >&5 8106 echo "$as_me: failed program was:" >&5
8107sed 's/^/| /' conftest.$ac_ext >&5 8107sed 's/^/| /' conftest.$ac_ext >&5
8108 8108
8109 ac_lo= ac_hi= 8109 ac_lo= ac_hi=
8110fi 8110fi
8111 8111
8112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113fi 8113fi
8114 8114
8115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116# Binary search between lo and hi bounds. 8116# Binary search between lo and hi bounds.
8117while test "x$ac_lo" != "x$ac_hi"; do 8117while test "x$ac_lo" != "x$ac_hi"; do
8118 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8118 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8119 cat >conftest.$ac_ext <<_ACEOF 8119 cat >conftest.$ac_ext <<_ACEOF
8120/* confdefs.h. */ 8120/* confdefs.h. */
8121_ACEOF 8121_ACEOF
8122cat confdefs.h >>conftest.$ac_ext 8122cat confdefs.h >>conftest.$ac_ext
8123cat >>conftest.$ac_ext <<_ACEOF 8123cat >>conftest.$ac_ext <<_ACEOF
8124/* end confdefs.h. */ 8124/* end confdefs.h. */
8125$ac_includes_default 8125$ac_includes_default
8126 typedef off_t ac__type_sizeof_; 8126 typedef off_t ac__type_sizeof_;
8127int 8127int
8128main () 8128main ()
8129{ 8129{
8130static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8130static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8131test_array [0] = 0 8131test_array [0] = 0
8132 8132
8133 ; 8133 ;
8134 return 0; 8134 return 0;
8135} 8135}
8136_ACEOF 8136_ACEOF
8137rm -f conftest.$ac_objext 8137rm -f conftest.$ac_objext
8138if { (ac_try="$ac_compile" 8138if { (ac_try="$ac_compile"
8139case "(($ac_try" in 8139case "(($ac_try" in
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;; 8141 *) ac_try_echo=$ac_try;;
8142esac 8142esac
8143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_compile") 2>conftest.er1 8144 (eval "$ac_compile") 2>conftest.er1
8145 ac_status=$? 8145 ac_status=$?
8146 grep -v '^ *+' conftest.er1 >conftest.err 8146 grep -v '^ *+' conftest.er1 >conftest.err
8147 rm -f conftest.er1 8147 rm -f conftest.er1
8148 cat conftest.err >&5 8148 cat conftest.err >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } && { 8150 (exit $ac_status); } && {
8151 test -z "$ac_c_werror_flag" || 8151 test -z "$ac_c_werror_flag" ||
8152 test ! -s conftest.err 8152 test ! -s conftest.err
8153 } && test -s conftest.$ac_objext; then 8153 } && test -s conftest.$ac_objext; then
8154 ac_hi=$ac_mid 8154 ac_hi=$ac_mid
8155else 8155else
8156 echo "$as_me: failed program was:" >&5 8156 echo "$as_me: failed program was:" >&5
8157sed 's/^/| /' conftest.$ac_ext >&5 8157sed 's/^/| /' conftest.$ac_ext >&5
8158 8158
8159 ac_lo=`expr '(' $ac_mid ')' + 1` 8159 ac_lo=`expr '(' $ac_mid ')' + 1`
8160fi 8160fi
8161 8161
8162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8163done 8163done
8164case $ac_lo in 8164case $ac_lo in
8165?*) ac_cv_sizeof_off_t=$ac_lo;; 8165?*) ac_cv_sizeof_off_t=$ac_lo;;
8166'') if test "$ac_cv_type_off_t" = yes; then 8166'') if test "$ac_cv_type_off_t" = yes; then
8167 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) 8167 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
8168See \`config.log' for more details." >&5 8168See \`config.log' for more details." >&5
8169echo "$as_me: error: cannot compute sizeof (off_t) 8169echo "$as_me: error: cannot compute sizeof (off_t)
8170See \`config.log' for more details." >&2;} 8170See \`config.log' for more details." >&2;}
8171 { (exit 77); exit 77; }; } 8171 { (exit 77); exit 77; }; }
8172 else 8172 else
8173 ac_cv_sizeof_off_t=0 8173 ac_cv_sizeof_off_t=0
8174 fi ;; 8174 fi ;;
8175esac 8175esac
8176else 8176else
8177 cat >conftest.$ac_ext <<_ACEOF 8177 cat >conftest.$ac_ext <<_ACEOF
8178/* confdefs.h. */ 8178/* confdefs.h. */
8179_ACEOF 8179_ACEOF
8180cat confdefs.h >>conftest.$ac_ext 8180cat confdefs.h >>conftest.$ac_ext
8181cat >>conftest.$ac_ext <<_ACEOF 8181cat >>conftest.$ac_ext <<_ACEOF
8182/* end confdefs.h. */ 8182/* end confdefs.h. */
8183$ac_includes_default 8183$ac_includes_default
8184 typedef off_t ac__type_sizeof_; 8184 typedef off_t ac__type_sizeof_;
8185static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 8185static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8186static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 8186static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8187#include <stdio.h> 8187#include <stdio.h>
8188#include <stdlib.h> 8188#include <stdlib.h>
8189int 8189int
8190main () 8190main ()
8191{ 8191{
8192 8192
8193 FILE *f = fopen ("conftest.val", "w"); 8193 FILE *f = fopen ("conftest.val", "w");
8194 if (! f) 8194 if (! f)
8195 return 1; 8195 return 1;
8196 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 8196 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8197 { 8197 {
8198 long int i = longval (); 8198 long int i = longval ();
8199 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 8199 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8200 return 1; 8200 return 1;
8201 fprintf (f, "%ld\n", i); 8201 fprintf (f, "%ld\n", i);
8202 } 8202 }
8203 else 8203 else
8204 { 8204 {
8205 unsigned long int i = ulongval (); 8205 unsigned long int i = ulongval ();
8206 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 8206 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8207 return 1; 8207 return 1;
8208 fprintf (f, "%lu\n", i); 8208 fprintf (f, "%lu\n", i);
8209 } 8209 }
8210 return ferror (f) || fclose (f) != 0; 8210 return ferror (f) || fclose (f) != 0;
8211 8211
8212 ; 8212 ;
8213 return 0; 8213 return 0;
8214} 8214}
8215_ACEOF 8215_ACEOF
8216rm -f conftest$ac_exeext 8216rm -f conftest$ac_exeext
8217if { (ac_try="$ac_link" 8217if { (ac_try="$ac_link"
8218case "(($ac_try" in 8218case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;; 8220 *) ac_try_echo=$ac_try;;
8221esac 8221esac
8222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_link") 2>&5 8223 (eval "$ac_link") 2>&5
8224 ac_status=$? 8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8227 { (case "(($ac_try" in 8227 { (case "(($ac_try" in
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;; 8229 *) ac_try_echo=$ac_try;;
8230esac 8230esac
8231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_try") 2>&5 8232 (eval "$ac_try") 2>&5
8233 ac_status=$? 8233 ac_status=$?
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; }; then 8235 (exit $ac_status); }; }; then
8236 ac_cv_sizeof_off_t=`cat conftest.val` 8236 ac_cv_sizeof_off_t=`cat conftest.val`
8237else 8237else
8238 echo "$as_me: program exited with status $ac_status" >&5 8238 echo "$as_me: program exited with status $ac_status" >&5
8239echo "$as_me: failed program was:" >&5 8239echo "$as_me: failed program was:" >&5
8240sed 's/^/| /' conftest.$ac_ext >&5 8240sed 's/^/| /' conftest.$ac_ext >&5
8241 8241
8242( exit $ac_status ) 8242( exit $ac_status )
8243if test "$ac_cv_type_off_t" = yes; then 8243if test "$ac_cv_type_off_t" = yes; then
8244 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) 8244 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
8245See \`config.log' for more details." >&5 8245See \`config.log' for more details." >&5
8246echo "$as_me: error: cannot compute sizeof (off_t) 8246echo "$as_me: error: cannot compute sizeof (off_t)
8247See \`config.log' for more details." >&2;} 8247See \`config.log' for more details." >&2;}
8248 { (exit 77); exit 77; }; } 8248 { (exit 77); exit 77; }; }
8249 else 8249 else
8250 ac_cv_sizeof_off_t=0 8250 ac_cv_sizeof_off_t=0
8251 fi 8251 fi
8252fi 8252fi
8253rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8253rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8254fi 8254fi
8255rm -f conftest.val 8255rm -f conftest.val
8256fi 8256fi
8257{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 8257{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
8258echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } 8258echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
8259 8259
8260 8260
8261 8261
8262cat >>confdefs.h <<_ACEOF 8262cat >>confdefs.h <<_ACEOF
8263#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 8263#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8264_ACEOF 8264_ACEOF
8265 8265
8266 8266
8267 8267
8268# Checks for library functions. 8268# Checks for library functions.
8269 8269
8270for ac_header in stdlib.h 8270for ac_header in stdlib.h
8271do 8271do
8272as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8272as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8274 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6 8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8278fi 8278fi
8279ac_res=`eval echo '${'$as_ac_Header'}'` 8279ac_res=`eval echo '${'$as_ac_Header'}'`
8280 { echo "$as_me:$LINENO: result: $ac_res" >&5 8280 { echo "$as_me:$LINENO: result: $ac_res" >&5
8281echo "${ECHO_T}$ac_res" >&6; } 8281echo "${ECHO_T}$ac_res" >&6; }
8282else 8282else
8283 # Is the header compilable? 8283 # Is the header compilable?
8284{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8284{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8285echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8285echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8286cat >conftest.$ac_ext <<_ACEOF 8286cat >conftest.$ac_ext <<_ACEOF
8287/* confdefs.h. */ 8287/* confdefs.h. */
8288_ACEOF 8288_ACEOF
8289cat confdefs.h >>conftest.$ac_ext 8289cat confdefs.h >>conftest.$ac_ext
8290cat >>conftest.$ac_ext <<_ACEOF 8290cat >>conftest.$ac_ext <<_ACEOF
8291/* end confdefs.h. */ 8291/* end confdefs.h. */
8292$ac_includes_default 8292$ac_includes_default
8293#include <$ac_header> 8293#include <$ac_header>
8294_ACEOF 8294_ACEOF
8295rm -f conftest.$ac_objext 8295rm -f conftest.$ac_objext
8296if { (ac_try="$ac_compile" 8296if { (ac_try="$ac_compile"
8297case "(($ac_try" in 8297case "(($ac_try" in
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;; 8299 *) ac_try_echo=$ac_try;;
8300esac 8300esac
8301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_compile") 2>conftest.er1 8302 (eval "$ac_compile") 2>conftest.er1
8303 ac_status=$? 8303 ac_status=$?
8304 grep -v '^ *+' conftest.er1 >conftest.err 8304 grep -v '^ *+' conftest.er1 >conftest.err
8305 rm -f conftest.er1 8305 rm -f conftest.er1
8306 cat conftest.err >&5 8306 cat conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } && { 8308 (exit $ac_status); } && {
8309 test -z "$ac_c_werror_flag" || 8309 test -z "$ac_c_werror_flag" ||
8310 test ! -s conftest.err 8310 test ! -s conftest.err
8311 } && test -s conftest.$ac_objext; then 8311 } && test -s conftest.$ac_objext; then
8312 ac_header_compiler=yes 8312 ac_header_compiler=yes
8313else 8313else
8314 echo "$as_me: failed program was:" >&5 8314 echo "$as_me: failed program was:" >&5
8315sed 's/^/| /' conftest.$ac_ext >&5 8315sed 's/^/| /' conftest.$ac_ext >&5
8316 8316
8317 ac_header_compiler=no 8317 ac_header_compiler=no
8318fi 8318fi
8319 8319
8320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8321{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8322echo "${ECHO_T}$ac_header_compiler" >&6; } 8322echo "${ECHO_T}$ac_header_compiler" >&6; }
8323 8323
8324# Is the header present? 8324# Is the header present?
8325{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8325{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8327cat >conftest.$ac_ext <<_ACEOF 8327cat >conftest.$ac_ext <<_ACEOF
8328/* confdefs.h. */ 8328/* confdefs.h. */
8329_ACEOF 8329_ACEOF
8330cat confdefs.h >>conftest.$ac_ext 8330cat confdefs.h >>conftest.$ac_ext
8331cat >>conftest.$ac_ext <<_ACEOF 8331cat >>conftest.$ac_ext <<_ACEOF
8332/* end confdefs.h. */ 8332/* end confdefs.h. */
8333#include <$ac_header> 8333#include <$ac_header>
8334_ACEOF 8334_ACEOF
8335if { (ac_try="$ac_cpp conftest.$ac_ext" 8335if { (ac_try="$ac_cpp conftest.$ac_ext"
8336case "(($ac_try" in 8336case "(($ac_try" in
8337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338 *) ac_try_echo=$ac_try;; 8338 *) ac_try_echo=$ac_try;;
8339esac 8339esac
8340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8342 ac_status=$? 8342 ac_status=$?
8343 grep -v '^ *+' conftest.er1 >conftest.err 8343 grep -v '^ *+' conftest.er1 >conftest.err
8344 rm -f conftest.er1 8344 rm -f conftest.er1
8345 cat conftest.err >&5 8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } >/dev/null && { 8347 (exit $ac_status); } >/dev/null && {
8348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8349 test ! -s conftest.err 8349 test ! -s conftest.err
8350 }; then 8350 }; then
8351 ac_header_preproc=yes 8351 ac_header_preproc=yes
8352else 8352else
8353 echo "$as_me: failed program was:" >&5 8353 echo "$as_me: failed program was:" >&5
8354sed 's/^/| /' conftest.$ac_ext >&5 8354sed 's/^/| /' conftest.$ac_ext >&5
8355 8355
8356 ac_header_preproc=no 8356 ac_header_preproc=no
8357fi 8357fi
8358 8358
8359rm -f conftest.err conftest.$ac_ext 8359rm -f conftest.err conftest.$ac_ext
8360{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8360{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8361echo "${ECHO_T}$ac_header_preproc" >&6; } 8361echo "${ECHO_T}$ac_header_preproc" >&6; }
8362 8362
8363# So? What about this header? 8363# So? What about this header?
8364case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8364case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8365 yes:no: ) 8365 yes:no: )
8366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8367echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8367echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8369echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8369echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8370 ac_header_preproc=yes 8370 ac_header_preproc=yes
8371 ;; 8371 ;;
8372 no:yes:* ) 8372 no:yes:* )
8373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8374echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8374echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8376echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8376echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8378echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8378echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8380echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8380echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8382echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8382echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8384echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8384echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8385 ( cat <<\_ASBOX 8385 ( cat <<\_ASBOX
8386## ------------------------------- ## 8386## ------------------------------- ##
8387## Report this to grant@NetBSD.org ## 8387## Report this to grant@NetBSD.org ##
8388## ------------------------------- ## 8388## ------------------------------- ##
8389_ASBOX 8389_ASBOX
8390 ) | sed "s/^/$as_me: WARNING: /" >&2 8390 ) | sed "s/^/$as_me: WARNING: /" >&2
8391 ;; 8391 ;;
8392esac 8392esac
8393{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8393{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6 8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8397else 8397else
8398 eval "$as_ac_Header=\$ac_header_preproc" 8398 eval "$as_ac_Header=\$ac_header_preproc"
8399fi 8399fi
8400ac_res=`eval echo '${'$as_ac_Header'}'` 8400ac_res=`eval echo '${'$as_ac_Header'}'`
8401 { echo "$as_me:$LINENO: result: $ac_res" >&5 8401 { echo "$as_me:$LINENO: result: $ac_res" >&5
8402echo "${ECHO_T}$ac_res" >&6; } 8402echo "${ECHO_T}$ac_res" >&6; }
8403 8403
8404fi 8404fi
8405if test `eval echo '${'$as_ac_Header'}'` = yes; then 8405if test `eval echo '${'$as_ac_Header'}'` = yes; then
8406 cat >>confdefs.h <<_ACEOF 8406 cat >>confdefs.h <<_ACEOF
8407#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8407#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8408_ACEOF 8408_ACEOF
8409 8409
8410fi 8410fi
8411 8411
8412done 8412done
8413 8413
8414{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 8414{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8415echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } 8415echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
8416if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 8416if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6 8417 echo $ECHO_N "(cached) $ECHO_C" >&6
8418else 8418else
8419 if test "$cross_compiling" = yes; then 8419 if test "$cross_compiling" = yes; then
8420 ac_cv_func_malloc_0_nonnull=no 8420 ac_cv_func_malloc_0_nonnull=no
8421else 8421else
8422 cat >conftest.$ac_ext <<_ACEOF 8422 cat >conftest.$ac_ext <<_ACEOF
8423/* confdefs.h. */ 8423/* confdefs.h. */
8424_ACEOF 8424_ACEOF
8425cat confdefs.h >>conftest.$ac_ext 8425cat confdefs.h >>conftest.$ac_ext
8426cat >>conftest.$ac_ext <<_ACEOF 8426cat >>conftest.$ac_ext <<_ACEOF
8427/* end confdefs.h. */ 8427/* end confdefs.h. */
8428#if defined STDC_HEADERS || defined HAVE_STDLIB_H 8428#if defined STDC_HEADERS || defined HAVE_STDLIB_H
8429# include <stdlib.h> 8429# include <stdlib.h>
8430#else 8430#else
8431char *malloc (); 8431char *malloc ();
8432#endif 8432#endif
8433 8433
8434int 8434int
8435main () 8435main ()
8436{ 8436{
8437return ! malloc (0); 8437return ! malloc (0);
8438 ; 8438 ;
8439 return 0; 8439 return 0;
8440} 8440}
8441_ACEOF 8441_ACEOF
8442rm -f conftest$ac_exeext 8442rm -f conftest$ac_exeext
8443if { (ac_try="$ac_link" 8443if { (ac_try="$ac_link"
8444case "(($ac_try" in 8444case "(($ac_try" in
8445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446 *) ac_try_echo=$ac_try;; 8446 *) ac_try_echo=$ac_try;;
8447esac 8447esac
8448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449 (eval "$ac_link") 2>&5 8449 (eval "$ac_link") 2>&5
8450 ac_status=$? 8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8453 { (case "(($ac_try" in 8453 { (case "(($ac_try" in
8454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455 *) ac_try_echo=$ac_try;; 8455 *) ac_try_echo=$ac_try;;
8456esac 8456esac
8457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458 (eval "$ac_try") 2>&5 8458 (eval "$ac_try") 2>&5
8459 ac_status=$? 8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then 8461 (exit $ac_status); }; }; then
8462 ac_cv_func_malloc_0_nonnull=yes 8462 ac_cv_func_malloc_0_nonnull=yes
8463else 8463else
8464 echo "$as_me: program exited with status $ac_status" >&5 8464 echo "$as_me: program exited with status $ac_status" >&5
8465echo "$as_me: failed program was:" >&5 8465echo "$as_me: failed program was:" >&5
8466sed 's/^/| /' conftest.$ac_ext >&5 8466sed 's/^/| /' conftest.$ac_ext >&5
8467 8467
8468( exit $ac_status ) 8468( exit $ac_status )
8469ac_cv_func_malloc_0_nonnull=no 8469ac_cv_func_malloc_0_nonnull=no
8470fi 8470fi
8471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8472fi 8472fi
8473 8473
8474 8474
8475fi 8475fi
8476{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 8476{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8477echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } 8477echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
8478if test $ac_cv_func_malloc_0_nonnull = yes; then 8478if test $ac_cv_func_malloc_0_nonnull = yes; then
8479 8479
8480cat >>confdefs.h <<\_ACEOF 8480cat >>confdefs.h <<\_ACEOF
8481#define HAVE_MALLOC 1 8481#define HAVE_MALLOC 1
8482_ACEOF 8482_ACEOF
8483 8483
8484else 8484else
8485 cat >>confdefs.h <<\_ACEOF 8485 cat >>confdefs.h <<\_ACEOF
8486#define HAVE_MALLOC 0 8486#define HAVE_MALLOC 0
8487_ACEOF 8487_ACEOF
8488 8488
8489 case " $LIBOBJS " in 8489 case " $LIBOBJS " in
8490 *" malloc.$ac_objext "* ) ;; 8490 *" malloc.$ac_objext "* ) ;;
8491 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 8491 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8492 ;; 8492 ;;
8493esac 8493esac
8494 8494
8495 8495
8496cat >>confdefs.h <<\_ACEOF 8496cat >>confdefs.h <<\_ACEOF
8497#define malloc rpl_malloc 8497#define malloc rpl_malloc
8498_ACEOF 8498_ACEOF
8499 8499
8500fi 8500fi
8501 8501
8502 8502
8503 8503
8504{ echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5 8504{ echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
8505echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; } 8505echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
8506if test "${ac_cv_have_decl_strerror_r+set}" = set; then 8506if test "${ac_cv_have_decl_strerror_r+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6 8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8508else 8508else
8509 cat >conftest.$ac_ext <<_ACEOF 8509 cat >conftest.$ac_ext <<_ACEOF
8510/* confdefs.h. */ 8510/* confdefs.h. */
8511_ACEOF 8511_ACEOF
8512cat confdefs.h >>conftest.$ac_ext 8512cat confdefs.h >>conftest.$ac_ext
8513cat >>conftest.$ac_ext <<_ACEOF 8513cat >>conftest.$ac_ext <<_ACEOF
8514/* end confdefs.h. */ 8514/* end confdefs.h. */
8515$ac_includes_default 8515$ac_includes_default
8516int 8516int
8517main () 8517main ()
8518{ 8518{
8519#ifndef strerror_r 8519#ifndef strerror_r
8520 (void) strerror_r; 8520 (void) strerror_r;
8521#endif 8521#endif
8522 8522
8523 ; 8523 ;
8524 return 0; 8524 return 0;
8525} 8525}
8526_ACEOF 8526_ACEOF
8527rm -f conftest.$ac_objext 8527rm -f conftest.$ac_objext
8528if { (ac_try="$ac_compile" 8528if { (ac_try="$ac_compile"
8529case "(($ac_try" in 8529case "(($ac_try" in
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;; 8531 *) ac_try_echo=$ac_try;;
8532esac 8532esac
8533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534 (eval "$ac_compile") 2>conftest.er1 8534 (eval "$ac_compile") 2>conftest.er1
8535 ac_status=$? 8535 ac_status=$?
8536 grep -v '^ *+' conftest.er1 >conftest.err 8536 grep -v '^ *+' conftest.er1 >conftest.err
8537 rm -f conftest.er1 8537 rm -f conftest.er1
8538 cat conftest.err >&5 8538 cat conftest.err >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } && { 8540 (exit $ac_status); } && {
8541 test -z "$ac_c_werror_flag" || 8541 test -z "$ac_c_werror_flag" ||
8542 test ! -s conftest.err 8542 test ! -s conftest.err
8543 } && test -s conftest.$ac_objext; then 8543 } && test -s conftest.$ac_objext; then
8544 ac_cv_have_decl_strerror_r=yes 8544 ac_cv_have_decl_strerror_r=yes
8545else 8545else
8546 echo "$as_me: failed program was:" >&5 8546 echo "$as_me: failed program was:" >&5
8547sed 's/^/| /' conftest.$ac_ext >&5 8547sed 's/^/| /' conftest.$ac_ext >&5
8548 8548
8549 ac_cv_have_decl_strerror_r=no 8549 ac_cv_have_decl_strerror_r=no
8550fi 8550fi
8551 8551
8552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553fi 8553fi
8554{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5 8554{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
8555echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; } 8555echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
8556if test $ac_cv_have_decl_strerror_r = yes; then 8556if test $ac_cv_have_decl_strerror_r = yes; then
8557 8557
8558cat >>confdefs.h <<_ACEOF 8558cat >>confdefs.h <<_ACEOF
8559#define HAVE_DECL_STRERROR_R 1 8559#define HAVE_DECL_STRERROR_R 1
8560_ACEOF 8560_ACEOF
8561 8561
8562 8562
8563else 8563else
8564 cat >>confdefs.h <<_ACEOF 8564 cat >>confdefs.h <<_ACEOF
8565#define HAVE_DECL_STRERROR_R 0 8565#define HAVE_DECL_STRERROR_R 0
8566_ACEOF 8566_ACEOF
8567 8567
8568 8568
8569fi 8569fi
8570 8570
8571 8571
8572 8572
8573for ac_func in strerror_r 8573for ac_func in strerror_r
8574do 8574do
8575as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8575as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8576{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8576{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8577echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8577echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8578if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8578if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8579 echo $ECHO_N "(cached) $ECHO_C" >&6 8579 echo $ECHO_N "(cached) $ECHO_C" >&6
8580else 8580else
8581 cat >conftest.$ac_ext <<_ACEOF 8581 cat >conftest.$ac_ext <<_ACEOF
8582/* confdefs.h. */ 8582/* confdefs.h. */
8583_ACEOF 8583_ACEOF
8584cat confdefs.h >>conftest.$ac_ext 8584cat confdefs.h >>conftest.$ac_ext
8585cat >>conftest.$ac_ext <<_ACEOF 8585cat >>conftest.$ac_ext <<_ACEOF
8586/* end confdefs.h. */ 8586/* end confdefs.h. */
8587/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8587/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8588 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8589#define $ac_func innocuous_$ac_func 8589#define $ac_func innocuous_$ac_func
8590 8590
8591/* System header to define __stub macros and hopefully few prototypes, 8591/* System header to define __stub macros and hopefully few prototypes,
8592 which can conflict with char $ac_func (); below. 8592 which can conflict with char $ac_func (); below.
8593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8594 <limits.h> exists even on freestanding compilers. */ 8594 <limits.h> exists even on freestanding compilers. */
8595 8595
8596#ifdef __STDC__ 8596#ifdef __STDC__
8597# include <limits.h> 8597# include <limits.h>
8598#else 8598#else
8599# include <assert.h> 8599# include <assert.h>
8600#endif 8600#endif
8601 8601
8602#undef $ac_func 8602#undef $ac_func
8603 8603
8604/* Override any GCC internal prototype to avoid an error. 8604/* Override any GCC internal prototype to avoid an error.
8605 Use char because int might match the return type of a GCC 8605 Use char because int might match the return type of a GCC
8606 builtin and then its argument prototype would still apply. */ 8606 builtin and then its argument prototype would still apply. */
8607#ifdef __cplusplus 8607#ifdef __cplusplus
8608extern "C" 8608extern "C"
8609#endif 8609#endif
8610char $ac_func (); 8610char $ac_func ();
8611/* The GNU C library defines this for functions which it implements 8611/* The GNU C library defines this for functions which it implements
8612 to always fail with ENOSYS. Some functions are actually named 8612 to always fail with ENOSYS. Some functions are actually named
8613 something starting with __ and the normal name is an alias. */ 8613 something starting with __ and the normal name is an alias. */
8614#if defined __stub_$ac_func || defined __stub___$ac_func 8614#if defined __stub_$ac_func || defined __stub___$ac_func
8615choke me 8615choke me
8616#endif 8616#endif
8617 8617
8618int 8618int
8619main () 8619main ()
8620{ 8620{
8621return $ac_func (); 8621return $ac_func ();
8622 ; 8622 ;
8623 return 0; 8623 return 0;
8624} 8624}
8625_ACEOF 8625_ACEOF
8626rm -f conftest.$ac_objext conftest$ac_exeext 8626rm -f conftest.$ac_objext conftest$ac_exeext
8627if { (ac_try="$ac_link" 8627if { (ac_try="$ac_link"
8628case "(($ac_try" in 8628case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;; 8630 *) ac_try_echo=$ac_try;;
8631esac 8631esac
8632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_link") 2>conftest.er1 8633 (eval "$ac_link") 2>conftest.er1
8634 ac_status=$? 8634 ac_status=$?
8635 grep -v '^ *+' conftest.er1 >conftest.err 8635 grep -v '^ *+' conftest.er1 >conftest.err
8636 rm -f conftest.er1 8636 rm -f conftest.er1
8637 cat conftest.err >&5 8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } && { 8639 (exit $ac_status); } && {
8640 test -z "$ac_c_werror_flag" || 8640 test -z "$ac_c_werror_flag" ||
8641 test ! -s conftest.err 8641 test ! -s conftest.err
8642 } && test -s conftest$ac_exeext && 8642 } && test -s conftest$ac_exeext &&
8643 $as_test_x conftest$ac_exeext; then 8643 $as_test_x conftest$ac_exeext; then
8644 eval "$as_ac_var=yes" 8644 eval "$as_ac_var=yes"
8645else 8645else
8646 echo "$as_me: failed program was:" >&5 8646 echo "$as_me: failed program was:" >&5
8647sed 's/^/| /' conftest.$ac_ext >&5 8647sed 's/^/| /' conftest.$ac_ext >&5
8648 8648
8649 eval "$as_ac_var=no" 8649 eval "$as_ac_var=no"
8650fi 8650fi
8651 8651
8652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8653 conftest$ac_exeext conftest.$ac_ext 8653 conftest$ac_exeext conftest.$ac_ext
8654fi 8654fi
8655ac_res=`eval echo '${'$as_ac_var'}'` 8655ac_res=`eval echo '${'$as_ac_var'}'`
8656 { echo "$as_me:$LINENO: result: $ac_res" >&5 8656 { echo "$as_me:$LINENO: result: $ac_res" >&5
8657echo "${ECHO_T}$ac_res" >&6; } 8657echo "${ECHO_T}$ac_res" >&6; }
8658if test `eval echo '${'$as_ac_var'}'` = yes; then 8658if test `eval echo '${'$as_ac_var'}'` = yes; then
8659 cat >>confdefs.h <<_ACEOF 8659 cat >>confdefs.h <<_ACEOF
8660#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8660#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8661_ACEOF 8661_ACEOF
8662 8662
8663fi 8663fi
8664done 8664done
8665 8665
8666{ echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5 8666{ echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
8667echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; } 8667echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
8668if test "${ac_cv_func_strerror_r_char_p+set}" = set; then 8668if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6 8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8670else 8670else
8671 8671
8672 ac_cv_func_strerror_r_char_p=no 8672 ac_cv_func_strerror_r_char_p=no
8673 if test $ac_cv_have_decl_strerror_r = yes; then 8673 if test $ac_cv_have_decl_strerror_r = yes; then
8674 cat >conftest.$ac_ext <<_ACEOF 8674 cat >conftest.$ac_ext <<_ACEOF
8675/* confdefs.h. */ 8675/* confdefs.h. */
8676_ACEOF 8676_ACEOF
8677cat confdefs.h >>conftest.$ac_ext 8677cat confdefs.h >>conftest.$ac_ext
8678cat >>conftest.$ac_ext <<_ACEOF 8678cat >>conftest.$ac_ext <<_ACEOF
8679/* end confdefs.h. */ 8679/* end confdefs.h. */
8680$ac_includes_default 8680$ac_includes_default
8681int 8681int
8682main () 8682main ()
8683{ 8683{
8684 8684
8685 char buf[100]; 8685 char buf[100];
8686 char x = *strerror_r (0, buf, sizeof buf); 8686 char x = *strerror_r (0, buf, sizeof buf);
8687 char *p = strerror_r (0, buf, sizeof buf); 8687 char *p = strerror_r (0, buf, sizeof buf);
8688 return !p || x; 8688 return !p || x;
8689 8689
8690 ; 8690 ;
8691 return 0; 8691 return 0;
8692} 8692}
8693_ACEOF 8693_ACEOF
8694rm -f conftest.$ac_objext 8694rm -f conftest.$ac_objext
8695if { (ac_try="$ac_compile" 8695if { (ac_try="$ac_compile"
8696case "(($ac_try" in 8696case "(($ac_try" in
8697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698 *) ac_try_echo=$ac_try;; 8698 *) ac_try_echo=$ac_try;;
8699esac 8699esac
8700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8701 (eval "$ac_compile") 2>conftest.er1 8701 (eval "$ac_compile") 2>conftest.er1
8702 ac_status=$? 8702 ac_status=$?
8703 grep -v '^ *+' conftest.er1 >conftest.err 8703 grep -v '^ *+' conftest.er1 >conftest.err
8704 rm -f conftest.er1 8704 rm -f conftest.er1
8705 cat conftest.err >&5 8705 cat conftest.err >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } && { 8707 (exit $ac_status); } && {
8708 test -z "$ac_c_werror_flag" || 8708 test -z "$ac_c_werror_flag" ||
8709 test ! -s conftest.err 8709 test ! -s conftest.err
8710 } && test -s conftest.$ac_objext; then 8710 } && test -s conftest.$ac_objext; then
8711 ac_cv_func_strerror_r_char_p=yes 8711 ac_cv_func_strerror_r_char_p=yes
8712else 8712else
8713 echo "$as_me: failed program was:" >&5 8713 echo "$as_me: failed program was:" >&5
8714sed 's/^/| /' conftest.$ac_ext >&5 8714sed 's/^/| /' conftest.$ac_ext >&5
8715 8715
8716 8716
8717fi 8717fi
8718 8718
8719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720 else 8720 else
8721 # strerror_r is not declared. Choose between 8721 # strerror_r is not declared. Choose between
8722 # systems that have relatively inaccessible declarations for the 8722 # systems that have relatively inaccessible declarations for the
8723 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 8723 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8724 # former has a strerror_r that returns char*, while the latter 8724 # former has a strerror_r that returns char*, while the latter
8725 # has a strerror_r that returns `int'. 8725 # has a strerror_r that returns `int'.
8726 # This test should segfault on the DEC system. 8726 # This test should segfault on the DEC system.
8727 if test "$cross_compiling" = yes; then 8727 if test "$cross_compiling" = yes; then
8728 : 8728 :
8729else 8729else
8730 cat >conftest.$ac_ext <<_ACEOF 8730 cat >conftest.$ac_ext <<_ACEOF
8731/* confdefs.h. */ 8731/* confdefs.h. */
8732_ACEOF 8732_ACEOF
8733cat confdefs.h >>conftest.$ac_ext 8733cat confdefs.h >>conftest.$ac_ext
8734cat >>conftest.$ac_ext <<_ACEOF 8734cat >>conftest.$ac_ext <<_ACEOF
8735/* end confdefs.h. */ 8735/* end confdefs.h. */
8736$ac_includes_default 8736$ac_includes_default
8737 extern char *strerror_r (); 8737 extern char *strerror_r ();
8738int 8738int
8739main () 8739main ()
8740{ 8740{
8741char buf[100]; 8741char buf[100];
8742 char x = *strerror_r (0, buf, sizeof buf); 8742 char x = *strerror_r (0, buf, sizeof buf);
8743 return ! isalpha (x); 8743 return ! isalpha (x);
8744 ; 8744 ;
8745 return 0; 8745 return 0;
8746} 8746}
8747_ACEOF 8747_ACEOF
8748rm -f conftest$ac_exeext 8748rm -f conftest$ac_exeext
8749if { (ac_try="$ac_link" 8749if { (ac_try="$ac_link"
8750case "(($ac_try" in 8750case "(($ac_try" in
8751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752 *) ac_try_echo=$ac_try;; 8752 *) ac_try_echo=$ac_try;;
8753esac 8753esac
8754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755 (eval "$ac_link") 2>&5 8755 (eval "$ac_link") 2>&5
8756 ac_status=$? 8756 ac_status=$?
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8759 { (case "(($ac_try" in 8759 { (case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;; 8761 *) ac_try_echo=$ac_try;;
8762esac 8762esac
8763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764 (eval "$ac_try") 2>&5 8764 (eval "$ac_try") 2>&5
8765 ac_status=$? 8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then 8767 (exit $ac_status); }; }; then
8768 ac_cv_func_strerror_r_char_p=yes 8768 ac_cv_func_strerror_r_char_p=yes
8769else 8769else
8770 echo "$as_me: program exited with status $ac_status" >&5 8770 echo "$as_me: program exited with status $ac_status" >&5
8771echo "$as_me: failed program was:" >&5 8771echo "$as_me: failed program was:" >&5
8772sed 's/^/| /' conftest.$ac_ext >&5 8772sed 's/^/| /' conftest.$ac_ext >&5
8773 8773
8774fi 8774fi
8775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8776fi 8776fi
8777 8777
8778 8778
8779 fi 8779 fi
8780 8780
8781fi 8781fi
8782{ echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5 8782{ echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
8783echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; } 8783echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
8784if test $ac_cv_func_strerror_r_char_p = yes; then 8784if test $ac_cv_func_strerror_r_char_p = yes; then
8785 8785
8786cat >>confdefs.h <<\_ACEOF 8786cat >>confdefs.h <<\_ACEOF
8787#define STRERROR_R_CHAR_P 1 8787#define STRERROR_R_CHAR_P 1
8788_ACEOF 8788_ACEOF
8789 8789
8790fi 8790fi
8791 8791
 8792{ echo "$as_me:$LINENO: checking for pid_t" >&5
 8793echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
 8794if test "${ac_cv_type_pid_t+set}" = set; then
 8795 echo $ECHO_N "(cached) $ECHO_C" >&6
 8796else
 8797 cat >conftest.$ac_ext <<_ACEOF
 8798/* confdefs.h. */
 8799_ACEOF
 8800cat confdefs.h >>conftest.$ac_ext
 8801cat >>conftest.$ac_ext <<_ACEOF
 8802/* end confdefs.h. */
 8803$ac_includes_default
 8804typedef pid_t ac__type_new_;
 8805int
 8806main ()
 8807{
 8808if ((ac__type_new_ *) 0)
 8809 return 0;
 8810if (sizeof (ac__type_new_))
 8811 return 0;
 8812 ;
 8813 return 0;
 8814}
 8815_ACEOF
 8816rm -f conftest.$ac_objext
 8817if { (ac_try="$ac_compile"
 8818case "(($ac_try" in
 8819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 8820 *) ac_try_echo=$ac_try;;
 8821esac
 8822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 8823 (eval "$ac_compile") 2>conftest.er1
 8824 ac_status=$?
 8825 grep -v '^ *+' conftest.er1 >conftest.err
 8826 rm -f conftest.er1
 8827 cat conftest.err >&5
 8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8829 (exit $ac_status); } && {
 8830 test -z "$ac_c_werror_flag" ||
 8831 test ! -s conftest.err
 8832 } && test -s conftest.$ac_objext; then
 8833 ac_cv_type_pid_t=yes
 8834else
 8835 echo "$as_me: failed program was:" >&5
 8836sed 's/^/| /' conftest.$ac_ext >&5
 8837
 8838 ac_cv_type_pid_t=no
 8839fi
 8840
 8841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 8842fi
 8843{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 8844echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
 8845if test $ac_cv_type_pid_t = yes; then
 8846 :
 8847else
 8848
 8849cat >>confdefs.h <<_ACEOF
 8850#define pid_t int
 8851_ACEOF
 8852
 8853fi
 8854
 8855
 8856for ac_header in vfork.h
 8857do
 8858as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 8859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 8860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
 8861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 8862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 8863 echo $ECHO_N "(cached) $ECHO_C" >&6
 8864fi
 8865ac_res=`eval echo '${'$as_ac_Header'}'`
 8866 { echo "$as_me:$LINENO: result: $ac_res" >&5
 8867echo "${ECHO_T}$ac_res" >&6; }
 8868else
 8869 # Is the header compilable?
 8870{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 8871echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 8872cat >conftest.$ac_ext <<_ACEOF
 8873/* confdefs.h. */
 8874_ACEOF
 8875cat confdefs.h >>conftest.$ac_ext
 8876cat >>conftest.$ac_ext <<_ACEOF
 8877/* end confdefs.h. */
 8878$ac_includes_default
 8879#include <$ac_header>
 8880_ACEOF
 8881rm -f conftest.$ac_objext
 8882if { (ac_try="$ac_compile"
 8883case "(($ac_try" in
 8884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 8885 *) ac_try_echo=$ac_try;;
 8886esac
 8887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 8888 (eval "$ac_compile") 2>conftest.er1
 8889 ac_status=$?
 8890 grep -v '^ *+' conftest.er1 >conftest.err
 8891 rm -f conftest.er1
 8892 cat conftest.err >&5
 8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8894 (exit $ac_status); } && {
 8895 test -z "$ac_c_werror_flag" ||
 8896 test ! -s conftest.err
 8897 } && test -s conftest.$ac_objext; then
 8898 ac_header_compiler=yes
 8899else
 8900 echo "$as_me: failed program was:" >&5
 8901sed 's/^/| /' conftest.$ac_ext >&5
 8902
 8903 ac_header_compiler=no
 8904fi
 8905
 8906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 8907{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 8908echo "${ECHO_T}$ac_header_compiler" >&6; }
 8909
 8910# Is the header present?
 8911{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 8912echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 8913cat >conftest.$ac_ext <<_ACEOF
 8914/* confdefs.h. */
 8915_ACEOF
 8916cat confdefs.h >>conftest.$ac_ext
 8917cat >>conftest.$ac_ext <<_ACEOF
 8918/* end confdefs.h. */
 8919#include <$ac_header>
 8920_ACEOF
 8921if { (ac_try="$ac_cpp conftest.$ac_ext"
 8922case "(($ac_try" in
 8923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 8924 *) ac_try_echo=$ac_try;;
 8925esac
 8926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 8927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 8928 ac_status=$?
 8929 grep -v '^ *+' conftest.er1 >conftest.err
 8930 rm -f conftest.er1
 8931 cat conftest.err >&5
 8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8933 (exit $ac_status); } >/dev/null && {
 8934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 8935 test ! -s conftest.err
 8936 }; then
 8937 ac_header_preproc=yes
 8938else
 8939 echo "$as_me: failed program was:" >&5
 8940sed 's/^/| /' conftest.$ac_ext >&5
 8941
 8942 ac_header_preproc=no
 8943fi
 8944
 8945rm -f conftest.err conftest.$ac_ext
 8946{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 8947echo "${ECHO_T}$ac_header_preproc" >&6; }
 8948
 8949# So? What about this header?
 8950case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 8951 yes:no: )
 8952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 8953echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 8954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 8955echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 8956 ac_header_preproc=yes
 8957 ;;
 8958 no:yes:* )
 8959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 8960echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 8961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 8962echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 8963 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 8964echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 8965 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
 8966echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
 8967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 8968echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 8969 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 8970echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 8971 ( cat <<\_ASBOX
 8972## ------------------------------- ##
 8973## Report this to grant@NetBSD.org ##
 8974## ------------------------------- ##
 8975_ASBOX
 8976 ) | sed "s/^/$as_me: WARNING: /" >&2
 8977 ;;
 8978esac
 8979{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 8980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 8981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 8982 echo $ECHO_N "(cached) $ECHO_C" >&6
 8983else
 8984 eval "$as_ac_Header=\$ac_header_preproc"
 8985fi
 8986ac_res=`eval echo '${'$as_ac_Header'}'`
 8987 { echo "$as_me:$LINENO: result: $ac_res" >&5
 8988echo "${ECHO_T}$ac_res" >&6; }
 8989
 8990fi
 8991if test `eval echo '${'$as_ac_Header'}'` = yes; then
 8992 cat >>confdefs.h <<_ACEOF
 8993#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 8994_ACEOF
 8995
 8996fi
 8997
 8998done
 8999
 9000
 9001
 9002for ac_func in fork vfork
 9003do
 9004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 9005{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 9006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 9007if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 9008 echo $ECHO_N "(cached) $ECHO_C" >&6
 9009else
 9010 cat >conftest.$ac_ext <<_ACEOF
 9011/* confdefs.h. */
 9012_ACEOF
 9013cat confdefs.h >>conftest.$ac_ext
 9014cat >>conftest.$ac_ext <<_ACEOF
 9015/* end confdefs.h. */
 9016/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 9017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
 9018#define $ac_func innocuous_$ac_func
 9019
 9020/* System header to define __stub macros and hopefully few prototypes,
 9021 which can conflict with char $ac_func (); below.
 9022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 9023 <limits.h> exists even on freestanding compilers. */
 9024
 9025#ifdef __STDC__
 9026# include <limits.h>
 9027#else
 9028# include <assert.h>
 9029#endif
 9030
 9031#undef $ac_func
 9032
 9033/* Override any GCC internal prototype to avoid an error.
 9034 Use char because int might match the return type of a GCC
 9035 builtin and then its argument prototype would still apply. */
 9036#ifdef __cplusplus
 9037extern "C"
 9038#endif
 9039char $ac_func ();
 9040/* The GNU C library defines this for functions which it implements
 9041 to always fail with ENOSYS. Some functions are actually named
 9042 something starting with __ and the normal name is an alias. */
 9043#if defined __stub_$ac_func || defined __stub___$ac_func
 9044choke me
 9045#endif
 9046
 9047int
 9048main ()
 9049{
 9050return $ac_func ();
 9051 ;
 9052 return 0;
 9053}
 9054_ACEOF
 9055rm -f conftest.$ac_objext conftest$ac_exeext
 9056if { (ac_try="$ac_link"
 9057case "(($ac_try" in
 9058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 9059 *) ac_try_echo=$ac_try;;
 9060esac
 9061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 9062 (eval "$ac_link") 2>conftest.er1
 9063 ac_status=$?
 9064 grep -v '^ *+' conftest.er1 >conftest.err
 9065 rm -f conftest.er1
 9066 cat conftest.err >&5
 9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
 9068 (exit $ac_status); } && {
 9069 test -z "$ac_c_werror_flag" ||
 9070 test ! -s conftest.err
 9071 } && test -s conftest$ac_exeext &&
 9072 $as_test_x conftest$ac_exeext; then
 9073 eval "$as_ac_var=yes"
 9074else
 9075 echo "$as_me: failed program was:" >&5
 9076sed 's/^/| /' conftest.$ac_ext >&5
 9077
 9078 eval "$as_ac_var=no"
 9079fi
 9080
 9081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 9082 conftest$ac_exeext conftest.$ac_ext
 9083fi
 9084ac_res=`eval echo '${'$as_ac_var'}'`
 9085 { echo "$as_me:$LINENO: result: $ac_res" >&5
 9086echo "${ECHO_T}$ac_res" >&6; }
 9087if test `eval echo '${'$as_ac_var'}'` = yes; then
 9088 cat >>confdefs.h <<_ACEOF
 9089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 9090_ACEOF
 9091
 9092fi
 9093done
 9094
 9095if test "x$ac_cv_func_fork" = xyes; then
 9096 { echo "$as_me:$LINENO: checking for working fork" >&5
 9097echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
 9098if test "${ac_cv_func_fork_works+set}" = set; then
 9099 echo $ECHO_N "(cached) $ECHO_C" >&6
 9100else
 9101 if test "$cross_compiling" = yes; then
 9102 ac_cv_func_fork_works=cross
 9103else
 9104 cat >conftest.$ac_ext <<_ACEOF
 9105/* confdefs.h. */
 9106_ACEOF
 9107cat confdefs.h >>conftest.$ac_ext
 9108cat >>conftest.$ac_ext <<_ACEOF
 9109/* end confdefs.h. */
 9110$ac_includes_default
 9111int
 9112main ()
 9113{
 9114
 9115 /* By Ruediger Kuhlmann. */
 9116 return fork () < 0;
 9117
 9118 ;
 9119 return 0;
 9120}
 9121_ACEOF
 9122rm -f conftest$ac_exeext
 9123if { (ac_try="$ac_link"
 9124case "(($ac_try" in
 9125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 9126 *) ac_try_echo=$ac_try;;
 9127esac
 9128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 9129 (eval "$ac_link") 2>&5
 9130 ac_status=$?
 9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
 9132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 9133 { (case "(($ac_try" in
 9134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 9135 *) ac_try_echo=$ac_try;;
 9136esac
 9137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 9138 (eval "$ac_try") 2>&5
 9139 ac_status=$?
 9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
 9141 (exit $ac_status); }; }; then
 9142 ac_cv_func_fork_works=yes
 9143else
 9144 echo "$as_me: program exited with status $ac_status" >&5
 9145echo "$as_me: failed program was:" >&5
 9146sed 's/^/| /' conftest.$ac_ext >&5
 9147
 9148( exit $ac_status )
 9149ac_cv_func_fork_works=no
 9150fi
 9151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 9152fi
 9153
 9154
 9155fi
 9156{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
 9157echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
 9158
 9159else
 9160 ac_cv_func_fork_works=$ac_cv_func_fork
 9161fi
 9162if test "x$ac_cv_func_fork_works" = xcross; then
 9163 case $host in
 9164 *-*-amigaos* | *-*-msdosdjgpp*)
 9165 # Override, as these systems have only a dummy fork() stub
 9166 ac_cv_func_fork_works=no
 9167 ;;
 9168 *)
 9169 ac_cv_func_fork_works=yes
 9170 ;;
 9171 esac
 9172 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
 9173echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
 9174fi
 9175ac_cv_func_vfork_works=$ac_cv_func_vfork
 9176if test "x$ac_cv_func_vfork" = xyes; then
 9177 { echo "$as_me:$LINENO: checking for working vfork" >&5
 9178echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
 9179if test "${ac_cv_func_vfork_works+set}" = set; then
 9180 echo $ECHO_N "(cached) $ECHO_C" >&6
 9181else
 9182 if test "$cross_compiling" = yes; then
 9183 ac_cv_func_vfork_works=cross
 9184else
 9185 cat >conftest.$ac_ext <<_ACEOF
 9186/* confdefs.h. */
 9187_ACEOF
 9188cat confdefs.h >>conftest.$ac_ext
 9189cat >>conftest.$ac_ext <<_ACEOF
 9190/* end confdefs.h. */
 9191/* Thanks to Paul Eggert for this test. */
 9192$ac_includes_default
 9193#include <sys/wait.h>
 9194#ifdef HAVE_VFORK_H
 9195# include <vfork.h>
 9196#endif
 9197/* On some sparc systems, changes by the child to local and incoming
 9198 argument registers are propagated back to the parent. The compiler
 9199 is told about this with #include <vfork.h>, but some compilers
 9200 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
 9201 static variable whose address is put into a register that is
 9202 clobbered by the vfork. */
 9203static void
 9204#ifdef __cplusplus
 9205sparc_address_test (int arg)
 9206# else
 9207sparc_address_test (arg) int arg;
 9208#endif
 9209{
 9210 static pid_t child;
 9211 if (!child) {
 9212 child = vfork ();
 9213 if (child < 0) {
 9214 perror ("vfork");
 9215 _exit(2);
 9216 }
 9217 if (!child) {
 9218 arg = getpid();
 9219 write(-1, "", 0);
 9220 _exit (arg);
 9221 }
 9222 }
 9223}
 9224
 9225int
 9226main ()
 9227{
 9228 pid_t parent = getpid ();
 9229 pid_t child;
 9230
 9231 sparc_address_test (0);
 9232
 9233 child = vfork ();
 9234
 9235 if (child == 0) {
 9236 /* Here is another test for sparc vfork register problems. This
 9237 test uses lots of local variables, at least as many local
 9238 variables as main has allocated so far including compiler
 9239 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
 9240 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
 9241 reuse the register of parent for one of the local variables,
 9242 since it will think that parent can't possibly be used any more
 9243 in this routine. Assigning to the local variable will thus
 9244 munge parent in the parent process. */
 9245 pid_t
 9246 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
 9247 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
 9248 /* Convince the compiler that p..p7 are live; otherwise, it might
 9249 use the same hardware register for all 8 local variables. */
 9250 if (p != p1 || p != p2 || p != p3 || p != p4
 9251 || p != p5 || p != p6 || p != p7)
 9252 _exit(1);
 9253
 9254 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
 9255 from child file descriptors. If the child closes a descriptor
 9256 before it execs or exits, this munges the parent's descriptor
 9257 as well. Test for this by closing stdout in the child. */
 9258 _exit(close(fileno(stdout)) != 0);
 9259 } else {
 9260 int status;
 9261 struct stat st;
 9262
 9263 while (wait(&status) != child)
 9264 ;
 9265 return (
 9266 /* Was there some problem with vforking? */
 9267 child < 0
 9268
 9269 /* Did the child fail? (This shouldn't happen.) */
 9270 || status
 9271
 9272 /* Did the vfork/compiler bug occur? */
 9273 || parent != getpid()
 9274
 9275 /* Did the file descriptor bug occur? */
 9276 || fstat(fileno(stdout), &st) != 0
 9277 );
 9278 }
 9279}
 9280_ACEOF
 9281rm -f conftest$ac_exeext
 9282if { (ac_try="$ac_link"
 9283case "(($ac_try" in
 9284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 9285 *) ac_try_echo=$ac_try;;
 9286esac
 9287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 9288 (eval "$ac_link") 2>&5
 9289 ac_status=$?
 9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
 9291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 9292 { (case "(($ac_try" in
 9293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 9294 *) ac_try_echo=$ac_try;;
 9295esac
 9296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 9297 (eval "$ac_try") 2>&5
 9298 ac_status=$?
 9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
 9300 (exit $ac_status); }; }; then
 9301 ac_cv_func_vfork_works=yes
 9302else
 9303 echo "$as_me: program exited with status $ac_status" >&5
 9304echo "$as_me: failed program was:" >&5
 9305sed 's/^/| /' conftest.$ac_ext >&5
 9306
 9307( exit $ac_status )
 9308ac_cv_func_vfork_works=no
 9309fi
 9310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 9311fi
 9312
 9313
 9314fi
 9315{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
 9316echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
 9317
 9318fi;
 9319if test "x$ac_cv_func_fork_works" = xcross; then
 9320 ac_cv_func_vfork_works=$ac_cv_func_vfork
 9321 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
 9322echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
 9323fi
 9324
 9325if test "x$ac_cv_func_vfork_works" = xyes; then
 9326
 9327cat >>confdefs.h <<\_ACEOF
 9328#define HAVE_WORKING_VFORK 1
 9329_ACEOF
 9330
 9331else
 9332
 9333cat >>confdefs.h <<\_ACEOF
 9334#define vfork fork
 9335_ACEOF
 9336
 9337fi
 9338if test "x$ac_cv_func_fork_works" = xyes; then
 9339
 9340cat >>confdefs.h <<\_ACEOF
 9341#define HAVE_WORKING_FORK 1
 9342_ACEOF
 9343
 9344fi
 9345
8792 9346
8793for ac_func in vprintf 9347for ac_func in vprintf
8794do 9348do
8795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9349as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8796{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9350{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9351echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8798if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9352if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6 9353 echo $ECHO_N "(cached) $ECHO_C" >&6
8800else 9354else
8801 cat >conftest.$ac_ext <<_ACEOF 9355 cat >conftest.$ac_ext <<_ACEOF
8802/* confdefs.h. */ 9356/* confdefs.h. */
8803_ACEOF 9357_ACEOF
8804cat confdefs.h >>conftest.$ac_ext 9358cat confdefs.h >>conftest.$ac_ext
8805cat >>conftest.$ac_ext <<_ACEOF 9359cat >>conftest.$ac_ext <<_ACEOF
8806/* end confdefs.h. */ 9360/* end confdefs.h. */
8807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9361/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8808 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8809#define $ac_func innocuous_$ac_func 9363#define $ac_func innocuous_$ac_func
8810 9364
8811/* System header to define __stub macros and hopefully few prototypes, 9365/* System header to define __stub macros and hopefully few prototypes,
8812 which can conflict with char $ac_func (); below. 9366 which can conflict with char $ac_func (); below.
8813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8814 <limits.h> exists even on freestanding compilers. */ 9368 <limits.h> exists even on freestanding compilers. */
8815 9369
8816#ifdef __STDC__ 9370#ifdef __STDC__
8817# include <limits.h> 9371# include <limits.h>
8818#else 9372#else
8819# include <assert.h> 9373# include <assert.h>
8820#endif 9374#endif
8821 9375
8822#undef $ac_func 9376#undef $ac_func
8823 9377
8824/* Override any GCC internal prototype to avoid an error. 9378/* Override any GCC internal prototype to avoid an error.
8825 Use char because int might match the return type of a GCC 9379 Use char because int might match the return type of a GCC
8826 builtin and then its argument prototype would still apply. */ 9380 builtin and then its argument prototype would still apply. */
8827#ifdef __cplusplus 9381#ifdef __cplusplus
8828extern "C" 9382extern "C"
8829#endif 9383#endif
8830char $ac_func (); 9384char $ac_func ();
8831/* The GNU C library defines this for functions which it implements 9385/* The GNU C library defines this for functions which it implements
8832 to always fail with ENOSYS. Some functions are actually named 9386 to always fail with ENOSYS. Some functions are actually named
8833 something starting with __ and the normal name is an alias. */ 9387 something starting with __ and the normal name is an alias. */
8834#if defined __stub_$ac_func || defined __stub___$ac_func 9388#if defined __stub_$ac_func || defined __stub___$ac_func
8835choke me 9389choke me
8836#endif 9390#endif
8837 9391
8838int 9392int
8839main () 9393main ()
8840{ 9394{
8841return $ac_func (); 9395return $ac_func ();
8842 ; 9396 ;
8843 return 0; 9397 return 0;
8844} 9398}
8845_ACEOF 9399_ACEOF
8846rm -f conftest.$ac_objext conftest$ac_exeext 9400rm -f conftest.$ac_objext conftest$ac_exeext
8847if { (ac_try="$ac_link" 9401if { (ac_try="$ac_link"
8848case "(($ac_try" in 9402case "(($ac_try" in
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;; 9404 *) ac_try_echo=$ac_try;;
8851esac 9405esac
8852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853 (eval "$ac_link") 2>conftest.er1 9407 (eval "$ac_link") 2>conftest.er1
8854 ac_status=$? 9408 ac_status=$?
8855 grep -v '^ *+' conftest.er1 >conftest.err 9409 grep -v '^ *+' conftest.er1 >conftest.err
8856 rm -f conftest.er1 9410 rm -f conftest.er1
8857 cat conftest.err >&5 9411 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } && { 9413 (exit $ac_status); } && {
8860 test -z "$ac_c_werror_flag" || 9414 test -z "$ac_c_werror_flag" ||
8861 test ! -s conftest.err 9415 test ! -s conftest.err
8862 } && test -s conftest$ac_exeext && 9416 } && test -s conftest$ac_exeext &&
8863 $as_test_x conftest$ac_exeext; then 9417 $as_test_x conftest$ac_exeext; then
8864 eval "$as_ac_var=yes" 9418 eval "$as_ac_var=yes"
8865else 9419else
8866 echo "$as_me: failed program was:" >&5 9420 echo "$as_me: failed program was:" >&5
8867sed 's/^/| /' conftest.$ac_ext >&5 9421sed 's/^/| /' conftest.$ac_ext >&5
8868 9422
8869 eval "$as_ac_var=no" 9423 eval "$as_ac_var=no"
8870fi 9424fi
8871 9425
8872rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9426rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8873 conftest$ac_exeext conftest.$ac_ext 9427 conftest$ac_exeext conftest.$ac_ext
8874fi 9428fi
8875ac_res=`eval echo '${'$as_ac_var'}'` 9429ac_res=`eval echo '${'$as_ac_var'}'`
8876 { echo "$as_me:$LINENO: result: $ac_res" >&5 9430 { echo "$as_me:$LINENO: result: $ac_res" >&5
8877echo "${ECHO_T}$ac_res" >&6; } 9431echo "${ECHO_T}$ac_res" >&6; }
8878if test `eval echo '${'$as_ac_var'}'` = yes; then 9432if test `eval echo '${'$as_ac_var'}'` = yes; then
8879 cat >>confdefs.h <<_ACEOF 9433 cat >>confdefs.h <<_ACEOF
8880#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9434#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8881_ACEOF 9435_ACEOF
8882 9436
8883{ echo "$as_me:$LINENO: checking for _doprnt" >&5 9437{ echo "$as_me:$LINENO: checking for _doprnt" >&5
8884echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } 9438echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
8885if test "${ac_cv_func__doprnt+set}" = set; then 9439if test "${ac_cv_func__doprnt+set}" = set; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6 9440 echo $ECHO_N "(cached) $ECHO_C" >&6
8887else 9441else
8888 cat >conftest.$ac_ext <<_ACEOF 9442 cat >conftest.$ac_ext <<_ACEOF
8889/* confdefs.h. */ 9443/* confdefs.h. */
8890_ACEOF 9444_ACEOF
8891cat confdefs.h >>conftest.$ac_ext 9445cat confdefs.h >>conftest.$ac_ext
8892cat >>conftest.$ac_ext <<_ACEOF 9446cat >>conftest.$ac_ext <<_ACEOF
8893/* end confdefs.h. */ 9447/* end confdefs.h. */
8894/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 9448/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8895 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8896#define _doprnt innocuous__doprnt 9450#define _doprnt innocuous__doprnt
8897 9451
8898/* System header to define __stub macros and hopefully few prototypes, 9452/* System header to define __stub macros and hopefully few prototypes,
8899 which can conflict with char _doprnt (); below. 9453 which can conflict with char _doprnt (); below.
8900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8901 <limits.h> exists even on freestanding compilers. */ 9455 <limits.h> exists even on freestanding compilers. */
8902 9456
8903#ifdef __STDC__ 9457#ifdef __STDC__
8904# include <limits.h> 9458# include <limits.h>
8905#else 9459#else
8906# include <assert.h> 9460# include <assert.h>
8907#endif 9461#endif
8908 9462
8909#undef _doprnt 9463#undef _doprnt
8910 9464
8911/* Override any GCC internal prototype to avoid an error. 9465/* Override any GCC internal prototype to avoid an error.
8912 Use char because int might match the return type of a GCC 9466 Use char because int might match the return type of a GCC
8913 builtin and then its argument prototype would still apply. */ 9467 builtin and then its argument prototype would still apply. */
8914#ifdef __cplusplus 9468#ifdef __cplusplus
8915extern "C" 9469extern "C"
8916#endif 9470#endif
8917char _doprnt (); 9471char _doprnt ();
8918/* The GNU C library defines this for functions which it implements 9472/* The GNU C library defines this for functions which it implements
8919 to always fail with ENOSYS. Some functions are actually named 9473 to always fail with ENOSYS. Some functions are actually named
8920 something starting with __ and the normal name is an alias. */ 9474 something starting with __ and the normal name is an alias. */
8921#if defined __stub__doprnt || defined __stub____doprnt 9475#if defined __stub__doprnt || defined __stub____doprnt
8922choke me 9476choke me
8923#endif 9477#endif
8924 9478
8925int 9479int
8926main () 9480main ()
8927{ 9481{
8928return _doprnt (); 9482return _doprnt ();
8929 ; 9483 ;
8930 return 0; 9484 return 0;
8931} 9485}
8932_ACEOF 9486_ACEOF
8933rm -f conftest.$ac_objext conftest$ac_exeext 9487rm -f conftest.$ac_objext conftest$ac_exeext
8934if { (ac_try="$ac_link" 9488if { (ac_try="$ac_link"
8935case "(($ac_try" in 9489case "(($ac_try" in
8936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937 *) ac_try_echo=$ac_try;; 9491 *) ac_try_echo=$ac_try;;
8938esac 9492esac
8939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8940 (eval "$ac_link") 2>conftest.er1 9494 (eval "$ac_link") 2>conftest.er1
8941 ac_status=$? 9495 ac_status=$?
8942 grep -v '^ *+' conftest.er1 >conftest.err 9496 grep -v '^ *+' conftest.er1 >conftest.err
8943 rm -f conftest.er1 9497 rm -f conftest.er1
8944 cat conftest.err >&5 9498 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } && { 9500 (exit $ac_status); } && {
8947 test -z "$ac_c_werror_flag" || 9501 test -z "$ac_c_werror_flag" ||
8948 test ! -s conftest.err 9502 test ! -s conftest.err
8949 } && test -s conftest$ac_exeext && 9503 } && test -s conftest$ac_exeext &&
8950 $as_test_x conftest$ac_exeext; then 9504 $as_test_x conftest$ac_exeext; then
8951 ac_cv_func__doprnt=yes 9505 ac_cv_func__doprnt=yes
8952else 9506else
8953 echo "$as_me: failed program was:" >&5 9507 echo "$as_me: failed program was:" >&5
8954sed 's/^/| /' conftest.$ac_ext >&5 9508sed 's/^/| /' conftest.$ac_ext >&5
8955 9509
8956 ac_cv_func__doprnt=no 9510 ac_cv_func__doprnt=no
8957fi 9511fi
8958 9512
8959rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9513rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8960 conftest$ac_exeext conftest.$ac_ext 9514 conftest$ac_exeext conftest.$ac_ext
8961fi 9515fi
8962{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 9516{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8963echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } 9517echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
8964if test $ac_cv_func__doprnt = yes; then 9518if test $ac_cv_func__doprnt = yes; then
8965 9519
8966cat >>confdefs.h <<\_ACEOF 9520cat >>confdefs.h <<\_ACEOF
8967#define HAVE_DOPRNT 1 9521#define HAVE_DOPRNT 1
8968_ACEOF 9522_ACEOF
8969 9523
8970fi 9524fi
8971 9525
8972fi 9526fi
8973done 9527done
8974 9528
8975 9529
8976 9530
8977 9531
8978 9532
8979 9533
8980 9534
8981 9535
8982 9536
8983 9537
8984 9538
8985 9539
8986 9540
8987 9541
8988 9542
8989 9543
8990 9544
8991 9545
8992 9546
8993 9547
8994 9548
8995 9549
8996 9550
8997 9551
8998 9552
8999 9553
9000 9554
9001 9555
9002 9556
9003 9557
9004 9558
9005 9559
9006 9560
9007for ac_func in asprintf err fgetln fnmatch fparseln getenv isblank \ 9561for ac_func in asprintf err fgetln fnmatch fparseln getenv isblank \
9008 lchflags lchmod lchown lutimes mkdtemp mkstemp setenv setgroupent \ 9562 lchflags lchmod lchown lutimes mkdtemp mkstemp setenv setgroupent \
9009 setpassent setprogname snprintf statvfs strdup strerror strlcat \ 9563 setpassent setprogname snprintf statvfs strdup strerror strlcat \
9010 strlcpy strmode strsep strtoll unsetenv usleep utimes warn 9564 strlcpy strmode strsep strtoll unsetenv usleep utimes warn
9011 9565
9012do 9566do
9013as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9567as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9014{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9568{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9015echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9569echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9016if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9570if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6 9571 echo $ECHO_N "(cached) $ECHO_C" >&6
9018else 9572else
9019 cat >conftest.$ac_ext <<_ACEOF 9573 cat >conftest.$ac_ext <<_ACEOF
9020/* confdefs.h. */ 9574/* confdefs.h. */
9021_ACEOF 9575_ACEOF
9022cat confdefs.h >>conftest.$ac_ext 9576cat confdefs.h >>conftest.$ac_ext
9023cat >>conftest.$ac_ext <<_ACEOF 9577cat >>conftest.$ac_ext <<_ACEOF
9024/* end confdefs.h. */ 9578/* end confdefs.h. */
9025/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9579/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9026 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9027#define $ac_func innocuous_$ac_func 9581#define $ac_func innocuous_$ac_func
9028 9582
9029/* System header to define __stub macros and hopefully few prototypes, 9583/* System header to define __stub macros and hopefully few prototypes,
9030 which can conflict with char $ac_func (); below. 9584 which can conflict with char $ac_func (); below.
9031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9032 <limits.h> exists even on freestanding compilers. */ 9586 <limits.h> exists even on freestanding compilers. */
9033 9587
9034#ifdef __STDC__ 9588#ifdef __STDC__
9035# include <limits.h> 9589# include <limits.h>
9036#else 9590#else
9037# include <assert.h> 9591# include <assert.h>
9038#endif 9592#endif
9039 9593
9040#undef $ac_func 9594#undef $ac_func
9041 9595
9042/* Override any GCC internal prototype to avoid an error. 9596/* Override any GCC internal prototype to avoid an error.
9043 Use char because int might match the return type of a GCC 9597 Use char because int might match the return type of a GCC
9044 builtin and then its argument prototype would still apply. */ 9598 builtin and then its argument prototype would still apply. */
9045#ifdef __cplusplus 9599#ifdef __cplusplus
9046extern "C" 9600extern "C"
9047#endif 9601#endif
9048char $ac_func (); 9602char $ac_func ();
9049/* The GNU C library defines this for functions which it implements 9603/* The GNU C library defines this for functions which it implements
9050 to always fail with ENOSYS. Some functions are actually named 9604 to always fail with ENOSYS. Some functions are actually named
9051 something starting with __ and the normal name is an alias. */ 9605 something starting with __ and the normal name is an alias. */
9052#if defined __stub_$ac_func || defined __stub___$ac_func 9606#if defined __stub_$ac_func || defined __stub___$ac_func
9053choke me 9607choke me
9054#endif 9608#endif
9055 9609
9056int 9610int
9057main () 9611main ()
9058{ 9612{
9059return $ac_func (); 9613return $ac_func ();
9060 ; 9614 ;
9061 return 0; 9615 return 0;
9062} 9616}
9063_ACEOF 9617_ACEOF
9064rm -f conftest.$ac_objext conftest$ac_exeext 9618rm -f conftest.$ac_objext conftest$ac_exeext
9065if { (ac_try="$ac_link" 9619if { (ac_try="$ac_link"
9066case "(($ac_try" in 9620case "(($ac_try" in
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;; 9622 *) ac_try_echo=$ac_try;;
9069esac 9623esac
9070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071 (eval "$ac_link") 2>conftest.er1 9625 (eval "$ac_link") 2>conftest.er1
9072 ac_status=$? 9626 ac_status=$?
9073 grep -v '^ *+' conftest.er1 >conftest.err 9627 grep -v '^ *+' conftest.er1 >conftest.err
9074 rm -f conftest.er1 9628 rm -f conftest.er1
9075 cat conftest.err >&5 9629 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } && { 9631 (exit $ac_status); } && {
9078 test -z "$ac_c_werror_flag" || 9632 test -z "$ac_c_werror_flag" ||
9079 test ! -s conftest.err 9633 test ! -s conftest.err
9080 } && test -s conftest$ac_exeext && 9634 } && test -s conftest$ac_exeext &&
9081 $as_test_x conftest$ac_exeext; then 9635 $as_test_x conftest$ac_exeext; then
9082 eval "$as_ac_var=yes" 9636 eval "$as_ac_var=yes"
9083else 9637else
9084 echo "$as_me: failed program was:" >&5 9638 echo "$as_me: failed program was:" >&5
9085sed 's/^/| /' conftest.$ac_ext >&5 9639sed 's/^/| /' conftest.$ac_ext >&5
9086 9640
9087 eval "$as_ac_var=no" 9641 eval "$as_ac_var=no"
9088fi 9642fi
9089 9643
9090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9644rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9091 conftest$ac_exeext conftest.$ac_ext 9645 conftest$ac_exeext conftest.$ac_ext
9092fi 9646fi
9093ac_res=`eval echo '${'$as_ac_var'}'` 9647ac_res=`eval echo '${'$as_ac_var'}'`
9094 { echo "$as_me:$LINENO: result: $ac_res" >&5 9648 { echo "$as_me:$LINENO: result: $ac_res" >&5
9095echo "${ECHO_T}$ac_res" >&6; } 9649echo "${ECHO_T}$ac_res" >&6; }
9096if test `eval echo '${'$as_ac_var'}'` = yes; then 9650if test `eval echo '${'$as_ac_var'}'` = yes; then
9097 cat >>confdefs.h <<_ACEOF 9651 cat >>confdefs.h <<_ACEOF
9098#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9099_ACEOF 9653_ACEOF
9100 9654
9101else 9655else
9102 case " $LIBOBJS " in 9656 case " $LIBOBJS " in
9103 *" $ac_func.$ac_objext "* ) ;; 9657 *" $ac_func.$ac_objext "* ) ;;
9104 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 9658 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9105 ;; 9659 ;;
9106esac 9660esac
9107 9661
9108fi 9662fi
9109done 9663done
9110 9664
9111 9665
9112 9666
9113 9667
9114 9668
9115 9669
9116for ac_func in getenv setenv unsetenv 9670for ac_func in getenv setenv unsetenv
9117do 9671do
9118as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9672as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9119{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9673{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9120echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9674echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9121if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9675if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6 9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9123else 9677else
9124 cat >conftest.$ac_ext <<_ACEOF 9678 cat >conftest.$ac_ext <<_ACEOF
9125/* confdefs.h. */ 9679/* confdefs.h. */
9126_ACEOF 9680_ACEOF
9127cat confdefs.h >>conftest.$ac_ext 9681cat confdefs.h >>conftest.$ac_ext
9128cat >>conftest.$ac_ext <<_ACEOF 9682cat >>conftest.$ac_ext <<_ACEOF
9129/* end confdefs.h. */ 9683/* end confdefs.h. */
9130/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9684/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9131 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9132#define $ac_func innocuous_$ac_func 9686#define $ac_func innocuous_$ac_func
9133 9687
9134/* System header to define __stub macros and hopefully few prototypes, 9688/* System header to define __stub macros and hopefully few prototypes,
9135 which can conflict with char $ac_func (); below. 9689 which can conflict with char $ac_func (); below.
9136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9137 <limits.h> exists even on freestanding compilers. */ 9691 <limits.h> exists even on freestanding compilers. */
9138 9692
9139#ifdef __STDC__ 9693#ifdef __STDC__
9140# include <limits.h> 9694# include <limits.h>
9141#else 9695#else
9142# include <assert.h> 9696# include <assert.h>
9143#endif 9697#endif
9144 9698
9145#undef $ac_func 9699#undef $ac_func
9146 9700
9147/* Override any GCC internal prototype to avoid an error. 9701/* Override any GCC internal prototype to avoid an error.
9148 Use char because int might match the return type of a GCC 9702 Use char because int might match the return type of a GCC
9149 builtin and then its argument prototype would still apply. */ 9703 builtin and then its argument prototype would still apply. */
9150#ifdef __cplusplus 9704#ifdef __cplusplus
9151extern "C" 9705extern "C"
9152#endif 9706#endif
9153char $ac_func (); 9707char $ac_func ();
9154/* The GNU C library defines this for functions which it implements 9708/* The GNU C library defines this for functions which it implements
9155 to always fail with ENOSYS. Some functions are actually named 9709 to always fail with ENOSYS. Some functions are actually named
9156 something starting with __ and the normal name is an alias. */ 9710 something starting with __ and the normal name is an alias. */
9157#if defined __stub_$ac_func || defined __stub___$ac_func 9711#if defined __stub_$ac_func || defined __stub___$ac_func
9158choke me 9712choke me
9159#endif 9713#endif
9160 9714
9161int 9715int
9162main () 9716main ()
9163{ 9717{
9164return $ac_func (); 9718return $ac_func ();
9165 ; 9719 ;
9166 return 0; 9720 return 0;
9167} 9721}
9168_ACEOF 9722_ACEOF
9169rm -f conftest.$ac_objext conftest$ac_exeext 9723rm -f conftest.$ac_objext conftest$ac_exeext
9170if { (ac_try="$ac_link" 9724if { (ac_try="$ac_link"
9171case "(($ac_try" in 9725case "(($ac_try" in
9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;; 9727 *) ac_try_echo=$ac_try;;
9174esac 9728esac
9175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176 (eval "$ac_link") 2>conftest.er1 9730 (eval "$ac_link") 2>conftest.er1
9177 ac_status=$? 9731 ac_status=$?
9178 grep -v '^ *+' conftest.er1 >conftest.err 9732 grep -v '^ *+' conftest.er1 >conftest.err
9179 rm -f conftest.er1 9733 rm -f conftest.er1
9180 cat conftest.err >&5 9734 cat conftest.err >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } && { 9736 (exit $ac_status); } && {
9183 test -z "$ac_c_werror_flag" || 9737 test -z "$ac_c_werror_flag" ||
9184 test ! -s conftest.err 9738 test ! -s conftest.err
9185 } && test -s conftest$ac_exeext && 9739 } && test -s conftest$ac_exeext &&
9186 $as_test_x conftest$ac_exeext; then 9740 $as_test_x conftest$ac_exeext; then
9187 eval "$as_ac_var=yes" 9741 eval "$as_ac_var=yes"
9188else 9742else
9189 echo "$as_me: failed program was:" >&5 9743 echo "$as_me: failed program was:" >&5
9190sed 's/^/| /' conftest.$ac_ext >&5 9744sed 's/^/| /' conftest.$ac_ext >&5
9191 9745
9192 eval "$as_ac_var=no" 9746 eval "$as_ac_var=no"
9193fi 9747fi
9194 9748
9195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9196 conftest$ac_exeext conftest.$ac_ext 9750 conftest$ac_exeext conftest.$ac_ext
9197fi 9751fi
9198ac_res=`eval echo '${'$as_ac_var'}'` 9752ac_res=`eval echo '${'$as_ac_var'}'`
9199 { echo "$as_me:$LINENO: result: $ac_res" >&5 9753 { echo "$as_me:$LINENO: result: $ac_res" >&5
9200echo "${ECHO_T}$ac_res" >&6; } 9754echo "${ECHO_T}$ac_res" >&6; }
9201if test `eval echo '${'$as_ac_var'}'` = yes; then 9755if test `eval echo '${'$as_ac_var'}'` = yes; then
9202 cat >>confdefs.h <<_ACEOF 9756 cat >>confdefs.h <<_ACEOF
9203#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9204_ACEOF 9758_ACEOF
9205 : 9759 :
9206else 9760else
9207 9761
9208 case " $LIBOBJS " in 9762 case " $LIBOBJS " in
9209 *" findenv.$ac_objext "* ) ;; 9763 *" findenv.$ac_objext "* ) ;;
9210 *) LIBOBJS="$LIBOBJS findenv.$ac_objext" 9764 *) LIBOBJS="$LIBOBJS findenv.$ac_objext"
9211 ;; 9765 ;;
9212esac 9766esac
9213 9767
9214 break 9768 break
9215 9769
9216fi 9770fi
9217done 9771done
9218 9772
9219 9773
9220 9774
9221 9775
9222for ac_func in mkdtemp mkstemp 9776for ac_func in mkdtemp mkstemp
9223do 9777do
9224as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9778as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9225{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9779{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9780echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9227if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9781if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6 9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9229else 9783else
9230 cat >conftest.$ac_ext <<_ACEOF 9784 cat >conftest.$ac_ext <<_ACEOF
9231/* confdefs.h. */ 9785/* confdefs.h. */
9232_ACEOF 9786_ACEOF
9233cat confdefs.h >>conftest.$ac_ext 9787cat confdefs.h >>conftest.$ac_ext
9234cat >>conftest.$ac_ext <<_ACEOF 9788cat >>conftest.$ac_ext <<_ACEOF
9235/* end confdefs.h. */ 9789/* end confdefs.h. */
9236/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9790/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9237 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9238#define $ac_func innocuous_$ac_func 9792#define $ac_func innocuous_$ac_func
9239 9793
9240/* System header to define __stub macros and hopefully few prototypes, 9794/* System header to define __stub macros and hopefully few prototypes,
9241 which can conflict with char $ac_func (); below. 9795 which can conflict with char $ac_func (); below.
9242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9243 <limits.h> exists even on freestanding compilers. */ 9797 <limits.h> exists even on freestanding compilers. */
9244 9798
9245#ifdef __STDC__ 9799#ifdef __STDC__
9246# include <limits.h> 9800# include <limits.h>
9247#else 9801#else
9248# include <assert.h> 9802# include <assert.h>
9249#endif 9803#endif
9250 9804
9251#undef $ac_func 9805#undef $ac_func
9252 9806
9253/* Override any GCC internal prototype to avoid an error. 9807/* Override any GCC internal prototype to avoid an error.
9254 Use char because int might match the return type of a GCC 9808 Use char because int might match the return type of a GCC
9255 builtin and then its argument prototype would still apply. */ 9809 builtin and then its argument prototype would still apply. */
9256#ifdef __cplusplus 9810#ifdef __cplusplus
9257extern "C" 9811extern "C"
9258#endif 9812#endif
9259char $ac_func (); 9813char $ac_func ();
9260/* The GNU C library defines this for functions which it implements 9814/* The GNU C library defines this for functions which it implements
9261 to always fail with ENOSYS. Some functions are actually named 9815 to always fail with ENOSYS. Some functions are actually named
9262 something starting with __ and the normal name is an alias. */ 9816 something starting with __ and the normal name is an alias. */
9263#if defined __stub_$ac_func || defined __stub___$ac_func 9817#if defined __stub_$ac_func || defined __stub___$ac_func
9264choke me 9818choke me
9265#endif 9819#endif
9266 9820
9267int 9821int
9268main () 9822main ()
9269{ 9823{
9270return $ac_func (); 9824return $ac_func ();
9271 ; 9825 ;
9272 return 0; 9826 return 0;
9273} 9827}
9274_ACEOF 9828_ACEOF
9275rm -f conftest.$ac_objext conftest$ac_exeext 9829rm -f conftest.$ac_objext conftest$ac_exeext
9276if { (ac_try="$ac_link" 9830if { (ac_try="$ac_link"
9277case "(($ac_try" in 9831case "(($ac_try" in
9278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9279 *) ac_try_echo=$ac_try;; 9833 *) ac_try_echo=$ac_try;;
9280esac 9834esac
9281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9282 (eval "$ac_link") 2>conftest.er1 9836 (eval "$ac_link") 2>conftest.er1
9283 ac_status=$? 9837 ac_status=$?
9284 grep -v '^ *+' conftest.er1 >conftest.err 9838 grep -v '^ *+' conftest.er1 >conftest.err
9285 rm -f conftest.er1 9839 rm -f conftest.er1
9286 cat conftest.err >&5 9840 cat conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } && { 9842 (exit $ac_status); } && {
9289 test -z "$ac_c_werror_flag" || 9843 test -z "$ac_c_werror_flag" ||
9290 test ! -s conftest.err 9844 test ! -s conftest.err
9291 } && test -s conftest$ac_exeext && 9845 } && test -s conftest$ac_exeext &&
9292 $as_test_x conftest$ac_exeext; then 9846 $as_test_x conftest$ac_exeext; then
9293 eval "$as_ac_var=yes" 9847 eval "$as_ac_var=yes"
9294else 9848else
9295 echo "$as_me: failed program was:" >&5 9849 echo "$as_me: failed program was:" >&5
9296sed 's/^/| /' conftest.$ac_ext >&5 9850sed 's/^/| /' conftest.$ac_ext >&5
9297 9851
9298 eval "$as_ac_var=no" 9852 eval "$as_ac_var=no"
9299fi 9853fi
9300 9854
9301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9302 conftest$ac_exeext conftest.$ac_ext 9856 conftest$ac_exeext conftest.$ac_ext
9303fi 9857fi
9304ac_res=`eval echo '${'$as_ac_var'}'` 9858ac_res=`eval echo '${'$as_ac_var'}'`
9305 { echo "$as_me:$LINENO: result: $ac_res" >&5 9859 { echo "$as_me:$LINENO: result: $ac_res" >&5
9306echo "${ECHO_T}$ac_res" >&6; } 9860echo "${ECHO_T}$ac_res" >&6; }
9307if test `eval echo '${'$as_ac_var'}'` = yes; then 9861if test `eval echo '${'$as_ac_var'}'` = yes; then
9308 cat >>confdefs.h <<_ACEOF 9862 cat >>confdefs.h <<_ACEOF
9309#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9863#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9310_ACEOF 9864_ACEOF
9311 : 9865 :
9312else 9866else
9313 9867
9314 case " $LIBOBJS " in 9868 case " $LIBOBJS " in
9315 *" gettemp.$ac_objext "* ) ;; 9869 *" gettemp.$ac_objext "* ) ;;
9316 *) LIBOBJS="$LIBOBJS gettemp.$ac_objext" 9870 *) LIBOBJS="$LIBOBJS gettemp.$ac_objext"
9317 ;; 9871 ;;
9318esac 9872esac
9319 9873
9320 break 9874 break
9321 9875
9322fi 9876fi
9323done 9877done
9324 9878
9325 9879
9326 9880
9327 9881
9328 9882
9329 9883
9330 9884
9331for ac_func in bcopy bzero memset memcpy setlocale 9885for ac_func in bcopy bzero memset memcpy setlocale
9332do 9886do
9333as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9887as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9334{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9888{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9335echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9889echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9336if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9890if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6 9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9338else 9892else
9339 cat >conftest.$ac_ext <<_ACEOF 9893 cat >conftest.$ac_ext <<_ACEOF
9340/* confdefs.h. */ 9894/* confdefs.h. */
9341_ACEOF 9895_ACEOF
9342cat confdefs.h >>conftest.$ac_ext 9896cat confdefs.h >>conftest.$ac_ext
9343cat >>conftest.$ac_ext <<_ACEOF 9897cat >>conftest.$ac_ext <<_ACEOF
9344/* end confdefs.h. */ 9898/* end confdefs.h. */
9345/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9899/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9346 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9347#define $ac_func innocuous_$ac_func 9901#define $ac_func innocuous_$ac_func
9348 9902
9349/* System header to define __stub macros and hopefully few prototypes, 9903/* System header to define __stub macros and hopefully few prototypes,
9350 which can conflict with char $ac_func (); below. 9904 which can conflict with char $ac_func (); below.
9351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9352 <limits.h> exists even on freestanding compilers. */ 9906 <limits.h> exists even on freestanding compilers. */
9353 9907
9354#ifdef __STDC__ 9908#ifdef __STDC__
9355# include <limits.h> 9909# include <limits.h>
9356#else 9910#else
9357# include <assert.h> 9911# include <assert.h>
9358#endif 9912#endif
9359 9913
9360#undef $ac_func 9914#undef $ac_func
9361 9915
9362/* Override any GCC internal prototype to avoid an error. 9916/* Override any GCC internal prototype to avoid an error.
9363 Use char because int might match the return type of a GCC 9917 Use char because int might match the return type of a GCC
9364 builtin and then its argument prototype would still apply. */ 9918 builtin and then its argument prototype would still apply. */
9365#ifdef __cplusplus 9919#ifdef __cplusplus
9366extern "C" 9920extern "C"
9367#endif 9921#endif
9368char $ac_func (); 9922char $ac_func ();
9369/* The GNU C library defines this for functions which it implements 9923/* The GNU C library defines this for functions which it implements
9370 to always fail with ENOSYS. Some functions are actually named 9924 to always fail with ENOSYS. Some functions are actually named
9371 something starting with __ and the normal name is an alias. */ 9925 something starting with __ and the normal name is an alias. */
9372#if defined __stub_$ac_func || defined __stub___$ac_func 9926#if defined __stub_$ac_func || defined __stub___$ac_func
9373choke me 9927choke me
9374#endif 9928#endif
9375 9929
9376int 9930int
9377main () 9931main ()
9378{ 9932{
9379return $ac_func (); 9933return $ac_func ();
9380 ; 9934 ;
9381 return 0; 9935 return 0;
9382} 9936}
9383_ACEOF 9937_ACEOF
9384rm -f conftest.$ac_objext conftest$ac_exeext 9938rm -f conftest.$ac_objext conftest$ac_exeext
9385if { (ac_try="$ac_link" 9939if { (ac_try="$ac_link"
9386case "(($ac_try" in 9940case "(($ac_try" in
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;; 9942 *) ac_try_echo=$ac_try;;
9389esac 9943esac
9390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391 (eval "$ac_link") 2>conftest.er1 9945 (eval "$ac_link") 2>conftest.er1
9392 ac_status=$? 9946 ac_status=$?
9393 grep -v '^ *+' conftest.er1 >conftest.err 9947 grep -v '^ *+' conftest.er1 >conftest.err
9394 rm -f conftest.er1 9948 rm -f conftest.er1
9395 cat conftest.err >&5 9949 cat conftest.err >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } && { 9951 (exit $ac_status); } && {
9398 test -z "$ac_c_werror_flag" || 9952 test -z "$ac_c_werror_flag" ||
9399 test ! -s conftest.err 9953 test ! -s conftest.err
9400 } && test -s conftest$ac_exeext && 9954 } && test -s conftest$ac_exeext &&
9401 $as_test_x conftest$ac_exeext; then 9955 $as_test_x conftest$ac_exeext; then
9402 eval "$as_ac_var=yes" 9956 eval "$as_ac_var=yes"
9403else 9957else
9404 echo "$as_me: failed program was:" >&5 9958 echo "$as_me: failed program was:" >&5
9405sed 's/^/| /' conftest.$ac_ext >&5 9959sed 's/^/| /' conftest.$ac_ext >&5
9406 9960
9407 eval "$as_ac_var=no" 9961 eval "$as_ac_var=no"
9408fi 9962fi
9409 9963
9410rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9411 conftest$ac_exeext conftest.$ac_ext 9965 conftest$ac_exeext conftest.$ac_ext
9412fi 9966fi
9413ac_res=`eval echo '${'$as_ac_var'}'` 9967ac_res=`eval echo '${'$as_ac_var'}'`
9414 { echo "$as_me:$LINENO: result: $ac_res" >&5 9968 { echo "$as_me:$LINENO: result: $ac_res" >&5
9415echo "${ECHO_T}$ac_res" >&6; } 9969echo "${ECHO_T}$ac_res" >&6; }
9416if test `eval echo '${'$as_ac_var'}'` = yes; then 9970if test `eval echo '${'$as_ac_var'}'` = yes; then
9417 cat >>confdefs.h <<_ACEOF 9971 cat >>confdefs.h <<_ACEOF
9418#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9972#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9419_ACEOF 9973_ACEOF
9420 9974
9421fi 9975fi
9422done 9976done
9423 9977
9424 9978
9425 9979
9426for ac_func in getmode setmode 9980for ac_func in getmode setmode
9427do 9981do
9428as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9429{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9983{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9430echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9431if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9985if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6 9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9433else 9987else
9434 cat >conftest.$ac_ext <<_ACEOF 9988 cat >conftest.$ac_ext <<_ACEOF
9435/* confdefs.h. */ 9989/* confdefs.h. */
9436_ACEOF 9990_ACEOF
9437cat confdefs.h >>conftest.$ac_ext 9991cat confdefs.h >>conftest.$ac_ext
9438cat >>conftest.$ac_ext <<_ACEOF 9992cat >>conftest.$ac_ext <<_ACEOF
9439/* end confdefs.h. */ 9993/* end confdefs.h. */
9440/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9441 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9442#define $ac_func innocuous_$ac_func 9996#define $ac_func innocuous_$ac_func
9443 9997
9444/* System header to define __stub macros and hopefully few prototypes, 9998/* System header to define __stub macros and hopefully few prototypes,
9445 which can conflict with char $ac_func (); below. 9999 which can conflict with char $ac_func (); below.
9446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9447 <limits.h> exists even on freestanding compilers. */ 10001 <limits.h> exists even on freestanding compilers. */
9448 10002
9449#ifdef __STDC__ 10003#ifdef __STDC__
9450# include <limits.h> 10004# include <limits.h>
9451#else 10005#else
9452# include <assert.h> 10006# include <assert.h>
9453#endif 10007#endif
9454 10008
9455#undef $ac_func 10009#undef $ac_func
9456 10010
9457/* Override any GCC internal prototype to avoid an error. 10011/* Override any GCC internal prototype to avoid an error.
9458 Use char because int might match the return type of a GCC 10012 Use char because int might match the return type of a GCC
9459 builtin and then its argument prototype would still apply. */ 10013 builtin and then its argument prototype would still apply. */
9460#ifdef __cplusplus 10014#ifdef __cplusplus
9461extern "C" 10015extern "C"
9462#endif 10016#endif
9463char $ac_func (); 10017char $ac_func ();
9464/* The GNU C library defines this for functions which it implements 10018/* The GNU C library defines this for functions which it implements
9465 to always fail with ENOSYS. Some functions are actually named 10019 to always fail with ENOSYS. Some functions are actually named
9466 something starting with __ and the normal name is an alias. */ 10020 something starting with __ and the normal name is an alias. */
9467#if defined __stub_$ac_func || defined __stub___$ac_func 10021#if defined __stub_$ac_func || defined __stub___$ac_func
9468choke me 10022choke me
9469#endif 10023#endif
9470 10024
9471int 10025int
9472main () 10026main ()
9473{ 10027{
9474return $ac_func (); 10028return $ac_func ();
9475 ; 10029 ;
9476 return 0; 10030 return 0;
9477} 10031}
9478_ACEOF 10032_ACEOF
9479rm -f conftest.$ac_objext conftest$ac_exeext 10033rm -f conftest.$ac_objext conftest$ac_exeext
9480if { (ac_try="$ac_link" 10034if { (ac_try="$ac_link"
9481case "(($ac_try" in 10035case "(($ac_try" in
9482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;; 10037 *) ac_try_echo=$ac_try;;
9484esac 10038esac
9485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486 (eval "$ac_link") 2>conftest.er1 10040 (eval "$ac_link") 2>conftest.er1
9487 ac_status=$? 10041 ac_status=$?
9488 grep -v '^ *+' conftest.er1 >conftest.err 10042 grep -v '^ *+' conftest.er1 >conftest.err
9489 rm -f conftest.er1 10043 rm -f conftest.er1
9490 cat conftest.err >&5 10044 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } && { 10046 (exit $ac_status); } && {
9493 test -z "$ac_c_werror_flag" || 10047 test -z "$ac_c_werror_flag" ||
9494 test ! -s conftest.err 10048 test ! -s conftest.err
9495 } && test -s conftest$ac_exeext && 10049 } && test -s conftest$ac_exeext &&
9496 $as_test_x conftest$ac_exeext; then 10050 $as_test_x conftest$ac_exeext; then
9497 eval "$as_ac_var=yes" 10051 eval "$as_ac_var=yes"
9498else 10052else
9499 echo "$as_me: failed program was:" >&5 10053 echo "$as_me: failed program was:" >&5
9500sed 's/^/| /' conftest.$ac_ext >&5 10054sed 's/^/| /' conftest.$ac_ext >&5
9501 10055
9502 eval "$as_ac_var=no" 10056 eval "$as_ac_var=no"
9503fi 10057fi
9504 10058
9505rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9506 conftest$ac_exeext conftest.$ac_ext 10060 conftest$ac_exeext conftest.$ac_ext
9507fi 10061fi
9508ac_res=`eval echo '${'$as_ac_var'}'` 10062ac_res=`eval echo '${'$as_ac_var'}'`
9509 { echo "$as_me:$LINENO: result: $ac_res" >&5 10063 { echo "$as_me:$LINENO: result: $ac_res" >&5
9510echo "${ECHO_T}$ac_res" >&6; } 10064echo "${ECHO_T}$ac_res" >&6; }
9511if test `eval echo '${'$as_ac_var'}'` = yes; then 10065if test `eval echo '${'$as_ac_var'}'` = yes; then
9512 cat >>confdefs.h <<_ACEOF 10066 cat >>confdefs.h <<_ACEOF
9513#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10067#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9514_ACEOF 10068_ACEOF
9515 10069
9516fi 10070fi
9517done 10071done
9518 10072
9519 10073
9520 10074
9521for ac_func in getmode setmode 10075for ac_func in getmode setmode
9522do 10076do
9523as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10077as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9524{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10078{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9525echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10079echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9526if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10080if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6 10081 echo $ECHO_N "(cached) $ECHO_C" >&6
9528else 10082else
9529 cat >conftest.$ac_ext <<_ACEOF 10083 cat >conftest.$ac_ext <<_ACEOF
9530/* confdefs.h. */ 10084/* confdefs.h. */
9531_ACEOF 10085_ACEOF
9532cat confdefs.h >>conftest.$ac_ext 10086cat confdefs.h >>conftest.$ac_ext
9533cat >>conftest.$ac_ext <<_ACEOF 10087cat >>conftest.$ac_ext <<_ACEOF
9534/* end confdefs.h. */ 10088/* end confdefs.h. */
9535/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10089/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9536 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9537#define $ac_func innocuous_$ac_func 10091#define $ac_func innocuous_$ac_func
9538 10092
9539/* System header to define __stub macros and hopefully few prototypes, 10093/* System header to define __stub macros and hopefully few prototypes,
9540 which can conflict with char $ac_func (); below. 10094 which can conflict with char $ac_func (); below.
9541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9542 <limits.h> exists even on freestanding compilers. */ 10096 <limits.h> exists even on freestanding compilers. */
9543 10097
9544#ifdef __STDC__ 10098#ifdef __STDC__
9545# include <limits.h> 10099# include <limits.h>
9546#else 10100#else
9547# include <assert.h> 10101# include <assert.h>
9548#endif 10102#endif
9549 10103
9550#undef $ac_func 10104#undef $ac_func
9551 10105
9552/* Override any GCC internal prototype to avoid an error. 10106/* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC 10107 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */ 10108 builtin and then its argument prototype would still apply. */
9555#ifdef __cplusplus 10109#ifdef __cplusplus
9556extern "C" 10110extern "C"
9557#endif 10111#endif
9558char $ac_func (); 10112char $ac_func ();
9559/* The GNU C library defines this for functions which it implements 10113/* The GNU C library defines this for functions which it implements
9560 to always fail with ENOSYS. Some functions are actually named 10114 to always fail with ENOSYS. Some functions are actually named
9561 something starting with __ and the normal name is an alias. */ 10115 something starting with __ and the normal name is an alias. */
9562#if defined __stub_$ac_func || defined __stub___$ac_func 10116#if defined __stub_$ac_func || defined __stub___$ac_func
9563choke me 10117choke me
9564#endif 10118#endif
9565 10119
9566int 10120int
9567main () 10121main ()
9568{ 10122{
9569return $ac_func (); 10123return $ac_func ();
9570 ; 10124 ;
9571 return 0; 10125 return 0;
9572} 10126}
9573_ACEOF 10127_ACEOF
9574rm -f conftest.$ac_objext conftest$ac_exeext 10128rm -f conftest.$ac_objext conftest$ac_exeext
9575if { (ac_try="$ac_link" 10129if { (ac_try="$ac_link"
9576case "(($ac_try" in 10130case "(($ac_try" in
9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;; 10132 *) ac_try_echo=$ac_try;;
9579esac 10133esac
9580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581 (eval "$ac_link") 2>conftest.er1 10135 (eval "$ac_link") 2>conftest.er1
9582 ac_status=$? 10136 ac_status=$?
9583 grep -v '^ *+' conftest.er1 >conftest.err 10137 grep -v '^ *+' conftest.er1 >conftest.err
9584 rm -f conftest.er1 10138 rm -f conftest.er1
9585 cat conftest.err >&5 10139 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } && { 10141 (exit $ac_status); } && {
9588 test -z "$ac_c_werror_flag" || 10142 test -z "$ac_c_werror_flag" ||
9589 test ! -s conftest.err 10143 test ! -s conftest.err
9590 } && test -s conftest$ac_exeext && 10144 } && test -s conftest$ac_exeext &&
9591 $as_test_x conftest$ac_exeext; then 10145 $as_test_x conftest$ac_exeext; then
9592 eval "$as_ac_var=yes" 10146 eval "$as_ac_var=yes"
9593else 10147else
9594 echo "$as_me: failed program was:" >&5 10148 echo "$as_me: failed program was:" >&5
9595sed 's/^/| /' conftest.$ac_ext >&5 10149sed 's/^/| /' conftest.$ac_ext >&5
9596 10150
9597 eval "$as_ac_var=no" 10151 eval "$as_ac_var=no"
9598fi 10152fi
9599 10153
9600rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9601 conftest$ac_exeext conftest.$ac_ext 10155 conftest$ac_exeext conftest.$ac_ext
9602fi 10156fi
9603ac_res=`eval echo '${'$as_ac_var'}'` 10157ac_res=`eval echo '${'$as_ac_var'}'`
9604 { echo "$as_me:$LINENO: result: $ac_res" >&5 10158 { echo "$as_me:$LINENO: result: $ac_res" >&5
9605echo "${ECHO_T}$ac_res" >&6; } 10159echo "${ECHO_T}$ac_res" >&6; }
9606if test `eval echo '${'$as_ac_var'}'` = yes; then 10160if test `eval echo '${'$as_ac_var'}'` = yes; then
9607 cat >>confdefs.h <<_ACEOF 10161 cat >>confdefs.h <<_ACEOF
9608#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10162#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9609_ACEOF 10163_ACEOF
9610 : 10164 :
9611else 10165else
9612 10166
9613 case " $LIBOBJS " in 10167 case " $LIBOBJS " in
9614 *" setmode.$ac_objext "* ) ;; 10168 *" setmode.$ac_objext "* ) ;;
9615 *) LIBOBJS="$LIBOBJS setmode.$ac_objext" 10169 *) LIBOBJS="$LIBOBJS setmode.$ac_objext"
9616 ;; 10170 ;;
9617esac 10171esac
9618 10172
9619 break 10173 break
9620 10174
9621fi 10175fi
9622done 10176done
9623 10177
9624 10178
9625 10179
9626 10180
9627 10181
9628 10182
9629 10183
9630 10184
9631for ac_func in gid_from_group group_from_gid pwcache_groupdb \ 10185for ac_func in gid_from_group group_from_gid pwcache_groupdb \
9632 pwcache_userdb uid_from_user user_from_uid \ 10186 pwcache_userdb uid_from_user user_from_uid \
9633 10187
9634do 10188do
9635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10189as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9636{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10190{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10191echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9638if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10192if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6 10193 echo $ECHO_N "(cached) $ECHO_C" >&6
9640else 10194else
9641 cat >conftest.$ac_ext <<_ACEOF 10195 cat >conftest.$ac_ext <<_ACEOF
9642/* confdefs.h. */ 10196/* confdefs.h. */
9643_ACEOF 10197_ACEOF
9644cat confdefs.h >>conftest.$ac_ext 10198cat confdefs.h >>conftest.$ac_ext
9645cat >>conftest.$ac_ext <<_ACEOF 10199cat >>conftest.$ac_ext <<_ACEOF
9646/* end confdefs.h. */ 10200/* end confdefs.h. */
9647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10201/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9648 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9649#define $ac_func innocuous_$ac_func 10203#define $ac_func innocuous_$ac_func
9650 10204
9651/* System header to define __stub macros and hopefully few prototypes, 10205/* System header to define __stub macros and hopefully few prototypes,
9652 which can conflict with char $ac_func (); below. 10206 which can conflict with char $ac_func (); below.
9653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9654 <limits.h> exists even on freestanding compilers. */ 10208 <limits.h> exists even on freestanding compilers. */
9655 10209
9656#ifdef __STDC__ 10210#ifdef __STDC__
9657# include <limits.h> 10211# include <limits.h>
9658#else 10212#else
9659# include <assert.h> 10213# include <assert.h>
9660#endif 10214#endif
9661 10215
9662#undef $ac_func 10216#undef $ac_func
9663 10217
9664/* Override any GCC internal prototype to avoid an error. 10218/* Override any GCC internal prototype to avoid an error.
9665 Use char because int might match the return type of a GCC 10219 Use char because int might match the return type of a GCC
9666 builtin and then its argument prototype would still apply. */ 10220 builtin and then its argument prototype would still apply. */
9667#ifdef __cplusplus 10221#ifdef __cplusplus
9668extern "C" 10222extern "C"
9669#endif 10223#endif
9670char $ac_func (); 10224char $ac_func ();
9671/* The GNU C library defines this for functions which it implements 10225/* The GNU C library defines this for functions which it implements
9672 to always fail with ENOSYS. Some functions are actually named 10226 to always fail with ENOSYS. Some functions are actually named
9673 something starting with __ and the normal name is an alias. */ 10227 something starting with __ and the normal name is an alias. */
9674#if defined __stub_$ac_func || defined __stub___$ac_func 10228#if defined __stub_$ac_func || defined __stub___$ac_func
9675choke me 10229choke me
9676#endif 10230#endif
9677 10231
9678int 10232int
9679main () 10233main ()
9680{ 10234{
9681return $ac_func (); 10235return $ac_func ();
9682 ; 10236 ;
9683 return 0; 10237 return 0;
9684} 10238}
9685_ACEOF 10239_ACEOF
9686rm -f conftest.$ac_objext conftest$ac_exeext 10240rm -f conftest.$ac_objext conftest$ac_exeext
9687if { (ac_try="$ac_link" 10241if { (ac_try="$ac_link"
9688case "(($ac_try" in 10242case "(($ac_try" in
9689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690 *) ac_try_echo=$ac_try;; 10244 *) ac_try_echo=$ac_try;;
9691esac 10245esac
9692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693 (eval "$ac_link") 2>conftest.er1 10247 (eval "$ac_link") 2>conftest.er1
9694 ac_status=$? 10248 ac_status=$?
9695 grep -v '^ *+' conftest.er1 >conftest.err 10249 grep -v '^ *+' conftest.er1 >conftest.err
9696 rm -f conftest.er1 10250 rm -f conftest.er1
9697 cat conftest.err >&5 10251 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } && { 10253 (exit $ac_status); } && {
9700 test -z "$ac_c_werror_flag" || 10254 test -z "$ac_c_werror_flag" ||
9701 test ! -s conftest.err 10255 test ! -s conftest.err
9702 } && test -s conftest$ac_exeext && 10256 } && test -s conftest$ac_exeext &&
9703 $as_test_x conftest$ac_exeext; then 10257 $as_test_x conftest$ac_exeext; then
9704 eval "$as_ac_var=yes" 10258 eval "$as_ac_var=yes"
9705else 10259else
9706 echo "$as_me: failed program was:" >&5 10260 echo "$as_me: failed program was:" >&5
9707sed 's/^/| /' conftest.$ac_ext >&5 10261sed 's/^/| /' conftest.$ac_ext >&5
9708 10262
9709 eval "$as_ac_var=no" 10263 eval "$as_ac_var=no"
9710fi 10264fi
9711 10265
9712rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10266rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9713 conftest$ac_exeext conftest.$ac_ext 10267 conftest$ac_exeext conftest.$ac_ext
9714fi 10268fi
9715ac_res=`eval echo '${'$as_ac_var'}'` 10269ac_res=`eval echo '${'$as_ac_var'}'`
9716 { echo "$as_me:$LINENO: result: $ac_res" >&5 10270 { echo "$as_me:$LINENO: result: $ac_res" >&5
9717echo "${ECHO_T}$ac_res" >&6; } 10271echo "${ECHO_T}$ac_res" >&6; }
9718if test `eval echo '${'$as_ac_var'}'` = yes; then 10272if test `eval echo '${'$as_ac_var'}'` = yes; then
9719 cat >>confdefs.h <<_ACEOF 10273 cat >>confdefs.h <<_ACEOF
9720#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10274#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9721_ACEOF 10275_ACEOF
9722 10276
9723fi 10277fi
9724done 10278done
9725 10279
9726 10280
9727 10281
9728 10282
9729 10283
9730 10284
9731 10285
9732for ac_func in gid_from_group group_from_gid pwcache_groupdb \ 10286for ac_func in gid_from_group group_from_gid pwcache_groupdb \
9733 pwcache_userdb uid_from_user user_from_uid \ 10287 pwcache_userdb uid_from_user user_from_uid \
9734 10288
9735do 10289do
9736as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10290as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9737{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10291{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9738echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10292echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9739if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10293if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6 10294 echo $ECHO_N "(cached) $ECHO_C" >&6
9741else 10295else
9742 cat >conftest.$ac_ext <<_ACEOF 10296 cat >conftest.$ac_ext <<_ACEOF
9743/* confdefs.h. */ 10297/* confdefs.h. */
9744_ACEOF 10298_ACEOF
9745cat confdefs.h >>conftest.$ac_ext 10299cat confdefs.h >>conftest.$ac_ext
9746cat >>conftest.$ac_ext <<_ACEOF 10300cat >>conftest.$ac_ext <<_ACEOF
9747/* end confdefs.h. */ 10301/* end confdefs.h. */
9748/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9749 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9750#define $ac_func innocuous_$ac_func 10304#define $ac_func innocuous_$ac_func
9751 10305
9752/* System header to define __stub macros and hopefully few prototypes, 10306/* System header to define __stub macros and hopefully few prototypes,
9753 which can conflict with char $ac_func (); below. 10307 which can conflict with char $ac_func (); below.
9754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9755 <limits.h> exists even on freestanding compilers. */ 10309 <limits.h> exists even on freestanding compilers. */
9756 10310
9757#ifdef __STDC__ 10311#ifdef __STDC__
9758# include <limits.h> 10312# include <limits.h>
9759#else 10313#else
9760# include <assert.h> 10314# include <assert.h>
9761#endif 10315#endif
9762 10316
9763#undef $ac_func 10317#undef $ac_func
9764 10318
9765/* Override any GCC internal prototype to avoid an error. 10319/* Override any GCC internal prototype to avoid an error.
9766 Use char because int might match the return type of a GCC 10320 Use char because int might match the return type of a GCC
9767 builtin and then its argument prototype would still apply. */ 10321 builtin and then its argument prototype would still apply. */
9768#ifdef __cplusplus 10322#ifdef __cplusplus
9769extern "C" 10323extern "C"
9770#endif 10324#endif
9771char $ac_func (); 10325char $ac_func ();
9772/* The GNU C library defines this for functions which it implements 10326/* The GNU C library defines this for functions which it implements
9773 to always fail with ENOSYS. Some functions are actually named 10327 to always fail with ENOSYS. Some functions are actually named
9774 something starting with __ and the normal name is an alias. */ 10328 something starting with __ and the normal name is an alias. */
9775#if defined __stub_$ac_func || defined __stub___$ac_func 10329#if defined __stub_$ac_func || defined __stub___$ac_func
9776choke me 10330choke me
9777#endif 10331#endif
9778 10332
9779int 10333int
9780main () 10334main ()
9781{ 10335{
9782return $ac_func (); 10336return $ac_func ();
9783 ; 10337 ;
9784 return 0; 10338 return 0;
9785} 10339}
9786_ACEOF 10340_ACEOF
9787rm -f conftest.$ac_objext conftest$ac_exeext 10341rm -f conftest.$ac_objext conftest$ac_exeext
9788if { (ac_try="$ac_link" 10342if { (ac_try="$ac_link"
9789case "(($ac_try" in 10343case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;

cvs diff -r1.58 -r1.59 pkgsrc/pkgtools/libnbcompat/files/configure.ac (switch to unified diff)

--- pkgsrc/pkgtools/libnbcompat/files/configure.ac 2007/09/21 19:51:58 1.58
+++ pkgsrc/pkgtools/libnbcompat/files/configure.ac 2008/02/21 16:50:08 1.59
@@ -1,454 +1,455 @@ @@ -1,454 +1,455 @@
1dnl $NetBSD: configure.ac,v 1.58 2007/09/21 19:51:58 joerg Exp $ 1dnl $NetBSD: configure.ac,v 1.59 2008/02/21 16:50:08 tnn Exp $
2 2
3dnl Process this file with autoconf to produce a configure script. 3dnl Process this file with autoconf to produce a configure script.
4AC_PREREQ(2.52) 4AC_PREREQ(2.52)
5AC_INIT([libnbcompat], [20070622], [grant@NetBSD.org]) 5AC_INIT([libnbcompat], [20070622], [grant@NetBSD.org])
6AC_CONFIG_HEADER(nbcompat/config.h) 6AC_CONFIG_HEADER(nbcompat/config.h)
7AC_ARG_PROGRAM 7AC_ARG_PROGRAM
8 8
9AC_CANONICAL_HOST 9AC_CANONICAL_HOST
10CANONICAL_HOST=$host 10CANONICAL_HOST=$host
11AC_SUBST(CANONICAL_HOST) 11AC_SUBST(CANONICAL_HOST)
12AC_SUBST(INCLUDES) 12AC_SUBST(INCLUDES)
13 13
14# Checks for programs. 14# Checks for programs.
15AC_PROG_MAKE_SET 15AC_PROG_MAKE_SET
16AC_PROG_CC 16AC_PROG_CC
17AC_PROG_INSTALL 17AC_PROG_INSTALL
18AC_PROG_LN_S 18AC_PROG_LN_S
19AC_PROG_RANLIB 19AC_PROG_RANLIB
20AC_PROG_AWK 20AC_PROG_AWK
21AC_CHECK_PROG(AR, ar, ar) 21AC_CHECK_PROG(AR, ar, ar)
22 22
23AUTOCONF=${AUTOCONF-"$srcdir/missing --run autoconf"} 23AUTOCONF=${AUTOCONF-"$srcdir/missing --run autoconf"}
24AC_SUBST(AUTOCONF) 24AC_SUBST(AUTOCONF)
25AUTOHEADER=${AUTOHEADER-"$srcdir/missing --run autoheader"} 25AUTOHEADER=${AUTOHEADER-"$srcdir/missing --run autoheader"}
26AC_SUBST(AUTOHEADER) 26AC_SUBST(AUTOHEADER)
27 27
28dnl Checks for libraries 28dnl Checks for libraries
29AC_CHECK_LIB(util, fparseln) 29AC_CHECK_LIB(util, fparseln)
30 30
31dnl Checks for header files. 31dnl Checks for header files.
32AC_HEADER_STDC 32AC_HEADER_STDC
33AC_HEADER_TIME 33AC_HEADER_TIME
34 34
35dnl Used by bits.c to check for sizes of integer types 35dnl Used by bits.c to check for sizes of integer types
36AC_CHECK_HEADERS([inttypes.h sys/types.h sys/bitypes.h bind/bitypes.h \ 36AC_CHECK_HEADERS([inttypes.h sys/types.h sys/bitypes.h bind/bitypes.h \
37 netinet/in6_machtypes.h]) 37 netinet/in6_machtypes.h])
38 38
39AC_CHECK_HEADERS([alloca.h assert.h ctype.h dirent.h err.h errno.h fcntl.h \ 39AC_CHECK_HEADERS([alloca.h assert.h ctype.h dirent.h err.h errno.h fcntl.h \
40 fnmatch.h fts.h grp.h libutil.h limits.h machine/endian.h ndir.h \ 40 fnmatch.h fts.h grp.h libutil.h limits.h machine/endian.h ndir.h \
41 paths.h pwd.h signal.h stdarg.h stddef.h stdint.h stdio.h stdlib.h \ 41 paths.h pwd.h signal.h stdarg.h stddef.h stdint.h stdio.h stdlib.h \
42 string.h sys/byteorder.h sys/cdefs.h sys/dir.h sys/endian.h \ 42 string.h sys/byteorder.h sys/cdefs.h sys/dir.h sys/endian.h \
43 sys/file.h sys/mkdev.h sys/ndir.h sys/param.h sys/stat.h \ 43 sys/file.h sys/mkdev.h sys/ndir.h sys/param.h sys/stat.h \
44 sys/statfs.h sys/statvfs.h sys/time.h sys/ttycom.h sys/types.h \ 44 sys/statfs.h sys/statvfs.h sys/time.h sys/ttycom.h sys/types.h \
45 sys/uio.h sys/vfs.h termcap.h time.h tzfile.h unistd.h \ 45 sys/uio.h sys/vfs.h termcap.h time.h tzfile.h unistd.h \
46 util.h utime.h 46 util.h utime.h
47]) 47])
48AC_CHECK_HEADERS([sys/mount.h], [:], [:], [ 48AC_CHECK_HEADERS([sys/mount.h], [:], [:], [
49 AC_INCLUDES_DEFAULT 49 AC_INCLUDES_DEFAULT
50 #ifdef HAVE_SYS_PARAM_H 50 #ifdef HAVE_SYS_PARAM_H
51 #include <sys/param.h> 51 #include <sys/param.h>
52 #endif 52 #endif
53]) 53])
54 54
55dnl Always use our own glob(). 55dnl Always use our own glob().
56AC_CHECK_HEADERS([glob.h]) 56AC_CHECK_HEADERS([glob.h])
57AC_DEFINE(HAVE_NBCOMPAT_GLOB) 57AC_DEFINE(HAVE_NBCOMPAT_GLOB)
58AH_TEMPLATE([HAVE_NBCOMPAT_GLOB], [ 58AH_TEMPLATE([HAVE_NBCOMPAT_GLOB], [
59 Define to 1 if the `glob' function is built into the library. 59 Define to 1 if the `glob' function is built into the library.
60]) 60])
61AC_LIBOBJ(glob) 61AC_LIBOBJ(glob)
62 62
63dnl Always use our own queue(3) implementation. 63dnl Always use our own queue(3) implementation.
64AC_CHECK_HEADERS([sys/queue.h]) 64AC_CHECK_HEADERS([sys/queue.h])
65AC_DEFINE(HAVE_NBCOMPAT_QUEUE) 65AC_DEFINE(HAVE_NBCOMPAT_QUEUE)
66AH_TEMPLATE([HAVE_NBCOMPAT_QUEUE], [ 66AH_TEMPLATE([HAVE_NBCOMPAT_QUEUE], [
67 Define to 1 if the `queue' macros are supplied by the library. 67 Define to 1 if the `queue' macros are supplied by the library.
68]) 68])
69 69
70AC_CHECK_HEADERS([regex.h]) 70AC_CHECK_HEADERS([regex.h])
71AC_CHECK_FUNC(regexec, [:], [ 71AC_CHECK_FUNC(regexec, [:], [
72 AC_DEFINE(HAVE_NBCOMPAT_REGEX) 72 AC_DEFINE(HAVE_NBCOMPAT_REGEX)
73 AH_TEMPLATE([HAVE_NBCOMPAT_REGEX], [ 73 AH_TEMPLATE([HAVE_NBCOMPAT_REGEX], [
74 Define to 1 if the `regex' functions are built into the 74 Define to 1 if the `regex' functions are built into the
75 library. 75 library.
76 ]) 76 ])
77 AC_LIBOBJ(regcomp) 77 AC_LIBOBJ(regcomp)
78 AC_LIBOBJ(regerror) 78 AC_LIBOBJ(regerror)
79 AC_LIBOBJ(regexec) 79 AC_LIBOBJ(regexec)
80 AC_LIBOBJ(regfree) 80 AC_LIBOBJ(regfree)
81]) 81])
82 82
83AC_CHECK_HEADERS([md5.h], [ 83AC_CHECK_HEADERS([md5.h], [
84 AC_MSG_TRY_COMPILE([for MD5Init in md5.h], pkg_cv_have_md5init, [ 84 AC_MSG_TRY_COMPILE([for MD5Init in md5.h], pkg_cv_have_md5init, [
85 #include <sys/types.h> 85 #include <sys/types.h>
86 #include <md5.h> 86 #include <md5.h>
87 ], [ 87 ], [
88 MD5_CTX *f; 88 MD5_CTX *f;
89 MD5Init(f); 89 MD5Init(f);
90 ], [:], [ 90 ], [:], [
91 AC_DEFINE(HAVE_NBCOMPAT_MD5INIT) 91 AC_DEFINE(HAVE_NBCOMPAT_MD5INIT)
92 AH_TEMPLATE([HAVE_NBCOMPAT_MD5INIT], [ 92 AH_TEMPLATE([HAVE_NBCOMPAT_MD5INIT], [
93 Define to 1 if the `MD5Init' function is built into 93 Define to 1 if the `MD5Init' function is built into
94 the library. 94 the library.
95 ]) 95 ])
96 ]) 96 ])
97]) 97])
98 98
99AC_CHECK_HEADERS([md5.h rmd160.h sha1.h sha2.h]) 99AC_CHECK_HEADERS([md5.h rmd160.h sha1.h sha2.h])
100AC_CHECK_FUNC(MD5File, [:], [ 100AC_CHECK_FUNC(MD5File, [:], [
101 AC_DEFINE(HAVE_NBCOMPAT_MD5) 101 AC_DEFINE(HAVE_NBCOMPAT_MD5)
102 AH_TEMPLATE([HAVE_NBCOMPAT_MD5], [ 102 AH_TEMPLATE([HAVE_NBCOMPAT_MD5], [
103 Define to 1 if the `MD5*' functions are built into the 103 Define to 1 if the `MD5*' functions are built into the
104 library. 104 library.
105 ]) 105 ])
106 AC_LIBOBJ(md5c) 106 AC_LIBOBJ(md5c)
107 AC_LIBOBJ(md5hl) 107 AC_LIBOBJ(md5hl)
108]) 108])
109AC_CHECK_FUNC(RMD160File, [:], [ 109AC_CHECK_FUNC(RMD160File, [:], [
110 AC_DEFINE(HAVE_NBCOMPAT_RMD160) 110 AC_DEFINE(HAVE_NBCOMPAT_RMD160)
111 AH_TEMPLATE([HAVE_NBCOMPAT_RMD160], [ 111 AH_TEMPLATE([HAVE_NBCOMPAT_RMD160], [
112 Define to 1 if the `RMD160*' functions are built into the 112 Define to 1 if the `RMD160*' functions are built into the
113 library. 113 library.
114 ]) 114 ])
115 AC_LIBOBJ(rmd160) 115 AC_LIBOBJ(rmd160)
116 AC_LIBOBJ(rmd160hl) 116 AC_LIBOBJ(rmd160hl)
117]) 117])
118AC_CHECK_FUNC(SHA1File, [:], [ 118AC_CHECK_FUNC(SHA1File, [:], [
119 AC_DEFINE(HAVE_NBCOMPAT_SHA1) 119 AC_DEFINE(HAVE_NBCOMPAT_SHA1)
120 AH_TEMPLATE([HAVE_NBCOMPAT_SHA1], [ 120 AH_TEMPLATE([HAVE_NBCOMPAT_SHA1], [
121 Define to 1 if the `SHA1*' functions are built into the 121 Define to 1 if the `SHA1*' functions are built into the
122 library. 122 library.
123 ]) 123 ])
124 AC_LIBOBJ(sha1) 124 AC_LIBOBJ(sha1)
125 AC_LIBOBJ(sha1hl) 125 AC_LIBOBJ(sha1hl)
126]) 126])
127 127
128AC_CHECK_FUNC(SHA512_File, [:], [ 128AC_CHECK_FUNC(SHA512_File, [:], [
129 AC_DEFINE(HAVE_NBCOMPAT_SHA2) 129 AC_DEFINE(HAVE_NBCOMPAT_SHA2)
130 AH_TEMPLATE([HAVE_NBCOMPAT_SHA2], [ 130 AH_TEMPLATE([HAVE_NBCOMPAT_SHA2], [
131 Define to 1 if the `SHA2*' functions are built into the 131 Define to 1 if the `SHA2*' functions are built into the
132 library. 132 library.
133 ]) 133 ])
134 AC_LIBOBJ(sha2) 134 AC_LIBOBJ(sha2)
135 AC_LIBOBJ(sha2hl) 135 AC_LIBOBJ(sha2hl)
136]) 136])
137 137
138pkg_use_nbcompat_getopt_long=yes 138pkg_use_nbcompat_getopt_long=yes
139AC_CHECK_HEADERS([getopt.h], [ 139AC_CHECK_HEADERS([getopt.h], [
140 AC_MSG_TRY_COMPILE([for struct option], pkg_cv_have_struct_option, 140 AC_MSG_TRY_COMPILE([for struct option], pkg_cv_have_struct_option,
141 [ #include <getopt.h> ], [ struct option X; ], 141 [ #include <getopt.h> ], [ struct option X; ],
142 [pkg_use_nbcompat_getopt_long=no], 142 [pkg_use_nbcompat_getopt_long=no],
143 [pkg_use_nbcompat_getopt_long=yes]) 143 [pkg_use_nbcompat_getopt_long=yes])
144]) 144])
145 145
146if test $pkg_use_nbcompat_getopt_long = yes; then 146if test $pkg_use_nbcompat_getopt_long = yes; then
147 AC_DEFINE(HAVE_NBCOMPAT_GETOPT_LONG) 147 AC_DEFINE(HAVE_NBCOMPAT_GETOPT_LONG)
148 AH_TEMPLATE([HAVE_NBCOMPAT_GETOPT_LONG], [ 148 AH_TEMPLATE([HAVE_NBCOMPAT_GETOPT_LONG], [
149 Define to 1 if the `getopt_long' function is 149 Define to 1 if the `getopt_long' function is
150 built into the library. 150 built into the library.
151 ]) 151 ])
152 AC_LIBOBJ(getopt_long) 152 AC_LIBOBJ(getopt_long)
153fi 153fi
154 154
155dnl Check that this vis.h has *vis()-related functions because Solaris' 155dnl Check that this vis.h has *vis()-related functions because Solaris'
156dnl vis.h doesn't. Also, only consider the header found if it defines 156dnl vis.h doesn't. Also, only consider the header found if it defines
157dnl all of the functions that we need. 157dnl all of the functions that we need.
158dnl 158dnl
159pkg_use_nbcompat_vis=yes 159pkg_use_nbcompat_vis=yes
160AC_CHECK_HEADERS([vis.h], [ 160AC_CHECK_HEADERS([vis.h], [
161 AC_MSG_TRY_COMPILE([for VIS_WHITE in vis.h], pkg_cv_have_vis_white, [ 161 AC_MSG_TRY_COMPILE([for VIS_WHITE in vis.h], pkg_cv_have_vis_white, [
162 #include <sys/types.h> 162 #include <sys/types.h>
163 #include <vis.h> 163 #include <vis.h>
164 ], [ int X = VIS_WHITE; ], [ 164 ], [ int X = VIS_WHITE; ], [
165 AC_CHECK_FUNCS([strunvis strvis strsvis svis unvis vis]) 165 AC_CHECK_FUNCS([strunvis strvis strsvis svis unvis vis])
166 AC_CHECK_FUNCS([strunvis strvis strsvis svis unvis vis], 166 AC_CHECK_FUNCS([strunvis strvis strsvis svis unvis vis],
167 [pkg_use_nbcompat_vis=no], 167 [pkg_use_nbcompat_vis=no],
168 [pkg_use_nbcompat_vis=yes; break]) 168 [pkg_use_nbcompat_vis=yes; break])
169 ]) 169 ])
170]) 170])
171 171
172if test $pkg_use_nbcompat_vis = yes; then 172if test $pkg_use_nbcompat_vis = yes; then
173 AC_DEFINE(HAVE_NBCOMPAT_VIS) 173 AC_DEFINE(HAVE_NBCOMPAT_VIS)
174 AH_TEMPLATE([HAVE_NBCOMPAT_VIS], [ 174 AH_TEMPLATE([HAVE_NBCOMPAT_VIS], [
175 Define to 1 if the `vis' function is built into the library. 175 Define to 1 if the `vis' function is built into the library.
176 ]) 176 ])
177 AC_LIBOBJ(vis) 177 AC_LIBOBJ(vis)
178 AC_LIBOBJ(unvis) 178 AC_LIBOBJ(unvis)
179fi 179fi
180 180
181dnl Checks for typedefs, structures, and compiler characteristics. 181dnl Checks for typedefs, structures, and compiler characteristics.
182AC_C___ATTRIBUTE__ 182AC_C___ATTRIBUTE__
183AC_TYPE_SIZE_T 183AC_TYPE_SIZE_T
184AC_TYPE_UINTPTR_T 184AC_TYPE_UINTPTR_T
185AC_CHECK_TYPES([long long, long double, int8_t, int16_t, int32_t, int64_t, u_int8_t, u_int16_t, u_int32_t, u_int64_t, uint8_t, uint16_t, uint32_t, uint64_t],[],[], 185AC_CHECK_TYPES([long long, long double, int8_t, int16_t, int32_t, int64_t, u_int8_t, u_int16_t, u_int32_t, u_int64_t, uint8_t, uint16_t, uint32_t, uint64_t],[],[],
186[#if STDC_HEADERS 186[#if STDC_HEADERS
187#include <stdlib.h> 187#include <stdlib.h>
188#include <stddef.h> 188#include <stddef.h>
189#endif 189#endif
190#if HAVE_INTTYPES_H 190#if HAVE_INTTYPES_H
191#include <inttypes.h> 191#include <inttypes.h>
192#endif 192#endif
193#if HAVE_SYS_TYPES_H 193#if HAVE_SYS_TYPES_H
194#include <sys/types.h> 194#include <sys/types.h>
195#endif 195#endif
196#if HAVE_SYS_BITYPES_H 196#if HAVE_SYS_BITYPES_H
197#include <sys/bitypes.h> 197#include <sys/bitypes.h>
198#endif]) 198#endif])
199AC_CHECK_TYPES([fsid_t],[],[], 199AC_CHECK_TYPES([fsid_t],[],[],
200[#if HAVE_SYS_TYPES_H 200[#if HAVE_SYS_TYPES_H
201#include <sys/types.h> 201#include <sys/types.h>
202#endif 202#endif
203#if HAVE_SYS_PARAM_H 203#if HAVE_SYS_PARAM_H
204#include <sys/param.h> 204#include <sys/param.h>
205#endif 205#endif
206#if HAVE_SYS_MOUNT_H 206#if HAVE_SYS_MOUNT_H
207#include <sys/mount.h> 207#include <sys/mount.h>
208#endif 208#endif
209#if HAVE_SYS_VFS_H 209#if HAVE_SYS_VFS_H
210#include <sys/vfs.h> 210#include <sys/vfs.h>
211#endif]) 211#endif])
212AC_C_BIGENDIAN 212AC_C_BIGENDIAN
213AC_CHECK_SIZEOF(off_t, 0) 213AC_CHECK_SIZEOF(off_t, 0)
214 214
215# Checks for library functions. 215# Checks for library functions.
216AC_FUNC_MALLOC 216AC_FUNC_MALLOC
217AC_FUNC_STRERROR_R 217AC_FUNC_STRERROR_R
 218AC_FUNC_VFORK
218AC_FUNC_VPRINTF 219AC_FUNC_VPRINTF
219 220
220AC_REPLACE_FUNCS([asprintf err fgetln fnmatch fparseln getenv isblank \ 221AC_REPLACE_FUNCS([asprintf err fgetln fnmatch fparseln getenv isblank \
221 lchflags lchmod lchown lutimes mkdtemp mkstemp setenv setgroupent \ 222 lchflags lchmod lchown lutimes mkdtemp mkstemp setenv setgroupent \
222 setpassent setprogname snprintf statvfs strdup strerror strlcat \ 223 setpassent setprogname snprintf statvfs strdup strerror strlcat \
223 strlcpy strmode strsep strtoll unsetenv usleep utimes warn 224 strlcpy strmode strsep strtoll unsetenv usleep utimes warn
224]) 225])
225 226
226AC_CHECK_FUNCS([getenv setenv unsetenv], [:], [ 227AC_CHECK_FUNCS([getenv setenv unsetenv], [:], [
227 AC_LIBOBJ(findenv) 228 AC_LIBOBJ(findenv)
228 break 229 break
229]) 230])
230 231
231AC_CHECK_FUNCS([mkdtemp mkstemp], [:], [ 232AC_CHECK_FUNCS([mkdtemp mkstemp], [:], [
232 AC_LIBOBJ(gettemp) 233 AC_LIBOBJ(gettemp)
233 break 234 break
234]) 235])
235 236
236AC_CHECK_FUNCS([bcopy bzero memset memcpy setlocale]) 237AC_CHECK_FUNCS([bcopy bzero memset memcpy setlocale])
237AC_CHECK_FUNCS([getmode setmode]) 238AC_CHECK_FUNCS([getmode setmode])
238AC_CHECK_FUNCS([getmode setmode], [:], [ 239AC_CHECK_FUNCS([getmode setmode], [:], [
239 AC_LIBOBJ(setmode) 240 AC_LIBOBJ(setmode)
240 break 241 break
241]) 242])
242 243
243AC_CHECK_FUNCS([gid_from_group group_from_gid pwcache_groupdb \ 244AC_CHECK_FUNCS([gid_from_group group_from_gid pwcache_groupdb \
244 pwcache_userdb uid_from_user user_from_uid \ 245 pwcache_userdb uid_from_user user_from_uid \
245]) 246])
246AC_CHECK_FUNCS([gid_from_group group_from_gid pwcache_groupdb \ 247AC_CHECK_FUNCS([gid_from_group group_from_gid pwcache_groupdb \
247 pwcache_userdb uid_from_user user_from_uid \ 248 pwcache_userdb uid_from_user user_from_uid \
248], [:], [ 249], [:], [
249 AC_LIBOBJ(pwcache) 250 AC_LIBOBJ(pwcache)
250 break 251 break
251]) 252])
252 253
253AC_CHECK_FUNC(fts_open, [:], [ 254AC_CHECK_FUNC(fts_open, [:], [
254 AC_DEFINE(HAVE_NBCOMPAT_FTS, 1) 255 AC_DEFINE(HAVE_NBCOMPAT_FTS, 1)
255 AH_TEMPLATE([HAVE_NBCOMPAT_FTS], [ 256 AH_TEMPLATE([HAVE_NBCOMPAT_FTS], [
256 Define to 1 if the `fts_*' functions are built into the 257 Define to 1 if the `fts_*' functions are built into the
257 library. 258 library.
258 ]) 259 ])
259 AC_LIBOBJ(fts) 260 AC_LIBOBJ(fts)
260]) 261])
261 262
262# Handle Darwin 7 having a poll() compatibility function. Be 263# Handle Darwin 7 having a poll() compatibility function. Be
263# conservative -- if we don't find one of <poll.h> or <sys/poll.h>, then 264# conservative -- if we don't find one of <poll.h> or <sys/poll.h>, then
264# use our own poll() implementation. 265# use our own poll() implementation.
265# 266#
266pkg_cv_have_poll_h=no 267pkg_cv_have_poll_h=no
267AC_CHECK_HEADERS([poll.h sys/poll.h]) 268AC_CHECK_HEADERS([poll.h sys/poll.h])
268AC_CHECK_HEADERS([poll.h sys/poll.h], [pkg_cv_have_poll_h=yes]) 269AC_CHECK_HEADERS([poll.h sys/poll.h], [pkg_cv_have_poll_h=yes])
269 270
270pkg_use_nbcompat_poll=yes 271pkg_use_nbcompat_poll=yes
271if test $pkg_cv_have_poll_h = yes; then 272if test $pkg_cv_have_poll_h = yes; then
272 pkg_use_nbcompat_poll=no 273 pkg_use_nbcompat_poll=no
273fi 274fi
274 275
275if test $pkg_cv_have_poll_h = yes -o test $pkg_cv_have_sys_poll_h = yes; then 276if test $pkg_cv_have_poll_h = yes -o test $pkg_cv_have_sys_poll_h = yes; then
276 AC_CHECK_FUNC(poll, [ 277 AC_CHECK_FUNC(poll, [
277 AC_MSG_TRY_COMPILE([if poll() is implemented natively], 278 AC_MSG_TRY_COMPILE([if poll() is implemented natively],
278 pkg_cv_native_poll, 279 pkg_cv_native_poll,
279 [ #if HAVE_POLL_H 280 [ #if HAVE_POLL_H
280 #include <poll.h> 281 #include <poll.h>
281 #endif 282 #endif
282 #if HAVE_SYS_POLL_H 283 #if HAVE_SYS_POLL_H
283 #include <sys/poll.h> 284 #include <sys/poll.h>
284 #endif 285 #endif
285 ], 286 ],
286 [ #ifdef _POLL_EMUL_H_ 287 [ #ifdef _POLL_EMUL_H_
287 #error "poll() is emulated" 288 #error "poll() is emulated"
288 #endif 289 #endif
289 ], 290 ],
290 [pkg_use_nbcompat_poll=no], 291 [pkg_use_nbcompat_poll=no],
291 [pkg_use_nbcompat_poll=yes]) 292 [pkg_use_nbcompat_poll=yes])
292 ]) 293 ])
293fi 294fi
294 295
295if test $pkg_use_nbcompat_poll = yes; then 296if test $pkg_use_nbcompat_poll = yes; then
296 AC_DEFINE(HAVE_NBCOMPAT_POLL, 1) 297 AC_DEFINE(HAVE_NBCOMPAT_POLL, 1)
297 AH_TEMPLATE([HAVE_NBCOMPAT_POLL], [ 298 AH_TEMPLATE([HAVE_NBCOMPAT_POLL], [
298 Define to 1 if the `poll' function is built into the library. 299 Define to 1 if the `poll' function is built into the library.
299 ]) 300 ])
300 AC_LIBOBJ(poll) 301 AC_LIBOBJ(poll)
301fi 302fi
302 303
303AC_CHECK_FUNCS([getpassphrase getpgrp memmove select]) 304AC_CHECK_FUNCS([getpassphrase getpgrp memmove select])
304 305
305AC_CHECK_FUNC(getpgrp, [AC_FUNC_GETPGRP]) 306AC_CHECK_FUNC(getpgrp, [AC_FUNC_GETPGRP])
306 307
307AC_CHECK_MEMBERS([struct statfs.f_fsize], [:], [:], 308AC_CHECK_MEMBERS([struct statfs.f_fsize], [:], [:],
308 [ #include <sys/statfs.h> ]) 309 [ #include <sys/statfs.h> ])
309AC_CHECK_MEMBERS([struct statfs.f_iosize], [:], [:], 310AC_CHECK_MEMBERS([struct statfs.f_iosize], [:], [:],
310 [ #include <sys/statfs.h> ]) 311 [ #include <sys/statfs.h> ])
311AC_CHECK_MEMBERS([struct dirent.d_namlen, DIR.dd_fd], [:], [:], 312AC_CHECK_MEMBERS([struct dirent.d_namlen, DIR.dd_fd], [:], [:],
312 [ #include <sys/types.h> 313 [ #include <sys/types.h>
313 #if HAVE_DIRENT_H 314 #if HAVE_DIRENT_H
314 # include <dirent.h> 315 # include <dirent.h>
315 #else 316 #else
316 # define dirent direct 317 # define dirent direct
317 # if HAVE_SYS_NDIR_H 318 # if HAVE_SYS_NDIR_H
318 # include <sys/ndir.h> 319 # include <sys/ndir.h>
319 # endif 320 # endif
320 # if HAVE_SYS_DIR_H 321 # if HAVE_SYS_DIR_H
321 # include <sys/dir.h> 322 # include <sys/dir.h>
322 # endif 323 # endif
323 # if HAVE_NDIR_H 324 # if HAVE_NDIR_H
324 # include <ndir.h> 325 # include <ndir.h>
325 # endif 326 # endif
326 #endif ]) 327 #endif ])
327 328
328AC_MSG_CHECKING([for dirfd]) 329AC_MSG_CHECKING([for dirfd])
329AC_TRY_LINK( 330AC_TRY_LINK(
330 [ #include <sys/types.h> 331 [ #include <sys/types.h>
331 #if HAVE_DIRENT_H 332 #if HAVE_DIRENT_H
332 # include <dirent.h> 333 # include <dirent.h>
333 #else 334 #else
334 # define dirent direct 335 # define dirent direct
335 # if HAVE_SYS_NDIR_H 336 # if HAVE_SYS_NDIR_H
336 # include <sys/ndir.h> 337 # include <sys/ndir.h>
337 # endif 338 # endif
338 # if HAVE_SYS_DIR_H 339 # if HAVE_SYS_DIR_H
339 # include <sys/dir.h> 340 # include <sys/dir.h>
340 # endif 341 # endif
341 # if HAVE_NDIR_H 342 # if HAVE_NDIR_H
342 # include <ndir.h> 343 # include <ndir.h>
343 # endif 344 # endif
344 #endif 345 #endif
345 int dummy_var; 346 int dummy_var;
346 ], [ dummy_var = dirfd((DIR *)0) ], 347 ], [ dummy_var = dirfd((DIR *)0) ],
347 [ 348 [
348 AC_MSG_RESULT(yes) 349 AC_MSG_RESULT(yes)
349 AC_DEFINE([HAVE_DIRFD], [1], [Define if dirfd is either a function or a macro.]) 350 AC_DEFINE([HAVE_DIRFD], [1], [Define if dirfd is either a function or a macro.])
350 ], [ AC_MSG_RESULT(no) ] 351 ], [ AC_MSG_RESULT(no) ]
351 352
352) 353)
353 354
354if test $ac_cv_type_long_long = yes; then 355if test $ac_cv_type_long_long = yes; then
355 356
356dnl We assume that if sprintf() supports %lld or %qd, 357dnl We assume that if sprintf() supports %lld or %qd,
357dnl then all of *printf() does. If not, disable long long 358dnl then all of *printf() does. If not, disable long long
358dnl support because we don't know how to display it. 359dnl support because we don't know how to display it.
359 360
360 AC_MSG_CHECKING(*printf() support for %lld) 361 AC_MSG_CHECKING(*printf() support for %lld)
361 can_printf_longlong=no 362 can_printf_longlong=no
362 AC_TRY_RUN([ 363 AC_TRY_RUN([
363 #include <stdio.h> 364 #include <stdio.h>
364 int main() { 365 int main() {
365 char buf[100]; 366 char buf[100];
366 sprintf(buf, "%lld", 4294967300LL); 367 sprintf(buf, "%lld", 4294967300LL);
367 return (strcmp(buf, "4294967300")); 368 return (strcmp(buf, "4294967300"));
368 } 369 }
369 ], [ 370 ], [
370 AC_MSG_RESULT(yes) 371 AC_MSG_RESULT(yes)
371 can_printf_longlong=yes 372 can_printf_longlong=yes
372 ], [ 373 ], [
373 AC_MSG_RESULT(no) 374 AC_MSG_RESULT(no)
374 ], [:]) 375 ], [:])
375 376
376 if test $can_printf_longlong != yes; then 377 if test $can_printf_longlong != yes; then
377 AC_MSG_CHECKING(*printf() support for %qd) 378 AC_MSG_CHECKING(*printf() support for %qd)
378 AC_TRY_RUN([ 379 AC_TRY_RUN([
379 #include <stdio.h> 380 #include <stdio.h>
380 int main() { 381 int main() {
381 char buf[100]; 382 char buf[100];
382 sprintf(buf, "%qd", 4294967300LL); 383 sprintf(buf, "%qd", 4294967300LL);
383 return (strcmp(buf, "4294967300")); 384 return (strcmp(buf, "4294967300"));
384 } 385 }
385 ], [ 386 ], [
386 AC_MSG_RESULT(yes) 387 AC_MSG_RESULT(yes)
387 can_printf_longlong=yes 388 can_printf_longlong=yes
388 AC_DEFINE(HAVE_PRINTF_QD, 1) 389 AC_DEFINE(HAVE_PRINTF_QD, 1)
389 AH_TEMPLATE([HAVE_PRINTF_QD], [ 390 AH_TEMPLATE([HAVE_PRINTF_QD], [
390 Define to 1 if *printf() uses %qd to print 391 Define to 1 if *printf() uses %qd to print
391 `long long' (otherwise uses %lld). 392 `long long' (otherwise uses %lld).
392 ]) 393 ])
393 ], [ 394 ], [
394 AC_MSG_RESULT(no) 395 AC_MSG_RESULT(no)
395 ], [:]) 396 ], [:])
396 fi 397 fi
397 398
398 if test $can_printf_longlong = yes; then 399 if test $can_printf_longlong = yes; then
399 AC_DEFINE(HAVE_WORKING_LONG_LONG, 1) 400 AC_DEFINE(HAVE_WORKING_LONG_LONG, 1)
400 AH_TEMPLATE([HAVE_WORKING_LONG_LONG], [ 401 AH_TEMPLATE([HAVE_WORKING_LONG_LONG], [
401 Define to 1 if `long long' is supported and 402 Define to 1 if `long long' is supported and
402 sizeof(off_t) >= 8. 403 sizeof(off_t) >= 8.
403 ]) 404 ])
404 AC_REPLACE_FUNCS(strtoll) 405 AC_REPLACE_FUNCS(strtoll)
405 fi 406 fi
406 407
407fi 408fi
408 409
409 410
410dnl Check if vsnprintf returns the number of bytes that would have been 411dnl Check if vsnprintf returns the number of bytes that would have been
411dnl written, had the buffer been large enough. 412dnl written, had the buffer been large enough.
412 413
413AC_MSG_CHECKING(if vsnprintf is standards compliant) 414AC_MSG_CHECKING(if vsnprintf is standards compliant)
414have_std_vsnprintf=no 415have_std_vsnprintf=no
415AC_TRY_RUN([ 416AC_TRY_RUN([
416#include <stdio.h> 417#include <stdio.h>
417#include <stdlib.h> 418#include <stdlib.h>
418#include <stdarg.h> 419#include <stdarg.h>
419void dotest(char *fmt, ...) { 420void dotest(char *fmt, ...) {
420 char buf[3]; 421 char buf[3];
421 va_list ap; 422 va_list ap;
422 va_start(ap, fmt); 423 va_start(ap, fmt);
423 exit(snprintf(buf, 3, fmt, ap) == 4 ? 0 : 1); 424 exit(snprintf(buf, 3, fmt, ap) == 4 ? 0 : 1);
424} 425}
425int main() { 426int main() {
426 dotest("test"); 427 dotest("test");
427} 428}
428], [ 429], [
429 AC_MSG_RESULT(yes) 430 AC_MSG_RESULT(yes)
430 have_std_vsnprintf=yes 431 have_std_vsnprintf=yes
431], [ 432], [
432 AC_MSG_RESULT(no) 433 AC_MSG_RESULT(no)
433], [:]) 434], [:])
434 435
435if test $have_std_vsnprintf = no; then 436if test $have_std_vsnprintf = no; then
436 AC_LIBOBJ(snprintf) 437 AC_LIBOBJ(snprintf)
437fi 438fi
438 439
439AC_CHECK_DECLS([optind, optreset], [:], [:], [ 440AC_CHECK_DECLS([optind, optreset], [:], [:], [
440 #include <stdio.h> 441 #include <stdio.h>
441 #include <stdlib.h> 442 #include <stdlib.h>
442 #include <unistd.h> 443 #include <unistd.h>
443]) 444])
444 445
445AH_BOTTOM([ 446AH_BOTTOM([
446/* NBCOMPAT template section follows. */ 447/* NBCOMPAT template section follows. */
447 448
448#ifndef HAVE___ATTRIBUTE__ 449#ifndef HAVE___ATTRIBUTE__
449# define __attribute__(x) 450# define __attribute__(x)
450#endif 451#endif
451]) 452])
452 453
453AC_CONFIG_FILES([Makefile]) 454AC_CONFIG_FILES([Makefile])
454AC_OUTPUT 455AC_OUTPUT

cvs diff -r1.19 -r1.20 pkgsrc/pkgtools/libnbcompat/files/nbcompat/config.h.in (switch to unified diff)

--- pkgsrc/pkgtools/libnbcompat/files/nbcompat/config.h.in 2007/09/21 19:51:58 1.19
+++ pkgsrc/pkgtools/libnbcompat/files/nbcompat/config.h.in 2008/02/21 16:50:08 1.20
@@ -1,538 +1,559 @@ @@ -1,538 +1,559 @@
1/* nbcompat/config.h.in. Generated from configure.ac by autoheader. */ 1/* nbcompat/config.h.in. Generated from configure.ac by autoheader. */
2 2
3/* Define to 1 if the `getpgrp' function requires zero arguments. */ 3/* Define to 1 if the `getpgrp' function requires zero arguments. */
4#undef GETPGRP_VOID 4#undef GETPGRP_VOID
5 5
6/* Define to 1 if you have the <alloca.h> header file. */ 6/* Define to 1 if you have the <alloca.h> header file. */
7#undef HAVE_ALLOCA_H 7#undef HAVE_ALLOCA_H
8 8
9/* Define to 1 if you have the `asprintf' function. */ 9/* Define to 1 if you have the `asprintf' function. */
10#undef HAVE_ASPRINTF 10#undef HAVE_ASPRINTF
11 11
12/* Define to 1 if you have the <assert.h> header file. */ 12/* Define to 1 if you have the <assert.h> header file. */
13#undef HAVE_ASSERT_H 13#undef HAVE_ASSERT_H
14 14
15/* Define to 1 if you have the `bcopy' function. */ 15/* Define to 1 if you have the `bcopy' function. */
16#undef HAVE_BCOPY 16#undef HAVE_BCOPY
17 17
18/* Define to 1 if you have the <bind/bitypes.h> header file. */ 18/* Define to 1 if you have the <bind/bitypes.h> header file. */
19#undef HAVE_BIND_BITYPES_H 19#undef HAVE_BIND_BITYPES_H
20 20
21/* Define to 1 if you have the `bzero' function. */ 21/* Define to 1 if you have the `bzero' function. */
22#undef HAVE_BZERO 22#undef HAVE_BZERO
23 23
24/* Define to 1 if you have the <ctype.h> header file. */ 24/* Define to 1 if you have the <ctype.h> header file. */
25#undef HAVE_CTYPE_H 25#undef HAVE_CTYPE_H
26 26
27/* Define to 1 if you have the declaration of `optind', and to 0 if you don't. 27/* Define to 1 if you have the declaration of `optind', and to 0 if you don't.
28 */ 28 */
29#undef HAVE_DECL_OPTIND 29#undef HAVE_DECL_OPTIND
30 30
31/* Define to 1 if you have the declaration of `optreset', and to 0 if you 31/* Define to 1 if you have the declaration of `optreset', and to 0 if you
32 don't. */ 32 don't. */
33#undef HAVE_DECL_OPTRESET 33#undef HAVE_DECL_OPTRESET
34 34
35/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you 35/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
36 don't. */ 36 don't. */
37#undef HAVE_DECL_STRERROR_R 37#undef HAVE_DECL_STRERROR_R
38 38
39/* Define to 1 if you have the <dirent.h> header file. */ 39/* Define to 1 if you have the <dirent.h> header file. */
40#undef HAVE_DIRENT_H 40#undef HAVE_DIRENT_H
41 41
42/* Define if dirfd is either a function or a macro. */ 42/* Define if dirfd is either a function or a macro. */
43#undef HAVE_DIRFD 43#undef HAVE_DIRFD
44 44
45/* Define to 1 if `dd_fd' is member of `DIR'. */ 45/* Define to 1 if `dd_fd' is member of `DIR'. */
46#undef HAVE_DIR_DD_FD 46#undef HAVE_DIR_DD_FD
47 47
48/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ 48/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
49#undef HAVE_DOPRNT 49#undef HAVE_DOPRNT
50 50
51/* Define to 1 if you have the `err' function. */ 51/* Define to 1 if you have the `err' function. */
52#undef HAVE_ERR 52#undef HAVE_ERR
53 53
54/* Define to 1 if you have the <errno.h> header file. */ 54/* Define to 1 if you have the <errno.h> header file. */
55#undef HAVE_ERRNO_H 55#undef HAVE_ERRNO_H
56 56
57/* Define to 1 if you have the <err.h> header file. */ 57/* Define to 1 if you have the <err.h> header file. */
58#undef HAVE_ERR_H 58#undef HAVE_ERR_H
59 59
60/* Define to 1 if you have the <fcntl.h> header file. */ 60/* Define to 1 if you have the <fcntl.h> header file. */
61#undef HAVE_FCNTL_H 61#undef HAVE_FCNTL_H
62 62
63/* Define to 1 if you have the `fgetln' function. */ 63/* Define to 1 if you have the `fgetln' function. */
64#undef HAVE_FGETLN 64#undef HAVE_FGETLN
65 65
66/* Define to 1 if you have the `fnmatch' function. */ 66/* Define to 1 if you have the `fnmatch' function. */
67#undef HAVE_FNMATCH 67#undef HAVE_FNMATCH
68 68
69/* Define to 1 if you have the <fnmatch.h> header file. */ 69/* Define to 1 if you have the <fnmatch.h> header file. */
70#undef HAVE_FNMATCH_H 70#undef HAVE_FNMATCH_H
71 71
 72/* Define to 1 if you have the `fork' function. */
 73#undef HAVE_FORK
 74
72/* Define to 1 if you have the `fparseln' function. */ 75/* Define to 1 if you have the `fparseln' function. */
73#undef HAVE_FPARSELN 76#undef HAVE_FPARSELN
74 77
75/* Define to 1 if the system has the type `fsid_t'. */ 78/* Define to 1 if the system has the type `fsid_t'. */
76#undef HAVE_FSID_T 79#undef HAVE_FSID_T
77 80
78/* Define to 1 if you have the <fts.h> header file. */ 81/* Define to 1 if you have the <fts.h> header file. */
79#undef HAVE_FTS_H 82#undef HAVE_FTS_H
80 83
81/* Define to 1 if you have the `getenv' function. */ 84/* Define to 1 if you have the `getenv' function. */
82#undef HAVE_GETENV 85#undef HAVE_GETENV
83 86
84/* Define to 1 if you have the `getmode' function. */ 87/* Define to 1 if you have the `getmode' function. */
85#undef HAVE_GETMODE 88#undef HAVE_GETMODE
86 89
87/* Define to 1 if you have the <getopt.h> header file. */ 90/* Define to 1 if you have the <getopt.h> header file. */
88#undef HAVE_GETOPT_H 91#undef HAVE_GETOPT_H
89 92
90/* Define to 1 if you have the `getpassphrase' function. */ 93/* Define to 1 if you have the `getpassphrase' function. */
91#undef HAVE_GETPASSPHRASE 94#undef HAVE_GETPASSPHRASE
92 95
93/* Define to 1 if you have the `getpgrp' function. */ 96/* Define to 1 if you have the `getpgrp' function. */
94#undef HAVE_GETPGRP 97#undef HAVE_GETPGRP
95 98
96/* Define to 1 if you have the `gid_from_group' function. */ 99/* Define to 1 if you have the `gid_from_group' function. */
97#undef HAVE_GID_FROM_GROUP 100#undef HAVE_GID_FROM_GROUP
98 101
99/* Define to 1 if you have the <glob.h> header file. */ 102/* Define to 1 if you have the <glob.h> header file. */
100#undef HAVE_GLOB_H 103#undef HAVE_GLOB_H
101 104
102/* Define to 1 if you have the `group_from_gid' function. */ 105/* Define to 1 if you have the `group_from_gid' function. */
103#undef HAVE_GROUP_FROM_GID 106#undef HAVE_GROUP_FROM_GID
104 107
105/* Define to 1 if you have the <grp.h> header file. */ 108/* Define to 1 if you have the <grp.h> header file. */
106#undef HAVE_GRP_H 109#undef HAVE_GRP_H
107 110
108/* Define to 1 if the system has the type `int16_t'. */ 111/* Define to 1 if the system has the type `int16_t'. */
109#undef HAVE_INT16_T 112#undef HAVE_INT16_T
110 113
111/* Define to 1 if the system has the type `int32_t'. */ 114/* Define to 1 if the system has the type `int32_t'. */
112#undef HAVE_INT32_T 115#undef HAVE_INT32_T
113 116
114/* Define to 1 if the system has the type `int64_t'. */ 117/* Define to 1 if the system has the type `int64_t'. */
115#undef HAVE_INT64_T 118#undef HAVE_INT64_T
116 119
117/* Define to 1 if the system has the type `int8_t'. */ 120/* Define to 1 if the system has the type `int8_t'. */
118#undef HAVE_INT8_T 121#undef HAVE_INT8_T
119 122
120/* Define to 1 if you have the <inttypes.h> header file. */ 123/* Define to 1 if you have the <inttypes.h> header file. */
121#undef HAVE_INTTYPES_H 124#undef HAVE_INTTYPES_H
122 125
123/* Define to 1 if you have the `isblank' function. */ 126/* Define to 1 if you have the `isblank' function. */
124#undef HAVE_ISBLANK 127#undef HAVE_ISBLANK
125 128
126/* Define to 1 if you have the `lchflags' function. */ 129/* Define to 1 if you have the `lchflags' function. */
127#undef HAVE_LCHFLAGS 130#undef HAVE_LCHFLAGS
128 131
129/* Define to 1 if you have the `lchmod' function. */ 132/* Define to 1 if you have the `lchmod' function. */
130#undef HAVE_LCHMOD 133#undef HAVE_LCHMOD
131 134
132/* Define to 1 if you have the `lchown' function. */ 135/* Define to 1 if you have the `lchown' function. */
133#undef HAVE_LCHOWN 136#undef HAVE_LCHOWN
134 137
135/* Define to 1 if you have the `util' library (-lutil). */ 138/* Define to 1 if you have the `util' library (-lutil). */
136#undef HAVE_LIBUTIL 139#undef HAVE_LIBUTIL
137 140
138/* Define to 1 if you have the <libutil.h> header file. */ 141/* Define to 1 if you have the <libutil.h> header file. */
139#undef HAVE_LIBUTIL_H 142#undef HAVE_LIBUTIL_H
140 143
141/* Define to 1 if you have the <limits.h> header file. */ 144/* Define to 1 if you have the <limits.h> header file. */
142#undef HAVE_LIMITS_H 145#undef HAVE_LIMITS_H
143 146
144/* Define to 1 if the system has the type `long double'. */ 147/* Define to 1 if the system has the type `long double'. */
145#undef HAVE_LONG_DOUBLE 148#undef HAVE_LONG_DOUBLE
146 149
147/* Define to 1 if the system has the type `long long'. */ 150/* Define to 1 if the system has the type `long long'. */
148#undef HAVE_LONG_LONG 151#undef HAVE_LONG_LONG
149 152
150/* Define to 1 if you have the `lutimes' function. */ 153/* Define to 1 if you have the `lutimes' function. */
151#undef HAVE_LUTIMES 154#undef HAVE_LUTIMES
152 155
153/* Define to 1 if you have the <machine/endian.h> header file. */ 156/* Define to 1 if you have the <machine/endian.h> header file. */
154#undef HAVE_MACHINE_ENDIAN_H 157#undef HAVE_MACHINE_ENDIAN_H
155 158
156/* Define to 1 if your system has a GNU libc compatible `malloc' function, and 159/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
157 to 0 otherwise. */ 160 to 0 otherwise. */
158#undef HAVE_MALLOC 161#undef HAVE_MALLOC
159 162
160/* Define to 1 if you have the <md5.h> header file. */ 163/* Define to 1 if you have the <md5.h> header file. */
161#undef HAVE_MD5_H 164#undef HAVE_MD5_H
162 165
163/* Define to 1 if you have the `memcpy' function. */ 166/* Define to 1 if you have the `memcpy' function. */
164#undef HAVE_MEMCPY 167#undef HAVE_MEMCPY
165 168
166/* Define to 1 if you have the `memmove' function. */ 169/* Define to 1 if you have the `memmove' function. */
167#undef HAVE_MEMMOVE 170#undef HAVE_MEMMOVE
168 171
169/* Define to 1 if you have the <memory.h> header file. */ 172/* Define to 1 if you have the <memory.h> header file. */
170#undef HAVE_MEMORY_H 173#undef HAVE_MEMORY_H
171 174
172/* Define to 1 if you have the `memset' function. */ 175/* Define to 1 if you have the `memset' function. */
173#undef HAVE_MEMSET 176#undef HAVE_MEMSET
174 177
175/* Define to 1 if you have the `mkdtemp' function. */ 178/* Define to 1 if you have the `mkdtemp' function. */
176#undef HAVE_MKDTEMP 179#undef HAVE_MKDTEMP
177 180
178/* Define to 1 if you have the `mkstemp' function. */ 181/* Define to 1 if you have the `mkstemp' function. */
179#undef HAVE_MKSTEMP 182#undef HAVE_MKSTEMP
180 183
181/* Define to 1 if the `fts_*' functions are built into the library. */ 184/* Define to 1 if the `fts_*' functions are built into the library. */
182#undef HAVE_NBCOMPAT_FTS 185#undef HAVE_NBCOMPAT_FTS
183 186
184/* Define to 1 if the `getopt_long' function is built into the library. */ 187/* Define to 1 if the `getopt_long' function is built into the library. */
185#undef HAVE_NBCOMPAT_GETOPT_LONG 188#undef HAVE_NBCOMPAT_GETOPT_LONG
186 189
187/* Define to 1 if the `glob' function is built into the library. */ 190/* Define to 1 if the `glob' function is built into the library. */
188#undef HAVE_NBCOMPAT_GLOB 191#undef HAVE_NBCOMPAT_GLOB
189 192
190/* Define to 1 if the `MD5*' functions are built into the library. */ 193/* Define to 1 if the `MD5*' functions are built into the library. */
191#undef HAVE_NBCOMPAT_MD5 194#undef HAVE_NBCOMPAT_MD5
192 195
193/* Define to 1 if the `MD5Init' function is built into the library. */ 196/* Define to 1 if the `MD5Init' function is built into the library. */
194#undef HAVE_NBCOMPAT_MD5INIT 197#undef HAVE_NBCOMPAT_MD5INIT
195 198
196/* Define to 1 if the `poll' function is built into the library. */ 199/* Define to 1 if the `poll' function is built into the library. */
197#undef HAVE_NBCOMPAT_POLL 200#undef HAVE_NBCOMPAT_POLL
198 201
199/* Define to 1 if the `queue' macros are supplied by the library. */ 202/* Define to 1 if the `queue' macros are supplied by the library. */
200#undef HAVE_NBCOMPAT_QUEUE 203#undef HAVE_NBCOMPAT_QUEUE
201 204
202/* Define to 1 if the `regex' functions are built into the library. */ 205/* Define to 1 if the `regex' functions are built into the library. */
203#undef HAVE_NBCOMPAT_REGEX 206#undef HAVE_NBCOMPAT_REGEX
204 207
205/* Define to 1 if the `RMD160*' functions are built into the library. */ 208/* Define to 1 if the `RMD160*' functions are built into the library. */
206#undef HAVE_NBCOMPAT_RMD160 209#undef HAVE_NBCOMPAT_RMD160
207 210
208/* Define to 1 if the `SHA1*' functions are built into the library. */ 211/* Define to 1 if the `SHA1*' functions are built into the library. */
209#undef HAVE_NBCOMPAT_SHA1 212#undef HAVE_NBCOMPAT_SHA1
210 213
211/* Define to 1 if the `SHA2*' functions are built into the library. */ 214/* Define to 1 if the `SHA2*' functions are built into the library. */
212#undef HAVE_NBCOMPAT_SHA2 215#undef HAVE_NBCOMPAT_SHA2
213 216
214/* Define to 1 if the `vis' function is built into the library. */ 217/* Define to 1 if the `vis' function is built into the library. */
215#undef HAVE_NBCOMPAT_VIS 218#undef HAVE_NBCOMPAT_VIS
216 219
217/* Define to 1 if you have the <ndir.h> header file. */ 220/* Define to 1 if you have the <ndir.h> header file. */
218#undef HAVE_NDIR_H 221#undef HAVE_NDIR_H
219 222
220/* Define to 1 if you have the <netinet/in6_machtypes.h> header file. */ 223/* Define to 1 if you have the <netinet/in6_machtypes.h> header file. */
221#undef HAVE_NETINET_IN6_MACHTYPES_H 224#undef HAVE_NETINET_IN6_MACHTYPES_H
222 225
223/* Define to 1 if you have the <paths.h> header file. */ 226/* Define to 1 if you have the <paths.h> header file. */
224#undef HAVE_PATHS_H 227#undef HAVE_PATHS_H
225 228
226/* Define to 1 if you have the <poll.h> header file. */ 229/* Define to 1 if you have the <poll.h> header file. */
227#undef HAVE_POLL_H 230#undef HAVE_POLL_H
228 231
229/* Define to 1 if *printf() uses %qd to print `long long' (otherwise uses 232/* Define to 1 if *printf() uses %qd to print `long long' (otherwise uses
230 %lld). */ 233 %lld). */
231#undef HAVE_PRINTF_QD 234#undef HAVE_PRINTF_QD
232 235
233/* Define to 1 if you have the `pwcache_groupdb' function. */ 236/* Define to 1 if you have the `pwcache_groupdb' function. */
234#undef HAVE_PWCACHE_GROUPDB 237#undef HAVE_PWCACHE_GROUPDB
235 238
236/* Define to 1 if you have the `pwcache_userdb' function. */ 239/* Define to 1 if you have the `pwcache_userdb' function. */
237#undef HAVE_PWCACHE_USERDB 240#undef HAVE_PWCACHE_USERDB
238 241
239/* Define to 1 if you have the <pwd.h> header file. */ 242/* Define to 1 if you have the <pwd.h> header file. */
240#undef HAVE_PWD_H 243#undef HAVE_PWD_H
241 244
242/* Define to 1 if you have the <regex.h> header file. */ 245/* Define to 1 if you have the <regex.h> header file. */
243#undef HAVE_REGEX_H 246#undef HAVE_REGEX_H
244 247
245/* Define to 1 if you have the <rmd160.h> header file. */ 248/* Define to 1 if you have the <rmd160.h> header file. */
246#undef HAVE_RMD160_H 249#undef HAVE_RMD160_H
247 250
248/* Define to 1 if you have the `select' function. */ 251/* Define to 1 if you have the `select' function. */
249#undef HAVE_SELECT 252#undef HAVE_SELECT
250 253
251/* Define to 1 if you have the `setenv' function. */ 254/* Define to 1 if you have the `setenv' function. */
252#undef HAVE_SETENV 255#undef HAVE_SETENV
253 256
254/* Define to 1 if you have the `setgroupent' function. */ 257/* Define to 1 if you have the `setgroupent' function. */
255#undef HAVE_SETGROUPENT 258#undef HAVE_SETGROUPENT
256 259
257/* Define to 1 if you have the `setlocale' function. */ 260/* Define to 1 if you have the `setlocale' function. */
258#undef HAVE_SETLOCALE 261#undef HAVE_SETLOCALE
259 262
260/* Define to 1 if you have the `setmode' function. */ 263/* Define to 1 if you have the `setmode' function. */
261#undef HAVE_SETMODE 264#undef HAVE_SETMODE
262 265
263/* Define to 1 if you have the `setpassent' function. */ 266/* Define to 1 if you have the `setpassent' function. */
264#undef HAVE_SETPASSENT 267#undef HAVE_SETPASSENT
265 268
266/* Define to 1 if you have the `setprogname' function. */ 269/* Define to 1 if you have the `setprogname' function. */
267#undef HAVE_SETPROGNAME 270#undef HAVE_SETPROGNAME
268 271
269/* Define to 1 if you have the <sha1.h> header file. */ 272/* Define to 1 if you have the <sha1.h> header file. */
270#undef HAVE_SHA1_H 273#undef HAVE_SHA1_H
271 274
272/* Define to 1 if you have the <sha2.h> header file. */ 275/* Define to 1 if you have the <sha2.h> header file. */
273#undef HAVE_SHA2_H 276#undef HAVE_SHA2_H
274 277
275/* Define to 1 if you have the <signal.h> header file. */ 278/* Define to 1 if you have the <signal.h> header file. */
276#undef HAVE_SIGNAL_H 279#undef HAVE_SIGNAL_H
277 280
278/* Define to 1 if you have the `snprintf' function. */ 281/* Define to 1 if you have the `snprintf' function. */
279#undef HAVE_SNPRINTF 282#undef HAVE_SNPRINTF
280 283
281/* Define to 1 if you have the `statvfs' function. */ 284/* Define to 1 if you have the `statvfs' function. */
282#undef HAVE_STATVFS 285#undef HAVE_STATVFS
283 286
284/* Define to 1 if you have the <stdarg.h> header file. */ 287/* Define to 1 if you have the <stdarg.h> header file. */
285#undef HAVE_STDARG_H 288#undef HAVE_STDARG_H
286 289
287/* Define to 1 if you have the <stddef.h> header file. */ 290/* Define to 1 if you have the <stddef.h> header file. */
288#undef HAVE_STDDEF_H 291#undef HAVE_STDDEF_H
289 292
290/* Define to 1 if you have the <stdint.h> header file. */ 293/* Define to 1 if you have the <stdint.h> header file. */
291#undef HAVE_STDINT_H 294#undef HAVE_STDINT_H
292 295
293/* Define to 1 if you have the <stdio.h> header file. */ 296/* Define to 1 if you have the <stdio.h> header file. */
294#undef HAVE_STDIO_H 297#undef HAVE_STDIO_H
295 298
296/* Define to 1 if you have the <stdlib.h> header file. */ 299/* Define to 1 if you have the <stdlib.h> header file. */
297#undef HAVE_STDLIB_H 300#undef HAVE_STDLIB_H
298 301
299/* Define to 1 if you have the `strdup' function. */ 302/* Define to 1 if you have the `strdup' function. */
300#undef HAVE_STRDUP 303#undef HAVE_STRDUP
301 304
302/* Define to 1 if you have the `strerror' function. */ 305/* Define to 1 if you have the `strerror' function. */
303#undef HAVE_STRERROR 306#undef HAVE_STRERROR
304 307
305/* Define to 1 if you have the `strerror_r' function. */ 308/* Define to 1 if you have the `strerror_r' function. */
306#undef HAVE_STRERROR_R 309#undef HAVE_STRERROR_R
307 310
308/* Define to 1 if you have the <strings.h> header file. */ 311/* Define to 1 if you have the <strings.h> header file. */
309#undef HAVE_STRINGS_H 312#undef HAVE_STRINGS_H
310 313
311/* Define to 1 if you have the <string.h> header file. */ 314/* Define to 1 if you have the <string.h> header file. */
312#undef HAVE_STRING_H 315#undef HAVE_STRING_H
313 316
314/* Define to 1 if you have the `strlcat' function. */ 317/* Define to 1 if you have the `strlcat' function. */
315#undef HAVE_STRLCAT 318#undef HAVE_STRLCAT
316 319
317/* Define to 1 if you have the `strlcpy' function. */ 320/* Define to 1 if you have the `strlcpy' function. */
318#undef HAVE_STRLCPY 321#undef HAVE_STRLCPY
319 322
320/* Define to 1 if you have the `strmode' function. */ 323/* Define to 1 if you have the `strmode' function. */
321#undef HAVE_STRMODE 324#undef HAVE_STRMODE
322 325
323/* Define to 1 if you have the `strsep' function. */ 326/* Define to 1 if you have the `strsep' function. */
324#undef HAVE_STRSEP 327#undef HAVE_STRSEP
325 328
326/* Define to 1 if you have the `strsvis' function. */ 329/* Define to 1 if you have the `strsvis' function. */
327#undef HAVE_STRSVIS 330#undef HAVE_STRSVIS
328 331
329/* Define to 1 if you have the `strtoll' function. */ 332/* Define to 1 if you have the `strtoll' function. */
330#undef HAVE_STRTOLL 333#undef HAVE_STRTOLL
331 334
332/* Define to 1 if `d_namlen' is member of `struct dirent'. */ 335/* Define to 1 if `d_namlen' is member of `struct dirent'. */
333#undef HAVE_STRUCT_DIRENT_D_NAMLEN 336#undef HAVE_STRUCT_DIRENT_D_NAMLEN
334 337
335/* Define to 1 if `f_fsize' is member of `struct statfs'. */ 338/* Define to 1 if `f_fsize' is member of `struct statfs'. */
336#undef HAVE_STRUCT_STATFS_F_FSIZE 339#undef HAVE_STRUCT_STATFS_F_FSIZE
337 340
338/* Define to 1 if `f_iosize' is member of `struct statfs'. */ 341/* Define to 1 if `f_iosize' is member of `struct statfs'. */
339#undef HAVE_STRUCT_STATFS_F_IOSIZE 342#undef HAVE_STRUCT_STATFS_F_IOSIZE
340 343
341/* Define to 1 if you have the `strunvis' function. */ 344/* Define to 1 if you have the `strunvis' function. */
342#undef HAVE_STRUNVIS 345#undef HAVE_STRUNVIS
343 346
344/* Define to 1 if you have the `strvis' function. */ 347/* Define to 1 if you have the `strvis' function. */
345#undef HAVE_STRVIS 348#undef HAVE_STRVIS
346 349
347/* Define to 1 if you have the `svis' function. */ 350/* Define to 1 if you have the `svis' function. */
348#undef HAVE_SVIS 351#undef HAVE_SVIS
349 352
350/* Define to 1 if you have the <sys/bitypes.h> header file. */ 353/* Define to 1 if you have the <sys/bitypes.h> header file. */
351#undef HAVE_SYS_BITYPES_H 354#undef HAVE_SYS_BITYPES_H
352 355
353/* Define to 1 if you have the <sys/byteorder.h> header file. */ 356/* Define to 1 if you have the <sys/byteorder.h> header file. */
354#undef HAVE_SYS_BYTEORDER_H 357#undef HAVE_SYS_BYTEORDER_H
355 358
356/* Define to 1 if you have the <sys/cdefs.h> header file. */ 359/* Define to 1 if you have the <sys/cdefs.h> header file. */
357#undef HAVE_SYS_CDEFS_H 360#undef HAVE_SYS_CDEFS_H
358 361
359/* Define to 1 if you have the <sys/dir.h> header file. */ 362/* Define to 1 if you have the <sys/dir.h> header file. */
360#undef HAVE_SYS_DIR_H 363#undef HAVE_SYS_DIR_H
361 364
362/* Define to 1 if you have the <sys/endian.h> header file. */ 365/* Define to 1 if you have the <sys/endian.h> header file. */
363#undef HAVE_SYS_ENDIAN_H 366#undef HAVE_SYS_ENDIAN_H
364 367
365/* Define to 1 if you have the <sys/file.h> header file. */ 368/* Define to 1 if you have the <sys/file.h> header file. */
366#undef HAVE_SYS_FILE_H 369#undef HAVE_SYS_FILE_H
367 370
368/* Define to 1 if you have the <sys/mkdev.h> header file. */ 371/* Define to 1 if you have the <sys/mkdev.h> header file. */
369#undef HAVE_SYS_MKDEV_H 372#undef HAVE_SYS_MKDEV_H
370 373
371/* Define to 1 if you have the <sys/mount.h> header file. */ 374/* Define to 1 if you have the <sys/mount.h> header file. */
372#undef HAVE_SYS_MOUNT_H 375#undef HAVE_SYS_MOUNT_H
373 376
374/* Define to 1 if you have the <sys/ndir.h> header file. */ 377/* Define to 1 if you have the <sys/ndir.h> header file. */
375#undef HAVE_SYS_NDIR_H 378#undef HAVE_SYS_NDIR_H
376 379
377/* Define to 1 if you have the <sys/param.h> header file. */ 380/* Define to 1 if you have the <sys/param.h> header file. */
378#undef HAVE_SYS_PARAM_H 381#undef HAVE_SYS_PARAM_H
379 382
380/* Define to 1 if you have the <sys/poll.h> header file. */ 383/* Define to 1 if you have the <sys/poll.h> header file. */
381#undef HAVE_SYS_POLL_H 384#undef HAVE_SYS_POLL_H
382 385
383/* Define to 1 if you have the <sys/queue.h> header file. */ 386/* Define to 1 if you have the <sys/queue.h> header file. */
384#undef HAVE_SYS_QUEUE_H 387#undef HAVE_SYS_QUEUE_H
385 388
386/* Define to 1 if you have the <sys/statfs.h> header file. */ 389/* Define to 1 if you have the <sys/statfs.h> header file. */
387#undef HAVE_SYS_STATFS_H 390#undef HAVE_SYS_STATFS_H
388 391
389/* Define to 1 if you have the <sys/statvfs.h> header file. */ 392/* Define to 1 if you have the <sys/statvfs.h> header file. */
390#undef HAVE_SYS_STATVFS_H 393#undef HAVE_SYS_STATVFS_H
391 394
392/* Define to 1 if you have the <sys/stat.h> header file. */ 395/* Define to 1 if you have the <sys/stat.h> header file. */
393#undef HAVE_SYS_STAT_H 396#undef HAVE_SYS_STAT_H
394 397
395/* Define to 1 if you have the <sys/time.h> header file. */ 398/* Define to 1 if you have the <sys/time.h> header file. */
396#undef HAVE_SYS_TIME_H 399#undef HAVE_SYS_TIME_H
397 400
398/* Define to 1 if you have the <sys/ttycom.h> header file. */ 401/* Define to 1 if you have the <sys/ttycom.h> header file. */
399#undef HAVE_SYS_TTYCOM_H 402#undef HAVE_SYS_TTYCOM_H
400 403
401/* Define to 1 if you have the <sys/types.h> header file. */ 404/* Define to 1 if you have the <sys/types.h> header file. */
402#undef HAVE_SYS_TYPES_H 405#undef HAVE_SYS_TYPES_H
403 406
404/* Define to 1 if you have the <sys/uio.h> header file. */ 407/* Define to 1 if you have the <sys/uio.h> header file. */
405#undef HAVE_SYS_UIO_H 408#undef HAVE_SYS_UIO_H
406 409
407/* Define to 1 if you have the <sys/vfs.h> header file. */ 410/* Define to 1 if you have the <sys/vfs.h> header file. */
408#undef HAVE_SYS_VFS_H 411#undef HAVE_SYS_VFS_H
409 412
410/* Define to 1 if you have the <termcap.h> header file. */ 413/* Define to 1 if you have the <termcap.h> header file. */
411#undef HAVE_TERMCAP_H 414#undef HAVE_TERMCAP_H
412 415
413/* Define to 1 if you have the <time.h> header file. */ 416/* Define to 1 if you have the <time.h> header file. */
414#undef HAVE_TIME_H 417#undef HAVE_TIME_H
415 418
416/* Define to 1 if you have the <tzfile.h> header file. */ 419/* Define to 1 if you have the <tzfile.h> header file. */
417#undef HAVE_TZFILE_H 420#undef HAVE_TZFILE_H
418 421
419/* Define to 1 if you have the `uid_from_user' function. */ 422/* Define to 1 if you have the `uid_from_user' function. */
420#undef HAVE_UID_FROM_USER 423#undef HAVE_UID_FROM_USER
421 424
422/* Define to 1 if the system has the type `uint16_t'. */ 425/* Define to 1 if the system has the type `uint16_t'. */
423#undef HAVE_UINT16_T 426#undef HAVE_UINT16_T
424 427
425/* Define to 1 if the system has the type `uint32_t'. */ 428/* Define to 1 if the system has the type `uint32_t'. */
426#undef HAVE_UINT32_T 429#undef HAVE_UINT32_T
427 430
428/* Define to 1 if the system has the type `uint64_t'. */ 431/* Define to 1 if the system has the type `uint64_t'. */
429#undef HAVE_UINT64_T 432#undef HAVE_UINT64_T
430 433
431/* Define to 1 if the system has the type `uint8_t'. */ 434/* Define to 1 if the system has the type `uint8_t'. */
432#undef HAVE_UINT8_T 435#undef HAVE_UINT8_T
433 436
434/* Define to 1 if the system has the type `uintptr_t'. */ 437/* Define to 1 if the system has the type `uintptr_t'. */
435#undef HAVE_UINTPTR_T 438#undef HAVE_UINTPTR_T
436 439
437/* Define to 1 if you have the <unistd.h> header file. */ 440/* Define to 1 if you have the <unistd.h> header file. */
438#undef HAVE_UNISTD_H 441#undef HAVE_UNISTD_H
439 442
440/* Define to 1 if you have the `unsetenv' function. */ 443/* Define to 1 if you have the `unsetenv' function. */
441#undef HAVE_UNSETENV 444#undef HAVE_UNSETENV
442 445
443/* Define to 1 if you have the `unvis' function. */ 446/* Define to 1 if you have the `unvis' function. */
444#undef HAVE_UNVIS 447#undef HAVE_UNVIS
445 448
446/* Define to 1 if you have the `user_from_uid' function. */ 449/* Define to 1 if you have the `user_from_uid' function. */
447#undef HAVE_USER_FROM_UID 450#undef HAVE_USER_FROM_UID
448 451
449/* Define to 1 if you have the `usleep' function. */ 452/* Define to 1 if you have the `usleep' function. */
450#undef HAVE_USLEEP 453#undef HAVE_USLEEP
451 454
452/* Define to 1 if you have the <util.h> header file. */ 455/* Define to 1 if you have the <util.h> header file. */
453#undef HAVE_UTIL_H 456#undef HAVE_UTIL_H
454 457
455/* Define to 1 if you have the `utimes' function. */ 458/* Define to 1 if you have the `utimes' function. */
456#undef HAVE_UTIMES 459#undef HAVE_UTIMES
457 460
458/* Define to 1 if you have the <utime.h> header file. */ 461/* Define to 1 if you have the <utime.h> header file. */
459#undef HAVE_UTIME_H 462#undef HAVE_UTIME_H
460 463
461/* Define to 1 if the system has the type `u_int16_t'. */ 464/* Define to 1 if the system has the type `u_int16_t'. */
462#undef HAVE_U_INT16_T 465#undef HAVE_U_INT16_T
463 466
464/* Define to 1 if the system has the type `u_int32_t'. */ 467/* Define to 1 if the system has the type `u_int32_t'. */
465#undef HAVE_U_INT32_T 468#undef HAVE_U_INT32_T
466 469
467/* Define to 1 if the system has the type `u_int64_t'. */ 470/* Define to 1 if the system has the type `u_int64_t'. */
468#undef HAVE_U_INT64_T 471#undef HAVE_U_INT64_T
469 472
470/* Define to 1 if the system has the type `u_int8_t'. */ 473/* Define to 1 if the system has the type `u_int8_t'. */
471#undef HAVE_U_INT8_T 474#undef HAVE_U_INT8_T
472 475
 476/* Define to 1 if you have the `vfork' function. */
 477#undef HAVE_VFORK
 478
 479/* Define to 1 if you have the <vfork.h> header file. */
 480#undef HAVE_VFORK_H
 481
473/* Define to 1 if you have the `vis' function. */ 482/* Define to 1 if you have the `vis' function. */
474#undef HAVE_VIS 483#undef HAVE_VIS
475 484
476/* Define to 1 if you have the <vis.h> header file. */ 485/* Define to 1 if you have the <vis.h> header file. */
477#undef HAVE_VIS_H 486#undef HAVE_VIS_H
478 487
479/* Define to 1 if you have the `vprintf' function. */ 488/* Define to 1 if you have the `vprintf' function. */
480#undef HAVE_VPRINTF 489#undef HAVE_VPRINTF
481 490
482/* Define to 1 if you have the `warn' function. */ 491/* Define to 1 if you have the `warn' function. */
483#undef HAVE_WARN 492#undef HAVE_WARN
484 493
 494/* Define to 1 if `fork' works. */
 495#undef HAVE_WORKING_FORK
 496
485/* Define to 1 if `long long' is supported and sizeof(off_t) >= 8. */ 497/* Define to 1 if `long long' is supported and sizeof(off_t) >= 8. */
486#undef HAVE_WORKING_LONG_LONG 498#undef HAVE_WORKING_LONG_LONG
487 499
 500/* Define to 1 if `vfork' works. */
 501#undef HAVE_WORKING_VFORK
 502
488/* define if your compiler has __attribute__ */ 503/* define if your compiler has __attribute__ */
489#undef HAVE___ATTRIBUTE__ 504#undef HAVE___ATTRIBUTE__
490 505
491/* Define to the address where bug reports for this package should be sent. */ 506/* Define to the address where bug reports for this package should be sent. */
492#undef PACKAGE_BUGREPORT 507#undef PACKAGE_BUGREPORT
493 508
494/* Define to the full name of this package. */ 509/* Define to the full name of this package. */
495#undef PACKAGE_NAME 510#undef PACKAGE_NAME
496 511
497/* Define to the full name and version of this package. */ 512/* Define to the full name and version of this package. */
498#undef PACKAGE_STRING 513#undef PACKAGE_STRING
499 514
500/* Define to the one symbol short name of this package. */ 515/* Define to the one symbol short name of this package. */
501#undef PACKAGE_TARNAME 516#undef PACKAGE_TARNAME
502 517
503/* Define to the version of this package. */ 518/* Define to the version of this package. */
504#undef PACKAGE_VERSION 519#undef PACKAGE_VERSION
505 520
506/* The size of `off_t', as computed by sizeof. */ 521/* The size of `off_t', as computed by sizeof. */
507#undef SIZEOF_OFF_T 522#undef SIZEOF_OFF_T
508 523
509/* Define to 1 if you have the ANSI C header files. */ 524/* Define to 1 if you have the ANSI C header files. */
510#undef STDC_HEADERS 525#undef STDC_HEADERS
511 526
512/* Define to 1 if strerror_r returns char *. */ 527/* Define to 1 if strerror_r returns char *. */
513#undef STRERROR_R_CHAR_P 528#undef STRERROR_R_CHAR_P
514 529
515/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ 530/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
516#undef TIME_WITH_SYS_TIME 531#undef TIME_WITH_SYS_TIME
517 532
518/* Define to 1 if your processor stores words with the most significant byte 533/* Define to 1 if your processor stores words with the most significant byte
519 first (like Motorola and SPARC, unlike Intel and VAX). */ 534 first (like Motorola and SPARC, unlike Intel and VAX). */
520#undef WORDS_BIGENDIAN 535#undef WORDS_BIGENDIAN
521 536
522/* Define to rpl_malloc if the replacement function should be used. */ 537/* Define to rpl_malloc if the replacement function should be used. */
523#undef malloc 538#undef malloc
524 539
 540/* Define to `int' if <sys/types.h> does not define. */
 541#undef pid_t
 542
525/* Define to `unsigned int' if <sys/types.h> does not define. */ 543/* Define to `unsigned int' if <sys/types.h> does not define. */
526#undef size_t 544#undef size_t
527 545
528/* Define to the type of an unsigned integer type wide enough to hold a 546/* Define to the type of an unsigned integer type wide enough to hold a
529 pointer, if such a type exists, and if the system does not define it. */ 547 pointer, if such a type exists, and if the system does not define it. */
530#undef uintptr_t 548#undef uintptr_t
531 549
 550/* Define as `fork' if `vfork' does not work. */
 551#undef vfork
 552
532 553
533/* NBCOMPAT template section follows. */ 554/* NBCOMPAT template section follows. */
534 555
535#ifndef HAVE___ATTRIBUTE__ 556#ifndef HAVE___ATTRIBUTE__
536# define __attribute__(x) 557# define __attribute__(x)
537#endif 558#endif
538 559