Annotation of parser3/configure, revision 1.17
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:
737: VERSION=3.0b
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.17 ! paf 1382: sourcecharsetsdir=$srcdir/etc/parser3.charsets
! 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:
! 1391:
! 1392:
! 1393:
! 1394: commentcharset_windows1251='#'
! 1395: for c in $CHARSETS_REQUESTED; do
! 1396: if test "windows-1251" = "$c"; then
! 1397: if test -f $sourcecharsetsdir/windows-1251.cfg; then
! 1398: echo "configure: warning: Enabling charset windows-1251" 1>&2
! 1399: commentcharset_windows1251=
! 1400: else
! 1401: { echo "configure: error: bad charset requested "windows-1251" - file $sourcecharsetsdir/windows-1251.cfg not found" 1>&2; exit 1; }
! 1402: fi
! 1403: fi
! 1404: done
! 1405:
! 1406:
! 1407:
! 1408: commentcharset_windows1250='#'
! 1409: for c in $CHARSETS_REQUESTED; do
! 1410: if test "windows-1250" = "$c"; then
! 1411: if test -f $sourcecharsetsdir/windows-1250.cfg; then
! 1412: echo "configure: warning: Enabling charset windows-1250" 1>&2
! 1413: commentcharset_windows1250=
! 1414: else
! 1415: { echo "configure: error: bad charset requested "windows-1250" - file $sourcecharsetsdir/windows-1250.cfg not found" 1>&2; exit 1; }
! 1416: fi
! 1417: fi
! 1418: done
! 1419:
! 1420:
! 1421:
! 1422: commentcharset_windows1257='#'
! 1423: for c in $CHARSETS_REQUESTED; do
! 1424: if test "windows-1257" = "$c"; then
! 1425: if test -f $sourcecharsetsdir/windows-1257.cfg; then
! 1426: echo "configure: warning: Enabling charset windows-1257" 1>&2
! 1427: commentcharset_windows1257=
! 1428: else
! 1429: { echo "configure: error: bad charset requested "windows-1257" - file $sourcecharsetsdir/windows-1257.cfg not found" 1>&2; exit 1; }
! 1430: fi
! 1431: fi
! 1432: done
! 1433:
! 1434:
! 1435:
! 1436: commentcharset_koi8r='#'
! 1437: for c in $CHARSETS_REQUESTED; do
! 1438: if test "koi8-r" = "$c"; then
! 1439: if test -f $sourcecharsetsdir/koi8-r.cfg; then
! 1440: echo "configure: warning: Enabling charset koi8-r" 1>&2
! 1441: commentcharset_koi8r=
! 1442: else
! 1443: { echo "configure: error: bad charset requested "koi8-r" - file $sourcecharsetsdir/koi8-r.cfg not found" 1>&2; exit 1; }
! 1444: fi
! 1445: fi
! 1446: done
! 1447:
! 1448:
! 1449:
! 1450:
! 1451: # Check whether --with-mysql-client or --without-mysql-client was given.
! 1452: if test "${with_mysql_client+set}" = set; then
! 1453: withval="$with_mysql_client"
! 1454: mysql_client=$withval
! 1455:
! 1456: else
! 1457: echo $ac_n "checking for mysql client""... $ac_c" 1>&6
! 1458: echo "configure:1459: checking for mysql client" >&5
! 1459: for lib in \
! 1460: /usr/local/lib/mysql/libmysqlclient.so \
! 1461: /usr/local/lib/libmysqlclient.so \
! 1462: /usr/lib/libmysqlclient.so; do
! 1463: if test -f $lib; then mysql_client=$lib; fi
! 1464: done
! 1465:
! 1466: if test -z "$mysql_client"; then
! 1467: mysql_client="-configure could not guess-"
! 1468: echo "configure: warning: could not guess mysql client" 1>&2
! 1469: else
! 1470: echo "$ac_t""$mysql_client" 1>&6
! 1471: fi
! 1472:
! 1473:
! 1474: fi
! 1475:
! 1476:
! 1477:
! 1478: # Check whether --with-pgsql-client or --without-pgsql-client was given.
! 1479: if test "${with_pgsql_client+set}" = set; then
! 1480: withval="$with_pgsql_client"
! 1481: mysql_client=$withval
! 1482:
! 1483: else
! 1484: echo $ac_n "checking for pgsql client""... $ac_c" 1>&6
! 1485: echo "configure:1486: checking for pgsql client" >&5
! 1486: for lib in \
! 1487: /usr/local/pgsql/lib/libpq.so \
! 1488: /usr/local/lib/libpq.so \
! 1489: /usr/lib/libpq.so; do
! 1490: if test -f $lib; then pgsql_client=$lib; fi
! 1491: done
! 1492:
! 1493: if test -z "$pgsql_client"; then
! 1494: pgsql_client="-configure could not guess-"
! 1495: echo "configure: warning: could not guess pgsql client" 1>&2
! 1496: else
! 1497: echo "$ac_t""$pgsql_client" 1>&6
! 1498: fi
! 1499:
! 1500:
! 1501: fi
! 1502:
! 1503:
! 1504:
! 1505: # Check whether --with-oracle-client or --without-oracle-client was given.
! 1506: if test "${with_oracle_client+set}" = set; then
! 1507: withval="$with_oracle_client"
! 1508: oracle_client=$withval
! 1509:
! 1510: else
! 1511: echo $ac_n "checking for oracle client""... $ac_c" 1>&6
! 1512: echo "configure:1513: checking for oracle client" >&5
! 1513: lib=$ORACLE_HOME/lib/libclntsh.so
! 1514: if test -f $lib; then oracle_client=$lib; fi
! 1515:
! 1516: if test -z "$oracle_client"; then
! 1517: oracle_client="-configure could not guess-"
! 1518: echo "configure: warning: could not guess oracle client" 1>&2
! 1519: else
! 1520: oracle_client="$oracle_client?ORACLE_HOME=$ORACLE_HOME&ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data"
! 1521: echo "$ac_t""$oracle_client" 1>&6
! 1522: fi
! 1523:
! 1524:
! 1525: fi
! 1526:
! 1527:
! 1528:
! 1529:
1.14 paf 1530:
1.1 paf 1531: # Check whether --with-pathlink or --without-pathlink was given.
1532: if test "${with_pathlink+set}" = set; then
1533: withval="$with_pathlink"
1534: LD_PATHLINK=$withval
1535:
1536: fi
1537:
1538:
1.15 paf 1539:
1.7 paf 1540: # Check whether --with-glib-config or --without-glib-config was given.
1541: if test "${with_glib_config+set}" = set; then
1542: withval="$with_glib_config"
1543: GLIB_CONFIG=$withval
1544:
1545: fi
1546:
1547:
1.10 paf 1548: # Check whether --with-shared-xml or --without-shared-xml was given.
1549: if test "${with_shared_xml+set}" = set; then
1550: withval="$with_shared_xml"
1.1 paf 1551:
1552: GNOME_XML=$withval
1.11 paf 1553: XMLBIN="$GNOME_XML/bin"
1554: XMLINC="$GNOME_XML/include"
1555: XMLLIB="$GNOME_XML/lib"
1.1 paf 1556:
1.11 paf 1557: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
1.1 paf 1558: { echo "configure: error: $GNOME_XML does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
1559: fi
1560:
1561: cat >> confdefs.h <<\EOF
1562: #define XML
1563: EOF
1564:
1565:
1.11 paf 1566: LIBXML2_SO_NAME=`cd $XMLLIB ; ls libxml2.?? libxml2.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1567: LIBGDOME_SO_NAME=`cd $XMLLIB ; ls libgdome.?? libgdome.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1568: LIBXSLT_SO_NAME=`cd $XMLLIB ; ls libxslt.?? libxslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1569: LIBEXSLT_SO_NAME=`cd $XMLLIB ; ls libexslt.?? libexslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1.7 paf 1570:
1571: if test -z "$GLIB_CONFIG"; then
1.11 paf 1572: GLIB_CONFIG=$XMLBIN/glib-config
1.7 paf 1573: if test \! -x $GLIB_CONFIG; then
1574: GLIB_CONFIG=glib-config
1575: fi
1.1 paf 1576: fi
1577: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1578: GLIB_LIBS=`$GLIB_CONFIG --libs`
1579:
1.11 paf 1580: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libgdome -I$XMLINC/libxml2"
1581: 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 1582: if test \! -z "$LD_PATHLINK"; then
1.11 paf 1583: XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB"
1.1 paf 1584: fi
1585:
1586: fi
1587:
1588:
1.10 paf 1589: # Check whether --with-static-xml or --without-static-xml was given.
1590: if test "${with_static_xml+set}" = set; then
1591: withval="$with_static_xml"
1592:
1593: GNOME_XML=$withval
1.11 paf 1594: XMLBIN="$GNOME_XML/bin"
1595: XMLINC="$GNOME_XML/include"
1596: XMLLIB="$GNOME_XML/lib"
1.10 paf 1597:
1.11 paf 1598: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
1.10 paf 1599: { echo "configure: error: $GNOME_XML does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
1600: fi
1601:
1602: cat >> confdefs.h <<\EOF
1603: #define XML
1604: EOF
1605:
1606:
1607: if test -z "$GLIB_CONFIG"; then
1.11 paf 1608: GLIB_CONFIG=$XMLBIN/glib-config
1.10 paf 1609: if test \! -x $GLIB_CONFIG; then
1610: GLIB_CONFIG=glib-config
1611: fi
1612: fi
1613: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1614:
1.11 paf 1615: GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
1616: GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
1617: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libgdome -I$XMLINC/libxml2"
1618: XML_LIBS="$XMLLIB/libgdome.a $XMLLIB/libxslt.a $XMLLIB/libexslt.a $XMLLIB/libxml2.a $GLIB_DIR/lib$GLIB_NAME.a"
1.10 paf 1619:
1620: fi
1621:
1622:
1.1 paf 1623:
1624:
1.16 paf 1625:
1626: # Check whether --with-sendmail or --without-sendmail was given.
1627: if test "${with_sendmail+set}" = set; then
1628: withval="$with_sendmail"
1629: cat >> confdefs.h <<EOF
1630: #define PA_FORCED_SENDMAIL "$withval"
1631: EOF
1632:
1633:
1634: fi
1635:
1636:
1637:
1.12 paf 1638: # Check whether --with-apache13 or --without-apache13 was given.
1639: if test "${with_apache13+set}" = set; then
1640: withval="$with_apache13"
1641: APACHE13=$withval
1642: if test \! -f "$APACHE13/src/include/httpd.h"; then
1643: { echo "configure: error: $APACHE13 does not seem to be valid Apache13 source distribution directory" 1>&2; exit 1; }
1644: fi
1645:
1646: fi
1647:
1648:
1649:
1650:
1651: if test -n "$APACHE13"; then
1652: COMPILE_APACHE13_MODULE_TRUE=
1653: COMPILE_APACHE13_MODULE_FALSE='#'
1654: else
1655: COMPILE_APACHE13_MODULE_TRUE='#'
1656: COMPILE_APACHE13_MODULE_FALSE=
1657: fi
1658:
1659:
1.1 paf 1660:
1661: # Make sure we can run config.sub.
1662: if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1663: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1664: fi
1665:
1666: echo $ac_n "checking host system type""... $ac_c" 1>&6
1.17 ! paf 1667: echo "configure:1668: checking host system type" >&5
1.1 paf 1668:
1669: host_alias=$host
1670: case "$host_alias" in
1671: NONE)
1672: case $nonopt in
1673: NONE)
1674: if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1675: else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1676: fi ;;
1677: *) host_alias=$nonopt ;;
1678: esac ;;
1679: esac
1680:
1681: host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1682: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1683: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1684: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685: echo "$ac_t""$host" 1>&6
1686:
1687:
1688:
1689: # Find a good install program. We prefer a C program (faster),
1690: # so one script is as good as another. But avoid the broken or
1691: # incompatible versions:
1692: # SysV /etc/install, /usr/sbin/install
1693: # SunOS /usr/etc/install
1694: # IRIX /sbin/install
1695: # AIX /bin/install
1696: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1697: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1698: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1699: # ./install, which can be erroneously created by make from ./install.sh.
1700: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.17 ! paf 1701: echo "configure:1702: checking for a BSD compatible install" >&5
1.1 paf 1702: if test -z "$INSTALL"; then
1703: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1704: echo $ac_n "(cached) $ac_c" 1>&6
1705: else
1706: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1707: for ac_dir in $PATH; do
1708: # Account for people who put trailing slashes in PATH elements.
1709: case "$ac_dir/" in
1710: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1711: *)
1712: # OSF1 and SCO ODT 3.0 have their own names for install.
1713: # Don't use installbsd from OSF since it installs stuff as root
1714: # by default.
1715: for ac_prog in ginstall scoinst install; do
1716: if test -f $ac_dir/$ac_prog; then
1717: if test $ac_prog = install &&
1718: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1719: # AIX install. It has an incompatible calling convention.
1720: :
1721: else
1722: ac_cv_path_install="$ac_dir/$ac_prog -c"
1723: break 2
1724: fi
1725: fi
1726: done
1727: ;;
1728: esac
1729: done
1730: IFS="$ac_save_IFS"
1731:
1732: fi
1733: if test "${ac_cv_path_install+set}" = set; then
1734: INSTALL="$ac_cv_path_install"
1735: else
1736: # As a last resort, use the slow shell script. We don't cache a
1737: # path for INSTALL within a source directory, because that will
1738: # break other packages using the cache if that directory is
1739: # removed, or if the path is relative.
1740: INSTALL="$ac_install_sh"
1741: fi
1742: fi
1743: echo "$ac_t""$INSTALL" 1>&6
1744:
1745: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1746: # It thinks the first close brace ends the variable substitution.
1747: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1748:
1749: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1750:
1751: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1752:
1753: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.17 ! paf 1754: echo "configure:1755: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.1 paf 1755: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1756: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1757: echo $ac_n "(cached) $ac_c" 1>&6
1758: else
1759: cat > conftestmake <<\EOF
1760: all:
1761: @echo 'ac_maketemp="${MAKE}"'
1762: EOF
1763: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1764: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1765: if test -n "$ac_maketemp"; then
1766: eval ac_cv_prog_make_${ac_make}_set=yes
1767: else
1768: eval ac_cv_prog_make_${ac_make}_set=no
1769: fi
1770: rm -f conftestmake
1771: fi
1772: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1773: echo "$ac_t""yes" 1>&6
1774: SET_MAKE=
1775: else
1776: echo "$ac_t""no" 1>&6
1777: SET_MAKE="MAKE=${MAKE-make}"
1778: fi
1779:
1780: # Extract the first word of "ranlib", so it can be a program name with args.
1781: set dummy ranlib; ac_word=$2
1782: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.17 ! paf 1783: echo "configure:1784: checking for $ac_word" >&5
1.1 paf 1784: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1785: echo $ac_n "(cached) $ac_c" 1>&6
1786: else
1787: if test -n "$RANLIB"; then
1788: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1789: else
1790: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1791: ac_dummy="$PATH"
1792: for ac_dir in $ac_dummy; do
1793: test -z "$ac_dir" && ac_dir=.
1794: if test -f $ac_dir/$ac_word; then
1795: ac_cv_prog_RANLIB="ranlib"
1796: break
1797: fi
1798: done
1799: IFS="$ac_save_ifs"
1800: test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1801: fi
1802: fi
1803: RANLIB="$ac_cv_prog_RANLIB"
1804: if test -n "$RANLIB"; then
1805: echo "$ac_t""$RANLIB" 1>&6
1806: else
1807: echo "$ac_t""no" 1>&6
1808: fi
1809:
1810: for ac_prog in mawk gawk nawk awk
1811: do
1812: # Extract the first word of "$ac_prog", so it can be a program name with args.
1813: set dummy $ac_prog; ac_word=$2
1814: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.17 ! paf 1815: echo "configure:1816: checking for $ac_word" >&5
1.1 paf 1816: if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1817: echo $ac_n "(cached) $ac_c" 1>&6
1818: else
1819: if test -n "$AWK"; then
1820: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1821: else
1822: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1823: ac_dummy="$PATH"
1824: for ac_dir in $ac_dummy; do
1825: test -z "$ac_dir" && ac_dir=.
1826: if test -f $ac_dir/$ac_word; then
1827: ac_cv_prog_AWK="$ac_prog"
1828: break
1829: fi
1830: done
1831: IFS="$ac_save_ifs"
1832: fi
1833: fi
1834: AWK="$ac_cv_prog_AWK"
1835: if test -n "$AWK"; then
1836: echo "$ac_t""$AWK" 1>&6
1837: else
1838: echo "$ac_t""no" 1>&6
1839: fi
1840:
1841: test -n "$AWK" && break
1842: done
1843:
1844:
1845: for ac_prog in 'bison -y' byacc
1846: do
1847: # Extract the first word of "$ac_prog", so it can be a program name with args.
1848: set dummy $ac_prog; ac_word=$2
1849: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.17 ! paf 1850: echo "configure:1851: checking for $ac_word" >&5
1.1 paf 1851: if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1852: echo $ac_n "(cached) $ac_c" 1>&6
1853: else
1854: if test -n "$YACC"; then
1855: ac_cv_prog_YACC="$YACC" # Let the user override the test.
1856: else
1857: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1858: ac_dummy="$PATH"
1859: for ac_dir in $ac_dummy; do
1860: test -z "$ac_dir" && ac_dir=.
1861: if test -f $ac_dir/$ac_word; then
1862: ac_cv_prog_YACC="$ac_prog"
1863: break
1864: fi
1865: done
1866: IFS="$ac_save_ifs"
1867: fi
1868: fi
1869: YACC="$ac_cv_prog_YACC"
1870: if test -n "$YACC"; then
1871: echo "$ac_t""$YACC" 1>&6
1872: else
1873: echo "$ac_t""no" 1>&6
1874: fi
1875:
1876: test -n "$YACC" && break
1877: done
1878: test -n "$YACC" || YACC="yacc"
1879:
1880: if test "$YACC" != "bison -y"; then
1881: echo "configure: warning: to regenerate Parser grammar YOU WOULD NEED BISON" 1>&2
1882: else
1883: echo $ac_n "checking bison version""... $ac_c" 1>&6
1.17 ! paf 1884: echo "configure:1885: checking bison version" >&5
1.1 paf 1885: oldIFS=$IFS; IFS=.
1886: set `bison -V | sed -e 's/^GNU Bison version //'`
1887: IFS=$oldIFS
1888: if test "$1" = "1" -a "$2" -lt "25"; then
1889: echo "configure: warning: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." 1>&2
1890: fi
1891: echo "$ac_t""$1.$2 (ok)" 1>&6
1892: fi
1893:
1.8 paf 1894: LIBLTDL='${top_builddir}/'src/libltdl/libltdlc.a
1.1 paf 1895: INCLTDL='-I${top_srcdir}/'src/libltdl
1896:
1897:
1898:
1899:
1.8 paf 1900: subdirs="src/libltdl"
1901:
1902: LIBADD_DL=
1903: echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1.17 ! paf 1904: echo "configure:1905: checking for dlopen in -ldl" >&5
1.8 paf 1905: ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1906: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1907: echo $ac_n "(cached) $ac_c" 1>&6
1.1 paf 1908: else
1.8 paf 1909: ac_save_LIBS="$LIBS"
1910: LIBS="-ldl $LIBS"
1911: cat > conftest.$ac_ext <<EOF
1.17 ! paf 1912: #line 1913 "configure"
1.8 paf 1913: #include "confdefs.h"
1914: /* Override any gcc2 internal prototype to avoid an error. */
1915: #ifdef __cplusplus
1916: extern "C"
1917: #endif
1918: /* We use char because int might match the return type of a gcc2
1919: builtin and then its argument prototype would still apply. */
1920: char dlopen();
1.1 paf 1921:
1.8 paf 1922: int main() {
1923: dlopen()
1924: ; return 0; }
1925: EOF
1.17 ! paf 1926: if { (eval echo configure:1927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 1927: rm -rf conftest*
1928: eval "ac_cv_lib_$ac_lib_var=yes"
1.1 paf 1929: else
1.8 paf 1930: echo "configure: failed program was:" >&5
1931: cat conftest.$ac_ext >&5
1932: rm -rf conftest*
1933: eval "ac_cv_lib_$ac_lib_var=no"
1.1 paf 1934: fi
1.8 paf 1935: rm -f conftest*
1936: LIBS="$ac_save_LIBS"
1.1 paf 1937:
1.8 paf 1938: fi
1939: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1940: echo "$ac_t""yes" 1>&6
1941: cat >> confdefs.h <<\EOF
1942: #define HAVE_LIBDL 1
1943: EOF
1944: LIBADD_DL="-ldl"
1945: else
1946: echo "$ac_t""no" 1>&6
1947: echo $ac_n "checking for dlopen""... $ac_c" 1>&6
1.17 ! paf 1948: echo "configure:1949: checking for dlopen" >&5
1.8 paf 1949: if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
1950: echo $ac_n "(cached) $ac_c" 1>&6
1.1 paf 1951: else
1.8 paf 1952: cat > conftest.$ac_ext <<EOF
1.17 ! paf 1953: #line 1954 "configure"
1.8 paf 1954: #include "confdefs.h"
1955: /* System header to define __stub macros and hopefully few prototypes,
1956: which can conflict with char dlopen(); below. */
1957: #include <assert.h>
1958: /* Override any gcc2 internal prototype to avoid an error. */
1959: #ifdef __cplusplus
1960: extern "C"
1961: #endif
1962: /* We use char because int might match the return type of a gcc2
1963: builtin and then its argument prototype would still apply. */
1964: char dlopen();
1.1 paf 1965:
1.8 paf 1966: int main() {
1.1 paf 1967:
1.8 paf 1968: /* The GNU C library defines this for functions which it implements
1969: to always fail with ENOSYS. Some functions are actually named
1970: something starting with __ and the normal name is an alias. */
1971: #if defined (__stub_dlopen) || defined (__stub___dlopen)
1972: choke me
1973: #else
1974: dlopen();
1975: #endif
1.1 paf 1976:
1.8 paf 1977: ; return 0; }
1978: EOF
1.17 ! paf 1979: if { (eval echo configure:1980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 1980: rm -rf conftest*
1981: eval "ac_cv_func_dlopen=yes"
1.1 paf 1982: else
1.8 paf 1983: echo "configure: failed program was:" >&5
1984: cat conftest.$ac_ext >&5
1985: rm -rf conftest*
1986: eval "ac_cv_func_dlopen=no"
1.1 paf 1987: fi
1.8 paf 1988: rm -f conftest*
1.1 paf 1989: fi
1990:
1.8 paf 1991: if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
1992: echo "$ac_t""yes" 1>&6
1993: cat >> confdefs.h <<\EOF
1994: #define HAVE_LIBDL 1
1995: EOF
1996:
1.1 paf 1997: else
1998: echo "$ac_t""no" 1>&6
1999: fi
1.8 paf 2000:
2001: fi
2002:
2003: echo $ac_n "checking for shl_load""... $ac_c" 1>&6
1.17 ! paf 2004: echo "configure:2005: checking for shl_load" >&5
1.8 paf 2005: if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
1.1 paf 2006: echo $ac_n "(cached) $ac_c" 1>&6
2007: else
1.8 paf 2008: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2009: #line 2010 "configure"
1.8 paf 2010: #include "confdefs.h"
2011: /* System header to define __stub macros and hopefully few prototypes,
2012: which can conflict with char shl_load(); below. */
2013: #include <assert.h>
2014: /* Override any gcc2 internal prototype to avoid an error. */
2015: #ifdef __cplusplus
2016: extern "C"
2017: #endif
2018: /* We use char because int might match the return type of a gcc2
2019: builtin and then its argument prototype would still apply. */
2020: char shl_load();
1.1 paf 2021:
1.8 paf 2022: int main() {
1.1 paf 2023:
1.8 paf 2024: /* The GNU C library defines this for functions which it implements
2025: to always fail with ENOSYS. Some functions are actually named
2026: something starting with __ and the normal name is an alias. */
2027: #if defined (__stub_shl_load) || defined (__stub___shl_load)
2028: choke me
2029: #else
2030: shl_load();
2031: #endif
1.1 paf 2032:
1.8 paf 2033: ; return 0; }
2034: EOF
1.17 ! paf 2035: if { (eval echo configure:2036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2036: rm -rf conftest*
2037: eval "ac_cv_func_shl_load=yes"
1.1 paf 2038: else
1.8 paf 2039: echo "configure: failed program was:" >&5
2040: cat conftest.$ac_ext >&5
2041: rm -rf conftest*
2042: eval "ac_cv_func_shl_load=no"
1.1 paf 2043: fi
1.8 paf 2044: rm -f conftest*
1.1 paf 2045: fi
2046:
1.8 paf 2047: if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
2048: echo "$ac_t""yes" 1>&6
2049: cat >> confdefs.h <<\EOF
2050: #define HAVE_SHL_LOAD 1
2051: EOF
1.1 paf 2052:
1.8 paf 2053: else
2054: echo "$ac_t""no" 1>&6
2055: echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
1.17 ! paf 2056: echo "configure:2057: checking for shl_load in -ldld" >&5
1.8 paf 2057: ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
2058: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1.1 paf 2059: echo $ac_n "(cached) $ac_c" 1>&6
2060: else
1.8 paf 2061: ac_save_LIBS="$LIBS"
2062: LIBS="-ldld $LIBS"
2063: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2064: #line 2065 "configure"
1.8 paf 2065: #include "confdefs.h"
2066: /* Override any gcc2 internal prototype to avoid an error. */
2067: #ifdef __cplusplus
2068: extern "C"
2069: #endif
2070: /* We use char because int might match the return type of a gcc2
2071: builtin and then its argument prototype would still apply. */
2072: char shl_load();
2073:
2074: int main() {
2075: shl_load()
2076: ; return 0; }
2077: EOF
1.17 ! paf 2078: if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2079: rm -rf conftest*
2080: eval "ac_cv_lib_$ac_lib_var=yes"
1.1 paf 2081: else
1.8 paf 2082: echo "configure: failed program was:" >&5
2083: cat conftest.$ac_ext >&5
2084: rm -rf conftest*
2085: eval "ac_cv_lib_$ac_lib_var=no"
1.1 paf 2086: fi
1.8 paf 2087: rm -f conftest*
2088: LIBS="$ac_save_LIBS"
2089:
1.1 paf 2090: fi
1.8 paf 2091: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1.1 paf 2092: echo "$ac_t""yes" 1>&6
1.8 paf 2093: cat >> confdefs.h <<\EOF
2094: #define HAVE_SHL_LOAD 1
2095: EOF
2096: LIBADD_DL="$LIBADD_DL -ldld"
1.1 paf 2097: else
2098: echo "$ac_t""no" 1>&6
2099: fi
2100:
1.8 paf 2101: fi
1.1 paf 2102:
1.8 paf 2103: echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
1.17 ! paf 2104: echo "configure:2105: checking for dld_link in -ldld" >&5
1.8 paf 2105: ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2106: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2107: echo $ac_n "(cached) $ac_c" 1>&6
2108: else
2109: ac_save_LIBS="$LIBS"
2110: LIBS="-ldld $LIBS"
2111: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2112: #line 2113 "configure"
1.8 paf 2113: #include "confdefs.h"
2114: /* Override any gcc2 internal prototype to avoid an error. */
2115: #ifdef __cplusplus
2116: extern "C"
2117: #endif
2118: /* We use char because int might match the return type of a gcc2
2119: builtin and then its argument prototype would still apply. */
2120: char dld_link();
1.1 paf 2121:
1.8 paf 2122: int main() {
2123: dld_link()
2124: ; return 0; }
2125: EOF
1.17 ! paf 2126: if { (eval echo configure:2127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2127: rm -rf conftest*
2128: eval "ac_cv_lib_$ac_lib_var=yes"
2129: else
2130: echo "configure: failed program was:" >&5
2131: cat conftest.$ac_ext >&5
2132: rm -rf conftest*
2133: eval "ac_cv_lib_$ac_lib_var=no"
2134: fi
2135: rm -f conftest*
2136: LIBS="$ac_save_LIBS"
1.1 paf 2137:
1.8 paf 2138: fi
2139: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2140: echo "$ac_t""yes" 1>&6
2141: cat >> confdefs.h <<\EOF
2142: #define HAVE_DLD 1
2143: EOF
2144: test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld"
2145: else
2146: echo "$ac_t""no" 1>&6
1.1 paf 2147: fi
2148:
2149:
2150:
1.8 paf 2151: if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
2152: LIBS_SAVE="$LIBS"
2153: LIBS="$LIBS $LIBADD_DL"
2154: for ac_func in dlerror
2155: do
2156: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.17 ! paf 2157: echo "configure:2158: checking for $ac_func" >&5
1.8 paf 2158: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1.1 paf 2159: echo $ac_n "(cached) $ac_c" 1>&6
2160: else
2161: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2162: #line 2163 "configure"
1.1 paf 2163: #include "confdefs.h"
1.8 paf 2164: /* System header to define __stub macros and hopefully few prototypes,
2165: which can conflict with char $ac_func(); below. */
2166: #include <assert.h>
2167: /* Override any gcc2 internal prototype to avoid an error. */
2168: #ifdef __cplusplus
2169: extern "C"
2170: #endif
2171: /* We use char because int might match the return type of a gcc2
2172: builtin and then its argument prototype would still apply. */
2173: char $ac_func();
1.1 paf 2174:
2175: int main() {
2176:
1.8 paf 2177: /* The GNU C library defines this for functions which it implements
2178: to always fail with ENOSYS. Some functions are actually named
2179: something starting with __ and the normal name is an alias. */
2180: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2181: choke me
2182: #else
2183: $ac_func();
2184: #endif
2185:
1.1 paf 2186: ; return 0; }
2187: EOF
1.17 ! paf 2188: if { (eval echo configure:2189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2189: rm -rf conftest*
1.8 paf 2190: eval "ac_cv_func_$ac_func=yes"
1.1 paf 2191: else
2192: echo "configure: failed program was:" >&5
2193: cat conftest.$ac_ext >&5
2194: rm -rf conftest*
1.8 paf 2195: eval "ac_cv_func_$ac_func=no"
1.1 paf 2196: fi
2197: rm -f conftest*
2198: fi
2199:
1.8 paf 2200: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2201: echo "$ac_t""yes" 1>&6
2202: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2203: cat >> confdefs.h <<EOF
2204: #define $ac_tr_func 1
1.1 paf 2205: EOF
1.8 paf 2206:
1.1 paf 2207: else
1.8 paf 2208: echo "$ac_t""no" 1>&6
1.1 paf 2209: fi
1.8 paf 2210: done
1.1 paf 2211:
1.8 paf 2212: LIBS="$LIBS_SAVE"
1.1 paf 2213: fi
2214:
2215:
2216: echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1.17 ! paf 2217: echo "configure:2218: checking how to run the C++ preprocessor" >&5
1.1 paf 2218: if test -z "$CXXCPP"; then
2219: if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2220: echo $ac_n "(cached) $ac_c" 1>&6
2221: else
2222: ac_ext=C
2223: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2224: ac_cpp='$CXXCPP $CPPFLAGS'
2225: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2226: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2227: cross_compiling=$ac_cv_prog_cxx_cross
2228: CXXCPP="${CXX-g++} -E"
2229: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2230: #line 2231 "configure"
1.1 paf 2231: #include "confdefs.h"
2232: #include <stdlib.h>
2233: EOF
2234: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.17 ! paf 2235: { (eval echo configure:2236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 paf 2236: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2237: if test -z "$ac_err"; then
2238: :
2239: else
2240: echo "$ac_err" >&5
2241: echo "configure: failed program was:" >&5
2242: cat conftest.$ac_ext >&5
2243: rm -rf conftest*
2244: CXXCPP=/lib/cpp
2245: fi
2246: rm -f conftest*
2247: ac_cv_prog_CXXCPP="$CXXCPP"
2248: ac_ext=C
2249: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2250: ac_cpp='$CXXCPP $CPPFLAGS'
2251: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2252: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2253: cross_compiling=$ac_cv_prog_cxx_cross
2254: fi
2255: fi
2256: CXXCPP="$ac_cv_prog_CXXCPP"
2257: echo "$ac_t""$CXXCPP" 1>&6
2258:
2259: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.17 ! paf 2260: echo "configure:2261: checking for ANSI C header files" >&5
1.1 paf 2261: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2262: echo $ac_n "(cached) $ac_c" 1>&6
2263: else
2264: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2265: #line 2266 "configure"
1.1 paf 2266: #include "confdefs.h"
2267: #include <stdlib.h>
2268: #include <stdarg.h>
2269: #include <string.h>
2270: #include <float.h>
2271: EOF
2272: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.17 ! paf 2273: { (eval echo configure:2274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 paf 2274: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2275: if test -z "$ac_err"; then
2276: rm -rf conftest*
2277: ac_cv_header_stdc=yes
2278: else
2279: echo "$ac_err" >&5
2280: echo "configure: failed program was:" >&5
2281: cat conftest.$ac_ext >&5
2282: rm -rf conftest*
2283: ac_cv_header_stdc=no
2284: fi
2285: rm -f conftest*
2286:
2287: if test $ac_cv_header_stdc = yes; then
2288: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2289: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2290: #line 2291 "configure"
1.1 paf 2291: #include "confdefs.h"
2292: #include <string.h>
2293: EOF
2294: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2295: egrep "memchr" >/dev/null 2>&1; then
2296: :
2297: else
2298: rm -rf conftest*
2299: ac_cv_header_stdc=no
2300: fi
2301: rm -f conftest*
2302:
2303: fi
2304:
2305: if test $ac_cv_header_stdc = yes; then
2306: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2307: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2308: #line 2309 "configure"
1.1 paf 2309: #include "confdefs.h"
2310: #include <stdlib.h>
2311: EOF
2312: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2313: egrep "free" >/dev/null 2>&1; then
2314: :
2315: else
2316: rm -rf conftest*
2317: ac_cv_header_stdc=no
2318: fi
2319: rm -f conftest*
2320:
2321: fi
2322:
2323: if test $ac_cv_header_stdc = yes; then
2324: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2325: if test "$cross_compiling" = yes; then
2326: :
2327: else
2328: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2329: #line 2330 "configure"
1.1 paf 2330: #include "confdefs.h"
2331: #ifdef __cplusplus
2332: extern "C" void exit(int);
2333: #endif
2334: #include <ctype.h>
2335: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2336: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2337: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2338: int main () { int i; for (i = 0; i < 256; i++)
2339: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2340: exit (0); }
2341:
2342: EOF
1.17 ! paf 2343: if { (eval echo configure:2344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1 paf 2344: then
2345: :
2346: else
2347: echo "configure: failed program was:" >&5
2348: cat conftest.$ac_ext >&5
2349: rm -fr conftest*
2350: ac_cv_header_stdc=no
2351: fi
2352: rm -fr conftest*
2353: fi
2354:
2355: fi
2356: fi
2357:
2358: echo "$ac_t""$ac_cv_header_stdc" 1>&6
2359: if test $ac_cv_header_stdc = yes; then
2360: cat >> confdefs.h <<\EOF
2361: #define STDC_HEADERS 1
2362: EOF
2363:
2364: fi
2365:
2366: echo $ac_n "checking for size_t""... $ac_c" 1>&6
1.17 ! paf 2367: echo "configure:2368: checking for size_t" >&5
1.1 paf 2368: if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2369: echo $ac_n "(cached) $ac_c" 1>&6
2370: else
2371: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2372: #line 2373 "configure"
1.1 paf 2373: #include "confdefs.h"
2374: #include <sys/types.h>
2375: #if STDC_HEADERS
2376: #include <stdlib.h>
2377: #include <stddef.h>
2378: #endif
2379: EOF
2380: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2381: egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2382: rm -rf conftest*
2383: ac_cv_type_size_t=yes
2384: else
2385: rm -rf conftest*
2386: ac_cv_type_size_t=no
2387: fi
2388: rm -f conftest*
2389:
2390: fi
2391: echo "$ac_t""$ac_cv_type_size_t" 1>&6
2392: if test $ac_cv_type_size_t = no; then
2393: cat >> confdefs.h <<\EOF
2394: #define size_t unsigned
2395: EOF
2396:
2397: fi
2398:
2399:
2400:
1.8 paf 2401: echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1.17 ! paf 2402: echo "configure:2403: checking whether time.h and sys/time.h may both be included" >&5
1.8 paf 2403: if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2404: echo $ac_n "(cached) $ac_c" 1>&6
2405: else
2406: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2407: #line 2408 "configure"
1.8 paf 2408: #include "confdefs.h"
2409: #include <sys/types.h>
2410: #include <sys/time.h>
2411: #include <time.h>
2412: int main() {
2413: struct tm *tp;
2414: ; return 0; }
2415: EOF
1.17 ! paf 2416: if { (eval echo configure:2417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.8 paf 2417: rm -rf conftest*
2418: ac_cv_header_time=yes
2419: else
2420: echo "configure: failed program was:" >&5
2421: cat conftest.$ac_ext >&5
2422: rm -rf conftest*
2423: ac_cv_header_time=no
2424: fi
2425: rm -f conftest*
2426: fi
2427:
2428: echo "$ac_t""$ac_cv_header_time" 1>&6
2429: if test $ac_cv_header_time = yes; then
2430: cat >> confdefs.h <<\EOF
2431: #define TIME_WITH_SYS_TIME 1
2432: EOF
2433:
2434: fi
2435:
2436:
1.1 paf 2437: for ac_hdr in unistd.h \
2438: process.h \
2439: stddef.h \
2440: stdarg.h \
2441: fcntl.h \
2442: sys/stat.h \
2443: io.h \
2444: stdio.h \
2445: errno.h \
2446: ctype.h \
2447: math.h \
1.3 paf 2448: time.h sys/time.h \
1.1 paf 2449: stdlib.h \
2450: string.h \
2451: direct.h \
2452: setjmp.h \
2453: memory.h \
2454: new \
2455: sys/file.h \
2456: sys/locking.h \
1.3 paf 2457: sys/types.h \
2458: sys/select.h \
2459: sys/resource.h
1.1 paf 2460:
2461: do
2462: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2463: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.17 ! paf 2464: echo "configure:2465: checking for $ac_hdr" >&5
1.1 paf 2465: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2466: echo $ac_n "(cached) $ac_c" 1>&6
2467: else
2468: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2469: #line 2470 "configure"
1.1 paf 2470: #include "confdefs.h"
2471: #include <$ac_hdr>
2472: EOF
2473: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.17 ! paf 2474: { (eval echo configure:2475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 paf 2475: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2476: if test -z "$ac_err"; then
2477: rm -rf conftest*
2478: eval "ac_cv_header_$ac_safe=yes"
2479: else
2480: echo "$ac_err" >&5
2481: echo "configure: failed program was:" >&5
2482: cat conftest.$ac_ext >&5
2483: rm -rf conftest*
2484: eval "ac_cv_header_$ac_safe=no"
2485: fi
2486: rm -f conftest*
2487: fi
2488: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2489: echo "$ac_t""yes" 1>&6
2490: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2491: cat >> confdefs.h <<EOF
2492: #define $ac_tr_hdr 1
2493: EOF
2494:
2495: else
2496: echo "$ac_t""no" 1>&6
2497: fi
2498: done
2499:
2500:
2501:
2502: case "$host" in
2503: *-sunos5.6* | *-solaris2.6*)
2504: echo $ac_n "checking for main in -lxnet""... $ac_c" 1>&6
1.17 ! paf 2505: echo "configure:2506: checking for main in -lxnet" >&5
1.1 paf 2506: ac_lib_var=`echo xnet'_'main | sed 'y%./+-%__p_%'`
2507: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2508: echo $ac_n "(cached) $ac_c" 1>&6
2509: else
2510: ac_save_LIBS="$LIBS"
2511: LIBS="-lxnet $LIBS"
2512: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2513: #line 2514 "configure"
1.1 paf 2514: #include "confdefs.h"
2515:
2516: int main() {
2517: main()
2518: ; return 0; }
2519: EOF
1.17 ! paf 2520: if { (eval echo configure:2521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2521: rm -rf conftest*
2522: eval "ac_cv_lib_$ac_lib_var=yes"
2523: else
2524: echo "configure: failed program was:" >&5
2525: cat conftest.$ac_ext >&5
2526: rm -rf conftest*
2527: eval "ac_cv_lib_$ac_lib_var=no"
2528: fi
2529: rm -f conftest*
2530: LIBS="$ac_save_LIBS"
2531:
2532: fi
2533: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2534: echo "$ac_t""yes" 1>&6
2535: ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2536: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2537: cat >> confdefs.h <<EOF
2538: #define $ac_tr_lib 1
2539: EOF
2540:
2541: LIBS="-lxnet $LIBS"
2542:
2543: else
2544: echo "$ac_t""no" 1>&6
2545: fi
2546:
2547: ;;
2548: *-sunos5* | *-solaris2*)
2549: echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1.17 ! paf 2550: echo "configure:2551: checking for main in -lsocket" >&5
1.1 paf 2551: ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2552: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2553: echo $ac_n "(cached) $ac_c" 1>&6
2554: else
2555: ac_save_LIBS="$LIBS"
2556: LIBS="-lsocket $LIBS"
2557: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2558: #line 2559 "configure"
1.1 paf 2559: #include "confdefs.h"
2560:
2561: int main() {
2562: main()
2563: ; return 0; }
2564: EOF
1.17 ! paf 2565: if { (eval echo configure:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2566: rm -rf conftest*
2567: eval "ac_cv_lib_$ac_lib_var=yes"
2568: else
2569: echo "configure: failed program was:" >&5
2570: cat conftest.$ac_ext >&5
2571: rm -rf conftest*
2572: eval "ac_cv_lib_$ac_lib_var=no"
2573: fi
2574: rm -f conftest*
2575: LIBS="$ac_save_LIBS"
2576:
2577: fi
2578: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2579: echo "$ac_t""yes" 1>&6
2580: ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2581: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2582: cat >> confdefs.h <<EOF
2583: #define $ac_tr_lib 1
2584: EOF
2585:
2586: LIBS="-lsocket $LIBS"
2587:
2588: else
2589: echo "$ac_t""no" 1>&6
2590: fi
2591:
2592: echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1.17 ! paf 2593: echo "configure:2594: checking for main in -lnsl" >&5
1.1 paf 2594: ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2595: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2596: echo $ac_n "(cached) $ac_c" 1>&6
2597: else
2598: ac_save_LIBS="$LIBS"
2599: LIBS="-lnsl $LIBS"
2600: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2601: #line 2602 "configure"
1.1 paf 2602: #include "confdefs.h"
2603:
2604: int main() {
2605: main()
2606: ; return 0; }
2607: EOF
1.17 ! paf 2608: if { (eval echo configure:2609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2609: rm -rf conftest*
2610: eval "ac_cv_lib_$ac_lib_var=yes"
2611: else
2612: echo "configure: failed program was:" >&5
2613: cat conftest.$ac_ext >&5
2614: rm -rf conftest*
2615: eval "ac_cv_lib_$ac_lib_var=no"
2616: fi
2617: rm -f conftest*
2618: LIBS="$ac_save_LIBS"
2619:
2620: fi
2621: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2622: echo "$ac_t""yes" 1>&6
2623: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2624: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2625: cat >> confdefs.h <<EOF
2626: #define $ac_tr_lib 1
2627: EOF
2628:
2629: LIBS="-lnsl $LIBS"
2630:
2631: else
2632: echo "$ac_t""no" 1>&6
2633: fi
2634:
2635: ;;
2636: *-nec-sysv4*)
2637: echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1.17 ! paf 2638: echo "configure:2639: checking for gethostbyname in -lnsl" >&5
1.1 paf 2639: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2640: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2641: echo $ac_n "(cached) $ac_c" 1>&6
2642: else
2643: ac_save_LIBS="$LIBS"
2644: LIBS="-lnsl $LIBS"
2645: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2646: #line 2647 "configure"
1.1 paf 2647: #include "confdefs.h"
2648: /* Override any gcc2 internal prototype to avoid an error. */
2649: #ifdef __cplusplus
2650: extern "C"
2651: #endif
2652: /* We use char because int might match the return type of a gcc2
2653: builtin and then its argument prototype would still apply. */
2654: char gethostbyname();
2655:
2656: int main() {
2657: gethostbyname()
2658: ; return 0; }
2659: EOF
1.17 ! paf 2660: if { (eval echo configure:2661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2661: rm -rf conftest*
2662: eval "ac_cv_lib_$ac_lib_var=yes"
2663: else
2664: echo "configure: failed program was:" >&5
2665: cat conftest.$ac_ext >&5
2666: rm -rf conftest*
2667: eval "ac_cv_lib_$ac_lib_var=no"
2668: fi
2669: rm -f conftest*
2670: LIBS="$ac_save_LIBS"
2671:
2672: fi
2673: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2674: echo "$ac_t""yes" 1>&6
2675: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2676: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2677: cat >> confdefs.h <<EOF
2678: #define $ac_tr_lib 1
2679: EOF
2680:
2681: LIBS="-lnsl $LIBS"
2682:
2683: else
2684: echo "$ac_t""no" 1>&6
2685: fi
2686:
2687: echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1.17 ! paf 2688: echo "configure:2689: checking for socket in -lsocket" >&5
1.1 paf 2689: ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2690: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2691: echo $ac_n "(cached) $ac_c" 1>&6
2692: else
2693: ac_save_LIBS="$LIBS"
2694: LIBS="-lsocket $LIBS"
2695: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2696: #line 2697 "configure"
1.1 paf 2697: #include "confdefs.h"
2698: /* Override any gcc2 internal prototype to avoid an error. */
2699: #ifdef __cplusplus
2700: extern "C"
2701: #endif
2702: /* We use char because int might match the return type of a gcc2
2703: builtin and then its argument prototype would still apply. */
2704: char socket();
2705:
2706: int main() {
2707: socket()
2708: ; return 0; }
2709: EOF
1.17 ! paf 2710: if { (eval echo configure:2711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2711: rm -rf conftest*
2712: eval "ac_cv_lib_$ac_lib_var=yes"
2713: else
2714: echo "configure: failed program was:" >&5
2715: cat conftest.$ac_ext >&5
2716: rm -rf conftest*
2717: eval "ac_cv_lib_$ac_lib_var=no"
2718: fi
2719: rm -f conftest*
2720: LIBS="$ac_save_LIBS"
2721:
2722: fi
2723: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2724: echo "$ac_t""yes" 1>&6
2725: ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2726: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2727: cat >> confdefs.h <<EOF
2728: #define $ac_tr_lib 1
2729: EOF
2730:
2731: LIBS="-lsocket $LIBS"
2732:
2733: else
2734: echo "$ac_t""no" 1>&6
2735: fi
2736:
2737: ;;
2738: *-cygwin*)
2739: cat >> confdefs.h <<\EOF
2740: #define WIN32
2741: EOF
2742:
2743: echo $ac_n "checking for socket in -lwsock32""... $ac_c" 1>&6
1.17 ! paf 2744: echo "configure:2745: checking for socket in -lwsock32" >&5
1.1 paf 2745: ac_lib_var=`echo wsock32'_'socket | sed 'y%./+-%__p_%'`
2746: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2747: echo $ac_n "(cached) $ac_c" 1>&6
2748: else
2749: ac_save_LIBS="$LIBS"
2750: LIBS="-lwsock32 $LIBS"
2751: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2752: #line 2753 "configure"
1.1 paf 2753: #include "confdefs.h"
2754: /* Override any gcc2 internal prototype to avoid an error. */
2755: #ifdef __cplusplus
2756: extern "C"
2757: #endif
2758: /* We use char because int might match the return type of a gcc2
2759: builtin and then its argument prototype would still apply. */
2760: char socket();
2761:
2762: int main() {
2763: socket()
2764: ; return 0; }
2765: EOF
1.17 ! paf 2766: if { (eval echo configure:2767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2767: rm -rf conftest*
2768: eval "ac_cv_lib_$ac_lib_var=yes"
2769: else
2770: echo "configure: failed program was:" >&5
2771: cat conftest.$ac_ext >&5
2772: rm -rf conftest*
2773: eval "ac_cv_lib_$ac_lib_var=no"
2774: fi
2775: rm -f conftest*
2776: LIBS="$ac_save_LIBS"
2777:
2778: fi
2779: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2780: echo "$ac_t""yes" 1>&6
2781: ac_tr_lib=HAVE_LIB`echo wsock32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2782: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2783: cat >> confdefs.h <<EOF
2784: #define $ac_tr_lib 1
2785: EOF
2786:
2787: LIBS="-lwsock32 $LIBS"
2788:
2789: else
2790: echo "$ac_t""no" 1>&6
2791: fi
2792:
2793: ;;
2794: esac
2795:
2796: echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1.17 ! paf 2797: echo "configure:2798: checking for sin in -lm" >&5
1.1 paf 2798: ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
2799: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2800: echo $ac_n "(cached) $ac_c" 1>&6
2801: else
2802: ac_save_LIBS="$LIBS"
2803: LIBS="-lm $LIBS"
2804: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2805: #line 2806 "configure"
1.1 paf 2806: #include "confdefs.h"
2807: /* Override any gcc2 internal prototype to avoid an error. */
2808: #ifdef __cplusplus
2809: extern "C"
2810: #endif
2811: /* We use char because int might match the return type of a gcc2
2812: builtin and then its argument prototype would still apply. */
2813: char sin();
2814:
2815: int main() {
2816: sin()
2817: ; return 0; }
2818: EOF
1.17 ! paf 2819: if { (eval echo configure:2820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2820: rm -rf conftest*
2821: eval "ac_cv_lib_$ac_lib_var=yes"
2822: else
2823: echo "configure: failed program was:" >&5
2824: cat conftest.$ac_ext >&5
2825: rm -rf conftest*
2826: eval "ac_cv_lib_$ac_lib_var=no"
2827: fi
2828: rm -f conftest*
2829: LIBS="$ac_save_LIBS"
2830:
2831: fi
2832: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2833: echo "$ac_t""yes" 1>&6
2834: ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2835: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2836: cat >> confdefs.h <<EOF
2837: #define $ac_tr_lib 1
2838: EOF
2839:
2840: LIBS="-lm $LIBS"
2841:
2842: else
2843: echo "$ac_t""no" 1>&6
2844: fi
2845:
2846:
2847:
2848: for ac_func in trunc \
2849: round \
2850: sign \
2851: flock \
2852: _locking \
1.5 paf 2853: fcntl \
1.3 paf 2854: lockf \
2855: getrusage
1.1 paf 2856:
2857: do
2858: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.17 ! paf 2859: echo "configure:2860: checking for $ac_func" >&5
1.1 paf 2860: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2861: echo $ac_n "(cached) $ac_c" 1>&6
2862: else
2863: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2864: #line 2865 "configure"
1.1 paf 2865: #include "confdefs.h"
2866: /* System header to define __stub macros and hopefully few prototypes,
2867: which can conflict with char $ac_func(); below. */
2868: #include <assert.h>
2869: /* Override any gcc2 internal prototype to avoid an error. */
2870: #ifdef __cplusplus
2871: extern "C"
2872: #endif
2873: /* We use char because int might match the return type of a gcc2
2874: builtin and then its argument prototype would still apply. */
2875: char $ac_func();
2876:
2877: int main() {
2878:
2879: /* The GNU C library defines this for functions which it implements
2880: to always fail with ENOSYS. Some functions are actually named
2881: something starting with __ and the normal name is an alias. */
2882: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2883: choke me
2884: #else
2885: $ac_func();
2886: #endif
2887:
2888: ; return 0; }
2889: EOF
1.17 ! paf 2890: if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2891: rm -rf conftest*
2892: eval "ac_cv_func_$ac_func=yes"
2893: else
2894: echo "configure: failed program was:" >&5
2895: cat conftest.$ac_ext >&5
2896: rm -rf conftest*
2897: eval "ac_cv_func_$ac_func=no"
2898: fi
2899: rm -f conftest*
2900: fi
2901:
2902: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2903: echo "$ac_t""yes" 1>&6
2904: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2905: cat >> confdefs.h <<EOF
2906: #define $ac_tr_func 1
2907: EOF
2908:
2909: else
2910: echo "$ac_t""no" 1>&6
2911: fi
2912: done
2913:
2914:
1.3 paf 2915:
2916: for ac_func in qsort
2917: do
2918: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.17 ! paf 2919: echo "configure:2920: checking for $ac_func" >&5
1.3 paf 2920: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2921: echo $ac_n "(cached) $ac_c" 1>&6
2922: else
2923: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2924: #line 2925 "configure"
1.3 paf 2925: #include "confdefs.h"
2926: /* System header to define __stub macros and hopefully few prototypes,
2927: which can conflict with char $ac_func(); below. */
2928: #include <assert.h>
2929: /* Override any gcc2 internal prototype to avoid an error. */
2930: #ifdef __cplusplus
2931: extern "C"
2932: #endif
2933: /* We use char because int might match the return type of a gcc2
2934: builtin and then its argument prototype would still apply. */
2935: char $ac_func();
2936:
2937: int main() {
2938:
2939: /* The GNU C library defines this for functions which it implements
2940: to always fail with ENOSYS. Some functions are actually named
2941: something starting with __ and the normal name is an alias. */
2942: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2943: choke me
2944: #else
2945: $ac_func();
2946: #endif
2947:
2948: ; return 0; }
2949: EOF
1.17 ! paf 2950: if { (eval echo configure:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.3 paf 2951: rm -rf conftest*
2952: eval "ac_cv_func_$ac_func=yes"
2953: else
2954: echo "configure: failed program was:" >&5
2955: cat conftest.$ac_ext >&5
2956: rm -rf conftest*
2957: eval "ac_cv_func_$ac_func=no"
2958: fi
2959: rm -f conftest*
2960: fi
2961:
2962: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2963: echo "$ac_t""yes" 1>&6
2964: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2965: cat >> confdefs.h <<EOF
2966: #define $ac_tr_func 1
2967: EOF
2968:
2969: else
2970: echo "$ac_t""no" 1>&6
2971: { echo "configure: error: No qsort library function." 1>&2; exit 1; }
2972: fi
2973: done
2974:
2975: for ac_func in select
2976: do
2977: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.17 ! paf 2978: echo "configure:2979: checking for $ac_func" >&5
1.3 paf 2979: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2980: echo $ac_n "(cached) $ac_c" 1>&6
2981: else
2982: cat > conftest.$ac_ext <<EOF
1.17 ! paf 2983: #line 2984 "configure"
1.3 paf 2984: #include "confdefs.h"
2985: /* System header to define __stub macros and hopefully few prototypes,
2986: which can conflict with char $ac_func(); below. */
2987: #include <assert.h>
2988: /* Override any gcc2 internal prototype to avoid an error. */
2989: #ifdef __cplusplus
2990: extern "C"
2991: #endif
2992: /* We use char because int might match the return type of a gcc2
2993: builtin and then its argument prototype would still apply. */
2994: char $ac_func();
2995:
2996: int main() {
2997:
2998: /* The GNU C library defines this for functions which it implements
2999: to always fail with ENOSYS. Some functions are actually named
3000: something starting with __ and the normal name is an alias. */
3001: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3002: choke me
3003: #else
3004: $ac_func();
3005: #endif
3006:
3007: ; return 0; }
3008: EOF
1.17 ! paf 3009: if { (eval echo configure:3010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.3 paf 3010: rm -rf conftest*
3011: eval "ac_cv_func_$ac_func=yes"
3012: else
3013: echo "configure: failed program was:" >&5
3014: cat conftest.$ac_ext >&5
3015: rm -rf conftest*
3016: eval "ac_cv_func_$ac_func=no"
3017: fi
3018: rm -f conftest*
3019: fi
3020:
3021: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3022: echo "$ac_t""yes" 1>&6
3023: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3024: cat >> confdefs.h <<EOF
3025: #define $ac_tr_func 1
3026: EOF
3027:
3028: else
3029: echo "$ac_t""no" 1>&6
3030: { echo "configure: error: No select library function." 1>&2; exit 1; }
3031: fi
3032: done
3033:
3034:
1.1 paf 3035: echo $ac_n "checking whether compiler supports pragma pack""... $ac_c" 1>&6
1.17 ! paf 3036: echo "configure:3037: checking whether compiler supports pragma pack" >&5
1.1 paf 3037: cat > conftest.$ac_ext <<EOF
1.17 ! paf 3038: #line 3039 "configure"
1.1 paf 3039: #include "confdefs.h"
3040:
3041: int main() {
3042: #pragma pack(1)
3043: struct must_be_1_byte {
3044: char c;
3045: };
3046: #pragma pack()
3047: if(sizeof(must_be_1_byte)!=1)
3048: return 1;
3049:
3050: ; return 0; }
3051: EOF
1.17 ! paf 3052: if { (eval echo configure:3053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 paf 3053: rm -rf conftest*
3054:
3055: echo "$ac_t""yes" 1>&6
3056: cat >> confdefs.h <<\EOF
3057: #define HAVE_PRAGMA_PACK
3058: EOF
3059:
3060:
3061: else
3062: echo "configure: failed program was:" >&5
3063: cat conftest.$ac_ext >&5
3064: rm -rf conftest*
3065: echo "$ac_t""no" 1>&6
3066:
3067: fi
3068: rm -f conftest*
3069:
3070: echo $ac_n "checking for set_new_handler""... $ac_c" 1>&6
1.17 ! paf 3071: echo "configure:3072: checking for set_new_handler" >&5
1.1 paf 3072: cat > conftest.$ac_ext <<EOF
1.17 ! paf 3073: #line 3074 "configure"
1.1 paf 3074: #include "confdefs.h"
3075: #ifdef HAVE_NEW
3076: #include <new>
3077: #endif
3078: void failed_new() {}
3079:
3080: int main() {
3081: std::set_new_handler(failed_new);
3082:
3083: ; return 0; }
3084: EOF
1.17 ! paf 3085: if { (eval echo configure:3086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 paf 3086: rm -rf conftest*
3087:
3088: echo "$ac_t""yes" 1>&6
3089: cat >> confdefs.h <<\EOF
3090: #define HAVE_SET_NEW_HANDLER
3091: EOF
3092:
3093:
3094: else
3095: echo "configure: failed program was:" >&5
3096: cat conftest.$ac_ext >&5
3097: rm -rf conftest*
3098: echo "$ac_t""no" 1>&6
3099:
3100: fi
3101: rm -f conftest*
3102:
3103:
3104:
1.15 paf 3105:
1.8 paf 3106: APACHE_LIBS="$LIBS $LIBADD_DL"
1.1 paf 3107:
3108:
3109:
3110:
3111: # expand apostrophed
1.4 paf 3112: e_prefix=$prefix
3113: test "x$e_prefix" = xNONE && e_prefix=$ac_default_prefix
3114:
1.1 paf 3115: e_sysconfdir=$sysconfdir
1.4 paf 3116: test "$e_sysconfdir" = "\${prefix}/etc" && e_sysconfdir="${e_prefix}/etc"
1.1 paf 3117:
3118:
1.2 paf 3119: rootconfigdir=$e_sysconfdir
1.1 paf 3120:
3121:
3122:
3123: charsetsdir=$e_sysconfdir/parser3.charsets
3124:
3125:
3126: # expand apostrophed
3127: e_libdir=$libdir
3128: if test "$e_libdir" = "\${exec_prefix}/lib"; then
3129:
3130: # Let make expand exec_prefix.
3131: e_exec_prefix=$exec_prefix
1.10 paf 3132: test "x$e_exec_prefix" = xNONE && e_exec_prefix=$e_prefix
1.1 paf 3133:
3134: # expand apostrophed
3135: test "$e_libdir" = "\${exec_prefix}/lib" && e_libdir="${e_exec_prefix}/lib"
3136: fi
3137:
3138: sqldriversdir=$e_libdir
3139:
3140:
3141:
3142:
3143:
3144:
3145:
3146: trap '' 1 2 15
3147: cat > confcache <<\EOF
3148: # This file is a shell script that caches the results of configure
3149: # tests run on this system so they can be shared between configure
3150: # scripts and configure runs. It is not useful on other systems.
3151: # If it contains results you don't want to keep, you may remove or edit it.
3152: #
3153: # By default, configure uses ./config.cache as the cache file,
3154: # creating it if it does not exist already. You can give configure
3155: # the --cache-file=FILE option to use a different cache file; that is
3156: # what configure does when it calls configure scripts in
3157: # subdirectories, so they share the cache.
3158: # Giving --cache-file=/dev/null disables caching, for debugging configure.
3159: # config.status only pays attention to the cache file if you give it the
3160: # --recheck option to rerun configure.
3161: #
3162: EOF
3163: # The following way of writing the cache mishandles newlines in values,
3164: # but we know of no workaround that is simple, portable, and efficient.
3165: # So, don't put newlines in cache variables' values.
3166: # Ultrix sh set writes to stderr and can't be redirected directly,
3167: # and sets the high bit in the cache file unless we assign to the vars.
3168: (set) 2>&1 |
3169: case `(ac_space=' '; set | grep ac_space) 2>&1` in
3170: *ac_space=\ *)
3171: # `set' does not quote correctly, so add quotes (double-quote substitution
3172: # turns \\\\ into \\, and sed turns \\ into \).
3173: sed -n \
3174: -e "s/'/'\\\\''/g" \
3175: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3176: ;;
3177: *)
3178: # `set' quotes correctly as required by POSIX, so do not add quotes.
3179: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3180: ;;
3181: esac >> confcache
3182: if cmp -s $cache_file confcache; then
3183: :
3184: else
3185: if test -w $cache_file; then
3186: echo "updating cache $cache_file"
3187: cat confcache > $cache_file
3188: else
3189: echo "not updating unwritable cache $cache_file"
3190: fi
3191: fi
3192: rm -f confcache
3193:
3194: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3195:
3196: test "x$prefix" = xNONE && prefix=$ac_default_prefix
3197: # Let make expand exec_prefix.
3198: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3199:
3200: # Any assignment to VPATH causes Sun make to only execute
3201: # the first set of double-colon rules, so remove it if not needed.
3202: # If there is a colon in the path, we need to keep it.
3203: if test "x$srcdir" = x.; then
3204: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3205: fi
3206:
3207: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3208:
3209: DEFS=-DHAVE_CONFIG_H
3210:
3211: # Without the "./", some shells look in PATH for config.status.
3212: : ${CONFIG_STATUS=./config.status}
3213:
3214: echo creating $CONFIG_STATUS
3215: rm -f $CONFIG_STATUS
3216: cat > $CONFIG_STATUS <<EOF
3217: #! /bin/sh
3218: # Generated automatically by configure.
3219: # Run this file to recreate the current configuration.
3220: # This directory was configured as follows,
3221: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3222: #
3223: # $0 $ac_configure_args
3224: #
3225: # Compiler output produced by configure, useful for debugging
3226: # configure, is in ./config.log if it exists.
3227:
3228: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3229: for ac_option
3230: do
3231: case "\$ac_option" in
3232: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3233: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3234: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3235: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3236: echo "$CONFIG_STATUS generated by autoconf version 2.13"
3237: exit 0 ;;
3238: -help | --help | --hel | --he | --h)
3239: echo "\$ac_cs_usage"; exit 0 ;;
3240: *) echo "\$ac_cs_usage"; exit 1 ;;
3241: esac
3242: done
3243:
3244: ac_given_srcdir=$srcdir
3245: ac_given_INSTALL="$INSTALL"
3246:
1.6 paf 3247: 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/parser3.charsets/Makefile etc/parser3.conf etc/Makefile src/include/pa_config_auto.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1.1 paf 3248: EOF
3249: cat >> $CONFIG_STATUS <<EOF
3250:
3251: # Protect against being on the right side of a sed subst in config.status.
3252: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3253: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3254: $ac_vpsub
3255: $extrasub
3256: s%@SHELL@%$SHELL%g
3257: s%@CFLAGS@%$CFLAGS%g
3258: s%@CPPFLAGS@%$CPPFLAGS%g
3259: s%@CXXFLAGS@%$CXXFLAGS%g
3260: s%@FFLAGS@%$FFLAGS%g
3261: s%@DEFS@%$DEFS%g
3262: s%@LDFLAGS@%$LDFLAGS%g
3263: s%@LIBS@%$LIBS%g
3264: s%@exec_prefix@%$exec_prefix%g
3265: s%@prefix@%$prefix%g
3266: s%@program_transform_name@%$program_transform_name%g
3267: s%@bindir@%$bindir%g
3268: s%@sbindir@%$sbindir%g
3269: s%@libexecdir@%$libexecdir%g
3270: s%@datadir@%$datadir%g
3271: s%@sysconfdir@%$sysconfdir%g
3272: s%@sharedstatedir@%$sharedstatedir%g
3273: s%@localstatedir@%$localstatedir%g
3274: s%@libdir@%$libdir%g
3275: s%@includedir@%$includedir%g
3276: s%@oldincludedir@%$oldincludedir%g
3277: s%@infodir@%$infodir%g
3278: s%@mandir@%$mandir%g
3279: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3280: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3281: s%@INSTALL_DATA@%$INSTALL_DATA%g
3282: s%@PACKAGE@%$PACKAGE%g
3283: s%@VERSION@%$VERSION%g
3284: s%@ACLOCAL@%$ACLOCAL%g
3285: s%@AUTOCONF@%$AUTOCONF%g
3286: s%@AUTOMAKE@%$AUTOMAKE%g
3287: s%@AUTOHEADER@%$AUTOHEADER%g
3288: s%@MAKEINFO@%$MAKEINFO%g
3289: s%@SET_MAKE@%$SET_MAKE%g
3290: s%@P3S@%$P3S%g
3291: s%@CC@%$CC%g
3292: s%@CXX@%$CXX%g
1.15 paf 3293: s%@DO_NOT_LINK_LIBSTDCPP_TRUE@%$DO_NOT_LINK_LIBSTDCPP_TRUE%g
3294: s%@DO_NOT_LINK_LIBSTDCPP_FALSE@%$DO_NOT_LINK_LIBSTDCPP_FALSE%g
1.17 ! paf 3295: s%@commentcharset_windows1251@%$commentcharset_windows1251%g
! 3296: s%@commentcharset_windows1250@%$commentcharset_windows1250%g
! 3297: s%@commentcharset_windows1257@%$commentcharset_windows1257%g
! 3298: s%@commentcharset_koi8r@%$commentcharset_koi8r%g
! 3299: s%@mysql_client@%$mysql_client%g
! 3300: s%@pgsql_client@%$pgsql_client%g
! 3301: s%@oracle_client@%$oracle_client%g
1.12 paf 3302: s%@XML_INCLUDES@%$XML_INCLUDES%g
3303: s%@XML_LIBS@%$XML_LIBS%g
1.1 paf 3304: s%@APACHE13@%$APACHE13%g
3305: s%@COMPILE_APACHE13_MODULE_TRUE@%$COMPILE_APACHE13_MODULE_TRUE%g
3306: s%@COMPILE_APACHE13_MODULE_FALSE@%$COMPILE_APACHE13_MODULE_FALSE%g
3307: s%@host@%$host%g
3308: s%@host_alias@%$host_alias%g
3309: s%@host_cpu@%$host_cpu%g
3310: s%@host_vendor@%$host_vendor%g
3311: s%@host_os@%$host_os%g
3312: s%@RANLIB@%$RANLIB%g
3313: s%@AWK@%$AWK%g
3314: s%@YACC@%$YACC%g
3315: s%@INCLTDL@%$INCLTDL%g
3316: s%@LIBLTDL@%$LIBLTDL%g
1.8 paf 3317: s%@subdirs@%$subdirs%g
1.1 paf 3318: s%@LIBADD_DL@%$LIBADD_DL%g
3319: s%@CXXCPP@%$CXXCPP%g
3320: s%@APACHE_LIBS@%$APACHE_LIBS%g
1.2 paf 3321: s%@rootconfigdir@%$rootconfigdir%g
1.1 paf 3322: s%@charsetsdir@%$charsetsdir%g
3323: s%@sqldriversdir@%$sqldriversdir%g
3324:
3325: CEOF
3326: EOF
3327:
3328: cat >> $CONFIG_STATUS <<\EOF
3329:
3330: # Split the substitutions into bite-sized pieces for seds with
3331: # small command number limits, like on Digital OSF/1 and HP-UX.
3332: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3333: ac_file=1 # Number of current file.
3334: ac_beg=1 # First line for current file.
3335: ac_end=$ac_max_sed_cmds # Line after last line for current file.
3336: ac_more_lines=:
3337: ac_sed_cmds=""
3338: while $ac_more_lines; do
3339: if test $ac_beg -gt 1; then
3340: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3341: else
3342: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3343: fi
3344: if test ! -s conftest.s$ac_file; then
3345: ac_more_lines=false
3346: rm -f conftest.s$ac_file
3347: else
3348: if test -z "$ac_sed_cmds"; then
3349: ac_sed_cmds="sed -f conftest.s$ac_file"
3350: else
3351: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3352: fi
3353: ac_file=`expr $ac_file + 1`
3354: ac_beg=$ac_end
3355: ac_end=`expr $ac_end + $ac_max_sed_cmds`
3356: fi
3357: done
3358: if test -z "$ac_sed_cmds"; then
3359: ac_sed_cmds=cat
3360: fi
3361: EOF
3362:
3363: cat >> $CONFIG_STATUS <<EOF
3364:
1.6 paf 3365: 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/parser3.charsets/Makefile etc/parser3.conf etc/Makefile"}
1.1 paf 3366: EOF
3367: cat >> $CONFIG_STATUS <<\EOF
3368: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3369: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3370: case "$ac_file" in
3371: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3372: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3373: *) ac_file_in="${ac_file}.in" ;;
3374: esac
3375:
3376: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3377:
3378: # Remove last slash and all that follows it. Not all systems have dirname.
3379: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3380: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3381: # The file is in a subdirectory.
3382: test ! -d "$ac_dir" && mkdir "$ac_dir"
3383: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3384: # A "../" for each directory in $ac_dir_suffix.
3385: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3386: else
3387: ac_dir_suffix= ac_dots=
3388: fi
3389:
3390: case "$ac_given_srcdir" in
3391: .) srcdir=.
3392: if test -z "$ac_dots"; then top_srcdir=.
3393: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3394: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3395: *) # Relative path.
3396: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3397: top_srcdir="$ac_dots$ac_given_srcdir" ;;
3398: esac
3399:
3400: case "$ac_given_INSTALL" in
3401: [/$]*) INSTALL="$ac_given_INSTALL" ;;
3402: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3403: esac
3404:
3405: echo creating "$ac_file"
3406: rm -f "$ac_file"
3407: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3408: case "$ac_file" in
3409: *Makefile*) ac_comsub="1i\\
3410: # $configure_input" ;;
3411: *) ac_comsub= ;;
3412: esac
3413:
3414: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3415: sed -e "$ac_comsub
3416: s%@configure_input@%$configure_input%g
3417: s%@srcdir@%$srcdir%g
3418: s%@top_srcdir@%$top_srcdir%g
3419: s%@INSTALL@%$INSTALL%g
3420: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3421: fi; done
3422: rm -f conftest.s*
3423:
3424: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3425: # NAME is the cpp macro being defined and VALUE is the value it is being given.
3426: #
3427: # ac_d sets the value in "#define NAME VALUE" lines.
3428: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3429: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3430: ac_dC='\3'
3431: ac_dD='%g'
3432: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3433: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3434: ac_uB='\([ ]\)%\1#\2define\3'
3435: ac_uC=' '
3436: ac_uD='\4%g'
3437: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3438: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3439: ac_eB='$%\1#\2define\3'
3440: ac_eC=' '
3441: ac_eD='%g'
3442:
3443: if test "${CONFIG_HEADERS+set}" != set; then
3444: EOF
3445: cat >> $CONFIG_STATUS <<EOF
3446: CONFIG_HEADERS="src/include/pa_config_auto.h"
3447: EOF
3448: cat >> $CONFIG_STATUS <<\EOF
3449: fi
3450: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3451: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3452: case "$ac_file" in
3453: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3454: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3455: *) ac_file_in="${ac_file}.in" ;;
3456: esac
3457:
3458: echo creating $ac_file
3459:
3460: rm -f conftest.frag conftest.in conftest.out
3461: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3462: cat $ac_file_inputs > conftest.in
3463:
3464: EOF
3465:
3466: # Transform confdefs.h into a sed script conftest.vals that substitutes
3467: # the proper values into config.h.in to produce config.h. And first:
3468: # Protect against being on the right side of a sed subst in config.status.
3469: # Protect against being in an unquoted here document in config.status.
3470: rm -f conftest.vals
3471: cat > conftest.hdr <<\EOF
3472: s/[\\&%]/\\&/g
3473: s%[\\$`]%\\&%g
3474: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3475: s%ac_d%ac_u%gp
3476: s%ac_u%ac_e%gp
3477: EOF
3478: sed -n -f conftest.hdr confdefs.h > conftest.vals
3479: rm -f conftest.hdr
3480:
3481: # This sed command replaces #undef with comments. This is necessary, for
3482: # example, in the case of _POSIX_SOURCE, which is predefined and required
3483: # on some systems where configure will not decide to define it.
3484: cat >> conftest.vals <<\EOF
3485: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3486: EOF
3487:
3488: # Break up conftest.vals because some shells have a limit on
3489: # the size of here documents, and old seds have small limits too.
3490:
3491: rm -f conftest.tail
3492: while :
3493: do
3494: ac_lines=`grep -c . conftest.vals`
3495: # grep -c gives empty output for an empty file on some AIX systems.
3496: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3497: # Write a limited-size here document to conftest.frag.
3498: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3499: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3500: echo 'CEOF
3501: sed -f conftest.frag conftest.in > conftest.out
3502: rm -f conftest.in
3503: mv conftest.out conftest.in
3504: ' >> $CONFIG_STATUS
3505: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3506: rm -f conftest.vals
3507: mv conftest.tail conftest.vals
3508: done
3509: rm -f conftest.vals
3510:
3511: cat >> $CONFIG_STATUS <<\EOF
3512: rm -f conftest.frag conftest.h
3513: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3514: cat conftest.in >> conftest.h
3515: rm -f conftest.in
3516: if cmp -s $ac_file conftest.h 2>/dev/null; then
3517: echo "$ac_file is unchanged"
3518: rm -f conftest.h
3519: else
3520: # Remove last slash and all that follows it. Not all systems have dirname.
3521: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3522: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3523: # The file is in a subdirectory.
3524: test ! -d "$ac_dir" && mkdir "$ac_dir"
3525: fi
3526: rm -f $ac_file
3527: mv conftest.h $ac_file
3528: fi
3529: fi; done
3530:
3531: EOF
3532: cat >> $CONFIG_STATUS <<EOF
3533:
3534:
3535: EOF
3536: cat >> $CONFIG_STATUS <<\EOF
3537: test -z "$CONFIG_HEADERS" || echo timestamp > src/include/stamp-h
3538:
3539: exit 0
3540: EOF
3541: chmod +x $CONFIG_STATUS
3542: rm -fr confdefs* $ac_clean_files
3543: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3544:
3545: if test "$no_recursion" != yes; then
3546:
3547: # Remove --cache-file and --srcdir arguments so they do not pile up.
3548: ac_sub_configure_args=
3549: ac_prev=
3550: for ac_arg in $ac_configure_args; do
3551: if test -n "$ac_prev"; then
3552: ac_prev=
3553: continue
3554: fi
3555: case "$ac_arg" in
3556: -cache-file | --cache-file | --cache-fil | --cache-fi \
3557: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3558: ac_prev=cache_file ;;
3559: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3560: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3561: ;;
3562: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3563: ac_prev=srcdir ;;
3564: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3565: ;;
3566: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3567: esac
3568: done
3569:
3570: for ac_config_dir in src/libltdl; do
3571:
3572: # Do not complain, so a configure script can configure whichever
3573: # parts of a large source tree are present.
3574: if test ! -d $srcdir/$ac_config_dir; then
3575: continue
3576: fi
3577:
3578: echo configuring in $ac_config_dir
3579:
3580: case "$srcdir" in
3581: .) ;;
3582: *)
3583: if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3584: else
3585: { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3586: fi
3587: ;;
3588: esac
3589:
3590: ac_popdir=`pwd`
3591: cd $ac_config_dir
3592:
3593: # A "../" for each directory in /$ac_config_dir.
3594: ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3595:
3596: case "$srcdir" in
3597: .) # No --srcdir option. We are building in place.
3598: ac_sub_srcdir=$srcdir ;;
3599: /*) # Absolute path.
3600: ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3601: *) # Relative path.
3602: ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3603: esac
3604:
3605: # Check for guested configure; otherwise get Cygnus style configure.
3606: if test -f $ac_sub_srcdir/configure; then
3607: ac_sub_configure=$ac_sub_srcdir/configure
3608: elif test -f $ac_sub_srcdir/configure.in; then
3609: ac_sub_configure=$ac_configure
3610: else
3611: echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3612: ac_sub_configure=
3613: fi
3614:
3615: # The recursion is here.
3616: if test -n "$ac_sub_configure"; then
3617:
3618: # Make the cache file name correct relative to the subdirectory.
3619: case "$cache_file" in
3620: /*) ac_sub_cache_file=$cache_file ;;
3621: *) # Relative path.
3622: ac_sub_cache_file="$ac_dots$cache_file" ;;
3623: esac
3624: case "$ac_given_INSTALL" in
3625: [/$]*) INSTALL="$ac_given_INSTALL" ;;
3626: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3627: esac
3628:
3629: echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3630: # The eval makes quoting arguments work.
3631: if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3632: then :
3633: else
3634: { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3635: fi
3636: fi
3637:
3638: cd $ac_popdir
3639: done
3640: fi
3641:
E-mail: