Annotation of sql/oracle/configure, revision 1.11.12.1
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"
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 INCLTDL LIBLTDL LIBADD_DL build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S ECHO RANLIB ac_ct_RANLIB CXXCPP EGREP LIBTOOL subdirs LIBOBJS LTLIBOBJS'
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
936: ac_env_CXXCPP_set=${CXXCPP+set}
937: ac_env_CXXCPP_value=$CXXCPP
938: ac_cv_env_CXXCPP_set=${CXXCPP+set}
939: ac_cv_env_CXXCPP_value=$CXXCPP
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
1043: CXXCPP C++ preprocessor
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.11.12.1! paf 1715: VERSION=3.1.0
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:
2021:
1.11 paf 2022: ac_ext=cc
2023: ac_cpp='$CXXCPP $CPPFLAGS'
2024: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2025: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2026: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2027:
2028: ac_ext=cc
1.1 parser 2029: ac_cpp='$CXXCPP $CPPFLAGS'
1.11 paf 2030: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2033: if test -n "$ac_tool_prefix"; then
2034: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2035: do
2036: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2037: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2038: echo "$as_me:$LINENO: checking for $ac_word" >&5
2039: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040: if test "${ac_cv_prog_CXX+set}" = set; then
2041: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2042: else
2043: if test -n "$CXX"; then
2044: ac_cv_prog_CXX="$CXX" # Let the user override the test.
2045: else
1.11 paf 2046: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047: for as_dir in $PATH
2048: do
2049: IFS=$as_save_IFS
2050: test -z "$as_dir" && as_dir=.
2051: for ac_exec_ext in '' $ac_executable_extensions; do
2052: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2054: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055: break 2
2056: fi
2057: done
2058: done
2059:
1.1 parser 2060: fi
2061: fi
1.11 paf 2062: CXX=$ac_cv_prog_CXX
1.1 parser 2063: if test -n "$CXX"; then
1.11 paf 2064: echo "$as_me:$LINENO: result: $CXX" >&5
2065: echo "${ECHO_T}$CXX" >&6
1.1 parser 2066: else
1.11 paf 2067: echo "$as_me:$LINENO: result: no" >&5
2068: echo "${ECHO_T}no" >&6
1.1 parser 2069: fi
2070:
1.11 paf 2071: test -n "$CXX" && break
2072: done
2073: fi
2074: if test -z "$CXX"; then
2075: ac_ct_CXX=$CXX
2076: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2077: do
2078: # Extract the first word of "$ac_prog", so it can be a program name with args.
2079: set dummy $ac_prog; ac_word=$2
2080: echo "$as_me:$LINENO: checking for $ac_word" >&5
2081: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2083: echo $ECHO_N "(cached) $ECHO_C" >&6
2084: else
2085: if test -n "$ac_ct_CXX"; then
2086: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2087: else
2088: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089: for as_dir in $PATH
2090: do
2091: IFS=$as_save_IFS
2092: test -z "$as_dir" && as_dir=.
2093: for ac_exec_ext in '' $ac_executable_extensions; do
2094: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095: ac_cv_prog_ac_ct_CXX="$ac_prog"
2096: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097: break 2
2098: fi
2099: done
1.1 parser 2100: done
2101:
1.11 paf 2102: fi
2103: fi
2104: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2105: if test -n "$ac_ct_CXX"; then
2106: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2107: echo "${ECHO_T}$ac_ct_CXX" >&6
2108: else
2109: echo "$as_me:$LINENO: result: no" >&5
2110: echo "${ECHO_T}no" >&6
2111: fi
1.1 parser 2112:
1.11 paf 2113: test -n "$ac_ct_CXX" && break
2114: done
2115: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 parser 2116:
1.11 paf 2117: CXX=$ac_ct_CXX
2118: fi
1.1 parser 2119:
2120:
1.11 paf 2121: # Provide some information about the compiler.
2122: echo "$as_me:$LINENO:" \
2123: "checking for C++ compiler version" >&5
2124: ac_compiler=`set X $ac_compile; echo $2`
2125: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2126: (eval $ac_compiler --version </dev/null >&5) 2>&5
2127: ac_status=$?
2128: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129: (exit $ac_status); }
2130: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2131: (eval $ac_compiler -v </dev/null >&5) 2>&5
2132: ac_status=$?
2133: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134: (exit $ac_status); }
2135: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2136: (eval $ac_compiler -V </dev/null >&5) 2>&5
2137: ac_status=$?
2138: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139: (exit $ac_status); }
2140:
2141: cat >conftest.$ac_ext <<_ACEOF
2142: #line $LINENO "configure"
2143: /* confdefs.h. */
2144: _ACEOF
2145: cat confdefs.h >>conftest.$ac_ext
2146: cat >>conftest.$ac_ext <<_ACEOF
2147: /* end confdefs.h. */
2148:
2149: int
2150: main ()
2151: {
2152:
2153: ;
2154: return 0;
2155: }
2156: _ACEOF
2157: ac_clean_files_save=$ac_clean_files
2158: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2159: # Try to create an executable without -o first, disregard a.out.
2160: # It will help us diagnose broken compilers, and finding out an intuition
2161: # of exeext.
2162: echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2163: echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2164: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2165: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2166: (eval $ac_link_default) 2>&5
2167: ac_status=$?
2168: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169: (exit $ac_status); }; then
2170: # Find the output, starting from the most likely. This scheme is
2171: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2172: # resort.
2173:
2174: # Be careful to initialize this variable, since it used to be cached.
2175: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2176: ac_cv_exeext=
2177: # b.out is created by i960 compilers.
2178: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2179: do
2180: test -f "$ac_file" || continue
2181: case $ac_file in
2182: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2183: ;;
2184: conftest.$ac_ext )
2185: # This is the source file.
2186: ;;
2187: [ab].out )
2188: # We found the default executable, but exeext='' is most
2189: # certainly right.
2190: break;;
2191: *.* )
2192: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2193: # FIXME: I believe we export ac_cv_exeext for Libtool,
2194: # but it would be cool to find out if it's true. Does anybody
2195: # maintain Libtool? --akim.
2196: export ac_cv_exeext
2197: break;;
2198: * )
2199: break;;
2200: esac
2201: done
2202: else
2203: echo "$as_me: failed program was:" >&5
2204: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2205:
1.11 paf 2206: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2207: See \`config.log' for more details." >&5
2208: echo "$as_me: error: C++ compiler cannot create executables
2209: See \`config.log' for more details." >&2;}
2210: { (exit 77); exit 77; }; }
2211: fi
2212:
2213: ac_exeext=$ac_cv_exeext
2214: echo "$as_me:$LINENO: result: $ac_file" >&5
2215: echo "${ECHO_T}$ac_file" >&6
2216:
2217: # Check the compiler produces executables we can run. If not, either
2218: # the compiler is broken, or we cross compile.
2219: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2220: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2221: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2222: # If not cross compiling, check that we can run a simple program.
2223: if test "$cross_compiling" != yes; then
2224: if { ac_try='./$ac_file'
2225: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226: (eval $ac_try) 2>&5
2227: ac_status=$?
2228: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229: (exit $ac_status); }; }; then
2230: cross_compiling=no
2231: else
2232: if test "$cross_compiling" = maybe; then
2233: cross_compiling=yes
2234: else
2235: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2236: If you meant to cross compile, use \`--host'.
2237: See \`config.log' for more details." >&5
2238: echo "$as_me: error: cannot run C++ compiled programs.
2239: If you meant to cross compile, use \`--host'.
2240: See \`config.log' for more details." >&2;}
2241: { (exit 1); exit 1; }; }
2242: fi
1.1 parser 2243: fi
1.11 paf 2244: fi
2245: echo "$as_me:$LINENO: result: yes" >&5
2246: echo "${ECHO_T}yes" >&6
2247:
2248: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2249: ac_clean_files=$ac_clean_files_save
2250: # Check the compiler produces executables we can run. If not, either
2251: # the compiler is broken, or we cross compile.
2252: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2253: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2254: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2255: echo "${ECHO_T}$cross_compiling" >&6
2256:
2257: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2258: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2259: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2260: (eval $ac_link) 2>&5
2261: ac_status=$?
2262: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263: (exit $ac_status); }; then
2264: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2265: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2266: # work properly (i.e., refer to `conftest.exe'), while it won't with
2267: # `rm'.
2268: for ac_file in conftest.exe conftest conftest.*; do
2269: test -f "$ac_file" || continue
2270: case $ac_file in
2271: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2272: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2273: export ac_cv_exeext
2274: break;;
2275: * ) break;;
2276: esac
2277: done
1.1 parser 2278: else
1.11 paf 2279: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2280: See \`config.log' for more details." >&5
2281: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2282: See \`config.log' for more details." >&2;}
2283: { (exit 1); exit 1; }; }
2284: fi
2285:
2286: rm -f conftest$ac_cv_exeext
2287: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2288: echo "${ECHO_T}$ac_cv_exeext" >&6
2289:
2290: rm -f conftest.$ac_ext
2291: EXEEXT=$ac_cv_exeext
2292: ac_exeext=$EXEEXT
2293: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2294: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2295: if test "${ac_cv_objext+set}" = set; then
2296: echo $ECHO_N "(cached) $ECHO_C" >&6
2297: else
2298: cat >conftest.$ac_ext <<_ACEOF
2299: #line $LINENO "configure"
2300: /* confdefs.h. */
2301: _ACEOF
2302: cat confdefs.h >>conftest.$ac_ext
2303: cat >>conftest.$ac_ext <<_ACEOF
2304: /* end confdefs.h. */
2305:
2306: int
2307: main ()
2308: {
2309:
2310: ;
2311: return 0;
2312: }
2313: _ACEOF
2314: rm -f conftest.o conftest.obj
2315: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316: (eval $ac_compile) 2>&5
2317: ac_status=$?
2318: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319: (exit $ac_status); }; then
2320: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2321: case $ac_file in
2322: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2323: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2324: break;;
2325: esac
2326: done
1.1 parser 2327: else
1.11 paf 2328: echo "$as_me: failed program was:" >&5
2329: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2330:
1.11 paf 2331: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2332: See \`config.log' for more details." >&5
2333: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2334: See \`config.log' for more details." >&2;}
2335: { (exit 1); exit 1; }; }
2336: fi
2337:
2338: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2339: fi
2340: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2341: echo "${ECHO_T}$ac_cv_objext" >&6
2342: OBJEXT=$ac_cv_objext
2343: ac_objext=$OBJEXT
2344: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2345: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2346: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2347: echo $ECHO_N "(cached) $ECHO_C" >&6
2348: else
2349: cat >conftest.$ac_ext <<_ACEOF
2350: #line $LINENO "configure"
2351: /* confdefs.h. */
2352: _ACEOF
2353: cat confdefs.h >>conftest.$ac_ext
2354: cat >>conftest.$ac_ext <<_ACEOF
2355: /* end confdefs.h. */
2356:
2357: int
2358: main ()
2359: {
2360: #ifndef __GNUC__
2361: choke me
2362: #endif
1.1 parser 2363:
1.11 paf 2364: ;
2365: return 0;
2366: }
2367: _ACEOF
2368: rm -f conftest.$ac_objext
2369: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370: (eval $ac_compile) 2>&5
2371: ac_status=$?
2372: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373: (exit $ac_status); } &&
2374: { ac_try='test -s conftest.$ac_objext'
2375: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376: (eval $ac_try) 2>&5
2377: ac_status=$?
2378: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379: (exit $ac_status); }; }; then
2380: ac_compiler_gnu=yes
2381: else
2382: echo "$as_me: failed program was:" >&5
2383: sed 's/^/| /' conftest.$ac_ext >&5
2384:
2385: ac_compiler_gnu=no
2386: fi
2387: rm -f conftest.$ac_objext conftest.$ac_ext
2388: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2389:
2390: fi
2391: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2392: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2393: GXX=`test $ac_compiler_gnu = yes && echo yes`
2394: ac_test_CXXFLAGS=${CXXFLAGS+set}
2395: ac_save_CXXFLAGS=$CXXFLAGS
2396: CXXFLAGS="-g"
2397: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2398: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2399: if test "${ac_cv_prog_cxx_g+set}" = set; then
2400: echo $ECHO_N "(cached) $ECHO_C" >&6
2401: else
2402: cat >conftest.$ac_ext <<_ACEOF
2403: #line $LINENO "configure"
2404: /* confdefs.h. */
2405: _ACEOF
2406: cat confdefs.h >>conftest.$ac_ext
2407: cat >>conftest.$ac_ext <<_ACEOF
2408: /* end confdefs.h. */
2409:
2410: int
2411: main ()
2412: {
2413:
2414: ;
2415: return 0;
2416: }
2417: _ACEOF
2418: rm -f conftest.$ac_objext
2419: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420: (eval $ac_compile) 2>&5
2421: ac_status=$?
2422: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423: (exit $ac_status); } &&
2424: { ac_try='test -s conftest.$ac_objext'
2425: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426: (eval $ac_try) 2>&5
2427: ac_status=$?
2428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429: (exit $ac_status); }; }; then
2430: ac_cv_prog_cxx_g=yes
1.1 parser 2431: else
1.11 paf 2432: echo "$as_me: failed program was:" >&5
2433: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2434:
1.11 paf 2435: ac_cv_prog_cxx_g=no
1.1 parser 2436: fi
1.11 paf 2437: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 parser 2438: fi
1.11 paf 2439: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2440: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.1 parser 2441: if test "$ac_test_CXXFLAGS" = set; then
1.11 paf 2442: CXXFLAGS=$ac_save_CXXFLAGS
1.1 parser 2443: elif test $ac_cv_prog_cxx_g = yes; then
2444: if test "$GXX" = yes; then
2445: CXXFLAGS="-g -O2"
2446: else
2447: CXXFLAGS="-g"
2448: fi
2449: else
2450: if test "$GXX" = yes; then
2451: CXXFLAGS="-O2"
2452: else
2453: CXXFLAGS=
2454: fi
2455: fi
1.11 paf 2456: for ac_declaration in \
2457: ''\
2458: '#include <stdlib.h>' \
2459: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2460: 'extern "C" void std::exit (int); using std::exit;' \
2461: 'extern "C" void exit (int) throw ();' \
2462: 'extern "C" void exit (int);' \
2463: 'void exit (int);'
2464: do
2465: cat >conftest.$ac_ext <<_ACEOF
2466: #line $LINENO "configure"
2467: /* confdefs.h. */
2468: _ACEOF
2469: cat confdefs.h >>conftest.$ac_ext
2470: cat >>conftest.$ac_ext <<_ACEOF
2471: /* end confdefs.h. */
2472: #include <stdlib.h>
2473: $ac_declaration
2474: int
2475: main ()
2476: {
2477: exit (42);
2478: ;
2479: return 0;
2480: }
2481: _ACEOF
2482: rm -f conftest.$ac_objext
2483: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2484: (eval $ac_compile) 2>&5
2485: ac_status=$?
2486: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487: (exit $ac_status); } &&
2488: { ac_try='test -s conftest.$ac_objext'
2489: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490: (eval $ac_try) 2>&5
2491: ac_status=$?
2492: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493: (exit $ac_status); }; }; then
2494: :
2495: else
2496: echo "$as_me: failed program was:" >&5
2497: sed 's/^/| /' conftest.$ac_ext >&5
2498:
2499: continue
2500: fi
2501: rm -f conftest.$ac_objext conftest.$ac_ext
2502: cat >conftest.$ac_ext <<_ACEOF
2503: #line $LINENO "configure"
2504: /* confdefs.h. */
2505: _ACEOF
2506: cat confdefs.h >>conftest.$ac_ext
2507: cat >>conftest.$ac_ext <<_ACEOF
2508: /* end confdefs.h. */
2509: $ac_declaration
2510: int
2511: main ()
2512: {
2513: exit (42);
2514: ;
2515: return 0;
2516: }
2517: _ACEOF
2518: rm -f conftest.$ac_objext
2519: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520: (eval $ac_compile) 2>&5
2521: ac_status=$?
2522: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523: (exit $ac_status); } &&
2524: { ac_try='test -s conftest.$ac_objext'
2525: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526: (eval $ac_try) 2>&5
2527: ac_status=$?
2528: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529: (exit $ac_status); }; }; then
2530: break
2531: else
2532: echo "$as_me: failed program was:" >&5
2533: sed 's/^/| /' conftest.$ac_ext >&5
2534:
2535: fi
2536: rm -f conftest.$ac_objext conftest.$ac_ext
2537: done
2538: rm -f conftest*
2539: if test -n "$ac_declaration"; then
2540: echo '#ifdef __cplusplus' >>confdefs.h
2541: echo $ac_declaration >>confdefs.h
2542: echo '#endif' >>confdefs.h
2543: fi
2544:
2545: ac_ext=cc
2546: ac_cpp='$CXXCPP $CPPFLAGS'
2547: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2550: rm -f .deps 2>/dev/null
2551: mkdir .deps 2>/dev/null
2552: if test -d .deps; then
2553: DEPDIR=.deps
2554: else
2555: # MS-DOS does not allow filenames that begin with a dot.
2556: DEPDIR=_deps
2557: fi
2558: rmdir .deps 2>/dev/null
2559:
2560:
2561: ac_config_commands="$ac_config_commands depfiles"
2562:
2563:
2564: am_make=${MAKE-make}
2565: cat > confinc << 'END'
2566: doit:
2567: @echo done
2568: END
2569: # If we don't find an include directive, just comment out the code.
2570: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2571: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2572: am__include="#"
2573: am__quote=
2574: _am_result=none
2575: # First try GNU make style include.
2576: echo "include confinc" > confmf
2577: # We grep out `Entering directory' and `Leaving directory'
2578: # messages which can occur if `w' ends up in MAKEFLAGS.
2579: # In particular we don't look at `^make:' because GNU make might
2580: # be invoked under some other name (usually "gmake"), in which
2581: # case it prints its new name instead of `make'.
2582: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2583: am__include=include
2584: am__quote=
2585: _am_result=GNU
2586: fi
2587: # Now try BSD make style include.
2588: if test "$am__include" = "#"; then
2589: echo '.include "confinc"' > confmf
2590: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2591: am__include=.include
2592: am__quote="\""
2593: _am_result=BSD
2594: fi
2595: fi
2596:
2597:
2598: echo "$as_me:$LINENO: result: $_am_result" >&5
2599: echo "${ECHO_T}$_am_result" >&6
2600: rm -f confinc confmf
2601:
2602: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2603: if test "${enable_dependency_tracking+set}" = set; then
2604: enableval="$enable_dependency_tracking"
2605:
2606: fi;
2607: if test "x$enable_dependency_tracking" != xno; then
2608: am_depcomp="$ac_aux_dir/depcomp"
2609: AMDEPBACKSLASH='\'
2610: fi
2611:
2612:
2613: if test "x$enable_dependency_tracking" != xno; then
2614: AMDEP_TRUE=
2615: AMDEP_FALSE='#'
2616: else
2617: AMDEP_TRUE='#'
2618: AMDEP_FALSE=
2619: fi
2620:
2621:
2622:
2623:
2624: depcc="$CXX" am_compiler_list=
2625:
2626: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2627: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2628: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2629: echo $ECHO_N "(cached) $ECHO_C" >&6
2630: else
2631: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2632: # We make a subdir and do the tests there. Otherwise we can end up
2633: # making bogus files that we don't know about and never remove. For
2634: # instance it was reported that on HP-UX the gcc test will end up
2635: # making a dummy file named `D' -- because `-MD' means `put the output
2636: # in D'.
2637: mkdir conftest.dir
2638: # Copy depcomp to subdir because otherwise we won't find it if we're
2639: # using a relative directory.
2640: cp "$am_depcomp" conftest.dir
2641: cd conftest.dir
2642:
2643: am_cv_CXX_dependencies_compiler_type=none
2644: if test "$am_compiler_list" = ""; then
2645: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2646: fi
2647: for depmode in $am_compiler_list; do
2648: # We need to recreate these files for each test, as the compiler may
2649: # overwrite some of them when testing with obscure command lines.
2650: # This happens at least with the AIX C compiler.
2651: echo '#include "conftest.h"' > conftest.c
2652: echo 'int i;' > conftest.h
2653: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2654:
2655: case $depmode in
2656: nosideeffect)
2657: # after this tag, mechanisms are not by side-effect, so they'll
2658: # only be used when explicitly requested
2659: if test "x$enable_dependency_tracking" = xyes; then
2660: continue
2661: else
2662: break
2663: fi
2664: ;;
2665: none) break ;;
2666: esac
2667: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2668: # mode. It turns out that the SunPro C++ compiler does not properly
2669: # handle `-M -o', and we need to detect this.
2670: if depmode=$depmode \
2671: source=conftest.c object=conftest.o \
2672: depfile=conftest.Po tmpdepfile=conftest.TPo \
2673: $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2674: grep conftest.h conftest.Po > /dev/null 2>&1 &&
2675: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2676: am_cv_CXX_dependencies_compiler_type=$depmode
2677: break
2678: fi
2679: done
2680:
2681: cd ..
2682: rm -rf conftest.dir
2683: else
2684: am_cv_CXX_dependencies_compiler_type=none
2685: fi
2686:
2687: fi
2688: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2689: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2690: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2691:
1.1 parser 2692:
2693:
1.11 paf 2694: if
2695: test "x$enable_dependency_tracking" != xno \
2696: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2697: am__fastdepCXX_TRUE=
2698: am__fastdepCXX_FALSE='#'
2699: else
2700: am__fastdepCXX_TRUE='#'
2701: am__fastdepCXX_FALSE=
2702: fi
2703:
2704:
2705:
2706: case $enable_ltdl_convenience in
2707: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
2708: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
2709: { (exit 1); exit 1; }; } ;;
2710: "") enable_ltdl_convenience=yes
2711: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2712: esac
1.1 parser 2713: LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1.11 paf 2714: LTDLINCL='-I${top_srcdir}/''libltdl'
2715: # For backwards non-gettext consistent compatibility...
2716: INCLTDL="$LTDLINCL"
1.1 parser 2717:
2718:
2719:
2720:
1.5 paf 2721: # Check whether --enable-static or --disable-static was given.
2722: if test "${enable_static+set}" = set; then
2723: enableval="$enable_static"
1.1 parser 2724: p=${PACKAGE-default}
1.11 paf 2725: case $enableval in
1.5 paf 2726: yes) enable_static=yes ;;
2727: no) enable_static=no ;;
1.1 parser 2728: *)
1.5 paf 2729: enable_static=no
1.1 parser 2730: # Look at the argument we got. We use all the common list separators.
2731: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2732: for pkg in $enableval; do
2733: if test "X$pkg" = "X$p"; then
1.5 paf 2734: enable_static=yes
1.1 parser 2735: fi
2736: done
2737: IFS="$ac_save_ifs"
2738: ;;
2739: esac
2740: else
1.5 paf 2741: enable_static=no
1.11 paf 2742: fi;
1.7 paf 2743:
1.5 paf 2744: # Check whether --enable-shared or --disable-shared was given.
2745: if test "${enable_shared+set}" = set; then
2746: enableval="$enable_shared"
1.1 parser 2747: p=${PACKAGE-default}
1.11 paf 2748: case $enableval in
1.5 paf 2749: yes) enable_shared=yes ;;
2750: no) enable_shared=no ;;
1.1 parser 2751: *)
1.5 paf 2752: enable_shared=no
1.1 parser 2753: # Look at the argument we got. We use all the common list separators.
2754: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2755: for pkg in $enableval; do
2756: if test "X$pkg" = "X$p"; then
1.5 paf 2757: enable_shared=yes
1.1 parser 2758: fi
2759: done
2760: IFS="$ac_save_ifs"
2761: ;;
2762: esac
2763: else
1.5 paf 2764: enable_shared=yes
1.11 paf 2765: fi;
1.1 parser 2766: # Check whether --enable-fast-install or --disable-fast-install was given.
2767: if test "${enable_fast_install+set}" = set; then
2768: enableval="$enable_fast_install"
2769: p=${PACKAGE-default}
1.11 paf 2770: case $enableval in
1.1 parser 2771: yes) enable_fast_install=yes ;;
2772: no) enable_fast_install=no ;;
2773: *)
2774: enable_fast_install=no
2775: # Look at the argument we got. We use all the common list separators.
2776: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2777: for pkg in $enableval; do
2778: if test "X$pkg" = "X$p"; then
2779: enable_fast_install=yes
2780: fi
2781: done
2782: IFS="$ac_save_ifs"
2783: ;;
2784: esac
2785: else
2786: enable_fast_install=yes
1.11 paf 2787: fi;
1.1 parser 2788: # Make sure we can run config.sub.
1.11 paf 2789: $ac_config_sub sun4 >/dev/null 2>&1 ||
2790: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2791: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2792: { (exit 1); exit 1; }; }
2793:
2794: echo "$as_me:$LINENO: checking build system type" >&5
2795: echo $ECHO_N "checking build system type... $ECHO_C" >&6
2796: if test "${ac_cv_build+set}" = set; then
2797: echo $ECHO_N "(cached) $ECHO_C" >&6
2798: else
2799: ac_cv_build_alias=$build_alias
2800: test -z "$ac_cv_build_alias" &&
2801: ac_cv_build_alias=`$ac_config_guess`
2802: test -z "$ac_cv_build_alias" &&
2803: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2804: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2805: { (exit 1); exit 1; }; }
2806: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2807: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2808: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2809: { (exit 1); exit 1; }; }
2810:
2811: fi
2812: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2813: echo "${ECHO_T}$ac_cv_build" >&6
2814: build=$ac_cv_build
2815: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2816: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2817: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2818:
2819:
2820: echo "$as_me:$LINENO: checking host system type" >&5
2821: echo $ECHO_N "checking host system type... $ECHO_C" >&6
2822: if test "${ac_cv_host+set}" = set; then
2823: echo $ECHO_N "(cached) $ECHO_C" >&6
2824: else
2825: ac_cv_host_alias=$host_alias
2826: test -z "$ac_cv_host_alias" &&
2827: ac_cv_host_alias=$ac_cv_build_alias
2828: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2829: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2830: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2831: { (exit 1); exit 1; }; }
2832:
2833: fi
2834: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2835: echo "${ECHO_T}$ac_cv_host" >&6
2836: host=$ac_cv_host
2837: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2838: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2839: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1 parser 2840:
2841:
1.11 paf 2842: ac_ext=c
2843: ac_cpp='$CPP $CPPFLAGS'
2844: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2847: if test -n "$ac_tool_prefix"; then
2848: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2849: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2850: echo "$as_me:$LINENO: checking for $ac_word" >&5
2851: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2852: if test "${ac_cv_prog_CC+set}" = set; then
2853: echo $ECHO_N "(cached) $ECHO_C" >&6
2854: else
2855: if test -n "$CC"; then
2856: ac_cv_prog_CC="$CC" # Let the user override the test.
2857: else
2858: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859: for as_dir in $PATH
2860: do
2861: IFS=$as_save_IFS
2862: test -z "$as_dir" && as_dir=.
2863: for ac_exec_ext in '' $ac_executable_extensions; do
2864: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2866: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867: break 2
2868: fi
2869: done
2870: done
1.1 parser 2871:
1.11 paf 2872: fi
2873: fi
2874: CC=$ac_cv_prog_CC
2875: if test -n "$CC"; then
2876: echo "$as_me:$LINENO: result: $CC" >&5
2877: echo "${ECHO_T}$CC" >&6
2878: else
2879: echo "$as_me:$LINENO: result: no" >&5
2880: echo "${ECHO_T}no" >&6
2881: fi
1.1 parser 2882:
1.11 paf 2883: fi
2884: if test -z "$ac_cv_prog_CC"; then
2885: ac_ct_CC=$CC
2886: # Extract the first word of "gcc", so it can be a program name with args.
2887: set dummy gcc; ac_word=$2
2888: echo "$as_me:$LINENO: checking for $ac_word" >&5
2889: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2890: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2891: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2892: else
1.11 paf 2893: if test -n "$ac_ct_CC"; then
2894: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 2895: else
1.11 paf 2896: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897: for as_dir in $PATH
2898: do
2899: IFS=$as_save_IFS
2900: test -z "$as_dir" && as_dir=.
2901: for ac_exec_ext in '' $ac_executable_extensions; do
2902: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903: ac_cv_prog_ac_ct_CC="gcc"
2904: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905: break 2
2906: fi
2907: done
2908: done
2909:
2910: fi
1.1 parser 2911: fi
1.11 paf 2912: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2913: if test -n "$ac_ct_CC"; then
2914: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2915: echo "${ECHO_T}$ac_ct_CC" >&6
2916: else
2917: echo "$as_me:$LINENO: result: no" >&5
2918: echo "${ECHO_T}no" >&6
1.1 parser 2919: fi
1.11 paf 2920:
2921: CC=$ac_ct_CC
1.1 parser 2922: else
1.11 paf 2923: CC="$ac_cv_prog_CC"
1.1 parser 2924: fi
2925:
1.11 paf 2926: if test -z "$CC"; then
2927: if test -n "$ac_tool_prefix"; then
2928: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2929: set dummy ${ac_tool_prefix}cc; ac_word=$2
2930: echo "$as_me:$LINENO: checking for $ac_word" >&5
2931: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2932: if test "${ac_cv_prog_CC+set}" = set; then
2933: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2934: else
2935: if test -n "$CC"; then
2936: ac_cv_prog_CC="$CC" # Let the user override the test.
2937: else
1.11 paf 2938: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939: for as_dir in $PATH
2940: do
2941: IFS=$as_save_IFS
2942: test -z "$as_dir" && as_dir=.
2943: for ac_exec_ext in '' $ac_executable_extensions; do
2944: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945: ac_cv_prog_CC="${ac_tool_prefix}cc"
2946: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947: break 2
2948: fi
2949: done
2950: done
2951:
1.1 parser 2952: fi
2953: fi
1.11 paf 2954: CC=$ac_cv_prog_CC
1.1 parser 2955: if test -n "$CC"; then
1.11 paf 2956: echo "$as_me:$LINENO: result: $CC" >&5
2957: echo "${ECHO_T}$CC" >&6
2958: else
2959: echo "$as_me:$LINENO: result: no" >&5
2960: echo "${ECHO_T}no" >&6
2961: fi
2962:
2963: fi
2964: if test -z "$ac_cv_prog_CC"; then
2965: ac_ct_CC=$CC
2966: # Extract the first word of "cc", so it can be a program name with args.
2967: set dummy cc; ac_word=$2
2968: echo "$as_me:$LINENO: checking for $ac_word" >&5
2969: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2970: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2971: echo $ECHO_N "(cached) $ECHO_C" >&6
2972: else
2973: if test -n "$ac_ct_CC"; then
2974: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2975: else
2976: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977: for as_dir in $PATH
2978: do
2979: IFS=$as_save_IFS
2980: test -z "$as_dir" && as_dir=.
2981: for ac_exec_ext in '' $ac_executable_extensions; do
2982: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983: ac_cv_prog_ac_ct_CC="cc"
2984: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985: break 2
2986: fi
2987: done
2988: done
2989:
2990: fi
2991: fi
2992: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2993: if test -n "$ac_ct_CC"; then
2994: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2995: echo "${ECHO_T}$ac_ct_CC" >&6
2996: else
2997: echo "$as_me:$LINENO: result: no" >&5
2998: echo "${ECHO_T}no" >&6
2999: fi
3000:
3001: CC=$ac_ct_CC
1.1 parser 3002: else
1.11 paf 3003: CC="$ac_cv_prog_CC"
1.1 parser 3004: fi
3005:
1.11 paf 3006: fi
1.1 parser 3007: if test -z "$CC"; then
3008: # Extract the first word of "cc", so it can be a program name with args.
3009: set dummy cc; ac_word=$2
1.11 paf 3010: echo "$as_me:$LINENO: checking for $ac_word" >&5
3011: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3012: if test "${ac_cv_prog_CC+set}" = set; then
3013: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3014: else
3015: if test -n "$CC"; then
3016: ac_cv_prog_CC="$CC" # Let the user override the test.
3017: else
3018: ac_prog_rejected=no
1.11 paf 3019: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020: for as_dir in $PATH
3021: do
3022: IFS=$as_save_IFS
3023: test -z "$as_dir" && as_dir=.
3024: for ac_exec_ext in '' $ac_executable_extensions; do
3025: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3027: ac_prog_rejected=yes
3028: continue
3029: fi
3030: ac_cv_prog_CC="cc"
3031: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3032: break 2
3033: fi
3034: done
3035: done
3036:
1.1 parser 3037: if test $ac_prog_rejected = yes; then
3038: # We found a bogon in the path, so make sure we never use it.
3039: set dummy $ac_cv_prog_CC
3040: shift
1.11 paf 3041: if test $# != 0; then
1.1 parser 3042: # We chose a different compiler from the bogus one.
3043: # However, it has the same basename, so the bogon will be chosen
3044: # first if we set CC to just the basename; use the full file name.
3045: shift
1.11 paf 3046: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 3047: fi
3048: fi
3049: fi
3050: fi
1.11 paf 3051: CC=$ac_cv_prog_CC
1.1 parser 3052: if test -n "$CC"; then
1.11 paf 3053: echo "$as_me:$LINENO: result: $CC" >&5
3054: echo "${ECHO_T}$CC" >&6
1.1 parser 3055: else
1.11 paf 3056: echo "$as_me:$LINENO: result: no" >&5
3057: echo "${ECHO_T}no" >&6
1.1 parser 3058: fi
3059:
1.11 paf 3060: fi
3061: if test -z "$CC"; then
3062: if test -n "$ac_tool_prefix"; then
3063: for ac_prog in cl
3064: do
3065: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3066: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3067: echo "$as_me:$LINENO: checking for $ac_word" >&5
3068: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069: if test "${ac_cv_prog_CC+set}" = set; then
3070: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3071: else
3072: if test -n "$CC"; then
3073: ac_cv_prog_CC="$CC" # Let the user override the test.
3074: else
1.11 paf 3075: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076: for as_dir in $PATH
3077: do
3078: IFS=$as_save_IFS
3079: test -z "$as_dir" && as_dir=.
3080: for ac_exec_ext in '' $ac_executable_extensions; do
3081: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3083: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084: break 2
3085: fi
3086: done
3087: done
3088:
1.1 parser 3089: fi
3090: fi
1.11 paf 3091: CC=$ac_cv_prog_CC
1.1 parser 3092: if test -n "$CC"; then
1.11 paf 3093: echo "$as_me:$LINENO: result: $CC" >&5
3094: echo "${ECHO_T}$CC" >&6
1.1 parser 3095: else
1.11 paf 3096: echo "$as_me:$LINENO: result: no" >&5
3097: echo "${ECHO_T}no" >&6
1.1 parser 3098: fi
1.11 paf 3099:
3100: test -n "$CC" && break
3101: done
3102: fi
3103: if test -z "$CC"; then
3104: ac_ct_CC=$CC
3105: for ac_prog in cl
3106: do
3107: # Extract the first word of "$ac_prog", so it can be a program name with args.
3108: set dummy $ac_prog; ac_word=$2
3109: echo "$as_me:$LINENO: checking for $ac_word" >&5
3110: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3111: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3112: echo $ECHO_N "(cached) $ECHO_C" >&6
3113: else
3114: if test -n "$ac_ct_CC"; then
3115: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3116: else
3117: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118: for as_dir in $PATH
3119: do
3120: IFS=$as_save_IFS
3121: test -z "$as_dir" && as_dir=.
3122: for ac_exec_ext in '' $ac_executable_extensions; do
3123: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3124: ac_cv_prog_ac_ct_CC="$ac_prog"
3125: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126: break 2
1.1 parser 3127: fi
1.11 paf 3128: done
3129: done
3130:
3131: fi
3132: fi
3133: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3134: if test -n "$ac_ct_CC"; then
3135: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3136: echo "${ECHO_T}$ac_ct_CC" >&6
3137: else
3138: echo "$as_me:$LINENO: result: no" >&5
3139: echo "${ECHO_T}no" >&6
1.1 parser 3140: fi
3141:
1.11 paf 3142: test -n "$ac_ct_CC" && break
3143: done
1.1 parser 3144:
1.11 paf 3145: CC=$ac_ct_CC
3146: fi
1.1 parser 3147:
1.11 paf 3148: fi
1.1 parser 3149:
3150:
1.11 paf 3151: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3152: See \`config.log' for more details." >&5
3153: echo "$as_me: error: no acceptable C compiler found in \$PATH
3154: See \`config.log' for more details." >&2;}
3155: { (exit 1); exit 1; }; }
3156:
3157: # Provide some information about the compiler.
3158: echo "$as_me:$LINENO:" \
3159: "checking for C compiler version" >&5
3160: ac_compiler=`set X $ac_compile; echo $2`
3161: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3162: (eval $ac_compiler --version </dev/null >&5) 2>&5
3163: ac_status=$?
3164: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165: (exit $ac_status); }
3166: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3167: (eval $ac_compiler -v </dev/null >&5) 2>&5
3168: ac_status=$?
3169: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170: (exit $ac_status); }
3171: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3172: (eval $ac_compiler -V </dev/null >&5) 2>&5
3173: ac_status=$?
3174: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175: (exit $ac_status); }
3176:
3177: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3178: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3179: if test "${ac_cv_c_compiler_gnu+set}" = set; then
3180: echo $ECHO_N "(cached) $ECHO_C" >&6
3181: else
3182: cat >conftest.$ac_ext <<_ACEOF
3183: #line $LINENO "configure"
3184: /* confdefs.h. */
3185: _ACEOF
3186: cat confdefs.h >>conftest.$ac_ext
3187: cat >>conftest.$ac_ext <<_ACEOF
3188: /* end confdefs.h. */
3189:
3190: int
3191: main ()
3192: {
3193: #ifndef __GNUC__
3194: choke me
1.1 parser 3195: #endif
3196:
1.11 paf 3197: ;
3198: return 0;
3199: }
3200: _ACEOF
3201: rm -f conftest.$ac_objext
3202: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3203: (eval $ac_compile) 2>&5
3204: ac_status=$?
3205: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206: (exit $ac_status); } &&
3207: { ac_try='test -s conftest.$ac_objext'
3208: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209: (eval $ac_try) 2>&5
3210: ac_status=$?
3211: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212: (exit $ac_status); }; }; then
3213: ac_compiler_gnu=yes
3214: else
3215: echo "$as_me: failed program was:" >&5
3216: sed 's/^/| /' conftest.$ac_ext >&5
3217:
3218: ac_compiler_gnu=no
3219: fi
3220: rm -f conftest.$ac_objext conftest.$ac_ext
3221: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3222:
3223: fi
3224: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3225: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3226: GCC=`test $ac_compiler_gnu = yes && echo yes`
3227: ac_test_CFLAGS=${CFLAGS+set}
3228: ac_save_CFLAGS=$CFLAGS
3229: CFLAGS="-g"
3230: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3231: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3232: if test "${ac_cv_prog_cc_g+set}" = set; then
3233: echo $ECHO_N "(cached) $ECHO_C" >&6
3234: else
3235: cat >conftest.$ac_ext <<_ACEOF
3236: #line $LINENO "configure"
3237: /* confdefs.h. */
3238: _ACEOF
3239: cat confdefs.h >>conftest.$ac_ext
3240: cat >>conftest.$ac_ext <<_ACEOF
3241: /* end confdefs.h. */
3242:
3243: int
3244: main ()
3245: {
3246:
3247: ;
3248: return 0;
3249: }
3250: _ACEOF
3251: rm -f conftest.$ac_objext
3252: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3253: (eval $ac_compile) 2>&5
3254: ac_status=$?
3255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256: (exit $ac_status); } &&
3257: { ac_try='test -s conftest.$ac_objext'
3258: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259: (eval $ac_try) 2>&5
3260: ac_status=$?
3261: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262: (exit $ac_status); }; }; then
3263: ac_cv_prog_cc_g=yes
1.1 parser 3264: else
1.11 paf 3265: echo "$as_me: failed program was:" >&5
3266: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3267:
1.11 paf 3268: ac_cv_prog_cc_g=no
1.1 parser 3269: fi
1.11 paf 3270: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 parser 3271: fi
1.11 paf 3272: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3273: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 parser 3274: if test "$ac_test_CFLAGS" = set; then
1.11 paf 3275: CFLAGS=$ac_save_CFLAGS
1.1 parser 3276: elif test $ac_cv_prog_cc_g = yes; then
3277: if test "$GCC" = yes; then
3278: CFLAGS="-g -O2"
3279: else
3280: CFLAGS="-g"
3281: fi
3282: else
3283: if test "$GCC" = yes; then
3284: CFLAGS="-O2"
3285: else
3286: CFLAGS=
3287: fi
3288: fi
1.11 paf 3289: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3290: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3291: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3292: echo $ECHO_N "(cached) $ECHO_C" >&6
3293: else
3294: ac_cv_prog_cc_stdc=no
3295: ac_save_CC=$CC
3296: cat >conftest.$ac_ext <<_ACEOF
3297: #line $LINENO "configure"
3298: /* confdefs.h. */
3299: _ACEOF
3300: cat confdefs.h >>conftest.$ac_ext
3301: cat >>conftest.$ac_ext <<_ACEOF
3302: /* end confdefs.h. */
3303: #include <stdarg.h>
3304: #include <stdio.h>
3305: #include <sys/types.h>
3306: #include <sys/stat.h>
3307: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3308: struct buf { int x; };
3309: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3310: static char *e (p, i)
3311: char **p;
3312: int i;
3313: {
3314: return p[i];
3315: }
3316: static char *f (char * (*g) (char **, int), char **p, ...)
3317: {
3318: char *s;
3319: va_list v;
3320: va_start (v,p);
3321: s = g (p, va_arg (v,int));
3322: va_end (v);
3323: return s;
3324: }
3325: int test (int i, double x);
3326: struct s1 {int (*f) (int a);};
3327: struct s2 {int (*f) (double a);};
3328: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3329: int argc;
3330: char **argv;
3331: int
3332: main ()
3333: {
3334: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3335: ;
3336: return 0;
3337: }
3338: _ACEOF
3339: # Don't try gcc -ansi; that turns off useful extensions and
3340: # breaks some systems' header files.
3341: # AIX -qlanglvl=ansi
3342: # Ultrix and OSF/1 -std1
3343: # HP-UX 10.20 and later -Ae
3344: # HP-UX older versions -Aa -D_HPUX_SOURCE
3345: # SVR4 -Xc -D__EXTENSIONS__
3346: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3347: do
3348: CC="$ac_save_CC $ac_arg"
3349: rm -f conftest.$ac_objext
3350: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3351: (eval $ac_compile) 2>&5
3352: ac_status=$?
3353: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354: (exit $ac_status); } &&
3355: { ac_try='test -s conftest.$ac_objext'
3356: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357: (eval $ac_try) 2>&5
3358: ac_status=$?
3359: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360: (exit $ac_status); }; }; then
3361: ac_cv_prog_cc_stdc=$ac_arg
3362: break
3363: else
3364: echo "$as_me: failed program was:" >&5
3365: sed 's/^/| /' conftest.$ac_ext >&5
3366:
3367: fi
3368: rm -f conftest.$ac_objext
3369: done
3370: rm -f conftest.$ac_ext conftest.$ac_objext
3371: CC=$ac_save_CC
3372:
3373: fi
3374:
3375: case "x$ac_cv_prog_cc_stdc" in
3376: x|xno)
3377: echo "$as_me:$LINENO: result: none needed" >&5
3378: echo "${ECHO_T}none needed" >&6 ;;
3379: *)
3380: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3381: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3382: CC="$CC $ac_cv_prog_cc_stdc" ;;
3383: esac
3384:
3385: # Some people use a C++ compiler to compile C. Since we use `exit',
3386: # in C++ we need to declare it. In case someone uses the same compiler
3387: # for both compiling C and C++ we need to have the C++ compiler decide
3388: # the declaration of exit, since it's the most demanding environment.
3389: cat >conftest.$ac_ext <<_ACEOF
3390: #ifndef __cplusplus
3391: choke me
3392: #endif
3393: _ACEOF
3394: rm -f conftest.$ac_objext
3395: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3396: (eval $ac_compile) 2>&5
3397: ac_status=$?
3398: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399: (exit $ac_status); } &&
3400: { ac_try='test -s conftest.$ac_objext'
3401: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402: (eval $ac_try) 2>&5
3403: ac_status=$?
3404: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405: (exit $ac_status); }; }; then
3406: for ac_declaration in \
3407: ''\
3408: '#include <stdlib.h>' \
3409: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3410: 'extern "C" void std::exit (int); using std::exit;' \
3411: 'extern "C" void exit (int) throw ();' \
3412: 'extern "C" void exit (int);' \
3413: 'void exit (int);'
3414: do
3415: cat >conftest.$ac_ext <<_ACEOF
3416: #line $LINENO "configure"
3417: /* confdefs.h. */
3418: _ACEOF
3419: cat confdefs.h >>conftest.$ac_ext
3420: cat >>conftest.$ac_ext <<_ACEOF
3421: /* end confdefs.h. */
3422: #include <stdlib.h>
3423: $ac_declaration
3424: int
3425: main ()
3426: {
3427: exit (42);
3428: ;
3429: return 0;
3430: }
3431: _ACEOF
3432: rm -f conftest.$ac_objext
3433: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3434: (eval $ac_compile) 2>&5
3435: ac_status=$?
3436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437: (exit $ac_status); } &&
3438: { ac_try='test -s conftest.$ac_objext'
3439: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440: (eval $ac_try) 2>&5
3441: ac_status=$?
3442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443: (exit $ac_status); }; }; then
3444: :
3445: else
3446: echo "$as_me: failed program was:" >&5
3447: sed 's/^/| /' conftest.$ac_ext >&5
3448:
3449: continue
3450: fi
3451: rm -f conftest.$ac_objext conftest.$ac_ext
3452: cat >conftest.$ac_ext <<_ACEOF
3453: #line $LINENO "configure"
3454: /* confdefs.h. */
3455: _ACEOF
3456: cat confdefs.h >>conftest.$ac_ext
3457: cat >>conftest.$ac_ext <<_ACEOF
3458: /* end confdefs.h. */
3459: $ac_declaration
3460: int
3461: main ()
3462: {
3463: exit (42);
3464: ;
3465: return 0;
3466: }
3467: _ACEOF
3468: rm -f conftest.$ac_objext
3469: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3470: (eval $ac_compile) 2>&5
3471: ac_status=$?
3472: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473: (exit $ac_status); } &&
3474: { ac_try='test -s conftest.$ac_objext'
3475: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476: (eval $ac_try) 2>&5
3477: ac_status=$?
3478: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479: (exit $ac_status); }; }; then
3480: break
3481: else
3482: echo "$as_me: failed program was:" >&5
3483: sed 's/^/| /' conftest.$ac_ext >&5
3484:
3485: fi
3486: rm -f conftest.$ac_objext conftest.$ac_ext
3487: done
3488: rm -f conftest*
3489: if test -n "$ac_declaration"; then
3490: echo '#ifdef __cplusplus' >>confdefs.h
3491: echo $ac_declaration >>confdefs.h
3492: echo '#endif' >>confdefs.h
3493: fi
3494:
3495: else
3496: echo "$as_me: failed program was:" >&5
3497: sed 's/^/| /' conftest.$ac_ext >&5
3498:
3499: fi
3500: rm -f conftest.$ac_objext conftest.$ac_ext
3501: ac_ext=cc
3502: ac_cpp='$CXXCPP $CPPFLAGS'
3503: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3506:
3507: depcc="$CC" am_compiler_list=
3508:
3509: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3510: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3511: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3512: echo $ECHO_N "(cached) $ECHO_C" >&6
3513: else
3514: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3515: # We make a subdir and do the tests there. Otherwise we can end up
3516: # making bogus files that we don't know about and never remove. For
3517: # instance it was reported that on HP-UX the gcc test will end up
3518: # making a dummy file named `D' -- because `-MD' means `put the output
3519: # in D'.
3520: mkdir conftest.dir
3521: # Copy depcomp to subdir because otherwise we won't find it if we're
3522: # using a relative directory.
3523: cp "$am_depcomp" conftest.dir
3524: cd conftest.dir
3525:
3526: am_cv_CC_dependencies_compiler_type=none
3527: if test "$am_compiler_list" = ""; then
3528: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3529: fi
3530: for depmode in $am_compiler_list; do
3531: # We need to recreate these files for each test, as the compiler may
3532: # overwrite some of them when testing with obscure command lines.
3533: # This happens at least with the AIX C compiler.
3534: echo '#include "conftest.h"' > conftest.c
3535: echo 'int i;' > conftest.h
3536: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3537:
3538: case $depmode in
3539: nosideeffect)
3540: # after this tag, mechanisms are not by side-effect, so they'll
3541: # only be used when explicitly requested
3542: if test "x$enable_dependency_tracking" = xyes; then
3543: continue
3544: else
3545: break
3546: fi
3547: ;;
3548: none) break ;;
3549: esac
3550: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3551: # mode. It turns out that the SunPro C++ compiler does not properly
3552: # handle `-M -o', and we need to detect this.
3553: if depmode=$depmode \
3554: source=conftest.c object=conftest.o \
3555: depfile=conftest.Po tmpdepfile=conftest.TPo \
3556: $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
3557: grep conftest.h conftest.Po > /dev/null 2>&1 &&
3558: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3559: am_cv_CC_dependencies_compiler_type=$depmode
3560: break
3561: fi
3562: done
3563:
3564: cd ..
3565: rm -rf conftest.dir
3566: else
3567: am_cv_CC_dependencies_compiler_type=none
3568: fi
3569:
3570: fi
3571: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3572: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3573: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3574:
3575:
3576:
3577: if
3578: test "x$enable_dependency_tracking" != xno \
3579: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3580: am__fastdepCC_TRUE=
3581: am__fastdepCC_FALSE='#'
3582: else
3583: am__fastdepCC_TRUE='#'
3584: am__fastdepCC_FALSE=
3585: fi
3586:
3587:
3588: # Find the correct PATH separator. Usually this is `:', but
3589: # DJGPP uses `;' like DOS.
3590: if test "X${PATH_SEPARATOR+set}" != Xset; then
3591: UNAME=${UNAME-`uname 2>/dev/null`}
3592: case X$UNAME in
3593: *-DOS) lt_cv_sys_path_separator=';' ;;
3594: *) lt_cv_sys_path_separator=':' ;;
3595: esac
3596: PATH_SEPARATOR=$lt_cv_sys_path_separator
3597: fi
3598:
1.1 parser 3599:
3600: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3601: if test "${with_gnu_ld+set}" = set; then
3602: withval="$with_gnu_ld"
3603: test "$withval" = no || with_gnu_ld=yes
3604: else
3605: with_gnu_ld=no
1.11 paf 3606: fi;
1.1 parser 3607: ac_prog=ld
1.11 paf 3608: if test "$GCC" = yes; then
1.1 parser 3609: # Check if gcc -print-prog-name=ld gives a path.
1.11 paf 3610: echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3611: echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3612: case $host in
3613: *-*-mingw*)
3614: # gcc leaves a trailing carriage return which upsets mingw
3615: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3616: *)
3617: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3618: esac
3619: case $ac_prog in
1.1 parser 3620: # Accept absolute paths.
3621: [\\/]* | [A-Za-z]:[\\/]*)
3622: re_direlt='/[^/][^/]*/\.\./'
3623: # Canonicalize the path of ld
3624: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3625: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3626: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3627: done
3628: test -z "$LD" && LD="$ac_prog"
3629: ;;
3630: "")
3631: # If it fails, then pretend we aren't using GCC.
3632: ac_prog=ld
3633: ;;
3634: *)
3635: # If it is relative, then search for the first ld in PATH.
3636: with_gnu_ld=unknown
3637: ;;
3638: esac
3639: elif test "$with_gnu_ld" = yes; then
1.11 paf 3640: echo "$as_me:$LINENO: checking for GNU ld" >&5
3641: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.1 parser 3642: else
1.11 paf 3643: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3644: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.1 parser 3645: fi
1.11 paf 3646: if test "${lt_cv_path_LD+set}" = set; then
3647: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3648: else
3649: if test -z "$LD"; then
1.11 paf 3650: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3651: for ac_dir in $PATH; do
3652: test -z "$ac_dir" && ac_dir=.
3653: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.11 paf 3654: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 3655: # Check to see if the program is GNU ld. I'd rather use --version,
3656: # but apparently some GNU ld's only accept -v.
3657: # Break only if it was the GNU/non-GNU ld that we prefer.
1.11 paf 3658: if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1.1 parser 3659: test "$with_gnu_ld" != no && break
3660: else
3661: test "$with_gnu_ld" != yes && break
3662: fi
3663: fi
3664: done
3665: IFS="$ac_save_ifs"
3666: else
1.11 paf 3667: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 3668: fi
3669: fi
3670:
1.11 paf 3671: LD="$lt_cv_path_LD"
1.1 parser 3672: if test -n "$LD"; then
1.11 paf 3673: echo "$as_me:$LINENO: result: $LD" >&5
3674: echo "${ECHO_T}$LD" >&6
1.1 parser 3675: else
1.11 paf 3676: echo "$as_me:$LINENO: result: no" >&5
3677: echo "${ECHO_T}no" >&6
1.1 parser 3678: fi
1.11 paf 3679: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3680: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3681: { (exit 1); exit 1; }; }
3682: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3683: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3684: if test "${lt_cv_prog_gnu_ld+set}" = set; then
3685: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3686: else
3687: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3688: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1.11 paf 3689: lt_cv_prog_gnu_ld=yes
1.1 parser 3690: else
1.11 paf 3691: lt_cv_prog_gnu_ld=no
1.1 parser 3692: fi
3693: fi
1.11 paf 3694: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3695: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3696: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 3697:
3698:
1.11 paf 3699: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3700: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3701: if test "${lt_cv_ld_reload_flag+set}" = set; then
3702: echo $ECHO_N "(cached) $ECHO_C" >&6
3703: else
3704: lt_cv_ld_reload_flag='-r'
3705: fi
3706: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3707: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3708: reload_flag=$lt_cv_ld_reload_flag
3709: test -n "$reload_flag" && reload_flag=" $reload_flag"
1.1 parser 3710:
1.11 paf 3711: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3712: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3713: if test "${lt_cv_path_NM+set}" = set; then
3714: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3715: else
3716: if test -n "$NM"; then
3717: # Let the user override the test.
1.11 paf 3718: lt_cv_path_NM="$NM"
1.1 parser 3719: else
1.11 paf 3720: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3721: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3722: test -z "$ac_dir" && ac_dir=.
1.11 paf 3723: tmp_nm=$ac_dir/${ac_tool_prefix}nm
3724: if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1.1 parser 3725: # Check to see if the nm accepts a BSD-compat flag.
3726: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3727: # nm: unknown option "B" ignored
1.11 paf 3728: # Tru64's nm complains that /dev/null is an invalid object file
3729: if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3730: lt_cv_path_NM="$tmp_nm -B"
1.1 parser 3731: break
1.11 paf 3732: elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3733: lt_cv_path_NM="$tmp_nm -p"
1.1 parser 3734: break
3735: else
1.11 paf 3736: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1.1 parser 3737: continue # so that we can try to find one that supports BSD flags
3738: fi
3739: fi
3740: done
3741: IFS="$ac_save_ifs"
1.11 paf 3742: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1.1 parser 3743: fi
3744: fi
3745:
1.11 paf 3746: NM="$lt_cv_path_NM"
3747: echo "$as_me:$LINENO: result: $NM" >&5
3748: echo "${ECHO_T}$NM" >&6
1.1 parser 3749:
1.11 paf 3750: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3751: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3752: if test "${lt_cv_path_SED+set}" = set; then
3753: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3754: else
1.11 paf 3755: # Loop through the user's path and test for sed and gsed.
3756: # Then use that list of sed's as ones to test for truncation.
3757: as_executable_p="test -f"
3758: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759: for as_dir in $PATH
3760: do
3761: IFS=$as_save_IFS
3762: test -z "$as_dir" && as_dir=.
3763: for ac_prog in sed gsed; do
3764: for ac_exec_ext in '' $ac_executable_extensions; do
3765: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3766: _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3767: fi
3768: done
3769: done
3770: done
3771:
3772: # Create a temporary directory, and hook for its removal unless debugging.
3773: $debug ||
3774: {
3775: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3776: trap '{ (exit 1); exit 1; }' 1 2 13 15
3777: }
3778:
3779: # Create a (secure) tmp directory for tmp files.
3780: : ${TMPDIR=/tmp}
3781: {
3782: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3783: test -n "$tmp" && test -d "$tmp"
3784: } ||
3785: {
3786: tmp=$TMPDIR/sed$$-$RANDOM
3787: (umask 077 && mkdir $tmp)
3788: } ||
3789: {
3790: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3791: { (exit 1); exit 1; }
3792: }
3793: _max=0
3794: _count=0
3795: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3796: # along with /bin/sed that truncates output.
3797: for _sed in $_sed_list /usr/xpg4/bin/sed; do
3798: test ! -f ${_sed} && break
3799: cat /dev/null > "$tmp/sed.in"
3800: _count=0
3801: echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3802: # Check for GNU sed and select it if it is found.
3803: if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3804: lt_cv_path_SED=${_sed}
3805: break
3806: fi
3807: while true; do
3808: cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3809: mv "$tmp/sed.tmp" "$tmp/sed.in"
3810: cp "$tmp/sed.in" "$tmp/sed.nl"
3811: echo >>"$tmp/sed.nl"
3812: ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3813: cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3814: # 40000 chars as input seems more than enough
3815: test $_count -gt 10 && break
3816: _count=`expr $_count + 1`
3817: if test $_count -gt $_max; then
3818: _max=$_count
3819: lt_cv_path_SED=$_sed
3820: fi
3821: done
3822: done
3823: rm -rf "$tmp"
3824:
1.1 parser 3825: fi
3826:
1.11 paf 3827: if test "X$SED" != "X"; then
3828: lt_cv_path_SED=$SED
1.7 paf 3829: else
1.11 paf 3830: SED=$lt_cv_path_SED
1.7 paf 3831: fi
1.11 paf 3832: echo "$as_me:$LINENO: result: $SED" >&5
3833: echo "${ECHO_T}$SED" >&6
3834:
3835: echo "$as_me:$LINENO: checking whether ln -s works" >&5
3836: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3837: LN_S=$as_ln_s
3838: if test "$LN_S" = "ln -s"; then
3839: echo "$as_me:$LINENO: result: yes" >&5
3840: echo "${ECHO_T}yes" >&6
3841: else
3842: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3843: echo "${ECHO_T}no, using $LN_S" >&6
3844: fi
3845:
3846: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3847: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3848: if test "${lt_cv_deplibs_check_method+set}" = set; then
3849: echo $ECHO_N "(cached) $ECHO_C" >&6
3850: else
3851: lt_cv_file_magic_cmd='$MAGIC_CMD'
3852: lt_cv_file_magic_test_file=
3853: lt_cv_deplibs_check_method='unknown'
3854: # Need to set the preceding variable on all platforms that support
3855: # interlibrary dependencies.
3856: # 'none' -- dependencies not supported.
3857: # `unknown' -- same as none, but documents that we really don't know.
3858: # 'pass_all' -- all dependencies passed with no checks.
3859: # 'test_compile' -- check by making test program.
3860: # 'file_magic [[regex]]' -- check by looking for files in library path
3861: # which responds to the $file_magic_cmd with a given egrep regex.
3862: # If you have `file' or equivalent on your system and you're not sure
3863: # whether `pass_all' will *always* work, you probably want this one.
3864:
3865: case $host_os in
3866: aix4* | aix5*)
3867: lt_cv_deplibs_check_method=pass_all
3868: ;;
1.7 paf 3869:
1.11 paf 3870: beos*)
3871: lt_cv_deplibs_check_method=pass_all
3872: ;;
1.1 parser 3873:
1.11 paf 3874: bsdi4*)
3875: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3876: lt_cv_file_magic_cmd='/usr/bin/file -L'
3877: lt_cv_file_magic_test_file=/shlib/libc.so
3878: ;;
1.1 parser 3879:
1.11 paf 3880: cygwin* | mingw* | pw32*)
3881: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3882: lt_cv_file_magic_cmd='$OBJDUMP -f'
3883: ;;
1.1 parser 3884:
1.11 paf 3885: darwin* | rhapsody*)
3886: lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3887: lt_cv_file_magic_cmd='/usr/bin/file -L'
3888: case "$host_os" in
3889: rhapsody* | darwin1.[012])
3890: lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3891: ;;
3892: *) # Darwin 1.3 on
3893: lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3894: ;;
3895: esac
3896: ;;
1.1 parser 3897:
1.11 paf 3898: freebsd*)
3899: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3900: case $host_cpu in
3901: i*86 )
3902: # Not sure whether the presence of OpenBSD here was a mistake.
3903: # Let's accept both of them until this is cleared up.
3904: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3905: lt_cv_file_magic_cmd=/usr/bin/file
3906: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 3907: ;;
3908: esac
1.11 paf 3909: else
3910: lt_cv_deplibs_check_method=pass_all
1.1 parser 3911: fi
3912: ;;
3913:
1.11 paf 3914: gnu*)
3915: lt_cv_deplibs_check_method=pass_all
3916: ;;
1.1 parser 3917:
1.11 paf 3918: hpux10.20*|hpux11*)
3919: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3920: lt_cv_file_magic_cmd=/usr/bin/file
3921: lt_cv_file_magic_test_file=/usr/lib/libc.sl
3922: ;;
1.1 parser 3923:
1.11 paf 3924: irix5* | irix6* | nonstopux*)
3925: case $host_os in
3926: irix5* | nonstopux*)
3927: # this will be overridden with pass_all, but let us keep it just in case
3928: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3929: ;;
3930: *)
3931: case $LD in
3932: *-32|*"-32 ") libmagic=32-bit;;
3933: *-n32|*"-n32 ") libmagic=N32;;
3934: *-64|*"-64 ") libmagic=64-bit;;
3935: *) libmagic=never-match;;
3936: esac
3937: # this will be overridden with pass_all, but let us keep it just in case
3938: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3939: ;;
3940: esac
3941: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3942: lt_cv_deplibs_check_method=pass_all
3943: ;;
3944:
3945: # This must be Linux ELF.
3946: linux-gnu*)
3947: case $host_cpu in
3948: alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3949: lt_cv_deplibs_check_method=pass_all ;;
3950: *)
3951: # glibc up to 2.1.1 does not perform some relocations on ARM
3952: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3953: esac
3954: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3955: ;;
3956:
3957: netbsd*)
3958: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3959: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3960: else
3961: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3962: fi
3963: ;;
3964:
3965: newos6*)
3966: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3967: lt_cv_file_magic_cmd=/usr/bin/file
3968: lt_cv_file_magic_test_file=/usr/lib/libnls.so
3969: ;;
3970:
3971: openbsd*)
3972: lt_cv_file_magic_cmd=/usr/bin/file
3973: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3974: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3975: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3976: else
3977: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3978: fi
3979: ;;
3980:
3981: osf3* | osf4* | osf5*)
3982: # this will be overridden with pass_all, but let us keep it just in case
3983: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3984: lt_cv_file_magic_test_file=/shlib/libc.so
3985: lt_cv_deplibs_check_method=pass_all
3986: ;;
3987:
3988: sco3.2v5*)
3989: lt_cv_deplibs_check_method=pass_all
3990: ;;
3991:
3992: solaris*)
3993: lt_cv_deplibs_check_method=pass_all
3994: lt_cv_file_magic_test_file=/lib/libc.so
3995: ;;
3996:
3997: sysv5uw[78]* | sysv4*uw2*)
3998: lt_cv_deplibs_check_method=pass_all
3999: ;;
4000:
4001: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4002: case $host_vendor in
4003: motorola)
4004: 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]'
4005: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4006: ;;
4007: ncr)
4008: lt_cv_deplibs_check_method=pass_all
4009: ;;
4010: sequent)
4011: lt_cv_file_magic_cmd='/bin/file'
4012: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4013: ;;
4014: sni)
4015: lt_cv_file_magic_cmd='/bin/file'
4016: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4017: lt_cv_file_magic_test_file=/lib/libc.so
4018: ;;
4019: siemens)
4020: lt_cv_deplibs_check_method=pass_all
4021: ;;
4022: esac
4023: ;;
4024: esac
4025:
4026: fi
4027: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4028: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4029: file_magic_cmd=$lt_cv_file_magic_cmd
4030: deplibs_check_method=$lt_cv_deplibs_check_method
4031:
4032:
4033:
4034:
4035:
4036:
4037:
4038:
4039: # Check for command to grab the raw symbol name followed by C symbol from nm.
4040: echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4041: echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4042: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4043: echo $ECHO_N "(cached) $ECHO_C" >&6
4044: else
4045:
4046: # These are sane defaults that work on at least a few old systems.
4047: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4048:
4049: # Character class describing NM global symbol codes.
4050: symcode='[BCDEGRST]'
4051:
4052: # Regexp to match symbols that can be accessed directly from C.
4053: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4054:
4055: # Transform the above into a raw symbol and a C symbol.
4056: symxfrm='\1 \2\3 \3'
4057:
4058: # Transform an extracted symbol line into a proper C declaration
4059: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4060:
4061: # Transform an extracted symbol line into symbol name and symbol address
4062: 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'"
4063:
4064: # Define system-specific variables.
4065: case $host_os in
4066: aix*)
4067: symcode='[BCDT]'
4068: ;;
4069: cygwin* | mingw* | pw32*)
4070: symcode='[ABCDGISTW]'
4071: ;;
4072: hpux*) # Its linker distinguishes data from code symbols
4073: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4074: 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'"
4075: ;;
4076: irix* | nonstopux*)
4077: symcode='[BCDEGRST]'
4078: ;;
4079: osf*)
4080: symcode='[BCDEGQRST]'
4081: ;;
4082: solaris* | sysv5*)
4083: symcode='[BDT]'
4084: ;;
4085: sysv4)
4086: symcode='[DFNSTU]'
4087: ;;
4088: esac
4089:
4090: # Handle CRLF in mingw tool chain
4091: opt_cr=
4092: case $host_os in
4093: mingw*)
4094: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4095: ;;
4096: esac
4097:
4098: # If we're using GNU nm, then use its standard symbol codes.
4099: if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4100: symcode='[ABCDGISTW]'
4101: fi
4102:
4103: # Try without a prefix undercore, then with it.
4104: for ac_symprfx in "" "_"; do
4105:
4106: # Write the raw and C identifiers.
4107: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4108:
4109: # Check to see that the pipe works correctly.
4110: pipe_works=no
4111: rm -f conftest*
4112: cat > conftest.$ac_ext <<EOF
4113: #ifdef __cplusplus
4114: extern "C" {
4115: #endif
4116: char nm_test_var;
4117: void nm_test_func(){}
4118: #ifdef __cplusplus
4119: }
4120: #endif
4121: int main(){nm_test_var='a';nm_test_func();return(0);}
4122: EOF
4123:
4124: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4125: (eval $ac_compile) 2>&5
4126: ac_status=$?
4127: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128: (exit $ac_status); }; then
4129: # Now try to grab the symbols.
4130: nlist=conftest.nm
4131: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4132: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4133: ac_status=$?
4134: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135: (exit $ac_status); } && test -s "$nlist"; then
4136: # Try sorting and uniquifying the output.
4137: if sort "$nlist" | uniq > "$nlist"T; then
4138: mv -f "$nlist"T "$nlist"
4139: else
4140: rm -f "$nlist"T
4141: fi
4142:
4143: # Make sure that we snagged all the symbols we need.
4144: if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4145: if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4146: cat <<EOF > conftest.$ac_ext
4147: #ifdef __cplusplus
4148: extern "C" {
4149: #endif
4150:
4151: EOF
4152: # Now generate the symbol file.
4153: eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4154:
4155: cat <<EOF >> conftest.$ac_ext
4156: #if defined (__STDC__) && __STDC__
4157: # define lt_ptr void *
4158: #else
4159: # define lt_ptr char *
4160: # define const
4161: #endif
4162:
4163: /* The mapping between symbol names and symbols. */
4164: const struct {
4165: const char *name;
4166: lt_ptr address;
4167: }
4168: lt_preloaded_symbols[] =
4169: {
4170: EOF
4171: sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4172: cat <<\EOF >> conftest.$ac_ext
4173: {0, (lt_ptr) 0}
4174: };
4175:
4176: #ifdef __cplusplus
4177: }
4178: #endif
1.1 parser 4179: EOF
1.11 paf 4180: # Now try linking the two files.
4181: mv conftest.$ac_objext conftstm.$ac_objext
4182: save_LIBS="$LIBS"
4183: save_CFLAGS="$CFLAGS"
4184: LIBS="conftstm.$ac_objext"
4185: CFLAGS="$CFLAGS$no_builtin_flag"
4186: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4187: (eval $ac_link) 2>&5
4188: ac_status=$?
4189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190: (exit $ac_status); } && test -s conftest$ac_exeext; then
4191: pipe_works=yes
4192: fi
4193: LIBS="$save_LIBS"
4194: CFLAGS="$save_CFLAGS"
4195: else
4196: echo "cannot find nm_test_func in $nlist" >&5
4197: fi
4198: else
4199: echo "cannot find nm_test_var in $nlist" >&5
4200: fi
4201: else
4202: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4203: fi
4204: else
4205: echo "$progname: failed program was:" >&5
4206: cat conftest.$ac_ext >&5
4207: fi
4208: rm -f conftest* conftst*
4209:
4210: # Do not use the global_symbol_pipe unless it works.
4211: if test "$pipe_works" = yes; then
4212: break
4213: else
4214: lt_cv_sys_global_symbol_pipe=
4215: fi
4216: done
4217:
4218: fi
4219:
4220: global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4221: if test -z "$lt_cv_sys_global_symbol_pipe"; then
4222: global_symbol_to_cdecl=
4223: global_symbol_to_c_name_address=
4224: else
4225: global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4226: global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4227: fi
4228: if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4229: then
4230: echo "$as_me:$LINENO: result: failed" >&5
4231: echo "${ECHO_T}failed" >&6
4232: else
4233: echo "$as_me:$LINENO: result: ok" >&5
4234: echo "${ECHO_T}ok" >&6
4235: fi
4236:
4237:
4238: ac_ext=cc
4239: ac_cpp='$CXXCPP $CPPFLAGS'
4240: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242: ac_compiler_gnu=$ac_cv_cxx_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: if test -z "$CXXCPP"; then
4246: if test "${ac_cv_prog_CXXCPP+set}" = set; then
4247: echo $ECHO_N "(cached) $ECHO_C" >&6
4248: else
4249: # Double quotes because CXXCPP needs to be expanded
4250: for CXXCPP in "$CXX -E" "/lib/cpp"
4251: do
4252: ac_preproc_ok=false
4253: for ac_cxx_preproc_warn_flag in '' yes
4254: do
4255: # Use a header file that comes with gcc, so configuring glibc
4256: # with a fresh cross-compiler works.
4257: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258: # <limits.h> exists even on freestanding compilers.
4259: # On the NeXT, cc -E runs the code through the compiler's parser,
4260: # not just through cpp. "Syntax error" is here to catch this case.
4261: cat >conftest.$ac_ext <<_ACEOF
4262: #line $LINENO "configure"
4263: /* confdefs.h. */
4264: _ACEOF
4265: cat confdefs.h >>conftest.$ac_ext
4266: cat >>conftest.$ac_ext <<_ACEOF
4267: /* end confdefs.h. */
4268: #ifdef __STDC__
4269: # include <limits.h>
4270: #else
4271: # include <assert.h>
4272: #endif
4273: Syntax error
4274: _ACEOF
4275: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4276: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4277: ac_status=$?
4278: grep -v '^ *+' conftest.er1 >conftest.err
4279: rm -f conftest.er1
4280: cat conftest.err >&5
4281: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282: (exit $ac_status); } >/dev/null; then
4283: if test -s conftest.err; then
4284: ac_cpp_err=$ac_cxx_preproc_warn_flag
4285: else
4286: ac_cpp_err=
4287: fi
4288: else
4289: ac_cpp_err=yes
4290: fi
4291: if test -z "$ac_cpp_err"; then
4292: :
4293: else
4294: echo "$as_me: failed program was:" >&5
4295: sed 's/^/| /' conftest.$ac_ext >&5
4296:
4297: # Broken: fails on valid input.
4298: continue
4299: fi
4300: rm -f conftest.err conftest.$ac_ext
4301:
4302: # OK, works on sane cases. Now check whether non-existent headers
4303: # can be detected and how.
4304: cat >conftest.$ac_ext <<_ACEOF
4305: #line $LINENO "configure"
4306: /* confdefs.h. */
4307: _ACEOF
4308: cat confdefs.h >>conftest.$ac_ext
4309: cat >>conftest.$ac_ext <<_ACEOF
4310: /* end confdefs.h. */
4311: #include <ac_nonexistent.h>
4312: _ACEOF
4313: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4314: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4315: ac_status=$?
4316: grep -v '^ *+' conftest.er1 >conftest.err
4317: rm -f conftest.er1
4318: cat conftest.err >&5
4319: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320: (exit $ac_status); } >/dev/null; then
4321: if test -s conftest.err; then
4322: ac_cpp_err=$ac_cxx_preproc_warn_flag
4323: else
4324: ac_cpp_err=
4325: fi
4326: else
4327: ac_cpp_err=yes
4328: fi
4329: if test -z "$ac_cpp_err"; then
4330: # Broken: success on invalid input.
4331: continue
1.1 parser 4332: else
1.11 paf 4333: echo "$as_me: failed program was:" >&5
4334: sed 's/^/| /' conftest.$ac_ext >&5
4335:
4336: # Passes both tests.
4337: ac_preproc_ok=:
4338: break
1.1 parser 4339: fi
1.11 paf 4340: rm -f conftest.err conftest.$ac_ext
4341:
4342: done
4343: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4344: rm -f conftest.err conftest.$ac_ext
4345: if $ac_preproc_ok; then
4346: break
1.1 parser 4347: fi
4348:
1.11 paf 4349: done
4350: ac_cv_prog_CXXCPP=$CXXCPP
4351:
4352: fi
4353: CXXCPP=$ac_cv_prog_CXXCPP
4354: else
4355: ac_cv_prog_CXXCPP=$CXXCPP
4356: fi
4357: echo "$as_me:$LINENO: result: $CXXCPP" >&5
4358: echo "${ECHO_T}$CXXCPP" >&6
4359: ac_preproc_ok=false
4360: for ac_cxx_preproc_warn_flag in '' yes
4361: do
4362: # Use a header file that comes with gcc, so configuring glibc
4363: # with a fresh cross-compiler works.
4364: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4365: # <limits.h> exists even on freestanding compilers.
4366: # On the NeXT, cc -E runs the code through the compiler's parser,
4367: # not just through cpp. "Syntax error" is here to catch this case.
4368: cat >conftest.$ac_ext <<_ACEOF
4369: #line $LINENO "configure"
4370: /* confdefs.h. */
4371: _ACEOF
4372: cat confdefs.h >>conftest.$ac_ext
4373: cat >>conftest.$ac_ext <<_ACEOF
4374: /* end confdefs.h. */
4375: #ifdef __STDC__
4376: # include <limits.h>
4377: #else
4378: # include <assert.h>
4379: #endif
4380: Syntax error
4381: _ACEOF
4382: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4383: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4384: ac_status=$?
4385: grep -v '^ *+' conftest.er1 >conftest.err
4386: rm -f conftest.er1
4387: cat conftest.err >&5
4388: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389: (exit $ac_status); } >/dev/null; then
4390: if test -s conftest.err; then
4391: ac_cpp_err=$ac_cxx_preproc_warn_flag
4392: else
4393: ac_cpp_err=
1.1 parser 4394: fi
1.11 paf 4395: else
4396: ac_cpp_err=yes
4397: fi
4398: if test -z "$ac_cpp_err"; then
4399: :
4400: else
4401: echo "$as_me: failed program was:" >&5
4402: sed 's/^/| /' conftest.$ac_ext >&5
4403:
4404: # Broken: fails on valid input.
4405: continue
4406: fi
4407: rm -f conftest.err conftest.$ac_ext
1.1 parser 4408:
1.11 paf 4409: # OK, works on sane cases. Now check whether non-existent headers
4410: # can be detected and how.
4411: cat >conftest.$ac_ext <<_ACEOF
4412: #line $LINENO "configure"
4413: /* confdefs.h. */
4414: _ACEOF
4415: cat confdefs.h >>conftest.$ac_ext
4416: cat >>conftest.$ac_ext <<_ACEOF
4417: /* end confdefs.h. */
4418: #include <ac_nonexistent.h>
4419: _ACEOF
4420: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4421: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4422: ac_status=$?
4423: grep -v '^ *+' conftest.er1 >conftest.err
4424: rm -f conftest.er1
4425: cat conftest.err >&5
4426: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427: (exit $ac_status); } >/dev/null; then
4428: if test -s conftest.err; then
4429: ac_cpp_err=$ac_cxx_preproc_warn_flag
4430: else
4431: ac_cpp_err=
4432: fi
4433: else
4434: ac_cpp_err=yes
4435: fi
4436: if test -z "$ac_cpp_err"; then
4437: # Broken: success on invalid input.
4438: continue
1.7 paf 4439: else
1.11 paf 4440: echo "$as_me: failed program was:" >&5
4441: sed 's/^/| /' conftest.$ac_ext >&5
4442:
4443: # Passes both tests.
4444: ac_preproc_ok=:
4445: break
4446: fi
4447: rm -f conftest.err conftest.$ac_ext
4448:
4449: done
4450: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4451: rm -f conftest.err conftest.$ac_ext
4452: if $ac_preproc_ok; then
4453: :
1.7 paf 4454: else
1.11 paf 4455: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4456: See \`config.log' for more details." >&5
4457: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4458: See \`config.log' for more details." >&2;}
4459: { (exit 1); exit 1; }; }
4460: fi
4461:
4462: ac_ext=cc
4463: ac_cpp='$CXXCPP $CPPFLAGS'
4464: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4467:
4468:
4469: echo "$as_me:$LINENO: checking for egrep" >&5
4470: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4471: if test "${ac_cv_prog_egrep+set}" = set; then
4472: echo $ECHO_N "(cached) $ECHO_C" >&6
4473: else
4474: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4475: then ac_cv_prog_egrep='grep -E'
4476: else ac_cv_prog_egrep='egrep'
1.7 paf 4477: fi
4478: fi
1.11 paf 4479: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4480: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4481: EGREP=$ac_cv_prog_egrep
4482:
4483:
4484: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4485: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4486: if test "${ac_cv_header_stdc+set}" = set; then
4487: echo $ECHO_N "(cached) $ECHO_C" >&6
4488: else
4489: cat >conftest.$ac_ext <<_ACEOF
4490: #line $LINENO "configure"
4491: /* confdefs.h. */
4492: _ACEOF
4493: cat confdefs.h >>conftest.$ac_ext
4494: cat >>conftest.$ac_ext <<_ACEOF
4495: /* end confdefs.h. */
4496: #include <stdlib.h>
4497: #include <stdarg.h>
4498: #include <string.h>
4499: #include <float.h>
4500:
4501: int
4502: main ()
4503: {
4504:
4505: ;
4506: return 0;
4507: }
4508: _ACEOF
4509: rm -f conftest.$ac_objext
4510: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511: (eval $ac_compile) 2>&5
4512: ac_status=$?
4513: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514: (exit $ac_status); } &&
4515: { ac_try='test -s conftest.$ac_objext'
4516: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517: (eval $ac_try) 2>&5
4518: ac_status=$?
4519: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520: (exit $ac_status); }; }; then
4521: ac_cv_header_stdc=yes
4522: else
4523: echo "$as_me: failed program was:" >&5
4524: sed 's/^/| /' conftest.$ac_ext >&5
4525:
4526: ac_cv_header_stdc=no
4527: fi
4528: rm -f conftest.$ac_objext conftest.$ac_ext
4529:
4530: if test $ac_cv_header_stdc = yes; then
4531: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4532: cat >conftest.$ac_ext <<_ACEOF
4533: #line $LINENO "configure"
4534: /* confdefs.h. */
4535: _ACEOF
4536: cat confdefs.h >>conftest.$ac_ext
4537: cat >>conftest.$ac_ext <<_ACEOF
4538: /* end confdefs.h. */
4539: #include <string.h>
4540:
4541: _ACEOF
4542: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4543: $EGREP "memchr" >/dev/null 2>&1; then
4544: :
4545: else
4546: ac_cv_header_stdc=no
4547: fi
4548: rm -f conftest*
4549:
1.7 paf 4550: fi
1.11 paf 4551:
4552: if test $ac_cv_header_stdc = yes; then
4553: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4554: cat >conftest.$ac_ext <<_ACEOF
4555: #line $LINENO "configure"
4556: /* confdefs.h. */
4557: _ACEOF
4558: cat confdefs.h >>conftest.$ac_ext
4559: cat >>conftest.$ac_ext <<_ACEOF
4560: /* end confdefs.h. */
4561: #include <stdlib.h>
4562:
4563: _ACEOF
4564: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4565: $EGREP "free" >/dev/null 2>&1; then
4566: :
1.7 paf 4567: else
1.11 paf 4568: ac_cv_header_stdc=no
4569: fi
4570: rm -f conftest*
4571:
1.7 paf 4572: fi
4573:
1.11 paf 4574: if test $ac_cv_header_stdc = yes; then
4575: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4576: if test "$cross_compiling" = yes; then
4577: :
4578: else
4579: cat >conftest.$ac_ext <<_ACEOF
4580: #line $LINENO "configure"
4581: /* confdefs.h. */
4582: _ACEOF
4583: cat confdefs.h >>conftest.$ac_ext
4584: cat >>conftest.$ac_ext <<_ACEOF
4585: /* end confdefs.h. */
4586: #include <ctype.h>
4587: #if ((' ' & 0x0FF) == 0x020)
4588: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4589: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4590: #else
4591: # define ISLOWER(c) \
4592: (('a' <= (c) && (c) <= 'i') \
4593: || ('j' <= (c) && (c) <= 'r') \
4594: || ('s' <= (c) && (c) <= 'z'))
4595: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4596: #endif
1.7 paf 4597:
1.11 paf 4598: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4599: int
4600: main ()
4601: {
4602: int i;
4603: for (i = 0; i < 256; i++)
4604: if (XOR (islower (i), ISLOWER (i))
4605: || toupper (i) != TOUPPER (i))
4606: exit(2);
4607: exit (0);
4608: }
4609: _ACEOF
4610: rm -f conftest$ac_exeext
4611: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4612: (eval $ac_link) 2>&5
4613: ac_status=$?
4614: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4616: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617: (eval $ac_try) 2>&5
4618: ac_status=$?
4619: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620: (exit $ac_status); }; }; then
4621: :
1.7 paf 4622: else
1.11 paf 4623: echo "$as_me: program exited with status $ac_status" >&5
4624: echo "$as_me: failed program was:" >&5
4625: sed 's/^/| /' conftest.$ac_ext >&5
4626:
4627: ( exit $ac_status )
4628: ac_cv_header_stdc=no
4629: fi
4630: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4631: fi
4632: fi
4633: fi
4634: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4635: echo "${ECHO_T}$ac_cv_header_stdc" >&6
4636: if test $ac_cv_header_stdc = yes; then
4637:
4638: cat >>confdefs.h <<\_ACEOF
4639: #define STDC_HEADERS 1
4640: _ACEOF
4641:
4642: fi
4643:
4644: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4645:
4646:
4647:
4648:
4649:
4650:
4651:
4652:
4653:
4654: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4655: inttypes.h stdint.h unistd.h
4656: do
4657: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4658: echo "$as_me:$LINENO: checking for $ac_header" >&5
4659: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4660: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4661: echo $ECHO_N "(cached) $ECHO_C" >&6
4662: else
4663: cat >conftest.$ac_ext <<_ACEOF
4664: #line $LINENO "configure"
4665: /* confdefs.h. */
4666: _ACEOF
4667: cat confdefs.h >>conftest.$ac_ext
4668: cat >>conftest.$ac_ext <<_ACEOF
4669: /* end confdefs.h. */
4670: $ac_includes_default
4671:
4672: #include <$ac_header>
4673: _ACEOF
4674: rm -f conftest.$ac_objext
4675: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676: (eval $ac_compile) 2>&5
4677: ac_status=$?
4678: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679: (exit $ac_status); } &&
4680: { ac_try='test -s conftest.$ac_objext'
4681: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682: (eval $ac_try) 2>&5
4683: ac_status=$?
4684: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685: (exit $ac_status); }; }; then
4686: eval "$as_ac_Header=yes"
4687: else
4688: echo "$as_me: failed program was:" >&5
4689: sed 's/^/| /' conftest.$ac_ext >&5
4690:
4691: eval "$as_ac_Header=no"
4692: fi
4693: rm -f conftest.$ac_objext conftest.$ac_ext
4694: fi
4695: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4696: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4697: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4698: cat >>confdefs.h <<_ACEOF
4699: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4700: _ACEOF
4701:
4702: fi
4703:
4704: done
4705:
4706:
4707:
4708: for ac_header in dlfcn.h
4709: do
4710: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4711: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4712: echo "$as_me:$LINENO: checking for $ac_header" >&5
4713: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4714: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4715: echo $ECHO_N "(cached) $ECHO_C" >&6
4716: fi
4717: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4718: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4719: else
4720: # Is the header compilable?
4721: echo "$as_me:$LINENO: checking $ac_header usability" >&5
4722: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4723: cat >conftest.$ac_ext <<_ACEOF
4724: #line $LINENO "configure"
4725: /* confdefs.h. */
4726: _ACEOF
4727: cat confdefs.h >>conftest.$ac_ext
4728: cat >>conftest.$ac_ext <<_ACEOF
4729: /* end confdefs.h. */
4730: $ac_includes_default
4731: #include <$ac_header>
4732: _ACEOF
4733: rm -f conftest.$ac_objext
4734: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735: (eval $ac_compile) 2>&5
4736: ac_status=$?
4737: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738: (exit $ac_status); } &&
4739: { ac_try='test -s conftest.$ac_objext'
4740: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741: (eval $ac_try) 2>&5
4742: ac_status=$?
4743: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744: (exit $ac_status); }; }; then
4745: ac_header_compiler=yes
4746: else
4747: echo "$as_me: failed program was:" >&5
4748: sed 's/^/| /' conftest.$ac_ext >&5
4749:
4750: ac_header_compiler=no
4751: fi
4752: rm -f conftest.$ac_objext conftest.$ac_ext
4753: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4754: echo "${ECHO_T}$ac_header_compiler" >&6
4755:
4756: # Is the header present?
4757: echo "$as_me:$LINENO: checking $ac_header presence" >&5
4758: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4759: cat >conftest.$ac_ext <<_ACEOF
4760: #line $LINENO "configure"
4761: /* confdefs.h. */
4762: _ACEOF
4763: cat confdefs.h >>conftest.$ac_ext
4764: cat >>conftest.$ac_ext <<_ACEOF
4765: /* end confdefs.h. */
4766: #include <$ac_header>
4767: _ACEOF
4768: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4769: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4770: ac_status=$?
4771: grep -v '^ *+' conftest.er1 >conftest.err
4772: rm -f conftest.er1
4773: cat conftest.err >&5
4774: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775: (exit $ac_status); } >/dev/null; then
4776: if test -s conftest.err; then
4777: ac_cpp_err=$ac_cxx_preproc_warn_flag
4778: else
4779: ac_cpp_err=
4780: fi
1.7 paf 4781: else
1.11 paf 4782: ac_cpp_err=yes
1.7 paf 4783: fi
1.11 paf 4784: if test -z "$ac_cpp_err"; then
4785: ac_header_preproc=yes
4786: else
4787: echo "$as_me: failed program was:" >&5
4788: sed 's/^/| /' conftest.$ac_ext >&5
4789:
4790: ac_header_preproc=no
4791: fi
4792: rm -f conftest.err conftest.$ac_ext
4793: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4794: echo "${ECHO_T}$ac_header_preproc" >&6
4795:
4796: # So? What about this header?
4797: case $ac_header_compiler:$ac_header_preproc in
4798: yes:no )
4799: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4800: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4801: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4802: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4803: (
4804: cat <<\_ASBOX
4805: ## ------------------------------------ ##
4806: ## Report this to bug-autoconf@gnu.org. ##
4807: ## ------------------------------------ ##
4808: _ASBOX
4809: ) |
4810: sed "s/^/$as_me: WARNING: /" >&2
4811: ;;
4812: no:yes )
4813: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4814: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4815: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4816: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4817: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4818: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4819: (
4820: cat <<\_ASBOX
4821: ## ------------------------------------ ##
4822: ## Report this to bug-autoconf@gnu.org. ##
4823: ## ------------------------------------ ##
4824: _ASBOX
4825: ) |
4826: sed "s/^/$as_me: WARNING: /" >&2
4827: ;;
4828: esac
4829: echo "$as_me:$LINENO: checking for $ac_header" >&5
4830: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4831: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4832: echo $ECHO_N "(cached) $ECHO_C" >&6
4833: else
4834: eval "$as_ac_Header=$ac_header_preproc"
4835: fi
4836: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4837: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4838:
4839: fi
4840: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4841: cat >>confdefs.h <<_ACEOF
4842: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4843: _ACEOF
4844:
4845: fi
4846:
4847: done
4848:
4849:
4850:
4851:
4852:
4853:
4854: # Only perform the check for file, if the check method requires it
4855: case $deplibs_check_method in
4856: file_magic*)
4857: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4858: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4859: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4860: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4861: echo $ECHO_N "(cached) $ECHO_C" >&6
4862: else
4863: case $MAGIC_CMD in
4864: /*)
4865: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4866: ;;
4867: ?:/*)
4868: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4869: ;;
4870: *)
4871: ac_save_MAGIC_CMD="$MAGIC_CMD"
4872: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4873: ac_dummy="/usr/bin:$PATH"
4874: for ac_dir in $ac_dummy; do
4875: test -z "$ac_dir" && ac_dir=.
4876: if test -f $ac_dir/${ac_tool_prefix}file; then
4877: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4878: if test -n "$file_magic_test_file"; then
4879: case $deplibs_check_method in
4880: "file_magic "*)
4881: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4882: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4883: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4884: egrep "$file_magic_regex" > /dev/null; then
4885: :
4886: else
4887: cat <<EOF 1>&2
4888:
4889: *** Warning: the command libtool uses to detect shared libraries,
4890: *** $file_magic_cmd, produces output that libtool cannot recognize.
4891: *** The result is that libtool may fail to recognize shared libraries
4892: *** as such. This will affect the creation of libtool libraries that
4893: *** depend on shared libraries, but programs linked with such libtool
4894: *** libraries will work regardless of this problem. Nevertheless, you
4895: *** may want to report the problem to your system manager and/or to
4896: *** bug-libtool@gnu.org
4897:
4898: EOF
4899: fi ;;
4900: esac
4901: fi
4902: break
4903: fi
4904: done
4905: IFS="$ac_save_ifs"
4906: MAGIC_CMD="$ac_save_MAGIC_CMD"
4907: ;;
4908: esac
4909: fi
4910:
4911: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4912: if test -n "$MAGIC_CMD"; then
4913: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4914: echo "${ECHO_T}$MAGIC_CMD" >&6
4915: else
4916: echo "$as_me:$LINENO: result: no" >&5
4917: echo "${ECHO_T}no" >&6
4918: fi
4919:
4920: if test -z "$lt_cv_path_MAGIC_CMD"; then
4921: if test -n "$ac_tool_prefix"; then
4922: echo "$as_me:$LINENO: checking for file" >&5
4923: echo $ECHO_N "checking for file... $ECHO_C" >&6
4924: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4925: echo $ECHO_N "(cached) $ECHO_C" >&6
4926: else
4927: case $MAGIC_CMD in
4928: /*)
4929: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4930: ;;
4931: ?:/*)
4932: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4933: ;;
4934: *)
4935: ac_save_MAGIC_CMD="$MAGIC_CMD"
4936: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4937: ac_dummy="/usr/bin:$PATH"
4938: for ac_dir in $ac_dummy; do
4939: test -z "$ac_dir" && ac_dir=.
4940: if test -f $ac_dir/file; then
4941: lt_cv_path_MAGIC_CMD="$ac_dir/file"
4942: if test -n "$file_magic_test_file"; then
4943: case $deplibs_check_method in
4944: "file_magic "*)
4945: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4946: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4947: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4948: egrep "$file_magic_regex" > /dev/null; then
4949: :
4950: else
4951: cat <<EOF 1>&2
4952:
4953: *** Warning: the command libtool uses to detect shared libraries,
4954: *** $file_magic_cmd, produces output that libtool cannot recognize.
4955: *** The result is that libtool may fail to recognize shared libraries
4956: *** as such. This will affect the creation of libtool libraries that
4957: *** depend on shared libraries, but programs linked with such libtool
4958: *** libraries will work regardless of this problem. Nevertheless, you
4959: *** may want to report the problem to your system manager and/or to
4960: *** bug-libtool@gnu.org
4961:
4962: EOF
4963: fi ;;
4964: esac
4965: fi
4966: break
4967: fi
4968: done
4969: IFS="$ac_save_ifs"
4970: MAGIC_CMD="$ac_save_MAGIC_CMD"
4971: ;;
4972: esac
4973: fi
4974:
4975: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4976: if test -n "$MAGIC_CMD"; then
4977: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4978: echo "${ECHO_T}$MAGIC_CMD" >&6
4979: else
4980: echo "$as_me:$LINENO: result: no" >&5
4981: echo "${ECHO_T}no" >&6
4982: fi
4983:
4984: else
4985: MAGIC_CMD=:
4986: fi
4987: fi
4988:
4989: fi
4990: ;;
4991: esac
4992:
4993: if test -n "$ac_tool_prefix"; then
4994: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4995: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4996: echo "$as_me:$LINENO: checking for $ac_word" >&5
4997: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4998: if test "${ac_cv_prog_RANLIB+set}" = set; then
4999: echo $ECHO_N "(cached) $ECHO_C" >&6
5000: else
5001: if test -n "$RANLIB"; then
5002: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5003: else
5004: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005: for as_dir in $PATH
5006: do
5007: IFS=$as_save_IFS
5008: test -z "$as_dir" && as_dir=.
5009: for ac_exec_ext in '' $ac_executable_extensions; do
5010: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5012: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5013: break 2
5014: fi
5015: done
5016: done
5017:
5018: fi
5019: fi
5020: RANLIB=$ac_cv_prog_RANLIB
5021: if test -n "$RANLIB"; then
5022: echo "$as_me:$LINENO: result: $RANLIB" >&5
5023: echo "${ECHO_T}$RANLIB" >&6
5024: else
5025: echo "$as_me:$LINENO: result: no" >&5
5026: echo "${ECHO_T}no" >&6
5027: fi
5028:
5029: fi
5030: if test -z "$ac_cv_prog_RANLIB"; then
5031: ac_ct_RANLIB=$RANLIB
5032: # Extract the first word of "ranlib", so it can be a program name with args.
5033: set dummy ranlib; ac_word=$2
5034: echo "$as_me:$LINENO: checking for $ac_word" >&5
5035: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5036: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5037: echo $ECHO_N "(cached) $ECHO_C" >&6
5038: else
5039: if test -n "$ac_ct_RANLIB"; then
5040: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5041: else
5042: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043: for as_dir in $PATH
5044: do
5045: IFS=$as_save_IFS
5046: test -z "$as_dir" && as_dir=.
5047: for ac_exec_ext in '' $ac_executable_extensions; do
5048: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049: ac_cv_prog_ac_ct_RANLIB="ranlib"
5050: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051: break 2
5052: fi
5053: done
5054: done
5055:
5056: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5057: fi
5058: fi
5059: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5060: if test -n "$ac_ct_RANLIB"; then
5061: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5062: echo "${ECHO_T}$ac_ct_RANLIB" >&6
5063: else
5064: echo "$as_me:$LINENO: result: no" >&5
5065: echo "${ECHO_T}no" >&6
5066: fi
5067:
5068: RANLIB=$ac_ct_RANLIB
5069: else
5070: RANLIB="$ac_cv_prog_RANLIB"
5071: fi
5072:
5073: if test -n "$ac_tool_prefix"; then
5074: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5075: set dummy ${ac_tool_prefix}strip; ac_word=$2
5076: echo "$as_me:$LINENO: checking for $ac_word" >&5
5077: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5078: if test "${ac_cv_prog_STRIP+set}" = set; then
5079: echo $ECHO_N "(cached) $ECHO_C" >&6
5080: else
5081: if test -n "$STRIP"; then
5082: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5083: else
5084: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085: for as_dir in $PATH
5086: do
5087: IFS=$as_save_IFS
5088: test -z "$as_dir" && as_dir=.
5089: for ac_exec_ext in '' $ac_executable_extensions; do
5090: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5092: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5093: break 2
5094: fi
5095: done
5096: done
5097:
5098: fi
5099: fi
5100: STRIP=$ac_cv_prog_STRIP
5101: if test -n "$STRIP"; then
5102: echo "$as_me:$LINENO: result: $STRIP" >&5
5103: echo "${ECHO_T}$STRIP" >&6
5104: else
5105: echo "$as_me:$LINENO: result: no" >&5
5106: echo "${ECHO_T}no" >&6
5107: fi
5108:
5109: fi
5110: if test -z "$ac_cv_prog_STRIP"; then
5111: ac_ct_STRIP=$STRIP
5112: # Extract the first word of "strip", so it can be a program name with args.
5113: set dummy strip; ac_word=$2
5114: echo "$as_me:$LINENO: checking for $ac_word" >&5
5115: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5116: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5117: echo $ECHO_N "(cached) $ECHO_C" >&6
5118: else
5119: if test -n "$ac_ct_STRIP"; then
5120: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5121: else
5122: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123: for as_dir in $PATH
5124: do
5125: IFS=$as_save_IFS
5126: test -z "$as_dir" && as_dir=.
5127: for ac_exec_ext in '' $ac_executable_extensions; do
5128: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129: ac_cv_prog_ac_ct_STRIP="strip"
5130: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131: break 2
5132: fi
5133: done
5134: done
5135:
5136: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5137: fi
5138: fi
5139: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5140: if test -n "$ac_ct_STRIP"; then
5141: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5142: echo "${ECHO_T}$ac_ct_STRIP" >&6
5143: else
5144: echo "$as_me:$LINENO: result: no" >&5
5145: echo "${ECHO_T}no" >&6
5146: fi
5147:
5148: STRIP=$ac_ct_STRIP
5149: else
5150: STRIP="$ac_cv_prog_STRIP"
5151: fi
5152:
5153:
5154: enable_dlopen=no
5155: enable_win32_dll=no
5156:
5157: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5158: if test "${enable_libtool_lock+set}" = set; then
5159: enableval="$enable_libtool_lock"
5160:
5161: fi;
5162: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5163:
5164: # Some flags need to be propagated to the compiler or linker for good
5165: # libtool support.
5166: case $host in
5167: *-*-irix6*)
5168: # Find out which ABI we are using.
5169: echo '#line 5169 "configure"' > conftest.$ac_ext
5170: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5171: (eval $ac_compile) 2>&5
5172: ac_status=$?
5173: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174: (exit $ac_status); }; then
5175: case `/usr/bin/file conftest.$ac_objext` in
5176: *32-bit*)
5177: LD="${LD-ld} -32"
5178: ;;
5179: *N32*)
5180: LD="${LD-ld} -n32"
5181: ;;
5182: *64-bit*)
5183: LD="${LD-ld} -64"
5184: ;;
5185: esac
5186: fi
5187: rm -rf conftest*
5188: ;;
5189:
5190: *-*-sco3.2v5*)
5191: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5192: SAVE_CFLAGS="$CFLAGS"
5193: CFLAGS="$CFLAGS -belf"
5194: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5195: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5196: if test "${lt_cv_cc_needs_belf+set}" = set; then
5197: echo $ECHO_N "(cached) $ECHO_C" >&6
5198: else
5199:
5200:
5201: ac_ext=c
5202: ac_cpp='$CPP $CPPFLAGS'
5203: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5206:
5207: cat >conftest.$ac_ext <<_ACEOF
5208: #line $LINENO "configure"
5209: /* confdefs.h. */
5210: _ACEOF
5211: cat confdefs.h >>conftest.$ac_ext
5212: cat >>conftest.$ac_ext <<_ACEOF
5213: /* end confdefs.h. */
5214:
5215: int
5216: main ()
5217: {
5218:
5219: ;
5220: return 0;
5221: }
5222: _ACEOF
5223: rm -f conftest.$ac_objext conftest$ac_exeext
5224: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5225: (eval $ac_link) 2>&5
5226: ac_status=$?
5227: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228: (exit $ac_status); } &&
5229: { ac_try='test -s conftest$ac_exeext'
5230: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231: (eval $ac_try) 2>&5
5232: ac_status=$?
5233: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234: (exit $ac_status); }; }; then
5235: lt_cv_cc_needs_belf=yes
5236: else
5237: echo "$as_me: failed program was:" >&5
5238: sed 's/^/| /' conftest.$ac_ext >&5
5239:
5240: lt_cv_cc_needs_belf=no
5241: fi
5242: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5243: ac_ext=cc
5244: ac_cpp='$CXXCPP $CPPFLAGS'
5245: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5248:
5249: fi
5250: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5251: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5252: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5253: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5254: CFLAGS="$SAVE_CFLAGS"
5255: fi
5256: ;;
5257:
5258:
5259: esac
5260:
5261: # Sed substitution that helps us do robust quoting. It backslashifies
5262: # metacharacters that are still active within double-quoted strings.
5263: Xsed='sed -e s/^X//'
5264: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5265:
5266: # Same as above, but do not quote variable references.
5267: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5268:
5269: # Sed substitution to delay expansion of an escaped shell variable in a
5270: # double_quote_subst'ed string.
5271: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5272:
5273: # Constants:
5274: rm="rm -f"
5275:
5276: # Global variables:
5277: default_ofile=libtool
5278: can_build_shared=yes
5279:
5280: # All known linkers require a `.a' archive for static linking (except M$VC,
5281: # which needs '.lib').
5282: libext=a
5283: ltmain="$ac_aux_dir/ltmain.sh"
5284: ofile="$default_ofile"
5285: with_gnu_ld="$lt_cv_prog_gnu_ld"
5286: need_locks="$enable_libtool_lock"
5287:
5288: old_CC="$CC"
5289: old_CFLAGS="$CFLAGS"
5290:
5291: # Set sane defaults for various variables
5292: test -z "$AR" && AR=ar
5293: test -z "$AR_FLAGS" && AR_FLAGS=cru
5294: test -z "$AS" && AS=as
5295: test -z "$CC" && CC=cc
5296: test -z "$DLLTOOL" && DLLTOOL=dlltool
5297: test -z "$LD" && LD=ld
5298: test -z "$LN_S" && LN_S="ln -s"
5299: test -z "$MAGIC_CMD" && MAGIC_CMD=file
5300: test -z "$NM" && NM=nm
5301: test -z "$OBJDUMP" && OBJDUMP=objdump
5302: test -z "$RANLIB" && RANLIB=:
5303: test -z "$STRIP" && STRIP=:
5304: test -z "$ac_objext" && ac_objext=o
5305:
5306: if test x"$host" != x"$build"; then
5307: ac_tool_prefix=${host_alias}-
5308: else
5309: ac_tool_prefix=
5310: fi
5311:
5312: # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5313: case $host_os in
5314: linux-gnu*) ;;
5315: linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5316: esac
5317:
5318: case $host_os in
5319: aix3*)
5320: # AIX sometimes has problems with the GCC collect2 program. For some
5321: # reason, if we set the COLLECT_NAMES environment variable, the problems
5322: # vanish in a puff of smoke.
5323: if test "X${COLLECT_NAMES+set}" != Xset; then
5324: COLLECT_NAMES=
5325: export COLLECT_NAMES
5326: fi
5327: ;;
5328: esac
5329:
5330: # Determine commands to create old-style static archives.
5331: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5332: old_postinstall_cmds='chmod 644 $oldlib'
5333: old_postuninstall_cmds=
5334:
5335: if test -n "$RANLIB"; then
5336: case $host_os in
5337: openbsd*)
5338: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5339: ;;
5340: *)
5341: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5342: ;;
5343: esac
5344: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5345: fi
5346:
5347: # Allow CC to be a program name with arguments.
5348: set dummy $CC
5349: compiler="$2"
5350:
5351: echo "$as_me:$LINENO: checking for objdir" >&5
5352: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5353: rm -f .libs 2>/dev/null
5354: mkdir .libs 2>/dev/null
5355: if test -d .libs; then
5356: objdir=.libs
5357: else
5358: # MS-DOS does not allow filenames that begin with a dot.
5359: objdir=_libs
5360: fi
5361: rmdir .libs 2>/dev/null
5362: echo "$as_me:$LINENO: result: $objdir" >&5
5363: echo "${ECHO_T}$objdir" >&6
5364:
5365:
5366:
5367: # Check whether --with-pic or --without-pic was given.
5368: if test "${with_pic+set}" = set; then
5369: withval="$with_pic"
5370: pic_mode="$withval"
5371: else
5372: pic_mode=default
5373: fi;
5374: test -z "$pic_mode" && pic_mode=default
5375:
5376: # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5377: # in isolation, and that seeing it set (from the cache) indicates that
5378: # the associated values are set (in the cache) correctly too.
5379: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5380: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5381: if test "${lt_cv_prog_cc_pic+set}" = set; then
5382: echo $ECHO_N "(cached) $ECHO_C" >&6
5383: else
5384: lt_cv_prog_cc_pic=
5385: lt_cv_prog_cc_shlib=
5386: lt_cv_prog_cc_wl=
5387: lt_cv_prog_cc_static=
5388: lt_cv_prog_cc_no_builtin=
5389: lt_cv_prog_cc_can_build_shared=$can_build_shared
5390:
5391: if test "$GCC" = yes; then
5392: lt_cv_prog_cc_wl='-Wl,'
5393: lt_cv_prog_cc_static='-static'
5394:
5395: case $host_os in
5396: aix*)
5397: # Below there is a dirty hack to force normal static linking with -ldl
5398: # The problem is because libdl dynamically linked with both libc and
5399: # libC (AIX C++ library), which obviously doesn't included in libraries
5400: # list by gcc. This cause undefined symbols with -static flags.
5401: # This hack allows C programs to be linked with "-static -ldl", but
5402: # not sure about C++ programs.
5403: lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5404: ;;
5405: amigaos*)
5406: # FIXME: we need at least 68020 code to build shared libraries, but
5407: # adding the `-m68020' flag to GCC prevents building anything better,
5408: # like `-m68040'.
5409: lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5410: ;;
5411: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5412: # PIC is the default for these OSes.
5413: ;;
5414: darwin* | rhapsody*)
5415: # PIC is the default on this platform
5416: # Common symbols not allowed in MH_DYLIB files
5417: lt_cv_prog_cc_pic='-fno-common'
5418: ;;
5419: cygwin* | mingw* | pw32* | os2*)
5420: # This hack is so that the source file can tell whether it is being
5421: # built for inclusion in a dll (and should export symbols for example).
5422: lt_cv_prog_cc_pic='-DDLL_EXPORT'
5423: ;;
5424: sysv4*MP*)
5425: if test -d /usr/nec; then
5426: lt_cv_prog_cc_pic=-Kconform_pic
5427: fi
5428: ;;
5429: *)
5430: lt_cv_prog_cc_pic='-fPIC'
5431: ;;
5432: esac
5433: else
5434: # PORTME Check for PIC flags for the system compiler.
5435: case $host_os in
5436: aix3* | aix4* | aix5*)
5437: lt_cv_prog_cc_wl='-Wl,'
5438: # All AIX code is PIC.
5439: if test "$host_cpu" = ia64; then
5440: # AIX 5 now supports IA64 processor
5441: lt_cv_prog_cc_static='-Bstatic'
5442: else
5443: lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5444: fi
5445: ;;
5446:
5447: hpux9* | hpux10* | hpux11*)
5448: # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5449: lt_cv_prog_cc_wl='-Wl,'
5450: lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5451: lt_cv_prog_cc_pic='+Z'
5452: ;;
5453:
5454: irix5* | irix6* | nonstopux*)
5455: lt_cv_prog_cc_wl='-Wl,'
5456: lt_cv_prog_cc_static='-non_shared'
5457: # PIC (with -KPIC) is the default.
5458: ;;
5459:
5460: cygwin* | mingw* | pw32* | os2*)
5461: # This hack is so that the source file can tell whether it is being
5462: # built for inclusion in a dll (and should export symbols for example).
5463: lt_cv_prog_cc_pic='-DDLL_EXPORT'
5464: ;;
5465:
5466: newsos6)
5467: lt_cv_prog_cc_pic='-KPIC'
5468: lt_cv_prog_cc_static='-Bstatic'
5469: ;;
5470:
5471: osf3* | osf4* | osf5*)
5472: # All OSF/1 code is PIC.
5473: lt_cv_prog_cc_wl='-Wl,'
5474: lt_cv_prog_cc_static='-non_shared'
5475: ;;
5476:
5477: sco3.2v5*)
5478: lt_cv_prog_cc_pic='-Kpic'
5479: lt_cv_prog_cc_static='-dn'
5480: lt_cv_prog_cc_shlib='-belf'
5481: ;;
5482:
5483: solaris*)
5484: lt_cv_prog_cc_pic='-KPIC'
5485: lt_cv_prog_cc_static='-Bstatic'
5486: lt_cv_prog_cc_wl='-Wl,'
5487: ;;
5488:
5489: sunos4*)
5490: lt_cv_prog_cc_pic='-PIC'
5491: lt_cv_prog_cc_static='-Bstatic'
5492: lt_cv_prog_cc_wl='-Qoption ld '
5493: ;;
5494:
5495: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5496: lt_cv_prog_cc_pic='-KPIC'
5497: lt_cv_prog_cc_static='-Bstatic'
5498: lt_cv_prog_cc_wl='-Wl,'
5499: ;;
5500:
5501: uts4*)
5502: lt_cv_prog_cc_pic='-pic'
5503: lt_cv_prog_cc_static='-Bstatic'
5504: ;;
5505:
5506: sysv4*MP*)
5507: if test -d /usr/nec ;then
5508: lt_cv_prog_cc_pic='-Kconform_pic'
5509: lt_cv_prog_cc_static='-Bstatic'
5510: fi
5511: ;;
5512:
5513: *)
5514: lt_cv_prog_cc_can_build_shared=no
5515: ;;
5516: esac
5517: fi
5518:
5519: fi
5520:
5521: if test -z "$lt_cv_prog_cc_pic"; then
5522: echo "$as_me:$LINENO: result: none" >&5
5523: echo "${ECHO_T}none" >&6
5524: else
5525: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5526: echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5527:
5528: # Check to make sure the pic_flag actually works.
5529: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5530: echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5531: if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5532: echo $ECHO_N "(cached) $ECHO_C" >&6
5533: else
5534: save_CFLAGS="$CFLAGS"
5535: CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5536: cat >conftest.$ac_ext <<_ACEOF
5537: #line $LINENO "configure"
5538: /* confdefs.h. */
5539: _ACEOF
5540: cat confdefs.h >>conftest.$ac_ext
5541: cat >>conftest.$ac_ext <<_ACEOF
5542: /* end confdefs.h. */
5543:
5544: int
5545: main ()
5546: {
5547:
5548: ;
5549: return 0;
5550: }
5551: _ACEOF
5552: rm -f conftest.$ac_objext
5553: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5554: (eval $ac_compile) 2>&5
5555: ac_status=$?
5556: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557: (exit $ac_status); } &&
5558: { ac_try='test -s conftest.$ac_objext'
5559: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560: (eval $ac_try) 2>&5
5561: ac_status=$?
5562: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563: (exit $ac_status); }; }; then
5564: case $host_os in
5565: hpux9* | hpux10* | hpux11*)
5566: # On HP-UX, both CC and GCC only warn that PIC is supported... then
5567: # they create non-PIC objects. So, if there were any warnings, we
5568: # assume that PIC is not supported.
5569: if test -s conftest.err; then
5570: lt_cv_prog_cc_pic_works=no
5571: else
5572: lt_cv_prog_cc_pic_works=yes
5573: fi
5574: ;;
5575: *)
5576: lt_cv_prog_cc_pic_works=yes
5577: ;;
5578: esac
5579:
5580: else
5581: echo "$as_me: failed program was:" >&5
5582: sed 's/^/| /' conftest.$ac_ext >&5
5583:
5584: lt_cv_prog_cc_pic_works=no
5585:
5586: fi
5587: rm -f conftest.$ac_objext conftest.$ac_ext
5588: CFLAGS="$save_CFLAGS"
5589:
5590: fi
5591:
5592:
5593: if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5594: lt_cv_prog_cc_pic=
5595: lt_cv_prog_cc_can_build_shared=no
5596: else
5597: lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5598: fi
5599:
5600: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5601: echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5602: fi
5603:
5604: # Check for any special shared library compilation flags.
5605: if test -n "$lt_cv_prog_cc_shlib"; then
5606: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5607: echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5608: if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5609: else
5610: { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5611: echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5612: lt_cv_prog_cc_can_build_shared=no
5613: fi
5614: fi
5615:
5616: echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5617: echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5618: if test "${lt_cv_prog_cc_static_works+set}" = set; then
5619: echo $ECHO_N "(cached) $ECHO_C" >&6
5620: else
5621: lt_cv_prog_cc_static_works=no
5622: save_LDFLAGS="$LDFLAGS"
5623: LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5624: cat >conftest.$ac_ext <<_ACEOF
5625: #line $LINENO "configure"
5626: /* confdefs.h. */
5627: _ACEOF
5628: cat confdefs.h >>conftest.$ac_ext
5629: cat >>conftest.$ac_ext <<_ACEOF
5630: /* end confdefs.h. */
5631:
5632: int
5633: main ()
5634: {
5635:
5636: ;
5637: return 0;
5638: }
5639: _ACEOF
5640: rm -f conftest.$ac_objext conftest$ac_exeext
5641: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5642: (eval $ac_link) 2>&5
5643: ac_status=$?
5644: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645: (exit $ac_status); } &&
5646: { ac_try='test -s conftest$ac_exeext'
5647: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648: (eval $ac_try) 2>&5
5649: ac_status=$?
5650: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651: (exit $ac_status); }; }; then
5652: lt_cv_prog_cc_static_works=yes
5653: else
5654: echo "$as_me: failed program was:" >&5
5655: sed 's/^/| /' conftest.$ac_ext >&5
5656:
5657: fi
5658: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5659: LDFLAGS="$save_LDFLAGS"
5660:
5661: fi
5662:
5663:
5664: # Belt *and* braces to stop my trousers falling down:
5665: test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5666: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5667: echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5668:
5669: pic_flag="$lt_cv_prog_cc_pic"
5670: special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5671: wl="$lt_cv_prog_cc_wl"
5672: link_static_flag="$lt_cv_prog_cc_static"
5673: no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5674: can_build_shared="$lt_cv_prog_cc_can_build_shared"
5675:
5676:
5677: # Check to see if options -o and -c are simultaneously supported by compiler
5678: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5679: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5680: if test "${lt_cv_compiler_c_o+set}" = set; then
5681: echo $ECHO_N "(cached) $ECHO_C" >&6
5682: else
5683:
5684: $rm -r conftest 2>/dev/null
5685: mkdir conftest
5686: cd conftest
5687: echo "int some_variable = 0;" > conftest.$ac_ext
5688: mkdir out
5689: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5690: # that will create temporary files in the current directory regardless of
5691: # the output directory. Thus, making CWD read-only will cause this test
5692: # to fail, enabling locking or at least warning the user not to do parallel
5693: # builds.
5694: chmod -w .
5695: save_CFLAGS="$CFLAGS"
5696: CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5697: compiler_c_o=no
5698: if { (eval echo configure:5698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5699: # The compiler can only warn and ignore the option if not recognized
5700: # So say no if there are warnings
5701: if test -s out/conftest.err; then
5702: lt_cv_compiler_c_o=no
5703: else
5704: lt_cv_compiler_c_o=yes
5705: fi
5706: else
5707: # Append any errors to the config.log.
5708: cat out/conftest.err 1>&5
5709: lt_cv_compiler_c_o=no
5710: fi
5711: CFLAGS="$save_CFLAGS"
5712: chmod u+w .
5713: $rm conftest* out/*
5714: rmdir out
5715: cd ..
5716: rmdir conftest
5717: $rm -r conftest 2>/dev/null
5718:
5719: fi
5720:
5721: compiler_c_o=$lt_cv_compiler_c_o
5722: echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5723: echo "${ECHO_T}$compiler_c_o" >&6
5724:
5725: if test x"$compiler_c_o" = x"yes"; then
5726: # Check to see if we can write to a .lo
5727: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5728: echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5729: if test "${lt_cv_compiler_o_lo+set}" = set; then
5730: echo $ECHO_N "(cached) $ECHO_C" >&6
5731: else
5732:
5733: lt_cv_compiler_o_lo=no
5734: save_CFLAGS="$CFLAGS"
5735: CFLAGS="$CFLAGS -c -o conftest.lo"
5736: save_objext="$ac_objext"
5737: ac_objext=lo
5738: cat >conftest.$ac_ext <<_ACEOF
5739: #line $LINENO "configure"
5740: /* confdefs.h. */
5741: _ACEOF
5742: cat confdefs.h >>conftest.$ac_ext
5743: cat >>conftest.$ac_ext <<_ACEOF
5744: /* end confdefs.h. */
5745:
5746: int
5747: main ()
5748: {
5749: int some_variable = 0;
5750: ;
5751: return 0;
5752: }
5753: _ACEOF
5754: rm -f conftest.$ac_objext
5755: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5756: (eval $ac_compile) 2>&5
5757: ac_status=$?
5758: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759: (exit $ac_status); } &&
5760: { ac_try='test -s conftest.$ac_objext'
5761: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762: (eval $ac_try) 2>&5
5763: ac_status=$?
5764: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765: (exit $ac_status); }; }; then
5766: # The compiler can only warn and ignore the option if not recognized
5767: # So say no if there are warnings
5768: if test -s conftest.err; then
5769: lt_cv_compiler_o_lo=no
5770: else
5771: lt_cv_compiler_o_lo=yes
5772: fi
5773:
5774: else
5775: echo "$as_me: failed program was:" >&5
5776: sed 's/^/| /' conftest.$ac_ext >&5
5777:
5778: fi
5779: rm -f conftest.$ac_objext conftest.$ac_ext
5780: ac_objext="$save_objext"
5781: CFLAGS="$save_CFLAGS"
5782:
5783: fi
5784:
5785: compiler_o_lo=$lt_cv_compiler_o_lo
5786: echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5787: echo "${ECHO_T}$compiler_o_lo" >&6
5788: else
5789: compiler_o_lo=no
5790: fi
5791:
5792: # Check to see if we can do hard links to lock some files if needed
5793: hard_links="nottested"
5794: if test "$compiler_c_o" = no && test "$need_locks" != no; then
5795: # do not overwrite the value of need_locks provided by the user
5796: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5797: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5798: hard_links=yes
5799: $rm conftest*
5800: ln conftest.a conftest.b 2>/dev/null && hard_links=no
5801: touch conftest.a
5802: ln conftest.a conftest.b 2>&5 || hard_links=no
5803: ln conftest.a conftest.b 2>/dev/null && hard_links=no
5804: echo "$as_me:$LINENO: result: $hard_links" >&5
5805: echo "${ECHO_T}$hard_links" >&6
5806: if test "$hard_links" = no; then
5807: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5808: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5809: need_locks=warn
5810: fi
5811: else
5812: need_locks=no
5813: fi
5814:
5815: if test "$GCC" = yes; then
5816: # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5817: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5818: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5819: echo "int some_variable = 0;" > conftest.$ac_ext
5820: save_CFLAGS="$CFLAGS"
5821: CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5822: compiler_rtti_exceptions=no
5823: cat >conftest.$ac_ext <<_ACEOF
5824: #line $LINENO "configure"
5825: /* confdefs.h. */
5826: _ACEOF
5827: cat confdefs.h >>conftest.$ac_ext
5828: cat >>conftest.$ac_ext <<_ACEOF
5829: /* end confdefs.h. */
5830:
5831: int
5832: main ()
5833: {
5834: int some_variable = 0;
5835: ;
5836: return 0;
5837: }
5838: _ACEOF
5839: rm -f conftest.$ac_objext
5840: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5841: (eval $ac_compile) 2>&5
5842: ac_status=$?
5843: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844: (exit $ac_status); } &&
5845: { ac_try='test -s conftest.$ac_objext'
5846: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847: (eval $ac_try) 2>&5
5848: ac_status=$?
5849: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850: (exit $ac_status); }; }; then
5851: # The compiler can only warn and ignore the option if not recognized
5852: # So say no if there are warnings
5853: if test -s conftest.err; then
5854: compiler_rtti_exceptions=no
5855: else
5856: compiler_rtti_exceptions=yes
5857: fi
5858:
5859: else
5860: echo "$as_me: failed program was:" >&5
5861: sed 's/^/| /' conftest.$ac_ext >&5
5862:
5863: fi
5864: rm -f conftest.$ac_objext conftest.$ac_ext
5865: CFLAGS="$save_CFLAGS"
5866: echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5867: echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5868:
5869: if test "$compiler_rtti_exceptions" = "yes"; then
5870: no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5871: else
5872: no_builtin_flag=' -fno-builtin'
5873: fi
5874: fi
5875:
5876: # See if the linker supports building shared libraries.
5877: echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5878: echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5879:
5880: allow_undefined_flag=
5881: no_undefined_flag=
5882: need_lib_prefix=unknown
5883: need_version=unknown
5884: # when you set need_version to no, make sure it does not cause -set_version
5885: # flags to be left without arguments
5886: archive_cmds=
5887: archive_expsym_cmds=
5888: old_archive_from_new_cmds=
5889: old_archive_from_expsyms_cmds=
5890: export_dynamic_flag_spec=
5891: whole_archive_flag_spec=
5892: thread_safe_flag_spec=
5893: hardcode_into_libs=no
5894: hardcode_libdir_flag_spec=
5895: hardcode_libdir_separator=
5896: hardcode_direct=no
5897: hardcode_minus_L=no
5898: hardcode_shlibpath_var=unsupported
5899: runpath_var=
5900: link_all_deplibs=unknown
5901: always_export_symbols=no
5902: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5903: # include_expsyms should be a list of space-separated symbols to be *always*
5904: # included in the symbol list
5905: include_expsyms=
5906: # exclude_expsyms can be an egrep regular expression of symbols to exclude
5907: # it will be wrapped by ` (' and `)$', so one must not match beginning or
5908: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5909: # as well as any symbol that contains `d'.
5910: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5911: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5912: # platforms (ab)use it in PIC code, but their linkers get confused if
5913: # the symbol is explicitly referenced. Since portable code cannot
5914: # rely on this symbol name, it's probably fine to never include it in
5915: # preloaded symbol tables.
5916: extract_expsyms_cmds=
5917:
5918: case $host_os in
5919: cygwin* | mingw* | pw32*)
5920: # FIXME: the MSVC++ port hasn't been tested in a loooong time
5921: # When not using gcc, we currently assume that we are using
5922: # Microsoft Visual C++.
5923: if test "$GCC" != yes; then
5924: with_gnu_ld=no
5925: fi
5926: ;;
5927: openbsd*)
5928: with_gnu_ld=no
5929: ;;
5930: esac
5931:
5932: ld_shlibs=yes
5933: if test "$with_gnu_ld" = yes; then
5934: # If archive_cmds runs LD, not CC, wlarc should be empty
5935: wlarc='${wl}'
5936:
5937: # See if GNU ld supports shared libraries.
5938: case $host_os in
5939: aix3* | aix4* | aix5*)
5940: # On AIX, the GNU linker is very broken
5941: # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5942: ld_shlibs=no
5943: cat <<EOF 1>&2
5944:
5945: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5946: *** to be unable to reliably create shared libraries on AIX.
5947: *** Therefore, libtool is disabling shared libraries support. If you
5948: *** really care for shared libraries, you may want to modify your PATH
5949: *** so that a non-GNU linker is found, and then restart.
5950:
5951: EOF
5952: ;;
5953:
5954: amigaos*)
5955: 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)'
5956: hardcode_libdir_flag_spec='-L$libdir'
5957: hardcode_minus_L=yes
5958:
5959: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5960: # that the semantics of dynamic libraries on AmigaOS, at least up
5961: # to version 4, is to share data among multiple programs linked
5962: # with the same dynamic library. Since this doesn't match the
5963: # behavior of shared libraries on other platforms, we can use
5964: # them.
5965: ld_shlibs=no
5966: ;;
5967:
5968: beos*)
5969: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5970: allow_undefined_flag=unsupported
5971: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5972: # support --undefined. This deserves some investigation. FIXME
5973: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5974: else
5975: ld_shlibs=no
5976: fi
5977: ;;
5978:
5979: cygwin* | mingw* | pw32*)
5980: # hardcode_libdir_flag_spec is actually meaningless, as there is
5981: # no search path for DLLs.
5982: hardcode_libdir_flag_spec='-L$libdir'
5983: allow_undefined_flag=unsupported
5984: always_export_symbols=yes
5985:
5986: extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5987: sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5988: test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5989: if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5990: else $CC -o impgen impgen.c ; fi)~
5991: $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5992:
5993: old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5994:
5995: # cygwin and mingw dlls have different entry points and sets of symbols
5996: # to exclude.
5997: # FIXME: what about values for MSVC?
5998: dll_entry=__cygwin_dll_entry@12
5999: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6000: case $host_os in
6001: mingw*)
6002: # mingw values
6003: dll_entry=_DllMainCRTStartup@12
6004: dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6005: ;;
6006: esac
6007:
6008: # mingw and cygwin differ, and it's simplest to just exclude the union
6009: # of the two symbol sets.
6010: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6011:
6012: # recent cygwin and mingw systems supply a stub DllMain which the user
6013: # can override, but on older systems we have to supply one (in ltdll.c)
6014: if test "x$lt_cv_need_dllmain" = "xyes"; then
6015: ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6016: 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~
6017: test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6018: else
6019: ltdll_obj=
6020: ltdll_cmds=
6021: fi
6022:
6023: # Extract the symbol export list from an `--export-all' def file,
6024: # then regenerate the def file from the symbol export list, so that
6025: # the compiled dll only exports the symbol export list.
6026: # Be careful not to strip the DATA tag left be newer dlltools.
6027: export_symbols_cmds="$ltdll_cmds"'
6028: $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6029: sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6030:
6031: # If the export-symbols file already is a .def file (1st line
6032: # is EXPORTS), use it as is.
6033: # If DATA tags from a recent dlltool are present, honour them!
6034: archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6035: cp $export_symbols $output_objdir/$soname-def;
6036: else
6037: echo EXPORTS > $output_objdir/$soname-def;
6038: _lt_hint=1;
6039: cat $export_symbols | while read symbol; do
6040: set dummy \$symbol;
6041: case \$# in
6042: 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6043: 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6044: *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6045: esac;
6046: _lt_hint=`expr 1 + \$_lt_hint`;
6047: done;
6048: fi~
6049: '"$ltdll_cmds"'
6050: $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~
6051: $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~
6052: $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~
6053: $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~
6054: $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6055: ;;
6056:
6057: netbsd*)
6058: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6059: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6060: wlarc=
6061: else
6062: archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6063: archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6064: fi
6065: ;;
6066:
6067: solaris* | sysv5*)
6068: if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6069: ld_shlibs=no
6070: cat <<EOF 1>&2
6071:
6072: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6073: *** create shared libraries on Solaris systems. Therefore, libtool
6074: *** is disabling shared libraries support. We urge you to upgrade GNU
6075: *** binutils to release 2.9.1 or newer. Another option is to modify
6076: *** your PATH or compiler configuration so that the native linker is
6077: *** used, and then restart.
6078:
6079: EOF
6080: elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6081: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6082: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6083: else
6084: ld_shlibs=no
6085: fi
6086: ;;
6087:
6088: sunos4*)
6089: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6090: wlarc=
6091: hardcode_direct=yes
6092: hardcode_shlibpath_var=no
6093: ;;
6094:
6095: *)
6096: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6097: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6098: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6099: else
6100: ld_shlibs=no
6101: fi
6102: ;;
6103: esac
6104:
6105: if test "$ld_shlibs" = yes; then
6106: runpath_var=LD_RUN_PATH
6107: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6108: export_dynamic_flag_spec='${wl}--export-dynamic'
6109: case $host_os in
6110: cygwin* | mingw* | pw32*)
6111: # dlltool doesn't understand --whole-archive et. al.
6112: whole_archive_flag_spec=
6113: ;;
6114: *)
6115: # ancient GNU ld didn't support --whole-archive et. al.
6116: if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6117: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6118: else
6119: whole_archive_flag_spec=
6120: fi
6121: ;;
6122: esac
6123: fi
6124: else
6125: # PORTME fill in a description of your system's linker (not GNU ld)
6126: case $host_os in
6127: aix3*)
6128: allow_undefined_flag=unsupported
6129: always_export_symbols=yes
6130: 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'
6131: # Note: this linker hardcodes the directories in LIBPATH if there
6132: # are no directories specified by -L.
6133: hardcode_minus_L=yes
6134: if test "$GCC" = yes && test -z "$link_static_flag"; then
6135: # Neither direct hardcoding nor static linking is supported with a
6136: # broken collect2.
6137: hardcode_direct=unsupported
6138: fi
6139: ;;
6140:
6141: aix4* | aix5*)
6142: if test "$host_cpu" = ia64; then
6143: # On IA64, the linker does run time linking by default, so we don't
6144: # have to do anything special.
6145: aix_use_runtimelinking=no
6146: exp_sym_flag='-Bexport'
6147: no_entry_flag=""
6148: else
6149: aix_use_runtimelinking=no
6150:
6151: # Test if we are trying to use run time linking or normal
6152: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6153: # need to do runtime linking.
6154: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6155: for ld_flag in $LDFLAGS; do
6156: case $ld_flag in
6157: *-brtl*)
6158: aix_use_runtimelinking=yes
6159: break
6160: ;;
6161: esac
6162: done
6163: esac
6164:
6165: exp_sym_flag='-bexport'
6166: no_entry_flag='-bnoentry'
6167: fi
6168:
6169: # When large executables or shared objects are built, AIX ld can
6170: # have problems creating the table of contents. If linking a library
6171: # or program results in "error TOC overflow" add -mminimal-toc to
6172: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6173: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6174:
6175: hardcode_direct=yes
6176: archive_cmds=''
6177: hardcode_libdir_separator=':'
6178: if test "$GCC" = yes; then
6179: case $host_os in aix4.[012]|aix4.[012].*)
6180: collect2name=`${CC} -print-prog-name=collect2`
6181: if test -f "$collect2name" && \
6182: strings "$collect2name" | grep resolve_lib_name >/dev/null
6183: then
6184: # We have reworked collect2
6185: hardcode_direct=yes
6186: else
6187: # We have old collect2
6188: hardcode_direct=unsupported
6189: # It fails to find uninstalled libraries when the uninstalled
6190: # path is not listed in the libpath. Setting hardcode_minus_L
6191: # to unsupported forces relinking
6192: hardcode_minus_L=yes
6193: hardcode_libdir_flag_spec='-L$libdir'
6194: hardcode_libdir_separator=
6195: fi
6196: esac
6197:
6198: shared_flag='-shared'
6199: else
6200: # not using gcc
6201: if test "$host_cpu" = ia64; then
6202: shared_flag='${wl}-G'
6203: else
6204: if test "$aix_use_runtimelinking" = yes; then
6205: shared_flag='${wl}-G'
6206: else
6207: shared_flag='${wl}-bM:SRE'
6208: fi
6209: fi
6210: fi
6211:
6212: # It seems that -bexpall can do strange things, so it is better to
6213: # generate a list of symbols to export.
6214: always_export_symbols=yes
6215: if test "$aix_use_runtimelinking" = yes; then
6216: # Warning - without using the other runtime loading flags (-brtl),
6217: # -berok will link without error, but may produce a broken library.
6218: allow_undefined_flag='-berok'
6219: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6220: 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"
6221: else
6222: if test "$host_cpu" = ia64; then
6223: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6224: allow_undefined_flag="-z nodefs"
6225: 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"
6226: else
6227: hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6228: # Warning - without using the other run time loading flags,
6229: # -berok will link without error, but may produce a broken library.
6230: allow_undefined_flag='${wl}-berok'
6231: # This is a bit strange, but is similar to how AIX traditionally builds
6232: # it's shared libraries.
6233: 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'
6234: fi
6235: fi
6236: ;;
6237:
6238: amigaos*)
6239: 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)'
6240: hardcode_libdir_flag_spec='-L$libdir'
6241: hardcode_minus_L=yes
6242: # see comment about different semantics on the GNU ld section
6243: ld_shlibs=no
6244: ;;
6245:
6246: cygwin* | mingw* | pw32*)
6247: # When not using gcc, we currently assume that we are using
6248: # Microsoft Visual C++.
6249: # hardcode_libdir_flag_spec is actually meaningless, as there is
6250: # no search path for DLLs.
6251: hardcode_libdir_flag_spec=' '
6252: allow_undefined_flag=unsupported
6253: # Tell ltmain to make .lib files, not .a files.
6254: libext=lib
6255: # FIXME: Setting linknames here is a bad hack.
6256: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6257: # The linker will automatically build a .lib file if we build a DLL.
6258: old_archive_from_new_cmds='true'
6259: # FIXME: Should let the user specify the lib program.
6260: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6261: fix_srcfile_path='`cygpath -w "$srcfile"`'
6262: ;;
6263:
6264: darwin* | rhapsody*)
6265: case "$host_os" in
6266: rhapsody* | darwin1.[012])
6267: allow_undefined_flag='-undefined suppress'
6268: ;;
6269: *) # Darwin 1.3 on
6270: allow_undefined_flag='-flat_namespace -undefined suppress'
6271: ;;
6272: esac
6273: # FIXME: Relying on posixy $() will cause problems for
6274: # cross-compilation, but unfortunately the echo tests do not
6275: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6276: # `"' quotes if we put them in here... so don't!
6277: 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)'
6278: # We need to add '_' to the symbols in $export_symbols first
6279: #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6280: hardcode_direct=yes
6281: hardcode_shlibpath_var=no
6282: whole_archive_flag_spec='-all_load $convenience'
6283: ;;
6284:
6285: freebsd1*)
6286: ld_shlibs=no
6287: ;;
6288:
6289: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6290: # support. Future versions do this automatically, but an explicit c++rt0.o
6291: # does not break anything, and helps significantly (at the cost of a little
6292: # extra space).
6293: freebsd2.2*)
6294: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6295: hardcode_libdir_flag_spec='-R$libdir'
6296: hardcode_direct=yes
6297: hardcode_shlibpath_var=no
6298: ;;
6299:
6300: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6301: freebsd2*)
6302: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6303: hardcode_direct=yes
6304: hardcode_minus_L=yes
6305: hardcode_shlibpath_var=no
6306: ;;
6307:
6308: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6309: freebsd*)
6310: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6311: hardcode_libdir_flag_spec='-R$libdir'
6312: hardcode_direct=yes
6313: hardcode_shlibpath_var=no
6314: ;;
6315:
6316: hpux9* | hpux10* | hpux11*)
6317: case $host_os in
6318: 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' ;;
6319: *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6320: esac
6321: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6322: hardcode_libdir_separator=:
6323: hardcode_direct=yes
6324: hardcode_minus_L=yes # Not in the search PATH, but as the default
6325: # location of the library.
6326: export_dynamic_flag_spec='${wl}-E'
6327: ;;
6328:
6329: irix5* | irix6* | nonstopux*)
6330: if test "$GCC" = yes; then
6331: 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'
6332: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6333: else
6334: 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'
6335: hardcode_libdir_flag_spec='-rpath $libdir'
6336: fi
6337: hardcode_libdir_separator=:
6338: link_all_deplibs=yes
6339: ;;
6340:
6341: netbsd*)
6342: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6343: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6344: else
6345: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6346: fi
6347: hardcode_libdir_flag_spec='-R$libdir'
6348: hardcode_direct=yes
6349: hardcode_shlibpath_var=no
6350: ;;
6351:
6352: newsos6)
6353: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6354: hardcode_direct=yes
6355: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6356: hardcode_libdir_separator=:
6357: hardcode_shlibpath_var=no
6358: ;;
6359:
6360: openbsd*)
6361: hardcode_direct=yes
6362: hardcode_shlibpath_var=no
6363: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6364: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6365: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6366: export_dynamic_flag_spec='${wl}-E'
6367: else
6368: case "$host_os" in
6369: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6370: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6371: hardcode_libdir_flag_spec='-R$libdir'
6372: ;;
6373: *)
6374: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6375: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6376: ;;
6377: esac
6378: fi
6379: ;;
6380:
6381: os2*)
6382: hardcode_libdir_flag_spec='-L$libdir'
6383: hardcode_minus_L=yes
6384: allow_undefined_flag=unsupported
6385: 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'
6386: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6387: ;;
6388:
6389: osf3*)
6390: if test "$GCC" = yes; then
6391: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6392: 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'
6393: else
6394: allow_undefined_flag=' -expect_unresolved \*'
6395: 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'
6396: fi
6397: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6398: hardcode_libdir_separator=:
6399: ;;
6400:
6401: osf4* | osf5*) # as osf3* with the addition of -msym flag
6402: if test "$GCC" = yes; then
6403: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6404: 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'
6405: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6406: else
6407: allow_undefined_flag=' -expect_unresolved \*'
6408: 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'
6409: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6410: $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'
6411:
6412: #Both c and cxx compiler support -rpath directly
6413: hardcode_libdir_flag_spec='-rpath $libdir'
6414: fi
6415: hardcode_libdir_separator=:
6416: ;;
6417:
6418: sco3.2v5*)
6419: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6420: hardcode_shlibpath_var=no
6421: runpath_var=LD_RUN_PATH
6422: hardcode_runpath_var=yes
6423: export_dynamic_flag_spec='${wl}-Bexport'
6424: ;;
6425:
6426: solaris*)
6427: # gcc --version < 3.0 without binutils cannot create self contained
6428: # shared libraries reliably, requiring libgcc.a to resolve some of
6429: # the object symbols generated in some cases. Libraries that use
6430: # assert need libgcc.a to resolve __eprintf, for example. Linking
6431: # a copy of libgcc.a into every shared library to guarantee resolving
6432: # such symbols causes other problems: According to Tim Van Holder
6433: # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6434: # (to the application) exception stack for one thing.
6435: no_undefined_flag=' -z defs'
6436: if test "$GCC" = yes; then
6437: case `$CC --version 2>/dev/null` in
6438: [12].*)
6439: cat <<EOF 1>&2
6440:
6441: *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6442: *** create self contained shared libraries on Solaris systems, without
6443: *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6444: *** -no-undefined support, which will at least allow you to build shared
6445: *** libraries. However, you may find that when you link such libraries
6446: *** into an application without using GCC, you have to manually add
6447: *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6448: *** upgrade to a newer version of GCC. Another option is to rebuild your
6449: *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6450:
6451: EOF
6452: no_undefined_flag=
6453: ;;
6454: esac
6455: fi
6456: # $CC -shared without GNU ld will not create a library from C++
6457: # object files and a static libstdc++, better avoid it by now
6458: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6459: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6460: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6461: hardcode_libdir_flag_spec='-R$libdir'
6462: hardcode_shlibpath_var=no
6463: case $host_os in
6464: solaris2.[0-5] | solaris2.[0-5].*) ;;
6465: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6466: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6467: esac
6468: link_all_deplibs=yes
6469: ;;
6470:
6471: sunos4*)
6472: if test "x$host_vendor" = xsequent; then
6473: # Use $CC to link under sequent, because it throws in some extra .o
6474: # files that make .init and .fini sections work.
6475: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6476: else
6477: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6478: fi
6479: hardcode_libdir_flag_spec='-L$libdir'
6480: hardcode_direct=yes
6481: hardcode_minus_L=yes
6482: hardcode_shlibpath_var=no
6483: ;;
6484:
6485: sysv4)
6486: case $host_vendor in
6487: sni)
6488: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6489: hardcode_direct=yes # is this really true???
6490: ;;
6491: siemens)
6492: ## LD is ld it makes a PLAMLIB
6493: ## CC just makes a GrossModule.
6494: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6495: reload_cmds='$CC -r -o $output$reload_objs'
6496: hardcode_direct=no
6497: ;;
6498: motorola)
6499: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6500: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6501: ;;
6502: esac
6503: runpath_var='LD_RUN_PATH'
6504: hardcode_shlibpath_var=no
6505: ;;
6506:
6507: sysv4.3*)
6508: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6509: hardcode_shlibpath_var=no
6510: export_dynamic_flag_spec='-Bexport'
6511: ;;
6512:
6513: sysv5*)
6514: no_undefined_flag=' -z text'
6515: # $CC -shared without GNU ld will not create a library from C++
6516: # object files and a static libstdc++, better avoid it by now
6517: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6518: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6519: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6520: hardcode_libdir_flag_spec=
6521: hardcode_shlibpath_var=no
6522: runpath_var='LD_RUN_PATH'
6523: ;;
6524:
6525: uts4*)
6526: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6527: hardcode_libdir_flag_spec='-L$libdir'
6528: hardcode_shlibpath_var=no
6529: ;;
6530:
6531: dgux*)
6532: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6533: hardcode_libdir_flag_spec='-L$libdir'
6534: hardcode_shlibpath_var=no
6535: ;;
6536:
6537: sysv4*MP*)
6538: if test -d /usr/nec; then
6539: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6540: hardcode_shlibpath_var=no
6541: runpath_var=LD_RUN_PATH
6542: hardcode_runpath_var=yes
6543: ld_shlibs=yes
6544: fi
6545: ;;
6546:
6547: sysv4.2uw2*)
6548: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6549: hardcode_direct=yes
6550: hardcode_minus_L=no
6551: hardcode_shlibpath_var=no
6552: hardcode_runpath_var=yes
6553: runpath_var=LD_RUN_PATH
6554: ;;
6555:
6556: sysv5uw7* | unixware7*)
6557: no_undefined_flag='${wl}-z ${wl}text'
6558: if test "$GCC" = yes; then
6559: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6560: else
6561: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6562: fi
6563: runpath_var='LD_RUN_PATH'
6564: hardcode_shlibpath_var=no
6565: ;;
6566:
6567: *)
6568: ld_shlibs=no
6569: ;;
6570: esac
6571: fi
6572: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6573: echo "${ECHO_T}$ld_shlibs" >&6
6574: test "$ld_shlibs" = no && can_build_shared=no
6575:
6576: # Check hardcoding attributes.
6577: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6578: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6579: hardcode_action=
6580: if test -n "$hardcode_libdir_flag_spec" || \
6581: test -n "$runpath_var"; then
6582:
6583: # We can hardcode non-existant directories.
6584: if test "$hardcode_direct" != no &&
6585: # If the only mechanism to avoid hardcoding is shlibpath_var, we
6586: # have to relink, otherwise we might link with an installed library
6587: # when we should be linking with a yet-to-be-installed one
6588: ## test "$hardcode_shlibpath_var" != no &&
6589: test "$hardcode_minus_L" != no; then
6590: # Linking always hardcodes the temporary library directory.
6591: hardcode_action=relink
6592: else
6593: # We can link without hardcoding, and we can hardcode nonexisting dirs.
6594: hardcode_action=immediate
6595: fi
6596: else
6597: # We cannot hardcode anything, or else we can only hardcode existing
6598: # directories.
6599: hardcode_action=unsupported
6600: fi
6601: echo "$as_me:$LINENO: result: $hardcode_action" >&5
6602: echo "${ECHO_T}$hardcode_action" >&6
6603:
6604: striplib=
6605: old_striplib=
6606: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6607: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6608: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6609: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6610: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6611: echo "$as_me:$LINENO: result: yes" >&5
6612: echo "${ECHO_T}yes" >&6
6613: else
6614: echo "$as_me:$LINENO: result: no" >&5
6615: echo "${ECHO_T}no" >&6
6616: fi
6617:
6618: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6619: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6620:
6621: # PORTME Fill in your ld.so characteristics
6622: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6623: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6624: library_names_spec=
6625: libname_spec='lib$name'
6626: soname_spec=
6627: postinstall_cmds=
6628: postuninstall_cmds=
6629: finish_cmds=
6630: finish_eval=
6631: shlibpath_var=
6632: shlibpath_overrides_runpath=unknown
6633: version_type=none
6634: dynamic_linker="$host_os ld.so"
6635: sys_lib_dlsearch_path_spec="/lib /usr/lib"
6636: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6637:
6638: case $host_os in
6639: aix3*)
6640: version_type=linux
6641: library_names_spec='${libname}${release}.so$versuffix $libname.a'
6642: shlibpath_var=LIBPATH
6643:
6644: # AIX has no versioning support, so we append a major version to the name.
6645: soname_spec='${libname}${release}.so$major'
6646: ;;
6647:
6648: aix4* | aix5*)
6649: version_type=linux
6650: need_lib_prefix=no
6651: need_version=no
6652: hardcode_into_libs=yes
6653: if test "$host_cpu" = ia64; then
6654: # AIX 5 supports IA64
6655: library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6656: shlibpath_var=LD_LIBRARY_PATH
6657: else
6658: # With GCC up to 2.95.x, collect2 would create an import file
6659: # for dependence libraries. The import file would start with
6660: # the line `#! .'. This would cause the generated library to
6661: # depend on `.', always an invalid library. This was fixed in
6662: # development snapshots of GCC prior to 3.0.
6663: case $host_os in
6664: aix4 | aix4.[01] | aix4.[01].*)
6665: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6666: echo ' yes '
6667: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6668: :
6669: else
6670: can_build_shared=no
6671: fi
6672: ;;
6673: esac
6674: # AIX (on Power*) has no versioning support, so currently we can
6675: # not hardcode correct soname into executable. Probably we can
6676: # add versioning support to collect2, so additional links can
6677: # be useful in future.
6678: if test "$aix_use_runtimelinking" = yes; then
6679: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6680: # instead of lib<name>.a to let people know that these are not
6681: # typical AIX shared libraries.
6682: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6683: else
6684: # We preserve .a as extension for shared libraries through AIX4.2
6685: # and later when we are not doing run time linking.
6686: library_names_spec='${libname}${release}.a $libname.a'
6687: soname_spec='${libname}${release}.so$major'
6688: fi
6689: shlibpath_var=LIBPATH
6690: fi
6691: hardcode_into_libs=yes
6692: ;;
6693:
6694: amigaos*)
6695: library_names_spec='$libname.ixlibrary $libname.a'
6696: # Create ${libname}_ixlibrary.a entries in /sys/libs.
6697: 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'
6698: ;;
6699:
6700: beos*)
6701: library_names_spec='${libname}.so'
6702: dynamic_linker="$host_os ld.so"
6703: shlibpath_var=LIBRARY_PATH
6704: ;;
6705:
6706: bsdi4*)
6707: version_type=linux
6708: need_version=no
6709: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6710: soname_spec='${libname}${release}.so$major'
6711: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6712: shlibpath_var=LD_LIBRARY_PATH
6713: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6714: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6715: export_dynamic_flag_spec=-rdynamic
6716: # the default ld.so.conf also contains /usr/contrib/lib and
6717: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6718: # libtool to hard-code these into programs
6719: ;;
6720:
6721: cygwin* | mingw* | pw32*)
6722: version_type=windows
6723: need_version=no
6724: need_lib_prefix=no
6725: case $GCC,$host_os in
6726: yes,cygwin*)
6727: library_names_spec='$libname.dll.a'
6728: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6729: postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6730: dldir=$destdir/`dirname \$dlpath`~
6731: test -d \$dldir || mkdir -p \$dldir~
6732: $install_prog .libs/$dlname \$dldir/$dlname'
6733: postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6734: dlpath=$dir/\$dldll~
6735: $rm \$dlpath'
6736: ;;
6737: yes,mingw*)
6738: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6739: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6740: ;;
6741: yes,pw32*)
6742: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6743: ;;
6744: *)
6745: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6746: ;;
6747: esac
6748: dynamic_linker='Win32 ld.exe'
6749: # FIXME: first we should search . and the directory the executable is in
6750: shlibpath_var=PATH
6751: ;;
6752:
6753: darwin* | rhapsody*)
6754: dynamic_linker="$host_os dyld"
6755: version_type=darwin
6756: need_lib_prefix=no
6757: need_version=no
6758: # FIXME: Relying on posixy $() will cause problems for
6759: # cross-compilation, but unfortunately the echo tests do not
6760: # yet detect zsh echo's removal of \ escapes.
6761: 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)'
6762: soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6763: shlibpath_overrides_runpath=yes
6764: shlibpath_var=DYLD_LIBRARY_PATH
6765: ;;
6766:
6767: freebsd1*)
6768: dynamic_linker=no
6769: ;;
6770:
6771: freebsd*)
6772: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6773: version_type=freebsd-$objformat
6774: case $version_type in
6775: freebsd-elf*)
6776: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6777: need_version=no
6778: need_lib_prefix=no
6779: ;;
6780: freebsd-*)
6781: library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6782: need_version=yes
6783: ;;
6784: esac
6785: shlibpath_var=LD_LIBRARY_PATH
6786: case $host_os in
6787: freebsd2*)
6788: shlibpath_overrides_runpath=yes
6789: ;;
6790: *)
6791: shlibpath_overrides_runpath=no
6792: hardcode_into_libs=yes
6793: ;;
6794: esac
6795: ;;
6796:
6797: gnu*)
6798: version_type=linux
6799: need_lib_prefix=no
6800: need_version=no
6801: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6802: soname_spec='${libname}${release}.so$major'
6803: shlibpath_var=LD_LIBRARY_PATH
6804: hardcode_into_libs=yes
6805: ;;
6806:
6807: hpux9* | hpux10* | hpux11*)
6808: # Give a soname corresponding to the major version so that dld.sl refuses to
6809: # link against other versions.
6810: dynamic_linker="$host_os dld.sl"
6811: version_type=sunos
6812: need_lib_prefix=no
6813: need_version=no
6814: shlibpath_var=SHLIB_PATH
6815: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6816: library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6817: soname_spec='${libname}${release}.sl$major'
6818: # HP-UX runs *really* slowly unless shared libraries are mode 555.
6819: postinstall_cmds='chmod 555 $lib'
6820: ;;
6821:
6822: irix5* | irix6* | nonstopux*)
6823: case $host_os in
6824: nonstopux*) version_type=nonstopux ;;
6825: *) version_type=irix ;;
6826: esac
6827: need_lib_prefix=no
6828: need_version=no
6829: soname_spec='${libname}${release}.so$major'
6830: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6831: case $host_os in
6832: irix5* | nonstopux*)
6833: libsuff= shlibsuff=
6834: ;;
6835: *)
6836: case $LD in # libtool.m4 will add one of these switches to LD
6837: *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6838: *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6839: *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6840: *) libsuff= shlibsuff= libmagic=never-match;;
6841: esac
6842: ;;
6843: esac
6844: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6845: shlibpath_overrides_runpath=no
6846: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6847: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6848: ;;
6849:
6850: # No shared lib support for Linux oldld, aout, or coff.
6851: linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6852: dynamic_linker=no
6853: ;;
6854:
6855: # This must be Linux ELF.
6856: linux-gnu*)
6857: version_type=linux
6858: need_lib_prefix=no
6859: need_version=no
6860: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6861: soname_spec='${libname}${release}.so$major'
6862: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6863: shlibpath_var=LD_LIBRARY_PATH
6864: shlibpath_overrides_runpath=no
6865: # This implies no fast_install, which is unacceptable.
6866: # Some rework will be needed to allow for fast_install
6867: # before this can be enabled.
6868: hardcode_into_libs=yes
6869:
6870: # We used to test for /lib/ld.so.1 and disable shared libraries on
6871: # powerpc, because MkLinux only supported shared libraries with the
6872: # GNU dynamic linker. Since this was broken with cross compilers,
6873: # most powerpc-linux boxes support dynamic linking these days and
6874: # people can always --disable-shared, the test was removed, and we
6875: # assume the GNU/Linux dynamic linker is in use.
6876: dynamic_linker='GNU/Linux ld.so'
6877: ;;
6878:
6879: netbsd*)
6880: version_type=sunos
6881: need_lib_prefix=no
6882: need_version=no
6883: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6884: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6885: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6886: dynamic_linker='NetBSD (a.out) ld.so'
6887: else
6888: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6889: soname_spec='${libname}${release}.so$major'
6890: dynamic_linker='NetBSD ld.elf_so'
6891: fi
6892: shlibpath_var=LD_LIBRARY_PATH
6893: shlibpath_overrides_runpath=yes
6894: hardcode_into_libs=yes
6895: ;;
6896:
6897: newsos6)
6898: version_type=linux
6899: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6900: shlibpath_var=LD_LIBRARY_PATH
6901: shlibpath_overrides_runpath=yes
6902: ;;
6903:
6904: openbsd*)
6905: version_type=sunos
6906: need_lib_prefix=no
6907: need_version=no
6908: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6909: case "$host_os" in
6910: openbsd2.[89] | openbsd2.[89].*)
6911: shlibpath_overrides_runpath=no
6912: ;;
6913: *)
6914: shlibpath_overrides_runpath=yes
6915: ;;
6916: esac
6917: else
6918: shlibpath_overrides_runpath=yes
6919: fi
6920: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6921: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6922: shlibpath_var=LD_LIBRARY_PATH
6923: ;;
6924:
6925: os2*)
6926: libname_spec='$name'
6927: need_lib_prefix=no
6928: library_names_spec='$libname.dll $libname.a'
6929: dynamic_linker='OS/2 ld.exe'
6930: shlibpath_var=LIBPATH
6931: ;;
6932:
6933: osf3* | osf4* | osf5*)
6934: version_type=osf
6935: need_version=no
6936: soname_spec='${libname}${release}.so$major'
6937: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6938: shlibpath_var=LD_LIBRARY_PATH
6939: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6940: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6941: hardcode_into_libs=yes
6942: ;;
6943:
6944: sco3.2v5*)
6945: version_type=osf
6946: soname_spec='${libname}${release}.so$major'
6947: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6948: shlibpath_var=LD_LIBRARY_PATH
6949: ;;
6950:
6951: solaris*)
6952: version_type=linux
6953: need_lib_prefix=no
6954: need_version=no
6955: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6956: soname_spec='${libname}${release}.so$major'
6957: shlibpath_var=LD_LIBRARY_PATH
6958: shlibpath_overrides_runpath=yes
6959: hardcode_into_libs=yes
6960: # ldd complains unless libraries are executable
6961: postinstall_cmds='chmod +x $lib'
6962: ;;
6963:
6964: sunos4*)
6965: version_type=sunos
6966: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6967: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6968: shlibpath_var=LD_LIBRARY_PATH
6969: shlibpath_overrides_runpath=yes
6970: if test "$with_gnu_ld" = yes; then
6971: need_lib_prefix=no
6972: fi
6973: need_version=yes
6974: ;;
6975:
6976: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6977: version_type=linux
6978: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6979: soname_spec='${libname}${release}.so$major'
6980: shlibpath_var=LD_LIBRARY_PATH
6981: case $host_vendor in
6982: sni)
6983: shlibpath_overrides_runpath=no
6984: need_lib_prefix=no
6985: export_dynamic_flag_spec='${wl}-Blargedynsym'
6986: runpath_var=LD_RUN_PATH
6987: ;;
6988: siemens)
6989: need_lib_prefix=no
6990: ;;
6991: motorola)
6992: need_lib_prefix=no
6993: need_version=no
6994: shlibpath_overrides_runpath=no
6995: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6996: ;;
6997: esac
6998: ;;
6999:
7000: uts4*)
7001: version_type=linux
7002: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7003: soname_spec='${libname}${release}.so$major'
7004: shlibpath_var=LD_LIBRARY_PATH
7005: ;;
7006:
7007: dgux*)
7008: version_type=linux
7009: need_lib_prefix=no
7010: need_version=no
7011: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7012: soname_spec='${libname}${release}.so$major'
7013: shlibpath_var=LD_LIBRARY_PATH
7014: ;;
7015:
7016: sysv4*MP*)
7017: if test -d /usr/nec ;then
7018: version_type=linux
7019: library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7020: soname_spec='$libname.so.$major'
7021: shlibpath_var=LD_LIBRARY_PATH
7022: fi
7023: ;;
7024:
7025: *)
7026: dynamic_linker=no
7027: ;;
7028: esac
7029: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7030: echo "${ECHO_T}$dynamic_linker" >&6
7031: test "$dynamic_linker" = no && can_build_shared=no
7032:
7033: # Report the final consequences.
7034: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7035: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7036: echo "$as_me:$LINENO: result: $can_build_shared" >&5
7037: echo "${ECHO_T}$can_build_shared" >&6
7038:
7039: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7040: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7041: test "$can_build_shared" = "no" && enable_shared=no
7042:
7043: # On AIX, shared libraries and static libraries use the same namespace, and
7044: # are all built from PIC.
7045: case "$host_os" in
7046: aix3*)
7047: test "$enable_shared" = yes && enable_static=no
7048: if test -n "$RANLIB"; then
7049: archive_cmds="$archive_cmds~\$RANLIB \$lib"
7050: postinstall_cmds='$RANLIB $lib'
7051: fi
7052: ;;
7053:
7054: aix4*)
7055: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7056: test "$enable_shared" = yes && enable_static=no
7057: fi
7058: ;;
7059: esac
7060: echo "$as_me:$LINENO: result: $enable_shared" >&5
7061: echo "${ECHO_T}$enable_shared" >&6
7062:
7063: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7064: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7065: # Make sure either enable_shared or enable_static is yes.
7066: test "$enable_shared" = yes || enable_static=yes
7067: echo "$as_me:$LINENO: result: $enable_static" >&5
7068: echo "${ECHO_T}$enable_static" >&6
7069:
7070: if test "$hardcode_action" = relink; then
7071: # Fast installation is not supported
7072: enable_fast_install=no
7073: elif test "$shlibpath_overrides_runpath" = yes ||
7074: test "$enable_shared" = no; then
7075: # Fast installation is not necessary
7076: enable_fast_install=needless
7077: fi
7078:
7079: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7080: if test "$GCC" = yes; then
7081: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7082: fi
7083:
7084: if test "x$enable_dlopen" != xyes; then
7085: enable_dlopen=unknown
7086: enable_dlopen_self=unknown
7087: enable_dlopen_self_static=unknown
7088: else
7089: lt_cv_dlopen=no
7090: lt_cv_dlopen_libs=
7091:
7092: case $host_os in
7093: beos*)
7094: lt_cv_dlopen="load_add_on"
7095: lt_cv_dlopen_libs=
7096: lt_cv_dlopen_self=yes
7097: ;;
7098:
7099: cygwin* | mingw* | pw32*)
7100: lt_cv_dlopen="LoadLibrary"
7101: lt_cv_dlopen_libs=
7102: ;;
7103:
7104: *)
7105: echo "$as_me:$LINENO: checking for shl_load" >&5
7106: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7107: if test "${ac_cv_func_shl_load+set}" = set; then
7108: echo $ECHO_N "(cached) $ECHO_C" >&6
7109: else
7110: cat >conftest.$ac_ext <<_ACEOF
7111: #line $LINENO "configure"
7112: /* confdefs.h. */
7113: _ACEOF
7114: cat confdefs.h >>conftest.$ac_ext
7115: cat >>conftest.$ac_ext <<_ACEOF
7116: /* end confdefs.h. */
7117: /* System header to define __stub macros and hopefully few prototypes,
7118: which can conflict with char shl_load (); below.
7119: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7120: <limits.h> exists even on freestanding compilers. */
7121: #ifdef __STDC__
7122: # include <limits.h>
7123: #else
7124: # include <assert.h>
7125: #endif
7126: /* Override any gcc2 internal prototype to avoid an error. */
7127: #ifdef __cplusplus
7128: extern "C"
7129: {
7130: #endif
7131: /* We use char because int might match the return type of a gcc2
7132: builtin and then its argument prototype would still apply. */
7133: char shl_load ();
7134: /* The GNU C library defines this for functions which it implements
7135: to always fail with ENOSYS. Some functions are actually named
7136: something starting with __ and the normal name is an alias. */
7137: #if defined (__stub_shl_load) || defined (__stub___shl_load)
7138: choke me
7139: #else
7140: char (*f) () = shl_load;
7141: #endif
7142: #ifdef __cplusplus
7143: }
7144: #endif
7145:
7146: int
7147: main ()
7148: {
7149: return f != shl_load;
7150: ;
7151: return 0;
7152: }
7153: _ACEOF
7154: rm -f conftest.$ac_objext conftest$ac_exeext
7155: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7156: (eval $ac_link) 2>&5
7157: ac_status=$?
7158: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159: (exit $ac_status); } &&
7160: { ac_try='test -s conftest$ac_exeext'
7161: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162: (eval $ac_try) 2>&5
7163: ac_status=$?
7164: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165: (exit $ac_status); }; }; then
7166: ac_cv_func_shl_load=yes
7167: else
7168: echo "$as_me: failed program was:" >&5
7169: sed 's/^/| /' conftest.$ac_ext >&5
7170:
7171: ac_cv_func_shl_load=no
7172: fi
7173: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7174: fi
7175: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7176: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7177: if test $ac_cv_func_shl_load = yes; then
7178: lt_cv_dlopen="shl_load"
7179: else
7180: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7181: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7182: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7183: echo $ECHO_N "(cached) $ECHO_C" >&6
7184: else
7185: ac_check_lib_save_LIBS=$LIBS
7186: LIBS="-ldld $LIBS"
7187: cat >conftest.$ac_ext <<_ACEOF
7188: #line $LINENO "configure"
7189: /* confdefs.h. */
7190: _ACEOF
7191: cat confdefs.h >>conftest.$ac_ext
7192: cat >>conftest.$ac_ext <<_ACEOF
7193: /* end confdefs.h. */
7194:
7195: /* Override any gcc2 internal prototype to avoid an error. */
7196: #ifdef __cplusplus
7197: extern "C"
7198: #endif
7199: /* We use char because int might match the return type of a gcc2
7200: builtin and then its argument prototype would still apply. */
7201: char shl_load ();
7202: int
7203: main ()
7204: {
7205: shl_load ();
7206: ;
7207: return 0;
7208: }
7209: _ACEOF
7210: rm -f conftest.$ac_objext conftest$ac_exeext
7211: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7212: (eval $ac_link) 2>&5
7213: ac_status=$?
7214: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215: (exit $ac_status); } &&
7216: { ac_try='test -s conftest$ac_exeext'
7217: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218: (eval $ac_try) 2>&5
7219: ac_status=$?
7220: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221: (exit $ac_status); }; }; then
7222: ac_cv_lib_dld_shl_load=yes
7223: else
7224: echo "$as_me: failed program was:" >&5
7225: sed 's/^/| /' conftest.$ac_ext >&5
7226:
7227: ac_cv_lib_dld_shl_load=no
7228: fi
7229: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7230: LIBS=$ac_check_lib_save_LIBS
7231: fi
7232: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7233: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7234: if test $ac_cv_lib_dld_shl_load = yes; then
7235: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7236: else
7237: echo "$as_me:$LINENO: checking for dlopen" >&5
7238: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7239: if test "${ac_cv_func_dlopen+set}" = set; then
7240: echo $ECHO_N "(cached) $ECHO_C" >&6
7241: else
7242: cat >conftest.$ac_ext <<_ACEOF
7243: #line $LINENO "configure"
7244: /* confdefs.h. */
7245: _ACEOF
7246: cat confdefs.h >>conftest.$ac_ext
7247: cat >>conftest.$ac_ext <<_ACEOF
7248: /* end confdefs.h. */
7249: /* System header to define __stub macros and hopefully few prototypes,
7250: which can conflict with char dlopen (); below.
7251: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7252: <limits.h> exists even on freestanding compilers. */
7253: #ifdef __STDC__
7254: # include <limits.h>
7255: #else
7256: # include <assert.h>
7257: #endif
7258: /* Override any gcc2 internal prototype to avoid an error. */
7259: #ifdef __cplusplus
7260: extern "C"
7261: {
7262: #endif
7263: /* We use char because int might match the return type of a gcc2
7264: builtin and then its argument prototype would still apply. */
7265: char dlopen ();
7266: /* The GNU C library defines this for functions which it implements
7267: to always fail with ENOSYS. Some functions are actually named
7268: something starting with __ and the normal name is an alias. */
7269: #if defined (__stub_dlopen) || defined (__stub___dlopen)
7270: choke me
7271: #else
7272: char (*f) () = dlopen;
7273: #endif
7274: #ifdef __cplusplus
7275: }
7276: #endif
7277:
7278: int
7279: main ()
7280: {
7281: return f != dlopen;
7282: ;
7283: return 0;
7284: }
7285: _ACEOF
7286: rm -f conftest.$ac_objext conftest$ac_exeext
7287: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7288: (eval $ac_link) 2>&5
7289: ac_status=$?
7290: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291: (exit $ac_status); } &&
7292: { ac_try='test -s conftest$ac_exeext'
7293: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294: (eval $ac_try) 2>&5
7295: ac_status=$?
7296: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297: (exit $ac_status); }; }; then
7298: ac_cv_func_dlopen=yes
7299: else
7300: echo "$as_me: failed program was:" >&5
7301: sed 's/^/| /' conftest.$ac_ext >&5
7302:
7303: ac_cv_func_dlopen=no
7304: fi
7305: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7306: fi
7307: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7308: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7309: if test $ac_cv_func_dlopen = yes; then
7310: lt_cv_dlopen="dlopen"
7311: else
7312: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7313: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7314: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7315: echo $ECHO_N "(cached) $ECHO_C" >&6
7316: else
7317: ac_check_lib_save_LIBS=$LIBS
7318: LIBS="-ldl $LIBS"
7319: cat >conftest.$ac_ext <<_ACEOF
7320: #line $LINENO "configure"
7321: /* confdefs.h. */
7322: _ACEOF
7323: cat confdefs.h >>conftest.$ac_ext
7324: cat >>conftest.$ac_ext <<_ACEOF
7325: /* end confdefs.h. */
7326:
7327: /* Override any gcc2 internal prototype to avoid an error. */
7328: #ifdef __cplusplus
7329: extern "C"
7330: #endif
7331: /* We use char because int might match the return type of a gcc2
7332: builtin and then its argument prototype would still apply. */
7333: char dlopen ();
7334: int
7335: main ()
7336: {
7337: dlopen ();
7338: ;
7339: return 0;
7340: }
7341: _ACEOF
7342: rm -f conftest.$ac_objext conftest$ac_exeext
7343: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7344: (eval $ac_link) 2>&5
7345: ac_status=$?
7346: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347: (exit $ac_status); } &&
7348: { ac_try='test -s conftest$ac_exeext'
7349: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350: (eval $ac_try) 2>&5
7351: ac_status=$?
7352: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353: (exit $ac_status); }; }; then
7354: ac_cv_lib_dl_dlopen=yes
7355: else
7356: echo "$as_me: failed program was:" >&5
7357: sed 's/^/| /' conftest.$ac_ext >&5
7358:
7359: ac_cv_lib_dl_dlopen=no
7360: fi
7361: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7362: LIBS=$ac_check_lib_save_LIBS
7363: fi
7364: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7365: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7366: if test $ac_cv_lib_dl_dlopen = yes; then
7367: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7368: else
7369: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7370: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7371: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7372: echo $ECHO_N "(cached) $ECHO_C" >&6
7373: else
7374: ac_check_lib_save_LIBS=$LIBS
7375: LIBS="-lsvld $LIBS"
7376: cat >conftest.$ac_ext <<_ACEOF
7377: #line $LINENO "configure"
7378: /* confdefs.h. */
7379: _ACEOF
7380: cat confdefs.h >>conftest.$ac_ext
7381: cat >>conftest.$ac_ext <<_ACEOF
7382: /* end confdefs.h. */
7383:
7384: /* Override any gcc2 internal prototype to avoid an error. */
7385: #ifdef __cplusplus
7386: extern "C"
7387: #endif
7388: /* We use char because int might match the return type of a gcc2
7389: builtin and then its argument prototype would still apply. */
7390: char dlopen ();
7391: int
7392: main ()
7393: {
7394: dlopen ();
7395: ;
7396: return 0;
7397: }
7398: _ACEOF
7399: rm -f conftest.$ac_objext conftest$ac_exeext
7400: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7401: (eval $ac_link) 2>&5
7402: ac_status=$?
7403: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404: (exit $ac_status); } &&
7405: { ac_try='test -s conftest$ac_exeext'
7406: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407: (eval $ac_try) 2>&5
7408: ac_status=$?
7409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410: (exit $ac_status); }; }; then
7411: ac_cv_lib_svld_dlopen=yes
7412: else
7413: echo "$as_me: failed program was:" >&5
7414: sed 's/^/| /' conftest.$ac_ext >&5
7415:
7416: ac_cv_lib_svld_dlopen=no
7417: fi
7418: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7419: LIBS=$ac_check_lib_save_LIBS
7420: fi
7421: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7422: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7423: if test $ac_cv_lib_svld_dlopen = yes; then
7424: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7425: else
7426: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7427: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7428: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7429: echo $ECHO_N "(cached) $ECHO_C" >&6
7430: else
7431: ac_check_lib_save_LIBS=$LIBS
7432: LIBS="-ldld $LIBS"
7433: cat >conftest.$ac_ext <<_ACEOF
7434: #line $LINENO "configure"
7435: /* confdefs.h. */
7436: _ACEOF
7437: cat confdefs.h >>conftest.$ac_ext
7438: cat >>conftest.$ac_ext <<_ACEOF
7439: /* end confdefs.h. */
7440:
7441: /* Override any gcc2 internal prototype to avoid an error. */
7442: #ifdef __cplusplus
7443: extern "C"
7444: #endif
7445: /* We use char because int might match the return type of a gcc2
7446: builtin and then its argument prototype would still apply. */
7447: char dld_link ();
7448: int
7449: main ()
7450: {
7451: dld_link ();
7452: ;
7453: return 0;
7454: }
7455: _ACEOF
7456: rm -f conftest.$ac_objext conftest$ac_exeext
7457: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7458: (eval $ac_link) 2>&5
7459: ac_status=$?
7460: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461: (exit $ac_status); } &&
7462: { ac_try='test -s conftest$ac_exeext'
7463: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464: (eval $ac_try) 2>&5
7465: ac_status=$?
7466: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467: (exit $ac_status); }; }; then
7468: ac_cv_lib_dld_dld_link=yes
7469: else
7470: echo "$as_me: failed program was:" >&5
7471: sed 's/^/| /' conftest.$ac_ext >&5
7472:
7473: ac_cv_lib_dld_dld_link=no
7474: fi
7475: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7476: LIBS=$ac_check_lib_save_LIBS
7477: fi
7478: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7479: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7480: if test $ac_cv_lib_dld_dld_link = yes; then
7481: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7482: fi
7483:
7484:
7485: fi
7486:
7487:
7488: fi
7489:
7490:
7491: fi
7492:
7493:
7494: fi
7495:
7496:
7497: fi
7498:
7499: ;;
7500: esac
7501:
7502: if test "x$lt_cv_dlopen" != xno; then
7503: enable_dlopen=yes
7504: else
7505: enable_dlopen=no
7506: fi
7507:
7508: case $lt_cv_dlopen in
7509: dlopen)
7510: save_CPPFLAGS="$CPPFLAGS"
7511: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7512:
7513: save_LDFLAGS="$LDFLAGS"
7514: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7515:
7516: save_LIBS="$LIBS"
7517: LIBS="$lt_cv_dlopen_libs $LIBS"
7518:
7519: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7520: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7521: if test "${lt_cv_dlopen_self+set}" = set; then
7522: echo $ECHO_N "(cached) $ECHO_C" >&6
7523: else
7524: if test "$cross_compiling" = yes; then :
7525: lt_cv_dlopen_self=cross
7526: else
7527: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7528: lt_status=$lt_dlunknown
7529: cat > conftest.$ac_ext <<EOF
7530: #line 7530 "configure"
7531: #include "confdefs.h"
7532:
7533: #if HAVE_DLFCN_H
7534: #include <dlfcn.h>
7535: #endif
7536:
7537: #include <stdio.h>
7538:
7539: #ifdef RTLD_GLOBAL
7540: # define LT_DLGLOBAL RTLD_GLOBAL
7541: #else
7542: # ifdef DL_GLOBAL
7543: # define LT_DLGLOBAL DL_GLOBAL
7544: # else
7545: # define LT_DLGLOBAL 0
7546: # endif
7547: #endif
7548:
7549: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7550: find out it does not work in some platform. */
7551: #ifndef LT_DLLAZY_OR_NOW
7552: # ifdef RTLD_LAZY
7553: # define LT_DLLAZY_OR_NOW RTLD_LAZY
7554: # else
7555: # ifdef DL_LAZY
7556: # define LT_DLLAZY_OR_NOW DL_LAZY
7557: # else
7558: # ifdef RTLD_NOW
7559: # define LT_DLLAZY_OR_NOW RTLD_NOW
7560: # else
7561: # ifdef DL_NOW
7562: # define LT_DLLAZY_OR_NOW DL_NOW
7563: # else
7564: # define LT_DLLAZY_OR_NOW 0
7565: # endif
7566: # endif
7567: # endif
7568: # endif
7569: #endif
7570:
7571: #ifdef __cplusplus
7572: extern "C" void exit (int);
7573: #endif
7574:
7575: void fnord() { int i=42;}
7576: int main ()
7577: {
7578: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7579: int status = $lt_dlunknown;
7580:
7581: if (self)
7582: {
7583: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7584: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7585: /* dlclose (self); */
7586: }
7587:
7588: exit (status);
7589: }
7590: EOF
7591: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7592: (eval $ac_link) 2>&5
7593: ac_status=$?
7594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7596: (./conftest; exit; ) 2>/dev/null
7597: lt_status=$?
7598: case x$lt_status in
7599: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7600: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7601: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7602: esac
7603: else :
7604: # compilation failed
7605: lt_cv_dlopen_self=no
7606: fi
7607: fi
7608: rm -fr conftest*
7609:
7610:
7611: fi
7612: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7613: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7614:
7615: if test "x$lt_cv_dlopen_self" = xyes; then
7616: LDFLAGS="$LDFLAGS $link_static_flag"
7617: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7618: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7619: if test "${lt_cv_dlopen_self_static+set}" = set; then
7620: echo $ECHO_N "(cached) $ECHO_C" >&6
7621: else
7622: if test "$cross_compiling" = yes; then :
7623: lt_cv_dlopen_self_static=cross
7624: else
7625: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7626: lt_status=$lt_dlunknown
7627: cat > conftest.$ac_ext <<EOF
7628: #line 7628 "configure"
7629: #include "confdefs.h"
7630:
7631: #if HAVE_DLFCN_H
7632: #include <dlfcn.h>
7633: #endif
7634:
7635: #include <stdio.h>
7636:
7637: #ifdef RTLD_GLOBAL
7638: # define LT_DLGLOBAL RTLD_GLOBAL
7639: #else
7640: # ifdef DL_GLOBAL
7641: # define LT_DLGLOBAL DL_GLOBAL
7642: # else
7643: # define LT_DLGLOBAL 0
7644: # endif
7645: #endif
7646:
7647: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7648: find out it does not work in some platform. */
7649: #ifndef LT_DLLAZY_OR_NOW
7650: # ifdef RTLD_LAZY
7651: # define LT_DLLAZY_OR_NOW RTLD_LAZY
7652: # else
7653: # ifdef DL_LAZY
7654: # define LT_DLLAZY_OR_NOW DL_LAZY
7655: # else
7656: # ifdef RTLD_NOW
7657: # define LT_DLLAZY_OR_NOW RTLD_NOW
7658: # else
7659: # ifdef DL_NOW
7660: # define LT_DLLAZY_OR_NOW DL_NOW
7661: # else
7662: # define LT_DLLAZY_OR_NOW 0
7663: # endif
7664: # endif
7665: # endif
7666: # endif
7667: #endif
7668:
7669: #ifdef __cplusplus
7670: extern "C" void exit (int);
7671: #endif
7672:
7673: void fnord() { int i=42;}
7674: int main ()
7675: {
7676: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7677: int status = $lt_dlunknown;
7678:
7679: if (self)
7680: {
7681: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7682: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7683: /* dlclose (self); */
7684: }
7685:
7686: exit (status);
7687: }
7688: EOF
7689: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7690: (eval $ac_link) 2>&5
7691: ac_status=$?
7692: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7694: (./conftest; exit; ) 2>/dev/null
7695: lt_status=$?
7696: case x$lt_status in
7697: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7698: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7699: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7700: esac
7701: else :
7702: # compilation failed
7703: lt_cv_dlopen_self_static=no
7704: fi
7705: fi
7706: rm -fr conftest*
7707:
7708:
7709: fi
7710: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7711: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7712: fi
7713:
7714: CPPFLAGS="$save_CPPFLAGS"
7715: LDFLAGS="$save_LDFLAGS"
7716: LIBS="$save_LIBS"
7717: ;;
7718: esac
7719:
7720: case $lt_cv_dlopen_self in
7721: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7722: *) enable_dlopen_self=unknown ;;
7723: esac
7724:
7725: case $lt_cv_dlopen_self_static in
7726: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7727: *) enable_dlopen_self_static=unknown ;;
7728: esac
7729: fi
7730:
7731:
7732: if test "$enable_shared" = yes && test "$GCC" = yes; then
7733: case $archive_cmds in
7734: *'~'*)
7735: # FIXME: we may have to deal with multi-command sequences.
7736: ;;
7737: '$CC '*)
7738: # Test whether the compiler implicitly links with -lc since on some
7739: # systems, -lgcc has to come before -lc. If gcc already passes -lc
7740: # to ld, don't add -lc before -lgcc.
7741: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7742: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7743: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7744: echo $ECHO_N "(cached) $ECHO_C" >&6
7745: else
7746: $rm conftest*
7747: echo 'static int dummy;' > conftest.$ac_ext
7748:
7749: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7750: (eval $ac_compile) 2>&5
7751: ac_status=$?
7752: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753: (exit $ac_status); }; then
7754: soname=conftest
7755: lib=conftest
7756: libobjs=conftest.$ac_objext
7757: deplibs=
7758: wl=$lt_cv_prog_cc_wl
7759: compiler_flags=-v
7760: linker_flags=-v
7761: verstring=
7762: output_objdir=.
7763: libname=conftest
7764: save_allow_undefined_flag=$allow_undefined_flag
7765: allow_undefined_flag=
7766: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7767: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7768: ac_status=$?
7769: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770: (exit $ac_status); }
7771: then
7772: lt_cv_archive_cmds_need_lc=no
7773: else
7774: lt_cv_archive_cmds_need_lc=yes
7775: fi
7776: allow_undefined_flag=$save_allow_undefined_flag
7777: else
7778: cat conftest.err 1>&5
7779: fi
7780: fi
7781:
7782: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7783: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7784: ;;
7785: esac
7786: fi
7787: need_lc=${lt_cv_archive_cmds_need_lc-yes}
7788:
7789: # The second clause should only fire when bootstrapping the
7790: # libtool distribution, otherwise you forgot to ship ltmain.sh
7791: # with your package, and you will get complaints that there are
7792: # no rules to generate ltmain.sh.
7793: if test -f "$ltmain"; then
7794: :
7795: else
7796: # If there is no Makefile yet, we rely on a make rule to execute
7797: # `config.status --recheck' to rerun these tests and create the
7798: # libtool script then.
7799: test -f Makefile && make "$ltmain"
7800: fi
7801:
7802: if test -f "$ltmain"; then
7803: trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7804: $rm -f "${ofile}T"
7805:
7806: echo creating $ofile
7807:
7808: # Now quote all the things that may contain metacharacters while being
7809: # careful not to overquote the AC_SUBSTed values. We take copies of the
7810: # variables and quote the copies for generation of the libtool script.
7811: for var in echo old_CC old_CFLAGS SED \
7812: AR AR_FLAGS CC LD LN_S NM SHELL \
7813: reload_flag reload_cmds wl \
7814: pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7815: thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7816: library_names_spec soname_spec \
7817: RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7818: old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7819: postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7820: old_striplib striplib file_magic_cmd export_symbols_cmds \
7821: deplibs_check_method allow_undefined_flag no_undefined_flag \
7822: finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7823: global_symbol_to_c_name_address \
7824: hardcode_libdir_flag_spec hardcode_libdir_separator \
7825: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7826: compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7827:
7828: case $var in
7829: reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7830: old_postinstall_cmds | old_postuninstall_cmds | \
7831: export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7832: extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7833: postinstall_cmds | postuninstall_cmds | \
7834: finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7835: # Double-quote double-evaled strings.
7836: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7837: ;;
7838: *)
7839: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7840: ;;
7841: esac
7842: done
7843:
7844: cat <<__EOF__ > "${ofile}T"
7845: #! $SHELL
7846:
7847: # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7848: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7849: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7850: #
7851: # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7852: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7853: #
7854: # This program is free software; you can redistribute it and/or modify
7855: # it under the terms of the GNU General Public License as published by
7856: # the Free Software Foundation; either version 2 of the License, or
7857: # (at your option) any later version.
7858: #
7859: # This program is distributed in the hope that it will be useful, but
7860: # WITHOUT ANY WARRANTY; without even the implied warranty of
7861: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7862: # General Public License for more details.
7863: #
7864: # You should have received a copy of the GNU General Public License
7865: # along with this program; if not, write to the Free Software
7866: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7867: #
7868: # As a special exception to the GNU General Public License, if you
7869: # distribute this file as part of a program that contains a
7870: # configuration script generated by Autoconf, you may include it under
7871: # the same distribution terms that you use for the rest of that program.
7872:
7873: # A sed that does not truncate output.
7874: SED=$lt_SED
7875:
7876: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7877: Xsed="${SED} -e s/^X//"
7878:
7879: # The HP-UX ksh and POSIX shell print the target directory to stdout
7880: # if CDPATH is set.
7881: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7882:
7883: # ### BEGIN LIBTOOL CONFIG
7884:
7885: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7886:
7887: # Shell to use when invoking shell scripts.
7888: SHELL=$lt_SHELL
7889:
7890: # Whether or not to build shared libraries.
7891: build_libtool_libs=$enable_shared
7892:
7893: # Whether or not to build static libraries.
7894: build_old_libs=$enable_static
7895:
7896: # Whether or not to add -lc for building shared libraries.
7897: build_libtool_need_lc=$need_lc
7898:
7899: # Whether or not to optimize for fast installation.
7900: fast_install=$enable_fast_install
7901:
7902: # The host system.
7903: host_alias=$host_alias
7904: host=$host
7905:
7906: # An echo program that does not interpret backslashes.
7907: echo=$lt_echo
7908:
7909: # The archiver.
7910: AR=$lt_AR
7911: AR_FLAGS=$lt_AR_FLAGS
7912:
7913: # The default C compiler.
7914: CC=$lt_CC
7915:
7916: # Is the compiler the GNU C compiler?
7917: with_gcc=$GCC
7918:
7919: # The linker used to build libraries.
7920: LD=$lt_LD
7921:
7922: # Whether we need hard or soft links.
7923: LN_S=$lt_LN_S
7924:
7925: # A BSD-compatible nm program.
7926: NM=$lt_NM
7927:
7928: # A symbol stripping program
7929: STRIP=$STRIP
7930:
7931: # Used to examine libraries when file_magic_cmd begins "file"
7932: MAGIC_CMD=$MAGIC_CMD
7933:
7934: # Used on cygwin: DLL creation program.
7935: DLLTOOL="$DLLTOOL"
7936:
7937: # Used on cygwin: object dumper.
7938: OBJDUMP="$OBJDUMP"
7939:
7940: # Used on cygwin: assembler.
7941: AS="$AS"
7942:
7943: # The name of the directory that contains temporary libtool files.
7944: objdir=$objdir
7945:
7946: # How to create reloadable object files.
7947: reload_flag=$lt_reload_flag
7948: reload_cmds=$lt_reload_cmds
7949:
7950: # How to pass a linker flag through the compiler.
7951: wl=$lt_wl
7952:
7953: # Object file suffix (normally "o").
7954: objext="$ac_objext"
7955:
7956: # Old archive suffix (normally "a").
7957: libext="$libext"
7958:
7959: # Executable file suffix (normally "").
7960: exeext="$exeext"
7961:
7962: # Additional compiler flags for building library objects.
7963: pic_flag=$lt_pic_flag
7964: pic_mode=$pic_mode
7965:
7966: # Does compiler simultaneously support -c and -o options?
7967: compiler_c_o=$lt_compiler_c_o
7968:
7969: # Can we write directly to a .lo ?
7970: compiler_o_lo=$lt_compiler_o_lo
7971:
7972: # Must we lock files when doing compilation ?
7973: need_locks=$lt_need_locks
7974:
7975: # Do we need the lib prefix for modules?
7976: need_lib_prefix=$need_lib_prefix
7977:
7978: # Do we need a version for libraries?
7979: need_version=$need_version
7980:
7981: # Whether dlopen is supported.
7982: dlopen_support=$enable_dlopen
7983:
7984: # Whether dlopen of programs is supported.
7985: dlopen_self=$enable_dlopen_self
7986:
7987: # Whether dlopen of statically linked programs is supported.
7988: dlopen_self_static=$enable_dlopen_self_static
7989:
7990: # Compiler flag to prevent dynamic linking.
7991: link_static_flag=$lt_link_static_flag
7992:
7993: # Compiler flag to turn off builtin functions.
7994: no_builtin_flag=$lt_no_builtin_flag
7995:
7996: # Compiler flag to allow reflexive dlopens.
7997: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7998:
7999: # Compiler flag to generate shared objects directly from archives.
8000: whole_archive_flag_spec=$lt_whole_archive_flag_spec
8001:
8002: # Compiler flag to generate thread-safe objects.
8003: thread_safe_flag_spec=$lt_thread_safe_flag_spec
8004:
8005: # Library versioning type.
8006: version_type=$version_type
8007:
8008: # Format of library name prefix.
8009: libname_spec=$lt_libname_spec
8010:
8011: # List of archive names. First name is the real one, the rest are links.
8012: # The last name is the one that the linker finds with -lNAME.
8013: library_names_spec=$lt_library_names_spec
8014:
8015: # The coded name of the library, if different from the real name.
8016: soname_spec=$lt_soname_spec
8017:
8018: # Commands used to build and install an old-style archive.
8019: RANLIB=$lt_RANLIB
8020: old_archive_cmds=$lt_old_archive_cmds
8021: old_postinstall_cmds=$lt_old_postinstall_cmds
8022: old_postuninstall_cmds=$lt_old_postuninstall_cmds
8023:
8024: # Create an old-style archive from a shared archive.
8025: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8026:
8027: # Create a temporary old-style archive to link instead of a shared archive.
8028: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8029:
8030: # Commands used to build and install a shared archive.
8031: archive_cmds=$lt_archive_cmds
8032: archive_expsym_cmds=$lt_archive_expsym_cmds
8033: postinstall_cmds=$lt_postinstall_cmds
8034: postuninstall_cmds=$lt_postuninstall_cmds
8035:
8036: # Commands to strip libraries.
8037: old_striplib=$lt_old_striplib
8038: striplib=$lt_striplib
8039:
8040: # Method to check whether dependent libraries are shared objects.
8041: deplibs_check_method=$lt_deplibs_check_method
8042:
8043: # Command to use when deplibs_check_method == file_magic.
8044: file_magic_cmd=$lt_file_magic_cmd
8045:
8046: # Flag that allows shared libraries with undefined symbols to be built.
8047: allow_undefined_flag=$lt_allow_undefined_flag
8048:
8049: # Flag that forces no undefined symbols.
8050: no_undefined_flag=$lt_no_undefined_flag
8051:
8052: # Commands used to finish a libtool library installation in a directory.
8053: finish_cmds=$lt_finish_cmds
8054:
8055: # Same as above, but a single script fragment to be evaled but not shown.
8056: finish_eval=$lt_finish_eval
8057:
8058: # Take the output of nm and produce a listing of raw symbols and C names.
8059: global_symbol_pipe=$lt_global_symbol_pipe
8060:
8061: # Transform the output of nm in a proper C declaration
8062: global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8063:
8064: # Transform the output of nm in a C name address pair
8065: global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8066:
8067: # This is the shared library runtime path variable.
8068: runpath_var=$runpath_var
8069:
8070: # This is the shared library path variable.
8071: shlibpath_var=$shlibpath_var
8072:
8073: # Is shlibpath searched before the hard-coded library search path?
8074: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8075:
8076: # How to hardcode a shared library path into an executable.
8077: hardcode_action=$hardcode_action
8078:
8079: # Whether we should hardcode library paths into libraries.
8080: hardcode_into_libs=$hardcode_into_libs
8081:
8082: # Flag to hardcode \$libdir into a binary during linking.
8083: # This must work even if \$libdir does not exist.
8084: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8085:
8086: # Whether we need a single -rpath flag with a separated argument.
8087: hardcode_libdir_separator=$lt_hardcode_libdir_separator
8088:
8089: # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8090: # resulting binary.
8091: hardcode_direct=$hardcode_direct
8092:
8093: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8094: # resulting binary.
8095: hardcode_minus_L=$hardcode_minus_L
8096:
8097: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8098: # the resulting binary.
8099: hardcode_shlibpath_var=$hardcode_shlibpath_var
8100:
8101: # Variables whose values should be saved in libtool wrapper scripts and
8102: # restored at relink time.
8103: variables_saved_for_relink="$variables_saved_for_relink"
8104:
8105: # Whether libtool must link a program against all its dependency libraries.
8106: link_all_deplibs=$link_all_deplibs
1.7 paf 8107:
1.11 paf 8108: # Compile-time system search path for libraries
8109: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.7 paf 8110:
1.11 paf 8111: # Run-time system search path for libraries
8112: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.7 paf 8113:
1.11 paf 8114: # Fix the shell variable \$srcfile for the compiler.
8115: fix_srcfile_path="$fix_srcfile_path"
1.7 paf 8116:
1.11 paf 8117: # Set to yes if exported symbols are required.
8118: always_export_symbols=$always_export_symbols
1.7 paf 8119:
1.11 paf 8120: # The commands to list exported symbols.
8121: export_symbols_cmds=$lt_export_symbols_cmds
1.7 paf 8122:
1.11 paf 8123: # The commands to extract the exported symbol list from a shared archive.
8124: extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.7 paf 8125:
1.11 paf 8126: # Symbols that should not be listed in the preloaded symbols.
8127: exclude_expsyms=$lt_exclude_expsyms
1.7 paf 8128:
1.11 paf 8129: # Symbols that must always be exported.
8130: include_expsyms=$lt_include_expsyms
1.7 paf 8131:
1.11 paf 8132: # ### END LIBTOOL CONFIG
1.7 paf 8133:
1.11 paf 8134: __EOF__
1.1 parser 8135:
1.11 paf 8136: case $host_os in
8137: aix3*)
8138: cat <<\EOF >> "${ofile}T"
1.1 parser 8139:
1.11 paf 8140: # AIX sometimes has problems with the GCC collect2 program. For some
8141: # reason, if we set the COLLECT_NAMES environment variable, the problems
8142: # vanish in a puff of smoke.
8143: if test "X${COLLECT_NAMES+set}" != Xset; then
8144: COLLECT_NAMES=
8145: export COLLECT_NAMES
8146: fi
8147: EOF
8148: ;;
8149: esac
1.1 parser 8150:
1.11 paf 8151: case $host_os in
8152: cygwin* | mingw* | pw32* | os2*)
8153: cat <<'EOF' >> "${ofile}T"
8154: # This is a source program that is used to create dlls on Windows
8155: # Don't remove nor modify the starting and closing comments
8156: # /* ltdll.c starts here */
8157: # #define WIN32_LEAN_AND_MEAN
8158: # #include <windows.h>
8159: # #undef WIN32_LEAN_AND_MEAN
8160: # #include <stdio.h>
8161: #
8162: # #ifndef __CYGWIN__
8163: # # ifdef __CYGWIN32__
8164: # # define __CYGWIN__ __CYGWIN32__
8165: # # endif
8166: # #endif
8167: #
8168: # #ifdef __cplusplus
8169: # extern "C" {
8170: # #endif
8171: # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8172: # #ifdef __cplusplus
8173: # }
8174: # #endif
8175: #
8176: # #ifdef __CYGWIN__
8177: # #include <cygwin/cygwin_dll.h>
8178: # DECLARE_CYGWIN_DLL( DllMain );
8179: # #endif
8180: # HINSTANCE __hDllInstance_base;
8181: #
8182: # BOOL APIENTRY
8183: # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8184: # {
8185: # __hDllInstance_base = hInst;
8186: # return TRUE;
8187: # }
8188: # /* ltdll.c ends here */
8189: # This is a source program that is used to create import libraries
8190: # on Windows for dlls which lack them. Don't remove nor modify the
8191: # starting and closing comments
8192: # /* impgen.c starts here */
8193: # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8194: #
8195: # This file is part of GNU libtool.
8196: #
8197: # This program is free software; you can redistribute it and/or modify
8198: # it under the terms of the GNU General Public License as published by
8199: # the Free Software Foundation; either version 2 of the License, or
8200: # (at your option) any later version.
8201: #
8202: # This program is distributed in the hope that it will be useful,
8203: # but WITHOUT ANY WARRANTY; without even the implied warranty of
8204: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8205: # GNU General Public License for more details.
8206: #
8207: # You should have received a copy of the GNU General Public License
8208: # along with this program; if not, write to the Free Software
8209: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8210: # */
8211: #
8212: # #include <stdio.h> /* for printf() */
8213: # #include <unistd.h> /* for open(), lseek(), read() */
8214: # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8215: # #include <string.h> /* for strdup() */
8216: #
8217: # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8218: # #ifndef O_BINARY
8219: # #define O_BINARY 0
8220: # #endif
8221: #
8222: # static unsigned int
8223: # pe_get16 (fd, offset)
8224: # int fd;
8225: # int offset;
8226: # {
8227: # unsigned char b[2];
8228: # lseek (fd, offset, SEEK_SET);
8229: # read (fd, b, 2);
8230: # return b[0] + (b[1]<<8);
8231: # }
8232: #
8233: # static unsigned int
8234: # pe_get32 (fd, offset)
8235: # int fd;
8236: # int offset;
8237: # {
8238: # unsigned char b[4];
8239: # lseek (fd, offset, SEEK_SET);
8240: # read (fd, b, 4);
8241: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8242: # }
8243: #
8244: # static unsigned int
8245: # pe_as32 (ptr)
8246: # void *ptr;
8247: # {
8248: # unsigned char *b = ptr;
8249: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8250: # }
8251: #
8252: # int
8253: # main (argc, argv)
8254: # int argc;
8255: # char *argv[];
8256: # {
8257: # int dll;
8258: # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8259: # unsigned long export_rva, export_size, nsections, secptr, expptr;
8260: # unsigned long name_rvas, nexp;
8261: # unsigned char *expdata, *erva;
8262: # char *filename, *dll_name;
8263: #
8264: # filename = argv[1];
8265: #
8266: # dll = open(filename, O_RDONLY|O_BINARY);
8267: # if (dll < 1)
8268: # return 1;
8269: #
8270: # dll_name = filename;
8271: #
8272: # for (i=0; filename[i]; i++)
8273: # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8274: # dll_name = filename + i +1;
8275: #
8276: # pe_header_offset = pe_get32 (dll, 0x3c);
8277: # opthdr_ofs = pe_header_offset + 4 + 20;
8278: # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8279: #
8280: # if (num_entries < 1) /* no exports */
8281: # return 1;
8282: #
8283: # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8284: # export_size = pe_get32 (dll, opthdr_ofs + 100);
8285: # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8286: # secptr = (pe_header_offset + 4 + 20 +
8287: # pe_get16 (dll, pe_header_offset + 4 + 16));
8288: #
8289: # expptr = 0;
8290: # for (i = 0; i < nsections; i++)
8291: # {
8292: # char sname[8];
8293: # unsigned long secptr1 = secptr + 40 * i;
8294: # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8295: # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8296: # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8297: # lseek(dll, secptr1, SEEK_SET);
8298: # read(dll, sname, 8);
8299: # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8300: # {
8301: # expptr = fptr + (export_rva - vaddr);
8302: # if (export_rva + export_size > vaddr + vsize)
8303: # export_size = vsize - (export_rva - vaddr);
8304: # break;
8305: # }
8306: # }
8307: #
8308: # expdata = (unsigned char*)malloc(export_size);
8309: # lseek (dll, expptr, SEEK_SET);
8310: # read (dll, expdata, export_size);
8311: # erva = expdata - export_rva;
8312: #
8313: # nexp = pe_as32 (expdata+24);
8314: # name_rvas = pe_as32 (expdata+32);
1.1 parser 8315: #
1.11 paf 8316: # printf ("EXPORTS\n");
8317: # for (i = 0; i<nexp; i++)
8318: # {
8319: # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8320: # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8321: # }
1.1 parser 8322: #
1.11 paf 8323: # return 0;
8324: # }
8325: # /* impgen.c ends here */
8326:
1.1 parser 8327: EOF
8328: ;;
1.11 paf 8329: esac
8330:
8331: # We use sed instead of cat because bash on DJGPP gets confused if
8332: # if finds mixed CR/LF and LF-only lines. Since sed operates in
8333: # text mode, it properly converts lines to CR/LF. This bash problem
8334: # is reportedly fixed, but why not run on old versions too?
8335: sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8336:
8337: mv -f "${ofile}T" "$ofile" || \
8338: (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8339: chmod +x "$ofile"
1.1 parser 8340: fi
8341:
8342:
8343:
8344:
8345:
8346: # This can be used to rebuild libtool when needed
1.11 paf 8347: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8348:
8349: # Always use rootdir libtool.
8350: LIBTOOL="$ac_aux_dir/libtool"
8351:
8352: # Prevent multiple expansion
8353:
8354:
8355:
8356:
8357: subdirs="$subdirs libltdl"
8358:
8359:
1.1 parser 8360:
8361:
8362:
8363:
8364:
8365:
8366:
8367:
1.11 paf 8368: for ac_header in stdio.h \
1.1 parser 8369: stdlib.h \
8370: string.h \
8371: setjmp.h \
1.3 paf 8372: ctype.h \
8373: setjmp.h
1.1 parser 8374:
8375: do
1.11 paf 8376: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8377: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8378: echo "$as_me:$LINENO: checking for $ac_header" >&5
8379: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8380: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8381: echo $ECHO_N "(cached) $ECHO_C" >&6
8382: fi
8383: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8384: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8385: else
8386: # Is the header compilable?
8387: echo "$as_me:$LINENO: checking $ac_header usability" >&5
8388: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8389: cat >conftest.$ac_ext <<_ACEOF
8390: #line $LINENO "configure"
8391: /* confdefs.h. */
8392: _ACEOF
8393: cat confdefs.h >>conftest.$ac_ext
8394: cat >>conftest.$ac_ext <<_ACEOF
8395: /* end confdefs.h. */
8396: $ac_includes_default
8397: #include <$ac_header>
8398: _ACEOF
8399: rm -f conftest.$ac_objext
8400: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401: (eval $ac_compile) 2>&5
8402: ac_status=$?
8403: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404: (exit $ac_status); } &&
8405: { ac_try='test -s conftest.$ac_objext'
8406: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407: (eval $ac_try) 2>&5
8408: ac_status=$?
8409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410: (exit $ac_status); }; }; then
8411: ac_header_compiler=yes
8412: else
8413: echo "$as_me: failed program was:" >&5
8414: sed 's/^/| /' conftest.$ac_ext >&5
8415:
8416: ac_header_compiler=no
8417: fi
8418: rm -f conftest.$ac_objext conftest.$ac_ext
8419: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8420: echo "${ECHO_T}$ac_header_compiler" >&6
8421:
8422: # Is the header present?
8423: echo "$as_me:$LINENO: checking $ac_header presence" >&5
8424: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8425: cat >conftest.$ac_ext <<_ACEOF
8426: #line $LINENO "configure"
8427: /* confdefs.h. */
8428: _ACEOF
8429: cat confdefs.h >>conftest.$ac_ext
8430: cat >>conftest.$ac_ext <<_ACEOF
8431: /* end confdefs.h. */
8432: #include <$ac_header>
8433: _ACEOF
8434: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8435: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8436: ac_status=$?
8437: grep -v '^ *+' conftest.er1 >conftest.err
8438: rm -f conftest.er1
8439: cat conftest.err >&5
8440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441: (exit $ac_status); } >/dev/null; then
8442: if test -s conftest.err; then
8443: ac_cpp_err=$ac_cxx_preproc_warn_flag
8444: else
8445: ac_cpp_err=
8446: fi
8447: else
8448: ac_cpp_err=yes
8449: fi
8450: if test -z "$ac_cpp_err"; then
8451: ac_header_preproc=yes
1.1 parser 8452: else
1.11 paf 8453: echo "$as_me: failed program was:" >&5
8454: sed 's/^/| /' conftest.$ac_ext >&5
8455:
8456: ac_header_preproc=no
8457: fi
8458: rm -f conftest.err conftest.$ac_ext
8459: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8460: echo "${ECHO_T}$ac_header_preproc" >&6
8461:
8462: # So? What about this header?
8463: case $ac_header_compiler:$ac_header_preproc in
8464: yes:no )
8465: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8466: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8467: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8468: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8469: (
8470: cat <<\_ASBOX
8471: ## ------------------------------------ ##
8472: ## Report this to bug-autoconf@gnu.org. ##
8473: ## ------------------------------------ ##
8474: _ASBOX
8475: ) |
8476: sed "s/^/$as_me: WARNING: /" >&2
8477: ;;
8478: no:yes )
8479: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8480: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8481: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8482: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8483: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8484: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8485: (
8486: cat <<\_ASBOX
8487: ## ------------------------------------ ##
8488: ## Report this to bug-autoconf@gnu.org. ##
8489: ## ------------------------------------ ##
8490: _ASBOX
8491: ) |
8492: sed "s/^/$as_me: WARNING: /" >&2
8493: ;;
8494: esac
8495: echo "$as_me:$LINENO: checking for $ac_header" >&5
8496: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8497: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8498: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 8499: else
1.11 paf 8500: eval "$as_ac_Header=$ac_header_preproc"
1.1 parser 8501: fi
1.11 paf 8502: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8503: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8504:
1.1 parser 8505: fi
1.11 paf 8506: if test `eval echo '${'$as_ac_Header'}'` = yes; then
8507: cat >>confdefs.h <<_ACEOF
8508: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8509: _ACEOF
8510:
1.1 parser 8511: fi
1.11 paf 8512:
1.1 parser 8513: done
8514:
8515:
1.11 paf 8516: echo "$as_me:$LINENO: checking for BSD setenv/getenv/unsetenv" >&5
8517: echo $ECHO_N "checking for BSD setenv/getenv/unsetenv... $ECHO_C" >&6
8518: cat >conftest.$ac_ext <<_ACEOF
8519: #line $LINENO "configure"
8520: /* confdefs.h. */
8521: _ACEOF
8522: cat confdefs.h >>conftest.$ac_ext
8523: cat >>conftest.$ac_ext <<_ACEOF
8524: /* end confdefs.h. */
1.4 paf 8525: #ifdef HAVE_STDLIB_H
8526: # include <stdlib.h>
8527: #endif
8528: #ifdef HAVE_STRING_H
8529: # include <string.h>
8530: #endif
8531:
1.11 paf 8532: int
8533: main ()
8534: {
1.4 paf 8535: #define TEST_NAME "oracle-configure-test-var"
8536: #define TEST_VALUE "oracle-configure-test-value"
8537: int result=setenv(TEST_NAME, TEST_VALUE, 1/*overwrite*/);
8538: char *getenv_value=getenv(TEST_NAME);
8539: if(!getenv_value)
8540: return 1;
8541: if(strcmp(getenv_value, TEST_VALUE)!=0)
8542: return 2;
8543: unsetenv(TEST_NAME);
8544:
1.11 paf 8545: ;
8546: return 0;
8547: }
8548: _ACEOF
8549: rm -f conftest.$ac_objext
8550: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8551: (eval $ac_compile) 2>&5
8552: ac_status=$?
8553: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554: (exit $ac_status); } &&
8555: { ac_try='test -s conftest.$ac_objext'
8556: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557: (eval $ac_try) 2>&5
8558: ac_status=$?
8559: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560: (exit $ac_status); }; }; then
8561:
8562: echo "$as_me:$LINENO: result: yes" >&5
8563: echo "${ECHO_T}yes" >&6
8564:
8565: cat >>confdefs.h <<\_ACEOF
8566: #define HAVE_SETENV
8567: _ACEOF
1.4 paf 8568:
8569:
8570: else
1.11 paf 8571: echo "$as_me: failed program was:" >&5
8572: sed 's/^/| /' conftest.$ac_ext >&5
8573:
8574: echo "$as_me:$LINENO: result: no" >&5
8575: echo "${ECHO_T}no" >&6
8576:
8577: echo "$as_me:$LINENO: checking for POSIX putenv/getenv" >&5
8578: echo $ECHO_N "checking for POSIX putenv/getenv... $ECHO_C" >&6
8579: cat >conftest.$ac_ext <<_ACEOF
8580: #line $LINENO "configure"
8581: /* confdefs.h. */
8582: _ACEOF
8583: cat confdefs.h >>conftest.$ac_ext
8584: cat >>conftest.$ac_ext <<_ACEOF
8585: /* end confdefs.h. */
1.4 paf 8586: #ifdef HAVE_STDLIB_H
8587: # include <stdlib.h>
8588: #endif
8589: #ifdef HAVE_STRING_H
8590: # include <string.h>
8591: #endif
1.1 parser 8592:
1.11 paf 8593: int
8594: main ()
8595: {
8596: #define TEST_NAME "oracle-configure-test-var"
8597: #define TEST_VALUE "oracle-configure-test-value"
8598: int result=putenv(TEST_NAME"="TEST_VALUE);
8599: char *getenv_value=getenv(TEST_NAME);
8600: if(!getenv_value)
8601: return 1;
8602: if(strcmp(getenv_value, TEST_NAME)!=0)
8603: return 2;
1.1 parser 8604:
1.11 paf 8605: ;
8606: return 0;
8607: }
8608: _ACEOF
8609: rm -f conftest.$ac_objext
8610: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8611: (eval $ac_compile) 2>&5
8612: ac_status=$?
8613: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614: (exit $ac_status); } &&
8615: { ac_try='test -s conftest.$ac_objext'
8616: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617: (eval $ac_try) 2>&5
8618: ac_status=$?
8619: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620: (exit $ac_status); }; }; then
8621:
8622: echo "$as_me:$LINENO: result: yes" >&5
8623: echo "${ECHO_T}yes" >&6
8624:
8625: cat >>confdefs.h <<\_ACEOF
8626: #define HAVE_PUTENV
8627: _ACEOF
8628:
8629:
8630: else
8631: echo "$as_me: failed program was:" >&5
8632: sed 's/^/| /' conftest.$ac_ext >&5
8633:
8634: echo "$as_me:$LINENO: result: no" >&5
8635: echo "${ECHO_T}no" >&6
8636: { { echo "$as_me:$LINENO: error: \"there must be some function to modify environment\"" >&5
8637: echo "$as_me: error: \"there must be some function to modify environment\"" >&2;}
8638: { (exit 1); exit 1; }; }
8639:
8640: fi
8641: rm -f conftest.$ac_objext conftest.$ac_ext
8642:
8643: fi
8644: rm -f conftest.$ac_objext conftest.$ac_ext
8645:
8646:
8647: echo "$as_me:$LINENO: checking for size_t" >&5
8648: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8649: if test "${ac_cv_type_size_t+set}" = set; then
8650: echo $ECHO_N "(cached) $ECHO_C" >&6
8651: else
8652: cat >conftest.$ac_ext <<_ACEOF
8653: #line $LINENO "configure"
8654: /* confdefs.h. */
8655: _ACEOF
8656: cat confdefs.h >>conftest.$ac_ext
8657: cat >>conftest.$ac_ext <<_ACEOF
8658: /* end confdefs.h. */
8659: $ac_includes_default
8660: int
8661: main ()
8662: {
8663: if ((size_t *) 0)
8664: return 0;
8665: if (sizeof (size_t))
8666: return 0;
8667: ;
8668: return 0;
8669: }
8670: _ACEOF
8671: rm -f conftest.$ac_objext
8672: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8673: (eval $ac_compile) 2>&5
8674: ac_status=$?
8675: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676: (exit $ac_status); } &&
8677: { ac_try='test -s conftest.$ac_objext'
8678: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679: (eval $ac_try) 2>&5
8680: ac_status=$?
8681: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682: (exit $ac_status); }; }; then
1.1 parser 8683: ac_cv_type_size_t=yes
8684: else
1.11 paf 8685: echo "$as_me: failed program was:" >&5
8686: sed 's/^/| /' conftest.$ac_ext >&5
8687:
8688: ac_cv_type_size_t=no
8689: fi
8690: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 parser 8691: fi
1.11 paf 8692: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8693: echo "${ECHO_T}$ac_cv_type_size_t" >&6
8694: if test $ac_cv_type_size_t = yes; then
8695: :
8696: else
1.1 parser 8697:
1.11 paf 8698: cat >>confdefs.h <<_ACEOF
1.1 parser 8699: #define size_t unsigned
1.11 paf 8700: _ACEOF
1.1 parser 8701:
8702: fi
8703:
8704:
8705:
8706:
1.11 paf 8707: ac_config_files="$ac_config_files Makefile"
8708: cat >confcache <<\_ACEOF
1.1 parser 8709: # This file is a shell script that caches the results of configure
8710: # tests run on this system so they can be shared between configure
1.11 paf 8711: # scripts and configure runs, see configure's option --config-cache.
8712: # It is not useful on other systems. If it contains results you don't
8713: # want to keep, you may remove or edit it.
1.1 parser 8714: #
1.11 paf 8715: # config.status only pays attention to the cache file if you give it
8716: # the --recheck option to rerun configure.
1.1 parser 8717: #
1.11 paf 8718: # `ac_cv_env_foo' variables (set or unset) will be overridden when
8719: # loading this file, other *unset* `ac_cv_foo' will be assigned the
8720: # following values.
8721:
8722: _ACEOF
8723:
1.1 parser 8724: # The following way of writing the cache mishandles newlines in values,
8725: # but we know of no workaround that is simple, portable, and efficient.
8726: # So, don't put newlines in cache variables' values.
8727: # Ultrix sh set writes to stderr and can't be redirected directly,
8728: # and sets the high bit in the cache file unless we assign to the vars.
1.11 paf 8729: {
8730: (set) 2>&1 |
8731: case `(ac_space=' '; set | grep ac_space) 2>&1` in
8732: *ac_space=\ *)
8733: # `set' does not quote correctly, so add quotes (double-quote
8734: # substitution turns \\\\ into \\, and sed turns \\ into \).
8735: sed -n \
8736: "s/'/'\\\\''/g;
8737: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8738: ;;
8739: *)
8740: # `set' quotes correctly as required by POSIX, so do not add quotes.
8741: sed -n \
8742: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8743: ;;
8744: esac;
8745: } |
8746: sed '
8747: t clear
8748: : clear
8749: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8750: t end
8751: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8752: : end' >>confcache
8753: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 parser 8754: if test -w $cache_file; then
1.11 paf 8755: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8756: cat confcache >$cache_file
1.1 parser 8757: else
8758: echo "not updating unwritable cache $cache_file"
8759: fi
8760: fi
8761: rm -f confcache
8762:
8763: test "x$prefix" = xNONE && prefix=$ac_default_prefix
8764: # Let make expand exec_prefix.
8765: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8766:
1.11 paf 8767: # VPATH may cause trouble with some makes, so we remove $(srcdir),
8768: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8769: # trailing colons and then remove the whole line if VPATH becomes empty
8770: # (actually we leave an empty line to preserve line numbers).
1.1 parser 8771: if test "x$srcdir" = x.; then
1.11 paf 8772: ac_vpsub='/^[ ]*VPATH[ ]*=/{
8773: s/:*\$(srcdir):*/:/;
8774: s/:*\${srcdir}:*/:/;
8775: s/:*@srcdir@:*/:/;
8776: s/^\([^=]*=[ ]*\):*/\1/;
8777: s/:*$//;
8778: s/^[^=]*=[ ]*$//;
8779: }'
1.1 parser 8780: fi
8781:
1.11 paf 8782: DEFS=-DHAVE_CONFIG_H
8783:
8784: ac_libobjs=
8785: ac_ltlibobjs=
8786: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8787: # 1. Remove the extension, and $U if already installed.
8788: ac_i=`echo "$ac_i" |
8789: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8790: # 2. Add them.
8791: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8792: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8793: done
8794: LIBOBJS=$ac_libobjs
8795:
8796: LTLIBOBJS=$ac_ltlibobjs
8797:
1.1 parser 8798:
1.11 paf 8799: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8800: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8801: Usually this means the macro was only invoked conditionally." >&5
8802: echo "$as_me: error: conditional \"AMDEP\" was never defined.
8803: Usually this means the macro was only invoked conditionally." >&2;}
8804: { (exit 1); exit 1; }; }
8805: fi
8806: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8807: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8808: Usually this means the macro was only invoked conditionally." >&5
8809: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8810: Usually this means the macro was only invoked conditionally." >&2;}
8811: { (exit 1); exit 1; }; }
8812: fi
8813: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8814: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8815: Usually this means the macro was only invoked conditionally." >&5
8816: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8817: Usually this means the macro was only invoked conditionally." >&2;}
8818: { (exit 1); exit 1; }; }
8819: fi
1.1 parser 8820:
8821: : ${CONFIG_STATUS=./config.status}
1.11 paf 8822: ac_clean_files_save=$ac_clean_files
8823: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8824: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8825: echo "$as_me: creating $CONFIG_STATUS" >&6;}
8826: cat >$CONFIG_STATUS <<_ACEOF
8827: #! $SHELL
8828: # Generated by $as_me.
8829: # Run this file to recreate the current configuration.
8830: # Compiler output produced by configure, useful for debugging
8831: # configure, is in config.log if it exists.
8832:
8833: debug=false
8834: ac_cs_recheck=false
8835: ac_cs_silent=false
8836: SHELL=\${CONFIG_SHELL-$SHELL}
8837: _ACEOF
8838:
8839: cat >>$CONFIG_STATUS <<\_ACEOF
8840: ## --------------------- ##
8841: ## M4sh Initialization. ##
8842: ## --------------------- ##
8843:
8844: # Be Bourne compatible
8845: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8846: emulate sh
8847: NULLCMD=:
8848: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8849: # is contrary to our usage. Disable this feature.
8850: alias -g '${1+"$@"}'='"$@"'
8851: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8852: set -o posix
8853: fi
8854:
8855: # Support unset when possible.
8856: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8857: as_unset=unset
8858: else
8859: as_unset=false
8860: fi
8861:
8862:
8863: # Work around bugs in pre-3.0 UWIN ksh.
8864: $as_unset ENV MAIL MAILPATH
8865: PS1='$ '
8866: PS2='> '
8867: PS4='+ '
8868:
8869: # NLS nuisances.
8870: for as_var in \
8871: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8872: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8873: LC_TELEPHONE LC_TIME
8874: do
8875: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
8876: eval $as_var=C; export $as_var
8877: else
8878: $as_unset $as_var
8879: fi
8880: done
8881:
8882: # Required to use basename.
8883: if expr a : '\(a\)' >/dev/null 2>&1; then
8884: as_expr=expr
8885: else
8886: as_expr=false
8887: fi
8888:
8889: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8890: as_basename=basename
8891: else
8892: as_basename=false
8893: fi
8894:
8895:
8896: # Name of the executable.
8897: as_me=`$as_basename "$0" ||
8898: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8899: X"$0" : 'X\(//\)$' \| \
8900: X"$0" : 'X\(/\)$' \| \
8901: . : '\(.\)' 2>/dev/null ||
8902: echo X/"$0" |
8903: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8904: /^X\/\(\/\/\)$/{ s//\1/; q; }
8905: /^X\/\(\/\).*/{ s//\1/; q; }
8906: s/.*/./; q'`
8907:
8908:
8909: # PATH needs CR, and LINENO needs CR and PATH.
8910: # Avoid depending upon Character Ranges.
8911: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8912: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8913: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8914: as_cr_digits='0123456789'
8915: as_cr_alnum=$as_cr_Letters$as_cr_digits
8916:
8917: # The user is always right.
8918: if test "${PATH_SEPARATOR+set}" != set; then
8919: echo "#! /bin/sh" >conf$$.sh
8920: echo "exit 0" >>conf$$.sh
8921: chmod +x conf$$.sh
8922: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8923: PATH_SEPARATOR=';'
8924: else
8925: PATH_SEPARATOR=:
8926: fi
8927: rm -f conf$$.sh
8928: fi
8929:
8930:
8931: as_lineno_1=$LINENO
8932: as_lineno_2=$LINENO
8933: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8934: test "x$as_lineno_1" != "x$as_lineno_2" &&
8935: test "x$as_lineno_3" = "x$as_lineno_2" || {
8936: # Find who we are. Look in the path if we contain no path at all
8937: # relative or not.
8938: case $0 in
8939: *[\\/]* ) as_myself=$0 ;;
8940: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8941: for as_dir in $PATH
8942: do
8943: IFS=$as_save_IFS
8944: test -z "$as_dir" && as_dir=.
8945: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8946: done
8947:
8948: ;;
8949: esac
8950: # We did not find ourselves, most probably we were run as `sh COMMAND'
8951: # in which case we are not to be found in the path.
8952: if test "x$as_myself" = x; then
8953: as_myself=$0
8954: fi
8955: if test ! -f "$as_myself"; then
8956: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8957: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8958: { (exit 1); exit 1; }; }
8959: fi
8960: case $CONFIG_SHELL in
8961: '')
8962: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8963: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8964: do
8965: IFS=$as_save_IFS
8966: test -z "$as_dir" && as_dir=.
8967: for as_base in sh bash ksh sh5; do
8968: case $as_dir in
8969: /*)
8970: if ("$as_dir/$as_base" -c '
8971: as_lineno_1=$LINENO
8972: as_lineno_2=$LINENO
8973: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8974: test "x$as_lineno_1" != "x$as_lineno_2" &&
8975: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8976: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8977: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8978: CONFIG_SHELL=$as_dir/$as_base
8979: export CONFIG_SHELL
8980: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8981: fi;;
8982: esac
8983: done
8984: done
8985: ;;
8986: esac
8987:
8988: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8989: # uniformly replaced by the line number. The first 'sed' inserts a
8990: # line-number line before each line; the second 'sed' does the real
8991: # work. The second script uses 'N' to pair each line-number line
8992: # with the numbered line, and appends trailing '-' during
8993: # substitution so that $LINENO is not a special case at line end.
8994: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8995: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8996: sed '=' <$as_myself |
8997: sed '
8998: N
8999: s,$,-,
9000: : loop
9001: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9002: t loop
9003: s,-$,,
9004: s,^['$as_cr_digits']*\n,,
9005: ' >$as_me.lineno &&
9006: chmod +x $as_me.lineno ||
9007: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9008: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9009: { (exit 1); exit 1; }; }
9010:
9011: # Don't try to exec as it changes $[0], causing all sort of problems
9012: # (the dirname of $[0] is not the place where we might find the
9013: # original and so on. Autoconf is especially sensible to this).
9014: . ./$as_me.lineno
9015: # Exit status is that of the last command.
9016: exit
9017: }
9018:
9019:
9020: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9021: *c*,-n*) ECHO_N= ECHO_C='
9022: ' ECHO_T=' ' ;;
9023: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9024: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9025: esac
9026:
9027: if expr a : '\(a\)' >/dev/null 2>&1; then
9028: as_expr=expr
9029: else
9030: as_expr=false
9031: fi
9032:
9033: rm -f conf$$ conf$$.exe conf$$.file
9034: echo >conf$$.file
9035: if ln -s conf$$.file conf$$ 2>/dev/null; then
9036: # We could just check for DJGPP; but this test a) works b) is more generic
9037: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9038: if test -f conf$$.exe; then
9039: # Don't use ln at all; we don't have any links
9040: as_ln_s='cp -p'
9041: else
9042: as_ln_s='ln -s'
9043: fi
9044: elif ln conf$$.file conf$$ 2>/dev/null; then
9045: as_ln_s=ln
9046: else
9047: as_ln_s='cp -p'
9048: fi
9049: rm -f conf$$ conf$$.exe conf$$.file
9050:
9051: if mkdir -p . 2>/dev/null; then
9052: as_mkdir_p=:
9053: else
9054: as_mkdir_p=false
9055: fi
9056:
9057: as_executable_p="test -f"
9058:
9059: # Sed expression to map a string onto a valid CPP name.
9060: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9061:
9062: # Sed expression to map a string onto a valid variable name.
9063: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9064:
9065:
9066: # IFS
9067: # We need space, tab and new line, in precisely that order.
9068: as_nl='
9069: '
9070: IFS=" $as_nl"
9071:
9072: # CDPATH.
9073: $as_unset CDPATH
9074:
9075: exec 6>&1
9076:
9077: # Open the log real soon, to keep \$[0] and so on meaningful, and to
9078: # report actual input values of CONFIG_FILES etc. instead of their
9079: # values after options handling. Logging --version etc. is OK.
9080: exec 5>>config.log
9081: {
9082: echo
9083: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9084: ## Running $as_me. ##
9085: _ASBOX
9086: } >&5
9087: cat >&5 <<_CSEOF
9088:
9089: This file was extended by $as_me, which was
9090: generated by GNU Autoconf 2.57. Invocation command line was
9091:
9092: CONFIG_FILES = $CONFIG_FILES
9093: CONFIG_HEADERS = $CONFIG_HEADERS
9094: CONFIG_LINKS = $CONFIG_LINKS
9095: CONFIG_COMMANDS = $CONFIG_COMMANDS
9096: $ $0 $@
9097:
9098: _CSEOF
9099: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9100: echo >&5
9101: _ACEOF
9102:
9103: # Files that config.status was made for.
9104: if test -n "$ac_config_files"; then
9105: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9106: fi
9107:
9108: if test -n "$ac_config_headers"; then
9109: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9110: fi
9111:
9112: if test -n "$ac_config_links"; then
9113: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9114: fi
9115:
9116: if test -n "$ac_config_commands"; then
9117: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9118: fi
9119:
9120: cat >>$CONFIG_STATUS <<\_ACEOF
9121:
9122: ac_cs_usage="\
9123: \`$as_me' instantiates files from templates according to the
9124: current configuration.
9125:
9126: Usage: $0 [OPTIONS] [FILE]...
9127:
9128: -h, --help print this help, then exit
9129: -V, --version print version number, then exit
9130: -q, --quiet do not print progress messages
9131: -d, --debug don't remove temporary files
9132: --recheck update $as_me by reconfiguring in the same conditions
9133: --file=FILE[:TEMPLATE]
9134: instantiate the configuration file FILE
9135: --header=FILE[:TEMPLATE]
9136: instantiate the configuration header FILE
9137:
9138: Configuration files:
9139: $config_files
9140:
9141: Configuration headers:
9142: $config_headers
9143:
9144: Configuration commands:
9145: $config_commands
9146:
9147: Report bugs to <bug-autoconf@gnu.org>."
9148: _ACEOF
9149:
9150: cat >>$CONFIG_STATUS <<_ACEOF
9151: ac_cs_version="\\
9152: config.status
9153: configured by $0, generated by GNU Autoconf 2.57,
9154: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9155:
9156: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9157: Free Software Foundation, Inc.
9158: This config.status script is free software; the Free Software Foundation
9159: gives unlimited permission to copy, distribute and modify it."
9160: srcdir=$srcdir
9161: INSTALL="$INSTALL"
9162: _ACEOF
9163:
9164: cat >>$CONFIG_STATUS <<\_ACEOF
9165: # If no file are specified by the user, then we need to provide default
9166: # value. By we need to know if files were specified by the user.
9167: ac_need_defaults=:
9168: while test $# != 0
9169: do
9170: case $1 in
9171: --*=*)
9172: ac_option=`expr "x$1" : 'x\([^=]*\)='`
9173: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9174: ac_shift=:
9175: ;;
9176: -*)
9177: ac_option=$1
9178: ac_optarg=$2
9179: ac_shift=shift
9180: ;;
9181: *) # This is not an option, so the user has probably given explicit
9182: # arguments.
9183: ac_option=$1
9184: ac_need_defaults=false;;
9185: esac
9186:
9187: case $ac_option in
9188: # Handling of the options.
9189: _ACEOF
9190: cat >>$CONFIG_STATUS <<\_ACEOF
9191: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9192: ac_cs_recheck=: ;;
9193: --version | --vers* | -V )
9194: echo "$ac_cs_version"; exit 0 ;;
9195: --he | --h)
9196: # Conflict between --help and --header
9197: { { echo "$as_me:$LINENO: error: ambiguous option: $1
9198: Try \`$0 --help' for more information." >&5
9199: echo "$as_me: error: ambiguous option: $1
9200: Try \`$0 --help' for more information." >&2;}
9201: { (exit 1); exit 1; }; };;
9202: --help | --hel | -h )
9203: echo "$ac_cs_usage"; exit 0 ;;
9204: --debug | --d* | -d )
9205: debug=: ;;
9206: --file | --fil | --fi | --f )
9207: $ac_shift
9208: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9209: ac_need_defaults=false;;
9210: --header | --heade | --head | --hea )
9211: $ac_shift
9212: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9213: ac_need_defaults=false;;
9214: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9215: | -silent | --silent | --silen | --sile | --sil | --si | --s)
9216: ac_cs_silent=: ;;
9217:
9218: # This is an error.
9219: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9220: Try \`$0 --help' for more information." >&5
9221: echo "$as_me: error: unrecognized option: $1
9222: Try \`$0 --help' for more information." >&2;}
9223: { (exit 1); exit 1; }; } ;;
9224:
9225: *) ac_config_targets="$ac_config_targets $1" ;;
1.1 parser 9226:
1.11 paf 9227: esac
9228: shift
9229: done
9230:
9231: ac_configure_extra_args=
9232:
9233: if $ac_cs_silent; then
9234: exec 6>/dev/null
9235: ac_configure_extra_args="$ac_configure_extra_args --silent"
9236: fi
9237:
9238: _ACEOF
9239: cat >>$CONFIG_STATUS <<_ACEOF
9240: if \$ac_cs_recheck; then
9241: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9242: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9243: fi
9244:
9245: _ACEOF
9246:
9247: cat >>$CONFIG_STATUS <<_ACEOF
1.1 parser 9248: #
1.11 paf 9249: # INIT-COMMANDS section.
1.1 parser 9250: #
9251:
1.11 paf 9252: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9253:
9254: _ACEOF
9255:
9256:
9257:
9258: cat >>$CONFIG_STATUS <<\_ACEOF
9259: for ac_config_target in $ac_config_targets
1.1 parser 9260: do
1.11 paf 9261: case "$ac_config_target" in
9262: # Handling of arguments.
9263: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9264: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9265: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
9266: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9267: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9268: { (exit 1); exit 1; }; };;
1.1 parser 9269: esac
9270: done
9271:
1.11 paf 9272: # If the user did not use the arguments to specify the items to instantiate,
9273: # then the envvar interface is used. Set only those that are not.
9274: # We use the long form for the default assignment because of an extremely
9275: # bizarre bug on SunOS 4.1.3.
9276: if $ac_need_defaults; then
9277: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9278: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9279: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9280: fi
9281:
9282: # Have a temporary directory for convenience. Make it in the build tree
9283: # simply because there is no reason to put it here, and in addition,
9284: # creating and moving files from /tmp can sometimes cause problems.
9285: # Create a temporary directory, and hook for its removal unless debugging.
9286: $debug ||
9287: {
9288: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9289: trap '{ (exit 1); exit 1; }' 1 2 13 15
9290: }
9291:
9292: # Create a (secure) tmp directory for tmp files.
9293:
9294: {
9295: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9296: test -n "$tmp" && test -d "$tmp"
9297: } ||
9298: {
9299: tmp=./confstat$$-$RANDOM
9300: (umask 077 && mkdir $tmp)
9301: } ||
9302: {
9303: echo "$me: cannot create a temporary directory in ." >&2
9304: { (exit 1); exit 1; }
9305: }
9306:
9307: _ACEOF
1.1 parser 9308:
1.11 paf 9309: cat >>$CONFIG_STATUS <<_ACEOF
1.1 parser 9310:
1.11 paf 9311: #
9312: # CONFIG_FILES section.
9313: #
1.1 parser 9314:
1.11 paf 9315: # No need to generate the scripts if there are no CONFIG_FILES.
9316: # This happens for instance when ./config.status config.h
9317: if test -n "\$CONFIG_FILES"; then
9318: # Protect against being on the right side of a sed subst in config.status.
9319: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9320: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9321: s,@SHELL@,$SHELL,;t t
9322: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9323: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9324: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9325: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9326: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9327: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9328: s,@exec_prefix@,$exec_prefix,;t t
9329: s,@prefix@,$prefix,;t t
9330: s,@program_transform_name@,$program_transform_name,;t t
9331: s,@bindir@,$bindir,;t t
9332: s,@sbindir@,$sbindir,;t t
9333: s,@libexecdir@,$libexecdir,;t t
9334: s,@datadir@,$datadir,;t t
9335: s,@sysconfdir@,$sysconfdir,;t t
9336: s,@sharedstatedir@,$sharedstatedir,;t t
9337: s,@localstatedir@,$localstatedir,;t t
9338: s,@libdir@,$libdir,;t t
9339: s,@includedir@,$includedir,;t t
9340: s,@oldincludedir@,$oldincludedir,;t t
9341: s,@infodir@,$infodir,;t t
9342: s,@mandir@,$mandir,;t t
9343: s,@build_alias@,$build_alias,;t t
9344: s,@host_alias@,$host_alias,;t t
9345: s,@target_alias@,$target_alias,;t t
9346: s,@DEFS@,$DEFS,;t t
9347: s,@ECHO_C@,$ECHO_C,;t t
9348: s,@ECHO_N@,$ECHO_N,;t t
9349: s,@ECHO_T@,$ECHO_T,;t t
9350: s,@LIBS@,$LIBS,;t t
9351: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9352: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9353: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9354: s,@CYGPATH_W@,$CYGPATH_W,;t t
9355: s,@PACKAGE@,$PACKAGE,;t t
9356: s,@VERSION@,$VERSION,;t t
9357: s,@ACLOCAL@,$ACLOCAL,;t t
9358: s,@AUTOCONF@,$AUTOCONF,;t t
9359: s,@AUTOMAKE@,$AUTOMAKE,;t t
9360: s,@AUTOHEADER@,$AUTOHEADER,;t t
9361: s,@MAKEINFO@,$MAKEINFO,;t t
9362: s,@AMTAR@,$AMTAR,;t t
9363: s,@install_sh@,$install_sh,;t t
9364: s,@STRIP@,$STRIP,;t t
9365: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9366: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9367: s,@AWK@,$AWK,;t t
9368: s,@SET_MAKE@,$SET_MAKE,;t t
9369: s,@ORACLE_OCI_INC@,$ORACLE_OCI_INC,;t t
9370: s,@ORACLE_PUBLIC_INC@,$ORACLE_PUBLIC_INC,;t t
9371: s,@CXX@,$CXX,;t t
9372: s,@CXXFLAGS@,$CXXFLAGS,;t t
9373: s,@LDFLAGS@,$LDFLAGS,;t t
9374: s,@CPPFLAGS@,$CPPFLAGS,;t t
9375: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9376: s,@EXEEXT@,$EXEEXT,;t t
9377: s,@OBJEXT@,$OBJEXT,;t t
9378: s,@DEPDIR@,$DEPDIR,;t t
9379: s,@am__include@,$am__include,;t t
9380: s,@am__quote@,$am__quote,;t t
9381: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9382: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9383: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9384: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9385: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
9386: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
9387: s,@INCLTDL@,$INCLTDL,;t t
9388: s,@LIBLTDL@,$LIBLTDL,;t t
9389: s,@LIBADD_DL@,$LIBADD_DL,;t t
9390: s,@build@,$build,;t t
9391: s,@build_cpu@,$build_cpu,;t t
9392: s,@build_vendor@,$build_vendor,;t t
9393: s,@build_os@,$build_os,;t t
9394: s,@host@,$host,;t t
9395: s,@host_cpu@,$host_cpu,;t t
9396: s,@host_vendor@,$host_vendor,;t t
9397: s,@host_os@,$host_os,;t t
9398: s,@CC@,$CC,;t t
9399: s,@CFLAGS@,$CFLAGS,;t t
9400: s,@ac_ct_CC@,$ac_ct_CC,;t t
9401: s,@CCDEPMODE@,$CCDEPMODE,;t t
9402: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9403: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9404: s,@LN_S@,$LN_S,;t t
9405: s,@ECHO@,$ECHO,;t t
9406: s,@RANLIB@,$RANLIB,;t t
9407: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9408: s,@CXXCPP@,$CXXCPP,;t t
9409: s,@EGREP@,$EGREP,;t t
9410: s,@LIBTOOL@,$LIBTOOL,;t t
9411: s,@subdirs@,$subdirs,;t t
9412: s,@LIBOBJS@,$LIBOBJS,;t t
9413: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.1 parser 9414: CEOF
9415:
1.11 paf 9416: _ACEOF
1.1 parser 9417:
1.11 paf 9418: cat >>$CONFIG_STATUS <<\_ACEOF
9419: # Split the substitutions into bite-sized pieces for seds with
9420: # small command number limits, like on Digital OSF/1 and HP-UX.
9421: ac_max_sed_lines=48
9422: ac_sed_frag=1 # Number of current file.
9423: ac_beg=1 # First line for current file.
9424: ac_end=$ac_max_sed_lines # Line after last line for current file.
9425: ac_more_lines=:
9426: ac_sed_cmds=
9427: while $ac_more_lines; do
9428: if test $ac_beg -gt 1; then
9429: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9430: else
9431: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9432: fi
9433: if test ! -s $tmp/subs.frag; then
9434: ac_more_lines=false
9435: else
9436: # The purpose of the label and of the branching condition is to
9437: # speed up the sed processing (if there are no `@' at all, there
9438: # is no need to browse any of the substitutions).
9439: # These are the two extra sed commands mentioned above.
9440: (echo ':t
9441: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9442: if test -z "$ac_sed_cmds"; then
9443: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9444: else
9445: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9446: fi
9447: ac_sed_frag=`expr $ac_sed_frag + 1`
9448: ac_beg=$ac_end
9449: ac_end=`expr $ac_end + $ac_max_sed_lines`
9450: fi
9451: done
9452: if test -z "$ac_sed_cmds"; then
9453: ac_sed_cmds=cat
1.1 parser 9454: fi
1.11 paf 9455: fi # test -n "$CONFIG_FILES"
1.1 parser 9456:
1.11 paf 9457: _ACEOF
9458: cat >>$CONFIG_STATUS <<\_ACEOF
9459: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9460: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9461: case $ac_file in
9462: - | *:- | *:-:* ) # input from stdin
9463: cat >$tmp/stdin
9464: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9465: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9466: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9467: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9468: * ) ac_file_in=$ac_file.in ;;
9469: esac
1.1 parser 9470:
1.11 paf 9471: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9472: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9473: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9474: X"$ac_file" : 'X\(//\)[^/]' \| \
9475: X"$ac_file" : 'X\(//\)$' \| \
9476: X"$ac_file" : 'X\(/\)' \| \
9477: . : '\(.\)' 2>/dev/null ||
9478: echo X"$ac_file" |
9479: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9480: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9481: /^X\(\/\/\)$/{ s//\1/; q; }
9482: /^X\(\/\).*/{ s//\1/; q; }
9483: s/.*/./; q'`
9484: { if $as_mkdir_p; then
9485: mkdir -p "$ac_dir"
9486: else
9487: as_dir="$ac_dir"
9488: as_dirs=
9489: while test ! -d "$as_dir"; do
9490: as_dirs="$as_dir $as_dirs"
9491: as_dir=`(dirname "$as_dir") 2>/dev/null ||
9492: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9493: X"$as_dir" : 'X\(//\)[^/]' \| \
9494: X"$as_dir" : 'X\(//\)$' \| \
9495: X"$as_dir" : 'X\(/\)' \| \
9496: . : '\(.\)' 2>/dev/null ||
9497: echo X"$as_dir" |
9498: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9499: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9500: /^X\(\/\/\)$/{ s//\1/; q; }
9501: /^X\(\/\).*/{ s//\1/; q; }
9502: s/.*/./; q'`
9503: done
9504: test ! -n "$as_dirs" || mkdir $as_dirs
9505: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9506: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9507: { (exit 1); exit 1; }; }; }
9508:
9509: ac_builddir=.
9510:
9511: if test "$ac_dir" != .; then
9512: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9513: # A "../" for each directory in $ac_dir_suffix.
9514: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9515: else
9516: ac_dir_suffix= ac_top_builddir=
9517: fi
9518:
9519: case $srcdir in
9520: .) # No --srcdir option. We are building in place.
9521: ac_srcdir=.
9522: if test -z "$ac_top_builddir"; then
9523: ac_top_srcdir=.
9524: else
9525: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9526: fi ;;
9527: [\\/]* | ?:[\\/]* ) # Absolute path.
9528: ac_srcdir=$srcdir$ac_dir_suffix;
9529: ac_top_srcdir=$srcdir ;;
1.1 parser 9530: *) # Relative path.
1.11 paf 9531: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9532: ac_top_srcdir=$ac_top_builddir$srcdir ;;
9533: esac
9534: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9535: # absolute.
9536: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9537: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9538: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9539: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9540:
9541:
9542: case $INSTALL in
9543: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9544: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.1 parser 9545: esac
9546:
1.11 paf 9547: if test x"$ac_file" != x-; then
9548: { echo "$as_me:$LINENO: creating $ac_file" >&5
9549: echo "$as_me: creating $ac_file" >&6;}
9550: rm -f "$ac_file"
9551: fi
9552: # Let's still pretend it is `configure' which instantiates (i.e., don't
9553: # use $as_me), people would be surprised to read:
9554: # /* config.h. Generated by config.status. */
9555: if test x"$ac_file" = x-; then
9556: configure_input=
9557: else
9558: configure_input="$ac_file. "
9559: fi
9560: configure_input=$configure_input"Generated from `echo $ac_file_in |
9561: sed 's,.*/,,'` by configure."
9562:
9563: # First look for the input files in the build tree, otherwise in the
9564: # src tree.
9565: ac_file_inputs=`IFS=:
9566: for f in $ac_file_in; do
9567: case $f in
9568: -) echo $tmp/stdin ;;
9569: [\\/$]*)
9570: # Absolute (can't be DOS-style, as IFS=:)
9571: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9572: echo "$as_me: error: cannot find input file: $f" >&2;}
9573: { (exit 1); exit 1; }; }
9574: echo $f;;
9575: *) # Relative
9576: if test -f "$f"; then
9577: # Build tree
9578: echo $f
9579: elif test -f "$srcdir/$f"; then
9580: # Source tree
9581: echo $srcdir/$f
9582: else
9583: # /dev/null tree
9584: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9585: echo "$as_me: error: cannot find input file: $f" >&2;}
9586: { (exit 1); exit 1; }; }
9587: fi;;
9588: esac
9589: done` || { (exit 1); exit 1; }
9590: _ACEOF
9591: cat >>$CONFIG_STATUS <<_ACEOF
9592: sed "$ac_vpsub
9593: $extrasub
9594: _ACEOF
9595: cat >>$CONFIG_STATUS <<\_ACEOF
9596: :t
9597: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9598: s,@configure_input@,$configure_input,;t t
9599: s,@srcdir@,$ac_srcdir,;t t
9600: s,@abs_srcdir@,$ac_abs_srcdir,;t t
9601: s,@top_srcdir@,$ac_top_srcdir,;t t
9602: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9603: s,@builddir@,$ac_builddir,;t t
9604: s,@abs_builddir@,$ac_abs_builddir,;t t
9605: s,@top_builddir@,$ac_top_builddir,;t t
9606: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9607: s,@INSTALL@,$ac_INSTALL,;t t
9608: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9609: rm -f $tmp/stdin
9610: if test x"$ac_file" != x-; then
9611: mv $tmp/out $ac_file
9612: else
9613: cat $tmp/out
9614: rm -f $tmp/out
9615: fi
9616:
9617: done
9618: _ACEOF
9619: cat >>$CONFIG_STATUS <<\_ACEOF
9620:
9621: #
9622: # CONFIG_HEADER section.
9623: #
1.1 parser 9624:
9625: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9626: # NAME is the cpp macro being defined and VALUE is the value it is being given.
9627: #
9628: # ac_d sets the value in "#define NAME VALUE" lines.
1.11 paf 9629: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9630: ac_dB='[ ].*$,\1#\2'
9631: ac_dC=' '
9632: ac_dD=',;t'
9633: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9634: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9635: ac_uB='$,\1#\2define\3'
1.1 parser 9636: ac_uC=' '
1.11 paf 9637: ac_uD=',;t'
1.1 parser 9638:
1.11 paf 9639: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 parser 9640: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.11 paf 9641: case $ac_file in
9642: - | *:- | *:-:* ) # input from stdin
9643: cat >$tmp/stdin
9644: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9645: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9646: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9647: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9648: * ) ac_file_in=$ac_file.in ;;
1.1 parser 9649: esac
9650:
1.11 paf 9651: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9652: echo "$as_me: creating $ac_file" >&6;}
1.1 parser 9653:
1.11 paf 9654: # First look for the input files in the build tree, otherwise in the
9655: # src tree.
9656: ac_file_inputs=`IFS=:
9657: for f in $ac_file_in; do
9658: case $f in
9659: -) echo $tmp/stdin ;;
9660: [\\/$]*)
9661: # Absolute (can't be DOS-style, as IFS=:)
9662: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9663: echo "$as_me: error: cannot find input file: $f" >&2;}
9664: { (exit 1); exit 1; }; }
9665: echo $f;;
9666: *) # Relative
9667: if test -f "$f"; then
9668: # Build tree
9669: echo $f
9670: elif test -f "$srcdir/$f"; then
9671: # Source tree
9672: echo $srcdir/$f
9673: else
9674: # /dev/null tree
9675: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9676: echo "$as_me: error: cannot find input file: $f" >&2;}
9677: { (exit 1); exit 1; }; }
9678: fi;;
9679: esac
9680: done` || { (exit 1); exit 1; }
9681: # Remove the trailing spaces.
9682: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9683:
9684: _ACEOF
9685:
9686: # Transform confdefs.h into two sed scripts, `conftest.defines' and
9687: # `conftest.undefs', that substitutes the proper values into
9688: # config.h.in to produce config.h. The first handles `#define'
9689: # templates, and the second `#undef' templates.
9690: # And first: Protect against being on the right side of a sed subst in
9691: # config.status. Protect against being in an unquoted here document
9692: # in config.status.
9693: rm -f conftest.defines conftest.undefs
9694: # Using a here document instead of a string reduces the quoting nightmare.
9695: # Putting comments in sed scripts is not portable.
9696: #
9697: # `end' is used to avoid that the second main sed command (meant for
9698: # 0-ary CPP macros) applies to n-ary macro definitions.
9699: # See the Autoconf documentation for `clear'.
9700: cat >confdef2sed.sed <<\_ACEOF
9701: s/[\\&,]/\\&/g
9702: s,[\\$`],\\&,g
9703: t clear
9704: : clear
9705: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9706: t end
9707: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9708: : end
9709: _ACEOF
9710: # If some macros were called several times there might be several times
9711: # the same #defines, which is useless. Nevertheless, we may not want to
9712: # sort them, since we want the *last* AC-DEFINE to be honored.
9713: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9714: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9715: rm -f confdef2sed.sed
1.1 parser 9716:
9717: # This sed command replaces #undef with comments. This is necessary, for
9718: # example, in the case of _POSIX_SOURCE, which is predefined and required
9719: # on some systems where configure will not decide to define it.
1.11 paf 9720: cat >>conftest.undefs <<\_ACEOF
9721: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9722: _ACEOF
9723:
9724: # Break up conftest.defines because some shells have a limit on the size
9725: # of here documents, and old seds have small limits too (100 cmds).
9726: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9727: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9728: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9729: echo ' :' >>$CONFIG_STATUS
9730: rm -f conftest.tail
9731: while grep . conftest.defines >/dev/null
9732: do
9733: # Write a limited-size here document to $tmp/defines.sed.
9734: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9735: # Speed up: don't consider the non `#define' lines.
9736: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9737: # Work around the forget-to-reset-the-flag bug.
9738: echo 't clr' >>$CONFIG_STATUS
9739: echo ': clr' >>$CONFIG_STATUS
9740: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9741: echo 'CEOF
9742: sed -f $tmp/defines.sed $tmp/in >$tmp/out
9743: rm -f $tmp/in
9744: mv $tmp/out $tmp/in
9745: ' >>$CONFIG_STATUS
9746: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9747: rm -f conftest.defines
9748: mv conftest.tail conftest.defines
9749: done
9750: rm -f conftest.defines
9751: echo ' fi # grep' >>$CONFIG_STATUS
9752: echo >>$CONFIG_STATUS
9753:
9754: # Break up conftest.undefs because some shells have a limit on the size
9755: # of here documents, and old seds have small limits too (100 cmds).
9756: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 parser 9757: rm -f conftest.tail
1.11 paf 9758: while grep . conftest.undefs >/dev/null
1.1 parser 9759: do
1.11 paf 9760: # Write a limited-size here document to $tmp/undefs.sed.
9761: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9762: # Speed up: don't consider the non `#undef'
9763: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9764: # Work around the forget-to-reset-the-flag bug.
9765: echo 't clr' >>$CONFIG_STATUS
9766: echo ': clr' >>$CONFIG_STATUS
9767: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 parser 9768: echo 'CEOF
1.11 paf 9769: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9770: rm -f $tmp/in
9771: mv $tmp/out $tmp/in
9772: ' >>$CONFIG_STATUS
9773: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9774: rm -f conftest.undefs
9775: mv conftest.tail conftest.undefs
9776: done
9777: rm -f conftest.undefs
9778:
9779: cat >>$CONFIG_STATUS <<\_ACEOF
9780: # Let's still pretend it is `configure' which instantiates (i.e., don't
9781: # use $as_me), people would be surprised to read:
9782: # /* config.h. Generated by config.status. */
9783: if test x"$ac_file" = x-; then
9784: echo "/* Generated by configure. */" >$tmp/config.h
9785: else
9786: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9787: fi
9788: cat $tmp/in >>$tmp/config.h
9789: rm -f $tmp/in
9790: if test x"$ac_file" != x-; then
9791: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9792: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9793: echo "$as_me: $ac_file is unchanged" >&6;}
9794: else
9795: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9796: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9797: X"$ac_file" : 'X\(//\)[^/]' \| \
9798: X"$ac_file" : 'X\(//\)$' \| \
9799: X"$ac_file" : 'X\(/\)' \| \
9800: . : '\(.\)' 2>/dev/null ||
9801: echo X"$ac_file" |
9802: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9803: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9804: /^X\(\/\/\)$/{ s//\1/; q; }
9805: /^X\(\/\).*/{ s//\1/; q; }
9806: s/.*/./; q'`
9807: { if $as_mkdir_p; then
9808: mkdir -p "$ac_dir"
9809: else
9810: as_dir="$ac_dir"
9811: as_dirs=
9812: while test ! -d "$as_dir"; do
9813: as_dirs="$as_dir $as_dirs"
9814: as_dir=`(dirname "$as_dir") 2>/dev/null ||
9815: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9816: X"$as_dir" : 'X\(//\)[^/]' \| \
9817: X"$as_dir" : 'X\(//\)$' \| \
9818: X"$as_dir" : 'X\(/\)' \| \
9819: . : '\(.\)' 2>/dev/null ||
9820: echo X"$as_dir" |
9821: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9822: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9823: /^X\(\/\/\)$/{ s//\1/; q; }
9824: /^X\(\/\).*/{ s//\1/; q; }
9825: s/.*/./; q'`
9826: done
9827: test ! -n "$as_dirs" || mkdir $as_dirs
9828: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9829: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9830: { (exit 1); exit 1; }; }; }
9831:
9832: rm -f $ac_file
9833: mv $tmp/config.h $ac_file
1.1 parser 9834: fi
1.11 paf 9835: else
9836: cat $tmp/config.h
9837: rm -f $tmp/config.h
1.1 parser 9838: fi
1.11 paf 9839: _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
9840: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9841: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9842: X$ac_file : 'X\(//\)[^/]' \| \
9843: X$ac_file : 'X\(//\)$' \| \
9844: X$ac_file : 'X\(/\)' \| \
9845: . : '\(.\)' 2>/dev/null ||
9846: echo X$ac_file |
9847: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9848: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9849: /^X\(\/\/\)$/{ s//\1/; q; }
9850: /^X\(\/\).*/{ s//\1/; q; }
9851: s/.*/./; q'`/stamp-h$_am_stamp_count
9852: done
9853: _ACEOF
9854: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 9855:
1.11 paf 9856: #
9857: # CONFIG_COMMANDS section.
9858: #
9859: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9860: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9861: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9862: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9863: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9864: X"$ac_dest" : 'X\(//\)[^/]' \| \
9865: X"$ac_dest" : 'X\(//\)$' \| \
9866: X"$ac_dest" : 'X\(/\)' \| \
9867: . : '\(.\)' 2>/dev/null ||
9868: echo X"$ac_dest" |
9869: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9870: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9871: /^X\(\/\/\)$/{ s//\1/; q; }
9872: /^X\(\/\).*/{ s//\1/; q; }
9873: s/.*/./; q'`
9874: ac_builddir=.
9875:
9876: if test "$ac_dir" != .; then
9877: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9878: # A "../" for each directory in $ac_dir_suffix.
9879: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9880: else
9881: ac_dir_suffix= ac_top_builddir=
9882: fi
9883:
9884: case $srcdir in
9885: .) # No --srcdir option. We are building in place.
9886: ac_srcdir=.
9887: if test -z "$ac_top_builddir"; then
9888: ac_top_srcdir=.
9889: else
9890: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9891: fi ;;
9892: [\\/]* | ?:[\\/]* ) # Absolute path.
9893: ac_srcdir=$srcdir$ac_dir_suffix;
9894: ac_top_srcdir=$srcdir ;;
9895: *) # Relative path.
9896: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9897: ac_top_srcdir=$ac_top_builddir$srcdir ;;
9898: esac
9899: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9900: # absolute.
9901: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9902: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9903: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9904: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9905:
9906:
9907: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9908: echo "$as_me: executing $ac_dest commands" >&6;}
9909: case $ac_dest in
9910: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9911: # Strip MF so we end up with the name of the file.
9912: mf=`echo "$mf" | sed -e 's/:.*$//'`
9913: # Check whether this is an Automake generated Makefile or not.
9914: # We used to match only the files named `Makefile.in', but
9915: # some people rename them; so instead we look at the file content.
9916: # Grep'ing the first line is not enough: some people post-process
9917: # each Makefile.in and add a new line on top of each file to say so.
9918: # So let's grep whole file.
9919: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9920: dirpart=`(dirname "$mf") 2>/dev/null ||
9921: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9922: X"$mf" : 'X\(//\)[^/]' \| \
9923: X"$mf" : 'X\(//\)$' \| \
9924: X"$mf" : 'X\(/\)' \| \
9925: . : '\(.\)' 2>/dev/null ||
9926: echo X"$mf" |
9927: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9928: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9929: /^X\(\/\/\)$/{ s//\1/; q; }
9930: /^X\(\/\).*/{ s//\1/; q; }
9931: s/.*/./; q'`
9932: else
9933: continue
9934: fi
9935: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9936: # Extract the definition of DEP_FILES from the Makefile without
9937: # running `make'.
9938: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9939: test -z "$DEPDIR" && continue
9940: # When using ansi2knr, U may be empty or an underscore; expand it
9941: U=`sed -n -e '/^U = / s///p' < "$mf"`
9942: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9943: # We invoke sed twice because it is the simplest approach to
9944: # changing $(DEPDIR) to its actual value in the expansion.
9945: for file in `sed -n -e '
9946: /^DEP_FILES = .*\\\\$/ {
9947: s/^DEP_FILES = //
9948: :loop
9949: s/\\\\$//
9950: p
9951: n
9952: /\\\\$/ b loop
9953: p
9954: }
9955: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9956: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9957: # Make sure the directory exists.
9958: test -f "$dirpart/$file" && continue
9959: fdir=`(dirname "$file") 2>/dev/null ||
9960: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9961: X"$file" : 'X\(//\)[^/]' \| \
9962: X"$file" : 'X\(//\)$' \| \
9963: X"$file" : 'X\(/\)' \| \
9964: . : '\(.\)' 2>/dev/null ||
9965: echo X"$file" |
9966: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9967: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9968: /^X\(\/\/\)$/{ s//\1/; q; }
9969: /^X\(\/\).*/{ s//\1/; q; }
9970: s/.*/./; q'`
9971: { if $as_mkdir_p; then
9972: mkdir -p $dirpart/$fdir
9973: else
9974: as_dir=$dirpart/$fdir
9975: as_dirs=
9976: while test ! -d "$as_dir"; do
9977: as_dirs="$as_dir $as_dirs"
9978: as_dir=`(dirname "$as_dir") 2>/dev/null ||
9979: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9980: X"$as_dir" : 'X\(//\)[^/]' \| \
9981: X"$as_dir" : 'X\(//\)$' \| \
9982: X"$as_dir" : 'X\(/\)' \| \
9983: . : '\(.\)' 2>/dev/null ||
9984: echo X"$as_dir" |
9985: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9986: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9987: /^X\(\/\/\)$/{ s//\1/; q; }
9988: /^X\(\/\).*/{ s//\1/; q; }
9989: s/.*/./; q'`
9990: done
9991: test ! -n "$as_dirs" || mkdir $as_dirs
9992: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9993: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9994: { (exit 1); exit 1; }; }; }
1.1 parser 9995:
1.11 paf 9996: # echo "creating $dirpart/$file"
9997: echo '# dummy' > "$dirpart/$file"
9998: done
9999: done
10000: ;;
10001: esac
10002: done
10003: _ACEOF
1.1 parser 10004:
1.11 paf 10005: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 10006:
1.11 paf 10007: { (exit 0); exit 0; }
10008: _ACEOF
1.1 parser 10009: chmod +x $CONFIG_STATUS
1.11 paf 10010: ac_clean_files=$ac_clean_files_save
10011:
10012:
10013: # configure is writing to config.log, and then calls config.status.
10014: # config.status does its own redirection, appending to config.log.
10015: # Unfortunately, on DOS this fails, as config.log is still kept open
10016: # by configure, so config.status won't be able to write to it; its
10017: # output is simply discarded. So we exec the FD to /dev/null,
10018: # effectively closing config.log, so it can be properly (re)opened and
10019: # appended to by config.status. When coming back to configure, we
10020: # need to make the FD available again.
10021: if test "$no_create" != yes; then
10022: ac_cs_success=:
10023: ac_config_status_args=
10024: test "$silent" = yes &&
10025: ac_config_status_args="$ac_config_status_args --quiet"
10026: exec 5>/dev/null
10027: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10028: exec 5>>config.log
10029: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10030: # would make configure fail if this is the last instruction.
10031: $ac_cs_success || { (exit 1); exit 1; }
10032: fi
1.1 parser 10033:
1.11 paf 10034: #
10035: # CONFIG_SUBDIRS section.
10036: #
1.1 parser 10037: if test "$no_recursion" != yes; then
10038:
10039: # Remove --cache-file and --srcdir arguments so they do not pile up.
10040: ac_sub_configure_args=
10041: ac_prev=
10042: for ac_arg in $ac_configure_args; do
10043: if test -n "$ac_prev"; then
10044: ac_prev=
10045: continue
10046: fi
1.11 paf 10047: case $ac_arg in
1.1 parser 10048: -cache-file | --cache-file | --cache-fil | --cache-fi \
10049: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10050: ac_prev=cache_file ;;
10051: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.11 paf 10052: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10053: | --c=*)
10054: ;;
10055: --config-cache | -C)
1.1 parser 10056: ;;
10057: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10058: ac_prev=srcdir ;;
10059: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10060: ;;
1.11 paf 10061: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10062: ac_prev=prefix ;;
10063: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10064: ;;
1.1 parser 10065: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10066: esac
10067: done
10068:
1.11 paf 10069: # Always prepend --prefix to ensure using the same prefix
10070: # in subdir configurations.
10071: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
10072:
10073: ac_popdir=`pwd`
10074: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 10075:
10076: # Do not complain, so a configure script can configure whichever
10077: # parts of a large source tree are present.
1.11 paf 10078: test -d $srcdir/$ac_dir || continue
1.1 parser 10079:
1.11 paf 10080: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
10081: echo "$as_me: configuring in $ac_dir" >&6;}
10082: { if $as_mkdir_p; then
10083: mkdir -p "$ac_dir"
10084: else
10085: as_dir="$ac_dir"
10086: as_dirs=
10087: while test ! -d "$as_dir"; do
10088: as_dirs="$as_dir $as_dirs"
10089: as_dir=`(dirname "$as_dir") 2>/dev/null ||
10090: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10091: X"$as_dir" : 'X\(//\)[^/]' \| \
10092: X"$as_dir" : 'X\(//\)$' \| \
10093: X"$as_dir" : 'X\(/\)' \| \
10094: . : '\(.\)' 2>/dev/null ||
10095: echo X"$as_dir" |
10096: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10097: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10098: /^X\(\/\/\)$/{ s//\1/; q; }
10099: /^X\(\/\).*/{ s//\1/; q; }
10100: s/.*/./; q'`
10101: done
10102: test ! -n "$as_dirs" || mkdir $as_dirs
10103: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10104: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10105: { (exit 1); exit 1; }; }; }
10106:
10107: ac_builddir=.
10108:
10109: if test "$ac_dir" != .; then
10110: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10111: # A "../" for each directory in $ac_dir_suffix.
10112: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10113: else
10114: ac_dir_suffix= ac_top_builddir=
10115: fi
10116:
10117: case $srcdir in
10118: .) # No --srcdir option. We are building in place.
10119: ac_srcdir=.
10120: if test -z "$ac_top_builddir"; then
10121: ac_top_srcdir=.
10122: else
10123: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10124: fi ;;
10125: [\\/]* | ?:[\\/]* ) # Absolute path.
10126: ac_srcdir=$srcdir$ac_dir_suffix;
10127: ac_top_srcdir=$srcdir ;;
10128: *) # Relative path.
10129: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10130: ac_top_srcdir=$ac_top_builddir$srcdir ;;
10131: esac
10132: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10133: # absolute.
10134: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10135: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10136: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10137: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1.1 parser 10138:
10139:
1.11 paf 10140: cd $ac_dir
1.1 parser 10141:
10142: # Check for guested configure; otherwise get Cygnus style configure.
1.11 paf 10143: if test -f $ac_srcdir/configure.gnu; then
10144: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
10145: elif test -f $ac_srcdir/configure; then
10146: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
10147: elif test -f $ac_srcdir/configure.in; then
1.1 parser 10148: ac_sub_configure=$ac_configure
10149: else
1.11 paf 10150: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10151: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 10152: ac_sub_configure=
10153: fi
10154:
10155: # The recursion is here.
10156: if test -n "$ac_sub_configure"; then
10157: # Make the cache file name correct relative to the subdirectory.
1.11 paf 10158: case $cache_file in
10159: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 parser 10160: *) # Relative path.
1.11 paf 10161: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 parser 10162: esac
10163:
1.11 paf 10164: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10165: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 parser 10166: # The eval makes quoting arguments work.
1.11 paf 10167: eval $ac_sub_configure $ac_sub_configure_args \
10168: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
10169: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
10170: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10171: { (exit 1); exit 1; }; }
1.1 parser 10172: fi
10173:
10174: cd $ac_popdir
10175: done
10176: fi
10177:
E-mail: