Annotation of parser3/configure, revision 1.121
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.86 paf 3: # Generated by GNU Autoconf 2.59.
1.1 paf 4: #
1.86 paf 5: # Copyright (C) 2003 Free Software Foundation, Inc.
1.1 paf 6: # This configure script is free software; the Free Software Foundation
7: # gives unlimited permission to copy, distribute and modify it.
1.62 paf 8: ## --------------------- ##
9: ## M4sh Initialization. ##
10: ## --------------------- ##
11:
12: # Be Bourne compatible
13: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14: emulate sh
15: NULLCMD=:
16: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17: # is contrary to our usage. Disable this feature.
18: alias -g '${1+"$@"}'='"$@"'
19: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20: set -o posix
21: fi
1.86 paf 22: DUALCASE=1; export DUALCASE # for MKS sh
1.62 paf 23:
24: # Support unset when possible.
1.86 paf 25: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.62 paf 26: as_unset=unset
27: else
28: as_unset=false
29: fi
30:
31:
32: # Work around bugs in pre-3.0 UWIN ksh.
33: $as_unset ENV MAIL MAILPATH
34: PS1='$ '
35: PS2='> '
36: PS4='+ '
37:
38: # NLS nuisances.
39: for as_var in \
40: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42: LC_TELEPHONE LC_TIME
43: do
1.86 paf 44: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.62 paf 45: eval $as_var=C; export $as_var
46: else
47: $as_unset $as_var
48: fi
49: done
50:
51: # Required to use basename.
52: if expr a : '\(a\)' >/dev/null 2>&1; then
53: as_expr=expr
54: else
55: as_expr=false
56: fi
57:
58: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59: as_basename=basename
60: else
61: as_basename=false
62: fi
63:
64:
65: # Name of the executable.
66: as_me=`$as_basename "$0" ||
67: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68: X"$0" : 'X\(//\)$' \| \
69: X"$0" : 'X\(/\)$' \| \
70: . : '\(.\)' 2>/dev/null ||
71: echo X/"$0" |
72: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73: /^X\/\(\/\/\)$/{ s//\1/; q; }
74: /^X\/\(\/\).*/{ s//\1/; q; }
75: s/.*/./; q'`
76:
77:
78: # PATH needs CR, and LINENO needs CR and PATH.
79: # Avoid depending upon Character Ranges.
80: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83: as_cr_digits='0123456789'
84: as_cr_alnum=$as_cr_Letters$as_cr_digits
85:
86: # The user is always right.
87: if test "${PATH_SEPARATOR+set}" != set; then
88: echo "#! /bin/sh" >conf$$.sh
89: echo "exit 0" >>conf$$.sh
90: chmod +x conf$$.sh
91: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92: PATH_SEPARATOR=';'
93: else
94: PATH_SEPARATOR=:
95: fi
96: rm -f conf$$.sh
97: fi
98:
99:
100: as_lineno_1=$LINENO
101: as_lineno_2=$LINENO
102: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103: test "x$as_lineno_1" != "x$as_lineno_2" &&
104: test "x$as_lineno_3" = "x$as_lineno_2" || {
105: # Find who we are. Look in the path if we contain no path at all
106: # relative or not.
107: case $0 in
108: *[\\/]* ) as_myself=$0 ;;
109: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110: for as_dir in $PATH
111: do
112: IFS=$as_save_IFS
113: test -z "$as_dir" && as_dir=.
114: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115: done
116:
117: ;;
118: esac
119: # We did not find ourselves, most probably we were run as `sh COMMAND'
120: # in which case we are not to be found in the path.
121: if test "x$as_myself" = x; then
122: as_myself=$0
123: fi
124: if test ! -f "$as_myself"; then
125: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126: { (exit 1); exit 1; }; }
127: fi
128: case $CONFIG_SHELL in
129: '')
130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132: do
133: IFS=$as_save_IFS
134: test -z "$as_dir" && as_dir=.
135: for as_base in sh bash ksh sh5; do
136: case $as_dir in
137: /*)
138: if ("$as_dir/$as_base" -c '
139: as_lineno_1=$LINENO
140: as_lineno_2=$LINENO
141: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142: test "x$as_lineno_1" != "x$as_lineno_2" &&
143: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146: CONFIG_SHELL=$as_dir/$as_base
147: export CONFIG_SHELL
148: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149: fi;;
150: esac
151: done
152: done
153: ;;
154: esac
155:
156: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157: # uniformly replaced by the line number. The first 'sed' inserts a
158: # line-number line before each line; the second 'sed' does the real
159: # work. The second script uses 'N' to pair each line-number line
160: # with the numbered line, and appends trailing '-' during
161: # substitution so that $LINENO is not a special case at line end.
162: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164: sed '=' <$as_myself |
165: sed '
166: N
167: s,$,-,
168: : loop
169: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170: t loop
171: s,-$,,
172: s,^['$as_cr_digits']*\n,,
173: ' >$as_me.lineno &&
174: chmod +x $as_me.lineno ||
175: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176: { (exit 1); exit 1; }; }
177:
178: # Don't try to exec as it changes $[0], causing all sort of problems
179: # (the dirname of $[0] is not the place where we might find the
180: # original and so on. Autoconf is especially sensible to this).
181: . ./$as_me.lineno
182: # Exit status is that of the last command.
183: exit
184: }
185:
186:
187: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188: *c*,-n*) ECHO_N= ECHO_C='
189: ' ECHO_T=' ' ;;
190: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192: esac
193:
194: if expr a : '\(a\)' >/dev/null 2>&1; then
195: as_expr=expr
196: else
197: as_expr=false
198: fi
199:
200: rm -f conf$$ conf$$.exe conf$$.file
201: echo >conf$$.file
202: if ln -s conf$$.file conf$$ 2>/dev/null; then
203: # We could just check for DJGPP; but this test a) works b) is more generic
204: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205: if test -f conf$$.exe; then
206: # Don't use ln at all; we don't have any links
207: as_ln_s='cp -p'
208: else
209: as_ln_s='ln -s'
210: fi
211: elif ln conf$$.file conf$$ 2>/dev/null; then
212: as_ln_s=ln
213: else
214: as_ln_s='cp -p'
215: fi
216: rm -f conf$$ conf$$.exe conf$$.file
217:
218: if mkdir -p . 2>/dev/null; then
219: as_mkdir_p=:
220: else
1.86 paf 221: test -d ./-p && rmdir ./-p
1.62 paf 222: as_mkdir_p=false
223: fi
224:
225: as_executable_p="test -f"
226:
227: # Sed expression to map a string onto a valid CPP name.
1.86 paf 228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 229:
230: # Sed expression to map a string onto a valid variable name.
1.86 paf 231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 232:
233:
234: # IFS
235: # We need space, tab and new line, in precisely that order.
236: as_nl='
237: '
238: IFS=" $as_nl"
239:
240: # CDPATH.
241: $as_unset CDPATH
242:
1.1 paf 243:
1.62 paf 244: # Name of the host.
245: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246: # so uname gets run too.
247: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248:
249: exec 6>&1
250:
251: #
252: # Initializations.
253: #
1.1 paf 254: ac_default_prefix=/usr/local
1.62 paf 255: ac_config_libobj_dir=.
256: cross_compiling=no
257: subdirs=
258: MFLAGS=
259: MAKEFLAGS=
260: SHELL=${CONFIG_SHELL-/bin/sh}
261:
262: # Maximum number of lines to put in a shell here document.
263: # This variable seems obsolete. It should probably be removed, and
264: # only ac_max_sed_lines should be used.
265: : ${ac_max_here_lines=38}
266:
267: # Identity of this package.
268: PACKAGE_NAME=
269: PACKAGE_TARNAME=
270: PACKAGE_VERSION=
271: PACKAGE_STRING=
272: PACKAGE_BUGREPORT=
273:
274: ac_unique_file="README"
275: ac_subdirs_all="$ac_subdirs_all src/lib/ltdl"
276: # Factoring default headers for most tests.
277: ac_includes_default="\
278: #include <stdio.h>
279: #if HAVE_SYS_TYPES_H
280: # include <sys/types.h>
281: #endif
282: #if HAVE_SYS_STAT_H
283: # include <sys/stat.h>
284: #endif
285: #if STDC_HEADERS
286: # include <stdlib.h>
287: # include <stddef.h>
288: #else
289: # if HAVE_STDLIB_H
290: # include <stdlib.h>
291: # endif
292: #endif
293: #if HAVE_STRING_H
294: # if !STDC_HEADERS && HAVE_MEMORY_H
295: # include <memory.h>
296: # endif
297: # include <string.h>
298: #endif
299: #if HAVE_STRINGS_H
300: # include <strings.h>
301: #endif
302: #if HAVE_INTTYPES_H
303: # include <inttypes.h>
304: #else
305: # if HAVE_STDINT_H
306: # include <stdint.h>
307: # endif
308: #endif
309: #if HAVE_UNISTD_H
310: # include <unistd.h>
311: #endif"
312:
1.119 misha 313: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar P3S build build_cpu build_vendor build_os host host_cpu host_vendor host_os RANLIB ac_ct_RANLIB YACC CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE commentcharset_windows1251 commentcharset_windows1250 commentcharset_windows1257 commentcharset_koi8r dll_extension mysql_client pgsql_client oracle_client sqlite_client CPP_LIBS GC_LIBS PCRE_INCLUDES PCRE_LIBS XML_INCLUDES XML_LIBS CURL_INCLUDES MIME_INCLUDES MIME_LIBS APACHE13 COMPILE_APACHE13_MODULE_TRUE COMPILE_APACHE13_MODULE_FALSE INCLTDL LIBLTDL subdirs LIBADD_DL CPP EGREP LIBOBJS LTLIBOBJS'
1.62 paf 314: ac_subst_files=''
1.1 paf 315:
316: # Initialize some variables set by options.
1.62 paf 317: ac_init_help=
318: ac_init_version=false
1.1 paf 319: # The variables have the same names as the options, with
320: # dashes changed to underlines.
1.62 paf 321: cache_file=/dev/null
1.1 paf 322: exec_prefix=NONE
323: no_create=
324: no_recursion=
325: prefix=NONE
326: program_prefix=NONE
327: program_suffix=NONE
328: program_transform_name=s,x,x,
329: silent=
330: site=
331: srcdir=
332: verbose=
333: x_includes=NONE
334: x_libraries=NONE
1.62 paf 335:
336: # Installation directory options.
337: # These are left unexpanded so users can "make install exec_prefix=/foo"
338: # and all the variables that are supposed to be based on exec_prefix
339: # by default will actually change.
340: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1 paf 341: bindir='${exec_prefix}/bin'
342: sbindir='${exec_prefix}/sbin'
343: libexecdir='${exec_prefix}/libexec'
344: datadir='${prefix}/share'
345: sysconfdir='${prefix}/etc'
346: sharedstatedir='${prefix}/com'
347: localstatedir='${prefix}/var'
348: libdir='${exec_prefix}/lib'
349: includedir='${prefix}/include'
350: oldincludedir='/usr/include'
351: infodir='${prefix}/info'
352: mandir='${prefix}/man'
353:
354: ac_prev=
355: for ac_option
356: do
357: # If the previous option needs an argument, assign it.
358: if test -n "$ac_prev"; then
359: eval "$ac_prev=\$ac_option"
360: ac_prev=
361: continue
362: fi
363:
1.62 paf 364: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 paf 365:
366: # Accept the important Cygnus configure options, so we can diagnose typos.
367:
1.62 paf 368: case $ac_option in
1.1 paf 369:
370: -bindir | --bindir | --bindi | --bind | --bin | --bi)
371: ac_prev=bindir ;;
372: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.62 paf 373: bindir=$ac_optarg ;;
1.1 paf 374:
375: -build | --build | --buil | --bui | --bu)
1.62 paf 376: ac_prev=build_alias ;;
1.1 paf 377: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.62 paf 378: build_alias=$ac_optarg ;;
1.1 paf 379:
380: -cache-file | --cache-file | --cache-fil | --cache-fi \
381: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382: ac_prev=cache_file ;;
383: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.62 paf 385: cache_file=$ac_optarg ;;
386:
387: --config-cache | -C)
388: cache_file=config.cache ;;
1.1 paf 389:
390: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391: ac_prev=datadir ;;
392: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393: | --da=*)
1.62 paf 394: datadir=$ac_optarg ;;
1.1 paf 395:
396: -disable-* | --disable-*)
1.62 paf 397: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 398: # Reject names that are not valid shell variable names.
1.62 paf 399: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401: { (exit 1); exit 1; }; }
402: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403: eval "enable_$ac_feature=no" ;;
1.1 paf 404:
405: -enable-* | --enable-*)
1.62 paf 406: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 407: # Reject names that are not valid shell variable names.
1.62 paf 408: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410: { (exit 1); exit 1; }; }
411: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412: case $ac_option in
413: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 paf 414: *) ac_optarg=yes ;;
415: esac
1.62 paf 416: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 paf 417:
418: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420: | --exec | --exe | --ex)
421: ac_prev=exec_prefix ;;
422: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424: | --exec=* | --exe=* | --ex=*)
1.62 paf 425: exec_prefix=$ac_optarg ;;
1.1 paf 426:
427: -gas | --gas | --ga | --g)
428: # Obsolete; use --with-gas.
429: with_gas=yes ;;
430:
1.62 paf 431: -help | --help | --hel | --he | -h)
432: ac_init_help=long ;;
433: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434: ac_init_help=recursive ;;
435: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436: ac_init_help=short ;;
1.1 paf 437:
438: -host | --host | --hos | --ho)
1.62 paf 439: ac_prev=host_alias ;;
1.1 paf 440: -host=* | --host=* | --hos=* | --ho=*)
1.62 paf 441: host_alias=$ac_optarg ;;
1.1 paf 442:
443: -includedir | --includedir | --includedi | --included | --include \
444: | --includ | --inclu | --incl | --inc)
445: ac_prev=includedir ;;
446: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.62 paf 448: includedir=$ac_optarg ;;
1.1 paf 449:
450: -infodir | --infodir | --infodi | --infod | --info | --inf)
451: ac_prev=infodir ;;
452: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.62 paf 453: infodir=$ac_optarg ;;
1.1 paf 454:
455: -libdir | --libdir | --libdi | --libd)
456: ac_prev=libdir ;;
457: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.62 paf 458: libdir=$ac_optarg ;;
1.1 paf 459:
460: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461: | --libexe | --libex | --libe)
462: ac_prev=libexecdir ;;
463: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464: | --libexe=* | --libex=* | --libe=*)
1.62 paf 465: libexecdir=$ac_optarg ;;
1.1 paf 466:
467: -localstatedir | --localstatedir | --localstatedi | --localstated \
468: | --localstate | --localstat | --localsta | --localst \
469: | --locals | --local | --loca | --loc | --lo)
470: ac_prev=localstatedir ;;
471: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.62 paf 474: localstatedir=$ac_optarg ;;
1.1 paf 475:
476: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477: ac_prev=mandir ;;
478: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.62 paf 479: mandir=$ac_optarg ;;
1.1 paf 480:
481: -nfp | --nfp | --nf)
482: # Obsolete; use --without-fp.
483: with_fp=no ;;
484:
485: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.62 paf 486: | --no-cr | --no-c | -n)
1.1 paf 487: no_create=yes ;;
488:
489: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491: no_recursion=yes ;;
492:
493: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495: | --oldin | --oldi | --old | --ol | --o)
496: ac_prev=oldincludedir ;;
497: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.62 paf 500: oldincludedir=$ac_optarg ;;
1.1 paf 501:
502: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503: ac_prev=prefix ;;
504: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.62 paf 505: prefix=$ac_optarg ;;
1.1 paf 506:
507: -program-prefix | --program-prefix | --program-prefi | --program-pref \
508: | --program-pre | --program-pr | --program-p)
509: ac_prev=program_prefix ;;
510: -program-prefix=* | --program-prefix=* | --program-prefi=* \
511: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.62 paf 512: program_prefix=$ac_optarg ;;
1.1 paf 513:
514: -program-suffix | --program-suffix | --program-suffi | --program-suff \
515: | --program-suf | --program-su | --program-s)
516: ac_prev=program_suffix ;;
517: -program-suffix=* | --program-suffix=* | --program-suffi=* \
518: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.62 paf 519: program_suffix=$ac_optarg ;;
1.1 paf 520:
521: -program-transform-name | --program-transform-name \
522: | --program-transform-nam | --program-transform-na \
523: | --program-transform-n | --program-transform- \
524: | --program-transform | --program-transfor \
525: | --program-transfo | --program-transf \
526: | --program-trans | --program-tran \
527: | --progr-tra | --program-tr | --program-t)
528: ac_prev=program_transform_name ;;
529: -program-transform-name=* | --program-transform-name=* \
530: | --program-transform-nam=* | --program-transform-na=* \
531: | --program-transform-n=* | --program-transform-=* \
532: | --program-transform=* | --program-transfor=* \
533: | --program-transfo=* | --program-transf=* \
534: | --program-trans=* | --program-tran=* \
535: | --progr-tra=* | --program-tr=* | --program-t=*)
1.62 paf 536: program_transform_name=$ac_optarg ;;
1.1 paf 537:
538: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539: | -silent | --silent | --silen | --sile | --sil)
540: silent=yes ;;
541:
542: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543: ac_prev=sbindir ;;
544: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545: | --sbi=* | --sb=*)
1.62 paf 546: sbindir=$ac_optarg ;;
1.1 paf 547:
548: -sharedstatedir | --sharedstatedir | --sharedstatedi \
549: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550: | --sharedst | --shareds | --shared | --share | --shar \
551: | --sha | --sh)
552: ac_prev=sharedstatedir ;;
553: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556: | --sha=* | --sh=*)
1.62 paf 557: sharedstatedir=$ac_optarg ;;
1.1 paf 558:
559: -site | --site | --sit)
560: ac_prev=site ;;
561: -site=* | --site=* | --sit=*)
1.62 paf 562: site=$ac_optarg ;;
1.1 paf 563:
564: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565: ac_prev=srcdir ;;
566: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.62 paf 567: srcdir=$ac_optarg ;;
1.1 paf 568:
569: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570: | --syscon | --sysco | --sysc | --sys | --sy)
571: ac_prev=sysconfdir ;;
572: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.62 paf 574: sysconfdir=$ac_optarg ;;
1.1 paf 575:
576: -target | --target | --targe | --targ | --tar | --ta | --t)
1.62 paf 577: ac_prev=target_alias ;;
1.1 paf 578: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.62 paf 579: target_alias=$ac_optarg ;;
1.1 paf 580:
581: -v | -verbose | --verbose | --verbos | --verbo | --verb)
582: verbose=yes ;;
583:
1.62 paf 584: -version | --version | --versio | --versi | --vers | -V)
585: ac_init_version=: ;;
1.1 paf 586:
587: -with-* | --with-*)
1.62 paf 588: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 589: # Reject names that are not valid shell variable names.
1.62 paf 590: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591: { echo "$as_me: error: invalid package name: $ac_package" >&2
592: { (exit 1); exit 1; }; }
1.1 paf 593: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.62 paf 594: case $ac_option in
595: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 paf 596: *) ac_optarg=yes ;;
597: esac
1.62 paf 598: eval "with_$ac_package='$ac_optarg'" ;;
1.1 paf 599:
600: -without-* | --without-*)
1.62 paf 601: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 602: # Reject names that are not valid shell variable names.
1.62 paf 603: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604: { echo "$as_me: error: invalid package name: $ac_package" >&2
605: { (exit 1); exit 1; }; }
606: ac_package=`echo $ac_package | sed 's/-/_/g'`
607: eval "with_$ac_package=no" ;;
1.1 paf 608:
609: --x)
610: # Obsolete; use --with-x.
611: with_x=yes ;;
612:
613: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614: | --x-incl | --x-inc | --x-in | --x-i)
615: ac_prev=x_includes ;;
616: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.62 paf 618: x_includes=$ac_optarg ;;
1.1 paf 619:
620: -x-libraries | --x-libraries | --x-librarie | --x-librari \
621: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622: ac_prev=x_libraries ;;
623: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.62 paf 625: x_libraries=$ac_optarg ;;
1.1 paf 626:
1.62 paf 627: -*) { echo "$as_me: error: unrecognized option: $ac_option
628: Try \`$0 --help' for more information." >&2
629: { (exit 1); exit 1; }; }
1.1 paf 630: ;;
631:
1.62 paf 632: *=*)
633: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634: # Reject names that are not valid shell variable names.
635: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637: { (exit 1); exit 1; }; }
638: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639: eval "$ac_envvar='$ac_optarg'"
640: export $ac_envvar ;;
641:
1.1 paf 642: *)
1.62 paf 643: # FIXME: should be removed in autoconf 3.0.
644: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 paf 648: ;;
649:
650: esac
651: done
652:
653: if test -n "$ac_prev"; then
1.62 paf 654: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655: { echo "$as_me: error: missing argument to $ac_option" >&2
656: { (exit 1); exit 1; }; }
1.1 paf 657: fi
658:
1.62 paf 659: # Be sure to have absolute paths.
660: for ac_var in exec_prefix prefix
661: do
662: eval ac_val=$`echo $ac_var`
663: case $ac_val in
664: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666: { (exit 1); exit 1; }; };;
667: esac
668: done
1.1 paf 669:
1.62 paf 670: # Be sure to have absolute paths.
671: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.86 paf 672: localstatedir libdir includedir oldincludedir infodir mandir
1.1 paf 673: do
1.62 paf 674: eval ac_val=$`echo $ac_var`
675: case $ac_val in
676: [\\/$]* | ?:[\\/]* ) ;;
677: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678: { (exit 1); exit 1; }; };;
1.1 paf 679: esac
680: done
681:
1.62 paf 682: # There might be people who depend on the old broken behavior: `$host'
683: # used to hold the argument of --host etc.
684: # FIXME: To remove some day.
685: build=$build_alias
686: host=$host_alias
687: target=$target_alias
688:
689: # FIXME: To remove some day.
690: if test "x$host_alias" != x; then
691: if test "x$build_alias" = x; then
692: cross_compiling=maybe
693: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694: If a cross compiler is detected then cross compile mode will be used." >&2
695: elif test "x$build_alias" != "x$host_alias"; then
696: cross_compiling=yes
697: fi
698: fi
699:
700: ac_tool_prefix=
701: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 702:
1.62 paf 703: test "$silent" = yes && exec 6>/dev/null
1.1 paf 704:
705:
706: # Find the source files, if location was not specified.
707: if test -z "$srcdir"; then
708: ac_srcdir_defaulted=yes
709: # Try the directory containing this script, then its parent.
1.62 paf 710: ac_confdir=`(dirname "$0") 2>/dev/null ||
711: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 712: X"$0" : 'X\(//\)[^/]' \| \
713: X"$0" : 'X\(//\)$' \| \
714: X"$0" : 'X\(/\)' \| \
715: . : '\(.\)' 2>/dev/null ||
1.62 paf 716: echo X"$0" |
717: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719: /^X\(\/\/\)$/{ s//\1/; q; }
720: /^X\(\/\).*/{ s//\1/; q; }
721: s/.*/./; q'`
1.1 paf 722: srcdir=$ac_confdir
723: if test ! -r $srcdir/$ac_unique_file; then
724: srcdir=..
725: fi
726: else
727: ac_srcdir_defaulted=no
728: fi
729: if test ! -r $srcdir/$ac_unique_file; then
730: if test "$ac_srcdir_defaulted" = yes; then
1.62 paf 731: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732: { (exit 1); exit 1; }; }
1.1 paf 733: else
1.62 paf 734: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735: { (exit 1); exit 1; }; }
1.1 paf 736: fi
737: fi
1.62 paf 738: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740: { (exit 1); exit 1; }; }
741: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742: ac_env_build_alias_set=${build_alias+set}
743: ac_env_build_alias_value=$build_alias
744: ac_cv_env_build_alias_set=${build_alias+set}
745: ac_cv_env_build_alias_value=$build_alias
746: ac_env_host_alias_set=${host_alias+set}
747: ac_env_host_alias_value=$host_alias
748: ac_cv_env_host_alias_set=${host_alias+set}
749: ac_cv_env_host_alias_value=$host_alias
750: ac_env_target_alias_set=${target_alias+set}
751: ac_env_target_alias_value=$target_alias
752: ac_cv_env_target_alias_set=${target_alias+set}
753: ac_cv_env_target_alias_value=$target_alias
1.66 paf 754: ac_env_CXX_set=${CXX+set}
755: ac_env_CXX_value=$CXX
756: ac_cv_env_CXX_set=${CXX+set}
757: ac_cv_env_CXX_value=$CXX
758: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
759: ac_env_CXXFLAGS_value=$CXXFLAGS
760: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
761: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
762: ac_env_LDFLAGS_set=${LDFLAGS+set}
763: ac_env_LDFLAGS_value=$LDFLAGS
764: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765: ac_cv_env_LDFLAGS_value=$LDFLAGS
766: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767: ac_env_CPPFLAGS_value=$CPPFLAGS
768: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
1.62 paf 770: ac_env_CC_set=${CC+set}
771: ac_env_CC_value=$CC
772: ac_cv_env_CC_set=${CC+set}
773: ac_cv_env_CC_value=$CC
774: ac_env_CFLAGS_set=${CFLAGS+set}
775: ac_env_CFLAGS_value=$CFLAGS
776: ac_cv_env_CFLAGS_set=${CFLAGS+set}
777: ac_cv_env_CFLAGS_value=$CFLAGS
1.66 paf 778: ac_env_CPP_set=${CPP+set}
779: ac_env_CPP_value=$CPP
780: ac_cv_env_CPP_set=${CPP+set}
781: ac_cv_env_CPP_value=$CPP
1.62 paf 782:
783: #
784: # Report the --help message.
785: #
786: if test "$ac_init_help" = "long"; then
787: # Omit some internal or obsolete options to make the list less imposing.
788: # This message is too long to be a string in the A/UX 3.1 sh.
789: cat <<_ACEOF
790: \`configure' configures this package to adapt to many kinds of systems.
791:
792: Usage: $0 [OPTION]... [VAR=VALUE]...
793:
794: To assign environment variables (e.g., CC, CFLAGS...), specify them as
795: VAR=VALUE. See below for descriptions of some of the useful variables.
796:
797: Defaults for the options are specified in brackets.
798:
799: Configuration:
800: -h, --help display this help and exit
801: --help=short display options specific to this package
802: --help=recursive display the short help of all the included packages
803: -V, --version display version information and exit
804: -q, --quiet, --silent do not print \`checking...' messages
805: --cache-file=FILE cache test results in FILE [disabled]
806: -C, --config-cache alias for \`--cache-file=config.cache'
807: -n, --no-create do not create output files
808: --srcdir=DIR find the sources in DIR [configure dir or \`..']
809:
810: _ACEOF
811:
812: cat <<_ACEOF
813: Installation directories:
814: --prefix=PREFIX install architecture-independent files in PREFIX
1.86 paf 815: [$ac_default_prefix]
1.62 paf 816: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.86 paf 817: [PREFIX]
1.62 paf 818:
819: By default, \`make install' will install all the files in
820: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
821: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
822: for instance \`--prefix=\$HOME'.
823:
824: For better control, use the options below.
825:
826: Fine tuning of the installation directories:
827: --bindir=DIR user executables [EPREFIX/bin]
828: --sbindir=DIR system admin executables [EPREFIX/sbin]
829: --libexecdir=DIR program executables [EPREFIX/libexec]
830: --datadir=DIR read-only architecture-independent data [PREFIX/share]
831: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
832: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
833: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
834: --libdir=DIR object code libraries [EPREFIX/lib]
835: --includedir=DIR C header files [PREFIX/include]
836: --oldincludedir=DIR C header files for non-gcc [/usr/include]
837: --infodir=DIR info documentation [PREFIX/info]
838: --mandir=DIR man documentation [PREFIX/man]
839: _ACEOF
840:
841: cat <<\_ACEOF
842:
843: Program names:
844: --program-prefix=PREFIX prepend PREFIX to installed program names
845: --program-suffix=SUFFIX append SUFFIX to installed program names
846: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
847:
848: System types:
849: --build=BUILD configure for building on BUILD [guessed]
850: --host=HOST cross-compile to build programs to run on HOST [BUILD]
851: _ACEOF
852: fi
853:
854: if test -n "$ac_init_help"; then
855:
856: cat <<\_ACEOF
857:
858: Optional Features:
859: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.86 paf 861: --disable-dependency-tracking speeds up one-time build
862: --enable-dependency-tracking do not reject slow dependency extractors
1.67 paf 863: --disable-safe-mode to enable reading and executing
1.62 paf 864: files belonging to group+user other then effective
1.94 misha 865: --disable-execs to disable any execs
1.62 paf 866: (file::exec, file::cgi, unix mail:send)
1.94 misha 867: --disable-stringstream to disable stringstream usage.
868: when disabled table.save use more memory but it's safer on freebsd 4.x
1.62 paf 869:
870: Optional Packages:
871: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.71 paf 873: --with-build-warnings to enable build-time compiler warnings if gcc is used
1.67 paf 874: --with-assertions to enable assertions
1.62 paf 875: --with-charsets=CHARSET,CHARSET,... Enables charsets in root config (windows-1251,
876: windows-1250 windows-1257 koi8-r; Default is windows-1251)
877: --with-mysql-client=mysqlclientlib?withparams
878: MySQL client dynamic library to root config
879: --with-pgsql-client=pgsqlclientlib?withparams
880: PgSQL client dynamic library to root config
881: --with-oracle-client=oracleclientlib?withparams
882: Oracle client dynamic library
1.92 misha 883: --with-sqlite-client=sqliteclientlib?withparams
884: SQLite client dynamic library to root config
1.62 paf 885: --with-pathlink=LKEY put dynamic libraries paths to binary
886: using linker key (-R, -rpath-link)
1.67 paf 887: --with-dynamic-stdcpp link libstdc++ dynamically
888: by default, libstdc++ is linked statically
1.62 paf 889: --with-sjlj-exceptions enable simple 'throw' from dynamic library
1.67 paf 890: --with-shared-gc=D D is the directory where
891: Boehm garbage collecting library is installed (shared lib)
892: --with-static-gc=D D is the directory where
893: Boehm garbage collecting library is installed (static lib)
1.119 misha 894: --with-static-pcre=D D is the directory where
1.100 misha 895: PCRE library is installed (static lib)
1.62 paf 896: --with-shared-xml=D D is the directory where
897: Gnome XML libraries are installed (shared libs)
898: --with-static-xml=D D is the directory where
899: Gnome XML libraries are installed (static libs)
1.119 misha 900: --with-curl=D D is the curl includes directory
1.90 paf 901: --with-glib-config=FILE FILE is glib library
902: configuration file (search for glib*-config)
1.62 paf 903: --with-shared-mailreceive=D is the directory where
1.67 paf 904: Gnome MIME library is installed (shared lib)
1.62 paf 905: --with-static-mailreceive=D is the directory where
906: Gnome MIME library is installed (static lib)
907: \"--with-sendmail=COMMAND\" forces this command to send mail.
908: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
909: (makes parser ignore user-defined sendmail commands)
910: --with-apache13=D D is the Apache13 source distribution directory
911: builds library for apache_module using that dir
912: (do not add /src)
913:
914: Some influential environment variables:
1.66 paf 915: CXX C++ compiler command
916: CXXFLAGS C++ compiler flags
1.62 paf 917: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
918: nonstandard directory <lib dir>
919: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
920: headers in a nonstandard directory <include dir>
1.66 paf 921: CC C compiler command
922: CFLAGS C compiler flags
923: CPP C preprocessor
1.62 paf 924:
925: Use these variables to override the choices made by `configure' or to help
926: it to find libraries and programs with nonstandard names/locations.
927:
928: _ACEOF
929: fi
930:
931: if test "$ac_init_help" = "recursive"; then
932: # If there are subdirs, report their specific --help.
933: ac_popdir=`pwd`
934: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
935: test -d $ac_dir || continue
936: ac_builddir=.
937:
938: if test "$ac_dir" != .; then
939: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
940: # A "../" for each directory in $ac_dir_suffix.
941: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
942: else
943: ac_dir_suffix= ac_top_builddir=
944: fi
945:
946: case $srcdir in
947: .) # No --srcdir option. We are building in place.
948: ac_srcdir=.
949: if test -z "$ac_top_builddir"; then
950: ac_top_srcdir=.
951: else
952: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
953: fi ;;
954: [\\/]* | ?:[\\/]* ) # Absolute path.
955: ac_srcdir=$srcdir$ac_dir_suffix;
956: ac_top_srcdir=$srcdir ;;
957: *) # Relative path.
958: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
959: ac_top_srcdir=$ac_top_builddir$srcdir ;;
960: esac
1.86 paf 961:
962: # Do not use `cd foo && pwd` to compute absolute paths, because
963: # the directories may not exist.
964: case `pwd` in
965: .) ac_abs_builddir="$ac_dir";;
966: *)
967: case "$ac_dir" in
968: .) ac_abs_builddir=`pwd`;;
969: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
970: *) ac_abs_builddir=`pwd`/"$ac_dir";;
971: esac;;
972: esac
973: case $ac_abs_builddir in
974: .) ac_abs_top_builddir=${ac_top_builddir}.;;
975: *)
976: case ${ac_top_builddir}. in
977: .) ac_abs_top_builddir=$ac_abs_builddir;;
978: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
979: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
980: esac;;
981: esac
982: case $ac_abs_builddir in
983: .) ac_abs_srcdir=$ac_srcdir;;
984: *)
985: case $ac_srcdir in
986: .) ac_abs_srcdir=$ac_abs_builddir;;
987: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
988: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
989: esac;;
990: esac
991: case $ac_abs_builddir in
992: .) ac_abs_top_srcdir=$ac_top_srcdir;;
993: *)
994: case $ac_top_srcdir in
995: .) ac_abs_top_srcdir=$ac_abs_builddir;;
996: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
997: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
998: esac;;
999: esac
1.62 paf 1000:
1001: cd $ac_dir
1002: # Check for guested configure; otherwise get Cygnus style configure.
1003: if test -f $ac_srcdir/configure.gnu; then
1004: echo
1005: $SHELL $ac_srcdir/configure.gnu --help=recursive
1006: elif test -f $ac_srcdir/configure; then
1007: echo
1008: $SHELL $ac_srcdir/configure --help=recursive
1009: elif test -f $ac_srcdir/configure.ac ||
1.86 paf 1010: test -f $ac_srcdir/configure.in; then
1.62 paf 1011: echo
1012: $ac_configure --help
1013: else
1014: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1015: fi
1016: cd $ac_popdir
1017: done
1018: fi
1019:
1020: test -n "$ac_init_help" && exit 0
1021: if $ac_init_version; then
1022: cat <<\_ACEOF
1023:
1.86 paf 1024: Copyright (C) 2003 Free Software Foundation, Inc.
1.62 paf 1025: This configure script is free software; the Free Software Foundation
1026: gives unlimited permission to copy, distribute and modify it.
1027: _ACEOF
1028: exit 0
1029: fi
1030: exec 5>config.log
1031: cat >&5 <<_ACEOF
1032: This file contains any messages produced by compilers while
1033: running configure, to aid debugging if configure makes a mistake.
1034:
1035: It was created by $as_me, which was
1.86 paf 1036: generated by GNU Autoconf 2.59. Invocation command line was
1.62 paf 1037:
1038: $ $0 $@
1039:
1040: _ACEOF
1041: {
1042: cat <<_ASUNAME
1043: ## --------- ##
1044: ## Platform. ##
1045: ## --------- ##
1046:
1047: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1048: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1049: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1050: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1051: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1052:
1053: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1054: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1055:
1056: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1057: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1058: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1059: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1060: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1061: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1062: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1063:
1064: _ASUNAME
1065:
1066: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1067: for as_dir in $PATH
1068: do
1069: IFS=$as_save_IFS
1070: test -z "$as_dir" && as_dir=.
1071: echo "PATH: $as_dir"
1072: done
1.1 paf 1073:
1.62 paf 1074: } >&5
1075:
1076: cat >&5 <<_ACEOF
1077:
1078:
1079: ## ----------- ##
1080: ## Core tests. ##
1081: ## ----------- ##
1082:
1083: _ACEOF
1084:
1085:
1086: # Keep a trace of the command line.
1087: # Strip out --no-create and --no-recursion so they do not pile up.
1088: # Strip out --silent because we don't want to record it for future runs.
1089: # Also quote any args containing shell meta-characters.
1090: # Make two passes to allow for proper duplicate-argument suppression.
1091: ac_configure_args=
1092: ac_configure_args0=
1093: ac_configure_args1=
1094: ac_sep=
1095: ac_must_keep_next=false
1096: for ac_pass in 1 2
1097: do
1098: for ac_arg
1099: do
1100: case $ac_arg in
1101: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1102: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103: | -silent | --silent | --silen | --sile | --sil)
1104: continue ;;
1105: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1106: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1107: esac
1108: case $ac_pass in
1109: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1110: 2)
1111: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1112: if test $ac_must_keep_next = true; then
1.86 paf 1113: ac_must_keep_next=false # Got value, back to normal.
1.62 paf 1114: else
1.86 paf 1115: case $ac_arg in
1116: *=* | --config-cache | -C | -disable-* | --disable-* \
1117: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1118: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1119: | -with-* | --with-* | -without-* | --without-* | --x)
1120: case "$ac_configure_args0 " in
1121: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1122: esac
1123: ;;
1124: -* ) ac_must_keep_next=true ;;
1125: esac
1.62 paf 1126: fi
1127: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1128: # Get rid of the leading space.
1129: ac_sep=" "
1130: ;;
1131: esac
1132: done
1133: done
1134: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1135: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1136:
1137: # When interrupted or exit'd, cleanup temporary files, and complete
1138: # config.log. We remove comments because anyway the quotes in there
1139: # would cause problems or look ugly.
1140: # WARNING: Be sure not to use single quotes in there, as some shells,
1141: # such as our DU 5.0 friend, will then `close' the trap.
1142: trap 'exit_status=$?
1143: # Save into config.log some information that might help in debugging.
1144: {
1145: echo
1146:
1147: cat <<\_ASBOX
1148: ## ---------------- ##
1149: ## Cache variables. ##
1150: ## ---------------- ##
1151: _ASBOX
1152: echo
1153: # The following way of writing the cache mishandles newlines in values,
1154: {
1155: (set) 2>&1 |
1156: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1157: *ac_space=\ *)
1158: sed -n \
1.86 paf 1159: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1160: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.62 paf 1161: ;;
1162: *)
1163: sed -n \
1.86 paf 1164: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.62 paf 1165: ;;
1166: esac;
1167: }
1168: echo
1169:
1170: cat <<\_ASBOX
1171: ## ----------------- ##
1172: ## Output variables. ##
1173: ## ----------------- ##
1174: _ASBOX
1175: echo
1176: for ac_var in $ac_subst_vars
1177: do
1178: eval ac_val=$`echo $ac_var`
1179: echo "$ac_var='"'"'$ac_val'"'"'"
1180: done | sort
1181: echo
1182:
1183: if test -n "$ac_subst_files"; then
1184: cat <<\_ASBOX
1185: ## ------------- ##
1186: ## Output files. ##
1187: ## ------------- ##
1188: _ASBOX
1189: echo
1190: for ac_var in $ac_subst_files
1191: do
1192: eval ac_val=$`echo $ac_var`
1.86 paf 1193: echo "$ac_var='"'"'$ac_val'"'"'"
1.62 paf 1194: done | sort
1195: echo
1196: fi
1197:
1198: if test -s confdefs.h; then
1199: cat <<\_ASBOX
1200: ## ----------- ##
1201: ## confdefs.h. ##
1202: ## ----------- ##
1203: _ASBOX
1204: echo
1205: sed "/^$/d" confdefs.h | sort
1206: echo
1207: fi
1208: test "$ac_signal" != 0 &&
1209: echo "$as_me: caught signal $ac_signal"
1210: echo "$as_me: exit $exit_status"
1211: } >&5
1.86 paf 1212: rm -f core *.core &&
1.62 paf 1213: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1214: exit $exit_status
1215: ' 0
1216: for ac_signal in 1 2 13 15; do
1217: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1218: done
1219: ac_signal=0
1220:
1221: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1222: rm -rf conftest* confdefs.h
1223: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1224: echo >confdefs.h
1225:
1226: # Predefined preprocessor variables.
1227:
1228: cat >>confdefs.h <<_ACEOF
1229: #define PACKAGE_NAME "$PACKAGE_NAME"
1230: _ACEOF
1231:
1232:
1233: cat >>confdefs.h <<_ACEOF
1234: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1235: _ACEOF
1236:
1237:
1238: cat >>confdefs.h <<_ACEOF
1239: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1240: _ACEOF
1241:
1242:
1243: cat >>confdefs.h <<_ACEOF
1244: #define PACKAGE_STRING "$PACKAGE_STRING"
1245: _ACEOF
1246:
1247:
1248: cat >>confdefs.h <<_ACEOF
1249: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1250: _ACEOF
1251:
1252:
1253: # Let the site file select an alternate cache file if it wants to.
1.1 paf 1254: # Prefer explicitly selected file to automatically selected ones.
1255: if test -z "$CONFIG_SITE"; then
1256: if test "x$prefix" != xNONE; then
1257: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1258: else
1259: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1260: fi
1261: fi
1262: for ac_site_file in $CONFIG_SITE; do
1263: if test -r "$ac_site_file"; then
1.62 paf 1264: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1265: echo "$as_me: loading site script $ac_site_file" >&6;}
1266: sed 's/^/| /' "$ac_site_file" >&5
1.1 paf 1267: . "$ac_site_file"
1268: fi
1269: done
1270:
1271: if test -r "$cache_file"; then
1.62 paf 1272: # Some versions of bash will fail to source /dev/null (special
1273: # files actually), so we avoid doing that.
1274: if test -f "$cache_file"; then
1275: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1276: echo "$as_me: loading cache $cache_file" >&6;}
1277: case $cache_file in
1278: [\\/]* | ?:[\\/]* ) . $cache_file;;
1279: *) . ./$cache_file;;
1280: esac
1281: fi
1.1 paf 1282: else
1.62 paf 1283: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1284: echo "$as_me: creating cache $cache_file" >&6;}
1285: >$cache_file
1286: fi
1287:
1288: # Check that the precious variables saved in the cache have kept the same
1289: # value.
1290: ac_cache_corrupted=false
1291: for ac_var in `(set) 2>&1 |
1.86 paf 1292: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.62 paf 1293: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1294: eval ac_new_set=\$ac_env_${ac_var}_set
1295: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1296: eval ac_new_val="\$ac_env_${ac_var}_value"
1297: case $ac_old_set,$ac_new_set in
1298: set,)
1299: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1300: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1301: ac_cache_corrupted=: ;;
1302: ,set)
1303: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1304: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1305: ac_cache_corrupted=: ;;
1306: ,);;
1307: *)
1308: if test "x$ac_old_val" != "x$ac_new_val"; then
1.86 paf 1309: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.62 paf 1310: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.86 paf 1311: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.62 paf 1312: echo "$as_me: former value: $ac_old_val" >&2;}
1.86 paf 1313: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.62 paf 1314: echo "$as_me: current value: $ac_new_val" >&2;}
1.86 paf 1315: ac_cache_corrupted=:
1.62 paf 1316: fi;;
1317: esac
1318: # Pass precious variables to config.status.
1319: if test "$ac_new_set" = set; then
1320: case $ac_new_val in
1321: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1322: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1323: *) ac_arg=$ac_var=$ac_new_val ;;
1324: esac
1325: case " $ac_configure_args " in
1326: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1327: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1328: esac
1329: fi
1330: done
1331: if $ac_cache_corrupted; then
1332: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1333: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1334: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1335: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1336: { (exit 1); exit 1; }; }
1.1 paf 1337: fi
1338:
1339: ac_ext=c
1340: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 1341: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1342: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1343: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1344:
1345:
1346:
1347:
1348:
1349:
1350:
1351:
1352:
1353:
1354:
1.1 paf 1355:
1356:
1.62 paf 1357:
1358:
1359:
1360:
1361:
1362:
1.63 paf 1363:
1364:
1.86 paf 1365: am__api_version="1.9"
1.1 paf 1366: ac_aux_dir=
1367: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1368: if test -f $ac_dir/install-sh; then
1369: ac_aux_dir=$ac_dir
1370: ac_install_sh="$ac_aux_dir/install-sh -c"
1371: break
1372: elif test -f $ac_dir/install.sh; then
1373: ac_aux_dir=$ac_dir
1374: ac_install_sh="$ac_aux_dir/install.sh -c"
1375: break
1.62 paf 1376: elif test -f $ac_dir/shtool; then
1377: ac_aux_dir=$ac_dir
1378: ac_install_sh="$ac_aux_dir/shtool install -c"
1379: break
1.1 paf 1380: fi
1381: done
1382: if test -z "$ac_aux_dir"; then
1.62 paf 1383: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1384: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1385: { (exit 1); exit 1; }; }
1386: fi
1387: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1388: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1389: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 paf 1390:
1391: # Find a good install program. We prefer a C program (faster),
1392: # so one script is as good as another. But avoid the broken or
1393: # incompatible versions:
1394: # SysV /etc/install, /usr/sbin/install
1395: # SunOS /usr/etc/install
1396: # IRIX /sbin/install
1397: # AIX /bin/install
1.62 paf 1398: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 1399: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1400: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1401: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 1402: # OS/2's system install, which has a completely different semantic
1.1 paf 1403: # ./install, which can be erroneously created by make from ./install.sh.
1.62 paf 1404: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1405: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 paf 1406: if test -z "$INSTALL"; then
1.62 paf 1407: if test "${ac_cv_path_install+set}" = set; then
1408: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1409: else
1.62 paf 1410: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1411: for as_dir in $PATH
1412: do
1413: IFS=$as_save_IFS
1414: test -z "$as_dir" && as_dir=.
1415: # Account for people who put trailing slashes in PATH elements.
1416: case $as_dir/ in
1417: ./ | .// | /cC/* | \
1418: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.86 paf 1419: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.62 paf 1420: /usr/ucb/* ) ;;
1421: *)
1422: # OSF1 and SCO ODT 3.0 have their own names for install.
1423: # Don't use installbsd from OSF since it installs stuff as root
1424: # by default.
1425: for ac_prog in ginstall scoinst install; do
1426: for ac_exec_ext in '' $ac_executable_extensions; do
1.86 paf 1427: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1428: if test $ac_prog = install &&
1429: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1430: # AIX install. It has an incompatible calling convention.
1431: :
1432: elif test $ac_prog = install &&
1433: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1434: # program-specific install script used by HP pwplus--don't use.
1435: :
1436: else
1437: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1438: break 3
1439: fi
1440: fi
1.1 paf 1441: done
1.62 paf 1442: done
1443: ;;
1444: esac
1445: done
1446:
1.1 paf 1447:
1448: fi
1449: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 1450: INSTALL=$ac_cv_path_install
1.1 paf 1451: else
1452: # As a last resort, use the slow shell script. We don't cache a
1453: # path for INSTALL within a source directory, because that will
1454: # break other packages using the cache if that directory is
1455: # removed, or if the path is relative.
1.62 paf 1456: INSTALL=$ac_install_sh
1.1 paf 1457: fi
1458: fi
1.62 paf 1459: echo "$as_me:$LINENO: result: $INSTALL" >&5
1460: echo "${ECHO_T}$INSTALL" >&6
1.1 paf 1461:
1462: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1463: # It thinks the first close brace ends the variable substitution.
1464: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1465:
1.62 paf 1466: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 1467:
1468: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1469:
1.62 paf 1470: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1471: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 paf 1472: # Just in case
1473: sleep 1
1.62 paf 1474: echo timestamp > conftest.file
1.1 paf 1475: # Do `set' in a subshell so we don't clobber the current shell's
1476: # arguments. Must try -L first in case configure is actually a
1477: # symlink; some systems play weird games with the mod time of symlinks
1478: # (eg FreeBSD returns the mod time of the symlink's containing
1479: # directory).
1480: if (
1.62 paf 1481: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 paf 1482: if test "$*" = "X"; then
1483: # -L didn't work.
1.62 paf 1484: set X `ls -t $srcdir/configure conftest.file`
1.1 paf 1485: fi
1.62 paf 1486: rm -f conftest.file
1487: if test "$*" != "X $srcdir/configure conftest.file" \
1488: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 1489:
1490: # If neither matched, then we have a broken ls. This can happen
1491: # if, for instance, CONFIG_SHELL is bash and it inherits a
1492: # broken ls alias from the environment. This has actually
1493: # happened. Such a system could not be considered "sane".
1.62 paf 1494: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1495: alias in your environment" >&5
1496: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1497: alias in your environment" >&2;}
1498: { (exit 1); exit 1; }; }
1.1 paf 1499: fi
1500:
1.62 paf 1501: test "$2" = conftest.file
1.1 paf 1502: )
1503: then
1504: # Ok.
1505: :
1506: else
1.62 paf 1507: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1508: Check your system clock" >&5
1509: echo "$as_me: error: newly created file is older than distributed files!
1510: Check your system clock" >&2;}
1511: { (exit 1); exit 1; }; }
1.1 paf 1512: fi
1.62 paf 1513: echo "$as_me:$LINENO: result: yes" >&5
1514: echo "${ECHO_T}yes" >&6
1.1 paf 1515: test "$program_prefix" != NONE &&
1.62 paf 1516: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 paf 1517: # Use a double $ so make ignores it.
1518: test "$program_suffix" != NONE &&
1.62 paf 1519: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1520: # Double any \ or $. echo might interpret backslashes.
1521: # By default was `s,x,x', remove it if useless.
1522: cat <<\_ACEOF >conftest.sed
1523: s/[\\$]/&&/g;s/;s,x,x,$//
1524: _ACEOF
1525: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1526: rm conftest.sed
1527:
1528: # expand $ac_aux_dir to an absolute path
1529: am_aux_dir=`cd $ac_aux_dir && pwd`
1530:
1531: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1532: # Use eval to expand $SHELL
1533: if eval "$MISSING --run true"; then
1534: am_missing_run="$MISSING --run "
1535: else
1536: am_missing_run=
1537: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1538: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1539: fi
1540:
1.86 paf 1541: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1542: # We used to keeping the `.' as first argument, in order to
1543: # allow $(mkdir_p) to be used without argument. As in
1544: # $(mkdir_p) $(somedir)
1545: # where $(somedir) is conditionally defined. However this is wrong
1546: # for two reasons:
1547: # 1. if the package is installed by a user who cannot write `.'
1548: # make install will fail,
1549: # 2. the above comment should most certainly read
1550: # $(mkdir_p) $(DESTDIR)$(somedir)
1551: # so it does not work when $(somedir) is undefined and
1552: # $(DESTDIR) is not.
1553: # To support the latter case, we have to write
1554: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1555: # so the `.' trick is pointless.
1556: mkdir_p='mkdir -p --'
1557: else
1558: # On NextStep and OpenStep, the `mkdir' command does not
1559: # recognize any option. It will interpret all options as
1560: # directories to create, and then abort because `.' already
1561: # exists.
1562: for d in ./-p ./--version;
1563: do
1564: test -d $d && rmdir $d
1565: done
1566: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1567: if test -f "$ac_aux_dir/mkinstalldirs"; then
1568: mkdir_p='$(mkinstalldirs)'
1569: else
1570: mkdir_p='$(install_sh) -d'
1571: fi
1572: fi
1573:
1.62 paf 1574: for ac_prog in gawk mawk nawk awk
1575: do
1576: # Extract the first word of "$ac_prog", so it can be a program name with args.
1577: set dummy $ac_prog; ac_word=$2
1578: echo "$as_me:$LINENO: checking for $ac_word" >&5
1579: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580: if test "${ac_cv_prog_AWK+set}" = set; then
1581: echo $ECHO_N "(cached) $ECHO_C" >&6
1582: else
1583: if test -n "$AWK"; then
1584: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1585: else
1586: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587: for as_dir in $PATH
1588: do
1589: IFS=$as_save_IFS
1590: test -z "$as_dir" && as_dir=.
1591: for ac_exec_ext in '' $ac_executable_extensions; do
1592: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1593: ac_cv_prog_AWK="$ac_prog"
1594: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1595: break 2
1596: fi
1597: done
1598: done
1599:
1600: fi
1601: fi
1602: AWK=$ac_cv_prog_AWK
1603: if test -n "$AWK"; then
1604: echo "$as_me:$LINENO: result: $AWK" >&5
1605: echo "${ECHO_T}$AWK" >&6
1606: else
1607: echo "$as_me:$LINENO: result: no" >&5
1608: echo "${ECHO_T}no" >&6
1609: fi
1.1 paf 1610:
1.62 paf 1611: test -n "$AWK" && break
1612: done
1.1 paf 1613:
1.62 paf 1614: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1615: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.86 paf 1616: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.62 paf 1617: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1618: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1619: else
1.62 paf 1620: cat >conftest.make <<\_ACEOF
1.1 paf 1621: all:
1.62 paf 1622: @echo 'ac_maketemp="$(MAKE)"'
1623: _ACEOF
1.1 paf 1624: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.62 paf 1625: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 paf 1626: if test -n "$ac_maketemp"; then
1627: eval ac_cv_prog_make_${ac_make}_set=yes
1628: else
1629: eval ac_cv_prog_make_${ac_make}_set=no
1630: fi
1.62 paf 1631: rm -f conftest.make
1.1 paf 1632: fi
1633: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.62 paf 1634: echo "$as_me:$LINENO: result: yes" >&5
1635: echo "${ECHO_T}yes" >&6
1.1 paf 1636: SET_MAKE=
1637: else
1.62 paf 1638: echo "$as_me:$LINENO: result: no" >&5
1639: echo "${ECHO_T}no" >&6
1.1 paf 1640: SET_MAKE="MAKE=${MAKE-make}"
1641: fi
1642:
1.86 paf 1643: rm -rf .tst 2>/dev/null
1644: mkdir .tst 2>/dev/null
1645: if test -d .tst; then
1646: am__leading_dot=.
1647: else
1648: am__leading_dot=_
1649: fi
1650: rmdir .tst 2>/dev/null
1651:
1652: # test to see if srcdir already configured
1.62 paf 1653: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1654: test -f $srcdir/config.status; then
1655: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1656: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1657: { (exit 1); exit 1; }; }
1658: fi
1659:
1660: # test whether we have cygpath
1661: if test -z "$CYGPATH_W"; then
1662: if (cygpath --version) >/dev/null 2>/dev/null; then
1663: CYGPATH_W='cygpath -w'
1664: else
1665: CYGPATH_W=echo
1666: fi
1667: fi
1668:
1669:
1670: # Define the identity of the package.
1671: PACKAGE=parser
1.116 misha 1672: VERSION=3.4.1b
1.1 paf 1673:
1674:
1.62 paf 1675: # Some tools Automake needs.
1676:
1677: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1678:
1679:
1680: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1681:
1682:
1683: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1684:
1685:
1686: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1687:
1688:
1689: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 1690:
1.62 paf 1691: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 paf 1692:
1.62 paf 1693: # Installed binaries are usually stripped using `strip' when the user
1694: # run `make install-strip'. However `strip' might not be the right
1695: # tool to use in cross-compilation environments, therefore Automake
1696: # will honor the `STRIP' environment variable to overrule this program.
1697: if test "$cross_compiling" != no; then
1698: if test -n "$ac_tool_prefix"; then
1699: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1700: set dummy ${ac_tool_prefix}strip; ac_word=$2
1701: echo "$as_me:$LINENO: checking for $ac_word" >&5
1702: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703: if test "${ac_cv_prog_STRIP+set}" = set; then
1704: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1705: else
1.62 paf 1706: if test -n "$STRIP"; then
1707: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1708: else
1709: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710: for as_dir in $PATH
1711: do
1712: IFS=$as_save_IFS
1713: test -z "$as_dir" && as_dir=.
1714: for ac_exec_ext in '' $ac_executable_extensions; do
1715: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1717: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718: break 2
1719: fi
1720: done
1721: done
1722:
1723: fi
1724: fi
1725: STRIP=$ac_cv_prog_STRIP
1726: if test -n "$STRIP"; then
1727: echo "$as_me:$LINENO: result: $STRIP" >&5
1728: echo "${ECHO_T}$STRIP" >&6
1729: else
1730: echo "$as_me:$LINENO: result: no" >&5
1731: echo "${ECHO_T}no" >&6
1.1 paf 1732: fi
1733:
1.62 paf 1734: fi
1735: if test -z "$ac_cv_prog_STRIP"; then
1736: ac_ct_STRIP=$STRIP
1737: # Extract the first word of "strip", so it can be a program name with args.
1738: set dummy strip; ac_word=$2
1739: echo "$as_me:$LINENO: checking for $ac_word" >&5
1740: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1742: echo $ECHO_N "(cached) $ECHO_C" >&6
1743: else
1744: if test -n "$ac_ct_STRIP"; then
1745: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 paf 1746: else
1.62 paf 1747: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748: for as_dir in $PATH
1749: do
1750: IFS=$as_save_IFS
1751: test -z "$as_dir" && as_dir=.
1752: for ac_exec_ext in '' $ac_executable_extensions; do
1753: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754: ac_cv_prog_ac_ct_STRIP="strip"
1755: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756: break 2
1757: fi
1758: done
1759: done
1760:
1761: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1762: fi
1.1 paf 1763: fi
1.62 paf 1764: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1765: if test -n "$ac_ct_STRIP"; then
1766: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1767: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 paf 1768: else
1.62 paf 1769: echo "$as_me:$LINENO: result: no" >&5
1770: echo "${ECHO_T}no" >&6
1.1 paf 1771: fi
1772:
1.62 paf 1773: STRIP=$ac_ct_STRIP
1.1 paf 1774: else
1.62 paf 1775: STRIP="$ac_cv_prog_STRIP"
1.1 paf 1776: fi
1777:
1778: fi
1.62 paf 1779: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1780:
1781: # We need awk for the "check" target. The system "awk" is bad on
1782: # some platforms.
1.86 paf 1783: # Always define AMTAR for backward compatibility.
1784:
1785: AMTAR=${AMTAR-"${am_missing_run}tar"}
1786:
1787: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1788:
1789:
1.62 paf 1790:
1.1 paf 1791:
1792:
1793:
1.12 paf 1794: P3S=`cd $srcdir/src ; pwd`
1.1 paf 1795:
1796:
1.41 paf 1797: # Make sure we can run config.sub.
1.62 paf 1798: $ac_config_sub sun4 >/dev/null 2>&1 ||
1799: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1800: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1801: { (exit 1); exit 1; }; }
1802:
1803: echo "$as_me:$LINENO: checking build system type" >&5
1804: echo $ECHO_N "checking build system type... $ECHO_C" >&6
1805: if test "${ac_cv_build+set}" = set; then
1806: echo $ECHO_N "(cached) $ECHO_C" >&6
1807: else
1808: ac_cv_build_alias=$build_alias
1809: test -z "$ac_cv_build_alias" &&
1810: ac_cv_build_alias=`$ac_config_guess`
1811: test -z "$ac_cv_build_alias" &&
1812: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1813: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1814: { (exit 1); exit 1; }; }
1815: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1816: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1817: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1818: { (exit 1); exit 1; }; }
1819:
1820: fi
1821: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1822: echo "${ECHO_T}$ac_cv_build" >&6
1823: build=$ac_cv_build
1824: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1825: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1826: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1827:
1828:
1829: echo "$as_me:$LINENO: checking host system type" >&5
1830: echo $ECHO_N "checking host system type... $ECHO_C" >&6
1831: if test "${ac_cv_host+set}" = set; then
1832: echo $ECHO_N "(cached) $ECHO_C" >&6
1833: else
1834: ac_cv_host_alias=$host_alias
1835: test -z "$ac_cv_host_alias" &&
1836: ac_cv_host_alias=$ac_cv_build_alias
1837: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1838: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1839: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1840: { (exit 1); exit 1; }; }
1841:
1842: fi
1843: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1844: echo "${ECHO_T}$ac_cv_host" >&6
1845: host=$ac_cv_host
1846: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1847: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1848: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.81 paf 1849:
1850:
1851:
1852: PARSER_VERSION="$VERSION (compiled on $host)"
1853: echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new
1854: echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new
1855: echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new
1856: cmp $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h >/dev/null 2>&1
1857: if test $? -ne 0 ; then
1858: rm -f $srcdir/src/include/pa_version.h && mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h && \
1859: echo Updated $srcdir/src/include/pa_version.h
1860: else
1861: rm -f $srcdir/src/include/pa_version.h.new
1862: fi
1863:
1.41 paf 1864:
1865:
1866:
1.67 paf 1867: case $host_os in
1868: *cygwin* )
1869: cat >>confdefs.h <<\_ACEOF
1870: #define CYGWIN
1871: _ACEOF
1872: ;;
1873: esac
1.41 paf 1874:
1.1 paf 1875: # Find a good install program. We prefer a C program (faster),
1876: # so one script is as good as another. But avoid the broken or
1877: # incompatible versions:
1878: # SysV /etc/install, /usr/sbin/install
1879: # SunOS /usr/etc/install
1880: # IRIX /sbin/install
1881: # AIX /bin/install
1.62 paf 1882: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 1883: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1884: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1885: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 1886: # OS/2's system install, which has a completely different semantic
1.1 paf 1887: # ./install, which can be erroneously created by make from ./install.sh.
1.62 paf 1888: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1889: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 paf 1890: if test -z "$INSTALL"; then
1.62 paf 1891: if test "${ac_cv_path_install+set}" = set; then
1892: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1893: else
1.62 paf 1894: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895: for as_dir in $PATH
1896: do
1897: IFS=$as_save_IFS
1898: test -z "$as_dir" && as_dir=.
1899: # Account for people who put trailing slashes in PATH elements.
1900: case $as_dir/ in
1901: ./ | .// | /cC/* | \
1902: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.86 paf 1903: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.62 paf 1904: /usr/ucb/* ) ;;
1905: *)
1906: # OSF1 and SCO ODT 3.0 have their own names for install.
1907: # Don't use installbsd from OSF since it installs stuff as root
1908: # by default.
1909: for ac_prog in ginstall scoinst install; do
1910: for ac_exec_ext in '' $ac_executable_extensions; do
1.86 paf 1911: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1912: if test $ac_prog = install &&
1913: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1914: # AIX install. It has an incompatible calling convention.
1915: :
1916: elif test $ac_prog = install &&
1917: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1918: # program-specific install script used by HP pwplus--don't use.
1919: :
1920: else
1921: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1922: break 3
1923: fi
1924: fi
1.1 paf 1925: done
1.62 paf 1926: done
1927: ;;
1928: esac
1929: done
1930:
1.1 paf 1931:
1932: fi
1933: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 1934: INSTALL=$ac_cv_path_install
1.1 paf 1935: else
1936: # As a last resort, use the slow shell script. We don't cache a
1937: # path for INSTALL within a source directory, because that will
1938: # break other packages using the cache if that directory is
1939: # removed, or if the path is relative.
1.62 paf 1940: INSTALL=$ac_install_sh
1.1 paf 1941: fi
1942: fi
1.62 paf 1943: echo "$as_me:$LINENO: result: $INSTALL" >&5
1944: echo "${ECHO_T}$INSTALL" >&6
1.1 paf 1945:
1946: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1947: # It thinks the first close brace ends the variable substitution.
1948: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1949:
1.62 paf 1950: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 1951:
1952: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1953:
1.62 paf 1954: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1955: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.86 paf 1956: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.62 paf 1957: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1958: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 1959: else
1.62 paf 1960: cat >conftest.make <<\_ACEOF
1.41 paf 1961: all:
1.62 paf 1962: @echo 'ac_maketemp="$(MAKE)"'
1963: _ACEOF
1.41 paf 1964: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.62 paf 1965: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.41 paf 1966: if test -n "$ac_maketemp"; then
1967: eval ac_cv_prog_make_${ac_make}_set=yes
1968: else
1969: eval ac_cv_prog_make_${ac_make}_set=no
1970: fi
1.62 paf 1971: rm -f conftest.make
1.41 paf 1972: fi
1973: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.62 paf 1974: echo "$as_me:$LINENO: result: yes" >&5
1975: echo "${ECHO_T}yes" >&6
1.41 paf 1976: SET_MAKE=
1977: else
1.62 paf 1978: echo "$as_me:$LINENO: result: no" >&5
1979: echo "${ECHO_T}no" >&6
1.41 paf 1980: SET_MAKE="MAKE=${MAKE-make}"
1981: fi
1982:
1.62 paf 1983: if test -n "$ac_tool_prefix"; then
1984: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1985: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1986: echo "$as_me:$LINENO: checking for $ac_word" >&5
1987: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988: if test "${ac_cv_prog_RANLIB+set}" = set; then
1989: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 1990: else
1991: if test -n "$RANLIB"; then
1992: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1993: else
1.62 paf 1994: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995: for as_dir in $PATH
1996: do
1997: IFS=$as_save_IFS
1998: test -z "$as_dir" && as_dir=.
1999: for ac_exec_ext in '' $ac_executable_extensions; do
2000: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2002: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003: break 2
2004: fi
2005: done
2006: done
2007:
1.41 paf 2008: fi
2009: fi
1.62 paf 2010: RANLIB=$ac_cv_prog_RANLIB
1.41 paf 2011: if test -n "$RANLIB"; then
1.62 paf 2012: echo "$as_me:$LINENO: result: $RANLIB" >&5
2013: echo "${ECHO_T}$RANLIB" >&6
2014: else
2015: echo "$as_me:$LINENO: result: no" >&5
2016: echo "${ECHO_T}no" >&6
2017: fi
2018:
2019: fi
2020: if test -z "$ac_cv_prog_RANLIB"; then
2021: ac_ct_RANLIB=$RANLIB
2022: # Extract the first word of "ranlib", so it can be a program name with args.
2023: set dummy ranlib; ac_word=$2
2024: echo "$as_me:$LINENO: checking for $ac_word" >&5
2025: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2026: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2027: echo $ECHO_N "(cached) $ECHO_C" >&6
2028: else
2029: if test -n "$ac_ct_RANLIB"; then
2030: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2031: else
2032: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033: for as_dir in $PATH
2034: do
2035: IFS=$as_save_IFS
2036: test -z "$as_dir" && as_dir=.
2037: for ac_exec_ext in '' $ac_executable_extensions; do
2038: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2039: ac_cv_prog_ac_ct_RANLIB="ranlib"
2040: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041: break 2
2042: fi
2043: done
2044: done
2045:
2046: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2047: fi
2048: fi
2049: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2050: if test -n "$ac_ct_RANLIB"; then
2051: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2052: echo "${ECHO_T}$ac_ct_RANLIB" >&6
2053: else
2054: echo "$as_me:$LINENO: result: no" >&5
2055: echo "${ECHO_T}no" >&6
2056: fi
2057:
2058: RANLIB=$ac_ct_RANLIB
1.41 paf 2059: else
1.62 paf 2060: RANLIB="$ac_cv_prog_RANLIB"
1.41 paf 2061: fi
2062:
1.62 paf 2063: for ac_prog in gawk mawk nawk awk
1.41 paf 2064: do
1.62 paf 2065: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 2066: set dummy $ac_prog; ac_word=$2
1.62 paf 2067: echo "$as_me:$LINENO: checking for $ac_word" >&5
2068: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069: if test "${ac_cv_prog_AWK+set}" = set; then
2070: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 2071: else
2072: if test -n "$AWK"; then
2073: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2074: else
1.62 paf 2075: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076: for as_dir in $PATH
2077: do
2078: IFS=$as_save_IFS
2079: test -z "$as_dir" && as_dir=.
2080: for ac_exec_ext in '' $ac_executable_extensions; do
2081: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082: ac_cv_prog_AWK="$ac_prog"
2083: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084: break 2
2085: fi
2086: done
2087: done
2088:
1.41 paf 2089: fi
2090: fi
1.62 paf 2091: AWK=$ac_cv_prog_AWK
1.41 paf 2092: if test -n "$AWK"; then
1.62 paf 2093: echo "$as_me:$LINENO: result: $AWK" >&5
2094: echo "${ECHO_T}$AWK" >&6
1.41 paf 2095: else
1.62 paf 2096: echo "$as_me:$LINENO: result: no" >&5
2097: echo "${ECHO_T}no" >&6
1.41 paf 2098: fi
2099:
1.62 paf 2100: test -n "$AWK" && break
1.41 paf 2101: done
2102:
2103:
2104: for ac_prog in 'bison -y' byacc
2105: do
1.62 paf 2106: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 2107: set dummy $ac_prog; ac_word=$2
1.62 paf 2108: echo "$as_me:$LINENO: checking for $ac_word" >&5
2109: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110: if test "${ac_cv_prog_YACC+set}" = set; then
2111: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 2112: else
2113: if test -n "$YACC"; then
2114: ac_cv_prog_YACC="$YACC" # Let the user override the test.
2115: else
1.62 paf 2116: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117: for as_dir in $PATH
2118: do
2119: IFS=$as_save_IFS
2120: test -z "$as_dir" && as_dir=.
2121: for ac_exec_ext in '' $ac_executable_extensions; do
2122: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123: ac_cv_prog_YACC="$ac_prog"
2124: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125: break 2
2126: fi
2127: done
2128: done
2129:
1.41 paf 2130: fi
2131: fi
1.62 paf 2132: YACC=$ac_cv_prog_YACC
1.41 paf 2133: if test -n "$YACC"; then
1.62 paf 2134: echo "$as_me:$LINENO: result: $YACC" >&5
2135: echo "${ECHO_T}$YACC" >&6
1.41 paf 2136: else
1.62 paf 2137: echo "$as_me:$LINENO: result: no" >&5
2138: echo "${ECHO_T}no" >&6
1.41 paf 2139: fi
2140:
1.62 paf 2141: test -n "$YACC" && break
1.41 paf 2142: done
2143: test -n "$YACC" || YACC="yacc"
2144:
2145: if test "$YACC" != "bison -y"; then
1.67 paf 2146: { echo "$as_me:$LINENO: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
1.62 paf 2147: echo "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 2148: else
1.67 paf 2149: echo "$as_me:$LINENO: checking bison version" >&5
1.62 paf 2150: echo $ECHO_N "checking bison version... $ECHO_C" >&6
1.67 paf 2151: oldIFS=$IFS; IFS=.
2152: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
2153: IFS=$oldIFS
2154: if test "$1" = "1" -a "$2" -lt "25"; then
2155: { echo "$as_me:$LINENO: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
1.62 paf 2156: echo "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.67 paf 2157: fi
2158: echo "$as_me:$LINENO: result: $1.$2 (ok)" >&5
1.62 paf 2159: echo "${ECHO_T}$1.$2 (ok)" >&6
2160: fi
2161:
1.66 paf 2162: ac_ext=cc
2163: ac_cpp='$CXXCPP $CPPFLAGS'
2164: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2165: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2166: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.62 paf 2167: if test -n "$ac_tool_prefix"; then
1.66 paf 2168: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2169: do
2170: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2171: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.62 paf 2172: echo "$as_me:$LINENO: checking for $ac_word" >&5
2173: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 2174: if test "${ac_cv_prog_CXX+set}" = set; then
1.62 paf 2175: echo $ECHO_N "(cached) $ECHO_C" >&6
2176: else
1.66 paf 2177: if test -n "$CXX"; then
2178: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.62 paf 2179: else
2180: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181: for as_dir in $PATH
2182: do
2183: IFS=$as_save_IFS
2184: test -z "$as_dir" && as_dir=.
2185: for ac_exec_ext in '' $ac_executable_extensions; do
2186: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 2187: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.62 paf 2188: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189: break 2
2190: fi
2191: done
2192: done
2193:
2194: fi
2195: fi
1.66 paf 2196: CXX=$ac_cv_prog_CXX
2197: if test -n "$CXX"; then
2198: echo "$as_me:$LINENO: result: $CXX" >&5
2199: echo "${ECHO_T}$CXX" >&6
1.62 paf 2200: else
2201: echo "$as_me:$LINENO: result: no" >&5
2202: echo "${ECHO_T}no" >&6
1.41 paf 2203: fi
2204:
1.66 paf 2205: test -n "$CXX" && break
2206: done
1.62 paf 2207: fi
1.66 paf 2208: if test -z "$CXX"; then
2209: ac_ct_CXX=$CXX
2210: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2211: do
2212: # Extract the first word of "$ac_prog", so it can be a program name with args.
2213: set dummy $ac_prog; ac_word=$2
1.62 paf 2214: echo "$as_me:$LINENO: checking for $ac_word" >&5
2215: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 2216: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1.62 paf 2217: echo $ECHO_N "(cached) $ECHO_C" >&6
2218: else
1.66 paf 2219: if test -n "$ac_ct_CXX"; then
2220: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.62 paf 2221: else
2222: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223: for as_dir in $PATH
2224: do
2225: IFS=$as_save_IFS
2226: test -z "$as_dir" && as_dir=.
2227: for ac_exec_ext in '' $ac_executable_extensions; do
2228: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 2229: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.62 paf 2230: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231: break 2
2232: fi
2233: done
2234: done
2235:
2236: fi
2237: fi
1.66 paf 2238: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2239: if test -n "$ac_ct_CXX"; then
2240: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2241: echo "${ECHO_T}$ac_ct_CXX" >&6
1.62 paf 2242: else
2243: echo "$as_me:$LINENO: result: no" >&5
2244: echo "${ECHO_T}no" >&6
2245: fi
2246:
1.66 paf 2247: test -n "$ac_ct_CXX" && break
2248: done
2249: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2250:
2251: CXX=$ac_ct_CXX
1.62 paf 2252: fi
2253:
1.66 paf 2254:
2255: # Provide some information about the compiler.
2256: echo "$as_me:$LINENO:" \
2257: "checking for C++ compiler version" >&5
2258: ac_compiler=`set X $ac_compile; echo $2`
2259: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2260: (eval $ac_compiler --version </dev/null >&5) 2>&5
2261: ac_status=$?
2262: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263: (exit $ac_status); }
2264: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2265: (eval $ac_compiler -v </dev/null >&5) 2>&5
2266: ac_status=$?
2267: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268: (exit $ac_status); }
2269: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2270: (eval $ac_compiler -V </dev/null >&5) 2>&5
2271: ac_status=$?
2272: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273: (exit $ac_status); }
2274:
2275: cat >conftest.$ac_ext <<_ACEOF
2276: /* confdefs.h. */
2277: _ACEOF
2278: cat confdefs.h >>conftest.$ac_ext
2279: cat >>conftest.$ac_ext <<_ACEOF
2280: /* end confdefs.h. */
2281:
2282: int
2283: main ()
2284: {
2285:
2286: ;
2287: return 0;
2288: }
2289: _ACEOF
2290: ac_clean_files_save=$ac_clean_files
2291: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2292: # Try to create an executable without -o first, disregard a.out.
2293: # It will help us diagnose broken compilers, and finding out an intuition
2294: # of exeext.
1.86 paf 2295: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2296: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1.66 paf 2297: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2298: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2299: (eval $ac_link_default) 2>&5
2300: ac_status=$?
2301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302: (exit $ac_status); }; then
2303: # Find the output, starting from the most likely. This scheme is
2304: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2305: # resort.
2306:
2307: # Be careful to initialize this variable, since it used to be cached.
2308: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2309: ac_cv_exeext=
2310: # b.out is created by i960 compilers.
2311: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1.62 paf 2312: do
1.66 paf 2313: test -f "$ac_file" || continue
2314: case $ac_file in
2315: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.86 paf 2316: ;;
1.66 paf 2317: conftest.$ac_ext )
1.86 paf 2318: # This is the source file.
2319: ;;
1.66 paf 2320: [ab].out )
1.86 paf 2321: # We found the default executable, but exeext='' is most
2322: # certainly right.
2323: break;;
1.66 paf 2324: *.* )
1.86 paf 2325: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2326: # FIXME: I believe we export ac_cv_exeext for Libtool,
2327: # but it would be cool to find out if it's true. Does anybody
2328: # maintain Libtool? --akim.
2329: export ac_cv_exeext
2330: break;;
1.66 paf 2331: * )
1.86 paf 2332: break;;
1.66 paf 2333: esac
1.62 paf 2334: done
1.66 paf 2335: else
2336: echo "$as_me: failed program was:" >&5
2337: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 2338:
1.66 paf 2339: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2340: See \`config.log' for more details." >&5
2341: echo "$as_me: error: C++ compiler cannot create executables
2342: See \`config.log' for more details." >&2;}
2343: { (exit 77); exit 77; }; }
1.1 paf 2344: fi
1.66 paf 2345:
2346: ac_exeext=$ac_cv_exeext
2347: echo "$as_me:$LINENO: result: $ac_file" >&5
2348: echo "${ECHO_T}$ac_file" >&6
2349:
2350: # Check the compiler produces executables we can run. If not, either
2351: # the compiler is broken, or we cross compile.
2352: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2353: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2354: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2355: # If not cross compiling, check that we can run a simple program.
2356: if test "$cross_compiling" != yes; then
2357: if { ac_try='./$ac_file'
2358: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359: (eval $ac_try) 2>&5
2360: ac_status=$?
2361: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362: (exit $ac_status); }; }; then
2363: cross_compiling=no
2364: else
2365: if test "$cross_compiling" = maybe; then
2366: cross_compiling=yes
2367: else
2368: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2369: If you meant to cross compile, use \`--host'.
2370: See \`config.log' for more details." >&5
2371: echo "$as_me: error: cannot run C++ compiled programs.
2372: If you meant to cross compile, use \`--host'.
2373: See \`config.log' for more details." >&2;}
2374: { (exit 1); exit 1; }; }
2375: fi
2376: fi
1.1 paf 2377: fi
1.66 paf 2378: echo "$as_me:$LINENO: result: yes" >&5
2379: echo "${ECHO_T}yes" >&6
1.62 paf 2380:
1.66 paf 2381: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2382: ac_clean_files=$ac_clean_files_save
2383: # Check the compiler produces executables we can run. If not, either
1.62 paf 2384: # the compiler is broken, or we cross compile.
2385: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2386: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2387: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2388: echo "${ECHO_T}$cross_compiling" >&6
2389:
2390: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2391: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2392: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2393: (eval $ac_link) 2>&5
2394: ac_status=$?
2395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396: (exit $ac_status); }; then
2397: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2398: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2399: # work properly (i.e., refer to `conftest.exe'), while it won't with
2400: # `rm'.
2401: for ac_file in conftest.exe conftest conftest.*; do
2402: test -f "$ac_file" || continue
2403: case $ac_file in
2404: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2405: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.86 paf 2406: export ac_cv_exeext
2407: break;;
1.62 paf 2408: * ) break;;
2409: esac
2410: done
2411: else
2412: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2413: See \`config.log' for more details." >&5
2414: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2415: See \`config.log' for more details." >&2;}
2416: { (exit 1); exit 1; }; }
2417: fi
2418:
2419: rm -f conftest$ac_cv_exeext
2420: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2421: echo "${ECHO_T}$ac_cv_exeext" >&6
2422:
2423: rm -f conftest.$ac_ext
2424: EXEEXT=$ac_cv_exeext
2425: ac_exeext=$EXEEXT
2426: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2427: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2428: if test "${ac_cv_objext+set}" = set; then
2429: echo $ECHO_N "(cached) $ECHO_C" >&6
2430: else
2431: cat >conftest.$ac_ext <<_ACEOF
2432: /* confdefs.h. */
2433: _ACEOF
2434: cat confdefs.h >>conftest.$ac_ext
2435: cat >>conftest.$ac_ext <<_ACEOF
2436: /* end confdefs.h. */
2437:
2438: int
2439: main ()
2440: {
2441:
2442: ;
2443: return 0;
2444: }
2445: _ACEOF
2446: rm -f conftest.o conftest.obj
2447: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448: (eval $ac_compile) 2>&5
2449: ac_status=$?
2450: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451: (exit $ac_status); }; then
2452: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2453: case $ac_file in
2454: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2455: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2456: break;;
2457: esac
2458: done
2459: else
2460: echo "$as_me: failed program was:" >&5
2461: sed 's/^/| /' conftest.$ac_ext >&5
2462:
2463: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2464: See \`config.log' for more details." >&5
2465: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2466: See \`config.log' for more details." >&2;}
2467: { (exit 1); exit 1; }; }
2468: fi
2469:
2470: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2471: fi
1.66 paf 2472: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2473: echo "${ECHO_T}$ac_cv_objext" >&6
2474: OBJEXT=$ac_cv_objext
2475: ac_objext=$OBJEXT
2476: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2477: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2478: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1.62 paf 2479: echo $ECHO_N "(cached) $ECHO_C" >&6
2480: else
1.66 paf 2481: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 2482: /* confdefs.h. */
2483: _ACEOF
2484: cat confdefs.h >>conftest.$ac_ext
2485: cat >>conftest.$ac_ext <<_ACEOF
2486: /* end confdefs.h. */
1.66 paf 2487:
1.62 paf 2488: int
2489: main ()
2490: {
1.66 paf 2491: #ifndef __GNUC__
2492: choke me
2493: #endif
2494:
1.62 paf 2495: ;
2496: return 0;
2497: }
2498: _ACEOF
1.66 paf 2499: rm -f conftest.$ac_objext
1.62 paf 2500: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2501: (eval $ac_compile) 2>conftest.er1
1.62 paf 2502: ac_status=$?
1.86 paf 2503: grep -v '^ *+' conftest.er1 >conftest.err
2504: rm -f conftest.er1
2505: cat conftest.err >&5
1.62 paf 2506: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507: (exit $ac_status); } &&
1.86 paf 2508: { ac_try='test -z "$ac_cxx_werror_flag"
2509: || test ! -s conftest.err'
2510: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511: (eval $ac_try) 2>&5
2512: ac_status=$?
2513: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514: (exit $ac_status); }; } &&
2515: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2516: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517: (eval $ac_try) 2>&5
2518: ac_status=$?
2519: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520: (exit $ac_status); }; }; then
1.66 paf 2521: ac_compiler_gnu=yes
1.62 paf 2522: else
2523: echo "$as_me: failed program was:" >&5
2524: sed 's/^/| /' conftest.$ac_ext >&5
1.1 paf 2525:
1.66 paf 2526: ac_compiler_gnu=no
1.1 paf 2527: fi
1.86 paf 2528: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 2529: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 paf 2530:
2531: fi
1.66 paf 2532: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2533: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2534: GXX=`test $ac_compiler_gnu = yes && echo yes`
2535: ac_test_CXXFLAGS=${CXXFLAGS+set}
2536: ac_save_CXXFLAGS=$CXXFLAGS
2537: CXXFLAGS="-g"
2538: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2539: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2540: if test "${ac_cv_prog_cxx_g+set}" = set; then
2541: echo $ECHO_N "(cached) $ECHO_C" >&6
2542: else
2543: cat >conftest.$ac_ext <<_ACEOF
2544: /* confdefs.h. */
2545: _ACEOF
2546: cat confdefs.h >>conftest.$ac_ext
2547: cat >>conftest.$ac_ext <<_ACEOF
2548: /* end confdefs.h. */
1.1 paf 2549:
1.66 paf 2550: int
2551: main ()
2552: {
1.1 paf 2553:
1.66 paf 2554: ;
2555: return 0;
2556: }
1.62 paf 2557: _ACEOF
2558: rm -f conftest.$ac_objext
2559: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2560: (eval $ac_compile) 2>conftest.er1
1.62 paf 2561: ac_status=$?
1.86 paf 2562: grep -v '^ *+' conftest.er1 >conftest.err
2563: rm -f conftest.er1
2564: cat conftest.err >&5
1.62 paf 2565: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566: (exit $ac_status); } &&
1.86 paf 2567: { ac_try='test -z "$ac_cxx_werror_flag"
2568: || test ! -s conftest.err'
2569: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570: (eval $ac_try) 2>&5
2571: ac_status=$?
2572: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573: (exit $ac_status); }; } &&
2574: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2575: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576: (eval $ac_try) 2>&5
2577: ac_status=$?
2578: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579: (exit $ac_status); }; }; then
1.66 paf 2580: ac_cv_prog_cxx_g=yes
2581: else
2582: echo "$as_me: failed program was:" >&5
2583: sed 's/^/| /' conftest.$ac_ext >&5
2584:
2585: ac_cv_prog_cxx_g=no
2586: fi
1.86 paf 2587: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 2588: fi
2589: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2590: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2591: if test "$ac_test_CXXFLAGS" = set; then
2592: CXXFLAGS=$ac_save_CXXFLAGS
2593: elif test $ac_cv_prog_cxx_g = yes; then
2594: if test "$GXX" = yes; then
2595: CXXFLAGS="-g -O2"
2596: else
2597: CXXFLAGS="-g"
2598: fi
2599: else
2600: if test "$GXX" = yes; then
2601: CXXFLAGS="-O2"
2602: else
2603: CXXFLAGS=
2604: fi
2605: fi
2606: for ac_declaration in \
1.86 paf 2607: '' \
1.62 paf 2608: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2609: 'extern "C" void std::exit (int); using std::exit;' \
2610: 'extern "C" void exit (int) throw ();' \
2611: 'extern "C" void exit (int);' \
2612: 'void exit (int);'
1.1 paf 2613: do
1.62 paf 2614: cat >conftest.$ac_ext <<_ACEOF
2615: /* confdefs.h. */
2616: _ACEOF
2617: cat confdefs.h >>conftest.$ac_ext
2618: cat >>conftest.$ac_ext <<_ACEOF
2619: /* end confdefs.h. */
1.86 paf 2620: $ac_declaration
1.62 paf 2621: #include <stdlib.h>
2622: int
2623: main ()
2624: {
2625: exit (42);
2626: ;
2627: return 0;
2628: }
2629: _ACEOF
2630: rm -f conftest.$ac_objext
2631: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2632: (eval $ac_compile) 2>conftest.er1
1.62 paf 2633: ac_status=$?
1.86 paf 2634: grep -v '^ *+' conftest.er1 >conftest.err
2635: rm -f conftest.er1
2636: cat conftest.err >&5
1.62 paf 2637: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638: (exit $ac_status); } &&
1.86 paf 2639: { ac_try='test -z "$ac_cxx_werror_flag"
2640: || test ! -s conftest.err'
2641: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642: (eval $ac_try) 2>&5
2643: ac_status=$?
2644: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645: (exit $ac_status); }; } &&
2646: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2647: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648: (eval $ac_try) 2>&5
2649: ac_status=$?
2650: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651: (exit $ac_status); }; }; then
2652: :
1.1 paf 2653: else
1.62 paf 2654: echo "$as_me: failed program was:" >&5
2655: sed 's/^/| /' conftest.$ac_ext >&5
2656:
2657: continue
2658: fi
1.86 paf 2659: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 2660: cat >conftest.$ac_ext <<_ACEOF
2661: /* confdefs.h. */
2662: _ACEOF
2663: cat confdefs.h >>conftest.$ac_ext
2664: cat >>conftest.$ac_ext <<_ACEOF
2665: /* end confdefs.h. */
2666: $ac_declaration
2667: int
2668: main ()
2669: {
2670: exit (42);
2671: ;
2672: return 0;
2673: }
2674: _ACEOF
2675: rm -f conftest.$ac_objext
2676: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2677: (eval $ac_compile) 2>conftest.er1
1.62 paf 2678: ac_status=$?
1.86 paf 2679: grep -v '^ *+' conftest.er1 >conftest.err
2680: rm -f conftest.er1
2681: cat conftest.err >&5
1.62 paf 2682: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683: (exit $ac_status); } &&
1.86 paf 2684: { ac_try='test -z "$ac_cxx_werror_flag"
2685: || test ! -s conftest.err'
2686: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687: (eval $ac_try) 2>&5
2688: ac_status=$?
2689: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690: (exit $ac_status); }; } &&
2691: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2692: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693: (eval $ac_try) 2>&5
2694: ac_status=$?
2695: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696: (exit $ac_status); }; }; then
2697: break
1.1 paf 2698: else
1.62 paf 2699: echo "$as_me: failed program was:" >&5
2700: sed 's/^/| /' conftest.$ac_ext >&5
2701:
1.1 paf 2702: fi
1.86 paf 2703: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 2704: done
2705: rm -f conftest*
2706: if test -n "$ac_declaration"; then
2707: echo '#ifdef __cplusplus' >>confdefs.h
2708: echo $ac_declaration >>confdefs.h
2709: echo '#endif' >>confdefs.h
1.1 paf 2710: fi
1.62 paf 2711:
2712: ac_ext=c
2713: ac_cpp='$CPP $CPPFLAGS'
2714: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.86 paf 2717: DEPDIR="${am__leading_dot}deps"
1.62 paf 2718:
2719: ac_config_commands="$ac_config_commands depfiles"
2720:
2721:
2722: am_make=${MAKE-make}
2723: cat > confinc << 'END'
1.86 paf 2724: am__doit:
1.62 paf 2725: @echo done
1.86 paf 2726: .PHONY: am__doit
1.62 paf 2727: END
2728: # If we don't find an include directive, just comment out the code.
2729: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2730: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2731: am__include="#"
2732: am__quote=
2733: _am_result=none
2734: # First try GNU make style include.
2735: echo "include confinc" > confmf
2736: # We grep out `Entering directory' and `Leaving directory'
2737: # messages which can occur if `w' ends up in MAKEFLAGS.
2738: # In particular we don't look at `^make:' because GNU make might
2739: # be invoked under some other name (usually "gmake"), in which
2740: # case it prints its new name instead of `make'.
2741: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2742: am__include=include
2743: am__quote=
2744: _am_result=GNU
2745: fi
2746: # Now try BSD make style include.
2747: if test "$am__include" = "#"; then
2748: echo '.include "confinc"' > confmf
2749: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2750: am__include=.include
2751: am__quote="\""
2752: _am_result=BSD
2753: fi
2754: fi
2755:
2756:
2757: echo "$as_me:$LINENO: result: $_am_result" >&5
2758: echo "${ECHO_T}$_am_result" >&6
2759: rm -f confinc confmf
2760:
2761: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2762: if test "${enable_dependency_tracking+set}" = set; then
2763: enableval="$enable_dependency_tracking"
2764:
2765: fi;
2766: if test "x$enable_dependency_tracking" != xno; then
2767: am_depcomp="$ac_aux_dir/depcomp"
2768: AMDEPBACKSLASH='\'
1.1 paf 2769: fi
2770:
1.62 paf 2771:
2772: if test "x$enable_dependency_tracking" != xno; then
2773: AMDEP_TRUE=
2774: AMDEP_FALSE='#'
2775: else
2776: AMDEP_TRUE='#'
2777: AMDEP_FALSE=
2778: fi
1.1 paf 2779:
2780:
2781:
2782:
1.66 paf 2783: depcc="$CXX" am_compiler_list=
1.1 paf 2784:
1.62 paf 2785: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2786: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1.66 paf 2787: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
1.62 paf 2788: echo $ECHO_N "(cached) $ECHO_C" >&6
2789: else
2790: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2791: # We make a subdir and do the tests there. Otherwise we can end up
2792: # making bogus files that we don't know about and never remove. For
2793: # instance it was reported that on HP-UX the gcc test will end up
2794: # making a dummy file named `D' -- because `-MD' means `put the output
2795: # in D'.
2796: mkdir conftest.dir
2797: # Copy depcomp to subdir because otherwise we won't find it if we're
2798: # using a relative directory.
2799: cp "$am_depcomp" conftest.dir
2800: cd conftest.dir
1.86 paf 2801: # We will build objects and dependencies in a subdirectory because
2802: # it helps to detect inapplicable dependency modes. For instance
2803: # both Tru64's cc and ICC support -MD to output dependencies as a
2804: # side effect of compilation, but ICC will put the dependencies in
2805: # the current directory while Tru64 will put them in the object
2806: # directory.
2807: mkdir sub
1.1 paf 2808:
1.66 paf 2809: am_cv_CXX_dependencies_compiler_type=none
1.62 paf 2810: if test "$am_compiler_list" = ""; then
2811: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 2812: fi
1.62 paf 2813: for depmode in $am_compiler_list; do
1.86 paf 2814: # Setup a source with many dependencies, because some compilers
2815: # like to wrap large dependency lists on column 80 (with \), and
2816: # we should not choose a depcomp mode which is confused by this.
2817: #
1.62 paf 2818: # We need to recreate these files for each test, as the compiler may
2819: # overwrite some of them when testing with obscure command lines.
2820: # This happens at least with the AIX C compiler.
1.86 paf 2821: : > sub/conftest.c
2822: for i in 1 2 3 4 5 6; do
2823: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2824: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2825: # Solaris 8's {/usr,}/bin/sh.
2826: touch sub/conftst$i.h
2827: done
2828: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 2829:
2830: case $depmode in
2831: nosideeffect)
2832: # after this tag, mechanisms are not by side-effect, so they'll
2833: # only be used when explicitly requested
2834: if test "x$enable_dependency_tracking" = xyes; then
2835: continue
2836: else
2837: break
2838: fi
2839: ;;
2840: none) break ;;
2841: esac
2842: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2843: # mode. It turns out that the SunPro C++ compiler does not properly
2844: # handle `-M -o', and we need to detect this.
2845: if depmode=$depmode \
1.86 paf 2846: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2847: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2848: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2849: >/dev/null 2>conftest.err &&
2850: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2851: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.62 paf 2852: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 2853: # icc doesn't choke on unknown options, it will just issue warnings
2854: # or remarks (even with -Werror). So we grep stderr for any message
2855: # that says an option was ignored or not supported.
2856: # When given -MP, icc 7.0 and 7.1 complain thusly:
2857: # icc: Command line warning: ignoring option '-M'; no argument required
2858: # The diagnosis changed in icc 8.0:
2859: # icc: Command line remark: option '-MP' not supported
2860: if (grep 'ignoring option' conftest.err ||
2861: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2862: am_cv_CXX_dependencies_compiler_type=$depmode
2863: break
2864: fi
1.66 paf 2865: fi
2866: done
2867:
2868: cd ..
2869: rm -rf conftest.dir
2870: else
2871: am_cv_CXX_dependencies_compiler_type=none
2872: fi
2873:
2874: fi
2875: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2876: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2877: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2878:
2879:
2880:
2881: if
2882: test "x$enable_dependency_tracking" != xno \
2883: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2884: am__fastdepCXX_TRUE=
2885: am__fastdepCXX_FALSE='#'
2886: else
2887: am__fastdepCXX_TRUE='#'
2888: am__fastdepCXX_FALSE=
2889: fi
2890:
2891:
2892: ac_ext=c
2893: ac_cpp='$CPP $CPPFLAGS'
2894: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2895: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2896: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2897: if test -n "$ac_tool_prefix"; then
2898: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2899: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2900: echo "$as_me:$LINENO: checking for $ac_word" >&5
2901: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2902: if test "${ac_cv_prog_CC+set}" = set; then
2903: echo $ECHO_N "(cached) $ECHO_C" >&6
2904: else
2905: if test -n "$CC"; then
2906: ac_cv_prog_CC="$CC" # Let the user override the test.
2907: else
2908: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909: for as_dir in $PATH
2910: do
2911: IFS=$as_save_IFS
2912: test -z "$as_dir" && as_dir=.
2913: for ac_exec_ext in '' $ac_executable_extensions; do
2914: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2916: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2917: break 2
2918: fi
2919: done
2920: done
2921:
2922: fi
2923: fi
2924: CC=$ac_cv_prog_CC
2925: if test -n "$CC"; then
2926: echo "$as_me:$LINENO: result: $CC" >&5
2927: echo "${ECHO_T}$CC" >&6
2928: else
2929: echo "$as_me:$LINENO: result: no" >&5
2930: echo "${ECHO_T}no" >&6
2931: fi
2932:
2933: fi
2934: if test -z "$ac_cv_prog_CC"; then
2935: ac_ct_CC=$CC
2936: # Extract the first word of "gcc", so it can be a program name with args.
2937: set dummy gcc; ac_word=$2
2938: echo "$as_me:$LINENO: checking for $ac_word" >&5
2939: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2940: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2941: echo $ECHO_N "(cached) $ECHO_C" >&6
2942: else
2943: if test -n "$ac_ct_CC"; then
2944: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2945: else
2946: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947: for as_dir in $PATH
2948: do
2949: IFS=$as_save_IFS
2950: test -z "$as_dir" && as_dir=.
2951: for ac_exec_ext in '' $ac_executable_extensions; do
2952: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953: ac_cv_prog_ac_ct_CC="gcc"
2954: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955: break 2
2956: fi
2957: done
2958: done
2959:
2960: fi
2961: fi
2962: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2963: if test -n "$ac_ct_CC"; then
2964: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2965: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 paf 2966: else
1.66 paf 2967: echo "$as_me:$LINENO: result: no" >&5
2968: echo "${ECHO_T}no" >&6
1.62 paf 2969: fi
2970:
1.66 paf 2971: CC=$ac_ct_CC
2972: else
2973: CC="$ac_cv_prog_CC"
1.1 paf 2974: fi
1.62 paf 2975:
1.66 paf 2976: if test -z "$CC"; then
2977: if test -n "$ac_tool_prefix"; then
2978: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2979: set dummy ${ac_tool_prefix}cc; ac_word=$2
2980: echo "$as_me:$LINENO: checking for $ac_word" >&5
2981: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2982: if test "${ac_cv_prog_CC+set}" = set; then
2983: echo $ECHO_N "(cached) $ECHO_C" >&6
2984: else
2985: if test -n "$CC"; then
2986: ac_cv_prog_CC="$CC" # Let the user override the test.
2987: else
2988: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989: for as_dir in $PATH
2990: do
2991: IFS=$as_save_IFS
2992: test -z "$as_dir" && as_dir=.
2993: for ac_exec_ext in '' $ac_executable_extensions; do
2994: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995: ac_cv_prog_CC="${ac_tool_prefix}cc"
2996: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997: break 2
2998: fi
2999: done
3000: done
1.62 paf 3001:
1.66 paf 3002: fi
3003: fi
3004: CC=$ac_cv_prog_CC
3005: if test -n "$CC"; then
3006: echo "$as_me:$LINENO: result: $CC" >&5
3007: echo "${ECHO_T}$CC" >&6
1.62 paf 3008: else
1.66 paf 3009: echo "$as_me:$LINENO: result: no" >&5
3010: echo "${ECHO_T}no" >&6
1.1 paf 3011: fi
3012:
1.66 paf 3013: fi
3014: if test -z "$ac_cv_prog_CC"; then
3015: ac_ct_CC=$CC
3016: # Extract the first word of "cc", so it can be a program name with args.
3017: set dummy cc; ac_word=$2
3018: echo "$as_me:$LINENO: checking for $ac_word" >&5
3019: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3020: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3021: echo $ECHO_N "(cached) $ECHO_C" >&6
3022: else
3023: if test -n "$ac_ct_CC"; then
3024: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3025: else
3026: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027: for as_dir in $PATH
3028: do
3029: IFS=$as_save_IFS
3030: test -z "$as_dir" && as_dir=.
3031: for ac_exec_ext in '' $ac_executable_extensions; do
3032: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3033: ac_cv_prog_ac_ct_CC="cc"
3034: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035: break 2
3036: fi
3037: done
3038: done
1.62 paf 3039:
1.66 paf 3040: fi
3041: fi
3042: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3043: if test -n "$ac_ct_CC"; then
3044: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3045: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 paf 3046: else
1.66 paf 3047: echo "$as_me:$LINENO: result: no" >&5
3048: echo "${ECHO_T}no" >&6
3049: fi
1.62 paf 3050:
1.66 paf 3051: CC=$ac_ct_CC
1.1 paf 3052: else
1.66 paf 3053: CC="$ac_cv_prog_CC"
3054: fi
1.62 paf 3055:
1.1 paf 3056: fi
1.66 paf 3057: if test -z "$CC"; then
3058: # Extract the first word of "cc", so it can be a program name with args.
3059: set dummy cc; ac_word=$2
3060: echo "$as_me:$LINENO: checking for $ac_word" >&5
3061: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3062: if test "${ac_cv_prog_CC+set}" = set; then
3063: echo $ECHO_N "(cached) $ECHO_C" >&6
3064: else
3065: if test -n "$CC"; then
3066: ac_cv_prog_CC="$CC" # Let the user override the test.
3067: else
3068: ac_prog_rejected=no
3069: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070: for as_dir in $PATH
3071: do
3072: IFS=$as_save_IFS
3073: test -z "$as_dir" && as_dir=.
3074: for ac_exec_ext in '' $ac_executable_extensions; do
3075: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3077: ac_prog_rejected=yes
3078: continue
3079: fi
3080: ac_cv_prog_CC="cc"
3081: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082: break 2
3083: fi
3084: done
1.62 paf 3085: done
3086:
1.66 paf 3087: if test $ac_prog_rejected = yes; then
3088: # We found a bogon in the path, so make sure we never use it.
3089: set dummy $ac_cv_prog_CC
3090: shift
3091: if test $# != 0; then
3092: # We chose a different compiler from the bogus one.
3093: # However, it has the same basename, so the bogon will be chosen
3094: # first if we set CC to just the basename; use the full file name.
3095: shift
3096: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3097: fi
3098: fi
3099: fi
3100: fi
3101: CC=$ac_cv_prog_CC
3102: if test -n "$CC"; then
3103: echo "$as_me:$LINENO: result: $CC" >&5
3104: echo "${ECHO_T}$CC" >&6
3105: else
3106: echo "$as_me:$LINENO: result: no" >&5
3107: echo "${ECHO_T}no" >&6
1.1 paf 3108: fi
3109:
1.66 paf 3110: fi
3111: if test -z "$CC"; then
3112: if test -n "$ac_tool_prefix"; then
3113: for ac_prog in cl
1.62 paf 3114: do
3115: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3116: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3117: echo "$as_me:$LINENO: checking for $ac_word" >&5
3118: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 3119: if test "${ac_cv_prog_CC+set}" = set; then
1.62 paf 3120: echo $ECHO_N "(cached) $ECHO_C" >&6
3121: else
1.66 paf 3122: if test -n "$CC"; then
3123: ac_cv_prog_CC="$CC" # Let the user override the test.
1.62 paf 3124: else
3125: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126: for as_dir in $PATH
3127: do
3128: IFS=$as_save_IFS
3129: test -z "$as_dir" && as_dir=.
3130: for ac_exec_ext in '' $ac_executable_extensions; do
3131: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3132: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.62 paf 3133: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3134: break 2
3135: fi
3136: done
3137: done
1.1 paf 3138:
1.62 paf 3139: fi
3140: fi
1.66 paf 3141: CC=$ac_cv_prog_CC
3142: if test -n "$CC"; then
3143: echo "$as_me:$LINENO: result: $CC" >&5
3144: echo "${ECHO_T}$CC" >&6
1.1 paf 3145: else
1.62 paf 3146: echo "$as_me:$LINENO: result: no" >&5
3147: echo "${ECHO_T}no" >&6
1.1 paf 3148: fi
3149:
1.66 paf 3150: test -n "$CC" && break
1.62 paf 3151: done
3152: fi
1.66 paf 3153: if test -z "$CC"; then
3154: ac_ct_CC=$CC
3155: for ac_prog in cl
1.62 paf 3156: do
3157: # Extract the first word of "$ac_prog", so it can be a program name with args.
3158: set dummy $ac_prog; ac_word=$2
3159: echo "$as_me:$LINENO: checking for $ac_word" >&5
3160: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 3161: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.62 paf 3162: echo $ECHO_N "(cached) $ECHO_C" >&6
3163: else
1.66 paf 3164: if test -n "$ac_ct_CC"; then
3165: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 paf 3166: else
1.62 paf 3167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168: for as_dir in $PATH
3169: do
3170: IFS=$as_save_IFS
3171: test -z "$as_dir" && as_dir=.
3172: for ac_exec_ext in '' $ac_executable_extensions; do
3173: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3174: ac_cv_prog_ac_ct_CC="$ac_prog"
1.62 paf 3175: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3176: break 2
3177: fi
3178: done
3179: done
3180:
3181: fi
3182: fi
1.66 paf 3183: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3184: if test -n "$ac_ct_CC"; then
3185: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3186: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 paf 3187: else
1.62 paf 3188: echo "$as_me:$LINENO: result: no" >&5
3189: echo "${ECHO_T}no" >&6
1.1 paf 3190: fi
3191:
1.66 paf 3192: test -n "$ac_ct_CC" && break
3193: done
3194:
3195: CC=$ac_ct_CC
3196: fi
3197:
3198: fi
1.62 paf 3199:
1.1 paf 3200:
1.66 paf 3201: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3202: See \`config.log' for more details." >&5
3203: echo "$as_me: error: no acceptable C compiler found in \$PATH
3204: See \`config.log' for more details." >&2;}
3205: { (exit 1); exit 1; }; }
1.62 paf 3206:
3207: # Provide some information about the compiler.
3208: echo "$as_me:$LINENO:" \
1.66 paf 3209: "checking for C compiler version" >&5
1.62 paf 3210: ac_compiler=`set X $ac_compile; echo $2`
3211: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3212: (eval $ac_compiler --version </dev/null >&5) 2>&5
3213: ac_status=$?
3214: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215: (exit $ac_status); }
3216: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3217: (eval $ac_compiler -v </dev/null >&5) 2>&5
3218: ac_status=$?
3219: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220: (exit $ac_status); }
3221: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3222: (eval $ac_compiler -V </dev/null >&5) 2>&5
3223: ac_status=$?
3224: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225: (exit $ac_status); }
3226:
1.66 paf 3227: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3228: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3229: if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.62 paf 3230: echo $ECHO_N "(cached) $ECHO_C" >&6
3231: else
3232: cat >conftest.$ac_ext <<_ACEOF
3233: /* confdefs.h. */
3234: _ACEOF
3235: cat confdefs.h >>conftest.$ac_ext
3236: cat >>conftest.$ac_ext <<_ACEOF
3237: /* end confdefs.h. */
3238:
3239: int
3240: main ()
3241: {
3242: #ifndef __GNUC__
3243: choke me
3244: #endif
3245:
3246: ;
3247: return 0;
3248: }
3249: _ACEOF
3250: rm -f conftest.$ac_objext
3251: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3252: (eval $ac_compile) 2>conftest.er1
1.62 paf 3253: ac_status=$?
1.86 paf 3254: grep -v '^ *+' conftest.er1 >conftest.err
3255: rm -f conftest.er1
3256: cat conftest.err >&5
1.62 paf 3257: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258: (exit $ac_status); } &&
1.86 paf 3259: { ac_try='test -z "$ac_c_werror_flag"
3260: || test ! -s conftest.err'
3261: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262: (eval $ac_try) 2>&5
3263: ac_status=$?
3264: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265: (exit $ac_status); }; } &&
3266: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3267: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268: (eval $ac_try) 2>&5
3269: ac_status=$?
3270: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271: (exit $ac_status); }; }; then
3272: ac_compiler_gnu=yes
3273: else
3274: echo "$as_me: failed program was:" >&5
3275: sed 's/^/| /' conftest.$ac_ext >&5
3276:
3277: ac_compiler_gnu=no
3278: fi
1.86 paf 3279: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 3280: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.62 paf 3281:
3282: fi
1.66 paf 3283: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3284: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3285: GCC=`test $ac_compiler_gnu = yes && echo yes`
3286: ac_test_CFLAGS=${CFLAGS+set}
3287: ac_save_CFLAGS=$CFLAGS
3288: CFLAGS="-g"
3289: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3290: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3291: if test "${ac_cv_prog_cc_g+set}" = set; then
1.62 paf 3292: echo $ECHO_N "(cached) $ECHO_C" >&6
3293: else
3294: cat >conftest.$ac_ext <<_ACEOF
3295: /* confdefs.h. */
3296: _ACEOF
3297: cat confdefs.h >>conftest.$ac_ext
3298: cat >>conftest.$ac_ext <<_ACEOF
3299: /* end confdefs.h. */
3300:
3301: int
3302: main ()
3303: {
3304:
3305: ;
3306: return 0;
3307: }
3308: _ACEOF
3309: rm -f conftest.$ac_objext
3310: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3311: (eval $ac_compile) 2>conftest.er1
1.62 paf 3312: ac_status=$?
1.86 paf 3313: grep -v '^ *+' conftest.er1 >conftest.err
3314: rm -f conftest.er1
3315: cat conftest.err >&5
1.62 paf 3316: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317: (exit $ac_status); } &&
1.86 paf 3318: { ac_try='test -z "$ac_c_werror_flag"
3319: || test ! -s conftest.err'
3320: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321: (eval $ac_try) 2>&5
3322: ac_status=$?
3323: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324: (exit $ac_status); }; } &&
3325: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3326: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327: (eval $ac_try) 2>&5
3328: ac_status=$?
3329: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330: (exit $ac_status); }; }; then
1.66 paf 3331: ac_cv_prog_cc_g=yes
1.62 paf 3332: else
3333: echo "$as_me: failed program was:" >&5
3334: sed 's/^/| /' conftest.$ac_ext >&5
3335:
1.66 paf 3336: ac_cv_prog_cc_g=no
1.62 paf 3337: fi
1.86 paf 3338: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3339: fi
1.66 paf 3340: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3341: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3342: if test "$ac_test_CFLAGS" = set; then
3343: CFLAGS=$ac_save_CFLAGS
3344: elif test $ac_cv_prog_cc_g = yes; then
3345: if test "$GCC" = yes; then
3346: CFLAGS="-g -O2"
1.1 paf 3347: else
1.66 paf 3348: CFLAGS="-g"
1.1 paf 3349: fi
3350: else
1.66 paf 3351: if test "$GCC" = yes; then
3352: CFLAGS="-O2"
1.1 paf 3353: else
1.66 paf 3354: CFLAGS=
1.1 paf 3355: fi
3356: fi
1.66 paf 3357: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3358: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3359: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3360: echo $ECHO_N "(cached) $ECHO_C" >&6
3361: else
3362: ac_cv_prog_cc_stdc=no
3363: ac_save_CC=$CC
3364: cat >conftest.$ac_ext <<_ACEOF
3365: /* confdefs.h. */
3366: _ACEOF
3367: cat confdefs.h >>conftest.$ac_ext
3368: cat >>conftest.$ac_ext <<_ACEOF
3369: /* end confdefs.h. */
3370: #include <stdarg.h>
3371: #include <stdio.h>
3372: #include <sys/types.h>
3373: #include <sys/stat.h>
3374: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3375: struct buf { int x; };
3376: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3377: static char *e (p, i)
3378: char **p;
3379: int i;
3380: {
3381: return p[i];
3382: }
3383: static char *f (char * (*g) (char **, int), char **p, ...)
3384: {
3385: char *s;
3386: va_list v;
3387: va_start (v,p);
3388: s = g (p, va_arg (v,int));
3389: va_end (v);
3390: return s;
3391: }
1.86 paf 3392:
3393: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3394: function prototypes and stuff, but not '\xHH' hex character constants.
3395: These don't provoke an error unfortunately, instead are silently treated
3396: as 'x'. The following induces an error, until -std1 is added to get
3397: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3398: array size at least. It's necessary to write '\x00'==0 to get something
3399: that's true only with -std1. */
3400: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3401:
1.66 paf 3402: int test (int i, double x);
3403: struct s1 {int (*f) (int a);};
3404: struct s2 {int (*f) (double a);};
3405: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3406: int argc;
3407: char **argv;
3408: int
3409: main ()
3410: {
3411: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3412: ;
3413: return 0;
3414: }
3415: _ACEOF
3416: # Don't try gcc -ansi; that turns off useful extensions and
3417: # breaks some systems' header files.
3418: # AIX -qlanglvl=ansi
3419: # Ultrix and OSF/1 -std1
3420: # HP-UX 10.20 and later -Ae
3421: # HP-UX older versions -Aa -D_HPUX_SOURCE
3422: # SVR4 -Xc -D__EXTENSIONS__
3423: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3424: do
3425: CC="$ac_save_CC $ac_arg"
3426: rm -f conftest.$ac_objext
3427: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3428: (eval $ac_compile) 2>conftest.er1
1.66 paf 3429: ac_status=$?
1.86 paf 3430: grep -v '^ *+' conftest.er1 >conftest.err
3431: rm -f conftest.er1
3432: cat conftest.err >&5
1.66 paf 3433: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434: (exit $ac_status); } &&
1.86 paf 3435: { ac_try='test -z "$ac_c_werror_flag"
3436: || test ! -s conftest.err'
3437: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438: (eval $ac_try) 2>&5
3439: ac_status=$?
3440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441: (exit $ac_status); }; } &&
3442: { ac_try='test -s conftest.$ac_objext'
1.66 paf 3443: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444: (eval $ac_try) 2>&5
3445: ac_status=$?
3446: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447: (exit $ac_status); }; }; then
3448: ac_cv_prog_cc_stdc=$ac_arg
3449: break
3450: else
3451: echo "$as_me: failed program was:" >&5
3452: sed 's/^/| /' conftest.$ac_ext >&5
3453:
3454: fi
1.86 paf 3455: rm -f conftest.err conftest.$ac_objext
1.66 paf 3456: done
3457: rm -f conftest.$ac_ext conftest.$ac_objext
3458: CC=$ac_save_CC
3459:
3460: fi
3461:
3462: case "x$ac_cv_prog_cc_stdc" in
3463: x|xno)
3464: echo "$as_me:$LINENO: result: none needed" >&5
3465: echo "${ECHO_T}none needed" >&6 ;;
3466: *)
3467: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3468: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3469: CC="$CC $ac_cv_prog_cc_stdc" ;;
3470: esac
3471:
3472: # Some people use a C++ compiler to compile C. Since we use `exit',
3473: # in C++ we need to declare it. In case someone uses the same compiler
3474: # for both compiling C and C++ we need to have the C++ compiler decide
3475: # the declaration of exit, since it's the most demanding environment.
3476: cat >conftest.$ac_ext <<_ACEOF
3477: #ifndef __cplusplus
3478: choke me
3479: #endif
3480: _ACEOF
3481: rm -f conftest.$ac_objext
3482: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3483: (eval $ac_compile) 2>conftest.er1
1.66 paf 3484: ac_status=$?
1.86 paf 3485: grep -v '^ *+' conftest.er1 >conftest.err
3486: rm -f conftest.er1
3487: cat conftest.err >&5
1.66 paf 3488: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489: (exit $ac_status); } &&
1.86 paf 3490: { ac_try='test -z "$ac_c_werror_flag"
3491: || test ! -s conftest.err'
3492: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493: (eval $ac_try) 2>&5
3494: ac_status=$?
3495: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496: (exit $ac_status); }; } &&
3497: { ac_try='test -s conftest.$ac_objext'
1.66 paf 3498: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499: (eval $ac_try) 2>&5
3500: ac_status=$?
3501: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502: (exit $ac_status); }; }; then
3503: for ac_declaration in \
1.86 paf 3504: '' \
1.62 paf 3505: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3506: 'extern "C" void std::exit (int); using std::exit;' \
3507: 'extern "C" void exit (int) throw ();' \
3508: 'extern "C" void exit (int);' \
3509: 'void exit (int);'
3510: do
3511: cat >conftest.$ac_ext <<_ACEOF
3512: /* confdefs.h. */
3513: _ACEOF
3514: cat confdefs.h >>conftest.$ac_ext
3515: cat >>conftest.$ac_ext <<_ACEOF
3516: /* end confdefs.h. */
1.86 paf 3517: $ac_declaration
1.62 paf 3518: #include <stdlib.h>
3519: int
3520: main ()
3521: {
3522: exit (42);
3523: ;
3524: return 0;
3525: }
3526: _ACEOF
3527: rm -f conftest.$ac_objext
3528: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3529: (eval $ac_compile) 2>conftest.er1
1.62 paf 3530: ac_status=$?
1.86 paf 3531: grep -v '^ *+' conftest.er1 >conftest.err
3532: rm -f conftest.er1
3533: cat conftest.err >&5
1.62 paf 3534: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535: (exit $ac_status); } &&
1.86 paf 3536: { ac_try='test -z "$ac_c_werror_flag"
3537: || test ! -s conftest.err'
3538: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539: (eval $ac_try) 2>&5
3540: ac_status=$?
3541: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542: (exit $ac_status); }; } &&
3543: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3544: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545: (eval $ac_try) 2>&5
3546: ac_status=$?
3547: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548: (exit $ac_status); }; }; then
3549: :
3550: else
3551: echo "$as_me: failed program was:" >&5
3552: sed 's/^/| /' conftest.$ac_ext >&5
3553:
3554: continue
3555: fi
1.86 paf 3556: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3557: cat >conftest.$ac_ext <<_ACEOF
3558: /* confdefs.h. */
3559: _ACEOF
3560: cat confdefs.h >>conftest.$ac_ext
3561: cat >>conftest.$ac_ext <<_ACEOF
3562: /* end confdefs.h. */
3563: $ac_declaration
3564: int
3565: main ()
3566: {
3567: exit (42);
3568: ;
3569: return 0;
3570: }
3571: _ACEOF
3572: rm -f conftest.$ac_objext
3573: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3574: (eval $ac_compile) 2>conftest.er1
1.62 paf 3575: ac_status=$?
1.86 paf 3576: grep -v '^ *+' conftest.er1 >conftest.err
3577: rm -f conftest.er1
3578: cat conftest.err >&5
1.62 paf 3579: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580: (exit $ac_status); } &&
1.86 paf 3581: { ac_try='test -z "$ac_c_werror_flag"
3582: || test ! -s conftest.err'
3583: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584: (eval $ac_try) 2>&5
3585: ac_status=$?
3586: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587: (exit $ac_status); }; } &&
3588: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3589: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590: (eval $ac_try) 2>&5
3591: ac_status=$?
3592: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593: (exit $ac_status); }; }; then
3594: break
3595: else
3596: echo "$as_me: failed program was:" >&5
3597: sed 's/^/| /' conftest.$ac_ext >&5
3598:
3599: fi
1.86 paf 3600: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3601: done
3602: rm -f conftest*
3603: if test -n "$ac_declaration"; then
3604: echo '#ifdef __cplusplus' >>confdefs.h
3605: echo $ac_declaration >>confdefs.h
3606: echo '#endif' >>confdefs.h
3607: fi
3608:
1.66 paf 3609: else
3610: echo "$as_me: failed program was:" >&5
3611: sed 's/^/| /' conftest.$ac_ext >&5
3612:
3613: fi
1.86 paf 3614: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3615: ac_ext=c
3616: ac_cpp='$CPP $CPPFLAGS'
3617: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3618: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3619: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3620:
1.66 paf 3621: depcc="$CC" am_compiler_list=
1.62 paf 3622:
3623: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3624: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1.66 paf 3625: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.62 paf 3626: echo $ECHO_N "(cached) $ECHO_C" >&6
3627: else
3628: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3629: # We make a subdir and do the tests there. Otherwise we can end up
3630: # making bogus files that we don't know about and never remove. For
3631: # instance it was reported that on HP-UX the gcc test will end up
3632: # making a dummy file named `D' -- because `-MD' means `put the output
3633: # in D'.
3634: mkdir conftest.dir
3635: # Copy depcomp to subdir because otherwise we won't find it if we're
3636: # using a relative directory.
3637: cp "$am_depcomp" conftest.dir
3638: cd conftest.dir
1.86 paf 3639: # We will build objects and dependencies in a subdirectory because
3640: # it helps to detect inapplicable dependency modes. For instance
3641: # both Tru64's cc and ICC support -MD to output dependencies as a
3642: # side effect of compilation, but ICC will put the dependencies in
3643: # the current directory while Tru64 will put them in the object
3644: # directory.
3645: mkdir sub
1.62 paf 3646:
1.66 paf 3647: am_cv_CC_dependencies_compiler_type=none
1.62 paf 3648: if test "$am_compiler_list" = ""; then
3649: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3650: fi
3651: for depmode in $am_compiler_list; do
1.86 paf 3652: # Setup a source with many dependencies, because some compilers
3653: # like to wrap large dependency lists on column 80 (with \), and
3654: # we should not choose a depcomp mode which is confused by this.
3655: #
1.62 paf 3656: # We need to recreate these files for each test, as the compiler may
3657: # overwrite some of them when testing with obscure command lines.
3658: # This happens at least with the AIX C compiler.
1.86 paf 3659: : > sub/conftest.c
3660: for i in 1 2 3 4 5 6; do
3661: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3662: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3663: # Solaris 8's {/usr,}/bin/sh.
3664: touch sub/conftst$i.h
3665: done
3666: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 3667:
3668: case $depmode in
3669: nosideeffect)
3670: # after this tag, mechanisms are not by side-effect, so they'll
3671: # only be used when explicitly requested
3672: if test "x$enable_dependency_tracking" = xyes; then
3673: continue
3674: else
3675: break
3676: fi
3677: ;;
3678: none) break ;;
3679: esac
3680: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3681: # mode. It turns out that the SunPro C++ compiler does not properly
3682: # handle `-M -o', and we need to detect this.
1.66 paf 3683: if depmode=$depmode \
1.86 paf 3684: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3685: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3686: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3687: >/dev/null 2>conftest.err &&
3688: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3689: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.66 paf 3690: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 3691: # icc doesn't choke on unknown options, it will just issue warnings
3692: # or remarks (even with -Werror). So we grep stderr for any message
3693: # that says an option was ignored or not supported.
3694: # When given -MP, icc 7.0 and 7.1 complain thusly:
3695: # icc: Command line warning: ignoring option '-M'; no argument required
3696: # The diagnosis changed in icc 8.0:
3697: # icc: Command line remark: option '-MP' not supported
3698: if (grep 'ignoring option' conftest.err ||
3699: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3700: am_cv_CC_dependencies_compiler_type=$depmode
3701: break
3702: fi
1.66 paf 3703: fi
3704: done
3705:
3706: cd ..
3707: rm -rf conftest.dir
3708: else
3709: am_cv_CC_dependencies_compiler_type=none
3710: fi
3711:
3712: fi
3713: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3714: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3715: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3716:
3717:
3718:
3719: if
3720: test "x$enable_dependency_tracking" != xno \
3721: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3722: am__fastdepCC_TRUE=
3723: am__fastdepCC_FALSE='#'
3724: else
3725: am__fastdepCC_TRUE='#'
3726: am__fastdepCC_FALSE=
3727: fi
3728:
3729:
3730: ac_ext=c
3731: ac_cpp='$CPP $CPPFLAGS'
3732: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735:
1.67 paf 3736:
1.66 paf 3737: echo "$as_me:$LINENO: checking for inline" >&5
3738: echo $ECHO_N "checking for inline... $ECHO_C" >&6
3739: if test "${ac_cv_c_inline+set}" = set; then
3740: echo $ECHO_N "(cached) $ECHO_C" >&6
3741: else
3742: ac_cv_c_inline=no
3743: for ac_kw in inline __inline__ __inline; do
3744: cat >conftest.$ac_ext <<_ACEOF
3745: /* confdefs.h. */
3746: _ACEOF
3747: cat confdefs.h >>conftest.$ac_ext
3748: cat >>conftest.$ac_ext <<_ACEOF
3749: /* end confdefs.h. */
3750: #ifndef __cplusplus
3751: typedef int foo_t;
3752: static $ac_kw foo_t static_foo () {return 0; }
3753: $ac_kw foo_t foo () {return 0; }
3754: #endif
1.62 paf 3755:
1.66 paf 3756: _ACEOF
3757: rm -f conftest.$ac_objext
3758: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3759: (eval $ac_compile) 2>conftest.er1
1.66 paf 3760: ac_status=$?
1.86 paf 3761: grep -v '^ *+' conftest.er1 >conftest.err
3762: rm -f conftest.er1
3763: cat conftest.err >&5
1.66 paf 3764: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765: (exit $ac_status); } &&
1.86 paf 3766: { ac_try='test -z "$ac_c_werror_flag"
3767: || test ! -s conftest.err'
3768: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769: (eval $ac_try) 2>&5
3770: ac_status=$?
3771: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772: (exit $ac_status); }; } &&
3773: { ac_try='test -s conftest.$ac_objext'
1.66 paf 3774: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775: (eval $ac_try) 2>&5
3776: ac_status=$?
3777: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778: (exit $ac_status); }; }; then
3779: ac_cv_c_inline=$ac_kw; break
1.62 paf 3780: else
1.66 paf 3781: echo "$as_me: failed program was:" >&5
3782: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 3783:
3784: fi
1.86 paf 3785: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 3786: done
1.62 paf 3787:
3788: fi
1.66 paf 3789: echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3790: echo "${ECHO_T}$ac_cv_c_inline" >&6
1.86 paf 3791:
3792:
1.66 paf 3793: case $ac_cv_c_inline in
3794: inline | yes) ;;
1.86 paf 3795: *)
3796: case $ac_cv_c_inline in
3797: no) ac_val=;;
3798: *) ac_val=$ac_cv_c_inline;;
3799: esac
3800: cat >>confdefs.h <<_ACEOF
3801: #ifndef __cplusplus
3802: #define inline $ac_val
3803: #endif
1.66 paf 3804: _ACEOF
1.86 paf 3805: ;;
1.66 paf 3806: esac
1.1 paf 3807:
1.71 paf 3808:
3809:
3810:
3811: # Check whether --with-build-warnings or --without-build-warnings was given.
3812: if test "${with_build_warnings+set}" = set; then
3813: withval="$with_build_warnings"
3814: { echo "$as_me:$LINENO: WARNING: enabling compiler warnings" >&5
3815: echo "$as_me: WARNING: enabling compiler warnings" >&2;}
3816: CXXFLAGS="$CXXFLAGS -W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3817:
3818: fi;
1.1 paf 3819:
3820:
1.67 paf 3821:
3822: # Check whether --with-assertions or --without-assertions was given.
3823: if test "${with_assertions+set}" = set; then
3824: withval="$with_assertions"
3825: { echo "$as_me:$LINENO: WARNING: enabling assertions" >&5
3826: echo "$as_me: WARNING: enabling assertions" >&2;}
3827:
3828: else
3829:
3830: cat >>confdefs.h <<\_ACEOF
3831: #define NDEBUG
3832: _ACEOF
3833:
3834:
3835: fi;
3836:
1.94 misha 3837:
1.60 paf 3838: # Check whether --enable-safe-mode or --disable-safe-mode was given.
3839: if test "${enable_safe_mode+set}" = set; then
3840: enableval="$enable_safe_mode"
1.62 paf 3841:
1.67 paf 3842: SAFE_MODE=$enableval
1.60 paf 3843:
1.1 paf 3844:
1.62 paf 3845: fi;
1.60 paf 3846: if test "$SAFE_MODE" = "no"; then
1.62 paf 3847: { echo "$as_me:$LINENO: WARNING: enabling reading of files belonging to group+user other then effective" >&5
3848: echo "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
1.60 paf 3849: else
1.62 paf 3850:
3851: cat >>confdefs.h <<\_ACEOF
3852: #define PA_SAFE_MODE
3853: _ACEOF
1.1 paf 3854:
3855: fi
3856:
1.94 misha 3857:
1.13 paf 3858: # Check whether --enable-execs or --disable-execs was given.
3859: if test "${enable_execs+set}" = set; then
3860: enableval="$enable_execs"
1.62 paf 3861:
1.13 paf 3862: if test "$enableval" = "no"; then
1.62 paf 3863: { echo "$as_me:$LINENO: WARNING: disabling file execs" >&5
3864: echo "$as_me: WARNING: disabling file execs" >&2;}
3865:
3866: cat >>confdefs.h <<\_ACEOF
3867: #define NO_PA_EXECS
3868: _ACEOF
1.13 paf 3869:
3870: fi
3871:
3872:
1.62 paf 3873: fi;
1.13 paf 3874:
1.60 paf 3875:
1.94 misha 3876: # Check whether --enable-stringstream or --disable-stringstream was given.
3877: if test "${enable_stringstream+set}" = set; then
3878: enableval="$enable_stringstream"
3879:
3880: if test "$enableval" = "no"; then
3881: { echo "$as_me:$LINENO: WARNING: disabling stringstream usage" >&5
3882: echo "$as_me: WARNING: disabling stringstream usage" >&2;}
3883:
3884: cat >>confdefs.h <<\_ACEOF
3885: #define NO_STRINGSTREAM
3886: _ACEOF
3887:
3888: fi
3889:
3890:
3891: fi;
3892:
3893:
1.18 paf 3894: srccharsetsdir=$srcdir/etc/parser3.charsets
1.17 paf 3895: CHARSETS_REQUESTED="windows-1251"
1.62 paf 3896:
1.17 paf 3897: # Check whether --with-charsets or --without-charsets was given.
3898: if test "${with_charsets+set}" = set; then
3899: withval="$with_charsets"
3900: CHARSETS_REQUESTED=`echo $withval | sed -e 's/,/ /g'`
1.62 paf 3901: fi;
1.17 paf 3902:
1.18 paf 3903: # Checking whether all requested charsets have corresponding .cfg files
3904: for c in $CHARSETS_REQUESTED; do
3905: if test \! -f $srccharsetsdir/$c.cfg; then
1.62 paf 3906: { { echo "$as_me:$LINENO: error: bad charset requested \"$c\" - file $srccharsetsdir/$c.cfg not found" >&5
3907: echo "$as_me: error: bad charset requested \"$c\" - file $srccharsetsdir/$c.cfg not found" >&2;}
3908: { (exit 1); exit 1; }; }
1.18 paf 3909: fi
3910: done
1.17 paf 3911:
1.18 paf 3912: # Switching on commentcharset_XXX='#'
1.17 paf 3913:
3914:
3915: commentcharset_windows1251='#'
1.18 paf 3916: for c in $CHARSETS_REQUESTED; do
1.17 paf 3917: if test "windows-1251" = "$c"; then
1.62 paf 3918: { echo "$as_me:$LINENO: WARNING: enabling charset windows-1251" >&5
3919: echo "$as_me: WARNING: enabling charset windows-1251" >&2;}
1.18 paf 3920: commentcharset_windows1251=
1.17 paf 3921: fi
3922: done
1.62 paf 3923:
1.17 paf 3924:
3925:
3926: commentcharset_windows1250='#'
1.18 paf 3927: for c in $CHARSETS_REQUESTED; do
1.17 paf 3928: if test "windows-1250" = "$c"; then
1.62 paf 3929: { echo "$as_me:$LINENO: WARNING: enabling charset windows-1250" >&5
3930: echo "$as_me: WARNING: enabling charset windows-1250" >&2;}
1.18 paf 3931: commentcharset_windows1250=
1.17 paf 3932: fi
3933: done
1.62 paf 3934:
1.17 paf 3935:
3936:
3937: commentcharset_windows1257='#'
1.18 paf 3938: for c in $CHARSETS_REQUESTED; do
1.17 paf 3939: if test "windows-1257" = "$c"; then
1.62 paf 3940: { echo "$as_me:$LINENO: WARNING: enabling charset windows-1257" >&5
3941: echo "$as_me: WARNING: enabling charset windows-1257" >&2;}
1.18 paf 3942: commentcharset_windows1257=
1.17 paf 3943: fi
3944: done
1.62 paf 3945:
1.17 paf 3946:
3947:
3948: commentcharset_koi8r='#'
1.18 paf 3949: for c in $CHARSETS_REQUESTED; do
1.17 paf 3950: if test "koi8-r" = "$c"; then
1.62 paf 3951: { echo "$as_me:$LINENO: WARNING: enabling charset koi8-r" >&5
3952: echo "$as_me: WARNING: enabling charset koi8-r" >&2;}
1.18 paf 3953: commentcharset_koi8r=
1.17 paf 3954: fi
3955: done
3956:
3957:
3958:
1.62 paf 3959:
3960: echo "$as_me:$LINENO: checking for dynamic-link library extension" >&5
3961: echo $ECHO_N "checking for dynamic-link library extension... $ECHO_C" >&6
1.40 paf 3962: case "$host_os" in
3963: hpux9* | hpux10* | hpux11*)
1.67 paf 3964: dll_extension=sl
3965: ;;
1.40 paf 3966: cygwin)
1.67 paf 3967: dll_extension=dll
3968: ;;
1.40 paf 3969: *)
1.67 paf 3970: dll_extension=so
1.40 paf 3971: esac
1.62 paf 3972: echo "$as_me:$LINENO: result: $dll_extension" >&5
3973: echo "${ECHO_T}$dll_extension" >&6
3974:
1.40 paf 3975:
3976:
1.17 paf 3977: # Check whether --with-mysql-client or --without-mysql-client was given.
3978: if test "${with_mysql_client+set}" = set; then
3979: withval="$with_mysql_client"
3980: mysql_client=$withval
3981:
3982: else
1.62 paf 3983: echo "$as_me:$LINENO: checking for mysql client" >&5
3984: echo $ECHO_N "checking for mysql client... $ECHO_C" >&6
1.17 paf 3985: for lib in \
1.40 paf 3986: /usr/local/lib/mysql/libmysqlclient.$dll_extension \
3987: /usr/local/lib/libmysqlclient.$dll_extension \
3988: /usr/lib/libmysqlclient.$dll_extension; do
1.17 paf 3989: if test -f $lib; then mysql_client=$lib; fi
3990: done
3991:
3992: if test -z "$mysql_client"; then
3993: mysql_client="-configure could not guess-"
1.66 paf 3994: echo "$as_me:$LINENO: result: could not guess" >&5
3995: echo "${ECHO_T}could not guess" >&6
1.17 paf 3996: else
1.62 paf 3997: echo "$as_me:$LINENO: result: $mysql_client" >&5
3998: echo "${ECHO_T}$mysql_client" >&6
1.17 paf 3999: fi
4000:
4001:
1.62 paf 4002: fi;
1.17 paf 4003:
4004:
4005:
1.92 misha 4006:
1.17 paf 4007: # Check whether --with-pgsql-client or --without-pgsql-client was given.
4008: if test "${with_pgsql_client+set}" = set; then
4009: withval="$with_pgsql_client"
1.92 misha 4010: pgsql_client=$withval
1.17 paf 4011:
4012: else
1.62 paf 4013: echo "$as_me:$LINENO: checking for pgsql client" >&5
4014: echo $ECHO_N "checking for pgsql client... $ECHO_C" >&6
1.17 paf 4015: for lib in \
1.40 paf 4016: /usr/local/pgsql/lib/libpq.$dll_extension \
4017: /usr/local/lib/libpq.$dll_extension \
4018: /usr/lib/libpq.$dll_extension; do
1.17 paf 4019: if test -f $lib; then pgsql_client=$lib; fi
4020: done
4021:
4022: if test -z "$pgsql_client"; then
4023: pgsql_client="-configure could not guess-"
1.66 paf 4024: echo "$as_me:$LINENO: result: could not guess" >&5
4025: echo "${ECHO_T}could not guess" >&6
1.17 paf 4026: else
1.62 paf 4027: echo "$as_me:$LINENO: result: $pgsql_client" >&5
4028: echo "${ECHO_T}$pgsql_client" >&6
1.17 paf 4029: fi
4030:
4031:
1.62 paf 4032: fi;
1.17 paf 4033:
4034:
4035:
1.92 misha 4036:
1.17 paf 4037: # Check whether --with-oracle-client or --without-oracle-client was given.
4038: if test "${with_oracle_client+set}" = set; then
4039: withval="$with_oracle_client"
4040: oracle_client=$withval
4041:
4042: else
1.62 paf 4043: echo "$as_me:$LINENO: checking for oracle client" >&5
4044: echo $ECHO_N "checking for oracle client... $ECHO_C" >&6
1.40 paf 4045: lib=$ORACLE_HOME/lib/libclntsh.$dll_extension
1.17 paf 4046: if test -f $lib; then oracle_client=$lib; fi
4047:
4048: if test -z "$oracle_client"; then
4049: oracle_client="-configure could not guess-"
1.66 paf 4050: echo "$as_me:$LINENO: result: could not guess" >&5
4051: echo "${ECHO_T}could not guess" >&6
1.17 paf 4052: else
4053: oracle_client="$oracle_client?ORACLE_HOME=$ORACLE_HOME&ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data"
1.62 paf 4054: echo "$as_me:$LINENO: result: $oracle_client" >&5
4055: echo "${ECHO_T}$oracle_client" >&6
1.17 paf 4056: fi
4057:
4058:
1.62 paf 4059: fi;
1.17 paf 4060:
4061:
4062:
4063:
1.92 misha 4064: # Check whether --with-sqlite-client or --without-sqlite-client was given.
4065: if test "${with_sqlite_client+set}" = set; then
4066: withval="$with_sqlite_client"
4067: sqlite_client=$withval
4068:
4069: else
4070: echo "$as_me:$LINENO: checking for sqlite_client client" >&5
4071: echo $ECHO_N "checking for sqlite_client client... $ECHO_C" >&6
4072: for lib in \
4073: /usr/local/sqlite/lib/sqlite3.$dll_extension \
4074: /usr/local/lib/sqlite3.$dll_extension \
4075: /usr/lib/sqlite3.$dll_extension; do
4076: if test -f $lib; then sqlite_client=$lib; fi
4077: done
4078:
4079: if test -z "$sqlite_client"; then
4080: sqlite_client="-configure could not guess-"
4081: echo "$as_me:$LINENO: result: could not guess" >&5
4082: echo "${ECHO_T}could not guess" >&6
4083: else
4084: echo "$as_me:$LINENO: result: $sqlite_client" >&5
4085: echo "${ECHO_T}$sqlite_client" >&6
4086: fi
4087:
4088:
4089: fi;
4090:
4091:
4092:
4093:
1.14 paf 4094:
1.1 paf 4095: # Check whether --with-pathlink or --without-pathlink was given.
4096: if test "${with_pathlink+set}" = set; then
4097: withval="$with_pathlink"
4098: LD_PATHLINK=$withval
4099:
1.62 paf 4100: fi;
1.1 paf 4101:
1.67 paf 4102: # Check whether --with-dynamic-stdcpp or --without-dynamic-stdcpp was given.
4103: if test "${with_dynamic_stdcpp+set}" = set; then
4104: withval="$with_dynamic_stdcpp"
1.59 paf 4105:
1.67 paf 4106: { echo "$as_me:$LINENO: WARNING: libstdc++ will be linked dynamically: this is probably incompatible with other platforms" >&5
4107: echo "$as_me: WARNING: libstdc++ will be linked dynamically: this is probably incompatible with other platforms" >&2;}
4108: # this is for apache, it's linked with gcc and need to know
4109: # and it would not harm linking with c++ toolchain
4110: CPP_LIBS="-lstdc++"
1.59 paf 4111:
4112: else
4113:
1.67 paf 4114: CPP_LIBS="-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic"
1.59 paf 4115:
1.67 paf 4116: fi;
1.59 paf 4117:
1.62 paf 4118:
4119:
1.37 paf 4120: # Check whether --with-sjlj-exceptions or --without-sjlj-exceptions was given.
4121: if test "${with_sjlj_exceptions+set}" = set; then
4122: withval="$with_sjlj_exceptions"
1.62 paf 4123:
4124: cat >>confdefs.h <<\_ACEOF
4125: #define PA_WITH_SJLJ_EXCEPTIONS
4126: _ACEOF
1.37 paf 4127:
4128:
1.62 paf 4129: fi;
1.37 paf 4130:
1.67 paf 4131: GC_LIB_NAME=gc
4132:
4133: # Check whether --with-shared-gc or --without-shared-gc was given.
4134: if test "${with_shared_gc+set}" = set; then
4135: withval="$with_shared_gc"
4136:
4137: GC_LIBS="-L$withval -l$GC_LIB_NAME"
4138:
4139: fi;
4140:
4141: # Check whether --with-static-gc or --without-static-gc was given.
4142: if test "${with_static_gc+set}" = set; then
4143: withval="$with_static_gc"
4144:
4145: GC_LIBS="-L$withval -Wl,-Bstatic -l$GC_LIB_NAME -Wl,-Bdynamic"
4146:
4147: fi;
4148: if test -z "$GC_LIBS"; then
4149: #undefined? use any found in system
4150: GC_LIBS="-l$GC_LIB_NAME"
4151: { echo "$as_me:$LINENO: WARNING: neither --with-shared/static-gc were specified, hoping linker would find it" >&5
4152: echo "$as_me: WARNING: neither --with-shared/static-gc were specified, hoping linker would find it" >&2;}
4153: fi
4154:
4155: echo "$as_me:$LINENO: checking for libgc" >&5
4156: echo $ECHO_N "checking for libgc... $ECHO_C" >&6
4157: SAVE_LIBS=$LIBS
4158: LIBS="$LIBS $GC_LIBS"
4159: cat >conftest.$ac_ext <<_ACEOF
4160: /* confdefs.h. */
4161: _ACEOF
4162: cat confdefs.h >>conftest.$ac_ext
4163: cat >>conftest.$ac_ext <<_ACEOF
4164: /* end confdefs.h. */
4165:
4166: extern int GC_dont_gc;
4167:
4168: int
4169: main ()
4170: {
4171:
4172: GC_dont_gc=0;
4173:
4174: ;
4175: return 0;
4176: }
4177: _ACEOF
4178: rm -f conftest.$ac_objext conftest$ac_exeext
4179: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 4180: (eval $ac_link) 2>conftest.er1
1.67 paf 4181: ac_status=$?
1.86 paf 4182: grep -v '^ *+' conftest.er1 >conftest.err
4183: rm -f conftest.er1
4184: cat conftest.err >&5
1.67 paf 4185: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186: (exit $ac_status); } &&
1.86 paf 4187: { ac_try='test -z "$ac_c_werror_flag"
4188: || test ! -s conftest.err'
4189: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190: (eval $ac_try) 2>&5
4191: ac_status=$?
4192: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193: (exit $ac_status); }; } &&
4194: { ac_try='test -s conftest$ac_exeext'
1.67 paf 4195: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196: (eval $ac_try) 2>&5
4197: ac_status=$?
4198: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199: (exit $ac_status); }; }; then
4200: echo "$as_me:$LINENO: result: yes" >&5
4201: echo "${ECHO_T}yes" >&6
4202:
4203: else
4204: echo "$as_me: failed program was:" >&5
4205: sed 's/^/| /' conftest.$ac_ext >&5
4206:
4207: echo "$as_me:$LINENO: result: no" >&5
4208: echo "${ECHO_T}no" >&6
4209: { { echo "$as_me:$LINENO: error: please specify path to libgc: --with-shared-gc OR --with-static-gc" >&5
4210: echo "$as_me: error: please specify path to libgc: --with-shared-gc OR --with-static-gc" >&2;}
4211: { (exit 1); exit 1; }; }
4212:
4213: fi
1.86 paf 4214: rm -f conftest.err conftest.$ac_objext \
4215: conftest$ac_exeext conftest.$ac_ext
1.67 paf 4216:
4217: LIBS=$SAVE_LIBS
4218:
1.1 paf 4219:
1.15 paf 4220:
1.100 misha 4221: # Check whether --with-static-pcre or --without-static-pcre was given.
4222: if test "${with_static_pcre+set}" = set; then
4223: withval="$with_static_pcre"
4224:
4225: PCRE=$withval
4226: PCREINC="$PCRE/include"
4227: PCRELIB="$PCRE/lib"
4228:
4229: if test \! -d $PCREINC -o \! -d $PCRELIB; then
4230: { { echo "$as_me:$LINENO: error: $PCRE does not seem to be valid PCRE installation directory" >&5
4231: echo "$as_me: error: $PCRE does not seem to be valid PCRE installation directory" >&2;}
4232: { (exit 1); exit 1; }; }
4233: fi
4234:
4235: PCRE_INCLUDES="-I$PCREINC"
4236: PCRE_LIBS="$PCRELIB/libpcre.a"
4237:
4238: fi;
4239:
4240:
4241:
4242:
4243:
1.66 paf 4244: # Check whether --with-shared-xml or --without-shared-xml was given.
4245: if test "${with_shared_xml+set}" = set; then
4246: withval="$with_shared_xml"
4247:
1.67 paf 4248: GNOME_XML=$withval
4249: XMLBIN="$GNOME_XML/bin"
4250: XMLINC="$GNOME_XML/include"
4251: XMLLIB="$GNOME_XML/lib"
1.66 paf 4252:
1.67 paf 4253: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
4254: { { echo "$as_me:$LINENO: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&5
1.66 paf 4255: echo "$as_me: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&2;}
4256: { (exit 1); exit 1; }; }
1.67 paf 4257: fi
1.66 paf 4258:
4259:
4260: cat >>confdefs.h <<\_ACEOF
4261: #define XML
4262: _ACEOF
4263:
4264:
1.67 paf 4265: LIBXML2_SO_NAME=`cd $XMLLIB ; ls libxml2.?? libxml2.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
4266: LIBXSLT_SO_NAME=`cd $XMLLIB ; ls libxslt.?? libxslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
4267: LIBEXSLT_SO_NAME=`cd $XMLLIB ; ls libexslt.?? libexslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
4268:
1.90 paf 4269: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libxml2"
4270: XML_LIBS="-L$XMLLIB -l$LIBXML2_SO_NAME -l$LIBXSLT_SO_NAME -l$LIBEXSLT_SO_NAME"
1.67 paf 4271: if test \! -z "$LD_PATHLINK"; then
1.66 paf 4272: XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB"
1.67 paf 4273: fi
1.66 paf 4274:
4275: fi;
4276:
4277: # Check whether --with-static-xml or --without-static-xml was given.
4278: if test "${with_static_xml+set}" = set; then
4279: withval="$with_static_xml"
4280:
1.67 paf 4281: GNOME_XML=$withval
4282: XMLBIN="$GNOME_XML/bin"
4283: XMLINC="$GNOME_XML/include"
4284: XMLLIB="$GNOME_XML/lib"
1.66 paf 4285:
1.67 paf 4286: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
4287: { { echo "$as_me:$LINENO: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&5
1.66 paf 4288: echo "$as_me: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&2;}
4289: { (exit 1); exit 1; }; }
1.67 paf 4290: fi
1.66 paf 4291:
4292:
4293: cat >>confdefs.h <<\_ACEOF
4294: #define XML
4295: _ACEOF
4296:
4297:
1.90 paf 4298: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libxml2"
4299: XML_LIBS="$XMLLIB/libxslt.a $XMLLIB/libexslt.a $XMLLIB/libxml2.a"
4300:
4301: fi;
1.66 paf 4302:
4303:
4304:
4305:
1.119 misha 4306: # Check whether --with-curl or --without-curl was given.
4307: if test "${with_curl+set}" = set; then
4308: withval="$with_curl"
4309:
4310: CURLINC=$withval
4311:
4312: if test \! -d $CURLINC -o \! -r $CURLINC/curl.h; then
4313: { { echo "$as_me:$LINENO: error: $CURLINC does not seem to be valid curl includes directory" >&5
4314: echo "$as_me: error: $CURLINC does not seem to be valid curl includes directory" >&2;}
4315: { (exit 1); exit 1; }; }
4316: fi
4317:
4318:
4319: cat >>confdefs.h <<\_ACEOF
4320: #define HAVE_CURL
4321: _ACEOF
4322:
4323:
1.120 misha 4324: CURL_INCLUDES="-I$CURLINC -I$CURLINC/../"
1.119 misha 4325:
4326: fi;
4327:
4328:
4329:
1.90 paf 4330: # Check whether --with-glib-config or --without-glib-config was given.
4331: if test "${with_glib_config+set}" = set; then
4332: withval="$with_glib_config"
4333: GLIB_CONFIG=$withval
4334:
4335: fi;
1.66 paf 4336:
4337:
4338: # Check whether --with-shared-mailreceive or --without-shared-mailreceive was given.
4339: if test "${with_shared_mailreceive+set}" = set; then
4340: withval="$with_shared_mailreceive"
4341:
1.67 paf 4342: GNOME_MIME=$withval
4343: MIMEBIN="$GNOME_MIME/bin"
4344: MIMEINC="$GNOME_MIME/include"
4345: MIMELIB="$GNOME_MIME/lib"
1.66 paf 4346:
1.67 paf 4347: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
4348: { { echo "$as_me:$LINENO: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&5
1.66 paf 4349: echo "$as_me: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&2;}
4350: { (exit 1); exit 1; }; }
1.67 paf 4351: fi
1.66 paf 4352:
4353:
4354: cat >>confdefs.h <<\_ACEOF
4355: #define WITH_MAILRECEIVE
4356: _ACEOF
4357:
4358:
1.67 paf 4359: LIBMIME_SO_NAME=`cd $MIMELIB ; ls libgmime.?? libgmime.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1.66 paf 4360:
1.67 paf 4361: if test -z "$GLIB_CONFIG"; then
1.90 paf 4362: GLIB_CONFIG=$XMLBIN/glib-config
1.67 paf 4363: if test \! -x $GLIB_CONFIG; then
1.90 paf 4364: GLIB_CONFIG=$XMLBIN/glib2-config
4365: if test \! -x $GLIB_CONFIG; then
4366: GLIB_CONFIG=glib-config
4367: fi
1.67 paf 4368: fi
4369: fi
4370: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
4371: GLIB_LIBS=`$GLIB_CONFIG --libs`
1.66 paf 4372:
1.67 paf 4373: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
4374: MIME_LIBS="$GLIB_LIBS -L$MIMELIB -l$LIBMIME_SO_NAME"
4375: if test \! -z "$LD_PATHLINK"; then
1.66 paf 4376: MIME_LIBS="$MIME_LIBS -Wl,$LD_PATHLINK -Wl,$MIMELIB"
1.67 paf 4377: fi
1.66 paf 4378:
4379: fi;
4380:
4381: # Check whether --with-static-mailreceive or --without-static-mailreceive was given.
4382: if test "${with_static_mailreceive+set}" = set; then
4383: withval="$with_static_mailreceive"
4384:
1.67 paf 4385: GNOME_MIME=$withval
4386: MIMEBIN="$GNOME_MIME/bin"
4387: MIMEINC="$GNOME_MIME/include"
4388: MIMELIB="$GNOME_MIME/lib"
1.66 paf 4389:
1.67 paf 4390: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
4391: { { echo "$as_me:$LINENO: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&5
1.66 paf 4392: echo "$as_me: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&2;}
4393: { (exit 1); exit 1; }; }
1.67 paf 4394: fi
1.66 paf 4395:
4396:
4397: cat >>confdefs.h <<\_ACEOF
4398: #define WITH_MAILRECEIVE
4399: _ACEOF
4400:
4401:
1.67 paf 4402: if test -z "$GLIB_CONFIG"; then
1.90 paf 4403: GLIB_CONFIG=$XMLBIN/glib-config
1.67 paf 4404: if test \! -x $GLIB_CONFIG; then
1.90 paf 4405: GLIB_CONFIG=$XMLBIN/glib2-config
4406: if test \! -x $GLIB_CONFIG; then
4407: GLIB_CONFIG=glib-config
4408: fi
1.67 paf 4409: fi
4410: fi
4411: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1.66 paf 4412:
1.67 paf 4413: GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
4414: GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
4415: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
4416: MIME_LIBS="$MIMELIB/libgmime.a $GLIB_DIR/lib$GLIB_NAME.a"
1.66 paf 4417:
4418: fi;
4419:
4420:
4421:
4422:
4423:
4424: # Check whether --with-sendmail or --without-sendmail was given.
4425: if test "${with_sendmail+set}" = set; then
4426: withval="$with_sendmail"
4427:
4428: cat >>confdefs.h <<_ACEOF
4429: #define PA_FORCED_SENDMAIL "$withval"
4430: _ACEOF
4431:
4432:
4433: fi;
4434:
4435:
4436:
4437: # Check whether --with-apache13 or --without-apache13 was given.
4438: if test "${with_apache13+set}" = set; then
4439: withval="$with_apache13"
4440: APACHE13=$withval
1.67 paf 4441: if test \! -f "$APACHE13/src/include/httpd.h"; then
4442: { { echo "$as_me:$LINENO: error: $APACHE13 does not seem to be valid Apache13 source distribution directory" >&5
1.66 paf 4443: echo "$as_me: error: $APACHE13 does not seem to be valid Apache13 source distribution directory" >&2;}
4444: { (exit 1); exit 1; }; }
1.67 paf 4445: fi
1.7 paf 4446:
1.62 paf 4447: fi;
1.7 paf 4448:
4449:
1.62 paf 4450:
1.66 paf 4451: if test -n "$APACHE13"; then
4452: COMPILE_APACHE13_MODULE_TRUE=
4453: COMPILE_APACHE13_MODULE_FALSE='#'
4454: else
4455: COMPILE_APACHE13_MODULE_TRUE='#'
4456: COMPILE_APACHE13_MODULE_FALSE=
4457: fi
1.1 paf 4458:
4459:
4460:
1.66 paf 4461: LIBLTDL='${top_builddir}/'src/lib/ltdl/libltdlc.a
4462: INCLTDL='-I${top_srcdir}/'src/lib/ltdl
1.62 paf 4463:
4464:
1.7 paf 4465:
1.1 paf 4466:
4467:
4468:
1.66 paf 4469: subdirs="$subdirs src/lib/ltdl"
1.62 paf 4470:
1.10 paf 4471:
1.66 paf 4472: LIBADD_DL=
1.10 paf 4473:
1.62 paf 4474:
1.66 paf 4475: echo "$as_me:$LINENO: checking for shl_load" >&5
4476: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
4477: if test "${ac_cv_func_shl_load+set}" = set; then
4478: echo $ECHO_N "(cached) $ECHO_C" >&6
4479: else
4480: cat >conftest.$ac_ext <<_ACEOF
4481: /* confdefs.h. */
1.62 paf 4482: _ACEOF
1.66 paf 4483: cat confdefs.h >>conftest.$ac_ext
4484: cat >>conftest.$ac_ext <<_ACEOF
4485: /* end confdefs.h. */
1.86 paf 4486: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
4487: For example, HP-UX 11i <limits.h> declares gettimeofday. */
4488: #define shl_load innocuous_shl_load
4489:
1.66 paf 4490: /* System header to define __stub macros and hopefully few prototypes,
4491: which can conflict with char shl_load (); below.
4492: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4493: <limits.h> exists even on freestanding compilers. */
1.86 paf 4494:
1.66 paf 4495: #ifdef __STDC__
4496: # include <limits.h>
4497: #else
4498: # include <assert.h>
4499: #endif
1.86 paf 4500:
4501: #undef shl_load
4502:
1.66 paf 4503: /* Override any gcc2 internal prototype to avoid an error. */
4504: #ifdef __cplusplus
4505: extern "C"
4506: {
4507: #endif
4508: /* We use char because int might match the return type of a gcc2
4509: builtin and then its argument prototype would still apply. */
4510: char shl_load ();
4511: /* The GNU C library defines this for functions which it implements
4512: to always fail with ENOSYS. Some functions are actually named
4513: something starting with __ and the normal name is an alias. */
4514: #if defined (__stub_shl_load) || defined (__stub___shl_load)
4515: choke me
4516: #else
4517: char (*f) () = shl_load;
4518: #endif
4519: #ifdef __cplusplus
4520: }
4521: #endif
1.10 paf 4522:
1.66 paf 4523: int
4524: main ()
4525: {
4526: return f != shl_load;
4527: ;
4528: return 0;
4529: }
4530: _ACEOF
4531: rm -f conftest.$ac_objext conftest$ac_exeext
4532: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 4533: (eval $ac_link) 2>conftest.er1
1.66 paf 4534: ac_status=$?
1.86 paf 4535: grep -v '^ *+' conftest.er1 >conftest.err
4536: rm -f conftest.er1
4537: cat conftest.err >&5
1.66 paf 4538: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539: (exit $ac_status); } &&
1.86 paf 4540: { ac_try='test -z "$ac_c_werror_flag"
4541: || test ! -s conftest.err'
4542: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543: (eval $ac_try) 2>&5
4544: ac_status=$?
4545: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546: (exit $ac_status); }; } &&
4547: { ac_try='test -s conftest$ac_exeext'
1.66 paf 4548: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549: (eval $ac_try) 2>&5
4550: ac_status=$?
4551: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552: (exit $ac_status); }; }; then
4553: ac_cv_func_shl_load=yes
4554: else
4555: echo "$as_me: failed program was:" >&5
4556: sed 's/^/| /' conftest.$ac_ext >&5
1.10 paf 4557:
1.66 paf 4558: ac_cv_func_shl_load=no
4559: fi
1.86 paf 4560: rm -f conftest.err conftest.$ac_objext \
4561: conftest$ac_exeext conftest.$ac_ext
1.66 paf 4562: fi
4563: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
4564: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
4565: if test $ac_cv_func_shl_load = yes; then
1.10 paf 4566:
1.66 paf 4567: cat >>confdefs.h <<\_ACEOF
4568: #define HAVE_SHL_LOAD 1
4569: _ACEOF
1.10 paf 4570:
1.66 paf 4571: else
4572: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
4573: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
4574: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
4575: echo $ECHO_N "(cached) $ECHO_C" >&6
4576: else
4577: ac_check_lib_save_LIBS=$LIBS
4578: LIBS="-ldld $LIBS"
4579: cat >conftest.$ac_ext <<_ACEOF
4580: /* confdefs.h. */
4581: _ACEOF
4582: cat confdefs.h >>conftest.$ac_ext
4583: cat >>conftest.$ac_ext <<_ACEOF
4584: /* end confdefs.h. */
1.10 paf 4585:
1.66 paf 4586: /* Override any gcc2 internal prototype to avoid an error. */
4587: #ifdef __cplusplus
4588: extern "C"
4589: #endif
4590: /* We use char because int might match the return type of a gcc2
4591: builtin and then its argument prototype would still apply. */
4592: char shl_load ();
4593: int
4594: main ()
4595: {
4596: shl_load ();
4597: ;
4598: return 0;
4599: }
4600: _ACEOF
4601: rm -f conftest.$ac_objext conftest$ac_exeext
4602: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 4603: (eval $ac_link) 2>conftest.er1
1.66 paf 4604: ac_status=$?
1.86 paf 4605: grep -v '^ *+' conftest.er1 >conftest.err
4606: rm -f conftest.er1
4607: cat conftest.err >&5
1.66 paf 4608: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609: (exit $ac_status); } &&
1.86 paf 4610: { ac_try='test -z "$ac_c_werror_flag"
4611: || test ! -s conftest.err'
4612: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613: (eval $ac_try) 2>&5
4614: ac_status=$?
4615: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616: (exit $ac_status); }; } &&
4617: { ac_try='test -s conftest$ac_exeext'
1.66 paf 4618: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619: (eval $ac_try) 2>&5
4620: ac_status=$?
4621: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622: (exit $ac_status); }; }; then
4623: ac_cv_lib_dld_shl_load=yes
4624: else
4625: echo "$as_me: failed program was:" >&5
4626: sed 's/^/| /' conftest.$ac_ext >&5
1.10 paf 4627:
1.66 paf 4628: ac_cv_lib_dld_shl_load=no
4629: fi
1.86 paf 4630: rm -f conftest.err conftest.$ac_objext \
4631: conftest$ac_exeext conftest.$ac_ext
1.66 paf 4632: LIBS=$ac_check_lib_save_LIBS
4633: fi
4634: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
4635: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
4636: if test $ac_cv_lib_dld_shl_load = yes; then
1.1 paf 4637:
1.66 paf 4638: cat >>confdefs.h <<\_ACEOF
4639: #define HAVE_SHL_LOAD 1
4640: _ACEOF
1.1 paf 4641:
1.66 paf 4642: LIBADD_DL="$LIBADD_DL -ldld"
4643: else
4644: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4645: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4646: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4647: echo $ECHO_N "(cached) $ECHO_C" >&6
4648: else
4649: ac_check_lib_save_LIBS=$LIBS
4650: LIBS="-ldl $LIBS"
4651: cat >conftest.$ac_ext <<_ACEOF
4652: /* confdefs.h. */
4653: _ACEOF
4654: cat confdefs.h >>conftest.$ac_ext
4655: cat >>conftest.$ac_ext <<_ACEOF
4656: /* end confdefs.h. */
1.62 paf 4657:
1.66 paf 4658: /* Override any gcc2 internal prototype to avoid an error. */
4659: #ifdef __cplusplus
4660: extern "C"
4661: #endif
4662: /* We use char because int might match the return type of a gcc2
4663: builtin and then its argument prototype would still apply. */
4664: char dlopen ();
4665: int
4666: main ()
4667: {
4668: dlopen ();
4669: ;
4670: return 0;
4671: }
4672: _ACEOF
4673: rm -f conftest.$ac_objext conftest$ac_exeext
4674: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 4675: (eval $ac_link) 2>conftest.er1
1.66 paf 4676: ac_status=$?
1.86 paf 4677: grep -v '^ *+' conftest.er1 >conftest.err
4678: rm -f conftest.er1
4679: cat conftest.err >&5
1.66 paf 4680: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681: (exit $ac_status); } &&
1.86 paf 4682: { ac_try='test -z "$ac_c_werror_flag"
4683: || test ! -s conftest.err'
4684: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685: (eval $ac_try) 2>&5
4686: ac_status=$?
4687: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688: (exit $ac_status); }; } &&
4689: { ac_try='test -s conftest$ac_exeext'
1.66 paf 4690: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691: (eval $ac_try) 2>&5
4692: ac_status=$?
4693: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694: (exit $ac_status); }; }; then
4695: ac_cv_lib_dl_dlopen=yes
4696: else
4697: echo "$as_me: failed program was:" >&5
4698: sed 's/^/| /' conftest.$ac_ext >&5
1.29 paf 4699:
1.66 paf 4700: ac_cv_lib_dl_dlopen=no
4701: fi
1.86 paf 4702: rm -f conftest.err conftest.$ac_objext \
4703: conftest$ac_exeext conftest.$ac_ext
1.66 paf 4704: LIBS=$ac_check_lib_save_LIBS
4705: fi
4706: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4707: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4708: if test $ac_cv_lib_dl_dlopen = yes; then
1.29 paf 4709:
1.62 paf 4710: cat >>confdefs.h <<\_ACEOF
1.66 paf 4711: #define HAVE_LIBDL 1
1.62 paf 4712: _ACEOF
4713:
1.66 paf 4714: LIBADD_DL="-ldl"
4715: else
4716: cat >conftest.$ac_ext <<_ACEOF
4717: /* confdefs.h. */
4718: _ACEOF
4719: cat confdefs.h >>conftest.$ac_ext
4720: cat >>conftest.$ac_ext <<_ACEOF
4721: /* end confdefs.h. */
4722: #if HAVE_DLFCN_H
4723: # include <dlfcn.h>
4724: #endif
1.62 paf 4725:
1.66 paf 4726: int
4727: main ()
4728: {
4729: dlopen(0, 0);
4730: ;
4731: return 0;
4732: }
4733: _ACEOF
4734: rm -f conftest.$ac_objext conftest$ac_exeext
4735: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 4736: (eval $ac_link) 2>conftest.er1
1.66 paf 4737: ac_status=$?
1.86 paf 4738: grep -v '^ *+' conftest.er1 >conftest.err
4739: rm -f conftest.er1
4740: cat conftest.err >&5
1.66 paf 4741: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742: (exit $ac_status); } &&
1.86 paf 4743: { ac_try='test -z "$ac_c_werror_flag"
4744: || test ! -s conftest.err'
4745: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746: (eval $ac_try) 2>&5
4747: ac_status=$?
4748: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749: (exit $ac_status); }; } &&
4750: { ac_try='test -s conftest$ac_exeext'
1.66 paf 4751: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752: (eval $ac_try) 2>&5
4753: ac_status=$?
4754: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755: (exit $ac_status); }; }; then
1.29 paf 4756:
1.66 paf 4757: cat >>confdefs.h <<\_ACEOF
4758: #define HAVE_LIBDL 1
4759: _ACEOF
1.29 paf 4760:
1.66 paf 4761: else
4762: echo "$as_me: failed program was:" >&5
4763: sed 's/^/| /' conftest.$ac_ext >&5
1.29 paf 4764:
1.66 paf 4765: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
4766: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
4767: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
4768: echo $ECHO_N "(cached) $ECHO_C" >&6
4769: else
4770: ac_check_lib_save_LIBS=$LIBS
4771: LIBS="-lsvld $LIBS"
4772: cat >conftest.$ac_ext <<_ACEOF
4773: /* confdefs.h. */
4774: _ACEOF
4775: cat confdefs.h >>conftest.$ac_ext
4776: cat >>conftest.$ac_ext <<_ACEOF
4777: /* end confdefs.h. */
1.29 paf 4778:
1.66 paf 4779: /* Override any gcc2 internal prototype to avoid an error. */
4780: #ifdef __cplusplus
4781: extern "C"
4782: #endif
4783: /* We use char because int might match the return type of a gcc2
4784: builtin and then its argument prototype would still apply. */
4785: char dlopen ();
4786: int
4787: main ()
4788: {
4789: dlopen ();
4790: ;
4791: return 0;
4792: }
4793: _ACEOF
4794: rm -f conftest.$ac_objext conftest$ac_exeext
4795: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 4796: (eval $ac_link) 2>conftest.er1
1.66 paf 4797: ac_status=$?
1.86 paf 4798: grep -v '^ *+' conftest.er1 >conftest.err
4799: rm -f conftest.er1
4800: cat conftest.err >&5
1.66 paf 4801: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802: (exit $ac_status); } &&
1.86 paf 4803: { ac_try='test -z "$ac_c_werror_flag"
4804: || test ! -s conftest.err'
4805: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806: (eval $ac_try) 2>&5
4807: ac_status=$?
4808: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809: (exit $ac_status); }; } &&
4810: { ac_try='test -s conftest$ac_exeext'
1.66 paf 4811: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812: (eval $ac_try) 2>&5
4813: ac_status=$?
4814: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815: (exit $ac_status); }; }; then
4816: ac_cv_lib_svld_dlopen=yes
4817: else
4818: echo "$as_me: failed program was:" >&5
4819: sed 's/^/| /' conftest.$ac_ext >&5
1.29 paf 4820:
1.66 paf 4821: ac_cv_lib_svld_dlopen=no
4822: fi
1.86 paf 4823: rm -f conftest.err conftest.$ac_objext \
4824: conftest$ac_exeext conftest.$ac_ext
1.66 paf 4825: LIBS=$ac_check_lib_save_LIBS
4826: fi
4827: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
4828: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
4829: if test $ac_cv_lib_svld_dlopen = yes; then
1.62 paf 4830:
4831: cat >>confdefs.h <<\_ACEOF
1.66 paf 4832: #define HAVE_LIBDL 1
1.62 paf 4833: _ACEOF
1.29 paf 4834:
1.66 paf 4835: LIBADD_DL="-lsvld"
4836: else
4837: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
4838: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
4839: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
4840: echo $ECHO_N "(cached) $ECHO_C" >&6
4841: else
4842: ac_check_lib_save_LIBS=$LIBS
4843: LIBS="-ldld $LIBS"
4844: cat >conftest.$ac_ext <<_ACEOF
4845: /* confdefs.h. */
4846: _ACEOF
4847: cat confdefs.h >>conftest.$ac_ext
4848: cat >>conftest.$ac_ext <<_ACEOF
4849: /* end confdefs.h. */
1.29 paf 4850:
1.66 paf 4851: /* Override any gcc2 internal prototype to avoid an error. */
4852: #ifdef __cplusplus
4853: extern "C"
4854: #endif
4855: /* We use char because int might match the return type of a gcc2
4856: builtin and then its argument prototype would still apply. */
4857: char dld_link ();
4858: int
4859: main ()
4860: {
4861: dld_link ();
4862: ;
4863: return 0;
4864: }
4865: _ACEOF
4866: rm -f conftest.$ac_objext conftest$ac_exeext
4867: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 4868: (eval $ac_link) 2>conftest.er1
1.66 paf 4869: ac_status=$?
1.86 paf 4870: grep -v '^ *+' conftest.er1 >conftest.err
4871: rm -f conftest.er1
4872: cat conftest.err >&5
1.66 paf 4873: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874: (exit $ac_status); } &&
1.86 paf 4875: { ac_try='test -z "$ac_c_werror_flag"
4876: || test ! -s conftest.err'
4877: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878: (eval $ac_try) 2>&5
4879: ac_status=$?
4880: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881: (exit $ac_status); }; } &&
4882: { ac_try='test -s conftest$ac_exeext'
1.66 paf 4883: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884: (eval $ac_try) 2>&5
4885: ac_status=$?
4886: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887: (exit $ac_status); }; }; then
4888: ac_cv_lib_dld_dld_link=yes
4889: else
4890: echo "$as_me: failed program was:" >&5
4891: sed 's/^/| /' conftest.$ac_ext >&5
1.29 paf 4892:
1.66 paf 4893: ac_cv_lib_dld_dld_link=no
4894: fi
1.86 paf 4895: rm -f conftest.err conftest.$ac_objext \
4896: conftest$ac_exeext conftest.$ac_ext
1.66 paf 4897: LIBS=$ac_check_lib_save_LIBS
4898: fi
4899: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
4900: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
4901: if test $ac_cv_lib_dld_dld_link = yes; then
1.29 paf 4902:
1.66 paf 4903: cat >>confdefs.h <<\_ACEOF
4904: #define HAVE_DLD 1
1.62 paf 4905: _ACEOF
1.16 paf 4906:
1.66 paf 4907: LIBADD_DL="$LIBADD_DL -ldld"
1.16 paf 4908:
1.66 paf 4909: fi
1.16 paf 4910:
4911:
1.66 paf 4912: fi
1.12 paf 4913:
4914:
1.66 paf 4915: fi
1.86 paf 4916: rm -f conftest.err conftest.$ac_objext \
4917: conftest$ac_exeext conftest.$ac_ext
1.12 paf 4918:
4919: fi
4920:
4921:
1.66 paf 4922: fi
1.62 paf 4923:
1.1 paf 4924:
1.66 paf 4925: fi
1.1 paf 4926:
4927:
1.66 paf 4928: if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
4929: LIBS_SAVE="$LIBS"
4930: LIBS="$LIBS $LIBADD_DL"
1.1 paf 4931:
1.66 paf 4932: for ac_func in dlerror
4933: do
4934: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4935: echo "$as_me:$LINENO: checking for $ac_func" >&5
4936: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4937: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.62 paf 4938: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 4939: else
1.64 paf 4940: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 4941: /* confdefs.h. */
4942: _ACEOF
4943: cat confdefs.h >>conftest.$ac_ext
4944: cat >>conftest.$ac_ext <<_ACEOF
4945: /* end confdefs.h. */
1.86 paf 4946: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4947: For example, HP-UX 11i <limits.h> declares gettimeofday. */
4948: #define $ac_func innocuous_$ac_func
4949:
1.64 paf 4950: /* System header to define __stub macros and hopefully few prototypes,
1.66 paf 4951: which can conflict with char $ac_func (); below.
1.64 paf 4952: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4953: <limits.h> exists even on freestanding compilers. */
1.86 paf 4954:
1.64 paf 4955: #ifdef __STDC__
4956: # include <limits.h>
4957: #else
4958: # include <assert.h>
4959: #endif
1.86 paf 4960:
4961: #undef $ac_func
4962:
1.8 paf 4963: /* Override any gcc2 internal prototype to avoid an error. */
4964: #ifdef __cplusplus
4965: extern "C"
1.64 paf 4966: {
1.8 paf 4967: #endif
4968: /* We use char because int might match the return type of a gcc2
1.62 paf 4969: builtin and then its argument prototype would still apply. */
1.66 paf 4970: char $ac_func ();
1.64 paf 4971: /* The GNU C library defines this for functions which it implements
4972: to always fail with ENOSYS. Some functions are actually named
4973: something starting with __ and the normal name is an alias. */
1.66 paf 4974: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.64 paf 4975: choke me
4976: #else
1.66 paf 4977: char (*f) () = $ac_func;
1.64 paf 4978: #endif
4979: #ifdef __cplusplus
4980: }
4981: #endif
4982:
1.62 paf 4983: int
4984: main ()
4985: {
1.66 paf 4986: return f != $ac_func;
1.62 paf 4987: ;
4988: return 0;
4989: }
4990: _ACEOF
4991: rm -f conftest.$ac_objext conftest$ac_exeext
4992: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 4993: (eval $ac_link) 2>conftest.er1
1.62 paf 4994: ac_status=$?
1.86 paf 4995: grep -v '^ *+' conftest.er1 >conftest.err
4996: rm -f conftest.er1
4997: cat conftest.err >&5
1.62 paf 4998: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999: (exit $ac_status); } &&
1.86 paf 5000: { ac_try='test -z "$ac_c_werror_flag"
5001: || test ! -s conftest.err'
5002: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003: (eval $ac_try) 2>&5
5004: ac_status=$?
5005: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006: (exit $ac_status); }; } &&
5007: { ac_try='test -s conftest$ac_exeext'
1.62 paf 5008: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009: (eval $ac_try) 2>&5
5010: ac_status=$?
5011: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012: (exit $ac_status); }; }; then
1.66 paf 5013: eval "$as_ac_var=yes"
1.62 paf 5014: else
5015: echo "$as_me: failed program was:" >&5
5016: sed 's/^/| /' conftest.$ac_ext >&5
5017:
1.66 paf 5018: eval "$as_ac_var=no"
1.62 paf 5019: fi
1.86 paf 5020: rm -f conftest.err conftest.$ac_objext \
5021: conftest$ac_exeext conftest.$ac_ext
1.62 paf 5022: fi
1.66 paf 5023: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5024: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5025: if test `eval echo '${'$as_ac_var'}'` = yes; then
5026: cat >>confdefs.h <<_ACEOF
5027: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5028: _ACEOF
5029:
5030: fi
5031: done
5032:
5033: LIBS="$LIBS_SAVE"
5034: fi
5035:
5036:
1.64 paf 5037:
5038:
1.79 paf 5039: echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5040: echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5041: if test "${ac_cv_c_bigendian+set}" = set; then
5042: echo $ECHO_N "(cached) $ECHO_C" >&6
5043: else
5044: # See if sys/param.h defines the BYTE_ORDER macro.
5045: cat >conftest.$ac_ext <<_ACEOF
5046: /* confdefs.h. */
5047: _ACEOF
5048: cat confdefs.h >>conftest.$ac_ext
5049: cat >>conftest.$ac_ext <<_ACEOF
5050: /* end confdefs.h. */
5051: #include <sys/types.h>
5052: #include <sys/param.h>
5053:
5054: int
5055: main ()
5056: {
5057: #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5058: bogus endian macros
5059: #endif
5060:
5061: ;
5062: return 0;
5063: }
5064: _ACEOF
5065: rm -f conftest.$ac_objext
5066: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 5067: (eval $ac_compile) 2>conftest.er1
1.79 paf 5068: ac_status=$?
1.86 paf 5069: grep -v '^ *+' conftest.er1 >conftest.err
5070: rm -f conftest.er1
5071: cat conftest.err >&5
1.79 paf 5072: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073: (exit $ac_status); } &&
1.86 paf 5074: { ac_try='test -z "$ac_c_werror_flag"
5075: || test ! -s conftest.err'
5076: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077: (eval $ac_try) 2>&5
5078: ac_status=$?
5079: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080: (exit $ac_status); }; } &&
5081: { ac_try='test -s conftest.$ac_objext'
1.79 paf 5082: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083: (eval $ac_try) 2>&5
5084: ac_status=$?
5085: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086: (exit $ac_status); }; }; then
5087: # It does; now see whether it defined to BIG_ENDIAN or not.
5088: cat >conftest.$ac_ext <<_ACEOF
5089: /* confdefs.h. */
5090: _ACEOF
5091: cat confdefs.h >>conftest.$ac_ext
5092: cat >>conftest.$ac_ext <<_ACEOF
5093: /* end confdefs.h. */
5094: #include <sys/types.h>
5095: #include <sys/param.h>
5096:
5097: int
5098: main ()
5099: {
5100: #if BYTE_ORDER != BIG_ENDIAN
5101: not big endian
5102: #endif
5103:
5104: ;
5105: return 0;
5106: }
5107: _ACEOF
5108: rm -f conftest.$ac_objext
5109: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 5110: (eval $ac_compile) 2>conftest.er1
1.79 paf 5111: ac_status=$?
1.86 paf 5112: grep -v '^ *+' conftest.er1 >conftest.err
5113: rm -f conftest.er1
5114: cat conftest.err >&5
1.79 paf 5115: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116: (exit $ac_status); } &&
1.86 paf 5117: { ac_try='test -z "$ac_c_werror_flag"
5118: || test ! -s conftest.err'
5119: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120: (eval $ac_try) 2>&5
5121: ac_status=$?
5122: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123: (exit $ac_status); }; } &&
5124: { ac_try='test -s conftest.$ac_objext'
1.79 paf 5125: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126: (eval $ac_try) 2>&5
5127: ac_status=$?
5128: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129: (exit $ac_status); }; }; then
5130: ac_cv_c_bigendian=yes
5131: else
5132: echo "$as_me: failed program was:" >&5
5133: sed 's/^/| /' conftest.$ac_ext >&5
5134:
5135: ac_cv_c_bigendian=no
5136: fi
1.86 paf 5137: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.79 paf 5138: else
5139: echo "$as_me: failed program was:" >&5
5140: sed 's/^/| /' conftest.$ac_ext >&5
5141:
5142: # It does not; compile a test program.
5143: if test "$cross_compiling" = yes; then
5144: # try to guess the endianness by grepping values into an object file
5145: ac_cv_c_bigendian=unknown
5146: cat >conftest.$ac_ext <<_ACEOF
5147: /* confdefs.h. */
5148: _ACEOF
5149: cat confdefs.h >>conftest.$ac_ext
5150: cat >>conftest.$ac_ext <<_ACEOF
5151: /* end confdefs.h. */
5152: short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5153: short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5154: void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5155: short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5156: short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5157: void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5158: int
5159: main ()
5160: {
5161: _ascii (); _ebcdic ();
5162: ;
5163: return 0;
5164: }
5165: _ACEOF
5166: rm -f conftest.$ac_objext
5167: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 5168: (eval $ac_compile) 2>conftest.er1
1.79 paf 5169: ac_status=$?
1.86 paf 5170: grep -v '^ *+' conftest.er1 >conftest.err
5171: rm -f conftest.er1
5172: cat conftest.err >&5
1.79 paf 5173: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174: (exit $ac_status); } &&
1.86 paf 5175: { ac_try='test -z "$ac_c_werror_flag"
5176: || test ! -s conftest.err'
5177: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178: (eval $ac_try) 2>&5
5179: ac_status=$?
5180: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181: (exit $ac_status); }; } &&
5182: { ac_try='test -s conftest.$ac_objext'
1.79 paf 5183: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184: (eval $ac_try) 2>&5
5185: ac_status=$?
5186: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187: (exit $ac_status); }; }; then
5188: if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5189: ac_cv_c_bigendian=yes
5190: fi
5191: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5192: if test "$ac_cv_c_bigendian" = unknown; then
5193: ac_cv_c_bigendian=no
5194: else
5195: # finding both strings is unlikely to happen, but who knows?
5196: ac_cv_c_bigendian=unknown
5197: fi
5198: fi
5199: else
5200: echo "$as_me: failed program was:" >&5
5201: sed 's/^/| /' conftest.$ac_ext >&5
5202:
5203: fi
1.86 paf 5204: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.79 paf 5205: else
5206: cat >conftest.$ac_ext <<_ACEOF
5207: /* confdefs.h. */
5208: _ACEOF
5209: cat confdefs.h >>conftest.$ac_ext
5210: cat >>conftest.$ac_ext <<_ACEOF
5211: /* end confdefs.h. */
5212: int
5213: main ()
5214: {
5215: /* Are we little or big endian? From Harbison&Steele. */
5216: union
5217: {
5218: long l;
5219: char c[sizeof (long)];
5220: } u;
5221: u.l = 1;
5222: exit (u.c[sizeof (long) - 1] == 1);
5223: }
5224: _ACEOF
5225: rm -f conftest$ac_exeext
5226: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5227: (eval $ac_link) 2>&5
5228: ac_status=$?
5229: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5231: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232: (eval $ac_try) 2>&5
5233: ac_status=$?
5234: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235: (exit $ac_status); }; }; then
5236: ac_cv_c_bigendian=no
5237: else
5238: echo "$as_me: program exited with status $ac_status" >&5
5239: echo "$as_me: failed program was:" >&5
5240: sed 's/^/| /' conftest.$ac_ext >&5
5241:
5242: ( exit $ac_status )
5243: ac_cv_c_bigendian=yes
5244: fi
1.86 paf 5245: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.79 paf 5246: fi
5247: fi
1.86 paf 5248: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.79 paf 5249: fi
5250: echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5251: echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5252: case $ac_cv_c_bigendian in
5253: yes)
5254:
5255: cat >>confdefs.h <<\_ACEOF
5256: #define PA_BIG_ENDIAN
5257: _ACEOF
5258:
5259: ;;
5260: no)
5261:
5262: cat >>confdefs.h <<\_ACEOF
5263: #define PA_LITTLE_ENDIAN
5264: _ACEOF
5265:
5266: ;;
5267: *)
5268: { { echo "$as_me:$LINENO: error: word endianness not determined for some obscure reason" >&5
5269: echo "$as_me: error: word endianness not determined for some obscure reason" >&2;}
5270: { (exit 1); exit 1; }; }
5271: ;;
5272: esac
5273:
5274:
1.66 paf 5275: ac_ext=c
5276: ac_cpp='$CPP $CPPFLAGS'
5277: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5278: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5279: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5280: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5281: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5282: # On Suns, sometimes $CPP names a directory.
5283: if test -n "$CPP" && test -d "$CPP"; then
5284: CPP=
5285: fi
5286: if test -z "$CPP"; then
5287: if test "${ac_cv_prog_CPP+set}" = set; then
1.62 paf 5288: echo $ECHO_N "(cached) $ECHO_C" >&6
5289: else
1.66 paf 5290: # Double quotes because CPP needs to be expanded
5291: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5292: do
5293: ac_preproc_ok=false
5294: for ac_c_preproc_warn_flag in '' yes
5295: do
5296: # Use a header file that comes with gcc, so configuring glibc
5297: # with a fresh cross-compiler works.
5298: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5299: # <limits.h> exists even on freestanding compilers.
5300: # On the NeXT, cc -E runs the code through the compiler's parser,
5301: # not just through cpp. "Syntax error" is here to catch this case.
5302: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 5303: /* confdefs.h. */
5304: _ACEOF
5305: cat confdefs.h >>conftest.$ac_ext
5306: cat >>conftest.$ac_ext <<_ACEOF
5307: /* end confdefs.h. */
1.66 paf 5308: #ifdef __STDC__
5309: # include <limits.h>
5310: #else
5311: # include <assert.h>
1.8 paf 5312: #endif
1.86 paf 5313: Syntax error
1.62 paf 5314: _ACEOF
1.66 paf 5315: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5316: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.62 paf 5317: ac_status=$?
1.66 paf 5318: grep -v '^ *+' conftest.er1 >conftest.err
5319: rm -f conftest.er1
5320: cat conftest.err >&5
1.62 paf 5321: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 5322: (exit $ac_status); } >/dev/null; then
5323: if test -s conftest.err; then
5324: ac_cpp_err=$ac_c_preproc_warn_flag
1.86 paf 5325: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.66 paf 5326: else
5327: ac_cpp_err=
5328: fi
5329: else
5330: ac_cpp_err=yes
5331: fi
5332: if test -z "$ac_cpp_err"; then
5333: :
1.62 paf 5334: else
5335: echo "$as_me: failed program was:" >&5
5336: sed 's/^/| /' conftest.$ac_ext >&5
5337:
1.66 paf 5338: # Broken: fails on valid input.
5339: continue
1.62 paf 5340: fi
1.66 paf 5341: rm -f conftest.err conftest.$ac_ext
1.64 paf 5342:
1.66 paf 5343: # OK, works on sane cases. Now check whether non-existent headers
5344: # can be detected and how.
5345: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 5346: /* confdefs.h. */
5347: _ACEOF
5348: cat confdefs.h >>conftest.$ac_ext
5349: cat >>conftest.$ac_ext <<_ACEOF
5350: /* end confdefs.h. */
1.66 paf 5351: #include <ac_nonexistent.h>
1.62 paf 5352: _ACEOF
1.66 paf 5353: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5354: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.62 paf 5355: ac_status=$?
1.66 paf 5356: grep -v '^ *+' conftest.er1 >conftest.err
5357: rm -f conftest.er1
5358: cat conftest.err >&5
1.62 paf 5359: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 5360: (exit $ac_status); } >/dev/null; then
5361: if test -s conftest.err; then
5362: ac_cpp_err=$ac_c_preproc_warn_flag
1.86 paf 5363: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.66 paf 5364: else
5365: ac_cpp_err=
5366: fi
5367: else
5368: ac_cpp_err=yes
5369: fi
5370: if test -z "$ac_cpp_err"; then
5371: # Broken: success on invalid input.
5372: continue
1.62 paf 5373: else
5374: echo "$as_me: failed program was:" >&5
5375: sed 's/^/| /' conftest.$ac_ext >&5
5376:
1.66 paf 5377: # Passes both tests.
5378: ac_preproc_ok=:
5379: break
1.62 paf 5380: fi
1.66 paf 5381: rm -f conftest.err conftest.$ac_ext
5382:
5383: done
5384: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5385: rm -f conftest.err conftest.$ac_ext
5386: if $ac_preproc_ok; then
5387: break
1.62 paf 5388: fi
1.64 paf 5389:
1.66 paf 5390: done
5391: ac_cv_prog_CPP=$CPP
1.64 paf 5392:
1.66 paf 5393: fi
5394: CPP=$ac_cv_prog_CPP
1.64 paf 5395: else
1.66 paf 5396: ac_cv_prog_CPP=$CPP
5397: fi
5398: echo "$as_me:$LINENO: result: $CPP" >&5
5399: echo "${ECHO_T}$CPP" >&6
5400: ac_preproc_ok=false
5401: for ac_c_preproc_warn_flag in '' yes
5402: do
5403: # Use a header file that comes with gcc, so configuring glibc
5404: # with a fresh cross-compiler works.
5405: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5406: # <limits.h> exists even on freestanding compilers.
5407: # On the NeXT, cc -E runs the code through the compiler's parser,
5408: # not just through cpp. "Syntax error" is here to catch this case.
1.64 paf 5409: cat >conftest.$ac_ext <<_ACEOF
5410: /* confdefs.h. */
5411: _ACEOF
5412: cat confdefs.h >>conftest.$ac_ext
5413: cat >>conftest.$ac_ext <<_ACEOF
5414: /* end confdefs.h. */
1.66 paf 5415: #ifdef __STDC__
5416: # include <limits.h>
5417: #else
5418: # include <assert.h>
1.64 paf 5419: #endif
1.86 paf 5420: Syntax error
1.64 paf 5421: _ACEOF
1.66 paf 5422: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5423: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.64 paf 5424: ac_status=$?
1.66 paf 5425: grep -v '^ *+' conftest.er1 >conftest.err
5426: rm -f conftest.er1
5427: cat conftest.err >&5
1.64 paf 5428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 5429: (exit $ac_status); } >/dev/null; then
5430: if test -s conftest.err; then
5431: ac_cpp_err=$ac_c_preproc_warn_flag
1.86 paf 5432: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.66 paf 5433: else
5434: ac_cpp_err=
5435: fi
5436: else
5437: ac_cpp_err=yes
5438: fi
5439: if test -z "$ac_cpp_err"; then
5440: :
1.62 paf 5441: else
1.64 paf 5442: echo "$as_me: failed program was:" >&5
5443: sed 's/^/| /' conftest.$ac_ext >&5
5444:
1.66 paf 5445: # Broken: fails on valid input.
5446: continue
5447: fi
5448: rm -f conftest.err conftest.$ac_ext
5449:
5450: # OK, works on sane cases. Now check whether non-existent headers
5451: # can be detected and how.
5452: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 5453: /* confdefs.h. */
5454: _ACEOF
5455: cat confdefs.h >>conftest.$ac_ext
5456: cat >>conftest.$ac_ext <<_ACEOF
5457: /* end confdefs.h. */
1.66 paf 5458: #include <ac_nonexistent.h>
1.62 paf 5459: _ACEOF
1.66 paf 5460: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5461: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.62 paf 5462: ac_status=$?
1.66 paf 5463: grep -v '^ *+' conftest.er1 >conftest.err
5464: rm -f conftest.er1
5465: cat conftest.err >&5
1.62 paf 5466: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 5467: (exit $ac_status); } >/dev/null; then
5468: if test -s conftest.err; then
5469: ac_cpp_err=$ac_c_preproc_warn_flag
1.86 paf 5470: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.66 paf 5471: else
5472: ac_cpp_err=
5473: fi
5474: else
5475: ac_cpp_err=yes
5476: fi
5477: if test -z "$ac_cpp_err"; then
5478: # Broken: success on invalid input.
5479: continue
1.62 paf 5480: else
5481: echo "$as_me: failed program was:" >&5
5482: sed 's/^/| /' conftest.$ac_ext >&5
5483:
1.66 paf 5484: # Passes both tests.
5485: ac_preproc_ok=:
5486: break
1.62 paf 5487: fi
1.66 paf 5488: rm -f conftest.err conftest.$ac_ext
5489:
5490: done
5491: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5492: rm -f conftest.err conftest.$ac_ext
5493: if $ac_preproc_ok; then
5494: :
5495: else
5496: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5497: See \`config.log' for more details." >&5
5498: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5499: See \`config.log' for more details." >&2;}
5500: { (exit 1); exit 1; }; }
1.62 paf 5501: fi
1.64 paf 5502:
1.66 paf 5503: ac_ext=c
5504: ac_cpp='$CPP $CPPFLAGS'
5505: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508:
1.1 paf 5509:
1.66 paf 5510: echo "$as_me:$LINENO: checking for egrep" >&5
5511: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5512: if test "${ac_cv_prog_egrep+set}" = set; then
5513: echo $ECHO_N "(cached) $ECHO_C" >&6
1.64 paf 5514: else
1.66 paf 5515: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5516: then ac_cv_prog_egrep='grep -E'
5517: else ac_cv_prog_egrep='egrep'
5518: fi
5519: fi
5520: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5521: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5522: EGREP=$ac_cv_prog_egrep
5523:
5524:
5525: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5526: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5527: if test "${ac_cv_header_stdc+set}" = set; then
1.62 paf 5528: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 paf 5529: else
1.66 paf 5530: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 5531: /* confdefs.h. */
5532: _ACEOF
5533: cat confdefs.h >>conftest.$ac_ext
5534: cat >>conftest.$ac_ext <<_ACEOF
5535: /* end confdefs.h. */
1.66 paf 5536: #include <stdlib.h>
5537: #include <stdarg.h>
5538: #include <string.h>
5539: #include <float.h>
1.62 paf 5540:
5541: int
5542: main ()
5543: {
1.66 paf 5544:
1.62 paf 5545: ;
5546: return 0;
5547: }
5548: _ACEOF
1.66 paf 5549: rm -f conftest.$ac_objext
5550: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 5551: (eval $ac_compile) 2>conftest.er1
1.62 paf 5552: ac_status=$?
1.86 paf 5553: grep -v '^ *+' conftest.er1 >conftest.err
5554: rm -f conftest.er1
5555: cat conftest.err >&5
1.62 paf 5556: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557: (exit $ac_status); } &&
1.86 paf 5558: { ac_try='test -z "$ac_c_werror_flag"
5559: || test ! -s conftest.err'
5560: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561: (eval $ac_try) 2>&5
5562: ac_status=$?
5563: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564: (exit $ac_status); }; } &&
5565: { ac_try='test -s conftest.$ac_objext'
1.62 paf 5566: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567: (eval $ac_try) 2>&5
5568: ac_status=$?
5569: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570: (exit $ac_status); }; }; then
1.66 paf 5571: ac_cv_header_stdc=yes
1.62 paf 5572: else
5573: echo "$as_me: failed program was:" >&5
5574: sed 's/^/| /' conftest.$ac_ext >&5
5575:
1.66 paf 5576: ac_cv_header_stdc=no
1.62 paf 5577: fi
1.86 paf 5578: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.64 paf 5579:
1.66 paf 5580: if test $ac_cv_header_stdc = yes; then
5581: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5582: cat >conftest.$ac_ext <<_ACEOF
5583: /* confdefs.h. */
1.62 paf 5584: _ACEOF
1.66 paf 5585: cat confdefs.h >>conftest.$ac_ext
5586: cat >>conftest.$ac_ext <<_ACEOF
5587: /* end confdefs.h. */
5588: #include <string.h>
1.64 paf 5589:
1.66 paf 5590: _ACEOF
5591: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5592: $EGREP "memchr" >/dev/null 2>&1; then
5593: :
5594: else
5595: ac_cv_header_stdc=no
1.64 paf 5596: fi
1.66 paf 5597: rm -f conftest*
1.64 paf 5598:
5599: fi
5600:
1.66 paf 5601: if test $ac_cv_header_stdc = yes; then
5602: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5603: cat >conftest.$ac_ext <<_ACEOF
5604: /* confdefs.h. */
5605: _ACEOF
5606: cat confdefs.h >>conftest.$ac_ext
5607: cat >>conftest.$ac_ext <<_ACEOF
5608: /* end confdefs.h. */
5609: #include <stdlib.h>
1.64 paf 5610:
1.66 paf 5611: _ACEOF
5612: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5613: $EGREP "free" >/dev/null 2>&1; then
5614: :
5615: else
5616: ac_cv_header_stdc=no
1.64 paf 5617: fi
1.66 paf 5618: rm -f conftest*
1.64 paf 5619:
5620: fi
5621:
1.66 paf 5622: if test $ac_cv_header_stdc = yes; then
5623: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5624: if test "$cross_compiling" = yes; then
5625: :
1.64 paf 5626: else
5627: cat >conftest.$ac_ext <<_ACEOF
5628: /* confdefs.h. */
5629: _ACEOF
5630: cat confdefs.h >>conftest.$ac_ext
5631: cat >>conftest.$ac_ext <<_ACEOF
5632: /* end confdefs.h. */
1.66 paf 5633: #include <ctype.h>
5634: #if ((' ' & 0x0FF) == 0x020)
5635: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5636: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1.64 paf 5637: #else
1.66 paf 5638: # define ISLOWER(c) \
1.86 paf 5639: (('a' <= (c) && (c) <= 'i') \
5640: || ('j' <= (c) && (c) <= 'r') \
5641: || ('s' <= (c) && (c) <= 'z'))
1.66 paf 5642: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1.64 paf 5643: #endif
5644:
1.66 paf 5645: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.64 paf 5646: int
5647: main ()
5648: {
1.66 paf 5649: int i;
5650: for (i = 0; i < 256; i++)
5651: if (XOR (islower (i), ISLOWER (i))
1.86 paf 5652: || toupper (i) != TOUPPER (i))
1.66 paf 5653: exit(2);
5654: exit (0);
1.64 paf 5655: }
5656: _ACEOF
1.66 paf 5657: rm -f conftest$ac_exeext
1.64 paf 5658: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5659: (eval $ac_link) 2>&5
5660: ac_status=$?
5661: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 5662: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.64 paf 5663: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664: (eval $ac_try) 2>&5
5665: ac_status=$?
5666: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667: (exit $ac_status); }; }; then
1.66 paf 5668: :
1.64 paf 5669: else
1.66 paf 5670: echo "$as_me: program exited with status $ac_status" >&5
5671: echo "$as_me: failed program was:" >&5
1.64 paf 5672: sed 's/^/| /' conftest.$ac_ext >&5
5673:
1.66 paf 5674: ( exit $ac_status )
5675: ac_cv_header_stdc=no
5676: fi
1.86 paf 5677: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.66 paf 5678: fi
1.64 paf 5679: fi
5680: fi
1.66 paf 5681: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5682: echo "${ECHO_T}$ac_cv_header_stdc" >&6
5683: if test $ac_cv_header_stdc = yes; then
5684:
5685: cat >>confdefs.h <<\_ACEOF
5686: #define STDC_HEADERS 1
1.64 paf 5687: _ACEOF
5688:
5689: fi
5690:
1.66 paf 5691: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5692:
5693:
5694:
5695:
5696:
1.1 paf 5697:
5698:
1.62 paf 5699:
5700:
1.66 paf 5701: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
1.86 paf 5702: inttypes.h stdint.h unistd.h
1.66 paf 5703: do
5704: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5705: echo "$as_me:$LINENO: checking for $ac_header" >&5
5706: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5707: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.62 paf 5708: echo $ECHO_N "(cached) $ECHO_C" >&6
5709: else
5710: cat >conftest.$ac_ext <<_ACEOF
5711: /* confdefs.h. */
5712: _ACEOF
5713: cat confdefs.h >>conftest.$ac_ext
5714: cat >>conftest.$ac_ext <<_ACEOF
5715: /* end confdefs.h. */
1.66 paf 5716: $ac_includes_default
5717:
5718: #include <$ac_header>
1.62 paf 5719: _ACEOF
1.66 paf 5720: rm -f conftest.$ac_objext
5721: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 5722: (eval $ac_compile) 2>conftest.er1
1.66 paf 5723: ac_status=$?
1.86 paf 5724: grep -v '^ *+' conftest.er1 >conftest.err
5725: rm -f conftest.er1
5726: cat conftest.err >&5
1.66 paf 5727: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728: (exit $ac_status); } &&
1.86 paf 5729: { ac_try='test -z "$ac_c_werror_flag"
5730: || test ! -s conftest.err'
5731: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732: (eval $ac_try) 2>&5
5733: ac_status=$?
5734: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735: (exit $ac_status); }; } &&
5736: { ac_try='test -s conftest.$ac_objext'
1.66 paf 5737: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738: (eval $ac_try) 2>&5
1.62 paf 5739: ac_status=$?
5740: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 5741: (exit $ac_status); }; }; then
5742: eval "$as_ac_Header=yes"
1.62 paf 5743: else
5744: echo "$as_me: failed program was:" >&5
5745: sed 's/^/| /' conftest.$ac_ext >&5
5746:
1.66 paf 5747: eval "$as_ac_Header=no"
5748: fi
1.86 paf 5749: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 5750: fi
5751: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5752: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5753: if test `eval echo '${'$as_ac_Header'}'` = yes; then
5754: cat >>confdefs.h <<_ACEOF
5755: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5756: _ACEOF
5757:
1.1 paf 5758: fi
5759:
1.66 paf 5760: done
5761:
5762:
5763: echo "$as_me:$LINENO: checking for size_t" >&5
5764: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5765: if test "${ac_cv_type_size_t+set}" = set; then
5766: echo $ECHO_N "(cached) $ECHO_C" >&6
5767: else
1.62 paf 5768: cat >conftest.$ac_ext <<_ACEOF
5769: /* confdefs.h. */
5770: _ACEOF
5771: cat confdefs.h >>conftest.$ac_ext
5772: cat >>conftest.$ac_ext <<_ACEOF
5773: /* end confdefs.h. */
1.66 paf 5774: $ac_includes_default
5775: int
5776: main ()
5777: {
5778: if ((size_t *) 0)
5779: return 0;
5780: if (sizeof (size_t))
5781: return 0;
5782: ;
5783: return 0;
5784: }
1.62 paf 5785: _ACEOF
1.66 paf 5786: rm -f conftest.$ac_objext
5787: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 5788: (eval $ac_compile) 2>conftest.er1
1.66 paf 5789: ac_status=$?
1.86 paf 5790: grep -v '^ *+' conftest.er1 >conftest.err
5791: rm -f conftest.er1
5792: cat conftest.err >&5
1.66 paf 5793: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794: (exit $ac_status); } &&
1.86 paf 5795: { ac_try='test -z "$ac_c_werror_flag"
5796: || test ! -s conftest.err'
5797: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798: (eval $ac_try) 2>&5
5799: ac_status=$?
5800: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801: (exit $ac_status); }; } &&
5802: { ac_try='test -s conftest.$ac_objext'
1.66 paf 5803: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804: (eval $ac_try) 2>&5
1.62 paf 5805: ac_status=$?
5806: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 5807: (exit $ac_status); }; }; then
5808: ac_cv_type_size_t=yes
1.1 paf 5809: else
1.62 paf 5810: echo "$as_me: failed program was:" >&5
5811: sed 's/^/| /' conftest.$ac_ext >&5
5812:
1.66 paf 5813: ac_cv_type_size_t=no
1.1 paf 5814: fi
1.86 paf 5815: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 5816: fi
1.66 paf 5817: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5818: echo "${ECHO_T}$ac_cv_type_size_t" >&6
5819: if test $ac_cv_type_size_t = yes; then
5820: :
5821: else
1.1 paf 5822:
1.66 paf 5823: cat >>confdefs.h <<_ACEOF
5824: #define size_t unsigned
5825: _ACEOF
1.62 paf 5826:
5827: fi
1.66 paf 5828:
5829: echo "$as_me:$LINENO: checking for off_t" >&5
5830: echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5831: if test "${ac_cv_type_off_t+set}" = set; then
5832: echo $ECHO_N "(cached) $ECHO_C" >&6
1.62 paf 5833: else
5834: cat >conftest.$ac_ext <<_ACEOF
5835: /* confdefs.h. */
5836: _ACEOF
5837: cat confdefs.h >>conftest.$ac_ext
5838: cat >>conftest.$ac_ext <<_ACEOF
5839: /* end confdefs.h. */
1.66 paf 5840: $ac_includes_default
5841: int
5842: main ()
5843: {
5844: if ((off_t *) 0)
5845: return 0;
5846: if (sizeof (off_t))
5847: return 0;
5848: ;
5849: return 0;
5850: }
1.62 paf 5851: _ACEOF
1.66 paf 5852: rm -f conftest.$ac_objext
5853: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 5854: (eval $ac_compile) 2>conftest.er1
1.66 paf 5855: ac_status=$?
1.86 paf 5856: grep -v '^ *+' conftest.er1 >conftest.err
5857: rm -f conftest.er1
5858: cat conftest.err >&5
1.66 paf 5859: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860: (exit $ac_status); } &&
1.86 paf 5861: { ac_try='test -z "$ac_c_werror_flag"
5862: || test ! -s conftest.err'
5863: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864: (eval $ac_try) 2>&5
5865: ac_status=$?
5866: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867: (exit $ac_status); }; } &&
5868: { ac_try='test -s conftest.$ac_objext'
1.66 paf 5869: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870: (eval $ac_try) 2>&5
1.62 paf 5871: ac_status=$?
5872: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 5873: (exit $ac_status); }; }; then
5874: ac_cv_type_off_t=yes
1.62 paf 5875: else
1.66 paf 5876: echo "$as_me: failed program was:" >&5
5877: sed 's/^/| /' conftest.$ac_ext >&5
5878:
5879: ac_cv_type_off_t=no
5880: fi
1.86 paf 5881: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 5882: fi
1.66 paf 5883: echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5884: echo "${ECHO_T}$ac_cv_type_off_t" >&6
5885: if test $ac_cv_type_off_t = yes; then
1.62 paf 5886: :
5887: else
1.1 paf 5888:
1.66 paf 5889: cat >>confdefs.h <<_ACEOF
5890: #define off_t long
5891: _ACEOF
5892:
1.62 paf 5893: fi
1.1 paf 5894:
1.66 paf 5895: echo "$as_me:$LINENO: checking for ssize_t" >&5
5896: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
5897: if test "${ac_cv_type_ssize_t+set}" = set; then
5898: echo $ECHO_N "(cached) $ECHO_C" >&6
5899: else
1.62 paf 5900: cat >conftest.$ac_ext <<_ACEOF
5901: /* confdefs.h. */
5902: _ACEOF
5903: cat confdefs.h >>conftest.$ac_ext
5904: cat >>conftest.$ac_ext <<_ACEOF
5905: /* end confdefs.h. */
1.66 paf 5906: $ac_includes_default
5907: int
5908: main ()
5909: {
5910: if ((ssize_t *) 0)
5911: return 0;
5912: if (sizeof (ssize_t))
5913: return 0;
5914: ;
5915: return 0;
5916: }
1.62 paf 5917: _ACEOF
1.66 paf 5918: rm -f conftest.$ac_objext
5919: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 5920: (eval $ac_compile) 2>conftest.er1
1.66 paf 5921: ac_status=$?
1.86 paf 5922: grep -v '^ *+' conftest.er1 >conftest.err
5923: rm -f conftest.er1
5924: cat conftest.err >&5
1.66 paf 5925: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926: (exit $ac_status); } &&
1.86 paf 5927: { ac_try='test -z "$ac_c_werror_flag"
5928: || test ! -s conftest.err'
5929: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930: (eval $ac_try) 2>&5
5931: ac_status=$?
5932: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933: (exit $ac_status); }; } &&
5934: { ac_try='test -s conftest.$ac_objext'
1.66 paf 5935: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936: (eval $ac_try) 2>&5
1.62 paf 5937: ac_status=$?
5938: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 5939: (exit $ac_status); }; }; then
5940: ac_cv_type_ssize_t=yes
1.1 paf 5941: else
1.62 paf 5942: echo "$as_me: failed program was:" >&5
5943: sed 's/^/| /' conftest.$ac_ext >&5
5944:
1.66 paf 5945: ac_cv_type_ssize_t=no
5946: fi
1.86 paf 5947: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 5948: fi
1.66 paf 5949: echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
5950: echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
5951: if test $ac_cv_type_ssize_t = yes; then
1.1 paf 5952: :
5953: else
1.66 paf 5954:
5955: cat >>confdefs.h <<_ACEOF
5956: #define ssize_t int
5957: _ACEOF
5958:
1.1 paf 5959: fi
1.62 paf 5960:
5961:
5962:
5963:
1.66 paf 5964: echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5965: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5966: if test "${ac_cv_header_time+set}" = set; then
1.62 paf 5967: echo $ECHO_N "(cached) $ECHO_C" >&6
5968: else
5969: cat >conftest.$ac_ext <<_ACEOF
5970: /* confdefs.h. */
5971: _ACEOF
5972: cat confdefs.h >>conftest.$ac_ext
5973: cat >>conftest.$ac_ext <<_ACEOF
5974: /* end confdefs.h. */
1.66 paf 5975: #include <sys/types.h>
5976: #include <sys/time.h>
5977: #include <time.h>
1.62 paf 5978:
5979: int
5980: main ()
5981: {
1.66 paf 5982: if ((struct tm *) 0)
5983: return 0;
1.62 paf 5984: ;
5985: return 0;
5986: }
5987: _ACEOF
5988: rm -f conftest.$ac_objext
5989: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 5990: (eval $ac_compile) 2>conftest.er1
1.62 paf 5991: ac_status=$?
1.86 paf 5992: grep -v '^ *+' conftest.er1 >conftest.err
5993: rm -f conftest.er1
5994: cat conftest.err >&5
1.62 paf 5995: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996: (exit $ac_status); } &&
1.86 paf 5997: { ac_try='test -z "$ac_c_werror_flag"
5998: || test ! -s conftest.err'
5999: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000: (eval $ac_try) 2>&5
6001: ac_status=$?
6002: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003: (exit $ac_status); }; } &&
6004: { ac_try='test -s conftest.$ac_objext'
1.62 paf 6005: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006: (eval $ac_try) 2>&5
6007: ac_status=$?
6008: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009: (exit $ac_status); }; }; then
1.66 paf 6010: ac_cv_header_time=yes
1.1 paf 6011: else
1.62 paf 6012: echo "$as_me: failed program was:" >&5
6013: sed 's/^/| /' conftest.$ac_ext >&5
6014:
1.66 paf 6015: ac_cv_header_time=no
1.1 paf 6016: fi
1.86 paf 6017: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 6018: fi
6019: echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6020: echo "${ECHO_T}$ac_cv_header_time" >&6
6021: if test $ac_cv_header_time = yes; then
1.1 paf 6022:
1.66 paf 6023: cat >>confdefs.h <<\_ACEOF
6024: #define TIME_WITH_SYS_TIME 1
1.62 paf 6025: _ACEOF
6026:
1.1 paf 6027: fi
6028:
6029:
1.62 paf 6030:
1.1 paf 6031:
1.66 paf 6032:
6033:
6034:
6035:
6036:
6037:
6038:
6039:
6040:
6041:
6042:
6043:
6044:
6045:
6046:
6047:
6048:
6049:
6050:
6051:
6052:
6053:
6054:
6055:
6056:
6057:
6058:
6059:
1.67 paf 6060: for ac_header in assert.h \
6061: signal.h \
1.66 paf 6062: unistd.h \
6063: process.h \
6064: stddef.h \
6065: stdarg.h \
6066: fcntl.h \
6067: sys/stat.h \
6068: io.h \
6069: stdio.h \
6070: errno.h \
6071: ctype.h \
6072: math.h \
6073: crypt.h \
6074: time.h sys/time.h \
6075: string.h \
6076: direct.h \
6077: setjmp.h \
6078: memory.h \
6079: sys/file.h \
6080: sys/locking.h \
6081: sys/types.h \
6082: sys/select.h \
6083: sys/resource.h \
6084: winsock.h \
6085: sys/socket.h \
6086: netinet/in.h \
6087: arpa/inet.h \
6088: netdb.h
6089:
6090: do
6091: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6092: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6093: echo "$as_me:$LINENO: checking for $ac_header" >&5
6094: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6095: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6096: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 6097: fi
1.66 paf 6098: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6099: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 paf 6100: else
1.66 paf 6101: # Is the header compilable?
6102: echo "$as_me:$LINENO: checking $ac_header usability" >&5
6103: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6104: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 6105: /* confdefs.h. */
6106: _ACEOF
6107: cat confdefs.h >>conftest.$ac_ext
6108: cat >>conftest.$ac_ext <<_ACEOF
6109: /* end confdefs.h. */
1.66 paf 6110: $ac_includes_default
6111: #include <$ac_header>
1.62 paf 6112: _ACEOF
1.66 paf 6113: rm -f conftest.$ac_objext
6114: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 6115: (eval $ac_compile) 2>conftest.er1
1.62 paf 6116: ac_status=$?
1.86 paf 6117: grep -v '^ *+' conftest.er1 >conftest.err
6118: rm -f conftest.er1
6119: cat conftest.err >&5
1.62 paf 6120: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 6121: (exit $ac_status); } &&
1.86 paf 6122: { ac_try='test -z "$ac_c_werror_flag"
6123: || test ! -s conftest.err'
6124: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125: (eval $ac_try) 2>&5
6126: ac_status=$?
6127: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128: (exit $ac_status); }; } &&
6129: { ac_try='test -s conftest.$ac_objext'
1.62 paf 6130: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131: (eval $ac_try) 2>&5
6132: ac_status=$?
6133: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134: (exit $ac_status); }; }; then
1.66 paf 6135: ac_header_compiler=yes
1.1 paf 6136: else
1.66 paf 6137: echo "$as_me: failed program was:" >&5
1.62 paf 6138: sed 's/^/| /' conftest.$ac_ext >&5
6139:
1.66 paf 6140: ac_header_compiler=no
1.1 paf 6141: fi
1.86 paf 6142: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 6143: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6144: echo "${ECHO_T}$ac_header_compiler" >&6
6145:
6146: # Is the header present?
6147: echo "$as_me:$LINENO: checking $ac_header presence" >&5
6148: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6149: cat >conftest.$ac_ext <<_ACEOF
6150: /* confdefs.h. */
6151: _ACEOF
6152: cat confdefs.h >>conftest.$ac_ext
6153: cat >>conftest.$ac_ext <<_ACEOF
6154: /* end confdefs.h. */
6155: #include <$ac_header>
6156: _ACEOF
6157: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6158: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6159: ac_status=$?
6160: grep -v '^ *+' conftest.er1 >conftest.err
6161: rm -f conftest.er1
6162: cat conftest.err >&5
6163: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164: (exit $ac_status); } >/dev/null; then
6165: if test -s conftest.err; then
6166: ac_cpp_err=$ac_c_preproc_warn_flag
1.86 paf 6167: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.66 paf 6168: else
6169: ac_cpp_err=
6170: fi
6171: else
6172: ac_cpp_err=yes
1.1 paf 6173: fi
1.66 paf 6174: if test -z "$ac_cpp_err"; then
6175: ac_header_preproc=yes
6176: else
6177: echo "$as_me: failed program was:" >&5
6178: sed 's/^/| /' conftest.$ac_ext >&5
6179:
6180: ac_header_preproc=no
1.1 paf 6181: fi
1.66 paf 6182: rm -f conftest.err conftest.$ac_ext
6183: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6184: echo "${ECHO_T}$ac_header_preproc" >&6
6185:
6186: # So? What about this header?
1.86 paf 6187: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6188: yes:no: )
1.66 paf 6189: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6190: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.86 paf 6191: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6192: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6193: ac_header_preproc=yes
1.66 paf 6194: ;;
1.86 paf 6195: no:yes:* )
1.66 paf 6196: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6197: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.86 paf 6198: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6199: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6200: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6201: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6202: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6203: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.66 paf 6204: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6205: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.86 paf 6206: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6207: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.66 paf 6208: (
6209: cat <<\_ASBOX
1.86 paf 6210: ## ------------------------------------------ ##
6211: ## Report this to the AC_PACKAGE_NAME lists. ##
6212: ## ------------------------------------------ ##
1.66 paf 6213: _ASBOX
6214: ) |
6215: sed "s/^/$as_me: WARNING: /" >&2
6216: ;;
6217: esac
6218: echo "$as_me:$LINENO: checking for $ac_header" >&5
6219: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6220: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6221: echo $ECHO_N "(cached) $ECHO_C" >&6
6222: else
1.86 paf 6223: eval "$as_ac_Header=\$ac_header_preproc"
1.1 paf 6224: fi
1.66 paf 6225: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6226: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 paf 6227:
1.66 paf 6228: fi
6229: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6230: cat >>confdefs.h <<_ACEOF
6231: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 6232: _ACEOF
6233:
6234: fi
6235:
1.66 paf 6236: done
1.62 paf 6237:
6238:
6239:
1.66 paf 6240: case "$host" in
1.107 misha 6241: *-freebsd4*)
6242:
6243: cat >>confdefs.h <<\_ACEOF
6244: #define FREEBSD4
6245: _ACEOF
6246:
6247: ;;
1.66 paf 6248: *-sunos5.6* | *-solaris2.6*)
1.62 paf 6249:
1.66 paf 6250: echo "$as_me:$LINENO: checking for main in -lxnet" >&5
6251: echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6
6252: if test "${ac_cv_lib_xnet_main+set}" = set; then
1.62 paf 6253: echo $ECHO_N "(cached) $ECHO_C" >&6
6254: else
1.66 paf 6255: ac_check_lib_save_LIBS=$LIBS
6256: LIBS="-lxnet $LIBS"
6257: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 6258: /* confdefs.h. */
6259: _ACEOF
6260: cat confdefs.h >>conftest.$ac_ext
6261: cat >>conftest.$ac_ext <<_ACEOF
6262: /* end confdefs.h. */
6263:
1.66 paf 6264:
6265: int
6266: main ()
6267: {
6268: main ();
6269: ;
6270: return 0;
6271: }
1.62 paf 6272: _ACEOF
1.66 paf 6273: rm -f conftest.$ac_objext conftest$ac_exeext
6274: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6275: (eval $ac_link) 2>conftest.er1
1.62 paf 6276: ac_status=$?
1.86 paf 6277: grep -v '^ *+' conftest.er1 >conftest.err
6278: rm -f conftest.er1
6279: cat conftest.err >&5
1.62 paf 6280: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281: (exit $ac_status); } &&
1.86 paf 6282: { ac_try='test -z "$ac_c_werror_flag"
6283: || test ! -s conftest.err'
6284: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285: (eval $ac_try) 2>&5
6286: ac_status=$?
6287: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288: (exit $ac_status); }; } &&
6289: { ac_try='test -s conftest$ac_exeext'
1.62 paf 6290: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291: (eval $ac_try) 2>&5
6292: ac_status=$?
6293: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294: (exit $ac_status); }; }; then
1.66 paf 6295: ac_cv_lib_xnet_main=yes
1.62 paf 6296: else
6297: echo "$as_me: failed program was:" >&5
6298: sed 's/^/| /' conftest.$ac_ext >&5
6299:
1.66 paf 6300: ac_cv_lib_xnet_main=no
1.62 paf 6301: fi
1.86 paf 6302: rm -f conftest.err conftest.$ac_objext \
6303: conftest$ac_exeext conftest.$ac_ext
1.66 paf 6304: LIBS=$ac_check_lib_save_LIBS
1.62 paf 6305: fi
1.66 paf 6306: echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_main" >&5
6307: echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6
6308: if test $ac_cv_lib_xnet_main = yes; then
1.62 paf 6309: cat >>confdefs.h <<_ACEOF
1.66 paf 6310: #define HAVE_LIBXNET 1
1.62 paf 6311: _ACEOF
1.1 paf 6312:
1.66 paf 6313: LIBS="-lxnet $LIBS"
6314:
1.1 paf 6315: fi
6316:
1.66 paf 6317: ;;
6318: *-sunos5* | *-solaris2*)
1.62 paf 6319:
1.66 paf 6320: echo "$as_me:$LINENO: checking for main in -lsocket" >&5
6321: echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
6322: if test "${ac_cv_lib_socket_main+set}" = set; then
1.62 paf 6323: echo $ECHO_N "(cached) $ECHO_C" >&6
6324: else
1.66 paf 6325: ac_check_lib_save_LIBS=$LIBS
6326: LIBS="-lsocket $LIBS"
6327: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 6328: /* confdefs.h. */
6329: _ACEOF
6330: cat confdefs.h >>conftest.$ac_ext
6331: cat >>conftest.$ac_ext <<_ACEOF
6332: /* end confdefs.h. */
1.66 paf 6333:
6334:
1.62 paf 6335: int
6336: main ()
6337: {
1.66 paf 6338: main ();
1.62 paf 6339: ;
6340: return 0;
6341: }
6342: _ACEOF
1.66 paf 6343: rm -f conftest.$ac_objext conftest$ac_exeext
6344: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6345: (eval $ac_link) 2>conftest.er1
1.62 paf 6346: ac_status=$?
1.86 paf 6347: grep -v '^ *+' conftest.er1 >conftest.err
6348: rm -f conftest.er1
6349: cat conftest.err >&5
1.62 paf 6350: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351: (exit $ac_status); } &&
1.86 paf 6352: { ac_try='test -z "$ac_c_werror_flag"
6353: || test ! -s conftest.err'
6354: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355: (eval $ac_try) 2>&5
6356: ac_status=$?
6357: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358: (exit $ac_status); }; } &&
6359: { ac_try='test -s conftest$ac_exeext'
1.62 paf 6360: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361: (eval $ac_try) 2>&5
6362: ac_status=$?
6363: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364: (exit $ac_status); }; }; then
1.66 paf 6365: ac_cv_lib_socket_main=yes
1.1 paf 6366: else
1.62 paf 6367: echo "$as_me: failed program was:" >&5
6368: sed 's/^/| /' conftest.$ac_ext >&5
6369:
1.66 paf 6370: ac_cv_lib_socket_main=no
1.1 paf 6371: fi
1.86 paf 6372: rm -f conftest.err conftest.$ac_objext \
6373: conftest$ac_exeext conftest.$ac_ext
1.66 paf 6374: LIBS=$ac_check_lib_save_LIBS
1.62 paf 6375: fi
1.66 paf 6376: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
6377: echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
6378: if test $ac_cv_lib_socket_main = yes; then
6379: cat >>confdefs.h <<_ACEOF
6380: #define HAVE_LIBSOCKET 1
6381: _ACEOF
1.1 paf 6382:
1.66 paf 6383: LIBS="-lsocket $LIBS"
1.1 paf 6384:
6385: fi
6386:
1.66 paf 6387:
6388: echo "$as_me:$LINENO: checking for main in -lnsl" >&5
6389: echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
6390: if test "${ac_cv_lib_nsl_main+set}" = set; then
1.62 paf 6391: echo $ECHO_N "(cached) $ECHO_C" >&6
6392: else
1.66 paf 6393: ac_check_lib_save_LIBS=$LIBS
6394: LIBS="-lnsl $LIBS"
6395: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 6396: /* confdefs.h. */
6397: _ACEOF
6398: cat confdefs.h >>conftest.$ac_ext
6399: cat >>conftest.$ac_ext <<_ACEOF
6400: /* end confdefs.h. */
1.66 paf 6401:
6402:
1.62 paf 6403: int
6404: main ()
6405: {
1.66 paf 6406: main ();
1.62 paf 6407: ;
6408: return 0;
6409: }
6410: _ACEOF
1.66 paf 6411: rm -f conftest.$ac_objext conftest$ac_exeext
6412: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6413: (eval $ac_link) 2>conftest.er1
1.62 paf 6414: ac_status=$?
1.86 paf 6415: grep -v '^ *+' conftest.er1 >conftest.err
6416: rm -f conftest.er1
6417: cat conftest.err >&5
1.62 paf 6418: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419: (exit $ac_status); } &&
1.86 paf 6420: { ac_try='test -z "$ac_c_werror_flag"
6421: || test ! -s conftest.err'
6422: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423: (eval $ac_try) 2>&5
6424: ac_status=$?
6425: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426: (exit $ac_status); }; } &&
6427: { ac_try='test -s conftest$ac_exeext'
1.62 paf 6428: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429: (eval $ac_try) 2>&5
6430: ac_status=$?
6431: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432: (exit $ac_status); }; }; then
1.66 paf 6433: ac_cv_lib_nsl_main=yes
1.30 paf 6434: else
1.62 paf 6435: echo "$as_me: failed program was:" >&5
6436: sed 's/^/| /' conftest.$ac_ext >&5
6437:
1.66 paf 6438: ac_cv_lib_nsl_main=no
1.30 paf 6439: fi
1.86 paf 6440: rm -f conftest.err conftest.$ac_objext \
6441: conftest$ac_exeext conftest.$ac_ext
1.66 paf 6442: LIBS=$ac_check_lib_save_LIBS
1.62 paf 6443: fi
1.66 paf 6444: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
6445: echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
6446: if test $ac_cv_lib_nsl_main = yes; then
6447: cat >>confdefs.h <<_ACEOF
6448: #define HAVE_LIBNSL 1
6449: _ACEOF
1.30 paf 6450:
1.66 paf 6451: LIBS="-lnsl $LIBS"
1.30 paf 6452:
6453: fi
6454:
1.66 paf 6455: ;;
6456: *-nec-sysv4*)
6457:
6458: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6459: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6460: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
1.62 paf 6461: echo $ECHO_N "(cached) $ECHO_C" >&6
6462: else
1.66 paf 6463: ac_check_lib_save_LIBS=$LIBS
6464: LIBS="-lnsl $LIBS"
6465: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 6466: /* confdefs.h. */
6467: _ACEOF
6468: cat confdefs.h >>conftest.$ac_ext
6469: cat >>conftest.$ac_ext <<_ACEOF
6470: /* end confdefs.h. */
1.66 paf 6471:
6472: /* Override any gcc2 internal prototype to avoid an error. */
6473: #ifdef __cplusplus
6474: extern "C"
6475: #endif
6476: /* We use char because int might match the return type of a gcc2
6477: builtin and then its argument prototype would still apply. */
6478: char gethostbyname ();
1.62 paf 6479: int
6480: main ()
6481: {
1.66 paf 6482: gethostbyname ();
1.62 paf 6483: ;
6484: return 0;
6485: }
6486: _ACEOF
1.66 paf 6487: rm -f conftest.$ac_objext conftest$ac_exeext
6488: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6489: (eval $ac_link) 2>conftest.er1
1.62 paf 6490: ac_status=$?
1.86 paf 6491: grep -v '^ *+' conftest.er1 >conftest.err
6492: rm -f conftest.er1
6493: cat conftest.err >&5
1.62 paf 6494: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495: (exit $ac_status); } &&
1.86 paf 6496: { ac_try='test -z "$ac_c_werror_flag"
6497: || test ! -s conftest.err'
6498: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499: (eval $ac_try) 2>&5
6500: ac_status=$?
6501: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502: (exit $ac_status); }; } &&
6503: { ac_try='test -s conftest$ac_exeext'
1.62 paf 6504: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505: (eval $ac_try) 2>&5
6506: ac_status=$?
6507: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508: (exit $ac_status); }; }; then
1.66 paf 6509: ac_cv_lib_nsl_gethostbyname=yes
1.30 paf 6510: else
1.62 paf 6511: echo "$as_me: failed program was:" >&5
6512: sed 's/^/| /' conftest.$ac_ext >&5
6513:
1.66 paf 6514: ac_cv_lib_nsl_gethostbyname=no
1.30 paf 6515: fi
1.86 paf 6516: rm -f conftest.err conftest.$ac_objext \
6517: conftest$ac_exeext conftest.$ac_ext
1.66 paf 6518: LIBS=$ac_check_lib_save_LIBS
1.62 paf 6519: fi
1.66 paf 6520: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6521: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6522: if test $ac_cv_lib_nsl_gethostbyname = yes; then
6523: cat >>confdefs.h <<_ACEOF
6524: #define HAVE_LIBNSL 1
6525: _ACEOF
1.30 paf 6526:
1.66 paf 6527: LIBS="-lnsl $LIBS"
1.30 paf 6528:
6529: fi
6530:
6531:
1.66 paf 6532: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6533: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
6534: if test "${ac_cv_lib_socket_socket+set}" = set; then
1.62 paf 6535: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 paf 6536: else
1.66 paf 6537: ac_check_lib_save_LIBS=$LIBS
6538: LIBS="-lsocket $LIBS"
6539: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 6540: /* confdefs.h. */
6541: _ACEOF
6542: cat confdefs.h >>conftest.$ac_ext
6543: cat >>conftest.$ac_ext <<_ACEOF
6544: /* end confdefs.h. */
6545:
1.66 paf 6546: /* Override any gcc2 internal prototype to avoid an error. */
6547: #ifdef __cplusplus
6548: extern "C"
6549: #endif
6550: /* We use char because int might match the return type of a gcc2
6551: builtin and then its argument prototype would still apply. */
6552: char socket ();
1.62 paf 6553: int
6554: main ()
6555: {
1.66 paf 6556: socket ();
1.62 paf 6557: ;
6558: return 0;
6559: }
6560: _ACEOF
1.66 paf 6561: rm -f conftest.$ac_objext conftest$ac_exeext
6562: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6563: (eval $ac_link) 2>conftest.er1
1.62 paf 6564: ac_status=$?
1.86 paf 6565: grep -v '^ *+' conftest.er1 >conftest.err
6566: rm -f conftest.er1
6567: cat conftest.err >&5
1.62 paf 6568: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569: (exit $ac_status); } &&
1.86 paf 6570: { ac_try='test -z "$ac_c_werror_flag"
6571: || test ! -s conftest.err'
6572: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573: (eval $ac_try) 2>&5
6574: ac_status=$?
6575: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576: (exit $ac_status); }; } &&
6577: { ac_try='test -s conftest$ac_exeext'
1.62 paf 6578: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579: (eval $ac_try) 2>&5
6580: ac_status=$?
6581: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582: (exit $ac_status); }; }; then
1.66 paf 6583: ac_cv_lib_socket_socket=yes
1.8 paf 6584: else
1.62 paf 6585: echo "$as_me: failed program was:" >&5
6586: sed 's/^/| /' conftest.$ac_ext >&5
6587:
1.66 paf 6588: ac_cv_lib_socket_socket=no
1.8 paf 6589: fi
1.86 paf 6590: rm -f conftest.err conftest.$ac_objext \
6591: conftest$ac_exeext conftest.$ac_ext
1.66 paf 6592: LIBS=$ac_check_lib_save_LIBS
1.8 paf 6593: fi
1.66 paf 6594: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6595: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
6596: if test $ac_cv_lib_socket_socket = yes; then
6597: cat >>confdefs.h <<_ACEOF
6598: #define HAVE_LIBSOCKET 1
6599: _ACEOF
1.8 paf 6600:
1.66 paf 6601: LIBS="-lsocket $LIBS"
1.8 paf 6602:
6603: fi
6604:
1.66 paf 6605: ;;
6606: *-cygwin*)
1.8 paf 6607:
1.66 paf 6608: cat >>confdefs.h <<\_ACEOF
6609: #define WIN32
6610: _ACEOF
1.62 paf 6611:
6612:
1.66 paf 6613: echo "$as_me:$LINENO: checking for socket in -lwsock32" >&5
6614: echo $ECHO_N "checking for socket in -lwsock32... $ECHO_C" >&6
6615: if test "${ac_cv_lib_wsock32_socket+set}" = set; then
1.62 paf 6616: echo $ECHO_N "(cached) $ECHO_C" >&6
6617: else
1.66 paf 6618: ac_check_lib_save_LIBS=$LIBS
6619: LIBS="-lwsock32 $LIBS"
1.62 paf 6620: cat >conftest.$ac_ext <<_ACEOF
6621: /* confdefs.h. */
6622: _ACEOF
6623: cat confdefs.h >>conftest.$ac_ext
6624: cat >>conftest.$ac_ext <<_ACEOF
6625: /* end confdefs.h. */
1.66 paf 6626:
6627: /* Override any gcc2 internal prototype to avoid an error. */
6628: #ifdef __cplusplus
6629: extern "C"
6630: #endif
6631: /* We use char because int might match the return type of a gcc2
6632: builtin and then its argument prototype would still apply. */
6633: char socket ();
6634: int
6635: main ()
6636: {
6637: socket ();
6638: ;
6639: return 0;
6640: }
1.62 paf 6641: _ACEOF
1.66 paf 6642: rm -f conftest.$ac_objext conftest$ac_exeext
6643: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6644: (eval $ac_link) 2>conftest.er1
1.62 paf 6645: ac_status=$?
1.86 paf 6646: grep -v '^ *+' conftest.er1 >conftest.err
6647: rm -f conftest.er1
6648: cat conftest.err >&5
1.62 paf 6649: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650: (exit $ac_status); } &&
1.86 paf 6651: { ac_try='test -z "$ac_c_werror_flag"
6652: || test ! -s conftest.err'
6653: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654: (eval $ac_try) 2>&5
6655: ac_status=$?
6656: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657: (exit $ac_status); }; } &&
6658: { ac_try='test -s conftest$ac_exeext'
1.62 paf 6659: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660: (eval $ac_try) 2>&5
6661: ac_status=$?
6662: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663: (exit $ac_status); }; }; then
1.66 paf 6664: ac_cv_lib_wsock32_socket=yes
1.62 paf 6665: else
6666: echo "$as_me: failed program was:" >&5
6667: sed 's/^/| /' conftest.$ac_ext >&5
6668:
1.66 paf 6669: ac_cv_lib_wsock32_socket=no
6670: fi
1.86 paf 6671: rm -f conftest.err conftest.$ac_objext \
6672: conftest$ac_exeext conftest.$ac_ext
1.66 paf 6673: LIBS=$ac_check_lib_save_LIBS
6674: fi
6675: echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_socket" >&5
6676: echo "${ECHO_T}$ac_cv_lib_wsock32_socket" >&6
6677: if test $ac_cv_lib_wsock32_socket = yes; then
6678: cat >>confdefs.h <<_ACEOF
6679: #define HAVE_LIBWSOCK32 1
6680: _ACEOF
6681:
6682: LIBS="-lwsock32 $LIBS"
6683:
1.62 paf 6684: fi
6685:
1.66 paf 6686: ;;
6687: # never tested this, only theoretically by letter from demos about parser2 build
6688: *-hpux*)
6689:
6690: echo "$as_me:$LINENO: checking for main in -lnsl" >&5
6691: echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
6692: if test "${ac_cv_lib_nsl_main+set}" = set; then
6693: echo $ECHO_N "(cached) $ECHO_C" >&6
6694: else
6695: ac_check_lib_save_LIBS=$LIBS
6696: LIBS="-lnsl $LIBS"
1.62 paf 6697: cat >conftest.$ac_ext <<_ACEOF
6698: /* confdefs.h. */
6699: _ACEOF
6700: cat confdefs.h >>conftest.$ac_ext
6701: cat >>conftest.$ac_ext <<_ACEOF
6702: /* end confdefs.h. */
1.66 paf 6703:
6704:
6705: int
6706: main ()
6707: {
6708: main ();
6709: ;
6710: return 0;
6711: }
1.62 paf 6712: _ACEOF
1.66 paf 6713: rm -f conftest.$ac_objext conftest$ac_exeext
6714: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6715: (eval $ac_link) 2>conftest.er1
1.66 paf 6716: ac_status=$?
1.86 paf 6717: grep -v '^ *+' conftest.er1 >conftest.err
6718: rm -f conftest.er1
6719: cat conftest.err >&5
1.66 paf 6720: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721: (exit $ac_status); } &&
1.86 paf 6722: { ac_try='test -z "$ac_c_werror_flag"
6723: || test ! -s conftest.err'
6724: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725: (eval $ac_try) 2>&5
6726: ac_status=$?
6727: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728: (exit $ac_status); }; } &&
6729: { ac_try='test -s conftest$ac_exeext'
1.66 paf 6730: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731: (eval $ac_try) 2>&5
1.62 paf 6732: ac_status=$?
6733: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 6734: (exit $ac_status); }; }; then
6735: ac_cv_lib_nsl_main=yes
1.62 paf 6736: else
6737: echo "$as_me: failed program was:" >&5
6738: sed 's/^/| /' conftest.$ac_ext >&5
6739:
1.66 paf 6740: ac_cv_lib_nsl_main=no
1.62 paf 6741: fi
1.86 paf 6742: rm -f conftest.err conftest.$ac_objext \
6743: conftest$ac_exeext conftest.$ac_ext
1.66 paf 6744: LIBS=$ac_check_lib_save_LIBS
1.1 paf 6745: fi
1.66 paf 6746: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
6747: echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
6748: if test $ac_cv_lib_nsl_main = yes; then
1.62 paf 6749: cat >>confdefs.h <<_ACEOF
1.66 paf 6750: #define HAVE_LIBNSL 1
1.62 paf 6751: _ACEOF
6752:
1.66 paf 6753: LIBS="-lnsl $LIBS"
6754:
1.1 paf 6755: fi
1.62 paf 6756:
1.66 paf 6757: ;;
6758: esac
1.1 paf 6759:
6760:
1.66 paf 6761: echo "$as_me:$LINENO: checking for sin in -lm" >&5
6762: echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6763: if test "${ac_cv_lib_m_sin+set}" = set; then
1.62 paf 6764: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 6765: else
1.62 paf 6766: ac_check_lib_save_LIBS=$LIBS
1.66 paf 6767: LIBS="-lm $LIBS"
1.62 paf 6768: cat >conftest.$ac_ext <<_ACEOF
6769: /* confdefs.h. */
6770: _ACEOF
6771: cat confdefs.h >>conftest.$ac_ext
6772: cat >>conftest.$ac_ext <<_ACEOF
6773: /* end confdefs.h. */
6774:
1.66 paf 6775: /* Override any gcc2 internal prototype to avoid an error. */
6776: #ifdef __cplusplus
6777: extern "C"
6778: #endif
6779: /* We use char because int might match the return type of a gcc2
6780: builtin and then its argument prototype would still apply. */
6781: char sin ();
1.62 paf 6782: int
6783: main ()
6784: {
1.66 paf 6785: sin ();
1.62 paf 6786: ;
6787: return 0;
6788: }
6789: _ACEOF
6790: rm -f conftest.$ac_objext conftest$ac_exeext
6791: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6792: (eval $ac_link) 2>conftest.er1
1.62 paf 6793: ac_status=$?
1.86 paf 6794: grep -v '^ *+' conftest.er1 >conftest.err
6795: rm -f conftest.er1
6796: cat conftest.err >&5
1.62 paf 6797: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798: (exit $ac_status); } &&
1.86 paf 6799: { ac_try='test -z "$ac_c_werror_flag"
6800: || test ! -s conftest.err'
6801: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802: (eval $ac_try) 2>&5
6803: ac_status=$?
6804: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805: (exit $ac_status); }; } &&
6806: { ac_try='test -s conftest$ac_exeext'
1.62 paf 6807: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808: (eval $ac_try) 2>&5
6809: ac_status=$?
6810: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811: (exit $ac_status); }; }; then
1.66 paf 6812: ac_cv_lib_m_sin=yes
1.62 paf 6813: else
6814: echo "$as_me: failed program was:" >&5
6815: sed 's/^/| /' conftest.$ac_ext >&5
6816:
1.66 paf 6817: ac_cv_lib_m_sin=no
1.62 paf 6818: fi
1.86 paf 6819: rm -f conftest.err conftest.$ac_objext \
6820: conftest$ac_exeext conftest.$ac_ext
1.62 paf 6821: LIBS=$ac_check_lib_save_LIBS
6822: fi
1.66 paf 6823: echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6824: echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6825: if test $ac_cv_lib_m_sin = yes; then
1.62 paf 6826: cat >>confdefs.h <<_ACEOF
1.66 paf 6827: #define HAVE_LIBM 1
1.62 paf 6828: _ACEOF
1.1 paf 6829:
1.66 paf 6830: LIBS="-lm $LIBS"
1.1 paf 6831:
6832: fi
6833:
1.62 paf 6834:
1.66 paf 6835:
6836: echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
6837: echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
6838: if test "${ac_cv_lib_crypt_crypt+set}" = set; then
1.62 paf 6839: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 6840: else
1.62 paf 6841: ac_check_lib_save_LIBS=$LIBS
1.66 paf 6842: LIBS="-lcrypt $LIBS"
1.62 paf 6843: cat >conftest.$ac_ext <<_ACEOF
6844: /* confdefs.h. */
6845: _ACEOF
6846: cat confdefs.h >>conftest.$ac_ext
6847: cat >>conftest.$ac_ext <<_ACEOF
6848: /* end confdefs.h. */
6849:
1.66 paf 6850: /* Override any gcc2 internal prototype to avoid an error. */
6851: #ifdef __cplusplus
6852: extern "C"
6853: #endif
6854: /* We use char because int might match the return type of a gcc2
6855: builtin and then its argument prototype would still apply. */
6856: char crypt ();
1.62 paf 6857: int
6858: main ()
6859: {
1.66 paf 6860: crypt ();
1.62 paf 6861: ;
6862: return 0;
6863: }
6864: _ACEOF
6865: rm -f conftest.$ac_objext conftest$ac_exeext
6866: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6867: (eval $ac_link) 2>conftest.er1
1.62 paf 6868: ac_status=$?
1.86 paf 6869: grep -v '^ *+' conftest.er1 >conftest.err
6870: rm -f conftest.er1
6871: cat conftest.err >&5
1.62 paf 6872: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873: (exit $ac_status); } &&
1.86 paf 6874: { ac_try='test -z "$ac_c_werror_flag"
6875: || test ! -s conftest.err'
6876: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877: (eval $ac_try) 2>&5
6878: ac_status=$?
6879: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880: (exit $ac_status); }; } &&
6881: { ac_try='test -s conftest$ac_exeext'
1.62 paf 6882: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883: (eval $ac_try) 2>&5
6884: ac_status=$?
6885: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886: (exit $ac_status); }; }; then
1.66 paf 6887: ac_cv_lib_crypt_crypt=yes
1.62 paf 6888: else
6889: echo "$as_me: failed program was:" >&5
6890: sed 's/^/| /' conftest.$ac_ext >&5
6891:
1.66 paf 6892: ac_cv_lib_crypt_crypt=no
1.62 paf 6893: fi
1.86 paf 6894: rm -f conftest.err conftest.$ac_objext \
6895: conftest$ac_exeext conftest.$ac_ext
1.62 paf 6896: LIBS=$ac_check_lib_save_LIBS
6897: fi
1.66 paf 6898: echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
6899: echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
6900: if test $ac_cv_lib_crypt_crypt = yes; then
1.62 paf 6901: cat >>confdefs.h <<_ACEOF
1.66 paf 6902: #define HAVE_LIBCRYPT 1
1.62 paf 6903: _ACEOF
1.1 paf 6904:
1.66 paf 6905: LIBS="-lcrypt $LIBS"
6906:
6907: fi
6908:
6909:
6910:
6911:
6912:
6913:
6914:
6915:
6916:
6917:
6918:
6919:
1.80 paf 6920:
1.92 misha 6921:
1.112 misha 6922:
1.67 paf 6923: for ac_func in flock \
1.66 paf 6924: _locking \
6925: fcntl \
6926: lockf \
6927: ftruncate \
1.112 misha 6928: fchmod \
1.66 paf 6929: getrusage \
6930: gettimeofday \
6931: crypt \
1.80 paf 6932: sigsetjmp \
1.92 misha 6933: siglongjmp \
6934: unsetenv
1.66 paf 6935:
6936: do
6937: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6938: echo "$as_me:$LINENO: checking for $ac_func" >&5
6939: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6940: if eval "test \"\${$as_ac_var+set}\" = set"; then
6941: echo $ECHO_N "(cached) $ECHO_C" >&6
6942: else
6943: cat >conftest.$ac_ext <<_ACEOF
6944: /* confdefs.h. */
6945: _ACEOF
6946: cat confdefs.h >>conftest.$ac_ext
6947: cat >>conftest.$ac_ext <<_ACEOF
6948: /* end confdefs.h. */
1.86 paf 6949: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6950: For example, HP-UX 11i <limits.h> declares gettimeofday. */
6951: #define $ac_func innocuous_$ac_func
6952:
1.66 paf 6953: /* System header to define __stub macros and hopefully few prototypes,
6954: which can conflict with char $ac_func (); below.
6955: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6956: <limits.h> exists even on freestanding compilers. */
1.86 paf 6957:
1.66 paf 6958: #ifdef __STDC__
6959: # include <limits.h>
6960: #else
6961: # include <assert.h>
6962: #endif
1.86 paf 6963:
6964: #undef $ac_func
6965:
1.66 paf 6966: /* Override any gcc2 internal prototype to avoid an error. */
6967: #ifdef __cplusplus
6968: extern "C"
6969: {
6970: #endif
6971: /* We use char because int might match the return type of a gcc2
6972: builtin and then its argument prototype would still apply. */
6973: char $ac_func ();
6974: /* The GNU C library defines this for functions which it implements
6975: to always fail with ENOSYS. Some functions are actually named
6976: something starting with __ and the normal name is an alias. */
6977: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6978: choke me
6979: #else
6980: char (*f) () = $ac_func;
6981: #endif
6982: #ifdef __cplusplus
6983: }
6984: #endif
1.62 paf 6985:
6986: int
6987: main ()
6988: {
1.66 paf 6989: return f != $ac_func;
1.62 paf 6990: ;
6991: return 0;
6992: }
6993: _ACEOF
6994: rm -f conftest.$ac_objext conftest$ac_exeext
6995: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6996: (eval $ac_link) 2>conftest.er1
1.62 paf 6997: ac_status=$?
1.86 paf 6998: grep -v '^ *+' conftest.er1 >conftest.err
6999: rm -f conftest.er1
7000: cat conftest.err >&5
1.62 paf 7001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002: (exit $ac_status); } &&
1.86 paf 7003: { ac_try='test -z "$ac_c_werror_flag"
7004: || test ! -s conftest.err'
7005: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006: (eval $ac_try) 2>&5
7007: ac_status=$?
7008: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009: (exit $ac_status); }; } &&
7010: { ac_try='test -s conftest$ac_exeext'
1.62 paf 7011: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012: (eval $ac_try) 2>&5
7013: ac_status=$?
7014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015: (exit $ac_status); }; }; then
1.66 paf 7016: eval "$as_ac_var=yes"
1.62 paf 7017: else
7018: echo "$as_me: failed program was:" >&5
7019: sed 's/^/| /' conftest.$ac_ext >&5
7020:
1.66 paf 7021: eval "$as_ac_var=no"
1.62 paf 7022: fi
1.86 paf 7023: rm -f conftest.err conftest.$ac_objext \
7024: conftest$ac_exeext conftest.$ac_ext
1.62 paf 7025: fi
1.66 paf 7026: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7027: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7028: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.62 paf 7029: cat >>confdefs.h <<_ACEOF
1.66 paf 7030: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 7031: _ACEOF
1.1 paf 7032:
1.66 paf 7033: fi
7034: done
7035:
1.1 paf 7036:
7037:
1.67 paf 7038: pa_func=sigsetjmp
7039: echo "$as_me:$LINENO: checking for (maybe built-in) function $pa_func" >&5
7040: echo $ECHO_N "checking for (maybe built-in) function $pa_func... $ECHO_C" >&6
7041: cat >conftest.$ac_ext <<_ACEOF
7042: /* confdefs.h. */
7043: _ACEOF
7044: cat confdefs.h >>conftest.$ac_ext
7045: cat >>conftest.$ac_ext <<_ACEOF
7046: /* end confdefs.h. */
7047:
7048: #ifdef HAVE_SETJMP_H
7049: # include <setjmp.h>
7050: #endif
7051:
7052: int
7053: main ()
7054: {
7055:
7056: $pa_func(0,0);
7057:
7058: ;
7059: return 0;
7060: }
7061: _ACEOF
7062: rm -f conftest.$ac_objext
7063: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 7064: (eval $ac_compile) 2>conftest.er1
1.67 paf 7065: ac_status=$?
1.86 paf 7066: grep -v '^ *+' conftest.er1 >conftest.err
7067: rm -f conftest.er1
7068: cat conftest.err >&5
1.67 paf 7069: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070: (exit $ac_status); } &&
1.86 paf 7071: { ac_try='test -z "$ac_c_werror_flag"
7072: || test ! -s conftest.err'
7073: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074: (eval $ac_try) 2>&5
7075: ac_status=$?
7076: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077: (exit $ac_status); }; } &&
7078: { ac_try='test -s conftest.$ac_objext'
1.67 paf 7079: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080: (eval $ac_try) 2>&5
7081: ac_status=$?
7082: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083: (exit $ac_status); }; }; then
7084: echo "$as_me:$LINENO: result: yes" >&5
7085: echo "${ECHO_T}yes" >&6
7086: cat >>confdefs.h <<_ACEOF
7087: #define `echo "HAVE_$pa_func" | $as_tr_cpp` 1
7088: _ACEOF
7089:
7090:
7091: else
7092: echo "$as_me: failed program was:" >&5
7093: sed 's/^/| /' conftest.$ac_ext >&5
7094:
7095: echo "$as_me:$LINENO: result: no" >&5
7096: echo "${ECHO_T}no" >&6
7097:
7098: fi
1.86 paf 7099: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 7100:
7101:
7102:
7103: ac_ext=cc
7104: ac_cpp='$CXXCPP $CPPFLAGS'
7105: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7106: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7107: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7108:
7109:
7110:
7111:
7112:
7113:
7114:
7115: for pa_func in trunc \
7116: round \
7117: sign
7118:
7119: do
7120:
7121: echo "$as_me:$LINENO: checking for (maybe built-in) math function $pa_func" >&5
7122: echo $ECHO_N "checking for (maybe built-in) math function $pa_func... $ECHO_C" >&6
7123: cat >conftest.$ac_ext <<_ACEOF
7124: /* confdefs.h. */
7125: _ACEOF
7126: cat confdefs.h >>conftest.$ac_ext
7127: cat >>conftest.$ac_ext <<_ACEOF
7128: /* end confdefs.h. */
7129:
7130: #ifdef HAVE_MATH_H
7131: # include <math.h>
7132: #endif
7133:
7134: int
7135: main ()
7136: {
7137:
7138: double result=$pa_func(1.6);
7139:
7140: ;
7141: return 0;
7142: }
7143: _ACEOF
7144: rm -f conftest.$ac_objext
7145: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 7146: (eval $ac_compile) 2>conftest.er1
1.67 paf 7147: ac_status=$?
1.86 paf 7148: grep -v '^ *+' conftest.er1 >conftest.err
7149: rm -f conftest.er1
7150: cat conftest.err >&5
1.67 paf 7151: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152: (exit $ac_status); } &&
1.86 paf 7153: { ac_try='test -z "$ac_cxx_werror_flag"
7154: || test ! -s conftest.err'
7155: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156: (eval $ac_try) 2>&5
7157: ac_status=$?
7158: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159: (exit $ac_status); }; } &&
7160: { ac_try='test -s conftest.$ac_objext'
1.67 paf 7161: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162: (eval $ac_try) 2>&5
7163: ac_status=$?
7164: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165: (exit $ac_status); }; }; then
7166: echo "$as_me:$LINENO: result: yes" >&5
7167: echo "${ECHO_T}yes" >&6
7168: cat >>confdefs.h <<_ACEOF
7169: #define `echo "HAVE_$pa_func" | $as_tr_cpp` 1
7170: _ACEOF
7171:
7172: else
7173: echo "$as_me: failed program was:" >&5
7174: sed 's/^/| /' conftest.$ac_ext >&5
7175:
7176: echo "$as_me:$LINENO: result: no" >&5
7177: echo "${ECHO_T}no" >&6
7178:
7179: fi
1.86 paf 7180: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 7181:
7182: done
7183:
7184: ac_ext=c
7185: ac_cpp='$CPP $CPPFLAGS'
7186: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7187: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7188: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7189:
7190:
7191:
1.62 paf 7192:
1.66 paf 7193: for ac_func in qsort
7194: do
7195: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7196: echo "$as_me:$LINENO: checking for $ac_func" >&5
7197: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7198: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.62 paf 7199: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 7200: else
1.66 paf 7201: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 7202: /* confdefs.h. */
7203: _ACEOF
7204: cat confdefs.h >>conftest.$ac_ext
7205: cat >>conftest.$ac_ext <<_ACEOF
7206: /* end confdefs.h. */
1.86 paf 7207: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7208: For example, HP-UX 11i <limits.h> declares gettimeofday. */
7209: #define $ac_func innocuous_$ac_func
7210:
1.66 paf 7211: /* System header to define __stub macros and hopefully few prototypes,
7212: which can conflict with char $ac_func (); below.
7213: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7214: <limits.h> exists even on freestanding compilers. */
1.86 paf 7215:
1.66 paf 7216: #ifdef __STDC__
7217: # include <limits.h>
7218: #else
7219: # include <assert.h>
7220: #endif
1.86 paf 7221:
7222: #undef $ac_func
7223:
1.1 paf 7224: /* Override any gcc2 internal prototype to avoid an error. */
7225: #ifdef __cplusplus
7226: extern "C"
1.66 paf 7227: {
1.1 paf 7228: #endif
7229: /* We use char because int might match the return type of a gcc2
1.62 paf 7230: builtin and then its argument prototype would still apply. */
1.66 paf 7231: char $ac_func ();
7232: /* The GNU C library defines this for functions which it implements
7233: to always fail with ENOSYS. Some functions are actually named
7234: something starting with __ and the normal name is an alias. */
7235: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7236: choke me
7237: #else
7238: char (*f) () = $ac_func;
7239: #endif
7240: #ifdef __cplusplus
7241: }
7242: #endif
7243:
1.62 paf 7244: int
7245: main ()
7246: {
1.66 paf 7247: return f != $ac_func;
1.62 paf 7248: ;
7249: return 0;
7250: }
7251: _ACEOF
7252: rm -f conftest.$ac_objext conftest$ac_exeext
7253: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 7254: (eval $ac_link) 2>conftest.er1
1.62 paf 7255: ac_status=$?
1.86 paf 7256: grep -v '^ *+' conftest.er1 >conftest.err
7257: rm -f conftest.er1
7258: cat conftest.err >&5
1.62 paf 7259: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260: (exit $ac_status); } &&
1.86 paf 7261: { ac_try='test -z "$ac_c_werror_flag"
7262: || test ! -s conftest.err'
7263: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264: (eval $ac_try) 2>&5
7265: ac_status=$?
7266: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267: (exit $ac_status); }; } &&
7268: { ac_try='test -s conftest$ac_exeext'
1.62 paf 7269: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270: (eval $ac_try) 2>&5
7271: ac_status=$?
7272: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273: (exit $ac_status); }; }; then
1.66 paf 7274: eval "$as_ac_var=yes"
1.62 paf 7275: else
7276: echo "$as_me: failed program was:" >&5
7277: sed 's/^/| /' conftest.$ac_ext >&5
7278:
1.66 paf 7279: eval "$as_ac_var=no"
1.62 paf 7280: fi
1.86 paf 7281: rm -f conftest.err conftest.$ac_objext \
7282: conftest$ac_exeext conftest.$ac_ext
1.62 paf 7283: fi
1.66 paf 7284: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7285: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7286: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.62 paf 7287: cat >>confdefs.h <<_ACEOF
1.66 paf 7288: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 7289: _ACEOF
1.1 paf 7290:
1.66 paf 7291: else
7292: { { echo "$as_me:$LINENO: error: No qsort library function." >&5
7293: echo "$as_me: error: No qsort library function." >&2;}
7294: { (exit 1); exit 1; }; }
1.1 paf 7295: fi
1.66 paf 7296: done
1.1 paf 7297:
7298:
1.62 paf 7299:
1.66 paf 7300: echo "$as_me:$LINENO: checking for timezone variable" >&5
7301: echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6
1.62 paf 7302: cat >conftest.$ac_ext <<_ACEOF
7303: /* confdefs.h. */
7304: _ACEOF
7305: cat confdefs.h >>conftest.$ac_ext
7306: cat >>conftest.$ac_ext <<_ACEOF
7307: /* end confdefs.h. */
1.66 paf 7308: #include <time.h>
1.62 paf 7309: int
7310: main ()
7311: {
1.66 paf 7312:
7313: time_t test=timezone;
7314:
1.62 paf 7315: ;
7316: return 0;
7317: }
7318: _ACEOF
1.66 paf 7319: rm -f conftest.$ac_objext
7320: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 7321: (eval $ac_compile) 2>conftest.er1
1.62 paf 7322: ac_status=$?
1.86 paf 7323: grep -v '^ *+' conftest.er1 >conftest.err
7324: rm -f conftest.er1
7325: cat conftest.err >&5
1.62 paf 7326: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327: (exit $ac_status); } &&
1.86 paf 7328: { ac_try='test -z "$ac_c_werror_flag"
7329: || test ! -s conftest.err'
7330: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331: (eval $ac_try) 2>&5
7332: ac_status=$?
7333: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334: (exit $ac_status); }; } &&
7335: { ac_try='test -s conftest.$ac_objext'
1.62 paf 7336: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337: (eval $ac_try) 2>&5
7338: ac_status=$?
7339: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340: (exit $ac_status); }; }; then
1.66 paf 7341: cat >>confdefs.h <<\_ACEOF
7342: #define HAVE_TIMEZONE 1
7343: _ACEOF
7344:
7345: echo "$as_me:$LINENO: result: yes" >&5
7346: echo "${ECHO_T}yes" >&6
1.62 paf 7347: else
7348: echo "$as_me: failed program was:" >&5
7349: sed 's/^/| /' conftest.$ac_ext >&5
7350:
1.66 paf 7351: echo "$as_me:$LINENO: result: no" >&5
7352: echo "${ECHO_T}no" >&6
1.62 paf 7353: fi
1.86 paf 7354: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 7355:
1.66 paf 7356: echo "$as_me:$LINENO: checking for daylight variable" >&5
7357: echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6
1.62 paf 7358: cat >conftest.$ac_ext <<_ACEOF
7359: /* confdefs.h. */
7360: _ACEOF
7361: cat confdefs.h >>conftest.$ac_ext
7362: cat >>conftest.$ac_ext <<_ACEOF
7363: /* end confdefs.h. */
1.66 paf 7364: #include <time.h>
1.62 paf 7365: int
7366: main ()
7367: {
1.66 paf 7368:
7369: int test=daylight;
7370:
1.62 paf 7371: ;
7372: return 0;
7373: }
7374: _ACEOF
1.66 paf 7375: rm -f conftest.$ac_objext
7376: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 7377: (eval $ac_compile) 2>conftest.er1
1.62 paf 7378: ac_status=$?
1.86 paf 7379: grep -v '^ *+' conftest.er1 >conftest.err
7380: rm -f conftest.er1
7381: cat conftest.err >&5
1.62 paf 7382: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383: (exit $ac_status); } &&
1.86 paf 7384: { ac_try='test -z "$ac_c_werror_flag"
7385: || test ! -s conftest.err'
7386: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387: (eval $ac_try) 2>&5
7388: ac_status=$?
7389: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390: (exit $ac_status); }; } &&
7391: { ac_try='test -s conftest.$ac_objext'
1.62 paf 7392: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393: (eval $ac_try) 2>&5
7394: ac_status=$?
7395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396: (exit $ac_status); }; }; then
1.66 paf 7397: cat >>confdefs.h <<\_ACEOF
7398: #define HAVE_DAYLIGHT 1
7399: _ACEOF
7400:
7401: echo "$as_me:$LINENO: result: yes" >&5
7402: echo "${ECHO_T}yes" >&6
1.62 paf 7403: else
7404: echo "$as_me: failed program was:" >&5
7405: sed 's/^/| /' conftest.$ac_ext >&5
7406:
1.66 paf 7407: echo "$as_me:$LINENO: result: no" >&5
7408: echo "${ECHO_T}no" >&6
1.62 paf 7409: fi
1.86 paf 7410: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 7411:
1.66 paf 7412: echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
7413: echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
1.62 paf 7414: cat >conftest.$ac_ext <<_ACEOF
7415: /* confdefs.h. */
7416: _ACEOF
7417: cat confdefs.h >>conftest.$ac_ext
7418: cat >>conftest.$ac_ext <<_ACEOF
7419: /* end confdefs.h. */
1.66 paf 7420: #include <time.h>
1.62 paf 7421: int
7422: main ()
7423: {
1.66 paf 7424: struct tm tm;
7425: tm.tm_gmtoff=0;
7426:
1.62 paf 7427: ;
7428: return 0;
7429: }
7430: _ACEOF
1.66 paf 7431: rm -f conftest.$ac_objext
7432: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 7433: (eval $ac_compile) 2>conftest.er1
1.62 paf 7434: ac_status=$?
1.86 paf 7435: grep -v '^ *+' conftest.er1 >conftest.err
7436: rm -f conftest.er1
7437: cat conftest.err >&5
1.62 paf 7438: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439: (exit $ac_status); } &&
1.86 paf 7440: { ac_try='test -z "$ac_c_werror_flag"
7441: || test ! -s conftest.err'
7442: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443: (eval $ac_try) 2>&5
7444: ac_status=$?
7445: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446: (exit $ac_status); }; } &&
7447: { ac_try='test -s conftest.$ac_objext'
1.62 paf 7448: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449: (eval $ac_try) 2>&5
7450: ac_status=$?
7451: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452: (exit $ac_status); }; }; then
1.66 paf 7453: cat >>confdefs.h <<\_ACEOF
7454: #define HAVE_TM_GMTOFF 1
7455: _ACEOF
7456:
7457: echo "$as_me:$LINENO: result: yes" >&5
7458: echo "${ECHO_T}yes" >&6
1.62 paf 7459: else
7460: echo "$as_me: failed program was:" >&5
7461: sed 's/^/| /' conftest.$ac_ext >&5
7462:
1.66 paf 7463: echo "$as_me:$LINENO: result: no" >&5
7464: echo "${ECHO_T}no" >&6
1.62 paf 7465: fi
1.86 paf 7466: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 7467:
1.66 paf 7468: echo "$as_me:$LINENO: checking for tm_tzadj in struct tm" >&5
7469: echo $ECHO_N "checking for tm_tzadj in struct tm... $ECHO_C" >&6
1.62 paf 7470: cat >conftest.$ac_ext <<_ACEOF
7471: /* confdefs.h. */
7472: _ACEOF
7473: cat confdefs.h >>conftest.$ac_ext
7474: cat >>conftest.$ac_ext <<_ACEOF
7475: /* end confdefs.h. */
1.66 paf 7476: #include <time.h>
1.62 paf 7477: int
7478: main ()
7479: {
1.66 paf 7480: struct tm tm;
7481: tm.tm_tzadj=0;
7482:
1.62 paf 7483: ;
7484: return 0;
7485: }
7486: _ACEOF
1.66 paf 7487: rm -f conftest.$ac_objext
7488: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 7489: (eval $ac_compile) 2>conftest.er1
1.62 paf 7490: ac_status=$?
1.86 paf 7491: grep -v '^ *+' conftest.er1 >conftest.err
7492: rm -f conftest.er1
7493: cat conftest.err >&5
1.62 paf 7494: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495: (exit $ac_status); } &&
1.86 paf 7496: { ac_try='test -z "$ac_c_werror_flag"
7497: || test ! -s conftest.err'
7498: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499: (eval $ac_try) 2>&5
7500: ac_status=$?
7501: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502: (exit $ac_status); }; } &&
7503: { ac_try='test -s conftest.$ac_objext'
1.62 paf 7504: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505: (eval $ac_try) 2>&5
7506: ac_status=$?
7507: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508: (exit $ac_status); }; }; then
1.66 paf 7509: cat >>confdefs.h <<\_ACEOF
7510: #define HAVE_TM_TZADJ 1
7511: _ACEOF
7512:
7513: echo "$as_me:$LINENO: result: yes" >&5
7514: echo "${ECHO_T}yes" >&6
1.62 paf 7515: else
7516: echo "$as_me: failed program was:" >&5
7517: sed 's/^/| /' conftest.$ac_ext >&5
7518:
1.66 paf 7519: echo "$as_me:$LINENO: result: no" >&5
7520: echo "${ECHO_T}no" >&6
1.62 paf 7521: fi
1.86 paf 7522: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.31 paf 7523:
7524:
7525:
7526:
1.1 paf 7527:
7528:
7529:
1.62 paf 7530:
7531:
7532:
7533:
7534:
7535:
7536:
7537:
7538:
7539:
7540:
7541:
7542:
7543:
7544:
7545:
7546:
7547:
7548:
7549:
7550:
7551:
7552:
7553:
7554:
7555:
7556: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
7557:
1.120 misha 7558: ac_config_files="$ac_config_files Makefile src/Makefile src/types/Makefile src/classes/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/gd/Makefile src/lib/smtp/Makefile src/lib/gc/Makefile src/lib/gc/include/Makefile src/lib/pcre/Makefile src/lib/cord/Makefile src/lib/cord/include/Makefile src/lib/cord/include/private/Makefile src/lib/ltdl/Makefile src/lib/md5/Makefile src/lib/sdbm/Makefile src/lib/sdbm/apr-include/Makefile src/lib/json/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache13core/Makefile src/targets/apache13/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist"
1.62 paf 7559: cat >confcache <<\_ACEOF
1.1 paf 7560: # This file is a shell script that caches the results of configure
7561: # tests run on this system so they can be shared between configure
1.62 paf 7562: # scripts and configure runs, see configure's option --config-cache.
7563: # It is not useful on other systems. If it contains results you don't
7564: # want to keep, you may remove or edit it.
1.1 paf 7565: #
1.62 paf 7566: # config.status only pays attention to the cache file if you give it
7567: # the --recheck option to rerun configure.
1.1 paf 7568: #
1.62 paf 7569: # `ac_cv_env_foo' variables (set or unset) will be overridden when
7570: # loading this file, other *unset* `ac_cv_foo' will be assigned the
7571: # following values.
7572:
7573: _ACEOF
7574:
1.1 paf 7575: # The following way of writing the cache mishandles newlines in values,
7576: # but we know of no workaround that is simple, portable, and efficient.
7577: # So, don't put newlines in cache variables' values.
7578: # Ultrix sh set writes to stderr and can't be redirected directly,
7579: # and sets the high bit in the cache file unless we assign to the vars.
1.62 paf 7580: {
7581: (set) 2>&1 |
7582: case `(ac_space=' '; set | grep ac_space) 2>&1` in
7583: *ac_space=\ *)
7584: # `set' does not quote correctly, so add quotes (double-quote
7585: # substitution turns \\\\ into \\, and sed turns \\ into \).
7586: sed -n \
1.86 paf 7587: "s/'/'\\\\''/g;
7588: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.62 paf 7589: ;;
7590: *)
7591: # `set' quotes correctly as required by POSIX, so do not add quotes.
7592: sed -n \
1.86 paf 7593: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.62 paf 7594: ;;
7595: esac;
7596: } |
7597: sed '
7598: t clear
7599: : clear
7600: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7601: t end
7602: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7603: : end' >>confcache
7604: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 paf 7605: if test -w $cache_file; then
1.62 paf 7606: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7607: cat confcache >$cache_file
1.1 paf 7608: else
7609: echo "not updating unwritable cache $cache_file"
7610: fi
7611: fi
7612: rm -f confcache
7613:
7614: test "x$prefix" = xNONE && prefix=$ac_default_prefix
7615: # Let make expand exec_prefix.
7616: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7617:
1.62 paf 7618: # VPATH may cause trouble with some makes, so we remove $(srcdir),
7619: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7620: # trailing colons and then remove the whole line if VPATH becomes empty
7621: # (actually we leave an empty line to preserve line numbers).
1.1 paf 7622: if test "x$srcdir" = x.; then
1.86 paf 7623: ac_vpsub='/^[ ]*VPATH[ ]*=/{
1.62 paf 7624: s/:*\$(srcdir):*/:/;
7625: s/:*\${srcdir}:*/:/;
7626: s/:*@srcdir@:*/:/;
1.86 paf 7627: s/^\([^=]*=[ ]*\):*/\1/;
1.62 paf 7628: s/:*$//;
1.86 paf 7629: s/^[^=]*=[ ]*$//;
1.62 paf 7630: }'
1.1 paf 7631: fi
7632:
1.62 paf 7633: DEFS=-DHAVE_CONFIG_H
7634:
7635: ac_libobjs=
7636: ac_ltlibobjs=
7637: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7638: # 1. Remove the extension, and $U if already installed.
7639: ac_i=`echo "$ac_i" |
1.86 paf 7640: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
1.62 paf 7641: # 2. Add them.
7642: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7643: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7644: done
7645: LIBOBJS=$ac_libobjs
7646:
7647: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 7648:
7649:
1.62 paf 7650: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7651: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7652: Usually this means the macro was only invoked conditionally." >&5
7653: echo "$as_me: error: conditional \"AMDEP\" was never defined.
7654: Usually this means the macro was only invoked conditionally." >&2;}
7655: { (exit 1); exit 1; }; }
7656: fi
1.66 paf 7657: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7658: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
1.62 paf 7659: Usually this means the macro was only invoked conditionally." >&5
1.66 paf 7660: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
1.62 paf 7661: Usually this means the macro was only invoked conditionally." >&2;}
7662: { (exit 1); exit 1; }; }
7663: fi
1.66 paf 7664: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7665: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1.62 paf 7666: Usually this means the macro was only invoked conditionally." >&5
1.66 paf 7667: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1.62 paf 7668: Usually this means the macro was only invoked conditionally." >&2;}
7669: { (exit 1); exit 1; }; }
7670: fi
7671: if test -z "${COMPILE_APACHE13_MODULE_TRUE}" && test -z "${COMPILE_APACHE13_MODULE_FALSE}"; then
7672: { { echo "$as_me:$LINENO: error: conditional \"COMPILE_APACHE13_MODULE\" was never defined.
7673: Usually this means the macro was only invoked conditionally." >&5
7674: echo "$as_me: error: conditional \"COMPILE_APACHE13_MODULE\" was never defined.
7675: Usually this means the macro was only invoked conditionally." >&2;}
7676: { (exit 1); exit 1; }; }
7677: fi
7678:
1.1 paf 7679: : ${CONFIG_STATUS=./config.status}
1.62 paf 7680: ac_clean_files_save=$ac_clean_files
7681: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7682: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7683: echo "$as_me: creating $CONFIG_STATUS" >&6;}
7684: cat >$CONFIG_STATUS <<_ACEOF
7685: #! $SHELL
7686: # Generated by $as_me.
7687: # Run this file to recreate the current configuration.
7688: # Compiler output produced by configure, useful for debugging
7689: # configure, is in config.log if it exists.
7690:
7691: debug=false
7692: ac_cs_recheck=false
7693: ac_cs_silent=false
7694: SHELL=\${CONFIG_SHELL-$SHELL}
7695: _ACEOF
7696:
7697: cat >>$CONFIG_STATUS <<\_ACEOF
7698: ## --------------------- ##
7699: ## M4sh Initialization. ##
7700: ## --------------------- ##
7701:
7702: # Be Bourne compatible
7703: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7704: emulate sh
7705: NULLCMD=:
7706: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7707: # is contrary to our usage. Disable this feature.
7708: alias -g '${1+"$@"}'='"$@"'
7709: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7710: set -o posix
7711: fi
1.86 paf 7712: DUALCASE=1; export DUALCASE # for MKS sh
1.62 paf 7713:
7714: # Support unset when possible.
1.86 paf 7715: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.62 paf 7716: as_unset=unset
7717: else
7718: as_unset=false
7719: fi
7720:
7721:
7722: # Work around bugs in pre-3.0 UWIN ksh.
7723: $as_unset ENV MAIL MAILPATH
7724: PS1='$ '
7725: PS2='> '
7726: PS4='+ '
7727:
7728: # NLS nuisances.
7729: for as_var in \
7730: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7731: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7732: LC_TELEPHONE LC_TIME
7733: do
1.86 paf 7734: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.62 paf 7735: eval $as_var=C; export $as_var
7736: else
7737: $as_unset $as_var
7738: fi
7739: done
1.1 paf 7740:
1.62 paf 7741: # Required to use basename.
7742: if expr a : '\(a\)' >/dev/null 2>&1; then
7743: as_expr=expr
7744: else
7745: as_expr=false
7746: fi
7747:
7748: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7749: as_basename=basename
7750: else
7751: as_basename=false
7752: fi
7753:
7754:
7755: # Name of the executable.
7756: as_me=`$as_basename "$0" ||
7757: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7758: X"$0" : 'X\(//\)$' \| \
7759: X"$0" : 'X\(/\)$' \| \
7760: . : '\(.\)' 2>/dev/null ||
7761: echo X/"$0" |
7762: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7763: /^X\/\(\/\/\)$/{ s//\1/; q; }
7764: /^X\/\(\/\).*/{ s//\1/; q; }
7765: s/.*/./; q'`
7766:
7767:
7768: # PATH needs CR, and LINENO needs CR and PATH.
7769: # Avoid depending upon Character Ranges.
7770: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7771: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7772: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7773: as_cr_digits='0123456789'
7774: as_cr_alnum=$as_cr_Letters$as_cr_digits
7775:
7776: # The user is always right.
7777: if test "${PATH_SEPARATOR+set}" != set; then
7778: echo "#! /bin/sh" >conf$$.sh
7779: echo "exit 0" >>conf$$.sh
7780: chmod +x conf$$.sh
7781: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7782: PATH_SEPARATOR=';'
7783: else
7784: PATH_SEPARATOR=:
7785: fi
7786: rm -f conf$$.sh
7787: fi
7788:
7789:
7790: as_lineno_1=$LINENO
7791: as_lineno_2=$LINENO
7792: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7793: test "x$as_lineno_1" != "x$as_lineno_2" &&
7794: test "x$as_lineno_3" = "x$as_lineno_2" || {
7795: # Find who we are. Look in the path if we contain no path at all
7796: # relative or not.
7797: case $0 in
7798: *[\\/]* ) as_myself=$0 ;;
7799: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800: for as_dir in $PATH
7801: do
7802: IFS=$as_save_IFS
7803: test -z "$as_dir" && as_dir=.
7804: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7805: done
7806:
7807: ;;
7808: esac
7809: # We did not find ourselves, most probably we were run as `sh COMMAND'
7810: # in which case we are not to be found in the path.
7811: if test "x$as_myself" = x; then
7812: as_myself=$0
7813: fi
7814: if test ! -f "$as_myself"; then
7815: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7816: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7817: { (exit 1); exit 1; }; }
7818: fi
7819: case $CONFIG_SHELL in
7820: '')
7821: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7823: do
7824: IFS=$as_save_IFS
7825: test -z "$as_dir" && as_dir=.
7826: for as_base in sh bash ksh sh5; do
7827: case $as_dir in
7828: /*)
7829: if ("$as_dir/$as_base" -c '
7830: as_lineno_1=$LINENO
7831: as_lineno_2=$LINENO
7832: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7833: test "x$as_lineno_1" != "x$as_lineno_2" &&
7834: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7835: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7836: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7837: CONFIG_SHELL=$as_dir/$as_base
7838: export CONFIG_SHELL
7839: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7840: fi;;
7841: esac
7842: done
7843: done
7844: ;;
7845: esac
7846:
7847: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7848: # uniformly replaced by the line number. The first 'sed' inserts a
7849: # line-number line before each line; the second 'sed' does the real
7850: # work. The second script uses 'N' to pair each line-number line
7851: # with the numbered line, and appends trailing '-' during
7852: # substitution so that $LINENO is not a special case at line end.
7853: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7854: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7855: sed '=' <$as_myself |
7856: sed '
7857: N
7858: s,$,-,
7859: : loop
7860: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7861: t loop
7862: s,-$,,
7863: s,^['$as_cr_digits']*\n,,
7864: ' >$as_me.lineno &&
7865: chmod +x $as_me.lineno ||
7866: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7867: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7868: { (exit 1); exit 1; }; }
7869:
7870: # Don't try to exec as it changes $[0], causing all sort of problems
7871: # (the dirname of $[0] is not the place where we might find the
7872: # original and so on. Autoconf is especially sensible to this).
7873: . ./$as_me.lineno
7874: # Exit status is that of the last command.
7875: exit
7876: }
7877:
7878:
7879: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7880: *c*,-n*) ECHO_N= ECHO_C='
7881: ' ECHO_T=' ' ;;
7882: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7883: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7884: esac
7885:
7886: if expr a : '\(a\)' >/dev/null 2>&1; then
7887: as_expr=expr
7888: else
7889: as_expr=false
7890: fi
7891:
7892: rm -f conf$$ conf$$.exe conf$$.file
7893: echo >conf$$.file
7894: if ln -s conf$$.file conf$$ 2>/dev/null; then
7895: # We could just check for DJGPP; but this test a) works b) is more generic
7896: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7897: if test -f conf$$.exe; then
7898: # Don't use ln at all; we don't have any links
7899: as_ln_s='cp -p'
7900: else
7901: as_ln_s='ln -s'
7902: fi
7903: elif ln conf$$.file conf$$ 2>/dev/null; then
7904: as_ln_s=ln
7905: else
7906: as_ln_s='cp -p'
7907: fi
7908: rm -f conf$$ conf$$.exe conf$$.file
7909:
7910: if mkdir -p . 2>/dev/null; then
7911: as_mkdir_p=:
7912: else
1.86 paf 7913: test -d ./-p && rmdir ./-p
1.62 paf 7914: as_mkdir_p=false
7915: fi
7916:
7917: as_executable_p="test -f"
7918:
7919: # Sed expression to map a string onto a valid CPP name.
1.86 paf 7920: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 7921:
7922: # Sed expression to map a string onto a valid variable name.
1.86 paf 7923: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 7924:
7925:
7926: # IFS
7927: # We need space, tab and new line, in precisely that order.
7928: as_nl='
7929: '
7930: IFS=" $as_nl"
7931:
7932: # CDPATH.
7933: $as_unset CDPATH
7934:
7935: exec 6>&1
7936:
7937: # Open the log real soon, to keep \$[0] and so on meaningful, and to
7938: # report actual input values of CONFIG_FILES etc. instead of their
7939: # values after options handling. Logging --version etc. is OK.
7940: exec 5>>config.log
7941: {
7942: echo
7943: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7944: ## Running $as_me. ##
7945: _ASBOX
7946: } >&5
7947: cat >&5 <<_CSEOF
7948:
7949: This file was extended by $as_me, which was
1.86 paf 7950: generated by GNU Autoconf 2.59. Invocation command line was
1.62 paf 7951:
7952: CONFIG_FILES = $CONFIG_FILES
7953: CONFIG_HEADERS = $CONFIG_HEADERS
7954: CONFIG_LINKS = $CONFIG_LINKS
7955: CONFIG_COMMANDS = $CONFIG_COMMANDS
7956: $ $0 $@
7957:
7958: _CSEOF
7959: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7960: echo >&5
7961: _ACEOF
7962:
7963: # Files that config.status was made for.
7964: if test -n "$ac_config_files"; then
7965: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7966: fi
7967:
7968: if test -n "$ac_config_headers"; then
7969: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7970: fi
7971:
7972: if test -n "$ac_config_links"; then
7973: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7974: fi
7975:
7976: if test -n "$ac_config_commands"; then
7977: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7978: fi
7979:
7980: cat >>$CONFIG_STATUS <<\_ACEOF
7981:
7982: ac_cs_usage="\
7983: \`$as_me' instantiates files from templates according to the
7984: current configuration.
7985:
7986: Usage: $0 [OPTIONS] [FILE]...
7987:
7988: -h, --help print this help, then exit
7989: -V, --version print version number, then exit
7990: -q, --quiet do not print progress messages
7991: -d, --debug don't remove temporary files
7992: --recheck update $as_me by reconfiguring in the same conditions
7993: --file=FILE[:TEMPLATE]
1.86 paf 7994: instantiate the configuration file FILE
1.62 paf 7995: --header=FILE[:TEMPLATE]
1.86 paf 7996: instantiate the configuration header FILE
1.62 paf 7997:
7998: Configuration files:
7999: $config_files
8000:
8001: Configuration headers:
8002: $config_headers
8003:
8004: Configuration commands:
8005: $config_commands
8006:
8007: Report bugs to <bug-autoconf@gnu.org>."
8008: _ACEOF
8009:
8010: cat >>$CONFIG_STATUS <<_ACEOF
8011: ac_cs_version="\\
8012: config.status
1.86 paf 8013: configured by $0, generated by GNU Autoconf 2.59,
1.62 paf 8014: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8015:
1.86 paf 8016: Copyright (C) 2003 Free Software Foundation, Inc.
1.62 paf 8017: This config.status script is free software; the Free Software Foundation
8018: gives unlimited permission to copy, distribute and modify it."
8019: srcdir=$srcdir
8020: INSTALL="$INSTALL"
8021: _ACEOF
8022:
8023: cat >>$CONFIG_STATUS <<\_ACEOF
8024: # If no file are specified by the user, then we need to provide default
8025: # value. By we need to know if files were specified by the user.
8026: ac_need_defaults=:
8027: while test $# != 0
8028: do
8029: case $1 in
8030: --*=*)
8031: ac_option=`expr "x$1" : 'x\([^=]*\)='`
8032: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8033: ac_shift=:
8034: ;;
8035: -*)
8036: ac_option=$1
8037: ac_optarg=$2
8038: ac_shift=shift
8039: ;;
8040: *) # This is not an option, so the user has probably given explicit
8041: # arguments.
8042: ac_option=$1
8043: ac_need_defaults=false;;
8044: esac
8045:
8046: case $ac_option in
8047: # Handling of the options.
8048: _ACEOF
8049: cat >>$CONFIG_STATUS <<\_ACEOF
8050: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8051: ac_cs_recheck=: ;;
8052: --version | --vers* | -V )
8053: echo "$ac_cs_version"; exit 0 ;;
8054: --he | --h)
8055: # Conflict between --help and --header
8056: { { echo "$as_me:$LINENO: error: ambiguous option: $1
8057: Try \`$0 --help' for more information." >&5
8058: echo "$as_me: error: ambiguous option: $1
8059: Try \`$0 --help' for more information." >&2;}
8060: { (exit 1); exit 1; }; };;
8061: --help | --hel | -h )
8062: echo "$ac_cs_usage"; exit 0 ;;
8063: --debug | --d* | -d )
8064: debug=: ;;
8065: --file | --fil | --fi | --f )
8066: $ac_shift
8067: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8068: ac_need_defaults=false;;
8069: --header | --heade | --head | --hea )
8070: $ac_shift
8071: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8072: ac_need_defaults=false;;
8073: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8074: | -silent | --silent | --silen | --sile | --sil | --si | --s)
8075: ac_cs_silent=: ;;
8076:
8077: # This is an error.
8078: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8079: Try \`$0 --help' for more information." >&5
8080: echo "$as_me: error: unrecognized option: $1
8081: Try \`$0 --help' for more information." >&2;}
8082: { (exit 1); exit 1; }; } ;;
8083:
8084: *) ac_config_targets="$ac_config_targets $1" ;;
8085:
8086: esac
8087: shift
8088: done
8089:
8090: ac_configure_extra_args=
8091:
8092: if $ac_cs_silent; then
8093: exec 6>/dev/null
8094: ac_configure_extra_args="$ac_configure_extra_args --silent"
8095: fi
8096:
8097: _ACEOF
8098: cat >>$CONFIG_STATUS <<_ACEOF
8099: if \$ac_cs_recheck; then
8100: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8101: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8102: fi
8103:
8104: _ACEOF
8105:
8106: cat >>$CONFIG_STATUS <<_ACEOF
1.1 paf 8107: #
1.62 paf 8108: # INIT-COMMANDS section.
1.1 paf 8109: #
8110:
1.62 paf 8111: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8112:
8113: _ACEOF
8114:
8115:
8116:
8117: cat >>$CONFIG_STATUS <<\_ACEOF
8118: for ac_config_target in $ac_config_targets
1.1 paf 8119: do
1.62 paf 8120: case "$ac_config_target" in
8121: # Handling of arguments.
8122: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8123: "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8124: "src/types/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
8125: "src/classes/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
8126: "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
8127: "src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
8128: "src/sql/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
8129: "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
1.73 paf 8130: "src/lib/gd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
8131: "src/lib/smtp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
1.67 paf 8132: "src/lib/gc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
8133: "src/lib/gc/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
1.103 misha 8134: "src/lib/pcre/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
1.67 paf 8135: "src/lib/cord/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
8136: "src/lib/cord/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
8137: "src/lib/cord/include/private/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
1.62 paf 8138: "src/lib/ltdl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/ltdl/Makefile" ;;
8139: "src/lib/md5/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
1.70 paf 8140: "src/lib/sdbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
8141: "src/lib/sdbm/apr-include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/apr-include/Makefile" ;;
1.120 misha 8142: "src/lib/json/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/json/Makefile" ;;
1.62 paf 8143: "src/targets/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
8144: "src/targets/cgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
1.68 paf 8145: "src/targets/apache13core/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/apache13core/Makefile" ;;
1.62 paf 8146: "src/targets/apache13/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/apache13/Makefile" ;;
8147: "src/targets/apache13/p3runConfigure" ) CONFIG_FILES="$CONFIG_FILES src/targets/apache13/p3runConfigure" ;;
8148: "src/targets/isapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
8149: "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
8150: "etc/parser3.charsets/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
8151: "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
8152: "bin/auto.p.dist" ) CONFIG_FILES="$CONFIG_FILES bin/auto.p.dist" ;;
8153: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8154: "src/include/pa_config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
8155: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8156: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8157: { (exit 1); exit 1; }; };;
1.1 paf 8158: esac
8159: done
8160:
1.62 paf 8161: # If the user did not use the arguments to specify the items to instantiate,
8162: # then the envvar interface is used. Set only those that are not.
8163: # We use the long form for the default assignment because of an extremely
8164: # bizarre bug on SunOS 4.1.3.
8165: if $ac_need_defaults; then
8166: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8167: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8168: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8169: fi
8170:
8171: # Have a temporary directory for convenience. Make it in the build tree
8172: # simply because there is no reason to put it here, and in addition,
8173: # creating and moving files from /tmp can sometimes cause problems.
8174: # Create a temporary directory, and hook for its removal unless debugging.
8175: $debug ||
8176: {
8177: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8178: trap '{ (exit 1); exit 1; }' 1 2 13 15
8179: }
8180:
8181: # Create a (secure) tmp directory for tmp files.
8182:
8183: {
8184: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8185: test -n "$tmp" && test -d "$tmp"
8186: } ||
8187: {
8188: tmp=./confstat$$-$RANDOM
8189: (umask 077 && mkdir $tmp)
8190: } ||
8191: {
8192: echo "$me: cannot create a temporary directory in ." >&2
8193: { (exit 1); exit 1; }
8194: }
8195:
8196: _ACEOF
1.1 paf 8197:
1.62 paf 8198: cat >>$CONFIG_STATUS <<_ACEOF
8199:
8200: #
8201: # CONFIG_FILES section.
8202: #
1.1 paf 8203:
1.62 paf 8204: # No need to generate the scripts if there are no CONFIG_FILES.
8205: # This happens for instance when ./config.status config.h
8206: if test -n "\$CONFIG_FILES"; then
8207: # Protect against being on the right side of a sed subst in config.status.
8208: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8209: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8210: s,@SHELL@,$SHELL,;t t
8211: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8212: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8213: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8214: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8215: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8216: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8217: s,@exec_prefix@,$exec_prefix,;t t
8218: s,@prefix@,$prefix,;t t
8219: s,@program_transform_name@,$program_transform_name,;t t
8220: s,@bindir@,$bindir,;t t
8221: s,@sbindir@,$sbindir,;t t
8222: s,@libexecdir@,$libexecdir,;t t
8223: s,@datadir@,$datadir,;t t
8224: s,@sysconfdir@,$sysconfdir,;t t
8225: s,@sharedstatedir@,$sharedstatedir,;t t
8226: s,@localstatedir@,$localstatedir,;t t
8227: s,@libdir@,$libdir,;t t
8228: s,@includedir@,$includedir,;t t
8229: s,@oldincludedir@,$oldincludedir,;t t
8230: s,@infodir@,$infodir,;t t
8231: s,@mandir@,$mandir,;t t
8232: s,@build_alias@,$build_alias,;t t
8233: s,@host_alias@,$host_alias,;t t
8234: s,@target_alias@,$target_alias,;t t
8235: s,@DEFS@,$DEFS,;t t
8236: s,@ECHO_C@,$ECHO_C,;t t
8237: s,@ECHO_N@,$ECHO_N,;t t
8238: s,@ECHO_T@,$ECHO_T,;t t
8239: s,@LIBS@,$LIBS,;t t
8240: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8241: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8242: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8243: s,@CYGPATH_W@,$CYGPATH_W,;t t
8244: s,@PACKAGE@,$PACKAGE,;t t
8245: s,@VERSION@,$VERSION,;t t
8246: s,@ACLOCAL@,$ACLOCAL,;t t
8247: s,@AUTOCONF@,$AUTOCONF,;t t
8248: s,@AUTOMAKE@,$AUTOMAKE,;t t
8249: s,@AUTOHEADER@,$AUTOHEADER,;t t
8250: s,@MAKEINFO@,$MAKEINFO,;t t
8251: s,@install_sh@,$install_sh,;t t
8252: s,@STRIP@,$STRIP,;t t
8253: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8254: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
1.86 paf 8255: s,@mkdir_p@,$mkdir_p,;t t
1.62 paf 8256: s,@AWK@,$AWK,;t t
8257: s,@SET_MAKE@,$SET_MAKE,;t t
1.86 paf 8258: s,@am__leading_dot@,$am__leading_dot,;t t
8259: s,@AMTAR@,$AMTAR,;t t
8260: s,@am__tar@,$am__tar,;t t
8261: s,@am__untar@,$am__untar,;t t
1.62 paf 8262: s,@P3S@,$P3S,;t t
8263: s,@build@,$build,;t t
8264: s,@build_cpu@,$build_cpu,;t t
8265: s,@build_vendor@,$build_vendor,;t t
8266: s,@build_os@,$build_os,;t t
8267: s,@host@,$host,;t t
8268: s,@host_cpu@,$host_cpu,;t t
8269: s,@host_vendor@,$host_vendor,;t t
8270: s,@host_os@,$host_os,;t t
8271: s,@RANLIB@,$RANLIB,;t t
8272: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8273: s,@YACC@,$YACC,;t t
1.66 paf 8274: s,@CXX@,$CXX,;t t
8275: s,@CXXFLAGS@,$CXXFLAGS,;t t
1.62 paf 8276: s,@LDFLAGS@,$LDFLAGS,;t t
8277: s,@CPPFLAGS@,$CPPFLAGS,;t t
1.66 paf 8278: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
1.62 paf 8279: s,@EXEEXT@,$EXEEXT,;t t
8280: s,@OBJEXT@,$OBJEXT,;t t
8281: s,@DEPDIR@,$DEPDIR,;t t
8282: s,@am__include@,$am__include,;t t
8283: s,@am__quote@,$am__quote,;t t
8284: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8285: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8286: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
1.66 paf 8287: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
8288: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
8289: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
8290: s,@CC@,$CC,;t t
8291: s,@CFLAGS@,$CFLAGS,;t t
8292: s,@ac_ct_CC@,$ac_ct_CC,;t t
1.62 paf 8293: s,@CCDEPMODE@,$CCDEPMODE,;t t
8294: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8295: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8296: s,@commentcharset_windows1251@,$commentcharset_windows1251,;t t
8297: s,@commentcharset_windows1250@,$commentcharset_windows1250,;t t
8298: s,@commentcharset_windows1257@,$commentcharset_windows1257,;t t
8299: s,@commentcharset_koi8r@,$commentcharset_koi8r,;t t
8300: s,@dll_extension@,$dll_extension,;t t
8301: s,@mysql_client@,$mysql_client,;t t
8302: s,@pgsql_client@,$pgsql_client,;t t
8303: s,@oracle_client@,$oracle_client,;t t
1.92 misha 8304: s,@sqlite_client@,$sqlite_client,;t t
1.67 paf 8305: s,@CPP_LIBS@,$CPP_LIBS,;t t
8306: s,@GC_LIBS@,$GC_LIBS,;t t
1.100 misha 8307: s,@PCRE_INCLUDES@,$PCRE_INCLUDES,;t t
8308: s,@PCRE_LIBS@,$PCRE_LIBS,;t t
1.62 paf 8309: s,@XML_INCLUDES@,$XML_INCLUDES,;t t
8310: s,@XML_LIBS@,$XML_LIBS,;t t
1.119 misha 8311: s,@CURL_INCLUDES@,$CURL_INCLUDES,;t t
1.62 paf 8312: s,@MIME_INCLUDES@,$MIME_INCLUDES,;t t
8313: s,@MIME_LIBS@,$MIME_LIBS,;t t
8314: s,@APACHE13@,$APACHE13,;t t
8315: s,@COMPILE_APACHE13_MODULE_TRUE@,$COMPILE_APACHE13_MODULE_TRUE,;t t
8316: s,@COMPILE_APACHE13_MODULE_FALSE@,$COMPILE_APACHE13_MODULE_FALSE,;t t
8317: s,@INCLTDL@,$INCLTDL,;t t
8318: s,@LIBLTDL@,$LIBLTDL,;t t
8319: s,@subdirs@,$subdirs,;t t
8320: s,@LIBADD_DL@,$LIBADD_DL,;t t
1.66 paf 8321: s,@CPP@,$CPP,;t t
8322: s,@EGREP@,$EGREP,;t t
1.62 paf 8323: s,@LIBOBJS@,$LIBOBJS,;t t
8324: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.1 paf 8325: CEOF
8326:
1.62 paf 8327: _ACEOF
1.1 paf 8328:
1.62 paf 8329: cat >>$CONFIG_STATUS <<\_ACEOF
8330: # Split the substitutions into bite-sized pieces for seds with
8331: # small command number limits, like on Digital OSF/1 and HP-UX.
8332: ac_max_sed_lines=48
8333: ac_sed_frag=1 # Number of current file.
8334: ac_beg=1 # First line for current file.
8335: ac_end=$ac_max_sed_lines # Line after last line for current file.
8336: ac_more_lines=:
8337: ac_sed_cmds=
8338: while $ac_more_lines; do
8339: if test $ac_beg -gt 1; then
8340: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8341: else
8342: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8343: fi
8344: if test ! -s $tmp/subs.frag; then
8345: ac_more_lines=false
1.1 paf 8346: else
1.62 paf 8347: # The purpose of the label and of the branching condition is to
8348: # speed up the sed processing (if there are no `@' at all, there
8349: # is no need to browse any of the substitutions).
8350: # These are the two extra sed commands mentioned above.
8351: (echo ':t
8352: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8353: if test -z "$ac_sed_cmds"; then
1.86 paf 8354: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1.62 paf 8355: else
1.86 paf 8356: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1.62 paf 8357: fi
8358: ac_sed_frag=`expr $ac_sed_frag + 1`
8359: ac_beg=$ac_end
8360: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1 paf 8361: fi
1.62 paf 8362: done
8363: if test -z "$ac_sed_cmds"; then
8364: ac_sed_cmds=cat
1.1 paf 8365: fi
1.62 paf 8366: fi # test -n "$CONFIG_FILES"
1.1 paf 8367:
1.62 paf 8368: _ACEOF
8369: cat >>$CONFIG_STATUS <<\_ACEOF
8370: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1.1 paf 8371: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.62 paf 8372: case $ac_file in
8373: - | *:- | *:-:* ) # input from stdin
1.86 paf 8374: cat >$tmp/stdin
8375: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8376: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 8377: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.86 paf 8378: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 8379: * ) ac_file_in=$ac_file.in ;;
1.1 paf 8380: esac
8381:
1.62 paf 8382: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8383: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8384: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 8385: X"$ac_file" : 'X\(//\)[^/]' \| \
8386: X"$ac_file" : 'X\(//\)$' \| \
8387: X"$ac_file" : 'X\(/\)' \| \
8388: . : '\(.\)' 2>/dev/null ||
1.62 paf 8389: echo X"$ac_file" |
8390: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8391: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8392: /^X\(\/\/\)$/{ s//\1/; q; }
8393: /^X\(\/\).*/{ s//\1/; q; }
8394: s/.*/./; q'`
8395: { if $as_mkdir_p; then
8396: mkdir -p "$ac_dir"
8397: else
8398: as_dir="$ac_dir"
8399: as_dirs=
8400: while test ! -d "$as_dir"; do
8401: as_dirs="$as_dir $as_dirs"
8402: as_dir=`(dirname "$as_dir") 2>/dev/null ||
8403: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 8404: X"$as_dir" : 'X\(//\)[^/]' \| \
8405: X"$as_dir" : 'X\(//\)$' \| \
8406: X"$as_dir" : 'X\(/\)' \| \
8407: . : '\(.\)' 2>/dev/null ||
1.62 paf 8408: echo X"$as_dir" |
8409: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8410: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8411: /^X\(\/\/\)$/{ s//\1/; q; }
8412: /^X\(\/\).*/{ s//\1/; q; }
8413: s/.*/./; q'`
8414: done
8415: test ! -n "$as_dirs" || mkdir $as_dirs
8416: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8417: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8418: { (exit 1); exit 1; }; }; }
8419:
8420: ac_builddir=.
8421:
8422: if test "$ac_dir" != .; then
8423: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8424: # A "../" for each directory in $ac_dir_suffix.
8425: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8426: else
8427: ac_dir_suffix= ac_top_builddir=
8428: fi
8429:
8430: case $srcdir in
8431: .) # No --srcdir option. We are building in place.
8432: ac_srcdir=.
8433: if test -z "$ac_top_builddir"; then
8434: ac_top_srcdir=.
8435: else
8436: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8437: fi ;;
8438: [\\/]* | ?:[\\/]* ) # Absolute path.
8439: ac_srcdir=$srcdir$ac_dir_suffix;
8440: ac_top_srcdir=$srcdir ;;
8441: *) # Relative path.
8442: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8443: ac_top_srcdir=$ac_top_builddir$srcdir ;;
8444: esac
1.86 paf 8445:
8446: # Do not use `cd foo && pwd` to compute absolute paths, because
8447: # the directories may not exist.
8448: case `pwd` in
8449: .) ac_abs_builddir="$ac_dir";;
8450: *)
8451: case "$ac_dir" in
8452: .) ac_abs_builddir=`pwd`;;
8453: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8454: *) ac_abs_builddir=`pwd`/"$ac_dir";;
8455: esac;;
8456: esac
8457: case $ac_abs_builddir in
8458: .) ac_abs_top_builddir=${ac_top_builddir}.;;
8459: *)
8460: case ${ac_top_builddir}. in
8461: .) ac_abs_top_builddir=$ac_abs_builddir;;
8462: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8463: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8464: esac;;
8465: esac
8466: case $ac_abs_builddir in
8467: .) ac_abs_srcdir=$ac_srcdir;;
8468: *)
8469: case $ac_srcdir in
8470: .) ac_abs_srcdir=$ac_abs_builddir;;
8471: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8472: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8473: esac;;
8474: esac
8475: case $ac_abs_builddir in
8476: .) ac_abs_top_srcdir=$ac_top_srcdir;;
8477: *)
8478: case $ac_top_srcdir in
8479: .) ac_abs_top_srcdir=$ac_abs_builddir;;
8480: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8481: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8482: esac;;
8483: esac
1.62 paf 8484:
1.1 paf 8485:
1.62 paf 8486: case $INSTALL in
8487: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8488: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.1 paf 8489: esac
8490:
1.62 paf 8491: if test x"$ac_file" != x-; then
8492: { echo "$as_me:$LINENO: creating $ac_file" >&5
8493: echo "$as_me: creating $ac_file" >&6;}
8494: rm -f "$ac_file"
8495: fi
8496: # Let's still pretend it is `configure' which instantiates (i.e., don't
8497: # use $as_me), people would be surprised to read:
8498: # /* config.h. Generated by config.status. */
8499: if test x"$ac_file" = x-; then
8500: configure_input=
8501: else
8502: configure_input="$ac_file. "
8503: fi
8504: configure_input=$configure_input"Generated from `echo $ac_file_in |
1.86 paf 8505: sed 's,.*/,,'` by configure."
1.62 paf 8506:
8507: # First look for the input files in the build tree, otherwise in the
8508: # src tree.
8509: ac_file_inputs=`IFS=:
8510: for f in $ac_file_in; do
8511: case $f in
8512: -) echo $tmp/stdin ;;
8513: [\\/$]*)
1.86 paf 8514: # Absolute (can't be DOS-style, as IFS=:)
8515: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 8516: echo "$as_me: error: cannot find input file: $f" >&2;}
8517: { (exit 1); exit 1; }; }
1.86 paf 8518: echo "$f";;
1.62 paf 8519: *) # Relative
1.86 paf 8520: if test -f "$f"; then
8521: # Build tree
8522: echo "$f"
8523: elif test -f "$srcdir/$f"; then
8524: # Source tree
8525: echo "$srcdir/$f"
8526: else
8527: # /dev/null tree
8528: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 8529: echo "$as_me: error: cannot find input file: $f" >&2;}
8530: { (exit 1); exit 1; }; }
1.86 paf 8531: fi;;
1.62 paf 8532: esac
8533: done` || { (exit 1); exit 1; }
8534: _ACEOF
8535: cat >>$CONFIG_STATUS <<_ACEOF
8536: sed "$ac_vpsub
8537: $extrasub
8538: _ACEOF
8539: cat >>$CONFIG_STATUS <<\_ACEOF
8540: :t
8541: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8542: s,@configure_input@,$configure_input,;t t
8543: s,@srcdir@,$ac_srcdir,;t t
8544: s,@abs_srcdir@,$ac_abs_srcdir,;t t
8545: s,@top_srcdir@,$ac_top_srcdir,;t t
8546: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8547: s,@builddir@,$ac_builddir,;t t
8548: s,@abs_builddir@,$ac_abs_builddir,;t t
8549: s,@top_builddir@,$ac_top_builddir,;t t
8550: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8551: s,@INSTALL@,$ac_INSTALL,;t t
8552: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8553: rm -f $tmp/stdin
8554: if test x"$ac_file" != x-; then
8555: mv $tmp/out $ac_file
8556: else
8557: cat $tmp/out
8558: rm -f $tmp/out
8559: fi
1.1 paf 8560:
1.62 paf 8561: done
8562: _ACEOF
8563: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 paf 8564:
1.62 paf 8565: #
8566: # CONFIG_HEADER section.
8567: #
1.1 paf 8568:
8569: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8570: # NAME is the cpp macro being defined and VALUE is the value it is being given.
8571: #
8572: # ac_d sets the value in "#define NAME VALUE" lines.
1.86 paf 8573: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8574: ac_dB='[ ].*$,\1#\2'
1.62 paf 8575: ac_dC=' '
8576: ac_dD=',;t'
8577: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1.86 paf 8578: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1.62 paf 8579: ac_uB='$,\1#\2define\3'
1.1 paf 8580: ac_uC=' '
1.62 paf 8581: ac_uD=',;t'
8582:
8583: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 paf 8584: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.62 paf 8585: case $ac_file in
8586: - | *:- | *:-:* ) # input from stdin
1.86 paf 8587: cat >$tmp/stdin
8588: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8589: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 8590: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.86 paf 8591: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 8592: * ) ac_file_in=$ac_file.in ;;
1.1 paf 8593: esac
8594:
1.62 paf 8595: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8596: echo "$as_me: creating $ac_file" >&6;}
1.1 paf 8597:
1.62 paf 8598: # First look for the input files in the build tree, otherwise in the
8599: # src tree.
8600: ac_file_inputs=`IFS=:
8601: for f in $ac_file_in; do
8602: case $f in
8603: -) echo $tmp/stdin ;;
8604: [\\/$]*)
1.86 paf 8605: # Absolute (can't be DOS-style, as IFS=:)
8606: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 8607: echo "$as_me: error: cannot find input file: $f" >&2;}
8608: { (exit 1); exit 1; }; }
1.86 paf 8609: # Do quote $f, to prevent DOS paths from being IFS'd.
8610: echo "$f";;
1.62 paf 8611: *) # Relative
1.86 paf 8612: if test -f "$f"; then
8613: # Build tree
8614: echo "$f"
8615: elif test -f "$srcdir/$f"; then
8616: # Source tree
8617: echo "$srcdir/$f"
8618: else
8619: # /dev/null tree
8620: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 8621: echo "$as_me: error: cannot find input file: $f" >&2;}
8622: { (exit 1); exit 1; }; }
1.86 paf 8623: fi;;
1.62 paf 8624: esac
8625: done` || { (exit 1); exit 1; }
8626: # Remove the trailing spaces.
1.86 paf 8627: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
1.62 paf 8628:
8629: _ACEOF
8630:
8631: # Transform confdefs.h into two sed scripts, `conftest.defines' and
8632: # `conftest.undefs', that substitutes the proper values into
8633: # config.h.in to produce config.h. The first handles `#define'
8634: # templates, and the second `#undef' templates.
8635: # And first: Protect against being on the right side of a sed subst in
8636: # config.status. Protect against being in an unquoted here document
8637: # in config.status.
8638: rm -f conftest.defines conftest.undefs
8639: # Using a here document instead of a string reduces the quoting nightmare.
8640: # Putting comments in sed scripts is not portable.
8641: #
8642: # `end' is used to avoid that the second main sed command (meant for
8643: # 0-ary CPP macros) applies to n-ary macro definitions.
8644: # See the Autoconf documentation for `clear'.
8645: cat >confdef2sed.sed <<\_ACEOF
8646: s/[\\&,]/\\&/g
8647: s,[\\$`],\\&,g
8648: t clear
8649: : clear
1.86 paf 8650: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
1.62 paf 8651: t end
1.86 paf 8652: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
1.62 paf 8653: : end
8654: _ACEOF
8655: # If some macros were called several times there might be several times
8656: # the same #defines, which is useless. Nevertheless, we may not want to
8657: # sort them, since we want the *last* AC-DEFINE to be honored.
8658: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8659: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8660: rm -f confdef2sed.sed
1.1 paf 8661:
8662: # This sed command replaces #undef with comments. This is necessary, for
8663: # example, in the case of _POSIX_SOURCE, which is predefined and required
8664: # on some systems where configure will not decide to define it.
1.62 paf 8665: cat >>conftest.undefs <<\_ACEOF
1.86 paf 8666: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.62 paf 8667: _ACEOF
8668:
8669: # Break up conftest.defines because some shells have a limit on the size
8670: # of here documents, and old seds have small limits too (100 cmds).
8671: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
1.86 paf 8672: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
1.62 paf 8673: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8674: echo ' :' >>$CONFIG_STATUS
8675: rm -f conftest.tail
8676: while grep . conftest.defines >/dev/null
8677: do
8678: # Write a limited-size here document to $tmp/defines.sed.
8679: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8680: # Speed up: don't consider the non `#define' lines.
1.86 paf 8681: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
1.62 paf 8682: # Work around the forget-to-reset-the-flag bug.
8683: echo 't clr' >>$CONFIG_STATUS
8684: echo ': clr' >>$CONFIG_STATUS
8685: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8686: echo 'CEOF
8687: sed -f $tmp/defines.sed $tmp/in >$tmp/out
8688: rm -f $tmp/in
8689: mv $tmp/out $tmp/in
8690: ' >>$CONFIG_STATUS
8691: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8692: rm -f conftest.defines
8693: mv conftest.tail conftest.defines
8694: done
8695: rm -f conftest.defines
8696: echo ' fi # grep' >>$CONFIG_STATUS
8697: echo >>$CONFIG_STATUS
8698:
8699: # Break up conftest.undefs because some shells have a limit on the size
8700: # of here documents, and old seds have small limits too (100 cmds).
8701: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 paf 8702: rm -f conftest.tail
1.62 paf 8703: while grep . conftest.undefs >/dev/null
1.1 paf 8704: do
1.62 paf 8705: # Write a limited-size here document to $tmp/undefs.sed.
8706: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8707: # Speed up: don't consider the non `#undef'
1.86 paf 8708: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
1.62 paf 8709: # Work around the forget-to-reset-the-flag bug.
8710: echo 't clr' >>$CONFIG_STATUS
8711: echo ': clr' >>$CONFIG_STATUS
8712: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 paf 8713: echo 'CEOF
1.62 paf 8714: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8715: rm -f $tmp/in
8716: mv $tmp/out $tmp/in
8717: ' >>$CONFIG_STATUS
8718: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8719: rm -f conftest.undefs
8720: mv conftest.tail conftest.undefs
8721: done
8722: rm -f conftest.undefs
8723:
8724: cat >>$CONFIG_STATUS <<\_ACEOF
8725: # Let's still pretend it is `configure' which instantiates (i.e., don't
8726: # use $as_me), people would be surprised to read:
8727: # /* config.h. Generated by config.status. */
8728: if test x"$ac_file" = x-; then
8729: echo "/* Generated by configure. */" >$tmp/config.h
8730: else
8731: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8732: fi
8733: cat $tmp/in >>$tmp/config.h
8734: rm -f $tmp/in
8735: if test x"$ac_file" != x-; then
8736: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8737: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8738: echo "$as_me: $ac_file is unchanged" >&6;}
8739: else
8740: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8741: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 8742: X"$ac_file" : 'X\(//\)[^/]' \| \
8743: X"$ac_file" : 'X\(//\)$' \| \
8744: X"$ac_file" : 'X\(/\)' \| \
8745: . : '\(.\)' 2>/dev/null ||
1.62 paf 8746: echo X"$ac_file" |
8747: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8748: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8749: /^X\(\/\/\)$/{ s//\1/; q; }
8750: /^X\(\/\).*/{ s//\1/; q; }
8751: s/.*/./; q'`
8752: { if $as_mkdir_p; then
8753: mkdir -p "$ac_dir"
8754: else
8755: as_dir="$ac_dir"
8756: as_dirs=
8757: while test ! -d "$as_dir"; do
8758: as_dirs="$as_dir $as_dirs"
8759: as_dir=`(dirname "$as_dir") 2>/dev/null ||
8760: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 8761: X"$as_dir" : 'X\(//\)[^/]' \| \
8762: X"$as_dir" : 'X\(//\)$' \| \
8763: X"$as_dir" : 'X\(/\)' \| \
8764: . : '\(.\)' 2>/dev/null ||
1.62 paf 8765: echo X"$as_dir" |
8766: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8767: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8768: /^X\(\/\/\)$/{ s//\1/; q; }
8769: /^X\(\/\).*/{ s//\1/; q; }
8770: s/.*/./; q'`
8771: done
8772: test ! -n "$as_dirs" || mkdir $as_dirs
8773: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8774: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8775: { (exit 1); exit 1; }; }; }
8776:
8777: rm -f $ac_file
8778: mv $tmp/config.h $ac_file
8779: fi
8780: else
8781: cat $tmp/config.h
8782: rm -f $tmp/config.h
8783: fi
1.86 paf 8784: # Compute $ac_file's index in $config_headers.
8785: _am_stamp_count=1
8786: for _am_header in $config_headers :; do
8787: case $_am_header in
8788: $ac_file | $ac_file:* )
8789: break ;;
8790: * )
8791: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8792: esac
8793: done
1.62 paf 8794: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8795: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 8796: X$ac_file : 'X\(//\)[^/]' \| \
8797: X$ac_file : 'X\(//\)$' \| \
8798: X$ac_file : 'X\(/\)' \| \
8799: . : '\(.\)' 2>/dev/null ||
1.62 paf 8800: echo X$ac_file |
8801: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8802: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8803: /^X\(\/\/\)$/{ s//\1/; q; }
8804: /^X\(\/\).*/{ s//\1/; q; }
8805: s/.*/./; q'`/stamp-h$_am_stamp_count
8806: done
8807: _ACEOF
8808: cat >>$CONFIG_STATUS <<\_ACEOF
8809:
8810: #
8811: # CONFIG_COMMANDS section.
8812: #
8813: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8814: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8815: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8816: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8817: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 8818: X"$ac_dest" : 'X\(//\)[^/]' \| \
8819: X"$ac_dest" : 'X\(//\)$' \| \
8820: X"$ac_dest" : 'X\(/\)' \| \
8821: . : '\(.\)' 2>/dev/null ||
1.62 paf 8822: echo X"$ac_dest" |
8823: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8824: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8825: /^X\(\/\/\)$/{ s//\1/; q; }
8826: /^X\(\/\).*/{ s//\1/; q; }
8827: s/.*/./; q'`
1.86 paf 8828: { if $as_mkdir_p; then
8829: mkdir -p "$ac_dir"
8830: else
8831: as_dir="$ac_dir"
8832: as_dirs=
8833: while test ! -d "$as_dir"; do
8834: as_dirs="$as_dir $as_dirs"
8835: as_dir=`(dirname "$as_dir") 2>/dev/null ||
8836: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8837: X"$as_dir" : 'X\(//\)[^/]' \| \
8838: X"$as_dir" : 'X\(//\)$' \| \
8839: X"$as_dir" : 'X\(/\)' \| \
8840: . : '\(.\)' 2>/dev/null ||
8841: echo X"$as_dir" |
8842: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8843: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8844: /^X\(\/\/\)$/{ s//\1/; q; }
8845: /^X\(\/\).*/{ s//\1/; q; }
8846: s/.*/./; q'`
8847: done
8848: test ! -n "$as_dirs" || mkdir $as_dirs
8849: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8850: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8851: { (exit 1); exit 1; }; }; }
8852:
1.62 paf 8853: ac_builddir=.
8854:
8855: if test "$ac_dir" != .; then
8856: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8857: # A "../" for each directory in $ac_dir_suffix.
8858: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8859: else
8860: ac_dir_suffix= ac_top_builddir=
8861: fi
8862:
8863: case $srcdir in
8864: .) # No --srcdir option. We are building in place.
8865: ac_srcdir=.
8866: if test -z "$ac_top_builddir"; then
8867: ac_top_srcdir=.
8868: else
8869: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8870: fi ;;
8871: [\\/]* | ?:[\\/]* ) # Absolute path.
8872: ac_srcdir=$srcdir$ac_dir_suffix;
8873: ac_top_srcdir=$srcdir ;;
8874: *) # Relative path.
8875: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8876: ac_top_srcdir=$ac_top_builddir$srcdir ;;
8877: esac
1.86 paf 8878:
8879: # Do not use `cd foo && pwd` to compute absolute paths, because
8880: # the directories may not exist.
8881: case `pwd` in
8882: .) ac_abs_builddir="$ac_dir";;
8883: *)
8884: case "$ac_dir" in
8885: .) ac_abs_builddir=`pwd`;;
8886: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8887: *) ac_abs_builddir=`pwd`/"$ac_dir";;
8888: esac;;
8889: esac
8890: case $ac_abs_builddir in
8891: .) ac_abs_top_builddir=${ac_top_builddir}.;;
8892: *)
8893: case ${ac_top_builddir}. in
8894: .) ac_abs_top_builddir=$ac_abs_builddir;;
8895: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8896: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8897: esac;;
8898: esac
8899: case $ac_abs_builddir in
8900: .) ac_abs_srcdir=$ac_srcdir;;
8901: *)
8902: case $ac_srcdir in
8903: .) ac_abs_srcdir=$ac_abs_builddir;;
8904: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8905: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8906: esac;;
8907: esac
8908: case $ac_abs_builddir in
8909: .) ac_abs_top_srcdir=$ac_top_srcdir;;
8910: *)
8911: case $ac_top_srcdir in
8912: .) ac_abs_top_srcdir=$ac_abs_builddir;;
8913: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8914: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8915: esac;;
8916: esac
1.62 paf 8917:
8918:
8919: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8920: echo "$as_me: executing $ac_dest commands" >&6;}
8921: case $ac_dest in
8922: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8923: # Strip MF so we end up with the name of the file.
8924: mf=`echo "$mf" | sed -e 's/:.*$//'`
8925: # Check whether this is an Automake generated Makefile or not.
8926: # We used to match only the files named `Makefile.in', but
8927: # some people rename them; so instead we look at the file content.
8928: # Grep'ing the first line is not enough: some people post-process
8929: # each Makefile.in and add a new line on top of each file to say so.
8930: # So let's grep whole file.
8931: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8932: dirpart=`(dirname "$mf") 2>/dev/null ||
8933: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 8934: X"$mf" : 'X\(//\)[^/]' \| \
8935: X"$mf" : 'X\(//\)$' \| \
8936: X"$mf" : 'X\(/\)' \| \
8937: . : '\(.\)' 2>/dev/null ||
1.62 paf 8938: echo X"$mf" |
8939: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8940: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8941: /^X\(\/\/\)$/{ s//\1/; q; }
8942: /^X\(\/\).*/{ s//\1/; q; }
8943: s/.*/./; q'`
8944: else
8945: continue
8946: fi
1.86 paf 8947: # Extract the definition of DEPDIR, am__include, and am__quote
8948: # from the Makefile without running `make'.
8949: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1.62 paf 8950: test -z "$DEPDIR" && continue
1.86 paf 8951: am__include=`sed -n 's/^am__include = //p' < "$mf"`
8952: test -z "am__include" && continue
8953: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1.62 paf 8954: # When using ansi2knr, U may be empty or an underscore; expand it
1.86 paf 8955: U=`sed -n 's/^U = //p' < "$mf"`
8956: # Find all dependency output files, they are included files with
8957: # $(DEPDIR) in their names. We invoke sed twice because it is the
8958: # simplest approach to changing $(DEPDIR) to its actual value in the
8959: # expansion.
8960: for file in `sed -n "
8961: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.62 paf 8962: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8963: # Make sure the directory exists.
8964: test -f "$dirpart/$file" && continue
8965: fdir=`(dirname "$file") 2>/dev/null ||
8966: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 8967: X"$file" : 'X\(//\)[^/]' \| \
8968: X"$file" : 'X\(//\)$' \| \
8969: X"$file" : 'X\(/\)' \| \
8970: . : '\(.\)' 2>/dev/null ||
1.62 paf 8971: echo X"$file" |
8972: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8973: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8974: /^X\(\/\/\)$/{ s//\1/; q; }
8975: /^X\(\/\).*/{ s//\1/; q; }
8976: s/.*/./; q'`
8977: { if $as_mkdir_p; then
8978: mkdir -p $dirpart/$fdir
8979: else
8980: as_dir=$dirpart/$fdir
8981: as_dirs=
8982: while test ! -d "$as_dir"; do
8983: as_dirs="$as_dir $as_dirs"
8984: as_dir=`(dirname "$as_dir") 2>/dev/null ||
8985: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 8986: X"$as_dir" : 'X\(//\)[^/]' \| \
8987: X"$as_dir" : 'X\(//\)$' \| \
8988: X"$as_dir" : 'X\(/\)' \| \
8989: . : '\(.\)' 2>/dev/null ||
1.62 paf 8990: echo X"$as_dir" |
8991: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8992: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8993: /^X\(\/\/\)$/{ s//\1/; q; }
8994: /^X\(\/\).*/{ s//\1/; q; }
8995: s/.*/./; q'`
8996: done
8997: test ! -n "$as_dirs" || mkdir $as_dirs
8998: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8999: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9000: { (exit 1); exit 1; }; }; }
1.1 paf 9001:
1.62 paf 9002: # echo "creating $dirpart/$file"
9003: echo '# dummy' > "$dirpart/$file"
9004: done
9005: done
9006: ;;
9007: esac
9008: done
9009: _ACEOF
9010:
9011: cat >>$CONFIG_STATUS <<\_ACEOF
9012:
9013: { (exit 0); exit 0; }
9014: _ACEOF
1.1 paf 9015: chmod +x $CONFIG_STATUS
1.62 paf 9016: ac_clean_files=$ac_clean_files_save
9017:
1.1 paf 9018:
1.62 paf 9019: # configure is writing to config.log, and then calls config.status.
9020: # config.status does its own redirection, appending to config.log.
9021: # Unfortunately, on DOS this fails, as config.log is still kept open
9022: # by configure, so config.status won't be able to write to it; its
9023: # output is simply discarded. So we exec the FD to /dev/null,
9024: # effectively closing config.log, so it can be properly (re)opened and
9025: # appended to by config.status. When coming back to configure, we
9026: # need to make the FD available again.
9027: if test "$no_create" != yes; then
9028: ac_cs_success=:
9029: ac_config_status_args=
9030: test "$silent" = yes &&
9031: ac_config_status_args="$ac_config_status_args --quiet"
9032: exec 5>/dev/null
9033: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9034: exec 5>>config.log
9035: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9036: # would make configure fail if this is the last instruction.
9037: $ac_cs_success || { (exit 1); exit 1; }
9038: fi
9039:
9040: #
9041: # CONFIG_SUBDIRS section.
9042: #
1.1 paf 9043: if test "$no_recursion" != yes; then
9044:
9045: # Remove --cache-file and --srcdir arguments so they do not pile up.
9046: ac_sub_configure_args=
9047: ac_prev=
9048: for ac_arg in $ac_configure_args; do
9049: if test -n "$ac_prev"; then
9050: ac_prev=
9051: continue
9052: fi
1.62 paf 9053: case $ac_arg in
1.1 paf 9054: -cache-file | --cache-file | --cache-fil | --cache-fi \
9055: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9056: ac_prev=cache_file ;;
9057: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 9058: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9059: | --c=*)
9060: ;;
9061: --config-cache | -C)
1.1 paf 9062: ;;
9063: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9064: ac_prev=srcdir ;;
9065: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9066: ;;
1.62 paf 9067: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9068: ac_prev=prefix ;;
9069: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9070: ;;
1.1 paf 9071: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9072: esac
9073: done
9074:
1.62 paf 9075: # Always prepend --prefix to ensure using the same prefix
9076: # in subdir configurations.
9077: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
9078:
9079: ac_popdir=`pwd`
9080: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 9081:
9082: # Do not complain, so a configure script can configure whichever
9083: # parts of a large source tree are present.
1.62 paf 9084: test -d $srcdir/$ac_dir || continue
1.1 paf 9085:
1.62 paf 9086: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
9087: echo "$as_me: configuring in $ac_dir" >&6;}
9088: { if $as_mkdir_p; then
9089: mkdir -p "$ac_dir"
9090: else
9091: as_dir="$ac_dir"
9092: as_dirs=
9093: while test ! -d "$as_dir"; do
9094: as_dirs="$as_dir $as_dirs"
9095: as_dir=`(dirname "$as_dir") 2>/dev/null ||
9096: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 9097: X"$as_dir" : 'X\(//\)[^/]' \| \
9098: X"$as_dir" : 'X\(//\)$' \| \
9099: X"$as_dir" : 'X\(/\)' \| \
9100: . : '\(.\)' 2>/dev/null ||
1.62 paf 9101: echo X"$as_dir" |
9102: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9103: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9104: /^X\(\/\/\)$/{ s//\1/; q; }
9105: /^X\(\/\).*/{ s//\1/; q; }
9106: s/.*/./; q'`
9107: done
9108: test ! -n "$as_dirs" || mkdir $as_dirs
9109: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9110: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9111: { (exit 1); exit 1; }; }; }
9112:
9113: ac_builddir=.
9114:
9115: if test "$ac_dir" != .; then
9116: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9117: # A "../" for each directory in $ac_dir_suffix.
9118: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9119: else
9120: ac_dir_suffix= ac_top_builddir=
9121: fi
9122:
9123: case $srcdir in
9124: .) # No --srcdir option. We are building in place.
9125: ac_srcdir=.
9126: if test -z "$ac_top_builddir"; then
9127: ac_top_srcdir=.
9128: else
9129: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9130: fi ;;
9131: [\\/]* | ?:[\\/]* ) # Absolute path.
9132: ac_srcdir=$srcdir$ac_dir_suffix;
9133: ac_top_srcdir=$srcdir ;;
9134: *) # Relative path.
9135: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9136: ac_top_srcdir=$ac_top_builddir$srcdir ;;
9137: esac
1.86 paf 9138:
9139: # Do not use `cd foo && pwd` to compute absolute paths, because
9140: # the directories may not exist.
9141: case `pwd` in
9142: .) ac_abs_builddir="$ac_dir";;
9143: *)
9144: case "$ac_dir" in
9145: .) ac_abs_builddir=`pwd`;;
9146: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9147: *) ac_abs_builddir=`pwd`/"$ac_dir";;
9148: esac;;
9149: esac
9150: case $ac_abs_builddir in
9151: .) ac_abs_top_builddir=${ac_top_builddir}.;;
9152: *)
9153: case ${ac_top_builddir}. in
9154: .) ac_abs_top_builddir=$ac_abs_builddir;;
9155: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9156: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9157: esac;;
9158: esac
9159: case $ac_abs_builddir in
9160: .) ac_abs_srcdir=$ac_srcdir;;
9161: *)
9162: case $ac_srcdir in
9163: .) ac_abs_srcdir=$ac_abs_builddir;;
9164: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9165: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9166: esac;;
9167: esac
9168: case $ac_abs_builddir in
9169: .) ac_abs_top_srcdir=$ac_top_srcdir;;
9170: *)
9171: case $ac_top_srcdir in
9172: .) ac_abs_top_srcdir=$ac_abs_builddir;;
9173: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9174: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9175: esac;;
9176: esac
1.1 paf 9177:
9178:
1.62 paf 9179: cd $ac_dir
1.1 paf 9180:
9181: # Check for guested configure; otherwise get Cygnus style configure.
1.62 paf 9182: if test -f $ac_srcdir/configure.gnu; then
9183: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
9184: elif test -f $ac_srcdir/configure; then
9185: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
9186: elif test -f $ac_srcdir/configure.in; then
1.1 paf 9187: ac_sub_configure=$ac_configure
9188: else
1.62 paf 9189: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9190: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 9191: ac_sub_configure=
9192: fi
9193:
9194: # The recursion is here.
9195: if test -n "$ac_sub_configure"; then
9196: # Make the cache file name correct relative to the subdirectory.
1.62 paf 9197: case $cache_file in
9198: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 paf 9199: *) # Relative path.
1.86 paf 9200: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 paf 9201: esac
9202:
1.62 paf 9203: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9204: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 paf 9205: # The eval makes quoting arguments work.
1.62 paf 9206: eval $ac_sub_configure $ac_sub_configure_args \
1.86 paf 9207: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
9208: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
1.62 paf 9209: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9210: { (exit 1); exit 1; }; }
1.1 paf 9211: fi
9212:
9213: cd $ac_popdir
9214: done
9215: fi
9216:
E-mail: