Annotation of parser3/configure, revision 1.27
1.1 paf 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_help="$ac_help
1.15 paf 15: --disable-link-libstdcpp to disable libstdc++ linkage,
16: if you belive you do not need one"
17: ac_help="$ac_help
1.1 paf 18: --disable-string-origins to switch off string origin tracking"
19: ac_help="$ac_help
1.13 paf 20: --disable-execs to disable any execs
21: (file::exec, file::cgi, unix mail:send)"
22: ac_help="$ac_help
1.16 paf 23: --disable-foreign-group-files to disable read and executing
24: files belonging to group other then effective"
1.14 paf 25: ac_help="$ac_help
1.17 paf 26: --with-charsets=CHARSET[,CHARSET,...] Enables charsets in root config (windows-1251,
27: windows-1250 windows-1257 koi8-r; Default is windows-1251)"
28: ac_help="$ac_help
29: --with-mysql-client=mysqlclientlib?withparams
30: MySQL client dynamic library to root config"
31: ac_help="$ac_help
32: --with-pgsql-client=pgsqlclientlib?withparams
33: PgSQL client dynamic library to root config"
34: ac_help="$ac_help
35: --with-oracle-client=oracleclientlib?withparams
36: Oracle client dynamic library"
37: ac_help="$ac_help
1.7 paf 38: --with-pathlink=LKEY put dynamic libraries paths to binary
1.1 paf 39: using linker key (-R, -rpath-link)"
40: ac_help="$ac_help
1.7 paf 41: --with-glib-config=FILE FILE is glib library
42: configuration file (search for glib*-config)"
43: ac_help="$ac_help
1.10 paf 44: --with-shared-xml=D D is the directory where
45: Gnome XML libraries are installed (shared libs)"
46: ac_help="$ac_help
47: --with-static-xml=D D is the directory where
48: Gnome XML libraries are installed (static libs)"
1.12 paf 49: ac_help="$ac_help
1.16 paf 50: \"--with-sendmail=COMMAND\" forces this command to send mail.
51: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
52: (makes parser ignore user-defined sendmail commands)"
53: ac_help="$ac_help
1.12 paf 54: --with-apache13=D D is the Apache13 source distribution directory
55: builds library for apache_module using that dir
56: (do not add /src)"
1.1 paf 57:
58: # Initialize some variables set by options.
59: # The variables have the same names as the options, with
60: # dashes changed to underlines.
61: build=NONE
62: cache_file=./config.cache
63: exec_prefix=NONE
64: host=NONE
65: no_create=
66: nonopt=NONE
67: no_recursion=
68: prefix=NONE
69: program_prefix=NONE
70: program_suffix=NONE
71: program_transform_name=s,x,x,
72: silent=
73: site=
74: srcdir=
75: target=NONE
76: verbose=
77: x_includes=NONE
78: x_libraries=NONE
79: bindir='${exec_prefix}/bin'
80: sbindir='${exec_prefix}/sbin'
81: libexecdir='${exec_prefix}/libexec'
82: datadir='${prefix}/share'
83: sysconfdir='${prefix}/etc'
84: sharedstatedir='${prefix}/com'
85: localstatedir='${prefix}/var'
86: libdir='${exec_prefix}/lib'
87: includedir='${prefix}/include'
88: oldincludedir='/usr/include'
89: infodir='${prefix}/info'
90: mandir='${prefix}/man'
91:
92: # Initialize some other variables.
93: subdirs=
94: MFLAGS= MAKEFLAGS=
95: SHELL=${CONFIG_SHELL-/bin/sh}
96: # Maximum number of lines to put in a shell here document.
97: ac_max_here_lines=12
98:
99: ac_prev=
100: for ac_option
101: do
102:
103: # If the previous option needs an argument, assign it.
104: if test -n "$ac_prev"; then
105: eval "$ac_prev=\$ac_option"
106: ac_prev=
107: continue
108: fi
109:
110: case "$ac_option" in
111: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
112: *) ac_optarg= ;;
113: esac
114:
115: # Accept the important Cygnus configure options, so we can diagnose typos.
116:
117: case "$ac_option" in
118:
119: -bindir | --bindir | --bindi | --bind | --bin | --bi)
120: ac_prev=bindir ;;
121: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
122: bindir="$ac_optarg" ;;
123:
124: -build | --build | --buil | --bui | --bu)
125: ac_prev=build ;;
126: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
127: build="$ac_optarg" ;;
128:
129: -cache-file | --cache-file | --cache-fil | --cache-fi \
130: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
131: ac_prev=cache_file ;;
132: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
133: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
134: cache_file="$ac_optarg" ;;
135:
136: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
137: ac_prev=datadir ;;
138: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
139: | --da=*)
140: datadir="$ac_optarg" ;;
141:
142: -disable-* | --disable-*)
143: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
144: # Reject names that are not valid shell variable names.
145: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
146: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
147: fi
148: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
149: eval "enable_${ac_feature}=no" ;;
150:
151: -enable-* | --enable-*)
152: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
153: # Reject names that are not valid shell variable names.
154: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
155: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156: fi
157: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158: case "$ac_option" in
159: *=*) ;;
160: *) ac_optarg=yes ;;
161: esac
162: eval "enable_${ac_feature}='$ac_optarg'" ;;
163:
164: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
165: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
166: | --exec | --exe | --ex)
167: ac_prev=exec_prefix ;;
168: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
169: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
170: | --exec=* | --exe=* | --ex=*)
171: exec_prefix="$ac_optarg" ;;
172:
173: -gas | --gas | --ga | --g)
174: # Obsolete; use --with-gas.
175: with_gas=yes ;;
176:
177: -help | --help | --hel | --he)
178: # Omit some internal or obsolete options to make the list less imposing.
179: # This message is too long to be a string in the A/UX 3.1 sh.
180: cat << EOF
181: Usage: configure [options] [host]
182: Options: [defaults in brackets after descriptions]
183: Configuration:
184: --cache-file=FILE cache test results in FILE
185: --help print this message
186: --no-create do not create output files
187: --quiet, --silent do not print \`checking...' messages
188: --version print the version of autoconf that created configure
189: Directory and file names:
190: --prefix=PREFIX install architecture-independent files in PREFIX
191: [$ac_default_prefix]
192: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
193: [same as prefix]
194: --bindir=DIR user executables in DIR [EPREFIX/bin]
195: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
196: --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
197: --datadir=DIR read-only architecture-independent data in DIR
198: [PREFIX/share]
199: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
200: --sharedstatedir=DIR modifiable architecture-independent data in DIR
201: [PREFIX/com]
202: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
203: --libdir=DIR object code libraries in DIR [EPREFIX/lib]
204: --includedir=DIR C header files in DIR [PREFIX/include]
205: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
206: --infodir=DIR info documentation in DIR [PREFIX/info]
207: --mandir=DIR man documentation in DIR [PREFIX/man]
208: --srcdir=DIR find the sources in DIR [configure dir or ..]
209: --program-prefix=PREFIX prepend PREFIX to installed program names
210: --program-suffix=SUFFIX append SUFFIX to installed program names
211: --program-transform-name=PROGRAM
212: run sed PROGRAM on installed program names
213: EOF
214: cat << EOF
215: Host type:
216: --build=BUILD configure for building on BUILD [BUILD=HOST]
217: --host=HOST configure for HOST [guessed]
218: --target=TARGET configure for TARGET [TARGET=HOST]
219: Features and packages:
220: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
221: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
222: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
223: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
224: --x-includes=DIR X include files are in DIR
225: --x-libraries=DIR X library files are in DIR
226: EOF
227: if test -n "$ac_help"; then
228: echo "--enable and --with options recognized:$ac_help"
229: fi
230: exit 0 ;;
231:
232: -host | --host | --hos | --ho)
233: ac_prev=host ;;
234: -host=* | --host=* | --hos=* | --ho=*)
235: host="$ac_optarg" ;;
236:
237: -includedir | --includedir | --includedi | --included | --include \
238: | --includ | --inclu | --incl | --inc)
239: ac_prev=includedir ;;
240: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
241: | --includ=* | --inclu=* | --incl=* | --inc=*)
242: includedir="$ac_optarg" ;;
243:
244: -infodir | --infodir | --infodi | --infod | --info | --inf)
245: ac_prev=infodir ;;
246: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
247: infodir="$ac_optarg" ;;
248:
249: -libdir | --libdir | --libdi | --libd)
250: ac_prev=libdir ;;
251: -libdir=* | --libdir=* | --libdi=* | --libd=*)
252: libdir="$ac_optarg" ;;
253:
254: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
255: | --libexe | --libex | --libe)
256: ac_prev=libexecdir ;;
257: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
258: | --libexe=* | --libex=* | --libe=*)
259: libexecdir="$ac_optarg" ;;
260:
261: -localstatedir | --localstatedir | --localstatedi | --localstated \
262: | --localstate | --localstat | --localsta | --localst \
263: | --locals | --local | --loca | --loc | --lo)
264: ac_prev=localstatedir ;;
265: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
266: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
267: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
268: localstatedir="$ac_optarg" ;;
269:
270: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
271: ac_prev=mandir ;;
272: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
273: mandir="$ac_optarg" ;;
274:
275: -nfp | --nfp | --nf)
276: # Obsolete; use --without-fp.
277: with_fp=no ;;
278:
279: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
280: | --no-cr | --no-c)
281: no_create=yes ;;
282:
283: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
284: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
285: no_recursion=yes ;;
286:
287: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
288: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
289: | --oldin | --oldi | --old | --ol | --o)
290: ac_prev=oldincludedir ;;
291: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
292: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
293: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
294: oldincludedir="$ac_optarg" ;;
295:
296: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
297: ac_prev=prefix ;;
298: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
299: prefix="$ac_optarg" ;;
300:
301: -program-prefix | --program-prefix | --program-prefi | --program-pref \
302: | --program-pre | --program-pr | --program-p)
303: ac_prev=program_prefix ;;
304: -program-prefix=* | --program-prefix=* | --program-prefi=* \
305: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
306: program_prefix="$ac_optarg" ;;
307:
308: -program-suffix | --program-suffix | --program-suffi | --program-suff \
309: | --program-suf | --program-su | --program-s)
310: ac_prev=program_suffix ;;
311: -program-suffix=* | --program-suffix=* | --program-suffi=* \
312: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
313: program_suffix="$ac_optarg" ;;
314:
315: -program-transform-name | --program-transform-name \
316: | --program-transform-nam | --program-transform-na \
317: | --program-transform-n | --program-transform- \
318: | --program-transform | --program-transfor \
319: | --program-transfo | --program-transf \
320: | --program-trans | --program-tran \
321: | --progr-tra | --program-tr | --program-t)
322: ac_prev=program_transform_name ;;
323: -program-transform-name=* | --program-transform-name=* \
324: | --program-transform-nam=* | --program-transform-na=* \
325: | --program-transform-n=* | --program-transform-=* \
326: | --program-transform=* | --program-transfor=* \
327: | --program-transfo=* | --program-transf=* \
328: | --program-trans=* | --program-tran=* \
329: | --progr-tra=* | --program-tr=* | --program-t=*)
330: program_transform_name="$ac_optarg" ;;
331:
332: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
333: | -silent | --silent | --silen | --sile | --sil)
334: silent=yes ;;
335:
336: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
337: ac_prev=sbindir ;;
338: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
339: | --sbi=* | --sb=*)
340: sbindir="$ac_optarg" ;;
341:
342: -sharedstatedir | --sharedstatedir | --sharedstatedi \
343: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
344: | --sharedst | --shareds | --shared | --share | --shar \
345: | --sha | --sh)
346: ac_prev=sharedstatedir ;;
347: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
348: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
349: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
350: | --sha=* | --sh=*)
351: sharedstatedir="$ac_optarg" ;;
352:
353: -site | --site | --sit)
354: ac_prev=site ;;
355: -site=* | --site=* | --sit=*)
356: site="$ac_optarg" ;;
357:
358: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
359: ac_prev=srcdir ;;
360: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
361: srcdir="$ac_optarg" ;;
362:
363: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
364: | --syscon | --sysco | --sysc | --sys | --sy)
365: ac_prev=sysconfdir ;;
366: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
367: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
368: sysconfdir="$ac_optarg" ;;
369:
370: -target | --target | --targe | --targ | --tar | --ta | --t)
371: ac_prev=target ;;
372: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
373: target="$ac_optarg" ;;
374:
375: -v | -verbose | --verbose | --verbos | --verbo | --verb)
376: verbose=yes ;;
377:
378: -version | --version | --versio | --versi | --vers)
379: echo "configure generated by autoconf version 2.13"
380: exit 0 ;;
381:
382: -with-* | --with-*)
383: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
384: # Reject names that are not valid shell variable names.
385: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
386: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387: fi
388: ac_package=`echo $ac_package| sed 's/-/_/g'`
389: case "$ac_option" in
390: *=*) ;;
391: *) ac_optarg=yes ;;
392: esac
393: eval "with_${ac_package}='$ac_optarg'" ;;
394:
395: -without-* | --without-*)
396: ac_package=`echo $ac_option|sed -e 's/-*without-//'`
397: # Reject names that are not valid shell variable names.
398: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
399: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
400: fi
401: ac_package=`echo $ac_package| sed 's/-/_/g'`
402: eval "with_${ac_package}=no" ;;
403:
404: --x)
405: # Obsolete; use --with-x.
406: with_x=yes ;;
407:
408: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
409: | --x-incl | --x-inc | --x-in | --x-i)
410: ac_prev=x_includes ;;
411: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
412: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
413: x_includes="$ac_optarg" ;;
414:
415: -x-libraries | --x-libraries | --x-librarie | --x-librari \
416: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
417: ac_prev=x_libraries ;;
418: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
419: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
420: x_libraries="$ac_optarg" ;;
421:
422: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
423: ;;
424:
425: *)
426: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
427: echo "configure: warning: $ac_option: invalid host type" 1>&2
428: fi
429: if test "x$nonopt" != xNONE; then
430: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
431: fi
432: nonopt="$ac_option"
433: ;;
434:
435: esac
436: done
437:
438: if test -n "$ac_prev"; then
439: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
440: fi
441:
442: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
443:
444: # File descriptor usage:
445: # 0 standard input
446: # 1 file creation
447: # 2 errors and warnings
448: # 3 some systems may open it to /dev/tty
449: # 4 used on the Kubota Titan
450: # 6 checking for... messages and results
451: # 5 compiler messages saved in config.log
452: if test "$silent" = yes; then
453: exec 6>/dev/null
454: else
455: exec 6>&1
456: fi
457: exec 5>./config.log
458:
459: echo "\
460: This file contains any messages produced by compilers while
461: running configure, to aid debugging if configure makes a mistake.
462: " 1>&5
463:
464: # Strip out --no-create and --no-recursion so they do not pile up.
465: # Also quote any args containing shell metacharacters.
466: ac_configure_args=
467: for ac_arg
468: do
469: case "$ac_arg" in
470: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471: | --no-cr | --no-c) ;;
472: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
473: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
474: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
475: ac_configure_args="$ac_configure_args '$ac_arg'" ;;
476: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
477: esac
478: done
479:
480: # NLS nuisances.
481: # Only set these to C if already set. These must not be set unconditionally
482: # because not all systems understand e.g. LANG=C (notably SCO).
483: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
484: # Non-C LC_CTYPE values break the ctype check.
485: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
486: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
487: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
488: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
489:
490: # confdefs.h avoids OS command line length limits that DEFS can exceed.
491: rm -rf conftest* confdefs.h
492: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
493: echo > confdefs.h
494:
495: # A filename unique to this package, relative to the directory that
496: # configure is in, which we can look for to find out if srcdir is correct.
497: ac_unique_file=README
498:
499: # Find the source files, if location was not specified.
500: if test -z "$srcdir"; then
501: ac_srcdir_defaulted=yes
502: # Try the directory containing this script, then its parent.
503: ac_prog=$0
504: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
505: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
506: srcdir=$ac_confdir
507: if test ! -r $srcdir/$ac_unique_file; then
508: srcdir=..
509: fi
510: else
511: ac_srcdir_defaulted=no
512: fi
513: if test ! -r $srcdir/$ac_unique_file; then
514: if test "$ac_srcdir_defaulted" = yes; then
515: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
516: else
517: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
518: fi
519: fi
520: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
521:
522: # Prefer explicitly selected file to automatically selected ones.
523: if test -z "$CONFIG_SITE"; then
524: if test "x$prefix" != xNONE; then
525: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
526: else
527: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
528: fi
529: fi
530: for ac_site_file in $CONFIG_SITE; do
531: if test -r "$ac_site_file"; then
532: echo "loading site script $ac_site_file"
533: . "$ac_site_file"
534: fi
535: done
536:
537: if test -r "$cache_file"; then
538: echo "loading cache $cache_file"
539: . $cache_file
540: else
541: echo "creating cache $cache_file"
542: > $cache_file
543: fi
544:
545: ac_ext=c
546: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
547: ac_cpp='$CPP $CPPFLAGS'
548: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
549: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
550: cross_compiling=$ac_cv_prog_cc_cross
551:
552: ac_exeext=
553: ac_objext=o
554: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
555: # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
556: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
557: ac_n= ac_c='
558: ' ac_t=' '
559: else
560: ac_n=-n ac_c= ac_t=
561: fi
562: else
563: ac_n= ac_c='\c' ac_t=
564: fi
565:
566:
567: ac_aux_dir=
568: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
569: if test -f $ac_dir/install-sh; then
570: ac_aux_dir=$ac_dir
571: ac_install_sh="$ac_aux_dir/install-sh -c"
572: break
573: elif test -f $ac_dir/install.sh; then
574: ac_aux_dir=$ac_dir
575: ac_install_sh="$ac_aux_dir/install.sh -c"
576: break
577: fi
578: done
579: if test -z "$ac_aux_dir"; then
580: { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
581: fi
582: ac_config_guess=$ac_aux_dir/config.guess
583: ac_config_sub=$ac_aux_dir/config.sub
584: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
585:
586: # Find a good install program. We prefer a C program (faster),
587: # so one script is as good as another. But avoid the broken or
588: # incompatible versions:
589: # SysV /etc/install, /usr/sbin/install
590: # SunOS /usr/etc/install
591: # IRIX /sbin/install
592: # AIX /bin/install
593: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
594: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
595: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
596: # ./install, which can be erroneously created by make from ./install.sh.
597: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.17 paf 598: echo "configure:599: checking for a BSD compatible install" >&5
1.1 paf 599: if test -z "$INSTALL"; then
600: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
601: echo $ac_n "(cached) $ac_c" 1>&6
602: else
603: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
604: for ac_dir in $PATH; do
605: # Account for people who put trailing slashes in PATH elements.
606: case "$ac_dir/" in
607: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
608: *)
609: # OSF1 and SCO ODT 3.0 have their own names for install.
610: # Don't use installbsd from OSF since it installs stuff as root
611: # by default.
612: for ac_prog in ginstall scoinst install; do
613: if test -f $ac_dir/$ac_prog; then
614: if test $ac_prog = install &&
615: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
616: # AIX install. It has an incompatible calling convention.
617: :
618: else
619: ac_cv_path_install="$ac_dir/$ac_prog -c"
620: break 2
621: fi
622: fi
623: done
624: ;;
625: esac
626: done
627: IFS="$ac_save_IFS"
628:
629: fi
630: if test "${ac_cv_path_install+set}" = set; then
631: INSTALL="$ac_cv_path_install"
632: else
633: # As a last resort, use the slow shell script. We don't cache a
634: # path for INSTALL within a source directory, because that will
635: # break other packages using the cache if that directory is
636: # removed, or if the path is relative.
637: INSTALL="$ac_install_sh"
638: fi
639: fi
640: echo "$ac_t""$INSTALL" 1>&6
641:
642: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
643: # It thinks the first close brace ends the variable substitution.
644: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
645:
646: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
647:
648: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
649:
650: echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1.17 paf 651: echo "configure:652: checking whether build environment is sane" >&5
1.1 paf 652: # Just in case
653: sleep 1
654: echo timestamp > conftestfile
655: # Do `set' in a subshell so we don't clobber the current shell's
656: # arguments. Must try -L first in case configure is actually a
657: # symlink; some systems play weird games with the mod time of symlinks
658: # (eg FreeBSD returns the mod time of the symlink's containing
659: # directory).
660: if (
661: set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
662: if test "$*" = "X"; then
663: # -L didn't work.
664: set X `ls -t $srcdir/configure conftestfile`
665: fi
666: if test "$*" != "X $srcdir/configure conftestfile" \
667: && test "$*" != "X conftestfile $srcdir/configure"; then
668:
669: # If neither matched, then we have a broken ls. This can happen
670: # if, for instance, CONFIG_SHELL is bash and it inherits a
671: # broken ls alias from the environment. This has actually
672: # happened. Such a system could not be considered "sane".
673: { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
674: alias in your environment" 1>&2; exit 1; }
675: fi
676:
677: test "$2" = conftestfile
678: )
679: then
680: # Ok.
681: :
682: else
683: { echo "configure: error: newly created file is older than distributed files!
684: Check your system clock" 1>&2; exit 1; }
685: fi
686: rm -f conftest*
687: echo "$ac_t""yes" 1>&6
688: if test "$program_transform_name" = s,x,x,; then
689: program_transform_name=
690: else
691: # Double any \ or $. echo might interpret backslashes.
692: cat <<\EOF_SED > conftestsed
693: s,\\,\\\\,g; s,\$,$$,g
694: EOF_SED
695: program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
696: rm -f conftestsed
697: fi
698: test "$program_prefix" != NONE &&
699: program_transform_name="s,^,${program_prefix},; $program_transform_name"
700: # Use a double $ so make ignores it.
701: test "$program_suffix" != NONE &&
702: program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
703:
704: # sed with no file args requires a program.
705: test "$program_transform_name" = "" && program_transform_name="s,x,x,"
706:
707: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.17 paf 708: echo "configure:709: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.1 paf 709: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
710: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
711: echo $ac_n "(cached) $ac_c" 1>&6
712: else
713: cat > conftestmake <<\EOF
714: all:
715: @echo 'ac_maketemp="${MAKE}"'
716: EOF
717: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
718: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
719: if test -n "$ac_maketemp"; then
720: eval ac_cv_prog_make_${ac_make}_set=yes
721: else
722: eval ac_cv_prog_make_${ac_make}_set=no
723: fi
724: rm -f conftestmake
725: fi
726: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
727: echo "$ac_t""yes" 1>&6
728: SET_MAKE=
729: else
730: echo "$ac_t""no" 1>&6
731: SET_MAKE="MAKE=${MAKE-make}"
732: fi
733:
734:
735: PACKAGE=parser
736:
1.20 paf 737: VERSION=3.0.HEAD
1.1 paf 738:
739: if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
740: { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
741: fi
742:
743:
744:
745: missing_dir=`cd $ac_aux_dir && pwd`
746: echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1.17 paf 747: echo "configure:748: checking for working aclocal" >&5
1.1 paf 748: # Run test in a subshell; some versions of sh will print an error if
749: # an executable is not found, even if stderr is redirected.
750: # Redirect stdin to placate older versions of autoconf. Sigh.
751: if (aclocal --version) < /dev/null > /dev/null 2>&1; then
752: ACLOCAL=aclocal
753: echo "$ac_t""found" 1>&6
754: else
755: ACLOCAL="$missing_dir/missing aclocal"
756: echo "$ac_t""missing" 1>&6
757: fi
758:
759: echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1.17 paf 760: echo "configure:761: checking for working autoconf" >&5
1.1 paf 761: # Run test in a subshell; some versions of sh will print an error if
762: # an executable is not found, even if stderr is redirected.
763: # Redirect stdin to placate older versions of autoconf. Sigh.
764: if (autoconf --version) < /dev/null > /dev/null 2>&1; then
765: AUTOCONF=autoconf
766: echo "$ac_t""found" 1>&6
767: else
768: AUTOCONF="$missing_dir/missing autoconf"
769: echo "$ac_t""missing" 1>&6
770: fi
771:
772: echo $ac_n "checking for working automake""... $ac_c" 1>&6
1.17 paf 773: echo "configure:774: checking for working automake" >&5
1.1 paf 774: # Run test in a subshell; some versions of sh will print an error if
775: # an executable is not found, even if stderr is redirected.
776: # Redirect stdin to placate older versions of autoconf. Sigh.
777: if (automake --version) < /dev/null > /dev/null 2>&1; then
778: AUTOMAKE=automake
779: echo "$ac_t""found" 1>&6
780: else
781: AUTOMAKE="$missing_dir/missing automake"
782: echo "$ac_t""missing" 1>&6
783: fi
784:
785: echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1.17 paf 786: echo "configure:787: checking for working autoheader" >&5
1.1 paf 787: # Run test in a subshell; some versions of sh will print an error if
788: # an executable is not found, even if stderr is redirected.
789: # Redirect stdin to placate older versions of autoconf. Sigh.
790: if (autoheader --version) < /dev/null > /dev/null 2>&1; then
791: AUTOHEADER=autoheader
792: echo "$ac_t""found" 1>&6
793: else
794: AUTOHEADER="$missing_dir/missing autoheader"
795: echo "$ac_t""missing" 1>&6
796: fi
797:
798: echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1.17 paf 799: echo "configure:800: checking for working makeinfo" >&5
1.1 paf 800: # Run test in a subshell; some versions of sh will print an error if
801: # an executable is not found, even if stderr is redirected.
802: # Redirect stdin to placate older versions of autoconf. Sigh.
803: if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
804: MAKEINFO=makeinfo
805: echo "$ac_t""found" 1>&6
806: else
807: MAKEINFO="$missing_dir/missing makeinfo"
808: echo "$ac_t""missing" 1>&6
809: fi
810:
811:
812:
1.12 paf 813: P3S=`cd $srcdir/src ; pwd`
1.1 paf 814:
815:
816: PARSER_VERSION=$VERSION
1.6 paf 817: echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new
818: echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new
819: echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new
820: cmp $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h >/dev/null 2>&1
1.1 paf 821: if test $? -ne 0 ; then
1.6 paf 822: rm -f $srcdir/src/include/pa_version.h && mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h && \
823: echo Updated $srcdir/src/include/pa_version.h
1.1 paf 824: else
1.6 paf 825: rm -f $srcdir/src/include/pa_version.h.new
1.1 paf 826: fi
827:
828: # Find a good install program. We prefer a C program (faster),
829: # so one script is as good as another. But avoid the broken or
830: # incompatible versions:
831: # SysV /etc/install, /usr/sbin/install
832: # SunOS /usr/etc/install
833: # IRIX /sbin/install
834: # AIX /bin/install
835: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
836: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
837: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
838: # ./install, which can be erroneously created by make from ./install.sh.
839: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.17 paf 840: echo "configure:841: checking for a BSD compatible install" >&5
1.1 paf 841: if test -z "$INSTALL"; then
842: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
843: echo $ac_n "(cached) $ac_c" 1>&6
844: else
845: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
846: for ac_dir in $PATH; do
847: # Account for people who put trailing slashes in PATH elements.
848: case "$ac_dir/" in
849: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
850: *)
851: # OSF1 and SCO ODT 3.0 have their own names for install.
852: # Don't use installbsd from OSF since it installs stuff as root
853: # by default.
854: for ac_prog in ginstall scoinst install; do
855: if test -f $ac_dir/$ac_prog; then
856: if test $ac_prog = install &&
857: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
858: # AIX install. It has an incompatible calling convention.
859: :
860: else
861: ac_cv_path_install="$ac_dir/$ac_prog -c"
862: break 2
863: fi
864: fi
865: done
866: ;;
867: esac
868: done
869: IFS="$ac_save_IFS"
870:
871: fi
872: if test "${ac_cv_path_install+set}" = set; then
873: INSTALL="$ac_cv_path_install"
874: else
875: # As a last resort, use the slow shell script. We don't cache a
876: # path for INSTALL within a source directory, because that will
877: # break other packages using the cache if that directory is
878: # removed, or if the path is relative.
879: INSTALL="$ac_install_sh"
880: fi
881: fi
882: echo "$ac_t""$INSTALL" 1>&6
883:
884: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
885: # It thinks the first close brace ends the variable substitution.
886: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
887:
888: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
889:
890: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
891:
892: # Extract the first word of "gcc", so it can be a program name with args.
893: set dummy gcc; ac_word=$2
894: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.17 paf 895: echo "configure:896: checking for $ac_word" >&5
1.1 paf 896: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
897: echo $ac_n "(cached) $ac_c" 1>&6
898: else
899: if test -n "$CC"; then
900: ac_cv_prog_CC="$CC" # Let the user override the test.
901: else
902: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
903: ac_dummy="$PATH"
904: for ac_dir in $ac_dummy; do
905: test -z "$ac_dir" && ac_dir=.
906: if test -f $ac_dir/$ac_word; then
907: ac_cv_prog_CC="gcc"
908: break
909: fi
910: done
911: IFS="$ac_save_ifs"
912: fi
913: fi
914: CC="$ac_cv_prog_CC"
915: if test -n "$CC"; then
916: echo "$ac_t""$CC" 1>&6
917: else
918: echo "$ac_t""no" 1>&6
919: fi
920:
921: if test -z "$CC"; then
922: # Extract the first word of "cc", so it can be a program name with args.
923: set dummy cc; ac_word=$2
924: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.17 paf 925: echo "configure:926: checking for $ac_word" >&5
1.1 paf 926: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
927: echo $ac_n "(cached) $ac_c" 1>&6
928: else
929: if test -n "$CC"; then
930: ac_cv_prog_CC="$CC" # Let the user override the test.
931: else
932: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
933: ac_prog_rejected=no
934: ac_dummy="$PATH"
935: for ac_dir in $ac_dummy; do
936: test -z "$ac_dir" && ac_dir=.
937: if test -f $ac_dir/$ac_word; then
938: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
939: ac_prog_rejected=yes
940: continue
941: fi
942: ac_cv_prog_CC="cc"
943: break
944: fi
945: done
946: IFS="$ac_save_ifs"
947: if test $ac_prog_rejected = yes; then
948: # We found a bogon in the path, so make sure we never use it.
949: set dummy $ac_cv_prog_CC
950: shift
951: if test $# -gt 0; then
952: # We chose a different compiler from the bogus one.
953: # However, it has the same basename, so the bogon will be chosen
954: # first if we set CC to just the basename; use the full file name.
955: shift
956: set dummy "$ac_dir/$ac_word" "$@"
957: shift
958: ac_cv_prog_CC="$@"
959: fi
960: fi
961: fi
962: fi
963: CC="$ac_cv_prog_CC"
964: if test -n "$CC"; then
965: echo "$ac_t""$CC" 1>&6
966: else
967: echo "$ac_t""no" 1>&6
968: fi
969:
970: if test -z "$CC"; then
971: case "`uname -s`" in
972: *win32* | *WIN32*)
973: # Extract the first word of "cl", so it can be a program name with args.
974: set dummy cl; ac_word=$2
975: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.17 paf 976: echo "configure:977: checking for $ac_word" >&5
1.1 paf 977: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
978: echo $ac_n "(cached) $ac_c" 1>&6
979: else
980: if test -n "$CC"; then
981: ac_cv_prog_CC="$CC" # Let the user override the test.
982: else
983: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
984: ac_dummy="$PATH"
985: for ac_dir in $ac_dummy; do
986: test -z "$ac_dir" && ac_dir=.
987: if test -f $ac_dir/$ac_word; then
988: ac_cv_prog_CC="cl"
989: break
990: fi
991: done
992: IFS="$ac_save_ifs"
993: fi
994: fi
995: CC="$ac_cv_prog_CC"
996: if test -n "$CC"; then
997: echo "$ac_t""$CC" 1>&6
998: else
999: echo "$ac_t""no" 1>&6
1000: fi
1001: ;;
1002: esac
1003: fi
1004: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1005: fi
1006:
1007: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.17 paf 1008: echo "configure:1009: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1 paf 1009:
1010: ac_ext=c
1011: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1012: ac_cpp='$CPP $CPPFLAGS'
1013: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1014: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1015: cross_compiling=$ac_cv_prog_cc_cross
1016:
1017: cat > conftest.$ac_ext << EOF
1018:
1.17 paf 1019: #line 1020 "configure"
1.1 paf 1020: #include "confdefs.h"
1021:
1022: main(){return(0);}
1023: EOF
1.17 paf 1024: if { (eval echo configure:1025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 1025: ac_cv_prog_cc_works=yes
1026: # If we can't run a trivial program, we are probably using a cross compiler.
1027: if (./conftest; exit) 2>/dev/null; then
1028: ac_cv_prog_cc_cross=no
1029: else
1030: ac_cv_prog_cc_cross=yes
1031: fi
1032: else
1033: echo "configure: failed program was:" >&5
1034: cat conftest.$ac_ext >&5
1035: ac_cv_prog_cc_works=no
1036: fi
1037: rm -fr conftest*
1038: ac_ext=c
1039: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1040: ac_cpp='$CPP $CPPFLAGS'
1041: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1042: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1043: cross_compiling=$ac_cv_prog_cc_cross
1044:
1045: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1046: if test $ac_cv_prog_cc_works = no; then
1047: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1048: fi
1049: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.17 paf 1050: echo "configure:1051: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1 paf 1051: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1052: cross_compiling=$ac_cv_prog_cc_cross
1053:
1054: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.17 paf 1055: echo "configure:1056: checking whether we are using GNU C" >&5
1.1 paf 1056: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1057: echo $ac_n "(cached) $ac_c" 1>&6
1058: else
1059: cat > conftest.c <<EOF
1060: #ifdef __GNUC__
1061: yes;
1062: #endif
1063: EOF
1.17 paf 1064: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1 paf 1065: ac_cv_prog_gcc=yes
1066: else
1067: ac_cv_prog_gcc=no
1068: fi
1069: fi
1070:
1071: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1072:
1073: if test $ac_cv_prog_gcc = yes; then
1074: GCC=yes
1075: else
1076: GCC=
1077: fi
1078:
1079: ac_test_CFLAGS="${CFLAGS+set}"
1080: ac_save_CFLAGS="$CFLAGS"
1081: CFLAGS=
1082: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.17 paf 1083: echo "configure:1084: checking whether ${CC-cc} accepts -g" >&5
1.1 paf 1084: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1085: echo $ac_n "(cached) $ac_c" 1>&6
1086: else
1087: echo 'void f(){}' > conftest.c
1088: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1089: ac_cv_prog_cc_g=yes
1090: else
1091: ac_cv_prog_cc_g=no
1092: fi
1093: rm -f conftest*
1094:
1095: fi
1096:
1097: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1098: if test "$ac_test_CFLAGS" = set; then
1099: CFLAGS="$ac_save_CFLAGS"
1100: elif test $ac_cv_prog_cc_g = yes; then
1101: if test "$GCC" = yes; then
1102: CFLAGS="-g -O2"
1103: else
1104: CFLAGS="-g"
1105: fi
1106: else
1107: if test "$GCC" = yes; then
1108: CFLAGS="-O2"
1109: else
1110: CFLAGS=
1111: fi
1112: fi
1113:
1114: ac_ext=c
1115: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1116: ac_cpp='$CPP $CPPFLAGS'
1117: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1118: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1119: cross_compiling=$ac_cv_prog_cc_cross
1120: echo $ac_n "checking for inline""... $ac_c" 1>&6
1.17 paf 1121: echo "configure:1122: checking for inline" >&5
1.1 paf 1122: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1123: echo $ac_n "(cached) $ac_c" 1>&6
1124: else
1125: ac_cv_c_inline=no
1126: for ac_kw in inline __inline__ __inline; do
1127: cat > conftest.$ac_ext <<EOF
1.17 paf 1128: #line 1129 "configure"
1.1 paf 1129: #include "confdefs.h"
1130:
1131: int main() {
1132: } $ac_kw foo() {
1133: ; return 0; }
1134: EOF
1.17 paf 1135: if { (eval echo configure:1136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 paf 1136: rm -rf conftest*
1137: ac_cv_c_inline=$ac_kw; break
1138: else
1139: echo "configure: failed program was:" >&5
1140: cat conftest.$ac_ext >&5
1141: fi
1142: rm -f conftest*
1143: done
1144:
1145: fi
1146:
1147: echo "$ac_t""$ac_cv_c_inline" 1>&6
1148: case "$ac_cv_c_inline" in
1149: inline | yes) ;;
1150: no) cat >> confdefs.h <<\EOF
1151: #define inline
1152: EOF
1153: ;;
1154: *) cat >> confdefs.h <<EOF
1155: #define inline $ac_cv_c_inline
1156: EOF
1157: ;;
1158: esac
1159:
1160: for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1161: do
1162: # Extract the first word of "$ac_prog", so it can be a program name with args.
1163: set dummy $ac_prog; ac_word=$2
1164: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.17 paf 1165: echo "configure:1166: checking for $ac_word" >&5
1.1 paf 1166: if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1167: echo $ac_n "(cached) $ac_c" 1>&6
1168: else
1169: if test -n "$CXX"; then
1170: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1171: else
1172: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1173: ac_dummy="$PATH"
1174: for ac_dir in $ac_dummy; do
1175: test -z "$ac_dir" && ac_dir=.
1176: if test -f $ac_dir/$ac_word; then
1177: ac_cv_prog_CXX="$ac_prog"
1178: break
1179: fi
1180: done
1181: IFS="$ac_save_ifs"
1182: fi
1183: fi
1184: CXX="$ac_cv_prog_CXX"
1185: if test -n "$CXX"; then
1186: echo "$ac_t""$CXX" 1>&6
1187: else
1188: echo "$ac_t""no" 1>&6
1189: fi
1190:
1191: test -n "$CXX" && break
1192: done
1193: test -n "$CXX" || CXX="gcc"
1194:
1195:
1196: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.17 paf 1197: echo "configure:1198: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1.1 paf 1198:
1199: ac_ext=C
1200: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1201: ac_cpp='$CXXCPP $CPPFLAGS'
1202: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1203: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1204: cross_compiling=$ac_cv_prog_cxx_cross
1205:
1206: cat > conftest.$ac_ext << EOF
1207:
1.17 paf 1208: #line 1209 "configure"
1.1 paf 1209: #include "confdefs.h"
1210:
1211: int main(){return(0);}
1212: EOF
1.17 paf 1213: if { (eval echo configure:1214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 1214: ac_cv_prog_cxx_works=yes
1215: # If we can't run a trivial program, we are probably using a cross compiler.
1216: if (./conftest; exit) 2>/dev/null; then
1217: ac_cv_prog_cxx_cross=no
1218: else
1219: ac_cv_prog_cxx_cross=yes
1220: fi
1221: else
1222: echo "configure: failed program was:" >&5
1223: cat conftest.$ac_ext >&5
1224: ac_cv_prog_cxx_works=no
1225: fi
1226: rm -fr conftest*
1227: ac_ext=c
1228: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1229: ac_cpp='$CPP $CPPFLAGS'
1230: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1231: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1232: cross_compiling=$ac_cv_prog_cc_cross
1233:
1234: echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1235: if test $ac_cv_prog_cxx_works = no; then
1236: { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1237: fi
1238: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.17 paf 1239: echo "configure:1240: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1 paf 1240: echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1241: cross_compiling=$ac_cv_prog_cxx_cross
1242:
1243: echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1.17 paf 1244: echo "configure:1245: checking whether we are using GNU C++" >&5
1.1 paf 1245: if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1246: echo $ac_n "(cached) $ac_c" 1>&6
1247: else
1248: cat > conftest.C <<EOF
1249: #ifdef __GNUC__
1250: yes;
1251: #endif
1252: EOF
1.17 paf 1253: if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1 paf 1254: ac_cv_prog_gxx=yes
1255: else
1256: ac_cv_prog_gxx=no
1257: fi
1258: fi
1259:
1260: echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1261:
1262: if test $ac_cv_prog_gxx = yes; then
1263: GXX=yes
1264: else
1265: GXX=
1266: fi
1267:
1268: ac_test_CXXFLAGS="${CXXFLAGS+set}"
1269: ac_save_CXXFLAGS="$CXXFLAGS"
1270: CXXFLAGS=
1271: echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1.17 paf 1272: echo "configure:1273: checking whether ${CXX-g++} accepts -g" >&5
1.1 paf 1273: if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1274: echo $ac_n "(cached) $ac_c" 1>&6
1275: else
1276: echo 'void f(){}' > conftest.cc
1277: if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1278: ac_cv_prog_cxx_g=yes
1279: else
1280: ac_cv_prog_cxx_g=no
1281: fi
1282: rm -f conftest*
1283:
1284: fi
1285:
1286: echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1287: if test "$ac_test_CXXFLAGS" = set; then
1288: CXXFLAGS="$ac_save_CXXFLAGS"
1289: elif test $ac_cv_prog_cxx_g = yes; then
1290: if test "$GXX" = yes; then
1291: CXXFLAGS="-g -O2"
1292: else
1293: CXXFLAGS="-g"
1294: fi
1295: else
1296: if test "$GXX" = yes; then
1297: CXXFLAGS="-O2"
1298: else
1299: CXXFLAGS=
1300: fi
1301: fi
1302:
1303: ac_ext=C
1304: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1305: ac_cpp='$CXXCPP $CPPFLAGS'
1306: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1307: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1308: cross_compiling=$ac_cv_prog_cxx_cross
1309:
1310:
1311:
1312:
1.15 paf 1313: # Check whether --enable-link-libstdcpp or --disable-link-libstdcpp was given.
1314: if test "${enable_link_libstdcpp+set}" = set; then
1315: enableval="$enable_link_libstdcpp"
1316:
1317: LINK_LIBSTDCPP_FLAG=$enableval
1318: if test "$enableval" = "no"; then
1319: echo "configure: warning: disabling libstdc++ linkage" 1>&2
1320: fi
1321:
1322:
1323: fi
1324:
1325:
1326:
1327: if test "$LINK_LIBSTDCPP_FLAG" = "no"; then
1328: DO_NOT_LINK_LIBSTDCPP_TRUE=
1329: DO_NOT_LINK_LIBSTDCPP_FALSE='#'
1330: else
1331: DO_NOT_LINK_LIBSTDCPP_TRUE='#'
1332: DO_NOT_LINK_LIBSTDCPP_FALSE=
1333: fi
1334:
1.1 paf 1335: # Check whether --enable-string-origins or --disable-string-origins was given.
1336: if test "${enable_string_origins+set}" = set; then
1337: enableval="$enable_string_origins"
1338:
1339: if test "$enableval" = "no"; then
1.14 paf 1340: echo "configure: warning: disabling string origin tracking" 1>&2
1.1 paf 1341: cat >> confdefs.h <<\EOF
1342: #define NO_STRING_ORIGIN
1343: EOF
1344:
1345: fi
1346:
1347:
1348: fi
1349:
1350:
1.13 paf 1351: # Check whether --enable-execs or --disable-execs was given.
1352: if test "${enable_execs+set}" = set; then
1353: enableval="$enable_execs"
1354:
1355: if test "$enableval" = "no"; then
1.14 paf 1356: echo "configure: warning: disabling file execs" 1>&2
1.13 paf 1357: cat >> confdefs.h <<\EOF
1358: #define NO_PA_EXECS
1359: EOF
1360:
1361: fi
1362:
1363:
1364: fi
1365:
1366:
1.14 paf 1367: # Check whether --enable-foreign-group-files or --disable-foreign-group-files was given.
1368: if test "${enable_foreign_group_files+set}" = set; then
1369: enableval="$enable_foreign_group_files"
1370:
1371: if test "$enableval" = "no"; then
1372: echo "configure: warning: disabling reading of files belonging to group other then effective" 1>&2
1373: cat >> confdefs.h <<\EOF
1374: #define NO_FOREIGN_GROUP_FILES
1375: EOF
1376:
1377: fi
1378:
1379:
1380: fi
1381:
1.18 paf 1382: srccharsetsdir=$srcdir/etc/parser3.charsets
1.17 paf 1383: CHARSETS_REQUESTED="windows-1251"
1384: # Check whether --with-charsets or --without-charsets was given.
1385: if test "${with_charsets+set}" = set; then
1386: withval="$with_charsets"
1387: CHARSETS_REQUESTED=`echo $withval | sed -e 's/,/ /g'`
1388: fi
1389:
1390:
1.18 paf 1391: # Checking whether all requested charsets have corresponding .cfg files
1392: for c in $CHARSETS_REQUESTED; do
1393: if test \! -f $srccharsetsdir/$c.cfg; then
1394: { echo "configure: error: bad charset requested "$c" - file $srccharsetsdir/$c.cfg not found" 1>&2; exit 1; }
1395: fi
1396: done
1.17 paf 1397:
1.18 paf 1398: # Switching on commentcharset_XXX='#'
1.17 paf 1399:
1400:
1401: commentcharset_windows1251='#'
1.18 paf 1402: for c in $CHARSETS_REQUESTED; do
1.17 paf 1403: if test "windows-1251" = "$c"; then
1.18 paf 1404: echo "configure: warning: Enabling charset windows-1251" 1>&2
1405: commentcharset_windows1251=
1.17 paf 1406: fi
1407: done
1408:
1409:
1410:
1411: commentcharset_windows1250='#'
1.18 paf 1412: for c in $CHARSETS_REQUESTED; do
1.17 paf 1413: if test "windows-1250" = "$c"; then
1.18 paf 1414: echo "configure: warning: Enabling charset windows-1250" 1>&2
1415: commentcharset_windows1250=
1.17 paf 1416: fi
1417: done
1418:
1419:
1420:
1421: commentcharset_windows1257='#'
1.18 paf 1422: for c in $CHARSETS_REQUESTED; do
1.17 paf 1423: if test "windows-1257" = "$c"; then
1.18 paf 1424: echo "configure: warning: Enabling charset windows-1257" 1>&2
1425: commentcharset_windows1257=
1.17 paf 1426: fi
1427: done
1428:
1429:
1430:
1431: commentcharset_koi8r='#'
1.18 paf 1432: for c in $CHARSETS_REQUESTED; do
1.17 paf 1433: if test "koi8-r" = "$c"; then
1.18 paf 1434: echo "configure: warning: Enabling charset koi8-r" 1>&2
1435: commentcharset_koi8r=
1.17 paf 1436: fi
1437: done
1438:
1439:
1440:
1441:
1442: # Check whether --with-mysql-client or --without-mysql-client was given.
1443: if test "${with_mysql_client+set}" = set; then
1444: withval="$with_mysql_client"
1445: mysql_client=$withval
1446:
1447: else
1448: echo $ac_n "checking for mysql client""... $ac_c" 1>&6
1.18 paf 1449: echo "configure:1450: checking for mysql client" >&5
1.17 paf 1450: for lib in \
1451: /usr/local/lib/mysql/libmysqlclient.so \
1452: /usr/local/lib/libmysqlclient.so \
1453: /usr/lib/libmysqlclient.so; do
1454: if test -f $lib; then mysql_client=$lib; fi
1455: done
1456:
1457: if test -z "$mysql_client"; then
1458: mysql_client="-configure could not guess-"
1459: echo "configure: warning: could not guess mysql client" 1>&2
1460: else
1461: echo "$ac_t""$mysql_client" 1>&6
1462: fi
1463:
1464:
1465: fi
1466:
1467:
1468:
1469: # Check whether --with-pgsql-client or --without-pgsql-client was given.
1470: if test "${with_pgsql_client+set}" = set; then
1471: withval="$with_pgsql_client"
1472: mysql_client=$withval
1473:
1474: else
1475: echo $ac_n "checking for pgsql client""... $ac_c" 1>&6
1.18 paf 1476: echo "configure:1477: checking for pgsql client" >&5
1.17 paf 1477: for lib in \
1478: /usr/local/pgsql/lib/libpq.so \
1479: /usr/local/lib/libpq.so \
1480: /usr/lib/libpq.so; do
1481: if test -f $lib; then pgsql_client=$lib; fi
1482: done
1483:
1484: if test -z "$pgsql_client"; then
1485: pgsql_client="-configure could not guess-"
1486: echo "configure: warning: could not guess pgsql client" 1>&2
1487: else
1488: echo "$ac_t""$pgsql_client" 1>&6
1489: fi
1490:
1491:
1492: fi
1493:
1494:
1495:
1496: # Check whether --with-oracle-client or --without-oracle-client was given.
1497: if test "${with_oracle_client+set}" = set; then
1498: withval="$with_oracle_client"
1499: oracle_client=$withval
1500:
1501: else
1502: echo $ac_n "checking for oracle client""... $ac_c" 1>&6
1.18 paf 1503: echo "configure:1504: checking for oracle client" >&5
1.17 paf 1504: lib=$ORACLE_HOME/lib/libclntsh.so
1505: if test -f $lib; then oracle_client=$lib; fi
1506:
1507: if test -z "$oracle_client"; then
1508: oracle_client="-configure could not guess-"
1509: echo "configure: warning: could not guess oracle client" 1>&2
1510: else
1511: oracle_client="$oracle_client?ORACLE_HOME=$ORACLE_HOME&ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data"
1512: echo "$ac_t""$oracle_client" 1>&6
1513: fi
1514:
1515:
1516: fi
1517:
1518:
1519:
1520:
1.14 paf 1521:
1.1 paf 1522: # Check whether --with-pathlink or --without-pathlink was given.
1523: if test "${with_pathlink+set}" = set; then
1524: withval="$with_pathlink"
1525: LD_PATHLINK=$withval
1526:
1527: fi
1528:
1529:
1.15 paf 1530:
1.7 paf 1531: # Check whether --with-glib-config or --without-glib-config was given.
1532: if test "${with_glib_config+set}" = set; then
1533: withval="$with_glib_config"
1534: GLIB_CONFIG=$withval
1535:
1536: fi
1537:
1538:
1.10 paf 1539: # Check whether --with-shared-xml or --without-shared-xml was given.
1540: if test "${with_shared_xml+set}" = set; then
1541: withval="$with_shared_xml"
1.1 paf 1542:
1543: GNOME_XML=$withval
1.11 paf 1544: XMLBIN="$GNOME_XML/bin"
1545: XMLINC="$GNOME_XML/include"
1546: XMLLIB="$GNOME_XML/lib"
1.1 paf 1547:
1.11 paf 1548: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
1.1 paf 1549: { echo "configure: error: $GNOME_XML does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
1550: fi
1551:
1552: cat >> confdefs.h <<\EOF
1553: #define XML
1554: EOF
1555:
1556:
1.11 paf 1557: LIBXML2_SO_NAME=`cd $XMLLIB ; ls libxml2.?? libxml2.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1558: LIBGDOME_SO_NAME=`cd $XMLLIB ; ls libgdome.?? libgdome.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1559: LIBXSLT_SO_NAME=`cd $XMLLIB ; ls libxslt.?? libxslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1560: LIBEXSLT_SO_NAME=`cd $XMLLIB ; ls libexslt.?? libexslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1.7 paf 1561:
1562: if test -z "$GLIB_CONFIG"; then
1.11 paf 1563: GLIB_CONFIG=$XMLBIN/glib-config
1.7 paf 1564: if test \! -x $GLIB_CONFIG; then
1565: GLIB_CONFIG=glib-config
1566: fi
1.1 paf 1567: fi
1568: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1569: GLIB_LIBS=`$GLIB_CONFIG --libs`
1570:
1.11 paf 1571: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libgdome -I$XMLINC/libxml2"
1572: XML_LIBS="$GLIB_LIBS -L$XMLLIB -l$LIBXML2_SO_NAME -l$LIBGDOME_SO_NAME -l$LIBXSLT_SO_NAME -l$LIBEXSLT_SO_NAME"
1.1 paf 1573: if test \! -z "$LD_PATHLINK"; then
1.11 paf 1574: XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB"
1.1 paf 1575: fi
1576:
1577: fi
1578:
1579:
1.10 paf 1580: # Check whether --with-static-xml or --without-static-xml was given.
1581: if test "${with_static_xml+set}" = set; then
1582: withval="$with_static_xml"
1583:
1584: GNOME_XML=$withval
1.11 paf 1585: XMLBIN="$GNOME_XML/bin"
1586: XMLINC="$GNOME_XML/include"
1587: XMLLIB="$GNOME_XML/lib"
1.10 paf 1588:
1.11 paf 1589: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
1.10 paf 1590: { echo "configure: error: $GNOME_XML does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
1591: fi
1592:
1593: cat >> confdefs.h <<\EOF
1594: #define XML
1595: EOF
1596:
1597:
1598: if test -z "$GLIB_CONFIG"; then
1.11 paf 1599: GLIB_CONFIG=$XMLBIN/glib-config
1.10 paf 1600: if test \! -x $GLIB_CONFIG; then
1601: GLIB_CONFIG=glib-config
1602: fi
1603: fi
1604: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1605:
1.11 paf 1606: GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
1607: GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
1608: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libgdome -I$XMLINC/libxml2"
1609: XML_LIBS="$XMLLIB/libgdome.a $XMLLIB/libxslt.a $XMLLIB/libexslt.a $XMLLIB/libxml2.a $GLIB_DIR/lib$GLIB_NAME.a"
1.10 paf 1610:
1611: fi
1612:
1613:
1.1 paf 1614:
1615:
1.16 paf 1616:
1617: # Check whether --with-sendmail or --without-sendmail was given.
1618: if test "${with_sendmail+set}" = set; then
1619: withval="$with_sendmail"
1620: cat >> confdefs.h <<EOF
1621: #define PA_FORCED_SENDMAIL "$withval"
1622: EOF
1623:
1624:
1625: fi
1626:
1627:
1628:
1.12 paf 1629: # Check whether --with-apache13 or --without-apache13 was given.
1630: if test "${with_apache13+set}" = set; then
1631: withval="$with_apache13"
1632: APACHE13=$withval
1633: if test \! -f "$APACHE13/src/include/httpd.h"; then
1634: { echo "configure: error: $APACHE13 does not seem to be valid Apache13 source distribution directory" 1>&2; exit 1; }
1635: fi
1636:
1637: fi
1638:
1639:
1640:
1641:
1642: if test -n "$APACHE13"; then
1643: COMPILE_APACHE13_MODULE_TRUE=
1644: COMPILE_APACHE13_MODULE_FALSE='#'
1645: else
1646: COMPILE_APACHE13_MODULE_TRUE='#'
1647: COMPILE_APACHE13_MODULE_FALSE=
1648: fi
1649:
1650:
1.1 paf 1651:
1652: # Make sure we can run config.sub.
1653: if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1654: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1655: fi
1656:
1657: echo $ac_n "checking host system type""... $ac_c" 1>&6
1.18 paf 1658: echo "configure:1659: checking host system type" >&5
1.1 paf 1659:
1660: host_alias=$host
1661: case "$host_alias" in
1662: NONE)
1663: case $nonopt in
1664: NONE)
1665: if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1666: else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1667: fi ;;
1668: *) host_alias=$nonopt ;;
1669: esac ;;
1670: esac
1671:
1672: host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1673: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1674: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1675: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1676: echo "$ac_t""$host" 1>&6
1677:
1678:
1679:
1680: # Find a good install program. We prefer a C program (faster),
1681: # so one script is as good as another. But avoid the broken or
1682: # incompatible versions:
1683: # SysV /etc/install, /usr/sbin/install
1684: # SunOS /usr/etc/install
1685: # IRIX /sbin/install
1686: # AIX /bin/install
1687: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1688: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1689: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1690: # ./install, which can be erroneously created by make from ./install.sh.
1691: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.18 paf 1692: echo "configure:1693: checking for a BSD compatible install" >&5
1.1 paf 1693: if test -z "$INSTALL"; then
1694: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1695: echo $ac_n "(cached) $ac_c" 1>&6
1696: else
1697: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1698: for ac_dir in $PATH; do
1699: # Account for people who put trailing slashes in PATH elements.
1700: case "$ac_dir/" in
1701: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1702: *)
1703: # OSF1 and SCO ODT 3.0 have their own names for install.
1704: # Don't use installbsd from OSF since it installs stuff as root
1705: # by default.
1706: for ac_prog in ginstall scoinst install; do
1707: if test -f $ac_dir/$ac_prog; then
1708: if test $ac_prog = install &&
1709: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1710: # AIX install. It has an incompatible calling convention.
1711: :
1712: else
1713: ac_cv_path_install="$ac_dir/$ac_prog -c"
1714: break 2
1715: fi
1716: fi
1717: done
1718: ;;
1719: esac
1720: done
1721: IFS="$ac_save_IFS"
1722:
1723: fi
1724: if test "${ac_cv_path_install+set}" = set; then
1725: INSTALL="$ac_cv_path_install"
1726: else
1727: # As a last resort, use the slow shell script. We don't cache a
1728: # path for INSTALL within a source directory, because that will
1729: # break other packages using the cache if that directory is
1730: # removed, or if the path is relative.
1731: INSTALL="$ac_install_sh"
1732: fi
1733: fi
1734: echo "$ac_t""$INSTALL" 1>&6
1735:
1736: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1737: # It thinks the first close brace ends the variable substitution.
1738: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1739:
1740: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1741:
1742: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1743:
1744: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.18 paf 1745: echo "configure:1746: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.1 paf 1746: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1747: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1748: echo $ac_n "(cached) $ac_c" 1>&6
1749: else
1750: cat > conftestmake <<\EOF
1751: all:
1752: @echo 'ac_maketemp="${MAKE}"'
1753: EOF
1754: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1755: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1756: if test -n "$ac_maketemp"; then
1757: eval ac_cv_prog_make_${ac_make}_set=yes
1758: else
1759: eval ac_cv_prog_make_${ac_make}_set=no
1760: fi
1761: rm -f conftestmake
1762: fi
1763: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1764: echo "$ac_t""yes" 1>&6
1765: SET_MAKE=
1766: else
1767: echo "$ac_t""no" 1>&6
1768: SET_MAKE="MAKE=${MAKE-make}"
1769: fi
1770:
1771: # Extract the first word of "ranlib", so it can be a program name with args.
1772: set dummy ranlib; ac_word=$2
1773: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.18 paf 1774: echo "configure:1775: checking for $ac_word" >&5
1.1 paf 1775: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1776: echo $ac_n "(cached) $ac_c" 1>&6
1777: else
1778: if test -n "$RANLIB"; then
1779: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1780: else
1781: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1782: ac_dummy="$PATH"
1783: for ac_dir in $ac_dummy; do
1784: test -z "$ac_dir" && ac_dir=.
1785: if test -f $ac_dir/$ac_word; then
1786: ac_cv_prog_RANLIB="ranlib"
1787: break
1788: fi
1789: done
1790: IFS="$ac_save_ifs"
1791: test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1792: fi
1793: fi
1794: RANLIB="$ac_cv_prog_RANLIB"
1795: if test -n "$RANLIB"; then
1796: echo "$ac_t""$RANLIB" 1>&6
1797: else
1798: echo "$ac_t""no" 1>&6
1799: fi
1800:
1801: for ac_prog in mawk gawk nawk awk
1802: do
1803: # Extract the first word of "$ac_prog", so it can be a program name with args.
1804: set dummy $ac_prog; ac_word=$2
1805: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.18 paf 1806: echo "configure:1807: checking for $ac_word" >&5
1.1 paf 1807: if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1808: echo $ac_n "(cached) $ac_c" 1>&6
1809: else
1810: if test -n "$AWK"; then
1811: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1812: else
1813: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1814: ac_dummy="$PATH"
1815: for ac_dir in $ac_dummy; do
1816: test -z "$ac_dir" && ac_dir=.
1817: if test -f $ac_dir/$ac_word; then
1818: ac_cv_prog_AWK="$ac_prog"
1819: break
1820: fi
1821: done
1822: IFS="$ac_save_ifs"
1823: fi
1824: fi
1825: AWK="$ac_cv_prog_AWK"
1826: if test -n "$AWK"; then
1827: echo "$ac_t""$AWK" 1>&6
1828: else
1829: echo "$ac_t""no" 1>&6
1830: fi
1831:
1832: test -n "$AWK" && break
1833: done
1834:
1835:
1836: for ac_prog in 'bison -y' byacc
1837: do
1838: # Extract the first word of "$ac_prog", so it can be a program name with args.
1839: set dummy $ac_prog; ac_word=$2
1840: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.18 paf 1841: echo "configure:1842: checking for $ac_word" >&5
1.1 paf 1842: if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1843: echo $ac_n "(cached) $ac_c" 1>&6
1844: else
1845: if test -n "$YACC"; then
1846: ac_cv_prog_YACC="$YACC" # Let the user override the test.
1847: else
1848: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1849: ac_dummy="$PATH"
1850: for ac_dir in $ac_dummy; do
1851: test -z "$ac_dir" && ac_dir=.
1852: if test -f $ac_dir/$ac_word; then
1853: ac_cv_prog_YACC="$ac_prog"
1854: break
1855: fi
1856: done
1857: IFS="$ac_save_ifs"
1858: fi
1859: fi
1860: YACC="$ac_cv_prog_YACC"
1861: if test -n "$YACC"; then
1862: echo "$ac_t""$YACC" 1>&6
1863: else
1864: echo "$ac_t""no" 1>&6
1865: fi
1866:
1867: test -n "$YACC" && break
1868: done
1869: test -n "$YACC" || YACC="yacc"
1870:
1871: if test "$YACC" != "bison -y"; then
1872: echo "configure: warning: to regenerate Parser grammar YOU WOULD NEED BISON" 1>&2
1873: else
1874: echo $ac_n "checking bison version""... $ac_c" 1>&6
1.18 paf 1875: echo "configure:1876: checking bison version" >&5
1.1 paf 1876: oldIFS=$IFS; IFS=.
1877: set `bison -V | sed -e 's/^GNU Bison version //'`
1878: IFS=$oldIFS
1879: if test "$1" = "1" -a "$2" -lt "25"; then
1880: echo "configure: warning: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." 1>&2
1881: fi
1882: echo "$ac_t""$1.$2 (ok)" 1>&6
1883: fi
1884:
1.8 paf 1885: LIBLTDL='${top_builddir}/'src/libltdl/libltdlc.a
1.1 paf 1886: INCLTDL='-I${top_srcdir}/'src/libltdl
1887:
1888:
1889:
1890:
1.8 paf 1891: subdirs="src/libltdl"
1892:
1893: LIBADD_DL=
1894: echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1.18 paf 1895: echo "configure:1896: checking for dlopen in -ldl" >&5
1.8 paf 1896: ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1897: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1898: echo $ac_n "(cached) $ac_c" 1>&6
1.1 paf 1899: else
1.8 paf 1900: ac_save_LIBS="$LIBS"
1901: LIBS="-ldl $LIBS"
1902: cat > conftest.$ac_ext <<EOF
1.18 paf 1903: #line 1904 "configure"
1.8 paf 1904: #include "confdefs.h"
1905: /* Override any gcc2 internal prototype to avoid an error. */
1906: #ifdef __cplusplus
1907: extern "C"
1908: #endif
1909: /* We use char because int might match the return type of a gcc2
1910: builtin and then its argument prototype would still apply. */
1911: char dlopen();
1.1 paf 1912:
1.8 paf 1913: int main() {
1914: dlopen()
1915: ; return 0; }
1916: EOF
1.18 paf 1917: if { (eval echo configure:1918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 1918: rm -rf conftest*
1919: eval "ac_cv_lib_$ac_lib_var=yes"
1.1 paf 1920: else
1.8 paf 1921: echo "configure: failed program was:" >&5
1922: cat conftest.$ac_ext >&5
1923: rm -rf conftest*
1924: eval "ac_cv_lib_$ac_lib_var=no"
1.1 paf 1925: fi
1.8 paf 1926: rm -f conftest*
1927: LIBS="$ac_save_LIBS"
1.1 paf 1928:
1.8 paf 1929: fi
1930: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1931: echo "$ac_t""yes" 1>&6
1932: cat >> confdefs.h <<\EOF
1933: #define HAVE_LIBDL 1
1934: EOF
1935: LIBADD_DL="-ldl"
1936: else
1937: echo "$ac_t""no" 1>&6
1938: echo $ac_n "checking for dlopen""... $ac_c" 1>&6
1.18 paf 1939: echo "configure:1940: checking for dlopen" >&5
1.8 paf 1940: if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
1941: echo $ac_n "(cached) $ac_c" 1>&6
1.1 paf 1942: else
1.8 paf 1943: cat > conftest.$ac_ext <<EOF
1.18 paf 1944: #line 1945 "configure"
1.8 paf 1945: #include "confdefs.h"
1946: /* System header to define __stub macros and hopefully few prototypes,
1947: which can conflict with char dlopen(); below. */
1948: #include <assert.h>
1949: /* Override any gcc2 internal prototype to avoid an error. */
1950: #ifdef __cplusplus
1951: extern "C"
1952: #endif
1953: /* We use char because int might match the return type of a gcc2
1954: builtin and then its argument prototype would still apply. */
1955: char dlopen();
1.1 paf 1956:
1.8 paf 1957: int main() {
1.1 paf 1958:
1.8 paf 1959: /* The GNU C library defines this for functions which it implements
1960: to always fail with ENOSYS. Some functions are actually named
1961: something starting with __ and the normal name is an alias. */
1962: #if defined (__stub_dlopen) || defined (__stub___dlopen)
1963: choke me
1964: #else
1965: dlopen();
1966: #endif
1.1 paf 1967:
1.8 paf 1968: ; return 0; }
1969: EOF
1.18 paf 1970: if { (eval echo configure:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 1971: rm -rf conftest*
1972: eval "ac_cv_func_dlopen=yes"
1.1 paf 1973: else
1.8 paf 1974: echo "configure: failed program was:" >&5
1975: cat conftest.$ac_ext >&5
1976: rm -rf conftest*
1977: eval "ac_cv_func_dlopen=no"
1.1 paf 1978: fi
1.8 paf 1979: rm -f conftest*
1.1 paf 1980: fi
1981:
1.8 paf 1982: if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
1983: echo "$ac_t""yes" 1>&6
1984: cat >> confdefs.h <<\EOF
1985: #define HAVE_LIBDL 1
1986: EOF
1987:
1.1 paf 1988: else
1989: echo "$ac_t""no" 1>&6
1990: fi
1.8 paf 1991:
1992: fi
1993:
1994: echo $ac_n "checking for shl_load""... $ac_c" 1>&6
1.18 paf 1995: echo "configure:1996: checking for shl_load" >&5
1.8 paf 1996: if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
1.1 paf 1997: echo $ac_n "(cached) $ac_c" 1>&6
1998: else
1.8 paf 1999: cat > conftest.$ac_ext <<EOF
1.18 paf 2000: #line 2001 "configure"
1.8 paf 2001: #include "confdefs.h"
2002: /* System header to define __stub macros and hopefully few prototypes,
2003: which can conflict with char shl_load(); below. */
2004: #include <assert.h>
2005: /* Override any gcc2 internal prototype to avoid an error. */
2006: #ifdef __cplusplus
2007: extern "C"
2008: #endif
2009: /* We use char because int might match the return type of a gcc2
2010: builtin and then its argument prototype would still apply. */
2011: char shl_load();
1.1 paf 2012:
1.8 paf 2013: int main() {
1.1 paf 2014:
1.8 paf 2015: /* The GNU C library defines this for functions which it implements
2016: to always fail with ENOSYS. Some functions are actually named
2017: something starting with __ and the normal name is an alias. */
2018: #if defined (__stub_shl_load) || defined (__stub___shl_load)
2019: choke me
2020: #else
2021: shl_load();
2022: #endif
1.1 paf 2023:
1.8 paf 2024: ; return 0; }
2025: EOF
1.18 paf 2026: if { (eval echo configure:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2027: rm -rf conftest*
2028: eval "ac_cv_func_shl_load=yes"
1.1 paf 2029: else
1.8 paf 2030: echo "configure: failed program was:" >&5
2031: cat conftest.$ac_ext >&5
2032: rm -rf conftest*
2033: eval "ac_cv_func_shl_load=no"
1.1 paf 2034: fi
1.8 paf 2035: rm -f conftest*
1.1 paf 2036: fi
2037:
1.8 paf 2038: if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
2039: echo "$ac_t""yes" 1>&6
2040: cat >> confdefs.h <<\EOF
2041: #define HAVE_SHL_LOAD 1
2042: EOF
1.1 paf 2043:
1.8 paf 2044: else
2045: echo "$ac_t""no" 1>&6
2046: echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
1.18 paf 2047: echo "configure:2048: checking for shl_load in -ldld" >&5
1.8 paf 2048: ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
2049: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1.1 paf 2050: echo $ac_n "(cached) $ac_c" 1>&6
2051: else
1.8 paf 2052: ac_save_LIBS="$LIBS"
2053: LIBS="-ldld $LIBS"
2054: cat > conftest.$ac_ext <<EOF
1.18 paf 2055: #line 2056 "configure"
1.8 paf 2056: #include "confdefs.h"
2057: /* Override any gcc2 internal prototype to avoid an error. */
2058: #ifdef __cplusplus
2059: extern "C"
2060: #endif
2061: /* We use char because int might match the return type of a gcc2
2062: builtin and then its argument prototype would still apply. */
2063: char shl_load();
2064:
2065: int main() {
2066: shl_load()
2067: ; return 0; }
2068: EOF
1.18 paf 2069: if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2070: rm -rf conftest*
2071: eval "ac_cv_lib_$ac_lib_var=yes"
1.1 paf 2072: else
1.8 paf 2073: echo "configure: failed program was:" >&5
2074: cat conftest.$ac_ext >&5
2075: rm -rf conftest*
2076: eval "ac_cv_lib_$ac_lib_var=no"
1.1 paf 2077: fi
1.8 paf 2078: rm -f conftest*
2079: LIBS="$ac_save_LIBS"
2080:
1.1 paf 2081: fi
1.8 paf 2082: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1.1 paf 2083: echo "$ac_t""yes" 1>&6
1.8 paf 2084: cat >> confdefs.h <<\EOF
2085: #define HAVE_SHL_LOAD 1
2086: EOF
2087: LIBADD_DL="$LIBADD_DL -ldld"
1.1 paf 2088: else
2089: echo "$ac_t""no" 1>&6
2090: fi
2091:
1.8 paf 2092: fi
1.1 paf 2093:
1.8 paf 2094: echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
1.18 paf 2095: echo "configure:2096: checking for dld_link in -ldld" >&5
1.8 paf 2096: ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2097: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2098: echo $ac_n "(cached) $ac_c" 1>&6
2099: else
2100: ac_save_LIBS="$LIBS"
2101: LIBS="-ldld $LIBS"
2102: cat > conftest.$ac_ext <<EOF
1.18 paf 2103: #line 2104 "configure"
1.8 paf 2104: #include "confdefs.h"
2105: /* Override any gcc2 internal prototype to avoid an error. */
2106: #ifdef __cplusplus
2107: extern "C"
2108: #endif
2109: /* We use char because int might match the return type of a gcc2
2110: builtin and then its argument prototype would still apply. */
2111: char dld_link();
1.1 paf 2112:
1.8 paf 2113: int main() {
2114: dld_link()
2115: ; return 0; }
2116: EOF
1.18 paf 2117: if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2118: rm -rf conftest*
2119: eval "ac_cv_lib_$ac_lib_var=yes"
2120: else
2121: echo "configure: failed program was:" >&5
2122: cat conftest.$ac_ext >&5
2123: rm -rf conftest*
2124: eval "ac_cv_lib_$ac_lib_var=no"
2125: fi
2126: rm -f conftest*
2127: LIBS="$ac_save_LIBS"
1.1 paf 2128:
1.8 paf 2129: fi
2130: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2131: echo "$ac_t""yes" 1>&6
2132: cat >> confdefs.h <<\EOF
2133: #define HAVE_DLD 1
2134: EOF
2135: test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld"
2136: else
2137: echo "$ac_t""no" 1>&6
1.1 paf 2138: fi
2139:
2140:
2141:
1.8 paf 2142: if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
2143: LIBS_SAVE="$LIBS"
2144: LIBS="$LIBS $LIBADD_DL"
2145: for ac_func in dlerror
2146: do
2147: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.18 paf 2148: echo "configure:2149: checking for $ac_func" >&5
1.8 paf 2149: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1.1 paf 2150: echo $ac_n "(cached) $ac_c" 1>&6
2151: else
2152: cat > conftest.$ac_ext <<EOF
1.18 paf 2153: #line 2154 "configure"
1.1 paf 2154: #include "confdefs.h"
1.8 paf 2155: /* System header to define __stub macros and hopefully few prototypes,
2156: which can conflict with char $ac_func(); below. */
2157: #include <assert.h>
2158: /* Override any gcc2 internal prototype to avoid an error. */
2159: #ifdef __cplusplus
2160: extern "C"
2161: #endif
2162: /* We use char because int might match the return type of a gcc2
2163: builtin and then its argument prototype would still apply. */
2164: char $ac_func();
1.1 paf 2165:
2166: int main() {
2167:
1.8 paf 2168: /* The GNU C library defines this for functions which it implements
2169: to always fail with ENOSYS. Some functions are actually named
2170: something starting with __ and the normal name is an alias. */
2171: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2172: choke me
2173: #else
2174: $ac_func();
2175: #endif
2176:
1.1 paf 2177: ; return 0; }
2178: EOF
1.18 paf 2179: if { (eval echo configure:2180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2180: rm -rf conftest*
1.8 paf 2181: eval "ac_cv_func_$ac_func=yes"
1.1 paf 2182: else
2183: echo "configure: failed program was:" >&5
2184: cat conftest.$ac_ext >&5
2185: rm -rf conftest*
1.8 paf 2186: eval "ac_cv_func_$ac_func=no"
1.1 paf 2187: fi
2188: rm -f conftest*
2189: fi
2190:
1.8 paf 2191: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2192: echo "$ac_t""yes" 1>&6
2193: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2194: cat >> confdefs.h <<EOF
2195: #define $ac_tr_func 1
1.1 paf 2196: EOF
1.8 paf 2197:
1.1 paf 2198: else
1.8 paf 2199: echo "$ac_t""no" 1>&6
1.1 paf 2200: fi
1.8 paf 2201: done
1.1 paf 2202:
1.8 paf 2203: LIBS="$LIBS_SAVE"
1.1 paf 2204: fi
2205:
2206:
2207: echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1.18 paf 2208: echo "configure:2209: checking how to run the C++ preprocessor" >&5
1.1 paf 2209: if test -z "$CXXCPP"; then
2210: if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2211: echo $ac_n "(cached) $ac_c" 1>&6
2212: else
2213: ac_ext=C
2214: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2215: ac_cpp='$CXXCPP $CPPFLAGS'
2216: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2217: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2218: cross_compiling=$ac_cv_prog_cxx_cross
2219: CXXCPP="${CXX-g++} -E"
2220: cat > conftest.$ac_ext <<EOF
1.18 paf 2221: #line 2222 "configure"
1.1 paf 2222: #include "confdefs.h"
2223: #include <stdlib.h>
2224: EOF
2225: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.18 paf 2226: { (eval echo configure:2227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 paf 2227: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2228: if test -z "$ac_err"; then
2229: :
2230: else
2231: echo "$ac_err" >&5
2232: echo "configure: failed program was:" >&5
2233: cat conftest.$ac_ext >&5
2234: rm -rf conftest*
2235: CXXCPP=/lib/cpp
2236: fi
2237: rm -f conftest*
2238: ac_cv_prog_CXXCPP="$CXXCPP"
2239: ac_ext=C
2240: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2241: ac_cpp='$CXXCPP $CPPFLAGS'
2242: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2243: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2244: cross_compiling=$ac_cv_prog_cxx_cross
2245: fi
2246: fi
2247: CXXCPP="$ac_cv_prog_CXXCPP"
2248: echo "$ac_t""$CXXCPP" 1>&6
2249:
2250: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.18 paf 2251: echo "configure:2252: checking for ANSI C header files" >&5
1.1 paf 2252: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2253: echo $ac_n "(cached) $ac_c" 1>&6
2254: else
2255: cat > conftest.$ac_ext <<EOF
1.18 paf 2256: #line 2257 "configure"
1.1 paf 2257: #include "confdefs.h"
2258: #include <stdlib.h>
2259: #include <stdarg.h>
2260: #include <string.h>
2261: #include <float.h>
2262: EOF
2263: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.18 paf 2264: { (eval echo configure:2265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 paf 2265: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2266: if test -z "$ac_err"; then
2267: rm -rf conftest*
2268: ac_cv_header_stdc=yes
2269: else
2270: echo "$ac_err" >&5
2271: echo "configure: failed program was:" >&5
2272: cat conftest.$ac_ext >&5
2273: rm -rf conftest*
2274: ac_cv_header_stdc=no
2275: fi
2276: rm -f conftest*
2277:
2278: if test $ac_cv_header_stdc = yes; then
2279: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2280: cat > conftest.$ac_ext <<EOF
1.18 paf 2281: #line 2282 "configure"
1.1 paf 2282: #include "confdefs.h"
2283: #include <string.h>
2284: EOF
2285: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2286: egrep "memchr" >/dev/null 2>&1; then
2287: :
2288: else
2289: rm -rf conftest*
2290: ac_cv_header_stdc=no
2291: fi
2292: rm -f conftest*
2293:
2294: fi
2295:
2296: if test $ac_cv_header_stdc = yes; then
2297: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2298: cat > conftest.$ac_ext <<EOF
1.18 paf 2299: #line 2300 "configure"
1.1 paf 2300: #include "confdefs.h"
2301: #include <stdlib.h>
2302: EOF
2303: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2304: egrep "free" >/dev/null 2>&1; then
2305: :
2306: else
2307: rm -rf conftest*
2308: ac_cv_header_stdc=no
2309: fi
2310: rm -f conftest*
2311:
2312: fi
2313:
2314: if test $ac_cv_header_stdc = yes; then
2315: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2316: if test "$cross_compiling" = yes; then
2317: :
2318: else
2319: cat > conftest.$ac_ext <<EOF
1.18 paf 2320: #line 2321 "configure"
1.1 paf 2321: #include "confdefs.h"
2322: #ifdef __cplusplus
2323: extern "C" void exit(int);
2324: #endif
2325: #include <ctype.h>
2326: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2327: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2328: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2329: int main () { int i; for (i = 0; i < 256; i++)
2330: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2331: exit (0); }
2332:
2333: EOF
1.18 paf 2334: if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1 paf 2335: then
2336: :
2337: else
2338: echo "configure: failed program was:" >&5
2339: cat conftest.$ac_ext >&5
2340: rm -fr conftest*
2341: ac_cv_header_stdc=no
2342: fi
2343: rm -fr conftest*
2344: fi
2345:
2346: fi
2347: fi
2348:
2349: echo "$ac_t""$ac_cv_header_stdc" 1>&6
2350: if test $ac_cv_header_stdc = yes; then
2351: cat >> confdefs.h <<\EOF
2352: #define STDC_HEADERS 1
2353: EOF
2354:
2355: fi
2356:
2357: echo $ac_n "checking for size_t""... $ac_c" 1>&6
1.18 paf 2358: echo "configure:2359: checking for size_t" >&5
1.1 paf 2359: if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2360: echo $ac_n "(cached) $ac_c" 1>&6
2361: else
2362: cat > conftest.$ac_ext <<EOF
1.18 paf 2363: #line 2364 "configure"
1.1 paf 2364: #include "confdefs.h"
2365: #include <sys/types.h>
2366: #if STDC_HEADERS
2367: #include <stdlib.h>
2368: #include <stddef.h>
2369: #endif
2370: EOF
2371: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2372: egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2373: rm -rf conftest*
2374: ac_cv_type_size_t=yes
2375: else
2376: rm -rf conftest*
2377: ac_cv_type_size_t=no
2378: fi
2379: rm -f conftest*
2380:
2381: fi
2382: echo "$ac_t""$ac_cv_type_size_t" 1>&6
2383: if test $ac_cv_type_size_t = no; then
2384: cat >> confdefs.h <<\EOF
2385: #define size_t unsigned
2386: EOF
2387:
2388: fi
2389:
2390:
2391:
1.8 paf 2392: echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1.18 paf 2393: echo "configure:2394: checking whether time.h and sys/time.h may both be included" >&5
1.8 paf 2394: if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2395: echo $ac_n "(cached) $ac_c" 1>&6
2396: else
2397: cat > conftest.$ac_ext <<EOF
1.18 paf 2398: #line 2399 "configure"
1.8 paf 2399: #include "confdefs.h"
2400: #include <sys/types.h>
2401: #include <sys/time.h>
2402: #include <time.h>
2403: int main() {
2404: struct tm *tp;
2405: ; return 0; }
2406: EOF
1.18 paf 2407: if { (eval echo configure:2408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.8 paf 2408: rm -rf conftest*
2409: ac_cv_header_time=yes
2410: else
2411: echo "configure: failed program was:" >&5
2412: cat conftest.$ac_ext >&5
2413: rm -rf conftest*
2414: ac_cv_header_time=no
2415: fi
2416: rm -f conftest*
2417: fi
2418:
2419: echo "$ac_t""$ac_cv_header_time" 1>&6
2420: if test $ac_cv_header_time = yes; then
2421: cat >> confdefs.h <<\EOF
2422: #define TIME_WITH_SYS_TIME 1
2423: EOF
2424:
2425: fi
2426:
2427:
1.1 paf 2428: for ac_hdr in unistd.h \
2429: process.h \
2430: stddef.h \
2431: stdarg.h \
2432: fcntl.h \
2433: sys/stat.h \
2434: io.h \
2435: stdio.h \
2436: errno.h \
2437: ctype.h \
2438: math.h \
1.3 paf 2439: time.h sys/time.h \
1.1 paf 2440: stdlib.h \
2441: string.h \
2442: direct.h \
2443: setjmp.h \
2444: memory.h \
2445: new \
2446: sys/file.h \
2447: sys/locking.h \
1.3 paf 2448: sys/types.h \
2449: sys/select.h \
2450: sys/resource.h
1.1 paf 2451:
2452: do
2453: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2454: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.18 paf 2455: echo "configure:2456: checking for $ac_hdr" >&5
1.1 paf 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
1.18 paf 2460: #line 2461 "configure"
1.1 paf 2461: #include "confdefs.h"
2462: #include <$ac_hdr>
2463: EOF
2464: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.18 paf 2465: { (eval echo configure:2466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 paf 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: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2482: cat >> confdefs.h <<EOF
2483: #define $ac_tr_hdr 1
2484: EOF
2485:
2486: else
2487: echo "$ac_t""no" 1>&6
2488: fi
2489: done
2490:
2491:
2492:
2493: case "$host" in
2494: *-sunos5.6* | *-solaris2.6*)
2495: echo $ac_n "checking for main in -lxnet""... $ac_c" 1>&6
1.18 paf 2496: echo "configure:2497: checking for main in -lxnet" >&5
1.1 paf 2497: ac_lib_var=`echo xnet'_'main | sed 'y%./+-%__p_%'`
2498: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2499: echo $ac_n "(cached) $ac_c" 1>&6
2500: else
2501: ac_save_LIBS="$LIBS"
2502: LIBS="-lxnet $LIBS"
2503: cat > conftest.$ac_ext <<EOF
1.18 paf 2504: #line 2505 "configure"
1.1 paf 2505: #include "confdefs.h"
2506:
2507: int main() {
2508: main()
2509: ; return 0; }
2510: EOF
1.18 paf 2511: if { (eval echo configure:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2512: rm -rf conftest*
2513: eval "ac_cv_lib_$ac_lib_var=yes"
2514: else
2515: echo "configure: failed program was:" >&5
2516: cat conftest.$ac_ext >&5
2517: rm -rf conftest*
2518: eval "ac_cv_lib_$ac_lib_var=no"
2519: fi
2520: rm -f conftest*
2521: LIBS="$ac_save_LIBS"
2522:
2523: fi
2524: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2525: echo "$ac_t""yes" 1>&6
2526: ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2527: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2528: cat >> confdefs.h <<EOF
2529: #define $ac_tr_lib 1
2530: EOF
2531:
2532: LIBS="-lxnet $LIBS"
2533:
2534: else
2535: echo "$ac_t""no" 1>&6
2536: fi
2537:
2538: ;;
2539: *-sunos5* | *-solaris2*)
2540: echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1.18 paf 2541: echo "configure:2542: checking for main in -lsocket" >&5
1.1 paf 2542: ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2543: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2544: echo $ac_n "(cached) $ac_c" 1>&6
2545: else
2546: ac_save_LIBS="$LIBS"
2547: LIBS="-lsocket $LIBS"
2548: cat > conftest.$ac_ext <<EOF
1.18 paf 2549: #line 2550 "configure"
1.1 paf 2550: #include "confdefs.h"
2551:
2552: int main() {
2553: main()
2554: ; return 0; }
2555: EOF
1.18 paf 2556: if { (eval echo configure:2557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2557: rm -rf conftest*
2558: eval "ac_cv_lib_$ac_lib_var=yes"
2559: else
2560: echo "configure: failed program was:" >&5
2561: cat conftest.$ac_ext >&5
2562: rm -rf conftest*
2563: eval "ac_cv_lib_$ac_lib_var=no"
2564: fi
2565: rm -f conftest*
2566: LIBS="$ac_save_LIBS"
2567:
2568: fi
2569: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2570: echo "$ac_t""yes" 1>&6
2571: ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2572: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2573: cat >> confdefs.h <<EOF
2574: #define $ac_tr_lib 1
2575: EOF
2576:
2577: LIBS="-lsocket $LIBS"
2578:
2579: else
2580: echo "$ac_t""no" 1>&6
2581: fi
2582:
2583: echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1.18 paf 2584: echo "configure:2585: checking for main in -lnsl" >&5
1.1 paf 2585: ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2586: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2587: echo $ac_n "(cached) $ac_c" 1>&6
2588: else
2589: ac_save_LIBS="$LIBS"
2590: LIBS="-lnsl $LIBS"
2591: cat > conftest.$ac_ext <<EOF
1.18 paf 2592: #line 2593 "configure"
1.1 paf 2593: #include "confdefs.h"
2594:
2595: int main() {
2596: main()
2597: ; return 0; }
2598: EOF
1.18 paf 2599: if { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2600: rm -rf conftest*
2601: eval "ac_cv_lib_$ac_lib_var=yes"
2602: else
2603: echo "configure: failed program was:" >&5
2604: cat conftest.$ac_ext >&5
2605: rm -rf conftest*
2606: eval "ac_cv_lib_$ac_lib_var=no"
2607: fi
2608: rm -f conftest*
2609: LIBS="$ac_save_LIBS"
2610:
2611: fi
2612: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2613: echo "$ac_t""yes" 1>&6
2614: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2615: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2616: cat >> confdefs.h <<EOF
2617: #define $ac_tr_lib 1
2618: EOF
2619:
2620: LIBS="-lnsl $LIBS"
2621:
2622: else
2623: echo "$ac_t""no" 1>&6
2624: fi
2625:
2626: ;;
2627: *-nec-sysv4*)
2628: echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1.18 paf 2629: echo "configure:2630: checking for gethostbyname in -lnsl" >&5
1.1 paf 2630: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2631: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2632: echo $ac_n "(cached) $ac_c" 1>&6
2633: else
2634: ac_save_LIBS="$LIBS"
2635: LIBS="-lnsl $LIBS"
2636: cat > conftest.$ac_ext <<EOF
1.18 paf 2637: #line 2638 "configure"
1.1 paf 2638: #include "confdefs.h"
2639: /* Override any gcc2 internal prototype to avoid an error. */
2640: #ifdef __cplusplus
2641: extern "C"
2642: #endif
2643: /* We use char because int might match the return type of a gcc2
2644: builtin and then its argument prototype would still apply. */
2645: char gethostbyname();
2646:
2647: int main() {
2648: gethostbyname()
2649: ; return 0; }
2650: EOF
1.18 paf 2651: if { (eval echo configure:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2652: rm -rf conftest*
2653: eval "ac_cv_lib_$ac_lib_var=yes"
2654: else
2655: echo "configure: failed program was:" >&5
2656: cat conftest.$ac_ext >&5
2657: rm -rf conftest*
2658: eval "ac_cv_lib_$ac_lib_var=no"
2659: fi
2660: rm -f conftest*
2661: LIBS="$ac_save_LIBS"
2662:
2663: fi
2664: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2665: echo "$ac_t""yes" 1>&6
2666: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2667: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2668: cat >> confdefs.h <<EOF
2669: #define $ac_tr_lib 1
2670: EOF
2671:
2672: LIBS="-lnsl $LIBS"
2673:
2674: else
2675: echo "$ac_t""no" 1>&6
2676: fi
2677:
2678: echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1.18 paf 2679: echo "configure:2680: checking for socket in -lsocket" >&5
1.1 paf 2680: ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2681: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2682: echo $ac_n "(cached) $ac_c" 1>&6
2683: else
2684: ac_save_LIBS="$LIBS"
2685: LIBS="-lsocket $LIBS"
2686: cat > conftest.$ac_ext <<EOF
1.18 paf 2687: #line 2688 "configure"
1.1 paf 2688: #include "confdefs.h"
2689: /* Override any gcc2 internal prototype to avoid an error. */
2690: #ifdef __cplusplus
2691: extern "C"
2692: #endif
2693: /* We use char because int might match the return type of a gcc2
2694: builtin and then its argument prototype would still apply. */
2695: char socket();
2696:
2697: int main() {
2698: socket()
2699: ; return 0; }
2700: EOF
1.18 paf 2701: if { (eval echo configure:2702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2702: rm -rf conftest*
2703: eval "ac_cv_lib_$ac_lib_var=yes"
2704: else
2705: echo "configure: failed program was:" >&5
2706: cat conftest.$ac_ext >&5
2707: rm -rf conftest*
2708: eval "ac_cv_lib_$ac_lib_var=no"
2709: fi
2710: rm -f conftest*
2711: LIBS="$ac_save_LIBS"
2712:
2713: fi
2714: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2715: echo "$ac_t""yes" 1>&6
2716: ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2717: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2718: cat >> confdefs.h <<EOF
2719: #define $ac_tr_lib 1
2720: EOF
2721:
2722: LIBS="-lsocket $LIBS"
2723:
2724: else
2725: echo "$ac_t""no" 1>&6
2726: fi
2727:
2728: ;;
2729: *-cygwin*)
2730: cat >> confdefs.h <<\EOF
2731: #define WIN32
2732: EOF
2733:
2734: echo $ac_n "checking for socket in -lwsock32""... $ac_c" 1>&6
1.18 paf 2735: echo "configure:2736: checking for socket in -lwsock32" >&5
1.1 paf 2736: ac_lib_var=`echo wsock32'_'socket | sed 'y%./+-%__p_%'`
2737: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2738: echo $ac_n "(cached) $ac_c" 1>&6
2739: else
2740: ac_save_LIBS="$LIBS"
2741: LIBS="-lwsock32 $LIBS"
2742: cat > conftest.$ac_ext <<EOF
1.18 paf 2743: #line 2744 "configure"
1.1 paf 2744: #include "confdefs.h"
2745: /* Override any gcc2 internal prototype to avoid an error. */
2746: #ifdef __cplusplus
2747: extern "C"
2748: #endif
2749: /* We use char because int might match the return type of a gcc2
2750: builtin and then its argument prototype would still apply. */
2751: char socket();
2752:
2753: int main() {
2754: socket()
2755: ; return 0; }
2756: EOF
1.18 paf 2757: if { (eval echo configure:2758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2758: rm -rf conftest*
2759: eval "ac_cv_lib_$ac_lib_var=yes"
2760: else
2761: echo "configure: failed program was:" >&5
2762: cat conftest.$ac_ext >&5
2763: rm -rf conftest*
2764: eval "ac_cv_lib_$ac_lib_var=no"
2765: fi
2766: rm -f conftest*
2767: LIBS="$ac_save_LIBS"
2768:
2769: fi
2770: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2771: echo "$ac_t""yes" 1>&6
2772: ac_tr_lib=HAVE_LIB`echo wsock32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2773: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2774: cat >> confdefs.h <<EOF
2775: #define $ac_tr_lib 1
2776: EOF
2777:
2778: LIBS="-lwsock32 $LIBS"
2779:
2780: else
2781: echo "$ac_t""no" 1>&6
2782: fi
2783:
2784: ;;
1.22 paf 2785: # never tested this, only theoretically by letter from demos about parser2 build
1.23 paf 2786: *-hpux*)
1.22 paf 2787: echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2788: echo "configure:2789: checking for main in -lnsl" >&5
2789: ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2790: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2791: echo $ac_n "(cached) $ac_c" 1>&6
2792: else
2793: ac_save_LIBS="$LIBS"
2794: LIBS="-lnsl $LIBS"
2795: cat > conftest.$ac_ext <<EOF
2796: #line 2797 "configure"
2797: #include "confdefs.h"
2798:
2799: int main() {
2800: main()
2801: ; return 0; }
2802: EOF
2803: if { (eval echo configure:2804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2804: rm -rf conftest*
2805: eval "ac_cv_lib_$ac_lib_var=yes"
2806: else
2807: echo "configure: failed program was:" >&5
2808: cat conftest.$ac_ext >&5
2809: rm -rf conftest*
2810: eval "ac_cv_lib_$ac_lib_var=no"
2811: fi
2812: rm -f conftest*
2813: LIBS="$ac_save_LIBS"
2814:
2815: fi
2816: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2817: echo "$ac_t""yes" 1>&6
2818: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2819: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2820: cat >> confdefs.h <<EOF
2821: #define $ac_tr_lib 1
2822: EOF
2823:
2824: LIBS="-lnsl $LIBS"
2825:
2826: else
2827: echo "$ac_t""no" 1>&6
2828: fi
2829:
2830: ;;
1.1 paf 2831: esac
2832:
2833: echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1.22 paf 2834: echo "configure:2835: checking for sin in -lm" >&5
1.1 paf 2835: ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
2836: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2837: echo $ac_n "(cached) $ac_c" 1>&6
2838: else
2839: ac_save_LIBS="$LIBS"
2840: LIBS="-lm $LIBS"
2841: cat > conftest.$ac_ext <<EOF
1.22 paf 2842: #line 2843 "configure"
1.1 paf 2843: #include "confdefs.h"
2844: /* Override any gcc2 internal prototype to avoid an error. */
2845: #ifdef __cplusplus
2846: extern "C"
2847: #endif
2848: /* We use char because int might match the return type of a gcc2
2849: builtin and then its argument prototype would still apply. */
2850: char sin();
2851:
2852: int main() {
2853: sin()
2854: ; return 0; }
2855: EOF
1.22 paf 2856: if { (eval echo configure:2857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2857: rm -rf conftest*
2858: eval "ac_cv_lib_$ac_lib_var=yes"
2859: else
2860: echo "configure: failed program was:" >&5
2861: cat conftest.$ac_ext >&5
2862: rm -rf conftest*
2863: eval "ac_cv_lib_$ac_lib_var=no"
2864: fi
2865: rm -f conftest*
2866: LIBS="$ac_save_LIBS"
2867:
2868: fi
2869: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2870: echo "$ac_t""yes" 1>&6
2871: ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2872: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2873: cat >> confdefs.h <<EOF
2874: #define $ac_tr_lib 1
2875: EOF
2876:
2877: LIBS="-lm $LIBS"
2878:
2879: else
2880: echo "$ac_t""no" 1>&6
2881: fi
2882:
2883:
2884:
2885: for ac_func in trunc \
2886: round \
2887: sign \
2888: flock \
2889: _locking \
1.5 paf 2890: fcntl \
1.3 paf 2891: lockf \
2892: getrusage
1.1 paf 2893:
2894: do
2895: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.22 paf 2896: echo "configure:2897: checking for $ac_func" >&5
1.1 paf 2897: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2898: echo $ac_n "(cached) $ac_c" 1>&6
2899: else
2900: cat > conftest.$ac_ext <<EOF
1.22 paf 2901: #line 2902 "configure"
1.1 paf 2902: #include "confdefs.h"
2903: /* System header to define __stub macros and hopefully few prototypes,
2904: which can conflict with char $ac_func(); below. */
2905: #include <assert.h>
2906: /* Override any gcc2 internal prototype to avoid an error. */
2907: #ifdef __cplusplus
2908: extern "C"
2909: #endif
2910: /* We use char because int might match the return type of a gcc2
2911: builtin and then its argument prototype would still apply. */
2912: char $ac_func();
2913:
2914: int main() {
2915:
2916: /* The GNU C library defines this for functions which it implements
2917: to always fail with ENOSYS. Some functions are actually named
2918: something starting with __ and the normal name is an alias. */
2919: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2920: choke me
2921: #else
2922: $ac_func();
2923: #endif
2924:
2925: ; return 0; }
2926: EOF
1.22 paf 2927: if { (eval echo configure:2928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2928: rm -rf conftest*
2929: eval "ac_cv_func_$ac_func=yes"
2930: else
2931: echo "configure: failed program was:" >&5
2932: cat conftest.$ac_ext >&5
2933: rm -rf conftest*
2934: eval "ac_cv_func_$ac_func=no"
2935: fi
2936: rm -f conftest*
2937: fi
2938:
2939: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2940: echo "$ac_t""yes" 1>&6
2941: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2942: cat >> confdefs.h <<EOF
2943: #define $ac_tr_func 1
2944: EOF
2945:
2946: else
2947: echo "$ac_t""no" 1>&6
2948: fi
2949: done
2950:
2951:
1.3 paf 2952:
2953: for ac_func in qsort
2954: do
2955: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.22 paf 2956: echo "configure:2957: checking for $ac_func" >&5
1.3 paf 2957: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2958: echo $ac_n "(cached) $ac_c" 1>&6
2959: else
2960: cat > conftest.$ac_ext <<EOF
1.22 paf 2961: #line 2962 "configure"
1.3 paf 2962: #include "confdefs.h"
2963: /* System header to define __stub macros and hopefully few prototypes,
2964: which can conflict with char $ac_func(); below. */
2965: #include <assert.h>
2966: /* Override any gcc2 internal prototype to avoid an error. */
2967: #ifdef __cplusplus
2968: extern "C"
2969: #endif
2970: /* We use char because int might match the return type of a gcc2
2971: builtin and then its argument prototype would still apply. */
2972: char $ac_func();
2973:
2974: int main() {
2975:
2976: /* The GNU C library defines this for functions which it implements
2977: to always fail with ENOSYS. Some functions are actually named
2978: something starting with __ and the normal name is an alias. */
2979: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2980: choke me
2981: #else
2982: $ac_func();
2983: #endif
2984:
2985: ; return 0; }
2986: EOF
1.22 paf 2987: if { (eval echo configure:2988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.3 paf 2988: rm -rf conftest*
2989: eval "ac_cv_func_$ac_func=yes"
2990: else
2991: echo "configure: failed program was:" >&5
2992: cat conftest.$ac_ext >&5
2993: rm -rf conftest*
2994: eval "ac_cv_func_$ac_func=no"
2995: fi
2996: rm -f conftest*
2997: fi
2998:
2999: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3000: echo "$ac_t""yes" 1>&6
3001: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3002: cat >> confdefs.h <<EOF
3003: #define $ac_tr_func 1
3004: EOF
3005:
3006: else
3007: echo "$ac_t""no" 1>&6
3008: { echo "configure: error: No qsort library function." 1>&2; exit 1; }
3009: fi
3010: done
3011:
3012: for ac_func in select
3013: do
3014: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.22 paf 3015: echo "configure:3016: checking for $ac_func" >&5
1.3 paf 3016: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3017: echo $ac_n "(cached) $ac_c" 1>&6
3018: else
3019: cat > conftest.$ac_ext <<EOF
1.22 paf 3020: #line 3021 "configure"
1.3 paf 3021: #include "confdefs.h"
3022: /* System header to define __stub macros and hopefully few prototypes,
3023: which can conflict with char $ac_func(); below. */
3024: #include <assert.h>
3025: /* Override any gcc2 internal prototype to avoid an error. */
3026: #ifdef __cplusplus
3027: extern "C"
3028: #endif
3029: /* We use char because int might match the return type of a gcc2
3030: builtin and then its argument prototype would still apply. */
3031: char $ac_func();
3032:
3033: int main() {
3034:
3035: /* The GNU C library defines this for functions which it implements
3036: to always fail with ENOSYS. Some functions are actually named
3037: something starting with __ and the normal name is an alias. */
3038: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3039: choke me
3040: #else
3041: $ac_func();
3042: #endif
3043:
3044: ; return 0; }
3045: EOF
1.22 paf 3046: if { (eval echo configure:3047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.3 paf 3047: rm -rf conftest*
3048: eval "ac_cv_func_$ac_func=yes"
3049: else
3050: echo "configure: failed program was:" >&5
3051: cat conftest.$ac_ext >&5
3052: rm -rf conftest*
3053: eval "ac_cv_func_$ac_func=no"
3054: fi
3055: rm -f conftest*
3056: fi
3057:
3058: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3059: echo "$ac_t""yes" 1>&6
3060: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3061: cat >> confdefs.h <<EOF
3062: #define $ac_tr_func 1
3063: EOF
3064:
3065: else
3066: echo "$ac_t""no" 1>&6
3067: { echo "configure: error: No select library function." 1>&2; exit 1; }
3068: fi
3069: done
3070:
3071:
1.1 paf 3072: echo $ac_n "checking whether compiler supports pragma pack""... $ac_c" 1>&6
1.22 paf 3073: echo "configure:3074: checking whether compiler supports pragma pack" >&5
1.1 paf 3074: cat > conftest.$ac_ext <<EOF
1.22 paf 3075: #line 3076 "configure"
1.1 paf 3076: #include "confdefs.h"
3077: #pragma pack(1)
1.25 paf 3078: struct _1_byte {
1.1 paf 3079: char c;
1.25 paf 3080: };
1.1 paf 3081: #pragma pack()
1.25 paf 3082:
3083: int main() {
1.1 paf 3084:
3085: ; return 0; }
3086: EOF
1.25 paf 3087: if { (eval echo configure:3088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 paf 3088: rm -rf conftest*
3089:
3090: echo "$ac_t""yes" 1>&6
3091: cat >> confdefs.h <<\EOF
3092: #define HAVE_PRAGMA_PACK
3093: EOF
3094:
3095:
3096: else
3097: echo "configure: failed program was:" >&5
3098: cat conftest.$ac_ext >&5
3099: rm -rf conftest*
3100: echo "$ac_t""no" 1>&6
3101:
3102: fi
3103: rm -f conftest*
3104:
3105: echo $ac_n "checking for set_new_handler""... $ac_c" 1>&6
1.25 paf 3106: echo "configure:3107: checking for set_new_handler" >&5
1.1 paf 3107: cat > conftest.$ac_ext <<EOF
1.25 paf 3108: #line 3109 "configure"
1.1 paf 3109: #include "confdefs.h"
3110: #ifdef HAVE_NEW
3111: #include <new>
3112: #endif
3113: void failed_new() {}
3114:
3115: int main() {
3116: std::set_new_handler(failed_new);
3117:
3118: ; return 0; }
3119: EOF
1.25 paf 3120: if { (eval echo configure:3121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 paf 3121: rm -rf conftest*
3122:
3123: echo "$ac_t""yes" 1>&6
3124: cat >> confdefs.h <<\EOF
3125: #define HAVE_SET_NEW_HANDLER
3126: EOF
3127:
3128:
3129: else
3130: echo "configure: failed program was:" >&5
3131: cat conftest.$ac_ext >&5
3132: rm -rf conftest*
3133: echo "$ac_t""no" 1>&6
3134:
3135: fi
3136: rm -f conftest*
3137:
3138:
3139:
1.15 paf 3140:
1.8 paf 3141: APACHE_LIBS="$LIBS $LIBADD_DL"
1.1 paf 3142:
3143:
3144:
3145:
3146: # expand apostrophed
1.4 paf 3147: e_prefix=$prefix
3148: test "x$e_prefix" = xNONE && e_prefix=$ac_default_prefix
3149:
1.1 paf 3150: e_sysconfdir=$sysconfdir
1.4 paf 3151: test "$e_sysconfdir" = "\${prefix}/etc" && e_sysconfdir="${e_prefix}/etc"
1.1 paf 3152:
3153:
3154: charsetsdir=$e_sysconfdir/parser3.charsets
3155:
3156:
3157: # expand apostrophed
3158: e_libdir=$libdir
3159: if test "$e_libdir" = "\${exec_prefix}/lib"; then
3160:
3161: # Let make expand exec_prefix.
3162: e_exec_prefix=$exec_prefix
1.10 paf 3163: test "x$e_exec_prefix" = xNONE && e_exec_prefix=$e_prefix
1.1 paf 3164:
3165: # expand apostrophed
3166: test "$e_libdir" = "\${exec_prefix}/lib" && e_libdir="${e_exec_prefix}/lib"
3167: fi
3168:
3169: sqldriversdir=$e_libdir
3170:
3171:
3172:
3173:
3174:
3175:
3176:
3177: trap '' 1 2 15
3178: cat > confcache <<\EOF
3179: # This file is a shell script that caches the results of configure
3180: # tests run on this system so they can be shared between configure
3181: # scripts and configure runs. It is not useful on other systems.
3182: # If it contains results you don't want to keep, you may remove or edit it.
3183: #
3184: # By default, configure uses ./config.cache as the cache file,
3185: # creating it if it does not exist already. You can give configure
3186: # the --cache-file=FILE option to use a different cache file; that is
3187: # what configure does when it calls configure scripts in
3188: # subdirectories, so they share the cache.
3189: # Giving --cache-file=/dev/null disables caching, for debugging configure.
3190: # config.status only pays attention to the cache file if you give it the
3191: # --recheck option to rerun configure.
3192: #
3193: EOF
3194: # The following way of writing the cache mishandles newlines in values,
3195: # but we know of no workaround that is simple, portable, and efficient.
3196: # So, don't put newlines in cache variables' values.
3197: # Ultrix sh set writes to stderr and can't be redirected directly,
3198: # and sets the high bit in the cache file unless we assign to the vars.
3199: (set) 2>&1 |
3200: case `(ac_space=' '; set | grep ac_space) 2>&1` in
3201: *ac_space=\ *)
3202: # `set' does not quote correctly, so add quotes (double-quote substitution
3203: # turns \\\\ into \\, and sed turns \\ into \).
3204: sed -n \
3205: -e "s/'/'\\\\''/g" \
3206: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3207: ;;
3208: *)
3209: # `set' quotes correctly as required by POSIX, so do not add quotes.
3210: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3211: ;;
3212: esac >> confcache
3213: if cmp -s $cache_file confcache; then
3214: :
3215: else
3216: if test -w $cache_file; then
3217: echo "updating cache $cache_file"
3218: cat confcache > $cache_file
3219: else
3220: echo "not updating unwritable cache $cache_file"
3221: fi
3222: fi
3223: rm -f confcache
3224:
3225: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3226:
3227: test "x$prefix" = xNONE && prefix=$ac_default_prefix
3228: # Let make expand exec_prefix.
3229: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3230:
3231: # Any assignment to VPATH causes Sun make to only execute
3232: # the first set of double-colon rules, so remove it if not needed.
3233: # If there is a colon in the path, we need to keep it.
3234: if test "x$srcdir" = x.; then
3235: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3236: fi
3237:
3238: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3239:
3240: DEFS=-DHAVE_CONFIG_H
3241:
3242: # Without the "./", some shells look in PATH for config.status.
3243: : ${CONFIG_STATUS=./config.status}
3244:
3245: echo creating $CONFIG_STATUS
3246: rm -f $CONFIG_STATUS
3247: cat > $CONFIG_STATUS <<EOF
3248: #! /bin/sh
3249: # Generated automatically by configure.
3250: # Run this file to recreate the current configuration.
3251: # This directory was configured as follows,
3252: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3253: #
3254: # $0 $ac_configure_args
3255: #
3256: # Compiler output produced by configure, useful for debugging
3257: # configure, is in ./config.log if it exists.
3258:
3259: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3260: for ac_option
3261: do
3262: case "\$ac_option" in
3263: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3264: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3265: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3266: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3267: echo "$CONFIG_STATUS generated by autoconf version 2.13"
3268: exit 0 ;;
3269: -help | --help | --hel | --he | --h)
3270: echo "\$ac_cs_usage"; exit 0 ;;
3271: *) echo "\$ac_cs_usage"; exit 1 ;;
3272: esac
3273: done
3274:
3275: ac_given_srcdir=$srcdir
3276: ac_given_INSTALL="$INSTALL"
3277:
1.27 ! paf 3278: trap 'rm -fr `echo "Makefile src/Makefile src/libltdl/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/classes/smtp/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/patches/Makefile src/pcre/Makefile src/targets/Makefile src/targets/cgi/pa_config_paths.h src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist src/include/pa_config_auto.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1.1 paf 3279: EOF
3280: cat >> $CONFIG_STATUS <<EOF
3281:
3282: # Protect against being on the right side of a sed subst in config.status.
3283: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3284: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3285: $ac_vpsub
3286: $extrasub
3287: s%@SHELL@%$SHELL%g
3288: s%@CFLAGS@%$CFLAGS%g
3289: s%@CPPFLAGS@%$CPPFLAGS%g
3290: s%@CXXFLAGS@%$CXXFLAGS%g
3291: s%@FFLAGS@%$FFLAGS%g
3292: s%@DEFS@%$DEFS%g
3293: s%@LDFLAGS@%$LDFLAGS%g
3294: s%@LIBS@%$LIBS%g
3295: s%@exec_prefix@%$exec_prefix%g
3296: s%@prefix@%$prefix%g
3297: s%@program_transform_name@%$program_transform_name%g
3298: s%@bindir@%$bindir%g
3299: s%@sbindir@%$sbindir%g
3300: s%@libexecdir@%$libexecdir%g
3301: s%@datadir@%$datadir%g
3302: s%@sysconfdir@%$sysconfdir%g
3303: s%@sharedstatedir@%$sharedstatedir%g
3304: s%@localstatedir@%$localstatedir%g
3305: s%@libdir@%$libdir%g
3306: s%@includedir@%$includedir%g
3307: s%@oldincludedir@%$oldincludedir%g
3308: s%@infodir@%$infodir%g
3309: s%@mandir@%$mandir%g
3310: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3311: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3312: s%@INSTALL_DATA@%$INSTALL_DATA%g
3313: s%@PACKAGE@%$PACKAGE%g
3314: s%@VERSION@%$VERSION%g
3315: s%@ACLOCAL@%$ACLOCAL%g
3316: s%@AUTOCONF@%$AUTOCONF%g
3317: s%@AUTOMAKE@%$AUTOMAKE%g
3318: s%@AUTOHEADER@%$AUTOHEADER%g
3319: s%@MAKEINFO@%$MAKEINFO%g
3320: s%@SET_MAKE@%$SET_MAKE%g
3321: s%@P3S@%$P3S%g
3322: s%@CC@%$CC%g
3323: s%@CXX@%$CXX%g
1.15 paf 3324: s%@DO_NOT_LINK_LIBSTDCPP_TRUE@%$DO_NOT_LINK_LIBSTDCPP_TRUE%g
3325: s%@DO_NOT_LINK_LIBSTDCPP_FALSE@%$DO_NOT_LINK_LIBSTDCPP_FALSE%g
1.17 paf 3326: s%@commentcharset_windows1251@%$commentcharset_windows1251%g
3327: s%@commentcharset_windows1250@%$commentcharset_windows1250%g
3328: s%@commentcharset_windows1257@%$commentcharset_windows1257%g
3329: s%@commentcharset_koi8r@%$commentcharset_koi8r%g
3330: s%@mysql_client@%$mysql_client%g
3331: s%@pgsql_client@%$pgsql_client%g
3332: s%@oracle_client@%$oracle_client%g
1.12 paf 3333: s%@XML_INCLUDES@%$XML_INCLUDES%g
3334: s%@XML_LIBS@%$XML_LIBS%g
1.1 paf 3335: s%@APACHE13@%$APACHE13%g
3336: s%@COMPILE_APACHE13_MODULE_TRUE@%$COMPILE_APACHE13_MODULE_TRUE%g
3337: s%@COMPILE_APACHE13_MODULE_FALSE@%$COMPILE_APACHE13_MODULE_FALSE%g
3338: s%@host@%$host%g
3339: s%@host_alias@%$host_alias%g
3340: s%@host_cpu@%$host_cpu%g
3341: s%@host_vendor@%$host_vendor%g
3342: s%@host_os@%$host_os%g
3343: s%@RANLIB@%$RANLIB%g
3344: s%@AWK@%$AWK%g
3345: s%@YACC@%$YACC%g
3346: s%@INCLTDL@%$INCLTDL%g
3347: s%@LIBLTDL@%$LIBLTDL%g
1.8 paf 3348: s%@subdirs@%$subdirs%g
1.1 paf 3349: s%@LIBADD_DL@%$LIBADD_DL%g
3350: s%@CXXCPP@%$CXXCPP%g
3351: s%@APACHE_LIBS@%$APACHE_LIBS%g
3352: s%@charsetsdir@%$charsetsdir%g
3353: s%@sqldriversdir@%$sqldriversdir%g
3354:
3355: CEOF
3356: EOF
3357:
3358: cat >> $CONFIG_STATUS <<\EOF
3359:
3360: # Split the substitutions into bite-sized pieces for seds with
3361: # small command number limits, like on Digital OSF/1 and HP-UX.
3362: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3363: ac_file=1 # Number of current file.
3364: ac_beg=1 # First line for current file.
3365: ac_end=$ac_max_sed_cmds # Line after last line for current file.
3366: ac_more_lines=:
3367: ac_sed_cmds=""
3368: while $ac_more_lines; do
3369: if test $ac_beg -gt 1; then
3370: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3371: else
3372: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3373: fi
3374: if test ! -s conftest.s$ac_file; then
3375: ac_more_lines=false
3376: rm -f conftest.s$ac_file
3377: else
3378: if test -z "$ac_sed_cmds"; then
3379: ac_sed_cmds="sed -f conftest.s$ac_file"
3380: else
3381: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3382: fi
3383: ac_file=`expr $ac_file + 1`
3384: ac_beg=$ac_end
3385: ac_end=`expr $ac_end + $ac_max_sed_cmds`
3386: fi
3387: done
3388: if test -z "$ac_sed_cmds"; then
3389: ac_sed_cmds=cat
3390: fi
3391: EOF
3392:
3393: cat >> $CONFIG_STATUS <<EOF
3394:
1.27 ! paf 3395: CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile src/libltdl/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/classes/smtp/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/patches/Makefile src/pcre/Makefile src/targets/Makefile src/targets/cgi/pa_config_paths.h src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist"}
1.1 paf 3396: EOF
3397: cat >> $CONFIG_STATUS <<\EOF
3398: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3399: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3400: case "$ac_file" in
3401: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3402: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3403: *) ac_file_in="${ac_file}.in" ;;
3404: esac
3405:
3406: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3407:
3408: # Remove last slash and all that follows it. Not all systems have dirname.
3409: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3410: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3411: # The file is in a subdirectory.
3412: test ! -d "$ac_dir" && mkdir "$ac_dir"
3413: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3414: # A "../" for each directory in $ac_dir_suffix.
3415: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3416: else
3417: ac_dir_suffix= ac_dots=
3418: fi
3419:
3420: case "$ac_given_srcdir" in
3421: .) srcdir=.
3422: if test -z "$ac_dots"; then top_srcdir=.
3423: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3424: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3425: *) # Relative path.
3426: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3427: top_srcdir="$ac_dots$ac_given_srcdir" ;;
3428: esac
3429:
3430: case "$ac_given_INSTALL" in
3431: [/$]*) INSTALL="$ac_given_INSTALL" ;;
3432: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3433: esac
3434:
3435: echo creating "$ac_file"
3436: rm -f "$ac_file"
3437: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3438: case "$ac_file" in
3439: *Makefile*) ac_comsub="1i\\
3440: # $configure_input" ;;
3441: *) ac_comsub= ;;
3442: esac
3443:
3444: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3445: sed -e "$ac_comsub
3446: s%@configure_input@%$configure_input%g
3447: s%@srcdir@%$srcdir%g
3448: s%@top_srcdir@%$top_srcdir%g
3449: s%@INSTALL@%$INSTALL%g
3450: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3451: fi; done
3452: rm -f conftest.s*
3453:
3454: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3455: # NAME is the cpp macro being defined and VALUE is the value it is being given.
3456: #
3457: # ac_d sets the value in "#define NAME VALUE" lines.
3458: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3459: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3460: ac_dC='\3'
3461: ac_dD='%g'
3462: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3463: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3464: ac_uB='\([ ]\)%\1#\2define\3'
3465: ac_uC=' '
3466: ac_uD='\4%g'
3467: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3468: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3469: ac_eB='$%\1#\2define\3'
3470: ac_eC=' '
3471: ac_eD='%g'
3472:
3473: if test "${CONFIG_HEADERS+set}" != set; then
3474: EOF
3475: cat >> $CONFIG_STATUS <<EOF
3476: CONFIG_HEADERS="src/include/pa_config_auto.h"
3477: EOF
3478: cat >> $CONFIG_STATUS <<\EOF
3479: fi
3480: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3481: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3482: case "$ac_file" in
3483: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3484: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3485: *) ac_file_in="${ac_file}.in" ;;
3486: esac
3487:
3488: echo creating $ac_file
3489:
3490: rm -f conftest.frag conftest.in conftest.out
3491: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3492: cat $ac_file_inputs > conftest.in
3493:
3494: EOF
3495:
3496: # Transform confdefs.h into a sed script conftest.vals that substitutes
3497: # the proper values into config.h.in to produce config.h. And first:
3498: # Protect against being on the right side of a sed subst in config.status.
3499: # Protect against being in an unquoted here document in config.status.
3500: rm -f conftest.vals
3501: cat > conftest.hdr <<\EOF
3502: s/[\\&%]/\\&/g
3503: s%[\\$`]%\\&%g
3504: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3505: s%ac_d%ac_u%gp
3506: s%ac_u%ac_e%gp
3507: EOF
3508: sed -n -f conftest.hdr confdefs.h > conftest.vals
3509: rm -f conftest.hdr
3510:
3511: # This sed command replaces #undef with comments. This is necessary, for
3512: # example, in the case of _POSIX_SOURCE, which is predefined and required
3513: # on some systems where configure will not decide to define it.
3514: cat >> conftest.vals <<\EOF
3515: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3516: EOF
3517:
3518: # Break up conftest.vals because some shells have a limit on
3519: # the size of here documents, and old seds have small limits too.
3520:
3521: rm -f conftest.tail
3522: while :
3523: do
3524: ac_lines=`grep -c . conftest.vals`
3525: # grep -c gives empty output for an empty file on some AIX systems.
3526: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3527: # Write a limited-size here document to conftest.frag.
3528: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3529: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3530: echo 'CEOF
3531: sed -f conftest.frag conftest.in > conftest.out
3532: rm -f conftest.in
3533: mv conftest.out conftest.in
3534: ' >> $CONFIG_STATUS
3535: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3536: rm -f conftest.vals
3537: mv conftest.tail conftest.vals
3538: done
3539: rm -f conftest.vals
3540:
3541: cat >> $CONFIG_STATUS <<\EOF
3542: rm -f conftest.frag conftest.h
3543: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3544: cat conftest.in >> conftest.h
3545: rm -f conftest.in
3546: if cmp -s $ac_file conftest.h 2>/dev/null; then
3547: echo "$ac_file is unchanged"
3548: rm -f conftest.h
3549: else
3550: # Remove last slash and all that follows it. Not all systems have dirname.
3551: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3552: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3553: # The file is in a subdirectory.
3554: test ! -d "$ac_dir" && mkdir "$ac_dir"
3555: fi
3556: rm -f $ac_file
3557: mv conftest.h $ac_file
3558: fi
3559: fi; done
3560:
3561: EOF
3562: cat >> $CONFIG_STATUS <<EOF
3563:
3564:
3565: EOF
3566: cat >> $CONFIG_STATUS <<\EOF
3567: test -z "$CONFIG_HEADERS" || echo timestamp > src/include/stamp-h
3568:
3569: exit 0
3570: EOF
3571: chmod +x $CONFIG_STATUS
3572: rm -fr confdefs* $ac_clean_files
3573: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3574:
3575: if test "$no_recursion" != yes; then
3576:
3577: # Remove --cache-file and --srcdir arguments so they do not pile up.
3578: ac_sub_configure_args=
3579: ac_prev=
3580: for ac_arg in $ac_configure_args; do
3581: if test -n "$ac_prev"; then
3582: ac_prev=
3583: continue
3584: fi
3585: case "$ac_arg" in
3586: -cache-file | --cache-file | --cache-fil | --cache-fi \
3587: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3588: ac_prev=cache_file ;;
3589: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3590: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3591: ;;
3592: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3593: ac_prev=srcdir ;;
3594: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3595: ;;
3596: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3597: esac
3598: done
3599:
3600: for ac_config_dir in src/libltdl; do
3601:
3602: # Do not complain, so a configure script can configure whichever
3603: # parts of a large source tree are present.
3604: if test ! -d $srcdir/$ac_config_dir; then
3605: continue
3606: fi
3607:
3608: echo configuring in $ac_config_dir
3609:
3610: case "$srcdir" in
3611: .) ;;
3612: *)
3613: if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3614: else
3615: { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3616: fi
3617: ;;
3618: esac
3619:
3620: ac_popdir=`pwd`
3621: cd $ac_config_dir
3622:
3623: # A "../" for each directory in /$ac_config_dir.
3624: ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3625:
3626: case "$srcdir" in
3627: .) # No --srcdir option. We are building in place.
3628: ac_sub_srcdir=$srcdir ;;
3629: /*) # Absolute path.
3630: ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3631: *) # Relative path.
3632: ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3633: esac
3634:
3635: # Check for guested configure; otherwise get Cygnus style configure.
3636: if test -f $ac_sub_srcdir/configure; then
3637: ac_sub_configure=$ac_sub_srcdir/configure
3638: elif test -f $ac_sub_srcdir/configure.in; then
3639: ac_sub_configure=$ac_configure
3640: else
3641: echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3642: ac_sub_configure=
3643: fi
3644:
3645: # The recursion is here.
3646: if test -n "$ac_sub_configure"; then
3647:
3648: # Make the cache file name correct relative to the subdirectory.
3649: case "$cache_file" in
3650: /*) ac_sub_cache_file=$cache_file ;;
3651: *) # Relative path.
3652: ac_sub_cache_file="$ac_dots$cache_file" ;;
3653: esac
3654: case "$ac_given_INSTALL" in
3655: [/$]*) INSTALL="$ac_given_INSTALL" ;;
3656: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3657: esac
3658:
3659: echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3660: # The eval makes quoting arguments work.
3661: if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3662: then :
3663: else
3664: { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3665: fi
3666: fi
3667:
3668: cd $ac_popdir
3669: done
3670: fi
3671:
E-mail: