3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=\
${HOME}/thales
16 --with-ircd=ircdtype type of the ircd used with thales (bahamut, hybrid, ircdru, unreal, ultimate28 or ultimate30)"
18 --tableprefix=string prefix to add to all SQL tables names. database creation scripts need to be modified accordingly.)"
20 --with-hashlist=YES/NO Use an internal hashlist to store some data ? (that makes Thales run faster)"
22 --with-mysql=PFX Prefix where MySQL is installed (usually /usr/local)"
24 --with-mysql-includes=PFX Prefix where MySQL includes are found (usually
25 /usr/local/include/mysql)"
27 --with-mysql-libraries=PFX Prefix where MySQL libraries are found (usually
28 /usr/local/lib/mysql)"
30 --enable-noreportusage Forget about the Usage Survey"
32 --enable-static links statically"
34 --enable-no-modes Disables modes in the database (modes are enabled by default)"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file
=.
/config.cache
49 program_transform_name
=s
,x
,x
,
57 bindir
='${exec_prefix}/bin'
58 sbindir
='${exec_prefix}/sbin'
59 libexecdir
='${exec_prefix}/libexec'
60 datadir
='${prefix}/share'
61 sysconfdir
='${prefix}/etc'
62 sharedstatedir
='${prefix}/com'
63 localstatedir
='${prefix}/var'
64 libdir
='${exec_prefix}/lib'
65 includedir
='${prefix}/include'
66 oldincludedir
='/usr/include'
67 infodir
='${prefix}/info'
68 mandir
='${prefix}/man'
70 # Initialize some other variables.
73 SHELL
=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir | --bindir | --bindi | --bind | --bin | --bi)
99 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100 bindir
="$ac_optarg" ;;
102 -build | --build | --buil | --bui | --bu)
104 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105 build
="$ac_optarg" ;;
107 -cache-file | --cache-file | --cache-fil | --cache-fi \
108 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109 ac_prev
=cache_file
;;
110 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112 cache_file
="$ac_optarg" ;;
114 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118 datadir
="$ac_optarg" ;;
120 -disable-* | --disable-*)
121 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* | --enable-*)
130 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144 | --exec | --exe | --ex)
145 ac_prev
=exec_prefix
;;
146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148 | --exec=* | --exe=* | --ex=*)
149 exec_prefix
="$ac_optarg" ;;
151 -gas | --gas | --ga | --g)
152 # Obsolete; use --with-gas.
155 -help | --help | --hel | --he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host | --host | --hos | --ho)
212 -host=* | --host=* | --hos=* | --ho=*)
215 -includedir | --includedir | --includedi | --included | --include \
216 | --includ | --inclu | --incl | --inc)
217 ac_prev
=includedir
;;
218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219 | --includ=* | --inclu=* | --incl=* | --inc=*)
220 includedir
="$ac_optarg" ;;
222 -infodir | --infodir | --infodi | --infod | --info | --inf)
224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225 infodir
="$ac_optarg" ;;
227 -libdir | --libdir | --libdi | --libd)
229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
230 libdir
="$ac_optarg" ;;
232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233 | --libexe | --libex | --libe)
234 ac_prev
=libexecdir
;;
235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236 | --libexe=* | --libex=* | --libe=*)
237 libexecdir
="$ac_optarg" ;;
239 -localstatedir | --localstatedir | --localstatedi | --localstated \
240 | --localstate | --localstat | --localsta | --localst \
241 | --locals | --local | --loca | --loc | --lo)
242 ac_prev
=localstatedir
;;
243 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246 localstatedir
="$ac_optarg" ;;
248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251 mandir
="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267 | --oldin | --oldi | --old | --ol | --o)
268 ac_prev
=oldincludedir
;;
269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272 oldincludedir
="$ac_optarg" ;;
274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277 prefix
="$ac_optarg" ;;
279 -program-prefix | --program-prefix | --program-prefi | --program-pref \
280 | --program-pre | --program-pr | --program-p)
281 ac_prev
=program_prefix
;;
282 -program-prefix=* | --program-prefix=* | --program-prefi=* \
283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284 program_prefix
="$ac_optarg" ;;
286 -program-suffix | --program-suffix | --program-suffi | --program-suff \
287 | --program-suf | --program-su | --program-s)
288 ac_prev
=program_suffix
;;
289 -program-suffix=* | --program-suffix=* | --program-suffi=* \
290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291 program_suffix
="$ac_optarg" ;;
293 -program-transform-name | --program-transform-name \
294 | --program-transform-nam | --program-transform-na \
295 | --program-transform-n | --program-transform- \
296 | --program-transform | --program-transfor \
297 | --program-transfo | --program-transf \
298 | --program-trans | --program-tran \
299 | --progr-tra | --program-tr | --program-t)
300 ac_prev
=program_transform_name
;;
301 -program-transform-name=* | --program-transform-name=* \
302 | --program-transform-nam=* | --program-transform-na=* \
303 | --program-transform-n=* | --program-transform-=* \
304 | --program-transform=* | --program-transfor=* \
305 | --program-transfo=* | --program-transf=* \
306 | --program-trans=* | --program-tran=* \
307 | --progr-tra=* | --program-tr=* | --program-t=*)
308 program_transform_name
="$ac_optarg" ;;
310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311 | -silent | --silent | --silen | --sile | --sil)
314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
318 sbindir
="$ac_optarg" ;;
320 -sharedstatedir | --sharedstatedir | --sharedstatedi \
321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322 | --sharedst | --shareds | --shared | --share | --shar \
324 ac_prev
=sharedstatedir
;;
325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
329 sharedstatedir
="$ac_optarg" ;;
331 -site | --site | --sit)
333 -site=* | --site=* | --sit=*)
336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
338 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339 srcdir
="$ac_optarg" ;;
341 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342 | --syscon | --sysco | --sysc | --sys | --sy)
343 ac_prev
=sysconfdir
;;
344 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346 sysconfdir
="$ac_optarg" ;;
348 -target | --target | --targe | --targ | --tar | --ta | --t)
350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351 target
="$ac_optarg" ;;
353 -v | -verbose | --verbose | --verbos | --verbo | --verb)
356 -version | --version | --versio | --versi | --vers)
357 echo "configure generated by autoconf version 2.13"
361 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package
=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* | --without-*)
374 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387 | --x-incl | --x-inc | --x-in | --x-i)
388 ac_prev
=x_includes
;;
389 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391 x_includes
="$ac_optarg" ;;
393 -x-libraries | --x-libraries | --x-librarie | --x-librari \
394 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395 ac_prev
=x_libraries
;;
396 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398 x_libraries
="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE
; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c) ;;
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest
* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file
=src
/main.c
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted
=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted
=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE
; then
503 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file
in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp
='$CPP $CPPFLAGS'
526 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling
=$ac_cv_prog_cc_cross
532 if (echo "testing\c"; echo 1,2,3) | grep c
>/dev
/null
; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn
>/dev
/null
; then
541 ac_n
= ac_c
='\c' ac_t
=
549 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
550 if test -f $ac_dir/install-sh; then
552 ac_install_sh
="$ac_aux_dir/install-sh -c"
554 elif test -f $ac_dir/install.sh
; then
556 ac_install_sh
="$ac_aux_dir/install.sh -c"
560 if test -z "$ac_aux_dir"; then
561 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
563 ac_config_guess
=$ac_aux_dir/config.guess
564 ac_config_sub
=$ac_aux_dir/config.sub
565 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
567 am__api_version
="1.4"
568 # Find a good install program. We prefer a C program (faster),
569 # so one script is as good as another. But avoid the broken or
570 # incompatible versions:
571 # SysV /etc/install, /usr/sbin/install
572 # SunOS /usr/etc/install
575 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
576 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
577 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
578 # ./install, which can be erroneously created by make from ./install.sh.
579 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
580 echo "configure:581: checking for a BSD compatible install" >&5
581 if test -z "$INSTALL"; then
582 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
583 echo $ac_n "(cached) $ac_c" 1>&6
585 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
586 for ac_dir
in $PATH; do
587 # Account for people who put trailing slashes in PATH elements.
589 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
591 # OSF1 and SCO ODT 3.0 have their own names for install.
592 # Don't use installbsd from OSF since it installs stuff as root
594 for ac_prog
in ginstall scoinst
install; do
595 if test -f $ac_dir/$ac_prog; then
596 if test $ac_prog = install &&
597 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
598 # AIX install. It has an incompatible calling convention.
601 ac_cv_path_install
="$ac_dir/$ac_prog -c"
612 if test "${ac_cv_path_install+set}" = set; then
613 INSTALL
="$ac_cv_path_install"
615 # As a last resort, use the slow shell script. We don't cache a
616 # path for INSTALL within a source directory, because that will
617 # break other packages using the cache if that directory is
618 # removed, or if the path is relative.
619 INSTALL
="$ac_install_sh"
622 echo "$ac_t""$INSTALL" 1>&6
624 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
625 # It thinks the first close brace ends the variable substitution.
626 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
628 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
630 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
632 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
633 echo "configure:634: checking whether build environment is sane" >&5
636 echo timestamp
> conftestfile
637 # Do `set' in a subshell so we don't clobber the current shell's
638 # arguments. Must try -L first in case configure is actually a
639 # symlink; some systems play weird games with the mod time of symlinks
640 # (eg FreeBSD returns the mod time of the symlink's containing
643 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
644 if test "$*" = "X"; then
646 set X
`ls -t $srcdir/configure conftestfile`
648 if test "$*" != "X $srcdir/configure conftestfile" \
649 && test "$*" != "X conftestfile $srcdir/configure"; then
651 # If neither matched, then we have a broken ls. This can happen
652 # if, for instance, CONFIG_SHELL is bash and it inherits a
653 # broken ls alias from the environment. This has actually
654 # happened. Such a system could not be considered "sane".
655 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
656 alias in your environment" 1>&2; exit 1; }
659 test "$2" = conftestfile
665 { echo "configure: error: newly created file is older than distributed files!
666 Check your system clock" 1>&2; exit 1; }
669 echo "$ac_t""yes" 1>&6
670 if test "$program_transform_name" = s
,x
,x
,; then
671 program_transform_name
=
673 # Double any \ or $. echo might interpret backslashes.
674 cat <<\EOF_SED
> conftestsed
675 s
,\\,\\\\,g
; s
,\$
,$$
,g
677 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
680 test "$program_prefix" != NONE
&&
681 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
682 # Use a double $ so make ignores it.
683 test "$program_suffix" != NONE
&&
684 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
686 # sed with no file args requires a program.
687 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
689 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
690 echo "configure:691: checking whether ${MAKE-make} sets \${MAKE}" >&5
691 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
692 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
695 cat > conftestmake
<<\EOF
697 @
echo 'ac_maketemp="${MAKE}"'
699 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
700 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
701 if test -n "$ac_maketemp"; then
702 eval ac_cv_prog_make_
${ac_make}_set
=yes
704 eval ac_cv_prog_make_
${ac_make}_set
=no
708 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
709 echo "$ac_t""yes" 1>&6
712 echo "$ac_t""no" 1>&6
713 SET_MAKE
="MAKE=${MAKE-make}"
721 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
722 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
724 cat >> confdefs.h
<<EOF
725 #define PACKAGE "$PACKAGE"
728 cat >> confdefs.h
<<EOF
729 #define VERSION "$VERSION"
734 missing_dir
=`cd $ac_aux_dir && pwd`
735 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
736 echo "configure:737: checking for working aclocal-${am__api_version}" >&5
737 # Run test in a subshell; some versions of sh will print an error if
738 # an executable is not found, even if stderr is redirected.
739 # Redirect stdin to placate older versions of autoconf. Sigh.
740 if (aclocal
-${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
741 ACLOCAL
=aclocal
-${am__api_version}
742 echo "$ac_t""found" 1>&6
744 ACLOCAL
="$missing_dir/missing aclocal-${am__api_version}"
745 echo "$ac_t""missing" 1>&6
748 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
749 echo "configure:750: checking for working autoconf" >&5
750 # Run test in a subshell; some versions of sh will print an error if
751 # an executable is not found, even if stderr is redirected.
752 # Redirect stdin to placate older versions of autoconf. Sigh.
753 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
755 echo "$ac_t""found" 1>&6
757 AUTOCONF
="$missing_dir/missing autoconf"
758 echo "$ac_t""missing" 1>&6
761 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
762 echo "configure:763: checking for working automake-${am__api_version}" >&5
763 # Run test in a subshell; some versions of sh will print an error if
764 # an executable is not found, even if stderr is redirected.
765 # Redirect stdin to placate older versions of autoconf. Sigh.
766 if (automake
-${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
767 AUTOMAKE
=automake
-${am__api_version}
768 echo "$ac_t""found" 1>&6
770 AUTOMAKE
="$missing_dir/missing automake-${am__api_version}"
771 echo "$ac_t""missing" 1>&6
774 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
775 echo "configure:776: checking for working autoheader" >&5
776 # Run test in a subshell; some versions of sh will print an error if
777 # an executable is not found, even if stderr is redirected.
778 # Redirect stdin to placate older versions of autoconf. Sigh.
779 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
780 AUTOHEADER
=autoheader
781 echo "$ac_t""found" 1>&6
783 AUTOHEADER
="$missing_dir/missing autoheader"
784 echo "$ac_t""missing" 1>&6
787 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
788 echo "configure:789: checking for working makeinfo" >&5
789 # Run test in a subshell; some versions of sh will print an error if
790 # an executable is not found, even if stderr is redirected.
791 # Redirect stdin to placate older versions of autoconf. Sigh.
792 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
794 echo "$ac_t""found" 1>&6
796 MAKEINFO
="$missing_dir/missing makeinfo"
797 echo "$ac_t""missing" 1>&6
802 for ac_prog
in mawk gawk nawk
awk
804 # Extract the first word of "$ac_prog", so it can be a program name with args.
805 set dummy
$ac_prog; ac_word
=$2
806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
807 echo "configure:808: checking for $ac_word" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
811 if test -n "$AWK"; then
812 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
814 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
816 for ac_dir
in $ac_dummy; do
817 test -z "$ac_dir" && ac_dir
=.
818 if test -f $ac_dir/$ac_word; then
819 ac_cv_prog_AWK
="$ac_prog"
826 AWK
="$ac_cv_prog_AWK"
827 if test -n "$AWK"; then
828 echo "$ac_t""$AWK" 1>&6
830 echo "$ac_t""no" 1>&6
833 test -n "$AWK" && break
836 # Extract the first word of "gcc", so it can be a program name with args.
837 set dummy gcc
; ac_word
=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 echo "configure:840: checking for $ac_word" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 if test -n "$CC"; then
844 ac_cv_prog_CC
="$CC" # Let the user override the test.
846 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
848 for ac_dir
in $ac_dummy; do
849 test -z "$ac_dir" && ac_dir
=.
850 if test -f $ac_dir/$ac_word; then
859 if test -n "$CC"; then
860 echo "$ac_t""$CC" 1>&6
862 echo "$ac_t""no" 1>&6
865 if test -z "$CC"; then
866 # Extract the first word of "cc", so it can be a program name with args.
867 set dummy cc
; ac_word
=$2
868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
869 echo "configure:870: checking for $ac_word" >&5
870 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
873 if test -n "$CC"; then
874 ac_cv_prog_CC
="$CC" # Let the user override the test.
876 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
879 for ac_dir
in $ac_dummy; do
880 test -z "$ac_dir" && ac_dir
=.
881 if test -f $ac_dir/$ac_word; then
882 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
891 if test $ac_prog_rejected = yes; then
892 # We found a bogon in the path, so make sure we never use it.
893 set dummy
$ac_cv_prog_CC
895 if test $# -gt 0; then
896 # We chose a different compiler from the bogus one.
897 # However, it has the same basename, so the bogon will be chosen
898 # first if we set CC to just the basename; use the full file name.
900 set dummy
"$ac_dir/$ac_word" "$@"
908 if test -n "$CC"; then
909 echo "$ac_t""$CC" 1>&6
911 echo "$ac_t""no" 1>&6
914 if test -z "$CC"; then
917 # Extract the first word of "cl", so it can be a program name with args.
918 set dummy cl
; ac_word
=$2
919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
920 echo "configure:921: checking for $ac_word" >&5
921 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
922 echo $ac_n "(cached) $ac_c" 1>&6
924 if test -n "$CC"; then
925 ac_cv_prog_CC
="$CC" # Let the user override the test.
927 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
929 for ac_dir
in $ac_dummy; do
930 test -z "$ac_dir" && ac_dir
=.
931 if test -f $ac_dir/$ac_word; then
940 if test -n "$CC"; then
941 echo "$ac_t""$CC" 1>&6
943 echo "$ac_t""no" 1>&6
948 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
951 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
952 echo "configure:953: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
955 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
956 ac_cpp
='$CPP $CPPFLAGS'
957 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
958 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
959 cross_compiling
=$ac_cv_prog_cc_cross
961 cat > conftest.
$ac_ext << EOF
963 #line 964 "configure"
964 #include "confdefs.h"
968 if { (eval echo configure
:969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
969 ac_cv_prog_cc_works
=yes
970 # If we can't run a trivial program, we are probably using a cross compiler.
971 if (.
/conftest
; exit) 2>/dev
/null
; then
972 ac_cv_prog_cc_cross
=no
974 ac_cv_prog_cc_cross
=yes
977 echo "configure: failed program was:" >&5
978 cat conftest.
$ac_ext >&5
979 ac_cv_prog_cc_works
=no
983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
984 ac_cpp
='$CPP $CPPFLAGS'
985 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
986 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
987 cross_compiling
=$ac_cv_prog_cc_cross
989 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
990 if test $ac_cv_prog_cc_works = no
; then
991 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
993 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
994 echo "configure:995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
995 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
996 cross_compiling
=$ac_cv_prog_cc_cross
998 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
999 echo "configure:1000: checking whether we are using GNU C" >&5
1000 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1003 cat > conftest.c
<<EOF
1008 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
1015 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1017 if test $ac_cv_prog_gcc = yes; then
1023 ac_test_CFLAGS
="${CFLAGS+set}"
1024 ac_save_CFLAGS
="$CFLAGS"
1026 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1027 echo "configure:1028: checking whether ${CC-cc} accepts -g" >&5
1028 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1031 echo 'void f(){}' > conftest.c
1032 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1041 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1042 if test "$ac_test_CFLAGS" = set; then
1043 CFLAGS
="$ac_save_CFLAGS"
1044 elif test $ac_cv_prog_cc_g = yes; then
1045 if test "$GCC" = yes; then
1051 if test "$GCC" = yes; then
1058 # Find a good install program. We prefer a C program (faster),
1059 # so one script is as good as another. But avoid the broken or
1060 # incompatible versions:
1061 # SysV /etc/install, /usr/sbin/install
1062 # SunOS /usr/etc/install
1063 # IRIX /sbin/install
1065 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1066 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1067 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1068 # ./install, which can be erroneously created by make from ./install.sh.
1069 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1070 echo "configure:1071: checking for a BSD compatible install" >&5
1071 if test -z "$INSTALL"; then
1072 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1075 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1076 for ac_dir
in $PATH; do
1077 # Account for people who put trailing slashes in PATH elements.
1079 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
1081 # OSF1 and SCO ODT 3.0 have their own names for install.
1082 # Don't use installbsd from OSF since it installs stuff as root
1084 for ac_prog
in ginstall scoinst
install; do
1085 if test -f $ac_dir/$ac_prog; then
1086 if test $ac_prog = install &&
1087 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1088 # AIX install. It has an incompatible calling convention.
1091 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1102 if test "${ac_cv_path_install+set}" = set; then
1103 INSTALL
="$ac_cv_path_install"
1105 # As a last resort, use the slow shell script. We don't cache a
1106 # path for INSTALL within a source directory, because that will
1107 # break other packages using the cache if that directory is
1108 # removed, or if the path is relative.
1109 INSTALL
="$ac_install_sh"
1112 echo "$ac_t""$INSTALL" 1>&6
1114 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1115 # It thinks the first close brace ends the variable substitution.
1116 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1118 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1120 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1122 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1123 echo "configure:1124: checking whether ln -s works" >&5
1124 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1128 if ln -s X conftestdata
2>/dev
/null
1131 ac_cv_prog_LN_S
="ln -s"
1136 LN_S
="$ac_cv_prog_LN_S"
1137 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1138 echo "$ac_t""yes" 1>&6
1140 echo "$ac_t""no" 1>&6
1144 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1145 echo "configure:1146: checking for connect in -lsocket" >&5
1146 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 ac_save_LIBS
="$LIBS"
1151 LIBS
="-lsocket $LIBS"
1152 cat > conftest.
$ac_ext <<EOF
1153 #line 1154 "configure"
1154 #include "confdefs.h"
1155 /* Override any gcc2 internal prototype to avoid an error. */
1156 /* We use char because int might match the return type of a gcc2
1157 builtin and then its argument prototype would still apply. */
1164 if { (eval echo configure
:1165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1166 eval "ac_cv_lib_$ac_lib_var=yes"
1168 echo "configure: failed program was:" >&5
1169 cat conftest.
$ac_ext >&5
1171 eval "ac_cv_lib_$ac_lib_var=no"
1174 LIBS
="$ac_save_LIBS"
1177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1178 echo "$ac_t""yes" 1>&6
1181 echo "$ac_t""no" 1>&6
1184 echo $ac_n "checking for compress in -lz""... $ac_c" 1>&6
1185 echo "configure:1186: checking for compress in -lz" >&5
1186 ac_lib_var
=`echo z'_'compress | sed 'y%./+-%__p_%'`
1187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1190 ac_save_LIBS
="$LIBS"
1192 cat > conftest.
$ac_ext <<EOF
1193 #line 1194 "configure"
1194 #include "confdefs.h"
1195 /* Override any gcc2 internal prototype to avoid an error. */
1196 /* We use char because int might match the return type of a gcc2
1197 builtin and then its argument prototype would still apply. */
1204 if { (eval echo configure
:1205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1206 eval "ac_cv_lib_$ac_lib_var=yes"
1208 echo "configure: failed program was:" >&5
1209 cat conftest.
$ac_ext >&5
1211 eval "ac_cv_lib_$ac_lib_var=no"
1214 LIBS
="$ac_save_LIBS"
1217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1218 echo "$ac_t""yes" 1>&6
1219 ac_tr_lib
=HAVE_LIB
`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1220 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1221 cat >> confdefs.h
<<EOF
1222 #define $ac_tr_lib 1
1228 echo "$ac_t""no" 1>&6
1231 echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6
1232 echo "configure:1233: checking for floor in -lm" >&5
1233 ac_lib_var
=`echo m'_'floor | sed 'y%./+-%__p_%'`
1234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1237 ac_save_LIBS
="$LIBS"
1239 cat > conftest.
$ac_ext <<EOF
1240 #line 1241 "configure"
1241 #include "confdefs.h"
1242 /* Override any gcc2 internal prototype to avoid an error. */
1243 /* We use char because int might match the return type of a gcc2
1244 builtin and then its argument prototype would still apply. */
1251 if { (eval echo configure
:1252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1253 eval "ac_cv_lib_$ac_lib_var=yes"
1255 echo "configure: failed program was:" >&5
1256 cat conftest.
$ac_ext >&5
1258 eval "ac_cv_lib_$ac_lib_var=no"
1261 LIBS
="$ac_save_LIBS"
1264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1265 echo "$ac_t""yes" 1>&6
1266 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1267 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1268 cat >> confdefs.h
<<EOF
1269 #define $ac_tr_lib 1
1275 echo "$ac_t""no" 1>&6
1279 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1280 echo "configure:1281: checking how to run the C preprocessor" >&5
1281 # On Suns, sometimes $CPP names a directory.
1282 if test -n "$CPP" && test -d "$CPP"; then
1285 if test -z "$CPP"; then
1286 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 # This must be in double quotes, not single quotes, because CPP may get
1290 # substituted into the Makefile and "${CC-cc}" will confuse make.
1292 # On the NeXT, cc -E runs the code through the compiler's parser,
1293 # not just through cpp.
1294 cat > conftest.
$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1300 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1301 { (eval echo configure
:1302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1302 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1303 if test -z "$ac_err"; then
1307 echo "configure: failed program was:" >&5
1308 cat conftest.
$ac_ext >&5
1310 CPP
="${CC-cc} -E -traditional-cpp"
1311 cat > conftest.
$ac_ext <<EOF
1312 #line 1313 "configure"
1313 #include "confdefs.h"
1317 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1318 { (eval echo configure
:1319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1319 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1320 if test -z "$ac_err"; then
1324 echo "configure: failed program was:" >&5
1325 cat conftest.
$ac_ext >&5
1327 CPP
="${CC-cc} -nologo -E"
1328 cat > conftest.
$ac_ext <<EOF
1329 #line 1330 "configure"
1330 #include "confdefs.h"
1334 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1335 { (eval echo configure
:1336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1336 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1337 if test -z "$ac_err"; then
1341 echo "configure: failed program was:" >&5
1342 cat conftest.
$ac_ext >&5
1351 ac_cv_prog_CPP
="$CPP"
1353 CPP
="$ac_cv_prog_CPP"
1355 ac_cv_prog_CPP
="$CPP"
1357 echo "$ac_t""$CPP" 1>&6
1359 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1360 echo "configure:1361: checking for ANSI C header files" >&5
1361 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 cat > conftest.
$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1372 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1373 { (eval echo configure
:1374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1374 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1375 if test -z "$ac_err"; then
1377 ac_cv_header_stdc
=yes
1380 echo "configure: failed program was:" >&5
1381 cat conftest.
$ac_ext >&5
1383 ac_cv_header_stdc
=no
1387 if test $ac_cv_header_stdc = yes; then
1388 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1389 cat > conftest.
$ac_ext <<EOF
1390 #line 1391 "configure"
1391 #include "confdefs.h"
1394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1395 egrep "memchr" >/dev
/null
2>&1; then
1399 ac_cv_header_stdc
=no
1405 if test $ac_cv_header_stdc = yes; then
1406 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1407 cat > conftest.
$ac_ext <<EOF
1408 #line 1409 "configure"
1409 #include "confdefs.h"
1412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1413 egrep "free" >/dev
/null
2>&1; then
1417 ac_cv_header_stdc
=no
1423 if test $ac_cv_header_stdc = yes; then
1424 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1425 if test "$cross_compiling" = yes; then
1428 cat > conftest.
$ac_ext <<EOF
1429 #line 1430 "configure"
1430 #include "confdefs.h"
1432 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1433 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1435 int main () { int i; for (i = 0; i < 256; i++)
1436 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1440 if { (eval echo configure
:1441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1444 echo "configure: failed program was:" >&5
1445 cat conftest.
$ac_ext >&5
1447 ac_cv_header_stdc
=no
1455 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1456 if test $ac_cv_header_stdc = yes; then
1457 cat >> confdefs.h
<<\EOF
1458 #define STDC_HEADERS 1
1463 for ac_hdr
in limits.h sys
/time.h unistd.h
1465 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1466 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1467 echo "configure:1468: checking for $ac_hdr" >&5
1468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 cat > conftest.
$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1476 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1477 { (eval echo configure
:1478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1478 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1479 if test -z "$ac_err"; then
1481 eval "ac_cv_header_$ac_safe=yes"
1484 echo "configure: failed program was:" >&5
1485 cat conftest.
$ac_ext >&5
1487 eval "ac_cv_header_$ac_safe=no"
1491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1492 echo "$ac_t""yes" 1>&6
1493 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1494 cat >> confdefs.h
<<EOF
1495 #define $ac_tr_hdr 1
1499 echo "$ac_t""no" 1>&6
1504 echo $ac_n "checking for working const""... $ac_c" 1>&6
1505 echo "configure:1506: checking for working const" >&5
1506 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 cat > conftest.
$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1515 /* Ultrix mips cc rejects this. */
1516 typedef int charset[2]; const charset x;
1517 /* SunOS 4.1.1 cc rejects this. */
1518 char const *const *ccp;
1520 /* NEC SVR4.0.2 mips cc rejects this. */
1521 struct point {int x, y;};
1522 static struct point const zero = {0,0};
1523 /* AIX XL C 1.02.0.0 rejects this.
1524 It does not let you subtract one const X* pointer from another in an arm
1525 of an if-expression whose if-part is not a constant expression */
1526 const char *g = "string";
1527 ccp = &g + (g ? g-g : 0);
1528 /* HPUX 7.0 cc rejects these. */
1531 ccp = (char const *const *) p;
1532 { /* SCO 3.2v4 cc rejects this. */
1534 char const *s = 0 ? (char *) 0 : (char const *) 0;
1538 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1540 const int *foo = &x[0];
1543 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1544 typedef const int *iptr;
1548 { /* AIX XL C 1.02.0.0 rejects this saying
1549 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1550 struct s { int j; const int *ap[3]; };
1551 struct s *b; b->j = 5;
1553 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1559 if { (eval echo configure
:1560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1563 echo "configure: failed program was:" >&5
1564 cat conftest.
$ac_ext >&5
1571 echo "$ac_t""$ac_cv_c_const" 1>&6
1572 if test $ac_cv_c_const = no
; then
1573 cat >> confdefs.h
<<\EOF
1579 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1580 echo "configure:1581: checking for size_t" >&5
1581 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 cat > conftest.
$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1587 #include <sys/types.h>
1593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1594 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1596 ac_cv_type_size_t
=yes
1599 ac_cv_type_size_t
=no
1604 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1605 if test $ac_cv_type_size_t = no
; then
1606 cat >> confdefs.h
<<\EOF
1607 #define size_t unsigned
1612 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1613 echo "configure:1614: checking whether time.h and sys/time.h may both be included" >&5
1614 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 cat > conftest.
$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1620 #include <sys/types.h>
1621 #include <sys/time.h>
1627 if { (eval echo configure
:1628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1629 ac_cv_header_time
=yes
1631 echo "configure: failed program was:" >&5
1632 cat conftest.
$ac_ext >&5
1634 ac_cv_header_time
=no
1639 echo "$ac_t""$ac_cv_header_time" 1>&6
1640 if test $ac_cv_header_time = yes; then
1641 cat >> confdefs.h
<<\EOF
1642 #define TIME_WITH_SYS_TIME 1
1647 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1648 echo "configure:1649: checking whether struct tm is in sys/time.h or time.h" >&5
1649 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1652 cat > conftest.
$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1655 #include <sys/types.h>
1658 struct tm *tp; tp->tm_sec;
1661 if { (eval echo configure
:1662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1663 ac_cv_struct_tm
=time.h
1665 echo "configure: failed program was:" >&5
1666 cat conftest.
$ac_ext >&5
1668 ac_cv_struct_tm
=sys
/time.h
1673 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1674 if test $ac_cv_struct_tm = sys
/time.h
; then
1675 cat >> confdefs.h
<<\EOF
1676 #define TM_IN_SYS_TIME 1
1682 echo $ac_n "checking for strftime""... $ac_c" 1>&6
1683 echo "configure:1684: checking for strftime" >&5
1684 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1687 cat > conftest.
$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1690 /* System header to define __stub macros and hopefully few prototypes,
1691 which can conflict with char strftime(); below. */
1693 /* Override any gcc2 internal prototype to avoid an error. */
1694 /* We use char because int might match the return type of a gcc2
1695 builtin and then its argument prototype would still apply. */
1700 /* The GNU C library defines this for functions which it implements
1701 to always fail with ENOSYS. Some functions are actually named
1702 something starting with __ and the normal name is an alias. */
1703 #if defined (__stub_strftime) || defined (__stub___strftime)
1711 if { (eval echo configure
:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1713 eval "ac_cv_func_strftime=yes"
1715 echo "configure: failed program was:" >&5
1716 cat conftest.
$ac_ext >&5
1718 eval "ac_cv_func_strftime=no"
1723 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
1724 echo "$ac_t""yes" 1>&6
1725 cat >> confdefs.h
<<\EOF
1726 #define HAVE_STRFTIME 1
1730 echo "$ac_t""no" 1>&6
1731 # strftime is in -lintl on SCO UNIX.
1732 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
1733 echo "configure:1734: checking for strftime in -lintl" >&5
1734 ac_lib_var
=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
1735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1738 ac_save_LIBS
="$LIBS"
1740 cat > conftest.
$ac_ext <<EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1743 /* Override any gcc2 internal prototype to avoid an error. */
1744 /* We use char because int might match the return type of a gcc2
1745 builtin and then its argument prototype would still apply. */
1752 if { (eval echo configure
:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1754 eval "ac_cv_lib_$ac_lib_var=yes"
1756 echo "configure: failed program was:" >&5
1757 cat conftest.
$ac_ext >&5
1759 eval "ac_cv_lib_$ac_lib_var=no"
1762 LIBS
="$ac_save_LIBS"
1765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1766 echo "$ac_t""yes" 1>&6
1767 cat >> confdefs.h
<<\EOF
1768 #define HAVE_STRFTIME 1
1773 echo "$ac_t""no" 1>&6
1778 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1779 echo "configure:1780: checking for vprintf" >&5
1780 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1783 cat > conftest.
$ac_ext <<EOF
1784 #line 1785 "configure"
1785 #include "confdefs.h"
1786 /* System header to define __stub macros and hopefully few prototypes,
1787 which can conflict with char vprintf(); below. */
1789 /* Override any gcc2 internal prototype to avoid an error. */
1790 /* We use char because int might match the return type of a gcc2
1791 builtin and then its argument prototype would still apply. */
1796 /* The GNU C library defines this for functions which it implements
1797 to always fail with ENOSYS. Some functions are actually named
1798 something starting with __ and the normal name is an alias. */
1799 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1807 if { (eval echo configure
:1808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1809 eval "ac_cv_func_vprintf=yes"
1811 echo "configure: failed program was:" >&5
1812 cat conftest.
$ac_ext >&5
1814 eval "ac_cv_func_vprintf=no"
1819 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1820 echo "$ac_t""yes" 1>&6
1821 cat >> confdefs.h
<<\EOF
1822 #define HAVE_VPRINTF 1
1826 echo "$ac_t""no" 1>&6
1829 if test "$ac_cv_func_vprintf" != yes; then
1830 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1831 echo "configure:1832: checking for _doprnt" >&5
1832 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1833 echo $ac_n "(cached) $ac_c" 1>&6
1835 cat > conftest.
$ac_ext <<EOF
1836 #line 1837 "configure"
1837 #include "confdefs.h"
1838 /* System header to define __stub macros and hopefully few prototypes,
1839 which can conflict with char _doprnt(); below. */
1841 /* Override any gcc2 internal prototype to avoid an error. */
1842 /* We use char because int might match the return type of a gcc2
1843 builtin and then its argument prototype would still apply. */
1848 /* The GNU C library defines this for functions which it implements
1849 to always fail with ENOSYS. Some functions are actually named
1850 something starting with __ and the normal name is an alias. */
1851 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1859 if { (eval echo configure
:1860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1861 eval "ac_cv_func__doprnt=yes"
1863 echo "configure: failed program was:" >&5
1864 cat conftest.
$ac_ext >&5
1866 eval "ac_cv_func__doprnt=no"
1871 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1872 echo "$ac_t""yes" 1>&6
1873 cat >> confdefs.h
<<\EOF
1874 #define HAVE_DOPRNT 1
1878 echo "$ac_t""no" 1>&6
1883 for ac_func
in gettimeofday
select socket strcspn strdup strerror strspn strtol
1885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1886 echo "configure:1887: checking for $ac_func" >&5
1887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1890 cat > conftest.
$ac_ext <<EOF
1891 #line 1892 "configure"
1892 #include "confdefs.h"
1893 /* System header to define __stub macros and hopefully few prototypes,
1894 which can conflict with char $ac_func(); below. */
1896 /* Override any gcc2 internal prototype to avoid an error. */
1897 /* We use char because int might match the return type of a gcc2
1898 builtin and then its argument prototype would still apply. */
1903 /* The GNU C library defines this for functions which it implements
1904 to always fail with ENOSYS. Some functions are actually named
1905 something starting with __ and the normal name is an alias. */
1906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1914 if { (eval echo configure
:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1916 eval "ac_cv_func_$ac_func=yes"
1918 echo "configure: failed program was:" >&5
1919 cat conftest.
$ac_ext >&5
1921 eval "ac_cv_func_$ac_func=no"
1926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1927 echo "$ac_t""yes" 1>&6
1928 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1929 cat >> confdefs.h
<<EOF
1930 #define $ac_tr_func 1
1934 echo "$ac_t""no" 1>&6
1939 # Check whether --with-ircd or --without-ircd was given.
1940 if test "${with_ircd+set}" = set; then
1941 withval
="$with_ircd"
1945 # Check whether --with-tableprefix or --without-tableprefix was given.
1946 if test "${with_tableprefix+set}" = set; then
1947 withval
="$with_tableprefix"
1951 # Check whether --with-hashlist or --without-hashlist was given.
1952 if test "${with_hashlist+set}" = set; then
1953 withval
="$with_hashlist"
1957 # Check whether --with-mysql or --without-mysql was given.
1958 if test "${with_mysql+set}" = set; then
1959 withval
="$with_mysql"
1963 # Check whether --with-mysql-includes or --without-mysql-includes was given.
1964 if test "${with_mysql_includes+set}" = set; then
1965 withval
="$with_mysql_includes"
1969 # Check whether --with-mysql-libraries or --without-mysql-libraries was given.
1970 if test "${with_mysql_libraries+set}" = set; then
1971 withval
="$with_mysql_libraries"
1975 # Check whether --enable-noreportusage or --disable-noreportusage was given.
1976 if test "${enable_noreportusage+set}" = set; then
1977 enableval
="$enable_noreportusage"
1985 if test "x$with_mysql_includes" != "x"; then
1986 ac_safe
=`echo "$with_mysql_includes/mysql.h" | sed 'y%./+-%__p_%'`
1987 echo $ac_n "checking for $with_mysql_includes/mysql.h""... $ac_c" 1>&6
1988 echo "configure:1989: checking for $with_mysql_includes/mysql.h" >&5
1989 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1992 cat > conftest.
$ac_ext <<EOF
1993 #line 1994 "configure"
1994 #include "confdefs.h"
1995 #include <$with_mysql_includes/mysql.h>
1997 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1998 { (eval echo configure
:1999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2000 if test -z "$ac_err"; then
2002 eval "ac_cv_header_$ac_safe=yes"
2005 echo "configure: failed program was:" >&5
2006 cat conftest.
$ac_ext >&5
2008 eval "ac_cv_header_$ac_safe=no"
2012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2013 echo "$ac_t""yes" 1>&6
2014 CFLAGS
="$CFLAGS -I$with_mysql_includes"
2016 echo "$ac_t""no" 1>&6
2017 { echo "configure: error: Need MySQL includes!" 1>&2; exit 1; }
2022 if test "x$with_mysql_libraries" != "x"; then
2023 echo $ac_n "checking for libmysqlclient in $with_mysql_libraries""... $ac_c" 1>&6
2024 echo "configure:2025: checking for libmysqlclient in $with_mysql_libraries" >&5
2025 ac_lib_var
=`echo $with_mysql_libraries'_'mysqlclient | sed 'y%./+-%__p_%'`
2026 if eval "test \"`echo '$''{'ac_cv_lib_loc_$ac_lib_var'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2029 ac_save_LIBS
="$LIBS"
2030 LIBS
="-L$with_mysql_libraries -lmysqlclient $LIBS"
2031 cat > conftest.
$ac_ext <<EOF
2032 #line 2033 "configure"
2033 #include "confdefs.h"
2034 /* We use char because int might match the return type of a gcc2
2035 builtin and then its argument prototype would still apply. */
2036 char mysql_real_connect();
2039 mysql_real_connect()
2042 if { (eval echo configure
:2043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2044 eval "ac_cv_lib_loc_$ac_lib_var=yes"
2046 echo "configure: failed program was:" >&5
2047 cat conftest.
$ac_ext >&5
2049 eval "ac_cv_lib_loc_$ac_lib_var=no"
2052 LIBS
="$ac_save_LIBS"
2055 if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
2056 echo "$ac_t""yes" 1>&6
2057 LIBS
="-L$with_mysql_libraries -lmysqlclient $LIBS"
2060 echo "$ac_t""no" 1>&6
2061 { echo "configure: error: Need MySQL client library!" 1>&2; exit 1; }
2066 if test "x$with_mysql" != "x"; then
2067 if test "x$with_mysql_libraries" = "x"; then
2068 echo $ac_n "checking for libmysqlclient in $with_mysql/lib/mysql""... $ac_c" 1>&6
2069 echo "configure:2070: checking for libmysqlclient in $with_mysql/lib/mysql" >&5
2070 ac_lib_var
=`echo $with_mysql/lib/mysql'_'mysqlclient | sed 'y%./+-%__p_%'`
2071 if eval "test \"`echo '$''{'ac_cv_lib_loc_$ac_lib_var'+set}'`\" = set"; then
2072 echo $ac_n "(cached) $ac_c" 1>&6
2074 ac_save_LIBS
="$LIBS"
2075 LIBS
="-L$with_mysql/lib/mysql -lmysqlclient $LIBS"
2076 cat > conftest.
$ac_ext <<EOF
2077 #line 2078 "configure"
2078 #include "confdefs.h"
2079 /* We use char because int might match the return type of a gcc2
2080 builtin and then its argument prototype would still apply. */
2081 char mysql_real_connect();
2084 mysql_real_connect()
2087 if { (eval echo configure
:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2089 eval "ac_cv_lib_loc_$ac_lib_var=yes"
2091 echo "configure: failed program was:" >&5
2092 cat conftest.
$ac_ext >&5
2094 eval "ac_cv_lib_loc_$ac_lib_var=no"
2097 LIBS
="$ac_save_LIBS"
2100 if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
2101 echo "$ac_t""yes" 1>&6
2102 LIBS
="-L$with_mysql/lib/mysql -lmysqlclient $LIBS"
2105 echo "$ac_t""no" 1>&6
2106 { echo "configure: error: Need MySQL client library!" 1>&2; exit 1; }
2110 if test "x$with_mysql_includes" = "x"; then
2111 ac_safe
=`echo "$with_mysql/include/mysql/mysql.h" | sed 'y%./+-%__p_%'`
2112 echo $ac_n "checking for $with_mysql/include/mysql/mysql.h""... $ac_c" 1>&6
2113 echo "configure:2114: checking for $with_mysql/include/mysql/mysql.h" >&5
2114 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2115 echo $ac_n "(cached) $ac_c" 1>&6
2117 cat > conftest.
$ac_ext <<EOF
2118 #line 2119 "configure"
2119 #include "confdefs.h"
2120 #include <$with_mysql/include/mysql/mysql.h>
2122 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2123 { (eval echo configure
:2124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2124 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2125 if test -z "$ac_err"; then
2127 eval "ac_cv_header_$ac_safe=yes"
2130 echo "configure: failed program was:" >&5
2131 cat conftest.
$ac_ext >&5
2133 eval "ac_cv_header_$ac_safe=no"
2137 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2138 echo "$ac_t""yes" 1>&6
2139 CFLAGS
="$CFLAGS -I$with_mysql/include/mysql"
2141 echo "$ac_t""no" 1>&6
2142 { echo "configure: error: Need MySQL includes!" 1>&2; exit 1; }
2147 if test "x$with_mysql_libraries" = "x"; then
2148 echo $ac_n "checking for libmysqlclient in /opt/lib/mysql""... $ac_c" 1>&6
2149 echo "configure:2150: checking for libmysqlclient in /opt/lib/mysql" >&5
2150 ac_lib_var
=`echo /opt/lib/mysql'_'mysqlclient | sed 'y%./+-%__p_%'`
2151 if eval "test \"`echo '$''{'ac_cv_lib_loc_$ac_lib_var'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2154 ac_save_LIBS
="$LIBS"
2155 LIBS
="-L/opt/lib/mysql -lmysqlclient $LIBS"
2156 cat > conftest.
$ac_ext <<EOF
2157 #line 2158 "configure"
2158 #include "confdefs.h"
2159 /* We use char because int might match the return type of a gcc2
2160 builtin and then its argument prototype would still apply. */
2161 char mysql_real_connect();
2164 mysql_real_connect()
2167 if { (eval echo configure
:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2169 eval "ac_cv_lib_loc_$ac_lib_var=yes"
2171 echo "configure: failed program was:" >&5
2172 cat conftest.
$ac_ext >&5
2174 eval "ac_cv_lib_loc_$ac_lib_var=no"
2177 LIBS
="$ac_save_LIBS"
2180 if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
2181 echo "$ac_t""yes" 1>&6
2182 LIBS
="-L/opt/lib/mysql -lmysqlclient $LIBS"
2185 echo "$ac_t""no" 1>&6
2186 echo $ac_n "checking for libmysqlclient in /usr/local/lib/mysql""... $ac_c" 1>&6
2187 echo "configure:2188: checking for libmysqlclient in /usr/local/lib/mysql" >&5
2188 ac_lib_var
=`echo /usr/local/lib/mysql'_'mysqlclient | sed 'y%./+-%__p_%'`
2189 if eval "test \"`echo '$''{'ac_cv_lib_loc_$ac_lib_var'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2192 ac_save_LIBS
="$LIBS"
2193 LIBS
="-L/usr/local/lib/mysql -lmysqlclient $LIBS"
2194 cat > conftest.
$ac_ext <<EOF
2195 #line 2196 "configure"
2196 #include "confdefs.h"
2197 /* We use char because int might match the return type of a gcc2
2198 builtin and then its argument prototype would still apply. */
2199 char mysql_real_connect();
2202 mysql_real_connect()
2205 if { (eval echo configure
:2206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2207 eval "ac_cv_lib_loc_$ac_lib_var=yes"
2209 echo "configure: failed program was:" >&5
2210 cat conftest.
$ac_ext >&5
2212 eval "ac_cv_lib_loc_$ac_lib_var=no"
2215 LIBS
="$ac_save_LIBS"
2218 if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
2219 echo "$ac_t""yes" 1>&6
2220 LIBS
="-L/usr/local/lib/mysql -lmysqlclient $LIBS"
2223 echo "$ac_t""no" 1>&6
2224 echo $ac_n "checking for libmysqlclient in /usr/lib/mysql""... $ac_c" 1>&6
2225 echo "configure:2226: checking for libmysqlclient in /usr/lib/mysql" >&5
2226 ac_lib_var
=`echo /usr/lib/mysql'_'mysqlclient | sed 'y%./+-%__p_%'`
2227 if eval "test \"`echo '$''{'ac_cv_lib_loc_$ac_lib_var'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2230 ac_save_LIBS
="$LIBS"
2231 LIBS
="-L/usr/lib/mysql -lmysqlclient $LIBS"
2232 cat > conftest.
$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2235 /* We use char because int might match the return type of a gcc2
2236 builtin and then its argument prototype would still apply. */
2237 char mysql_real_connect();
2240 mysql_real_connect()
2243 if { (eval echo configure
:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2245 eval "ac_cv_lib_loc_$ac_lib_var=yes"
2247 echo "configure: failed program was:" >&5
2248 cat conftest.
$ac_ext >&5
2250 eval "ac_cv_lib_loc_$ac_lib_var=no"
2253 LIBS
="$ac_save_LIBS"
2256 if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
2257 echo "$ac_t""yes" 1>&6
2258 LIBS
="-L/usr/lib/mysql -lmysqlclient $LIBS"
2261 echo "$ac_t""no" 1>&6
2262 echo $ac_n "checking for libmysqlclient in /usr/local/lib""... $ac_c" 1>&6
2263 echo "configure:2264: checking for libmysqlclient in /usr/local/lib" >&5
2264 ac_lib_var
=`echo /usr/local/lib'_'mysqlclient | sed 'y%./+-%__p_%'`
2265 if eval "test \"`echo '$''{'ac_cv_lib_loc_$ac_lib_var'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 ac_save_LIBS
="$LIBS"
2269 LIBS
="-L/usr/local/lib -lmysqlclient $LIBS"
2270 cat > conftest.
$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2273 /* We use char because int might match the return type of a gcc2
2274 builtin and then its argument prototype would still apply. */
2275 char mysql_real_connect();
2278 mysql_real_connect()
2281 if { (eval echo configure
:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2283 eval "ac_cv_lib_loc_$ac_lib_var=yes"
2285 echo "configure: failed program was:" >&5
2286 cat conftest.
$ac_ext >&5
2288 eval "ac_cv_lib_loc_$ac_lib_var=no"
2291 LIBS
="$ac_save_LIBS"
2294 if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
2295 echo "$ac_t""yes" 1>&6
2296 LIBS
="-L/usr/local/lib -lmysqlclient $LIBS"
2299 echo "$ac_t""no" 1>&6
2300 echo $ac_n "checking for libmysqlclient in /opt/lib""... $ac_c" 1>&6
2301 echo "configure:2302: checking for libmysqlclient in /opt/lib" >&5
2302 ac_lib_var
=`echo /opt/lib'_'mysqlclient | sed 'y%./+-%__p_%'`
2303 if eval "test \"`echo '$''{'ac_cv_lib_loc_$ac_lib_var'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 ac_save_LIBS
="$LIBS"
2307 LIBS
="-L/opt/lib -lmysqlclient $LIBS"
2308 cat > conftest.
$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2311 /* We use char because int might match the return type of a gcc2
2312 builtin and then its argument prototype would still apply. */
2313 char mysql_real_connect();
2316 mysql_real_connect()
2319 if { (eval echo configure
:2320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2321 eval "ac_cv_lib_loc_$ac_lib_var=yes"
2323 echo "configure: failed program was:" >&5
2324 cat conftest.
$ac_ext >&5
2326 eval "ac_cv_lib_loc_$ac_lib_var=no"
2329 LIBS
="$ac_save_LIBS"
2332 if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
2333 echo "$ac_t""yes" 1>&6
2334 LIBS
="-L/opt/lib -lmysqlclient $LIBS"
2337 echo "$ac_t""no" 1>&6
2338 echo $ac_n "checking for libmysqlclient in /usr/lib""... $ac_c" 1>&6
2339 echo "configure:2340: checking for libmysqlclient in /usr/lib" >&5
2340 ac_lib_var
=`echo /usr/lib'_'mysqlclient | sed 'y%./+-%__p_%'`
2341 if eval "test \"`echo '$''{'ac_cv_lib_loc_$ac_lib_var'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 ac_save_LIBS
="$LIBS"
2345 LIBS
="-L/usr/lib -lmysqlclient $LIBS"
2346 cat > conftest.
$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2349 /* We use char because int might match the return type of a gcc2
2350 builtin and then its argument prototype would still apply. */
2351 char mysql_real_connect();
2354 mysql_real_connect()
2357 if { (eval echo configure
:2358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2359 eval "ac_cv_lib_loc_$ac_lib_var=yes"
2361 echo "configure: failed program was:" >&5
2362 cat conftest.
$ac_ext >&5
2364 eval "ac_cv_lib_loc_$ac_lib_var=no"
2367 LIBS
="$ac_save_LIBS"
2370 if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
2371 echo "$ac_t""yes" 1>&6
2372 LIBS
="-L/usr/lib -lmysqlclient $LIBS"
2375 echo "$ac_t""no" 1>&6
2376 { echo "configure: error: Need MySQL client library!" 1>&2; exit 1; }
2390 if test "x$with_mysql_includes" = "x"; then
2391 ac_safe
=`echo "/opt/include/mysql/mysql.h" | sed 'y%./+-%__p_%'`
2392 echo $ac_n "checking for /opt/include/mysql/mysql.h""... $ac_c" 1>&6
2393 echo "configure:2394: checking for /opt/include/mysql/mysql.h" >&5
2394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2397 cat > conftest.
$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2400 #include </opt/include/mysql/mysql.h>
2402 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2403 { (eval echo configure
:2404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2404 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2405 if test -z "$ac_err"; then
2407 eval "ac_cv_header_$ac_safe=yes"
2410 echo "configure: failed program was:" >&5
2411 cat conftest.
$ac_ext >&5
2413 eval "ac_cv_header_$ac_safe=no"
2417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2418 echo "$ac_t""yes" 1>&6
2419 CFLAGS
="$CFLAGS -I/opt/include/mysql"
2421 echo "$ac_t""no" 1>&6
2422 ac_safe
=`echo "/usr/local/include/mysql/mysql.h" | sed 'y%./+-%__p_%'`
2423 echo $ac_n "checking for /usr/local/include/mysql/mysql.h""... $ac_c" 1>&6
2424 echo "configure:2425: checking for /usr/local/include/mysql/mysql.h" >&5
2425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2428 cat > conftest.
$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2431 #include </usr/local/include/mysql/mysql.h>
2433 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2434 { (eval echo configure
:2435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2435 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2436 if test -z "$ac_err"; then
2438 eval "ac_cv_header_$ac_safe=yes"
2441 echo "configure: failed program was:" >&5
2442 cat conftest.
$ac_ext >&5
2444 eval "ac_cv_header_$ac_safe=no"
2448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 CFLAGS
="$CFLAGS -I/usr/local/include/mysql"
2452 echo "$ac_t""no" 1>&6
2453 ac_safe
=`echo "/usr/include/mysql/mysql.h" | sed 'y%./+-%__p_%'`
2454 echo $ac_n "checking for /usr/include/mysql/mysql.h""... $ac_c" 1>&6
2455 echo "configure:2456: checking for /usr/include/mysql/mysql.h" >&5
2456 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2459 cat > conftest.
$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2462 #include </usr/include/mysql/mysql.h>
2464 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2465 { (eval echo configure
:2466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2466 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2467 if test -z "$ac_err"; then
2469 eval "ac_cv_header_$ac_safe=yes"
2472 echo "configure: failed program was:" >&5
2473 cat conftest.
$ac_ext >&5
2475 eval "ac_cv_header_$ac_safe=no"
2479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2480 echo "$ac_t""yes" 1>&6
2481 CFLAGS
="$CFLAGS -I/usr/include/mysql"
2483 echo "$ac_t""no" 1>&6
2484 { echo "configure: error: Need MySQL includes!" 1>&2; exit 1; }
2493 CFLAGS
="$CFLAGS -Wall"
2495 # Check whether --enable-static or --disable-static was given.
2496 if test "${enable_static+set}" = set; then
2497 enableval
="$enable_static"
2498 LDFLAGS
="$LDFLAGS -static"
2504 if test "x$with_tableprefix" != "x"; then
2505 cat >> confdefs.h
<<EOF
2506 #define TBL_PREFIX "$with_tableprefix"
2514 if test "x$with_hashlist" != "x"; then
2515 case $with_hashlist in
2517 echo "Hashlist support disabled : Thales will run slower."
2522 if test $ok -eq 0; then
2523 cat >> confdefs.h
<<EOF
2524 #define HASHLISTSUPPORT 1
2531 if test "x$with_ircd" != "x"; then
2533 [Bb
][Aa
][Hh
][Aa
][Mm
][Uu
][Tt
])
2534 cat >> confdefs.h
<<EOF
2535 #define IRCD_BAHAMUT 1
2538 echo "Using Bahamut IRCD"
2541 [Hh
][Yy
][Bb
][Rr
][Ii
][Dd
])
2542 cat >> confdefs.h
<<EOF
2543 #define IRCD_HYBRID 1
2546 echo "Using Hybrid IRCD"
2549 [Ii
][Rr
][Cc
][Dd
][Rr
][Uu
])
2550 cat >> confdefs.h
<<EOF
2551 #define IRCD_IRCDRU 1
2554 echo "Using IRCD-RU IRCD"
2557 [Uu
][Nn
][Rr
][Ee
][Aa
][Ll
])
2558 cat >> confdefs.h
<<EOF
2559 #define IRCD_UNREAL 1
2562 echo "Using Unreal IRCD"
2565 [Uu
][Ll
][Tt
][Ii
][Mm
][Aa
][Tt
][Ee
]28)
2566 cat >> confdefs.h
<<EOF
2567 #define IRCD_ULTI28 1
2570 echo "Using Ultimate IRCD 2.8"
2573 [Uu
][Ll
][Tt
][Ii
][Mm
][Aa
][Tt
][Ee
]30)
2574 cat >> confdefs.h
<<EOF
2575 #define IRCD_ULTIMATE 1
2578 echo "Using Ultimate IRCD 3.0"
2582 echo "IRCD type unrecognized"
2586 if test $ok -eq 0; then
2588 echo "---------------------------------------------------------------"
2590 echo "Which of the following is closest to the type of server used on"
2591 echo "your IRC network ?"
2592 echo " 1) Bahamut 1.4.27 or later"
2593 echo " 2) Hybrid 7 or later"
2594 echo " 3) ircd-RU! 1.4.0 or later"
2595 echo " 4) UnrealIRCd 3.1.1 or later"
2596 echo " 5) UltimateIRCD 2.8 or later (2.8 branch)"
2597 echo " 6) UltimateIRCD 3.0.0 or later"
2598 while `test $ok -eq 0` ; do
2603 cat >> confdefs.h
<<EOF
2604 #define IRCD_BAHAMUT 1
2610 cat >> confdefs.h
<<EOF
2611 #define IRCD_HYBRID 1
2617 cat >> confdefs.h
<<EOF
2618 #define IRCD_IRCDRU 1
2624 cat >> confdefs.h
<<EOF
2625 #define IRCD_UNREAL 1
2631 cat >> confdefs.h
<<EOF
2632 #define IRCD_ULTI28 1
2638 cat >> confdefs.h
<<EOF
2639 #define IRCD_ULTIMATE 1
2645 echo "Please enter a valid option number."
2651 # Check whether --enable-no-modes or --disable-no-modes was given.
2652 if test "${enable_no_modes+set}" = set; then
2653 enableval
="$enable_no_modes"
2654 cat >> confdefs.h
<<EOF
2662 cat > confcache
<<\EOF
2663 # This file is a shell script that caches the results of configure
2664 # tests run on this system so they can be shared between configure
2665 # scripts and configure runs. It is not useful on other systems.
2666 # If it contains results you don't want to keep, you may remove or edit it.
2668 # By default, configure uses ./config.cache as the cache file,
2669 # creating it if it does not exist already. You can give configure
2670 # the --cache-file=FILE option to use a different cache file; that is
2671 # what configure does when it calls configure scripts in
2672 # subdirectories, so they share the cache.
2673 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2674 # config.status only pays attention to the cache file if you give it the
2675 # --recheck option to rerun configure.
2678 # The following way of writing the cache mishandles newlines in values,
2679 # but we know of no workaround that is simple, portable, and efficient.
2680 # So, don't put newlines in cache variables' values.
2681 # Ultrix sh set writes to stderr and can't be redirected directly,
2682 # and sets the high bit in the cache file unless we assign to the vars.
2684 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2686 # `set' does not quote correctly, so add quotes (double-quote substitution
2687 # turns \\\\ into \\, and sed turns \\ into \).
2689 -e "s/'/'\\\\''/g" \
2690 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2693 # `set' quotes correctly as required by POSIX, so do not add quotes.
2694 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2697 if cmp -s $cache_file confcache
; then
2700 if test -w $cache_file; then
2701 echo "updating cache $cache_file"
2702 cat confcache
> $cache_file
2704 echo "not updating unwritable cache $cache_file"
2709 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2711 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2712 # Let make expand exec_prefix.
2713 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2715 # Any assignment to VPATH causes Sun make to only execute
2716 # the first set of double-colon rules, so remove it if not needed.
2717 # If there is a colon in the path, we need to keep it.
2718 if test "x$srcdir" = x.
; then
2719 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2722 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2724 DEFS
=-DHAVE_CONFIG_H
2726 # Without the "./", some shells look in PATH for config.status.
2727 : ${CONFIG_STATUS=./config.status}
2729 echo creating
$CONFIG_STATUS
2730 rm -f $CONFIG_STATUS
2731 cat > $CONFIG_STATUS <<EOF
2733 # Generated automatically by configure.
2734 # Run this file to recreate the current configuration.
2735 # This directory was configured as follows,
2736 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2738 # $0 $ac_configure_args
2740 # Compiler output produced by configure, useful for debugging
2741 # configure, is in ./config.log if it exists.
2743 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2746 case "\$ac_option" in
2747 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2748 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2749 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2750 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2751 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2753 -help | --help | --hel | --he | --h)
2754 echo "\$ac_cs_usage"; exit 0 ;;
2755 *) echo "\$ac_cs_usage"; exit 1 ;;
2759 ac_given_srcdir=$srcdir
2760 ac_given_INSTALL="$INSTALL"
2762 trap 'rm -fr `echo "src/Makefile data/Makefile Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2764 cat >> $CONFIG_STATUS <<EOF
2766 # Protect against being on the right side of a sed subst in config.status.
2767 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2768 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2772 s%@CFLAGS@%$CFLAGS%g
2773 s%@CPPFLAGS@%$CPPFLAGS%g
2774 s%@CXXFLAGS@%$CXXFLAGS%g
2775 s%@FFLAGS@%$FFLAGS%g
2777 s%@LDFLAGS@%$LDFLAGS%g
2779 s%@exec_prefix@%$exec_prefix%g
2780 s%@prefix@%$prefix%g
2781 s%@program_transform_name@%$program_transform_name%g
2782 s%@bindir@%$bindir%g
2783 s%@sbindir@%$sbindir%g
2784 s%@libexecdir@%$libexecdir%g
2785 s%@datadir@%$datadir%g
2786 s%@sysconfdir@%$sysconfdir%g
2787 s%@sharedstatedir@%$sharedstatedir%g
2788 s%@localstatedir@%$localstatedir%g
2789 s%@libdir@%$libdir%g
2790 s%@includedir@%$includedir%g
2791 s%@oldincludedir@%$oldincludedir%g
2792 s%@infodir@%$infodir%g
2793 s%@mandir@%$mandir%g
2794 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2795 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2796 s%@INSTALL_DATA@%$INSTALL_DATA%g
2797 s%@PACKAGE@%$PACKAGE%g
2798 s%@VERSION@%$VERSION%g
2799 s%@ACLOCAL@%$ACLOCAL%g
2800 s%@AUTOCONF@%$AUTOCONF%g
2801 s%@AUTOMAKE@%$AUTOMAKE%g
2802 s%@AUTOHEADER@%$AUTOHEADER%g
2803 s%@MAKEINFO@%$MAKEINFO%g
2804 s%@SET_MAKE@%$SET_MAKE%g
2813 cat >> $CONFIG_STATUS <<\EOF
2815 # Split the substitutions into bite-sized pieces for seds with
2816 # small command number limits, like on Digital OSF/1 and HP-UX.
2817 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2818 ac_file
=1 # Number of current file.
2819 ac_beg
=1 # First line for current file.
2820 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2823 while $ac_more_lines; do
2824 if test $ac_beg -gt 1; then
2825 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2827 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2829 if test ! -s conftest.s
$ac_file; then
2831 rm -f conftest.s
$ac_file
2833 if test -z "$ac_sed_cmds"; then
2834 ac_sed_cmds
="sed -f conftest.s$ac_file"
2836 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2838 ac_file
=`expr $ac_file + 1`
2840 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2843 if test -z "$ac_sed_cmds"; then
2848 cat >> $CONFIG_STATUS <<EOF
2850 CONFIG_FILES=\${CONFIG_FILES-"src/Makefile data/Makefile Makefile"}
2852 cat >> $CONFIG_STATUS <<\EOF
2853 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2854 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2856 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2857 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2858 *) ac_file_in
="${ac_file}.in" ;;
2861 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2863 # Remove last slash and all that follows it. Not all systems have dirname.
2864 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2865 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2866 # The file is in a subdirectory.
2867 test ! -d "$ac_dir" && mkdir "$ac_dir"
2868 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2869 # A "../" for each directory in $ac_dir_suffix.
2870 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2872 ac_dir_suffix
= ac_dots
=
2875 case "$ac_given_srcdir" in
2877 if test -z "$ac_dots"; then top_srcdir
=.
2878 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2879 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2881 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2882 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2885 case "$ac_given_INSTALL" in
2886 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2887 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2890 echo creating
"$ac_file"
2892 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2894 *Makefile
*) ac_comsub
="1i\\
2895 # $configure_input" ;;
2899 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2901 s%@configure_input@%$configure_input%g
2902 s%@srcdir@%$srcdir%g
2903 s%@top_srcdir@%$top_srcdir%g
2904 s%@INSTALL@%$INSTALL%g
2905 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2909 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2910 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2912 # ac_d sets the value in "#define NAME VALUE" lines.
2913 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2914 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2917 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2918 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2919 ac_uB
='\([ ]\)%\1#\2define\3'
2922 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2923 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2924 ac_eB
='$%\1#\2define\3'
2928 if test "${CONFIG_HEADERS+set}" != set; then
2930 cat >> $CONFIG_STATUS <<EOF
2931 CONFIG_HEADERS="src/config.h"
2933 cat >> $CONFIG_STATUS <<\EOF
2935 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2936 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2938 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2939 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2940 *) ac_file_in
="${ac_file}.in" ;;
2943 echo creating
$ac_file
2945 rm -f conftest.frag conftest.
in conftest.out
2946 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2947 cat $ac_file_inputs > conftest.
in
2951 # Transform confdefs.h into a sed script conftest.vals that substitutes
2952 # the proper values into config.h.in to produce config.h. And first:
2953 # Protect against being on the right side of a sed subst in config.status.
2954 # Protect against being in an unquoted here document in config.status.
2956 cat > conftest.hdr
<<\EOF
2959 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2963 sed -n -f conftest.hdr confdefs.h > conftest.vals
2966 # This sed command replaces #undef with comments. This is necessary, for
2967 # example, in the case of _POSIX_SOURCE, which is predefined and required
2968 # on some systems where configure will not decide to define it.
2969 cat >> conftest.vals <<\EOF
2970 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2973 # Break up conftest.vals because some shells have a limit on
2974 # the size of here documents, and old seds have small limits too.
2979 ac_lines=`grep -c . conftest.vals
`
2980 # grep -c gives empty output for an empty file on some AIX systems.
2981 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2982 # Write a limited-size here document to conftest.frag.
2983 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2984 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2986 sed -f conftest.frag conftest.in > conftest.out
2988 mv conftest.out conftest.in
2990 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2992 mv conftest.tail conftest.vals
2996 cat >> $CONFIG_STATUS <<\EOF
2997 rm -f conftest.frag conftest.h
2998 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2999 cat conftest.in >> conftest.h
3001 if cmp -s $ac_file conftest.h 2>/dev/null; then
3002 echo "$ac_file is unchanged"
3005 # Remove last slash and all that follows it. Not all systems have dirname.
3006 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3007 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3008 # The file is in a subdirectory.
3009 test ! -d "$ac_dir" && mkdir "$ac_dir"
3012 mv conftest.h $ac_file
3017 cat >> $CONFIG_STATUS <<EOF
3021 cat >> $CONFIG_STATUS <<\EOF
3022 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
3026 chmod +x $CONFIG_STATUS
3027 rm -fr confdefs* $ac_clean_files
3028 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3031 if test $REPORT -eq 1; then
3035 echo "Thales will be installed in ${prefix}. To change this, run :"
3036 echo " ./configure --prefix=DIRECTORY"
3037 echo "To compile Thales, run make (or gmake on non-GNU systems)"
3038 echo "To install Thales, run make install (or gmake install on non-GNU systems)"
3040 echo "Don't forget to read the README and INSTALL files for more detailed instructions"