[cvslog] (2004-07-25 11:18:39 UTC) Module eggdrop1.6: Change committed!

cvslog cvs at tsss.org
Sun Jul 25 05:18:39 CST 2004


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2004-07-25 11:18:39 UTC
Commited by: Will Buckner <wcc at techmonkeys.org>

Modified files:
     configure src/mod/compress.mod/configure
     src/mod/dns.mod/configure

Log message:

* Ran autoconf.

---------------------- diff included ----------------------
Index: eggdrop1.6/configure
diff -u eggdrop1.6/configure:1.125 eggdrop1.6/configure:1.126
--- eggdrop1.6/configure:1.125	Fri Jul  2 15:48:51 2004
+++ eggdrop1.6/configure	Sun Jul 25 06:18:29 2004
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 1.11 .
+# From configure.ac Revision: 1.13 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59 for Eggdrop 1.6.17.
 #
@@ -315,7 +315,7 @@
 # include <unistd.h>
 #endif"
 
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS egg_ac_parameters CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE RANLIB ac_ct_RANLIB LN_S HEAD_1 STRIP AWK BASENAME UNAME MOD_LD MOD_CC MOD_STRIP SHLIB_LD SHLIB_CC SHLIB_STRIP DEFAULT_MAKE MOD_EXT EGGEXEC TCLLIB TCLLIBFN TCLINC TCLINCFN TCL_REQS TCL_LIBS EGGVERSION DEST MOD_UPDIR LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS egg_ac_parameters CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE RANLIB ac_ct_RANLIB LN_S HEAD_1 STRIP AWK BASENAME UNAME DEFAULT_MAKE MOD_EXT MODULE_XLIBS MOD_LD MOD_CC MOD_STRIP SHLIB_LD SHLIB_CC SHLIB_STRIP EGGEXEC TCLLIB TCLLIBFN TCLINC TCLINCFN TCL_REQS TCL_LIBS EGGVERSION DEST MOD_UPDIR LIBOBJS LTLIBOBJS'
 ac_subst_files=''
 
 # Initialize some variables set by options.
@@ -2338,8 +2338,7 @@
   fi
 
 
-
-# Checks for odd operating systems
+# These 3 need to be done before any AC_COMPILE_IFELSE()'s.
 
 ac_ext=c
 ac_cpp='$CPP $CPPFLAGS'
@@ -3147,8 +3146,70 @@
 fi
 
 
+# Check C compiler characteristics.
+
+  if test -n "$GCC"; then
+    echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
+echo $ECHO_N "checking whether the compiler understands -Wall... $ECHO_C" >&6
+if test "${egg_cv_var_ccwall+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+      ac_old_CFLAGS="$CFLAGS"
+      CFLAGS="$CFLAGS -Wall"
+       cat >conftest.$ac_ext <<_ACEOF
+
+         int main ()
+         {
+           return(0);
+         }
+
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 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_c_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_objext'
+  { (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
+
+         egg_cv_var_ccwall="yes"
+
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+         egg_cv_var_ccwall="no"
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+      CFLAGS="$ac_old_CFLAGS"
+
+fi
+echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
+echo "${ECHO_T}$egg_cv_var_ccwall" >&6
+
+    if test "$egg_cv_var_ccwall" = "yes"; then
+      CFLAGS="$CFLAGS -Wall"
+    fi
+  fi
 
-# Speedup compile
 
   if test -z "$no_pipe"; then
     if test -n "$GCC"; then
@@ -3216,7 +3277,7 @@
 
 
 
-# Checks for programs
+# Checks for programs.
 # Find a good install program.  We prefer a C program (faster),
 # so one script is as good as another.  But avoid the broken or
 # incompatible versions:
@@ -3665,100 +3726,46 @@
 
 
 
-# Test the os and set the module linking settings
+# Checks for system libraries.
 
-  LINUX="no"
-  IRIX="no"
-  SUNOS="no"
-  HPUX="no"
-  EGG_CYGWIN="no"
-  MOD_CC="$CC"
-  MOD_LD="$CC"
-  MOD_STRIP="$STRIP"
-  SHLIB_CC="$CC"
-  SHLIB_LD="$CC"
-  SHLIB_STRIP="$STRIP"
-  NEED_DL=1
-  DEFAULT_MAKE="debug"
-  MOD_EXT="so"
+  # FIXME: this needs to be fixed so that it works on IRIX
+  if test "$IRIX" = "yes"; then
+    { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE IRIX." >&5
+echo "$as_me: WARNING: Skipping library tests because they CONFUSE IRIX." >&2;}
+  else
 
-  echo "$as_me:$LINENO: checking system type" >&5
-echo $ECHO_N "checking system type... $ECHO_C" >&6
-if test "${egg_cv_var_system_type+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  egg_cv_var_system_type=`$UNAME -s`
-fi
-echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
-echo "${ECHO_T}$egg_cv_var_system_type" >&6
-  echo "$as_me:$LINENO: checking system release" >&5
-echo $ECHO_N "checking system release... $ECHO_C" >&6
-if test "${egg_cv_var_system_release+set}" = set; then
+echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
+echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
+if test "${ac_cv_lib_socket_socket+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  egg_cv_var_system_release=`$UNAME -r`
-fi
-echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
-echo "${ECHO_T}$egg_cv_var_system_release" >&6
-
-  case "$egg_cv_var_system_type" in
-    BSD/OS)
-      case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
-        2)
-          NEED_DL=0
-          DEFAULT_MAKE="static"
-        ;;
-        3)
-          MOD_CC="shlicc"
-          MOD_LD="shlicc"
-          if test ! "$STRIP" = "touch"; then
-            MOD_STRIP="$STRIP -d"
-          fi
-          SHLIB_LD="shlicc -r"
-          SHLIB_STRIP="touch"
-
-cat >>confdefs.h <<\_ACEOF
-#define MODULES_OK 1
-_ACEOF
-
-        ;;
-        *)
-          CFLAGS="$CFLAGS -Wall"
-          MOD_LD="$CC"
-          if test ! "$STRIP" = "touch"; then
-            MOD_STRIP="$STRIP -d"
-          fi
-          SHLIB_CC="$CC -export-dynamic -fPIC"
-          SHLIB_LD="$CC -shared -nostartfiles"
-
-cat >>confdefs.h <<\_ACEOF
-#define MODULES_OK 1
+  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.  */
 
