|
|
@@ -1,5 +1,5 @@
|
|
|
#! /bin/sh
|
|
|
-# From configure.ac Revision: 1.46 .
|
|
|
+# From configure.ac Revision: 1.47 .
|
|
|
# Guess values for system-dependent variables and create Makefiles.
|
|
|
# Generated by GNU Autoconf 2.59.
|
|
|
#
|
|
|
@@ -3600,6 +3600,7 @@ cat >>confdefs.h <<\_ACEOF
|
|
|
_ACEOF
|
|
|
;;
|
|
|
SunOS)
|
|
|
+ SUNOS="yes"
|
|
|
;;
|
|
|
*BSD)
|
|
|
# FreeBSD/OpenBSD/NetBSD
|
|
|
@@ -3972,7 +3973,153 @@ _ACEOF
|
|
|
|
|
|
fi
|
|
|
|
|
|
-# AC_CHECK_LIB(nsl, connect)
|
|
|
+
|
|
|
+echo "$as_me:$LINENO: checking for connect in -lnsl" >&5
|
|
|
+echo $ECHO_N "checking for connect in -lnsl... $ECHO_C" >&6
|
|
|
+if test "${ac_cv_lib_nsl_connect+set}" = set; then
|
|
|
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
+else
|
|
|
+ ac_check_lib_save_LIBS=$LIBS
|
|
|
+LIBS="-lnsl $LIBS"
|
|
|
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
+/* confdefs.h. */
|
|
|
+_ACEOF
|
|
|
+cat confdefs.h >>conftest.$ac_ext
|
|
|
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
+/* end confdefs.h. */
|
|
|
+
|
|
|
+/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
+#ifdef __cplusplus
|
|
|
+extern "C"
|
|
|
+#endif
|
|
|
+/* We use char because int might match the return type of a gcc2
|
|
|
+ builtin and then its argument prototype would still apply. */
|
|
|
+char connect ();
|
|
|
+int
|
|
|
+main ()
|
|
|
+{
|
|
|
+connect ();
|
|
|
+ ;
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+_ACEOF
|
|
|
+rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
|
+ (eval $ac_link) 2>conftest.er1
|
|
|
+ ac_status=$?
|
|
|
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
+ rm -f conftest.er1
|
|
|
+ cat conftest.err >&5
|
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
+ (exit $ac_status); } &&
|
|
|
+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
|
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
+ (eval $ac_try) 2>&5
|
|
|
+ ac_status=$?
|
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
+ (exit $ac_status); }; } &&
|
|
|
+ { ac_try='test -s conftest$ac_exeext'
|
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
+ (eval $ac_try) 2>&5
|
|
|
+ ac_status=$?
|
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
+ (exit $ac_status); }; }; then
|
|
|
+ ac_cv_lib_nsl_connect=yes
|
|
|
+else
|
|
|
+ echo "$as_me: failed program was:" >&5
|
|
|
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
+
|
|
|
+ac_cv_lib_nsl_connect=no
|
|
|
+fi
|
|
|
+rm -f conftest.err conftest.$ac_objext \
|
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
|
+LIBS=$ac_check_lib_save_LIBS
|
|
|
+fi
|
|
|
+echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_connect" >&5
|
|
|
+echo "${ECHO_T}$ac_cv_lib_nsl_connect" >&6
|
|
|
+if test $ac_cv_lib_nsl_connect = yes; then
|
|
|
+ cat >>confdefs.h <<_ACEOF
|
|
|
+#define HAVE_LIBNSL 1
|
|
|
+_ACEOF
|
|
|
+
|
|
|
+ LIBS="-lnsl $LIBS"
|
|
|
+
|
|
|
+fi
|
|
|
+
|
|
|
+# AC_CHECK_LIB(dl, dlopen)
|
|
|
+
|
|
|
+echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
|
|
|
+echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
|
|
|
+if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
|
|
|
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
+else
|
|
|
+ ac_check_lib_save_LIBS=$LIBS
|
|
|
+LIBS="-lnsl $LIBS"
|
|
|
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
+/* confdefs.h. */
|
|
|
+_ACEOF
|
|
|
+cat confdefs.h >>conftest.$ac_ext
|
|
|
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
+/* end confdefs.h. */
|
|
|
+
|
|
|
+/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
+#ifdef __cplusplus
|
|
|
+extern "C"
|
|
|
+#endif
|
|
|
+/* We use char because int might match the return type of a gcc2
|
|
|
+ builtin and then its argument prototype would still apply. */
|
|
|
+char gethostbyname ();
|
|
|
+int
|
|
|
+main ()
|
|
|
+{
|
|
|
+gethostbyname ();
|
|
|
+ ;
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+_ACEOF
|
|
|
+rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
|
+ (eval $ac_link) 2>conftest.er1
|
|
|
+ ac_status=$?
|
|
|
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
+ rm -f conftest.er1
|
|
|
+ cat conftest.err >&5
|
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
+ (exit $ac_status); } &&
|
|
|
+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
|
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
+ (eval $ac_try) 2>&5
|
|
|
+ ac_status=$?
|
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
+ (exit $ac_status); }; } &&
|
|
|
+ { ac_try='test -s conftest$ac_exeext'
|
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
+ (eval $ac_try) 2>&5
|
|
|
+ ac_status=$?
|
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
+ (exit $ac_status); }; }; then
|
|
|
+ ac_cv_lib_nsl_gethostbyname=yes
|
|
|
+else
|
|
|
+ echo "$as_me: failed program was:" >&5
|
|
|
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
+
|
|
|
+ac_cv_lib_nsl_gethostbyname=no
|
|
|
+fi
|
|
|
+rm -f conftest.err conftest.$ac_objext \
|
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
|
+LIBS=$ac_check_lib_save_LIBS
|
|
|
+fi
|
|
|
+echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
|
|
|
+echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
|
|
|
+if test $ac_cv_lib_nsl_gethostbyname = yes; then
|
|
|
+ cat >>confdefs.h <<_ACEOF
|
|
|
+#define HAVE_LIBNSL 1
|
|
|
+_ACEOF
|
|
|
+
|
|
|
+ LIBS="-lnsl $LIBS"
|
|
|
+
|
|
|
+fi
|
|
|
+
|
|
|
|
|
|
echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
|
|
|
echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
|
|
|
@@ -4046,6 +4193,7 @@ _ACEOF
|
|
|
|
|
|
fi
|
|
|
|
|
|
+
|
|
|
# AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
|
|
|
# AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
|
|
|
# AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
|
|
|
@@ -4063,6 +4211,211 @@ fi
|
|
|
# ac_cv_lib_pthread_pthread_mutex_init=yes
|
|
|
# ac_cv_lib_pthread=""],
|
|
|
# ac_cv_lib_pthread_pthread_mutex_init=no)])])])
|
|
|
+ if test "$SUNOS" = "yes"; then
|
|
|
+ # For suns without yp
|
|
|
+
|
|
|
+echo "$as_me:$LINENO: checking for main in -ldl" >&5
|
|
|
+echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
|
|
|
+if test "${ac_cv_lib_dl_main+set}" = set; then
|
|
|
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
+else
|
|
|
+ ac_check_lib_save_LIBS=$LIBS
|
|
|
+LIBS="-ldl $LIBS"
|
|
|
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
+/* confdefs.h. */
|
|
|
+_ACEOF
|
|
|
+cat confdefs.h >>conftest.$ac_ext
|
|
|
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
+/* end confdefs.h. */
|
|
|
+
|
|
|
+
|
|
|
+int
|
|
|
+main ()
|
|
|
+{
|
|
|
+main ();
|
|
|
+ ;
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+_ACEOF
|
|
|
+rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
|
+ (eval $ac_link) 2>conftest.er1
|
|
|
+ ac_status=$?
|
|
|
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
+ rm -f conftest.er1
|
|
|
+ cat conftest.err >&5
|
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
+ (exit $ac_status); } &&
|
|
|
+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
|
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
+ (eval $ac_try) 2>&5
|
|
|
+ ac_status=$?
|
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
+ (exit $ac_status); }; } &&
|
|
|
+ { ac_try='test -s conftest$ac_exeext'
|
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
+ (eval $ac_try) 2>&5
|
|
|
+ ac_status=$?
|
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
+ (exit $ac_status); }; }; then
|
|
|
+ ac_cv_lib_dl_main=yes
|
|
|
+else
|
|
|
+ echo "$as_me: failed program was:" >&5
|
|
|
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
+
|
|
|
+ac_cv_lib_dl_main=no
|
|
|
+fi
|
|
|
+rm -f conftest.err conftest.$ac_objext \
|
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
|
+LIBS=$ac_check_lib_save_LIBS
|
|
|
+fi
|
|
|
+echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
|
|
|
+echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
|
|
|
+if test $ac_cv_lib_dl_main = yes; then
|
|
|
+ cat >>confdefs.h <<_ACEOF
|
|
|
+#define HAVE_LIBDL 1
|
|
|
+_ACEOF
|
|
|
+
|
|
|
+ LIBS="-ldl $LIBS"
|
|
|
+
|
|
|
+fi
|
|
|
+
|
|
|
+
|
|
|
+echo "$as_me:$LINENO: checking for main in -lsocket" >&5
|
|
|
+echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
|
|
|
+if test "${ac_cv_lib_socket_main+set}" = set; then
|
|
|
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
+else
|
|
|
+ ac_check_lib_save_LIBS=$LIBS
|
|
|
+LIBS="-lsocket $LIBS"
|
|
|
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
+/* confdefs.h. */
|
|
|
+_ACEOF
|
|
|
+cat confdefs.h >>conftest.$ac_ext
|
|
|
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
+/* end confdefs.h. */
|
|
|
+
|
|
|
+
|
|
|
+int
|
|
|
+main ()
|
|
|
+{
|
|
|
+main ();
|
|
|
+ ;
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+_ACEOF
|
|
|
+rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
|
+ (eval $ac_link) 2>conftest.er1
|
|
|
+ ac_status=$?
|
|
|
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
+ rm -f conftest.er1
|
|
|
+ cat conftest.err >&5
|
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
+ (exit $ac_status); } &&
|
|
|
+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
|
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
+ (eval $ac_try) 2>&5
|
|
|
+ ac_status=$?
|
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
+ (exit $ac_status); }; } &&
|
|
|
+ { ac_try='test -s conftest$ac_exeext'
|
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
+ (eval $ac_try) 2>&5
|
|
|
+ ac_status=$?
|
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
+ (exit $ac_status); }; }; then
|
|
|
+ ac_cv_lib_socket_main=yes
|
|
|
+else
|
|
|
+ echo "$as_me: failed program was:" >&5
|
|
|
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
+
|
|
|
+ac_cv_lib_socket_main=no
|
|
|
+fi
|
|
|
+rm -f conftest.err conftest.$ac_objext \
|
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
|
+LIBS=$ac_check_lib_save_LIBS
|
|
|
+fi
|
|
|
+echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
|
|
|
+echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
|
|
|
+if test $ac_cv_lib_socket_main = yes; then
|
|
|
+ cat >>confdefs.h <<_ACEOF
|
|
|
+#define HAVE_LIBSOCKET 1
|
|
|
+_ACEOF
|
|
|
+
|
|
|
+ LIBS="-lsocket $LIBS"
|
|
|
+
|
|
|
+fi
|
|
|
+
|
|
|
+
|
|
|
+echo "$as_me:$LINENO: checking for main in -lnsl" >&5
|
|
|
+echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
|
|
|
+if test "${ac_cv_lib_nsl_main+set}" = set; then
|
|
|
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
+else
|
|
|
+ ac_check_lib_save_LIBS=$LIBS
|
|
|
+LIBS="-lnsl $LIBS"
|
|
|
+cat >conftest.$ac_ext <<_ACEOF
|
|
|
+/* confdefs.h. */
|
|
|
+_ACEOF
|
|
|
+cat confdefs.h >>conftest.$ac_ext
|
|
|
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
+/* end confdefs.h. */
|
|
|
+
|
|
|
+
|
|
|
+int
|
|
|
+main ()
|
|
|
+{
|
|
|
+main ();
|
|
|
+ ;
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+_ACEOF
|
|
|
+rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
|
+ (eval $ac_link) 2>conftest.er1
|
|
|
+ ac_status=$?
|
|
|
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
+ rm -f conftest.er1
|
|
|
+ cat conftest.err >&5
|
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
+ (exit $ac_status); } &&
|
|
|
+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
|
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
+ (eval $ac_try) 2>&5
|
|
|
+ ac_status=$?
|
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
+ (exit $ac_status); }; } &&
|
|
|
+ { ac_try='test -s conftest$ac_exeext'
|
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
+ (eval $ac_try) 2>&5
|
|
|
+ ac_status=$?
|
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
+ (exit $ac_status); }; }; then
|
|
|
+ ac_cv_lib_nsl_main=yes
|
|
|
+else
|
|
|
+ echo "$as_me: failed program was:" >&5
|
|
|
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
+
|
|
|
+ac_cv_lib_nsl_main=no
|
|
|
+fi
|
|
|
+rm -f conftest.err conftest.$ac_objext \
|
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
|
+LIBS=$ac_check_lib_save_LIBS
|
|
|
+fi
|
|
|
+echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
|
|
|
+echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
|
|
|
+if test $ac_cv_lib_nsl_main = yes; then
|
|
|
+ cat >>confdefs.h <<_ACEOF
|
|
|
+#define HAVE_LIBNSL 1
|
|
|
+_ACEOF
|
|
|
+
|
|
|
+ LIBS="-lnsl $LIBS"
|
|
|
+
|
|
|
+fi
|
|
|
+
|
|
|
+ fi
|
|
|
+
|
|
|
|
|
|
|
|
|
# Checks for header files
|