/[cvs]/eggdrop1.9/aclocal.m4
ViewVC logotype

Diff of /eggdrop1.9/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3 by fabian, Mon Dec 6 15:56:43 1999 UTC revision 1.4 by fabian, Tue Dec 21 17:35:02 1999 UTC
# Line 1  Line 1 
1    dnl aclocal.m4
2    dnl   macros autoconf uses when building configure from configure.in
3    dnl
4    dnl $Id$
5    dnl
6  AC_DEFUN(EGG_MSG_CONFIGURE_START, [dnl  AC_DEFUN(EGG_MSG_CONFIGURE_START, [dnl
7  AC_MSG_RESULT()  AC_MSG_RESULT()
8  AC_MSG_RESULT(This is eggdrop's GNU configure script.)  AC_MSG_RESULT(This is eggdrop's GNU configure script.)
# Line 7  AC_MSG_RESULT(It's going to run a bunch Line 10  AC_MSG_RESULT(It's going to run a bunch
10  AC_MSG_RESULT(make your compile work without much twiddling.)  AC_MSG_RESULT(make your compile work without much twiddling.)
11  AC_MSG_RESULT()  AC_MSG_RESULT()
12  ])dnl  ])dnl
13    dnl
14    dnl
15  AC_DEFUN(EGG_MSG_CONFIGURE_END, [dnl  AC_DEFUN(EGG_MSG_CONFIGURE_END, [dnl
16  AC_MSG_RESULT()  AC_MSG_RESULT()
17  AC_MSG_RESULT(Configure is done.)  AC_MSG_RESULT(Configure is done.)
# Line 21  else Line 24  else
24  fi  fi
25  AC_MSG_RESULT()  AC_MSG_RESULT()
26  ])dnl  ])dnl
27    dnl
28  # FIXME: make a better test  dnl
29    dnl FIXME: make a better test
30  AC_DEFUN(EGG_CHECK_CC, [dnl  AC_DEFUN(EGG_CHECK_CC, [dnl
31  if test "x${cross_compiling}" = "x"  if test "x${cross_compiling}" = "x"
32  then  then
# Line 36  EOF Line 40  EOF
40    exit 1    exit 1
41  fi  fi
42  ])dnl  ])dnl
43    dnl
44    dnl
45  AC_DEFUN(EGG_PROG_STRIP, [dnl  AC_DEFUN(EGG_PROG_STRIP, [dnl
46  AC_CHECK_PROG(STRIP,strip,strip)  AC_CHECK_PROG(STRIP,strip,strip)
47  if test "x${STRIP}" = "x"  if test "x${STRIP}" = "x"
# Line 45  then Line 49  then
49    STRIP=touch    STRIP=touch
50  fi  fi
51  ])dnl  ])dnl
52    dnl
53    dnl
54  AC_DEFUN(EGG_PROG_AWK, [dnl  AC_DEFUN(EGG_PROG_AWK, [dnl
55  # awk is needed for Tcl library and header checks, and eggdrop version subst  # awk is needed for Tcl library and header checks, and eggdrop version subst
56  AC_PROG_AWK  AC_PROG_AWK
# Line 62  EOF Line 66  EOF
66    exit 1    exit 1
67  fi  fi
68  ])dnl  ])dnl
69    dnl
70    dnl
71  AC_DEFUN(EGG_PROG_BASENAME, [dnl  AC_DEFUN(EGG_PROG_BASENAME, [dnl
72  # basename is needed for Tcl library and header checks  # basename is needed for Tcl library and header checks
73  AC_CHECK_PROG(BASENAME, basename, basename)  AC_CHECK_PROG(BASENAME, basename, basename)
# Line 79  EOF Line 83  EOF
83    exit 1    exit 1
84  fi  fi
85  ])dnl  ])dnl
86    dnl
87    dnl
88  AC_DEFUN(EGG_CHECK_OS, [dnl  AC_DEFUN(EGG_CHECK_OS, [dnl
89  LINUX=no  LINUX=no
90  IRIX=no  IRIX=no
# Line 257  AC_SUBST(SHLIB_CC)dnl Line 261  AC_SUBST(SHLIB_CC)dnl
261  AC_SUBST(SHLIB_STRIP)dnl  AC_SUBST(SHLIB_STRIP)dnl
262  AC_SUBST(DEFAULT_MAKE)dnl  AC_SUBST(DEFAULT_MAKE)dnl
263  ])dnl  ])dnl
264    dnl
265    dnl
266  AC_DEFUN(EGG_CHECK_LIBS, [dnl  AC_DEFUN(EGG_CHECK_LIBS, [dnl
267  if test "$IRIX" = "yes"  if test "$IRIX" = "yes"
268  then  then
# Line 284  ac_cv_lib_pthread_pthread_mutex_init=no) Line 288  ac_cv_lib_pthread_pthread_mutex_init=no)
288    fi    fi
289  fi  fi
290  ])dnl  ])dnl
291    dnl
292    dnl
293  AC_DEFUN(EGG_CHECK_RES_LIBS, [dnl  AC_DEFUN(EGG_CHECK_RES_LIBS, [dnl
294  AC_CHECK_FUNC(res_init, ,  AC_CHECK_FUNC(res_init, ,
295    AC_CHECK_LIB(bind, res_init, RESLIB="-lbind",    AC_CHECK_LIB(bind, res_init, RESLIB="-lbind",
# Line 299  AC_CHECK_FUNC(res_mkquery, , Line 303  AC_CHECK_FUNC(res_mkquery, ,
303    
304  AC_SUBST(RESLIB)  AC_SUBST(RESLIB)
305  ])dnl  ])dnl
306    dnl
307    dnl
308  AC_DEFUN(EGG_CHECK_FUNC_VSPRINTF, [dnl  AC_DEFUN(EGG_CHECK_FUNC_VSPRINTF, [dnl
309  AC_CHECK_FUNCS(vsprintf)  AC_CHECK_FUNCS(vsprintf)
310  if test "x${ac_cv_func_vsprintf}" = "xno"  if test "x${ac_cv_func_vsprintf}" = "xno"
# Line 315  EOF Line 319  EOF
319    exit 1    exit 1
320  fi  fi
321  ])dnl  ])dnl
322    dnl
323    dnl
324  AC_DEFUN(EGG_HEADER_STDC, [dnl  AC_DEFUN(EGG_HEADER_STDC, [dnl
325  if test "x${ac_cv_header_stdc}" = "xno"  if test "x${ac_cv_header_stdc}" = "xno"
326  then  then
# Line 330  EOF Line 334  EOF
334    exit 1    exit 1
335  fi  fi
336  ])dnl  ])dnl
337    dnl
338    dnl
339  AC_DEFUN(EGG_CYGWIN, [dnl  AC_DEFUN(EGG_CYGWIN, [dnl
340  AC_CYGWIN  AC_CYGWIN
341  if test ! "x${CYGWIN}" = "x"  if test ! "x${CYGWIN}" = "x"
# Line 339  then Line 343  then
343    AC_DEFINE(CYGWIN_HACKS)dnl    AC_DEFINE(CYGWIN_HACKS)dnl
344  fi  fi
345  ])dnl  ])dnl
346    dnl
347    dnl
348  AC_DEFUN(EGG_EXEEXT, [dnl  AC_DEFUN(EGG_EXEEXT, [dnl
349  EGGEXEC=eggdrop  EGGEXEC=eggdrop
350  AC_EXEEXT  AC_EXEEXT
# Line 350  then Line 354  then
354  fi  fi
355  AC_SUBST(EGGEXEC)dnl  AC_SUBST(EGGEXEC)dnl
356  ])dnl  ])dnl
357    dnl
358    dnl
359  AC_DEFUN(EGG_TCL_ARG_WITH, [dnl  AC_DEFUN(EGG_TCL_ARG_WITH, [dnl
360  # oohh new configure --variables for those with multiple tcl libs  # oohh new configure --variables for those with multiple tcl libs
361  AC_ARG_WITH(tcllib, [  --with-tcllib=PATH      full path to tcl library], tcllibname=$withval)  AC_ARG_WITH(tcllib, [  --with-tcllib=PATH      full path to tcl library], tcllibname=$withval)
# Line 388  configure: warning: Line 392  configure: warning:
392  EOF  EOF
393  fi  fi
394  ])dnl  ])dnl
395    dnl
396    dnl
397  AC_DEFUN(EGG_TCL_ENV, [dnl  AC_DEFUN(EGG_TCL_ENV, [dnl
398  WARN=0  WARN=0
399  # Make sure either both or neither $TCLLIB and $TCLINC are set  # Make sure either both or neither $TCLLIB and $TCLINC are set
# Line 423  configure: warning: Line 427  configure: warning:
427  EOF  EOF
428  fi  fi
429  ])dnl  ])dnl
430    dnl
431    dnl
432  AC_DEFUN(EGG_TCL_WITH_TCLLIB, [dnl  AC_DEFUN(EGG_TCL_WITH_TCLLIB, [dnl
433  # Look for Tcl library: if $tcllibname is set, check there first  # Look for Tcl library: if $tcllibname is set, check there first
434  if test ! "x${tcllibname}" = "x"  if test ! "x${tcllibname}" = "x"
# Line 452  EOF Line 456  EOF
456    fi    fi
457  fi  fi
458  ])dnl  ])dnl
459    dnl
460    dnl
461  AC_DEFUN(EGG_TCL_WITH_TCLINC, [dnl  AC_DEFUN(EGG_TCL_WITH_TCLINC, [dnl
462  # Look for Tcl header: if $tclincname is set, check there first  # Look for Tcl header: if $tclincname is set, check there first
463  if test ! "x${tclincname}" = "x"  if test ! "x${tclincname}" = "x"
# Line 479  EOF Line 483  EOF
483    fi    fi
484  fi  fi
485  ])dnl  ])dnl
486    dnl
487    dnl
488  AC_DEFUN(EGG_TCL_FIND_LIBRARY, [dnl  AC_DEFUN(EGG_TCL_FIND_LIBRARY, [dnl
489  # Look for Tcl library: if $TCLLIB is set, check there first  # Look for Tcl library: if $TCLLIB is set, check there first
490  if test "x${TCLLIBFN}" = "x"  if test "x${TCLLIBFN}" = "x"
# Line 521  EOF Line 525  EOF
525    fi    fi
526  fi  fi
527  ])dnl  ])dnl
528    dnl
529    dnl
530  AC_DEFUN(EGG_TCL_FIND_HEADER, [dnl  AC_DEFUN(EGG_TCL_FIND_HEADER, [dnl
531  # Look for Tcl header: if $TCLINC is set, check there first  # Look for Tcl header: if $TCLINC is set, check there first
532  if test "x${TCLINCFN}" = "x"  if test "x${TCLINCFN}" = "x"
# Line 558  EOF Line 562  EOF
562    fi    fi
563  fi  fi
564  ])dnl  ])dnl
565    dnl
566    dnl
567  AC_DEFUN(EGG_TCL_CHECK_LIBRARY, [dnl  AC_DEFUN(EGG_TCL_CHECK_LIBRARY, [dnl
568  AC_MSG_CHECKING(for Tcl library)  AC_MSG_CHECKING(for Tcl library)
569    
# Line 596  fi Line 600  fi
600  AC_SUBST(TCLLIB)dnl  AC_SUBST(TCLLIB)dnl
601  AC_SUBST(TCLLIBFN)dnl  AC_SUBST(TCLLIBFN)dnl
602  ])dnl  ])dnl
603    dnl
604    dnl
605  AC_DEFUN(EGG_TCL_CHECK_HEADER, [dnl  AC_DEFUN(EGG_TCL_CHECK_HEADER, [dnl
606  AC_MSG_CHECKING(for Tcl header)  AC_MSG_CHECKING(for Tcl header)
607    
# Line 649  fi Line 653  fi
653  AC_SUBST(TCLINC)dnl  AC_SUBST(TCLINC)dnl
654  AC_SUBST(TCLINCFN)dnl  AC_SUBST(TCLINCFN)dnl
655  ])dnl  ])dnl
656    dnl
657    dnl
658  AC_DEFUN(EGG_TCL_CHECK_VERSION, [dnl  AC_DEFUN(EGG_TCL_CHECK_VERSION, [dnl
659  # Both TCLLIBFN & TCLINCFN must be set, or we bail  # Both TCLLIBFN & TCLINCFN must be set, or we bail
660  if test ! "x${TCLLIBFN}" = "x" && test ! "x${TCLINCFN}" = "x"  if test ! "x${TCLLIBFN}" = "x" && test ! "x${TCLINCFN}" = "x"
# Line 713  EOF Line 717  EOF
717    exit 1    exit 1
718  fi  fi
719  ])dnl  ])dnl
720    dnl
721    dnl
722  AC_DEFUN(EGG_TCL_CHECK_PRE70, [dnl  AC_DEFUN(EGG_TCL_CHECK_PRE70, [dnl
723  # Is this version of Tcl too old for us to use ?  # Is this version of Tcl too old for us to use ?
724  TCL_VER_PRE70=`echo $egg_cv_var_tcl_version | $AWK '{split([$]1, i, "."); if (i[[1]] < 7) print "yes"; else print "no"}'`  TCL_VER_PRE70=`echo $egg_cv_var_tcl_version | $AWK '{split([$]1, i, "."); if (i[[1]] < 7) print "yes"; else print "no"}'`
# Line 732  EOF Line 736  EOF
736    exit 1    exit 1
737  fi  fi
738  ])dnl  ])dnl
739    dnl
740    dnl
741  AC_DEFUN(EGG_TCL_CHECK_PRE75, [dnl  AC_DEFUN(EGG_TCL_CHECK_PRE75, [dnl
742  # Are we using a pre 7.5 Tcl version ?  # Are we using a pre 7.5 Tcl version ?
743  TCL_VER_PRE75=`echo $egg_cv_var_tcl_version | $AWK '{split([$]1, i, "."); if (((i[[1]] == 7) && (i[[2]] < 5)) || (i[[1]] < 7)) print "yes"; else print "no"}'`  TCL_VER_PRE75=`echo $egg_cv_var_tcl_version | $AWK '{split([$]1, i, "."); if (((i[[1]] == 7) && (i[[2]] < 5)) || (i[[1]] < 7)) print "yes"; else print "no"}'`
# Line 742  then Line 746  then
746    AC_DEFINE(HAVE_PRE7_5_TCL)dnl    AC_DEFINE(HAVE_PRE7_5_TCL)dnl
747  fi  fi
748  ])dnl  ])dnl
749    dnl
750    dnl
751  AC_DEFUN(EGG_TCL_TESTLIBS, [dnl  AC_DEFUN(EGG_TCL_TESTLIBS, [dnl
752  # Setup TCL_TESTLIBS for Tcl library tests  # Setup TCL_TESTLIBS for Tcl library tests
753  if test ! "x${TCLLIBEXT}" = "x.a"  if test ! "x${TCLLIBEXT}" = "x.a"
# Line 762  then Line 766  then
766    TCL_TESTLIBS="-lpthread $TCL_TESTLIBS"    TCL_TESTLIBS="-lpthread $TCL_TESTLIBS"
767  fi  fi
768  ])dnl  ])dnl
769    dnl
770    dnl
771  AC_DEFUN(EGG_TCL_CHECK_FREE, [dnl  AC_DEFUN(EGG_TCL_CHECK_FREE, [dnl
772  # Check for Tcl_Free()  # Check for Tcl_Free()
773  AC_MSG_CHECKING(if Tcl library has Tcl_Free)  AC_MSG_CHECKING(if Tcl library has Tcl_Free)
# Line 804  else Line 808  else
808    AC_MSG_RESULT(no)    AC_MSG_RESULT(no)
809  fi  fi
810  ])dnl  ])dnl
811    dnl
812    dnl
813  AC_DEFUN(EGG_TCL_CHECK_THREADS, [dnl  AC_DEFUN(EGG_TCL_CHECK_THREADS, [dnl
814  # Check for TclpFinalizeThreadData()  # Check for TclpFinalizeThreadData()
815  AC_MSG_CHECKING(if Tcl library is multithreaded)  AC_MSG_CHECKING(if Tcl library is multithreaded)
# Line 859  else Line 863  else
863    AC_MSG_RESULT(no)    AC_MSG_RESULT(no)
864  fi  fi
865  ])dnl  ])dnl
866    dnl
867    dnl
868  AC_DEFUN(EGG_TCL_LIB_REQS, [dnl  AC_DEFUN(EGG_TCL_LIB_REQS, [dnl
869  if test ! "x${TCLLIBEXT}" = "x.a"  if test ! "x${TCLLIBEXT}" = "x.a"
870  then  then
# Line 911  fi Line 915  fi
915  AC_SUBST(TCL_REQS)dnl  AC_SUBST(TCL_REQS)dnl
916  AC_SUBST(TCL_LIBS)dnl  AC_SUBST(TCL_LIBS)dnl
917  ])dnl  ])dnl
918    dnl
919    dnl
920  AC_DEFUN(EGG_FUNC_DLOPEN, [dnl  AC_DEFUN(EGG_FUNC_DLOPEN, [dnl
921  if test $NEED_DL = 1 && test "x${ac_cv_func_dlopen}" = "xno"  if test $NEED_DL = 1 && test "x${ac_cv_func_dlopen}" = "xno"
922  then  then
# Line 960  EOF Line 964  EOF
964    fi    fi
965  fi  fi
966  ])dnl  ])dnl
967    dnl
968    dnl
969  AC_DEFUN(EGG_SUBST_EGGVERSION, [dnl  AC_DEFUN(EGG_SUBST_EGGVERSION, [dnl
970  EGGVERSION=`grep 'char egg_version' src/main.c | $AWK '{gsub(/(\"|\;)/, "", [$]4); print [$]4}'`  EGGVERSION=`grep 'char egg_version' src/main.c | $AWK '{gsub(/(\"|\;)/, "", [$]4); print [$]4}'`
971  AC_SUBST(EGGVERSION)dnl  AC_SUBST(EGGVERSION)dnl
972  ])dnl  ])dnl
973    dnl
974    dnl
975  AC_DEFUN(EGG_SUBST_DEST, [dnl  AC_DEFUN(EGG_SUBST_DEST, [dnl
976  if test "x$DEST" = "x"  if test "x$DEST" = "x"
977  then  then

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23