-        ;;
-      esac
-    ;;
-    CYGWI*)
-      case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
-        1.*)
-          NEED_DL=0
-          SHLIB_LD="$CC -shared"
-
-  echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
-echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
-  WIN32FLAGS=
-  cat >conftest.$ac_ext <<_ACEOF
-
-    #ifndef WIN32
-    #  ifndef _WIN32
-    #    error WIN32 or _WIN32 not defined
-    #  endif
-    #endif
-
+/* 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 socket ();
+int
+main ()
+{
+socket ();
+  ;
+  return 0;
+}
 _ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-  (eval $ac_compile) 2>conftest.er1
+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
@@ -3772,37 +3779,67 @@
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; } &&
-	 { ac_try='test -s conftest.$ac_objext'
+	 { 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
-
-    echo "$as_me:$LINENO: result: present by default" >&5
-echo "${ECHO_T}present by default" >&6
-
+  ac_cv_lib_socket_socket=yes
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
 
+ac_cv_lib_socket_socket=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_socket" >&5
+echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
+if test $ac_cv_lib_socket_socket = yes; then
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBSOCKET 1
+_ACEOF
+
+  LIBS="-lsocket $LIBS"
 
-    ac_compile_save="$ac_compile"
-    save_CC="$CC"
-    ac_compile="$ac_compile -mwin32"
-    CC="$CC -mwin32"
-    cat >conftest.$ac_ext <<_ACEOF
+fi
 
-      #ifndef WIN32
-      #  ifndef _WIN32
-      #    error WIN32 or _WIN32 not defined
-      #  endif
-      #endif
 
+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
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-  (eval $ac_compile) 2>conftest.er1
+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
@@ -3816,335 +3853,330 @@
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; } &&
-	 { ac_try='test -s conftest.$ac_objext'
+	 { 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
-
-      echo "$as_me:$LINENO: result: found via -mwin32" >&5
-echo "${ECHO_T}found via -mwin32" >&6
-      ac_compile="$ac_compile_save"
-      CC="$save_CC"
-      WIN32FLAGS="-mwin32"
-
+  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
 
-      ac_compile="$ac_compile_save"
-      CC="$save_CC"
-      echo "$as_me:$LINENO: result: not found" >&5
-echo "${ECHO_T}not found" >&6
+  LIBS="-lnsl $LIBS"
 
 fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
-          CC="$CC $WIN32FLAGS"
-          MOD_CC="$CC"
-          MOD_LD="$CC"
-          echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
-echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
-          if test -r /usr/lib/binmode.o; then
-            echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
-            LIBS="$LIBS /usr/lib/binmode.o"
-          else
-            echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-            { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
-echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
-          fi
-          MOD_EXT="dll"
-
-cat >>confdefs.h <<\_ACEOF
-#define MODULES_OK 1
-_ACEOF
-
-        ;;
-        *)
-          NEED_DL=0
-          DEFAULT_MAKE="static"
-        ;;
-      esac
-      EGG_CYGWIN="yes"
-
-cat >>confdefs.h <<\_ACEOF
-#define CYGWIN_HACKS 1
-_ACEOF
-
-    ;;
-    HP-UX)
-      HPUX="yes"
-      if test "$CC" = "cc"; then
-        # HP-UX ANSI C Compiler.
-        MOD_LD="$CC +z"
-        SHLIB_CC="$CC +z"
-
-cat >>confdefs.h <<\_ACEOF
-#define MODULES_OK 1
-_ACEOF
-
-      else
-        # GCC
-        MOD_LD="$CC -fPIC -shared"
-        SHLIB_CC="$CC -fPIC"
-      fi
-      SHLIB_LD="ld -b"
-      NEED_DL=0
-
-cat >>confdefs.h <<\_ACEOF
-#define HPUX_HACKS 1
-_ACEOF
-
-      if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HPUX10_HACKS 1
-_ACEOF
-
-      fi
-    ;;
-    dell)
-      echo "$as_me:$LINENO: result: Dell SVR4" >&5
-echo "${ECHO_T}Dell SVR4" >&6
-      SHLIB_STRIP="touch"
-      NEED_DL=0
-      MOD_LD="$CC -lelf -lucb"
-    ;;
-    IRIX)
-      SHLIB_LD="ld -n32 -shared -rdata_shared"
-      IRIX="yes"
-      SHLIB_STRIP="touch"
-      NEED_DL=0
-      DEFAULT_MAKE="static"
-    ;;
-    Ultrix)
-      NEED_DL=0
-      SHLIB_STRIP="touch"
-      DEFAULT_MAKE="static"
-      SHELL="/bin/sh5"
-    ;;
-    SINIX*)
-      NEED_DL=0
-      SHLIB_STRIP="touch"
-      DEFAULT_MAKE="static"
-      SHLIB_CC="cc -G"
-    ;;
-    BeOS)
-      NEED_DL=0
-      DEFAULT_MAKE="static"
-    ;;
-    Linux)
-      LINUX="yes"
-      CFLAGS="$CFLAGS -Wall"
-      MOD_LD="$CC"
-      SHLIB_CC="$CC -fPIC"
-      SHLIB_LD="$CC -shared -nostartfiles"
-
-cat >>confdefs.h <<\_ACEOF
-#define MODULES_OK 1
-_ACEOF
-
-    ;;
-    Lynx)
-      NEED_DL=0
-      DEFAULT_MAKE="static"
-    ;;
-    QNX)
-      NEED_DL=0
-      DEFAULT_MAKE="static"
-      SHLIB_LD="ld -shared"
-    ;;
-    OSF1)
-      case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
-        V*)
-          # FIXME: we should check this in a separate test
-          # Digital OSF uses an ancient version of gawk
-          if test "$AWK" = "gawk"; then
-            AWK="awk"
-          fi
-          SHLIB_LD="ld -shared -expect_unresolved \"'*'\""
-          SHLIB_STRIP="touch"
-
-cat >>confdefs.h <<\_ACEOF
-#define MODULES_OK 1
-_ACEOF
-
-        ;;
-        1.0|1.1|1.2)
-          SHLIB_LD="ld -R -export :"
-
-cat >>confdefs.h <<\_ACEOF
-#define BROKEN_SNPRINTF 1
-_ACEOF
-
-
-cat >>confdefs.h <<\_ACEOF
-#define MODULES_OK 1
-_ACEOF
-
-
-cat >>confdefs.h <<\_ACEOF
-#define OSF1_HACKS 1
-_ACEOF
-
-        ;;
-        1.*)
-          SHLIB_CC="$CC -fpic"
-          SHLIB_LD="ld -shared"
-
-cat >>confdefs.h <<\_ACEOF
-#define BROKEN_SNPRINTF 1
-_ACEOF
-
-
-cat >>confdefs.h <<\_ACEOF
-#define MODULES_OK 1
+echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
+echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
+if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldns  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
 _ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 
-
-cat >>confdefs.h <<\_ACEOF
-#define OSF1_HACKS 1
+/* 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_c_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_dns_gethostbyname=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
 
-        ;;
-        *)
-
-cat >>confdefs.h <<\_ACEOF
-#define BROKEN_SNPRINTF 1
+ac_cv_lib_dns_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_dns_gethostbyname" >&5
+echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
+if test $ac_cv_lib_dns_gethostbyname = yes; then
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBDNS 1
 _ACEOF
 
-          NEED_DL=0
-          DEFAULT_MAKE="static"
-        ;;
-      esac
+  LIBS="-ldns $LIBS"
 
-cat >>confdefs.h <<\_ACEOF
-#define STOP_UAC 1
-_ACEOF
+fi
 
-    ;;
-    SunOS)
-      if test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"; then
-        # Solaris
-        if test -n "$GCC"; then
-          SHLIB_CC="$CC -fPIC"
-          SHLIB_LD="$CC -shared"
-        else
-          SHLIB_CC="$CC -KPIC"
-          SHLIB_LD="$CC -G -z text"
-        fi
-      else
-        # SunOS 4
-        SUNOS="yes"
-        SHLIB_LD="ld"
-        SHLIB_CC="$CC -PIC"
 
-cat >>confdefs.h <<\_ACEOF
-#define DLOPEN_1 1
+echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
+echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
+if test "${ac_cv_lib_dl_dlopen+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.  */
 
