Annotation of sql/oracle/configure, revision 1.15
1.1 parser 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.11 paf 3: # Generated by GNU Autoconf 2.57.
1.1 parser 4: #
1.11 paf 5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6: # Free Software Foundation, Inc.
1.1 parser 7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
1.11 paf 9: ## --------------------- ##
10: ## M4sh Initialization. ##
11: ## --------------------- ##
12:
13: # Be Bourne compatible
14: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15: emulate sh
16: NULLCMD=:
17: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18: # is contrary to our usage. Disable this feature.
19: alias -g '${1+"$@"}'='"$@"'
20: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21: set -o posix
22: fi
23:
24: # Support unset when possible.
25: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
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
44: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
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
221: as_mkdir_p=false
222: fi
223:
224: as_executable_p="test -f"
225:
226: # Sed expression to map a string onto a valid CPP name.
227: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228:
229: # Sed expression to map a string onto a valid variable name.
230: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231:
232:
233: # IFS
234: # We need space, tab and new line, in precisely that order.
235: as_nl='
236: '
237: IFS=" $as_nl"
238:
239: # CDPATH.
240: $as_unset CDPATH
241:
242:
243: # Find the correct PATH separator. Usually this is `:', but
244: # DJGPP uses `;' like DOS.
245: if test "X${PATH_SEPARATOR+set}" != Xset; then
246: UNAME=${UNAME-`uname 2>/dev/null`}
247: case X$UNAME in
248: *-DOS) lt_cv_sys_path_separator=';' ;;
249: *) lt_cv_sys_path_separator=':' ;;
250: esac
251: PATH_SEPARATOR=$lt_cv_sys_path_separator
252: fi
253:
254:
255: # Check that we are running under the correct shell.
256: SHELL=${CONFIG_SHELL-/bin/sh}
257:
258: case X$ECHO in
259: X*--fallback-echo)
260: # Remove one level of quotation (which was required for Make).
261: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262: ;;
263: esac
264:
265: echo=${ECHO-echo}
266: if test "X$1" = X--no-reexec; then
267: # Discard the --no-reexec flag, and continue.
268: shift
269: elif test "X$1" = X--fallback-echo; then
270: # Avoid inline document here, it may be left over
271: :
272: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273: # Yippee, $echo works!
274: :
275: else
276: # Restart under the correct shell.
277: exec $SHELL "$0" --no-reexec ${1+"$@"}
278: fi
279:
280: if test "X$1" = X--fallback-echo; then
281: # used as fallback echo
282: shift
283: cat <<EOF
284:
285: EOF
286: exit 0
287: fi
288:
289: # The HP-UX ksh and POSIX shell print the target directory to stdout
290: # if CDPATH is set.
291: if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292:
293: if test -z "$ECHO"; then
294: if test "X${echo_test_string+set}" != Xset; then
295: # find a string as large as possible, as long as the shell can cope with it
296: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298: if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299: echo_test_string="`eval $cmd`" &&
300: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301: then
302: break
303: fi
304: done
305: fi
306:
307: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309: test "X$echo_testing_string" = "X$echo_test_string"; then
310: :
311: else
312: # The Solaris, AIX, and Digital Unix default echo programs unquote
313: # backslashes. This makes it impossible to quote backslashes using
314: # echo "$something" | sed 's/\\/\\\\/g'
315: #
316: # So, first we look for a working echo in the user's PATH.
317:
318: IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319: for dir in $PATH /usr/ucb; do
320: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323: test "X$echo_testing_string" = "X$echo_test_string"; then
324: echo="$dir/echo"
325: break
326: fi
327: done
328: IFS="$save_ifs"
329:
330: if test "X$echo" = Xecho; then
331: # We didn't find a better echo, so look for alternatives.
332: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334: test "X$echo_testing_string" = "X$echo_test_string"; then
335: # This shell has a builtin print -r that does the trick.
336: echo='print -r'
337: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338: test "X$CONFIG_SHELL" != X/bin/ksh; then
339: # If we have ksh, try running configure again with it.
340: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341: export ORIGINAL_CONFIG_SHELL
342: CONFIG_SHELL=/bin/ksh
343: export CONFIG_SHELL
344: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345: else
346: # Try using printf.
347: echo='printf %s\n'
348: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350: test "X$echo_testing_string" = "X$echo_test_string"; then
351: # Cool, printf works
352: :
353: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354: test "X$echo_testing_string" = 'X\t' &&
355: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356: test "X$echo_testing_string" = "X$echo_test_string"; then
357: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358: export CONFIG_SHELL
359: SHELL="$CONFIG_SHELL"
360: export SHELL
361: echo="$CONFIG_SHELL $0 --fallback-echo"
362: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363: test "X$echo_testing_string" = 'X\t' &&
364: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365: test "X$echo_testing_string" = "X$echo_test_string"; then
366: echo="$CONFIG_SHELL $0 --fallback-echo"
367: else
368: # maybe with a smaller string...
369: prev=:
370:
371: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373: then
374: break
375: fi
376: prev="$cmd"
377: done
378:
379: if test "$prev" != 'sed 50q "$0"'; then
380: echo_test_string=`eval $prev`
381: export echo_test_string
382: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383: else
384: # Oops. We lost completely, so just stick with echo.
385: echo=echo
386: fi
387: fi
388: fi
389: fi
390: fi
391: fi
392:
393: # Copy echo and quote the copy suitably for passing to libtool from
394: # the Makefile, instead of quoting the original, which is used later.
395: ECHO=$echo
396: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398: fi
399:
400:
401:
402: # Name of the host.
403: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404: # so uname gets run too.
405: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1.1 parser 406:
1.11 paf 407: exec 6>&1
408:
409: #
410: # Initializations.
411: #
1.1 parser 412: ac_default_prefix=/usr/local
1.11 paf 413: ac_config_libobj_dir=.
414: cross_compiling=no
415: subdirs=
416: MFLAGS=
417: MAKEFLAGS=
418: SHELL=${CONFIG_SHELL-/bin/sh}
419:
420: # Maximum number of lines to put in a shell here document.
421: # This variable seems obsolete. It should probably be removed, and
422: # only ac_max_sed_lines should be used.
423: : ${ac_max_here_lines=38}
424:
425: # Identity of this package.
426: PACKAGE_NAME=
427: PACKAGE_TARNAME=
428: PACKAGE_VERSION=
429: PACKAGE_STRING=
430: PACKAGE_BUGREPORT=
431:
432: ac_unique_file="parser3oracle.C"
433: # Factoring default headers for most tests.
434: ac_includes_default="\
435: #include <stdio.h>
436: #if HAVE_SYS_TYPES_H
437: # include <sys/types.h>
438: #endif
439: #if HAVE_SYS_STAT_H
440: # include <sys/stat.h>
441: #endif
442: #if STDC_HEADERS
443: # include <stdlib.h>
444: # include <stddef.h>
445: #else
446: # if HAVE_STDLIB_H
447: # include <stdlib.h>
448: # endif
449: #endif
450: #if HAVE_STRING_H
451: # if !STDC_HEADERS && HAVE_MEMORY_H
452: # include <memory.h>
453: # endif
454: # include <string.h>
455: #endif
456: #if HAVE_STRINGS_H
457: # include <strings.h>
458: #endif
459: #if HAVE_INTTYPES_H
460: # include <inttypes.h>
461: #else
462: # if HAVE_STDINT_H
463: # include <stdint.h>
464: # endif
465: #endif
466: #if HAVE_UNISTD_H
467: # include <unistd.h>
468: #endif"
469:
470: ac_subdirs_all="$ac_subdirs_all libltdl"
1.15 ! paf 471: 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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE ORACLE_OCI_INC ORACLE_PUBLIC_INC 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 INCLTDL LIBLTDL LIBADD_DL build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL subdirs LIBOBJS LTLIBOBJS'
1.11 paf 472: ac_subst_files=''
1.1 parser 473:
474: # Initialize some variables set by options.
1.11 paf 475: ac_init_help=
476: ac_init_version=false
1.1 parser 477: # The variables have the same names as the options, with
478: # dashes changed to underlines.
1.11 paf 479: cache_file=/dev/null
1.1 parser 480: exec_prefix=NONE
481: no_create=
482: no_recursion=
483: prefix=NONE
484: program_prefix=NONE
485: program_suffix=NONE
486: program_transform_name=s,x,x,
487: silent=
488: site=
489: srcdir=
490: verbose=
491: x_includes=NONE
492: x_libraries=NONE
1.11 paf 493:
494: # Installation directory options.
495: # These are left unexpanded so users can "make install exec_prefix=/foo"
496: # and all the variables that are supposed to be based on exec_prefix
497: # by default will actually change.
498: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1 parser 499: bindir='${exec_prefix}/bin'
500: sbindir='${exec_prefix}/sbin'
501: libexecdir='${exec_prefix}/libexec'
502: datadir='${prefix}/share'
503: sysconfdir='${prefix}/etc'
504: sharedstatedir='${prefix}/com'
505: localstatedir='${prefix}/var'
506: libdir='${exec_prefix}/lib'
507: includedir='${prefix}/include'
508: oldincludedir='/usr/include'
509: infodir='${prefix}/info'
510: mandir='${prefix}/man'
511:
512: ac_prev=
513: for ac_option
514: do
515: # If the previous option needs an argument, assign it.
516: if test -n "$ac_prev"; then
517: eval "$ac_prev=\$ac_option"
518: ac_prev=
519: continue
520: fi
521:
1.11 paf 522: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 parser 523:
524: # Accept the important Cygnus configure options, so we can diagnose typos.
525:
1.11 paf 526: case $ac_option in
1.1 parser 527:
528: -bindir | --bindir | --bindi | --bind | --bin | --bi)
529: ac_prev=bindir ;;
530: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.11 paf 531: bindir=$ac_optarg ;;
1.1 parser 532:
533: -build | --build | --buil | --bui | --bu)
1.11 paf 534: ac_prev=build_alias ;;
1.1 parser 535: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.11 paf 536: build_alias=$ac_optarg ;;
1.1 parser 537:
538: -cache-file | --cache-file | --cache-fil | --cache-fi \
539: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540: ac_prev=cache_file ;;
541: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.11 paf 543: cache_file=$ac_optarg ;;
544:
545: --config-cache | -C)
546: cache_file=config.cache ;;
1.1 parser 547:
548: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549: ac_prev=datadir ;;
550: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551: | --da=*)
1.11 paf 552: datadir=$ac_optarg ;;
1.1 parser 553:
554: -disable-* | --disable-*)
1.11 paf 555: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 parser 556: # Reject names that are not valid shell variable names.
1.11 paf 557: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559: { (exit 1); exit 1; }; }
560: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561: eval "enable_$ac_feature=no" ;;
1.1 parser 562:
563: -enable-* | --enable-*)
1.11 paf 564: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 parser 565: # Reject names that are not valid shell variable names.
1.11 paf 566: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568: { (exit 1); exit 1; }; }
569: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570: case $ac_option in
571: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 parser 572: *) ac_optarg=yes ;;
573: esac
1.11 paf 574: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 parser 575:
576: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578: | --exec | --exe | --ex)
579: ac_prev=exec_prefix ;;
580: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582: | --exec=* | --exe=* | --ex=*)
1.11 paf 583: exec_prefix=$ac_optarg ;;
1.1 parser 584:
585: -gas | --gas | --ga | --g)
586: # Obsolete; use --with-gas.
587: with_gas=yes ;;
588:
1.11 paf 589: -help | --help | --hel | --he | -h)
590: ac_init_help=long ;;
591: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592: ac_init_help=recursive ;;
593: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594: ac_init_help=short ;;
1.1 parser 595:
596: -host | --host | --hos | --ho)
1.11 paf 597: ac_prev=host_alias ;;
1.1 parser 598: -host=* | --host=* | --hos=* | --ho=*)
1.11 paf 599: host_alias=$ac_optarg ;;
1.1 parser 600:
601: -includedir | --includedir | --includedi | --included | --include \
602: | --includ | --inclu | --incl | --inc)
603: ac_prev=includedir ;;
604: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.11 paf 606: includedir=$ac_optarg ;;
1.1 parser 607:
608: -infodir | --infodir | --infodi | --infod | --info | --inf)
609: ac_prev=infodir ;;
610: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.11 paf 611: infodir=$ac_optarg ;;
1.1 parser 612:
613: -libdir | --libdir | --libdi | --libd)
614: ac_prev=libdir ;;
615: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.11 paf 616: libdir=$ac_optarg ;;
1.1 parser 617:
618: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619: | --libexe | --libex | --libe)
620: ac_prev=libexecdir ;;
621: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622: | --libexe=* | --libex=* | --libe=*)
1.11 paf 623: libexecdir=$ac_optarg ;;
1.1 parser 624:
625: -localstatedir | --localstatedir | --localstatedi | --localstated \
626: | --localstate | --localstat | --localsta | --localst \
627: | --locals | --local | --loca | --loc | --lo)
628: ac_prev=localstatedir ;;
629: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.11 paf 632: localstatedir=$ac_optarg ;;
1.1 parser 633:
634: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635: ac_prev=mandir ;;
636: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.11 paf 637: mandir=$ac_optarg ;;
1.1 parser 638:
639: -nfp | --nfp | --nf)
640: # Obsolete; use --without-fp.
641: with_fp=no ;;
642:
643: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.11 paf 644: | --no-cr | --no-c | -n)
1.1 parser 645: no_create=yes ;;
646:
647: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649: no_recursion=yes ;;
650:
651: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653: | --oldin | --oldi | --old | --ol | --o)
654: ac_prev=oldincludedir ;;
655: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.11 paf 658: oldincludedir=$ac_optarg ;;
1.1 parser 659:
660: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661: ac_prev=prefix ;;
662: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.11 paf 663: prefix=$ac_optarg ;;
1.1 parser 664:
665: -program-prefix | --program-prefix | --program-prefi | --program-pref \
666: | --program-pre | --program-pr | --program-p)
667: ac_prev=program_prefix ;;
668: -program-prefix=* | --program-prefix=* | --program-prefi=* \
669: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.11 paf 670: program_prefix=$ac_optarg ;;
1.1 parser 671:
672: -program-suffix | --program-suffix | --program-suffi | --program-suff \
673: | --program-suf | --program-su | --program-s)
674: ac_prev=program_suffix ;;
675: -program-suffix=* | --program-suffix=* | --program-suffi=* \
676: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.11 paf 677: program_suffix=$ac_optarg ;;
1.1 parser 678:
679: -program-transform-name | --program-transform-name \
680: | --program-transform-nam | --program-transform-na \
681: | --program-transform-n | --program-transform- \
682: | --program-transform | --program-transfor \
683: | --program-transfo | --program-transf \
684: | --program-trans | --program-tran \
685: | --progr-tra | --program-tr | --program-t)
686: ac_prev=program_transform_name ;;
687: -program-transform-name=* | --program-transform-name=* \
688: | --program-transform-nam=* | --program-transform-na=* \
689: | --program-transform-n=* | --program-transform-=* \
690: | --program-transform=* | --program-transfor=* \
691: | --program-transfo=* | --program-transf=* \
692: | --program-trans=* | --program-tran=* \
693: | --progr-tra=* | --program-tr=* | --program-t=*)
1.11 paf 694: program_transform_name=$ac_optarg ;;
1.1 parser 695:
696: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697: | -silent | --silent | --silen | --sile | --sil)
698: silent=yes ;;
699:
700: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701: ac_prev=sbindir ;;
702: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703: | --sbi=* | --sb=*)
1.11 paf 704: sbindir=$ac_optarg ;;
1.1 parser 705:
706: -sharedstatedir | --sharedstatedir | --sharedstatedi \
707: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708: | --sharedst | --shareds | --shared | --share | --shar \
709: | --sha | --sh)
710: ac_prev=sharedstatedir ;;
711: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714: | --sha=* | --sh=*)
1.11 paf 715: sharedstatedir=$ac_optarg ;;
1.1 parser 716:
717: -site | --site | --sit)
718: ac_prev=site ;;
719: -site=* | --site=* | --sit=*)
1.11 paf 720: site=$ac_optarg ;;
1.1 parser 721:
722: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723: ac_prev=srcdir ;;
724: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.11 paf 725: srcdir=$ac_optarg ;;
1.1 parser 726:
727: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728: | --syscon | --sysco | --sysc | --sys | --sy)
729: ac_prev=sysconfdir ;;
730: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.11 paf 732: sysconfdir=$ac_optarg ;;
1.1 parser 733:
734: -target | --target | --targe | --targ | --tar | --ta | --t)
1.11 paf 735: ac_prev=target_alias ;;
1.1 parser 736: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.11 paf 737: target_alias=$ac_optarg ;;
1.1 parser 738:
739: -v | -verbose | --verbose | --verbos | --verbo | --verb)
740: verbose=yes ;;
741:
1.11 paf 742: -version | --version | --versio | --versi | --vers | -V)
743: ac_init_version=: ;;
1.1 parser 744:
745: -with-* | --with-*)
1.11 paf 746: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 parser 747: # Reject names that are not valid shell variable names.
1.11 paf 748: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749: { echo "$as_me: error: invalid package name: $ac_package" >&2
750: { (exit 1); exit 1; }; }
1.1 parser 751: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.11 paf 752: case $ac_option in
753: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 parser 754: *) ac_optarg=yes ;;
755: esac
1.11 paf 756: eval "with_$ac_package='$ac_optarg'" ;;
1.1 parser 757:
758: -without-* | --without-*)
1.11 paf 759: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 parser 760: # Reject names that are not valid shell variable names.
1.11 paf 761: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762: { echo "$as_me: error: invalid package name: $ac_package" >&2
763: { (exit 1); exit 1; }; }
764: ac_package=`echo $ac_package | sed 's/-/_/g'`
765: eval "with_$ac_package=no" ;;
1.1 parser 766:
767: --x)
768: # Obsolete; use --with-x.
769: with_x=yes ;;
770:
771: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772: | --x-incl | --x-inc | --x-in | --x-i)
773: ac_prev=x_includes ;;
774: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.11 paf 776: x_includes=$ac_optarg ;;
1.1 parser 777:
778: -x-libraries | --x-libraries | --x-librarie | --x-librari \
779: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780: ac_prev=x_libraries ;;
781: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.11 paf 783: x_libraries=$ac_optarg ;;
1.1 parser 784:
1.11 paf 785: -*) { echo "$as_me: error: unrecognized option: $ac_option
786: Try \`$0 --help' for more information." >&2
787: { (exit 1); exit 1; }; }
1.1 parser 788: ;;
789:
1.11 paf 790: *=*)
791: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792: # Reject names that are not valid shell variable names.
793: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795: { (exit 1); exit 1; }; }
796: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797: eval "$ac_envvar='$ac_optarg'"
798: export $ac_envvar ;;
799:
1.1 parser 800: *)
1.11 paf 801: # FIXME: should be removed in autoconf 3.0.
802: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 parser 806: ;;
807:
808: esac
809: done
810:
811: if test -n "$ac_prev"; then
1.11 paf 812: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813: { echo "$as_me: error: missing argument to $ac_option" >&2
814: { (exit 1); exit 1; }; }
1.1 parser 815: fi
816:
1.11 paf 817: # Be sure to have absolute paths.
818: for ac_var in exec_prefix prefix
819: do
820: eval ac_val=$`echo $ac_var`
821: case $ac_val in
822: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824: { (exit 1); exit 1; }; };;
825: esac
826: done
1.1 parser 827:
1.11 paf 828: # Be sure to have absolute paths.
829: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830: localstatedir libdir includedir oldincludedir infodir mandir
1.1 parser 831: do
1.11 paf 832: eval ac_val=$`echo $ac_var`
833: case $ac_val in
834: [\\/$]* | ?:[\\/]* ) ;;
835: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836: { (exit 1); exit 1; }; };;
1.1 parser 837: esac
838: done
839:
1.11 paf 840: # There might be people who depend on the old broken behavior: `$host'
841: # used to hold the argument of --host etc.
842: # FIXME: To remove some day.
843: build=$build_alias
844: host=$host_alias
845: target=$target_alias
846:
847: # FIXME: To remove some day.
848: if test "x$host_alias" != x; then
849: if test "x$build_alias" = x; then
850: cross_compiling=maybe
851: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852: If a cross compiler is detected then cross compile mode will be used." >&2
853: elif test "x$build_alias" != "x$host_alias"; then
854: cross_compiling=yes
855: fi
856: fi
857:
858: ac_tool_prefix=
859: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 parser 860:
1.11 paf 861: test "$silent" = yes && exec 6>/dev/null
1.1 parser 862:
863:
864: # Find the source files, if location was not specified.
865: if test -z "$srcdir"; then
866: ac_srcdir_defaulted=yes
867: # Try the directory containing this script, then its parent.
1.11 paf 868: ac_confdir=`(dirname "$0") 2>/dev/null ||
869: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870: X"$0" : 'X\(//\)[^/]' \| \
871: X"$0" : 'X\(//\)$' \| \
872: X"$0" : 'X\(/\)' \| \
873: . : '\(.\)' 2>/dev/null ||
874: echo X"$0" |
875: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877: /^X\(\/\/\)$/{ s//\1/; q; }
878: /^X\(\/\).*/{ s//\1/; q; }
879: s/.*/./; q'`
1.1 parser 880: srcdir=$ac_confdir
881: if test ! -r $srcdir/$ac_unique_file; then
882: srcdir=..
883: fi
884: else
885: ac_srcdir_defaulted=no
886: fi
887: if test ! -r $srcdir/$ac_unique_file; then
888: if test "$ac_srcdir_defaulted" = yes; then
1.11 paf 889: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890: { (exit 1); exit 1; }; }
1.1 parser 891: else
1.11 paf 892: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893: { (exit 1); exit 1; }; }
1.1 parser 894: fi
895: fi
1.11 paf 896: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898: { (exit 1); exit 1; }; }
899: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900: ac_env_build_alias_set=${build_alias+set}
901: ac_env_build_alias_value=$build_alias
902: ac_cv_env_build_alias_set=${build_alias+set}
903: ac_cv_env_build_alias_value=$build_alias
904: ac_env_host_alias_set=${host_alias+set}
905: ac_env_host_alias_value=$host_alias
906: ac_cv_env_host_alias_set=${host_alias+set}
907: ac_cv_env_host_alias_value=$host_alias
908: ac_env_target_alias_set=${target_alias+set}
909: ac_env_target_alias_value=$target_alias
910: ac_cv_env_target_alias_set=${target_alias+set}
911: ac_cv_env_target_alias_value=$target_alias
912: ac_env_CXX_set=${CXX+set}
913: ac_env_CXX_value=$CXX
914: ac_cv_env_CXX_set=${CXX+set}
915: ac_cv_env_CXX_value=$CXX
916: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
917: ac_env_CXXFLAGS_value=$CXXFLAGS
918: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
919: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
920: ac_env_LDFLAGS_set=${LDFLAGS+set}
921: ac_env_LDFLAGS_value=$LDFLAGS
922: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923: ac_cv_env_LDFLAGS_value=$LDFLAGS
924: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925: ac_env_CPPFLAGS_value=$CPPFLAGS
926: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928: ac_env_CC_set=${CC+set}
929: ac_env_CC_value=$CC
930: ac_cv_env_CC_set=${CC+set}
931: ac_cv_env_CC_value=$CC
932: ac_env_CFLAGS_set=${CFLAGS+set}
933: ac_env_CFLAGS_value=$CFLAGS
934: ac_cv_env_CFLAGS_set=${CFLAGS+set}
935: ac_cv_env_CFLAGS_value=$CFLAGS
1.15 ! paf 936: ac_env_CPP_set=${CPP+set}
! 937: ac_env_CPP_value=$CPP
! 938: ac_cv_env_CPP_set=${CPP+set}
! 939: ac_cv_env_CPP_value=$CPP
1.11 paf 940:
941: #
942: # Report the --help message.
943: #
944: if test "$ac_init_help" = "long"; then
945: # Omit some internal or obsolete options to make the list less imposing.
946: # This message is too long to be a string in the A/UX 3.1 sh.
947: cat <<_ACEOF
948: \`configure' configures this package to adapt to many kinds of systems.
949:
950: Usage: $0 [OPTION]... [VAR=VALUE]...
951:
952: To assign environment variables (e.g., CC, CFLAGS...), specify them as
953: VAR=VALUE. See below for descriptions of some of the useful variables.
954:
955: Defaults for the options are specified in brackets.
956:
957: Configuration:
958: -h, --help display this help and exit
959: --help=short display options specific to this package
960: --help=recursive display the short help of all the included packages
961: -V, --version display version information and exit
962: -q, --quiet, --silent do not print \`checking...' messages
963: --cache-file=FILE cache test results in FILE [disabled]
964: -C, --config-cache alias for \`--cache-file=config.cache'
965: -n, --no-create do not create output files
966: --srcdir=DIR find the sources in DIR [configure dir or \`..']
967:
968: _ACEOF
969:
970: cat <<_ACEOF
971: Installation directories:
972: --prefix=PREFIX install architecture-independent files in PREFIX
973: [$ac_default_prefix]
974: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
975: [PREFIX]
976:
977: By default, \`make install' will install all the files in
978: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
979: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
980: for instance \`--prefix=\$HOME'.
981:
982: For better control, use the options below.
983:
984: Fine tuning of the installation directories:
985: --bindir=DIR user executables [EPREFIX/bin]
986: --sbindir=DIR system admin executables [EPREFIX/sbin]
987: --libexecdir=DIR program executables [EPREFIX/libexec]
988: --datadir=DIR read-only architecture-independent data [PREFIX/share]
989: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
990: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
991: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
992: --libdir=DIR object code libraries [EPREFIX/lib]
993: --includedir=DIR C header files [PREFIX/include]
994: --oldincludedir=DIR C header files for non-gcc [/usr/include]
995: --infodir=DIR info documentation [PREFIX/info]
996: --mandir=DIR man documentation [PREFIX/man]
997: _ACEOF
998:
999: cat <<\_ACEOF
1000:
1001: Program names:
1002: --program-prefix=PREFIX prepend PREFIX to installed program names
1003: --program-suffix=SUFFIX append SUFFIX to installed program names
1004: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1005:
1006: System types:
1007: --build=BUILD configure for building on BUILD [guessed]
1008: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1009: _ACEOF
1010: fi
1011:
1012: if test -n "$ac_init_help"; then
1013:
1014: cat <<\_ACEOF
1015:
1016: Optional Features:
1017: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1018: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1019: --disable-dependency-tracking Speeds up one-time builds
1020: --enable-dependency-tracking Do not reject slow dependency extractors
1021: --enable-static=PKGS build static libraries default=no
1022: --enable-shared=PKGS build shared libraries default=yes
1023: --enable-fast-install=PKGS optimize for fast installation default=yes
1024: --disable-libtool-lock avoid locking (might break parallel builds)
1025:
1026: Optional Packages:
1027: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1028: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1029: --with-oracleoci-inc=DIR DIR is the Oracle OCI includes directory
1030: --with-oraclepublic-inc=DIR DIR is the Oracle public includes directory
1031: --with-gnu-ld assume the C compiler uses GNU ld default=no
1032: --with-pic try to use only PIC/non-PIC objects default=use both
1033:
1034: Some influential environment variables:
1035: CXX C++ compiler command
1036: CXXFLAGS C++ compiler flags
1037: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1038: nonstandard directory <lib dir>
1039: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1040: headers in a nonstandard directory <include dir>
1041: CC C compiler command
1042: CFLAGS C compiler flags
1.15 ! paf 1043: CPP C preprocessor
1.11 paf 1044:
1045: Use these variables to override the choices made by `configure' or to help
1046: it to find libraries and programs with nonstandard names/locations.
1047:
1048: _ACEOF
1049: fi
1050:
1051: if test "$ac_init_help" = "recursive"; then
1052: # If there are subdirs, report their specific --help.
1053: ac_popdir=`pwd`
1054: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1055: test -d $ac_dir || continue
1056: ac_builddir=.
1057:
1058: if test "$ac_dir" != .; then
1059: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1060: # A "../" for each directory in $ac_dir_suffix.
1061: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1062: else
1063: ac_dir_suffix= ac_top_builddir=
1064: fi
1065:
1066: case $srcdir in
1067: .) # No --srcdir option. We are building in place.
1068: ac_srcdir=.
1069: if test -z "$ac_top_builddir"; then
1070: ac_top_srcdir=.
1071: else
1072: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1073: fi ;;
1074: [\\/]* | ?:[\\/]* ) # Absolute path.
1075: ac_srcdir=$srcdir$ac_dir_suffix;
1076: ac_top_srcdir=$srcdir ;;
1077: *) # Relative path.
1078: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1079: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1080: esac
1081: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1082: # absolute.
1083: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1084: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1085: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1086: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1087:
1088: cd $ac_dir
1089: # Check for guested configure; otherwise get Cygnus style configure.
1090: if test -f $ac_srcdir/configure.gnu; then
1091: echo
1092: $SHELL $ac_srcdir/configure.gnu --help=recursive
1093: elif test -f $ac_srcdir/configure; then
1094: echo
1095: $SHELL $ac_srcdir/configure --help=recursive
1096: elif test -f $ac_srcdir/configure.ac ||
1097: test -f $ac_srcdir/configure.in; then
1098: echo
1099: $ac_configure --help
1100: else
1101: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1102: fi
1103: cd $ac_popdir
1104: done
1105: fi
1.1 parser 1106:
1.11 paf 1107: test -n "$ac_init_help" && exit 0
1108: if $ac_init_version; then
1109: cat <<\_ACEOF
1110:
1111: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1112: Free Software Foundation, Inc.
1113: This configure script is free software; the Free Software Foundation
1114: gives unlimited permission to copy, distribute and modify it.
1115: _ACEOF
1116: exit 0
1117: fi
1118: exec 5>config.log
1119: cat >&5 <<_ACEOF
1120: This file contains any messages produced by compilers while
1121: running configure, to aid debugging if configure makes a mistake.
1122:
1123: It was created by $as_me, which was
1124: generated by GNU Autoconf 2.57. Invocation command line was
1125:
1126: $ $0 $@
1127:
1128: _ACEOF
1129: {
1130: cat <<_ASUNAME
1131: ## --------- ##
1132: ## Platform. ##
1133: ## --------- ##
1134:
1135: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1136: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1137: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1138: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1139: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1140:
1141: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1142: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1143:
1144: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1145: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1146: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1147: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1148: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1149: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1150: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1151:
1152: _ASUNAME
1153:
1154: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1155: for as_dir in $PATH
1156: do
1157: IFS=$as_save_IFS
1158: test -z "$as_dir" && as_dir=.
1159: echo "PATH: $as_dir"
1160: done
1161:
1162: } >&5
1163:
1164: cat >&5 <<_ACEOF
1165:
1166:
1167: ## ----------- ##
1168: ## Core tests. ##
1169: ## ----------- ##
1170:
1171: _ACEOF
1172:
1173:
1174: # Keep a trace of the command line.
1175: # Strip out --no-create and --no-recursion so they do not pile up.
1176: # Strip out --silent because we don't want to record it for future runs.
1177: # Also quote any args containing shell meta-characters.
1178: # Make two passes to allow for proper duplicate-argument suppression.
1179: ac_configure_args=
1180: ac_configure_args0=
1181: ac_configure_args1=
1182: ac_sep=
1183: ac_must_keep_next=false
1184: for ac_pass in 1 2
1185: do
1186: for ac_arg
1187: do
1188: case $ac_arg in
1189: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1190: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191: | -silent | --silent | --silen | --sile | --sil)
1192: continue ;;
1193: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1194: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1195: esac
1196: case $ac_pass in
1197: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1198: 2)
1199: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1200: if test $ac_must_keep_next = true; then
1201: ac_must_keep_next=false # Got value, back to normal.
1202: else
1203: case $ac_arg in
1204: *=* | --config-cache | -C | -disable-* | --disable-* \
1205: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1206: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1207: | -with-* | --with-* | -without-* | --without-* | --x)
1208: case "$ac_configure_args0 " in
1209: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1210: esac
1211: ;;
1212: -* ) ac_must_keep_next=true ;;
1213: esac
1214: fi
1215: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1216: # Get rid of the leading space.
1217: ac_sep=" "
1218: ;;
1219: esac
1220: done
1221: done
1222: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1223: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1224:
1225: # When interrupted or exit'd, cleanup temporary files, and complete
1226: # config.log. We remove comments because anyway the quotes in there
1227: # would cause problems or look ugly.
1228: # WARNING: Be sure not to use single quotes in there, as some shells,
1229: # such as our DU 5.0 friend, will then `close' the trap.
1230: trap 'exit_status=$?
1231: # Save into config.log some information that might help in debugging.
1232: {
1233: echo
1234:
1235: cat <<\_ASBOX
1236: ## ---------------- ##
1237: ## Cache variables. ##
1238: ## ---------------- ##
1239: _ASBOX
1240: echo
1241: # The following way of writing the cache mishandles newlines in values,
1242: {
1243: (set) 2>&1 |
1244: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1245: *ac_space=\ *)
1246: sed -n \
1247: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1248: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1249: ;;
1250: *)
1251: sed -n \
1252: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1253: ;;
1254: esac;
1255: }
1256: echo
1257:
1258: cat <<\_ASBOX
1259: ## ----------------- ##
1260: ## Output variables. ##
1261: ## ----------------- ##
1262: _ASBOX
1263: echo
1264: for ac_var in $ac_subst_vars
1265: do
1266: eval ac_val=$`echo $ac_var`
1267: echo "$ac_var='"'"'$ac_val'"'"'"
1268: done | sort
1269: echo
1270:
1271: if test -n "$ac_subst_files"; then
1272: cat <<\_ASBOX
1273: ## ------------- ##
1274: ## Output files. ##
1275: ## ------------- ##
1276: _ASBOX
1277: echo
1278: for ac_var in $ac_subst_files
1279: do
1280: eval ac_val=$`echo $ac_var`
1281: echo "$ac_var='"'"'$ac_val'"'"'"
1282: done | sort
1283: echo
1284: fi
1285:
1286: if test -s confdefs.h; then
1287: cat <<\_ASBOX
1288: ## ----------- ##
1289: ## confdefs.h. ##
1290: ## ----------- ##
1291: _ASBOX
1292: echo
1293: sed "/^$/d" confdefs.h | sort
1294: echo
1295: fi
1296: test "$ac_signal" != 0 &&
1297: echo "$as_me: caught signal $ac_signal"
1298: echo "$as_me: exit $exit_status"
1299: } >&5
1300: rm -f core core.* *.core &&
1301: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1302: exit $exit_status
1303: ' 0
1304: for ac_signal in 1 2 13 15; do
1305: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1306: done
1307: ac_signal=0
1308:
1309: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1310: rm -rf conftest* confdefs.h
1311: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1312: echo >confdefs.h
1313:
1314: # Predefined preprocessor variables.
1315:
1316: cat >>confdefs.h <<_ACEOF
1317: #define PACKAGE_NAME "$PACKAGE_NAME"
1318: _ACEOF
1319:
1320:
1321: cat >>confdefs.h <<_ACEOF
1322: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1323: _ACEOF
1324:
1325:
1326: cat >>confdefs.h <<_ACEOF
1327: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1328: _ACEOF
1329:
1330:
1331: cat >>confdefs.h <<_ACEOF
1332: #define PACKAGE_STRING "$PACKAGE_STRING"
1333: _ACEOF
1334:
1335:
1336: cat >>confdefs.h <<_ACEOF
1337: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1338: _ACEOF
1339:
1340:
1341: # Let the site file select an alternate cache file if it wants to.
1.1 parser 1342: # Prefer explicitly selected file to automatically selected ones.
1343: if test -z "$CONFIG_SITE"; then
1344: if test "x$prefix" != xNONE; then
1345: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1346: else
1347: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1348: fi
1349: fi
1350: for ac_site_file in $CONFIG_SITE; do
1351: if test -r "$ac_site_file"; then
1.11 paf 1352: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1353: echo "$as_me: loading site script $ac_site_file" >&6;}
1354: sed 's/^/| /' "$ac_site_file" >&5
1.1 parser 1355: . "$ac_site_file"
1356: fi
1357: done
1358:
1359: if test -r "$cache_file"; then
1.11 paf 1360: # Some versions of bash will fail to source /dev/null (special
1361: # files actually), so we avoid doing that.
1362: if test -f "$cache_file"; then
1363: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1364: echo "$as_me: loading cache $cache_file" >&6;}
1365: case $cache_file in
1366: [\\/]* | ?:[\\/]* ) . $cache_file;;
1367: *) . ./$cache_file;;
1368: esac
1369: fi
1.1 parser 1370: else
1.11 paf 1371: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1372: echo "$as_me: creating cache $cache_file" >&6;}
1373: >$cache_file
1374: fi
1375:
1376: # Check that the precious variables saved in the cache have kept the same
1377: # value.
1378: ac_cache_corrupted=false
1379: for ac_var in `(set) 2>&1 |
1380: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1381: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1382: eval ac_new_set=\$ac_env_${ac_var}_set
1383: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1384: eval ac_new_val="\$ac_env_${ac_var}_value"
1385: case $ac_old_set,$ac_new_set in
1386: set,)
1387: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1388: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1389: ac_cache_corrupted=: ;;
1390: ,set)
1391: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1392: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1393: ac_cache_corrupted=: ;;
1394: ,);;
1395: *)
1396: if test "x$ac_old_val" != "x$ac_new_val"; then
1397: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1398: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1399: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1400: echo "$as_me: former value: $ac_old_val" >&2;}
1401: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1402: echo "$as_me: current value: $ac_new_val" >&2;}
1403: ac_cache_corrupted=:
1404: fi;;
1405: esac
1406: # Pass precious variables to config.status.
1407: if test "$ac_new_set" = set; then
1408: case $ac_new_val in
1409: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1410: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1411: *) ac_arg=$ac_var=$ac_new_val ;;
1412: esac
1413: case " $ac_configure_args " in
1414: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1415: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1416: esac
1417: fi
1418: done
1419: if $ac_cache_corrupted; then
1420: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1421: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1422: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1423: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1424: { (exit 1); exit 1; }; }
1.1 parser 1425: fi
1426:
1427: ac_ext=c
1428: ac_cpp='$CPP $CPPFLAGS'
1.11 paf 1429: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1430: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1431: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 parser 1432:
1433:
1.11 paf 1434:
1435:
1436:
1437:
1438:
1439:
1440:
1441:
1442:
1443:
1444:
1445:
1446:
1447:
1448:
1449:
1450:
1451: am__api_version="1.7"
1.1 parser 1452: ac_aux_dir=
1453: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1454: if test -f $ac_dir/install-sh; then
1455: ac_aux_dir=$ac_dir
1456: ac_install_sh="$ac_aux_dir/install-sh -c"
1457: break
1458: elif test -f $ac_dir/install.sh; then
1459: ac_aux_dir=$ac_dir
1460: ac_install_sh="$ac_aux_dir/install.sh -c"
1461: break
1.11 paf 1462: elif test -f $ac_dir/shtool; then
1463: ac_aux_dir=$ac_dir
1464: ac_install_sh="$ac_aux_dir/shtool install -c"
1465: break
1.1 parser 1466: fi
1467: done
1468: if test -z "$ac_aux_dir"; then
1.11 paf 1469: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1470: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1471: { (exit 1); exit 1; }; }
1472: fi
1473: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1474: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1475: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 parser 1476:
1477: # Find a good install program. We prefer a C program (faster),
1478: # so one script is as good as another. But avoid the broken or
1479: # incompatible versions:
1480: # SysV /etc/install, /usr/sbin/install
1481: # SunOS /usr/etc/install
1482: # IRIX /sbin/install
1483: # AIX /bin/install
1.11 paf 1484: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1485: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1486: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1487: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1488: # ./install, which can be erroneously created by make from ./install.sh.
1.11 paf 1489: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1490: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1491: if test -z "$INSTALL"; then
1.11 paf 1492: if test "${ac_cv_path_install+set}" = set; then
1493: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1494: else
1.11 paf 1495: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496: for as_dir in $PATH
1497: do
1498: IFS=$as_save_IFS
1499: test -z "$as_dir" && as_dir=.
1500: # Account for people who put trailing slashes in PATH elements.
1501: case $as_dir/ in
1502: ./ | .// | /cC/* | \
1503: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1504: /usr/ucb/* ) ;;
1505: *)
1506: # OSF1 and SCO ODT 3.0 have their own names for install.
1507: # Don't use installbsd from OSF since it installs stuff as root
1508: # by default.
1509: for ac_prog in ginstall scoinst install; do
1510: for ac_exec_ext in '' $ac_executable_extensions; do
1511: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1512: if test $ac_prog = install &&
1513: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1514: # AIX install. It has an incompatible calling convention.
1515: :
1516: elif test $ac_prog = install &&
1517: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1518: # program-specific install script used by HP pwplus--don't use.
1519: :
1520: else
1521: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1522: break 3
1523: fi
1524: fi
1.1 parser 1525: done
1.11 paf 1526: done
1527: ;;
1528: esac
1529: done
1530:
1.1 parser 1531:
1532: fi
1533: if test "${ac_cv_path_install+set}" = set; then
1.11 paf 1534: INSTALL=$ac_cv_path_install
1.1 parser 1535: else
1536: # As a last resort, use the slow shell script. We don't cache a
1537: # path for INSTALL within a source directory, because that will
1538: # break other packages using the cache if that directory is
1539: # removed, or if the path is relative.
1.11 paf 1540: INSTALL=$ac_install_sh
1.1 parser 1541: fi
1542: fi
1.11 paf 1543: echo "$as_me:$LINENO: result: $INSTALL" >&5
1544: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1545:
1546: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1547: # It thinks the first close brace ends the variable substitution.
1548: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1549:
1.11 paf 1550: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1551:
1552: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1553:
1.11 paf 1554: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1555: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 parser 1556: # Just in case
1557: sleep 1
1.11 paf 1558: echo timestamp > conftest.file
1.1 parser 1559: # Do `set' in a subshell so we don't clobber the current shell's
1560: # arguments. Must try -L first in case configure is actually a
1561: # symlink; some systems play weird games with the mod time of symlinks
1562: # (eg FreeBSD returns the mod time of the symlink's containing
1563: # directory).
1564: if (
1.11 paf 1565: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 parser 1566: if test "$*" = "X"; then
1567: # -L didn't work.
1.11 paf 1568: set X `ls -t $srcdir/configure conftest.file`
1.1 parser 1569: fi
1.11 paf 1570: rm -f conftest.file
1571: if test "$*" != "X $srcdir/configure conftest.file" \
1572: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 1573:
1574: # If neither matched, then we have a broken ls. This can happen
1575: # if, for instance, CONFIG_SHELL is bash and it inherits a
1576: # broken ls alias from the environment. This has actually
1577: # happened. Such a system could not be considered "sane".
1.11 paf 1578: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1579: alias in your environment" >&5
1580: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1581: alias in your environment" >&2;}
1582: { (exit 1); exit 1; }; }
1.1 parser 1583: fi
1584:
1.11 paf 1585: test "$2" = conftest.file
1.1 parser 1586: )
1587: then
1588: # Ok.
1589: :
1590: else
1.11 paf 1591: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1592: Check your system clock" >&5
1593: echo "$as_me: error: newly created file is older than distributed files!
1594: Check your system clock" >&2;}
1595: { (exit 1); exit 1; }; }
1.1 parser 1596: fi
1.11 paf 1597: echo "$as_me:$LINENO: result: yes" >&5
1598: echo "${ECHO_T}yes" >&6
1.1 parser 1599: test "$program_prefix" != NONE &&
1.11 paf 1600: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 parser 1601: # Use a double $ so make ignores it.
1602: test "$program_suffix" != NONE &&
1.11 paf 1603: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1604: # Double any \ or $. echo might interpret backslashes.
1605: # By default was `s,x,x', remove it if useless.
1606: cat <<\_ACEOF >conftest.sed
1607: s/[\\$]/&&/g;s/;s,x,x,$//
1608: _ACEOF
1609: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1610: rm conftest.sed
1611:
1612:
1613: # expand $ac_aux_dir to an absolute path
1614: am_aux_dir=`cd $ac_aux_dir && pwd`
1615:
1616: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1617: # Use eval to expand $SHELL
1618: if eval "$MISSING --run true"; then
1619: am_missing_run="$MISSING --run "
1620: else
1621: am_missing_run=
1622: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1623: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1624: fi
1625:
1626: for ac_prog in gawk mawk nawk awk
1627: do
1628: # Extract the first word of "$ac_prog", so it can be a program name with args.
1629: set dummy $ac_prog; ac_word=$2
1630: echo "$as_me:$LINENO: checking for $ac_word" >&5
1631: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632: if test "${ac_cv_prog_AWK+set}" = set; then
1633: echo $ECHO_N "(cached) $ECHO_C" >&6
1634: else
1635: if test -n "$AWK"; then
1636: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1637: else
1638: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639: for as_dir in $PATH
1640: do
1641: IFS=$as_save_IFS
1642: test -z "$as_dir" && as_dir=.
1643: for ac_exec_ext in '' $ac_executable_extensions; do
1644: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1645: ac_cv_prog_AWK="$ac_prog"
1646: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1647: break 2
1648: fi
1649: done
1650: done
1651:
1652: fi
1653: fi
1654: AWK=$ac_cv_prog_AWK
1655: if test -n "$AWK"; then
1656: echo "$as_me:$LINENO: result: $AWK" >&5
1657: echo "${ECHO_T}$AWK" >&6
1658: else
1659: echo "$as_me:$LINENO: result: no" >&5
1660: echo "${ECHO_T}no" >&6
1661: fi
1.1 parser 1662:
1.11 paf 1663: test -n "$AWK" && break
1664: done
1.1 parser 1665:
1.11 paf 1666: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1667: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1668: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1669: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1670: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1671: else
1.11 paf 1672: cat >conftest.make <<\_ACEOF
1.1 parser 1673: all:
1.11 paf 1674: @echo 'ac_maketemp="$(MAKE)"'
1675: _ACEOF
1.1 parser 1676: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.11 paf 1677: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 1678: if test -n "$ac_maketemp"; then
1679: eval ac_cv_prog_make_${ac_make}_set=yes
1680: else
1681: eval ac_cv_prog_make_${ac_make}_set=no
1682: fi
1.11 paf 1683: rm -f conftest.make
1.1 parser 1684: fi
1685: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.11 paf 1686: echo "$as_me:$LINENO: result: yes" >&5
1687: echo "${ECHO_T}yes" >&6
1.1 parser 1688: SET_MAKE=
1689: else
1.11 paf 1690: echo "$as_me:$LINENO: result: no" >&5
1691: echo "${ECHO_T}no" >&6
1.1 parser 1692: SET_MAKE="MAKE=${MAKE-make}"
1693: fi
1694:
1.11 paf 1695: # test to see if srcdir already configured
1696: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1697: test -f $srcdir/config.status; then
1698: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1699: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1700: { (exit 1); exit 1; }; }
1701: fi
1702:
1703: # test whether we have cygpath
1704: if test -z "$CYGPATH_W"; then
1705: if (cygpath --version) >/dev/null 2>/dev/null; then
1706: CYGPATH_W='cygpath -w'
1707: else
1708: CYGPATH_W=echo
1709: fi
1710: fi
1711:
1712:
1713: # Define the identity of the package.
1714: PACKAGE=parser3oracle
1.14 paf 1715: VERSION=3.1.HEAD
1.1 parser 1716:
1717:
1.11 paf 1718: # Some tools Automake needs.
1719:
1720: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1721:
1722:
1723: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1724:
1725:
1726: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1727:
1728:
1729: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1730:
1731:
1732: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 parser 1733:
1734:
1.11 paf 1735: AMTAR=${AMTAR-"${am_missing_run}tar"}
1.1 parser 1736:
1.11 paf 1737: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 parser 1738:
1.11 paf 1739: # Installed binaries are usually stripped using `strip' when the user
1740: # run `make install-strip'. However `strip' might not be the right
1741: # tool to use in cross-compilation environments, therefore Automake
1742: # will honor the `STRIP' environment variable to overrule this program.
1743: if test "$cross_compiling" != no; then
1744: if test -n "$ac_tool_prefix"; then
1745: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1746: set dummy ${ac_tool_prefix}strip; ac_word=$2
1747: echo "$as_me:$LINENO: checking for $ac_word" >&5
1748: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749: if test "${ac_cv_prog_STRIP+set}" = set; then
1750: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1751: else
1.11 paf 1752: if test -n "$STRIP"; then
1753: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1754: else
1755: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756: for as_dir in $PATH
1757: do
1758: IFS=$as_save_IFS
1759: test -z "$as_dir" && as_dir=.
1760: for ac_exec_ext in '' $ac_executable_extensions; do
1761: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1763: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764: break 2
1765: fi
1766: done
1767: done
1768:
1769: fi
1770: fi
1771: STRIP=$ac_cv_prog_STRIP
1772: if test -n "$STRIP"; then
1773: echo "$as_me:$LINENO: result: $STRIP" >&5
1774: echo "${ECHO_T}$STRIP" >&6
1775: else
1776: echo "$as_me:$LINENO: result: no" >&5
1777: echo "${ECHO_T}no" >&6
1.1 parser 1778: fi
1779:
1.11 paf 1780: fi
1781: if test -z "$ac_cv_prog_STRIP"; then
1782: ac_ct_STRIP=$STRIP
1783: # Extract the first word of "strip", so it can be a program name with args.
1784: set dummy strip; ac_word=$2
1785: echo "$as_me:$LINENO: checking for $ac_word" >&5
1786: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1788: echo $ECHO_N "(cached) $ECHO_C" >&6
1789: else
1790: if test -n "$ac_ct_STRIP"; then
1791: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 parser 1792: else
1.11 paf 1793: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794: for as_dir in $PATH
1795: do
1796: IFS=$as_save_IFS
1797: test -z "$as_dir" && as_dir=.
1798: for ac_exec_ext in '' $ac_executable_extensions; do
1799: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800: ac_cv_prog_ac_ct_STRIP="strip"
1801: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802: break 2
1803: fi
1804: done
1805: done
1806:
1807: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1808: fi
1.1 parser 1809: fi
1.11 paf 1810: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1811: if test -n "$ac_ct_STRIP"; then
1812: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1813: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 parser 1814: else
1.11 paf 1815: echo "$as_me:$LINENO: result: no" >&5
1816: echo "${ECHO_T}no" >&6
1.1 parser 1817: fi
1818:
1.11 paf 1819: STRIP=$ac_ct_STRIP
1.1 parser 1820: else
1.11 paf 1821: STRIP="$ac_cv_prog_STRIP"
1.1 parser 1822: fi
1823:
1824: fi
1.11 paf 1825: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1.1 parser 1826:
1.11 paf 1827: # We need awk for the "check" target. The system "awk" is bad on
1828: # some platforms.
1.1 parser 1829:
1830:
1831:
1832:
1.11 paf 1833: ac_config_headers="$ac_config_headers config_auto.h"
1834:
1.1 parser 1835:
1836:
1837:
1.2 parser 1838: # Check whether --with-oracleoci-inc or --without-oracleoci-inc was given.
1.1 parser 1839: if test "${with_oracleoci_inc+set}" = set; then
1840: withval="$with_oracleoci_inc"
1.11 paf 1841:
1.1 parser 1842: else
1843: withval="$ORACLE_HOME/rdbms/demo"
1844:
1.11 paf 1845: fi;
1.2 parser 1846: ORACLE_OCI_INC=$withval
1.1 parser 1847:
1848:
1.2 parser 1849: if test \! -f "$ORACLE_OCI_INC/oci.h"; then
1.11 paf 1850: { { echo "$as_me:$LINENO: error: $ORACLE_OCI_INC does not seem to be valid Oracle OCI includes directory" >&5
1851: echo "$as_me: error: $ORACLE_OCI_INC does not seem to be valid Oracle OCI includes directory" >&2;}
1852: { (exit 1); exit 1; }; }
1.2 parser 1853: fi
1854:
1855:
1.11 paf 1856:
1.2 parser 1857: # Check whether --with-oraclepublic-inc or --without-oraclepublic-inc was given.
1.1 parser 1858: if test "${with_oraclepublic_inc+set}" = set; then
1859: withval="$with_oraclepublic_inc"
1.11 paf 1860:
1.1 parser 1861: else
1862: withval="$ORACLE_HOME/network/public"
1863:
1.11 paf 1864: fi;
1.2 parser 1865: ORACLE_PUBLIC_INC=$withval
1.1 parser 1866:
1867:
1.2 parser 1868: if test \! -f "$ORACLE_PUBLIC_INC/nzt.h"; then
1.11 paf 1869: { { echo "$as_me:$LINENO: error: $ORACLE_PUBLIC_INC does not seem to be valid Oracle public includes directory" >&5
1870: echo "$as_me: error: $ORACLE_PUBLIC_INC does not seem to be valid Oracle public includes directory" >&2;}
1871: { (exit 1); exit 1; }; }
1.2 parser 1872: fi
1873:
1.1 parser 1874:
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.11 paf 1882: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 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"
1886: # ./install, which can be erroneously created by make from ./install.sh.
1.11 paf 1887: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1888: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1889: if test -z "$INSTALL"; then
1.11 paf 1890: if test "${ac_cv_path_install+set}" = set; then
1891: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1892: else
1.11 paf 1893: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894: for as_dir in $PATH
1895: do
1896: IFS=$as_save_IFS
1897: test -z "$as_dir" && as_dir=.
1898: # Account for people who put trailing slashes in PATH elements.
1899: case $as_dir/ in
1900: ./ | .// | /cC/* | \
1901: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1902: /usr/ucb/* ) ;;
1903: *)
1904: # OSF1 and SCO ODT 3.0 have their own names for install.
1905: # Don't use installbsd from OSF since it installs stuff as root
1906: # by default.
1907: for ac_prog in ginstall scoinst install; do
1908: for ac_exec_ext in '' $ac_executable_extensions; do
1909: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1910: if test $ac_prog = install &&
1911: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1912: # AIX install. It has an incompatible calling convention.
1913: :
1914: elif test $ac_prog = install &&
1915: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1916: # program-specific install script used by HP pwplus--don't use.
1917: :
1918: else
1919: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1920: break 3
1921: fi
1922: fi
1.1 parser 1923: done
1.11 paf 1924: done
1925: ;;
1926: esac
1927: done
1928:
1.1 parser 1929:
1930: fi
1931: if test "${ac_cv_path_install+set}" = set; then
1.11 paf 1932: INSTALL=$ac_cv_path_install
1.1 parser 1933: else
1934: # As a last resort, use the slow shell script. We don't cache a
1935: # path for INSTALL within a source directory, because that will
1936: # break other packages using the cache if that directory is
1937: # removed, or if the path is relative.
1.11 paf 1938: INSTALL=$ac_install_sh
1.1 parser 1939: fi
1940: fi
1.11 paf 1941: echo "$as_me:$LINENO: result: $INSTALL" >&5
1942: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1943:
1944: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1945: # It thinks the first close brace ends the variable substitution.
1946: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1947:
1.11 paf 1948: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1949:
1950: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1951:
1.11 paf 1952: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1953: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1954: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1955: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1956: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1957: else
1.11 paf 1958: cat >conftest.make <<\_ACEOF
1.1 parser 1959: all:
1.11 paf 1960: @echo 'ac_maketemp="$(MAKE)"'
1961: _ACEOF
1.1 parser 1962: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.11 paf 1963: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 1964: if test -n "$ac_maketemp"; then
1965: eval ac_cv_prog_make_${ac_make}_set=yes
1966: else
1967: eval ac_cv_prog_make_${ac_make}_set=no
1968: fi
1.11 paf 1969: rm -f conftest.make
1.1 parser 1970: fi
1971: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.11 paf 1972: echo "$as_me:$LINENO: result: yes" >&5
1973: echo "${ECHO_T}yes" >&6
1.1 parser 1974: SET_MAKE=
1975: else
1.11 paf 1976: echo "$as_me:$LINENO: result: no" >&5
1977: echo "${ECHO_T}no" >&6
1.1 parser 1978: SET_MAKE="MAKE=${MAKE-make}"
1979: fi
1980:
1.11 paf 1981: for ac_prog in gawk mawk nawk awk
1.1 parser 1982: do
1.11 paf 1983: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1 parser 1984: set dummy $ac_prog; ac_word=$2
1.11 paf 1985: echo "$as_me:$LINENO: checking for $ac_word" >&5
1986: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987: if test "${ac_cv_prog_AWK+set}" = set; then
1988: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1989: else
1990: if test -n "$AWK"; then
1991: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1992: else
1.11 paf 1993: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994: for as_dir in $PATH
1995: do
1996: IFS=$as_save_IFS
1997: test -z "$as_dir" && as_dir=.
1998: for ac_exec_ext in '' $ac_executable_extensions; do
1999: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000: ac_cv_prog_AWK="$ac_prog"
2001: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002: break 2
2003: fi
2004: done
2005: done
2006:
1.1 parser 2007: fi
2008: fi
1.11 paf 2009: AWK=$ac_cv_prog_AWK
1.1 parser 2010: if test -n "$AWK"; then
1.11 paf 2011: echo "$as_me:$LINENO: result: $AWK" >&5
2012: echo "${ECHO_T}$AWK" >&6
1.1 parser 2013: else
1.11 paf 2014: echo "$as_me:$LINENO: result: no" >&5
2015: echo "${ECHO_T}no" >&6
1.1 parser 2016: fi
2017:
1.11 paf 2018: test -n "$AWK" && break
1.1 parser 2019: done
2020:
1.11 paf 2021: ac_ext=cc
1.1 parser 2022: ac_cpp='$CXXCPP $CPPFLAGS'
1.11 paf 2023: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2024: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2025: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2026: if test -n "$ac_tool_prefix"; then
2027: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2028: do
2029: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2030: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2031: echo "$as_me:$LINENO: checking for $ac_word" >&5
2032: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033: if test "${ac_cv_prog_CXX+set}" = set; then
2034: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2035: else
2036: if test -n "$CXX"; then
2037: ac_cv_prog_CXX="$CXX" # Let the user override the test.
2038: else
1.11 paf 2039: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040: for as_dir in $PATH
2041: do
2042: IFS=$as_save_IFS
2043: test -z "$as_dir" && as_dir=.
2044: for ac_exec_ext in '' $ac_executable_extensions; do
2045: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2047: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048: break 2
2049: fi
2050: done
2051: done
2052:
1.1 parser 2053: fi
2054: fi
1.11 paf 2055: CXX=$ac_cv_prog_CXX
1.1 parser 2056: if test -n "$CXX"; then
1.11 paf 2057: echo "$as_me:$LINENO: result: $CXX" >&5
2058: echo "${ECHO_T}$CXX" >&6
1.1 parser 2059: else
1.11 paf 2060: echo "$as_me:$LINENO: result: no" >&5
2061: echo "${ECHO_T}no" >&6
1.1 parser 2062: fi
2063:
1.11 paf 2064: test -n "$CXX" && break
2065: done
2066: fi
2067: if test -z "$CXX"; then
2068: ac_ct_CXX=$CXX
2069: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2070: do
2071: # Extract the first word of "$ac_prog", so it can be a program name with args.
2072: set dummy $ac_prog; ac_word=$2
2073: echo "$as_me:$LINENO: checking for $ac_word" >&5
2074: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2076: echo $ECHO_N "(cached) $ECHO_C" >&6
2077: else
2078: if test -n "$ac_ct_CXX"; then
2079: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2080: else
2081: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082: for as_dir in $PATH
2083: do
2084: IFS=$as_save_IFS
2085: test -z "$as_dir" && as_dir=.
2086: for ac_exec_ext in '' $ac_executable_extensions; do
2087: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088: ac_cv_prog_ac_ct_CXX="$ac_prog"
2089: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090: break 2
2091: fi
2092: done
1.1 parser 2093: done
2094:
1.11 paf 2095: fi
2096: fi
2097: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2098: if test -n "$ac_ct_CXX"; then
2099: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2100: echo "${ECHO_T}$ac_ct_CXX" >&6
2101: else
2102: echo "$as_me:$LINENO: result: no" >&5
2103: echo "${ECHO_T}no" >&6
2104: fi
1.1 parser 2105:
1.11 paf 2106: test -n "$ac_ct_CXX" && break
2107: done
2108: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 parser 2109:
1.11 paf 2110: CXX=$ac_ct_CXX
2111: fi
1.1 parser 2112:
2113:
1.11 paf 2114: # Provide some information about the compiler.
2115: echo "$as_me:$LINENO:" \
2116: "checking for C++ compiler version" >&5
2117: ac_compiler=`set X $ac_compile; echo $2`
2118: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2119: (eval $ac_compiler --version </dev/null >&5) 2>&5
2120: ac_status=$?
2121: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122: (exit $ac_status); }
2123: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2124: (eval $ac_compiler -v </dev/null >&5) 2>&5
2125: ac_status=$?
2126: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127: (exit $ac_status); }
2128: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2129: (eval $ac_compiler -V </dev/null >&5) 2>&5
2130: ac_status=$?
2131: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132: (exit $ac_status); }
2133:
2134: cat >conftest.$ac_ext <<_ACEOF
2135: #line $LINENO "configure"
2136: /* confdefs.h. */
2137: _ACEOF
2138: cat confdefs.h >>conftest.$ac_ext
2139: cat >>conftest.$ac_ext <<_ACEOF
2140: /* end confdefs.h. */
2141:
2142: int
2143: main ()
2144: {
2145:
2146: ;
2147: return 0;
2148: }
2149: _ACEOF
2150: ac_clean_files_save=$ac_clean_files
2151: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2152: # Try to create an executable without -o first, disregard a.out.
2153: # It will help us diagnose broken compilers, and finding out an intuition
2154: # of exeext.
2155: echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2156: echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2157: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2158: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2159: (eval $ac_link_default) 2>&5
2160: ac_status=$?
2161: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162: (exit $ac_status); }; then
2163: # Find the output, starting from the most likely. This scheme is
2164: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2165: # resort.
2166:
2167: # Be careful to initialize this variable, since it used to be cached.
2168: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2169: ac_cv_exeext=
2170: # b.out is created by i960 compilers.
2171: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2172: do
2173: test -f "$ac_file" || continue
2174: case $ac_file in
2175: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2176: ;;
2177: conftest.$ac_ext )
2178: # This is the source file.
2179: ;;
2180: [ab].out )
2181: # We found the default executable, but exeext='' is most
2182: # certainly right.
2183: break;;
2184: *.* )
2185: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2186: # FIXME: I believe we export ac_cv_exeext for Libtool,
2187: # but it would be cool to find out if it's true. Does anybody
2188: # maintain Libtool? --akim.
2189: export ac_cv_exeext
2190: break;;
2191: * )
2192: break;;
2193: esac
2194: done
2195: else
2196: echo "$as_me: failed program was:" >&5
2197: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2198:
1.11 paf 2199: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2200: See \`config.log' for more details." >&5
2201: echo "$as_me: error: C++ compiler cannot create executables
2202: See \`config.log' for more details." >&2;}
2203: { (exit 77); exit 77; }; }
2204: fi
2205:
2206: ac_exeext=$ac_cv_exeext
2207: echo "$as_me:$LINENO: result: $ac_file" >&5
2208: echo "${ECHO_T}$ac_file" >&6
2209:
2210: # Check the compiler produces executables we can run. If not, either
2211: # the compiler is broken, or we cross compile.
2212: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2213: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2214: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2215: # If not cross compiling, check that we can run a simple program.
2216: if test "$cross_compiling" != yes; then
2217: if { ac_try='./$ac_file'
2218: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219: (eval $ac_try) 2>&5
2220: ac_status=$?
2221: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222: (exit $ac_status); }; }; then
2223: cross_compiling=no
2224: else
2225: if test "$cross_compiling" = maybe; then
2226: cross_compiling=yes
2227: else
2228: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2229: If you meant to cross compile, use \`--host'.
2230: See \`config.log' for more details." >&5
2231: echo "$as_me: error: cannot run C++ compiled programs.
2232: If you meant to cross compile, use \`--host'.
2233: See \`config.log' for more details." >&2;}
2234: { (exit 1); exit 1; }; }
2235: fi
1.1 parser 2236: fi
1.11 paf 2237: fi
2238: echo "$as_me:$LINENO: result: yes" >&5
2239: echo "${ECHO_T}yes" >&6
2240:
2241: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2242: ac_clean_files=$ac_clean_files_save
2243: # Check the compiler produces executables we can run. If not, either
2244: # the compiler is broken, or we cross compile.
2245: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2246: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2247: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2248: echo "${ECHO_T}$cross_compiling" >&6
2249:
2250: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2251: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2252: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2253: (eval $ac_link) 2>&5
2254: ac_status=$?
2255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256: (exit $ac_status); }; then
2257: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2258: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2259: # work properly (i.e., refer to `conftest.exe'), while it won't with
2260: # `rm'.
2261: for ac_file in conftest.exe conftest conftest.*; do
2262: test -f "$ac_file" || continue
2263: case $ac_file in
2264: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2265: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2266: export ac_cv_exeext
2267: break;;
2268: * ) break;;
2269: esac
2270: done
1.1 parser 2271: else
1.11 paf 2272: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2273: See \`config.log' for more details." >&5
2274: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2275: See \`config.log' for more details." >&2;}
2276: { (exit 1); exit 1; }; }
2277: fi
2278:
2279: rm -f conftest$ac_cv_exeext
2280: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2281: echo "${ECHO_T}$ac_cv_exeext" >&6
2282:
2283: rm -f conftest.$ac_ext
2284: EXEEXT=$ac_cv_exeext
2285: ac_exeext=$EXEEXT
2286: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2287: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2288: if test "${ac_cv_objext+set}" = set; then
2289: echo $ECHO_N "(cached) $ECHO_C" >&6
2290: else
2291: cat >conftest.$ac_ext <<_ACEOF
2292: #line $LINENO "configure"
2293: /* confdefs.h. */
2294: _ACEOF
2295: cat confdefs.h >>conftest.$ac_ext
2296: cat >>conftest.$ac_ext <<_ACEOF
2297: /* end confdefs.h. */
2298:
2299: int
2300: main ()
2301: {
2302:
2303: ;
2304: return 0;
2305: }
2306: _ACEOF
2307: rm -f conftest.o conftest.obj
2308: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309: (eval $ac_compile) 2>&5
2310: ac_status=$?
2311: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312: (exit $ac_status); }; then
2313: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2314: case $ac_file in
2315: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2316: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2317: break;;
2318: esac
2319: done
1.1 parser 2320: else
1.11 paf 2321: echo "$as_me: failed program was:" >&5
2322: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2323:
1.11 paf 2324: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2325: See \`config.log' for more details." >&5
2326: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2327: See \`config.log' for more details." >&2;}
2328: { (exit 1); exit 1; }; }
2329: fi
2330:
2331: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2332: fi
2333: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2334: echo "${ECHO_T}$ac_cv_objext" >&6
2335: OBJEXT=$ac_cv_objext
2336: ac_objext=$OBJEXT
2337: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2338: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2339: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2340: echo $ECHO_N "(cached) $ECHO_C" >&6
2341: else
2342: cat >conftest.$ac_ext <<_ACEOF
2343: #line $LINENO "configure"
2344: /* confdefs.h. */
2345: _ACEOF
2346: cat confdefs.h >>conftest.$ac_ext
2347: cat >>conftest.$ac_ext <<_ACEOF
2348: /* end confdefs.h. */
2349:
2350: int
2351: main ()
2352: {
2353: #ifndef __GNUC__
2354: choke me
2355: #endif
1.1 parser 2356:
1.11 paf 2357: ;
2358: return 0;
2359: }
2360: _ACEOF
2361: rm -f conftest.$ac_objext
2362: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363: (eval $ac_compile) 2>&5
2364: ac_status=$?
2365: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366: (exit $ac_status); } &&
2367: { ac_try='test -s conftest.$ac_objext'
2368: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369: (eval $ac_try) 2>&5
2370: ac_status=$?
2371: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372: (exit $ac_status); }; }; then
2373: ac_compiler_gnu=yes
2374: else
2375: echo "$as_me: failed program was:" >&5
2376: sed 's/^/| /' conftest.$ac_ext >&5
2377:
2378: ac_compiler_gnu=no
2379: fi
2380: rm -f conftest.$ac_objext conftest.$ac_ext
2381: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2382:
2383: fi
2384: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2385: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2386: GXX=`test $ac_compiler_gnu = yes && echo yes`
2387: ac_test_CXXFLAGS=${CXXFLAGS+set}
2388: ac_save_CXXFLAGS=$CXXFLAGS
2389: CXXFLAGS="-g"
2390: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2391: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2392: if test "${ac_cv_prog_cxx_g+set}" = set; then
2393: echo $ECHO_N "(cached) $ECHO_C" >&6
2394: else
2395: cat >conftest.$ac_ext <<_ACEOF
2396: #line $LINENO "configure"
2397: /* confdefs.h. */
2398: _ACEOF
2399: cat confdefs.h >>conftest.$ac_ext
2400: cat >>conftest.$ac_ext <<_ACEOF
2401: /* end confdefs.h. */
2402:
2403: int
2404: main ()
2405: {
2406:
2407: ;
2408: return 0;
2409: }
2410: _ACEOF
2411: rm -f conftest.$ac_objext
2412: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413: (eval $ac_compile) 2>&5
2414: ac_status=$?
2415: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416: (exit $ac_status); } &&
2417: { ac_try='test -s conftest.$ac_objext'
2418: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419: (eval $ac_try) 2>&5
2420: ac_status=$?
2421: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422: (exit $ac_status); }; }; then
2423: ac_cv_prog_cxx_g=yes
1.1 parser 2424: else
1.11 paf 2425: echo "$as_me: failed program was:" >&5
2426: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2427:
1.11 paf 2428: ac_cv_prog_cxx_g=no
1.1 parser 2429: fi
1.11 paf 2430: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 parser 2431: fi
1.11 paf 2432: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2433: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.1 parser 2434: if test "$ac_test_CXXFLAGS" = set; then
1.11 paf 2435: CXXFLAGS=$ac_save_CXXFLAGS
1.1 parser 2436: elif test $ac_cv_prog_cxx_g = yes; then
2437: if test "$GXX" = yes; then
2438: CXXFLAGS="-g -O2"
2439: else
2440: CXXFLAGS="-g"
2441: fi
2442: else
2443: if test "$GXX" = yes; then
2444: CXXFLAGS="-O2"
2445: else
2446: CXXFLAGS=
2447: fi
2448: fi
1.11 paf 2449: for ac_declaration in \
2450: ''\
2451: '#include <stdlib.h>' \
2452: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2453: 'extern "C" void std::exit (int); using std::exit;' \
2454: 'extern "C" void exit (int) throw ();' \
2455: 'extern "C" void exit (int);' \
2456: 'void exit (int);'
2457: do
2458: cat >conftest.$ac_ext <<_ACEOF
2459: #line $LINENO "configure"
2460: /* confdefs.h. */
2461: _ACEOF
2462: cat confdefs.h >>conftest.$ac_ext
2463: cat >>conftest.$ac_ext <<_ACEOF
2464: /* end confdefs.h. */
2465: #include <stdlib.h>
2466: $ac_declaration
2467: int
2468: main ()
2469: {
2470: exit (42);
2471: ;
2472: return 0;
2473: }
2474: _ACEOF
2475: rm -f conftest.$ac_objext
2476: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477: (eval $ac_compile) 2>&5
2478: ac_status=$?
2479: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480: (exit $ac_status); } &&
2481: { ac_try='test -s conftest.$ac_objext'
2482: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483: (eval $ac_try) 2>&5
2484: ac_status=$?
2485: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486: (exit $ac_status); }; }; then
2487: :
2488: else
2489: echo "$as_me: failed program was:" >&5
2490: sed 's/^/| /' conftest.$ac_ext >&5
2491:
2492: continue
2493: fi
2494: rm -f conftest.$ac_objext conftest.$ac_ext
2495: cat >conftest.$ac_ext <<_ACEOF
2496: #line $LINENO "configure"
2497: /* confdefs.h. */
2498: _ACEOF
2499: cat confdefs.h >>conftest.$ac_ext
2500: cat >>conftest.$ac_ext <<_ACEOF
2501: /* end confdefs.h. */
2502: $ac_declaration
2503: int
2504: main ()
2505: {
2506: exit (42);
2507: ;
2508: return 0;
2509: }
2510: _ACEOF
2511: rm -f conftest.$ac_objext
2512: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513: (eval $ac_compile) 2>&5
2514: ac_status=$?
2515: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516: (exit $ac_status); } &&
2517: { ac_try='test -s conftest.$ac_objext'
2518: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519: (eval $ac_try) 2>&5
2520: ac_status=$?
2521: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522: (exit $ac_status); }; }; then
2523: break
2524: else
2525: echo "$as_me: failed program was:" >&5
2526: sed 's/^/| /' conftest.$ac_ext >&5
2527:
2528: fi
2529: rm -f conftest.$ac_objext conftest.$ac_ext
2530: done
2531: rm -f conftest*
2532: if test -n "$ac_declaration"; then
2533: echo '#ifdef __cplusplus' >>confdefs.h
2534: echo $ac_declaration >>confdefs.h
2535: echo '#endif' >>confdefs.h
2536: fi
2537:
1.15 ! paf 2538: ac_ext=c
! 2539: ac_cpp='$CPP $CPPFLAGS'
! 2540: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 2541: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 2542: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 paf 2543: rm -f .deps 2>/dev/null
2544: mkdir .deps 2>/dev/null
2545: if test -d .deps; then
2546: DEPDIR=.deps
2547: else
2548: # MS-DOS does not allow filenames that begin with a dot.
2549: DEPDIR=_deps
2550: fi
2551: rmdir .deps 2>/dev/null
2552:
2553:
2554: ac_config_commands="$ac_config_commands depfiles"
2555:
2556:
2557: am_make=${MAKE-make}
2558: cat > confinc << 'END'
2559: doit:
2560: @echo done
2561: END
2562: # If we don't find an include directive, just comment out the code.
2563: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2564: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2565: am__include="#"
2566: am__quote=
2567: _am_result=none
2568: # First try GNU make style include.
2569: echo "include confinc" > confmf
2570: # We grep out `Entering directory' and `Leaving directory'
2571: # messages which can occur if `w' ends up in MAKEFLAGS.
2572: # In particular we don't look at `^make:' because GNU make might
2573: # be invoked under some other name (usually "gmake"), in which
2574: # case it prints its new name instead of `make'.
2575: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2576: am__include=include
2577: am__quote=
2578: _am_result=GNU
2579: fi
2580: # Now try BSD make style include.
2581: if test "$am__include" = "#"; then
2582: echo '.include "confinc"' > confmf
2583: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2584: am__include=.include
2585: am__quote="\""
2586: _am_result=BSD
2587: fi
2588: fi
2589:
2590:
2591: echo "$as_me:$LINENO: result: $_am_result" >&5
2592: echo "${ECHO_T}$_am_result" >&6
2593: rm -f confinc confmf
2594:
2595: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2596: if test "${enable_dependency_tracking+set}" = set; then
2597: enableval="$enable_dependency_tracking"
2598:
2599: fi;
2600: if test "x$enable_dependency_tracking" != xno; then
2601: am_depcomp="$ac_aux_dir/depcomp"
2602: AMDEPBACKSLASH='\'
2603: fi
2604:
2605:
2606: if test "x$enable_dependency_tracking" != xno; then
2607: AMDEP_TRUE=
2608: AMDEP_FALSE='#'
2609: else
2610: AMDEP_TRUE='#'
2611: AMDEP_FALSE=
2612: fi
2613:
2614:
2615:
2616:
2617: depcc="$CXX" am_compiler_list=
2618:
2619: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2620: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2621: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2622: echo $ECHO_N "(cached) $ECHO_C" >&6
2623: else
2624: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2625: # We make a subdir and do the tests there. Otherwise we can end up
2626: # making bogus files that we don't know about and never remove. For
2627: # instance it was reported that on HP-UX the gcc test will end up
2628: # making a dummy file named `D' -- because `-MD' means `put the output
2629: # in D'.
2630: mkdir conftest.dir
2631: # Copy depcomp to subdir because otherwise we won't find it if we're
2632: # using a relative directory.
2633: cp "$am_depcomp" conftest.dir
2634: cd conftest.dir
2635:
2636: am_cv_CXX_dependencies_compiler_type=none
2637: if test "$am_compiler_list" = ""; then
2638: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2639: fi
2640: for depmode in $am_compiler_list; do
2641: # We need to recreate these files for each test, as the compiler may
2642: # overwrite some of them when testing with obscure command lines.
2643: # This happens at least with the AIX C compiler.
2644: echo '#include "conftest.h"' > conftest.c
2645: echo 'int i;' > conftest.h
2646: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2647:
2648: case $depmode in
2649: nosideeffect)
2650: # after this tag, mechanisms are not by side-effect, so they'll
2651: # only be used when explicitly requested
2652: if test "x$enable_dependency_tracking" = xyes; then
2653: continue
2654: else
2655: break
2656: fi
2657: ;;
2658: none) break ;;
2659: esac
2660: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2661: # mode. It turns out that the SunPro C++ compiler does not properly
2662: # handle `-M -o', and we need to detect this.
2663: if depmode=$depmode \
2664: source=conftest.c object=conftest.o \
2665: depfile=conftest.Po tmpdepfile=conftest.TPo \
2666: $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2667: grep conftest.h conftest.Po > /dev/null 2>&1 &&
2668: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2669: am_cv_CXX_dependencies_compiler_type=$depmode
2670: break
2671: fi
2672: done
2673:
2674: cd ..
2675: rm -rf conftest.dir
2676: else
2677: am_cv_CXX_dependencies_compiler_type=none
2678: fi
2679:
2680: fi
2681: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2682: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2683: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2684:
1.1 parser 2685:
2686:
1.11 paf 2687: if
2688: test "x$enable_dependency_tracking" != xno \
2689: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2690: am__fastdepCXX_TRUE=
2691: am__fastdepCXX_FALSE='#'
2692: else
2693: am__fastdepCXX_TRUE='#'
2694: am__fastdepCXX_FALSE=
2695: fi
2696:
2697:
2698: ac_ext=c
2699: ac_cpp='$CPP $CPPFLAGS'
2700: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703: if test -n "$ac_tool_prefix"; then
2704: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2705: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2706: echo "$as_me:$LINENO: checking for $ac_word" >&5
2707: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2708: if test "${ac_cv_prog_CC+set}" = set; then
2709: echo $ECHO_N "(cached) $ECHO_C" >&6
2710: else
2711: if test -n "$CC"; then
2712: ac_cv_prog_CC="$CC" # Let the user override the test.
2713: else
2714: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715: for as_dir in $PATH
2716: do
2717: IFS=$as_save_IFS
2718: test -z "$as_dir" && as_dir=.
2719: for ac_exec_ext in '' $ac_executable_extensions; do
2720: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2721: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2722: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723: break 2
2724: fi
2725: done
2726: done
1.1 parser 2727:
1.11 paf 2728: fi
2729: fi
2730: CC=$ac_cv_prog_CC
2731: if test -n "$CC"; then
2732: echo "$as_me:$LINENO: result: $CC" >&5
2733: echo "${ECHO_T}$CC" >&6
2734: else
2735: echo "$as_me:$LINENO: result: no" >&5
2736: echo "${ECHO_T}no" >&6
2737: fi
1.1 parser 2738:
1.11 paf 2739: fi
2740: if test -z "$ac_cv_prog_CC"; then
2741: ac_ct_CC=$CC
2742: # Extract the first word of "gcc", so it can be a program name with args.
2743: set dummy gcc; ac_word=$2
2744: echo "$as_me:$LINENO: checking for $ac_word" >&5
2745: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2746: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2747: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2748: else
1.11 paf 2749: if test -n "$ac_ct_CC"; then
2750: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 2751: else
1.11 paf 2752: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753: for as_dir in $PATH
2754: do
2755: IFS=$as_save_IFS
2756: test -z "$as_dir" && as_dir=.
2757: for ac_exec_ext in '' $ac_executable_extensions; do
2758: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759: ac_cv_prog_ac_ct_CC="gcc"
2760: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761: break 2
2762: fi
2763: done
2764: done
2765:
2766: fi
1.1 parser 2767: fi
1.11 paf 2768: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2769: if test -n "$ac_ct_CC"; then
2770: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2771: echo "${ECHO_T}$ac_ct_CC" >&6
2772: else
2773: echo "$as_me:$LINENO: result: no" >&5
2774: echo "${ECHO_T}no" >&6
1.1 parser 2775: fi
1.11 paf 2776:
2777: CC=$ac_ct_CC
1.1 parser 2778: else
1.11 paf 2779: CC="$ac_cv_prog_CC"
1.1 parser 2780: fi
2781:
1.11 paf 2782: if test -z "$CC"; then
2783: if test -n "$ac_tool_prefix"; then
2784: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2785: set dummy ${ac_tool_prefix}cc; ac_word=$2
2786: echo "$as_me:$LINENO: checking for $ac_word" >&5
2787: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2788: if test "${ac_cv_prog_CC+set}" = set; then
2789: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2790: else
2791: if test -n "$CC"; then
2792: ac_cv_prog_CC="$CC" # Let the user override the test.
2793: else
1.11 paf 2794: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795: for as_dir in $PATH
2796: do
2797: IFS=$as_save_IFS
2798: test -z "$as_dir" && as_dir=.
2799: for ac_exec_ext in '' $ac_executable_extensions; do
2800: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2801: ac_cv_prog_CC="${ac_tool_prefix}cc"
2802: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803: break 2
2804: fi
2805: done
2806: done
2807:
1.1 parser 2808: fi
2809: fi
1.11 paf 2810: CC=$ac_cv_prog_CC
1.1 parser 2811: if test -n "$CC"; then
1.11 paf 2812: echo "$as_me:$LINENO: result: $CC" >&5
2813: echo "${ECHO_T}$CC" >&6
2814: else
2815: echo "$as_me:$LINENO: result: no" >&5
2816: echo "${ECHO_T}no" >&6
2817: fi
2818:
2819: fi
2820: if test -z "$ac_cv_prog_CC"; then
2821: ac_ct_CC=$CC
2822: # Extract the first word of "cc", so it can be a program name with args.
2823: set dummy cc; ac_word=$2
2824: echo "$as_me:$LINENO: checking for $ac_word" >&5
2825: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2826: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2827: echo $ECHO_N "(cached) $ECHO_C" >&6
2828: else
2829: if test -n "$ac_ct_CC"; then
2830: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2831: else
2832: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833: for as_dir in $PATH
2834: do
2835: IFS=$as_save_IFS
2836: test -z "$as_dir" && as_dir=.
2837: for ac_exec_ext in '' $ac_executable_extensions; do
2838: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839: ac_cv_prog_ac_ct_CC="cc"
2840: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841: break 2
2842: fi
2843: done
2844: done
2845:
2846: fi
2847: fi
2848: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2849: if test -n "$ac_ct_CC"; then
2850: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2851: echo "${ECHO_T}$ac_ct_CC" >&6
2852: else
2853: echo "$as_me:$LINENO: result: no" >&5
2854: echo "${ECHO_T}no" >&6
2855: fi
2856:
2857: CC=$ac_ct_CC
1.1 parser 2858: else
1.11 paf 2859: CC="$ac_cv_prog_CC"
1.1 parser 2860: fi
2861:
1.11 paf 2862: fi
1.1 parser 2863: if test -z "$CC"; then
2864: # Extract the first word of "cc", so it can be a program name with args.
2865: set dummy cc; ac_word=$2
1.11 paf 2866: echo "$as_me:$LINENO: checking for $ac_word" >&5
2867: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2868: if test "${ac_cv_prog_CC+set}" = set; then
2869: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2870: else
2871: if test -n "$CC"; then
2872: ac_cv_prog_CC="$CC" # Let the user override the test.
2873: else
2874: ac_prog_rejected=no
1.11 paf 2875: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876: for as_dir in $PATH
2877: do
2878: IFS=$as_save_IFS
2879: test -z "$as_dir" && as_dir=.
2880: for ac_exec_ext in '' $ac_executable_extensions; do
2881: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2883: ac_prog_rejected=yes
2884: continue
2885: fi
2886: ac_cv_prog_CC="cc"
2887: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888: break 2
2889: fi
2890: done
2891: done
2892:
1.1 parser 2893: if test $ac_prog_rejected = yes; then
2894: # We found a bogon in the path, so make sure we never use it.
2895: set dummy $ac_cv_prog_CC
2896: shift
1.11 paf 2897: if test $# != 0; then
1.1 parser 2898: # We chose a different compiler from the bogus one.
2899: # However, it has the same basename, so the bogon will be chosen
2900: # first if we set CC to just the basename; use the full file name.
2901: shift
1.11 paf 2902: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 2903: fi
2904: fi
2905: fi
2906: fi
1.11 paf 2907: CC=$ac_cv_prog_CC
1.1 parser 2908: if test -n "$CC"; then
1.11 paf 2909: echo "$as_me:$LINENO: result: $CC" >&5
2910: echo "${ECHO_T}$CC" >&6
1.1 parser 2911: else
1.11 paf 2912: echo "$as_me:$LINENO: result: no" >&5
2913: echo "${ECHO_T}no" >&6
1.1 parser 2914: fi
2915:
1.11 paf 2916: fi
2917: if test -z "$CC"; then
2918: if test -n "$ac_tool_prefix"; then
2919: for ac_prog in cl
2920: do
2921: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2922: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2923: echo "$as_me:$LINENO: checking for $ac_word" >&5
2924: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2925: if test "${ac_cv_prog_CC+set}" = set; then
2926: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2927: else
2928: if test -n "$CC"; then
2929: ac_cv_prog_CC="$CC" # Let the user override the test.
2930: else
1.11 paf 2931: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932: for as_dir in $PATH
2933: do
2934: IFS=$as_save_IFS
2935: test -z "$as_dir" && as_dir=.
2936: for ac_exec_ext in '' $ac_executable_extensions; do
2937: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2939: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940: break 2
2941: fi
2942: done
2943: done
2944:
1.1 parser 2945: fi
2946: fi
1.11 paf 2947: CC=$ac_cv_prog_CC
1.1 parser 2948: if test -n "$CC"; then
1.11 paf 2949: echo "$as_me:$LINENO: result: $CC" >&5
2950: echo "${ECHO_T}$CC" >&6
1.1 parser 2951: else
1.11 paf 2952: echo "$as_me:$LINENO: result: no" >&5
2953: echo "${ECHO_T}no" >&6
1.1 parser 2954: fi
1.11 paf 2955:
2956: test -n "$CC" && break
2957: done
2958: fi
2959: if test -z "$CC"; then
2960: ac_ct_CC=$CC
2961: for ac_prog in cl
2962: do
2963: # Extract the first word of "$ac_prog", so it can be a program name with args.
2964: set dummy $ac_prog; ac_word=$2
2965: echo "$as_me:$LINENO: checking for $ac_word" >&5
2966: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2967: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2968: echo $ECHO_N "(cached) $ECHO_C" >&6
2969: else
2970: if test -n "$ac_ct_CC"; then
2971: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2972: else
2973: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974: for as_dir in $PATH
2975: do
2976: IFS=$as_save_IFS
2977: test -z "$as_dir" && as_dir=.
2978: for ac_exec_ext in '' $ac_executable_extensions; do
2979: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980: ac_cv_prog_ac_ct_CC="$ac_prog"
2981: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2982: break 2
1.1 parser 2983: fi
1.11 paf 2984: done
2985: done
2986:
2987: fi
2988: fi
2989: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2990: if test -n "$ac_ct_CC"; then
2991: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2992: echo "${ECHO_T}$ac_ct_CC" >&6
2993: else
2994: echo "$as_me:$LINENO: result: no" >&5
2995: echo "${ECHO_T}no" >&6
1.1 parser 2996: fi
2997:
1.11 paf 2998: test -n "$ac_ct_CC" && break
2999: done
1.1 parser 3000:
1.11 paf 3001: CC=$ac_ct_CC
3002: fi
1.1 parser 3003:
1.11 paf 3004: fi
1.1 parser 3005:
3006:
1.11 paf 3007: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3008: See \`config.log' for more details." >&5
3009: echo "$as_me: error: no acceptable C compiler found in \$PATH
3010: See \`config.log' for more details." >&2;}
3011: { (exit 1); exit 1; }; }
3012:
3013: # Provide some information about the compiler.
3014: echo "$as_me:$LINENO:" \
3015: "checking for C compiler version" >&5
3016: ac_compiler=`set X $ac_compile; echo $2`
3017: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3018: (eval $ac_compiler --version </dev/null >&5) 2>&5
3019: ac_status=$?
3020: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021: (exit $ac_status); }
3022: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3023: (eval $ac_compiler -v </dev/null >&5) 2>&5
3024: ac_status=$?
3025: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026: (exit $ac_status); }
3027: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3028: (eval $ac_compiler -V </dev/null >&5) 2>&5
3029: ac_status=$?
3030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031: (exit $ac_status); }
3032:
3033: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3034: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3035: if test "${ac_cv_c_compiler_gnu+set}" = set; then
3036: echo $ECHO_N "(cached) $ECHO_C" >&6
3037: else
3038: cat >conftest.$ac_ext <<_ACEOF
3039: #line $LINENO "configure"
3040: /* confdefs.h. */
3041: _ACEOF
3042: cat confdefs.h >>conftest.$ac_ext
3043: cat >>conftest.$ac_ext <<_ACEOF
3044: /* end confdefs.h. */
3045:
3046: int
3047: main ()
3048: {
3049: #ifndef __GNUC__
3050: choke me
1.1 parser 3051: #endif
3052:
1.11 paf 3053: ;
3054: return 0;
3055: }
3056: _ACEOF
3057: rm -f conftest.$ac_objext
3058: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3059: (eval $ac_compile) 2>&5
3060: ac_status=$?
3061: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062: (exit $ac_status); } &&
3063: { ac_try='test -s conftest.$ac_objext'
3064: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065: (eval $ac_try) 2>&5
3066: ac_status=$?
3067: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068: (exit $ac_status); }; }; then
3069: ac_compiler_gnu=yes
3070: else
3071: echo "$as_me: failed program was:" >&5
3072: sed 's/^/| /' conftest.$ac_ext >&5
3073:
3074: ac_compiler_gnu=no
3075: fi
3076: rm -f conftest.$ac_objext conftest.$ac_ext
3077: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3078:
3079: fi
3080: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3081: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3082: GCC=`test $ac_compiler_gnu = yes && echo yes`
3083: ac_test_CFLAGS=${CFLAGS+set}
3084: ac_save_CFLAGS=$CFLAGS
3085: CFLAGS="-g"
3086: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3087: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3088: if test "${ac_cv_prog_cc_g+set}" = set; then
3089: echo $ECHO_N "(cached) $ECHO_C" >&6
3090: else
3091: cat >conftest.$ac_ext <<_ACEOF
3092: #line $LINENO "configure"
3093: /* confdefs.h. */
3094: _ACEOF
3095: cat confdefs.h >>conftest.$ac_ext
3096: cat >>conftest.$ac_ext <<_ACEOF
3097: /* end confdefs.h. */
3098:
3099: int
3100: main ()
3101: {
3102:
3103: ;
3104: return 0;
3105: }
3106: _ACEOF
3107: rm -f conftest.$ac_objext
3108: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3109: (eval $ac_compile) 2>&5
3110: ac_status=$?
3111: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112: (exit $ac_status); } &&
3113: { ac_try='test -s conftest.$ac_objext'
3114: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115: (eval $ac_try) 2>&5
3116: ac_status=$?
3117: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118: (exit $ac_status); }; }; then
3119: ac_cv_prog_cc_g=yes
1.1 parser 3120: else
1.11 paf 3121: echo "$as_me: failed program was:" >&5
3122: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3123:
1.11 paf 3124: ac_cv_prog_cc_g=no
1.1 parser 3125: fi
1.11 paf 3126: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 parser 3127: fi
1.11 paf 3128: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3129: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 parser 3130: if test "$ac_test_CFLAGS" = set; then
1.11 paf 3131: CFLAGS=$ac_save_CFLAGS
1.1 parser 3132: elif test $ac_cv_prog_cc_g = yes; then
3133: if test "$GCC" = yes; then
3134: CFLAGS="-g -O2"
3135: else
3136: CFLAGS="-g"
3137: fi
3138: else
3139: if test "$GCC" = yes; then
3140: CFLAGS="-O2"
3141: else
3142: CFLAGS=
3143: fi
3144: fi
1.11 paf 3145: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3146: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3147: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3148: echo $ECHO_N "(cached) $ECHO_C" >&6
3149: else
3150: ac_cv_prog_cc_stdc=no
3151: ac_save_CC=$CC
3152: cat >conftest.$ac_ext <<_ACEOF
3153: #line $LINENO "configure"
3154: /* confdefs.h. */
3155: _ACEOF
3156: cat confdefs.h >>conftest.$ac_ext
3157: cat >>conftest.$ac_ext <<_ACEOF
3158: /* end confdefs.h. */
3159: #include <stdarg.h>
3160: #include <stdio.h>
3161: #include <sys/types.h>
3162: #include <sys/stat.h>
3163: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3164: struct buf { int x; };
3165: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3166: static char *e (p, i)
3167: char **p;
3168: int i;
3169: {
3170: return p[i];
3171: }
3172: static char *f (char * (*g) (char **, int), char **p, ...)
3173: {
3174: char *s;
3175: va_list v;
3176: va_start (v,p);
3177: s = g (p, va_arg (v,int));
3178: va_end (v);
3179: return s;
3180: }
3181: int test (int i, double x);
3182: struct s1 {int (*f) (int a);};
3183: struct s2 {int (*f) (double a);};
3184: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3185: int argc;
3186: char **argv;
3187: int
3188: main ()
3189: {
3190: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3191: ;
3192: return 0;
3193: }
3194: _ACEOF
3195: # Don't try gcc -ansi; that turns off useful extensions and
3196: # breaks some systems' header files.
3197: # AIX -qlanglvl=ansi
3198: # Ultrix and OSF/1 -std1
3199: # HP-UX 10.20 and later -Ae
3200: # HP-UX older versions -Aa -D_HPUX_SOURCE
3201: # SVR4 -Xc -D__EXTENSIONS__
3202: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3203: do
3204: CC="$ac_save_CC $ac_arg"
3205: rm -f conftest.$ac_objext
3206: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3207: (eval $ac_compile) 2>&5
3208: ac_status=$?
3209: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210: (exit $ac_status); } &&
3211: { ac_try='test -s conftest.$ac_objext'
3212: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213: (eval $ac_try) 2>&5
3214: ac_status=$?
3215: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216: (exit $ac_status); }; }; then
3217: ac_cv_prog_cc_stdc=$ac_arg
3218: break
3219: else
3220: echo "$as_me: failed program was:" >&5
3221: sed 's/^/| /' conftest.$ac_ext >&5
3222:
3223: fi
3224: rm -f conftest.$ac_objext
3225: done
3226: rm -f conftest.$ac_ext conftest.$ac_objext
3227: CC=$ac_save_CC
3228:
3229: fi
3230:
3231: case "x$ac_cv_prog_cc_stdc" in
3232: x|xno)
3233: echo "$as_me:$LINENO: result: none needed" >&5
3234: echo "${ECHO_T}none needed" >&6 ;;
3235: *)
3236: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3237: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3238: CC="$CC $ac_cv_prog_cc_stdc" ;;
3239: esac
3240:
3241: # Some people use a C++ compiler to compile C. Since we use `exit',
3242: # in C++ we need to declare it. In case someone uses the same compiler
3243: # for both compiling C and C++ we need to have the C++ compiler decide
3244: # the declaration of exit, since it's the most demanding environment.
3245: cat >conftest.$ac_ext <<_ACEOF
3246: #ifndef __cplusplus
3247: choke me
3248: #endif
3249: _ACEOF
3250: rm -f conftest.$ac_objext
3251: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3252: (eval $ac_compile) 2>&5
3253: ac_status=$?
3254: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255: (exit $ac_status); } &&
3256: { ac_try='test -s conftest.$ac_objext'
3257: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258: (eval $ac_try) 2>&5
3259: ac_status=$?
3260: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261: (exit $ac_status); }; }; then
3262: for ac_declaration in \
3263: ''\
3264: '#include <stdlib.h>' \
3265: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3266: 'extern "C" void std::exit (int); using std::exit;' \
3267: 'extern "C" void exit (int) throw ();' \
3268: 'extern "C" void exit (int);' \
3269: 'void exit (int);'
3270: do
3271: cat >conftest.$ac_ext <<_ACEOF
3272: #line $LINENO "configure"
3273: /* confdefs.h. */
3274: _ACEOF
3275: cat confdefs.h >>conftest.$ac_ext
3276: cat >>conftest.$ac_ext <<_ACEOF
3277: /* end confdefs.h. */
3278: #include <stdlib.h>
3279: $ac_declaration
3280: int
3281: main ()
3282: {
3283: exit (42);
3284: ;
3285: return 0;
3286: }
3287: _ACEOF
3288: rm -f conftest.$ac_objext
3289: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290: (eval $ac_compile) 2>&5
3291: ac_status=$?
3292: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293: (exit $ac_status); } &&
3294: { ac_try='test -s conftest.$ac_objext'
3295: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296: (eval $ac_try) 2>&5
3297: ac_status=$?
3298: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299: (exit $ac_status); }; }; then
3300: :
3301: else
3302: echo "$as_me: failed program was:" >&5
3303: sed 's/^/| /' conftest.$ac_ext >&5
3304:
3305: continue
3306: fi
3307: rm -f conftest.$ac_objext conftest.$ac_ext
3308: cat >conftest.$ac_ext <<_ACEOF
3309: #line $LINENO "configure"
3310: /* confdefs.h. */
3311: _ACEOF
3312: cat confdefs.h >>conftest.$ac_ext
3313: cat >>conftest.$ac_ext <<_ACEOF
3314: /* end confdefs.h. */
3315: $ac_declaration
3316: int
3317: main ()
3318: {
3319: exit (42);
3320: ;
3321: return 0;
3322: }
3323: _ACEOF
3324: rm -f conftest.$ac_objext
3325: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3326: (eval $ac_compile) 2>&5
3327: ac_status=$?
3328: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329: (exit $ac_status); } &&
3330: { ac_try='test -s conftest.$ac_objext'
3331: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332: (eval $ac_try) 2>&5
3333: ac_status=$?
3334: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335: (exit $ac_status); }; }; then
3336: break
3337: else
3338: echo "$as_me: failed program was:" >&5
3339: sed 's/^/| /' conftest.$ac_ext >&5
3340:
3341: fi
3342: rm -f conftest.$ac_objext conftest.$ac_ext
3343: done
3344: rm -f conftest*
3345: if test -n "$ac_declaration"; then
3346: echo '#ifdef __cplusplus' >>confdefs.h
3347: echo $ac_declaration >>confdefs.h
3348: echo '#endif' >>confdefs.h
3349: fi
3350:
3351: else
3352: echo "$as_me: failed program was:" >&5
3353: sed 's/^/| /' conftest.$ac_ext >&5
3354:
3355: fi
3356: rm -f conftest.$ac_objext conftest.$ac_ext
1.15 ! paf 3357: ac_ext=c
! 3358: ac_cpp='$CPP $CPPFLAGS'
! 3359: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 3360: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 3361: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 paf 3362:
3363: depcc="$CC" am_compiler_list=
3364:
3365: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3366: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3367: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3368: echo $ECHO_N "(cached) $ECHO_C" >&6
3369: else
3370: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3371: # We make a subdir and do the tests there. Otherwise we can end up
3372: # making bogus files that we don't know about and never remove. For
3373: # instance it was reported that on HP-UX the gcc test will end up
3374: # making a dummy file named `D' -- because `-MD' means `put the output
3375: # in D'.
3376: mkdir conftest.dir
3377: # Copy depcomp to subdir because otherwise we won't find it if we're
3378: # using a relative directory.
3379: cp "$am_depcomp" conftest.dir
3380: cd conftest.dir
3381:
3382: am_cv_CC_dependencies_compiler_type=none
3383: if test "$am_compiler_list" = ""; then
3384: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3385: fi
3386: for depmode in $am_compiler_list; do
3387: # We need to recreate these files for each test, as the compiler may
3388: # overwrite some of them when testing with obscure command lines.
3389: # This happens at least with the AIX C compiler.
3390: echo '#include "conftest.h"' > conftest.c
3391: echo 'int i;' > conftest.h
3392: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3393:
3394: case $depmode in
3395: nosideeffect)
3396: # after this tag, mechanisms are not by side-effect, so they'll
3397: # only be used when explicitly requested
3398: if test "x$enable_dependency_tracking" = xyes; then
3399: continue
3400: else
3401: break
3402: fi
3403: ;;
3404: none) break ;;
3405: esac
3406: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3407: # mode. It turns out that the SunPro C++ compiler does not properly
3408: # handle `-M -o', and we need to detect this.
3409: if depmode=$depmode \
3410: source=conftest.c object=conftest.o \
3411: depfile=conftest.Po tmpdepfile=conftest.TPo \
3412: $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
3413: grep conftest.h conftest.Po > /dev/null 2>&1 &&
3414: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3415: am_cv_CC_dependencies_compiler_type=$depmode
3416: break
3417: fi
3418: done
3419:
3420: cd ..
3421: rm -rf conftest.dir
3422: else
3423: am_cv_CC_dependencies_compiler_type=none
3424: fi
3425:
3426: fi
3427: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3428: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3429: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3430:
3431:
3432:
3433: if
3434: test "x$enable_dependency_tracking" != xno \
3435: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3436: am__fastdepCC_TRUE=
3437: am__fastdepCC_FALSE='#'
3438: else
3439: am__fastdepCC_TRUE='#'
3440: am__fastdepCC_FALSE=
3441: fi
3442:
3443:
1.15 ! paf 3444:
! 3445: ac_ext=c
! 3446: ac_cpp='$CPP $CPPFLAGS'
! 3447: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 3448: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 3449: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 3450:
! 3451:
! 3452:
! 3453: case $enable_ltdl_convenience in
! 3454: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
! 3455: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
! 3456: { (exit 1); exit 1; }; } ;;
! 3457: "") enable_ltdl_convenience=yes
! 3458: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
! 3459: esac
! 3460: LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
! 3461: LTDLINCL='-I${top_srcdir}/''libltdl'
! 3462: # For backwards non-gettext consistent compatibility...
! 3463: INCLTDL="$LTDLINCL"
! 3464:
! 3465:
! 3466:
! 3467:
! 3468: # Check whether --enable-static or --disable-static was given.
! 3469: if test "${enable_static+set}" = set; then
! 3470: enableval="$enable_static"
! 3471: p=${PACKAGE-default}
! 3472: case $enableval in
! 3473: yes) enable_static=yes ;;
! 3474: no) enable_static=no ;;
! 3475: *)
! 3476: enable_static=no
! 3477: # Look at the argument we got. We use all the common list separators.
! 3478: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
! 3479: for pkg in $enableval; do
! 3480: if test "X$pkg" = "X$p"; then
! 3481: enable_static=yes
! 3482: fi
! 3483: done
! 3484: IFS="$ac_save_ifs"
! 3485: ;;
! 3486: esac
! 3487: else
! 3488: enable_static=no
! 3489: fi;
! 3490:
! 3491: # Check whether --enable-shared or --disable-shared was given.
! 3492: if test "${enable_shared+set}" = set; then
! 3493: enableval="$enable_shared"
! 3494: p=${PACKAGE-default}
! 3495: case $enableval in
! 3496: yes) enable_shared=yes ;;
! 3497: no) enable_shared=no ;;
! 3498: *)
! 3499: enable_shared=no
! 3500: # Look at the argument we got. We use all the common list separators.
! 3501: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
! 3502: for pkg in $enableval; do
! 3503: if test "X$pkg" = "X$p"; then
! 3504: enable_shared=yes
! 3505: fi
! 3506: done
! 3507: IFS="$ac_save_ifs"
! 3508: ;;
! 3509: esac
! 3510: else
! 3511: enable_shared=yes
! 3512: fi;
! 3513: # Check whether --enable-fast-install or --disable-fast-install was given.
! 3514: if test "${enable_fast_install+set}" = set; then
! 3515: enableval="$enable_fast_install"
! 3516: p=${PACKAGE-default}
! 3517: case $enableval in
! 3518: yes) enable_fast_install=yes ;;
! 3519: no) enable_fast_install=no ;;
! 3520: *)
! 3521: enable_fast_install=no
! 3522: # Look at the argument we got. We use all the common list separators.
! 3523: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
! 3524: for pkg in $enableval; do
! 3525: if test "X$pkg" = "X$p"; then
! 3526: enable_fast_install=yes
! 3527: fi
! 3528: done
! 3529: IFS="$ac_save_ifs"
! 3530: ;;
! 3531: esac
! 3532: else
! 3533: enable_fast_install=yes
! 3534: fi;
! 3535: # Make sure we can run config.sub.
! 3536: $ac_config_sub sun4 >/dev/null 2>&1 ||
! 3537: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
! 3538: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
! 3539: { (exit 1); exit 1; }; }
! 3540:
! 3541: echo "$as_me:$LINENO: checking build system type" >&5
! 3542: echo $ECHO_N "checking build system type... $ECHO_C" >&6
! 3543: if test "${ac_cv_build+set}" = set; then
! 3544: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3545: else
! 3546: ac_cv_build_alias=$build_alias
! 3547: test -z "$ac_cv_build_alias" &&
! 3548: ac_cv_build_alias=`$ac_config_guess`
! 3549: test -z "$ac_cv_build_alias" &&
! 3550: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
! 3551: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
! 3552: { (exit 1); exit 1; }; }
! 3553: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
! 3554: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
! 3555: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
! 3556: { (exit 1); exit 1; }; }
! 3557:
! 3558: fi
! 3559: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
! 3560: echo "${ECHO_T}$ac_cv_build" >&6
! 3561: build=$ac_cv_build
! 3562: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 3563: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 3564: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! 3565:
! 3566:
! 3567: echo "$as_me:$LINENO: checking host system type" >&5
! 3568: echo $ECHO_N "checking host system type... $ECHO_C" >&6
! 3569: if test "${ac_cv_host+set}" = set; then
! 3570: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3571: else
! 3572: ac_cv_host_alias=$host_alias
! 3573: test -z "$ac_cv_host_alias" &&
! 3574: ac_cv_host_alias=$ac_cv_build_alias
! 3575: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
! 3576: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
! 3577: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
! 3578: { (exit 1); exit 1; }; }
! 3579:
! 3580: fi
! 3581: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
! 3582: echo "${ECHO_T}$ac_cv_host" >&6
! 3583: host=$ac_cv_host
! 3584: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 3585: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 3586: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! 3587:
! 3588:
1.11 paf 3589: # Find the correct PATH separator. Usually this is `:', but
3590: # DJGPP uses `;' like DOS.
3591: if test "X${PATH_SEPARATOR+set}" != Xset; then
3592: UNAME=${UNAME-`uname 2>/dev/null`}
3593: case X$UNAME in
3594: *-DOS) lt_cv_sys_path_separator=';' ;;
3595: *) lt_cv_sys_path_separator=':' ;;
3596: esac
3597: PATH_SEPARATOR=$lt_cv_sys_path_separator
3598: fi
3599:
1.1 parser 3600:
3601: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3602: if test "${with_gnu_ld+set}" = set; then
3603: withval="$with_gnu_ld"
3604: test "$withval" = no || with_gnu_ld=yes
3605: else
3606: with_gnu_ld=no
1.11 paf 3607: fi;
1.1 parser 3608: ac_prog=ld
1.11 paf 3609: if test "$GCC" = yes; then
1.1 parser 3610: # Check if gcc -print-prog-name=ld gives a path.
1.11 paf 3611: echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3612: echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3613: case $host in
3614: *-*-mingw*)
3615: # gcc leaves a trailing carriage return which upsets mingw
3616: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3617: *)
3618: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3619: esac
3620: case $ac_prog in
1.1 parser 3621: # Accept absolute paths.
3622: [\\/]* | [A-Za-z]:[\\/]*)
3623: re_direlt='/[^/][^/]*/\.\./'
3624: # Canonicalize the path of ld
3625: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3626: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3627: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3628: done
3629: test -z "$LD" && LD="$ac_prog"
3630: ;;
3631: "")
3632: # If it fails, then pretend we aren't using GCC.
3633: ac_prog=ld
3634: ;;
3635: *)
3636: # If it is relative, then search for the first ld in PATH.
3637: with_gnu_ld=unknown
3638: ;;
3639: esac
3640: elif test "$with_gnu_ld" = yes; then
1.11 paf 3641: echo "$as_me:$LINENO: checking for GNU ld" >&5
3642: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.1 parser 3643: else
1.11 paf 3644: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3645: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.1 parser 3646: fi
1.11 paf 3647: if test "${lt_cv_path_LD+set}" = set; then
3648: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3649: else
3650: if test -z "$LD"; then
1.11 paf 3651: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3652: for ac_dir in $PATH; do
3653: test -z "$ac_dir" && ac_dir=.
3654: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.11 paf 3655: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 3656: # Check to see if the program is GNU ld. I'd rather use --version,
3657: # but apparently some GNU ld's only accept -v.
3658: # Break only if it was the GNU/non-GNU ld that we prefer.
1.11 paf 3659: if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1.1 parser 3660: test "$with_gnu_ld" != no && break
3661: else
3662: test "$with_gnu_ld" != yes && break
3663: fi
3664: fi
3665: done
3666: IFS="$ac_save_ifs"
3667: else
1.11 paf 3668: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 3669: fi
3670: fi
3671:
1.11 paf 3672: LD="$lt_cv_path_LD"
1.1 parser 3673: if test -n "$LD"; then
1.11 paf 3674: echo "$as_me:$LINENO: result: $LD" >&5
3675: echo "${ECHO_T}$LD" >&6
1.1 parser 3676: else
1.11 paf 3677: echo "$as_me:$LINENO: result: no" >&5
3678: echo "${ECHO_T}no" >&6
1.1 parser 3679: fi
1.11 paf 3680: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3681: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3682: { (exit 1); exit 1; }; }
3683: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3684: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3685: if test "${lt_cv_prog_gnu_ld+set}" = set; then
3686: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3687: else
3688: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3689: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1.11 paf 3690: lt_cv_prog_gnu_ld=yes
1.1 parser 3691: else
1.11 paf 3692: lt_cv_prog_gnu_ld=no
1.1 parser 3693: fi
3694: fi
1.11 paf 3695: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3696: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3697: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 3698:
3699:
1.11 paf 3700: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3701: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3702: if test "${lt_cv_ld_reload_flag+set}" = set; then
3703: echo $ECHO_N "(cached) $ECHO_C" >&6
3704: else
3705: lt_cv_ld_reload_flag='-r'
3706: fi
3707: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3708: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3709: reload_flag=$lt_cv_ld_reload_flag
3710: test -n "$reload_flag" && reload_flag=" $reload_flag"
1.1 parser 3711:
1.11 paf 3712: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3713: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3714: if test "${lt_cv_path_NM+set}" = set; then
3715: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3716: else
3717: if test -n "$NM"; then
3718: # Let the user override the test.
1.11 paf 3719: lt_cv_path_NM="$NM"
1.1 parser 3720: else
1.11 paf 3721: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3722: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3723: test -z "$ac_dir" && ac_dir=.
1.11 paf 3724: tmp_nm=$ac_dir/${ac_tool_prefix}nm
3725: if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1.1 parser 3726: # Check to see if the nm accepts a BSD-compat flag.
3727: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3728: # nm: unknown option "B" ignored
1.11 paf 3729: # Tru64's nm complains that /dev/null is an invalid object file
3730: if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3731: lt_cv_path_NM="$tmp_nm -B"
1.1 parser 3732: break
1.11 paf 3733: elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3734: lt_cv_path_NM="$tmp_nm -p"
1.1 parser 3735: break
3736: else
1.11 paf 3737: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1.1 parser 3738: continue # so that we can try to find one that supports BSD flags
3739: fi
3740: fi
3741: done
3742: IFS="$ac_save_ifs"
1.11 paf 3743: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1.1 parser 3744: fi
3745: fi
3746:
1.11 paf 3747: NM="$lt_cv_path_NM"
3748: echo "$as_me:$LINENO: result: $NM" >&5
3749: echo "${ECHO_T}$NM" >&6
1.1 parser 3750:
1.11 paf 3751: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3752: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3753: if test "${lt_cv_path_SED+set}" = set; then
3754: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3755: else
1.11 paf 3756: # Loop through the user's path and test for sed and gsed.
3757: # Then use that list of sed's as ones to test for truncation.
3758: as_executable_p="test -f"
3759: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760: for as_dir in $PATH
3761: do
3762: IFS=$as_save_IFS
3763: test -z "$as_dir" && as_dir=.
3764: for ac_prog in sed gsed; do
3765: for ac_exec_ext in '' $ac_executable_extensions; do
3766: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3767: _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3768: fi
3769: done
3770: done
3771: done
3772:
3773: # Create a temporary directory, and hook for its removal unless debugging.
3774: $debug ||
3775: {
3776: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3777: trap '{ (exit 1); exit 1; }' 1 2 13 15
3778: }
3779:
3780: # Create a (secure) tmp directory for tmp files.
3781: : ${TMPDIR=/tmp}
3782: {
3783: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3784: test -n "$tmp" && test -d "$tmp"
3785: } ||
3786: {
3787: tmp=$TMPDIR/sed$$-$RANDOM
3788: (umask 077 && mkdir $tmp)
3789: } ||
3790: {
3791: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3792: { (exit 1); exit 1; }
3793: }
3794: _max=0
3795: _count=0
3796: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3797: # along with /bin/sed that truncates output.
3798: for _sed in $_sed_list /usr/xpg4/bin/sed; do
3799: test ! -f ${_sed} && break
3800: cat /dev/null > "$tmp/sed.in"
3801: _count=0
3802: echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3803: # Check for GNU sed and select it if it is found.
3804: if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3805: lt_cv_path_SED=${_sed}
3806: break
3807: fi
3808: while true; do
3809: cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3810: mv "$tmp/sed.tmp" "$tmp/sed.in"
3811: cp "$tmp/sed.in" "$tmp/sed.nl"
3812: echo >>"$tmp/sed.nl"
3813: ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3814: cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3815: # 40000 chars as input seems more than enough
3816: test $_count -gt 10 && break
3817: _count=`expr $_count + 1`
3818: if test $_count -gt $_max; then
3819: _max=$_count
3820: lt_cv_path_SED=$_sed
3821: fi
3822: done
3823: done
3824: rm -rf "$tmp"
3825:
1.1 parser 3826: fi
3827:
1.11 paf 3828: if test "X$SED" != "X"; then
3829: lt_cv_path_SED=$SED
1.7 paf 3830: else
1.11 paf 3831: SED=$lt_cv_path_SED
1.7 paf 3832: fi
1.11 paf 3833: echo "$as_me:$LINENO: result: $SED" >&5
3834: echo "${ECHO_T}$SED" >&6
3835:
3836: echo "$as_me:$LINENO: checking whether ln -s works" >&5
3837: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3838: LN_S=$as_ln_s
3839: if test "$LN_S" = "ln -s"; then
3840: echo "$as_me:$LINENO: result: yes" >&5
3841: echo "${ECHO_T}yes" >&6
3842: else
3843: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3844: echo "${ECHO_T}no, using $LN_S" >&6
3845: fi
3846:
3847: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3848: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3849: if test "${lt_cv_deplibs_check_method+set}" = set; then
3850: echo $ECHO_N "(cached) $ECHO_C" >&6
3851: else
3852: lt_cv_file_magic_cmd='$MAGIC_CMD'
3853: lt_cv_file_magic_test_file=
3854: lt_cv_deplibs_check_method='unknown'
3855: # Need to set the preceding variable on all platforms that support
3856: # interlibrary dependencies.
3857: # 'none' -- dependencies not supported.
3858: # `unknown' -- same as none, but documents that we really don't know.
3859: # 'pass_all' -- all dependencies passed with no checks.
3860: # 'test_compile' -- check by making test program.
3861: # 'file_magic [[regex]]' -- check by looking for files in library path
3862: # which responds to the $file_magic_cmd with a given egrep regex.
3863: # If you have `file' or equivalent on your system and you're not sure
3864: # whether `pass_all' will *always* work, you probably want this one.
3865:
3866: case $host_os in
3867: aix4* | aix5*)
3868: lt_cv_deplibs_check_method=pass_all
3869: ;;
1.7 paf 3870:
1.11 paf 3871: beos*)
3872: lt_cv_deplibs_check_method=pass_all
3873: ;;
1.1 parser 3874:
1.11 paf 3875: bsdi4*)
3876: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3877: lt_cv_file_magic_cmd='/usr/bin/file -L'
3878: lt_cv_file_magic_test_file=/shlib/libc.so
3879: ;;
1.1 parser 3880:
1.11 paf 3881: cygwin* | mingw* | pw32*)
3882: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3883: lt_cv_file_magic_cmd='$OBJDUMP -f'
3884: ;;
1.1 parser 3885:
1.11 paf 3886: darwin* | rhapsody*)
3887: lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3888: lt_cv_file_magic_cmd='/usr/bin/file -L'
3889: case "$host_os" in
3890: rhapsody* | darwin1.[012])
3891: lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3892: ;;
3893: *) # Darwin 1.3 on
3894: lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3895: ;;
3896: esac
3897: ;;
1.1 parser 3898:
1.11 paf 3899: freebsd*)
3900: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3901: case $host_cpu in
3902: i*86 )
3903: # Not sure whether the presence of OpenBSD here was a mistake.
3904: # Let's accept both of them until this is cleared up.
3905: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3906: lt_cv_file_magic_cmd=/usr/bin/file
3907: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 3908: ;;
3909: esac
1.11 paf 3910: else
3911: lt_cv_deplibs_check_method=pass_all
1.1 parser 3912: fi
3913: ;;
3914:
1.11 paf 3915: gnu*)
3916: lt_cv_deplibs_check_method=pass_all
3917: ;;
1.1 parser 3918:
1.11 paf 3919: hpux10.20*|hpux11*)
3920: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3921: lt_cv_file_magic_cmd=/usr/bin/file
3922: lt_cv_file_magic_test_file=/usr/lib/libc.sl
3923: ;;
1.1 parser 3924:
1.11 paf 3925: irix5* | irix6* | nonstopux*)
3926: case $host_os in
3927: irix5* | nonstopux*)
3928: # this will be overridden with pass_all, but let us keep it just in case
3929: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3930: ;;
3931: *)
3932: case $LD in
3933: *-32|*"-32 ") libmagic=32-bit;;
3934: *-n32|*"-n32 ") libmagic=N32;;
3935: *-64|*"-64 ") libmagic=64-bit;;
3936: *) libmagic=never-match;;
3937: esac
3938: # this will be overridden with pass_all, but let us keep it just in case
3939: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3940: ;;
3941: esac
3942: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3943: lt_cv_deplibs_check_method=pass_all
3944: ;;
3945:
3946: # This must be Linux ELF.
3947: linux-gnu*)
3948: case $host_cpu in
3949: alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3950: lt_cv_deplibs_check_method=pass_all ;;
3951: *)
3952: # glibc up to 2.1.1 does not perform some relocations on ARM
3953: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3954: esac
3955: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3956: ;;
3957:
3958: netbsd*)
3959: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3960: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3961: else
3962: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3963: fi
3964: ;;
3965:
3966: newos6*)
3967: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3968: lt_cv_file_magic_cmd=/usr/bin/file
3969: lt_cv_file_magic_test_file=/usr/lib/libnls.so
3970: ;;
3971:
3972: openbsd*)
3973: lt_cv_file_magic_cmd=/usr/bin/file
3974: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3975: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3976: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3977: else
3978: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3979: fi
3980: ;;
3981:
3982: osf3* | osf4* | osf5*)
3983: # this will be overridden with pass_all, but let us keep it just in case
3984: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3985: lt_cv_file_magic_test_file=/shlib/libc.so
3986: lt_cv_deplibs_check_method=pass_all
3987: ;;
3988:
3989: sco3.2v5*)
3990: lt_cv_deplibs_check_method=pass_all
3991: ;;
3992:
3993: solaris*)
3994: lt_cv_deplibs_check_method=pass_all
3995: lt_cv_file_magic_test_file=/lib/libc.so
3996: ;;
3997:
3998: sysv5uw[78]* | sysv4*uw2*)
3999: lt_cv_deplibs_check_method=pass_all
4000: ;;
4001:
4002: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4003: case $host_vendor in
4004: motorola)
4005: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4006: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4007: ;;
4008: ncr)
4009: lt_cv_deplibs_check_method=pass_all
4010: ;;
4011: sequent)
4012: lt_cv_file_magic_cmd='/bin/file'
4013: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4014: ;;
4015: sni)
4016: lt_cv_file_magic_cmd='/bin/file'
4017: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4018: lt_cv_file_magic_test_file=/lib/libc.so
4019: ;;
4020: siemens)
4021: lt_cv_deplibs_check_method=pass_all
4022: ;;
4023: esac
4024: ;;
4025: esac
4026:
4027: fi
4028: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4029: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4030: file_magic_cmd=$lt_cv_file_magic_cmd
4031: deplibs_check_method=$lt_cv_deplibs_check_method
4032:
4033:
4034:
4035:
4036:
4037:
4038:
4039:
4040: # Check for command to grab the raw symbol name followed by C symbol from nm.
4041: echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4042: echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4043: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4044: echo $ECHO_N "(cached) $ECHO_C" >&6
4045: else
4046:
4047: # These are sane defaults that work on at least a few old systems.
4048: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4049:
4050: # Character class describing NM global symbol codes.
4051: symcode='[BCDEGRST]'
4052:
4053: # Regexp to match symbols that can be accessed directly from C.
4054: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4055:
4056: # Transform the above into a raw symbol and a C symbol.
4057: symxfrm='\1 \2\3 \3'
4058:
4059: # Transform an extracted symbol line into a proper C declaration
4060: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4061:
4062: # Transform an extracted symbol line into symbol name and symbol address
4063: lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4064:
4065: # Define system-specific variables.
4066: case $host_os in
4067: aix*)
4068: symcode='[BCDT]'
4069: ;;
4070: cygwin* | mingw* | pw32*)
4071: symcode='[ABCDGISTW]'
4072: ;;
4073: hpux*) # Its linker distinguishes data from code symbols
4074: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4075: lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4076: ;;
4077: irix* | nonstopux*)
4078: symcode='[BCDEGRST]'
4079: ;;
4080: osf*)
4081: symcode='[BCDEGQRST]'
4082: ;;
4083: solaris* | sysv5*)
4084: symcode='[BDT]'
4085: ;;
4086: sysv4)
4087: symcode='[DFNSTU]'
4088: ;;
4089: esac
4090:
4091: # Handle CRLF in mingw tool chain
4092: opt_cr=
4093: case $host_os in
4094: mingw*)
4095: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4096: ;;
4097: esac
4098:
4099: # If we're using GNU nm, then use its standard symbol codes.
4100: if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4101: symcode='[ABCDGISTW]'
4102: fi
4103:
4104: # Try without a prefix undercore, then with it.
4105: for ac_symprfx in "" "_"; do
4106:
4107: # Write the raw and C identifiers.
4108: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4109:
4110: # Check to see that the pipe works correctly.
4111: pipe_works=no
4112: rm -f conftest*
4113: cat > conftest.$ac_ext <<EOF
4114: #ifdef __cplusplus
4115: extern "C" {
4116: #endif
4117: char nm_test_var;
4118: void nm_test_func(){}
4119: #ifdef __cplusplus
4120: }
4121: #endif
4122: int main(){nm_test_var='a';nm_test_func();return(0);}
4123: EOF
4124:
4125: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4126: (eval $ac_compile) 2>&5
4127: ac_status=$?
4128: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129: (exit $ac_status); }; then
4130: # Now try to grab the symbols.
4131: nlist=conftest.nm
4132: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4133: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4134: ac_status=$?
4135: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136: (exit $ac_status); } && test -s "$nlist"; then
4137: # Try sorting and uniquifying the output.
4138: if sort "$nlist" | uniq > "$nlist"T; then
4139: mv -f "$nlist"T "$nlist"
4140: else
4141: rm -f "$nlist"T
4142: fi
4143:
4144: # Make sure that we snagged all the symbols we need.
4145: if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4146: if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4147: cat <<EOF > conftest.$ac_ext
4148: #ifdef __cplusplus
4149: extern "C" {
4150: #endif
4151:
4152: EOF
4153: # Now generate the symbol file.
4154: eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4155:
4156: cat <<EOF >> conftest.$ac_ext
4157: #if defined (__STDC__) && __STDC__
4158: # define lt_ptr void *
4159: #else
4160: # define lt_ptr char *
4161: # define const
4162: #endif
4163:
4164: /* The mapping between symbol names and symbols. */
4165: const struct {
4166: const char *name;
4167: lt_ptr address;
4168: }
4169: lt_preloaded_symbols[] =
4170: {
4171: EOF
4172: sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4173: cat <<\EOF >> conftest.$ac_ext
4174: {0, (lt_ptr) 0}
4175: };
4176:
4177: #ifdef __cplusplus
4178: }
4179: #endif
1.1 parser 4180: EOF
1.11 paf 4181: # Now try linking the two files.
4182: mv conftest.$ac_objext conftstm.$ac_objext
4183: save_LIBS="$LIBS"
4184: save_CFLAGS="$CFLAGS"
4185: LIBS="conftstm.$ac_objext"
4186: CFLAGS="$CFLAGS$no_builtin_flag"
4187: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4188: (eval $ac_link) 2>&5
4189: ac_status=$?
4190: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191: (exit $ac_status); } && test -s conftest$ac_exeext; then
4192: pipe_works=yes
4193: fi
4194: LIBS="$save_LIBS"
4195: CFLAGS="$save_CFLAGS"
4196: else
4197: echo "cannot find nm_test_func in $nlist" >&5
4198: fi
4199: else
4200: echo "cannot find nm_test_var in $nlist" >&5
4201: fi
4202: else
4203: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4204: fi
4205: else
4206: echo "$progname: failed program was:" >&5
4207: cat conftest.$ac_ext >&5
4208: fi
4209: rm -f conftest* conftst*
4210:
4211: # Do not use the global_symbol_pipe unless it works.
4212: if test "$pipe_works" = yes; then
4213: break
4214: else
4215: lt_cv_sys_global_symbol_pipe=
4216: fi
4217: done
4218:
4219: fi
4220:
4221: global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4222: if test -z "$lt_cv_sys_global_symbol_pipe"; then
4223: global_symbol_to_cdecl=
4224: global_symbol_to_c_name_address=
4225: else
4226: global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4227: global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4228: fi
4229: if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4230: then
4231: echo "$as_me:$LINENO: result: failed" >&5
4232: echo "${ECHO_T}failed" >&6
4233: else
4234: echo "$as_me:$LINENO: result: ok" >&5
4235: echo "${ECHO_T}ok" >&6
4236: fi
4237:
1.15 ! paf 4238: ac_ext=c
! 4239: ac_cpp='$CPP $CPPFLAGS'
! 4240: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4241: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4242: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 4243: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
! 4244: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
! 4245: # On Suns, sometimes $CPP names a directory.
! 4246: if test -n "$CPP" && test -d "$CPP"; then
! 4247: CPP=
! 4248: fi
! 4249: if test -z "$CPP"; then
! 4250: if test "${ac_cv_prog_CPP+set}" = set; then
1.11 paf 4251: echo $ECHO_N "(cached) $ECHO_C" >&6
4252: else
1.15 ! paf 4253: # Double quotes because CPP needs to be expanded
! 4254: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1.11 paf 4255: do
4256: ac_preproc_ok=false
1.15 ! paf 4257: for ac_c_preproc_warn_flag in '' yes
1.11 paf 4258: do
4259: # Use a header file that comes with gcc, so configuring glibc
4260: # with a fresh cross-compiler works.
4261: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4262: # <limits.h> exists even on freestanding compilers.
4263: # On the NeXT, cc -E runs the code through the compiler's parser,
4264: # not just through cpp. "Syntax error" is here to catch this case.
4265: cat >conftest.$ac_ext <<_ACEOF
4266: #line $LINENO "configure"
4267: /* confdefs.h. */
4268: _ACEOF
4269: cat confdefs.h >>conftest.$ac_ext
4270: cat >>conftest.$ac_ext <<_ACEOF
4271: /* end confdefs.h. */
4272: #ifdef __STDC__
4273: # include <limits.h>
4274: #else
4275: # include <assert.h>
4276: #endif
4277: Syntax error
4278: _ACEOF
4279: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4280: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4281: ac_status=$?
4282: grep -v '^ *+' conftest.er1 >conftest.err
4283: rm -f conftest.er1
4284: cat conftest.err >&5
4285: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286: (exit $ac_status); } >/dev/null; then
4287: if test -s conftest.err; then
1.15 ! paf 4288: ac_cpp_err=$ac_c_preproc_warn_flag
1.11 paf 4289: else
4290: ac_cpp_err=
4291: fi
4292: else
4293: ac_cpp_err=yes
4294: fi
4295: if test -z "$ac_cpp_err"; then
4296: :
4297: else
4298: echo "$as_me: failed program was:" >&5
4299: sed 's/^/| /' conftest.$ac_ext >&5
4300:
4301: # Broken: fails on valid input.
4302: continue
4303: fi
4304: rm -f conftest.err conftest.$ac_ext
4305:
4306: # OK, works on sane cases. Now check whether non-existent headers
4307: # can be detected and how.
4308: cat >conftest.$ac_ext <<_ACEOF
4309: #line $LINENO "configure"
4310: /* confdefs.h. */
4311: _ACEOF
4312: cat confdefs.h >>conftest.$ac_ext
4313: cat >>conftest.$ac_ext <<_ACEOF
4314: /* end confdefs.h. */
4315: #include <ac_nonexistent.h>
4316: _ACEOF
4317: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4318: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4319: ac_status=$?
4320: grep -v '^ *+' conftest.er1 >conftest.err
4321: rm -f conftest.er1
4322: cat conftest.err >&5
4323: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324: (exit $ac_status); } >/dev/null; then
4325: if test -s conftest.err; then
1.15 ! paf 4326: ac_cpp_err=$ac_c_preproc_warn_flag
1.11 paf 4327: else
4328: ac_cpp_err=
4329: fi
4330: else
4331: ac_cpp_err=yes
4332: fi
4333: if test -z "$ac_cpp_err"; then
4334: # Broken: success on invalid input.
4335: continue
1.1 parser 4336: else
1.11 paf 4337: echo "$as_me: failed program was:" >&5
4338: sed 's/^/| /' conftest.$ac_ext >&5
4339:
4340: # Passes both tests.
4341: ac_preproc_ok=:
4342: break
1.1 parser 4343: fi
1.11 paf 4344: rm -f conftest.err conftest.$ac_ext
4345:
4346: done
4347: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4348: rm -f conftest.err conftest.$ac_ext
4349: if $ac_preproc_ok; then
4350: break
1.1 parser 4351: fi
4352:
1.11 paf 4353: done
1.15 ! paf 4354: ac_cv_prog_CPP=$CPP
1.11 paf 4355:
4356: fi
1.15 ! paf 4357: CPP=$ac_cv_prog_CPP
1.11 paf 4358: else
1.15 ! paf 4359: ac_cv_prog_CPP=$CPP
1.11 paf 4360: fi
1.15 ! paf 4361: echo "$as_me:$LINENO: result: $CPP" >&5
! 4362: echo "${ECHO_T}$CPP" >&6
1.11 paf 4363: ac_preproc_ok=false
1.15 ! paf 4364: for ac_c_preproc_warn_flag in '' yes
1.11 paf 4365: do
4366: # Use a header file that comes with gcc, so configuring glibc
4367: # with a fresh cross-compiler works.
4368: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4369: # <limits.h> exists even on freestanding compilers.
4370: # On the NeXT, cc -E runs the code through the compiler's parser,
4371: # not just through cpp. "Syntax error" is here to catch this case.
4372: cat >conftest.$ac_ext <<_ACEOF
4373: #line $LINENO "configure"
4374: /* confdefs.h. */
4375: _ACEOF
4376: cat confdefs.h >>conftest.$ac_ext
4377: cat >>conftest.$ac_ext <<_ACEOF
4378: /* end confdefs.h. */
4379: #ifdef __STDC__
4380: # include <limits.h>
4381: #else
4382: # include <assert.h>
4383: #endif
4384: Syntax error
4385: _ACEOF
4386: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4387: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4388: ac_status=$?
4389: grep -v '^ *+' conftest.er1 >conftest.err
4390: rm -f conftest.er1
4391: cat conftest.err >&5
4392: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393: (exit $ac_status); } >/dev/null; then
4394: if test -s conftest.err; then
1.15 ! paf 4395: ac_cpp_err=$ac_c_preproc_warn_flag
1.11 paf 4396: else
4397: ac_cpp_err=
1.1 parser 4398: fi
1.11 paf 4399: else
4400: ac_cpp_err=yes
4401: fi
4402: if test -z "$ac_cpp_err"; then
4403: :
4404: else
4405: echo "$as_me: failed program was:" >&5
4406: sed 's/^/| /' conftest.$ac_ext >&5
4407:
4408: # Broken: fails on valid input.
4409: continue
4410: fi
4411: rm -f conftest.err conftest.$ac_ext
1.1 parser 4412:
1.11 paf 4413: # OK, works on sane cases. Now check whether non-existent headers
4414: # can be detected and how.
4415: cat >conftest.$ac_ext <<_ACEOF
4416: #line $LINENO "configure"
4417: /* confdefs.h. */
4418: _ACEOF
4419: cat confdefs.h >>conftest.$ac_ext
4420: cat >>conftest.$ac_ext <<_ACEOF
4421: /* end confdefs.h. */
4422: #include <ac_nonexistent.h>
4423: _ACEOF
4424: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4425: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4426: ac_status=$?
4427: grep -v '^ *+' conftest.er1 >conftest.err
4428: rm -f conftest.er1
4429: cat conftest.err >&5
4430: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431: (exit $ac_status); } >/dev/null; then
4432: if test -s conftest.err; then
1.15 ! paf 4433: ac_cpp_err=$ac_c_preproc_warn_flag
1.11 paf 4434: else
4435: ac_cpp_err=
4436: fi
4437: else
4438: ac_cpp_err=yes
4439: fi
4440: if test -z "$ac_cpp_err"; then
4441: # Broken: success on invalid input.
4442: continue
1.7 paf 4443: else
1.11 paf 4444: echo "$as_me: failed program was:" >&5
4445: sed 's/^/| /' conftest.$ac_ext >&5
4446:
4447: # Passes both tests.
4448: ac_preproc_ok=:
4449: break
4450: fi
4451: rm -f conftest.err conftest.$ac_ext
4452:
4453: done
4454: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4455: rm -f conftest.err conftest.$ac_ext
4456: if $ac_preproc_ok; then
4457: :
1.7 paf 4458: else
1.15 ! paf 4459: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1.11 paf 4460: See \`config.log' for more details." >&5
1.15 ! paf 4461: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1.11 paf 4462: See \`config.log' for more details." >&2;}
4463: { (exit 1); exit 1; }; }
4464: fi
4465:
1.15 ! paf 4466: ac_ext=c
! 4467: ac_cpp='$CPP $CPPFLAGS'
! 4468: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4469: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4470: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 paf 4471:
4472:
4473: echo "$as_me:$LINENO: checking for egrep" >&5
4474: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4475: if test "${ac_cv_prog_egrep+set}" = set; then
4476: echo $ECHO_N "(cached) $ECHO_C" >&6
4477: else
4478: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4479: then ac_cv_prog_egrep='grep -E'
4480: else ac_cv_prog_egrep='egrep'
1.7 paf 4481: fi
4482: fi
1.11 paf 4483: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4484: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4485: EGREP=$ac_cv_prog_egrep
4486:
4487:
4488: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4489: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4490: if test "${ac_cv_header_stdc+set}" = set; then
4491: echo $ECHO_N "(cached) $ECHO_C" >&6
4492: else
4493: cat >conftest.$ac_ext <<_ACEOF
4494: #line $LINENO "configure"
4495: /* confdefs.h. */
4496: _ACEOF
4497: cat confdefs.h >>conftest.$ac_ext
4498: cat >>conftest.$ac_ext <<_ACEOF
4499: /* end confdefs.h. */
4500: #include <stdlib.h>
4501: #include <stdarg.h>
4502: #include <string.h>
4503: #include <float.h>
4504:
4505: int
4506: main ()
4507: {
4508:
4509: ;
4510: return 0;
4511: }
4512: _ACEOF
4513: rm -f conftest.$ac_objext
4514: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515: (eval $ac_compile) 2>&5
4516: ac_status=$?
4517: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518: (exit $ac_status); } &&
4519: { ac_try='test -s conftest.$ac_objext'
4520: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521: (eval $ac_try) 2>&5
4522: ac_status=$?
4523: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524: (exit $ac_status); }; }; then
4525: ac_cv_header_stdc=yes
4526: else
4527: echo "$as_me: failed program was:" >&5
4528: sed 's/^/| /' conftest.$ac_ext >&5
4529:
4530: ac_cv_header_stdc=no
4531: fi
4532: rm -f conftest.$ac_objext conftest.$ac_ext
4533:
4534: if test $ac_cv_header_stdc = yes; then
4535: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4536: cat >conftest.$ac_ext <<_ACEOF
4537: #line $LINENO "configure"
4538: /* confdefs.h. */
4539: _ACEOF
4540: cat confdefs.h >>conftest.$ac_ext
4541: cat >>conftest.$ac_ext <<_ACEOF
4542: /* end confdefs.h. */
4543: #include <string.h>
4544:
4545: _ACEOF
4546: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4547: $EGREP "memchr" >/dev/null 2>&1; then
4548: :
4549: else
4550: ac_cv_header_stdc=no
4551: fi
4552: rm -f conftest*
4553:
1.7 paf 4554: fi
1.11 paf 4555:
4556: if test $ac_cv_header_stdc = yes; then
4557: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4558: cat >conftest.$ac_ext <<_ACEOF
4559: #line $LINENO "configure"
4560: /* confdefs.h. */
4561: _ACEOF
4562: cat confdefs.h >>conftest.$ac_ext
4563: cat >>conftest.$ac_ext <<_ACEOF
4564: /* end confdefs.h. */
4565: #include <stdlib.h>
4566:
4567: _ACEOF
4568: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4569: $EGREP "free" >/dev/null 2>&1; then
4570: :
1.7 paf 4571: else
1.11 paf 4572: ac_cv_header_stdc=no
4573: fi
4574: rm -f conftest*
4575:
1.7 paf 4576: fi
4577:
1.11 paf 4578: if test $ac_cv_header_stdc = yes; then
4579: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4580: if test "$cross_compiling" = yes; then
4581: :
4582: else
4583: cat >conftest.$ac_ext <<_ACEOF
4584: #line $LINENO "configure"
4585: /* confdefs.h. */
4586: _ACEOF
4587: cat confdefs.h >>conftest.$ac_ext
4588: cat >>conftest.$ac_ext <<_ACEOF
4589: /* end confdefs.h. */
4590: #include <ctype.h>
4591: #if ((' ' & 0x0FF) == 0x020)
4592: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4593: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4594: #else
4595: # define ISLOWER(c) \
4596: (('a' <= (c) && (c) <= 'i') \
4597: || ('j' <= (c) && (c) <= 'r') \
4598: || ('s' <= (c) && (c) <= 'z'))
4599: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4600: #endif
1.7 paf 4601:
1.11 paf 4602: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4603: int
4604: main ()
4605: {
4606: int i;
4607: for (i = 0; i < 256; i++)
4608: if (XOR (islower (i), ISLOWER (i))
4609: || toupper (i) != TOUPPER (i))
4610: exit(2);
4611: exit (0);
4612: }
4613: _ACEOF
4614: rm -f conftest$ac_exeext
4615: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4616: (eval $ac_link) 2>&5
4617: ac_status=$?
4618: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4620: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621: (eval $ac_try) 2>&5
4622: ac_status=$?
4623: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624: (exit $ac_status); }; }; then
4625: :
1.7 paf 4626: else
1.11 paf 4627: echo "$as_me: program exited with status $ac_status" >&5
4628: echo "$as_me: failed program was:" >&5
4629: sed 's/^/| /' conftest.$ac_ext >&5
4630:
4631: ( exit $ac_status )
4632: ac_cv_header_stdc=no
4633: fi
4634: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4635: fi
4636: fi
4637: fi
4638: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4639: echo "${ECHO_T}$ac_cv_header_stdc" >&6
4640: if test $ac_cv_header_stdc = yes; then
4641:
4642: cat >>confdefs.h <<\_ACEOF
4643: #define STDC_HEADERS 1
4644: _ACEOF
4645:
4646: fi
4647:
4648: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4649:
4650:
4651:
4652:
4653:
4654:
4655:
4656:
4657:
4658: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4659: inttypes.h stdint.h unistd.h
4660: do
4661: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4662: echo "$as_me:$LINENO: checking for $ac_header" >&5
4663: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4664: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4665: echo $ECHO_N "(cached) $ECHO_C" >&6
4666: else
4667: cat >conftest.$ac_ext <<_ACEOF
4668: #line $LINENO "configure"
4669: /* confdefs.h. */
4670: _ACEOF
4671: cat confdefs.h >>conftest.$ac_ext
4672: cat >>conftest.$ac_ext <<_ACEOF
4673: /* end confdefs.h. */
4674: $ac_includes_default
4675:
4676: #include <$ac_header>
4677: _ACEOF
4678: rm -f conftest.$ac_objext
4679: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4680: (eval $ac_compile) 2>&5
4681: ac_status=$?
4682: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683: (exit $ac_status); } &&
4684: { ac_try='test -s conftest.$ac_objext'
4685: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686: (eval $ac_try) 2>&5
4687: ac_status=$?
4688: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689: (exit $ac_status); }; }; then
4690: eval "$as_ac_Header=yes"
4691: else
4692: echo "$as_me: failed program was:" >&5
4693: sed 's/^/| /' conftest.$ac_ext >&5
4694:
4695: eval "$as_ac_Header=no"
4696: fi
4697: rm -f conftest.$ac_objext conftest.$ac_ext
4698: fi
4699: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4700: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4701: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4702: cat >>confdefs.h <<_ACEOF
4703: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4704: _ACEOF
4705:
4706: fi
4707:
4708: done
4709:
4710:
4711:
4712: for ac_header in dlfcn.h
4713: do
4714: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4715: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4716: echo "$as_me:$LINENO: checking for $ac_header" >&5
4717: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4718: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4719: echo $ECHO_N "(cached) $ECHO_C" >&6
4720: fi
4721: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4722: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4723: else
4724: # Is the header compilable?
4725: echo "$as_me:$LINENO: checking $ac_header usability" >&5
4726: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4727: cat >conftest.$ac_ext <<_ACEOF
4728: #line $LINENO "configure"
4729: /* confdefs.h. */
4730: _ACEOF
4731: cat confdefs.h >>conftest.$ac_ext
4732: cat >>conftest.$ac_ext <<_ACEOF
4733: /* end confdefs.h. */
4734: $ac_includes_default
4735: #include <$ac_header>
4736: _ACEOF
4737: rm -f conftest.$ac_objext
4738: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739: (eval $ac_compile) 2>&5
4740: ac_status=$?
4741: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742: (exit $ac_status); } &&
4743: { ac_try='test -s conftest.$ac_objext'
4744: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745: (eval $ac_try) 2>&5
4746: ac_status=$?
4747: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748: (exit $ac_status); }; }; then
4749: ac_header_compiler=yes
4750: else
4751: echo "$as_me: failed program was:" >&5
4752: sed 's/^/| /' conftest.$ac_ext >&5
4753:
4754: ac_header_compiler=no
4755: fi
4756: rm -f conftest.$ac_objext conftest.$ac_ext
4757: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4758: echo "${ECHO_T}$ac_header_compiler" >&6
4759:
4760: # Is the header present?
4761: echo "$as_me:$LINENO: checking $ac_header presence" >&5
4762: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4763: cat >conftest.$ac_ext <<_ACEOF
4764: #line $LINENO "configure"
4765: /* confdefs.h. */
4766: _ACEOF
4767: cat confdefs.h >>conftest.$ac_ext
4768: cat >>conftest.$ac_ext <<_ACEOF
4769: /* end confdefs.h. */
4770: #include <$ac_header>
4771: _ACEOF
4772: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4773: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4774: ac_status=$?
4775: grep -v '^ *+' conftest.er1 >conftest.err
4776: rm -f conftest.er1
4777: cat conftest.err >&5
4778: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779: (exit $ac_status); } >/dev/null; then
4780: if test -s conftest.err; then
1.15 ! paf 4781: ac_cpp_err=$ac_c_preproc_warn_flag
1.11 paf 4782: else
4783: ac_cpp_err=
4784: fi
1.7 paf 4785: else
1.11 paf 4786: ac_cpp_err=yes
1.7 paf 4787: fi
1.11 paf 4788: if test -z "$ac_cpp_err"; then
4789: ac_header_preproc=yes
4790: else
4791: echo "$as_me: failed program was:" >&5
4792: sed 's/^/| /' conftest.$ac_ext >&5
4793:
4794: ac_header_preproc=no
4795: fi
4796: rm -f conftest.err conftest.$ac_ext
4797: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4798: echo "${ECHO_T}$ac_header_preproc" >&6
4799:
4800: # So? What about this header?
4801: case $ac_header_compiler:$ac_header_preproc in
4802: yes:no )
4803: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4804: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4805: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4806: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4807: (
4808: cat <<\_ASBOX
4809: ## ------------------------------------ ##
4810: ## Report this to bug-autoconf@gnu.org. ##
4811: ## ------------------------------------ ##
4812: _ASBOX
4813: ) |
4814: sed "s/^/$as_me: WARNING: /" >&2
4815: ;;
4816: no:yes )
4817: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4818: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4819: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4820: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4821: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4822: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4823: (
4824: cat <<\_ASBOX
4825: ## ------------------------------------ ##
4826: ## Report this to bug-autoconf@gnu.org. ##
4827: ## ------------------------------------ ##
4828: _ASBOX
4829: ) |
4830: sed "s/^/$as_me: WARNING: /" >&2
4831: ;;
4832: esac
4833: echo "$as_me:$LINENO: checking for $ac_header" >&5
4834: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4835: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4836: echo $ECHO_N "(cached) $ECHO_C" >&6
4837: else
4838: eval "$as_ac_Header=$ac_header_preproc"
4839: fi
4840: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4841: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4842:
4843: fi
4844: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4845: cat >>confdefs.h <<_ACEOF
4846: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4847: _ACEOF
4848:
4849: fi
4850:
4851: done
4852:
4853:
4854:
4855:
4856:
4857:
4858: # Only perform the check for file, if the check method requires it
4859: case $deplibs_check_method in
4860: file_magic*)
4861: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4862: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4863: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4864: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4865: echo $ECHO_N "(cached) $ECHO_C" >&6
4866: else
4867: case $MAGIC_CMD in
4868: /*)
4869: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4870: ;;
4871: ?:/*)
4872: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4873: ;;
4874: *)
4875: ac_save_MAGIC_CMD="$MAGIC_CMD"
4876: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4877: ac_dummy="/usr/bin:$PATH"
4878: for ac_dir in $ac_dummy; do
4879: test -z "$ac_dir" && ac_dir=.
4880: if test -f $ac_dir/${ac_tool_prefix}file; then
4881: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4882: if test -n "$file_magic_test_file"; then
4883: case $deplibs_check_method in
4884: "file_magic "*)
4885: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4886: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4887: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4888: egrep "$file_magic_regex" > /dev/null; then
4889: :
4890: else
4891: cat <<EOF 1>&2
4892:
4893: *** Warning: the command libtool uses to detect shared libraries,
4894: *** $file_magic_cmd, produces output that libtool cannot recognize.
4895: *** The result is that libtool may fail to recognize shared libraries
4896: *** as such. This will affect the creation of libtool libraries that
4897: *** depend on shared libraries, but programs linked with such libtool
4898: *** libraries will work regardless of this problem. Nevertheless, you
4899: *** may want to report the problem to your system manager and/or to
4900: *** bug-libtool@gnu.org
4901:
4902: EOF
4903: fi ;;
4904: esac
4905: fi
4906: break
4907: fi
4908: done
4909: IFS="$ac_save_ifs"
4910: MAGIC_CMD="$ac_save_MAGIC_CMD"
4911: ;;
4912: esac
4913: fi
4914:
4915: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4916: if test -n "$MAGIC_CMD"; then
4917: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4918: echo "${ECHO_T}$MAGIC_CMD" >&6
4919: else
4920: echo "$as_me:$LINENO: result: no" >&5
4921: echo "${ECHO_T}no" >&6
4922: fi
4923:
4924: if test -z "$lt_cv_path_MAGIC_CMD"; then
4925: if test -n "$ac_tool_prefix"; then
4926: echo "$as_me:$LINENO: checking for file" >&5
4927: echo $ECHO_N "checking for file... $ECHO_C" >&6
4928: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4929: echo $ECHO_N "(cached) $ECHO_C" >&6
4930: else
4931: case $MAGIC_CMD in
4932: /*)
4933: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4934: ;;
4935: ?:/*)
4936: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4937: ;;
4938: *)
4939: ac_save_MAGIC_CMD="$MAGIC_CMD"
4940: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4941: ac_dummy="/usr/bin:$PATH"
4942: for ac_dir in $ac_dummy; do
4943: test -z "$ac_dir" && ac_dir=.
4944: if test -f $ac_dir/file; then
4945: lt_cv_path_MAGIC_CMD="$ac_dir/file"
4946: if test -n "$file_magic_test_file"; then
4947: case $deplibs_check_method in
4948: "file_magic "*)
4949: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4950: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4951: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4952: egrep "$file_magic_regex" > /dev/null; then
4953: :
4954: else
4955: cat <<EOF 1>&2
4956:
4957: *** Warning: the command libtool uses to detect shared libraries,
4958: *** $file_magic_cmd, produces output that libtool cannot recognize.
4959: *** The result is that libtool may fail to recognize shared libraries
4960: *** as such. This will affect the creation of libtool libraries that
4961: *** depend on shared libraries, but programs linked with such libtool
4962: *** libraries will work regardless of this problem. Nevertheless, you
4963: *** may want to report the problem to your system manager and/or to
4964: *** bug-libtool@gnu.org
4965:
4966: EOF
4967: fi ;;
4968: esac
4969: fi
4970: break
4971: fi
4972: done
4973: IFS="$ac_save_ifs"
4974: MAGIC_CMD="$ac_save_MAGIC_CMD"
4975: ;;
4976: esac
4977: fi
4978:
4979: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4980: if test -n "$MAGIC_CMD"; then
4981: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4982: echo "${ECHO_T}$MAGIC_CMD" >&6
4983: else
4984: echo "$as_me:$LINENO: result: no" >&5
4985: echo "${ECHO_T}no" >&6
4986: fi
4987:
4988: else
4989: MAGIC_CMD=:
4990: fi
4991: fi
4992:
4993: fi
4994: ;;
4995: esac
4996:
4997: if test -n "$ac_tool_prefix"; then
4998: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4999: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5000: echo "$as_me:$LINENO: checking for $ac_word" >&5
5001: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5002: if test "${ac_cv_prog_RANLIB+set}" = set; then
5003: echo $ECHO_N "(cached) $ECHO_C" >&6
5004: else
5005: if test -n "$RANLIB"; then
5006: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5007: else
5008: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009: for as_dir in $PATH
5010: do
5011: IFS=$as_save_IFS
5012: test -z "$as_dir" && as_dir=.
5013: for ac_exec_ext in '' $ac_executable_extensions; do
5014: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5016: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017: break 2
5018: fi
5019: done
5020: done
5021:
5022: fi
5023: fi
5024: RANLIB=$ac_cv_prog_RANLIB
5025: if test -n "$RANLIB"; then
5026: echo "$as_me:$LINENO: result: $RANLIB" >&5
5027: echo "${ECHO_T}$RANLIB" >&6
5028: else
5029: echo "$as_me:$LINENO: result: no" >&5
5030: echo "${ECHO_T}no" >&6
5031: fi
5032:
5033: fi
5034: if test -z "$ac_cv_prog_RANLIB"; then
5035: ac_ct_RANLIB=$RANLIB
5036: # Extract the first word of "ranlib", so it can be a program name with args.
5037: set dummy ranlib; ac_word=$2
5038: echo "$as_me:$LINENO: checking for $ac_word" >&5
5039: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5040: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5041: echo $ECHO_N "(cached) $ECHO_C" >&6
5042: else
5043: if test -n "$ac_ct_RANLIB"; then
5044: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5045: else
5046: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047: for as_dir in $PATH
5048: do
5049: IFS=$as_save_IFS
5050: test -z "$as_dir" && as_dir=.
5051: for ac_exec_ext in '' $ac_executable_extensions; do
5052: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053: ac_cv_prog_ac_ct_RANLIB="ranlib"
5054: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5055: break 2
5056: fi
5057: done
5058: done
5059:
5060: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5061: fi
5062: fi
5063: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5064: if test -n "$ac_ct_RANLIB"; then
5065: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5066: echo "${ECHO_T}$ac_ct_RANLIB" >&6
5067: else
5068: echo "$as_me:$LINENO: result: no" >&5
5069: echo "${ECHO_T}no" >&6
5070: fi
5071:
5072: RANLIB=$ac_ct_RANLIB
5073: else
5074: RANLIB="$ac_cv_prog_RANLIB"
5075: fi
5076:
5077: if test -n "$ac_tool_prefix"; then
5078: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5079: set dummy ${ac_tool_prefix}strip; ac_word=$2
5080: echo "$as_me:$LINENO: checking for $ac_word" >&5
5081: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5082: if test "${ac_cv_prog_STRIP+set}" = set; then
5083: echo $ECHO_N "(cached) $ECHO_C" >&6
5084: else
5085: if test -n "$STRIP"; then
5086: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5087: else
5088: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089: for as_dir in $PATH
5090: do
5091: IFS=$as_save_IFS
5092: test -z "$as_dir" && as_dir=.
5093: for ac_exec_ext in '' $ac_executable_extensions; do
5094: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5095: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5096: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097: break 2
5098: fi
5099: done
5100: done
5101:
5102: fi
5103: fi
5104: STRIP=$ac_cv_prog_STRIP
5105: if test -n "$STRIP"; then
5106: echo "$as_me:$LINENO: result: $STRIP" >&5
5107: echo "${ECHO_T}$STRIP" >&6
5108: else
5109: echo "$as_me:$LINENO: result: no" >&5
5110: echo "${ECHO_T}no" >&6
5111: fi
5112:
5113: fi
5114: if test -z "$ac_cv_prog_STRIP"; then
5115: ac_ct_STRIP=$STRIP
5116: # Extract the first word of "strip", so it can be a program name with args.
5117: set dummy strip; ac_word=$2
5118: echo "$as_me:$LINENO: checking for $ac_word" >&5
5119: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5120: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5121: echo $ECHO_N "(cached) $ECHO_C" >&6
5122: else
5123: if test -n "$ac_ct_STRIP"; then
5124: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5125: else
5126: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127: for as_dir in $PATH
5128: do
5129: IFS=$as_save_IFS
5130: test -z "$as_dir" && as_dir=.
5131: for ac_exec_ext in '' $ac_executable_extensions; do
5132: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133: ac_cv_prog_ac_ct_STRIP="strip"
5134: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5135: break 2
5136: fi
5137: done
5138: done
5139:
5140: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5141: fi
5142: fi
5143: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5144: if test -n "$ac_ct_STRIP"; then
5145: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5146: echo "${ECHO_T}$ac_ct_STRIP" >&6
5147: else
5148: echo "$as_me:$LINENO: result: no" >&5
5149: echo "${ECHO_T}no" >&6
5150: fi
5151:
5152: STRIP=$ac_ct_STRIP
5153: else
5154: STRIP="$ac_cv_prog_STRIP"
5155: fi
5156:
5157:
5158: enable_dlopen=no
5159: enable_win32_dll=no
5160:
5161: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5162: if test "${enable_libtool_lock+set}" = set; then
5163: enableval="$enable_libtool_lock"
5164:
5165: fi;
5166: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5167:
5168: # Some flags need to be propagated to the compiler or linker for good
5169: # libtool support.
5170: case $host in
5171: *-*-irix6*)
5172: # Find out which ABI we are using.
1.15 ! paf 5173: echo '#line 5173 "configure"' > conftest.$ac_ext
1.11 paf 5174: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5175: (eval $ac_compile) 2>&5
5176: ac_status=$?
5177: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178: (exit $ac_status); }; then
5179: case `/usr/bin/file conftest.$ac_objext` in
5180: *32-bit*)
5181: LD="${LD-ld} -32"
5182: ;;
5183: *N32*)
5184: LD="${LD-ld} -n32"
5185: ;;
5186: *64-bit*)
5187: LD="${LD-ld} -64"
5188: ;;
5189: esac
5190: fi
5191: rm -rf conftest*
5192: ;;
5193:
5194: *-*-sco3.2v5*)
5195: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5196: SAVE_CFLAGS="$CFLAGS"
5197: CFLAGS="$CFLAGS -belf"
5198: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5199: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5200: if test "${lt_cv_cc_needs_belf+set}" = set; then
5201: echo $ECHO_N "(cached) $ECHO_C" >&6
5202: else
5203:
5204:
5205: ac_ext=c
5206: ac_cpp='$CPP $CPPFLAGS'
5207: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5208: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5209: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5210:
5211: cat >conftest.$ac_ext <<_ACEOF
5212: #line $LINENO "configure"
5213: /* confdefs.h. */
5214: _ACEOF
5215: cat confdefs.h >>conftest.$ac_ext
5216: cat >>conftest.$ac_ext <<_ACEOF
5217: /* end confdefs.h. */
5218:
5219: int
5220: main ()
5221: {
5222:
5223: ;
5224: return 0;
5225: }
5226: _ACEOF
5227: rm -f conftest.$ac_objext conftest$ac_exeext
5228: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5229: (eval $ac_link) 2>&5
5230: ac_status=$?
5231: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232: (exit $ac_status); } &&
5233: { ac_try='test -s conftest$ac_exeext'
5234: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235: (eval $ac_try) 2>&5
5236: ac_status=$?
5237: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238: (exit $ac_status); }; }; then
5239: lt_cv_cc_needs_belf=yes
5240: else
5241: echo "$as_me: failed program was:" >&5
5242: sed 's/^/| /' conftest.$ac_ext >&5
5243:
5244: lt_cv_cc_needs_belf=no
5245: fi
5246: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.15 ! paf 5247: ac_ext=c
! 5248: ac_cpp='$CPP $CPPFLAGS'
! 5249: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 5250: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 5251: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 paf 5252:
5253: fi
5254: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5255: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5256: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5257: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5258: CFLAGS="$SAVE_CFLAGS"
5259: fi
5260: ;;
5261:
5262:
5263: esac
5264:
5265: # Sed substitution that helps us do robust quoting. It backslashifies
5266: # metacharacters that are still active within double-quoted strings.
5267: Xsed='sed -e s/^X//'
5268: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5269:
5270: # Same as above, but do not quote variable references.
5271: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5272:
5273: # Sed substitution to delay expansion of an escaped shell variable in a
5274: # double_quote_subst'ed string.
5275: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5276:
5277: # Constants:
5278: rm="rm -f"
5279:
5280: # Global variables:
5281: default_ofile=libtool
5282: can_build_shared=yes
5283:
5284: # All known linkers require a `.a' archive for static linking (except M$VC,
5285: # which needs '.lib').
5286: libext=a
5287: ltmain="$ac_aux_dir/ltmain.sh"
5288: ofile="$default_ofile"
5289: with_gnu_ld="$lt_cv_prog_gnu_ld"
5290: need_locks="$enable_libtool_lock"
5291:
5292: old_CC="$CC"
5293: old_CFLAGS="$CFLAGS"
5294:
5295: # Set sane defaults for various variables
5296: test -z "$AR" && AR=ar
5297: test -z "$AR_FLAGS" && AR_FLAGS=cru
5298: test -z "$AS" && AS=as
5299: test -z "$CC" && CC=cc
5300: test -z "$DLLTOOL" && DLLTOOL=dlltool
5301: test -z "$LD" && LD=ld
5302: test -z "$LN_S" && LN_S="ln -s"
5303: test -z "$MAGIC_CMD" && MAGIC_CMD=file
5304: test -z "$NM" && NM=nm
5305: test -z "$OBJDUMP" && OBJDUMP=objdump
5306: test -z "$RANLIB" && RANLIB=:
5307: test -z "$STRIP" && STRIP=:
5308: test -z "$ac_objext" && ac_objext=o
5309:
5310: if test x"$host" != x"$build"; then
5311: ac_tool_prefix=${host_alias}-
5312: else
5313: ac_tool_prefix=
5314: fi
5315:
5316: # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5317: case $host_os in
5318: linux-gnu*) ;;
5319: linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5320: esac
5321:
5322: case $host_os in
5323: aix3*)
5324: # AIX sometimes has problems with the GCC collect2 program. For some
5325: # reason, if we set the COLLECT_NAMES environment variable, the problems
5326: # vanish in a puff of smoke.
5327: if test "X${COLLECT_NAMES+set}" != Xset; then
5328: COLLECT_NAMES=
5329: export COLLECT_NAMES
5330: fi
5331: ;;
5332: esac
5333:
5334: # Determine commands to create old-style static archives.
5335: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5336: old_postinstall_cmds='chmod 644 $oldlib'
5337: old_postuninstall_cmds=
5338:
5339: if test -n "$RANLIB"; then
5340: case $host_os in
5341: openbsd*)
5342: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5343: ;;
5344: *)
5345: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5346: ;;
5347: esac
5348: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5349: fi
5350:
5351: # Allow CC to be a program name with arguments.
5352: set dummy $CC
5353: compiler="$2"
5354:
5355: echo "$as_me:$LINENO: checking for objdir" >&5
5356: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5357: rm -f .libs 2>/dev/null
5358: mkdir .libs 2>/dev/null
5359: if test -d .libs; then
5360: objdir=.libs
5361: else
5362: # MS-DOS does not allow filenames that begin with a dot.
5363: objdir=_libs
5364: fi
5365: rmdir .libs 2>/dev/null
5366: echo "$as_me:$LINENO: result: $objdir" >&5
5367: echo "${ECHO_T}$objdir" >&6
5368:
5369:
5370:
5371: # Check whether --with-pic or --without-pic was given.
5372: if test "${with_pic+set}" = set; then
5373: withval="$with_pic"
5374: pic_mode="$withval"
5375: else
5376: pic_mode=default
5377: fi;
5378: test -z "$pic_mode" && pic_mode=default
5379:
5380: # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5381: # in isolation, and that seeing it set (from the cache) indicates that
5382: # the associated values are set (in the cache) correctly too.
5383: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5384: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5385: if test "${lt_cv_prog_cc_pic+set}" = set; then
5386: echo $ECHO_N "(cached) $ECHO_C" >&6
5387: else
5388: lt_cv_prog_cc_pic=
5389: lt_cv_prog_cc_shlib=
5390: lt_cv_prog_cc_wl=
5391: lt_cv_prog_cc_static=
5392: lt_cv_prog_cc_no_builtin=
5393: lt_cv_prog_cc_can_build_shared=$can_build_shared
5394:
5395: if test "$GCC" = yes; then
5396: lt_cv_prog_cc_wl='-Wl,'
5397: lt_cv_prog_cc_static='-static'
5398:
5399: case $host_os in
5400: aix*)
5401: # Below there is a dirty hack to force normal static linking with -ldl
5402: # The problem is because libdl dynamically linked with both libc and
5403: # libC (AIX C++ library), which obviously doesn't included in libraries
5404: # list by gcc. This cause undefined symbols with -static flags.
5405: # This hack allows C programs to be linked with "-static -ldl", but
5406: # not sure about C++ programs.
5407: lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5408: ;;
5409: amigaos*)
5410: # FIXME: we need at least 68020 code to build shared libraries, but
5411: # adding the `-m68020' flag to GCC prevents building anything better,
5412: # like `-m68040'.
5413: lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5414: ;;
5415: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5416: # PIC is the default for these OSes.
5417: ;;
5418: darwin* | rhapsody*)
5419: # PIC is the default on this platform
5420: # Common symbols not allowed in MH_DYLIB files
5421: lt_cv_prog_cc_pic='-fno-common'
5422: ;;
5423: cygwin* | mingw* | pw32* | os2*)
5424: # This hack is so that the source file can tell whether it is being
5425: # built for inclusion in a dll (and should export symbols for example).
5426: lt_cv_prog_cc_pic='-DDLL_EXPORT'
5427: ;;
5428: sysv4*MP*)
5429: if test -d /usr/nec; then
5430: lt_cv_prog_cc_pic=-Kconform_pic
5431: fi
5432: ;;
5433: *)
5434: lt_cv_prog_cc_pic='-fPIC'
5435: ;;
5436: esac
5437: else
5438: # PORTME Check for PIC flags for the system compiler.
5439: case $host_os in
5440: aix3* | aix4* | aix5*)
5441: lt_cv_prog_cc_wl='-Wl,'
5442: # All AIX code is PIC.
5443: if test "$host_cpu" = ia64; then
5444: # AIX 5 now supports IA64 processor
5445: lt_cv_prog_cc_static='-Bstatic'
5446: else
5447: lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5448: fi
5449: ;;
5450:
5451: hpux9* | hpux10* | hpux11*)
5452: # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5453: lt_cv_prog_cc_wl='-Wl,'
5454: lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5455: lt_cv_prog_cc_pic='+Z'
5456: ;;
5457:
5458: irix5* | irix6* | nonstopux*)
5459: lt_cv_prog_cc_wl='-Wl,'
5460: lt_cv_prog_cc_static='-non_shared'
5461: # PIC (with -KPIC) is the default.
5462: ;;
5463:
5464: cygwin* | mingw* | pw32* | os2*)
5465: # This hack is so that the source file can tell whether it is being
5466: # built for inclusion in a dll (and should export symbols for example).
5467: lt_cv_prog_cc_pic='-DDLL_EXPORT'
5468: ;;
5469:
5470: newsos6)
5471: lt_cv_prog_cc_pic='-KPIC'
5472: lt_cv_prog_cc_static='-Bstatic'
5473: ;;
5474:
5475: osf3* | osf4* | osf5*)
5476: # All OSF/1 code is PIC.
5477: lt_cv_prog_cc_wl='-Wl,'
5478: lt_cv_prog_cc_static='-non_shared'
5479: ;;
5480:
5481: sco3.2v5*)
5482: lt_cv_prog_cc_pic='-Kpic'
5483: lt_cv_prog_cc_static='-dn'
5484: lt_cv_prog_cc_shlib='-belf'
5485: ;;
5486:
5487: solaris*)
5488: lt_cv_prog_cc_pic='-KPIC'
5489: lt_cv_prog_cc_static='-Bstatic'
5490: lt_cv_prog_cc_wl='-Wl,'
5491: ;;
5492:
5493: sunos4*)
5494: lt_cv_prog_cc_pic='-PIC'
5495: lt_cv_prog_cc_static='-Bstatic'
5496: lt_cv_prog_cc_wl='-Qoption ld '
5497: ;;
5498:
5499: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5500: lt_cv_prog_cc_pic='-KPIC'
5501: lt_cv_prog_cc_static='-Bstatic'
5502: lt_cv_prog_cc_wl='-Wl,'
5503: ;;
5504:
5505: uts4*)
5506: lt_cv_prog_cc_pic='-pic'
5507: lt_cv_prog_cc_static='-Bstatic'
5508: ;;
5509:
5510: sysv4*MP*)
5511: if test -d /usr/nec ;then
5512: lt_cv_prog_cc_pic='-Kconform_pic'
5513: lt_cv_prog_cc_static='-Bstatic'
5514: fi
5515: ;;
5516:
5517: *)
5518: lt_cv_prog_cc_can_build_shared=no
5519: ;;
5520: esac
5521: fi
5522:
5523: fi
5524:
5525: if test -z "$lt_cv_prog_cc_pic"; then
5526: echo "$as_me:$LINENO: result: none" >&5
5527: echo "${ECHO_T}none" >&6
5528: else
5529: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5530: echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5531:
5532: # Check to make sure the pic_flag actually works.
5533: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5534: echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5535: if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5536: echo $ECHO_N "(cached) $ECHO_C" >&6
5537: else
5538: save_CFLAGS="$CFLAGS"
5539: CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5540: cat >conftest.$ac_ext <<_ACEOF
5541: #line $LINENO "configure"
5542: /* confdefs.h. */
5543: _ACEOF
5544: cat confdefs.h >>conftest.$ac_ext
5545: cat >>conftest.$ac_ext <<_ACEOF
5546: /* end confdefs.h. */
5547:
5548: int
5549: main ()
5550: {
5551:
5552: ;
5553: return 0;
5554: }
5555: _ACEOF
5556: rm -f conftest.$ac_objext
5557: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558: (eval $ac_compile) 2>&5
5559: ac_status=$?
5560: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561: (exit $ac_status); } &&
5562: { ac_try='test -s conftest.$ac_objext'
5563: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564: (eval $ac_try) 2>&5
5565: ac_status=$?
5566: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567: (exit $ac_status); }; }; then
5568: case $host_os in
5569: hpux9* | hpux10* | hpux11*)
5570: # On HP-UX, both CC and GCC only warn that PIC is supported... then
5571: # they create non-PIC objects. So, if there were any warnings, we
5572: # assume that PIC is not supported.
5573: if test -s conftest.err; then
5574: lt_cv_prog_cc_pic_works=no
5575: else
5576: lt_cv_prog_cc_pic_works=yes
5577: fi
5578: ;;
5579: *)
5580: lt_cv_prog_cc_pic_works=yes
5581: ;;
5582: esac
5583:
5584: else
5585: echo "$as_me: failed program was:" >&5
5586: sed 's/^/| /' conftest.$ac_ext >&5
5587:
5588: lt_cv_prog_cc_pic_works=no
5589:
5590: fi
5591: rm -f conftest.$ac_objext conftest.$ac_ext
5592: CFLAGS="$save_CFLAGS"
5593:
5594: fi
5595:
5596:
5597: if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5598: lt_cv_prog_cc_pic=
5599: lt_cv_prog_cc_can_build_shared=no
5600: else
5601: lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5602: fi
5603:
5604: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5605: echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5606: fi
5607:
5608: # Check for any special shared library compilation flags.
5609: if test -n "$lt_cv_prog_cc_shlib"; then
5610: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5611: echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5612: if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5613: else
5614: { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5615: echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5616: lt_cv_prog_cc_can_build_shared=no
5617: fi
5618: fi
5619:
5620: echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5621: echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5622: if test "${lt_cv_prog_cc_static_works+set}" = set; then
5623: echo $ECHO_N "(cached) $ECHO_C" >&6
5624: else
5625: lt_cv_prog_cc_static_works=no
5626: save_LDFLAGS="$LDFLAGS"
5627: LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5628: cat >conftest.$ac_ext <<_ACEOF
5629: #line $LINENO "configure"
5630: /* confdefs.h. */
5631: _ACEOF
5632: cat confdefs.h >>conftest.$ac_ext
5633: cat >>conftest.$ac_ext <<_ACEOF
5634: /* end confdefs.h. */
5635:
5636: int
5637: main ()
5638: {
5639:
5640: ;
5641: return 0;
5642: }
5643: _ACEOF
5644: rm -f conftest.$ac_objext conftest$ac_exeext
5645: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5646: (eval $ac_link) 2>&5
5647: ac_status=$?
5648: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649: (exit $ac_status); } &&
5650: { ac_try='test -s conftest$ac_exeext'
5651: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652: (eval $ac_try) 2>&5
5653: ac_status=$?
5654: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655: (exit $ac_status); }; }; then
5656: lt_cv_prog_cc_static_works=yes
5657: else
5658: echo "$as_me: failed program was:" >&5
5659: sed 's/^/| /' conftest.$ac_ext >&5
5660:
5661: fi
5662: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5663: LDFLAGS="$save_LDFLAGS"
5664:
5665: fi
5666:
5667:
5668: # Belt *and* braces to stop my trousers falling down:
5669: test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5670: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5671: echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5672:
5673: pic_flag="$lt_cv_prog_cc_pic"
5674: special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5675: wl="$lt_cv_prog_cc_wl"
5676: link_static_flag="$lt_cv_prog_cc_static"
5677: no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5678: can_build_shared="$lt_cv_prog_cc_can_build_shared"
5679:
5680:
5681: # Check to see if options -o and -c are simultaneously supported by compiler
5682: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5683: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5684: if test "${lt_cv_compiler_c_o+set}" = set; then
5685: echo $ECHO_N "(cached) $ECHO_C" >&6
5686: else
5687:
5688: $rm -r conftest 2>/dev/null
5689: mkdir conftest
5690: cd conftest
5691: echo "int some_variable = 0;" > conftest.$ac_ext
5692: mkdir out
5693: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5694: # that will create temporary files in the current directory regardless of
5695: # the output directory. Thus, making CWD read-only will cause this test
5696: # to fail, enabling locking or at least warning the user not to do parallel
5697: # builds.
5698: chmod -w .
5699: save_CFLAGS="$CFLAGS"
5700: CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5701: compiler_c_o=no
1.15 ! paf 5702: if { (eval echo configure:5702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
1.11 paf 5703: # The compiler can only warn and ignore the option if not recognized
5704: # So say no if there are warnings
5705: if test -s out/conftest.err; then
5706: lt_cv_compiler_c_o=no
5707: else
5708: lt_cv_compiler_c_o=yes
5709: fi
5710: else
5711: # Append any errors to the config.log.
5712: cat out/conftest.err 1>&5
5713: lt_cv_compiler_c_o=no
5714: fi
5715: CFLAGS="$save_CFLAGS"
5716: chmod u+w .
5717: $rm conftest* out/*
5718: rmdir out
5719: cd ..
5720: rmdir conftest
5721: $rm -r conftest 2>/dev/null
5722:
5723: fi
5724:
5725: compiler_c_o=$lt_cv_compiler_c_o
5726: echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5727: echo "${ECHO_T}$compiler_c_o" >&6
5728:
5729: if test x"$compiler_c_o" = x"yes"; then
5730: # Check to see if we can write to a .lo
5731: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5732: echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5733: if test "${lt_cv_compiler_o_lo+set}" = set; then
5734: echo $ECHO_N "(cached) $ECHO_C" >&6
5735: else
5736:
5737: lt_cv_compiler_o_lo=no
5738: save_CFLAGS="$CFLAGS"
5739: CFLAGS="$CFLAGS -c -o conftest.lo"
5740: save_objext="$ac_objext"
5741: ac_objext=lo
5742: cat >conftest.$ac_ext <<_ACEOF
5743: #line $LINENO "configure"
5744: /* confdefs.h. */
5745: _ACEOF
5746: cat confdefs.h >>conftest.$ac_ext
5747: cat >>conftest.$ac_ext <<_ACEOF
5748: /* end confdefs.h. */
5749:
5750: int
5751: main ()
5752: {
5753: int some_variable = 0;
5754: ;
5755: return 0;
5756: }
5757: _ACEOF
5758: rm -f conftest.$ac_objext
5759: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760: (eval $ac_compile) 2>&5
5761: ac_status=$?
5762: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763: (exit $ac_status); } &&
5764: { ac_try='test -s conftest.$ac_objext'
5765: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766: (eval $ac_try) 2>&5
5767: ac_status=$?
5768: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769: (exit $ac_status); }; }; then
5770: # The compiler can only warn and ignore the option if not recognized
5771: # So say no if there are warnings
5772: if test -s conftest.err; then
5773: lt_cv_compiler_o_lo=no
5774: else
5775: lt_cv_compiler_o_lo=yes
5776: fi
5777:
5778: else
5779: echo "$as_me: failed program was:" >&5
5780: sed 's/^/| /' conftest.$ac_ext >&5
5781:
5782: fi
5783: rm -f conftest.$ac_objext conftest.$ac_ext
5784: ac_objext="$save_objext"
5785: CFLAGS="$save_CFLAGS"
5786:
5787: fi
5788:
5789: compiler_o_lo=$lt_cv_compiler_o_lo
5790: echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5791: echo "${ECHO_T}$compiler_o_lo" >&6
5792: else
5793: compiler_o_lo=no
5794: fi
5795:
5796: # Check to see if we can do hard links to lock some files if needed
5797: hard_links="nottested"
5798: if test "$compiler_c_o" = no && test "$need_locks" != no; then
5799: # do not overwrite the value of need_locks provided by the user
5800: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5801: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5802: hard_links=yes
5803: $rm conftest*
5804: ln conftest.a conftest.b 2>/dev/null && hard_links=no
5805: touch conftest.a
5806: ln conftest.a conftest.b 2>&5 || hard_links=no
5807: ln conftest.a conftest.b 2>/dev/null && hard_links=no
5808: echo "$as_me:$LINENO: result: $hard_links" >&5
5809: echo "${ECHO_T}$hard_links" >&6
5810: if test "$hard_links" = no; then
5811: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5812: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5813: need_locks=warn
5814: fi
5815: else
5816: need_locks=no
5817: fi
5818:
5819: if test "$GCC" = yes; then
5820: # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5821: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5822: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5823: echo "int some_variable = 0;" > conftest.$ac_ext
5824: save_CFLAGS="$CFLAGS"
5825: CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5826: compiler_rtti_exceptions=no
5827: cat >conftest.$ac_ext <<_ACEOF
5828: #line $LINENO "configure"
5829: /* confdefs.h. */
5830: _ACEOF
5831: cat confdefs.h >>conftest.$ac_ext
5832: cat >>conftest.$ac_ext <<_ACEOF
5833: /* end confdefs.h. */
5834:
5835: int
5836: main ()
5837: {
5838: int some_variable = 0;
5839: ;
5840: return 0;
5841: }
5842: _ACEOF
5843: rm -f conftest.$ac_objext
5844: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5845: (eval $ac_compile) 2>&5
5846: ac_status=$?
5847: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848: (exit $ac_status); } &&
5849: { ac_try='test -s conftest.$ac_objext'
5850: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851: (eval $ac_try) 2>&5
5852: ac_status=$?
5853: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854: (exit $ac_status); }; }; then
5855: # The compiler can only warn and ignore the option if not recognized
5856: # So say no if there are warnings
5857: if test -s conftest.err; then
5858: compiler_rtti_exceptions=no
5859: else
5860: compiler_rtti_exceptions=yes
5861: fi
5862:
5863: else
5864: echo "$as_me: failed program was:" >&5
5865: sed 's/^/| /' conftest.$ac_ext >&5
5866:
5867: fi
5868: rm -f conftest.$ac_objext conftest.$ac_ext
5869: CFLAGS="$save_CFLAGS"
5870: echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5871: echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5872:
5873: if test "$compiler_rtti_exceptions" = "yes"; then
5874: no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5875: else
5876: no_builtin_flag=' -fno-builtin'
5877: fi
5878: fi
5879:
5880: # See if the linker supports building shared libraries.
5881: echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5882: echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5883:
5884: allow_undefined_flag=
5885: no_undefined_flag=
5886: need_lib_prefix=unknown
5887: need_version=unknown
5888: # when you set need_version to no, make sure it does not cause -set_version
5889: # flags to be left without arguments
5890: archive_cmds=
5891: archive_expsym_cmds=
5892: old_archive_from_new_cmds=
5893: old_archive_from_expsyms_cmds=
5894: export_dynamic_flag_spec=
5895: whole_archive_flag_spec=
5896: thread_safe_flag_spec=
5897: hardcode_into_libs=no
5898: hardcode_libdir_flag_spec=
5899: hardcode_libdir_separator=
5900: hardcode_direct=no
5901: hardcode_minus_L=no
5902: hardcode_shlibpath_var=unsupported
5903: runpath_var=
5904: link_all_deplibs=unknown
5905: always_export_symbols=no
5906: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5907: # include_expsyms should be a list of space-separated symbols to be *always*
5908: # included in the symbol list
5909: include_expsyms=
5910: # exclude_expsyms can be an egrep regular expression of symbols to exclude
5911: # it will be wrapped by ` (' and `)$', so one must not match beginning or
5912: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5913: # as well as any symbol that contains `d'.
5914: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5915: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5916: # platforms (ab)use it in PIC code, but their linkers get confused if
5917: # the symbol is explicitly referenced. Since portable code cannot
5918: # rely on this symbol name, it's probably fine to never include it in
5919: # preloaded symbol tables.
5920: extract_expsyms_cmds=
5921:
5922: case $host_os in
5923: cygwin* | mingw* | pw32*)
5924: # FIXME: the MSVC++ port hasn't been tested in a loooong time
5925: # When not using gcc, we currently assume that we are using
5926: # Microsoft Visual C++.
5927: if test "$GCC" != yes; then
5928: with_gnu_ld=no
5929: fi
5930: ;;
5931: openbsd*)
5932: with_gnu_ld=no
5933: ;;
5934: esac
5935:
5936: ld_shlibs=yes
5937: if test "$with_gnu_ld" = yes; then
5938: # If archive_cmds runs LD, not CC, wlarc should be empty
5939: wlarc='${wl}'
5940:
5941: # See if GNU ld supports shared libraries.
5942: case $host_os in
5943: aix3* | aix4* | aix5*)
5944: # On AIX, the GNU linker is very broken
5945: # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5946: ld_shlibs=no
5947: cat <<EOF 1>&2
5948:
5949: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5950: *** to be unable to reliably create shared libraries on AIX.
5951: *** Therefore, libtool is disabling shared libraries support. If you
5952: *** really care for shared libraries, you may want to modify your PATH
5953: *** so that a non-GNU linker is found, and then restart.
5954:
5955: EOF
5956: ;;
5957:
5958: amigaos*)
5959: archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5960: hardcode_libdir_flag_spec='-L$libdir'
5961: hardcode_minus_L=yes
5962:
5963: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5964: # that the semantics of dynamic libraries on AmigaOS, at least up
5965: # to version 4, is to share data among multiple programs linked
5966: # with the same dynamic library. Since this doesn't match the
5967: # behavior of shared libraries on other platforms, we can use
5968: # them.
5969: ld_shlibs=no
5970: ;;
5971:
5972: beos*)
5973: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5974: allow_undefined_flag=unsupported
5975: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5976: # support --undefined. This deserves some investigation. FIXME
5977: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5978: else
5979: ld_shlibs=no
5980: fi
5981: ;;
5982:
5983: cygwin* | mingw* | pw32*)
5984: # hardcode_libdir_flag_spec is actually meaningless, as there is
5985: # no search path for DLLs.
5986: hardcode_libdir_flag_spec='-L$libdir'
5987: allow_undefined_flag=unsupported
5988: always_export_symbols=yes
5989:
5990: extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5991: sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5992: test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5993: if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5994: else $CC -o impgen impgen.c ; fi)~
5995: $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5996:
5997: old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5998:
5999: # cygwin and mingw dlls have different entry points and sets of symbols
6000: # to exclude.
6001: # FIXME: what about values for MSVC?
6002: dll_entry=__cygwin_dll_entry@12
6003: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6004: case $host_os in
6005: mingw*)
6006: # mingw values
6007: dll_entry=_DllMainCRTStartup@12
6008: dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6009: ;;
6010: esac
6011:
6012: # mingw and cygwin differ, and it's simplest to just exclude the union
6013: # of the two symbol sets.
6014: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6015:
6016: # recent cygwin and mingw systems supply a stub DllMain which the user
6017: # can override, but on older systems we have to supply one (in ltdll.c)
6018: if test "x$lt_cv_need_dllmain" = "xyes"; then
6019: ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6020: ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6021: test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6022: else
6023: ltdll_obj=
6024: ltdll_cmds=
6025: fi
6026:
6027: # Extract the symbol export list from an `--export-all' def file,
6028: # then regenerate the def file from the symbol export list, so that
6029: # the compiled dll only exports the symbol export list.
6030: # Be careful not to strip the DATA tag left be newer dlltools.
6031: export_symbols_cmds="$ltdll_cmds"'
6032: $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6033: sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6034:
6035: # If the export-symbols file already is a .def file (1st line
6036: # is EXPORTS), use it as is.
6037: # If DATA tags from a recent dlltool are present, honour them!
6038: archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6039: cp $export_symbols $output_objdir/$soname-def;
6040: else
6041: echo EXPORTS > $output_objdir/$soname-def;
6042: _lt_hint=1;
6043: cat $export_symbols | while read symbol; do
6044: set dummy \$symbol;
6045: case \$# in
6046: 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6047: 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6048: *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6049: esac;
6050: _lt_hint=`expr 1 + \$_lt_hint`;
6051: done;
6052: fi~
6053: '"$ltdll_cmds"'
6054: $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6055: $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6056: $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6057: $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6058: $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6059: ;;
6060:
6061: netbsd*)
6062: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6063: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6064: wlarc=
6065: else
6066: archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6067: archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6068: fi
6069: ;;
6070:
6071: solaris* | sysv5*)
6072: if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6073: ld_shlibs=no
6074: cat <<EOF 1>&2
6075:
6076: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6077: *** create shared libraries on Solaris systems. Therefore, libtool
6078: *** is disabling shared libraries support. We urge you to upgrade GNU
6079: *** binutils to release 2.9.1 or newer. Another option is to modify
6080: *** your PATH or compiler configuration so that the native linker is
6081: *** used, and then restart.
6082:
6083: EOF
6084: elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6085: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6086: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6087: else
6088: ld_shlibs=no
6089: fi
6090: ;;
6091:
6092: sunos4*)
6093: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6094: wlarc=
6095: hardcode_direct=yes
6096: hardcode_shlibpath_var=no
6097: ;;
6098:
6099: *)
6100: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6101: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6102: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6103: else
6104: ld_shlibs=no
6105: fi
6106: ;;
6107: esac
6108:
6109: if test "$ld_shlibs" = yes; then
6110: runpath_var=LD_RUN_PATH
6111: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6112: export_dynamic_flag_spec='${wl}--export-dynamic'
6113: case $host_os in
6114: cygwin* | mingw* | pw32*)
6115: # dlltool doesn't understand --whole-archive et. al.
6116: whole_archive_flag_spec=
6117: ;;
6118: *)
6119: # ancient GNU ld didn't support --whole-archive et. al.
6120: if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6121: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6122: else
6123: whole_archive_flag_spec=
6124: fi
6125: ;;
6126: esac
6127: fi
6128: else
6129: # PORTME fill in a description of your system's linker (not GNU ld)
6130: case $host_os in
6131: aix3*)
6132: allow_undefined_flag=unsupported
6133: always_export_symbols=yes
6134: archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6135: # Note: this linker hardcodes the directories in LIBPATH if there
6136: # are no directories specified by -L.
6137: hardcode_minus_L=yes
6138: if test "$GCC" = yes && test -z "$link_static_flag"; then
6139: # Neither direct hardcoding nor static linking is supported with a
6140: # broken collect2.
6141: hardcode_direct=unsupported
6142: fi
6143: ;;
6144:
6145: aix4* | aix5*)
6146: if test "$host_cpu" = ia64; then
6147: # On IA64, the linker does run time linking by default, so we don't
6148: # have to do anything special.
6149: aix_use_runtimelinking=no
6150: exp_sym_flag='-Bexport'
6151: no_entry_flag=""
6152: else
6153: aix_use_runtimelinking=no
6154:
6155: # Test if we are trying to use run time linking or normal
6156: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6157: # need to do runtime linking.
6158: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6159: for ld_flag in $LDFLAGS; do
6160: case $ld_flag in
6161: *-brtl*)
6162: aix_use_runtimelinking=yes
6163: break
6164: ;;
6165: esac
6166: done
6167: esac
6168:
6169: exp_sym_flag='-bexport'
6170: no_entry_flag='-bnoentry'
6171: fi
6172:
6173: # When large executables or shared objects are built, AIX ld can
6174: # have problems creating the table of contents. If linking a library
6175: # or program results in "error TOC overflow" add -mminimal-toc to
6176: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6177: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6178:
6179: hardcode_direct=yes
6180: archive_cmds=''
6181: hardcode_libdir_separator=':'
6182: if test "$GCC" = yes; then
6183: case $host_os in aix4.[012]|aix4.[012].*)
6184: collect2name=`${CC} -print-prog-name=collect2`
6185: if test -f "$collect2name" && \
6186: strings "$collect2name" | grep resolve_lib_name >/dev/null
6187: then
6188: # We have reworked collect2
6189: hardcode_direct=yes
6190: else
6191: # We have old collect2
6192: hardcode_direct=unsupported
6193: # It fails to find uninstalled libraries when the uninstalled
6194: # path is not listed in the libpath. Setting hardcode_minus_L
6195: # to unsupported forces relinking
6196: hardcode_minus_L=yes
6197: hardcode_libdir_flag_spec='-L$libdir'
6198: hardcode_libdir_separator=
6199: fi
6200: esac
6201:
6202: shared_flag='-shared'
6203: else
6204: # not using gcc
6205: if test "$host_cpu" = ia64; then
6206: shared_flag='${wl}-G'
6207: else
6208: if test "$aix_use_runtimelinking" = yes; then
6209: shared_flag='${wl}-G'
6210: else
6211: shared_flag='${wl}-bM:SRE'
6212: fi
6213: fi
6214: fi
6215:
6216: # It seems that -bexpall can do strange things, so it is better to
6217: # generate a list of symbols to export.
6218: always_export_symbols=yes
6219: if test "$aix_use_runtimelinking" = yes; then
6220: # Warning - without using the other runtime loading flags (-brtl),
6221: # -berok will link without error, but may produce a broken library.
6222: allow_undefined_flag='-berok'
6223: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6224: archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6225: else
6226: if test "$host_cpu" = ia64; then
6227: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6228: allow_undefined_flag="-z nodefs"
6229: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6230: else
6231: hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6232: # Warning - without using the other run time loading flags,
6233: # -berok will link without error, but may produce a broken library.
6234: allow_undefined_flag='${wl}-berok'
6235: # This is a bit strange, but is similar to how AIX traditionally builds
6236: # it's shared libraries.
6237: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6238: fi
6239: fi
6240: ;;
6241:
6242: amigaos*)
6243: archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6244: hardcode_libdir_flag_spec='-L$libdir'
6245: hardcode_minus_L=yes
6246: # see comment about different semantics on the GNU ld section
6247: ld_shlibs=no
6248: ;;
6249:
6250: cygwin* | mingw* | pw32*)
6251: # When not using gcc, we currently assume that we are using
6252: # Microsoft Visual C++.
6253: # hardcode_libdir_flag_spec is actually meaningless, as there is
6254: # no search path for DLLs.
6255: hardcode_libdir_flag_spec=' '
6256: allow_undefined_flag=unsupported
6257: # Tell ltmain to make .lib files, not .a files.
6258: libext=lib
6259: # FIXME: Setting linknames here is a bad hack.
6260: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6261: # The linker will automatically build a .lib file if we build a DLL.
6262: old_archive_from_new_cmds='true'
6263: # FIXME: Should let the user specify the lib program.
6264: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6265: fix_srcfile_path='`cygpath -w "$srcfile"`'
6266: ;;
6267:
6268: darwin* | rhapsody*)
6269: case "$host_os" in
6270: rhapsody* | darwin1.[012])
6271: allow_undefined_flag='-undefined suppress'
6272: ;;
6273: *) # Darwin 1.3 on
6274: allow_undefined_flag='-flat_namespace -undefined suppress'
6275: ;;
6276: esac
6277: # FIXME: Relying on posixy $() will cause problems for
6278: # cross-compilation, but unfortunately the echo tests do not
6279: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6280: # `"' quotes if we put them in here... so don't!
6281: archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6282: # We need to add '_' to the symbols in $export_symbols first
6283: #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6284: hardcode_direct=yes
6285: hardcode_shlibpath_var=no
6286: whole_archive_flag_spec='-all_load $convenience'
6287: ;;
6288:
6289: freebsd1*)
6290: ld_shlibs=no
6291: ;;
6292:
6293: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6294: # support. Future versions do this automatically, but an explicit c++rt0.o
6295: # does not break anything, and helps significantly (at the cost of a little
6296: # extra space).
6297: freebsd2.2*)
6298: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6299: hardcode_libdir_flag_spec='-R$libdir'
6300: hardcode_direct=yes
6301: hardcode_shlibpath_var=no
6302: ;;
6303:
6304: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6305: freebsd2*)
6306: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6307: hardcode_direct=yes
6308: hardcode_minus_L=yes
6309: hardcode_shlibpath_var=no
6310: ;;
6311:
6312: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6313: freebsd*)
6314: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6315: hardcode_libdir_flag_spec='-R$libdir'
6316: hardcode_direct=yes
6317: hardcode_shlibpath_var=no
6318: ;;
6319:
6320: hpux9* | hpux10* | hpux11*)
6321: case $host_os in
6322: hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6323: *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6324: esac
6325: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6326: hardcode_libdir_separator=:
6327: hardcode_direct=yes
6328: hardcode_minus_L=yes # Not in the search PATH, but as the default
6329: # location of the library.
6330: export_dynamic_flag_spec='${wl}-E'
6331: ;;
6332:
6333: irix5* | irix6* | nonstopux*)
6334: if test "$GCC" = yes; then
6335: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6336: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6337: else
6338: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6339: hardcode_libdir_flag_spec='-rpath $libdir'
6340: fi
6341: hardcode_libdir_separator=:
6342: link_all_deplibs=yes
6343: ;;
6344:
6345: netbsd*)
6346: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6347: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6348: else
6349: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6350: fi
6351: hardcode_libdir_flag_spec='-R$libdir'
6352: hardcode_direct=yes
6353: hardcode_shlibpath_var=no
6354: ;;
6355:
6356: newsos6)
6357: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6358: hardcode_direct=yes
6359: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6360: hardcode_libdir_separator=:
6361: hardcode_shlibpath_var=no
6362: ;;
6363:
6364: openbsd*)
6365: hardcode_direct=yes
6366: hardcode_shlibpath_var=no
6367: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6368: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6369: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6370: export_dynamic_flag_spec='${wl}-E'
6371: else
6372: case "$host_os" in
6373: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6374: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6375: hardcode_libdir_flag_spec='-R$libdir'
6376: ;;
6377: *)
6378: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6379: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6380: ;;
6381: esac
6382: fi
6383: ;;
6384:
6385: os2*)
6386: hardcode_libdir_flag_spec='-L$libdir'
6387: hardcode_minus_L=yes
6388: allow_undefined_flag=unsupported
6389: archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6390: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6391: ;;
6392:
6393: osf3*)
6394: if test "$GCC" = yes; then
6395: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6396: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6397: else
6398: allow_undefined_flag=' -expect_unresolved \*'
6399: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6400: fi
6401: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6402: hardcode_libdir_separator=:
6403: ;;
6404:
6405: osf4* | osf5*) # as osf3* with the addition of -msym flag
6406: if test "$GCC" = yes; then
6407: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6408: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6409: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6410: else
6411: allow_undefined_flag=' -expect_unresolved \*'
6412: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6413: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6414: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6415:
6416: #Both c and cxx compiler support -rpath directly
6417: hardcode_libdir_flag_spec='-rpath $libdir'
6418: fi
6419: hardcode_libdir_separator=:
6420: ;;
6421:
6422: sco3.2v5*)
6423: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6424: hardcode_shlibpath_var=no
6425: runpath_var=LD_RUN_PATH
6426: hardcode_runpath_var=yes
6427: export_dynamic_flag_spec='${wl}-Bexport'
6428: ;;
6429:
6430: solaris*)
6431: # gcc --version < 3.0 without binutils cannot create self contained
6432: # shared libraries reliably, requiring libgcc.a to resolve some of
6433: # the object symbols generated in some cases. Libraries that use
6434: # assert need libgcc.a to resolve __eprintf, for example. Linking
6435: # a copy of libgcc.a into every shared library to guarantee resolving
6436: # such symbols causes other problems: According to Tim Van Holder
6437: # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6438: # (to the application) exception stack for one thing.
6439: no_undefined_flag=' -z defs'
6440: if test "$GCC" = yes; then
6441: case `$CC --version 2>/dev/null` in
6442: [12].*)
6443: cat <<EOF 1>&2
6444:
6445: *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6446: *** create self contained shared libraries on Solaris systems, without
6447: *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6448: *** -no-undefined support, which will at least allow you to build shared
6449: *** libraries. However, you may find that when you link such libraries
6450: *** into an application without using GCC, you have to manually add
6451: *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6452: *** upgrade to a newer version of GCC. Another option is to rebuild your
6453: *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6454:
6455: EOF
6456: no_undefined_flag=
6457: ;;
6458: esac
6459: fi
6460: # $CC -shared without GNU ld will not create a library from C++
6461: # object files and a static libstdc++, better avoid it by now
6462: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6463: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6464: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6465: hardcode_libdir_flag_spec='-R$libdir'
6466: hardcode_shlibpath_var=no
6467: case $host_os in
6468: solaris2.[0-5] | solaris2.[0-5].*) ;;
6469: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6470: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6471: esac
6472: link_all_deplibs=yes
6473: ;;
6474:
6475: sunos4*)
6476: if test "x$host_vendor" = xsequent; then
6477: # Use $CC to link under sequent, because it throws in some extra .o
6478: # files that make .init and .fini sections work.
6479: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6480: else
6481: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6482: fi
6483: hardcode_libdir_flag_spec='-L$libdir'
6484: hardcode_direct=yes
6485: hardcode_minus_L=yes
6486: hardcode_shlibpath_var=no
6487: ;;
6488:
6489: sysv4)
6490: case $host_vendor in
6491: sni)
6492: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6493: hardcode_direct=yes # is this really true???
6494: ;;
6495: siemens)
6496: ## LD is ld it makes a PLAMLIB
6497: ## CC just makes a GrossModule.
6498: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6499: reload_cmds='$CC -r -o $output$reload_objs'
6500: hardcode_direct=no
6501: ;;
6502: motorola)
6503: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6504: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6505: ;;
6506: esac
6507: runpath_var='LD_RUN_PATH'
6508: hardcode_shlibpath_var=no
6509: ;;
6510:
6511: sysv4.3*)
6512: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6513: hardcode_shlibpath_var=no
6514: export_dynamic_flag_spec='-Bexport'
6515: ;;
6516:
6517: sysv5*)
6518: no_undefined_flag=' -z text'
6519: # $CC -shared without GNU ld will not create a library from C++
6520: # object files and a static libstdc++, better avoid it by now
6521: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6522: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6523: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6524: hardcode_libdir_flag_spec=
6525: hardcode_shlibpath_var=no
6526: runpath_var='LD_RUN_PATH'
6527: ;;
6528:
6529: uts4*)
6530: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6531: hardcode_libdir_flag_spec='-L$libdir'
6532: hardcode_shlibpath_var=no
6533: ;;
6534:
6535: dgux*)
6536: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6537: hardcode_libdir_flag_spec='-L$libdir'
6538: hardcode_shlibpath_var=no
6539: ;;
6540:
6541: sysv4*MP*)
6542: if test -d /usr/nec; then
6543: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6544: hardcode_shlibpath_var=no
6545: runpath_var=LD_RUN_PATH
6546: hardcode_runpath_var=yes
6547: ld_shlibs=yes
6548: fi
6549: ;;
6550:
6551: sysv4.2uw2*)
6552: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6553: hardcode_direct=yes
6554: hardcode_minus_L=no
6555: hardcode_shlibpath_var=no
6556: hardcode_runpath_var=yes
6557: runpath_var=LD_RUN_PATH
6558: ;;
6559:
6560: sysv5uw7* | unixware7*)
6561: no_undefined_flag='${wl}-z ${wl}text'
6562: if test "$GCC" = yes; then
6563: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6564: else
6565: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6566: fi
6567: runpath_var='LD_RUN_PATH'
6568: hardcode_shlibpath_var=no
6569: ;;
6570:
6571: *)
6572: ld_shlibs=no
6573: ;;
6574: esac
6575: fi
6576: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6577: echo "${ECHO_T}$ld_shlibs" >&6
6578: test "$ld_shlibs" = no && can_build_shared=no
6579:
6580: # Check hardcoding attributes.
6581: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6582: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6583: hardcode_action=
6584: if test -n "$hardcode_libdir_flag_spec" || \
6585: test -n "$runpath_var"; then
6586:
6587: # We can hardcode non-existant directories.
6588: if test "$hardcode_direct" != no &&
6589: # If the only mechanism to avoid hardcoding is shlibpath_var, we
6590: # have to relink, otherwise we might link with an installed library
6591: # when we should be linking with a yet-to-be-installed one
6592: ## test "$hardcode_shlibpath_var" != no &&
6593: test "$hardcode_minus_L" != no; then
6594: # Linking always hardcodes the temporary library directory.
6595: hardcode_action=relink
6596: else
6597: # We can link without hardcoding, and we can hardcode nonexisting dirs.
6598: hardcode_action=immediate
6599: fi
6600: else
6601: # We cannot hardcode anything, or else we can only hardcode existing
6602: # directories.
6603: hardcode_action=unsupported
6604: fi
6605: echo "$as_me:$LINENO: result: $hardcode_action" >&5
6606: echo "${ECHO_T}$hardcode_action" >&6
6607:
6608: striplib=
6609: old_striplib=
6610: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6611: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6612: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6613: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6614: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6615: echo "$as_me:$LINENO: result: yes" >&5
6616: echo "${ECHO_T}yes" >&6
6617: else
6618: echo "$as_me:$LINENO: result: no" >&5
6619: echo "${ECHO_T}no" >&6
6620: fi
6621:
6622: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6623: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6624:
6625: # PORTME Fill in your ld.so characteristics
6626: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6627: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6628: library_names_spec=
6629: libname_spec='lib$name'
6630: soname_spec=
6631: postinstall_cmds=
6632: postuninstall_cmds=
6633: finish_cmds=
6634: finish_eval=
6635: shlibpath_var=
6636: shlibpath_overrides_runpath=unknown
6637: version_type=none
6638: dynamic_linker="$host_os ld.so"
6639: sys_lib_dlsearch_path_spec="/lib /usr/lib"
6640: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6641:
6642: case $host_os in
6643: aix3*)
6644: version_type=linux
6645: library_names_spec='${libname}${release}.so$versuffix $libname.a'
6646: shlibpath_var=LIBPATH
6647:
6648: # AIX has no versioning support, so we append a major version to the name.
6649: soname_spec='${libname}${release}.so$major'
6650: ;;
6651:
6652: aix4* | aix5*)
6653: version_type=linux
6654: need_lib_prefix=no
6655: need_version=no
6656: hardcode_into_libs=yes
6657: if test "$host_cpu" = ia64; then
6658: # AIX 5 supports IA64
6659: library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6660: shlibpath_var=LD_LIBRARY_PATH
6661: else
6662: # With GCC up to 2.95.x, collect2 would create an import file
6663: # for dependence libraries. The import file would start with
6664: # the line `#! .'. This would cause the generated library to
6665: # depend on `.', always an invalid library. This was fixed in
6666: # development snapshots of GCC prior to 3.0.
6667: case $host_os in
6668: aix4 | aix4.[01] | aix4.[01].*)
6669: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6670: echo ' yes '
6671: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6672: :
6673: else
6674: can_build_shared=no
6675: fi
6676: ;;
6677: esac
6678: # AIX (on Power*) has no versioning support, so currently we can
6679: # not hardcode correct soname into executable. Probably we can
6680: # add versioning support to collect2, so additional links can
6681: # be useful in future.
6682: if test "$aix_use_runtimelinking" = yes; then
6683: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6684: # instead of lib<name>.a to let people know that these are not
6685: # typical AIX shared libraries.
6686: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6687: else
6688: # We preserve .a as extension for shared libraries through AIX4.2
6689: # and later when we are not doing run time linking.
6690: library_names_spec='${libname}${release}.a $libname.a'
6691: soname_spec='${libname}${release}.so$major'
6692: fi
6693: shlibpath_var=LIBPATH
6694: fi
6695: hardcode_into_libs=yes
6696: ;;
6697:
6698: amigaos*)
6699: library_names_spec='$libname.ixlibrary $libname.a'
6700: # Create ${libname}_ixlibrary.a entries in /sys/libs.
6701: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6702: ;;
6703:
6704: beos*)
6705: library_names_spec='${libname}.so'
6706: dynamic_linker="$host_os ld.so"
6707: shlibpath_var=LIBRARY_PATH
6708: ;;
6709:
6710: bsdi4*)
6711: version_type=linux
6712: need_version=no
6713: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6714: soname_spec='${libname}${release}.so$major'
6715: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6716: shlibpath_var=LD_LIBRARY_PATH
6717: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6718: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6719: export_dynamic_flag_spec=-rdynamic
6720: # the default ld.so.conf also contains /usr/contrib/lib and
6721: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6722: # libtool to hard-code these into programs
6723: ;;
6724:
6725: cygwin* | mingw* | pw32*)
6726: version_type=windows
6727: need_version=no
6728: need_lib_prefix=no
6729: case $GCC,$host_os in
6730: yes,cygwin*)
6731: library_names_spec='$libname.dll.a'
6732: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6733: postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6734: dldir=$destdir/`dirname \$dlpath`~
6735: test -d \$dldir || mkdir -p \$dldir~
6736: $install_prog .libs/$dlname \$dldir/$dlname'
6737: postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6738: dlpath=$dir/\$dldll~
6739: $rm \$dlpath'
6740: ;;
6741: yes,mingw*)
6742: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6743: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6744: ;;
6745: yes,pw32*)
6746: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6747: ;;
6748: *)
6749: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6750: ;;
6751: esac
6752: dynamic_linker='Win32 ld.exe'
6753: # FIXME: first we should search . and the directory the executable is in
6754: shlibpath_var=PATH
6755: ;;
6756:
6757: darwin* | rhapsody*)
6758: dynamic_linker="$host_os dyld"
6759: version_type=darwin
6760: need_lib_prefix=no
6761: need_version=no
6762: # FIXME: Relying on posixy $() will cause problems for
6763: # cross-compilation, but unfortunately the echo tests do not
6764: # yet detect zsh echo's removal of \ escapes.
6765: library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6766: soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6767: shlibpath_overrides_runpath=yes
6768: shlibpath_var=DYLD_LIBRARY_PATH
6769: ;;
6770:
6771: freebsd1*)
6772: dynamic_linker=no
6773: ;;
6774:
6775: freebsd*)
6776: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6777: version_type=freebsd-$objformat
6778: case $version_type in
6779: freebsd-elf*)
6780: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6781: need_version=no
6782: need_lib_prefix=no
6783: ;;
6784: freebsd-*)
6785: library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6786: need_version=yes
6787: ;;
6788: esac
6789: shlibpath_var=LD_LIBRARY_PATH
6790: case $host_os in
6791: freebsd2*)
6792: shlibpath_overrides_runpath=yes
6793: ;;
6794: *)
6795: shlibpath_overrides_runpath=no
6796: hardcode_into_libs=yes
6797: ;;
6798: esac
6799: ;;
6800:
6801: gnu*)
6802: version_type=linux
6803: need_lib_prefix=no
6804: need_version=no
6805: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6806: soname_spec='${libname}${release}.so$major'
6807: shlibpath_var=LD_LIBRARY_PATH
6808: hardcode_into_libs=yes
6809: ;;
6810:
6811: hpux9* | hpux10* | hpux11*)
6812: # Give a soname corresponding to the major version so that dld.sl refuses to
6813: # link against other versions.
6814: dynamic_linker="$host_os dld.sl"
6815: version_type=sunos
6816: need_lib_prefix=no
6817: need_version=no
6818: shlibpath_var=SHLIB_PATH
6819: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6820: library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6821: soname_spec='${libname}${release}.sl$major'
6822: # HP-UX runs *really* slowly unless shared libraries are mode 555.
6823: postinstall_cmds='chmod 555 $lib'
6824: ;;
6825:
6826: irix5* | irix6* | nonstopux*)
6827: case $host_os in
6828: nonstopux*) version_type=nonstopux ;;
6829: *) version_type=irix ;;
6830: esac
6831: need_lib_prefix=no
6832: need_version=no
6833: soname_spec='${libname}${release}.so$major'
6834: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6835: case $host_os in
6836: irix5* | nonstopux*)
6837: libsuff= shlibsuff=
6838: ;;
6839: *)
6840: case $LD in # libtool.m4 will add one of these switches to LD
6841: *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6842: *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6843: *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6844: *) libsuff= shlibsuff= libmagic=never-match;;
6845: esac
6846: ;;
6847: esac
6848: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6849: shlibpath_overrides_runpath=no
6850: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6851: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6852: ;;
6853:
6854: # No shared lib support for Linux oldld, aout, or coff.
6855: linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6856: dynamic_linker=no
6857: ;;
6858:
6859: # This must be Linux ELF.
6860: linux-gnu*)
6861: version_type=linux
6862: need_lib_prefix=no
6863: need_version=no
6864: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6865: soname_spec='${libname}${release}.so$major'
6866: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6867: shlibpath_var=LD_LIBRARY_PATH
6868: shlibpath_overrides_runpath=no
6869: # This implies no fast_install, which is unacceptable.
6870: # Some rework will be needed to allow for fast_install
6871: # before this can be enabled.
6872: hardcode_into_libs=yes
6873:
6874: # We used to test for /lib/ld.so.1 and disable shared libraries on
6875: # powerpc, because MkLinux only supported shared libraries with the
6876: # GNU dynamic linker. Since this was broken with cross compilers,
6877: # most powerpc-linux boxes support dynamic linking these days and
6878: # people can always --disable-shared, the test was removed, and we
6879: # assume the GNU/Linux dynamic linker is in use.
6880: dynamic_linker='GNU/Linux ld.so'
6881: ;;
6882:
6883: netbsd*)
6884: version_type=sunos
6885: need_lib_prefix=no
6886: need_version=no
6887: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6888: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6889: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6890: dynamic_linker='NetBSD (a.out) ld.so'
6891: else
6892: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6893: soname_spec='${libname}${release}.so$major'
6894: dynamic_linker='NetBSD ld.elf_so'
6895: fi
6896: shlibpath_var=LD_LIBRARY_PATH
6897: shlibpath_overrides_runpath=yes
6898: hardcode_into_libs=yes
6899: ;;
6900:
6901: newsos6)
6902: version_type=linux
6903: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6904: shlibpath_var=LD_LIBRARY_PATH
6905: shlibpath_overrides_runpath=yes
6906: ;;
6907:
6908: openbsd*)
6909: version_type=sunos
6910: need_lib_prefix=no
6911: need_version=no
6912: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6913: case "$host_os" in
6914: openbsd2.[89] | openbsd2.[89].*)
6915: shlibpath_overrides_runpath=no
6916: ;;
6917: *)
6918: shlibpath_overrides_runpath=yes
6919: ;;
6920: esac
6921: else
6922: shlibpath_overrides_runpath=yes
6923: fi
6924: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6925: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6926: shlibpath_var=LD_LIBRARY_PATH
6927: ;;
6928:
6929: os2*)
6930: libname_spec='$name'
6931: need_lib_prefix=no
6932: library_names_spec='$libname.dll $libname.a'
6933: dynamic_linker='OS/2 ld.exe'
6934: shlibpath_var=LIBPATH
6935: ;;
6936:
6937: osf3* | osf4* | osf5*)
6938: version_type=osf
6939: need_version=no
6940: soname_spec='${libname}${release}.so$major'
6941: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6942: shlibpath_var=LD_LIBRARY_PATH
6943: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6944: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6945: hardcode_into_libs=yes
6946: ;;
6947:
6948: sco3.2v5*)
6949: version_type=osf
6950: soname_spec='${libname}${release}.so$major'
6951: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6952: shlibpath_var=LD_LIBRARY_PATH
6953: ;;
6954:
6955: solaris*)
6956: version_type=linux
6957: need_lib_prefix=no
6958: need_version=no
6959: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6960: soname_spec='${libname}${release}.so$major'
6961: shlibpath_var=LD_LIBRARY_PATH
6962: shlibpath_overrides_runpath=yes
6963: hardcode_into_libs=yes
6964: # ldd complains unless libraries are executable
6965: postinstall_cmds='chmod +x $lib'
6966: ;;
6967:
6968: sunos4*)
6969: version_type=sunos
6970: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6971: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6972: shlibpath_var=LD_LIBRARY_PATH
6973: shlibpath_overrides_runpath=yes
6974: if test "$with_gnu_ld" = yes; then
6975: need_lib_prefix=no
6976: fi
6977: need_version=yes
6978: ;;
6979:
6980: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6981: version_type=linux
6982: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6983: soname_spec='${libname}${release}.so$major'
6984: shlibpath_var=LD_LIBRARY_PATH
6985: case $host_vendor in
6986: sni)
6987: shlibpath_overrides_runpath=no
6988: need_lib_prefix=no
6989: export_dynamic_flag_spec='${wl}-Blargedynsym'
6990: runpath_var=LD_RUN_PATH
6991: ;;
6992: siemens)
6993: need_lib_prefix=no
6994: ;;
6995: motorola)
6996: need_lib_prefix=no
6997: need_version=no
6998: shlibpath_overrides_runpath=no
6999: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7000: ;;
7001: esac
7002: ;;
7003:
7004: uts4*)
7005: version_type=linux
7006: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7007: soname_spec='${libname}${release}.so$major'
7008: shlibpath_var=LD_LIBRARY_PATH
7009: ;;
7010:
7011: dgux*)
7012: version_type=linux
7013: need_lib_prefix=no
7014: need_version=no
7015: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7016: soname_spec='${libname}${release}.so$major'
7017: shlibpath_var=LD_LIBRARY_PATH
7018: ;;
7019:
7020: sysv4*MP*)
7021: if test -d /usr/nec ;then
7022: version_type=linux
7023: library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7024: soname_spec='$libname.so.$major'
7025: shlibpath_var=LD_LIBRARY_PATH
7026: fi
7027: ;;
7028:
7029: *)
7030: dynamic_linker=no
7031: ;;
7032: esac
7033: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7034: echo "${ECHO_T}$dynamic_linker" >&6
7035: test "$dynamic_linker" = no && can_build_shared=no
7036:
7037: # Report the final consequences.
7038: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7039: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7040: echo "$as_me:$LINENO: result: $can_build_shared" >&5
7041: echo "${ECHO_T}$can_build_shared" >&6
7042:
7043: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7044: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7045: test "$can_build_shared" = "no" && enable_shared=no
7046:
7047: # On AIX, shared libraries and static libraries use the same namespace, and
7048: # are all built from PIC.
7049: case "$host_os" in
7050: aix3*)
7051: test "$enable_shared" = yes && enable_static=no
7052: if test -n "$RANLIB"; then
7053: archive_cmds="$archive_cmds~\$RANLIB \$lib"
7054: postinstall_cmds='$RANLIB $lib'
7055: fi
7056: ;;
7057:
7058: aix4*)
7059: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7060: test "$enable_shared" = yes && enable_static=no
7061: fi
7062: ;;
7063: esac
7064: echo "$as_me:$LINENO: result: $enable_shared" >&5
7065: echo "${ECHO_T}$enable_shared" >&6
7066:
7067: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7068: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7069: # Make sure either enable_shared or enable_static is yes.
7070: test "$enable_shared" = yes || enable_static=yes
7071: echo "$as_me:$LINENO: result: $enable_static" >&5
7072: echo "${ECHO_T}$enable_static" >&6
7073:
7074: if test "$hardcode_action" = relink; then
7075: # Fast installation is not supported
7076: enable_fast_install=no
7077: elif test "$shlibpath_overrides_runpath" = yes ||
7078: test "$enable_shared" = no; then
7079: # Fast installation is not necessary
7080: enable_fast_install=needless
7081: fi
7082:
7083: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7084: if test "$GCC" = yes; then
7085: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7086: fi
7087:
7088: if test "x$enable_dlopen" != xyes; then
7089: enable_dlopen=unknown
7090: enable_dlopen_self=unknown
7091: enable_dlopen_self_static=unknown
7092: else
7093: lt_cv_dlopen=no
7094: lt_cv_dlopen_libs=
7095:
7096: case $host_os in
7097: beos*)
7098: lt_cv_dlopen="load_add_on"
7099: lt_cv_dlopen_libs=
7100: lt_cv_dlopen_self=yes
7101: ;;
7102:
7103: cygwin* | mingw* | pw32*)
7104: lt_cv_dlopen="LoadLibrary"
7105: lt_cv_dlopen_libs=
7106: ;;
7107:
7108: *)
7109: echo "$as_me:$LINENO: checking for shl_load" >&5
7110: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7111: if test "${ac_cv_func_shl_load+set}" = set; then
7112: echo $ECHO_N "(cached) $ECHO_C" >&6
7113: else
7114: cat >conftest.$ac_ext <<_ACEOF
7115: #line $LINENO "configure"
7116: /* confdefs.h. */
7117: _ACEOF
7118: cat confdefs.h >>conftest.$ac_ext
7119: cat >>conftest.$ac_ext <<_ACEOF
7120: /* end confdefs.h. */
7121: /* System header to define __stub macros and hopefully few prototypes,
7122: which can conflict with char shl_load (); below.
7123: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7124: <limits.h> exists even on freestanding compilers. */
7125: #ifdef __STDC__
7126: # include <limits.h>
7127: #else
7128: # include <assert.h>
7129: #endif
7130: /* Override any gcc2 internal prototype to avoid an error. */
7131: #ifdef __cplusplus
7132: extern "C"
7133: {
7134: #endif
7135: /* We use char because int might match the return type of a gcc2
7136: builtin and then its argument prototype would still apply. */
7137: char shl_load ();
7138: /* The GNU C library defines this for functions which it implements
7139: to always fail with ENOSYS. Some functions are actually named
7140: something starting with __ and the normal name is an alias. */
7141: #if defined (__stub_shl_load) || defined (__stub___shl_load)
7142: choke me
7143: #else
7144: char (*f) () = shl_load;
7145: #endif
7146: #ifdef __cplusplus
7147: }
7148: #endif
7149:
7150: int
7151: main ()
7152: {
7153: return f != shl_load;
7154: ;
7155: return 0;
7156: }
7157: _ACEOF
7158: rm -f conftest.$ac_objext conftest$ac_exeext
7159: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7160: (eval $ac_link) 2>&5
7161: ac_status=$?
7162: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163: (exit $ac_status); } &&
7164: { ac_try='test -s conftest$ac_exeext'
7165: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166: (eval $ac_try) 2>&5
7167: ac_status=$?
7168: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169: (exit $ac_status); }; }; then
7170: ac_cv_func_shl_load=yes
7171: else
7172: echo "$as_me: failed program was:" >&5
7173: sed 's/^/| /' conftest.$ac_ext >&5
7174:
7175: ac_cv_func_shl_load=no
7176: fi
7177: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7178: fi
7179: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7180: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7181: if test $ac_cv_func_shl_load = yes; then
7182: lt_cv_dlopen="shl_load"
7183: else
7184: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7185: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7186: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7187: echo $ECHO_N "(cached) $ECHO_C" >&6
7188: else
7189: ac_check_lib_save_LIBS=$LIBS
7190: LIBS="-ldld $LIBS"
7191: cat >conftest.$ac_ext <<_ACEOF
7192: #line $LINENO "configure"
7193: /* confdefs.h. */
7194: _ACEOF
7195: cat confdefs.h >>conftest.$ac_ext
7196: cat >>conftest.$ac_ext <<_ACEOF
7197: /* end confdefs.h. */
7198:
7199: /* Override any gcc2 internal prototype to avoid an error. */
7200: #ifdef __cplusplus
7201: extern "C"
7202: #endif
7203: /* We use char because int might match the return type of a gcc2
7204: builtin and then its argument prototype would still apply. */
7205: char shl_load ();
7206: int
7207: main ()
7208: {
7209: shl_load ();
7210: ;
7211: return 0;
7212: }
7213: _ACEOF
7214: rm -f conftest.$ac_objext conftest$ac_exeext
7215: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7216: (eval $ac_link) 2>&5
7217: ac_status=$?
7218: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219: (exit $ac_status); } &&
7220: { ac_try='test -s conftest$ac_exeext'
7221: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222: (eval $ac_try) 2>&5
7223: ac_status=$?
7224: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225: (exit $ac_status); }; }; then
7226: ac_cv_lib_dld_shl_load=yes
7227: else
7228: echo "$as_me: failed program was:" >&5
7229: sed 's/^/| /' conftest.$ac_ext >&5
7230:
7231: ac_cv_lib_dld_shl_load=no
7232: fi
7233: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7234: LIBS=$ac_check_lib_save_LIBS
7235: fi
7236: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7237: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7238: if test $ac_cv_lib_dld_shl_load = yes; then
7239: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7240: else
7241: echo "$as_me:$LINENO: checking for dlopen" >&5
7242: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7243: if test "${ac_cv_func_dlopen+set}" = set; then
7244: echo $ECHO_N "(cached) $ECHO_C" >&6
7245: else
7246: cat >conftest.$ac_ext <<_ACEOF
7247: #line $LINENO "configure"
7248: /* confdefs.h. */
7249: _ACEOF
7250: cat confdefs.h >>conftest.$ac_ext
7251: cat >>conftest.$ac_ext <<_ACEOF
7252: /* end confdefs.h. */
7253: /* System header to define __stub macros and hopefully few prototypes,
7254: which can conflict with char dlopen (); below.
7255: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7256: <limits.h> exists even on freestanding compilers. */
7257: #ifdef __STDC__
7258: # include <limits.h>
7259: #else
7260: # include <assert.h>
7261: #endif
7262: /* Override any gcc2 internal prototype to avoid an error. */
7263: #ifdef __cplusplus
7264: extern "C"
7265: {
7266: #endif
7267: /* We use char because int might match the return type of a gcc2
7268: builtin and then its argument prototype would still apply. */
7269: char dlopen ();
7270: /* The GNU C library defines this for functions which it implements
7271: to always fail with ENOSYS. Some functions are actually named
7272: something starting with __ and the normal name is an alias. */
7273: #if defined (__stub_dlopen) || defined (__stub___dlopen)
7274: choke me
7275: #else
7276: char (*f) () = dlopen;
7277: #endif
7278: #ifdef __cplusplus
7279: }
7280: #endif
7281:
7282: int
7283: main ()
7284: {
7285: return f != dlopen;
7286: ;
7287: return 0;
7288: }
7289: _ACEOF
7290: rm -f conftest.$ac_objext conftest$ac_exeext
7291: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7292: (eval $ac_link) 2>&5
7293: ac_status=$?
7294: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295: (exit $ac_status); } &&
7296: { ac_try='test -s conftest$ac_exeext'
7297: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298: (eval $ac_try) 2>&5
7299: ac_status=$?
7300: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301: (exit $ac_status); }; }; then
7302: ac_cv_func_dlopen=yes
7303: else
7304: echo "$as_me: failed program was:" >&5
7305: sed 's/^/| /' conftest.$ac_ext >&5
7306:
7307: ac_cv_func_dlopen=no
7308: fi
7309: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7310: fi
7311: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7312: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7313: if test $ac_cv_func_dlopen = yes; then
7314: lt_cv_dlopen="dlopen"
7315: else
7316: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7317: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7318: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7319: echo $ECHO_N "(cached) $ECHO_C" >&6
7320: else
7321: ac_check_lib_save_LIBS=$LIBS
7322: LIBS="-ldl $LIBS"
7323: cat >conftest.$ac_ext <<_ACEOF
7324: #line $LINENO "configure"
7325: /* confdefs.h. */
7326: _ACEOF
7327: cat confdefs.h >>conftest.$ac_ext
7328: cat >>conftest.$ac_ext <<_ACEOF
7329: /* end confdefs.h. */
7330:
7331: /* Override any gcc2 internal prototype to avoid an error. */
7332: #ifdef __cplusplus
7333: extern "C"
7334: #endif
7335: /* We use char because int might match the return type of a gcc2
7336: builtin and then its argument prototype would still apply. */
7337: char dlopen ();
7338: int
7339: main ()
7340: {
7341: dlopen ();
7342: ;
7343: return 0;
7344: }
7345: _ACEOF
7346: rm -f conftest.$ac_objext conftest$ac_exeext
7347: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7348: (eval $ac_link) 2>&5
7349: ac_status=$?
7350: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351: (exit $ac_status); } &&
7352: { ac_try='test -s conftest$ac_exeext'
7353: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354: (eval $ac_try) 2>&5
7355: ac_status=$?
7356: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357: (exit $ac_status); }; }; then
7358: ac_cv_lib_dl_dlopen=yes
7359: else
7360: echo "$as_me: failed program was:" >&5
7361: sed 's/^/| /' conftest.$ac_ext >&5
7362:
7363: ac_cv_lib_dl_dlopen=no
7364: fi
7365: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7366: LIBS=$ac_check_lib_save_LIBS
7367: fi
7368: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7369: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7370: if test $ac_cv_lib_dl_dlopen = yes; then
7371: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7372: else
7373: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7374: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7375: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7376: echo $ECHO_N "(cached) $ECHO_C" >&6
7377: else
7378: ac_check_lib_save_LIBS=$LIBS
7379: LIBS="-lsvld $LIBS"
7380: cat >conftest.$ac_ext <<_ACEOF
7381: #line $LINENO "configure"
7382: /* confdefs.h. */
7383: _ACEOF
7384: cat confdefs.h >>conftest.$ac_ext
7385: cat >>conftest.$ac_ext <<_ACEOF
7386: /* end confdefs.h. */
7387:
7388: /* Override any gcc2 internal prototype to avoid an error. */
7389: #ifdef __cplusplus
7390: extern "C"
7391: #endif
7392: /* We use char because int might match the return type of a gcc2
7393: builtin and then its argument prototype would still apply. */
7394: char dlopen ();
7395: int
7396: main ()
7397: {
7398: dlopen ();
7399: ;
7400: return 0;
7401: }
7402: _ACEOF
7403: rm -f conftest.$ac_objext conftest$ac_exeext
7404: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7405: (eval $ac_link) 2>&5
7406: ac_status=$?
7407: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408: (exit $ac_status); } &&
7409: { ac_try='test -s conftest$ac_exeext'
7410: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411: (eval $ac_try) 2>&5
7412: ac_status=$?
7413: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414: (exit $ac_status); }; }; then
7415: ac_cv_lib_svld_dlopen=yes
7416: else
7417: echo "$as_me: failed program was:" >&5
7418: sed 's/^/| /' conftest.$ac_ext >&5
7419:
7420: ac_cv_lib_svld_dlopen=no
7421: fi
7422: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7423: LIBS=$ac_check_lib_save_LIBS
7424: fi
7425: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7426: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7427: if test $ac_cv_lib_svld_dlopen = yes; then
7428: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7429: else
7430: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7431: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7432: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7433: echo $ECHO_N "(cached) $ECHO_C" >&6
7434: else
7435: ac_check_lib_save_LIBS=$LIBS
7436: LIBS="-ldld $LIBS"
7437: cat >conftest.$ac_ext <<_ACEOF
7438: #line $LINENO "configure"
7439: /* confdefs.h. */
7440: _ACEOF
7441: cat confdefs.h >>conftest.$ac_ext
7442: cat >>conftest.$ac_ext <<_ACEOF
7443: /* end confdefs.h. */
7444:
7445: /* Override any gcc2 internal prototype to avoid an error. */
7446: #ifdef __cplusplus
7447: extern "C"
7448: #endif
7449: /* We use char because int might match the return type of a gcc2
7450: builtin and then its argument prototype would still apply. */
7451: char dld_link ();
7452: int
7453: main ()
7454: {
7455: dld_link ();
7456: ;
7457: return 0;
7458: }
7459: _ACEOF
7460: rm -f conftest.$ac_objext conftest$ac_exeext
7461: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7462: (eval $ac_link) 2>&5
7463: ac_status=$?
7464: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465: (exit $ac_status); } &&
7466: { ac_try='test -s conftest$ac_exeext'
7467: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468: (eval $ac_try) 2>&5
7469: ac_status=$?
7470: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471: (exit $ac_status); }; }; then
7472: ac_cv_lib_dld_dld_link=yes
7473: else
7474: echo "$as_me: failed program was:" >&5
7475: sed 's/^/| /' conftest.$ac_ext >&5
7476:
7477: ac_cv_lib_dld_dld_link=no
7478: fi
7479: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7480: LIBS=$ac_check_lib_save_LIBS
7481: fi
7482: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7483: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7484: if test $ac_cv_lib_dld_dld_link = yes; then
7485: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7486: fi
7487:
7488:
7489: fi
7490:
7491:
7492: fi
7493:
7494:
7495: fi
7496:
7497:
7498: fi
7499:
7500:
7501: fi
7502:
7503: ;;
7504: esac
7505:
7506: if test "x$lt_cv_dlopen" != xno; then
7507: enable_dlopen=yes
7508: else
7509: enable_dlopen=no
7510: fi
7511:
7512: case $lt_cv_dlopen in
7513: dlopen)
7514: save_CPPFLAGS="$CPPFLAGS"
7515: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7516:
7517: save_LDFLAGS="$LDFLAGS"
7518: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7519:
7520: save_LIBS="$LIBS"
7521: LIBS="$lt_cv_dlopen_libs $LIBS"
7522:
7523: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7524: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7525: if test "${lt_cv_dlopen_self+set}" = set; then
7526: echo $ECHO_N "(cached) $ECHO_C" >&6
7527: else
7528: if test "$cross_compiling" = yes; then :
7529: lt_cv_dlopen_self=cross
7530: else
7531: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7532: lt_status=$lt_dlunknown
7533: cat > conftest.$ac_ext <<EOF
1.15 ! paf 7534: #line 7534 "configure"
1.11 paf 7535: #include "confdefs.h"
7536:
7537: #if HAVE_DLFCN_H
7538: #include <dlfcn.h>
7539: #endif
7540:
7541: #include <stdio.h>
7542:
7543: #ifdef RTLD_GLOBAL
7544: # define LT_DLGLOBAL RTLD_GLOBAL
7545: #else
7546: # ifdef DL_GLOBAL
7547: # define LT_DLGLOBAL DL_GLOBAL
7548: # else
7549: # define LT_DLGLOBAL 0
7550: # endif
7551: #endif
7552:
7553: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7554: find out it does not work in some platform. */
7555: #ifndef LT_DLLAZY_OR_NOW
7556: # ifdef RTLD_LAZY
7557: # define LT_DLLAZY_OR_NOW RTLD_LAZY
7558: # else
7559: # ifdef DL_LAZY
7560: # define LT_DLLAZY_OR_NOW DL_LAZY
7561: # else
7562: # ifdef RTLD_NOW
7563: # define LT_DLLAZY_OR_NOW RTLD_NOW
7564: # else
7565: # ifdef DL_NOW
7566: # define LT_DLLAZY_OR_NOW DL_NOW
7567: # else
7568: # define LT_DLLAZY_OR_NOW 0
7569: # endif
7570: # endif
7571: # endif
7572: # endif
7573: #endif
7574:
7575: #ifdef __cplusplus
7576: extern "C" void exit (int);
7577: #endif
7578:
7579: void fnord() { int i=42;}
7580: int main ()
7581: {
7582: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7583: int status = $lt_dlunknown;
7584:
7585: if (self)
7586: {
7587: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7588: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7589: /* dlclose (self); */
7590: }
7591:
7592: exit (status);
7593: }
7594: EOF
7595: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7596: (eval $ac_link) 2>&5
7597: ac_status=$?
7598: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7600: (./conftest; exit; ) 2>/dev/null
7601: lt_status=$?
7602: case x$lt_status in
7603: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7604: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7605: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7606: esac
7607: else :
7608: # compilation failed
7609: lt_cv_dlopen_self=no
7610: fi
7611: fi
7612: rm -fr conftest*
7613:
7614:
7615: fi
7616: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7617: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7618:
7619: if test "x$lt_cv_dlopen_self" = xyes; then
7620: LDFLAGS="$LDFLAGS $link_static_flag"
7621: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7622: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7623: if test "${lt_cv_dlopen_self_static+set}" = set; then
7624: echo $ECHO_N "(cached) $ECHO_C" >&6
7625: else
7626: if test "$cross_compiling" = yes; then :
7627: lt_cv_dlopen_self_static=cross
7628: else
7629: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7630: lt_status=$lt_dlunknown
7631: cat > conftest.$ac_ext <<EOF
1.15 ! paf 7632: #line 7632 "configure"
1.11 paf 7633: #include "confdefs.h"
7634:
7635: #if HAVE_DLFCN_H
7636: #include <dlfcn.h>
7637: #endif
7638:
7639: #include <stdio.h>
7640:
7641: #ifdef RTLD_GLOBAL
7642: # define LT_DLGLOBAL RTLD_GLOBAL
7643: #else
7644: # ifdef DL_GLOBAL
7645: # define LT_DLGLOBAL DL_GLOBAL
7646: # else
7647: # define LT_DLGLOBAL 0
7648: # endif
7649: #endif
7650:
7651: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7652: find out it does not work in some platform. */
7653: #ifndef LT_DLLAZY_OR_NOW
7654: # ifdef RTLD_LAZY
7655: # define LT_DLLAZY_OR_NOW RTLD_LAZY
7656: # else
7657: # ifdef DL_LAZY
7658: # define LT_DLLAZY_OR_NOW DL_LAZY
7659: # else
7660: # ifdef RTLD_NOW
7661: # define LT_DLLAZY_OR_NOW RTLD_NOW
7662: # else
7663: # ifdef DL_NOW
7664: # define LT_DLLAZY_OR_NOW DL_NOW
7665: # else
7666: # define LT_DLLAZY_OR_NOW 0
7667: # endif
7668: # endif
7669: # endif
7670: # endif
7671: #endif
7672:
7673: #ifdef __cplusplus
7674: extern "C" void exit (int);
7675: #endif
7676:
7677: void fnord() { int i=42;}
7678: int main ()
7679: {
7680: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7681: int status = $lt_dlunknown;
7682:
7683: if (self)
7684: {
7685: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7686: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7687: /* dlclose (self); */
7688: }
7689:
7690: exit (status);
7691: }
7692: EOF
7693: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7694: (eval $ac_link) 2>&5
7695: ac_status=$?
7696: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7698: (./conftest; exit; ) 2>/dev/null
7699: lt_status=$?
7700: case x$lt_status in
7701: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7702: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7703: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7704: esac
7705: else :
7706: # compilation failed
7707: lt_cv_dlopen_self_static=no
7708: fi
7709: fi
7710: rm -fr conftest*
7711:
7712:
7713: fi
7714: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7715: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7716: fi
7717:
7718: CPPFLAGS="$save_CPPFLAGS"
7719: LDFLAGS="$save_LDFLAGS"
7720: LIBS="$save_LIBS"
7721: ;;
7722: esac
7723:
7724: case $lt_cv_dlopen_self in
7725: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7726: *) enable_dlopen_self=unknown ;;
7727: esac
7728:
7729: case $lt_cv_dlopen_self_static in
7730: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7731: *) enable_dlopen_self_static=unknown ;;
7732: esac
7733: fi
7734:
7735:
7736: if test "$enable_shared" = yes && test "$GCC" = yes; then
7737: case $archive_cmds in
7738: *'~'*)
7739: # FIXME: we may have to deal with multi-command sequences.
7740: ;;
7741: '$CC '*)
7742: # Test whether the compiler implicitly links with -lc since on some
7743: # systems, -lgcc has to come before -lc. If gcc already passes -lc
7744: # to ld, don't add -lc before -lgcc.
7745: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7746: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7747: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7748: echo $ECHO_N "(cached) $ECHO_C" >&6
7749: else
7750: $rm conftest*
7751: echo 'static int dummy;' > conftest.$ac_ext
7752:
7753: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7754: (eval $ac_compile) 2>&5
7755: ac_status=$?
7756: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757: (exit $ac_status); }; then
7758: soname=conftest
7759: lib=conftest
7760: libobjs=conftest.$ac_objext
7761: deplibs=
7762: wl=$lt_cv_prog_cc_wl
7763: compiler_flags=-v
7764: linker_flags=-v
7765: verstring=
7766: output_objdir=.
7767: libname=conftest
7768: save_allow_undefined_flag=$allow_undefined_flag
7769: allow_undefined_flag=
7770: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7771: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7772: ac_status=$?
7773: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774: (exit $ac_status); }
7775: then
7776: lt_cv_archive_cmds_need_lc=no
7777: else
7778: lt_cv_archive_cmds_need_lc=yes
7779: fi
7780: allow_undefined_flag=$save_allow_undefined_flag
7781: else
7782: cat conftest.err 1>&5
7783: fi
7784: fi
7785:
7786: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7787: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7788: ;;
7789: esac
7790: fi
7791: need_lc=${lt_cv_archive_cmds_need_lc-yes}
7792:
7793: # The second clause should only fire when bootstrapping the
7794: # libtool distribution, otherwise you forgot to ship ltmain.sh
7795: # with your package, and you will get complaints that there are
7796: # no rules to generate ltmain.sh.
7797: if test -f "$ltmain"; then
7798: :
7799: else
7800: # If there is no Makefile yet, we rely on a make rule to execute
7801: # `config.status --recheck' to rerun these tests and create the
7802: # libtool script then.
7803: test -f Makefile && make "$ltmain"
7804: fi
7805:
7806: if test -f "$ltmain"; then
7807: trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7808: $rm -f "${ofile}T"
7809:
7810: echo creating $ofile
7811:
7812: # Now quote all the things that may contain metacharacters while being
7813: # careful not to overquote the AC_SUBSTed values. We take copies of the
7814: # variables and quote the copies for generation of the libtool script.
7815: for var in echo old_CC old_CFLAGS SED \
7816: AR AR_FLAGS CC LD LN_S NM SHELL \
7817: reload_flag reload_cmds wl \
7818: pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7819: thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7820: library_names_spec soname_spec \
7821: RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7822: old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7823: postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7824: old_striplib striplib file_magic_cmd export_symbols_cmds \
7825: deplibs_check_method allow_undefined_flag no_undefined_flag \
7826: finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7827: global_symbol_to_c_name_address \
7828: hardcode_libdir_flag_spec hardcode_libdir_separator \
7829: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7830: compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7831:
7832: case $var in
7833: reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7834: old_postinstall_cmds | old_postuninstall_cmds | \
7835: export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7836: extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7837: postinstall_cmds | postuninstall_cmds | \
7838: finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7839: # Double-quote double-evaled strings.
7840: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7841: ;;
7842: *)
7843: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7844: ;;
7845: esac
7846: done
7847:
7848: cat <<__EOF__ > "${ofile}T"
7849: #! $SHELL
7850:
7851: # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7852: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7853: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7854: #
7855: # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7856: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7857: #
7858: # This program is free software; you can redistribute it and/or modify
7859: # it under the terms of the GNU General Public License as published by
7860: # the Free Software Foundation; either version 2 of the License, or
7861: # (at your option) any later version.
7862: #
7863: # This program is distributed in the hope that it will be useful, but
7864: # WITHOUT ANY WARRANTY; without even the implied warranty of
7865: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7866: # General Public License for more details.
7867: #
7868: # You should have received a copy of the GNU General Public License
7869: # along with this program; if not, write to the Free Software
7870: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7871: #
7872: # As a special exception to the GNU General Public License, if you
7873: # distribute this file as part of a program that contains a
7874: # configuration script generated by Autoconf, you may include it under
7875: # the same distribution terms that you use for the rest of that program.
7876:
7877: # A sed that does not truncate output.
7878: SED=$lt_SED
7879:
7880: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7881: Xsed="${SED} -e s/^X//"
7882:
7883: # The HP-UX ksh and POSIX shell print the target directory to stdout
7884: # if CDPATH is set.
7885: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7886:
7887: # ### BEGIN LIBTOOL CONFIG
7888:
7889: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7890:
7891: # Shell to use when invoking shell scripts.
7892: SHELL=$lt_SHELL
7893:
7894: # Whether or not to build shared libraries.
7895: build_libtool_libs=$enable_shared
7896:
7897: # Whether or not to build static libraries.
7898: build_old_libs=$enable_static
7899:
7900: # Whether or not to add -lc for building shared libraries.
7901: build_libtool_need_lc=$need_lc
7902:
7903: # Whether or not to optimize for fast installation.
7904: fast_install=$enable_fast_install
7905:
7906: # The host system.
7907: host_alias=$host_alias
7908: host=$host
7909:
7910: # An echo program that does not interpret backslashes.
7911: echo=$lt_echo
7912:
7913: # The archiver.
7914: AR=$lt_AR
7915: AR_FLAGS=$lt_AR_FLAGS
7916:
7917: # The default C compiler.
7918: CC=$lt_CC
7919:
7920: # Is the compiler the GNU C compiler?
7921: with_gcc=$GCC
7922:
7923: # The linker used to build libraries.
7924: LD=$lt_LD
7925:
7926: # Whether we need hard or soft links.
7927: LN_S=$lt_LN_S
7928:
7929: # A BSD-compatible nm program.
7930: NM=$lt_NM
7931:
7932: # A symbol stripping program
7933: STRIP=$STRIP
7934:
7935: # Used to examine libraries when file_magic_cmd begins "file"
7936: MAGIC_CMD=$MAGIC_CMD
7937:
7938: # Used on cygwin: DLL creation program.
7939: DLLTOOL="$DLLTOOL"
7940:
7941: # Used on cygwin: object dumper.
7942: OBJDUMP="$OBJDUMP"
7943:
7944: # Used on cygwin: assembler.
7945: AS="$AS"
7946:
7947: # The name of the directory that contains temporary libtool files.
7948: objdir=$objdir
7949:
7950: # How to create reloadable object files.
7951: reload_flag=$lt_reload_flag
7952: reload_cmds=$lt_reload_cmds
7953:
7954: # How to pass a linker flag through the compiler.
7955: wl=$lt_wl
7956:
7957: # Object file suffix (normally "o").
7958: objext="$ac_objext"
7959:
7960: # Old archive suffix (normally "a").
7961: libext="$libext"
7962:
7963: # Executable file suffix (normally "").
7964: exeext="$exeext"
7965:
7966: # Additional compiler flags for building library objects.
7967: pic_flag=$lt_pic_flag
7968: pic_mode=$pic_mode
7969:
7970: # Does compiler simultaneously support -c and -o options?
7971: compiler_c_o=$lt_compiler_c_o
7972:
7973: # Can we write directly to a .lo ?
7974: compiler_o_lo=$lt_compiler_o_lo
7975:
7976: # Must we lock files when doing compilation ?
7977: need_locks=$lt_need_locks
7978:
7979: # Do we need the lib prefix for modules?
7980: need_lib_prefix=$need_lib_prefix
7981:
7982: # Do we need a version for libraries?
7983: need_version=$need_version
7984:
7985: # Whether dlopen is supported.
7986: dlopen_support=$enable_dlopen
7987:
7988: # Whether dlopen of programs is supported.
7989: dlopen_self=$enable_dlopen_self
7990:
7991: # Whether dlopen of statically linked programs is supported.
7992: dlopen_self_static=$enable_dlopen_self_static
7993:
7994: # Compiler flag to prevent dynamic linking.
7995: link_static_flag=$lt_link_static_flag
7996:
7997: # Compiler flag to turn off builtin functions.
7998: no_builtin_flag=$lt_no_builtin_flag
7999:
8000: # Compiler flag to allow reflexive dlopens.
8001: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8002:
8003: # Compiler flag to generate shared objects directly from archives.
8004: whole_archive_flag_spec=$lt_whole_archive_flag_spec
8005:
8006: # Compiler flag to generate thread-safe objects.
8007: thread_safe_flag_spec=$lt_thread_safe_flag_spec
8008:
8009: # Library versioning type.
8010: version_type=$version_type
8011:
8012: # Format of library name prefix.
8013: libname_spec=$lt_libname_spec
8014:
8015: # List of archive names. First name is the real one, the rest are links.
8016: # The last name is the one that the linker finds with -lNAME.
8017: library_names_spec=$lt_library_names_spec
8018:
8019: # The coded name of the library, if different from the real name.
8020: soname_spec=$lt_soname_spec
8021:
8022: # Commands used to build and install an old-style archive.
8023: RANLIB=$lt_RANLIB
8024: old_archive_cmds=$lt_old_archive_cmds
8025: old_postinstall_cmds=$lt_old_postinstall_cmds
8026: old_postuninstall_cmds=$lt_old_postuninstall_cmds
8027:
8028: # Create an old-style archive from a shared archive.
8029: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8030:
8031: # Create a temporary old-style archive to link instead of a shared archive.
8032: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8033:
8034: # Commands used to build and install a shared archive.
8035: archive_cmds=$lt_archive_cmds
8036: archive_expsym_cmds=$lt_archive_expsym_cmds
8037: postinstall_cmds=$lt_postinstall_cmds
8038: postuninstall_cmds=$lt_postuninstall_cmds
8039:
8040: # Commands to strip libraries.
8041: old_striplib=$lt_old_striplib
8042: striplib=$lt_striplib
8043:
8044: # Method to check whether dependent libraries are shared objects.
8045: deplibs_check_method=$lt_deplibs_check_method
8046:
8047: # Command to use when deplibs_check_method == file_magic.
8048: file_magic_cmd=$lt_file_magic_cmd
8049:
8050: # Flag that allows shared libraries with undefined symbols to be built.
8051: allow_undefined_flag=$lt_allow_undefined_flag
8052:
8053: # Flag that forces no undefined symbols.
8054: no_undefined_flag=$lt_no_undefined_flag
8055:
8056: # Commands used to finish a libtool library installation in a directory.
8057: finish_cmds=$lt_finish_cmds
8058:
8059: # Same as above, but a single script fragment to be evaled but not shown.
8060: finish_eval=$lt_finish_eval
8061:
8062: # Take the output of nm and produce a listing of raw symbols and C names.
8063: global_symbol_pipe=$lt_global_symbol_pipe
8064:
8065: # Transform the output of nm in a proper C declaration
8066: global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8067:
8068: # Transform the output of nm in a C name address pair
8069: global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8070:
8071: # This is the shared library runtime path variable.
8072: runpath_var=$runpath_var
8073:
8074: # This is the shared library path variable.
8075: shlibpath_var=$shlibpath_var
8076:
8077: # Is shlibpath searched before the hard-coded library search path?
8078: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8079:
8080: # How to hardcode a shared library path into an executable.
8081: hardcode_action=$hardcode_action
8082:
8083: # Whether we should hardcode library paths into libraries.
8084: hardcode_into_libs=$hardcode_into_libs
8085:
8086: # Flag to hardcode \$libdir into a binary during linking.
8087: # This must work even if \$libdir does not exist.
8088: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8089:
8090: # Whether we need a single -rpath flag with a separated argument.
8091: hardcode_libdir_separator=$lt_hardcode_libdir_separator
8092:
8093: # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8094: # resulting binary.
8095: hardcode_direct=$hardcode_direct
8096:
8097: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8098: # resulting binary.
8099: hardcode_minus_L=$hardcode_minus_L
8100:
8101: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8102: # the resulting binary.
8103: hardcode_shlibpath_var=$hardcode_shlibpath_var
8104:
8105: # Variables whose values should be saved in libtool wrapper scripts and
8106: # restored at relink time.
8107: variables_saved_for_relink="$variables_saved_for_relink"
8108:
8109: # Whether libtool must link a program against all its dependency libraries.
8110: link_all_deplibs=$link_all_deplibs
1.7 paf 8111:
1.11 paf 8112: # Compile-time system search path for libraries
8113: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.7 paf 8114:
1.11 paf 8115: # Run-time system search path for libraries
8116: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.7 paf 8117:
1.11 paf 8118: # Fix the shell variable \$srcfile for the compiler.
8119: fix_srcfile_path="$fix_srcfile_path"
1.7 paf 8120:
1.11 paf 8121: # Set to yes if exported symbols are required.
8122: always_export_symbols=$always_export_symbols
1.7 paf 8123:
1.11 paf 8124: # The commands to list exported symbols.
8125: export_symbols_cmds=$lt_export_symbols_cmds
1.7 paf 8126:
1.11 paf 8127: # The commands to extract the exported symbol list from a shared archive.
8128: extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.7 paf 8129:
1.11 paf 8130: # Symbols that should not be listed in the preloaded symbols.
8131: exclude_expsyms=$lt_exclude_expsyms
1.7 paf 8132:
1.11 paf 8133: # Symbols that must always be exported.
8134: include_expsyms=$lt_include_expsyms
1.7 paf 8135:
1.11 paf 8136: # ### END LIBTOOL CONFIG
1.7 paf 8137:
1.11 paf 8138: __EOF__
1.1 parser 8139:
1.11 paf 8140: case $host_os in
8141: aix3*)
8142: cat <<\EOF >> "${ofile}T"
1.1 parser 8143:
1.11 paf 8144: # AIX sometimes has problems with the GCC collect2 program. For some
8145: # reason, if we set the COLLECT_NAMES environment variable, the problems
8146: # vanish in a puff of smoke.
8147: if test "X${COLLECT_NAMES+set}" != Xset; then
8148: COLLECT_NAMES=
8149: export COLLECT_NAMES
8150: fi
8151: EOF
8152: ;;
8153: esac
1.1 parser 8154:
1.11 paf 8155: case $host_os in
8156: cygwin* | mingw* | pw32* | os2*)
8157: cat <<'EOF' >> "${ofile}T"
8158: # This is a source program that is used to create dlls on Windows
8159: # Don't remove nor modify the starting and closing comments
8160: # /* ltdll.c starts here */
8161: # #define WIN32_LEAN_AND_MEAN
8162: # #include <windows.h>
8163: # #undef WIN32_LEAN_AND_MEAN
8164: # #include <stdio.h>
8165: #
8166: # #ifndef __CYGWIN__
8167: # # ifdef __CYGWIN32__
8168: # # define __CYGWIN__ __CYGWIN32__
8169: # # endif
8170: # #endif
8171: #
8172: # #ifdef __cplusplus
8173: # extern "C" {
8174: # #endif
8175: # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8176: # #ifdef __cplusplus
8177: # }
8178: # #endif
8179: #
8180: # #ifdef __CYGWIN__
8181: # #include <cygwin/cygwin_dll.h>
8182: # DECLARE_CYGWIN_DLL( DllMain );
8183: # #endif
8184: # HINSTANCE __hDllInstance_base;
8185: #
8186: # BOOL APIENTRY
8187: # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8188: # {
8189: # __hDllInstance_base = hInst;
8190: # return TRUE;
8191: # }
8192: # /* ltdll.c ends here */
8193: # This is a source program that is used to create import libraries
8194: # on Windows for dlls which lack them. Don't remove nor modify the
8195: # starting and closing comments
8196: # /* impgen.c starts here */
8197: # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8198: #
8199: # This file is part of GNU libtool.
8200: #
8201: # This program is free software; you can redistribute it and/or modify
8202: # it under the terms of the GNU General Public License as published by
8203: # the Free Software Foundation; either version 2 of the License, or
8204: # (at your option) any later version.
8205: #
8206: # This program is distributed in the hope that it will be useful,
8207: # but WITHOUT ANY WARRANTY; without even the implied warranty of
8208: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8209: # GNU General Public License for more details.
8210: #
8211: # You should have received a copy of the GNU General Public License
8212: # along with this program; if not, write to the Free Software
8213: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8214: # */
8215: #
8216: # #include <stdio.h> /* for printf() */
8217: # #include <unistd.h> /* for open(), lseek(), read() */
8218: # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8219: # #include <string.h> /* for strdup() */
8220: #
8221: # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8222: # #ifndef O_BINARY
8223: # #define O_BINARY 0
8224: # #endif
8225: #
8226: # static unsigned int
8227: # pe_get16 (fd, offset)
8228: # int fd;
8229: # int offset;
8230: # {
8231: # unsigned char b[2];
8232: # lseek (fd, offset, SEEK_SET);
8233: # read (fd, b, 2);
8234: # return b[0] + (b[1]<<8);
8235: # }
8236: #
8237: # static unsigned int
8238: # pe_get32 (fd, offset)
8239: # int fd;
8240: # int offset;
8241: # {
8242: # unsigned char b[4];
8243: # lseek (fd, offset, SEEK_SET);
8244: # read (fd, b, 4);
8245: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8246: # }
8247: #
8248: # static unsigned int
8249: # pe_as32 (ptr)
8250: # void *ptr;
8251: # {
8252: # unsigned char *b = ptr;
8253: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8254: # }
8255: #
8256: # int
8257: # main (argc, argv)
8258: # int argc;
8259: # char *argv[];
8260: # {
8261: # int dll;
8262: # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8263: # unsigned long export_rva, export_size, nsections, secptr, expptr;
8264: # unsigned long name_rvas, nexp;
8265: # unsigned char *expdata, *erva;
8266: # char *filename, *dll_name;
8267: #
8268: # filename = argv[1];
8269: #
8270: # dll = open(filename, O_RDONLY|O_BINARY);
8271: # if (dll < 1)
8272: # return 1;
8273: #
8274: # dll_name = filename;
8275: #
8276: # for (i=0; filename[i]; i++)
8277: # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8278: # dll_name = filename + i +1;
8279: #
8280: # pe_header_offset = pe_get32 (dll, 0x3c);
8281: # opthdr_ofs = pe_header_offset + 4 + 20;
8282: # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8283: #
8284: # if (num_entries < 1) /* no exports */
8285: # return 1;
8286: #
8287: # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8288: # export_size = pe_get32 (dll, opthdr_ofs + 100);
8289: # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8290: # secptr = (pe_header_offset + 4 + 20 +
8291: # pe_get16 (dll, pe_header_offset + 4 + 16));
8292: #
8293: # expptr = 0;
8294: # for (i = 0; i < nsections; i++)
8295: # {
8296: # char sname[8];
8297: # unsigned long secptr1 = secptr + 40 * i;
8298: # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8299: # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8300: # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8301: # lseek(dll, secptr1, SEEK_SET);
8302: # read(dll, sname, 8);
8303: # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8304: # {
8305: # expptr = fptr + (export_rva - vaddr);
8306: # if (export_rva + export_size > vaddr + vsize)
8307: # export_size = vsize - (export_rva - vaddr);
8308: # break;
8309: # }
8310: # }
8311: #
8312: # expdata = (unsigned char*)malloc(export_size);
8313: # lseek (dll, expptr, SEEK_SET);
8314: # read (dll, expdata, export_size);
8315: # erva = expdata - export_rva;
8316: #
8317: # nexp = pe_as32 (expdata+24);
8318: # name_rvas = pe_as32 (expdata+32);
1.1 parser 8319: #
1.11 paf 8320: # printf ("EXPORTS\n");
8321: # for (i = 0; i<nexp; i++)
8322: # {
8323: # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8324: # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8325: # }
1.1 parser 8326: #
1.11 paf 8327: # return 0;
8328: # }
8329: # /* impgen.c ends here */
8330:
1.1 parser 8331: EOF
8332: ;;
1.11 paf 8333: esac
8334:
8335: # We use sed instead of cat because bash on DJGPP gets confused if
8336: # if finds mixed CR/LF and LF-only lines. Since sed operates in
8337: # text mode, it properly converts lines to CR/LF. This bash problem
8338: # is reportedly fixed, but why not run on old versions too?
8339: sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8340:
8341: mv -f "${ofile}T" "$ofile" || \
8342: (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8343: chmod +x "$ofile"
1.1 parser 8344: fi
8345:
8346:
8347:
8348:
8349:
8350: # This can be used to rebuild libtool when needed
1.11 paf 8351: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8352:
8353: # Always use rootdir libtool.
8354: LIBTOOL="$ac_aux_dir/libtool"
8355:
8356: # Prevent multiple expansion
8357:
8358:
8359:
8360:
8361: subdirs="$subdirs libltdl"
8362:
8363:
1.1 parser 8364:
8365:
8366:
8367:
8368:
8369:
8370:
8371:
1.11 paf 8372: for ac_header in stdio.h \
1.1 parser 8373: stdlib.h \
8374: string.h \
8375: setjmp.h \
1.3 paf 8376: ctype.h \
8377: setjmp.h
1.1 parser 8378:
8379: do
1.11 paf 8380: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8381: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8382: echo "$as_me:$LINENO: checking for $ac_header" >&5
8383: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8384: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8385: echo $ECHO_N "(cached) $ECHO_C" >&6
8386: fi
8387: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8388: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8389: else
8390: # Is the header compilable?
8391: echo "$as_me:$LINENO: checking $ac_header usability" >&5
8392: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8393: cat >conftest.$ac_ext <<_ACEOF
8394: #line $LINENO "configure"
8395: /* confdefs.h. */
8396: _ACEOF
8397: cat confdefs.h >>conftest.$ac_ext
8398: cat >>conftest.$ac_ext <<_ACEOF
8399: /* end confdefs.h. */
8400: $ac_includes_default
8401: #include <$ac_header>
8402: _ACEOF
8403: rm -f conftest.$ac_objext
8404: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8405: (eval $ac_compile) 2>&5
8406: ac_status=$?
8407: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408: (exit $ac_status); } &&
8409: { ac_try='test -s conftest.$ac_objext'
8410: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411: (eval $ac_try) 2>&5
8412: ac_status=$?
8413: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414: (exit $ac_status); }; }; then
8415: ac_header_compiler=yes
8416: else
8417: echo "$as_me: failed program was:" >&5
8418: sed 's/^/| /' conftest.$ac_ext >&5
8419:
8420: ac_header_compiler=no
8421: fi
8422: rm -f conftest.$ac_objext conftest.$ac_ext
8423: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8424: echo "${ECHO_T}$ac_header_compiler" >&6
8425:
8426: # Is the header present?
8427: echo "$as_me:$LINENO: checking $ac_header presence" >&5
8428: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8429: cat >conftest.$ac_ext <<_ACEOF
8430: #line $LINENO "configure"
8431: /* confdefs.h. */
8432: _ACEOF
8433: cat confdefs.h >>conftest.$ac_ext
8434: cat >>conftest.$ac_ext <<_ACEOF
8435: /* end confdefs.h. */
8436: #include <$ac_header>
8437: _ACEOF
8438: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8439: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8440: ac_status=$?
8441: grep -v '^ *+' conftest.er1 >conftest.err
8442: rm -f conftest.er1
8443: cat conftest.err >&5
8444: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445: (exit $ac_status); } >/dev/null; then
8446: if test -s conftest.err; then
1.15 ! paf 8447: ac_cpp_err=$ac_c_preproc_warn_flag
1.11 paf 8448: else
8449: ac_cpp_err=
8450: fi
8451: else
8452: ac_cpp_err=yes
8453: fi
8454: if test -z "$ac_cpp_err"; then
8455: ac_header_preproc=yes
1.1 parser 8456: else
1.11 paf 8457: echo "$as_me: failed program was:" >&5
8458: sed 's/^/| /' conftest.$ac_ext >&5
8459:
8460: ac_header_preproc=no
8461: fi
8462: rm -f conftest.err conftest.$ac_ext
8463: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8464: echo "${ECHO_T}$ac_header_preproc" >&6
8465:
8466: # So? What about this header?
8467: case $ac_header_compiler:$ac_header_preproc in
8468: yes:no )
8469: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8470: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8471: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8472: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8473: (
8474: cat <<\_ASBOX
8475: ## ------------------------------------ ##
8476: ## Report this to bug-autoconf@gnu.org. ##
8477: ## ------------------------------------ ##
8478: _ASBOX
8479: ) |
8480: sed "s/^/$as_me: WARNING: /" >&2
8481: ;;
8482: no:yes )
8483: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8484: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8485: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8486: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8487: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8488: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8489: (
8490: cat <<\_ASBOX
8491: ## ------------------------------------ ##
8492: ## Report this to bug-autoconf@gnu.org. ##
8493: ## ------------------------------------ ##
8494: _ASBOX
8495: ) |
8496: sed "s/^/$as_me: WARNING: /" >&2
8497: ;;
8498: esac
8499: echo "$as_me:$LINENO: checking for $ac_header" >&5
8500: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8501: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8502: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 8503: else
1.11 paf 8504: eval "$as_ac_Header=$ac_header_preproc"
1.1 parser 8505: fi
1.11 paf 8506: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8507: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8508:
1.1 parser 8509: fi
1.11 paf 8510: if test `eval echo '${'$as_ac_Header'}'` = yes; then
8511: cat >>confdefs.h <<_ACEOF
8512: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8513: _ACEOF
8514:
1.1 parser 8515: fi
1.11 paf 8516:
1.1 parser 8517: done
8518:
8519:
1.11 paf 8520: echo "$as_me:$LINENO: checking for BSD setenv/getenv/unsetenv" >&5
8521: echo $ECHO_N "checking for BSD setenv/getenv/unsetenv... $ECHO_C" >&6
8522: cat >conftest.$ac_ext <<_ACEOF
8523: #line $LINENO "configure"
8524: /* confdefs.h. */
8525: _ACEOF
8526: cat confdefs.h >>conftest.$ac_ext
8527: cat >>conftest.$ac_ext <<_ACEOF
8528: /* end confdefs.h. */
1.4 paf 8529: #ifdef HAVE_STDLIB_H
8530: # include <stdlib.h>
8531: #endif
8532: #ifdef HAVE_STRING_H
8533: # include <string.h>
8534: #endif
8535:
1.11 paf 8536: int
8537: main ()
8538: {
1.4 paf 8539: #define TEST_NAME "oracle-configure-test-var"
8540: #define TEST_VALUE "oracle-configure-test-value"
8541: int result=setenv(TEST_NAME, TEST_VALUE, 1/*overwrite*/);
8542: char *getenv_value=getenv(TEST_NAME);
8543: if(!getenv_value)
8544: return 1;
8545: if(strcmp(getenv_value, TEST_VALUE)!=0)
8546: return 2;
8547: unsetenv(TEST_NAME);
8548:
1.11 paf 8549: ;
8550: return 0;
8551: }
8552: _ACEOF
8553: rm -f conftest.$ac_objext
8554: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8555: (eval $ac_compile) 2>&5
8556: ac_status=$?
8557: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558: (exit $ac_status); } &&
8559: { ac_try='test -s conftest.$ac_objext'
8560: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561: (eval $ac_try) 2>&5
8562: ac_status=$?
8563: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564: (exit $ac_status); }; }; then
8565:
8566: echo "$as_me:$LINENO: result: yes" >&5
8567: echo "${ECHO_T}yes" >&6
8568:
8569: cat >>confdefs.h <<\_ACEOF
8570: #define HAVE_SETENV
8571: _ACEOF
1.4 paf 8572:
8573:
8574: else
1.11 paf 8575: echo "$as_me: failed program was:" >&5
8576: sed 's/^/| /' conftest.$ac_ext >&5
8577:
8578: echo "$as_me:$LINENO: result: no" >&5
8579: echo "${ECHO_T}no" >&6
8580:
8581: echo "$as_me:$LINENO: checking for POSIX putenv/getenv" >&5
8582: echo $ECHO_N "checking for POSIX putenv/getenv... $ECHO_C" >&6
8583: cat >conftest.$ac_ext <<_ACEOF
8584: #line $LINENO "configure"
8585: /* confdefs.h. */
8586: _ACEOF
8587: cat confdefs.h >>conftest.$ac_ext
8588: cat >>conftest.$ac_ext <<_ACEOF
8589: /* end confdefs.h. */
1.4 paf 8590: #ifdef HAVE_STDLIB_H
8591: # include <stdlib.h>
8592: #endif
8593: #ifdef HAVE_STRING_H
8594: # include <string.h>
8595: #endif
1.1 parser 8596:
1.11 paf 8597: int
8598: main ()
8599: {
8600: #define TEST_NAME "oracle-configure-test-var"
8601: #define TEST_VALUE "oracle-configure-test-value"
8602: int result=putenv(TEST_NAME"="TEST_VALUE);
8603: char *getenv_value=getenv(TEST_NAME);
8604: if(!getenv_value)
8605: return 1;
8606: if(strcmp(getenv_value, TEST_NAME)!=0)
8607: return 2;
1.1 parser 8608:
1.11 paf 8609: ;
8610: return 0;
8611: }
8612: _ACEOF
8613: rm -f conftest.$ac_objext
8614: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8615: (eval $ac_compile) 2>&5
8616: ac_status=$?
8617: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618: (exit $ac_status); } &&
8619: { ac_try='test -s conftest.$ac_objext'
8620: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621: (eval $ac_try) 2>&5
8622: ac_status=$?
8623: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624: (exit $ac_status); }; }; then
8625:
8626: echo "$as_me:$LINENO: result: yes" >&5
8627: echo "${ECHO_T}yes" >&6
8628:
8629: cat >>confdefs.h <<\_ACEOF
8630: #define HAVE_PUTENV
8631: _ACEOF
8632:
8633:
8634: else
8635: echo "$as_me: failed program was:" >&5
8636: sed 's/^/| /' conftest.$ac_ext >&5
8637:
8638: echo "$as_me:$LINENO: result: no" >&5
8639: echo "${ECHO_T}no" >&6
8640: { { echo "$as_me:$LINENO: error: \"there must be some function to modify environment\"" >&5
8641: echo "$as_me: error: \"there must be some function to modify environment\"" >&2;}
8642: { (exit 1); exit 1; }; }
8643:
8644: fi
8645: rm -f conftest.$ac_objext conftest.$ac_ext
8646:
8647: fi
8648: rm -f conftest.$ac_objext conftest.$ac_ext
8649:
8650:
8651: echo "$as_me:$LINENO: checking for size_t" >&5
8652: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8653: if test "${ac_cv_type_size_t+set}" = set; then
8654: echo $ECHO_N "(cached) $ECHO_C" >&6
8655: else
8656: cat >conftest.$ac_ext <<_ACEOF
8657: #line $LINENO "configure"
8658: /* confdefs.h. */
8659: _ACEOF
8660: cat confdefs.h >>conftest.$ac_ext
8661: cat >>conftest.$ac_ext <<_ACEOF
8662: /* end confdefs.h. */
8663: $ac_includes_default
8664: int
8665: main ()
8666: {
8667: if ((size_t *) 0)
8668: return 0;
8669: if (sizeof (size_t))
8670: return 0;
8671: ;
8672: return 0;
8673: }
8674: _ACEOF
8675: rm -f conftest.$ac_objext
8676: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8677: (eval $ac_compile) 2>&5
8678: ac_status=$?
8679: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680: (exit $ac_status); } &&
8681: { ac_try='test -s conftest.$ac_objext'
8682: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683: (eval $ac_try) 2>&5
8684: ac_status=$?
8685: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686: (exit $ac_status); }; }; then
1.1 parser 8687: ac_cv_type_size_t=yes
8688: else
1.11 paf 8689: echo "$as_me: failed program was:" >&5
8690: sed 's/^/| /' conftest.$ac_ext >&5
8691:
8692: ac_cv_type_size_t=no
8693: fi
8694: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 parser 8695: fi
1.11 paf 8696: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8697: echo "${ECHO_T}$ac_cv_type_size_t" >&6
8698: if test $ac_cv_type_size_t = yes; then
8699: :
8700: else
1.1 parser 8701:
1.11 paf 8702: cat >>confdefs.h <<_ACEOF
1.1 parser 8703: #define size_t unsigned
1.11 paf 8704: _ACEOF
1.1 parser 8705:
8706: fi
8707:
8708:
8709:
8710:
1.11 paf 8711: ac_config_files="$ac_config_files Makefile"
8712: cat >confcache <<\_ACEOF
1.1 parser 8713: # This file is a shell script that caches the results of configure
8714: # tests run on this system so they can be shared between configure
1.11 paf 8715: # scripts and configure runs, see configure's option --config-cache.
8716: # It is not useful on other systems. If it contains results you don't
8717: # want to keep, you may remove or edit it.
1.1 parser 8718: #
1.11 paf 8719: # config.status only pays attention to the cache file if you give it
8720: # the --recheck option to rerun configure.
1.1 parser 8721: #
1.11 paf 8722: # `ac_cv_env_foo' variables (set or unset) will be overridden when
8723: # loading this file, other *unset* `ac_cv_foo' will be assigned the
8724: # following values.
8725:
8726: _ACEOF
8727:
1.1 parser 8728: # The following way of writing the cache mishandles newlines in values,
8729: # but we know of no workaround that is simple, portable, and efficient.
8730: # So, don't put newlines in cache variables' values.
8731: # Ultrix sh set writes to stderr and can't be redirected directly,
8732: # and sets the high bit in the cache file unless we assign to the vars.
1.11 paf 8733: {
8734: (set) 2>&1 |
8735: case `(ac_space=' '; set | grep ac_space) 2>&1` in
8736: *ac_space=\ *)
8737: # `set' does not quote correctly, so add quotes (double-quote
8738: # substitution turns \\\\ into \\, and sed turns \\ into \).
8739: sed -n \
8740: "s/'/'\\\\''/g;
8741: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8742: ;;
8743: *)
8744: # `set' quotes correctly as required by POSIX, so do not add quotes.
8745: sed -n \
8746: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8747: ;;
8748: esac;
8749: } |
8750: sed '
8751: t clear
8752: : clear
8753: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8754: t end
8755: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8756: : end' >>confcache
8757: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 parser 8758: if test -w $cache_file; then
1.11 paf 8759: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8760: cat confcache >$cache_file
1.1 parser 8761: else
8762: echo "not updating unwritable cache $cache_file"
8763: fi
8764: fi
8765: rm -f confcache
8766:
8767: test "x$prefix" = xNONE && prefix=$ac_default_prefix
8768: # Let make expand exec_prefix.
8769: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8770:
1.11 paf 8771: # VPATH may cause trouble with some makes, so we remove $(srcdir),
8772: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8773: # trailing colons and then remove the whole line if VPATH becomes empty
8774: # (actually we leave an empty line to preserve line numbers).
1.1 parser 8775: if test "x$srcdir" = x.; then
1.11 paf 8776: ac_vpsub='/^[ ]*VPATH[ ]*=/{
8777: s/:*\$(srcdir):*/:/;
8778: s/:*\${srcdir}:*/:/;
8779: s/:*@srcdir@:*/:/;
8780: s/^\([^=]*=[ ]*\):*/\1/;
8781: s/:*$//;
8782: s/^[^=]*=[ ]*$//;
8783: }'
1.1 parser 8784: fi
8785:
1.11 paf 8786: DEFS=-DHAVE_CONFIG_H
8787:
8788: ac_libobjs=
8789: ac_ltlibobjs=
8790: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8791: # 1. Remove the extension, and $U if already installed.
8792: ac_i=`echo "$ac_i" |
8793: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8794: # 2. Add them.
8795: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8796: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8797: done
8798: LIBOBJS=$ac_libobjs
8799:
8800: LTLIBOBJS=$ac_ltlibobjs
8801:
1.1 parser 8802:
1.11 paf 8803: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8804: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8805: Usually this means the macro was only invoked conditionally." >&5
8806: echo "$as_me: error: conditional \"AMDEP\" was never defined.
8807: Usually this means the macro was only invoked conditionally." >&2;}
8808: { (exit 1); exit 1; }; }
8809: fi
8810: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8811: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8812: Usually this means the macro was only invoked conditionally." >&5
8813: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8814: Usually this means the macro was only invoked conditionally." >&2;}
8815: { (exit 1); exit 1; }; }
8816: fi
8817: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8818: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8819: Usually this means the macro was only invoked conditionally." >&5
8820: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8821: Usually this means the macro was only invoked conditionally." >&2;}
8822: { (exit 1); exit 1; }; }
8823: fi
1.1 parser 8824:
8825: : ${CONFIG_STATUS=./config.status}
1.11 paf 8826: ac_clean_files_save=$ac_clean_files
8827: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8828: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8829: echo "$as_me: creating $CONFIG_STATUS" >&6;}
8830: cat >$CONFIG_STATUS <<_ACEOF
8831: #! $SHELL
8832: # Generated by $as_me.
8833: # Run this file to recreate the current configuration.
8834: # Compiler output produced by configure, useful for debugging
8835: # configure, is in config.log if it exists.
8836:
8837: debug=false
8838: ac_cs_recheck=false
8839: ac_cs_silent=false
8840: SHELL=\${CONFIG_SHELL-$SHELL}
8841: _ACEOF
8842:
8843: cat >>$CONFIG_STATUS <<\_ACEOF
8844: ## --------------------- ##
8845: ## M4sh Initialization. ##
8846: ## --------------------- ##
8847:
8848: # Be Bourne compatible
8849: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8850: emulate sh
8851: NULLCMD=:
8852: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8853: # is contrary to our usage. Disable this feature.
8854: alias -g '${1+"$@"}'='"$@"'
8855: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8856: set -o posix
8857: fi
8858:
8859: # Support unset when possible.
8860: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8861: as_unset=unset
8862: else
8863: as_unset=false
8864: fi
8865:
8866:
8867: # Work around bugs in pre-3.0 UWIN ksh.
8868: $as_unset ENV MAIL MAILPATH
8869: PS1='$ '
8870: PS2='> '
8871: PS4='+ '
8872:
8873: # NLS nuisances.
8874: for as_var in \
8875: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8876: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8877: LC_TELEPHONE LC_TIME
8878: do
8879: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
8880: eval $as_var=C; export $as_var
8881: else
8882: $as_unset $as_var
8883: fi
8884: done
8885:
8886: # Required to use basename.
8887: if expr a : '\(a\)' >/dev/null 2>&1; then
8888: as_expr=expr
8889: else
8890: as_expr=false
8891: fi
8892:
8893: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8894: as_basename=basename
8895: else
8896: as_basename=false
8897: fi
8898:
8899:
8900: # Name of the executable.
8901: as_me=`$as_basename "$0" ||
8902: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8903: X"$0" : 'X\(//\)$' \| \
8904: X"$0" : 'X\(/\)$' \| \
8905: . : '\(.\)' 2>/dev/null ||
8906: echo X/"$0" |
8907: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8908: /^X\/\(\/\/\)$/{ s//\1/; q; }
8909: /^X\/\(\/\).*/{ s//\1/; q; }
8910: s/.*/./; q'`
8911:
8912:
8913: # PATH needs CR, and LINENO needs CR and PATH.
8914: # Avoid depending upon Character Ranges.
8915: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8916: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8917: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8918: as_cr_digits='0123456789'
8919: as_cr_alnum=$as_cr_Letters$as_cr_digits
8920:
8921: # The user is always right.
8922: if test "${PATH_SEPARATOR+set}" != set; then
8923: echo "#! /bin/sh" >conf$$.sh
8924: echo "exit 0" >>conf$$.sh
8925: chmod +x conf$$.sh
8926: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8927: PATH_SEPARATOR=';'
8928: else
8929: PATH_SEPARATOR=:
8930: fi
8931: rm -f conf$$.sh
8932: fi
8933:
8934:
8935: as_lineno_1=$LINENO
8936: as_lineno_2=$LINENO
8937: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8938: test "x$as_lineno_1" != "x$as_lineno_2" &&
8939: test "x$as_lineno_3" = "x$as_lineno_2" || {
8940: # Find who we are. Look in the path if we contain no path at all
8941: # relative or not.
8942: case $0 in
8943: *[\\/]* ) as_myself=$0 ;;
8944: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945: for as_dir in $PATH
8946: do
8947: IFS=$as_save_IFS
8948: test -z "$as_dir" && as_dir=.
8949: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8950: done
8951:
8952: ;;
8953: esac
8954: # We did not find ourselves, most probably we were run as `sh COMMAND'
8955: # in which case we are not to be found in the path.
8956: if test "x$as_myself" = x; then
8957: as_myself=$0
8958: fi
8959: if test ! -f "$as_myself"; then
8960: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8961: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8962: { (exit 1); exit 1; }; }
8963: fi
8964: case $CONFIG_SHELL in
8965: '')
8966: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8968: do
8969: IFS=$as_save_IFS
8970: test -z "$as_dir" && as_dir=.
8971: for as_base in sh bash ksh sh5; do
8972: case $as_dir in
8973: /*)
8974: if ("$as_dir/$as_base" -c '
8975: as_lineno_1=$LINENO
8976: as_lineno_2=$LINENO
8977: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8978: test "x$as_lineno_1" != "x$as_lineno_2" &&
8979: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8980: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8981: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8982: CONFIG_SHELL=$as_dir/$as_base
8983: export CONFIG_SHELL
8984: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8985: fi;;
8986: esac
8987: done
8988: done
8989: ;;
8990: esac
8991:
8992: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8993: # uniformly replaced by the line number. The first 'sed' inserts a
8994: # line-number line before each line; the second 'sed' does the real
8995: # work. The second script uses 'N' to pair each line-number line
8996: # with the numbered line, and appends trailing '-' during
8997: # substitution so that $LINENO is not a special case at line end.
8998: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8999: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9000: sed '=' <$as_myself |
9001: sed '
9002: N
9003: s,$,-,
9004: : loop
9005: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9006: t loop
9007: s,-$,,
9008: s,^['$as_cr_digits']*\n,,
9009: ' >$as_me.lineno &&
9010: chmod +x $as_me.lineno ||
9011: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9012: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9013: { (exit 1); exit 1; }; }
9014:
9015: # Don't try to exec as it changes $[0], causing all sort of problems
9016: # (the dirname of $[0] is not the place where we might find the
9017: # original and so on. Autoconf is especially sensible to this).
9018: . ./$as_me.lineno
9019: # Exit status is that of the last command.
9020: exit
9021: }
9022:
9023:
9024: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9025: *c*,-n*) ECHO_N= ECHO_C='
9026: ' ECHO_T=' ' ;;
9027: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9028: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9029: esac
9030:
9031: if expr a : '\(a\)' >/dev/null 2>&1; then
9032: as_expr=expr
9033: else
9034: as_expr=false
9035: fi
9036:
9037: rm -f conf$$ conf$$.exe conf$$.file
9038: echo >conf$$.file
9039: if ln -s conf$$.file conf$$ 2>/dev/null; then
9040: # We could just check for DJGPP; but this test a) works b) is more generic
9041: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9042: if test -f conf$$.exe; then
9043: # Don't use ln at all; we don't have any links
9044: as_ln_s='cp -p'
9045: else
9046: as_ln_s='ln -s'
9047: fi
9048: elif ln conf$$.file conf$$ 2>/dev/null; then
9049: as_ln_s=ln
9050: else
9051: as_ln_s='cp -p'
9052: fi
9053: rm -f conf$$ conf$$.exe conf$$.file
9054:
9055: if mkdir -p . 2>/dev/null; then
9056: as_mkdir_p=:
9057: else
9058: as_mkdir_p=false
9059: fi
9060:
9061: as_executable_p="test -f"
9062:
9063: # Sed expression to map a string onto a valid CPP name.
9064: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9065:
9066: # Sed expression to map a string onto a valid variable name.
9067: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9068:
9069:
9070: # IFS
9071: # We need space, tab and new line, in precisely that order.
9072: as_nl='
9073: '
9074: IFS=" $as_nl"
9075:
9076: # CDPATH.
9077: $as_unset CDPATH
9078:
9079: exec 6>&1
9080:
9081: # Open the log real soon, to keep \$[0] and so on meaningful, and to
9082: # report actual input values of CONFIG_FILES etc. instead of their
9083: # values after options handling. Logging --version etc. is OK.
9084: exec 5>>config.log
9085: {
9086: echo
9087: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9088: ## Running $as_me. ##
9089: _ASBOX
9090: } >&5
9091: cat >&5 <<_CSEOF
9092:
9093: This file was extended by $as_me, which was
9094: generated by GNU Autoconf 2.57. Invocation command line was
9095:
9096: CONFIG_FILES = $CONFIG_FILES
9097: CONFIG_HEADERS = $CONFIG_HEADERS
9098: CONFIG_LINKS = $CONFIG_LINKS
9099: CONFIG_COMMANDS = $CONFIG_COMMANDS
9100: $ $0 $@
9101:
9102: _CSEOF
9103: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9104: echo >&5
9105: _ACEOF
9106:
9107: # Files that config.status was made for.
9108: if test -n "$ac_config_files"; then
9109: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9110: fi
9111:
9112: if test -n "$ac_config_headers"; then
9113: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9114: fi
9115:
9116: if test -n "$ac_config_links"; then
9117: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9118: fi
9119:
9120: if test -n "$ac_config_commands"; then
9121: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9122: fi
9123:
9124: cat >>$CONFIG_STATUS <<\_ACEOF
9125:
9126: ac_cs_usage="\
9127: \`$as_me' instantiates files from templates according to the
9128: current configuration.
9129:
9130: Usage: $0 [OPTIONS] [FILE]...
9131:
9132: -h, --help print this help, then exit
9133: -V, --version print version number, then exit
9134: -q, --quiet do not print progress messages
9135: -d, --debug don't remove temporary files
9136: --recheck update $as_me by reconfiguring in the same conditions
9137: --file=FILE[:TEMPLATE]
9138: instantiate the configuration file FILE
9139: --header=FILE[:TEMPLATE]
9140: instantiate the configuration header FILE
9141:
9142: Configuration files:
9143: $config_files
9144:
9145: Configuration headers:
9146: $config_headers
9147:
9148: Configuration commands:
9149: $config_commands
9150:
9151: Report bugs to <bug-autoconf@gnu.org>."
9152: _ACEOF
9153:
9154: cat >>$CONFIG_STATUS <<_ACEOF
9155: ac_cs_version="\\
9156: config.status
9157: configured by $0, generated by GNU Autoconf 2.57,
9158: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9159:
9160: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9161: Free Software Foundation, Inc.
9162: This config.status script is free software; the Free Software Foundation
9163: gives unlimited permission to copy, distribute and modify it."
9164: srcdir=$srcdir
9165: INSTALL="$INSTALL"
9166: _ACEOF
9167:
9168: cat >>$CONFIG_STATUS <<\_ACEOF
9169: # If no file are specified by the user, then we need to provide default
9170: # value. By we need to know if files were specified by the user.
9171: ac_need_defaults=:
9172: while test $# != 0
9173: do
9174: case $1 in
9175: --*=*)
9176: ac_option=`expr "x$1" : 'x\([^=]*\)='`
9177: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9178: ac_shift=:
9179: ;;
9180: -*)
9181: ac_option=$1
9182: ac_optarg=$2
9183: ac_shift=shift
9184: ;;
9185: *) # This is not an option, so the user has probably given explicit
9186: # arguments.
9187: ac_option=$1
9188: ac_need_defaults=false;;
9189: esac
9190:
9191: case $ac_option in
9192: # Handling of the options.
9193: _ACEOF
9194: cat >>$CONFIG_STATUS <<\_ACEOF
9195: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9196: ac_cs_recheck=: ;;
9197: --version | --vers* | -V )
9198: echo "$ac_cs_version"; exit 0 ;;
9199: --he | --h)
9200: # Conflict between --help and --header
9201: { { echo "$as_me:$LINENO: error: ambiguous option: $1
9202: Try \`$0 --help' for more information." >&5
9203: echo "$as_me: error: ambiguous option: $1
9204: Try \`$0 --help' for more information." >&2;}
9205: { (exit 1); exit 1; }; };;
9206: --help | --hel | -h )
9207: echo "$ac_cs_usage"; exit 0 ;;
9208: --debug | --d* | -d )
9209: debug=: ;;
9210: --file | --fil | --fi | --f )
9211: $ac_shift
9212: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9213: ac_need_defaults=false;;
9214: --header | --heade | --head | --hea )
9215: $ac_shift
9216: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9217: ac_need_defaults=false;;
9218: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9219: | -silent | --silent | --silen | --sile | --sil | --si | --s)
9220: ac_cs_silent=: ;;
9221:
9222: # This is an error.
9223: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9224: Try \`$0 --help' for more information." >&5
9225: echo "$as_me: error: unrecognized option: $1
9226: Try \`$0 --help' for more information." >&2;}
9227: { (exit 1); exit 1; }; } ;;
9228:
9229: *) ac_config_targets="$ac_config_targets $1" ;;
1.1 parser 9230:
1.11 paf 9231: esac
9232: shift
9233: done
9234:
9235: ac_configure_extra_args=
9236:
9237: if $ac_cs_silent; then
9238: exec 6>/dev/null
9239: ac_configure_extra_args="$ac_configure_extra_args --silent"
9240: fi
9241:
9242: _ACEOF
9243: cat >>$CONFIG_STATUS <<_ACEOF
9244: if \$ac_cs_recheck; then
9245: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9246: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9247: fi
9248:
9249: _ACEOF
9250:
9251: cat >>$CONFIG_STATUS <<_ACEOF
1.1 parser 9252: #
1.11 paf 9253: # INIT-COMMANDS section.
1.1 parser 9254: #
9255:
1.11 paf 9256: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9257:
9258: _ACEOF
9259:
9260:
9261:
9262: cat >>$CONFIG_STATUS <<\_ACEOF
9263: for ac_config_target in $ac_config_targets
1.1 parser 9264: do
1.11 paf 9265: case "$ac_config_target" in
9266: # Handling of arguments.
9267: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9268: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9269: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
9270: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9271: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9272: { (exit 1); exit 1; }; };;
1.1 parser 9273: esac
9274: done
9275:
1.11 paf 9276: # If the user did not use the arguments to specify the items to instantiate,
9277: # then the envvar interface is used. Set only those that are not.
9278: # We use the long form for the default assignment because of an extremely
9279: # bizarre bug on SunOS 4.1.3.
9280: if $ac_need_defaults; then
9281: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9282: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9283: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9284: fi
9285:
9286: # Have a temporary directory for convenience. Make it in the build tree
9287: # simply because there is no reason to put it here, and in addition,
9288: # creating and moving files from /tmp can sometimes cause problems.
9289: # Create a temporary directory, and hook for its removal unless debugging.
9290: $debug ||
9291: {
9292: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9293: trap '{ (exit 1); exit 1; }' 1 2 13 15
9294: }
9295:
9296: # Create a (secure) tmp directory for tmp files.
9297:
9298: {
9299: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9300: test -n "$tmp" && test -d "$tmp"
9301: } ||
9302: {
9303: tmp=./confstat$$-$RANDOM
9304: (umask 077 && mkdir $tmp)
9305: } ||
9306: {
9307: echo "$me: cannot create a temporary directory in ." >&2
9308: { (exit 1); exit 1; }
9309: }
9310:
9311: _ACEOF
1.1 parser 9312:
1.11 paf 9313: cat >>$CONFIG_STATUS <<_ACEOF
1.1 parser 9314:
1.11 paf 9315: #
9316: # CONFIG_FILES section.
9317: #
1.1 parser 9318:
1.11 paf 9319: # No need to generate the scripts if there are no CONFIG_FILES.
9320: # This happens for instance when ./config.status config.h
9321: if test -n "\$CONFIG_FILES"; then
9322: # Protect against being on the right side of a sed subst in config.status.
9323: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9324: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9325: s,@SHELL@,$SHELL,;t t
9326: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9327: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9328: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9329: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9330: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9331: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9332: s,@exec_prefix@,$exec_prefix,;t t
9333: s,@prefix@,$prefix,;t t
9334: s,@program_transform_name@,$program_transform_name,;t t
9335: s,@bindir@,$bindir,;t t
9336: s,@sbindir@,$sbindir,;t t
9337: s,@libexecdir@,$libexecdir,;t t
9338: s,@datadir@,$datadir,;t t
9339: s,@sysconfdir@,$sysconfdir,;t t
9340: s,@sharedstatedir@,$sharedstatedir,;t t
9341: s,@localstatedir@,$localstatedir,;t t
9342: s,@libdir@,$libdir,;t t
9343: s,@includedir@,$includedir,;t t
9344: s,@oldincludedir@,$oldincludedir,;t t
9345: s,@infodir@,$infodir,;t t
9346: s,@mandir@,$mandir,;t t
9347: s,@build_alias@,$build_alias,;t t
9348: s,@host_alias@,$host_alias,;t t
9349: s,@target_alias@,$target_alias,;t t
9350: s,@DEFS@,$DEFS,;t t
9351: s,@ECHO_C@,$ECHO_C,;t t
9352: s,@ECHO_N@,$ECHO_N,;t t
9353: s,@ECHO_T@,$ECHO_T,;t t
9354: s,@LIBS@,$LIBS,;t t
9355: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9356: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9357: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9358: s,@CYGPATH_W@,$CYGPATH_W,;t t
9359: s,@PACKAGE@,$PACKAGE,;t t
9360: s,@VERSION@,$VERSION,;t t
9361: s,@ACLOCAL@,$ACLOCAL,;t t
9362: s,@AUTOCONF@,$AUTOCONF,;t t
9363: s,@AUTOMAKE@,$AUTOMAKE,;t t
9364: s,@AUTOHEADER@,$AUTOHEADER,;t t
9365: s,@MAKEINFO@,$MAKEINFO,;t t
9366: s,@AMTAR@,$AMTAR,;t t
9367: s,@install_sh@,$install_sh,;t t
9368: s,@STRIP@,$STRIP,;t t
9369: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9370: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9371: s,@AWK@,$AWK,;t t
9372: s,@SET_MAKE@,$SET_MAKE,;t t
9373: s,@ORACLE_OCI_INC@,$ORACLE_OCI_INC,;t t
9374: s,@ORACLE_PUBLIC_INC@,$ORACLE_PUBLIC_INC,;t t
9375: s,@CXX@,$CXX,;t t
9376: s,@CXXFLAGS@,$CXXFLAGS,;t t
9377: s,@LDFLAGS@,$LDFLAGS,;t t
9378: s,@CPPFLAGS@,$CPPFLAGS,;t t
9379: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9380: s,@EXEEXT@,$EXEEXT,;t t
9381: s,@OBJEXT@,$OBJEXT,;t t
9382: s,@DEPDIR@,$DEPDIR,;t t
9383: s,@am__include@,$am__include,;t t
9384: s,@am__quote@,$am__quote,;t t
9385: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9386: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9387: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9388: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9389: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
9390: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
1.15 ! paf 9391: s,@CC@,$CC,;t t
! 9392: s,@CFLAGS@,$CFLAGS,;t t
! 9393: s,@ac_ct_CC@,$ac_ct_CC,;t t
! 9394: s,@CCDEPMODE@,$CCDEPMODE,;t t
! 9395: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
! 9396: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
1.11 paf 9397: s,@INCLTDL@,$INCLTDL,;t t
9398: s,@LIBLTDL@,$LIBLTDL,;t t
9399: s,@LIBADD_DL@,$LIBADD_DL,;t t
9400: s,@build@,$build,;t t
9401: s,@build_cpu@,$build_cpu,;t t
9402: s,@build_vendor@,$build_vendor,;t t
9403: s,@build_os@,$build_os,;t t
9404: s,@host@,$host,;t t
9405: s,@host_cpu@,$host_cpu,;t t
9406: s,@host_vendor@,$host_vendor,;t t
9407: s,@host_os@,$host_os,;t t
9408: s,@LN_S@,$LN_S,;t t
9409: s,@ECHO@,$ECHO,;t t
9410: s,@RANLIB@,$RANLIB,;t t
9411: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
1.15 ! paf 9412: s,@CPP@,$CPP,;t t
1.11 paf 9413: s,@EGREP@,$EGREP,;t t
9414: s,@LIBTOOL@,$LIBTOOL,;t t
9415: s,@subdirs@,$subdirs,;t t
9416: s,@LIBOBJS@,$LIBOBJS,;t t
9417: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.1 parser 9418: CEOF
9419:
1.11 paf 9420: _ACEOF
1.1 parser 9421:
1.11 paf 9422: cat >>$CONFIG_STATUS <<\_ACEOF
9423: # Split the substitutions into bite-sized pieces for seds with
9424: # small command number limits, like on Digital OSF/1 and HP-UX.
9425: ac_max_sed_lines=48
9426: ac_sed_frag=1 # Number of current file.
9427: ac_beg=1 # First line for current file.
9428: ac_end=$ac_max_sed_lines # Line after last line for current file.
9429: ac_more_lines=:
9430: ac_sed_cmds=
9431: while $ac_more_lines; do
9432: if test $ac_beg -gt 1; then
9433: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9434: else
9435: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9436: fi
9437: if test ! -s $tmp/subs.frag; then
9438: ac_more_lines=false
9439: else
9440: # The purpose of the label and of the branching condition is to
9441: # speed up the sed processing (if there are no `@' at all, there
9442: # is no need to browse any of the substitutions).
9443: # These are the two extra sed commands mentioned above.
9444: (echo ':t
9445: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9446: if test -z "$ac_sed_cmds"; then
9447: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9448: else
9449: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9450: fi
9451: ac_sed_frag=`expr $ac_sed_frag + 1`
9452: ac_beg=$ac_end
9453: ac_end=`expr $ac_end + $ac_max_sed_lines`
9454: fi
9455: done
9456: if test -z "$ac_sed_cmds"; then
9457: ac_sed_cmds=cat
1.1 parser 9458: fi
1.11 paf 9459: fi # test -n "$CONFIG_FILES"
1.1 parser 9460:
1.11 paf 9461: _ACEOF
9462: cat >>$CONFIG_STATUS <<\_ACEOF
9463: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9464: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9465: case $ac_file in
9466: - | *:- | *:-:* ) # input from stdin
9467: cat >$tmp/stdin
9468: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9469: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9470: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9471: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9472: * ) ac_file_in=$ac_file.in ;;
9473: esac
1.1 parser 9474:
1.11 paf 9475: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9476: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9477: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9478: X"$ac_file" : 'X\(//\)[^/]' \| \
9479: X"$ac_file" : 'X\(//\)$' \| \
9480: X"$ac_file" : 'X\(/\)' \| \
9481: . : '\(.\)' 2>/dev/null ||
9482: echo X"$ac_file" |
9483: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9484: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9485: /^X\(\/\/\)$/{ s//\1/; q; }
9486: /^X\(\/\).*/{ s//\1/; q; }
9487: s/.*/./; q'`
9488: { if $as_mkdir_p; then
9489: mkdir -p "$ac_dir"
9490: else
9491: as_dir="$ac_dir"
9492: as_dirs=
9493: while test ! -d "$as_dir"; do
9494: as_dirs="$as_dir $as_dirs"
9495: as_dir=`(dirname "$as_dir") 2>/dev/null ||
9496: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9497: X"$as_dir" : 'X\(//\)[^/]' \| \
9498: X"$as_dir" : 'X\(//\)$' \| \
9499: X"$as_dir" : 'X\(/\)' \| \
9500: . : '\(.\)' 2>/dev/null ||
9501: echo X"$as_dir" |
9502: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9503: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9504: /^X\(\/\/\)$/{ s//\1/; q; }
9505: /^X\(\/\).*/{ s//\1/; q; }
9506: s/.*/./; q'`
9507: done
9508: test ! -n "$as_dirs" || mkdir $as_dirs
9509: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9510: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9511: { (exit 1); exit 1; }; }; }
9512:
9513: ac_builddir=.
9514:
9515: if test "$ac_dir" != .; then
9516: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9517: # A "../" for each directory in $ac_dir_suffix.
9518: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9519: else
9520: ac_dir_suffix= ac_top_builddir=
9521: fi
9522:
9523: case $srcdir in
9524: .) # No --srcdir option. We are building in place.
9525: ac_srcdir=.
9526: if test -z "$ac_top_builddir"; then
9527: ac_top_srcdir=.
9528: else
9529: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9530: fi ;;
9531: [\\/]* | ?:[\\/]* ) # Absolute path.
9532: ac_srcdir=$srcdir$ac_dir_suffix;
9533: ac_top_srcdir=$srcdir ;;
1.1 parser 9534: *) # Relative path.
1.11 paf 9535: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9536: ac_top_srcdir=$ac_top_builddir$srcdir ;;
9537: esac
9538: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9539: # absolute.
9540: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9541: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9542: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9543: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9544:
9545:
9546: case $INSTALL in
9547: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9548: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.1 parser 9549: esac
9550:
1.11 paf 9551: if test x"$ac_file" != x-; then
9552: { echo "$as_me:$LINENO: creating $ac_file" >&5
9553: echo "$as_me: creating $ac_file" >&6;}
9554: rm -f "$ac_file"
9555: fi
9556: # Let's still pretend it is `configure' which instantiates (i.e., don't
9557: # use $as_me), people would be surprised to read:
9558: # /* config.h. Generated by config.status. */
9559: if test x"$ac_file" = x-; then
9560: configure_input=
9561: else
9562: configure_input="$ac_file. "
9563: fi
9564: configure_input=$configure_input"Generated from `echo $ac_file_in |
9565: sed 's,.*/,,'` by configure."
9566:
9567: # First look for the input files in the build tree, otherwise in the
9568: # src tree.
9569: ac_file_inputs=`IFS=:
9570: for f in $ac_file_in; do
9571: case $f in
9572: -) echo $tmp/stdin ;;
9573: [\\/$]*)
9574: # Absolute (can't be DOS-style, as IFS=:)
9575: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9576: echo "$as_me: error: cannot find input file: $f" >&2;}
9577: { (exit 1); exit 1; }; }
9578: echo $f;;
9579: *) # Relative
9580: if test -f "$f"; then
9581: # Build tree
9582: echo $f
9583: elif test -f "$srcdir/$f"; then
9584: # Source tree
9585: echo $srcdir/$f
9586: else
9587: # /dev/null tree
9588: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9589: echo "$as_me: error: cannot find input file: $f" >&2;}
9590: { (exit 1); exit 1; }; }
9591: fi;;
9592: esac
9593: done` || { (exit 1); exit 1; }
9594: _ACEOF
9595: cat >>$CONFIG_STATUS <<_ACEOF
9596: sed "$ac_vpsub
9597: $extrasub
9598: _ACEOF
9599: cat >>$CONFIG_STATUS <<\_ACEOF
9600: :t
9601: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9602: s,@configure_input@,$configure_input,;t t
9603: s,@srcdir@,$ac_srcdir,;t t
9604: s,@abs_srcdir@,$ac_abs_srcdir,;t t
9605: s,@top_srcdir@,$ac_top_srcdir,;t t
9606: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9607: s,@builddir@,$ac_builddir,;t t
9608: s,@abs_builddir@,$ac_abs_builddir,;t t
9609: s,@top_builddir@,$ac_top_builddir,;t t
9610: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9611: s,@INSTALL@,$ac_INSTALL,;t t
9612: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9613: rm -f $tmp/stdin
9614: if test x"$ac_file" != x-; then
9615: mv $tmp/out $ac_file
9616: else
9617: cat $tmp/out
9618: rm -f $tmp/out
9619: fi
9620:
9621: done
9622: _ACEOF
9623: cat >>$CONFIG_STATUS <<\_ACEOF
9624:
9625: #
9626: # CONFIG_HEADER section.
9627: #
1.1 parser 9628:
9629: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9630: # NAME is the cpp macro being defined and VALUE is the value it is being given.
9631: #
9632: # ac_d sets the value in "#define NAME VALUE" lines.
1.11 paf 9633: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9634: ac_dB='[ ].*$,\1#\2'
9635: ac_dC=' '
9636: ac_dD=',;t'
9637: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9638: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9639: ac_uB='$,\1#\2define\3'
1.1 parser 9640: ac_uC=' '
1.11 paf 9641: ac_uD=',;t'
1.1 parser 9642:
1.11 paf 9643: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 parser 9644: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.11 paf 9645: case $ac_file in
9646: - | *:- | *:-:* ) # input from stdin
9647: cat >$tmp/stdin
9648: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9649: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9650: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9651: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9652: * ) ac_file_in=$ac_file.in ;;
1.1 parser 9653: esac
9654:
1.11 paf 9655: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9656: echo "$as_me: creating $ac_file" >&6;}
1.1 parser 9657:
1.11 paf 9658: # First look for the input files in the build tree, otherwise in the
9659: # src tree.
9660: ac_file_inputs=`IFS=:
9661: for f in $ac_file_in; do
9662: case $f in
9663: -) echo $tmp/stdin ;;
9664: [\\/$]*)
9665: # Absolute (can't be DOS-style, as IFS=:)
9666: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9667: echo "$as_me: error: cannot find input file: $f" >&2;}
9668: { (exit 1); exit 1; }; }
9669: echo $f;;
9670: *) # Relative
9671: if test -f "$f"; then
9672: # Build tree
9673: echo $f
9674: elif test -f "$srcdir/$f"; then
9675: # Source tree
9676: echo $srcdir/$f
9677: else
9678: # /dev/null tree
9679: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9680: echo "$as_me: error: cannot find input file: $f" >&2;}
9681: { (exit 1); exit 1; }; }
9682: fi;;
9683: esac
9684: done` || { (exit 1); exit 1; }
9685: # Remove the trailing spaces.
9686: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9687:
9688: _ACEOF
9689:
9690: # Transform confdefs.h into two sed scripts, `conftest.defines' and
9691: # `conftest.undefs', that substitutes the proper values into
9692: # config.h.in to produce config.h. The first handles `#define'
9693: # templates, and the second `#undef' templates.
9694: # And first: Protect against being on the right side of a sed subst in
9695: # config.status. Protect against being in an unquoted here document
9696: # in config.status.
9697: rm -f conftest.defines conftest.undefs
9698: # Using a here document instead of a string reduces the quoting nightmare.
9699: # Putting comments in sed scripts is not portable.
9700: #
9701: # `end' is used to avoid that the second main sed command (meant for
9702: # 0-ary CPP macros) applies to n-ary macro definitions.
9703: # See the Autoconf documentation for `clear'.
9704: cat >confdef2sed.sed <<\_ACEOF
9705: s/[\\&,]/\\&/g
9706: s,[\\$`],\\&,g
9707: t clear
9708: : clear
9709: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9710: t end
9711: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9712: : end
9713: _ACEOF
9714: # If some macros were called several times there might be several times
9715: # the same #defines, which is useless. Nevertheless, we may not want to
9716: # sort them, since we want the *last* AC-DEFINE to be honored.
9717: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9718: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9719: rm -f confdef2sed.sed
1.1 parser 9720:
9721: # This sed command replaces #undef with comments. This is necessary, for
9722: # example, in the case of _POSIX_SOURCE, which is predefined and required
9723: # on some systems where configure will not decide to define it.
1.11 paf 9724: cat >>conftest.undefs <<\_ACEOF
9725: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9726: _ACEOF
9727:
9728: # Break up conftest.defines because some shells have a limit on the size
9729: # of here documents, and old seds have small limits too (100 cmds).
9730: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9731: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9732: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9733: echo ' :' >>$CONFIG_STATUS
9734: rm -f conftest.tail
9735: while grep . conftest.defines >/dev/null
9736: do
9737: # Write a limited-size here document to $tmp/defines.sed.
9738: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9739: # Speed up: don't consider the non `#define' lines.
9740: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9741: # Work around the forget-to-reset-the-flag bug.
9742: echo 't clr' >>$CONFIG_STATUS
9743: echo ': clr' >>$CONFIG_STATUS
9744: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9745: echo 'CEOF
9746: sed -f $tmp/defines.sed $tmp/in >$tmp/out
9747: rm -f $tmp/in
9748: mv $tmp/out $tmp/in
9749: ' >>$CONFIG_STATUS
9750: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9751: rm -f conftest.defines
9752: mv conftest.tail conftest.defines
9753: done
9754: rm -f conftest.defines
9755: echo ' fi # grep' >>$CONFIG_STATUS
9756: echo >>$CONFIG_STATUS
9757:
9758: # Break up conftest.undefs because some shells have a limit on the size
9759: # of here documents, and old seds have small limits too (100 cmds).
9760: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 parser 9761: rm -f conftest.tail
1.11 paf 9762: while grep . conftest.undefs >/dev/null
1.1 parser 9763: do
1.11 paf 9764: # Write a limited-size here document to $tmp/undefs.sed.
9765: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9766: # Speed up: don't consider the non `#undef'
9767: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9768: # Work around the forget-to-reset-the-flag bug.
9769: echo 't clr' >>$CONFIG_STATUS
9770: echo ': clr' >>$CONFIG_STATUS
9771: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 parser 9772: echo 'CEOF
1.11 paf 9773: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9774: rm -f $tmp/in
9775: mv $tmp/out $tmp/in
9776: ' >>$CONFIG_STATUS
9777: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9778: rm -f conftest.undefs
9779: mv conftest.tail conftest.undefs
9780: done
9781: rm -f conftest.undefs
9782:
9783: cat >>$CONFIG_STATUS <<\_ACEOF
9784: # Let's still pretend it is `configure' which instantiates (i.e., don't
9785: # use $as_me), people would be surprised to read:
9786: # /* config.h. Generated by config.status. */
9787: if test x"$ac_file" = x-; then
9788: echo "/* Generated by configure. */" >$tmp/config.h
9789: else
9790: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9791: fi
9792: cat $tmp/in >>$tmp/config.h
9793: rm -f $tmp/in
9794: if test x"$ac_file" != x-; then
9795: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9796: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9797: echo "$as_me: $ac_file is unchanged" >&6;}
9798: else
9799: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9800: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9801: X"$ac_file" : 'X\(//\)[^/]' \| \
9802: X"$ac_file" : 'X\(//\)$' \| \
9803: X"$ac_file" : 'X\(/\)' \| \
9804: . : '\(.\)' 2>/dev/null ||
9805: echo X"$ac_file" |
9806: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9807: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9808: /^X\(\/\/\)$/{ s//\1/; q; }
9809: /^X\(\/\).*/{ s//\1/; q; }
9810: s/.*/./; q'`
9811: { if $as_mkdir_p; then
9812: mkdir -p "$ac_dir"
9813: else
9814: as_dir="$ac_dir"
9815: as_dirs=
9816: while test ! -d "$as_dir"; do
9817: as_dirs="$as_dir $as_dirs"
9818: as_dir=`(dirname "$as_dir") 2>/dev/null ||
9819: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9820: X"$as_dir" : 'X\(//\)[^/]' \| \
9821: X"$as_dir" : 'X\(//\)$' \| \
9822: X"$as_dir" : 'X\(/\)' \| \
9823: . : '\(.\)' 2>/dev/null ||
9824: echo X"$as_dir" |
9825: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9826: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9827: /^X\(\/\/\)$/{ s//\1/; q; }
9828: /^X\(\/\).*/{ s//\1/; q; }
9829: s/.*/./; q'`
9830: done
9831: test ! -n "$as_dirs" || mkdir $as_dirs
9832: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9833: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9834: { (exit 1); exit 1; }; }; }
9835:
9836: rm -f $ac_file
9837: mv $tmp/config.h $ac_file
1.1 parser 9838: fi
1.11 paf 9839: else
9840: cat $tmp/config.h
9841: rm -f $tmp/config.h
1.1 parser 9842: fi
1.11 paf 9843: _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
9844: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9845: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9846: X$ac_file : 'X\(//\)[^/]' \| \
9847: X$ac_file : 'X\(//\)$' \| \
9848: X$ac_file : 'X\(/\)' \| \
9849: . : '\(.\)' 2>/dev/null ||
9850: echo X$ac_file |
9851: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9852: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9853: /^X\(\/\/\)$/{ s//\1/; q; }
9854: /^X\(\/\).*/{ s//\1/; q; }
9855: s/.*/./; q'`/stamp-h$_am_stamp_count
9856: done
9857: _ACEOF
9858: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 9859:
1.11 paf 9860: #
9861: # CONFIG_COMMANDS section.
9862: #
9863: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9864: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9865: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9866: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9867: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9868: X"$ac_dest" : 'X\(//\)[^/]' \| \
9869: X"$ac_dest" : 'X\(//\)$' \| \
9870: X"$ac_dest" : 'X\(/\)' \| \
9871: . : '\(.\)' 2>/dev/null ||
9872: echo X"$ac_dest" |
9873: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9874: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9875: /^X\(\/\/\)$/{ s//\1/; q; }
9876: /^X\(\/\).*/{ s//\1/; q; }
9877: s/.*/./; q'`
9878: ac_builddir=.
9879:
9880: if test "$ac_dir" != .; then
9881: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9882: # A "../" for each directory in $ac_dir_suffix.
9883: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9884: else
9885: ac_dir_suffix= ac_top_builddir=
9886: fi
9887:
9888: case $srcdir in
9889: .) # No --srcdir option. We are building in place.
9890: ac_srcdir=.
9891: if test -z "$ac_top_builddir"; then
9892: ac_top_srcdir=.
9893: else
9894: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9895: fi ;;
9896: [\\/]* | ?:[\\/]* ) # Absolute path.
9897: ac_srcdir=$srcdir$ac_dir_suffix;
9898: ac_top_srcdir=$srcdir ;;
9899: *) # Relative path.
9900: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9901: ac_top_srcdir=$ac_top_builddir$srcdir ;;
9902: esac
9903: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9904: # absolute.
9905: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9906: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9907: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9908: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9909:
9910:
9911: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9912: echo "$as_me: executing $ac_dest commands" >&6;}
9913: case $ac_dest in
9914: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9915: # Strip MF so we end up with the name of the file.
9916: mf=`echo "$mf" | sed -e 's/:.*$//'`
9917: # Check whether this is an Automake generated Makefile or not.
9918: # We used to match only the files named `Makefile.in', but
9919: # some people rename them; so instead we look at the file content.
9920: # Grep'ing the first line is not enough: some people post-process
9921: # each Makefile.in and add a new line on top of each file to say so.
9922: # So let's grep whole file.
9923: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9924: dirpart=`(dirname "$mf") 2>/dev/null ||
9925: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9926: X"$mf" : 'X\(//\)[^/]' \| \
9927: X"$mf" : 'X\(//\)$' \| \
9928: X"$mf" : 'X\(/\)' \| \
9929: . : '\(.\)' 2>/dev/null ||
9930: echo X"$mf" |
9931: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9932: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9933: /^X\(\/\/\)$/{ s//\1/; q; }
9934: /^X\(\/\).*/{ s//\1/; q; }
9935: s/.*/./; q'`
9936: else
9937: continue
9938: fi
9939: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9940: # Extract the definition of DEP_FILES from the Makefile without
9941: # running `make'.
9942: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9943: test -z "$DEPDIR" && continue
9944: # When using ansi2knr, U may be empty or an underscore; expand it
9945: U=`sed -n -e '/^U = / s///p' < "$mf"`
9946: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9947: # We invoke sed twice because it is the simplest approach to
9948: # changing $(DEPDIR) to its actual value in the expansion.
9949: for file in `sed -n -e '
9950: /^DEP_FILES = .*\\\\$/ {
9951: s/^DEP_FILES = //
9952: :loop
9953: s/\\\\$//
9954: p
9955: n
9956: /\\\\$/ b loop
9957: p
9958: }
9959: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9960: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9961: # Make sure the directory exists.
9962: test -f "$dirpart/$file" && continue
9963: fdir=`(dirname "$file") 2>/dev/null ||
9964: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9965: X"$file" : 'X\(//\)[^/]' \| \
9966: X"$file" : 'X\(//\)$' \| \
9967: X"$file" : 'X\(/\)' \| \
9968: . : '\(.\)' 2>/dev/null ||
9969: echo X"$file" |
9970: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9971: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9972: /^X\(\/\/\)$/{ s//\1/; q; }
9973: /^X\(\/\).*/{ s//\1/; q; }
9974: s/.*/./; q'`
9975: { if $as_mkdir_p; then
9976: mkdir -p $dirpart/$fdir
9977: else
9978: as_dir=$dirpart/$fdir
9979: as_dirs=
9980: while test ! -d "$as_dir"; do
9981: as_dirs="$as_dir $as_dirs"
9982: as_dir=`(dirname "$as_dir") 2>/dev/null ||
9983: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9984: X"$as_dir" : 'X\(//\)[^/]' \| \
9985: X"$as_dir" : 'X\(//\)$' \| \
9986: X"$as_dir" : 'X\(/\)' \| \
9987: . : '\(.\)' 2>/dev/null ||
9988: echo X"$as_dir" |
9989: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9990: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9991: /^X\(\/\/\)$/{ s//\1/; q; }
9992: /^X\(\/\).*/{ s//\1/; q; }
9993: s/.*/./; q'`
9994: done
9995: test ! -n "$as_dirs" || mkdir $as_dirs
9996: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9997: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9998: { (exit 1); exit 1; }; }; }
1.1 parser 9999:
1.11 paf 10000: # echo "creating $dirpart/$file"
10001: echo '# dummy' > "$dirpart/$file"
10002: done
10003: done
10004: ;;
10005: esac
10006: done
10007: _ACEOF
1.1 parser 10008:
1.11 paf 10009: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 10010:
1.11 paf 10011: { (exit 0); exit 0; }
10012: _ACEOF
1.1 parser 10013: chmod +x $CONFIG_STATUS
1.11 paf 10014: ac_clean_files=$ac_clean_files_save
10015:
10016:
10017: # configure is writing to config.log, and then calls config.status.
10018: # config.status does its own redirection, appending to config.log.
10019: # Unfortunately, on DOS this fails, as config.log is still kept open
10020: # by configure, so config.status won't be able to write to it; its
10021: # output is simply discarded. So we exec the FD to /dev/null,
10022: # effectively closing config.log, so it can be properly (re)opened and
10023: # appended to by config.status. When coming back to configure, we
10024: # need to make the FD available again.
10025: if test "$no_create" != yes; then
10026: ac_cs_success=:
10027: ac_config_status_args=
10028: test "$silent" = yes &&
10029: ac_config_status_args="$ac_config_status_args --quiet"
10030: exec 5>/dev/null
10031: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10032: exec 5>>config.log
10033: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10034: # would make configure fail if this is the last instruction.
10035: $ac_cs_success || { (exit 1); exit 1; }
10036: fi
1.1 parser 10037:
1.11 paf 10038: #
10039: # CONFIG_SUBDIRS section.
10040: #
1.1 parser 10041: if test "$no_recursion" != yes; then
10042:
10043: # Remove --cache-file and --srcdir arguments so they do not pile up.
10044: ac_sub_configure_args=
10045: ac_prev=
10046: for ac_arg in $ac_configure_args; do
10047: if test -n "$ac_prev"; then
10048: ac_prev=
10049: continue
10050: fi
1.11 paf 10051: case $ac_arg in
1.1 parser 10052: -cache-file | --cache-file | --cache-fil | --cache-fi \
10053: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10054: ac_prev=cache_file ;;
10055: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.11 paf 10056: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10057: | --c=*)
10058: ;;
10059: --config-cache | -C)
1.1 parser 10060: ;;
10061: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10062: ac_prev=srcdir ;;
10063: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10064: ;;
1.11 paf 10065: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10066: ac_prev=prefix ;;
10067: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10068: ;;
1.1 parser 10069: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10070: esac
10071: done
10072:
1.11 paf 10073: # Always prepend --prefix to ensure using the same prefix
10074: # in subdir configurations.
10075: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
10076:
10077: ac_popdir=`pwd`
10078: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 10079:
10080: # Do not complain, so a configure script can configure whichever
10081: # parts of a large source tree are present.
1.11 paf 10082: test -d $srcdir/$ac_dir || continue
1.1 parser 10083:
1.11 paf 10084: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
10085: echo "$as_me: configuring in $ac_dir" >&6;}
10086: { if $as_mkdir_p; then
10087: mkdir -p "$ac_dir"
10088: else
10089: as_dir="$ac_dir"
10090: as_dirs=
10091: while test ! -d "$as_dir"; do
10092: as_dirs="$as_dir $as_dirs"
10093: as_dir=`(dirname "$as_dir") 2>/dev/null ||
10094: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10095: X"$as_dir" : 'X\(//\)[^/]' \| \
10096: X"$as_dir" : 'X\(//\)$' \| \
10097: X"$as_dir" : 'X\(/\)' \| \
10098: . : '\(.\)' 2>/dev/null ||
10099: echo X"$as_dir" |
10100: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10101: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10102: /^X\(\/\/\)$/{ s//\1/; q; }
10103: /^X\(\/\).*/{ s//\1/; q; }
10104: s/.*/./; q'`
10105: done
10106: test ! -n "$as_dirs" || mkdir $as_dirs
10107: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10108: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10109: { (exit 1); exit 1; }; }; }
10110:
10111: ac_builddir=.
10112:
10113: if test "$ac_dir" != .; then
10114: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10115: # A "../" for each directory in $ac_dir_suffix.
10116: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10117: else
10118: ac_dir_suffix= ac_top_builddir=
10119: fi
10120:
10121: case $srcdir in
10122: .) # No --srcdir option. We are building in place.
10123: ac_srcdir=.
10124: if test -z "$ac_top_builddir"; then
10125: ac_top_srcdir=.
10126: else
10127: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10128: fi ;;
10129: [\\/]* | ?:[\\/]* ) # Absolute path.
10130: ac_srcdir=$srcdir$ac_dir_suffix;
10131: ac_top_srcdir=$srcdir ;;
10132: *) # Relative path.
10133: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10134: ac_top_srcdir=$ac_top_builddir$srcdir ;;
10135: esac
10136: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10137: # absolute.
10138: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10139: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10140: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10141: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1.1 parser 10142:
10143:
1.11 paf 10144: cd $ac_dir
1.1 parser 10145:
10146: # Check for guested configure; otherwise get Cygnus style configure.
1.11 paf 10147: if test -f $ac_srcdir/configure.gnu; then
10148: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
10149: elif test -f $ac_srcdir/configure; then
10150: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
10151: elif test -f $ac_srcdir/configure.in; then
1.1 parser 10152: ac_sub_configure=$ac_configure
10153: else
1.11 paf 10154: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10155: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 10156: ac_sub_configure=
10157: fi
10158:
10159: # The recursion is here.
10160: if test -n "$ac_sub_configure"; then
10161: # Make the cache file name correct relative to the subdirectory.
1.11 paf 10162: case $cache_file in
10163: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 parser 10164: *) # Relative path.
1.11 paf 10165: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 parser 10166: esac
10167:
1.11 paf 10168: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10169: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 parser 10170: # The eval makes quoting arguments work.
1.11 paf 10171: eval $ac_sub_configure $ac_sub_configure_args \
10172: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
10173: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
10174: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10175: { (exit 1); exit 1; }; }
1.1 parser 10176: fi
10177:
10178: cd $ac_popdir
10179: done
10180: fi
10181:
E-mail: