/[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.12 by fabian, Sun Mar 5 23:22:48 2000 UTC revision 1.13 by fabian, Mon Mar 6 18:54:07 2000 UTC
# Line 3  dnl   macros autoconf uses when building Line 3  dnl   macros autoconf uses when building
3  dnl  dnl
4  dnl $Id$  dnl $Id$
5  dnl  dnl
6    
7    
8    dnl  EGG_MSG_CONFIGURE_START()
9    dnl
10  AC_DEFUN(EGG_MSG_CONFIGURE_START, [dnl  AC_DEFUN(EGG_MSG_CONFIGURE_START, [dnl
11  AC_MSG_RESULT()  AC_MSG_RESULT()
12  AC_MSG_RESULT(This is eggdrop's GNU configure script.)  AC_MSG_RESULT(This is eggdrop's GNU configure script.)
# Line 10  AC_MSG_RESULT(It's going to run a bunch Line 14  AC_MSG_RESULT(It's going to run a bunch
14  AC_MSG_RESULT(make your compile work without much twiddling.)  AC_MSG_RESULT(make your compile work without much twiddling.)
15  AC_MSG_RESULT()  AC_MSG_RESULT()
16  ])dnl  ])dnl
17  dnl  
18    
19    dnl  EGG_MSG_CONFIGURE_END()
20  dnl  dnl
21  AC_DEFUN(EGG_MSG_CONFIGURE_END, [dnl  AC_DEFUN(EGG_MSG_CONFIGURE_END, [dnl
22  AC_MSG_RESULT()  AC_MSG_RESULT()
# Line 27  else Line 33  else
33  fi  fi
34  AC_MSG_RESULT()  AC_MSG_RESULT()
35  ])dnl  ])dnl
36  dnl  
37    
38    dnl  EGG_CHECK_CC()
39  dnl  dnl
40  dnl FIXME: make a better test  dnl FIXME: make a better test
41  AC_DEFUN(EGG_CHECK_CC, [dnl  AC_DEFUN(EGG_CHECK_CC, [dnl
# Line 43  EOF Line 51  EOF
51    exit 1    exit 1
52  fi  fi
53  ])dnl  ])dnl
54  dnl  
55    
56    dnl  EGG_PROG_STRIP()
57  dnl  dnl
58  AC_DEFUN(EGG_PROG_STRIP, [dnl  AC_DEFUN(EGG_PROG_STRIP, [dnl
59  AC_CHECK_PROG(STRIP,strip,strip)  AC_CHECK_PROG(STRIP,strip,strip)
# Line 52  then Line 62  then
62    STRIP=touch    STRIP=touch
63  fi  fi
64  ])dnl  ])dnl
65  dnl  
66    
67    dnl  EGG_PROG_AWK()
68  dnl  dnl
69  AC_DEFUN(EGG_PROG_AWK, [dnl  AC_DEFUN(EGG_PROG_AWK, [dnl
70  # 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
# Line 69  EOF Line 81  EOF
81    exit 1    exit 1
82  fi  fi
83  ])dnl  ])dnl
84  dnl  
85    
86    dnl  EGG_PROG_BASENAME()
87  dnl  dnl
88  AC_DEFUN(EGG_PROG_BASENAME, [dnl  AC_DEFUN(EGG_PROG_BASENAME, [dnl
89  # basename is needed for Tcl library and header checks  # basename is needed for Tcl library and header checks
# Line 86  EOF Line 100  EOF
100    exit 1    exit 1
101  fi  fi
102  ])dnl  ])dnl
103  dnl  
104    
105    dnl  EGG_CHECK_OS()
106  dnl  dnl
107  AC_DEFUN(EGG_CHECK_OS, [dnl  AC_DEFUN(EGG_CHECK_OS, [dnl
108  LINUX=no  LINUX=no
# Line 276  AC_SUBST(SHLIB_CC)dnl Line 292  AC_SUBST(SHLIB_CC)dnl
292  AC_SUBST(SHLIB_STRIP)dnl  AC_SUBST(SHLIB_STRIP)dnl
293  AC_SUBST(DEFAULT_MAKE)dnl  AC_SUBST(DEFAULT_MAKE)dnl
294  ])dnl  ])dnl
295  dnl  
296    
297    dnl  EGG_CHECK_LIBS()
298  dnl  dnl
299  AC_DEFUN(EGG_CHECK_LIBS, [dnl  AC_DEFUN(EGG_CHECK_LIBS, [dnl
300  if test "$IRIX" = "yes"  if test "$IRIX" = "yes"
# Line 303  ac_cv_lib_pthread_pthread_mutex_init=no) Line 321  ac_cv_lib_pthread_pthread_mutex_init=no)
321    fi    fi
322  fi  fi
323  ])dnl  ])dnl
324  dnl  
325    
326    dnl  EGG_CHECK_FUNC_VSPRINTF()
327  dnl  dnl
328  AC_DEFUN(EGG_CHECK_FUNC_VSPRINTF, [dnl  AC_DEFUN(EGG_CHECK_FUNC_VSPRINTF, [dnl
329  AC_CHECK_FUNCS(vsprintf)  AC_CHECK_FUNCS(vsprintf)
# Line 319  EOF Line 339  EOF
339    exit 1    exit 1
340  fi  fi
341  ])dnl  ])dnl
342  dnl  
343    
344    dnl  EGG_HEADER_STDC()
345  dnl  dnl
346  AC_DEFUN(EGG_HEADER_STDC, [dnl  AC_DEFUN(EGG_HEADER_STDC, [dnl
347  if test "x${ac_cv_header_stdc}" = "xno"  if test "x${ac_cv_header_stdc}" = "xno"
# Line 334  EOF Line 356  EOF
356    exit 1    exit 1
357  fi  fi
358  ])dnl  ])dnl
359  dnl  
360    
361    dnl  EGG_CYGWIN()
362  dnl  dnl
363  AC_DEFUN(EGG_CYGWIN, [dnl  AC_DEFUN(EGG_CYGWIN, [dnl
364  AC_CYGWIN  AC_CYGWIN
# Line 343  then Line 367  then
367    AC_DEFINE(CYGWIN_HACKS)dnl    AC_DEFINE(CYGWIN_HACKS)dnl
368  fi  fi
369  ])dnl  ])dnl
370  dnl  
371    
372    dnl  EGG_EXEEXT()
373  dnl  dnl
374  AC_DEFUN(EGG_EXEEXT, [dnl  AC_DEFUN(EGG_EXEEXT, [dnl
375  EGGEXEC=eggdrop  EGGEXEC=eggdrop
# Line 354  then Line 380  then
380  fi  fi
381  AC_SUBST(EGGEXEC)dnl  AC_SUBST(EGGEXEC)dnl
382  ])dnl  ])dnl
383  dnl  
384    
385    dnl  EGG_TCL_ARG_WITH()
386  dnl  dnl
387  AC_DEFUN(EGG_TCL_ARG_WITH, [dnl  AC_DEFUN(EGG_TCL_ARG_WITH, [dnl
388  # oohh new configure --variables for those with multiple tcl libs  # oohh new configure --variables for those with multiple tcl libs
# Line 392  configure: warning: Line 420  configure: warning:
420  EOF  EOF
421  fi  fi
422  ])dnl  ])dnl
423  dnl  
424    
425    dnl  EGG_TCL_ENV()
426  dnl  dnl
427  AC_DEFUN(EGG_TCL_ENV, [dnl  AC_DEFUN(EGG_TCL_ENV, [dnl
428  WARN=0  WARN=0
# Line 427  configure: warning: Line 457  configure: warning:
457  EOF  EOF
458  fi  fi
459  ])dnl  ])dnl
460  dnl  
461    
462    dnl  EGG_TCL_WITH_TCLLIB()
463  dnl  dnl
464  AC_DEFUN(EGG_TCL_WITH_TCLLIB, [dnl  AC_DEFUN(EGG_TCL_WITH_TCLLIB, [dnl
465  # Look for Tcl library: if $tcllibname is set, check there first  # Look for Tcl library: if $tcllibname is set, check there first
# Line 456  EOF Line 488  EOF
488    fi    fi
489  fi  fi
490  ])dnl  ])dnl
491  dnl  
492    
493    dnl  EGG_TCL_WITH_TCLINC()
494  dnl  dnl
495  AC_DEFUN(EGG_TCL_WITH_TCLINC, [dnl  AC_DEFUN(EGG_TCL_WITH_TCLINC, [dnl
496  # Look for Tcl header: if $tclincname is set, check there first  # Look for Tcl header: if $tclincname is set, check there first
# Line 483  EOF Line 517  EOF
517    fi    fi
518  fi  fi
519  ])dnl  ])dnl
520  dnl  
521    
522    dnl  EGG_TCL_FIND_LIBRARY()
523  dnl  dnl
524  AC_DEFUN(EGG_TCL_FIND_LIBRARY, [dnl  AC_DEFUN(EGG_TCL_FIND_LIBRARY, [dnl
525  # Look for Tcl library: if $TCLLIB is set, check there first  # Look for Tcl library: if $TCLLIB is set, check there first
# Line 525  EOF Line 561  EOF
561    fi    fi
562  fi  fi
563  ])dnl  ])dnl
564  dnl  
565    
566    dnl  EGG_TCL_FIND_HEADER()
567  dnl  dnl
568  AC_DEFUN(EGG_TCL_FIND_HEADER, [dnl  AC_DEFUN(EGG_TCL_FIND_HEADER, [dnl
569  # Look for Tcl header: if $TCLINC is set, check there first  # Look for Tcl header: if $TCLINC is set, check there first
# Line 562  EOF Line 600  EOF
600    fi    fi
601  fi  fi
602  ])dnl  ])dnl
603  dnl  
604    
605    dnl  EGG_TCL_CHECK_LIBRARY()
606  dnl  dnl
607  AC_DEFUN(EGG_TCL_CHECK_LIBRARY, [dnl  AC_DEFUN(EGG_TCL_CHECK_LIBRARY, [dnl
608  AC_MSG_CHECKING(for Tcl library)  AC_MSG_CHECKING(for Tcl library)
# Line 600  fi Line 640  fi
640  AC_SUBST(TCLLIB)dnl  AC_SUBST(TCLLIB)dnl
641  AC_SUBST(TCLLIBFN)dnl  AC_SUBST(TCLLIBFN)dnl
642  ])dnl  ])dnl
643  dnl  
644    
645    dnl  EGG_TCL_CHECK_HEADER()
646  dnl  dnl
647  AC_DEFUN(EGG_TCL_CHECK_HEADER, [dnl  AC_DEFUN(EGG_TCL_CHECK_HEADER, [dnl
648  AC_MSG_CHECKING(for Tcl header)  AC_MSG_CHECKING(for Tcl header)
# Line 653  fi Line 695  fi
695  AC_SUBST(TCLINC)dnl  AC_SUBST(TCLINC)dnl
696  AC_SUBST(TCLINCFN)dnl  AC_SUBST(TCLINCFN)dnl
697  ])dnl  ])dnl
698  dnl  
699    
700    dnl  EGG_TCL_CHECK_VERSION()
701  dnl  dnl
702  AC_DEFUN(EGG_TCL_CHECK_VERSION, [dnl  AC_DEFUN(EGG_TCL_CHECK_VERSION, [dnl
703  # Both TCLLIBFN & TCLINCFN must be set, or we bail  # Both TCLLIBFN & TCLINCFN must be set, or we bail
# Line 718  EOF Line 762  EOF
762    exit 1    exit 1
763  fi  fi
764  ])dnl  ])dnl
765  dnl  
766    
767    dnl  EGG_TCL_CHECK_PRE70()
768  dnl  dnl
769  AC_DEFUN(EGG_TCL_CHECK_PRE70, [dnl  AC_DEFUN(EGG_TCL_CHECK_PRE70, [dnl
770  # Is this version of Tcl too old for us to use ?  # Is this version of Tcl too old for us to use ?
# Line 737  EOF Line 783  EOF
783    exit 1    exit 1
784  fi  fi
785  ])dnl  ])dnl
786  dnl  
787    
788    dnl  EGG_TCL_CHECK_PRE75()
789  dnl  dnl
790  AC_DEFUN(EGG_TCL_CHECK_PRE75, [dnl  AC_DEFUN(EGG_TCL_CHECK_PRE75, [dnl
791  # Are we using a pre 7.5 Tcl version ?  # Are we using a pre 7.5 Tcl version ?
# Line 747  then Line 795  then
795    AC_DEFINE(HAVE_PRE7_5_TCL)dnl    AC_DEFINE(HAVE_PRE7_5_TCL)dnl
796  fi  fi
797  ])dnl  ])dnl
798  dnl  
799    
800    dnl  EGG_TCL_TESTLIBS()
801  dnl  dnl
802  AC_DEFUN(EGG_TCL_TESTLIBS, [dnl  AC_DEFUN(EGG_TCL_TESTLIBS, [dnl
803  # Setup TCL_TESTLIBS for Tcl library tests  # Setup TCL_TESTLIBS for Tcl library tests
# Line 767  then Line 817  then
817    TCL_TESTLIBS="-lpthread $TCL_TESTLIBS"    TCL_TESTLIBS="-lpthread $TCL_TESTLIBS"
818  fi  fi
819  ])dnl  ])dnl
820  dnl  
821    
822    dnl  EGG_TCL_CHECK_FREE()
823  dnl  dnl
824  AC_DEFUN(EGG_TCL_CHECK_FREE, [dnl  AC_DEFUN(EGG_TCL_CHECK_FREE, [dnl
825  # Check for Tcl_Free()  # Check for Tcl_Free()
# Line 809  else Line 861  else
861    AC_MSG_RESULT(no)    AC_MSG_RESULT(no)
862  fi  fi
863  ])dnl  ])dnl
864  dnl  
865    
866    dnl  EGG_TCL_CHECK_THREADS()
867  dnl  dnl
868  AC_DEFUN(EGG_TCL_CHECK_THREADS, [dnl  AC_DEFUN(EGG_TCL_CHECK_THREADS, [dnl
869  # Check for TclpFinalizeThreadData()  # Check for TclpFinalizeThreadData()
# Line 864  else Line 918  else
918    AC_MSG_RESULT(no)    AC_MSG_RESULT(no)
919  fi  fi
920  ])dnl  ])dnl
921  dnl  
922    
923    dnl  EGG_TCL_LIB_REQS()
924  dnl  dnl
925  AC_DEFUN(EGG_TCL_LIB_REQS, [dnl  AC_DEFUN(EGG_TCL_LIB_REQS, [dnl
926  if test ! "x${TCLLIBEXT}" = "x.a"  if test ! "x${TCLLIBEXT}" = "x.a"
# Line 916  fi Line 972  fi
972  AC_SUBST(TCL_REQS)dnl  AC_SUBST(TCL_REQS)dnl
973  AC_SUBST(TCL_LIBS)dnl  AC_SUBST(TCL_LIBS)dnl
974  ])dnl  ])dnl
975  dnl  
976    
977    dnl  EGG_FUNC_DLOPEN()
978  dnl  dnl
979  AC_DEFUN(EGG_FUNC_DLOPEN, [dnl  AC_DEFUN(EGG_FUNC_DLOPEN, [dnl
980  if test $NEED_DL = 1 && test "x${ac_cv_func_dlopen}" = "xno"  if test $NEED_DL = 1 && test "x${ac_cv_func_dlopen}" = "xno"
# Line 965  EOF Line 1023  EOF
1023    fi    fi
1024  fi  fi
1025  ])dnl  ])dnl
1026  dnl  
1027    
1028    dnl  EGG_SUBST_EGGVERSION()
1029  dnl  dnl
1030  AC_DEFUN(EGG_SUBST_EGGVERSION, [dnl  AC_DEFUN(EGG_SUBST_EGGVERSION, [dnl
1031  EGGVERSION=`grep 'char.egg_version' ${srcdir}/src/main.c | $AWK '{gsub(/(\"|\;)/, "", [$]4); print [$]4}'`  EGGVERSION=`grep 'char.egg_version' ${srcdir}/src/main.c | $AWK '{gsub(/(\"|\;)/, "", [$]4); print [$]4}'`
# Line 973  egg_version_num=`echo ${EGGVERSION} | $A Line 1033  egg_version_num=`echo ${EGGVERSION} | $A
1033  AC_SUBST(EGGVERSION)dnl  AC_SUBST(EGGVERSION)dnl
1034  AC_DEFINE_UNQUOTED(EGG_VERSION, $egg_version_num)dnl  AC_DEFINE_UNQUOTED(EGG_VERSION, $egg_version_num)dnl
1035  ])dnl  ])dnl
1036  dnl  
1037    
1038    dnl  EGG_SUBST_DEST()
1039  dnl  dnl
1040  AC_DEFUN(EGG_SUBST_DEST, [dnl  AC_DEFUN(EGG_SUBST_DEST, [dnl
1041  if test "x$DEST" = "x"  if test "x$DEST" = "x"
# Line 982  then Line 1044  then
1044  fi  fi
1045  AC_SUBST(DEST)dnl  AC_SUBST(DEST)dnl
1046  ])dnl  ])dnl
1047    
1048    
1049    dnl  EGG_REPLACE_IF_CHANGED(FILE-NAME, CONTENTS-CMDS, INIT-CMDS)
1050    dnl
1051    dnl  Replace FILE-NAME if the newly created contents differs from the existing
1052    dnl  file contents.  Otherwise leave the file allone.  This avoids needless
1053    dnl  recompiles.
1054    dnl
1055    define(EGG_REPLACE_IF_CHANGED, [dnl
1056      AC_OUTPUT_COMMANDS([
1057    egg_replace_file=${ac_given_srcdir}/$1
1058    echo "creating $1"
1059    $2
1060    if test -f ${egg_replace_file} && cmp -s conftest.out ${egg_replace_file}
1061    then
1062      echo "$1 is unchanged"
1063    else
1064      mv conftest.out ${egg_replace_file}
1065    fi
1066    rm -f conftest.out], [$3])dnl
1067    ])dnl
1068    
1069    
1070    dnl  EGG_TCL_LUSH()
1071    dnl
1072    AC_DEFUN(EGG_TCL_LUSH, [dnl
1073        EGG_REPLACE_IF_CHANGED(lush.h, [
1074    cat > conftest.out <<EGGEOF
1075    /* Ignore me but do not erase me.  I am a kludge. */
1076    
1077    #include "${egg_tclinc}/${egg_tclincfn}"
1078    EGGEOF], [egg_tclinc=${TCLINC}; egg_tclincfn=${TCLINCFN}])dnl
1079    ])dnl
1080    
1081    
1082    dnl  EGG_CATCH_MAKEFILE_REBUILD()
1083    dnl
1084    AC_DEFUN(EGG_CATCH_MAKEFILE_REBUILD, [dnl
1085      AC_OUTPUT_COMMANDS([
1086    if test -f ${ac_given_srcdir}/.modules; then
1087      ${ac_given_srcdir}/misc/modconfig --top_srcdir=${ac_given_srcdir} Makefile
1088    fi])
1089    ])dnl

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23