[eggheads-patches] PATCH: misc-fixes.diff

Tothwolf tothwolf at concentric.net
Sat Oct 16 11:29:43 CST 1999


misc-fixes.diff:
  Reordered case body for os detection in configure.
  Lynx OS does not have a working strip command.
  filesys.mod was still trying to load language file as files.*.lang

-Toth
-------------- next part --------------
diff -urNPX ../exclude ../eggdrop1.3.cvs/configure ./configure
--- ../eggdrop1.3.cvs/configure	Fri Oct 15 17:14:26 1999
+++ ./configure	Fri Oct 15 21:27:59 1999
@@ -1325,19 +1325,6 @@
 echo "configure:1326: checking your OS" >&5
 SYSTEM=`${UNAME}`
 case "$SYSTEM" in
-  Linux)
-    echo "$ac_t""Linux! The choice of the GNU generation" 1>&6
-    LINUX=yes
-    CFLAGS="$CFLAGS -Wall"
-    MOD_LD="${CC}"
-    SHLIB_LD="${CC} -shared -nostartfiles"
-    DLOPEN_1=""
-    DEFAULT_MAKE=debugmem
-    cat >> confdefs.h <<\EOF
-#define MODULES_OK 1
-EOF
-
-    ;;
   BSD/OS)
     if test "x`${UNAME} -r | cut -d . -f 1`" = "x2"
     then
@@ -1357,39 +1344,73 @@
 
     fi
     ;;
-  *BSD)
-    echo "$ac_t""FreeBSD/NetBSD/OpenBSD - choose your poison" 1>&6
-    SHLIB_CC="${CC} -fpic"
-    SHLIB_LD="ld -Bshareable -x"
-    DLOPEN_1=""
+  CYGWIN*)
+    echo "$ac_t""Cygwin" 1>&6
+    NEED_DL=0
+    DEFAULT_MAKE=static
+    ;;
+  HP-UX)
+    echo "$ac_t""HP-UX, just shoot yourself now" 1>&6
+    HPUX=yes
+    MOD_LD="gcc -Wl,-E"
+    SHLIB_CC="gcc -fPIC"
+    SHLIB_LD="ld -b"
+    NEED_DL=0
     cat >> confdefs.h <<\EOF
 #define MODULES_OK 1
 EOF
 
-    ;;
-  SunOS)
-    if test "x`${UNAME} -r | cut -d . -f 1`" = "x5"
+    cat >> confdefs.h <<\EOF
+#define HPUX_HACKS 1
+EOF
+
+    if test "x`${UNAME} -r | cut -d . -f 2`" = "x10"
     then
-      echo "$ac_t""Solaris -- yay" 1>&6
-      SHLIB_LD="/usr/ccs/bin/ld -G -z text"
-    else
-      echo "$ac_t""SunOS -- sigh" 1>&6
-      SUNOS=yes
-      SHLIB_LD=ld
-      SHLIB_STRIP=touch
+       cat >> confdefs.h <<\EOF
+#define HPUX10_HACKS 1
+EOF
+
     fi
-    MOD_CC="${CC} -fPIC"
-    SHLIB_CC="${CC} -fPIC"
+    ;;
+  IRIX)
+    echo "$ac_t""you are cursed with IRIX" 1>&6
+    IRIX=yes
+    SHLIB_STRIP=touch
+    NEED_DL=0
+    DEFAULT_MAKE=static
+    ;;
+  IRIX64)
+    echo "$ac_t""IRIX64" 1>&6
+    SHLIB_STRIP=touch
+    NEED_DL=0
+    DEFAULT_MAKE=static
+    ;;
+  Linux)
+    echo "$ac_t""Linux! The choice of the GNU generation" 1>&6
+    LINUX=yes
+    CFLAGS="$CFLAGS -Wall"
+    MOD_LD="${CC}"
+    SHLIB_LD="${CC} -shared -nostartfiles"
+    DLOPEN_1=""
+    DEFAULT_MAKE=debugmem
     cat >> confdefs.h <<\EOF
 #define MODULES_OK 1
 EOF
 
     ;;