-      fi
-
-cat >>confdefs.h <<\_ACEOF
-#define MODULES_OK 1
+/* 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 dlopen ();
+int
+main ()
+{
+dlopen ();
+  ;
+  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_c_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_dlopen=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
 
-    ;;
-    *BSD)
-      # FreeBSD/OpenBSD/NetBSD
-      SHLIB_CC="$CC -fPIC"
-      SHLIB_LD="ld -Bshareable -x"
-
-cat >>confdefs.h <<\_ACEOF
-#define MODULES_OK 1
+ac_cv_lib_dl_dlopen=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_dlopen" >&5
+echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
+if test $ac_cv_lib_dl_dlopen = yes; then
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBDL 1
 _ACEOF
 
-    ;;
-    Darwin)
-      # Mac OS X
-      SHLIB_CC="$CC -fPIC"
-      SHLIB_LD="ld -Bshareable -x"
-
-cat >>confdefs.h <<\_ACEOF
-#define MODULES_OK 1
-_ACEOF
+  LIBS="-ldl $LIBS"
 
-    ;;
-    *)
-      echo "$as_me:$LINENO: checking if system is Mach based" >&5
-echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
-      if test -r /mach; then
-        echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
-        NEED_DL=0
-        DEFAULT_MAKE="static"
+fi
 
-cat >>confdefs.h <<\_ACEOF
-#define BORGCUBES 1
+    echo "$as_me:$LINENO: checking for tan in -lm" >&5
+echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6
+if test "${ac_cv_lib_m_tan+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lm  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
 _ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 
-      else
-        echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-        echo "$as_me:$LINENO: checking if system is QNX" >&5
-echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
-        if test -r /cmds; then
-          echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
-          SHLIB_STRIP="touch"
-          NEED_DL=0
-          DEFAULT_MAKE="static"
-        else
-          echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-          echo "$as_me:$LINENO: result: unknown" >&5
-echo "${ECHO_T}unknown" >&6
-          echo "$as_me:$LINENO: result: If you get modules to work, be sure to let the development team know how (eggdev at eggheads.org)." >&5
-echo "${ECHO_T}If you get modules to work, be sure to let the development team know how (eggdev at eggheads.org)." >&6
-          NEED_DL=0
-          DEFAULT_MAKE="static"
-        fi
-      fi
-    ;;
-  esac
-
-
-
-
-
-
+/* 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 tan ();
+int
+main ()
+{
+tan ();
+  ;
+  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_c_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_m_tan=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
 
+ac_cv_lib_m_tan=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_m_tan" >&5
+echo "${ECHO_T}$ac_cv_lib_m_tan" >&6
+if test $ac_cv_lib_m_tan = yes; then
+  EGG_MATH_LIB="-lm"
+fi
 
 
-cat >>confdefs.h <<_ACEOF
-#define EGG_MOD_EXT "$MOD_EXT"
+    # This is needed for Tcl libraries compiled with thread support
+    echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
+echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
+if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lpthread  $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 pthread_mutex_init ();
+int
+main ()
+{
+pthread_mutex_init ();
+  ;
+  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_c_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_pthread_pthread_mutex_init=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
 
+ac_cv_lib_pthread_pthread_mutex_init=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_pthread_pthread_mutex_init" >&5
+echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
+if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
 
+      ac_cv_lib_pthread_pthread_mutex_init="yes"
+      ac_cv_lib_pthread="-lpthread"
 
-# Checks for system libraries
-
-  # FIXME: this needs to be fixed so that it works on IRIX
-  if test "$IRIX" = "yes"; then
-    { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE IRIX." >&5
-echo "$as_me: WARNING: Skipping library tests because they CONFUSE IRIX." >&2;}
-  else
+else
 
-echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
-echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
-if test "${ac_cv_lib_socket_socket+set}" = set; then
+      echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
+echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6
+if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lsocket  $LIBS"
+LIBS="-lpthread  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -4158,11 +4190,11 @@
 #endif
 /* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
-char socket ();
+char __pthread_mutex_init ();
 int
 main ()
 {
-socket ();
+__pthread_mutex_init ();
   ;
   return 0;
 }
@@ -4189,36 +4221,33 @@
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
-  ac_cv_lib_socket_socket=yes
+  ac_cv_lib_pthread___pthread_mutex_init=yes
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
 
-ac_cv_lib_socket_socket=no
+ac_cv_lib_pthread___pthread_mutex_init=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_socket" >&5
-echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
-if test $ac_cv_lib_socket_socket = yes; then
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBSOCKET 1
-_ACEOF
-
-  LIBS="-lsocket $LIBS"
+echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
+echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6
+if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
 
-fi
+        ac_cv_lib_pthread_pthread_mutex_init="yes"
+        ac_cv_lib_pthread="-lpthread"
 
+else
 
-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 "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
+echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6
+if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lnsl  $LIBS"
+LIBS="-lpthreads  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -4232,11 +4261,11 @@
 #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 ();
+char pthread_mutex_init ();
 int
 main ()
 {
-connect ();
+pthread_mutex_init ();
   ;
   return 0;
 }
@@ -4263,54 +4292,78 @@
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
-  ac_cv_lib_nsl_connect=yes
+  ac_cv_lib_pthreads_pthread_mutex_init=yes
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
 
-ac_cv_lib_nsl_connect=no
+ac_cv_lib_pthreads_pthread_mutex_init=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"
+echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
+echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6
+if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
 
-fi
+          ac_cv_lib_pthread_pthread_mutex_init="yes"
+          ac_cv_lib_pthread="-lpthreads"
 
+else
 
-echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
-echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
-if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
+          echo "$as_me:$LINENO: checking for pthread_mutex_init" >&5
+echo $ECHO_N "checking for pthread_mutex_init... $ECHO_C" >&6
+if test "${ac_cv_func_pthread_mutex_init+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldns  $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
+  cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
+/* Define pthread_mutex_init to an innocuous variant, in case <limits.h> declares pthread_mutex_init.
+   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+#define pthread_mutex_init innocuous_pthread_mutex_init
+
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char pthread_mutex_init (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef pthread_mutex_init
 
 /* 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 ();
+char pthread_mutex_init ();
+/* The GNU C library defines this for functions which it implements
+    to always fail with ENOSYS.  Some functions are actually named
+    something starting with __ and the normal name is an alias.  */
+#if defined (__stub_pthread_mutex_init) || defined (__stub___pthread_mutex_init)
+choke me
+#else
+char (*f) () = pthread_mutex_init;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
 int
 main ()
 {
-gethostbyname ();
+return f != pthread_mutex_init;
   ;
   return 0;
 }
@@ -4337,32 +4390,45 @@
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
-  ac_cv_lib_dns_gethostbyname=yes
+  ac_cv_func_pthread_mutex_init=yes
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
 
-ac_cv_lib_dns_gethostbyname=no
+ac_cv_func_pthread_mutex_init=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_dns_gethostbyname" >&5
-echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
-if test $ac_cv_lib_dns_gethostbyname = yes; then
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBDNS 1
-_ACEOF
+echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_init" >&5
+echo "${ECHO_T}$ac_cv_func_pthread_mutex_init" >&6
+if test $ac_cv_func_pthread_mutex_init = yes; then
+
+            ac_cv_lib_pthread_pthread_mutex_init="yes"
+            ac_cv_lib_pthread=""
+
+else
+
+            ac_cv_lib_pthread_pthread_mutex_init="no"
 
-  LIBS="-ldns $LIBS"
 
 fi
 
 
-echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
-echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
-if test "${ac_cv_lib_dl_dlopen+set}" = set; then
+fi
+
+
+fi
+
+fi
+
+
+    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
@@ -4374,17 +4440,11 @@
 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 dlopen ();
+
 int
 main ()
 {
-dlopen ();
+main ();
   ;
   return 0;
 }
@@ -4411,20 +4471,20 @@
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
-  ac_cv_lib_dl_dlopen=yes
+  ac_cv_lib_dl_main=yes
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
 
-ac_cv_lib_dl_dlopen=no
+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_dlopen" >&5
-echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
-if test $ac_cv_lib_dl_dlopen = yes; then
+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
@@ -4433,13 +4493,16 @@
 
 fi
 
