[ MARK Makefile.in ] # # This is the Makefile for EGGDROP (the irc bot) # You should never need to edit this. # # things you can put here: # -Wall if you're using gcc and it supports it (configure # usually detects this anyway now) # -DEBUG_MEM to be able to debug memory allocation (.debug) # -DEBUG_OUTPUT to send everything sent to the server to +d console people # -DEBUG_TCL writes a DEBUG.TCL file which grows really fast and # logs EVERY command sent to Tcl # -DEBUG logs random debugging comments to +d level (annoying # and useless to most people) # -DREDHATSUX if you get dprintf already defined errors in redhat # # ok, Im a linux weenie, these settings with work for linux # CFLGS = -g # configure SHOULD set these...you may need to tweak them to get modules # to compile .. if you do...let the devel-team know the working settings # btw to turn STRIP of, do STRIP=touch not STRIP= #normal make CC=@CC@ LD=@CC@ STRIP= @STRIP@ #making eggmod MOD_CC = @BEL_MOD_CC@ MOD_LD = @BEL_MOD_LD@ MOD_STRIP = @BEL_MOD_STRIP@ #makind modules SHLIB_CC = @SHLIB_CC@ SHLIB_LD = @SHLIB_LD@ SHLIB_STRIP = @SHLIB_STRIP@ # STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP # # - - - - - - - - do not edit anything below this line. - - - - - - - - # # - - - - - - - - - it's all done by configure now. - - - - - - - - - # # STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP # # stuff for Tcl XREQ = @TCL_REQS@ TCLLIB = @TCLLIB@ CFLAGS = -c @CFLAGS@ -I.. @DEFS@ ${CFLGS} @SET_MAKE@ all: @echo You must type \"make eggdrop\" for the non-module version, or @echo type "make eggmod" for the module version. help: @echo Makefile for Eggdrop. @echo "To make eggdrop without modules:" @echo " % make eggdrop" @echo "To make eggdrop WITH modules (bot only):" @echo " % make eggmod" clean: cleanmods @rm -f eggdrop egg core *.o *.a *.so *~ *.stamp @cd src ; rm -f eggdrop egg core *.o *.a *~ cleanmods: @cd src/mod ; make clean dist: clean @rm -f Makefile config.cache config.log config.status config.h lush.h @rm -f doc/*~ @echo "all:" >Makefile @echo " @./configure; make" >>Makefile eggdrop: eggtest always @cd src ; ${GMAKE} eggdrop @mv src/@EGGEXEC@ . @echo "" @./eggdrop -v @ls -la eggdrop @echo "" @echo "" debug: eggtest always @cd src ; ${GMAKE} debug @mv src/@EGGEXEC@ . always: # Justin Slootsky says some systems need this (?) src/libtcle.a: ${TCLLIB}/lib@TCLLIBFN@ @echo "[ Fixing lib@TCLLIBFN@ -> libtcle.a ]" cp ${TCLLIB}/lib@TCLLIBFN@ src/libtcle.a chmod u+rw src/libtcle.a ar d src/libtcle.a tclMain.o @RANLIB@ src/libtcle.a GMAKE = ${MAKE} 'CC=${CC}' 'LD=${LD}' 'OBJS=${OBJS}' 'TCLLIBFN=@TCLLIBFN@'\ 'CFLAGS=${CFLAGS}' 'XREQ=${XREQ}' 'XLIBS=@TCL_LIBS@ @LIBS@'\ 'TCLLIB=${TCLLIB}' 'RANLIB=@RANLIB@' 'STRIP=${STRIP}' eggdrop.h: @echo You do not have the eggdrop source! @exit 1 OBJS = botcmd.o botnet.o chan.o chanprog.o chanset.o cmds.o \ dcc.o dccutil.o gotdcc.o hash.o main.o\ match.o mem.o misc.o mode.o msgcmds.o msgnotice.o net.o notes.o\ tcl.o tclchan.o tcldcc.o tclhash.o tclmisc.o\ tcluser.o userrec.o users.o GMAKE_SHLIB = ${MAKE} 'CC=${SHLIB_CC}' 'LD=${SHLIB_LD}' 'OBJS=${OBJS}'\ 'STRIP=${SHLIB_STRIP}' 'CFLAGS=${CFLAGS} -DMODULES' 'XLIBS=@TCL_LIBS@ @LIBS@' GMAKE_MOD = ${MAKE} 'CC=${MOD_CC}' 'LD=${MOD_LD}' 'OBJS=${OBJS} modules.o'\ 'CFLAGS=${CFLAGS} -DMODULES' 'XREQ=${XREQ}' \ 'TCLLIB=${TCLLIB}' 'STRIP=${MOD_STRIP}' 'RANLIB=@RANLIB@' \ 'XLIBS=@TCL_LIBS@ @LIBS@' DMAKE_SHLIB = ${MAKE} 'CC=${SHLIB_CC}' 'LD=${SHLIB_LD}' 'OBJS=${OBJS}'\ 'STRIP=touch' 'CFLAGS=${CFLAGS} -DMODULES' 'XLIBS=@TCL_LIBS@ @LIBS@' DMAKE_MOD = ${MAKE} 'CC=${MOD_CC}' 'LD=${MOD_LD}' 'OBJS=${OBJS} modules.o'\ 'CFLAGS=${CFLAGS} -DMODULES' 'XREQ=${XREQ}' \ 'TCLLIB=${TCLLIB}' 'STRIP=touch' 'RANLIB=@RANLIB@' \ 'XLIBS=@TCL_LIBS@ @LIBS@' eggmod: modtest always modules @cd src;${GMAKE_MOD} eggdrop @mv src/@EGGEXEC@ . @echo @./eggdrop -v @ls -la eggdrop modules: modtest always @cd src/mod;${GMAKE_SHLIB} modules @mv src/mod/*.so . @echo @echo "modules made:" @ls -la *.so debugmod: modtest always @cd src;${DMAKE_MOD} eggdrop @mv src/@EGGEXEC@ . @echo @./eggdrop -v @ls -la eggdrop moddebug: modtest always @cd src/mod;${DMAKE_SHLIB} modules @mv src/mod/*.so . @echo @echo "modules made:" @ls -la *.so eggtest: always @if [ -f EGGMOD.stamp ]; then \ echo You previous made \"eggmod.\" You must first type;\ echo \"make clean\" before you can compile the non-module;\ echo version.;\ exit 1;\ fi @date >EGGDROP.stamp modtest: always @if [ -f EGGDROP.stamp ]; then \ echo You previous made \"eggdrop.\" You must first type;\ echo \"make clean\" before you can compile the module;\ echo version.;\ exit 1;\ fi @date >EGGMOD.stamp #safety hash [ MARK configure.in ] @dnl Process this file with autoconf to produce a configure script. AC_INIT(eggdrop.conf) AC_CONFIG_HEADER(config.h) echo "" echo "This is eggdrop's GNU configure script." echo "It's going to run a bunch of strange tests to hopefully make" echo "your compile work without much twiddling." echo "" AC_PROG_CC dnl no cross-compiling! dnl AC_C_CROSS <- was merged into AC_PROG_CC if test ! x${cross_compiling} = xno; then echo "" echo "This system does not appear to have a working C compiler." echo "A working C compiler is required to compile eggdrop." echo "" exit fi dnl Checks for programs. AC_PROG_MAKE_SET AC_CHECK_PROG(STRIP,strip,strip) AC_CHECK_PROG(UNAME,uname,uname) dnl 'nawk' is NOT compatable! dammit! dnl no longer use awk for anything dnl AC_CHECK_PROGS(AWK,awk gawk mawk) AC_PROG_RANLIB dnl stop putting -g in there! @#$!#$%! dnl also fix strength-reduce problem in gcc CFLAGS="-O" if test "x$CC" = "xgcc"; then CFLAGS="-O2 -fno-strength-reduce" fi dnl test the os and set the module linking settings if test "x$STRIP" = "x"; then STRIP="touch" fi IRIX=no NT=no EGGEXEC=eggdrop LINUX=no BEL_MOD_CC="${CC}" BEL_MOD_LD="${CC}" BEL_MOD_STRIP="${STRIP}" SHLIB_CC="${CC}" SHLIB_LD="${CC}" SHLIB_STRIP="${STRIP}" AC_MSG_CHECKING(your OS) system=`$UNAME` case $system in Linux) CFLAGS="${CFLAGS} -Wall" AC_MSG_RESULT(Linux! rock the house!) SHLIB_LD="${CC} -shared" AC_DEFINE(MODULES_OK) LINUX=yes ;; FreeBSD) AC_MSG_RESULT(FreeBSD! enjoy!) SHLIB_CC="$CC -fpic" SHLIB_LD="ld -Bshareable -x" AC_DEFINE(MODULES_OK) ;; BSD/OS) if test x`uname -r | cut -d . -f 1` = "x3"; then AC_MSG_RESULT(BSD/OS 3! ok I spose) BEL_MOD_CC="shlicc" BEL_MOD_LD="shlicc" BEL_MOD_STRIP="${STRIP} -d" SHLIB_LD="shlicc -r" SHLIB_STRIP="touch" AC_DEFINE(MODULES_OK) AC_DEFINE(DLOPEN_MUST_BE_1) else AC_MSG_RESULT(BSD/OS 2! no modules for you) fi ;; SunOS) if test x`uname -r | cut -d . -f 1` = "x5"; then AC_MSG_RESULT(Solaris!) SHLIB_LD="/usr/ccs/bin/ld -G -z text" else AC_MSG_RESULT(SunOS 4 :/) SHLIB_LD="ld" SHLIB_STRIP="touch" AC_DEFINE(DLOPEN_MUST_BE_1) fi AC_DEFINE(MODULES_OK) SHLIB_CC="${CC} -fPIC" BEL_MOD_CC="${CC} -fPIC" ;; OSF1) AC_MSG_RESULT(OSF...) case `uname -r | cut -d . -f 1` in V*) AC_MSG_RESULT(Digital OSF) SHLIB_LD='ld -shared -expect_unresolved "*"' SHLIB_STRIP="touch" AC_DEFINE(MODULES_OK) ;; 1.0|1.1|1.2) AC_MSG_RESULT(pre 1.3) SHLIB_LD='ld -R -export $@:' AC_DEFINE(MODULES_OK) ;; 1.*) AC_MSG_RESULT(1.3+) SHLIB_CFL="$CC -fpic" SHLIB_LD='ld -shared' AC_DEFINE(MODULES_OK) ;; *) AC_MSG_RESULT(Some other weird OSF! No modules for you..) ;; esac AC_DEFINE(STOP_UAC) ;; IRIX) AC_MSG_RESULT(you are cursed with IRIX) IRIX=yes STRIP= ;; CYGWIN32/NT) AC_MSG_RESULT(Windows NT -- enjoy the ride! Don't come asking us for help.) NT=yes STRIP= EGGEXEC=eggdrop.exe ;; *) AC_MSG_RESULT(Something unknown!!) AC_MSG_RESULT(If you get modules to work, be sure to let the devel team know HOW :) ;; esac dnl Check for Sun libraries. if test ${IRIX} = yes; then echo Skipping library tests because they CONFUSE Irix. else AC_CHECK_LIB(socket,socket) AC_CHECK_LIB(nsl,connect) AC_CHECK_LIB(dns,gethostbyname) if test x`${UNAME}` = "xSunOS"; then AC_MSG_CHECKING(for SunOS 4) if test x`uname -r | cut -d . -f 1` = "x5"; then AC_MSG_RESULT(Solaris -- yay) else AC_MSG_RESULT(SunOS -- sigh) dnl for suns without yp or something like that: AC_CHECK_LIB(dl,main) fi fi fi dnl crazy machines AC_AIX AC_ISC_POSIX AC_MINIX AC_C_BIGENDIAN AC_CHECK_SIZEOF(long) AC_CHECK_SIZEOF(int) dnl Checks for header files. AC_HEADER_DIRENT AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(sys/time.h sys/select.h sys/rusage.h unistd.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_TYPE_PID_T AC_HEADER_TIME dnl Checks for library functions. AC_CHECK_FUNCS(rename getrusage getdtablesize srandom random sigaction) AC_CHECK_FUNCS(sigemptyset vsprintf strcasecmp setpgid clock dlopen) AC_CHECK_FUNCS(dprintf) if test "${ac_cv_func_vsprintf}" = "no"; then echo "" echo "Your system does not have the sprintf/vsprintf libraries." echo "These are required to compile almost anything. Sorry." echo "" exit fi dnl check how much space is left in filedb (infoset TCLINC fi fi # check in common places now AC_MSG_CHECKING(for tcl.h) if test "$TCLINC" = ""; then for check in /usr/local/include /usr/local/include/tcl /usr/local/pkgs/tcl/include /usr/include /usr/include/tcl $HOME $HOME/tcl $HOME/tcl/include; do if test -r $check/tcl.h; then if test "$TCLINC" != ""; then break fi AC_MSG_RESULT(found in $check/tcl.h) TCLINC=$check break fi done else AC_MSG_RESULT(found in $TCLINC/tcl.h) fi # had TCLLIB but not TCLINC? so close... :( if test "$TCLINC" = ""; then AC_MSG_RESULT(not found) unset TCLLIB unset TCLLIBFN fi fi # done looking, now either TCLLIB & TCLINC are both set, or neither is set if test "$TCLLIB" = ""; then echo "" echo "I can't find Tcl on this system." echo "" echo "Eggdrop now requires Tcl to compile. If you already have Tcl" echo "installed on this system, and I just wasn't looking in the right" echo "place for it, set the environment variables TCLLIB and TCLINC so" echo "I will know where to find 'libtcl.a' (or 'libtcl.so') and 'tcl.h'" echo "(respectively). Then run 'configure' again." echo "" echo "Read the README file if you don't know what Tcl is or how to get" echo "it and install it." echo "" exit 1 else AC_MSG_CHECKING(for Tcl version) tclver=`grep TCL_VERSION $TCLINC/tcl.h | grep "7.4" | wc -l` if test $tclver = 0; then tclver=`grep TCL_VERSION $TCLINC/tcl.h | grep "7.5" | wc -l` if test $tclver = 0; then tclver=`grep TCL_VERSION $TCLINC/tcl.h | grep "7.6" | wc -l` if test $tclver = 0; then tclver=`grep TCL_VERSION $TCLINC/tcl.h | grep "8.0" | wc -l` if test $tclver = 1; then AC_MSG_RESULT(8.0 found!) need_dl=1 else AC_MSG_RESULT(hmm... unknown version) fi else AC_MSG_RESULT(7.6 found!) need_dl=1 fi else AC_MSG_RESULT(7.5 found!) need_dl=1 fi else AC_MSG_RESULT(7.4 found) echo " 7.4 is kind of old; you may want to upgrade soon." need_dl=0 fi if test $need_dl = 1 -a "${ac_cv_func_dlopen}" = "no"; then got_dl=0 dnl some weird weird OS's put it here :/ if test -r /usr/bin/libdl.so.1; then CFLAGS="$CFLAGS -L/usr/bin" fi AC_CHECK_LIB(dl,dlopen,got_dl=1) if test $got_dl = 0; then echo "" echo "In order to use versions of Tcl from 7.5 on, you must have" echo "the DL libraries somewhere on your system (-ldl)." echo "" if test "$LINUX" = "yes"; then echo "Since you are on a Linux system, this has a know problem," if test -r /lib/libdl.so.1; then echo "and you seem to have it, get your sys admin to make a" echo "symbolic link from libdl.so to libdl.so.1 in lib" echo "" exit 1 fi echo "which you DONT seem to have... doh!" echo "" fi echo "We'll keep going anyway, you may get away with it..." echo "I *doubt* it tho.." echo "" else AC_DEFINE(HAVE_DLOPEN) fi LIBS="-ldl $LIBS" fi TCLLIBFNS=`basename $TCLLIBFN .a` TCLLIBFNS=`basename $TCLLIBFNS .so.1.0` TCLLIBFNS=`basename $TCLLIBFNS .so.1` TCLLIBFNS=`basename $TCLLIBFNS .so` if test $tclver = 1; then TCL_REQS="$TCLLIB/lib$TCLLIBFN" TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS -lm" else AC_MSG_RESULT(7.3 or earlier -- sigh) TCL_REQS="libtcle.a" TCL_LIBS="-L. -ltcle -lm" fi fi AC_SUBST(TCLINC) AC_SUBST(TCLLIB) AC_SUBST(TCLLIBFN) AC_SUBST(TCL_REQS) AC_SUBST(TCL_LIBS) # ---------- end of robey's tcl thingies AC_SUBST(EGGEXEC) AC_SUBST(SHLIB_LD) AC_SUBST(SHLIB_CC) AC_SUBST(SHLIB_STRIP) AC_SUBST(BEL_MOD_LD) AC_SUBST(BEL_MOD_CC) AC_SUBST(BEL_MOD_STRIP) AC_OUTPUT(Makefile lush.h) # if you configure again, you must re-make everything. tough shit. make clean echo "" echo "Configure is done." echo "Type 'make eggdrop' to create the non-module bot, and" echo " 'make eggmod' for the module bot." echo "" [ MARK configure ] #! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.12 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. # Defaults: ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: # Initialize some variables set by options. # The variables have the same names as the options, with # dashes changed to underlines. build=NONE cache_file=./config.cache exec_prefix=NONE host=NONE no_create= nonopt=NONE no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= target=NONE verbose= x_includes=NONE x_libraries=NONE bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' # Initialize some other variables. subdirs= MFLAGS= MAKEFLAGS= # Maximum number of lines to put in a shell here document. ac_max_here_lines=12 ac_prev= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi case "$ac_option" in -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) ac_optarg= ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case "$ac_option" in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir="$ac_optarg" ;; -build | --build | --buil | --bui | --bu) ac_prev=build ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build="$ac_optarg" ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file="$ac_optarg" ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir="$ac_optarg" ;; -disable-* | --disable-*) ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` eval "enable_${ac_feature}=no" ;; -enable-* | --enable-*) ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes ;; esac eval "enable_${ac_feature}='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix="$ac_optarg" ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he) # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat << EOF Usage: configure [options] [host] Options: [defaults in brackets after descriptions] Configuration: --cache-file=FILE cache test results in FILE --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [same as prefix] --bindir=DIR user executables in DIR [EPREFIX/bin] --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] --libexecdir=DIR program executables in DIR [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share] --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com] --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] --libdir=DIR object code libraries in DIR [EPREFIX/lib] --includedir=DIR C header files in DIR [PREFIX/include] --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] --infodir=DIR info documentation in DIR [PREFIX/info] --mandir=DIR man documentation in DIR [PREFIX/man] --srcdir=DIR find the sources in DIR [configure dir or ..] --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names EOF cat << EOF Host type: --build=BUILD configure for building on BUILD [BUILD=HOST] --host=HOST configure for HOST [guessed] --target=TARGET configure for TARGET [TARGET=HOST] Features and packages: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR EOF if test -n "$ac_help"; then echo "--enable and --with options recognized:$ac_help" fi exit 0 ;; -host | --host | --hos | --ho) ac_prev=host ;; -host=* | --host=* | --hos=* | --ho=*) host="$ac_optarg" ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir="$ac_optarg" ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir="$ac_optarg" ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir="$ac_optarg" ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir="$ac_optarg" ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) localstatedir="$ac_optarg" ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir="$ac_optarg" ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir="$ac_optarg" ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix="$ac_optarg" ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix="$ac_optarg" ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix="$ac_optarg" ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name="$ac_optarg" ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir="$ac_optarg" ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir="$ac_optarg" ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site="$ac_optarg" ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir="$ac_optarg" ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir="$ac_optarg" ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target="$ac_optarg" ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers) echo "configure generated by autoconf version 2.12" exit 0 ;; -with-* | --with-*) ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes ;; esac eval "with_${ac_package}='$ac_optarg'" ;; -without-* | --without-*) ac_package=`echo $ac_option|sed -e 's/-*without-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` eval "with_${ac_package}=no" ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes="$ac_optarg" ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries="$ac_optarg" ;; -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } ;; *) if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then echo "configure: warning: $ac_option: invalid host type" 1>&2 fi if test "x$nonopt" != xNONE; then { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } fi nonopt="$ac_option" ;; esac done if test -n "$ac_prev"; then { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } fi trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 # File descriptor usage: # 0 standard input # 1 file creation # 2 errors and warnings # 3 some systems may open it to /dev/tty # 4 used on the Kubota Titan # 6 checking for... messages and results # 5 compiler messages saved in config.log if test "$silent" = yes; then exec 6>/dev/null else exec 6>&1 fi exec 5>./config.log echo "\ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. " 1>&5 # Strip out --no-create and --no-recursion so they do not pile up. # Also quote any args containing shell metacharacters. ac_configure_args= for ac_arg do case "$ac_arg" in -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; *) ac_configure_args="$ac_configure_args $ac_arg" ;; esac done # NLS nuisances. # Only set these to C if already set. These must not be set unconditionally # because not all systems understand e.g. LANG=C (notably SCO). # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! # Non-C LC_CTYPE values break the ctype check. if test "${LANG+set}" = set; then LANG=C; export LANG; fi if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo > confdefs.h # A filename unique to this package, relative to the directory that # configure is in, which we can look for to find out if srcdir is correct. ac_unique_file=eggdrop.conf # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_prog=$0 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } else { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } fi fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then echo "loading site script $ac_site_file" . "$ac_site_file" fi done if test -r "$cache_file"; then echo "loading cache $cache_file" . $cache_file else echo "creating cache $cache_file" > $cache_file fi ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c=' ' ac_t=' ' else ac_n=-n ac_c= ac_t= fi else ac_n= ac_c='\c' ac_t= fi echo "" echo "This is eggdrop's GNU configure script." echo "It's going to run a bunch of strange tests to hopefully make" echo "your compile work without much twiddling." echo "" # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:533: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="gcc" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:562: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" ac_prog_rejected=no for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" break fi done IFS="$ac_save_ifs" if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# -gt 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift set dummy "$ac_dir/$ac_word" "$@" shift ac_cv_prog_CC="$@" fi fi fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -z "$CC