]> jfr.im git - irc/thales.git/blob - configure
*** empty log message ***
[irc/thales.git] / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=\${HOME}/thales
15 ac_help="$ac_help
16 --with-ircd=ircdtype type of the ircd used with thales (bahamut, hybrid, ircdru, unreal, ultimate28 or ultimate30)"
17 ac_help="$ac_help
18 --tableprefix=string prefix to add to all SQL tables names. database creation scripts need to be modified accordingly.)"
19 ac_help="$ac_help
20 --with-hashlist=YES/NO Use an internal hashlist to store some data ? (that makes Thales run faster)"
21 ac_help="$ac_help
22 --with-mysql=PFX Prefix where MySQL is installed (usually /usr/local)"
23 ac_help="$ac_help
24 --with-mysql-includes=PFX Prefix where MySQL includes are found (usually
25 /usr/local/include/mysql)"
26 ac_help="$ac_help
27 --with-mysql-libraries=PFX Prefix where MySQL libraries are found (usually
28 /usr/local/lib/mysql)"
29 ac_help="$ac_help
30 --enable-noreportusage Forget about the Usage Survey"
31 ac_help="$ac_help
32 --enable-static links statically"
33 ac_help="$ac_help
34 --enable-no-modes Disables modes in the database (modes are enabled by default)"
35
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
39 build=NONE
40 cache_file=./config.cache
41 exec_prefix=NONE
42 host=NONE
43 no_create=
44 nonopt=NONE
45 no_recursion=
46 prefix=NONE
47 program_prefix=NONE
48 program_suffix=NONE
49 program_transform_name=s,x,x,
50 silent=
51 site=
52 srcdir=
53 target=NONE
54 verbose=
55 x_includes=NONE
56 x_libraries=NONE
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'
69
70 # Initialize some other variables.
71 subdirs=
72 MFLAGS= MAKEFLAGS=
73 SHELL=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
75 ac_max_here_lines=12
76
77 ac_prev=
78 for ac_option
79 do
80
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
84 ac_prev=
85 continue
86 fi
87
88 case "$ac_option" in
89 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 *) ac_optarg= ;;
91 esac
92
93 # Accept the important Cygnus configure options, so we can diagnose typos.
94
95 case "$ac_option" in
96
97 -bindir | --bindir | --bindi | --bind | --bin | --bi)
98 ac_prev=bindir ;;
99 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100 bindir="$ac_optarg" ;;
101
102 -build | --build | --buil | --bui | --bu)
103 ac_prev=build ;;
104 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105 build="$ac_optarg" ;;
106
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" ;;
113
114 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115 ac_prev=datadir ;;
116 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117 | --da=*)
118 datadir="$ac_optarg" ;;
119
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; }
125 fi
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
128
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; }
134 fi
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 case "$ac_option" in
137 *=*) ;;
138 *) ac_optarg=yes ;;
139 esac
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
141
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" ;;
150
151 -gas | --gas | --ga | --g)
152 # Obsolete; use --with-gas.
153 with_gas=yes ;;
154
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.
158 cat << EOF
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
161 Configuration:
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
169 [$ac_default_prefix]
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 [same as prefix]
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
176 [PREFIX/share]
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 [PREFIX/com]
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
191 EOF
192 cat << EOF
193 Host type:
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
204 EOF
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
207 fi
208 exit 0 ;;
209
210 -host | --host | --hos | --ho)
211 ac_prev=host ;;
212 -host=* | --host=* | --hos=* | --ho=*)
213 host="$ac_optarg" ;;
214
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" ;;
221
222 -infodir | --infodir | --infodi | --infod | --info | --inf)
223 ac_prev=infodir ;;
224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225 infodir="$ac_optarg" ;;
226
227 -libdir | --libdir | --libdi | --libd)
228 ac_prev=libdir ;;
229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
230 libdir="$ac_optarg" ;;
231
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" ;;
238
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" ;;
247
248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249 ac_prev=mandir ;;
250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251 mandir="$ac_optarg" ;;
252
253 -nfp | --nfp | --nf)
254 # Obsolete; use --without-fp.
255 with_fp=no ;;
256
257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258 | --no-cr | --no-c)
259 no_create=yes ;;
260
261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263 no_recursion=yes ;;
264
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" ;;
273
274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275 ac_prev=prefix ;;
276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277 prefix="$ac_optarg" ;;
278
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" ;;
285
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" ;;
292
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" ;;
309
310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311 | -silent | --silent | --silen | --sile | --sil)
312 silent=yes ;;
313
314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315 ac_prev=sbindir ;;
316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317 | --sbi=* | --sb=*)
318 sbindir="$ac_optarg" ;;
319
320 -sharedstatedir | --sharedstatedir | --sharedstatedi \
321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322 | --sharedst | --shareds | --shared | --share | --shar \
323 | --sha | --sh)
324 ac_prev=sharedstatedir ;;
325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328 | --sha=* | --sh=*)
329 sharedstatedir="$ac_optarg" ;;
330
331 -site | --site | --sit)
332 ac_prev=site ;;
333 -site=* | --site=* | --sit=*)
334 site="$ac_optarg" ;;
335
336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337 ac_prev=srcdir ;;
338 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339 srcdir="$ac_optarg" ;;
340
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" ;;
347
348 -target | --target | --targe | --targ | --tar | --ta | --t)
349 ac_prev=target ;;
350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351 target="$ac_optarg" ;;
352
353 -v | -verbose | --verbose | --verbos | --verbo | --verb)
354 verbose=yes ;;
355
356 -version | --version | --versio | --versi | --vers)
357 echo "configure generated by autoconf version 2.13"
358 exit 0 ;;
359
360 -with-* | --with-*)
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; }
365 fi
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 case "$ac_option" in
368 *=*) ;;
369 *) ac_optarg=yes ;;
370 esac
371 eval "with_${ac_package}='$ac_optarg'" ;;
372
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; }
378 fi
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
381
382 --x)
383 # Obsolete; use --with-x.
384 with_x=yes ;;
385
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" ;;
392
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" ;;
399
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401 ;;
402
403 *)
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
406 fi
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; }
409 fi
410 nonopt="$ac_option"
411 ;;
412
413 esac
414 done
415
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418 fi
419
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421
422 # File descriptor usage:
423 # 0 standard input
424 # 1 file creation
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
431 exec 6>/dev/null
432 else
433 exec 6>&1
434 fi
435 exec 5>./config.log
436
437 echo "\
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
440 " 1>&5
441
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
444 ac_configure_args=
445 for ac_arg
446 do
447 case "$ac_arg" in
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" ;;
455 esac
456 done
457
458 # NLS nuisances.
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
467
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.
471 echo > confdefs.h
472
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
476
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.
481 ac_prog=$0
482 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484 srcdir=$ac_confdir
485 if test ! -r $srcdir/$ac_unique_file; then
486 srcdir=..
487 fi
488 else
489 ac_srcdir_defaulted=no
490 fi
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; }
494 else
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 fi
497 fi
498 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499
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"
504 else
505 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 fi
507 fi
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"
511 . "$ac_site_file"
512 fi
513 done
514
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
517 . $cache_file
518 else
519 echo "creating cache $cache_file"
520 > $cache_file
521 fi
522
523 ac_ext=c
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
529
530 ac_exeext=
531 ac_objext=o
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
535 ac_n= ac_c='
536 ' ac_t=' '
537 else
538 ac_n=-n ac_c= ac_t=
539 fi
540 else
541 ac_n= ac_c='\c' ac_t=
542 fi
543
544
545
546
547
548 ac_aux_dir=
549 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
550 if test -f $ac_dir/install-sh; then
551 ac_aux_dir=$ac_dir
552 ac_install_sh="$ac_aux_dir/install-sh -c"
553 break
554 elif test -f $ac_dir/install.sh; then
555 ac_aux_dir=$ac_dir
556 ac_install_sh="$ac_aux_dir/install.sh -c"
557 break
558 fi
559 done
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; }
562 fi
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.
566
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
573 # IRIX /sbin/install
574 # AIX /bin/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
584 else
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.
588 case "$ac_dir/" in
589 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
590 *)
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
593 # by default.
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.
599 :
600 else
601 ac_cv_path_install="$ac_dir/$ac_prog -c"
602 break 2
603 fi
604 fi
605 done
606 ;;
607 esac
608 done
609 IFS="$ac_save_IFS"
610
611 fi
612 if test "${ac_cv_path_install+set}" = set; then
613 INSTALL="$ac_cv_path_install"
614 else
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"
620 fi
621 fi
622 echo "$ac_t""$INSTALL" 1>&6
623
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}'
627
628 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
629
630 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
631
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
634 # Just in case
635 sleep 1
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
641 # directory).
642 if (
643 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
644 if test "$*" = "X"; then
645 # -L didn't work.
646 set X `ls -t $srcdir/configure conftestfile`
647 fi
648 if test "$*" != "X $srcdir/configure conftestfile" \
649 && test "$*" != "X conftestfile $srcdir/configure"; then
650
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; }
657 fi
658
659 test "$2" = conftestfile
660 )
661 then
662 # Ok.
663 :
664 else
665 { echo "configure: error: newly created file is older than distributed files!
666 Check your system clock" 1>&2; exit 1; }
667 fi
668 rm -f conftest*
669 echo "$ac_t""yes" 1>&6
670 if test "$program_transform_name" = s,x,x,; then
671 program_transform_name=
672 else
673 # Double any \ or $. echo might interpret backslashes.
674 cat <<\EOF_SED > conftestsed
675 s,\\,\\\\,g; s,\$,$$,g
676 EOF_SED
677 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
678 rm -f conftestsed
679 fi
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"
685
686 # sed with no file args requires a program.
687 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
688
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
694 else
695 cat > conftestmake <<\EOF
696 all:
697 @echo 'ac_maketemp="${MAKE}"'
698 EOF
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
703 else
704 eval ac_cv_prog_make_${ac_make}_set=no
705 fi
706 rm -f conftestmake
707 fi
708 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
709 echo "$ac_t""yes" 1>&6
710 SET_MAKE=
711 else
712 echo "$ac_t""no" 1>&6
713 SET_MAKE="MAKE=${MAKE-make}"
714 fi
715
716
717 PACKAGE=thales
718
719 VERSION=1.0
720
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; }
723 fi
724 cat >> confdefs.h <<EOF
725 #define PACKAGE "$PACKAGE"
726 EOF
727
728 cat >> confdefs.h <<EOF
729 #define VERSION "$VERSION"
730 EOF
731
732
733
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
743 else
744 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
745 echo "$ac_t""missing" 1>&6
746 fi
747
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
754 AUTOCONF=autoconf
755 echo "$ac_t""found" 1>&6
756 else
757 AUTOCONF="$missing_dir/missing autoconf"
758 echo "$ac_t""missing" 1>&6
759 fi
760
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
769 else
770 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
771 echo "$ac_t""missing" 1>&6
772 fi
773
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
782 else
783 AUTOHEADER="$missing_dir/missing autoheader"
784 echo "$ac_t""missing" 1>&6
785 fi
786
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
793 MAKEINFO=makeinfo
794 echo "$ac_t""found" 1>&6
795 else
796 MAKEINFO="$missing_dir/missing makeinfo"
797 echo "$ac_t""missing" 1>&6
798 fi
799
800
801
802 for ac_prog in mawk gawk nawk awk
803 do
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
810 else
811 if test -n "$AWK"; then
812 ac_cv_prog_AWK="$AWK" # Let the user override the test.
813 else
814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
815 ac_dummy="$PATH"
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"
820 break
821 fi
822 done
823 IFS="$ac_save_ifs"
824 fi
825 fi
826 AWK="$ac_cv_prog_AWK"
827 if test -n "$AWK"; then
828 echo "$ac_t""$AWK" 1>&6
829 else
830 echo "$ac_t""no" 1>&6
831 fi
832
833 test -n "$AWK" && break
834 done
835
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
842 else
843 if test -n "$CC"; then
844 ac_cv_prog_CC="$CC" # Let the user override the test.
845 else
846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
847 ac_dummy="$PATH"
848 for ac_dir in $ac_dummy; do
849 test -z "$ac_dir" && ac_dir=.
850 if test -f $ac_dir/$ac_word; then
851 ac_cv_prog_CC="gcc"
852 break
853 fi
854 done
855 IFS="$ac_save_ifs"
856 fi
857 fi
858 CC="$ac_cv_prog_CC"
859 if test -n "$CC"; then
860 echo "$ac_t""$CC" 1>&6
861 else
862 echo "$ac_t""no" 1>&6
863 fi
864
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
872 else
873 if test -n "$CC"; then
874 ac_cv_prog_CC="$CC" # Let the user override the test.
875 else
876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
877 ac_prog_rejected=no
878 ac_dummy="$PATH"
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
883 ac_prog_rejected=yes
884 continue
885 fi
886 ac_cv_prog_CC="cc"
887 break
888 fi
889 done
890 IFS="$ac_save_ifs"
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
894 shift
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.
899 shift
900 set dummy "$ac_dir/$ac_word" "$@"
901 shift
902 ac_cv_prog_CC="$@"
903 fi
904 fi
905 fi
906 fi
907 CC="$ac_cv_prog_CC"
908 if test -n "$CC"; then
909 echo "$ac_t""$CC" 1>&6
910 else
911 echo "$ac_t""no" 1>&6
912 fi
913
914 if test -z "$CC"; then
915 case "`uname -s`" in
916 *win32* | *WIN32*)
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
923 else
924 if test -n "$CC"; then
925 ac_cv_prog_CC="$CC" # Let the user override the test.
926 else
927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
928 ac_dummy="$PATH"
929 for ac_dir in $ac_dummy; do
930 test -z "$ac_dir" && ac_dir=.
931 if test -f $ac_dir/$ac_word; then
932 ac_cv_prog_CC="cl"
933 break
934 fi
935 done
936 IFS="$ac_save_ifs"
937 fi
938 fi
939 CC="$ac_cv_prog_CC"
940 if test -n "$CC"; then
941 echo "$ac_t""$CC" 1>&6
942 else
943 echo "$ac_t""no" 1>&6
944 fi
945 ;;
946 esac
947 fi
948 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
949 fi
950
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
953
954 ac_ext=c
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
960
961 cat > conftest.$ac_ext << EOF
962
963 #line 964 "configure"
964 #include "confdefs.h"
965
966 main(){return(0);}
967 EOF
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
973 else
974 ac_cv_prog_cc_cross=yes
975 fi
976 else
977 echo "configure: failed program was:" >&5
978 cat conftest.$ac_ext >&5
979 ac_cv_prog_cc_works=no
980 fi
981 rm -fr conftest*
982 ac_ext=c
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
988
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; }
992 fi
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
997
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
1002 else
1003 cat > conftest.c <<EOF
1004 #ifdef __GNUC__
1005 yes;
1006 #endif
1007 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
1009 ac_cv_prog_gcc=yes
1010 else
1011 ac_cv_prog_gcc=no
1012 fi
1013 fi
1014
1015 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1016
1017 if test $ac_cv_prog_gcc = yes; then
1018 GCC=yes
1019 else
1020 GCC=
1021 fi
1022
1023 ac_test_CFLAGS="${CFLAGS+set}"
1024 ac_save_CFLAGS="$CFLAGS"
1025 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
1030 else
1031 echo 'void f(){}' > conftest.c
1032 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1033 ac_cv_prog_cc_g=yes
1034 else
1035 ac_cv_prog_cc_g=no
1036 fi
1037 rm -f conftest*
1038
1039 fi
1040
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
1046 CFLAGS="-g -O2"
1047 else
1048 CFLAGS="-g"
1049 fi
1050 else
1051 if test "$GCC" = yes; then
1052 CFLAGS="-O2"
1053 else
1054 CFLAGS=
1055 fi
1056 fi
1057
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
1064 # AIX /bin/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
1074 else
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.
1078 case "$ac_dir/" in
1079 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1080 *)
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
1083 # by default.
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.
1089 :
1090 else
1091 ac_cv_path_install="$ac_dir/$ac_prog -c"
1092 break 2
1093 fi
1094 fi
1095 done
1096 ;;
1097 esac
1098 done
1099 IFS="$ac_save_IFS"
1100
1101 fi
1102 if test "${ac_cv_path_install+set}" = set; then
1103 INSTALL="$ac_cv_path_install"
1104 else
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"
1110 fi
1111 fi
1112 echo "$ac_t""$INSTALL" 1>&6
1113
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}'
1117
1118 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1119
1120 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1121
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
1126 else
1127 rm -f conftestdata
1128 if ln -s X conftestdata 2>/dev/null
1129 then
1130 rm -f conftestdata
1131 ac_cv_prog_LN_S="ln -s"
1132 else
1133 ac_cv_prog_LN_S=ln
1134 fi
1135 fi
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
1139 else
1140 echo "$ac_t""no" 1>&6
1141 fi
1142
1143
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
1149 else
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. */
1158 char connect();
1159
1160 int main() {
1161 connect()
1162 ; return 0; }
1163 EOF
1164 if { (eval echo configure:1165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1165 rm -rf conftest*
1166 eval "ac_cv_lib_$ac_lib_var=yes"
1167 else
1168 echo "configure: failed program was:" >&5
1169 cat conftest.$ac_ext >&5
1170 rm -rf conftest*
1171 eval "ac_cv_lib_$ac_lib_var=no"
1172 fi
1173 rm -f conftest*
1174 LIBS="$ac_save_LIBS"
1175
1176 fi
1177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1178 echo "$ac_t""yes" 1>&6
1179 gethostbyname
1180 else
1181 echo "$ac_t""no" 1>&6
1182 fi
1183
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
1189 else
1190 ac_save_LIBS="$LIBS"
1191 LIBS="-lz $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. */
1198 char compress();
1199
1200 int main() {
1201 compress()
1202 ; return 0; }
1203 EOF
1204 if { (eval echo configure:1205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1205 rm -rf conftest*
1206 eval "ac_cv_lib_$ac_lib_var=yes"
1207 else
1208 echo "configure: failed program was:" >&5
1209 cat conftest.$ac_ext >&5
1210 rm -rf conftest*
1211 eval "ac_cv_lib_$ac_lib_var=no"
1212 fi
1213 rm -f conftest*
1214 LIBS="$ac_save_LIBS"
1215
1216 fi
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
1223 EOF
1224
1225 LIBS="-lz $LIBS"
1226
1227 else
1228 echo "$ac_t""no" 1>&6
1229 fi
1230
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
1236 else
1237 ac_save_LIBS="$LIBS"
1238 LIBS="-lm $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. */
1245 char floor();
1246
1247 int main() {
1248 floor()
1249 ; return 0; }
1250 EOF
1251 if { (eval echo configure:1252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1252 rm -rf conftest*
1253 eval "ac_cv_lib_$ac_lib_var=yes"
1254 else
1255 echo "configure: failed program was:" >&5
1256 cat conftest.$ac_ext >&5
1257 rm -rf conftest*
1258 eval "ac_cv_lib_$ac_lib_var=no"
1259 fi
1260 rm -f conftest*
1261 LIBS="$ac_save_LIBS"
1262
1263 fi
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
1270 EOF
1271
1272 LIBS="-lm $LIBS"
1273
1274 else
1275 echo "$ac_t""no" 1>&6
1276 fi
1277
1278
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
1283 CPP=
1284 fi
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
1288 else
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.
1291 CPP="${CC-cc} -E"
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"
1297 #include <assert.h>
1298 Syntax Error
1299 EOF
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
1304 :
1305 else
1306 echo "$ac_err" >&5
1307 echo "configure: failed program was:" >&5
1308 cat conftest.$ac_ext >&5
1309 rm -rf conftest*
1310 CPP="${CC-cc} -E -traditional-cpp"
1311 cat > conftest.$ac_ext <<EOF
1312 #line 1313 "configure"
1313 #include "confdefs.h"
1314 #include <assert.h>
1315 Syntax Error
1316 EOF
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
1321 :
1322 else
1323 echo "$ac_err" >&5
1324 echo "configure: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1326 rm -rf conftest*
1327 CPP="${CC-cc} -nologo -E"
1328 cat > conftest.$ac_ext <<EOF
1329 #line 1330 "configure"
1330 #include "confdefs.h"
1331 #include <assert.h>
1332 Syntax Error
1333 EOF
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
1338 :
1339 else
1340 echo "$ac_err" >&5
1341 echo "configure: failed program was:" >&5
1342 cat conftest.$ac_ext >&5
1343 rm -rf conftest*
1344 CPP=/lib/cpp
1345 fi
1346 rm -f conftest*
1347 fi
1348 rm -f conftest*
1349 fi
1350 rm -f conftest*
1351 ac_cv_prog_CPP="$CPP"
1352 fi
1353 CPP="$ac_cv_prog_CPP"
1354 else
1355 ac_cv_prog_CPP="$CPP"
1356 fi
1357 echo "$ac_t""$CPP" 1>&6
1358
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
1363 else
1364 cat > conftest.$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1367 #include <stdlib.h>
1368 #include <stdarg.h>
1369 #include <string.h>
1370 #include <float.h>
1371 EOF
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
1376 rm -rf conftest*
1377 ac_cv_header_stdc=yes
1378 else
1379 echo "$ac_err" >&5
1380 echo "configure: failed program was:" >&5
1381 cat conftest.$ac_ext >&5
1382 rm -rf conftest*
1383 ac_cv_header_stdc=no
1384 fi
1385 rm -f conftest*
1386
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"
1392 #include <string.h>
1393 EOF
1394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1395 egrep "memchr" >/dev/null 2>&1; then
1396 :
1397 else
1398 rm -rf conftest*
1399 ac_cv_header_stdc=no
1400 fi
1401 rm -f conftest*
1402
1403 fi
1404
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"
1410 #include <stdlib.h>
1411 EOF
1412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1413 egrep "free" >/dev/null 2>&1; then
1414 :
1415 else
1416 rm -rf conftest*
1417 ac_cv_header_stdc=no
1418 fi
1419 rm -f conftest*
1420
1421 fi
1422
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
1426 :
1427 else
1428 cat > conftest.$ac_ext <<EOF
1429 #line 1430 "configure"
1430 #include "confdefs.h"
1431 #include <ctype.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);
1437 exit (0); }
1438
1439 EOF
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
1441 then
1442 :
1443 else
1444 echo "configure: failed program was:" >&5
1445 cat conftest.$ac_ext >&5
1446 rm -fr conftest*
1447 ac_cv_header_stdc=no
1448 fi
1449 rm -fr conftest*
1450 fi
1451
1452 fi
1453 fi
1454
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
1459 EOF
1460
1461 fi
1462
1463 for ac_hdr in limits.h sys/time.h unistd.h
1464 do
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
1470 else
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1474 #include <$ac_hdr>
1475 EOF
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
1480 rm -rf conftest*
1481 eval "ac_cv_header_$ac_safe=yes"
1482 else
1483 echo "$ac_err" >&5
1484 echo "configure: failed program was:" >&5
1485 cat conftest.$ac_ext >&5
1486 rm -rf conftest*
1487 eval "ac_cv_header_$ac_safe=no"
1488 fi
1489 rm -f conftest*
1490 fi
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
1496 EOF
1497
1498 else
1499 echo "$ac_t""no" 1>&6
1500 fi
1501 done
1502
1503
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
1508 else
1509 cat > conftest.$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1512
1513 int main() {
1514
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;
1519 char **p;
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. */
1529 ++ccp;
1530 p = (char**) ccp;
1531 ccp = (char const *const *) p;
1532 { /* SCO 3.2v4 cc rejects this. */
1533 char *t;
1534 char const *s = 0 ? (char *) 0 : (char const *) 0;
1535
1536 *t++ = 0;
1537 }
1538 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1539 int x[] = {25, 17};
1540 const int *foo = &x[0];
1541 ++foo;
1542 }
1543 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1544 typedef const int *iptr;
1545 iptr p = 0;
1546 ++p;
1547 }
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;
1552 }
1553 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1554 const int foo = 10;
1555 }
1556
1557 ; return 0; }
1558 EOF
1559 if { (eval echo configure:1560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1560 rm -rf conftest*
1561 ac_cv_c_const=yes
1562 else
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1565 rm -rf conftest*
1566 ac_cv_c_const=no
1567 fi
1568 rm -f conftest*
1569 fi
1570
1571 echo "$ac_t""$ac_cv_c_const" 1>&6
1572 if test $ac_cv_c_const = no; then
1573 cat >> confdefs.h <<\EOF
1574 #define const
1575 EOF
1576
1577 fi
1578
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
1583 else
1584 cat > conftest.$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1587 #include <sys/types.h>
1588 #if STDC_HEADERS
1589 #include <stdlib.h>
1590 #include <stddef.h>
1591 #endif
1592 EOF
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
1595 rm -rf conftest*
1596 ac_cv_type_size_t=yes
1597 else
1598 rm -rf conftest*
1599 ac_cv_type_size_t=no
1600 fi
1601 rm -f conftest*
1602
1603 fi
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
1608 EOF
1609
1610 fi
1611
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
1616 else
1617 cat > conftest.$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1620 #include <sys/types.h>
1621 #include <sys/time.h>
1622 #include <time.h>
1623 int main() {
1624 struct tm *tp;
1625 ; return 0; }
1626 EOF
1627 if { (eval echo configure:1628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1628 rm -rf conftest*
1629 ac_cv_header_time=yes
1630 else
1631 echo "configure: failed program was:" >&5
1632 cat conftest.$ac_ext >&5
1633 rm -rf conftest*
1634 ac_cv_header_time=no
1635 fi
1636 rm -f conftest*
1637 fi
1638
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
1643 EOF
1644
1645 fi
1646
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
1651 else
1652 cat > conftest.$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1655 #include <sys/types.h>
1656 #include <time.h>
1657 int main() {
1658 struct tm *tp; tp->tm_sec;
1659 ; return 0; }
1660 EOF
1661 if { (eval echo configure:1662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1662 rm -rf conftest*
1663 ac_cv_struct_tm=time.h
1664 else
1665 echo "configure: failed program was:" >&5
1666 cat conftest.$ac_ext >&5
1667 rm -rf conftest*
1668 ac_cv_struct_tm=sys/time.h
1669 fi
1670 rm -f conftest*
1671 fi
1672
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
1677 EOF
1678
1679 fi
1680
1681
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
1686 else
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. */
1692 #include <assert.h>
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. */
1696 char strftime();
1697
1698 int main() {
1699
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)
1704 choke me
1705 #else
1706 strftime();
1707 #endif
1708
1709 ; return 0; }
1710 EOF
1711 if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1712 rm -rf conftest*
1713 eval "ac_cv_func_strftime=yes"
1714 else
1715 echo "configure: failed program was:" >&5
1716 cat conftest.$ac_ext >&5
1717 rm -rf conftest*
1718 eval "ac_cv_func_strftime=no"
1719 fi
1720 rm -f conftest*
1721 fi
1722
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
1727 EOF
1728
1729 else
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
1737 else
1738 ac_save_LIBS="$LIBS"
1739 LIBS="-lintl $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. */
1746 char strftime();
1747
1748 int main() {
1749 strftime()
1750 ; return 0; }
1751 EOF
1752 if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1753 rm -rf conftest*
1754 eval "ac_cv_lib_$ac_lib_var=yes"
1755 else
1756 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1758 rm -rf conftest*
1759 eval "ac_cv_lib_$ac_lib_var=no"
1760 fi
1761 rm -f conftest*
1762 LIBS="$ac_save_LIBS"
1763
1764 fi
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
1769 EOF
1770
1771 LIBS="-lintl $LIBS"
1772 else
1773 echo "$ac_t""no" 1>&6
1774 fi
1775
1776 fi
1777
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
1782 else
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. */
1788 #include <assert.h>
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. */
1792 char vprintf();
1793
1794 int main() {
1795
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)
1800 choke me
1801 #else
1802 vprintf();
1803 #endif
1804
1805 ; return 0; }
1806 EOF
1807 if { (eval echo configure:1808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1808 rm -rf conftest*
1809 eval "ac_cv_func_vprintf=yes"
1810 else
1811 echo "configure: failed program was:" >&5
1812 cat conftest.$ac_ext >&5
1813 rm -rf conftest*
1814 eval "ac_cv_func_vprintf=no"
1815 fi
1816 rm -f conftest*
1817 fi
1818
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
1823 EOF
1824
1825 else
1826 echo "$ac_t""no" 1>&6
1827 fi
1828
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
1834 else
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. */
1840 #include <assert.h>
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. */
1844 char _doprnt();
1845
1846 int main() {
1847
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)
1852 choke me
1853 #else
1854 _doprnt();
1855 #endif
1856
1857 ; return 0; }
1858 EOF
1859 if { (eval echo configure:1860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1860 rm -rf conftest*
1861 eval "ac_cv_func__doprnt=yes"
1862 else
1863 echo "configure: failed program was:" >&5
1864 cat conftest.$ac_ext >&5
1865 rm -rf conftest*
1866 eval "ac_cv_func__doprnt=no"
1867 fi
1868 rm -f conftest*
1869 fi
1870
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
1875 EOF
1876
1877 else
1878 echo "$ac_t""no" 1>&6
1879 fi
1880
1881 fi
1882
1883 for ac_func in gettimeofday select socket strcspn strdup strerror strspn strtol
1884 do
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
1889 else
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. */
1895 #include <assert.h>
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. */
1899 char $ac_func();
1900
1901 int main() {
1902
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)
1907 choke me
1908 #else
1909 $ac_func();
1910 #endif
1911
1912 ; return 0; }
1913 EOF
1914 if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1915 rm -rf conftest*
1916 eval "ac_cv_func_$ac_func=yes"
1917 else
1918 echo "configure: failed program was:" >&5
1919 cat conftest.$ac_ext >&5
1920 rm -rf conftest*
1921 eval "ac_cv_func_$ac_func=no"
1922 fi
1923 rm -f conftest*
1924 fi
1925
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
1931 EOF
1932
1933 else
1934 echo "$ac_t""no" 1>&6
1935 fi
1936 done
1937
1938
1939 # Check whether --with-ircd or --without-ircd was given.
1940 if test "${with_ircd+set}" = set; then
1941 withval="$with_ircd"
1942 :
1943 fi
1944
1945 # Check whether --with-tableprefix or --without-tableprefix was given.
1946 if test "${with_tableprefix+set}" = set; then
1947 withval="$with_tableprefix"
1948 :
1949 fi
1950
1951 # Check whether --with-hashlist or --without-hashlist was given.
1952 if test "${with_hashlist+set}" = set; then
1953 withval="$with_hashlist"
1954 :
1955 fi
1956
1957 # Check whether --with-mysql or --without-mysql was given.
1958 if test "${with_mysql+set}" = set; then
1959 withval="$with_mysql"
1960 :
1961 fi
1962
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"
1966 :
1967 fi
1968
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"
1972 :
1973 fi
1974
1975 # Check whether --enable-noreportusage or --disable-noreportusage was given.
1976 if test "${enable_noreportusage+set}" = set; then
1977 enableval="$enable_noreportusage"
1978 REPORT=0
1979 else
1980 REPORT=1
1981 fi
1982
1983
1984
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
1991 else
1992 cat > conftest.$ac_ext <<EOF
1993 #line 1994 "configure"
1994 #include "confdefs.h"
1995 #include <$with_mysql_includes/mysql.h>
1996 EOF
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
2001 rm -rf conftest*
2002 eval "ac_cv_header_$ac_safe=yes"
2003 else
2004 echo "$ac_err" >&5
2005 echo "configure: failed program was:" >&5
2006 cat conftest.$ac_ext >&5
2007 rm -rf conftest*
2008 eval "ac_cv_header_$ac_safe=no"
2009 fi
2010 rm -f conftest*
2011 fi
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"
2015 else
2016 echo "$ac_t""no" 1>&6
2017 { echo "configure: error: Need MySQL includes!" 1>&2; exit 1; }
2018 fi
2019
2020 fi
2021
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
2028 else
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();
2037
2038 int main() {
2039 mysql_real_connect()
2040 ; return 0; }
2041 EOF
2042 if { (eval echo configure:2043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2043 rm -rf conftest*
2044 eval "ac_cv_lib_loc_$ac_lib_var=yes"
2045 else
2046 echo "configure: failed program was:" >&5
2047 cat conftest.$ac_ext >&5
2048 rm -rf conftest*
2049 eval "ac_cv_lib_loc_$ac_lib_var=no"
2050 fi
2051 rm -f conftest*
2052 LIBS="$ac_save_LIBS"
2053
2054 fi
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"
2058
2059 else
2060 echo "$ac_t""no" 1>&6
2061 { echo "configure: error: Need MySQL client library!" 1>&2; exit 1; }
2062 fi
2063
2064 fi
2065
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
2073 else
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();
2082
2083 int main() {
2084 mysql_real_connect()
2085 ; return 0; }
2086 EOF
2087 if { (eval echo configure:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2088 rm -rf conftest*
2089 eval "ac_cv_lib_loc_$ac_lib_var=yes"
2090 else
2091 echo "configure: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2093 rm -rf conftest*
2094 eval "ac_cv_lib_loc_$ac_lib_var=no"
2095 fi
2096 rm -f conftest*
2097 LIBS="$ac_save_LIBS"
2098
2099 fi
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"
2103
2104 else
2105 echo "$ac_t""no" 1>&6
2106 { echo "configure: error: Need MySQL client library!" 1>&2; exit 1; }
2107 fi
2108
2109 fi
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
2116 else
2117 cat > conftest.$ac_ext <<EOF
2118 #line 2119 "configure"
2119 #include "confdefs.h"
2120 #include <$with_mysql/include/mysql/mysql.h>
2121 EOF
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
2126 rm -rf conftest*
2127 eval "ac_cv_header_$ac_safe=yes"
2128 else
2129 echo "$ac_err" >&5
2130 echo "configure: failed program was:" >&5
2131 cat conftest.$ac_ext >&5
2132 rm -rf conftest*
2133 eval "ac_cv_header_$ac_safe=no"
2134 fi
2135 rm -f conftest*
2136 fi
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"
2140 else
2141 echo "$ac_t""no" 1>&6
2142 { echo "configure: error: Need MySQL includes!" 1>&2; exit 1; }
2143 fi
2144
2145 fi
2146 else
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
2153 else
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();
2162
2163 int main() {
2164 mysql_real_connect()
2165 ; return 0; }
2166 EOF
2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2168 rm -rf conftest*
2169 eval "ac_cv_lib_loc_$ac_lib_var=yes"
2170 else
2171 echo "configure: failed program was:" >&5
2172 cat conftest.$ac_ext >&5
2173 rm -rf conftest*
2174 eval "ac_cv_lib_loc_$ac_lib_var=no"
2175 fi
2176 rm -f conftest*
2177 LIBS="$ac_save_LIBS"
2178
2179 fi
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"
2183
2184 else
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
2191 else
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();
2200
2201 int main() {
2202 mysql_real_connect()
2203 ; return 0; }
2204 EOF
2205 if { (eval echo configure:2206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2206 rm -rf conftest*
2207 eval "ac_cv_lib_loc_$ac_lib_var=yes"
2208 else
2209 echo "configure: failed program was:" >&5
2210 cat conftest.$ac_ext >&5
2211 rm -rf conftest*
2212 eval "ac_cv_lib_loc_$ac_lib_var=no"
2213 fi
2214 rm -f conftest*
2215 LIBS="$ac_save_LIBS"
2216
2217 fi
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"
2221
2222 else
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
2229 else
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();
2238
2239 int main() {
2240 mysql_real_connect()
2241 ; return 0; }
2242 EOF
2243 if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2244 rm -rf conftest*
2245 eval "ac_cv_lib_loc_$ac_lib_var=yes"
2246 else
2247 echo "configure: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2249 rm -rf conftest*
2250 eval "ac_cv_lib_loc_$ac_lib_var=no"
2251 fi
2252 rm -f conftest*
2253 LIBS="$ac_save_LIBS"
2254
2255 fi
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"
2259
2260 else
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
2267 else
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();
2276
2277 int main() {
2278 mysql_real_connect()
2279 ; return 0; }
2280 EOF
2281 if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2282 rm -rf conftest*
2283 eval "ac_cv_lib_loc_$ac_lib_var=yes"
2284 else
2285 echo "configure: failed program was:" >&5
2286 cat conftest.$ac_ext >&5
2287 rm -rf conftest*
2288 eval "ac_cv_lib_loc_$ac_lib_var=no"
2289 fi
2290 rm -f conftest*
2291 LIBS="$ac_save_LIBS"
2292
2293 fi
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"
2297
2298 else
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
2305 else
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();
2314
2315 int main() {
2316 mysql_real_connect()
2317 ; return 0; }
2318 EOF
2319 if { (eval echo configure:2320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2320 rm -rf conftest*
2321 eval "ac_cv_lib_loc_$ac_lib_var=yes"
2322 else
2323 echo "configure: failed program was:" >&5
2324 cat conftest.$ac_ext >&5
2325 rm -rf conftest*
2326 eval "ac_cv_lib_loc_$ac_lib_var=no"
2327 fi
2328 rm -f conftest*
2329 LIBS="$ac_save_LIBS"
2330
2331 fi
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"
2335
2336 else
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
2343 else
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();
2352
2353 int main() {
2354 mysql_real_connect()
2355 ; return 0; }
2356 EOF
2357 if { (eval echo configure:2358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2358 rm -rf conftest*
2359 eval "ac_cv_lib_loc_$ac_lib_var=yes"
2360 else
2361 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2363 rm -rf conftest*
2364 eval "ac_cv_lib_loc_$ac_lib_var=no"
2365 fi
2366 rm -f conftest*
2367 LIBS="$ac_save_LIBS"
2368
2369 fi
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"
2373
2374 else
2375 echo "$ac_t""no" 1>&6
2376 { echo "configure: error: Need MySQL client library!" 1>&2; exit 1; }
2377 fi
2378
2379 fi
2380
2381 fi
2382
2383 fi
2384
2385 fi
2386
2387 fi
2388
2389 fi
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
2396 else
2397 cat > conftest.$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2400 #include </opt/include/mysql/mysql.h>
2401 EOF
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
2406 rm -rf conftest*
2407 eval "ac_cv_header_$ac_safe=yes"
2408 else
2409 echo "$ac_err" >&5
2410 echo "configure: failed program was:" >&5
2411 cat conftest.$ac_ext >&5
2412 rm -rf conftest*
2413 eval "ac_cv_header_$ac_safe=no"
2414 fi
2415 rm -f conftest*
2416 fi
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"
2420 else
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
2427 else
2428 cat > conftest.$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2431 #include </usr/local/include/mysql/mysql.h>
2432 EOF
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
2437 rm -rf conftest*
2438 eval "ac_cv_header_$ac_safe=yes"
2439 else
2440 echo "$ac_err" >&5
2441 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2443 rm -rf conftest*
2444 eval "ac_cv_header_$ac_safe=no"
2445 fi
2446 rm -f conftest*
2447 fi
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"
2451 else
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
2458 else
2459 cat > conftest.$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2462 #include </usr/include/mysql/mysql.h>
2463 EOF
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
2468 rm -rf conftest*
2469 eval "ac_cv_header_$ac_safe=yes"
2470 else
2471 echo "$ac_err" >&5
2472 echo "configure: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2474 rm -rf conftest*
2475 eval "ac_cv_header_$ac_safe=no"
2476 fi
2477 rm -f conftest*
2478 fi
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"
2482 else
2483 echo "$ac_t""no" 1>&6
2484 { echo "configure: error: Need MySQL includes!" 1>&2; exit 1; }
2485 fi
2486
2487 fi
2488
2489 fi
2490
2491 fi
2492 fi
2493 CFLAGS="$CFLAGS -Wall"
2494
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"
2499 fi
2500
2501
2502
2503 ok=0
2504 if test "x$with_tableprefix" != "x"; then
2505 cat >> confdefs.h <<EOF
2506 #define TBL_PREFIX "$with_tableprefix"
2507 EOF
2508
2509 fi
2510
2511
2512
2513 ok=0
2514 if test "x$with_hashlist" != "x"; then
2515 case $with_hashlist in
2516 [Nn][Oo])
2517 echo "Hashlist support disabled : Thales will run slower."
2518 ok=1
2519 ;;
2520 esac
2521 fi
2522 if test $ok -eq 0; then
2523 cat >> confdefs.h <<EOF
2524 #define HASHLISTSUPPORT 1
2525 EOF
2526
2527 fi
2528
2529
2530 ok=0
2531 reportusage=1
2532 if test "x$with_ircd" != "x"; then
2533 case $with_ircd in
2534 [Bb][Aa][Hh][Aa][Mm][Uu][Tt])
2535 cat >> confdefs.h <<EOF
2536 #define IRCD_BAHAMUT 1
2537 EOF
2538
2539 echo "Using Bahamut IRCD"
2540 ok=1
2541 ;;
2542 [Hh][Yy][Bb][Rr][Ii][Dd])
2543 cat >> confdefs.h <<EOF
2544 #define IRCD_HYBRID 1
2545 EOF
2546
2547 echo "Using Hybrid IRCD"
2548 ok=1
2549 ;;
2550 [Ii][Rr][Cc][Dd][Rr][Uu])
2551 cat >> confdefs.h <<EOF
2552 #define IRCD_IRCDRU 1
2553 EOF
2554
2555 echo "Using IRCD-RU IRCD"
2556 ok=1
2557 ;;
2558 [Uu][Nn][Rr][Ee][Aa][Ll])
2559 cat >> confdefs.h <<EOF
2560 #define IRCD_UNREAL 1
2561 EOF
2562
2563 echo "Using Unreal IRCD"
2564 reportusage=0
2565 ok=1
2566 ;;
2567 [Uu][Ll][Tt][Ii][Mm][Aa][Tt][Ee]28)
2568 cat >> confdefs.h <<EOF
2569 #define IRCD_ULTI28 1
2570 EOF
2571
2572 echo "Using Ultimate IRCD 2.8"
2573 ok=1
2574 ;;
2575 [Uu][Ll][Tt][Ii][Mm][Aa][Tt][Ee]30)
2576 cat >> confdefs.h <<EOF
2577 #define IRCD_ULTIMATE 1
2578 EOF
2579
2580 echo "Using Ultimate IRCD 3.0"
2581 ok=1
2582 ;;
2583 *)
2584 echo "IRCD type unrecognized"
2585 ;;
2586 esac
2587 fi
2588 if test $ok -eq 0; then
2589 echo
2590 echo "---------------------------------------------------------------"
2591 echo
2592 echo "Which of the following is closest to the type of server used on"
2593 echo "your IRC network ?"
2594 echo " 1) UnrealIRCd 3.1.1 or later"
2595 echo "Support for these servers is still available but might not be"
2596 echo "complete. See the NeedMaintainers file for more info."
2597 echo " 2) Bahamut 1.4.27 or later"
2598 echo " 3) Hybrid 7 or later"
2599 echo " 4) ircd-RU! 1.4.0 or later"
2600 echo " 5) UltimateIRCD 2.8 or later (2.8 branch)"
2601 echo " 6) UltimateIRCD 3.0.0 or later"
2602 while `test $ok -eq 0` ; do
2603 echo -n '> '
2604 read KBDINPUT
2605 case $KBDINPUT in
2606 1)
2607 cat >> confdefs.h <<EOF
2608 #define IRCD_UNREAL 1
2609 EOF
2610
2611 reportusage=0
2612 ok=1
2613 ;;
2614 2)
2615 cat >> confdefs.h <<EOF
2616 #define IRCD_BAHAMUT 1
2617 EOF
2618
2619 ok=1
2620 ;;
2621 3)
2622 cat >> confdefs.h <<EOF
2623 #define IRCD_HYBRID 1
2624 EOF
2625
2626 ok=1
2627 ;;
2628 4)
2629 cat >> confdefs.h <<EOF
2630 #define IRCD_IRCDRU 1
2631 EOF
2632
2633 ok=1
2634 ;;
2635 5)
2636 cat >> confdefs.h <<EOF
2637 #define IRCD_ULTI28 1
2638 EOF
2639
2640 ok=1
2641 ;;
2642 6)
2643 cat >> confdefs.h <<EOF
2644 #define IRCD_ULTIMATE 1
2645 EOF
2646
2647 ok=1
2648 ;;
2649 *)
2650 echo "Please enter a valid option number."
2651 ;;
2652 esac
2653 done
2654 fi
2655
2656 # Check whether --enable-no-modes or --disable-no-modes was given.
2657 if test "${enable_no_modes+set}" = set; then
2658 enableval="$enable_no_modes"
2659 cat >> confdefs.h <<EOF
2660 #define NOMODES 1
2661 EOF
2662
2663 fi
2664
2665
2666 trap '' 1 2 15
2667 cat > confcache <<\EOF
2668 # This file is a shell script that caches the results of configure
2669 # tests run on this system so they can be shared between configure
2670 # scripts and configure runs. It is not useful on other systems.
2671 # If it contains results you don't want to keep, you may remove or edit it.
2672 #
2673 # By default, configure uses ./config.cache as the cache file,
2674 # creating it if it does not exist already. You can give configure
2675 # the --cache-file=FILE option to use a different cache file; that is
2676 # what configure does when it calls configure scripts in
2677 # subdirectories, so they share the cache.
2678 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2679 # config.status only pays attention to the cache file if you give it the
2680 # --recheck option to rerun configure.
2681 #
2682 EOF
2683 # The following way of writing the cache mishandles newlines in values,
2684 # but we know of no workaround that is simple, portable, and efficient.
2685 # So, don't put newlines in cache variables' values.
2686 # Ultrix sh set writes to stderr and can't be redirected directly,
2687 # and sets the high bit in the cache file unless we assign to the vars.
2688 (set) 2>&1 |
2689 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2690 *ac_space=\ *)
2691 # `set' does not quote correctly, so add quotes (double-quote substitution
2692 # turns \\\\ into \\, and sed turns \\ into \).
2693 sed -n \
2694 -e "s/'/'\\\\''/g" \
2695 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2696 ;;
2697 *)
2698 # `set' quotes correctly as required by POSIX, so do not add quotes.
2699 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2700 ;;
2701 esac >> confcache
2702 if cmp -s $cache_file confcache; then
2703 :
2704 else
2705 if test -w $cache_file; then
2706 echo "updating cache $cache_file"
2707 cat confcache > $cache_file
2708 else
2709 echo "not updating unwritable cache $cache_file"
2710 fi
2711 fi
2712 rm -f confcache
2713
2714 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2715
2716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2717 # Let make expand exec_prefix.
2718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2719
2720 # Any assignment to VPATH causes Sun make to only execute
2721 # the first set of double-colon rules, so remove it if not needed.
2722 # If there is a colon in the path, we need to keep it.
2723 if test "x$srcdir" = x.; then
2724 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2725 fi
2726
2727 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2728
2729 DEFS=-DHAVE_CONFIG_H
2730
2731 # Without the "./", some shells look in PATH for config.status.
2732 : ${CONFIG_STATUS=./config.status}
2733
2734 echo creating $CONFIG_STATUS
2735 rm -f $CONFIG_STATUS
2736 cat > $CONFIG_STATUS <<EOF
2737 #! /bin/sh
2738 # Generated automatically by configure.
2739 # Run this file to recreate the current configuration.
2740 # This directory was configured as follows,
2741 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2742 #
2743 # $0 $ac_configure_args
2744 #
2745 # Compiler output produced by configure, useful for debugging
2746 # configure, is in ./config.log if it exists.
2747
2748 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2749 for ac_option
2750 do
2751 case "\$ac_option" in
2752 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2753 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2754 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2755 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2756 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2757 exit 0 ;;
2758 -help | --help | --hel | --he | --h)
2759 echo "\$ac_cs_usage"; exit 0 ;;
2760 *) echo "\$ac_cs_usage"; exit 1 ;;
2761 esac
2762 done
2763
2764 ac_given_srcdir=$srcdir
2765 ac_given_INSTALL="$INSTALL"
2766
2767 trap 'rm -fr `echo "src/Makefile data/Makefile Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2768 EOF
2769 cat >> $CONFIG_STATUS <<EOF
2770
2771 # Protect against being on the right side of a sed subst in config.status.
2772 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2773 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2774 $ac_vpsub
2775 $extrasub
2776 s%@SHELL@%$SHELL%g
2777 s%@CFLAGS@%$CFLAGS%g
2778 s%@CPPFLAGS@%$CPPFLAGS%g
2779 s%@CXXFLAGS@%$CXXFLAGS%g
2780 s%@FFLAGS@%$FFLAGS%g
2781 s%@DEFS@%$DEFS%g
2782 s%@LDFLAGS@%$LDFLAGS%g
2783 s%@LIBS@%$LIBS%g
2784 s%@exec_prefix@%$exec_prefix%g
2785 s%@prefix@%$prefix%g
2786 s%@program_transform_name@%$program_transform_name%g
2787 s%@bindir@%$bindir%g
2788 s%@sbindir@%$sbindir%g
2789 s%@libexecdir@%$libexecdir%g
2790 s%@datadir@%$datadir%g
2791 s%@sysconfdir@%$sysconfdir%g
2792 s%@sharedstatedir@%$sharedstatedir%g
2793 s%@localstatedir@%$localstatedir%g
2794 s%@libdir@%$libdir%g
2795 s%@includedir@%$includedir%g
2796 s%@oldincludedir@%$oldincludedir%g
2797 s%@infodir@%$infodir%g
2798 s%@mandir@%$mandir%g
2799 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2800 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2801 s%@INSTALL_DATA@%$INSTALL_DATA%g
2802 s%@PACKAGE@%$PACKAGE%g
2803 s%@VERSION@%$VERSION%g
2804 s%@ACLOCAL@%$ACLOCAL%g
2805 s%@AUTOCONF@%$AUTOCONF%g
2806 s%@AUTOMAKE@%$AUTOMAKE%g
2807 s%@AUTOHEADER@%$AUTOHEADER%g
2808 s%@MAKEINFO@%$MAKEINFO%g
2809 s%@SET_MAKE@%$SET_MAKE%g
2810 s%@AWK@%$AWK%g
2811 s%@CC@%$CC%g
2812 s%@LN_S@%$LN_S%g
2813 s%@CPP@%$CPP%g
2814
2815 CEOF
2816 EOF
2817
2818 cat >> $CONFIG_STATUS <<\EOF
2819
2820 # Split the substitutions into bite-sized pieces for seds with
2821 # small command number limits, like on Digital OSF/1 and HP-UX.
2822 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2823 ac_file=1 # Number of current file.
2824 ac_beg=1 # First line for current file.
2825 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2826 ac_more_lines=:
2827 ac_sed_cmds=""
2828 while $ac_more_lines; do
2829 if test $ac_beg -gt 1; then
2830 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2831 else
2832 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2833 fi
2834 if test ! -s conftest.s$ac_file; then
2835 ac_more_lines=false
2836 rm -f conftest.s$ac_file
2837 else
2838 if test -z "$ac_sed_cmds"; then
2839 ac_sed_cmds="sed -f conftest.s$ac_file"
2840 else
2841 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2842 fi
2843 ac_file=`expr $ac_file + 1`
2844 ac_beg=$ac_end
2845 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2846 fi
2847 done
2848 if test -z "$ac_sed_cmds"; then
2849 ac_sed_cmds=cat
2850 fi
2851 EOF
2852
2853 cat >> $CONFIG_STATUS <<EOF
2854
2855 CONFIG_FILES=\${CONFIG_FILES-"src/Makefile data/Makefile Makefile"}
2856 EOF
2857 cat >> $CONFIG_STATUS <<\EOF
2858 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2859 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2860 case "$ac_file" in
2861 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2862 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2863 *) ac_file_in="${ac_file}.in" ;;
2864 esac
2865
2866 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2867
2868 # Remove last slash and all that follows it. Not all systems have dirname.
2869 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2870 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2871 # The file is in a subdirectory.
2872 test ! -d "$ac_dir" && mkdir "$ac_dir"
2873 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2874 # A "../" for each directory in $ac_dir_suffix.
2875 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2876 else
2877 ac_dir_suffix= ac_dots=
2878 fi
2879
2880 case "$ac_given_srcdir" in
2881 .) srcdir=.
2882 if test -z "$ac_dots"; then top_srcdir=.
2883 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2884 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2885 *) # Relative path.
2886 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2887 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2888 esac
2889
2890 case "$ac_given_INSTALL" in
2891 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2892 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2893 esac
2894
2895 echo creating "$ac_file"
2896 rm -f "$ac_file"
2897 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2898 case "$ac_file" in
2899 *Makefile*) ac_comsub="1i\\
2900 # $configure_input" ;;
2901 *) ac_comsub= ;;
2902 esac
2903
2904 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2905 sed -e "$ac_comsub
2906 s%@configure_input@%$configure_input%g
2907 s%@srcdir@%$srcdir%g
2908 s%@top_srcdir@%$top_srcdir%g
2909 s%@INSTALL@%$INSTALL%g
2910 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2911 fi; done
2912 rm -f conftest.s*
2913
2914 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2915 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2916 #
2917 # ac_d sets the value in "#define NAME VALUE" lines.
2918 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2919 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2920 ac_dC='\3'
2921 ac_dD='%g'
2922 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2923 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2924 ac_uB='\([ ]\)%\1#\2define\3'
2925 ac_uC=' '
2926 ac_uD='\4%g'
2927 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2928 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2929 ac_eB='$%\1#\2define\3'
2930 ac_eC=' '
2931 ac_eD='%g'
2932
2933 if test "${CONFIG_HEADERS+set}" != set; then
2934 EOF
2935 cat >> $CONFIG_STATUS <<EOF
2936 CONFIG_HEADERS="src/config.h"
2937 EOF
2938 cat >> $CONFIG_STATUS <<\EOF
2939 fi
2940 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2941 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2942 case "$ac_file" in
2943 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2944 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2945 *) ac_file_in="${ac_file}.in" ;;
2946 esac
2947
2948 echo creating $ac_file
2949
2950 rm -f conftest.frag conftest.in conftest.out
2951 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2952 cat $ac_file_inputs > conftest.in
2953
2954 EOF
2955
2956 # Transform confdefs.h into a sed script conftest.vals that substitutes
2957 # the proper values into config.h.in to produce config.h. And first:
2958 # Protect against being on the right side of a sed subst in config.status.
2959 # Protect against being in an unquoted here document in config.status.
2960 rm -f conftest.vals
2961 cat > conftest.hdr <<\EOF
2962 s/[\\&%]/\\&/g
2963 s%[\\$`]%\\&%g
2964 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2965 s%ac_d%ac_u%gp
2966 s%ac_u%ac_e%gp
2967 EOF
2968 sed -n -f conftest.hdr confdefs.h > conftest.vals
2969 rm -f conftest.hdr
2970
2971 # This sed command replaces #undef with comments. This is necessary, for
2972 # example, in the case of _POSIX_SOURCE, which is predefined and required
2973 # on some systems where configure will not decide to define it.
2974 cat >> conftest.vals <<\EOF
2975 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2976 EOF
2977
2978 # Break up conftest.vals because some shells have a limit on
2979 # the size of here documents, and old seds have small limits too.
2980
2981 rm -f conftest.tail
2982 while :
2983 do
2984 ac_lines=`grep -c . conftest.vals`
2985 # grep -c gives empty output for an empty file on some AIX systems.
2986 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2987 # Write a limited-size here document to conftest.frag.
2988 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2989 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2990 echo 'CEOF
2991 sed -f conftest.frag conftest.in > conftest.out
2992 rm -f conftest.in
2993 mv conftest.out conftest.in
2994 ' >> $CONFIG_STATUS
2995 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2996 rm -f conftest.vals
2997 mv conftest.tail conftest.vals
2998 done
2999 rm -f conftest.vals
3000
3001 cat >> $CONFIG_STATUS <<\EOF
3002 rm -f conftest.frag conftest.h
3003 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3004 cat conftest.in >> conftest.h
3005 rm -f conftest.in
3006 if cmp -s $ac_file conftest.h 2>/dev/null; then
3007 echo "$ac_file is unchanged"
3008 rm -f conftest.h
3009 else
3010 # Remove last slash and all that follows it. Not all systems have dirname.
3011 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3012 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3013 # The file is in a subdirectory.
3014 test ! -d "$ac_dir" && mkdir "$ac_dir"
3015 fi
3016 rm -f $ac_file
3017 mv conftest.h $ac_file
3018 fi
3019 fi; done
3020
3021 EOF
3022 cat >> $CONFIG_STATUS <<EOF
3023
3024
3025 EOF
3026 cat >> $CONFIG_STATUS <<\EOF
3027 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
3028
3029 exit 0
3030 EOF
3031 chmod +x $CONFIG_STATUS
3032 rm -fr confdefs* $ac_clean_files
3033 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3034
3035
3036 if test $REPORT -eq 1 -a $reportusage -eq 1; then
3037 ./ReportUsage.sh
3038 fi
3039 echo
3040 echo "Thales will be installed in ${prefix}. To change this, run :"
3041 echo " ./configure --prefix=DIRECTORY"
3042 echo "To compile Thales, run make (or gmake on non-GNU systems)"
3043 echo "To install Thales, run make install (or gmake install on non-GNU systems)"
3044 echo
3045 echo "Don't forget to read the README and INSTALL files for more detailed instructions"
3046 echo