-    echo "$as_me:$LINENO: checking for tan in -lm" >&5
-echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6
-if test "${ac_cv_lib_m_tan+set}" = set; then
+    else
+      if test "$HPUX" = "yes"; then
+
+echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
+echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
+if test "${ac_cv_lib_dld_shl_load+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lm  $LIBS"
+LIBS="-ldld  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -4453,11 +4516,11 @@
 #endif
 /* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
-char tan ();
+char shl_load ();
 int
 main ()
 {
-tan ();
+shl_load ();
   ;
   return 0;
 }
@@ -4484,56 +4547,101 @@
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
-  ac_cv_lib_m_tan=yes
+  ac_cv_lib_dld_shl_load=yes
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
 
-ac_cv_lib_m_tan=no
+ac_cv_lib_dld_shl_load=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_m_tan" >&5
-echo "${ECHO_T}$ac_cv_lib_m_tan" >&6
-if test $ac_cv_lib_m_tan = yes; then
-  EGG_MATH_LIB="-lm"
+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
+echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
+if test $ac_cv_lib_dld_shl_load = yes; then
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBDLD 1
+_ACEOF
+
+  LIBS="-ldld $LIBS"
+
 fi
 
-    # This is needed for Tcl libraries compiled with thread support
-    echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
-echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
-if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
+      fi
+    fi
+  fi
+
+
+
+# Test the OS and set the module linking settings.
+
+  echo "$as_me:$LINENO: checking system type" >&5
+echo $ECHO_N "checking system type... $ECHO_C" >&6
+if test "${egg_cv_var_system_type+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread  $LIBS"
+  egg_cv_var_system_type=`$UNAME -s`
+fi
+echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
+echo "${ECHO_T}$egg_cv_var_system_type" >&6
+  echo "$as_me:$LINENO: checking system release" >&5
+echo $ECHO_N "checking system release... $ECHO_C" >&6
+if test "${egg_cv_var_system_release+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  egg_cv_var_system_release=`$UNAME -r`
+fi
+echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
+echo "${ECHO_T}$egg_cv_var_system_release" >&6
+
+
+  MODULES_OK="yes"
+  MOD_EXT="so"
+  DEFAULT_MAKE="debug"
+  LOAD_METHOD="dl"
+  WEIRD_OS="yes"
+  UNKNOWN_OS="no"
+  MODULE_XLIBS=""
+
+  echo "$as_me:$LINENO: checking module loading capabilities" >&5
+echo $ECHO_N "checking module loading capabilities... $ECHO_C" >&6
+  echo "$as_me:$LINENO: result: " >&5
+echo "${ECHO_T}" >&6
+
+
+
+
+
+
+for ac_header in dl.h dlfcn.h loader.h rld.h mach-o/dyld.h mach-o/rld.h
+do
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+  # Is the header compilable?
+echo "$as_me:$LINENO: checking $ac_header usability" >&5
+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 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 pthread_mutex_init ();
-int
-main ()
-{
-pthread_mutex_init ();
-  ;
-  return 0;
-}
+$ac_includes_default
+#include <$ac_header>
 _ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
-  (eval $ac_link) 2>conftest.er1
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>conftest.er1
   ac_status=$?
   grep -v '^ *+' conftest.er1 >conftest.err
   rm -f conftest.er1
@@ -4547,128 +4655,175 @@
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; } &&
-	 { ac_try='test -s conftest$ac_exeext'
+	 { ac_try='test -s conftest.$ac_objext'
   { (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_pthread_pthread_mutex_init=yes
+  ac_header_compiler=yes
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
 
-ac_cv_lib_pthread_pthread_mutex_init=no
-fi
-rm -f conftest.err conftest.$ac_objext \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
+ac_header_compiler=no
 fi
-echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
-echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
-if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
-
-      ac_cv_lib_pthread_pthread_mutex_init="yes"
-      ac_cv_lib_pthread="-lpthread"
-
-else
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
 
-      echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
-echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6
-if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread  $LIBS"
+# Is the header present?
+echo "$as_me:$LINENO: checking $ac_header presence" >&5
+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 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 __pthread_mutex_init ();
-int
-main ()
-{
-__pthread_mutex_init ();
-  ;
-  return 0;
-}
+#include <$ac_header>
 _ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
-  (eval $ac_link) 2>conftest.er1
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+  (eval $ac_cpp conftest.$ac_ext) 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_c_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_pthread___pthread_mutex_init=yes
+  (exit $ac_status); } >/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+  ac_header_preproc=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+  ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So?  What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+  yes:no: )
+    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+    ac_header_preproc=yes
+    ;;
+  no:yes:* )
+    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
+    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
+    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+    (
+      cat <<\_ASBOX
+## -------------------------------- ##
+## Report this to bugs at eggheads.org ##
+## -------------------------------- ##
+_ASBOX
+    ) |
+      sed "s/^/$as_me: WARNING:     /" >&2
+    ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+  eval "$as_ac_Header=\$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
-ac_cv_lib_pthread___pthread_mutex_init=no
 fi
-rm -f conftest.err conftest.$ac_objext \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+  cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
 fi
-echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
-echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6
-if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
 
-        ac_cv_lib_pthread_pthread_mutex_init="yes"
-        ac_cv_lib_pthread="-lpthread"
+done
 
-else
 
-        echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
-echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6
-if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
+
+
+
+
+for ac_func in dlopen load NSLinkModule shl_load rld_load
+do
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthreads  $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
+  cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char $ac_func (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
 
 /* 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 pthread_mutex_init ();
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+    to always fail with ENOSYS.  Some functions are actually named
+    something starting with __ and the normal name is an alias.  */
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+choke me
+#else
+char (*f) () = $ac_func;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
 int
 main ()
 {
-pthread_mutex_init ();
+return f != $ac_func;
   ;
   return 0;
 }
@@ -4695,85 +4850,256 @@
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
-  ac_cv_lib_pthreads_pthread_mutex_init=yes
+  eval "$as_ac_var=yes"
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
 
-ac_cv_lib_pthreads_pthread_mutex_init=no
+eval "$as_ac_var=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_pthreads_pthread_mutex_init" >&5
-echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6
-if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+  cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
 
-          ac_cv_lib_pthread_pthread_mutex_init="yes"
-          ac_cv_lib_pthread="-lpthreads"
+fi
+done
 
-else
 
-          echo "$as_me:$LINENO: checking for pthread_mutex_init" >&5
-echo $ECHO_N "checking for pthread_mutex_init... $ECHO_C" >&6
-if test "${ac_cv_func_pthread_mutex_init+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
+  case "$egg_cv_var_system_type" in
+    BSD/OS)
+      if test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "2"; then
+        MODULES_OK="no"
+      fi
+    ;;
+    CYGWI*)
+      WEIRD_OS="no"
+      MOD_EXT="dll"
+    ;;
+    HP-UX)
+      LOAD_METHOD="shl"
+    ;;
+    dell)
+      # Fallthrough.
+    ;;
+    IRIX)
+      # Fallthrough.
+    ;;
+    Ultrix)
+      # No dlopen() or similar on Ultrix. We can't use modules.
+      MODULES_OK="no"
+    ;;
+    BeOS)
+      # We don't yet support BeOS's dynamic linking interface.
+      MODULES_OK="no"
+    ;;
+    Linux)
+      WEIRD_OS="no"
+    ;;
+    Lynx)
+      # Fallthrough.
+    ;;
+    QNX)
+      # Fallthrough.
+      # QNX (recent versions at least) support dlopen().
+    ;;
+    OSF1)
+      case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
+        1.*) LOAD_METHOD="loader" ;;
+      esac
+    ;;
+    SunOS)
+      if test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"; then
+        # We've had quite a bit of testing on Solaris.
+        WEIRD_OS="no"
+      else
+        # SunOS 4
+
+cat >>confdefs.h <<\_ACEOF
+#define DLOPEN_1 1
 _ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-/* Define pthread_mutex_init to an innocuous variant, in case <limits.h> declares pthread_mutex_init.
-   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
-#define pthread_mutex_init innocuous_pthread_mutex_init
 
-/* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char pthread_mutex_init (); below.
-    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
-    <limits.h> exists even on freestanding compilers.  */
+      fi
+    ;;
+    *BSD)
+      # FreeBSD/OpenBSD/NetBSD all support dlopen() and have had plenty of
+      # testing with Eggdrop.
+      WEIRD_OS="no"
+    ;;
+    Darwin)
+      # We should support Mac OS X (at least 10.1 and later) now.
+      # Use rld on < 10.1.
+      if test "$ac_cv_func_NSLinkModule" = "no"; then
+        LOAD_METHOD="rld"
+      fi
+      LOAD_METHOD="dyld"
 
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
+  BUNDLE=""
+  for bundlepath in "/lib" "/usr/lib" "/usr/local/lib"; do
+    echo "$as_me:$LINENO: checking for bundle1.o in ${bundlepath}" >&5
+echo $ECHO_N "checking for bundle1.o in ${bundlepath}... $ECHO_C" >&6
+    if test -r "${bundlepath}/bundle1.o"; then
+      echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+      BUNDLE="${bundlepath}/bundle1.o"
+      break
+    else
+      echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+    fi
+  done
+
+  if test "x${BUNDLE}" = "x"; then
+    cat << 'EOF' >&2
+configure: warning:
+
+  bundle1.o cannot be located. A module build might not compile correctly.
+
+EOF
+  fi
+
+      MODULE_XLIBS="${BUNDLE} ${MODULE_XLIBS}"
+    ;;
+    *)
+      if test -r /mach; then
+        # At this point, we're guessing this is NeXT Step. We support rld, so
+        # modules will probably work on NeXT now, but we have absolutly no way
+        # to test this. I've never even seen a NeXT box, let alone do I know of
+        # one I can test this on.
+        LOAD_METHOD="rld"
+      else
+        # QNX apparently supports dlopen()... Fallthrough.
+        if test -r /cmds; then
+          UNKNOWN_OS="yes"
+          MODULES_OK="no"
+        fi
+      fi
+    ;;
+  esac
+
+  if test "$MODULES_OK" = "yes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define MODULES_OK 1
+_ACEOF
+
+    case $LOAD_METHOD in
+      dl)
+
+cat >>confdefs.h <<\_ACEOF
+#define MOD_USE_DL 1
+_ACEOF
+
+      ;;
+      shl)
+
+cat >>confdefs.h <<\_ACEOF
+#define MOD_USE_SHL 1
+_ACEOF
+
+      ;;
+      dyld)
+
+cat >>confdefs.h <<\_ACEOF
+#define MOD_USE_DYLD 1
+_ACEOF
+
+      ;;
+      loader)
+
+cat >>confdefs.h <<\_ACEOF
+#define MOD_USE_LOADER 1
+_ACEOF
+
+      ;;
+      rld)
+
+cat >>confdefs.h <<\_ACEOF
+#define MOD_USE_RLD 1
+_ACEOF
+
+      ;;
+    esac
+  else
+    DEFAULT_MAKE="static"
+  fi
+
+  if test "$WEIRD_OS" = "yes"; then
+    # Default to "make static" for 'weird' operating systems. Will print a
+    # note at the end of configure explaining. This way, Eggdrop should compile
+    # "out of the box" on most every operating system we know of, and they can
+    # do a "make eggdrop" if they want to use(/try to use) module support. - Wcc
+    DEFAULT_MAKE="static"
+  fi
+
+
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define EGG_MOD_EXT "$MOD_EXT"
+_ACEOF
+
+
+
+  MOD_CC="$CC"
+  MOD_LD="$CC"
+  MOD_STRIP="$STRIP"
+  SHLIB_CC="$CC"
+  SHLIB_LD="$CC"
+  SHLIB_STRIP="$STRIP"
+  LINUX="no"
+  IRIX="no"
+  SUNOS="no"
+  HPUX="no"
+  EGG_CYGWIN="no"
+
+  case "$egg_cv_var_system_type" in
+    BSD/OS)
+      case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
+        2)
+          # Fallthrough.
+        ;;
+        3)
+          MOD_CC="shlicc"
+          MOD_LD="shlicc"
+          if test ! "$STRIP" = "touch"; then
+            MOD_STRIP="$STRIP -d"
+          fi
+          SHLIB_LD="shlicc -r"
+          SHLIB_STRIP="touch"
+        ;;
+        *)
+          if test ! "$STRIP" = "touch"; then
+            MOD_STRIP="$STRIP -d"
+          fi
+          SHLIB_CC="$CC -export-dynamic -fPIC"
+          SHLIB_LD="$CC -shared -nostartfiles"
+        ;;
+      esac
+    ;;
+    CYGWI*)
 
