/[cvs]/eggdrop1.4/configure.in
ViewVC logotype

Contents of /eggdrop1.4/configure.in

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


Revision 1.27 - (show annotations) (download)
Sat Oct 16 16:49:34 1999 UTC (20 years, 9 months ago) by guppy
Branch: MAIN
Changes since 1.26: +79 -63 lines
more-misc-fixes and misc-fixes.diff

1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(eggdrop.conf.dist)
3 ac_default_prefix=\${HOME}/eggdrop
4 AC_CONFIG_HEADER(config.h)
5
6 AC_MSG_RESULT()
7 AC_MSG_RESULT(This is eggdrop's GNU configure script.)
8 AC_MSG_RESULT(It's going to run a bunch of strange tests to hopefully)
9 AC_MSG_RESULT(make your compile work without much twiddling.)
10 AC_MSG_RESULT()
11
12 AC_PROG_CC
13
14 dnl no cross-compiling!
15 if test ! "x${cross_compiling}" = "xno"
16 then
17 cat << 'EOF' >&2
18 configure: error:
19
20 This system does not appear to have a working C compiler.
21 A working C compiler is required to compile eggdrop.
22
23 EOF
24 exit 1
25 fi
26
27 dnl crazy machines
28 AC_AIX
29 AC_ISC_POSIX
30 AC_MINIX
31
32 dnl Checks for programs.
33 AC_PROG_MAKE_SET
34 AC_PROG_RANLIB
35 AC_PROG_INSTALL
36 AC_PROG_LN_S
37 AC_CHECK_PROG(STRIP,strip,strip)
38 AC_CHECK_PROG(UNAME,uname,uname)
39
40 dnl awk is needed for Tcl library stuff and version number checking.
41 AC_PROG_AWK
42 if test "x${AWK}" = "x"
43 then
44 cat << 'EOF' >&2
45 configure: error:
46
47 This system seems to lack a working 'awk' command.
48 A working 'awk' command is required to compile eggdrop.
49
50 EOF
51 exit 1
52 fi
53
54 dnl basename is needed for Tcl library stuff.
55 AC_CHECK_PROG(BASENAME,basename,basename)
56 if test "x${BASENAME}" = "x"
57 then
58 cat << 'EOF' >&2
59 configure: error:
60
61 This system seems to lack a working 'basename' command.
62 A working 'basename' command is required to compile eggdrop.
63
64 EOF
65 exit 1
66 fi
67
68 dnl dirname is needed for Tcl library stuff.
69 AC_CHECK_PROG(DIRNAME,dirname,dirname)
70 if test "x${DIRNAME}" = "x"
71 then
72 cat << 'EOF' >&2
73 configure: error:
74
75 This system seems to lack a working 'dirname' command.
76 A working 'dirname' command is required to compile eggdrop.
77
78 EOF
79 exit 1
80 fi
81
82 dnl stop putting -g in there! @#$!#$%!
83 if test "x${CFLAGS}" = "x"
84 then
85 if test "x${CC}" = "xgcc"
86 then
87 CFLAGS="-O2"
88 else
89 CFLAGS="-O"
90 fi
91 fi
92
93 if test "x${STRIP}" = "x"
94 then
95 STRIP=touch
96 fi
97
98 dnl test the os and set the module linking settings
99 EGGEXEC=eggdrop
100 LINUX=no
101 IRIX=no
102 SUNOS=no
103 HPUX=no
104 MOD_CC="${CC}"
105 MOD_LD="${CC}"
106 MOD_STRIP="${STRIP}"
107 SHLIB_CC="${CC}"
108 SHLIB_LD="${CC}"
109 SHLIB_STRIP="${STRIP}"
110 NEED_DL=1
111 DLOPEN_1=1
112 DEFAULT_MAKE=eggdrop
113 AC_MSG_CHECKING(your OS)
114 SYSTEM=`${UNAME}`
115 case "$SYSTEM" in
116 BSD/OS)
117 if test "x`${UNAME} -r | cut -d . -f 1`" = "x2"
118 then
119 AC_MSG_RESULT(BSD/OS 2! statically linked modules are the only choice)
120 NEED_DL=0
121 DEFAULT_MAKE=static
122 else
123 AC_MSG_RESULT(BSD/OS 3+! ok I spose)
124 MOD_CC=shlicc
125 MOD_LD=shlicc
126 MOD_STRIP="${STRIP} -d"
127 SHLIB_LD="shlicc -r"
128 SHLIB_STRIP=touch
129 AC_DEFINE(MODULES_OK)
130 fi
131 ;;
132 CYGWIN*)
133 AC_MSG_RESULT(Cygwin)
134 NEED_DL=0
135 DEFAULT_MAKE=static
136 ;;
137 HP-UX)
138 AC_MSG_RESULT([HP-UX, just shoot yourself now])
139 HPUX=yes
140 MOD_LD="gcc -Wl,-E"
141 SHLIB_CC="gcc -fPIC"
142 SHLIB_LD="ld -b"
143 NEED_DL=0
144 AC_DEFINE(MODULES_OK)
145 AC_DEFINE(HPUX_HACKS)
146 if test "x`${UNAME} -r | cut -d . -f 2`" = "x10"
147 then
148 AC_DEFINE(HPUX10_HACKS)
149 fi
150 ;;
151 IRIX)
152 AC_MSG_RESULT(you are cursed with IRIX)
153 IRIX=yes
154 SHLIB_STRIP=touch
155 NEED_DL=0
156 DEFAULT_MAKE=static
157 ;;
158 IRIX64)
159 AC_MSG_RESULT(IRIX64)
160 SHLIB_STRIP=touch
161 NEED_DL=0
162 DEFAULT_MAKE=static
163 ;;
164 Linux)
165 AC_MSG_RESULT(Linux! The choice of the GNU generation)
166 LINUX=yes
167 CFLAGS="$CFLAGS -Wall"
168 MOD_LD="${CC}"
169 SHLIB_LD="${CC} -shared -nostartfiles"
170 DLOPEN_1=""
171 DEFAULT_MAKE=debugmem
172 AC_DEFINE(MODULES_OK)
173 ;;
174 Lynx)
175 SHLIB_STRIP=touch
176 AC_MSG_RESULT(Lynx OS)
177 ;;
178 OSF1)
179 AC_MSG_RESULT(OSF...)
180 case `${UNAME} -r | cut -d . -f 1` in
181 V*)
182 AC_MSG_RESULT([ Digital OSF])
183 if test "x$AWK" = "xgawk"
184 then
185 AWK="awk"
186 fi
187 MOD_CC="cc"
188 MOD_LD="cc"
189 SHLIB_CC="cc"
190 SHLIB_LD="ld -shared -expect_unresolved '*'"
191 SHLIB_STRIP="touch"
192 AC_DEFINE(MODULES_OK)
193 ;;
194 1.0|1.1|1.2)
195 AC_MSG_RESULT([ pre 1.3])
196 SHLIB_LD="ld -R -export $@:"
197 AC_DEFINE(MODULES_OK)
198 AC_DEFINE(OSF1_HACKS)
199 ;;
200 1.*)
201 AC_MSG_RESULT([ 1.3+])
202 SHLIB_CC="${CC} -fpic"
203 SHLIB_LD="ld -shared"
204 AC_DEFINE(MODULES_OK)
205 AC_DEFINE(OSF1_HACKS)
206 ;;
207 *)
208 AC_MSG_RESULT([ Some other weird OSF! No modules for you...])
209 NEED_DL=0
210 DEFAULT_MAKE=static
211 ;;
212 esac
213 AC_DEFINE(STOP_UAC)
214 ;;
215 SunOS)
216 if test "x`${UNAME} -r | cut -d . -f 1`" = "x5"
217 then
218 AC_MSG_RESULT(Solaris -- yay)
219 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
220 else
221 AC_MSG_RESULT(SunOS -- sigh)
222 SUNOS=yes
223 SHLIB_LD=ld
224 SHLIB_STRIP=touch
225 fi
226 MOD_CC="${CC} -fPIC"
227 SHLIB_CC="${CC} -fPIC"
228 AC_DEFINE(MODULES_OK)
229 ;;
230 *BSD)
231 AC_MSG_RESULT(FreeBSD/NetBSD/OpenBSD - choose your poison)
232 SHLIB_CC="${CC} -fpic"
233 SHLIB_LD="ld -Bshareable -x"
234 DLOPEN_1=""
235 AC_DEFINE(MODULES_OK)
236 ;;
237 *)
238 if test -r "/mach"
239 then
240 AC_MSG_RESULT([NeXT...We are borg, you will be assimilated])
241 AC_MSG_RESULT([break out the static modules, it's all you'll ever get :P])
242 AC_MSG_RESULT(Hiya DK :P)
243 AC_DEFINE(BORGCUBES)
244 else
245 AC_MSG_RESULT(Something unknown!!)
246 AC_MSG_RESULT([If you get dynamic modules to work, be sure to let the devel team know HOW :)])
247 fi
248 NEED_DL=0
249 DEFAULT_MAKE=static
250 ;;
251 esac
252
253 dnl Checks for system libraries.
254 if test "$IRIX" = "yes"
255 then
256 AC_MSG_WARN(Skipping library tests because they CONFUSE Irix.)
257 else
258 AC_CHECK_LIB(socket,socket)
259 AC_CHECK_LIB(nsl,connect)
260 AC_CHECK_LIB(dns,gethostbyname)
261 AC_CHECK_LIB(dl,dlopen)
262 if test "$SUNOS" = "yes"
263 then
264 dnl for suns without yp or something like that
265 AC_CHECK_LIB(dl,main)
266 else
267 if test "$HPUX" = "yes"
268 then
269 AC_CHECK_LIB(dld,shl_load)
270 fi
271 fi
272 fi
273
274 dnl Checks for header files.
275 AC_HEADER_DIRENT
276 AC_HEADER_SYS_WAIT
277 AC_CHECK_HEADERS(sys/time.h)
278 AC_HEADER_TIME
279 AC_CHECK_HEADERS(sys/select.h sys/rusage.h unistd.h dlfcn.h stdarg.h std_args.h)
280
281 dnl Checks for typedefs, structures, and compiler characteristics.
282 AC_TYPE_PID_T
283 AC_C_BIGENDIAN
284 AC_C_INLINE
285 AC_CHECK_SIZEOF(long,0)
286 AC_CHECK_SIZEOF(int,0)
287
288 dnl Checks for library functions.
289 AC_CHECK_FUNCS(rename getrusage getdtablesize srandom random sigaction)
290 AC_CHECK_FUNCS(sigemptyset vsprintf strcasecmp setpgid clock dlopen)
291 AC_CHECK_FUNCS(dprintf bzero uname vsnprintf)
292
293 if test "x${ac_cv_func_vsprintf}" = "xno"
294 then
295 cat << 'EOF' >&2
296 configure: error:
297
298 Your system does not have the sprintf/vsprintf libraries.
299 These are required to compile almost anything. Sorry.
300
301 EOF
302 exit 1
303 fi
304
305 if test "x${ac_cv_header_stdc}" = "xno"
306 then
307 cat << 'EOF' >&2
308 configure: error:
309
310 Your system must support ANSI C Header files.
311 These are required for the language support. Sorry.
312
313 EOF
314 exit 1
315 fi
316
317 AC_CYGWIN
318 if test ! "x${CYGWIN}" = "x"
319 then
320 AC_DEFINE(CYGWIN_HACKS)
321 fi
322
323 AC_EXEEXT
324 if test ! "x${EXEEXT}" = "x"
325 then
326 EGGEXEC=eggdrop${EXEEXT}
327 fi
328
329 dnl check how much space is left in filedb (informational purposes)
330 AC_MSG_CHECKING(space left in file database struct)
331
332 cat > abacab.c << 'EOF'
333 #include <stdio.h>
334 #include <sys/time.h>
335 #include "src/mod/filesys.mod/files.h"
336 main() {
337 fprintf(stdout, "%d/%d\n", 512 - sizeof(struct filler), sizeof(filedb));
338 }
339 EOF
340
341 ${CC} -o abacab${EXEEXT} abacab.c
342 FILEDB_SPACE=`./abacab${EXEEXT}`
343 AC_MSG_RESULT($FILEDB_SPACE bytes)
344 rm -f abacab${EXEEXT} abacab.o abacab.c
345 AC_MSG_RESULT([ (standard is currently 48/512 bytes)])
346
347 dnl where is tcl? is it here?
348 # ---------- begin robey's tcl thingies
349 # (well, what used to be robey's tcl thingies...)
350
351 tclrecommendver="8.2.1"
352
353 tcllibnames="tcl tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
354 tcl8.0 tcl80 tcl7.6 tcl76 tcl7.5 tcl75 tcl7.4 tcl74 \
355 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 tcl7.0 tcl70"
356
357 tcllibextensions=".so .so.1 .so.1.0 .so.1.2 .a"
358
359 tcllibpaths="/usr/local/lib /usr/local/pkgs/tcl/lib \
360 /usr/lib /lib /usr/i486-linuxaout/lib \
361 $HOME/lib $HOME/tcl/lib $HOME"
362
363 tclheadernames="tcl.h"
364
365 tclheaderpaths="/usr/local/include /usr/local/pkgs/tcl/include \
366 /usr/include $HOME/include $HOME/tcl/include $HOME"
367
368 tclconfigfile="tclConfig.sh"
369
370 dnl oohh new configure --variables for those with multiple tcl libs
371 AC_ARG_WITH(tcllib, [ --with-tcllib=PATH full path to tcl library], tcllibname=$withval)
372 AC_ARG_WITH(tclinc, [ --with-tclinc=PATH full path to tcl header], tclincname=$withval)
373
374 # make sure either both or neither $tcllibname and $tclincname are set
375 if test ! "x${tcllibname}" = "x"
376 then
377 if test "x${tclincname}" = "x"
378 then
379 cat << 'EOF' >&2
380 configure: warning:
381
382 You must specify both --with-tcllib and --with-tclinc for them to work.
383 configure will now attempt to autodetect both the Tcl library and header...
384
385 EOF
386 tcllibname=""
387 TCLLIB=""
388 TCLINC=""
389 fi
390 else
391 if test ! "x${tclincname}" = "x"
392 then
393 cat << 'EOF' >&2
394 configure: warning:
395
396 You must specify both --with-tcllib and --with-tclinc for them to work.
397 configure will now attempt to autodetect both the Tcl library and header...
398
399 EOF
400 tclincname=""
401 TCLLIB=""
402 TCLINC=""
403 fi
404 fi
405
406 # make sure either both or neither $TCLLIB and $TCLINC are set
407 if test ! "x${TCLLIB}" = "x"
408 then
409 if test "x${TCLINC}" = "x"
410 then
411 cat << 'EOF' >&2
412 configure: warning:
413
414 Environment variable TCLLIB was set, but I did not detect TCLINC.
415 Please set both TCLLIB and TCLINC correctly if you wish to use them.
416 configure will now attempt to autodetect both the Tcl library and header...
417
418 EOF
419 TCLLIB=""
420 fi
421 else
422 if test ! "x${TCLINC}" = "x"
423 then
424 cat << 'EOF' >&2
425 configure: warning:
426
427 Environment variable TCLINC was set, but I did not detect TCLLIB.
428 Please set both TCLLIB and TCLINC correctly if you wish to use them.
429 configure will now attempt to autodetect both the Tcl library and header...
430
431 EOF
432 TCLINC=""
433 fi
434 fi
435
436 # look for Tcl library: if $tcllibname is set, check there first
437 if test ! "x${tcllibname}" = "x"
438 then
439 if test -f "$tcllibname" && test -r "$tcllibname"
440 then
441 TCLLIB=`$DIRNAME $tcllibname`
442 TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
443 changequote(,)dnl
444 TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
445 changequote([, ])dnl
446 TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
447 else
448 cat << EOF >&2
449 configure: warning:
450
451 The file '$tcllibname' given to option --with-tcllib is not valid.
452 configure will now attempt to autodetect both the Tcl library and header...
453
454 EOF
455 tcllibname=""
456 tclincname=""
457 TCLLIB=""
458 TCLLIBFN=""
459 TCLINC=""
460 TCLINCFN=""
461 fi
462 fi
463
464 # look for Tcl header: if $tclincname is set, check there first
465 if test ! "x${tclincname}" = "x"
466 then
467 if test -f "$tclincname" && test -r "$tclincname"
468 then
469 TCLINC=`$DIRNAME $tclincname`
470 TCLINCFN=`$BASENAME $tclincname`
471 else
472 cat << EOF >&2
473 configure: warning:
474
475 The file '$tclincname' given to option --with-tclinc is not valid.
476 configure will now attempt to autodetect both the Tcl library and header...
477
478 EOF
479 tcllibname=""
480 tclincname=""
481 TCLLIB=""
482 TCLLIBFN=""
483 TCLINC=""
484 TCLINCFN=""
485 fi
486 fi
487
488 # look for Tcl library: if $TCLLIB is set, check there first
489 if test "x${TCLLIBFN}" = "x"
490 then
491 if test ! "x${TCLLIB}" = "x"
492 then
493 if test -d "${TCLLIB}"
494 then
495 for tcllibfns in $tcllibnames
496 do
497 for tcllibext in $tcllibextensions
498 do
499 if test -r "$TCLLIB/lib$tcllibfns$tcllibext"
500 then
501 TCLLIBFN=$tcllibfns$tcllibext
502 TCLLIBEXT=$tcllibext
503 TCLLIBFNS=$tcllibfns
504 break 2
505 fi
506 done
507 done
508 fi
509 if test "x${TCLLIBFN}" = "x"
510 then
511 cat << 'EOF' >&2
512 configure: warning:
513
514 Environment variable TCLLIB was set, but incorrect.
515 Please set both TCLLIB and TCLINC correctly if you wish to use them.
516 configure will now attempt to autodetect both the Tcl library and header...
517
518 EOF
519 TCLLIB=""
520 TCLLIBFN=""
521 TCLINC=""
522 TCLINCFN=""
523 fi
524 fi
525 fi
526
527 # look for Tcl header: if $TCLINC is set, check there first
528 if test "x${TCLINCFN}" = "x"
529 then
530 if test ! "x${TCLINC}" = "x"
531 then
532 if test -d "${TCLINC}"
533 then
534 for tclheaderfn in $tclheadernames
535 do
536 if test -r "$TCLINC/$tclheaderfn"
537 then
538 TCLINCFN=$tclheaderfn
539 fi
540 done
541 fi
542 if test "x${TCLINCFN}" = "x"
543 then
544 cat << 'EOF' >&2
545 configure: warning:
546
547 Environment variable TCLINC was set, but incorrect.
548 Please set both TCLLIB and TCLINC correctly if you wish to use them.
549 configure will now attempt to autodetect both the Tcl library and header...
550
551 EOF
552 TCLLIB=""
553 TCLLIBFN=""
554 TCLINC=""
555 TCLINCFN=""
556 fi
557 fi
558 fi
559
560 AC_MSG_CHECKING(for Tcl library)
561
562 # attempt autodetect for $TCLLIBFN if it's not set
563 if test ! "x${TCLLIBFN}" = "x"
564 then
565 AC_MSG_RESULT(using $TCLLIB/lib$TCLLIBFN)
566 else
567 for tcllibfns in $tcllibnames
568 do
569 for tcllibext in $tcllibextensions
570 do
571 for tcllibpath in $tcllibpaths
572 do
573 if test -r "$tcllibpath/lib$tcllibfns$tcllibext"
574 then
575 AC_MSG_RESULT(found $tcllibpath/lib$tcllibfns$tcllibext)
576 TCLLIB=$tcllibpath
577 TCLLIBFN=$tcllibfns$tcllibext
578 TCLLIBEXT=$tcllibext
579 TCLLIBFNS=$tcllibfns
580 break 3
581 fi
582 done
583 done
584 done
585 fi
586
587 # show if $TCLLIBFN wasn't found
588 if test "x${TCLLIBFN}" = "x"
589 then
590 AC_MSG_RESULT(not found)
591 fi
592
593 AC_MSG_CHECKING(for Tcl header)
594
595 # attempt autodetect for $TCLINCFN if it's not set
596 if test ! "x${TCLINCFN}" = "x"
597 then
598 AC_MSG_RESULT(using $TCLINC/$TCLINCFN)
599 else
600 for tclheaderpath in $tclheaderpaths
601 do
602 for tclheaderfn in $tclheadernames
603 do
604 if test -r "$tclheaderpath/$tclheaderfn"
605 then
606 AC_MSG_RESULT(found $tclheaderpath/$tclheaderfn)
607 TCLINC=$tclheaderpath
608 TCLINCFN=$tclheaderfn
609 break 2
610 fi
611 done
612 done
613 # FreeBSD hack ...
614 if test "x${TCLINCFN}" = "x"
615 then
616 for tcllibfns in $tcllibnames
617 do
618 for tclheaderpath in $tclheaderpaths
619 do
620 for tclheaderfn in $tclheadernames
621 do
622 if test -r "$tclheaderpath/$tcllibfns/$tclheaderfn"
623 then
624 AC_MSG_RESULT(found $tclheaderpath/$tcllibfns/$tclheaderfn)
625 TCLINC=$tclheaderpath/$tcllibfns
626 TCLINCFN=$tclheaderfn
627 break 3
628 fi
629 done
630 done
631 done
632 fi
633 fi
634
635 # show if $TCLINCFN wasn't found
636 if test "x${TCLINCFN}" = "x"
637 then
638 AC_MSG_RESULT(not found)
639 fi
640
641 # done looking, now either TCLLIBFN & TCLINCFN are both set, or we bail
642 if test "x${TCLLIBFN}" = "x" || test "x${TCLINCFN}" = "x"
643 then
644 cat << 'EOF' >&2
645 configure: error:
646
647 I can't find Tcl on this system.
648
649 Eggdrop now requires Tcl to compile. If you already have Tcl
650 installed on this system, and I just wasn't looking in the right
651 place for it, set the environment variables TCLLIB and TCLINC so
652 I will know where to find 'libtcl.a' (or 'libtcl.so') and 'tcl.h'
653 (respectively). Then run 'configure' again.
654
655 Read the README file if you don't know what Tcl is or how to get
656 it and install it.
657
658 EOF
659 exit 1
660 else # TCLLIBFN || TCLINCFN
661
662 # is this really Tcl ?
663 TCLFOUND=`grep TCL_VERSION $TCLINC/$TCLINCFN | wc -l`
664 if test $TCLFOUND = 1
665 then
666
667 # check Tcl version
668 AC_MSG_CHECKING(for Tcl version)
669 TCLVER=`grep TCL_VERSION $TCLINC/$TCLINCFN | $AWK '{gsub(/\"/, "", $3); print $3}' | head -1`
670 if test ! "x${TCLVER}" = "x"
671 then
672 AC_MSG_RESULT($TCLVER)
673 else
674 AC_MSG_RESULT(hmm... unknown version)
675 fi
676
677 # are we using a pre 7.5 Tcl version ?
678 changequote(,)dnl
679 OLD_TCL=`echo $TCLVER | $AWK '{split($1, i, "."); if (((i[1] == 7) && (i[2] >= 5)) || (i[1] >= 8)) print "no"; else print "yes"}'`
680 changequote([, ])dnl
681 if test "x${OLD_TCL}" = "xyes"
682 then
683 AC_DEFINE(HAVE_OLD_TCL)
684 else
685 # detect buggy Tcl 8.1 compiled with threads
686 changequote(,)dnl
687 BUGGY_TCL=`echo $TCLVER | $AWK '{split($1, i, "."); if ((i[1] == 8) && (i[2] == 1)) print "yes"; else print "no"}'`
688 changequote([, ])dnl
689 if test "x${BUGGY_TCL}" = "xyes"
690 then
691 AC_MSG_CHECKING(for buggy Tcl 8.1 threads)
692 if test -f "$TCLLIB/$tclconfigfile"
693 then
694 HASTHREADS=`grep 'TCL_DEFS' $TCLLIB/$tclconfigfile | grep 'TCL_THREADS=1' | wc -l`
695 if test $HASTHREADS = 1
696 then
697 AC_MSG_RESULT(yes...using a workaround...)
698 AC_DEFINE(HAVE_BUGGY_TCL_THREADS)
699 else
700 AC_MSG_RESULT(no)
701 fi
702 else
703 AC_MSG_RESULT(${tclconfigfile} is missing...better safe then sorry...)
704 AC_DEFINE(HAVE_BUGGY_TCL_THREADS)
705 fi
706 fi # BUGGYTCL
707 fi # OLDTCL
708
709 if test ! "x${TCLLIBEXT}" = "x.a"
710 then
711 TCL_REQS="$TCLLIB/lib$TCLLIBFN"
712 TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS -lm"
713 else
714
715 # set default make as static for unshared Tcl library
716 if test ! "$DEFAULT_MAKE" = "static"
717 then
718 cat << 'EOF' >&2
719 configure: warning:
720
721 Your libtcl is not a shared library.
722 configure will set default make type to static...
723
724 EOF
725 DEFAULT_MAKE=static
726 fi
727
728 # are we using a pre 7.4 Tcl version ?
729 changequote(,)dnl
730 VERYOLDTCL=`echo $TCLVER | $AWK '{split($1, i, "."); print ((i[1] <= 7) && (i[2] <= 3)) ? "yes" : "no"}'`
731 changequote([, ])dnl
732 if test "x${VERYOLDTCL}" = "xno"
733 then
734 # was the --with-tcllib option given ?
735 if test ! "x${tcllibname}" = "x"
736 then
737 TCL_REQS="$TCLLIB/lib$TCLLIBFN"
738 TCL_LIBS="$TCLLIB/lib$TCLLIBFN -lm"
739 else
740 TCL_REQS="$TCLLIB/lib$TCLLIBFN"
741 TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS -lm"
742 fi
743 else
744 cat << EOF >&2
745 configure: warning:
746
747 Your Tcl version ($TCLVER) is older then 7.4.
748 There is a known problem, but we will use a workaround.
749
750 EOF
751 TCL_REQS="libtcle.a"
752 TCL_LIBS="-L. -ltcle -lm"
753 fi
754 fi
755
756 else # TCLFOUND
757 cat << EOF >&2
758 configure: error:
759
760 Your Tcl version is much too old for eggdrop to use.
761 I suggest you download and complie a more recent version.
762 The most reliable current version is $tclrecommendver
763
764 EOF
765 exit 1
766 fi # TCLFOUND
767
768 fi # TCLLIBFN || TCLINCFN
769
770 AC_SUBST(TCLLIB)
771 AC_SUBST(TCLLIBFN)
772 AC_SUBST(TCLINC)
773 AC_SUBST(TCLINCFN)
774 AC_SUBST(TCL_REQS)
775 AC_SUBST(TCL_LIBS)
776
777 # ---------- end of robey's tcl thingies
778
779 if test $NEED_DL = 1 && test "x${ac_cv_func_dlopen}" = "xno"
780 then
781 if test "$LINUX" = "yes"
782 then
783 cat << 'EOF' >&2
784 configure: warning:
785
786 Since you are on a Linux system, this has a known problem,
787 I know a kludge for it,
788 EOF
789
790 if test -r "/lib/libdl.so.1"
791 then
792 cat << 'EOF' >&2
793 and you seem to have it, so we'll do that...
794
795 EOF
796 AC_DEFINE(HAVE_DLOPEN)
797 LIBS="/lib/libdl.so.1 $LIBS"
798 else
799 cat << 'EOF' >&2
800 which you DONT seem to have... doh!
801 perhaps you may still have the stuff lying around somewhere
802 if you work out where it is, add it to your XLIBS= lines
803 and #define HAVE_DLOPEN in config.h
804
805 we'll proceed on anyway, but you probably won't be able
806 to 'make eggdrop' but you might be able to make the
807 static bot (I'll default your make to this version).
808
809 EOF
810 DEFAULT_MAKE=static
811 fi
812 else
813 cat << 'EOF' >&2
814 configure: warning:
815
816 You don't seem to have libdl anywhere I can find it, this will
817 prevent you from doing dynamic modules, I'll set your default
818 make to static linking.
819
820 EOF
821 DEFAULT_MAKE=static
822 fi
823 fi
824
825 EGGVERSION=`grep 'char egg_version' src/main.c | $AWK '{gsub(/(\"|\;)/, "", $4); print $4}'`
826
827 if test "x$DEST" = "x"
828 then
829 DEST=\${prefix}
830 fi
831
832 AC_SUBST(DEST)
833 AC_SUBST(CC)
834 AC_SUBST(MOD_LD)
835 AC_SUBST(MOD_CC)
836 AC_SUBST(MOD_STRIP)
837 AC_SUBST(SHLIB_LD)
838 AC_SUBST(SHLIB_CC)
839 AC_SUBST(SHLIB_STRIP)
840 AC_SUBST(DEFAULT_MAKE)
841 AC_SUBST(EGGEXEC)
842 AC_SUBST(EGGVERSION)
843 AC_OUTPUT(Makefile doc/Makefile scripts/Makefile src/Makefile src/md5/Makefile src/mod/Makefile lush.h)
844
845 AC_MSG_RESULT()
846 AC_MSG_RESULT(Configure is done.)
847 AC_MSG_RESULT()
848 if test -f "./$EGGEXEC"
849 then
850 AC_MSG_RESULT(Type 'make clean' and then 'make' to create the bot.)
851 else
852 AC_MSG_RESULT(Type 'make' to create the bot.)
853 fi
854 AC_MSG_RESULT()

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23