+  Lynx)
+    SHLIB_STRIP=touch
+    echo "$ac_t""Lynx OS" 1>&6
+    ;;
   OSF1)
     echo "$ac_t""OSF..." 1>&6
     case `${UNAME} -r | cut -d . -f 1` in
       V*)
 	echo "$ac_t""   Digital OSF" 1>&6
+	if test "x$AWK" = "xgawk"
+	then
+          AWK="awk"
+	fi
 	MOD_CC="cc"
 	MOD_LD="cc"
 	SHLIB_CC="cc"
@@ -1436,49 +1457,33 @@
 EOF
 
     ;;
-  HP-UX)
-    echo "$ac_t""HP-UX, just shoot yourself now" 1>&6
-    HPUX=yes
-    MOD_LD="gcc -Wl,-E"
-    SHLIB_CC="gcc -fPIC"
-    SHLIB_LD="ld -b"
-    NEED_DL=0
+  SunOS)
+    if test "x`${UNAME} -r | cut -d . -f 1`" = "x5"
+    then
+      echo "$ac_t""Solaris -- yay" 1>&6
+      SHLIB_LD="/usr/ccs/bin/ld -G -z text"
+    else
+      echo "$ac_t""SunOS -- sigh" 1>&6
+      SUNOS=yes
+      SHLIB_LD=ld
+      SHLIB_STRIP=touch
+    fi
+    MOD_CC="${CC} -fPIC"
+    SHLIB_CC="${CC} -fPIC"
     cat >> confdefs.h <<\EOF
 #define MODULES_OK 1
 EOF
 
+    ;;
+  *BSD)
+    echo "$ac_t""FreeBSD/NetBSD/OpenBSD - choose your poison" 1>&6
+    SHLIB_CC="${CC} -fpic"
+    SHLIB_LD="ld -Bshareable -x"
+    DLOPEN_1=""
     cat >> confdefs.h <<\EOF
-#define HPUX_HACKS 1
-EOF
-
-    if test "x`${UNAME} -r | cut -d . -f 2`" = "x10"
-    then
-       cat >> confdefs.h <<\EOF
-#define HPUX10_HACKS 1
+#define MODULES_OK 1
 EOF
 
-    fi
-    ;;
-  IRIX)
-    echo "$ac_t""you are cursed with IRIX" 1>&6
-    IRIX=yes
-    SHLIB_STRIP=touch
-    NEED_DL=0
-    DEFAULT_MAKE=static
-    ;;
-  IRIX64)
-    echo "$ac_t""IRIX64" 1>&6
-    SHLIB_STRIP=touch
-    NEED_DL=0
-    DEFAULT_MAKE=static
-    ;;
-  Lynx)
-    echo "$ac_t""Lynx OS" 1>&6
-    ;;
-  CYGWIN*)
-    echo "$ac_t""Cygwin" 1>&6
-    NEED_DL=0
-    DEFAULT_MAKE=static
     ;;
   *)
     if test -r "/mach"
@@ -1504,7 +1509,7 @@
   echo "configure: warning: Skipping library tests because they CONFUSE Irix." 1>&2
 else
   echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
-echo "configure:1508: checking for socket in -lsocket" >&5
+echo "configure:1513: checking for socket in -lsocket" >&5
 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -1512,7 +1517,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lsocket  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 1516 "configure"
+#line 1521 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -1523,7 +1528,7 @@
 socket()
 ; return 0; }
 EOF
-if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -1551,7 +1556,7 @@
 fi
 
   echo $ac_n "checking for connect in -lnsl""... $ac_c" 1>&6
-echo "configure:1555: checking for connect in -lnsl" >&5
+echo "configure:1560: checking for connect in -lnsl" >&5
 ac_lib_var=`echo nsl'_'connect | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -1559,7 +1564,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lnsl  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 1563 "configure"
+#line 1568 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -1570,7 +1575,7 @@
 connect()
 ; return 0; }
 EOF
-if { (eval echo configure:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -1598,7 +1603,7 @@
 fi
 
   echo $ac_n "checking for gethostbyname in -ldns""... $ac_c" 1>&6
-echo "configure:1602: checking for gethostbyname in -ldns" >&5
+echo "configure:1607: checking for gethostbyname in -ldns" >&5
 ac_lib_var=`echo dns'_'gethostbyname | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -1606,7 +1611,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-ldns  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 1610 "configure"