-#undef pthread_mutex_init
+  echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
+echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
+  WIN32FLAGS=
+  cat >conftest.$ac_ext <<_ACEOF
 
-/* 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 pthread_mutex_init ();
-/* The GNU C library defines this for functions which it implements
-    to always fail with ENOSYS.  Some functions are actually named
-    something starting with __ and the normal name is an alias.  */
-#if defined (__stub_pthread_mutex_init) || defined (__stub___pthread_mutex_init)
-choke me
-#else
-char (*f) () = pthread_mutex_init;
-#endif
-#ifdef __cplusplus
-}
-#endif
+    #ifndef WIN32
+    #  ifndef _WIN32
+    #    error WIN32 or _WIN32 not defined
+    #  endif
+    #endif
 
-int
-main ()
-{
-return f != pthread_mutex_init;
-  ;
-  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
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>conftest.er1
   ac_status=$?
   grep -v '^ *+' conftest.er1 >conftest.err
   rm -f conftest.er1
@@ -4787,74 +5113,37 @@
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; } &&
-	 { ac_try='test -s conftest$ac_exeext'
+	 { ac_try='test -s conftest.$ac_objext'
   { (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_func_pthread_mutex_init=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_cv_func_pthread_mutex_init=no
-fi
-rm -f conftest.err conftest.$ac_objext \
-      conftest$ac_exeext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_init" >&5
-echo "${ECHO_T}$ac_cv_func_pthread_mutex_init" >&6
-if test $ac_cv_func_pthread_mutex_init = yes; then
 
-            ac_cv_lib_pthread_pthread_mutex_init="yes"
-            ac_cv_lib_pthread=""
+    echo "$as_me:$LINENO: result: present by default" >&5
+echo "${ECHO_T}present by default" >&6
 
 else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
 
-            ac_cv_lib_pthread_pthread_mutex_init="no"
-
-
-fi
-
-
-fi
-
-
-fi
-
-fi
-
-
-    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.  */
+    ac_compile_save="$ac_compile"
+    save_CC="$CC"
+    ac_compile="$ac_compile -mwin32"
+    CC="$CC -mwin32"
+    cat >conftest.$ac_ext <<_ACEOF
 
+      #ifndef WIN32
+      #  ifndef _WIN32
+      #    error WIN32 or _WIN32 not defined
+      #  endif
+      #endif
 
-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
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>conftest.er1
   ac_status=$?
   grep -v '^ *+' conftest.er1 >conftest.err
   rm -f conftest.er1
@@ -4868,117 +5157,192 @@
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; } &&
-	 { ac_try='test -s conftest$ac_exeext'
+	 { ac_try='test -s conftest.$ac_objext'
   { (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
+
+      echo "$as_me:$LINENO: result: found via -mwin32" >&5
+echo "${ECHO_T}found via -mwin32" >&6
+      ac_compile="$ac_compile_save"
+      CC="$save_CC"
+      WIN32FLAGS="-mwin32"
+
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
 
-ac_cv_lib_dl_main=no
+
+      ac_compile="$ac_compile_save"
+      CC="$save_CC"
+      echo "$as_me:$LINENO: result: not found" >&5
+echo "${ECHO_T}not found" >&6
+
 fi
-rm -f conftest.err conftest.$ac_objext \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+
 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
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+
+      SHLIB_LD="$CC -shared"
+      CC="$CC $WIN32FLAGS"
+      MOD_CC="$CC"
+      MOD_LD="$CC"
+      EGG_CYGWIN="yes"
+
+  if test $EGG_CYGWIN = "yes"; then
+    echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
+echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
+    if test -r /usr/lib/binmode.o; then
+      echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+      LIBS="$LIBS /usr/lib/binmode.o"
+    else
+      echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+      { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
+echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
+    fi
+  fi
+
+
+cat >>confdefs.h <<\_ACEOF
+#define CYGWIN_HACKS 1
+_ACEOF
+
+    ;;
+    HP-UX)
+      HPUX="yes"
+      if test "$CC" = "cc"; then
+        # HP-UX ANSI C Compiler.
+        MOD_LD="$CC +z"
+        SHLIB_CC="$CC +z"
+      else
+        # GCC
+        MOD_LD="$CC -fPIC -shared"
+        SHLIB_CC="$CC -fPIC"
+      fi
+      SHLIB_LD="ld -b"
+    ;;
+    dell)
+      SHLIB_STRIP="touch"
+      MOD_LD="$CC -lelf -lucb"
+    ;;
+    IRIX)
+      SHLIB_LD="ld -n32 -shared -rdata_shared"
+      IRIX="yes"
+      SHLIB_STRIP="touch"
+    ;;
+    Ultrix)
+      SHLIB_STRIP="touch"
+      DEFAULT_MAKE="static"
+      SHELL="/bin/sh5"
+    ;;
+    SINIX*)
+      SHLIB_STRIP="touch"
+      SHLIB_CC="cc -G"
+    ;;
+    BeOS)
+      # Fallthrough.
+    ;;
+    Linux)
+      LINUX="yes"
+      MOD_LD="$CC"
+      SHLIB_CC="$CC -fPIC"
+      SHLIB_LD="$CC -shared -nostartfiles"
+    ;;
+    Lynx)
+      # Fallthrough.
+    ;;
+    QNX)
+      SHLIB_LD="ld -shared"
+    ;;
+    OSF1)
+      case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
+        V*)
+          # Digital OSF uses an ancient version of gawk
+          if test "$AWK" = "gawk"; then
+            AWK="awk"
+          fi
+          SHLIB_LD="ld -shared -expect_unresolved \"'*'\""
+          SHLIB_STRIP="touch"
+        ;;
+        1.0|1.1|1.2)
+          SHLIB_LD="ld -R -export :"
+        ;;
+        1.*)
+          SHLIB_CC="$CC -fpic"
+          SHLIB_LD="ld -shared"
+        ;;
+      esac
+
+cat >>confdefs.h <<\_ACEOF
+#define BROKEN_SNPRINTF 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define STOP_UAC 1
 _ACEOF
 