+#line 1615 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -1617,7 +1622,7 @@
 gethostbyname()
 ; return 0; }
 EOF
-if { (eval echo configure:1621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -1645,7 +1650,7 @@
 fi
 
   echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
-echo "configure:1649: checking for dlopen in -ldl" >&5
+echo "configure:1654: checking for dlopen in -ldl" >&5
 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -1653,7 +1658,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-ldl  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 1657 "configure"
+#line 1662 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -1664,7 +1669,7 @@
 dlopen()
 ; return 0; }
 EOF
-if { (eval echo configure:1668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -1694,7 +1699,7 @@
   if test "$SUNOS" = "yes"
   then
         echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
-echo "configure:1698: checking for main in -ldl" >&5
+echo "configure:1703: checking for main in -ldl" >&5
 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -1702,14 +1707,14 @@
   ac_save_LIBS="$LIBS"
 LIBS="-ldl  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 1706 "configure"
+#line 1711 "configure"
 #include "confdefs.h"
 
 int main() {
 main()
 ; return 0; }
 EOF
-if { (eval echo configure:1713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -1740,7 +1745,7 @@
     if test "$HPUX" = "yes"
     then
       echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
-echo "configure:1744: checking for shl_load in -ldld" >&5
+echo "configure:1749: checking for shl_load in -ldld" >&5
 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -1748,7 +1753,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-ldld  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 1752 "configure"
+#line 1757 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -1759,7 +1764,7 @@
 shl_load()
 ; return 0; }
 EOF
-if { (eval echo configure:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -1795,12 +1800,12 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
-echo "configure:1799: checking for $ac_hdr that defines DIR" >&5
+echo "configure:1804: checking for $ac_hdr that defines DIR" >&5
 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1804 "configure"
+#line 1809 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <$ac_hdr>
@@ -1808,7 +1813,7 @@
 DIR *dirp = 0;
 ; return 0; }
 EOF
-if { (eval echo configure:1812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   eval "ac_cv_header_dirent_$ac_safe=yes"
 else
@@ -1833,7 +1838,7 @@
 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 if test $ac_header_dirent = dirent.h; then
 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
-echo "configure:1837: checking for opendir in -ldir" >&5
+echo "configure:1842: checking for opendir in -ldir" >&5
 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -1841,7 +1846,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-ldir  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 1845 "configure"
+#line 1850 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -1852,7 +1857,7 @@
 opendir()
 ; return 0; }
 EOF
-if { (eval echo configure:1856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -1874,7 +1879,7 @@
 
 else
 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
-echo "configure:1878: checking for opendir in -lx" >&5
+echo "configure:1883: checking for opendir in -lx" >&5
 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -1882,7 +1887,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lx  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 1886 "configure"
+#line 1891 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -1893,7 +1898,7 @@
 opendir()
 ; return 0; }
 EOF
-if { (eval echo configure:1897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -1916,12 +1921,12 @@
 fi
 
 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
-echo "configure:1920: checking for sys/wait.h that is POSIX.1 compatible" >&5
+echo "configure:1925: checking for sys/wait.h that is POSIX.1 compatible" >&5
 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1925 "configure"
+#line 1930 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <sys/wait.h>
@@ -1937,7 +1942,7 @@
 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 ; return 0; }
 EOF
-if { (eval echo configure:1941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_header_sys_wait_h=yes
 else
@@ -1961,17 +1966,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:1965: checking for $ac_hdr" >&5
+echo "configure:1970: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1970 "configure"
+#line 1975 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -1998,12 +2003,12 @@
 done
 
 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
-echo "configure:2002: checking whether time.h and sys/time.h may both be included" >&5
+echo "configure:2007: checking whether time.h and sys/time.h may both be included" >&5
 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2007 "configure"
+#line 2012 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <sys/time.h>
@@ -2012,7 +2017,7 @@
 struct tm *tp;
 ; return 0; }
 EOF
-if { (eval echo configure:2016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_header_time=yes
 else
@@ -2036,17 +2041,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:2040: checking for $ac_hdr" >&5
+echo "configure:2045: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2045 "configure"
+#line 2050 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -2074,12 +2079,12 @@
 
 
 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
-echo "configure:2078: checking for ANSI C header files" >&5
+echo "configure:2083: checking for ANSI C header files" >&5
 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2083 "configure"
+#line 2088 "configure"
 #include "confdefs.h"
 #include <stdlib.h>
 #include <stdarg.h>
@@ -2087,7 +2092,7 @@
 #include <float.h>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -2104,7 +2109,7 @@
 if test $ac_cv_header_stdc = yes; then
   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 cat > conftest.$ac_ext <<EOF
-#line 2108 "configure"
+#line 2113 "configure"
 #include "confdefs.h"
 #include <string.h>
 EOF
@@ -2122,7 +2127,7 @@
 if test $ac_cv_header_stdc = yes; then
   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 cat > conftest.$ac_ext <<EOF
-#line 2126 "configure"
+#line 2131 "configure"
 #include "confdefs.h"
 #include <stdlib.h>
 EOF
@@ -2143,7 +2148,7 @@
   :
 else
   cat > conftest.$ac_ext <<EOF
-#line 2147 "configure"
+#line 2152 "configure"
 #include "confdefs.h"
 #include <ctype.h>
 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
@@ -2154,7 +2159,7 @@
 exit (0); }
 
 EOF
-if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   :
 else
@@ -2178,12 +2183,12 @@
 fi
 
 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
-echo "configure:2182: checking for pid_t" >&5
+echo "configure:2187: checking for pid_t" >&5
 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2187 "configure"
+#line 2192 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #if STDC_HEADERS
@@ -2211,14 +2216,14 @@
 fi
 
 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
-echo "configure:2215: checking whether byte ordering is bigendian" >&5
+echo "configure:2220: checking whether byte ordering is bigendian" >&5
 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_cv_c_bigendian=unknown
 # See if sys/param.h defines the BYTE_ORDER macro.
 cat > conftest.$ac_ext <<EOF
-#line 2222 "configure"
+#line 2227 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <sys/param.h>
@@ -2229,11 +2234,11 @@
 #endif
 ; return 0; }
 EOF
-if { (eval echo configure:2233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   # It does; now see whether it defined to BIG_ENDIAN or not.
 cat > conftest.$ac_ext <<EOF
-#line 2237 "configure"
+#line 2242 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <sys/param.h>
@@ -2244,7 +2249,7 @@
 #endif
 ; return 0; }
 EOF
-if { (eval echo configure:2248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_c_bigendian=yes
 else
@@ -2264,7 +2269,7 @@
     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
 else
   cat > conftest.$ac_ext <<EOF
-#line 2268 "configure"
+#line 2273 "configure"
 #include "confdefs.h"
 main () {
   /* Are we little or big endian?  From Harbison&Steele.  */
@@ -2277,7 +2282,7 @@
   exit (u.c[sizeof (long) - 1] == 1);
 }
 EOF
-if { (eval echo configure:2281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   ac_cv_c_bigendian=no
 else
@@ -2301,21 +2306,21 @@
 fi
 
 echo $ac_n "checking for inline""... $ac_c" 1>&6
-echo "configure:2305: checking for inline" >&5
+echo "configure:2310: checking for inline" >&5
 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_cv_c_inline=no
 for ac_kw in inline __inline__ __inline; do
   cat > conftest.$ac_ext <<EOF
-#line 2312 "configure"
+#line 2317 "configure"
 #include "confdefs.h"
 
 int main() {
 } $ac_kw foo() {
 ; return 0; }
 EOF
-if { (eval echo configure:2319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_c_inline=$ac_kw; break
 else
@@ -2341,7 +2346,7 @@
 esac
 
 echo $ac_n "checking size of long""... $ac_c" 1>&6
-echo "configure:2345: checking size of long" >&5
+echo "configure:2350: checking size of long" >&5
 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2349,7 +2354,7 @@
   ac_cv_sizeof_long=0
 else
   cat > conftest.$ac_ext <<EOF
-#line 2353 "configure"
+#line 2358 "configure"
 #include "confdefs.h"
 #include <stdio.h>
 main()
@@ -2360,7 +2365,7 @@
   exit(0);
 }
 EOF
-if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:2369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   ac_cv_sizeof_long=`cat conftestval`
 else
@@ -2380,7 +2385,7 @@
 
 
 echo $ac_n "checking size of int""... $ac_c" 1>&6
-echo "configure:2384: checking size of int" >&5
+echo "configure:2389: checking size of int" >&5
 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2388,7 +2393,7 @@
   ac_cv_sizeof_int=0
 else
   cat > conftest.$ac_ext <<EOF
-#line 2392 "configure"
+#line 2397 "configure"
 #include "confdefs.h"
 #include <stdio.h>
 main()
@@ -2399,7 +2404,7 @@
   exit(0);
 }
 EOF
-if { (eval echo configure:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   ac_cv_sizeof_int=`cat conftestval`
 else
@@ -2422,12 +2427,12 @@
 for ac_func in rename getrusage getdtablesize srandom random sigaction
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2426: checking for $ac_func" >&5
+echo "configure:2431: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2431 "configure"
+#line 2436 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -2450,7 +2455,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:2454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -2477,12 +2482,12 @@
 for ac_func in sigemptyset vsprintf strcasecmp setpgid clock dlopen
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2481: checking for $ac_func" >&5
+echo "configure:2486: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2486 "configure"
+#line 2491 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -2505,7 +2510,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:2509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -2532,12 +2537,12 @@
 for ac_func in dprintf bzero uname vsnprintf
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2536: checking for $ac_func" >&5
+echo "configure:2541: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2541 "configure"
+#line 2546 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -2560,7 +2565,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:2564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -2610,12 +2615,12 @@
 fi
 
 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
-echo "configure:2614: checking for Cygwin environment" >&5
+echo "configure:2619: checking for Cygwin environment" >&5
 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2619 "configure"
+#line 2624 "configure"
 #include "confdefs.h"
 
 int main() {
@@ -2626,7 +2631,7 @@
 return __CYGWIN__;
 ; return 0; }
 EOF
-if { (eval echo configure:2630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_cygwin=yes
 else
@@ -2651,19 +2656,19 @@
 fi
 
 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
-echo "configure:2655: checking for mingw32 environment" >&5
+echo "configure:2660: checking for mingw32 environment" >&5
 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2660 "configure"
+#line 2665 "configure"
 #include "confdefs.h"
 
 int main() {
 return __MINGW32__;
 ; return 0; }
 EOF
-if { (eval echo configure:2667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_mingw32=yes
 else
@@ -2682,7 +2687,7 @@
 
 
 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
-echo "configure:2686: checking for executable suffix" >&5
+echo "configure:2691: checking for executable suffix" >&5
 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2692,7 +2697,7 @@
   rm -f conftest*
   echo 'int main () { return 0; }' > conftest.$ac_ext
   ac_cv_exeext=
-  if { (eval echo configure:2696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+  if { (eval echo configure:2701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     for file in conftest.*; do
       case $file in
       *.c | *.o | *.obj) ;;
@@ -2718,7 +2723,7 @@
 fi
 
 echo $ac_n "checking space left in file database struct""... $ac_c" 1>&6
-echo "configure:2722: checking space left in file database struct" >&5
+echo "configure:2727: checking space left in file database struct" >&5
 
 cat > abacab.c << 'EOF'
 #include <stdio.h>
@@ -2955,7 +2960,7 @@
 fi
 
 echo $ac_n "checking for Tcl library""... $ac_c" 1>&6
-echo "configure:2959: checking for Tcl library" >&5
+echo "configure:2964: checking for Tcl library" >&5
 
 # attempt autodetect for $TCLLIBFN if it's not set
 if test ! "x${TCLLIBFN}" = "x"
@@ -2989,7 +2994,7 @@
 fi
 
 echo $ac_n "checking for Tcl header""... $ac_c" 1>&6
-echo "configure:2993: checking for Tcl header" >&5
+echo "configure:2998: checking for Tcl header" >&5
 
 # attempt autodetect for $TCLINCFN if it's not set
 if test ! "x${TCLINCFN}" = "x"
@@ -3065,7 +3070,7 @@
 
     # check Tcl version
     echo $ac_n "checking for Tcl version""... $ac_c" 1>&6
-echo "configure:3069: checking for Tcl version" >&5
+echo "configure:3074: checking for Tcl version" >&5
     TCLVER=`grep TCL_VERSION $TCLINC/$TCLINCFN | $AWK '{gsub(/\"/, "", $3); print $3}' | head -1`
     if test ! "x${TCLVER}" = "x"
     then
@@ -3088,7 +3093,7 @@
       if test "x${BUGGY_TCL}" = "xyes"
       then
 	echo $ac_n "checking for buggy Tcl 8.1 threads""... $ac_c" 1>&6
-echo "configure:3092: checking for buggy Tcl 8.1 threads" >&5
+echo "configure:3097: checking for buggy Tcl 8.1 threads" >&5
 	if test -f "$TCLLIB/$tclconfigfile"
 	then
 	  HASTHREADS=`grep 'TCL_DEFS' $TCLLIB/$tclconfigfile | grep 'TCL_THREADS=1' | wc -l`
diff -urNPX ../exclude ../eggdrop1.3.cvs/configure.in ./configure.in
--- ../eggdrop1.3.cvs/configure.in	Fri Oct 15 17:14:26 1999
+++ ./configure.in	Fri Oct 15 19:21:10 1999
@@ -113,16 +113,6 @@
 AC_MSG_CHECKING(your OS)
 SYSTEM=`${UNAME}`
 case "$SYSTEM" in
-  Linux)
-    AC_MSG_RESULT(Linux! The choice of the GNU generation)
-    LINUX=yes
-    CFLAGS="$CFLAGS -Wall"
-    MOD_LD="${CC}"
-    SHLIB_LD="${CC} -shared -nostartfiles"
-    DLOPEN_1=""
-    DEFAULT_MAKE=debugmem
-    AC_DEFINE(MODULES_OK)
-    ;;
   BSD/OS)
     if test "x`${UNAME} -r | cut -d . -f 1`" = "x2"
     then
@@ -139,33 +129,61 @@
       AC_DEFINE(MODULES_OK)
     fi
     ;;
-  *BSD)
-    AC_MSG_RESULT(FreeBSD/NetBSD/OpenBSD - choose your poison)
-    SHLIB_CC="${CC} -fpic"
-    SHLIB_LD="ld -Bshareable -x"
-    DLOPEN_1=""
-    AC_DEFINE(MODULES_OK)
+  CYGWIN*)
+    AC_MSG_RESULT(Cygwin)
+    NEED_DL=0
+    DEFAULT_MAKE=static
     ;;
-  SunOS)
-    if test "x`${UNAME} -r | cut -d . -f 1`" = "x5"
+  HP-UX)
+    AC_MSG_RESULT([HP-UX, just shoot yourself now])
+    HPUX=yes
+    MOD_LD="gcc -Wl,-E"
+    SHLIB_CC="gcc -fPIC"
+    SHLIB_LD="ld -b"
+    NEED_DL=0
+    AC_DEFINE(MODULES_OK)
+    AC_DEFINE(HPUX_HACKS)
+    if test "x`${UNAME} -r | cut -d . -f 2`" = "x10"
     then
-      AC_MSG_RESULT(Solaris -- yay)
-      SHLIB_LD="/usr/ccs/bin/ld -G -z text"
-    else
-      AC_MSG_RESULT(SunOS -- sigh)
-      SUNOS=yes
-      SHLIB_LD=ld
-      SHLIB_STRIP=touch
+       AC_DEFINE(HPUX10_HACKS)
     fi
-    MOD_CC="${CC} -fPIC"
-    SHLIB_CC="${CC} -fPIC"
+    ;;
+  IRIX)
+    AC_MSG_RESULT(you are cursed with IRIX)
+    IRIX=yes
+    SHLIB_STRIP=touch
+    NEED_DL=0
+    DEFAULT_MAKE=static
+    ;;
+  IRIX64)
+    AC_MSG_RESULT(IRIX64)
+    SHLIB_STRIP=touch
+    NEED_DL=0
+    DEFAULT_MAKE=static
+    ;;
+  Linux)
+    AC_MSG_RESULT(Linux! The choice of the GNU generation)
+    LINUX=yes
+    CFLAGS="$CFLAGS -Wall"
+    MOD_LD="${CC}"
+    SHLIB_LD="${CC} -shared -nostartfiles"
+    DLOPEN_1=""
+    DEFAULT_MAKE=debugmem
     AC_DEFINE(MODULES_OK)
     ;;
+  Lynx)
+    SHLIB_STRIP=touch
+    AC_MSG_RESULT(Lynx OS)
+    ;;
   OSF1)
     AC_MSG_RESULT(OSF...)
     case `${UNAME} -r | cut -d . -f 1` in
       V*)
 	AC_MSG_RESULT([   Digital OSF])
+	if test "x$AWK" = "xgawk"
+	then
+          AWK="awk"
+	fi
 	MOD_CC="cc"
 	MOD_LD="cc"
 	SHLIB_CC="cc"
@@ -194,40 +212,27 @@
     esac
     AC_DEFINE(STOP_UAC)
     ;;
-  HP-UX)
-    AC_MSG_RESULT([HP-UX, just shoot yourself now])
-    HPUX=yes
-    MOD_LD="gcc -Wl,-E"
-    SHLIB_CC="gcc -fPIC"
-    SHLIB_LD="ld -b"
-    NEED_DL=0
-    AC_DEFINE(MODULES_OK)
-    AC_DEFINE(HPUX_HACKS)
-    if test "x`${UNAME} -r | cut -d . -f 2`" = "x10"
+  SunOS)
+    if test "x`${UNAME} -r | cut -d . -f 1`" = "x5"
     then
-       AC_DEFINE(HPUX10_HACKS)
+      AC_MSG_RESULT(Solaris -- yay)
+      SHLIB_LD="/usr/ccs/bin/ld -G -z text"
+    else
+      AC_MSG_RESULT(SunOS -- sigh)
+      SUNOS=yes
+      SHLIB_LD=ld
+      SHLIB_STRIP=touch
     fi
+    MOD_CC="${CC} -fPIC"
+    SHLIB_CC="${CC} -fPIC"
+    AC_DEFINE(MODULES_OK)
     ;;
-  IRIX)
-    AC_MSG_RESULT(you are cursed with IRIX)
-    IRIX=yes
-    SHLIB_STRIP=touch
-    NEED_DL=0
-    DEFAULT_MAKE=static
-    ;;
-  IRIX64)
-    AC_MSG_RESULT(IRIX64)
-    SHLIB_STRIP=touch
-    NEED_DL=0
-    DEFAULT_MAKE=static
-    ;;
-  Lynx)
-    AC_MSG_RESULT(Lynx OS)
-    ;;
-  CYGWIN*)
-    AC_MSG_RESULT(Cygwin)
-    NEED_DL=0
-    DEFAULT_MAKE=static
+  *BSD)
+    AC_MSG_RESULT(FreeBSD/NetBSD/OpenBSD - choose your poison)
+    SHLIB_CC="${CC} -fpic"
+    SHLIB_LD="ld -Bshareable -x"
+    DLOPEN_1=""
+    AC_DEFINE(MODULES_OK)
     ;;
   *)
     if test -r "/mach"
diff -urNPX ../exclude ../eggdrop1.3.cvs/src/mod/filesys.mod/filesys.c ./src/mod/filesys.mod/filesys.c
--- ../eggdrop1.3.cvs/src/mod/filesys.mod/filesys.c	Tue Oct 12 16:25:16 1999
+++ ./src/mod/filesys.mod/filesys.c	Fri Oct 15 21:24:56 1999
@@ -873,7 +873,7 @@
   USERENTRY_DCCDIR.got_share = 0;	/* we dont want it shared tho */
   add_entry_type(&USERENTRY_DCCDIR);
   DCC_FILES_PASS.timeout_val = &password_timeout;
-  add_lang_section("files");
+  add_lang_section("filesys");
   return NULL;
 }
 


More information about the Patches mailing list