-  LIBS="-ldl $LIBS"
+    ;;
+    SunOS)
+      if test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"; then
+        # Solaris
+        if test -n "$GCC"; then
+          SHLIB_CC="$CC -fPIC"
+          SHLIB_LD="$CC -shared"
+        else
+          SHLIB_CC="$CC -KPIC"
+          SHLIB_LD="$CC -G -z text"
+        fi
+      else
+        # SunOS 4
+        SUNOS="yes"
+        SHLIB_LD="ld"
+        SHLIB_CC="$CC -PIC"
+      fi
+    ;;
+    *BSD)
+      # FreeBSD/OpenBSD/NetBSD
+      SHLIB_CC="$CC -fPIC"
+      SHLIB_LD="ld -Bshareable -x"
+    ;;
+    Darwin)
+      # Mac OS X
+      SHLIB_CC="$CC -fPIC"
+      SHLIB_LD="ld -bundle -undefined error"
+    ;;
+    *)
+      if test -r /mach; then
+        # At this point, we're guessing this is NeXT Step.
+
+cat >>confdefs.h <<\_ACEOF
+#define BORGCUBES 1
+_ACEOF
 
-fi
+      else
+        if test -r /cmds; then
+          # Probably QNX.
+          SHLIB_LD="ld -shared"
+          SHLIB_STRIP="touch"
+        fi
+      fi
+    ;;
+  esac
 
-    else
-      if test "$HPUX" = "yes"; then
 
-echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
-echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
-if test "${ac_cv_lib_dld_shl_load+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldld  $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 shl_load ();
-int
-main ()
-{
-shl_load ();
-  ;
-  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_c_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_dld_shl_load=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
 
-ac_cv_lib_dld_shl_load=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_dld_shl_load" >&5
-echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
-if test $ac_cv_lib_dld_shl_load = yes; then
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBDLD 1
-_ACEOF
 
-  LIBS="-ldld $LIBS"
 
-fi
 
-      fi
-    fi
-  fi
 
 
 
-# Checks for header files
+# Checks for header files.
 
   if test "$ac_cv_header_stdc" = "no"; then
     cat << 'EOF' >&2
@@ -5554,7 +5918,7 @@
 
 
 
-# Checks for typedefs, structures, and compiler characteristics
+# Checks for typedefs, structures, and compiler characteristics.
 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 if test "${ac_cv_c_const+set}" = set; then
@@ -6484,7 +6848,7 @@
 
 
 
-# Check the sizes of int and long
+# Check the sizes of various types.
 echo "$as_me:$LINENO: checking for long" >&5
 echo $ECHO_N "checking for long... $ECHO_C" >&6
 if test "${ac_cv_type_long+set}" = set; then
@@ -7729,7 +8093,7 @@
 
 
 
-# Checks for functions and their arguments
+# Checks for functions and their arguments.
 
 
 
@@ -7751,8 +8115,7 @@
 
 
 
-
-for ac_func in clock dlopen dprintf fsync getdtablesize getrusage inet_aton isascii mbrlen memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom strcasecmp strncasecmp uname vsnprintf
+for ac_func in clock dprintf fsync getdtablesize getrusage inet_aton isascii mbrlen memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom strcasecmp strncasecmp uname vsnprintf
 do
 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -8096,6 +8459,7 @@
 rm -f conftest*
 
 
+
 for ac_func in vprintf
 do
 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
@@ -8296,7 +8660,6 @@
 done
 
 
-
   if test "$ac_cv_func_vprintf" = "no"; then
     cat << 'EOF' >&2
 configure: error:
@@ -8914,7 +9277,7 @@
 
 
 
-# Make sure we are using the correct result from a broken libsafe sscanf
+# Make sure we are using the correct result from a broken libsafe sscanf().
 
   echo "$as_me:$LINENO: checking for broken libsafe sscanf" >&5
 echo $ECHO_N "checking for broken libsafe sscanf... $ECHO_C" >&6
@@ -8984,12 +9347,12 @@
 
 
 
-# Check for executable extension
+# Check for executable extension.
 
   EGGEXEC="eggdrop"
 
   if test ! "${EXEEXT-x}" = "x"; then
-    EGGEXEC="eggdrop$EXEEXT"
+    EGGEXEC="eggdrop${EXEEXT}"
   fi
 
 
@@ -9001,33 +9364,86 @@
 tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_4/"
 
 
-# Tcl library filename prefixes, suffixes, and search paths
+# Tcl library filename prefixes, suffixes, and search paths.
 tcllibnames="tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
              tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 tcl7.4 tcl74 tcl7.3 \
              tcl73 tcl7.2 tcl72 tcl7.1 tcl71 tcl7.0 tcl70 tcl8.5 tcl85"
 tcllibextensions=".so .so.1 .so.1.0 .so.1.2 .a .sl .dll .dylib"
-tcllibpaths="/usr/local/lib /usr/lib /lib \
+tcllibpaths="$HOME/lib $HOME/tcl/lib /usr/local/lib /usr/lib /lib \
              /usr/local/lib/tcl8.4 /usr/local/lib/tcl8.3 \
              /usr/lib/tcl8.4 /usr/lib/tcl8.3 \
              /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
              /usr/local/pkgs/tcl/lib /sys/lib \
-             /usr/i486-linuxaout/lib /beos/system/lib \
-             $HOME/lib $HOME/tcl/lib $HOME"
+             /usr/i486-linuxaout/lib /beos/system/lib $HOME"
 
 
 
-# Tcl header filenames and search paths
+# Tcl header filenames and search paths.
 tclheadernames="tcl.h"
-tclheaderpaths="/usr/local/include /usr/include \
+tclheaderpaths="$HOME/include $HOME/tcl/include /usr/local/include /usr/include \
                 /usr/local/include/tcl8.3 /usr/local/include/tcl8.4 \
                 /usr/include/tcl8.3 /usr/include/tcl8.4 \
                 /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
                 /usr/local/pkgs/tcl/include /sys/include \
-                /beos/system/include /beos/devel/include \
-                $HOME/include $HOME/tcl/include $HOME"
+                /beos/system/include /beos/devel/include $HOME"
+
+
+# Misc Tcl checks. We save the cache (if used) here to speed things up if we
+# can't find Tcl.
+cat >confcache <<\_ACEOF
+# This file is a shell script that caches the results of configure
+# tests run on this system so they can be shared between configure
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems.  If it contains results you don't
+# want to keep, you may remove or edit it.
+#
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
+#
+# `ac_cv_env_foo' variables (set or unset) will be overridden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
 
+_ACEOF
 
-# Misc Tcl checks
+# The following way of writing the cache mishandles newlines in values,
+# but we know of no workaround that is simple, portable, and efficient.
+# So, don't put newlines in cache variables' values.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
+{
+  (set) 2>&1 |
+    case `(ac_space=' '; set | grep ac_space) 2>&1` in
+    *ac_space=\ *)
+      # `set' does not quote correctly, so add quotes (double-quote
+      # substitution turns \\\\ into \\, and sed turns \\ into \).
+      sed -n \
+	"s/'/'\\\\''/g;
+	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
+      ;;
+    *)
+      # `set' quotes correctly as required by POSIX, so do not add quotes.
+      sed -n \
+	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+      ;;
+    esac;
+} |
+  sed '
+     t clear
+     : clear
+     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
+     t end
+     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+     : end' >>confcache
+if diff $cache_file confcache >/dev/null 2>&1; then :; else
+  if test -w $cache_file; then
+    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
+    cat confcache >$cache_file
+  else
+    echo "not updating unwritable cache $cache_file"
+  fi
+fi
+rm -f confcache
 
 
 # Check whether --with-tcllib or --without-tcllib was given.
@@ -9059,6 +9475,7 @@
       TCLINC=""
     fi
   fi
+
   if test "$WARN" = 1; then
     cat << 'EOF' >&2
 configure: warning:
@@ -9088,12 +9505,14 @@
       TCLINC=""
     fi
   fi
+
   if test "$WARN" = 1; then
     cat << EOF >&2
 configure: warning:
 
   Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
   Please set both TCLLIB and TCLINC correctly if you wish to use them.
+
   configure will now attempt to autodetect both the Tcl library and header.
 
 EOF
@@ -9112,6 +9531,7 @@
 configure: warning:
 
   The file '$tcllibname' given to option --with-tcllib is not valid.
+
   configure will now attempt to autodetect both the Tcl library and header.
 
 EOF
@@ -9135,6 +9555,7 @@
 configure: warning:
 
   The file '$tclincname' given to option --with-tclinc is not valid.
+
   configure will now attempt to autodetect both the Tcl library and header.
 
 EOF
@@ -9149,63 +9570,63 @@
 
 
   # Look for Tcl library: if $TCLLIB is set, check there first
-  if test "${TCLLIBFN-x}" = "x"; then
-    if test ! "${TCLLIB-x}" = "x"; then
-      if test -d "$TCLLIB"; then
-        for tcllibfns in $tcllibnames; do
-          for tcllibext in $tcllibextensions; do
-            if test -r "${TCLLIB}/lib${tcllibfns}${tcllibext}"; then
-              TCLLIBFN="${tcllibfns}${tcllibext}"
-              TCLLIBEXT="$tcllibext"
-              TCLLIBFNS="$tcllibfns"
-              break 2
-            fi
-          done
+  if test "${TCLLIBFN-x}" = "x" && test ! "${TCLLIB-x}" = "x"; then
+    if test -d "$TCLLIB"; then
+      for tcllibfns in $tcllibnames; do
+        for tcllibext in $tcllibextensions; do
+          if test -r "${TCLLIB}/lib${tcllibfns}${tcllibext}"; then
+            TCLLIBFN="${tcllibfns}${tcllibext}"
+            TCLLIBEXT="$tcllibext"
+            TCLLIBFNS="$tcllibfns"
+            break 2
+          fi
         done
-      fi
-      if test "${TCLLIBFN-x}" = "x"; then
-        cat << 'EOF' >&2
+      done
+    fi
+
+    if test "${TCLLIBFN-x}" = "x"; then
+      cat << 'EOF' >&2
 configure: warning:
 
   Environment variable TCLLIB was set, but incorrectly.
   Please set both TCLLIB and TCLINC correctly if you wish to use them.
+
   configure will now attempt to autodetect both the Tcl library and header.
 
 EOF
-        TCLLIB=""
-        TCLLIBFN=""
-        TCLINC=""
-        TCLINCFN=""
-      fi
+      TCLLIB=""
+      TCLLIBFN=""
+      TCLINC=""
+      TCLINCFN=""
     fi
   fi
 
 
   # Look for Tcl header: if $TCLINC is set, check there first
-  if test "${TCLINCFN-x}" = "x"; then
-    if test ! "${TCLINC-x}" = "x"; then
-      if test -d "$TCLINC"; then
-        for tclheaderfn in $tclheadernames; do
-          if test -r "${TCLINC}/${tclheaderfn}"; then
-            TCLINCFN="$tclheaderfn"
-            break
-          fi
-        done
-      fi
-      if test "${TCLINCFN-x}" = "x"; then
-        cat << 'EOF' >&2
+  if test "${TCLINCFN-x}" = "x" && test ! "${TCLINC-x}" = "x"; then
+    if test -d "$TCLINC"; then
+      for tclheaderfn in $tclheadernames; do
+        if test -r "${TCLINC}/${tclheaderfn}"; then
+          TCLINCFN="$tclheaderfn"
+          break
+        fi
+      done
+    fi
+
+    if test "${TCLINCFN-x}" = "x"; then
+      cat << 'EOF' >&2
 configure: warning:
 
   Environment variable TCLINC was set, but incorrectly.
   Please set both TCLLIB and TCLINC correctly if you wish to use them.
+
   configure will now attempt to autodetect both the Tcl library and header.
 
 EOF
-        TCLLIB=""
-        TCLLIBFN=""
-        TCLINC=""
-        TCLINCFN=""
-      fi
+      TCLLIB=""
+      TCLLIBFN=""
+      TCLINC=""
+      TCLINCFN=""
     fi
   fi
 
@@ -9244,6 +9665,7 @@
 
 
 
+
   echo "$as_me:$LINENO: checking for Tcl header" >&5
 echo $ECHO_N "checking for Tcl header... $ECHO_C" >&6
 
@@ -9290,6 +9712,7 @@
 
 
 
+
   echo "$as_me:$LINENO: checking whether the Tcl system has changed" >&5
 echo $ECHO_N "checking whether the Tcl system has changed... $ECHO_C" >&6
   egg_tcl_changed="yes"
@@ -9332,6 +9755,7 @@
     if test "$egg_tcl_changed" = "yes"; then
       unset egg_cv_var_tcl_version
     fi
+
     echo "$as_me:$LINENO: checking for Tcl version" >&5
 echo $ECHO_N "checking for Tcl version... $ECHO_C" >&6
     if test "${egg_cv_var_tcl_version+set}" = set; then
@@ -9387,8 +9811,10 @@
   Eggdrop requires Tcl to compile. If you already have Tcl installed on
   this system, and I just wasn't looking in the right place for it, re-run
   ./configure using the --with-tcllib='/path/to/libtcl.so' and
-  --with-tclinc='/path/to/tcl.h' options. See doc/COMPILING's 'Tcl Detection
-  and Installation' section for more information.
+  --with-tclinc='/path/to/tcl.h' options.
+
+  See doc/COMPILING-FAQ's 'Tcl Detection and Installation' section for more
+  information.
 
 EOF
     exit 1
@@ -9404,8 +9830,10 @@
   Your Tcl version is much too old for Eggdrop to use. You should
   download and compile a more recent version. The most reliable
   current version is $tclrecommendver and can be downloaded from
-  ${tclrecommendsite}. See doc/COMPILING's 'Tcl
-  Detection and Installation' section for more information.
+  ${tclrecommendsite}.
+
+  See doc/COMPILING-FAQ's 'Tcl Detection and Installation' section
+  for more information.
 
 EOF
     exit 1
@@ -9668,69 +10096,14 @@
 
 
 
-            ac_config_commands="$ac_config_commands replace-if-changed"
-
-
-
-
-
-# dlopen() / module load function checks
-
-  if test "$NEED_DL" = 1 && test "$ac_cv_func_dlopen" = "no"; then
-    if test "$LINUX" = "yes"; then
-      cat << 'EOF' >&2
-configure: warning:
-
-  libdl cannot be found. Since you are on a Linux system, this is a known
-  problem. A kludge is known for it,
-EOF
-
-      if test -r "/lib/libdl.so.1"; then
-        cat << 'EOF' >&2
-  and you seem to have it. We'll use that.
-
-EOF
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_DLOPEN 1
-_ACEOF
-
-        LIBS="/lib/libdl.so.1 $LIBS"
-      else
-        cat << 'EOF' >&2
-  which you DON'T seem to have... doh! If you do have dlopen on your system,
-  and manage to figure out where it's located, add it to your XLIBS= lines
-  and #define HAVE_DLOPEN in config.h. We'll proceed on anyway, but you
-  probably won't be able to 'make eggdrop'. The default make will now be set
-  to static.
-
-  If you do manage to get modules working on this system, please let the
-  development team know how (eggdev at eggheads.org).
-
-EOF
-        DEFAULT_MAKE="static"
-      fi
-    else
-      cat << 'EOF' >&2
-configure: warning:
 
-  dlopen could not be found on this system. If you do have dlopen on your
-  system, and manage to figure out where it's located, add it to your XLIBS=
-  lines and #define HAVE_DLOPEN in config.h. We'll proceed on anyway, but you
-  probably won't be able to 'make eggdrop'. The default make will now be set
-  to static.
+            ac_config_commands="$ac_config_commands replace-if-changed"
 
-  If you do manage to get modules working on this system, please let the
-  development team know how (eggdev at eggheads.org).
 
-EOF
-      DEFAULT_MAKE="static"
-    fi
-  fi
 
 
 
-# Substitute Makefile variables
+# Substitute Makefile variables.
 
   EGGVERSION=`grep 'char.egg_version' $srcdir/src/main.c | $AWK '{gsub(/(\"|\;)/, "", $4); print $4}'`
   egg_version_num=`echo $EGGVERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
@@ -10424,14 +10797,15 @@
 s, at AWK@,$AWK,;t t
 s, at BASENAME@,$BASENAME,;t t
 s, at UNAME@,$UNAME,;t t
+s, at DEFAULT_MAKE@,$DEFAULT_MAKE,;t t
+s, at MOD_EXT@,$MOD_EXT,;t t
+s, at MODULE_XLIBS@,$MODULE_XLIBS,;t t
 s, at MOD_LD@,$MOD_LD,;t t
 s, at MOD_CC@,$MOD_CC,;t t
 s, at MOD_STRIP@,$MOD_STRIP,;t t
 s, at SHLIB_LD@,$SHLIB_LD,;t t
 s, at SHLIB_CC@,$SHLIB_CC,;t t
 s, at SHLIB_STRIP@,$SHLIB_STRIP,;t t
-s, at DEFAULT_MAKE@,$DEFAULT_MAKE,;t t
-s, at MOD_EXT@,$MOD_EXT,;t t
 s, at EGGEXEC@,$EGGEXEC,;t t
 s, at TCLLIB@,$TCLLIB,;t t
 s, at TCLLIBFN@,$TCLLIBFN,;t t
@@ -11079,13 +11453,74 @@
 
 
 # Display configure end message
+echo "$as_me:$LINENO: result: " >&5
+echo "${ECHO_T}" >&6
 
+  echo "$as_me:$LINENO: result: Operating System: $egg_cv_var_system_type $egg_cv_var_system_release" >&5
+echo "${ECHO_T}Operating System: $egg_cv_var_system_type $egg_cv_var_system_release" >&6
   echo "$as_me:$LINENO: result: " >&5
 echo "${ECHO_T}" >&6
-  echo "$as_me:$LINENO: result: Configure is done." >&5
-echo "${ECHO_T}Configure is done." >&6
-  echo "$as_me:$LINENO: result: " >&5
+  if test "$UNKNOWN_OS" = "yes"; then
+    echo "$as_me:$LINENO: result: Warning:" >&5
+echo "${ECHO_T}Warning:" >&6
+    echo "$as_me:$LINENO: result: " >&5
+echo "${ECHO_T}" >&6
+    echo "$as_me:$LINENO: result:   Unknown Operating System: $egg_cv_var_system_type $egg_cv_var_system_release" >&5
+echo "${ECHO_T}  Unknown Operating System: $egg_cv_var_system_type $egg_cv_var_system_release" >&6
+    echo "$as_me:$LINENO: result: " >&5
+echo "${ECHO_T}" >&6
+    echo "$as_me:$LINENO: result:   Module support has been disabled for this build." >&5
+echo "${ECHO_T}  Module support has been disabled for this build." >&6
+    echo "$as_me:$LINENO: result: " >&5
+echo "${ECHO_T}" >&6
+    echo "$as_me:$LINENO: result:   Please let us know what type of system this is by e-mailing" >&5
+echo "${ECHO_T}  Please let us know what type of system this is by e-mailing" >&6
+    echo "$as_me:$LINENO: result:   bugs at eggheads.org. The output of uname -a, and some other basic" >&5
+echo "${ECHO_T}  bugs at eggheads.org. The output of uname -a, and some other basic" >&6
+    echo "$as_me:$LINENO: result:   information about the OS should be included." >&5
+echo "${ECHO_T}  information about the OS should be included." >&6
+    echo "$as_me:$LINENO: result: " >&5
+echo "${ECHO_T}" >&6
+  else
+    if test "$WEIRD_OS" = "yes"; then
+      echo "$as_me:$LINENO: result: Warning:" >&5
+echo "${ECHO_T}Warning:" >&6
+      echo "$as_me:$LINENO: result: " >&5
 echo "${ECHO_T}" >&6
+      echo "$as_me:$LINENO: result:   The operating system you are using has not yet had a great" >&5
+echo "${ECHO_T}  The operating system you are using has not yet had a great" >&6
+      echo "$as_me:$LINENO: result:   deal of testing with Eggdrop. For this reason, this compile" >&5
+echo "${ECHO_T}  deal of testing with Eggdrop. For this reason, this compile" >&6
+      echo "$as_me:$LINENO: result:   will default to \"make static\"." >&5
+echo "${ECHO_T}  will default to \"make static\"." >&6
+      echo "$as_me:$LINENO: result: " >&5
+echo "${ECHO_T}" >&6
+      echo "$as_me:$LINENO: result:   To enable module support, type \"make eggdrop\" instead of just" >&5
+echo "${ECHO_T}  To enable module support, type \"make eggdrop\" instead of just" >&6
+      echo "$as_me:$LINENO: result:   \"make\" after you run \"make config\" (or \"make iconfig\")." >&5
+echo "${ECHO_T}  \"make\" after you run \"make config\" (or \"make iconfig\")." >&6
+      echo "$as_me:$LINENO: result: " >&5
+echo "${ECHO_T}" >&6
+      echo "$as_me:$LINENO: result:   As we have not done a sufficiant ammount of testing on this" >&5
+echo "${ECHO_T}  As we have not done a sufficiant ammount of testing on this" >&6
+      echo "$as_me:$LINENO: result:   OS, your feedback is greatly appreciated. Please let us know" >&5
+echo "${ECHO_T}  OS, your feedback is greatly appreciated. Please let us know" >&6
+      echo "$as_me:$LINENO: result:   at bugs at eggheads.org if there are any problems compiling with" >&5
+echo "${ECHO_T}  at bugs at eggheads.org if there are any problems compiling with" >&6
+      echo "$as_me:$LINENO: result:   module support, or if you got it to work :)" >&5
+echo "${ECHO_T}  module support, or if you got it to work :)" >&6
+      echo "$as_me:$LINENO: result: " >&5
+echo "${ECHO_T}" >&6
+    fi
+    echo "$as_me:$LINENO: result: If you experiance any problems compiling Eggdrop, please read the" >&5
+echo "${ECHO_T}If you experiance any problems compiling Eggdrop, please read the" >&6
+    echo "$as_me:$LINENO: result: compile guide, found in doc/COMPILE-FAQ." >&5
+echo "${ECHO_T}compile guide, found in doc/COMPILE-FAQ." >&6
+    echo "$as_me:$LINENO: result: " >&5
+echo "${ECHO_T}" >&6
+  fi
+
+
   echo "$as_me:$LINENO: result: Type 'make config' to configure the modules, or type 'make iconfig'" >&5
 echo "${ECHO_T}Type 'make config' to configure the modules, or type 'make iconfig'" >&6
   echo "$as_me:$LINENO: result: to interactively choose which modules to compile." >&5
Index: eggdrop1.6/src/mod/compress.mod/configure
diff -u eggdrop1.6/src/mod/compress.mod/configure:1.10 eggdrop1.6/src/mod/compress.mod/configure:1.11
--- eggdrop1.6/src/mod/compress.mod/configure:1.10	Sun Jul 25 06:17:34 2004
+++ eggdrop1.6/src/mod/compress.mod/configure	Sun Jul 25 06:18:29 2004
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 1.1 .
+# From configure.ac Revision: 1.2 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59 for Eggdrop Compress Module 1.6.17.
 #
Index: eggdrop1.6/src/mod/dns.mod/configure
diff -u eggdrop1.6/src/mod/dns.mod/configure:1.16 eggdrop1.6/src/mod/dns.mod/configure:1.17
--- eggdrop1.6/src/mod/dns.mod/configure:1.16	Sun Jul 25 06:17:35 2004
+++ eggdrop1.6/src/mod/dns.mod/configure	Sun Jul 25 06:18:29 2004
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 1.1 .
+# From configure.ac Revision: 1.2 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59 for Eggdrop DNS Module 1.6.17.
 #
----------------------- End of diff -----------------------



More information about the Changes mailing list