Annotation of sql/pgsql/configure, revision 1.19
1.1 parser 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.16 paf 3: # Generated by GNU Autoconf 2.59.
1.1 parser 4: #
1.16 paf 5: # Copyright (C) 2003 Free Software Foundation, Inc.
1.1 parser 6: # This configure script is free software; the Free Software Foundation
7: # gives unlimited permission to copy, distribute and modify it.
1.10 paf 8: ## --------------------- ##
9: ## M4sh Initialization. ##
10: ## --------------------- ##
11:
12: # Be Bourne compatible
13: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14: emulate sh
15: NULLCMD=:
16: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17: # is contrary to our usage. Disable this feature.
18: alias -g '${1+"$@"}'='"$@"'
19: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20: set -o posix
21: fi
1.16 paf 22: DUALCASE=1; export DUALCASE # for MKS sh
1.10 paf 23:
24: # Support unset when possible.
1.16 paf 25: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.10 paf 26: as_unset=unset
27: else
28: as_unset=false
29: fi
30:
31:
32: # Work around bugs in pre-3.0 UWIN ksh.
33: $as_unset ENV MAIL MAILPATH
34: PS1='$ '
35: PS2='> '
36: PS4='+ '
37:
38: # NLS nuisances.
39: for as_var in \
40: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42: LC_TELEPHONE LC_TIME
43: do
1.16 paf 44: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.10 paf 45: eval $as_var=C; export $as_var
46: else
47: $as_unset $as_var
48: fi
49: done
50:
51: # Required to use basename.
52: if expr a : '\(a\)' >/dev/null 2>&1; then
53: as_expr=expr
54: else
55: as_expr=false
56: fi
57:
58: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59: as_basename=basename
60: else
61: as_basename=false
62: fi
63:
64:
65: # Name of the executable.
66: as_me=`$as_basename "$0" ||
67: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68: X"$0" : 'X\(//\)$' \| \
69: X"$0" : 'X\(/\)$' \| \
70: . : '\(.\)' 2>/dev/null ||
71: echo X/"$0" |
72: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73: /^X\/\(\/\/\)$/{ s//\1/; q; }
74: /^X\/\(\/\).*/{ s//\1/; q; }
75: s/.*/./; q'`
76:
77:
78: # PATH needs CR, and LINENO needs CR and PATH.
79: # Avoid depending upon Character Ranges.
80: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83: as_cr_digits='0123456789'
84: as_cr_alnum=$as_cr_Letters$as_cr_digits
85:
86: # The user is always right.
87: if test "${PATH_SEPARATOR+set}" != set; then
88: echo "#! /bin/sh" >conf$$.sh
89: echo "exit 0" >>conf$$.sh
90: chmod +x conf$$.sh
91: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92: PATH_SEPARATOR=';'
93: else
94: PATH_SEPARATOR=:
95: fi
96: rm -f conf$$.sh
97: fi
98:
99:
100: as_lineno_1=$LINENO
101: as_lineno_2=$LINENO
102: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103: test "x$as_lineno_1" != "x$as_lineno_2" &&
104: test "x$as_lineno_3" = "x$as_lineno_2" || {
105: # Find who we are. Look in the path if we contain no path at all
106: # relative or not.
107: case $0 in
108: *[\\/]* ) as_myself=$0 ;;
109: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110: for as_dir in $PATH
111: do
112: IFS=$as_save_IFS
113: test -z "$as_dir" && as_dir=.
114: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115: done
116:
117: ;;
118: esac
119: # We did not find ourselves, most probably we were run as `sh COMMAND'
120: # in which case we are not to be found in the path.
121: if test "x$as_myself" = x; then
122: as_myself=$0
123: fi
124: if test ! -f "$as_myself"; then
125: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126: { (exit 1); exit 1; }; }
127: fi
128: case $CONFIG_SHELL in
129: '')
130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132: do
133: IFS=$as_save_IFS
134: test -z "$as_dir" && as_dir=.
135: for as_base in sh bash ksh sh5; do
136: case $as_dir in
137: /*)
138: if ("$as_dir/$as_base" -c '
139: as_lineno_1=$LINENO
140: as_lineno_2=$LINENO
141: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142: test "x$as_lineno_1" != "x$as_lineno_2" &&
143: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146: CONFIG_SHELL=$as_dir/$as_base
147: export CONFIG_SHELL
148: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149: fi;;
150: esac
151: done
152: done
153: ;;
154: esac
155:
156: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157: # uniformly replaced by the line number. The first 'sed' inserts a
158: # line-number line before each line; the second 'sed' does the real
159: # work. The second script uses 'N' to pair each line-number line
160: # with the numbered line, and appends trailing '-' during
161: # substitution so that $LINENO is not a special case at line end.
162: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164: sed '=' <$as_myself |
165: sed '
166: N
167: s,$,-,
168: : loop
169: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170: t loop
171: s,-$,,
172: s,^['$as_cr_digits']*\n,,
173: ' >$as_me.lineno &&
174: chmod +x $as_me.lineno ||
175: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176: { (exit 1); exit 1; }; }
177:
178: # Don't try to exec as it changes $[0], causing all sort of problems
179: # (the dirname of $[0] is not the place where we might find the
180: # original and so on. Autoconf is especially sensible to this).
181: . ./$as_me.lineno
182: # Exit status is that of the last command.
183: exit
184: }
185:
186:
187: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188: *c*,-n*) ECHO_N= ECHO_C='
189: ' ECHO_T=' ' ;;
190: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192: esac
193:
194: if expr a : '\(a\)' >/dev/null 2>&1; then
195: as_expr=expr
196: else
197: as_expr=false
198: fi
199:
200: rm -f conf$$ conf$$.exe conf$$.file
201: echo >conf$$.file
202: if ln -s conf$$.file conf$$ 2>/dev/null; then
203: # We could just check for DJGPP; but this test a) works b) is more generic
204: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205: if test -f conf$$.exe; then
206: # Don't use ln at all; we don't have any links
207: as_ln_s='cp -p'
208: else
209: as_ln_s='ln -s'
210: fi
211: elif ln conf$$.file conf$$ 2>/dev/null; then
212: as_ln_s=ln
213: else
214: as_ln_s='cp -p'
215: fi
216: rm -f conf$$ conf$$.exe conf$$.file
217:
218: if mkdir -p . 2>/dev/null; then
219: as_mkdir_p=:
220: else
1.16 paf 221: test -d ./-p && rmdir ./-p
1.10 paf 222: as_mkdir_p=false
223: fi
224:
225: as_executable_p="test -f"
226:
227: # Sed expression to map a string onto a valid CPP name.
1.16 paf 228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.10 paf 229:
230: # Sed expression to map a string onto a valid variable name.
1.16 paf 231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.10 paf 232:
233:
234: # IFS
235: # We need space, tab and new line, in precisely that order.
236: as_nl='
237: '
238: IFS=" $as_nl"
239:
240: # CDPATH.
241: $as_unset CDPATH
242:
243:
244: # Find the correct PATH separator. Usually this is `:', but
245: # DJGPP uses `;' like DOS.
246: if test "X${PATH_SEPARATOR+set}" != Xset; then
247: UNAME=${UNAME-`uname 2>/dev/null`}
248: case X$UNAME in
249: *-DOS) lt_cv_sys_path_separator=';' ;;
250: *) lt_cv_sys_path_separator=':' ;;
251: esac
252: PATH_SEPARATOR=$lt_cv_sys_path_separator
253: fi
254:
255:
256: # Check that we are running under the correct shell.
257: SHELL=${CONFIG_SHELL-/bin/sh}
258:
259: case X$ECHO in
260: X*--fallback-echo)
261: # Remove one level of quotation (which was required for Make).
262: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
263: ;;
264: esac
265:
266: echo=${ECHO-echo}
267: if test "X$1" = X--no-reexec; then
268: # Discard the --no-reexec flag, and continue.
269: shift
270: elif test "X$1" = X--fallback-echo; then
271: # Avoid inline document here, it may be left over
272: :
273: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274: # Yippee, $echo works!
275: :
276: else
277: # Restart under the correct shell.
278: exec $SHELL "$0" --no-reexec ${1+"$@"}
279: fi
280:
281: if test "X$1" = X--fallback-echo; then
282: # used as fallback echo
283: shift
284: cat <<EOF
285:
286: EOF
287: exit 0
288: fi
289:
290: # The HP-UX ksh and POSIX shell print the target directory to stdout
291: # if CDPATH is set.
292: if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
293:
294: if test -z "$ECHO"; then
295: if test "X${echo_test_string+set}" != Xset; then
296: # find a string as large as possible, as long as the shell can cope with it
297: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299: if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300: echo_test_string="`eval $cmd`" &&
301: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
302: then
303: break
304: fi
305: done
306: fi
307:
308: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310: test "X$echo_testing_string" = "X$echo_test_string"; then
311: :
312: else
313: # The Solaris, AIX, and Digital Unix default echo programs unquote
314: # backslashes. This makes it impossible to quote backslashes using
315: # echo "$something" | sed 's/\\/\\\\/g'
316: #
317: # So, first we look for a working echo in the user's PATH.
318:
319: IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320: for dir in $PATH /usr/ucb; do
321: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324: test "X$echo_testing_string" = "X$echo_test_string"; then
325: echo="$dir/echo"
326: break
327: fi
328: done
329: IFS="$save_ifs"
330:
331: if test "X$echo" = Xecho; then
332: # We didn't find a better echo, so look for alternatives.
333: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335: test "X$echo_testing_string" = "X$echo_test_string"; then
336: # This shell has a builtin print -r that does the trick.
337: echo='print -r'
338: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339: test "X$CONFIG_SHELL" != X/bin/ksh; then
340: # If we have ksh, try running configure again with it.
341: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342: export ORIGINAL_CONFIG_SHELL
343: CONFIG_SHELL=/bin/ksh
344: export CONFIG_SHELL
345: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
346: else
347: # Try using printf.
348: echo='printf %s\n'
349: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351: test "X$echo_testing_string" = "X$echo_test_string"; then
352: # Cool, printf works
353: :
354: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355: test "X$echo_testing_string" = 'X\t' &&
356: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357: test "X$echo_testing_string" = "X$echo_test_string"; then
358: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
359: export CONFIG_SHELL
360: SHELL="$CONFIG_SHELL"
361: export SHELL
362: echo="$CONFIG_SHELL $0 --fallback-echo"
363: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364: test "X$echo_testing_string" = 'X\t' &&
365: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366: test "X$echo_testing_string" = "X$echo_test_string"; then
367: echo="$CONFIG_SHELL $0 --fallback-echo"
368: else
369: # maybe with a smaller string...
370: prev=:
371:
372: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374: then
375: break
376: fi
377: prev="$cmd"
378: done
379:
380: if test "$prev" != 'sed 50q "$0"'; then
381: echo_test_string=`eval $prev`
382: export echo_test_string
383: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
384: else
385: # Oops. We lost completely, so just stick with echo.
386: echo=echo
387: fi
388: fi
389: fi
390: fi
391: fi
392: fi
393:
394: # Copy echo and quote the copy suitably for passing to libtool from
395: # the Makefile, instead of quoting the original, which is used later.
396: ECHO=$echo
397: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399: fi
400:
401:
402:
403: # Name of the host.
404: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405: # so uname gets run too.
406: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1.1 parser 407:
1.10 paf 408: exec 6>&1
409:
410: #
411: # Initializations.
412: #
1.1 parser 413: ac_default_prefix=/usr/local
1.10 paf 414: ac_config_libobj_dir=.
415: cross_compiling=no
416: subdirs=
417: MFLAGS=
418: MAKEFLAGS=
419: SHELL=${CONFIG_SHELL-/bin/sh}
420:
421: # Maximum number of lines to put in a shell here document.
422: # This variable seems obsolete. It should probably be removed, and
423: # only ac_max_sed_lines should be used.
424: : ${ac_max_here_lines=38}
425:
426: # Identity of this package.
427: PACKAGE_NAME=
428: PACKAGE_TARNAME=
429: PACKAGE_VERSION=
430: PACKAGE_STRING=
431: PACKAGE_BUGREPORT=
432:
433: ac_unique_file="parser3pgsql.C"
434: # Factoring default headers for most tests.
435: ac_includes_default="\
436: #include <stdio.h>
437: #if HAVE_SYS_TYPES_H
438: # include <sys/types.h>
439: #endif
440: #if HAVE_SYS_STAT_H
441: # include <sys/stat.h>
442: #endif
443: #if STDC_HEADERS
444: # include <stdlib.h>
445: # include <stddef.h>
446: #else
447: # if HAVE_STDLIB_H
448: # include <stdlib.h>
449: # endif
450: #endif
451: #if HAVE_STRING_H
452: # if !STDC_HEADERS && HAVE_MEMORY_H
453: # include <memory.h>
454: # endif
455: # include <string.h>
456: #endif
457: #if HAVE_STRINGS_H
458: # include <strings.h>
459: #endif
460: #if HAVE_INTTYPES_H
461: # include <inttypes.h>
462: #else
463: # if HAVE_STDINT_H
464: # include <stdint.h>
465: # endif
466: #endif
467: #if HAVE_UNISTD_H
468: # include <unistd.h>
469: #endif"
470:
471: ac_subdirs_all="$ac_subdirs_all libltdl"
1.16 paf 472: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar PGSQL_INC CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE INCLTDL LIBLTDL LIBADD_DL build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL subdirs LIBOBJS LTLIBOBJS'
1.10 paf 473: ac_subst_files=''
1.1 parser 474:
475: # Initialize some variables set by options.
1.10 paf 476: ac_init_help=
477: ac_init_version=false
1.1 parser 478: # The variables have the same names as the options, with
479: # dashes changed to underlines.
1.10 paf 480: cache_file=/dev/null
1.1 parser 481: exec_prefix=NONE
482: no_create=
483: no_recursion=
484: prefix=NONE
485: program_prefix=NONE
486: program_suffix=NONE
487: program_transform_name=s,x,x,
488: silent=
489: site=
490: srcdir=
491: verbose=
492: x_includes=NONE
493: x_libraries=NONE
1.10 paf 494:
495: # Installation directory options.
496: # These are left unexpanded so users can "make install exec_prefix=/foo"
497: # and all the variables that are supposed to be based on exec_prefix
498: # by default will actually change.
499: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1 parser 500: bindir='${exec_prefix}/bin'
501: sbindir='${exec_prefix}/sbin'
502: libexecdir='${exec_prefix}/libexec'
503: datadir='${prefix}/share'
504: sysconfdir='${prefix}/etc'
505: sharedstatedir='${prefix}/com'
506: localstatedir='${prefix}/var'
507: libdir='${exec_prefix}/lib'
508: includedir='${prefix}/include'
509: oldincludedir='/usr/include'
510: infodir='${prefix}/info'
511: mandir='${prefix}/man'
512:
513: ac_prev=
514: for ac_option
515: do
516: # If the previous option needs an argument, assign it.
517: if test -n "$ac_prev"; then
518: eval "$ac_prev=\$ac_option"
519: ac_prev=
520: continue
521: fi
522:
1.10 paf 523: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 parser 524:
525: # Accept the important Cygnus configure options, so we can diagnose typos.
526:
1.10 paf 527: case $ac_option in
1.1 parser 528:
529: -bindir | --bindir | --bindi | --bind | --bin | --bi)
530: ac_prev=bindir ;;
531: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.10 paf 532: bindir=$ac_optarg ;;
1.1 parser 533:
534: -build | --build | --buil | --bui | --bu)
1.10 paf 535: ac_prev=build_alias ;;
1.1 parser 536: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.10 paf 537: build_alias=$ac_optarg ;;
1.1 parser 538:
539: -cache-file | --cache-file | --cache-fil | --cache-fi \
540: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
541: ac_prev=cache_file ;;
542: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
543: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.10 paf 544: cache_file=$ac_optarg ;;
545:
546: --config-cache | -C)
547: cache_file=config.cache ;;
1.1 parser 548:
549: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550: ac_prev=datadir ;;
551: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552: | --da=*)
1.10 paf 553: datadir=$ac_optarg ;;
1.1 parser 554:
555: -disable-* | --disable-*)
1.10 paf 556: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 parser 557: # Reject names that are not valid shell variable names.
1.10 paf 558: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560: { (exit 1); exit 1; }; }
561: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562: eval "enable_$ac_feature=no" ;;
1.1 parser 563:
564: -enable-* | --enable-*)
1.10 paf 565: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 parser 566: # Reject names that are not valid shell variable names.
1.10 paf 567: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
569: { (exit 1); exit 1; }; }
570: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571: case $ac_option in
572: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 parser 573: *) ac_optarg=yes ;;
574: esac
1.10 paf 575: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 parser 576:
577: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
578: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
579: | --exec | --exe | --ex)
580: ac_prev=exec_prefix ;;
581: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
582: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
583: | --exec=* | --exe=* | --ex=*)
1.10 paf 584: exec_prefix=$ac_optarg ;;
1.1 parser 585:
586: -gas | --gas | --ga | --g)
587: # Obsolete; use --with-gas.
588: with_gas=yes ;;
589:
1.10 paf 590: -help | --help | --hel | --he | -h)
591: ac_init_help=long ;;
592: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
593: ac_init_help=recursive ;;
594: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
595: ac_init_help=short ;;
1.1 parser 596:
597: -host | --host | --hos | --ho)
1.10 paf 598: ac_prev=host_alias ;;
1.1 parser 599: -host=* | --host=* | --hos=* | --ho=*)
1.10 paf 600: host_alias=$ac_optarg ;;
1.1 parser 601:
602: -includedir | --includedir | --includedi | --included | --include \
603: | --includ | --inclu | --incl | --inc)
604: ac_prev=includedir ;;
605: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
606: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.10 paf 607: includedir=$ac_optarg ;;
1.1 parser 608:
609: -infodir | --infodir | --infodi | --infod | --info | --inf)
610: ac_prev=infodir ;;
611: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.10 paf 612: infodir=$ac_optarg ;;
1.1 parser 613:
614: -libdir | --libdir | --libdi | --libd)
615: ac_prev=libdir ;;
616: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.10 paf 617: libdir=$ac_optarg ;;
1.1 parser 618:
619: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
620: | --libexe | --libex | --libe)
621: ac_prev=libexecdir ;;
622: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
623: | --libexe=* | --libex=* | --libe=*)
1.10 paf 624: libexecdir=$ac_optarg ;;
1.1 parser 625:
626: -localstatedir | --localstatedir | --localstatedi | --localstated \
627: | --localstate | --localstat | --localsta | --localst \
628: | --locals | --local | --loca | --loc | --lo)
629: ac_prev=localstatedir ;;
630: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
632: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.10 paf 633: localstatedir=$ac_optarg ;;
1.1 parser 634:
635: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636: ac_prev=mandir ;;
637: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.10 paf 638: mandir=$ac_optarg ;;
1.1 parser 639:
640: -nfp | --nfp | --nf)
641: # Obsolete; use --without-fp.
642: with_fp=no ;;
643:
644: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.10 paf 645: | --no-cr | --no-c | -n)
1.1 parser 646: no_create=yes ;;
647:
648: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
649: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650: no_recursion=yes ;;
651:
652: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
653: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
654: | --oldin | --oldi | --old | --ol | --o)
655: ac_prev=oldincludedir ;;
656: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
657: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
658: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.10 paf 659: oldincludedir=$ac_optarg ;;
1.1 parser 660:
661: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662: ac_prev=prefix ;;
663: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.10 paf 664: prefix=$ac_optarg ;;
1.1 parser 665:
666: -program-prefix | --program-prefix | --program-prefi | --program-pref \
667: | --program-pre | --program-pr | --program-p)
668: ac_prev=program_prefix ;;
669: -program-prefix=* | --program-prefix=* | --program-prefi=* \
670: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.10 paf 671: program_prefix=$ac_optarg ;;
1.1 parser 672:
673: -program-suffix | --program-suffix | --program-suffi | --program-suff \
674: | --program-suf | --program-su | --program-s)
675: ac_prev=program_suffix ;;
676: -program-suffix=* | --program-suffix=* | --program-suffi=* \
677: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.10 paf 678: program_suffix=$ac_optarg ;;
1.1 parser 679:
680: -program-transform-name | --program-transform-name \
681: | --program-transform-nam | --program-transform-na \
682: | --program-transform-n | --program-transform- \
683: | --program-transform | --program-transfor \
684: | --program-transfo | --program-transf \
685: | --program-trans | --program-tran \
686: | --progr-tra | --program-tr | --program-t)
687: ac_prev=program_transform_name ;;
688: -program-transform-name=* | --program-transform-name=* \
689: | --program-transform-nam=* | --program-transform-na=* \
690: | --program-transform-n=* | --program-transform-=* \
691: | --program-transform=* | --program-transfor=* \
692: | --program-transfo=* | --program-transf=* \
693: | --program-trans=* | --program-tran=* \
694: | --progr-tra=* | --program-tr=* | --program-t=*)
1.10 paf 695: program_transform_name=$ac_optarg ;;
1.1 parser 696:
697: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
698: | -silent | --silent | --silen | --sile | --sil)
699: silent=yes ;;
700:
701: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702: ac_prev=sbindir ;;
703: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704: | --sbi=* | --sb=*)
1.10 paf 705: sbindir=$ac_optarg ;;
1.1 parser 706:
707: -sharedstatedir | --sharedstatedir | --sharedstatedi \
708: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
709: | --sharedst | --shareds | --shared | --share | --shar \
710: | --sha | --sh)
711: ac_prev=sharedstatedir ;;
712: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
713: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
714: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715: | --sha=* | --sh=*)
1.10 paf 716: sharedstatedir=$ac_optarg ;;
1.1 parser 717:
718: -site | --site | --sit)
719: ac_prev=site ;;
720: -site=* | --site=* | --sit=*)
1.10 paf 721: site=$ac_optarg ;;
1.1 parser 722:
723: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724: ac_prev=srcdir ;;
725: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.10 paf 726: srcdir=$ac_optarg ;;
1.1 parser 727:
728: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
729: | --syscon | --sysco | --sysc | --sys | --sy)
730: ac_prev=sysconfdir ;;
731: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
732: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.10 paf 733: sysconfdir=$ac_optarg ;;
1.1 parser 734:
735: -target | --target | --targe | --targ | --tar | --ta | --t)
1.10 paf 736: ac_prev=target_alias ;;
1.1 parser 737: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.10 paf 738: target_alias=$ac_optarg ;;
1.1 parser 739:
740: -v | -verbose | --verbose | --verbos | --verbo | --verb)
741: verbose=yes ;;
742:
1.10 paf 743: -version | --version | --versio | --versi | --vers | -V)
744: ac_init_version=: ;;
1.1 parser 745:
746: -with-* | --with-*)
1.10 paf 747: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 parser 748: # Reject names that are not valid shell variable names.
1.10 paf 749: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
750: { echo "$as_me: error: invalid package name: $ac_package" >&2
751: { (exit 1); exit 1; }; }
1.1 parser 752: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.10 paf 753: case $ac_option in
754: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 parser 755: *) ac_optarg=yes ;;
756: esac
1.10 paf 757: eval "with_$ac_package='$ac_optarg'" ;;
1.1 parser 758:
759: -without-* | --without-*)
1.10 paf 760: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 parser 761: # Reject names that are not valid shell variable names.
1.10 paf 762: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
763: { echo "$as_me: error: invalid package name: $ac_package" >&2
764: { (exit 1); exit 1; }; }
765: ac_package=`echo $ac_package | sed 's/-/_/g'`
766: eval "with_$ac_package=no" ;;
1.1 parser 767:
768: --x)
769: # Obsolete; use --with-x.
770: with_x=yes ;;
771:
772: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
773: | --x-incl | --x-inc | --x-in | --x-i)
774: ac_prev=x_includes ;;
775: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
776: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.10 paf 777: x_includes=$ac_optarg ;;
1.1 parser 778:
779: -x-libraries | --x-libraries | --x-librarie | --x-librari \
780: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
781: ac_prev=x_libraries ;;
782: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
783: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.10 paf 784: x_libraries=$ac_optarg ;;
1.1 parser 785:
1.10 paf 786: -*) { echo "$as_me: error: unrecognized option: $ac_option
787: Try \`$0 --help' for more information." >&2
788: { (exit 1); exit 1; }; }
1.1 parser 789: ;;
790:
1.10 paf 791: *=*)
792: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
793: # Reject names that are not valid shell variable names.
794: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
795: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
796: { (exit 1); exit 1; }; }
797: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
798: eval "$ac_envvar='$ac_optarg'"
799: export $ac_envvar ;;
800:
1.1 parser 801: *)
1.10 paf 802: # FIXME: should be removed in autoconf 3.0.
803: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
804: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
806: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 parser 807: ;;
808:
809: esac
810: done
811:
812: if test -n "$ac_prev"; then
1.10 paf 813: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
814: { echo "$as_me: error: missing argument to $ac_option" >&2
815: { (exit 1); exit 1; }; }
1.1 parser 816: fi
817:
1.10 paf 818: # Be sure to have absolute paths.
819: for ac_var in exec_prefix prefix
820: do
821: eval ac_val=$`echo $ac_var`
822: case $ac_val in
823: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
824: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825: { (exit 1); exit 1; }; };;
826: esac
827: done
1.1 parser 828:
1.10 paf 829: # Be sure to have absolute paths.
830: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.16 paf 831: localstatedir libdir includedir oldincludedir infodir mandir
1.1 parser 832: do
1.10 paf 833: eval ac_val=$`echo $ac_var`
834: case $ac_val in
835: [\\/$]* | ?:[\\/]* ) ;;
836: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
837: { (exit 1); exit 1; }; };;
1.1 parser 838: esac
839: done
840:
1.10 paf 841: # There might be people who depend on the old broken behavior: `$host'
842: # used to hold the argument of --host etc.
843: # FIXME: To remove some day.
844: build=$build_alias
845: host=$host_alias
846: target=$target_alias
847:
848: # FIXME: To remove some day.
849: if test "x$host_alias" != x; then
850: if test "x$build_alias" = x; then
851: cross_compiling=maybe
852: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
853: If a cross compiler is detected then cross compile mode will be used." >&2
854: elif test "x$build_alias" != "x$host_alias"; then
855: cross_compiling=yes
856: fi
857: fi
858:
859: ac_tool_prefix=
860: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 parser 861:
1.10 paf 862: test "$silent" = yes && exec 6>/dev/null
1.1 parser 863:
864:
865: # Find the source files, if location was not specified.
866: if test -z "$srcdir"; then
867: ac_srcdir_defaulted=yes
868: # Try the directory containing this script, then its parent.
1.10 paf 869: ac_confdir=`(dirname "$0") 2>/dev/null ||
870: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 871: X"$0" : 'X\(//\)[^/]' \| \
872: X"$0" : 'X\(//\)$' \| \
873: X"$0" : 'X\(/\)' \| \
874: . : '\(.\)' 2>/dev/null ||
1.10 paf 875: echo X"$0" |
876: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
877: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
878: /^X\(\/\/\)$/{ s//\1/; q; }
879: /^X\(\/\).*/{ s//\1/; q; }
880: s/.*/./; q'`
1.1 parser 881: srcdir=$ac_confdir
882: if test ! -r $srcdir/$ac_unique_file; then
883: srcdir=..
884: fi
885: else
886: ac_srcdir_defaulted=no
887: fi
888: if test ! -r $srcdir/$ac_unique_file; then
889: if test "$ac_srcdir_defaulted" = yes; then
1.10 paf 890: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
891: { (exit 1); exit 1; }; }
1.1 parser 892: else
1.10 paf 893: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
894: { (exit 1); exit 1; }; }
1.1 parser 895: fi
896: fi
1.10 paf 897: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
898: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
899: { (exit 1); exit 1; }; }
900: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
901: ac_env_build_alias_set=${build_alias+set}
902: ac_env_build_alias_value=$build_alias
903: ac_cv_env_build_alias_set=${build_alias+set}
904: ac_cv_env_build_alias_value=$build_alias
905: ac_env_host_alias_set=${host_alias+set}
906: ac_env_host_alias_value=$host_alias
907: ac_cv_env_host_alias_set=${host_alias+set}
908: ac_cv_env_host_alias_value=$host_alias
909: ac_env_target_alias_set=${target_alias+set}
910: ac_env_target_alias_value=$target_alias
911: ac_cv_env_target_alias_set=${target_alias+set}
912: ac_cv_env_target_alias_value=$target_alias
913: ac_env_CXX_set=${CXX+set}
914: ac_env_CXX_value=$CXX
915: ac_cv_env_CXX_set=${CXX+set}
916: ac_cv_env_CXX_value=$CXX
917: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
918: ac_env_CXXFLAGS_value=$CXXFLAGS
919: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
920: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
921: ac_env_LDFLAGS_set=${LDFLAGS+set}
922: ac_env_LDFLAGS_value=$LDFLAGS
923: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
924: ac_cv_env_LDFLAGS_value=$LDFLAGS
925: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
926: ac_env_CPPFLAGS_value=$CPPFLAGS
927: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
928: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
929: ac_env_CC_set=${CC+set}
930: ac_env_CC_value=$CC
931: ac_cv_env_CC_set=${CC+set}
932: ac_cv_env_CC_value=$CC
933: ac_env_CFLAGS_set=${CFLAGS+set}
934: ac_env_CFLAGS_value=$CFLAGS
935: ac_cv_env_CFLAGS_set=${CFLAGS+set}
936: ac_cv_env_CFLAGS_value=$CFLAGS
1.15 paf 937: ac_env_CPP_set=${CPP+set}
938: ac_env_CPP_value=$CPP
939: ac_cv_env_CPP_set=${CPP+set}
940: ac_cv_env_CPP_value=$CPP
1.10 paf 941:
942: #
943: # Report the --help message.
944: #
945: if test "$ac_init_help" = "long"; then
946: # Omit some internal or obsolete options to make the list less imposing.
947: # This message is too long to be a string in the A/UX 3.1 sh.
948: cat <<_ACEOF
949: \`configure' configures this package to adapt to many kinds of systems.
950:
951: Usage: $0 [OPTION]... [VAR=VALUE]...
952:
953: To assign environment variables (e.g., CC, CFLAGS...), specify them as
954: VAR=VALUE. See below for descriptions of some of the useful variables.
955:
956: Defaults for the options are specified in brackets.
957:
958: Configuration:
959: -h, --help display this help and exit
960: --help=short display options specific to this package
961: --help=recursive display the short help of all the included packages
962: -V, --version display version information and exit
963: -q, --quiet, --silent do not print \`checking...' messages
964: --cache-file=FILE cache test results in FILE [disabled]
965: -C, --config-cache alias for \`--cache-file=config.cache'
966: -n, --no-create do not create output files
967: --srcdir=DIR find the sources in DIR [configure dir or \`..']
968:
969: _ACEOF
970:
971: cat <<_ACEOF
972: Installation directories:
973: --prefix=PREFIX install architecture-independent files in PREFIX
1.16 paf 974: [$ac_default_prefix]
1.10 paf 975: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.16 paf 976: [PREFIX]
1.10 paf 977:
978: By default, \`make install' will install all the files in
979: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
980: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
981: for instance \`--prefix=\$HOME'.
982:
983: For better control, use the options below.
984:
985: Fine tuning of the installation directories:
986: --bindir=DIR user executables [EPREFIX/bin]
987: --sbindir=DIR system admin executables [EPREFIX/sbin]
988: --libexecdir=DIR program executables [EPREFIX/libexec]
989: --datadir=DIR read-only architecture-independent data [PREFIX/share]
990: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
991: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
992: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
993: --libdir=DIR object code libraries [EPREFIX/lib]
994: --includedir=DIR C header files [PREFIX/include]
995: --oldincludedir=DIR C header files for non-gcc [/usr/include]
996: --infodir=DIR info documentation [PREFIX/info]
997: --mandir=DIR man documentation [PREFIX/man]
998: _ACEOF
999:
1000: cat <<\_ACEOF
1001:
1002: Program names:
1003: --program-prefix=PREFIX prepend PREFIX to installed program names
1004: --program-suffix=SUFFIX append SUFFIX to installed program names
1005: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1006:
1007: System types:
1008: --build=BUILD configure for building on BUILD [guessed]
1009: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1010: _ACEOF
1011: fi
1012:
1013: if test -n "$ac_init_help"; then
1014:
1015: cat <<\_ACEOF
1016:
1017: Optional Features:
1018: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1019: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.16 paf 1020: --disable-dependency-tracking speeds up one-time build
1021: --enable-dependency-tracking do not reject slow dependency extractors
1.10 paf 1022: --enable-static=PKGS build static libraries default=no
1023: --enable-shared=PKGS build shared libraries default=yes
1024: --enable-fast-install=PKGS optimize for fast installation default=yes
1025: --disable-libtool-lock avoid locking (might break parallel builds)
1026:
1027: Optional Packages:
1028: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1029: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1030: --with-pgsql-inc=DIR DIR is the PgSQL includes directory
1031: --with-gnu-ld assume the C compiler uses GNU ld default=no
1032: --with-pic try to use only PIC/non-PIC objects default=use both
1033:
1034: Some influential environment variables:
1035: CXX C++ compiler command
1036: CXXFLAGS C++ compiler flags
1037: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1038: nonstandard directory <lib dir>
1039: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1040: headers in a nonstandard directory <include dir>
1041: CC C compiler command
1042: CFLAGS C compiler flags
1.15 paf 1043: CPP C preprocessor
1.10 paf 1044:
1045: Use these variables to override the choices made by `configure' or to help
1046: it to find libraries and programs with nonstandard names/locations.
1047:
1048: _ACEOF
1049: fi
1050:
1051: if test "$ac_init_help" = "recursive"; then
1052: # If there are subdirs, report their specific --help.
1053: ac_popdir=`pwd`
1054: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1055: test -d $ac_dir || continue
1056: ac_builddir=.
1057:
1058: if test "$ac_dir" != .; then
1059: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1060: # A "../" for each directory in $ac_dir_suffix.
1061: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1062: else
1063: ac_dir_suffix= ac_top_builddir=
1064: fi
1065:
1066: case $srcdir in
1067: .) # No --srcdir option. We are building in place.
1068: ac_srcdir=.
1069: if test -z "$ac_top_builddir"; then
1070: ac_top_srcdir=.
1071: else
1072: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1073: fi ;;
1074: [\\/]* | ?:[\\/]* ) # Absolute path.
1075: ac_srcdir=$srcdir$ac_dir_suffix;
1076: ac_top_srcdir=$srcdir ;;
1077: *) # Relative path.
1078: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1079: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1080: esac
1.16 paf 1081:
1082: # Do not use `cd foo && pwd` to compute absolute paths, because
1083: # the directories may not exist.
1084: case `pwd` in
1085: .) ac_abs_builddir="$ac_dir";;
1086: *)
1087: case "$ac_dir" in
1088: .) ac_abs_builddir=`pwd`;;
1089: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1090: *) ac_abs_builddir=`pwd`/"$ac_dir";;
1091: esac;;
1092: esac
1093: case $ac_abs_builddir in
1094: .) ac_abs_top_builddir=${ac_top_builddir}.;;
1095: *)
1096: case ${ac_top_builddir}. in
1097: .) ac_abs_top_builddir=$ac_abs_builddir;;
1098: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1099: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1100: esac;;
1101: esac
1102: case $ac_abs_builddir in
1103: .) ac_abs_srcdir=$ac_srcdir;;
1104: *)
1105: case $ac_srcdir in
1106: .) ac_abs_srcdir=$ac_abs_builddir;;
1107: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1108: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1109: esac;;
1110: esac
1111: case $ac_abs_builddir in
1112: .) ac_abs_top_srcdir=$ac_top_srcdir;;
1113: *)
1114: case $ac_top_srcdir in
1115: .) ac_abs_top_srcdir=$ac_abs_builddir;;
1116: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1117: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1118: esac;;
1119: esac
1.10 paf 1120:
1121: cd $ac_dir
1122: # Check for guested configure; otherwise get Cygnus style configure.
1123: if test -f $ac_srcdir/configure.gnu; then
1124: echo
1125: $SHELL $ac_srcdir/configure.gnu --help=recursive
1126: elif test -f $ac_srcdir/configure; then
1127: echo
1128: $SHELL $ac_srcdir/configure --help=recursive
1129: elif test -f $ac_srcdir/configure.ac ||
1.16 paf 1130: test -f $ac_srcdir/configure.in; then
1.10 paf 1131: echo
1132: $ac_configure --help
1133: else
1134: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1135: fi
1136: cd $ac_popdir
1137: done
1138: fi
1.1 parser 1139:
1.10 paf 1140: test -n "$ac_init_help" && exit 0
1141: if $ac_init_version; then
1142: cat <<\_ACEOF
1143:
1.16 paf 1144: Copyright (C) 2003 Free Software Foundation, Inc.
1.10 paf 1145: This configure script is free software; the Free Software Foundation
1146: gives unlimited permission to copy, distribute and modify it.
1147: _ACEOF
1148: exit 0
1149: fi
1150: exec 5>config.log
1151: cat >&5 <<_ACEOF
1152: This file contains any messages produced by compilers while
1153: running configure, to aid debugging if configure makes a mistake.
1154:
1155: It was created by $as_me, which was
1.16 paf 1156: generated by GNU Autoconf 2.59. Invocation command line was
1.10 paf 1157:
1158: $ $0 $@
1159:
1160: _ACEOF
1161: {
1162: cat <<_ASUNAME
1163: ## --------- ##
1164: ## Platform. ##
1165: ## --------- ##
1166:
1167: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1168: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1169: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1170: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1171: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1172:
1173: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1174: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1175:
1176: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1177: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1178: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1179: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1180: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1181: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1182: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1183:
1184: _ASUNAME
1185:
1186: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1187: for as_dir in $PATH
1188: do
1189: IFS=$as_save_IFS
1190: test -z "$as_dir" && as_dir=.
1191: echo "PATH: $as_dir"
1192: done
1193:
1194: } >&5
1195:
1196: cat >&5 <<_ACEOF
1197:
1198:
1199: ## ----------- ##
1200: ## Core tests. ##
1201: ## ----------- ##
1202:
1203: _ACEOF
1204:
1205:
1206: # Keep a trace of the command line.
1207: # Strip out --no-create and --no-recursion so they do not pile up.
1208: # Strip out --silent because we don't want to record it for future runs.
1209: # Also quote any args containing shell meta-characters.
1210: # Make two passes to allow for proper duplicate-argument suppression.
1211: ac_configure_args=
1212: ac_configure_args0=
1213: ac_configure_args1=
1214: ac_sep=
1215: ac_must_keep_next=false
1216: for ac_pass in 1 2
1217: do
1218: for ac_arg
1219: do
1220: case $ac_arg in
1221: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1222: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223: | -silent | --silent | --silen | --sile | --sil)
1224: continue ;;
1225: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1227: esac
1228: case $ac_pass in
1229: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1230: 2)
1231: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1232: if test $ac_must_keep_next = true; then
1.16 paf 1233: ac_must_keep_next=false # Got value, back to normal.
1.10 paf 1234: else
1.16 paf 1235: case $ac_arg in
1236: *=* | --config-cache | -C | -disable-* | --disable-* \
1237: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1238: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1239: | -with-* | --with-* | -without-* | --without-* | --x)
1240: case "$ac_configure_args0 " in
1241: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1242: esac
1243: ;;
1244: -* ) ac_must_keep_next=true ;;
1245: esac
1.10 paf 1246: fi
1247: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1248: # Get rid of the leading space.
1249: ac_sep=" "
1250: ;;
1251: esac
1252: done
1253: done
1254: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1255: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1256:
1257: # When interrupted or exit'd, cleanup temporary files, and complete
1258: # config.log. We remove comments because anyway the quotes in there
1259: # would cause problems or look ugly.
1260: # WARNING: Be sure not to use single quotes in there, as some shells,
1261: # such as our DU 5.0 friend, will then `close' the trap.
1262: trap 'exit_status=$?
1263: # Save into config.log some information that might help in debugging.
1264: {
1265: echo
1266:
1267: cat <<\_ASBOX
1268: ## ---------------- ##
1269: ## Cache variables. ##
1270: ## ---------------- ##
1271: _ASBOX
1272: echo
1273: # The following way of writing the cache mishandles newlines in values,
1274: {
1275: (set) 2>&1 |
1276: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1277: *ac_space=\ *)
1278: sed -n \
1.16 paf 1279: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1280: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.10 paf 1281: ;;
1282: *)
1283: sed -n \
1.16 paf 1284: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.10 paf 1285: ;;
1286: esac;
1287: }
1288: echo
1289:
1290: cat <<\_ASBOX
1291: ## ----------------- ##
1292: ## Output variables. ##
1293: ## ----------------- ##
1294: _ASBOX
1295: echo
1296: for ac_var in $ac_subst_vars
1297: do
1298: eval ac_val=$`echo $ac_var`
1299: echo "$ac_var='"'"'$ac_val'"'"'"
1300: done | sort
1301: echo
1302:
1303: if test -n "$ac_subst_files"; then
1304: cat <<\_ASBOX
1305: ## ------------- ##
1306: ## Output files. ##
1307: ## ------------- ##
1308: _ASBOX
1309: echo
1310: for ac_var in $ac_subst_files
1311: do
1312: eval ac_val=$`echo $ac_var`
1.16 paf 1313: echo "$ac_var='"'"'$ac_val'"'"'"
1.10 paf 1314: done | sort
1315: echo
1316: fi
1317:
1318: if test -s confdefs.h; then
1319: cat <<\_ASBOX
1320: ## ----------- ##
1321: ## confdefs.h. ##
1322: ## ----------- ##
1323: _ASBOX
1324: echo
1325: sed "/^$/d" confdefs.h | sort
1326: echo
1327: fi
1328: test "$ac_signal" != 0 &&
1329: echo "$as_me: caught signal $ac_signal"
1330: echo "$as_me: exit $exit_status"
1331: } >&5
1.16 paf 1332: rm -f core *.core &&
1.10 paf 1333: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1334: exit $exit_status
1335: ' 0
1336: for ac_signal in 1 2 13 15; do
1337: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1338: done
1339: ac_signal=0
1340:
1341: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1342: rm -rf conftest* confdefs.h
1343: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1344: echo >confdefs.h
1345:
1346: # Predefined preprocessor variables.
1347:
1348: cat >>confdefs.h <<_ACEOF
1349: #define PACKAGE_NAME "$PACKAGE_NAME"
1350: _ACEOF
1351:
1352:
1353: cat >>confdefs.h <<_ACEOF
1354: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1355: _ACEOF
1356:
1357:
1358: cat >>confdefs.h <<_ACEOF
1359: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1360: _ACEOF
1361:
1362:
1363: cat >>confdefs.h <<_ACEOF
1364: #define PACKAGE_STRING "$PACKAGE_STRING"
1365: _ACEOF
1366:
1367:
1368: cat >>confdefs.h <<_ACEOF
1369: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1370: _ACEOF
1371:
1372:
1373: # Let the site file select an alternate cache file if it wants to.
1.1 parser 1374: # Prefer explicitly selected file to automatically selected ones.
1375: if test -z "$CONFIG_SITE"; then
1376: if test "x$prefix" != xNONE; then
1377: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1378: else
1379: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1380: fi
1381: fi
1382: for ac_site_file in $CONFIG_SITE; do
1383: if test -r "$ac_site_file"; then
1.10 paf 1384: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1385: echo "$as_me: loading site script $ac_site_file" >&6;}
1386: sed 's/^/| /' "$ac_site_file" >&5
1.1 parser 1387: . "$ac_site_file"
1388: fi
1389: done
1390:
1391: if test -r "$cache_file"; then
1.10 paf 1392: # Some versions of bash will fail to source /dev/null (special
1393: # files actually), so we avoid doing that.
1394: if test -f "$cache_file"; then
1395: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1396: echo "$as_me: loading cache $cache_file" >&6;}
1397: case $cache_file in
1398: [\\/]* | ?:[\\/]* ) . $cache_file;;
1399: *) . ./$cache_file;;
1400: esac
1401: fi
1.1 parser 1402: else
1.10 paf 1403: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1404: echo "$as_me: creating cache $cache_file" >&6;}
1405: >$cache_file
1406: fi
1407:
1408: # Check that the precious variables saved in the cache have kept the same
1409: # value.
1410: ac_cache_corrupted=false
1411: for ac_var in `(set) 2>&1 |
1.16 paf 1412: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.10 paf 1413: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1414: eval ac_new_set=\$ac_env_${ac_var}_set
1415: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1416: eval ac_new_val="\$ac_env_${ac_var}_value"
1417: case $ac_old_set,$ac_new_set in
1418: set,)
1419: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1420: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1421: ac_cache_corrupted=: ;;
1422: ,set)
1423: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1424: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1425: ac_cache_corrupted=: ;;
1426: ,);;
1427: *)
1428: if test "x$ac_old_val" != "x$ac_new_val"; then
1.16 paf 1429: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.10 paf 1430: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.16 paf 1431: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.10 paf 1432: echo "$as_me: former value: $ac_old_val" >&2;}
1.16 paf 1433: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.10 paf 1434: echo "$as_me: current value: $ac_new_val" >&2;}
1.16 paf 1435: ac_cache_corrupted=:
1.10 paf 1436: fi;;
1437: esac
1438: # Pass precious variables to config.status.
1439: if test "$ac_new_set" = set; then
1440: case $ac_new_val in
1441: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1442: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1443: *) ac_arg=$ac_var=$ac_new_val ;;
1444: esac
1445: case " $ac_configure_args " in
1446: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1447: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1448: esac
1449: fi
1450: done
1451: if $ac_cache_corrupted; then
1452: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1453: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1454: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1455: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1456: { (exit 1); exit 1; }; }
1.1 parser 1457: fi
1458:
1459: ac_ext=c
1460: ac_cpp='$CPP $CPPFLAGS'
1.10 paf 1461: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1462: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1463: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 parser 1464:
1465:
1.10 paf 1466:
1467:
1468:
1469:
1470:
1471:
1472:
1473:
1474:
1475:
1476:
1477:
1478:
1479:
1480:
1481:
1482:
1.16 paf 1483: am__api_version="1.9"
1.1 parser 1484: ac_aux_dir=
1485: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1486: if test -f $ac_dir/install-sh; then
1487: ac_aux_dir=$ac_dir
1488: ac_install_sh="$ac_aux_dir/install-sh -c"
1489: break
1490: elif test -f $ac_dir/install.sh; then
1491: ac_aux_dir=$ac_dir
1492: ac_install_sh="$ac_aux_dir/install.sh -c"
1493: break
1.10 paf 1494: elif test -f $ac_dir/shtool; then
1495: ac_aux_dir=$ac_dir
1496: ac_install_sh="$ac_aux_dir/shtool install -c"
1497: break
1.1 parser 1498: fi
1499: done
1500: if test -z "$ac_aux_dir"; then
1.10 paf 1501: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1502: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1503: { (exit 1); exit 1; }; }
1504: fi
1505: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1506: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1507: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 parser 1508:
1509: # Find a good install program. We prefer a C program (faster),
1510: # so one script is as good as another. But avoid the broken or
1511: # incompatible versions:
1512: # SysV /etc/install, /usr/sbin/install
1513: # SunOS /usr/etc/install
1514: # IRIX /sbin/install
1515: # AIX /bin/install
1.10 paf 1516: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1517: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1518: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1519: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.16 paf 1520: # OS/2's system install, which has a completely different semantic
1.1 parser 1521: # ./install, which can be erroneously created by make from ./install.sh.
1.10 paf 1522: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1523: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1524: if test -z "$INSTALL"; then
1.10 paf 1525: if test "${ac_cv_path_install+set}" = set; then
1526: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1527: else
1.10 paf 1528: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529: for as_dir in $PATH
1530: do
1531: IFS=$as_save_IFS
1532: test -z "$as_dir" && as_dir=.
1533: # Account for people who put trailing slashes in PATH elements.
1534: case $as_dir/ in
1535: ./ | .// | /cC/* | \
1536: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.16 paf 1537: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.10 paf 1538: /usr/ucb/* ) ;;
1539: *)
1540: # OSF1 and SCO ODT 3.0 have their own names for install.
1541: # Don't use installbsd from OSF since it installs stuff as root
1542: # by default.
1543: for ac_prog in ginstall scoinst install; do
1544: for ac_exec_ext in '' $ac_executable_extensions; do
1.16 paf 1545: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1546: if test $ac_prog = install &&
1547: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1548: # AIX install. It has an incompatible calling convention.
1549: :
1550: elif test $ac_prog = install &&
1551: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1552: # program-specific install script used by HP pwplus--don't use.
1553: :
1554: else
1555: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1556: break 3
1557: fi
1558: fi
1.1 parser 1559: done
1.10 paf 1560: done
1561: ;;
1562: esac
1563: done
1564:
1.1 parser 1565:
1566: fi
1567: if test "${ac_cv_path_install+set}" = set; then
1.10 paf 1568: INSTALL=$ac_cv_path_install
1.1 parser 1569: else
1570: # As a last resort, use the slow shell script. We don't cache a
1571: # path for INSTALL within a source directory, because that will
1572: # break other packages using the cache if that directory is
1573: # removed, or if the path is relative.
1.10 paf 1574: INSTALL=$ac_install_sh
1.1 parser 1575: fi
1576: fi
1.10 paf 1577: echo "$as_me:$LINENO: result: $INSTALL" >&5
1578: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1579:
1580: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1581: # It thinks the first close brace ends the variable substitution.
1582: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1583:
1.10 paf 1584: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1585:
1586: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1587:
1.10 paf 1588: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1589: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 parser 1590: # Just in case
1591: sleep 1
1.10 paf 1592: echo timestamp > conftest.file
1.1 parser 1593: # Do `set' in a subshell so we don't clobber the current shell's
1594: # arguments. Must try -L first in case configure is actually a
1595: # symlink; some systems play weird games with the mod time of symlinks
1596: # (eg FreeBSD returns the mod time of the symlink's containing
1597: # directory).
1598: if (
1.10 paf 1599: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 parser 1600: if test "$*" = "X"; then
1601: # -L didn't work.
1.10 paf 1602: set X `ls -t $srcdir/configure conftest.file`
1.1 parser 1603: fi
1.10 paf 1604: rm -f conftest.file
1605: if test "$*" != "X $srcdir/configure conftest.file" \
1606: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 1607:
1608: # If neither matched, then we have a broken ls. This can happen
1609: # if, for instance, CONFIG_SHELL is bash and it inherits a
1610: # broken ls alias from the environment. This has actually
1611: # happened. Such a system could not be considered "sane".
1.10 paf 1612: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1613: alias in your environment" >&5
1614: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1615: alias in your environment" >&2;}
1616: { (exit 1); exit 1; }; }
1.1 parser 1617: fi
1618:
1.10 paf 1619: test "$2" = conftest.file
1.1 parser 1620: )
1621: then
1622: # Ok.
1623: :
1624: else
1.10 paf 1625: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1626: Check your system clock" >&5
1627: echo "$as_me: error: newly created file is older than distributed files!
1628: Check your system clock" >&2;}
1629: { (exit 1); exit 1; }; }
1.1 parser 1630: fi
1.10 paf 1631: echo "$as_me:$LINENO: result: yes" >&5
1632: echo "${ECHO_T}yes" >&6
1.1 parser 1633: test "$program_prefix" != NONE &&
1.10 paf 1634: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 parser 1635: # Use a double $ so make ignores it.
1636: test "$program_suffix" != NONE &&
1.10 paf 1637: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1638: # Double any \ or $. echo might interpret backslashes.
1639: # By default was `s,x,x', remove it if useless.
1640: cat <<\_ACEOF >conftest.sed
1641: s/[\\$]/&&/g;s/;s,x,x,$//
1642: _ACEOF
1643: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1644: rm conftest.sed
1645:
1646: # expand $ac_aux_dir to an absolute path
1647: am_aux_dir=`cd $ac_aux_dir && pwd`
1648:
1649: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1650: # Use eval to expand $SHELL
1651: if eval "$MISSING --run true"; then
1652: am_missing_run="$MISSING --run "
1653: else
1654: am_missing_run=
1655: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1656: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1657: fi
1658:
1.16 paf 1659: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1660: # We used to keeping the `.' as first argument, in order to
1661: # allow $(mkdir_p) to be used without argument. As in
1662: # $(mkdir_p) $(somedir)
1663: # where $(somedir) is conditionally defined. However this is wrong
1664: # for two reasons:
1665: # 1. if the package is installed by a user who cannot write `.'
1666: # make install will fail,
1667: # 2. the above comment should most certainly read
1668: # $(mkdir_p) $(DESTDIR)$(somedir)
1669: # so it does not work when $(somedir) is undefined and
1670: # $(DESTDIR) is not.
1671: # To support the latter case, we have to write
1672: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1673: # so the `.' trick is pointless.
1674: mkdir_p='mkdir -p --'
1675: else
1676: # On NextStep and OpenStep, the `mkdir' command does not
1677: # recognize any option. It will interpret all options as
1678: # directories to create, and then abort because `.' already
1679: # exists.
1680: for d in ./-p ./--version;
1681: do
1682: test -d $d && rmdir $d
1683: done
1684: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1685: if test -f "$ac_aux_dir/mkinstalldirs"; then
1686: mkdir_p='$(mkinstalldirs)'
1687: else
1688: mkdir_p='$(install_sh) -d'
1689: fi
1690: fi
1691:
1.10 paf 1692: for ac_prog in gawk mawk nawk awk
1693: do
1694: # Extract the first word of "$ac_prog", so it can be a program name with args.
1695: set dummy $ac_prog; ac_word=$2
1696: echo "$as_me:$LINENO: checking for $ac_word" >&5
1697: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698: if test "${ac_cv_prog_AWK+set}" = set; then
1699: echo $ECHO_N "(cached) $ECHO_C" >&6
1700: else
1701: if test -n "$AWK"; then
1702: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1703: else
1704: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705: for as_dir in $PATH
1706: do
1707: IFS=$as_save_IFS
1708: test -z "$as_dir" && as_dir=.
1709: for ac_exec_ext in '' $ac_executable_extensions; do
1710: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711: ac_cv_prog_AWK="$ac_prog"
1712: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713: break 2
1714: fi
1715: done
1716: done
1717:
1718: fi
1719: fi
1720: AWK=$ac_cv_prog_AWK
1721: if test -n "$AWK"; then
1722: echo "$as_me:$LINENO: result: $AWK" >&5
1723: echo "${ECHO_T}$AWK" >&6
1724: else
1725: echo "$as_me:$LINENO: result: no" >&5
1726: echo "${ECHO_T}no" >&6
1727: fi
1.1 parser 1728:
1.10 paf 1729: test -n "$AWK" && break
1730: done
1.1 parser 1731:
1.10 paf 1732: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1733: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.16 paf 1734: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.10 paf 1735: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1736: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1737: else
1.10 paf 1738: cat >conftest.make <<\_ACEOF
1.1 parser 1739: all:
1.10 paf 1740: @echo 'ac_maketemp="$(MAKE)"'
1741: _ACEOF
1.1 parser 1742: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.10 paf 1743: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 1744: if test -n "$ac_maketemp"; then
1745: eval ac_cv_prog_make_${ac_make}_set=yes
1746: else
1747: eval ac_cv_prog_make_${ac_make}_set=no
1748: fi
1.10 paf 1749: rm -f conftest.make
1.1 parser 1750: fi
1751: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.10 paf 1752: echo "$as_me:$LINENO: result: yes" >&5
1753: echo "${ECHO_T}yes" >&6
1.1 parser 1754: SET_MAKE=
1755: else
1.10 paf 1756: echo "$as_me:$LINENO: result: no" >&5
1757: echo "${ECHO_T}no" >&6
1.1 parser 1758: SET_MAKE="MAKE=${MAKE-make}"
1759: fi
1760:
1.16 paf 1761: rm -rf .tst 2>/dev/null
1762: mkdir .tst 2>/dev/null
1763: if test -d .tst; then
1764: am__leading_dot=.
1765: else
1766: am__leading_dot=_
1767: fi
1768: rmdir .tst 2>/dev/null
1769:
1770: # test to see if srcdir already configured
1.10 paf 1771: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1772: test -f $srcdir/config.status; then
1773: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1774: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1775: { (exit 1); exit 1; }; }
1776: fi
1777:
1778: # test whether we have cygpath
1779: if test -z "$CYGPATH_W"; then
1780: if (cygpath --version) >/dev/null 2>/dev/null; then
1781: CYGPATH_W='cygpath -w'
1782: else
1783: CYGPATH_W=echo
1784: fi
1785: fi
1786:
1787:
1788: # Define the identity of the package.
1789: PACKAGE=parser3pgsql
1.19 ! misha 1790: VERSION=10.0
1.1 parser 1791:
1792:
1.10 paf 1793: # Some tools Automake needs.
1794:
1795: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1796:
1797:
1798: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1799:
1800:
1801: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1802:
1803:
1804: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1805:
1806:
1807: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 parser 1808:
1.10 paf 1809: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 parser 1810:
1.10 paf 1811: # Installed binaries are usually stripped using `strip' when the user
1812: # run `make install-strip'. However `strip' might not be the right
1813: # tool to use in cross-compilation environments, therefore Automake
1814: # will honor the `STRIP' environment variable to overrule this program.
1815: if test "$cross_compiling" != no; then
1816: if test -n "$ac_tool_prefix"; then
1817: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1818: set dummy ${ac_tool_prefix}strip; ac_word=$2
1819: echo "$as_me:$LINENO: checking for $ac_word" >&5
1820: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821: if test "${ac_cv_prog_STRIP+set}" = set; then
1822: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1823: else
1.10 paf 1824: if test -n "$STRIP"; then
1825: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1826: else
1827: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828: for as_dir in $PATH
1829: do
1830: IFS=$as_save_IFS
1831: test -z "$as_dir" && as_dir=.
1832: for ac_exec_ext in '' $ac_executable_extensions; do
1833: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1835: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836: break 2
1837: fi
1838: done
1839: done
1840:
1841: fi
1842: fi
1843: STRIP=$ac_cv_prog_STRIP
1844: if test -n "$STRIP"; then
1845: echo "$as_me:$LINENO: result: $STRIP" >&5
1846: echo "${ECHO_T}$STRIP" >&6
1847: else
1848: echo "$as_me:$LINENO: result: no" >&5
1849: echo "${ECHO_T}no" >&6
1.1 parser 1850: fi
1851:
1.10 paf 1852: fi
1853: if test -z "$ac_cv_prog_STRIP"; then
1854: ac_ct_STRIP=$STRIP
1855: # Extract the first word of "strip", so it can be a program name with args.
1856: set dummy strip; ac_word=$2
1857: echo "$as_me:$LINENO: checking for $ac_word" >&5
1858: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1860: echo $ECHO_N "(cached) $ECHO_C" >&6
1861: else
1862: if test -n "$ac_ct_STRIP"; then
1863: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 parser 1864: else
1.10 paf 1865: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866: for as_dir in $PATH
1867: do
1868: IFS=$as_save_IFS
1869: test -z "$as_dir" && as_dir=.
1870: for ac_exec_ext in '' $ac_executable_extensions; do
1871: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872: ac_cv_prog_ac_ct_STRIP="strip"
1873: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874: break 2
1875: fi
1876: done
1877: done
1878:
1879: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1880: fi
1.1 parser 1881: fi
1.10 paf 1882: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1883: if test -n "$ac_ct_STRIP"; then
1884: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1885: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 parser 1886: else
1.10 paf 1887: echo "$as_me:$LINENO: result: no" >&5
1888: echo "${ECHO_T}no" >&6
1.1 parser 1889: fi
1890:
1.10 paf 1891: STRIP=$ac_ct_STRIP
1.1 parser 1892: else
1.10 paf 1893: STRIP="$ac_cv_prog_STRIP"
1.1 parser 1894: fi
1895:
1896: fi
1.10 paf 1897: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1.1 parser 1898:
1.10 paf 1899: # We need awk for the "check" target. The system "awk" is bad on
1900: # some platforms.
1.16 paf 1901: # Always define AMTAR for backward compatibility.
1902:
1903: AMTAR=${AMTAR-"${am_missing_run}tar"}
1904:
1905: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1906:
1907:
1.1 parser 1908:
1909:
1910:
1911:
1.10 paf 1912: ac_config_headers="$ac_config_headers config_auto.h"
1913:
1.1 parser 1914:
1915:
1916:
1.2 parser 1917: # Check whether --with-pgsql-inc or --without-pgsql-inc was given.
1.1 parser 1918: if test "${with_pgsql_inc+set}" = set; then
1919: withval="$with_pgsql_inc"
1.10 paf 1920:
1.1 parser 1921: else
1922: withval="/usr/local/pgsql/include"
1923:
1.10 paf 1924: fi;
1.1 parser 1925: PGSQL_INC=$withval
1926:
1927:
1.2 parser 1928: if test \! -f "$PGSQL_INC/libpq-fe.h"; then
1.10 paf 1929: { { echo "$as_me:$LINENO: error: $PGSQL_INC does not seem to be valid PgSQL includes directory" >&5
1930: echo "$as_me: error: $PGSQL_INC does not seem to be valid PgSQL includes directory" >&2;}
1931: { (exit 1); exit 1; }; }
1.2 parser 1932: fi
1.1 parser 1933:
1934: # Find a good install program. We prefer a C program (faster),
1935: # so one script is as good as another. But avoid the broken or
1936: # incompatible versions:
1937: # SysV /etc/install, /usr/sbin/install
1938: # SunOS /usr/etc/install
1939: # IRIX /sbin/install
1940: # AIX /bin/install
1.10 paf 1941: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1942: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1943: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1944: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.16 paf 1945: # OS/2's system install, which has a completely different semantic
1.1 parser 1946: # ./install, which can be erroneously created by make from ./install.sh.
1.10 paf 1947: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1948: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1949: if test -z "$INSTALL"; then
1.10 paf 1950: if test "${ac_cv_path_install+set}" = set; then
1951: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1952: else
1.10 paf 1953: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954: for as_dir in $PATH
1955: do
1956: IFS=$as_save_IFS
1957: test -z "$as_dir" && as_dir=.
1958: # Account for people who put trailing slashes in PATH elements.
1959: case $as_dir/ in
1960: ./ | .// | /cC/* | \
1961: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.16 paf 1962: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.10 paf 1963: /usr/ucb/* ) ;;
1964: *)
1965: # OSF1 and SCO ODT 3.0 have their own names for install.
1966: # Don't use installbsd from OSF since it installs stuff as root
1967: # by default.
1968: for ac_prog in ginstall scoinst install; do
1969: for ac_exec_ext in '' $ac_executable_extensions; do
1.16 paf 1970: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1971: if test $ac_prog = install &&
1972: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1973: # AIX install. It has an incompatible calling convention.
1974: :
1975: elif test $ac_prog = install &&
1976: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1977: # program-specific install script used by HP pwplus--don't use.
1978: :
1979: else
1980: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1981: break 3
1982: fi
1983: fi
1.1 parser 1984: done
1.10 paf 1985: done
1986: ;;
1987: esac
1988: done
1989:
1.1 parser 1990:
1991: fi
1992: if test "${ac_cv_path_install+set}" = set; then
1.10 paf 1993: INSTALL=$ac_cv_path_install
1.1 parser 1994: else
1995: # As a last resort, use the slow shell script. We don't cache a
1996: # path for INSTALL within a source directory, because that will
1997: # break other packages using the cache if that directory is
1998: # removed, or if the path is relative.
1.10 paf 1999: INSTALL=$ac_install_sh
1.1 parser 2000: fi
2001: fi
1.10 paf 2002: echo "$as_me:$LINENO: result: $INSTALL" >&5
2003: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 2004:
2005: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2006: # It thinks the first close brace ends the variable substitution.
2007: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2008:
1.10 paf 2009: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 2010:
2011: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2012:
1.10 paf 2013: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2014: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.16 paf 2015: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.10 paf 2016: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2017: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2018: else
1.10 paf 2019: cat >conftest.make <<\_ACEOF
1.1 parser 2020: all:
1.10 paf 2021: @echo 'ac_maketemp="$(MAKE)"'
2022: _ACEOF
1.1 parser 2023: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.10 paf 2024: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 2025: if test -n "$ac_maketemp"; then
2026: eval ac_cv_prog_make_${ac_make}_set=yes
2027: else
2028: eval ac_cv_prog_make_${ac_make}_set=no
2029: fi
1.10 paf 2030: rm -f conftest.make
1.1 parser 2031: fi
2032: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.10 paf 2033: echo "$as_me:$LINENO: result: yes" >&5
2034: echo "${ECHO_T}yes" >&6
1.1 parser 2035: SET_MAKE=
2036: else
1.10 paf 2037: echo "$as_me:$LINENO: result: no" >&5
2038: echo "${ECHO_T}no" >&6
1.1 parser 2039: SET_MAKE="MAKE=${MAKE-make}"
2040: fi
2041:
1.10 paf 2042: for ac_prog in gawk mawk nawk awk
1.1 parser 2043: do
1.10 paf 2044: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1 parser 2045: set dummy $ac_prog; ac_word=$2
1.10 paf 2046: echo "$as_me:$LINENO: checking for $ac_word" >&5
2047: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048: if test "${ac_cv_prog_AWK+set}" = set; then
2049: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2050: else
2051: if test -n "$AWK"; then
2052: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2053: else
1.10 paf 2054: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055: for as_dir in $PATH
2056: do
2057: IFS=$as_save_IFS
2058: test -z "$as_dir" && as_dir=.
2059: for ac_exec_ext in '' $ac_executable_extensions; do
2060: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061: ac_cv_prog_AWK="$ac_prog"
2062: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063: break 2
2064: fi
2065: done
2066: done
2067:
1.1 parser 2068: fi
2069: fi
1.10 paf 2070: AWK=$ac_cv_prog_AWK
1.1 parser 2071: if test -n "$AWK"; then
1.10 paf 2072: echo "$as_me:$LINENO: result: $AWK" >&5
2073: echo "${ECHO_T}$AWK" >&6
1.1 parser 2074: else
1.10 paf 2075: echo "$as_me:$LINENO: result: no" >&5
2076: echo "${ECHO_T}no" >&6
1.1 parser 2077: fi
2078:
1.10 paf 2079: test -n "$AWK" && break
1.1 parser 2080: done
2081:
1.10 paf 2082: ac_ext=cc
2083: ac_cpp='$CXXCPP $CPPFLAGS'
2084: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2085: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2086: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2087: if test -n "$ac_tool_prefix"; then
2088: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2089: do
2090: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2091: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2092: echo "$as_me:$LINENO: checking for $ac_word" >&5
2093: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2094: if test "${ac_cv_prog_CXX+set}" = set; then
2095: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2096: else
2097: if test -n "$CXX"; then
2098: ac_cv_prog_CXX="$CXX" # Let the user override the test.
2099: else
1.10 paf 2100: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101: for as_dir in $PATH
2102: do
2103: IFS=$as_save_IFS
2104: test -z "$as_dir" && as_dir=.
2105: for ac_exec_ext in '' $ac_executable_extensions; do
2106: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2107: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2108: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109: break 2
2110: fi
2111: done
2112: done
2113:
1.1 parser 2114: fi
2115: fi
1.10 paf 2116: CXX=$ac_cv_prog_CXX
1.1 parser 2117: if test -n "$CXX"; then
1.10 paf 2118: echo "$as_me:$LINENO: result: $CXX" >&5
2119: echo "${ECHO_T}$CXX" >&6
1.1 parser 2120: else
1.10 paf 2121: echo "$as_me:$LINENO: result: no" >&5
2122: echo "${ECHO_T}no" >&6
1.1 parser 2123: fi
2124:
1.10 paf 2125: test -n "$CXX" && break
2126: done
2127: fi
2128: if test -z "$CXX"; then
2129: ac_ct_CXX=$CXX
2130: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2131: do
2132: # Extract the first word of "$ac_prog", so it can be a program name with args.
2133: set dummy $ac_prog; ac_word=$2
2134: echo "$as_me:$LINENO: checking for $ac_word" >&5
2135: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2136: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2137: echo $ECHO_N "(cached) $ECHO_C" >&6
2138: else
2139: if test -n "$ac_ct_CXX"; then
2140: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2141: else
2142: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143: for as_dir in $PATH
2144: do
2145: IFS=$as_save_IFS
2146: test -z "$as_dir" && as_dir=.
2147: for ac_exec_ext in '' $ac_executable_extensions; do
2148: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2149: ac_cv_prog_ac_ct_CXX="$ac_prog"
2150: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151: break 2
2152: fi
2153: done
1.1 parser 2154: done
2155:
1.10 paf 2156: fi
2157: fi
2158: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2159: if test -n "$ac_ct_CXX"; then
2160: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2161: echo "${ECHO_T}$ac_ct_CXX" >&6
2162: else
2163: echo "$as_me:$LINENO: result: no" >&5
2164: echo "${ECHO_T}no" >&6
2165: fi
1.1 parser 2166:
1.10 paf 2167: test -n "$ac_ct_CXX" && break
2168: done
2169: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 parser 2170:
1.10 paf 2171: CXX=$ac_ct_CXX
2172: fi
1.1 parser 2173:
2174:
1.10 paf 2175: # Provide some information about the compiler.
2176: echo "$as_me:$LINENO:" \
2177: "checking for C++ compiler version" >&5
2178: ac_compiler=`set X $ac_compile; echo $2`
2179: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2180: (eval $ac_compiler --version </dev/null >&5) 2>&5
2181: ac_status=$?
2182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183: (exit $ac_status); }
2184: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2185: (eval $ac_compiler -v </dev/null >&5) 2>&5
2186: ac_status=$?
2187: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188: (exit $ac_status); }
2189: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2190: (eval $ac_compiler -V </dev/null >&5) 2>&5
2191: ac_status=$?
2192: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193: (exit $ac_status); }
2194:
2195: cat >conftest.$ac_ext <<_ACEOF
2196: /* confdefs.h. */
2197: _ACEOF
2198: cat confdefs.h >>conftest.$ac_ext
2199: cat >>conftest.$ac_ext <<_ACEOF
2200: /* end confdefs.h. */
2201:
2202: int
2203: main ()
2204: {
2205:
2206: ;
2207: return 0;
2208: }
2209: _ACEOF
2210: ac_clean_files_save=$ac_clean_files
2211: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2212: # Try to create an executable without -o first, disregard a.out.
2213: # It will help us diagnose broken compilers, and finding out an intuition
2214: # of exeext.
1.16 paf 2215: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2216: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1.10 paf 2217: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2218: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2219: (eval $ac_link_default) 2>&5
2220: ac_status=$?
2221: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222: (exit $ac_status); }; then
2223: # Find the output, starting from the most likely. This scheme is
2224: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2225: # resort.
2226:
2227: # Be careful to initialize this variable, since it used to be cached.
2228: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2229: ac_cv_exeext=
2230: # b.out is created by i960 compilers.
2231: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2232: do
2233: test -f "$ac_file" || continue
2234: case $ac_file in
2235: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.16 paf 2236: ;;
1.10 paf 2237: conftest.$ac_ext )
1.16 paf 2238: # This is the source file.
2239: ;;
1.10 paf 2240: [ab].out )
1.16 paf 2241: # We found the default executable, but exeext='' is most
2242: # certainly right.
2243: break;;
1.10 paf 2244: *.* )
1.16 paf 2245: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2246: # FIXME: I believe we export ac_cv_exeext for Libtool,
2247: # but it would be cool to find out if it's true. Does anybody
2248: # maintain Libtool? --akim.
2249: export ac_cv_exeext
2250: break;;
1.10 paf 2251: * )
1.16 paf 2252: break;;
1.10 paf 2253: esac
2254: done
2255: else
2256: echo "$as_me: failed program was:" >&5
2257: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2258:
1.10 paf 2259: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2260: See \`config.log' for more details." >&5
2261: echo "$as_me: error: C++ compiler cannot create executables
2262: See \`config.log' for more details." >&2;}
2263: { (exit 77); exit 77; }; }
2264: fi
2265:
2266: ac_exeext=$ac_cv_exeext
2267: echo "$as_me:$LINENO: result: $ac_file" >&5
2268: echo "${ECHO_T}$ac_file" >&6
2269:
2270: # Check the compiler produces executables we can run. If not, either
2271: # the compiler is broken, or we cross compile.
2272: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2273: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2274: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2275: # If not cross compiling, check that we can run a simple program.
2276: if test "$cross_compiling" != yes; then
2277: if { ac_try='./$ac_file'
2278: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279: (eval $ac_try) 2>&5
2280: ac_status=$?
2281: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282: (exit $ac_status); }; }; then
2283: cross_compiling=no
2284: else
2285: if test "$cross_compiling" = maybe; then
2286: cross_compiling=yes
2287: else
2288: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2289: If you meant to cross compile, use \`--host'.
2290: See \`config.log' for more details." >&5
2291: echo "$as_me: error: cannot run C++ compiled programs.
2292: If you meant to cross compile, use \`--host'.
2293: See \`config.log' for more details." >&2;}
2294: { (exit 1); exit 1; }; }
2295: fi
1.1 parser 2296: fi
1.10 paf 2297: fi
2298: echo "$as_me:$LINENO: result: yes" >&5
2299: echo "${ECHO_T}yes" >&6
2300:
2301: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2302: ac_clean_files=$ac_clean_files_save
2303: # Check the compiler produces executables we can run. If not, either
2304: # the compiler is broken, or we cross compile.
2305: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2306: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2307: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2308: echo "${ECHO_T}$cross_compiling" >&6
2309:
2310: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2311: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2312: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2313: (eval $ac_link) 2>&5
2314: ac_status=$?
2315: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316: (exit $ac_status); }; then
2317: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2318: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2319: # work properly (i.e., refer to `conftest.exe'), while it won't with
2320: # `rm'.
2321: for ac_file in conftest.exe conftest conftest.*; do
2322: test -f "$ac_file" || continue
2323: case $ac_file in
2324: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2325: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.16 paf 2326: export ac_cv_exeext
2327: break;;
1.10 paf 2328: * ) break;;
2329: esac
2330: done
1.1 parser 2331: else
1.10 paf 2332: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2333: See \`config.log' for more details." >&5
2334: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2335: See \`config.log' for more details." >&2;}
2336: { (exit 1); exit 1; }; }
2337: fi
2338:
2339: rm -f conftest$ac_cv_exeext
2340: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2341: echo "${ECHO_T}$ac_cv_exeext" >&6
2342:
2343: rm -f conftest.$ac_ext
2344: EXEEXT=$ac_cv_exeext
2345: ac_exeext=$EXEEXT
2346: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2347: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2348: if test "${ac_cv_objext+set}" = set; then
2349: echo $ECHO_N "(cached) $ECHO_C" >&6
2350: else
2351: cat >conftest.$ac_ext <<_ACEOF
2352: /* confdefs.h. */
2353: _ACEOF
2354: cat confdefs.h >>conftest.$ac_ext
2355: cat >>conftest.$ac_ext <<_ACEOF
2356: /* end confdefs.h. */
2357:
2358: int
2359: main ()
2360: {
2361:
2362: ;
2363: return 0;
2364: }
2365: _ACEOF
2366: rm -f conftest.o conftest.obj
2367: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2368: (eval $ac_compile) 2>&5
2369: ac_status=$?
2370: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371: (exit $ac_status); }; then
2372: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2373: case $ac_file in
2374: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2375: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2376: break;;
2377: esac
2378: done
1.1 parser 2379: else
1.10 paf 2380: echo "$as_me: failed program was:" >&5
2381: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2382:
1.10 paf 2383: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2384: See \`config.log' for more details." >&5
2385: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2386: See \`config.log' for more details." >&2;}
2387: { (exit 1); exit 1; }; }
2388: fi
2389:
2390: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2391: fi
2392: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2393: echo "${ECHO_T}$ac_cv_objext" >&6
2394: OBJEXT=$ac_cv_objext
2395: ac_objext=$OBJEXT
2396: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2397: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2398: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2399: echo $ECHO_N "(cached) $ECHO_C" >&6
2400: else
2401: cat >conftest.$ac_ext <<_ACEOF
2402: /* confdefs.h. */
2403: _ACEOF
2404: cat confdefs.h >>conftest.$ac_ext
2405: cat >>conftest.$ac_ext <<_ACEOF
2406: /* end confdefs.h. */
2407:
2408: int
2409: main ()
2410: {
2411: #ifndef __GNUC__
2412: choke me
2413: #endif
1.1 parser 2414:
1.10 paf 2415: ;
2416: return 0;
2417: }
2418: _ACEOF
2419: rm -f conftest.$ac_objext
2420: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 2421: (eval $ac_compile) 2>conftest.er1
1.10 paf 2422: ac_status=$?
1.16 paf 2423: grep -v '^ *+' conftest.er1 >conftest.err
2424: rm -f conftest.er1
2425: cat conftest.err >&5
1.10 paf 2426: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427: (exit $ac_status); } &&
1.16 paf 2428: { ac_try='test -z "$ac_cxx_werror_flag"
2429: || test ! -s conftest.err'
2430: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431: (eval $ac_try) 2>&5
2432: ac_status=$?
2433: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434: (exit $ac_status); }; } &&
2435: { ac_try='test -s conftest.$ac_objext'
1.10 paf 2436: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437: (eval $ac_try) 2>&5
2438: ac_status=$?
2439: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440: (exit $ac_status); }; }; then
2441: ac_compiler_gnu=yes
2442: else
2443: echo "$as_me: failed program was:" >&5
2444: sed 's/^/| /' conftest.$ac_ext >&5
2445:
2446: ac_compiler_gnu=no
2447: fi
1.16 paf 2448: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 2449: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2450:
2451: fi
2452: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2453: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2454: GXX=`test $ac_compiler_gnu = yes && echo yes`
2455: ac_test_CXXFLAGS=${CXXFLAGS+set}
2456: ac_save_CXXFLAGS=$CXXFLAGS
2457: CXXFLAGS="-g"
2458: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2459: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2460: if test "${ac_cv_prog_cxx_g+set}" = set; then
2461: echo $ECHO_N "(cached) $ECHO_C" >&6
2462: else
2463: cat >conftest.$ac_ext <<_ACEOF
2464: /* confdefs.h. */
2465: _ACEOF
2466: cat confdefs.h >>conftest.$ac_ext
2467: cat >>conftest.$ac_ext <<_ACEOF
2468: /* end confdefs.h. */
2469:
2470: int
2471: main ()
2472: {
2473:
2474: ;
2475: return 0;
2476: }
2477: _ACEOF
2478: rm -f conftest.$ac_objext
2479: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 2480: (eval $ac_compile) 2>conftest.er1
1.10 paf 2481: ac_status=$?
1.16 paf 2482: grep -v '^ *+' conftest.er1 >conftest.err
2483: rm -f conftest.er1
2484: cat conftest.err >&5
1.10 paf 2485: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486: (exit $ac_status); } &&
1.16 paf 2487: { ac_try='test -z "$ac_cxx_werror_flag"
2488: || test ! -s conftest.err'
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); }; } &&
2494: { ac_try='test -s conftest.$ac_objext'
1.10 paf 2495: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496: (eval $ac_try) 2>&5
2497: ac_status=$?
2498: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499: (exit $ac_status); }; }; then
2500: ac_cv_prog_cxx_g=yes
1.1 parser 2501: else
1.10 paf 2502: echo "$as_me: failed program was:" >&5
2503: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2504:
1.10 paf 2505: ac_cv_prog_cxx_g=no
1.1 parser 2506: fi
1.16 paf 2507: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 2508: fi
1.10 paf 2509: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2510: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.1 parser 2511: if test "$ac_test_CXXFLAGS" = set; then
1.10 paf 2512: CXXFLAGS=$ac_save_CXXFLAGS
1.1 parser 2513: elif test $ac_cv_prog_cxx_g = yes; then
2514: if test "$GXX" = yes; then
2515: CXXFLAGS="-g -O2"
2516: else
2517: CXXFLAGS="-g"
2518: fi
2519: else
2520: if test "$GXX" = yes; then
2521: CXXFLAGS="-O2"
2522: else
2523: CXXFLAGS=
2524: fi
2525: fi
1.10 paf 2526: for ac_declaration in \
1.16 paf 2527: '' \
1.10 paf 2528: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2529: 'extern "C" void std::exit (int); using std::exit;' \
2530: 'extern "C" void exit (int) throw ();' \
2531: 'extern "C" void exit (int);' \
2532: 'void exit (int);'
2533: do
2534: cat >conftest.$ac_ext <<_ACEOF
2535: /* confdefs.h. */
2536: _ACEOF
2537: cat confdefs.h >>conftest.$ac_ext
2538: cat >>conftest.$ac_ext <<_ACEOF
2539: /* end confdefs.h. */
1.16 paf 2540: $ac_declaration
1.10 paf 2541: #include <stdlib.h>
2542: int
2543: main ()
2544: {
2545: exit (42);
2546: ;
2547: return 0;
2548: }
2549: _ACEOF
2550: rm -f conftest.$ac_objext
2551: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 2552: (eval $ac_compile) 2>conftest.er1
1.10 paf 2553: ac_status=$?
1.16 paf 2554: grep -v '^ *+' conftest.er1 >conftest.err
2555: rm -f conftest.er1
2556: cat conftest.err >&5
1.10 paf 2557: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558: (exit $ac_status); } &&
1.16 paf 2559: { ac_try='test -z "$ac_cxx_werror_flag"
2560: || test ! -s conftest.err'
2561: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562: (eval $ac_try) 2>&5
2563: ac_status=$?
2564: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565: (exit $ac_status); }; } &&
2566: { ac_try='test -s conftest.$ac_objext'
1.10 paf 2567: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568: (eval $ac_try) 2>&5
2569: ac_status=$?
2570: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571: (exit $ac_status); }; }; then
2572: :
2573: else
2574: echo "$as_me: failed program was:" >&5
2575: sed 's/^/| /' conftest.$ac_ext >&5
2576:
2577: continue
2578: fi
1.16 paf 2579: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 2580: cat >conftest.$ac_ext <<_ACEOF
2581: /* confdefs.h. */
2582: _ACEOF
2583: cat confdefs.h >>conftest.$ac_ext
2584: cat >>conftest.$ac_ext <<_ACEOF
2585: /* end confdefs.h. */
2586: $ac_declaration
2587: int
2588: main ()
2589: {
2590: exit (42);
2591: ;
2592: return 0;
2593: }
2594: _ACEOF
2595: rm -f conftest.$ac_objext
2596: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 2597: (eval $ac_compile) 2>conftest.er1
1.10 paf 2598: ac_status=$?
1.16 paf 2599: grep -v '^ *+' conftest.er1 >conftest.err
2600: rm -f conftest.er1
2601: cat conftest.err >&5
1.10 paf 2602: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603: (exit $ac_status); } &&
1.16 paf 2604: { ac_try='test -z "$ac_cxx_werror_flag"
2605: || test ! -s conftest.err'
2606: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607: (eval $ac_try) 2>&5
2608: ac_status=$?
2609: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610: (exit $ac_status); }; } &&
2611: { ac_try='test -s conftest.$ac_objext'
1.10 paf 2612: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613: (eval $ac_try) 2>&5
2614: ac_status=$?
2615: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616: (exit $ac_status); }; }; then
2617: break
2618: else
2619: echo "$as_me: failed program was:" >&5
2620: sed 's/^/| /' conftest.$ac_ext >&5
2621:
2622: fi
1.16 paf 2623: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 2624: done
2625: rm -f conftest*
2626: if test -n "$ac_declaration"; then
2627: echo '#ifdef __cplusplus' >>confdefs.h
2628: echo $ac_declaration >>confdefs.h
2629: echo '#endif' >>confdefs.h
2630: fi
2631:
1.15 paf 2632: ac_ext=c
2633: ac_cpp='$CPP $CPPFLAGS'
2634: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.16 paf 2637: DEPDIR="${am__leading_dot}deps"
1.10 paf 2638:
2639: ac_config_commands="$ac_config_commands depfiles"
2640:
2641:
2642: am_make=${MAKE-make}
2643: cat > confinc << 'END'
1.16 paf 2644: am__doit:
1.10 paf 2645: @echo done
1.16 paf 2646: .PHONY: am__doit
1.10 paf 2647: END
2648: # If we don't find an include directive, just comment out the code.
2649: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2650: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2651: am__include="#"
2652: am__quote=
2653: _am_result=none
2654: # First try GNU make style include.
2655: echo "include confinc" > confmf
2656: # We grep out `Entering directory' and `Leaving directory'
2657: # messages which can occur if `w' ends up in MAKEFLAGS.
2658: # In particular we don't look at `^make:' because GNU make might
2659: # be invoked under some other name (usually "gmake"), in which
2660: # case it prints its new name instead of `make'.
2661: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2662: am__include=include
2663: am__quote=
2664: _am_result=GNU
2665: fi
2666: # Now try BSD make style include.
2667: if test "$am__include" = "#"; then
2668: echo '.include "confinc"' > confmf
2669: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2670: am__include=.include
2671: am__quote="\""
2672: _am_result=BSD
2673: fi
2674: fi
2675:
2676:
2677: echo "$as_me:$LINENO: result: $_am_result" >&5
2678: echo "${ECHO_T}$_am_result" >&6
2679: rm -f confinc confmf
2680:
2681: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2682: if test "${enable_dependency_tracking+set}" = set; then
2683: enableval="$enable_dependency_tracking"
2684:
2685: fi;
2686: if test "x$enable_dependency_tracking" != xno; then
2687: am_depcomp="$ac_aux_dir/depcomp"
2688: AMDEPBACKSLASH='\'
2689: fi
2690:
2691:
2692: if test "x$enable_dependency_tracking" != xno; then
2693: AMDEP_TRUE=
2694: AMDEP_FALSE='#'
2695: else
2696: AMDEP_TRUE='#'
2697: AMDEP_FALSE=
2698: fi
2699:
2700:
2701:
2702:
2703: depcc="$CXX" am_compiler_list=
2704:
2705: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2706: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2707: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2708: echo $ECHO_N "(cached) $ECHO_C" >&6
2709: else
2710: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2711: # We make a subdir and do the tests there. Otherwise we can end up
2712: # making bogus files that we don't know about and never remove. For
2713: # instance it was reported that on HP-UX the gcc test will end up
2714: # making a dummy file named `D' -- because `-MD' means `put the output
2715: # in D'.
2716: mkdir conftest.dir
2717: # Copy depcomp to subdir because otherwise we won't find it if we're
2718: # using a relative directory.
2719: cp "$am_depcomp" conftest.dir
2720: cd conftest.dir
1.16 paf 2721: # We will build objects and dependencies in a subdirectory because
2722: # it helps to detect inapplicable dependency modes. For instance
2723: # both Tru64's cc and ICC support -MD to output dependencies as a
2724: # side effect of compilation, but ICC will put the dependencies in
2725: # the current directory while Tru64 will put them in the object
2726: # directory.
2727: mkdir sub
1.10 paf 2728:
2729: am_cv_CXX_dependencies_compiler_type=none
2730: if test "$am_compiler_list" = ""; then
2731: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2732: fi
2733: for depmode in $am_compiler_list; do
1.16 paf 2734: # Setup a source with many dependencies, because some compilers
2735: # like to wrap large dependency lists on column 80 (with \), and
2736: # we should not choose a depcomp mode which is confused by this.
2737: #
1.10 paf 2738: # We need to recreate these files for each test, as the compiler may
2739: # overwrite some of them when testing with obscure command lines.
2740: # This happens at least with the AIX C compiler.
1.16 paf 2741: : > sub/conftest.c
2742: for i in 1 2 3 4 5 6; do
2743: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2744: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2745: # Solaris 8's {/usr,}/bin/sh.
2746: touch sub/conftst$i.h
2747: done
2748: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.10 paf 2749:
2750: case $depmode in
2751: nosideeffect)
2752: # after this tag, mechanisms are not by side-effect, so they'll
2753: # only be used when explicitly requested
2754: if test "x$enable_dependency_tracking" = xyes; then
2755: continue
2756: else
2757: break
2758: fi
2759: ;;
2760: none) break ;;
2761: esac
2762: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2763: # mode. It turns out that the SunPro C++ compiler does not properly
2764: # handle `-M -o', and we need to detect this.
2765: if depmode=$depmode \
1.16 paf 2766: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2767: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2768: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2769: >/dev/null 2>conftest.err &&
2770: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2771: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.10 paf 2772: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.16 paf 2773: # icc doesn't choke on unknown options, it will just issue warnings
2774: # or remarks (even with -Werror). So we grep stderr for any message
2775: # that says an option was ignored or not supported.
2776: # When given -MP, icc 7.0 and 7.1 complain thusly:
2777: # icc: Command line warning: ignoring option '-M'; no argument required
2778: # The diagnosis changed in icc 8.0:
2779: # icc: Command line remark: option '-MP' not supported
2780: if (grep 'ignoring option' conftest.err ||
2781: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2782: am_cv_CXX_dependencies_compiler_type=$depmode
2783: break
2784: fi
1.10 paf 2785: fi
2786: done
2787:
2788: cd ..
2789: rm -rf conftest.dir
2790: else
2791: am_cv_CXX_dependencies_compiler_type=none
2792: fi
2793:
2794: fi
2795: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2796: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2797: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2798:
2799:
2800:
2801: if
2802: test "x$enable_dependency_tracking" != xno \
2803: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2804: am__fastdepCXX_TRUE=
2805: am__fastdepCXX_FALSE='#'
2806: else
2807: am__fastdepCXX_TRUE='#'
2808: am__fastdepCXX_FALSE=
2809: fi
2810:
1.1 parser 2811:
1.10 paf 2812: ac_ext=c
2813: ac_cpp='$CPP $CPPFLAGS'
2814: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2815: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2816: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2817: if test -n "$ac_tool_prefix"; then
2818: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2819: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2820: echo "$as_me:$LINENO: checking for $ac_word" >&5
2821: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822: if test "${ac_cv_prog_CC+set}" = set; then
2823: echo $ECHO_N "(cached) $ECHO_C" >&6
2824: else
2825: if test -n "$CC"; then
2826: ac_cv_prog_CC="$CC" # Let the user override the test.
2827: else
2828: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829: for as_dir in $PATH
2830: do
2831: IFS=$as_save_IFS
2832: test -z "$as_dir" && as_dir=.
2833: for ac_exec_ext in '' $ac_executable_extensions; do
2834: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2836: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837: break 2
2838: fi
2839: done
2840: done
1.1 parser 2841:
1.10 paf 2842: fi
2843: fi
2844: CC=$ac_cv_prog_CC
2845: if test -n "$CC"; then
2846: echo "$as_me:$LINENO: result: $CC" >&5
2847: echo "${ECHO_T}$CC" >&6
2848: else
2849: echo "$as_me:$LINENO: result: no" >&5
2850: echo "${ECHO_T}no" >&6
2851: fi
1.1 parser 2852:
1.10 paf 2853: fi
2854: if test -z "$ac_cv_prog_CC"; then
2855: ac_ct_CC=$CC
2856: # Extract the first word of "gcc", so it can be a program name with args.
2857: set dummy gcc; ac_word=$2
2858: echo "$as_me:$LINENO: checking for $ac_word" >&5
2859: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2860: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2861: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2862: else
1.10 paf 2863: if test -n "$ac_ct_CC"; then
2864: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 2865: else
1.10 paf 2866: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867: for as_dir in $PATH
2868: do
2869: IFS=$as_save_IFS
2870: test -z "$as_dir" && as_dir=.
2871: for ac_exec_ext in '' $ac_executable_extensions; do
2872: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2873: ac_cv_prog_ac_ct_CC="gcc"
2874: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875: break 2
2876: fi
2877: done
2878: done
2879:
2880: fi
1.1 parser 2881: fi
1.10 paf 2882: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2883: if test -n "$ac_ct_CC"; then
2884: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2885: echo "${ECHO_T}$ac_ct_CC" >&6
2886: else
2887: echo "$as_me:$LINENO: result: no" >&5
2888: echo "${ECHO_T}no" >&6
1.1 parser 2889: fi
1.10 paf 2890:
2891: CC=$ac_ct_CC
1.1 parser 2892: else
1.10 paf 2893: CC="$ac_cv_prog_CC"
1.1 parser 2894: fi
2895:
1.10 paf 2896: if test -z "$CC"; then
2897: if test -n "$ac_tool_prefix"; then
2898: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2899: set dummy ${ac_tool_prefix}cc; ac_word=$2
2900: echo "$as_me:$LINENO: checking for $ac_word" >&5
2901: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2902: if test "${ac_cv_prog_CC+set}" = set; then
2903: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2904: else
2905: if test -n "$CC"; then
2906: ac_cv_prog_CC="$CC" # Let the user override the test.
2907: else
1.10 paf 2908: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909: for as_dir in $PATH
2910: do
2911: IFS=$as_save_IFS
2912: test -z "$as_dir" && as_dir=.
2913: for ac_exec_ext in '' $ac_executable_extensions; do
2914: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915: ac_cv_prog_CC="${ac_tool_prefix}cc"
2916: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2917: break 2
2918: fi
2919: done
2920: done
2921:
1.1 parser 2922: fi
2923: fi
1.10 paf 2924: CC=$ac_cv_prog_CC
1.1 parser 2925: if test -n "$CC"; then
1.10 paf 2926: echo "$as_me:$LINENO: result: $CC" >&5
2927: echo "${ECHO_T}$CC" >&6
2928: else
2929: echo "$as_me:$LINENO: result: no" >&5
2930: echo "${ECHO_T}no" >&6
2931: fi
2932:
2933: fi
2934: if test -z "$ac_cv_prog_CC"; then
2935: ac_ct_CC=$CC
2936: # Extract the first word of "cc", so it can be a program name with args.
2937: set dummy cc; ac_word=$2
2938: echo "$as_me:$LINENO: checking for $ac_word" >&5
2939: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2940: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2941: echo $ECHO_N "(cached) $ECHO_C" >&6
2942: else
2943: if test -n "$ac_ct_CC"; then
2944: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2945: else
2946: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947: for as_dir in $PATH
2948: do
2949: IFS=$as_save_IFS
2950: test -z "$as_dir" && as_dir=.
2951: for ac_exec_ext in '' $ac_executable_extensions; do
2952: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953: ac_cv_prog_ac_ct_CC="cc"
2954: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955: break 2
2956: fi
2957: done
2958: done
2959:
2960: fi
2961: fi
2962: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2963: if test -n "$ac_ct_CC"; then
2964: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2965: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 parser 2966: else
1.10 paf 2967: echo "$as_me:$LINENO: result: no" >&5
2968: echo "${ECHO_T}no" >&6
1.1 parser 2969: fi
2970:
1.10 paf 2971: CC=$ac_ct_CC
2972: else
2973: CC="$ac_cv_prog_CC"
2974: fi
2975:
2976: fi
1.1 parser 2977: if test -z "$CC"; then
2978: # Extract the first word of "cc", so it can be a program name with args.
2979: set dummy cc; ac_word=$2
1.10 paf 2980: echo "$as_me:$LINENO: checking for $ac_word" >&5
2981: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2982: if test "${ac_cv_prog_CC+set}" = set; then
2983: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2984: else
2985: if test -n "$CC"; then
2986: ac_cv_prog_CC="$CC" # Let the user override the test.
2987: else
2988: ac_prog_rejected=no
1.10 paf 2989: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990: for as_dir in $PATH
2991: do
2992: IFS=$as_save_IFS
2993: test -z "$as_dir" && as_dir=.
2994: for ac_exec_ext in '' $ac_executable_extensions; do
2995: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2997: ac_prog_rejected=yes
2998: continue
2999: fi
3000: ac_cv_prog_CC="cc"
3001: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3002: break 2
3003: fi
3004: done
3005: done
3006:
1.1 parser 3007: if test $ac_prog_rejected = yes; then
3008: # We found a bogon in the path, so make sure we never use it.
3009: set dummy $ac_cv_prog_CC
3010: shift
1.10 paf 3011: if test $# != 0; then
1.1 parser 3012: # We chose a different compiler from the bogus one.
3013: # However, it has the same basename, so the bogon will be chosen
3014: # first if we set CC to just the basename; use the full file name.
3015: shift
1.10 paf 3016: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 3017: fi
3018: fi
3019: fi
3020: fi
1.10 paf 3021: CC=$ac_cv_prog_CC
1.1 parser 3022: if test -n "$CC"; then
1.10 paf 3023: echo "$as_me:$LINENO: result: $CC" >&5
3024: echo "${ECHO_T}$CC" >&6
1.1 parser 3025: else
1.10 paf 3026: echo "$as_me:$LINENO: result: no" >&5
3027: echo "${ECHO_T}no" >&6
1.1 parser 3028: fi
3029:
1.10 paf 3030: fi
3031: if test -z "$CC"; then
3032: if test -n "$ac_tool_prefix"; then
3033: for ac_prog in cl
3034: do
3035: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3036: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3037: echo "$as_me:$LINENO: checking for $ac_word" >&5
3038: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3039: if test "${ac_cv_prog_CC+set}" = set; then
3040: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3041: else
3042: if test -n "$CC"; then
3043: ac_cv_prog_CC="$CC" # Let the user override the test.
3044: else
1.10 paf 3045: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046: for as_dir in $PATH
3047: do
3048: IFS=$as_save_IFS
3049: test -z "$as_dir" && as_dir=.
3050: for ac_exec_ext in '' $ac_executable_extensions; do
3051: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3053: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3054: break 2
3055: fi
3056: done
3057: done
3058:
1.1 parser 3059: fi
3060: fi
1.10 paf 3061: CC=$ac_cv_prog_CC
1.1 parser 3062: if test -n "$CC"; then
1.10 paf 3063: echo "$as_me:$LINENO: result: $CC" >&5
3064: echo "${ECHO_T}$CC" >&6
1.1 parser 3065: else
1.10 paf 3066: echo "$as_me:$LINENO: result: no" >&5
3067: echo "${ECHO_T}no" >&6
3068: fi
3069:
3070: test -n "$CC" && break
3071: done
1.1 parser 3072: fi
1.10 paf 3073: if test -z "$CC"; then
3074: ac_ct_CC=$CC
3075: for ac_prog in cl
3076: do
3077: # Extract the first word of "$ac_prog", so it can be a program name with args.
3078: set dummy $ac_prog; ac_word=$2
3079: echo "$as_me:$LINENO: checking for $ac_word" >&5
3080: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3081: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3082: echo $ECHO_N "(cached) $ECHO_C" >&6
3083: else
3084: if test -n "$ac_ct_CC"; then
3085: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3086: else
3087: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088: for as_dir in $PATH
3089: do
3090: IFS=$as_save_IFS
3091: test -z "$as_dir" && as_dir=.
3092: for ac_exec_ext in '' $ac_executable_extensions; do
3093: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094: ac_cv_prog_ac_ct_CC="$ac_prog"
3095: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3096: break 2
1.1 parser 3097: fi
1.10 paf 3098: done
3099: done
3100:
3101: fi
3102: fi
3103: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3104: if test -n "$ac_ct_CC"; then
3105: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3106: echo "${ECHO_T}$ac_ct_CC" >&6
3107: else
3108: echo "$as_me:$LINENO: result: no" >&5
3109: echo "${ECHO_T}no" >&6
1.1 parser 3110: fi
3111:
1.10 paf 3112: test -n "$ac_ct_CC" && break
3113: done
1.1 parser 3114:
1.10 paf 3115: CC=$ac_ct_CC
3116: fi
1.1 parser 3117:
1.10 paf 3118: fi
1.1 parser 3119:
3120:
1.10 paf 3121: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3122: See \`config.log' for more details." >&5
3123: echo "$as_me: error: no acceptable C compiler found in \$PATH
3124: See \`config.log' for more details." >&2;}
3125: { (exit 1); exit 1; }; }
3126:
3127: # Provide some information about the compiler.
3128: echo "$as_me:$LINENO:" \
3129: "checking for C compiler version" >&5
3130: ac_compiler=`set X $ac_compile; echo $2`
3131: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3132: (eval $ac_compiler --version </dev/null >&5) 2>&5
3133: ac_status=$?
3134: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135: (exit $ac_status); }
3136: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3137: (eval $ac_compiler -v </dev/null >&5) 2>&5
3138: ac_status=$?
3139: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140: (exit $ac_status); }
3141: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3142: (eval $ac_compiler -V </dev/null >&5) 2>&5
3143: ac_status=$?
3144: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145: (exit $ac_status); }
3146:
3147: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3148: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3149: if test "${ac_cv_c_compiler_gnu+set}" = set; then
3150: echo $ECHO_N "(cached) $ECHO_C" >&6
3151: else
3152: cat >conftest.$ac_ext <<_ACEOF
3153: /* confdefs.h. */
3154: _ACEOF
3155: cat confdefs.h >>conftest.$ac_ext
3156: cat >>conftest.$ac_ext <<_ACEOF
3157: /* end confdefs.h. */
3158:
3159: int
3160: main ()
3161: {
3162: #ifndef __GNUC__
3163: choke me
1.1 parser 3164: #endif
3165:
1.10 paf 3166: ;
3167: return 0;
3168: }
3169: _ACEOF
3170: rm -f conftest.$ac_objext
3171: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 3172: (eval $ac_compile) 2>conftest.er1
1.10 paf 3173: ac_status=$?
1.16 paf 3174: grep -v '^ *+' conftest.er1 >conftest.err
3175: rm -f conftest.er1
3176: cat conftest.err >&5
1.10 paf 3177: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178: (exit $ac_status); } &&
1.16 paf 3179: { ac_try='test -z "$ac_c_werror_flag"
3180: || test ! -s conftest.err'
3181: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182: (eval $ac_try) 2>&5
3183: ac_status=$?
3184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185: (exit $ac_status); }; } &&
3186: { ac_try='test -s conftest.$ac_objext'
1.10 paf 3187: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188: (eval $ac_try) 2>&5
3189: ac_status=$?
3190: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191: (exit $ac_status); }; }; then
3192: ac_compiler_gnu=yes
3193: else
3194: echo "$as_me: failed program was:" >&5
3195: sed 's/^/| /' conftest.$ac_ext >&5
3196:
3197: ac_compiler_gnu=no
3198: fi
1.16 paf 3199: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 3200: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3201:
3202: fi
3203: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3204: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3205: GCC=`test $ac_compiler_gnu = yes && echo yes`
3206: ac_test_CFLAGS=${CFLAGS+set}
3207: ac_save_CFLAGS=$CFLAGS
3208: CFLAGS="-g"
3209: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3210: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3211: if test "${ac_cv_prog_cc_g+set}" = set; then
3212: echo $ECHO_N "(cached) $ECHO_C" >&6
3213: else
3214: cat >conftest.$ac_ext <<_ACEOF
3215: /* confdefs.h. */
3216: _ACEOF
3217: cat confdefs.h >>conftest.$ac_ext
3218: cat >>conftest.$ac_ext <<_ACEOF
3219: /* end confdefs.h. */
3220:
3221: int
3222: main ()
3223: {
3224:
3225: ;
3226: return 0;
3227: }
3228: _ACEOF
3229: rm -f conftest.$ac_objext
3230: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 3231: (eval $ac_compile) 2>conftest.er1
1.10 paf 3232: ac_status=$?
1.16 paf 3233: grep -v '^ *+' conftest.er1 >conftest.err
3234: rm -f conftest.er1
3235: cat conftest.err >&5
1.10 paf 3236: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237: (exit $ac_status); } &&
1.16 paf 3238: { ac_try='test -z "$ac_c_werror_flag"
3239: || test ! -s conftest.err'
3240: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241: (eval $ac_try) 2>&5
3242: ac_status=$?
3243: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244: (exit $ac_status); }; } &&
3245: { ac_try='test -s conftest.$ac_objext'
1.10 paf 3246: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247: (eval $ac_try) 2>&5
3248: ac_status=$?
3249: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250: (exit $ac_status); }; }; then
3251: ac_cv_prog_cc_g=yes
1.1 parser 3252: else
1.10 paf 3253: echo "$as_me: failed program was:" >&5
3254: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3255:
1.10 paf 3256: ac_cv_prog_cc_g=no
1.1 parser 3257: fi
1.16 paf 3258: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 3259: fi
1.10 paf 3260: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3261: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 parser 3262: if test "$ac_test_CFLAGS" = set; then
1.10 paf 3263: CFLAGS=$ac_save_CFLAGS
1.1 parser 3264: elif test $ac_cv_prog_cc_g = yes; then
3265: if test "$GCC" = yes; then
3266: CFLAGS="-g -O2"
3267: else
3268: CFLAGS="-g"
3269: fi
3270: else
3271: if test "$GCC" = yes; then
3272: CFLAGS="-O2"
3273: else
3274: CFLAGS=
3275: fi
3276: fi
1.10 paf 3277: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3278: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3279: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3280: echo $ECHO_N "(cached) $ECHO_C" >&6
3281: else
3282: ac_cv_prog_cc_stdc=no
3283: ac_save_CC=$CC
3284: cat >conftest.$ac_ext <<_ACEOF
3285: /* confdefs.h. */
3286: _ACEOF
3287: cat confdefs.h >>conftest.$ac_ext
3288: cat >>conftest.$ac_ext <<_ACEOF
3289: /* end confdefs.h. */
3290: #include <stdarg.h>
3291: #include <stdio.h>
3292: #include <sys/types.h>
3293: #include <sys/stat.h>
3294: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3295: struct buf { int x; };
3296: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3297: static char *e (p, i)
3298: char **p;
3299: int i;
3300: {
3301: return p[i];
3302: }
3303: static char *f (char * (*g) (char **, int), char **p, ...)
3304: {
3305: char *s;
3306: va_list v;
3307: va_start (v,p);
3308: s = g (p, va_arg (v,int));
3309: va_end (v);
3310: return s;
3311: }
1.16 paf 3312:
3313: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3314: function prototypes and stuff, but not '\xHH' hex character constants.
3315: These don't provoke an error unfortunately, instead are silently treated
3316: as 'x'. The following induces an error, until -std1 is added to get
3317: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3318: array size at least. It's necessary to write '\x00'==0 to get something
3319: that's true only with -std1. */
3320: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3321:
1.10 paf 3322: int test (int i, double x);
3323: struct s1 {int (*f) (int a);};
3324: struct s2 {int (*f) (double a);};
3325: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3326: int argc;
3327: char **argv;
3328: int
3329: main ()
3330: {
3331: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3332: ;
3333: return 0;
3334: }
3335: _ACEOF
3336: # Don't try gcc -ansi; that turns off useful extensions and
3337: # breaks some systems' header files.
3338: # AIX -qlanglvl=ansi
3339: # Ultrix and OSF/1 -std1
3340: # HP-UX 10.20 and later -Ae
3341: # HP-UX older versions -Aa -D_HPUX_SOURCE
3342: # SVR4 -Xc -D__EXTENSIONS__
3343: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3344: do
3345: CC="$ac_save_CC $ac_arg"
3346: rm -f conftest.$ac_objext
3347: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 3348: (eval $ac_compile) 2>conftest.er1
1.10 paf 3349: ac_status=$?
1.16 paf 3350: grep -v '^ *+' conftest.er1 >conftest.err
3351: rm -f conftest.er1
3352: cat conftest.err >&5
1.10 paf 3353: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354: (exit $ac_status); } &&
1.16 paf 3355: { ac_try='test -z "$ac_c_werror_flag"
3356: || test ! -s conftest.err'
3357: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358: (eval $ac_try) 2>&5
3359: ac_status=$?
3360: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361: (exit $ac_status); }; } &&
3362: { ac_try='test -s conftest.$ac_objext'
1.10 paf 3363: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364: (eval $ac_try) 2>&5
3365: ac_status=$?
3366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367: (exit $ac_status); }; }; then
3368: ac_cv_prog_cc_stdc=$ac_arg
3369: break
3370: else
3371: echo "$as_me: failed program was:" >&5
3372: sed 's/^/| /' conftest.$ac_ext >&5
3373:
3374: fi
1.16 paf 3375: rm -f conftest.err conftest.$ac_objext
1.10 paf 3376: done
3377: rm -f conftest.$ac_ext conftest.$ac_objext
3378: CC=$ac_save_CC
3379:
3380: fi
3381:
3382: case "x$ac_cv_prog_cc_stdc" in
3383: x|xno)
3384: echo "$as_me:$LINENO: result: none needed" >&5
3385: echo "${ECHO_T}none needed" >&6 ;;
3386: *)
3387: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3388: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3389: CC="$CC $ac_cv_prog_cc_stdc" ;;
3390: esac
3391:
3392: # Some people use a C++ compiler to compile C. Since we use `exit',
3393: # in C++ we need to declare it. In case someone uses the same compiler
3394: # for both compiling C and C++ we need to have the C++ compiler decide
3395: # the declaration of exit, since it's the most demanding environment.
3396: cat >conftest.$ac_ext <<_ACEOF
3397: #ifndef __cplusplus
3398: choke me
3399: #endif
3400: _ACEOF
3401: rm -f conftest.$ac_objext
3402: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 3403: (eval $ac_compile) 2>conftest.er1
1.10 paf 3404: ac_status=$?
1.16 paf 3405: grep -v '^ *+' conftest.er1 >conftest.err
3406: rm -f conftest.er1
3407: cat conftest.err >&5
1.10 paf 3408: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409: (exit $ac_status); } &&
1.16 paf 3410: { ac_try='test -z "$ac_c_werror_flag"
3411: || test ! -s conftest.err'
3412: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413: (eval $ac_try) 2>&5
3414: ac_status=$?
3415: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416: (exit $ac_status); }; } &&
3417: { ac_try='test -s conftest.$ac_objext'
1.10 paf 3418: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419: (eval $ac_try) 2>&5
3420: ac_status=$?
3421: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422: (exit $ac_status); }; }; then
3423: for ac_declaration in \
1.16 paf 3424: '' \
1.10 paf 3425: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3426: 'extern "C" void std::exit (int); using std::exit;' \
3427: 'extern "C" void exit (int) throw ();' \
3428: 'extern "C" void exit (int);' \
3429: 'void exit (int);'
3430: do
3431: cat >conftest.$ac_ext <<_ACEOF
3432: /* confdefs.h. */
3433: _ACEOF
3434: cat confdefs.h >>conftest.$ac_ext
3435: cat >>conftest.$ac_ext <<_ACEOF
3436: /* end confdefs.h. */
1.16 paf 3437: $ac_declaration
1.10 paf 3438: #include <stdlib.h>
3439: int
3440: main ()
3441: {
3442: exit (42);
3443: ;
3444: return 0;
3445: }
3446: _ACEOF
3447: rm -f conftest.$ac_objext
3448: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 3449: (eval $ac_compile) 2>conftest.er1
1.10 paf 3450: ac_status=$?
1.16 paf 3451: grep -v '^ *+' conftest.er1 >conftest.err
3452: rm -f conftest.er1
3453: cat conftest.err >&5
1.10 paf 3454: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455: (exit $ac_status); } &&
1.16 paf 3456: { ac_try='test -z "$ac_c_werror_flag"
3457: || test ! -s conftest.err'
3458: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459: (eval $ac_try) 2>&5
3460: ac_status=$?
3461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462: (exit $ac_status); }; } &&
3463: { ac_try='test -s conftest.$ac_objext'
1.10 paf 3464: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465: (eval $ac_try) 2>&5
3466: ac_status=$?
3467: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468: (exit $ac_status); }; }; then
3469: :
3470: else
3471: echo "$as_me: failed program was:" >&5
3472: sed 's/^/| /' conftest.$ac_ext >&5
3473:
3474: continue
3475: fi
1.16 paf 3476: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 3477: cat >conftest.$ac_ext <<_ACEOF
3478: /* confdefs.h. */
3479: _ACEOF
3480: cat confdefs.h >>conftest.$ac_ext
3481: cat >>conftest.$ac_ext <<_ACEOF
3482: /* end confdefs.h. */
3483: $ac_declaration
3484: int
3485: main ()
3486: {
3487: exit (42);
3488: ;
3489: return 0;
3490: }
3491: _ACEOF
3492: rm -f conftest.$ac_objext
3493: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 3494: (eval $ac_compile) 2>conftest.er1
1.10 paf 3495: ac_status=$?
1.16 paf 3496: grep -v '^ *+' conftest.er1 >conftest.err
3497: rm -f conftest.er1
3498: cat conftest.err >&5
1.10 paf 3499: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500: (exit $ac_status); } &&
1.16 paf 3501: { ac_try='test -z "$ac_c_werror_flag"
3502: || test ! -s conftest.err'
3503: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504: (eval $ac_try) 2>&5
3505: ac_status=$?
3506: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507: (exit $ac_status); }; } &&
3508: { ac_try='test -s conftest.$ac_objext'
1.10 paf 3509: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510: (eval $ac_try) 2>&5
3511: ac_status=$?
3512: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513: (exit $ac_status); }; }; then
3514: break
3515: else
3516: echo "$as_me: failed program was:" >&5
3517: sed 's/^/| /' conftest.$ac_ext >&5
3518:
3519: fi
1.16 paf 3520: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 3521: done
3522: rm -f conftest*
3523: if test -n "$ac_declaration"; then
3524: echo '#ifdef __cplusplus' >>confdefs.h
3525: echo $ac_declaration >>confdefs.h
3526: echo '#endif' >>confdefs.h
3527: fi
3528:
3529: else
3530: echo "$as_me: failed program was:" >&5
3531: sed 's/^/| /' conftest.$ac_ext >&5
3532:
3533: fi
1.16 paf 3534: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 3535: ac_ext=c
3536: ac_cpp='$CPP $CPPFLAGS'
3537: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 3540:
3541: depcc="$CC" am_compiler_list=
3542:
3543: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3544: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3545: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3546: echo $ECHO_N "(cached) $ECHO_C" >&6
3547: else
3548: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3549: # We make a subdir and do the tests there. Otherwise we can end up
3550: # making bogus files that we don't know about and never remove. For
3551: # instance it was reported that on HP-UX the gcc test will end up
3552: # making a dummy file named `D' -- because `-MD' means `put the output
3553: # in D'.
3554: mkdir conftest.dir
3555: # Copy depcomp to subdir because otherwise we won't find it if we're
3556: # using a relative directory.
3557: cp "$am_depcomp" conftest.dir
3558: cd conftest.dir
1.16 paf 3559: # We will build objects and dependencies in a subdirectory because
3560: # it helps to detect inapplicable dependency modes. For instance
3561: # both Tru64's cc and ICC support -MD to output dependencies as a
3562: # side effect of compilation, but ICC will put the dependencies in
3563: # the current directory while Tru64 will put them in the object
3564: # directory.
3565: mkdir sub
1.10 paf 3566:
3567: am_cv_CC_dependencies_compiler_type=none
3568: if test "$am_compiler_list" = ""; then
3569: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3570: fi
3571: for depmode in $am_compiler_list; do
1.16 paf 3572: # Setup a source with many dependencies, because some compilers
3573: # like to wrap large dependency lists on column 80 (with \), and
3574: # we should not choose a depcomp mode which is confused by this.
3575: #
1.10 paf 3576: # We need to recreate these files for each test, as the compiler may
3577: # overwrite some of them when testing with obscure command lines.
3578: # This happens at least with the AIX C compiler.
1.16 paf 3579: : > sub/conftest.c
3580: for i in 1 2 3 4 5 6; do
3581: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3582: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3583: # Solaris 8's {/usr,}/bin/sh.
3584: touch sub/conftst$i.h
3585: done
3586: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.10 paf 3587:
3588: case $depmode in
3589: nosideeffect)
3590: # after this tag, mechanisms are not by side-effect, so they'll
3591: # only be used when explicitly requested
3592: if test "x$enable_dependency_tracking" = xyes; then
3593: continue
3594: else
3595: break
3596: fi
3597: ;;
3598: none) break ;;
3599: esac
3600: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3601: # mode. It turns out that the SunPro C++ compiler does not properly
3602: # handle `-M -o', and we need to detect this.
3603: if depmode=$depmode \
1.16 paf 3604: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3605: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3606: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3607: >/dev/null 2>conftest.err &&
3608: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3609: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.10 paf 3610: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.16 paf 3611: # icc doesn't choke on unknown options, it will just issue warnings
3612: # or remarks (even with -Werror). So we grep stderr for any message
3613: # that says an option was ignored or not supported.
3614: # When given -MP, icc 7.0 and 7.1 complain thusly:
3615: # icc: Command line warning: ignoring option '-M'; no argument required
3616: # The diagnosis changed in icc 8.0:
3617: # icc: Command line remark: option '-MP' not supported
3618: if (grep 'ignoring option' conftest.err ||
3619: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3620: am_cv_CC_dependencies_compiler_type=$depmode
3621: break
3622: fi
1.10 paf 3623: fi
3624: done
3625:
3626: cd ..
3627: rm -rf conftest.dir
3628: else
3629: am_cv_CC_dependencies_compiler_type=none
3630: fi
3631:
3632: fi
3633: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3634: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3635: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3636:
3637:
3638:
3639: if
3640: test "x$enable_dependency_tracking" != xno \
3641: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3642: am__fastdepCC_TRUE=
3643: am__fastdepCC_FALSE='#'
3644: else
3645: am__fastdepCC_TRUE='#'
3646: am__fastdepCC_FALSE=
3647: fi
3648:
3649:
1.15 paf 3650:
3651: ac_ext=c
3652: ac_cpp='$CPP $CPPFLAGS'
3653: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656:
3657:
3658: case $enable_ltdl_convenience in
3659: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3660: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3661: { (exit 1); exit 1; }; } ;;
3662: "") enable_ltdl_convenience=yes
3663: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3664: esac
3665: LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
3666: LTDLINCL='-I${top_srcdir}/''libltdl'
3667: # For backwards non-gettext consistent compatibility...
3668: INCLTDL="$LTDLINCL"
3669:
3670:
3671:
3672:
3673: # Check whether --enable-static or --disable-static was given.
3674: if test "${enable_static+set}" = set; then
3675: enableval="$enable_static"
3676: p=${PACKAGE-default}
3677: case $enableval in
3678: yes) enable_static=yes ;;
3679: no) enable_static=no ;;
3680: *)
3681: enable_static=no
3682: # Look at the argument we got. We use all the common list separators.
3683: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3684: for pkg in $enableval; do
3685: if test "X$pkg" = "X$p"; then
3686: enable_static=yes
3687: fi
3688: done
3689: IFS="$ac_save_ifs"
3690: ;;
3691: esac
3692: else
3693: enable_static=no
3694: fi;
3695:
3696: # Check whether --enable-shared or --disable-shared was given.
3697: if test "${enable_shared+set}" = set; then
3698: enableval="$enable_shared"
3699: p=${PACKAGE-default}
3700: case $enableval in
3701: yes) enable_shared=yes ;;
3702: no) enable_shared=no ;;
3703: *)
3704: enable_shared=no
3705: # Look at the argument we got. We use all the common list separators.
3706: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3707: for pkg in $enableval; do
3708: if test "X$pkg" = "X$p"; then
3709: enable_shared=yes
3710: fi
3711: done
3712: IFS="$ac_save_ifs"
3713: ;;
3714: esac
3715: else
3716: enable_shared=yes
3717: fi;
3718: # Check whether --enable-fast-install or --disable-fast-install was given.
3719: if test "${enable_fast_install+set}" = set; then
3720: enableval="$enable_fast_install"
3721: p=${PACKAGE-default}
3722: case $enableval in
3723: yes) enable_fast_install=yes ;;
3724: no) enable_fast_install=no ;;
3725: *)
3726: enable_fast_install=no
3727: # Look at the argument we got. We use all the common list separators.
3728: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3729: for pkg in $enableval; do
3730: if test "X$pkg" = "X$p"; then
3731: enable_fast_install=yes
3732: fi
3733: done
3734: IFS="$ac_save_ifs"
3735: ;;
3736: esac
3737: else
3738: enable_fast_install=yes
3739: fi;
3740: # Make sure we can run config.sub.
3741: $ac_config_sub sun4 >/dev/null 2>&1 ||
3742: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3743: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3744: { (exit 1); exit 1; }; }
3745:
3746: echo "$as_me:$LINENO: checking build system type" >&5
3747: echo $ECHO_N "checking build system type... $ECHO_C" >&6
3748: if test "${ac_cv_build+set}" = set; then
3749: echo $ECHO_N "(cached) $ECHO_C" >&6
3750: else
3751: ac_cv_build_alias=$build_alias
3752: test -z "$ac_cv_build_alias" &&
3753: ac_cv_build_alias=`$ac_config_guess`
3754: test -z "$ac_cv_build_alias" &&
3755: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3756: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3757: { (exit 1); exit 1; }; }
3758: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3759: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3760: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3761: { (exit 1); exit 1; }; }
3762:
3763: fi
3764: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3765: echo "${ECHO_T}$ac_cv_build" >&6
3766: build=$ac_cv_build
3767: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3768: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3769: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3770:
3771:
3772: echo "$as_me:$LINENO: checking host system type" >&5
3773: echo $ECHO_N "checking host system type... $ECHO_C" >&6
3774: if test "${ac_cv_host+set}" = set; then
3775: echo $ECHO_N "(cached) $ECHO_C" >&6
3776: else
3777: ac_cv_host_alias=$host_alias
3778: test -z "$ac_cv_host_alias" &&
3779: ac_cv_host_alias=$ac_cv_build_alias
3780: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3781: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3782: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3783: { (exit 1); exit 1; }; }
3784:
3785: fi
3786: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3787: echo "${ECHO_T}$ac_cv_host" >&6
3788: host=$ac_cv_host
3789: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3790: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3791: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3792:
3793:
1.10 paf 3794: # Find the correct PATH separator. Usually this is `:', but
3795: # DJGPP uses `;' like DOS.
3796: if test "X${PATH_SEPARATOR+set}" != Xset; then
3797: UNAME=${UNAME-`uname 2>/dev/null`}
3798: case X$UNAME in
3799: *-DOS) lt_cv_sys_path_separator=';' ;;
3800: *) lt_cv_sys_path_separator=':' ;;
3801: esac
3802: PATH_SEPARATOR=$lt_cv_sys_path_separator
3803: fi
3804:
1.1 parser 3805:
3806: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3807: if test "${with_gnu_ld+set}" = set; then
3808: withval="$with_gnu_ld"
3809: test "$withval" = no || with_gnu_ld=yes
3810: else
3811: with_gnu_ld=no
1.10 paf 3812: fi;
1.1 parser 3813: ac_prog=ld
1.10 paf 3814: if test "$GCC" = yes; then
1.1 parser 3815: # Check if gcc -print-prog-name=ld gives a path.
1.10 paf 3816: echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3817: echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3818: case $host in
3819: *-*-mingw*)
3820: # gcc leaves a trailing carriage return which upsets mingw
3821: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3822: *)
3823: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3824: esac
3825: case $ac_prog in
1.1 parser 3826: # Accept absolute paths.
3827: [\\/]* | [A-Za-z]:[\\/]*)
3828: re_direlt='/[^/][^/]*/\.\./'
3829: # Canonicalize the path of ld
3830: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3831: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3832: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3833: done
3834: test -z "$LD" && LD="$ac_prog"
3835: ;;
3836: "")
3837: # If it fails, then pretend we aren't using GCC.
3838: ac_prog=ld
3839: ;;
3840: *)
3841: # If it is relative, then search for the first ld in PATH.
3842: with_gnu_ld=unknown
3843: ;;
3844: esac
3845: elif test "$with_gnu_ld" = yes; then
1.10 paf 3846: echo "$as_me:$LINENO: checking for GNU ld" >&5
3847: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.1 parser 3848: else
1.10 paf 3849: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3850: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.1 parser 3851: fi
1.10 paf 3852: if test "${lt_cv_path_LD+set}" = set; then
3853: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3854: else
3855: if test -z "$LD"; then
1.10 paf 3856: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3857: for ac_dir in $PATH; do
3858: test -z "$ac_dir" && ac_dir=.
3859: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.10 paf 3860: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 3861: # Check to see if the program is GNU ld. I'd rather use --version,
3862: # but apparently some GNU ld's only accept -v.
3863: # Break only if it was the GNU/non-GNU ld that we prefer.
1.10 paf 3864: if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1.1 parser 3865: test "$with_gnu_ld" != no && break
3866: else
3867: test "$with_gnu_ld" != yes && break
3868: fi
3869: fi
3870: done
3871: IFS="$ac_save_ifs"
3872: else
1.10 paf 3873: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 3874: fi
3875: fi
3876:
1.10 paf 3877: LD="$lt_cv_path_LD"
1.1 parser 3878: if test -n "$LD"; then
1.10 paf 3879: echo "$as_me:$LINENO: result: $LD" >&5
3880: echo "${ECHO_T}$LD" >&6
1.1 parser 3881: else
1.10 paf 3882: echo "$as_me:$LINENO: result: no" >&5
3883: echo "${ECHO_T}no" >&6
1.1 parser 3884: fi
1.10 paf 3885: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3886: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3887: { (exit 1); exit 1; }; }
3888: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3889: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3890: if test "${lt_cv_prog_gnu_ld+set}" = set; then
3891: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3892: else
3893: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3894: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1.10 paf 3895: lt_cv_prog_gnu_ld=yes
1.1 parser 3896: else
1.10 paf 3897: lt_cv_prog_gnu_ld=no
1.1 parser 3898: fi
3899: fi
1.10 paf 3900: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3901: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3902: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 3903:
3904:
1.10 paf 3905: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3906: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3907: if test "${lt_cv_ld_reload_flag+set}" = set; then
3908: echo $ECHO_N "(cached) $ECHO_C" >&6
3909: else
3910: lt_cv_ld_reload_flag='-r'
3911: fi
3912: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3913: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3914: reload_flag=$lt_cv_ld_reload_flag
3915: test -n "$reload_flag" && reload_flag=" $reload_flag"
1.1 parser 3916:
1.10 paf 3917: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3918: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3919: if test "${lt_cv_path_NM+set}" = set; then
3920: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3921: else
3922: if test -n "$NM"; then
3923: # Let the user override the test.
1.10 paf 3924: lt_cv_path_NM="$NM"
1.1 parser 3925: else
1.10 paf 3926: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3927: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3928: test -z "$ac_dir" && ac_dir=.
1.10 paf 3929: tmp_nm=$ac_dir/${ac_tool_prefix}nm
3930: if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1.1 parser 3931: # Check to see if the nm accepts a BSD-compat flag.
3932: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3933: # nm: unknown option "B" ignored
1.10 paf 3934: # Tru64's nm complains that /dev/null is an invalid object file
3935: if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3936: lt_cv_path_NM="$tmp_nm -B"
1.1 parser 3937: break
1.10 paf 3938: elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3939: lt_cv_path_NM="$tmp_nm -p"
1.1 parser 3940: break
3941: else
1.10 paf 3942: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1.1 parser 3943: continue # so that we can try to find one that supports BSD flags
3944: fi
3945: fi
3946: done
3947: IFS="$ac_save_ifs"
1.10 paf 3948: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1.1 parser 3949: fi
3950: fi
3951:
1.10 paf 3952: NM="$lt_cv_path_NM"
3953: echo "$as_me:$LINENO: result: $NM" >&5
3954: echo "${ECHO_T}$NM" >&6
1.1 parser 3955:
1.10 paf 3956: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3957: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3958: if test "${lt_cv_path_SED+set}" = set; then
3959: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3960: else
1.10 paf 3961: # Loop through the user's path and test for sed and gsed.
3962: # Then use that list of sed's as ones to test for truncation.
3963: as_executable_p="test -f"
3964: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965: for as_dir in $PATH
3966: do
3967: IFS=$as_save_IFS
3968: test -z "$as_dir" && as_dir=.
3969: for ac_prog in sed gsed; do
3970: for ac_exec_ext in '' $ac_executable_extensions; do
3971: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3972: _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3973: fi
3974: done
3975: done
3976: done
3977:
3978: # Create a temporary directory, and hook for its removal unless debugging.
3979: $debug ||
3980: {
3981: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3982: trap '{ (exit 1); exit 1; }' 1 2 13 15
3983: }
3984:
3985: # Create a (secure) tmp directory for tmp files.
3986: : ${TMPDIR=/tmp}
3987: {
3988: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3989: test -n "$tmp" && test -d "$tmp"
3990: } ||
3991: {
3992: tmp=$TMPDIR/sed$$-$RANDOM
3993: (umask 077 && mkdir $tmp)
3994: } ||
3995: {
3996: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3997: { (exit 1); exit 1; }
3998: }
3999: _max=0
4000: _count=0
4001: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4002: # along with /bin/sed that truncates output.
4003: for _sed in $_sed_list /usr/xpg4/bin/sed; do
4004: test ! -f ${_sed} && break
4005: cat /dev/null > "$tmp/sed.in"
4006: _count=0
4007: echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
4008: # Check for GNU sed and select it if it is found.
4009: if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4010: lt_cv_path_SED=${_sed}
4011: break
4012: fi
4013: while true; do
4014: cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4015: mv "$tmp/sed.tmp" "$tmp/sed.in"
4016: cp "$tmp/sed.in" "$tmp/sed.nl"
4017: echo >>"$tmp/sed.nl"
4018: ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4019: cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4020: # 40000 chars as input seems more than enough
4021: test $_count -gt 10 && break
4022: _count=`expr $_count + 1`
4023: if test $_count -gt $_max; then
4024: _max=$_count
4025: lt_cv_path_SED=$_sed
4026: fi
4027: done
4028: done
4029: rm -rf "$tmp"
4030:
1.1 parser 4031: fi
4032:
1.10 paf 4033: if test "X$SED" != "X"; then
4034: lt_cv_path_SED=$SED
1.6 paf 4035: else
1.10 paf 4036: SED=$lt_cv_path_SED
1.6 paf 4037: fi
1.10 paf 4038: echo "$as_me:$LINENO: result: $SED" >&5
4039: echo "${ECHO_T}$SED" >&6
4040:
4041: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4042: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4043: LN_S=$as_ln_s
4044: if test "$LN_S" = "ln -s"; then
4045: echo "$as_me:$LINENO: result: yes" >&5
4046: echo "${ECHO_T}yes" >&6
4047: else
4048: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4049: echo "${ECHO_T}no, using $LN_S" >&6
4050: fi
4051:
4052: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4053: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4054: if test "${lt_cv_deplibs_check_method+set}" = set; then
4055: echo $ECHO_N "(cached) $ECHO_C" >&6
4056: else
4057: lt_cv_file_magic_cmd='$MAGIC_CMD'
4058: lt_cv_file_magic_test_file=
4059: lt_cv_deplibs_check_method='unknown'
4060: # Need to set the preceding variable on all platforms that support
4061: # interlibrary dependencies.
4062: # 'none' -- dependencies not supported.
4063: # `unknown' -- same as none, but documents that we really don't know.
4064: # 'pass_all' -- all dependencies passed with no checks.
4065: # 'test_compile' -- check by making test program.
4066: # 'file_magic [[regex]]' -- check by looking for files in library path
4067: # which responds to the $file_magic_cmd with a given egrep regex.
4068: # If you have `file' or equivalent on your system and you're not sure
4069: # whether `pass_all' will *always* work, you probably want this one.
4070:
4071: case $host_os in
4072: aix4* | aix5*)
4073: lt_cv_deplibs_check_method=pass_all
4074: ;;
1.6 paf 4075:
1.10 paf 4076: beos*)
4077: lt_cv_deplibs_check_method=pass_all
4078: ;;
1.1 parser 4079:
1.10 paf 4080: bsdi4*)
4081: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4082: lt_cv_file_magic_cmd='/usr/bin/file -L'
4083: lt_cv_file_magic_test_file=/shlib/libc.so
4084: ;;
1.1 parser 4085:
1.10 paf 4086: cygwin* | mingw* | pw32*)
4087: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4088: lt_cv_file_magic_cmd='$OBJDUMP -f'
4089: ;;
1.1 parser 4090:
1.10 paf 4091: darwin* | rhapsody*)
4092: lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4093: lt_cv_file_magic_cmd='/usr/bin/file -L'
4094: case "$host_os" in
4095: rhapsody* | darwin1.[012])
4096: lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4097: ;;
4098: *) # Darwin 1.3 on
4099: lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4100: ;;
4101: esac
4102: ;;
1.1 parser 4103:
1.10 paf 4104: freebsd*)
4105: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4106: case $host_cpu in
4107: i*86 )
4108: # Not sure whether the presence of OpenBSD here was a mistake.
4109: # Let's accept both of them until this is cleared up.
4110: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4111: lt_cv_file_magic_cmd=/usr/bin/file
4112: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 4113: ;;
4114: esac
1.10 paf 4115: else
4116: lt_cv_deplibs_check_method=pass_all
1.1 parser 4117: fi
4118: ;;
4119:
1.10 paf 4120: gnu*)
4121: lt_cv_deplibs_check_method=pass_all
4122: ;;
4123:
4124: hpux10.20*|hpux11*)
4125: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4126: lt_cv_file_magic_cmd=/usr/bin/file
4127: lt_cv_file_magic_test_file=/usr/lib/libc.sl
4128: ;;
1.1 parser 4129:
1.10 paf 4130: irix5* | irix6* | nonstopux*)
4131: case $host_os in
4132: irix5* | nonstopux*)
4133: # this will be overridden with pass_all, but let us keep it just in case
4134: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4135: ;;
4136: *)
4137: case $LD in
4138: *-32|*"-32 ") libmagic=32-bit;;
4139: *-n32|*"-n32 ") libmagic=N32;;
4140: *-64|*"-64 ") libmagic=64-bit;;
4141: *) libmagic=never-match;;
4142: esac
4143: # this will be overridden with pass_all, but let us keep it just in case
4144: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4145: ;;
4146: esac
4147: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4148: lt_cv_deplibs_check_method=pass_all
4149: ;;
1.1 parser 4150:
1.10 paf 4151: # This must be Linux ELF.
4152: linux-gnu*)
4153: case $host_cpu in
4154: alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
4155: lt_cv_deplibs_check_method=pass_all ;;
4156: *)
4157: # glibc up to 2.1.1 does not perform some relocations on ARM
4158: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4159: esac
4160: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4161: ;;
4162:
4163: netbsd*)
4164: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4165: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4166: else
4167: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4168: fi
4169: ;;
4170:
4171: newos6*)
4172: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4173: lt_cv_file_magic_cmd=/usr/bin/file
4174: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4175: ;;
1.1 parser 4176:
1.10 paf 4177: openbsd*)
4178: lt_cv_file_magic_cmd=/usr/bin/file
4179: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4180: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4181: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4182: else
4183: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1.1 parser 4184: fi
4185: ;;
4186:
1.10 paf 4187: osf3* | osf4* | osf5*)
4188: # this will be overridden with pass_all, but let us keep it just in case
4189: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4190: lt_cv_file_magic_test_file=/shlib/libc.so
4191: lt_cv_deplibs_check_method=pass_all
4192: ;;
4193:
4194: sco3.2v5*)
4195: lt_cv_deplibs_check_method=pass_all
4196: ;;
4197:
4198: solaris*)
4199: lt_cv_deplibs_check_method=pass_all
4200: lt_cv_file_magic_test_file=/lib/libc.so
4201: ;;
4202:
4203: sysv5uw[78]* | sysv4*uw2*)
4204: lt_cv_deplibs_check_method=pass_all
4205: ;;
4206:
4207: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4208: case $host_vendor in
4209: motorola)
4210: 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]'
4211: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4212: ;;
4213: ncr)
4214: lt_cv_deplibs_check_method=pass_all
4215: ;;
4216: sequent)
4217: lt_cv_file_magic_cmd='/bin/file'
4218: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4219: ;;
4220: sni)
4221: lt_cv_file_magic_cmd='/bin/file'
4222: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4223: lt_cv_file_magic_test_file=/lib/libc.so
4224: ;;
4225: siemens)
4226: lt_cv_deplibs_check_method=pass_all
4227: ;;
4228: esac
4229: ;;
4230: esac
4231:
4232: fi
4233: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4234: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4235: file_magic_cmd=$lt_cv_file_magic_cmd
4236: deplibs_check_method=$lt_cv_deplibs_check_method
4237:
4238:
4239:
4240:
4241:
4242:
4243:
4244:
4245: # Check for command to grab the raw symbol name followed by C symbol from nm.
4246: echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4247: echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4248: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4249: echo $ECHO_N "(cached) $ECHO_C" >&6
1.6 paf 4250: else
1.10 paf 4251:
4252: # These are sane defaults that work on at least a few old systems.
4253: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4254:
4255: # Character class describing NM global symbol codes.
4256: symcode='[BCDEGRST]'
4257:
4258: # Regexp to match symbols that can be accessed directly from C.
4259: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4260:
4261: # Transform the above into a raw symbol and a C symbol.
4262: symxfrm='\1 \2\3 \3'
4263:
4264: # Transform an extracted symbol line into a proper C declaration
4265: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4266:
4267: # Transform an extracted symbol line into symbol name and symbol address
4268: 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'"
4269:
4270: # Define system-specific variables.
4271: case $host_os in
4272: aix*)
4273: symcode='[BCDT]'
4274: ;;
4275: cygwin* | mingw* | pw32*)
4276: symcode='[ABCDGISTW]'
4277: ;;
4278: hpux*) # Its linker distinguishes data from code symbols
4279: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4280: 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'"
4281: ;;
4282: irix* | nonstopux*)
4283: symcode='[BCDEGRST]'
4284: ;;
4285: osf*)
4286: symcode='[BCDEGQRST]'
4287: ;;
4288: solaris* | sysv5*)
4289: symcode='[BDT]'
4290: ;;
4291: sysv4)
4292: symcode='[DFNSTU]'
4293: ;;
4294: esac
4295:
4296: # Handle CRLF in mingw tool chain
4297: opt_cr=
4298: case $host_os in
4299: mingw*)
4300: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4301: ;;
4302: esac
4303:
4304: # If we're using GNU nm, then use its standard symbol codes.
4305: if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4306: symcode='[ABCDGISTW]'
4307: fi
4308:
4309: # Try without a prefix undercore, then with it.
4310: for ac_symprfx in "" "_"; do
4311:
4312: # Write the raw and C identifiers.
4313: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4314:
4315: # Check to see that the pipe works correctly.
4316: pipe_works=no
4317: rm -f conftest*
4318: cat > conftest.$ac_ext <<EOF
4319: #ifdef __cplusplus
4320: extern "C" {
4321: #endif
4322: char nm_test_var;
4323: void nm_test_func(){}
4324: #ifdef __cplusplus
4325: }
4326: #endif
4327: int main(){nm_test_var='a';nm_test_func();return(0);}
4328: EOF
4329:
4330: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4331: (eval $ac_compile) 2>&5
4332: ac_status=$?
4333: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334: (exit $ac_status); }; then
4335: # Now try to grab the symbols.
4336: nlist=conftest.nm
4337: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4338: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4339: ac_status=$?
4340: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341: (exit $ac_status); } && test -s "$nlist"; then
4342: # Try sorting and uniquifying the output.
4343: if sort "$nlist" | uniq > "$nlist"T; then
4344: mv -f "$nlist"T "$nlist"
4345: else
4346: rm -f "$nlist"T
4347: fi
4348:
4349: # Make sure that we snagged all the symbols we need.
4350: if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4351: if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4352: cat <<EOF > conftest.$ac_ext
4353: #ifdef __cplusplus
4354: extern "C" {
4355: #endif
4356:
4357: EOF
4358: # Now generate the symbol file.
4359: eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4360:
4361: cat <<EOF >> conftest.$ac_ext
4362: #if defined (__STDC__) && __STDC__
4363: # define lt_ptr void *
4364: #else
4365: # define lt_ptr char *
4366: # define const
4367: #endif
4368:
4369: /* The mapping between symbol names and symbols. */
4370: const struct {
4371: const char *name;
4372: lt_ptr address;
4373: }
4374: lt_preloaded_symbols[] =
4375: {
4376: EOF
4377: sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4378: cat <<\EOF >> conftest.$ac_ext
4379: {0, (lt_ptr) 0}
4380: };
4381:
4382: #ifdef __cplusplus
4383: }
4384: #endif
4385: EOF
4386: # Now try linking the two files.
4387: mv conftest.$ac_objext conftstm.$ac_objext
4388: save_LIBS="$LIBS"
4389: save_CFLAGS="$CFLAGS"
4390: LIBS="conftstm.$ac_objext"
4391: CFLAGS="$CFLAGS$no_builtin_flag"
4392: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393: (eval $ac_link) 2>&5
4394: ac_status=$?
4395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396: (exit $ac_status); } && test -s conftest$ac_exeext; then
4397: pipe_works=yes
4398: fi
4399: LIBS="$save_LIBS"
4400: CFLAGS="$save_CFLAGS"
4401: else
4402: echo "cannot find nm_test_func in $nlist" >&5
4403: fi
4404: else
4405: echo "cannot find nm_test_var in $nlist" >&5
4406: fi
4407: else
4408: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
1.6 paf 4409: fi
1.10 paf 4410: else
4411: echo "$progname: failed program was:" >&5
4412: cat conftest.$ac_ext >&5
4413: fi
4414: rm -f conftest* conftst*
4415:
4416: # Do not use the global_symbol_pipe unless it works.
4417: if test "$pipe_works" = yes; then
4418: break
4419: else
4420: lt_cv_sys_global_symbol_pipe=
4421: fi
4422: done
4423:
1.6 paf 4424: fi
1.10 paf 4425:
4426: global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4427: if test -z "$lt_cv_sys_global_symbol_pipe"; then
4428: global_symbol_to_cdecl=
4429: global_symbol_to_c_name_address=
4430: else
4431: global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4432: global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
1.6 paf 4433: fi
1.10 paf 4434: if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4435: then
4436: echo "$as_me:$LINENO: result: failed" >&5
4437: echo "${ECHO_T}failed" >&6
1.6 paf 4438: else
1.10 paf 4439: echo "$as_me:$LINENO: result: ok" >&5
4440: echo "${ECHO_T}ok" >&6
1.6 paf 4441: fi
4442:
1.15 paf 4443: ac_ext=c
4444: ac_cpp='$CPP $CPPFLAGS'
4445: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4449: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4450: # On Suns, sometimes $CPP names a directory.
4451: if test -n "$CPP" && test -d "$CPP"; then
4452: CPP=
4453: fi
4454: if test -z "$CPP"; then
4455: if test "${ac_cv_prog_CPP+set}" = set; then
1.10 paf 4456: echo $ECHO_N "(cached) $ECHO_C" >&6
1.6 paf 4457: else
1.15 paf 4458: # Double quotes because CPP needs to be expanded
4459: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1.10 paf 4460: do
4461: ac_preproc_ok=false
1.15 paf 4462: for ac_c_preproc_warn_flag in '' yes
1.10 paf 4463: do
4464: # Use a header file that comes with gcc, so configuring glibc
4465: # with a fresh cross-compiler works.
4466: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4467: # <limits.h> exists even on freestanding compilers.
4468: # On the NeXT, cc -E runs the code through the compiler's parser,
4469: # not just through cpp. "Syntax error" is here to catch this case.
4470: cat >conftest.$ac_ext <<_ACEOF
4471: /* confdefs.h. */
4472: _ACEOF
4473: cat confdefs.h >>conftest.$ac_ext
4474: cat >>conftest.$ac_ext <<_ACEOF
4475: /* end confdefs.h. */
4476: #ifdef __STDC__
4477: # include <limits.h>
4478: #else
4479: # include <assert.h>
4480: #endif
1.16 paf 4481: Syntax error
1.10 paf 4482: _ACEOF
4483: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4484: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4485: ac_status=$?
4486: grep -v '^ *+' conftest.er1 >conftest.err
4487: rm -f conftest.er1
4488: cat conftest.err >&5
4489: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490: (exit $ac_status); } >/dev/null; then
4491: if test -s conftest.err; then
1.15 paf 4492: ac_cpp_err=$ac_c_preproc_warn_flag
1.16 paf 4493: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.10 paf 4494: else
4495: ac_cpp_err=
4496: fi
1.6 paf 4497: else
1.10 paf 4498: ac_cpp_err=yes
1.6 paf 4499: fi
1.10 paf 4500: if test -z "$ac_cpp_err"; then
4501: :
4502: else
4503: echo "$as_me: failed program was:" >&5
4504: sed 's/^/| /' conftest.$ac_ext >&5
4505:
4506: # Broken: fails on valid input.
4507: continue
1.6 paf 4508: fi
1.10 paf 4509: rm -f conftest.err conftest.$ac_ext
4510:
4511: # OK, works on sane cases. Now check whether non-existent headers
4512: # can be detected and how.
4513: cat >conftest.$ac_ext <<_ACEOF
4514: /* confdefs.h. */
4515: _ACEOF
4516: cat confdefs.h >>conftest.$ac_ext
4517: cat >>conftest.$ac_ext <<_ACEOF
4518: /* end confdefs.h. */
4519: #include <ac_nonexistent.h>
4520: _ACEOF
4521: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4522: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4523: ac_status=$?
4524: grep -v '^ *+' conftest.er1 >conftest.err
4525: rm -f conftest.er1
4526: cat conftest.err >&5
4527: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528: (exit $ac_status); } >/dev/null; then
4529: if test -s conftest.err; then
1.15 paf 4530: ac_cpp_err=$ac_c_preproc_warn_flag
1.16 paf 4531: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.10 paf 4532: else
4533: ac_cpp_err=
4534: fi
1.6 paf 4535: else
1.10 paf 4536: ac_cpp_err=yes
1.6 paf 4537: fi
1.10 paf 4538: if test -z "$ac_cpp_err"; then
4539: # Broken: success on invalid input.
4540: continue
4541: else
4542: echo "$as_me: failed program was:" >&5
4543: sed 's/^/| /' conftest.$ac_ext >&5
1.6 paf 4544:
1.10 paf 4545: # Passes both tests.
4546: ac_preproc_ok=:
4547: break
1.6 paf 4548: fi
1.10 paf 4549: rm -f conftest.err conftest.$ac_ext
4550:
4551: done
4552: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4553: rm -f conftest.err conftest.$ac_ext
4554: if $ac_preproc_ok; then
4555: break
1.6 paf 4556: fi
4557:
1.10 paf 4558: done
1.15 paf 4559: ac_cv_prog_CPP=$CPP
1.10 paf 4560:
4561: fi
1.15 paf 4562: CPP=$ac_cv_prog_CPP
1.6 paf 4563: else
1.15 paf 4564: ac_cv_prog_CPP=$CPP
1.10 paf 4565: fi
1.15 paf 4566: echo "$as_me:$LINENO: result: $CPP" >&5
4567: echo "${ECHO_T}$CPP" >&6
1.10 paf 4568: ac_preproc_ok=false
1.15 paf 4569: for ac_c_preproc_warn_flag in '' yes
1.10 paf 4570: do
4571: # Use a header file that comes with gcc, so configuring glibc
4572: # with a fresh cross-compiler works.
4573: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4574: # <limits.h> exists even on freestanding compilers.
4575: # On the NeXT, cc -E runs the code through the compiler's parser,
4576: # not just through cpp. "Syntax error" is here to catch this case.
4577: cat >conftest.$ac_ext <<_ACEOF
4578: /* confdefs.h. */
4579: _ACEOF
4580: cat confdefs.h >>conftest.$ac_ext
4581: cat >>conftest.$ac_ext <<_ACEOF
4582: /* end confdefs.h. */
4583: #ifdef __STDC__
4584: # include <limits.h>
4585: #else
4586: # include <assert.h>
4587: #endif
1.16 paf 4588: Syntax error
1.10 paf 4589: _ACEOF
4590: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4591: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4592: ac_status=$?
4593: grep -v '^ *+' conftest.er1 >conftest.err
4594: rm -f conftest.er1
4595: cat conftest.err >&5
4596: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597: (exit $ac_status); } >/dev/null; then
4598: if test -s conftest.err; then
1.15 paf 4599: ac_cpp_err=$ac_c_preproc_warn_flag
1.16 paf 4600: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.10 paf 4601: else
4602: ac_cpp_err=
4603: fi
1.6 paf 4604: else
1.10 paf 4605: ac_cpp_err=yes
1.6 paf 4606: fi
1.10 paf 4607: if test -z "$ac_cpp_err"; then
4608: :
1.6 paf 4609: else
1.10 paf 4610: echo "$as_me: failed program was:" >&5
4611: sed 's/^/| /' conftest.$ac_ext >&5
4612:
4613: # Broken: fails on valid input.
4614: continue
1.6 paf 4615: fi
1.10 paf 4616: rm -f conftest.err conftest.$ac_ext
1.6 paf 4617:
1.10 paf 4618: # OK, works on sane cases. Now check whether non-existent headers
4619: # can be detected and how.
4620: cat >conftest.$ac_ext <<_ACEOF
4621: /* confdefs.h. */
4622: _ACEOF
4623: cat confdefs.h >>conftest.$ac_ext
4624: cat >>conftest.$ac_ext <<_ACEOF
4625: /* end confdefs.h. */
4626: #include <ac_nonexistent.h>
4627: _ACEOF
4628: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4629: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4630: ac_status=$?
4631: grep -v '^ *+' conftest.er1 >conftest.err
4632: rm -f conftest.er1
4633: cat conftest.err >&5
4634: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635: (exit $ac_status); } >/dev/null; then
4636: if test -s conftest.err; then
1.15 paf 4637: ac_cpp_err=$ac_c_preproc_warn_flag
1.16 paf 4638: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.10 paf 4639: else
4640: ac_cpp_err=
4641: fi
1.6 paf 4642: else
1.10 paf 4643: ac_cpp_err=yes
1.6 paf 4644: fi
1.10 paf 4645: if test -z "$ac_cpp_err"; then
4646: # Broken: success on invalid input.
4647: continue
1.6 paf 4648: else
1.10 paf 4649: echo "$as_me: failed program was:" >&5
4650: sed 's/^/| /' conftest.$ac_ext >&5
4651:
4652: # Passes both tests.
4653: ac_preproc_ok=:
4654: break
1.6 paf 4655: fi
1.10 paf 4656: rm -f conftest.err conftest.$ac_ext
1.6 paf 4657:
1.10 paf 4658: done
4659: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4660: rm -f conftest.err conftest.$ac_ext
4661: if $ac_preproc_ok; then
4662: :
1.6 paf 4663: else
1.15 paf 4664: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1.10 paf 4665: See \`config.log' for more details." >&5
1.15 paf 4666: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1.10 paf 4667: See \`config.log' for more details." >&2;}
4668: { (exit 1); exit 1; }; }
1.6 paf 4669: fi
4670:
1.15 paf 4671: ac_ext=c
4672: ac_cpp='$CPP $CPPFLAGS'
4673: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4674: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4675: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 paf 4676:
4677:
4678: echo "$as_me:$LINENO: checking for egrep" >&5
4679: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4680: if test "${ac_cv_prog_egrep+set}" = set; then
4681: echo $ECHO_N "(cached) $ECHO_C" >&6
4682: else
4683: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4684: then ac_cv_prog_egrep='grep -E'
4685: else ac_cv_prog_egrep='egrep'
1.6 paf 4686: fi
4687: fi
1.10 paf 4688: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4689: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4690: EGREP=$ac_cv_prog_egrep
4691:
4692:
4693: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4694: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4695: if test "${ac_cv_header_stdc+set}" = set; then
4696: echo $ECHO_N "(cached) $ECHO_C" >&6
4697: else
4698: cat >conftest.$ac_ext <<_ACEOF
4699: /* confdefs.h. */
4700: _ACEOF
4701: cat confdefs.h >>conftest.$ac_ext
4702: cat >>conftest.$ac_ext <<_ACEOF
4703: /* end confdefs.h. */
4704: #include <stdlib.h>
4705: #include <stdarg.h>
4706: #include <string.h>
4707: #include <float.h>
4708:
4709: int
4710: main ()
4711: {
4712:
4713: ;
4714: return 0;
4715: }
4716: _ACEOF
4717: rm -f conftest.$ac_objext
4718: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 4719: (eval $ac_compile) 2>conftest.er1
1.10 paf 4720: ac_status=$?
1.16 paf 4721: grep -v '^ *+' conftest.er1 >conftest.err
4722: rm -f conftest.er1
4723: cat conftest.err >&5
1.10 paf 4724: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725: (exit $ac_status); } &&
1.16 paf 4726: { ac_try='test -z "$ac_c_werror_flag"
4727: || test ! -s conftest.err'
4728: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729: (eval $ac_try) 2>&5
4730: ac_status=$?
4731: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732: (exit $ac_status); }; } &&
4733: { ac_try='test -s conftest.$ac_objext'
1.10 paf 4734: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735: (eval $ac_try) 2>&5
4736: ac_status=$?
4737: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738: (exit $ac_status); }; }; then
4739: ac_cv_header_stdc=yes
1.6 paf 4740: else
1.10 paf 4741: echo "$as_me: failed program was:" >&5
4742: sed 's/^/| /' conftest.$ac_ext >&5
4743:
4744: ac_cv_header_stdc=no
1.6 paf 4745: fi
1.16 paf 4746: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.6 paf 4747:
1.10 paf 4748: if test $ac_cv_header_stdc = yes; then
4749: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4750: cat >conftest.$ac_ext <<_ACEOF
4751: /* confdefs.h. */
4752: _ACEOF
4753: cat confdefs.h >>conftest.$ac_ext
4754: cat >>conftest.$ac_ext <<_ACEOF
4755: /* end confdefs.h. */
4756: #include <string.h>
1.6 paf 4757:
1.10 paf 4758: _ACEOF
4759: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4760: $EGREP "memchr" >/dev/null 2>&1; then
4761: :
1.6 paf 4762: else
1.10 paf 4763: ac_cv_header_stdc=no
1.6 paf 4764: fi
1.10 paf 4765: rm -f conftest*
4766:
1.6 paf 4767: fi
1.10 paf 4768:
4769: if test $ac_cv_header_stdc = yes; then
4770: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4771: cat >conftest.$ac_ext <<_ACEOF
4772: /* confdefs.h. */
4773: _ACEOF
4774: cat confdefs.h >>conftest.$ac_ext
4775: cat >>conftest.$ac_ext <<_ACEOF
4776: /* end confdefs.h. */
4777: #include <stdlib.h>
4778:
4779: _ACEOF
4780: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4781: $EGREP "free" >/dev/null 2>&1; then
4782: :
1.6 paf 4783: else
1.10 paf 4784: ac_cv_header_stdc=no
1.6 paf 4785: fi
1.10 paf 4786: rm -f conftest*
1.6 paf 4787:
4788: fi
4789:
1.10 paf 4790: if test $ac_cv_header_stdc = yes; then
4791: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4792: if test "$cross_compiling" = yes; then
4793: :
4794: else
4795: cat >conftest.$ac_ext <<_ACEOF
4796: /* confdefs.h. */
4797: _ACEOF
4798: cat confdefs.h >>conftest.$ac_ext
4799: cat >>conftest.$ac_ext <<_ACEOF
4800: /* end confdefs.h. */
4801: #include <ctype.h>
4802: #if ((' ' & 0x0FF) == 0x020)
4803: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4804: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4805: #else
4806: # define ISLOWER(c) \
1.16 paf 4807: (('a' <= (c) && (c) <= 'i') \
4808: || ('j' <= (c) && (c) <= 'r') \
4809: || ('s' <= (c) && (c) <= 'z'))
1.10 paf 4810: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4811: #endif
1.1 parser 4812:
1.10 paf 4813: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4814: int
4815: main ()
4816: {
4817: int i;
4818: for (i = 0; i < 256; i++)
4819: if (XOR (islower (i), ISLOWER (i))
1.16 paf 4820: || toupper (i) != TOUPPER (i))
1.10 paf 4821: exit(2);
4822: exit (0);
4823: }
4824: _ACEOF
4825: rm -f conftest$ac_exeext
4826: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4827: (eval $ac_link) 2>&5
4828: ac_status=$?
4829: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4831: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832: (eval $ac_try) 2>&5
4833: ac_status=$?
4834: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835: (exit $ac_status); }; }; then
1.1 parser 4836: :
4837: else
1.10 paf 4838: echo "$as_me: program exited with status $ac_status" >&5
4839: echo "$as_me: failed program was:" >&5
4840: sed 's/^/| /' conftest.$ac_ext >&5
4841:
4842: ( exit $ac_status )
4843: ac_cv_header_stdc=no
4844: fi
1.16 paf 4845: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.10 paf 4846: fi
4847: fi
1.1 parser 4848: fi
1.10 paf 4849: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4850: echo "${ECHO_T}$ac_cv_header_stdc" >&6
4851: if test $ac_cv_header_stdc = yes; then
4852:
4853: cat >>confdefs.h <<\_ACEOF
4854: #define STDC_HEADERS 1
4855: _ACEOF
1.1 parser 4856:
1.10 paf 4857: fi
1.1 parser 4858:
1.10 paf 4859: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.1 parser 4860:
4861:
4862:
4863:
4864:
4865:
4866:
4867:
4868:
1.10 paf 4869: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
1.16 paf 4870: inttypes.h stdint.h unistd.h
1.10 paf 4871: do
4872: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4873: echo "$as_me:$LINENO: checking for $ac_header" >&5
4874: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4875: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4876: echo $ECHO_N "(cached) $ECHO_C" >&6
4877: else
4878: cat >conftest.$ac_ext <<_ACEOF
4879: /* confdefs.h. */
4880: _ACEOF
4881: cat confdefs.h >>conftest.$ac_ext
4882: cat >>conftest.$ac_ext <<_ACEOF
4883: /* end confdefs.h. */
4884: $ac_includes_default
4885:
4886: #include <$ac_header>
4887: _ACEOF
4888: rm -f conftest.$ac_objext
4889: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 4890: (eval $ac_compile) 2>conftest.er1
1.10 paf 4891: ac_status=$?
1.16 paf 4892: grep -v '^ *+' conftest.er1 >conftest.err
4893: rm -f conftest.er1
4894: cat conftest.err >&5
1.10 paf 4895: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896: (exit $ac_status); } &&
1.16 paf 4897: { ac_try='test -z "$ac_c_werror_flag"
4898: || test ! -s conftest.err'
4899: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900: (eval $ac_try) 2>&5
4901: ac_status=$?
4902: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903: (exit $ac_status); }; } &&
4904: { ac_try='test -s conftest.$ac_objext'
1.10 paf 4905: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906: (eval $ac_try) 2>&5
4907: ac_status=$?
4908: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909: (exit $ac_status); }; }; then
4910: eval "$as_ac_Header=yes"
4911: else
4912: echo "$as_me: failed program was:" >&5
4913: sed 's/^/| /' conftest.$ac_ext >&5
4914:
4915: eval "$as_ac_Header=no"
4916: fi
1.16 paf 4917: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 4918: fi
4919: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4920: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4921: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4922: cat >>confdefs.h <<_ACEOF
4923: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4924: _ACEOF
1.1 parser 4925:
1.10 paf 4926: fi
4927:
4928: done
4929:
4930:
4931:
4932: for ac_header in dlfcn.h
4933: do
4934: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4935: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4936: echo "$as_me:$LINENO: checking for $ac_header" >&5
4937: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4938: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4939: echo $ECHO_N "(cached) $ECHO_C" >&6
4940: fi
4941: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4942: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4943: else
4944: # Is the header compilable?
4945: echo "$as_me:$LINENO: checking $ac_header usability" >&5
4946: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4947: cat >conftest.$ac_ext <<_ACEOF
4948: /* confdefs.h. */
4949: _ACEOF
4950: cat confdefs.h >>conftest.$ac_ext
4951: cat >>conftest.$ac_ext <<_ACEOF
4952: /* end confdefs.h. */
4953: $ac_includes_default
4954: #include <$ac_header>
4955: _ACEOF
4956: rm -f conftest.$ac_objext
4957: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 4958: (eval $ac_compile) 2>conftest.er1
1.10 paf 4959: ac_status=$?
1.16 paf 4960: grep -v '^ *+' conftest.er1 >conftest.err
4961: rm -f conftest.er1
4962: cat conftest.err >&5
1.10 paf 4963: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964: (exit $ac_status); } &&
1.16 paf 4965: { ac_try='test -z "$ac_c_werror_flag"
4966: || test ! -s conftest.err'
4967: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968: (eval $ac_try) 2>&5
4969: ac_status=$?
4970: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971: (exit $ac_status); }; } &&
4972: { ac_try='test -s conftest.$ac_objext'
1.10 paf 4973: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974: (eval $ac_try) 2>&5
4975: ac_status=$?
4976: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977: (exit $ac_status); }; }; then
4978: ac_header_compiler=yes
4979: else
4980: echo "$as_me: failed program was:" >&5
4981: sed 's/^/| /' conftest.$ac_ext >&5
4982:
4983: ac_header_compiler=no
4984: fi
1.16 paf 4985: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 4986: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4987: echo "${ECHO_T}$ac_header_compiler" >&6
4988:
4989: # Is the header present?
4990: echo "$as_me:$LINENO: checking $ac_header presence" >&5
4991: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4992: cat >conftest.$ac_ext <<_ACEOF
4993: /* confdefs.h. */
4994: _ACEOF
4995: cat confdefs.h >>conftest.$ac_ext
4996: cat >>conftest.$ac_ext <<_ACEOF
4997: /* end confdefs.h. */
4998: #include <$ac_header>
4999: _ACEOF
5000: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5001: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5002: ac_status=$?
5003: grep -v '^ *+' conftest.er1 >conftest.err
5004: rm -f conftest.er1
5005: cat conftest.err >&5
5006: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007: (exit $ac_status); } >/dev/null; then
5008: if test -s conftest.err; then
1.15 paf 5009: ac_cpp_err=$ac_c_preproc_warn_flag
1.16 paf 5010: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.10 paf 5011: else
5012: ac_cpp_err=
5013: fi
5014: else
5015: ac_cpp_err=yes
5016: fi
5017: if test -z "$ac_cpp_err"; then
5018: ac_header_preproc=yes
5019: else
5020: echo "$as_me: failed program was:" >&5
5021: sed 's/^/| /' conftest.$ac_ext >&5
5022:
5023: ac_header_preproc=no
5024: fi
5025: rm -f conftest.err conftest.$ac_ext
5026: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5027: echo "${ECHO_T}$ac_header_preproc" >&6
5028:
5029: # So? What about this header?
1.16 paf 5030: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5031: yes:no: )
1.10 paf 5032: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5033: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.16 paf 5034: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5035: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5036: ac_header_preproc=yes
1.10 paf 5037: ;;
1.16 paf 5038: no:yes:* )
1.10 paf 5039: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5040: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.16 paf 5041: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5042: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5043: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5044: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5045: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5046: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.10 paf 5047: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5048: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.16 paf 5049: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5050: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.10 paf 5051: (
5052: cat <<\_ASBOX
1.16 paf 5053: ## ------------------------------------------ ##
5054: ## Report this to the AC_PACKAGE_NAME lists. ##
5055: ## ------------------------------------------ ##
1.10 paf 5056: _ASBOX
5057: ) |
5058: sed "s/^/$as_me: WARNING: /" >&2
5059: ;;
5060: esac
5061: echo "$as_me:$LINENO: checking for $ac_header" >&5
5062: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5063: if eval "test \"\${$as_ac_Header+set}\" = set"; then
5064: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 5065: else
1.16 paf 5066: eval "$as_ac_Header=\$ac_header_preproc"
1.10 paf 5067: fi
5068: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5069: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5070:
5071: fi
5072: if test `eval echo '${'$as_ac_Header'}'` = yes; then
5073: cat >>confdefs.h <<_ACEOF
5074: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5075: _ACEOF
5076:
5077: fi
5078:
5079: done
5080:
5081:
5082:
5083:
5084:
5085:
5086: # Only perform the check for file, if the check method requires it
5087: case $deplibs_check_method in
5088: file_magic*)
5089: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5090: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5091: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5092: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5093: echo $ECHO_N "(cached) $ECHO_C" >&6
5094: else
5095: case $MAGIC_CMD in
5096: /*)
5097: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5098: ;;
5099: ?:/*)
5100: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5101: ;;
5102: *)
5103: ac_save_MAGIC_CMD="$MAGIC_CMD"
5104: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5105: ac_dummy="/usr/bin:$PATH"
5106: for ac_dir in $ac_dummy; do
5107: test -z "$ac_dir" && ac_dir=.
5108: if test -f $ac_dir/${ac_tool_prefix}file; then
5109: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5110: if test -n "$file_magic_test_file"; then
5111: case $deplibs_check_method in
5112: "file_magic "*)
5113: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5114: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5115: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5116: egrep "$file_magic_regex" > /dev/null; then
5117: :
5118: else
5119: cat <<EOF 1>&2
5120:
5121: *** Warning: the command libtool uses to detect shared libraries,
5122: *** $file_magic_cmd, produces output that libtool cannot recognize.
5123: *** The result is that libtool may fail to recognize shared libraries
5124: *** as such. This will affect the creation of libtool libraries that
5125: *** depend on shared libraries, but programs linked with such libtool
5126: *** libraries will work regardless of this problem. Nevertheless, you
5127: *** may want to report the problem to your system manager and/or to
5128: *** bug-libtool@gnu.org
5129:
5130: EOF
5131: fi ;;
5132: esac
5133: fi
5134: break
5135: fi
5136: done
5137: IFS="$ac_save_ifs"
5138: MAGIC_CMD="$ac_save_MAGIC_CMD"
5139: ;;
5140: esac
5141: fi
5142:
5143: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5144: if test -n "$MAGIC_CMD"; then
5145: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5146: echo "${ECHO_T}$MAGIC_CMD" >&6
5147: else
5148: echo "$as_me:$LINENO: result: no" >&5
5149: echo "${ECHO_T}no" >&6
5150: fi
5151:
5152: if test -z "$lt_cv_path_MAGIC_CMD"; then
5153: if test -n "$ac_tool_prefix"; then
5154: echo "$as_me:$LINENO: checking for file" >&5
5155: echo $ECHO_N "checking for file... $ECHO_C" >&6
5156: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5157: echo $ECHO_N "(cached) $ECHO_C" >&6
5158: else
5159: case $MAGIC_CMD in
5160: /*)
5161: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5162: ;;
5163: ?:/*)
5164: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5165: ;;
5166: *)
5167: ac_save_MAGIC_CMD="$MAGIC_CMD"
5168: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5169: ac_dummy="/usr/bin:$PATH"
5170: for ac_dir in $ac_dummy; do
5171: test -z "$ac_dir" && ac_dir=.
5172: if test -f $ac_dir/file; then
5173: lt_cv_path_MAGIC_CMD="$ac_dir/file"
5174: if test -n "$file_magic_test_file"; then
5175: case $deplibs_check_method in
5176: "file_magic "*)
5177: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5178: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5179: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5180: egrep "$file_magic_regex" > /dev/null; then
5181: :
5182: else
5183: cat <<EOF 1>&2
5184:
5185: *** Warning: the command libtool uses to detect shared libraries,
5186: *** $file_magic_cmd, produces output that libtool cannot recognize.
5187: *** The result is that libtool may fail to recognize shared libraries
5188: *** as such. This will affect the creation of libtool libraries that
5189: *** depend on shared libraries, but programs linked with such libtool
5190: *** libraries will work regardless of this problem. Nevertheless, you
5191: *** may want to report the problem to your system manager and/or to
5192: *** bug-libtool@gnu.org
5193:
1.1 parser 5194: EOF
1.10 paf 5195: fi ;;
5196: esac
5197: fi
5198: break
5199: fi
5200: done
5201: IFS="$ac_save_ifs"
5202: MAGIC_CMD="$ac_save_MAGIC_CMD"
5203: ;;
5204: esac
5205: fi
5206:
5207: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5208: if test -n "$MAGIC_CMD"; then
5209: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5210: echo "${ECHO_T}$MAGIC_CMD" >&6
1.1 parser 5211: else
1.10 paf 5212: echo "$as_me:$LINENO: result: no" >&5
5213: echo "${ECHO_T}no" >&6
1.1 parser 5214: fi
1.10 paf 5215:
5216: else
5217: MAGIC_CMD=:
5218: fi
1.1 parser 5219: fi
5220:
1.10 paf 5221: fi
5222: ;;
5223: esac
1.1 parser 5224:
1.10 paf 5225: if test -n "$ac_tool_prefix"; then
5226: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5227: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5228: echo "$as_me:$LINENO: checking for $ac_word" >&5
5229: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5230: if test "${ac_cv_prog_RANLIB+set}" = set; then
5231: echo $ECHO_N "(cached) $ECHO_C" >&6
5232: else
5233: if test -n "$RANLIB"; then
5234: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5235: else
5236: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237: for as_dir in $PATH
1.1 parser 5238: do
1.10 paf 5239: IFS=$as_save_IFS
5240: test -z "$as_dir" && as_dir=.
5241: for ac_exec_ext in '' $ac_executable_extensions; do
5242: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5244: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245: break 2
5246: fi
5247: done
5248: done
5249:
5250: fi
5251: fi
5252: RANLIB=$ac_cv_prog_RANLIB
5253: if test -n "$RANLIB"; then
5254: echo "$as_me:$LINENO: result: $RANLIB" >&5
5255: echo "${ECHO_T}$RANLIB" >&6
5256: else
5257: echo "$as_me:$LINENO: result: no" >&5
5258: echo "${ECHO_T}no" >&6
5259: fi
5260:
5261: fi
5262: if test -z "$ac_cv_prog_RANLIB"; then
5263: ac_ct_RANLIB=$RANLIB
5264: # Extract the first word of "ranlib", so it can be a program name with args.
5265: set dummy ranlib; ac_word=$2
5266: echo "$as_me:$LINENO: checking for $ac_word" >&5
5267: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5268: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5269: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 5270: else
1.10 paf 5271: if test -n "$ac_ct_RANLIB"; then
5272: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1.1 parser 5273: else
1.10 paf 5274: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275: for as_dir in $PATH
5276: do
5277: IFS=$as_save_IFS
5278: test -z "$as_dir" && as_dir=.
5279: for ac_exec_ext in '' $ac_executable_extensions; do
5280: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281: ac_cv_prog_ac_ct_RANLIB="ranlib"
5282: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5283: break 2
5284: fi
5285: done
5286: done
5287:
5288: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5289: fi
1.1 parser 5290: fi
1.10 paf 5291: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5292: if test -n "$ac_ct_RANLIB"; then
5293: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5294: echo "${ECHO_T}$ac_ct_RANLIB" >&6
5295: else
5296: echo "$as_me:$LINENO: result: no" >&5
5297: echo "${ECHO_T}no" >&6
1.1 parser 5298: fi
1.10 paf 5299:
5300: RANLIB=$ac_ct_RANLIB
1.1 parser 5301: else
1.10 paf 5302: RANLIB="$ac_cv_prog_RANLIB"
1.1 parser 5303: fi
1.10 paf 5304:
5305: if test -n "$ac_tool_prefix"; then
5306: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5307: set dummy ${ac_tool_prefix}strip; ac_word=$2
5308: echo "$as_me:$LINENO: checking for $ac_word" >&5
5309: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5310: if test "${ac_cv_prog_STRIP+set}" = set; then
5311: echo $ECHO_N "(cached) $ECHO_C" >&6
5312: else
5313: if test -n "$STRIP"; then
5314: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5315: else
5316: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317: for as_dir in $PATH
5318: do
5319: IFS=$as_save_IFS
5320: test -z "$as_dir" && as_dir=.
5321: for ac_exec_ext in '' $ac_executable_extensions; do
5322: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5324: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5325: break 2
5326: fi
5327: done
1.1 parser 5328: done
5329:
1.10 paf 5330: fi
5331: fi
5332: STRIP=$ac_cv_prog_STRIP
5333: if test -n "$STRIP"; then
5334: echo "$as_me:$LINENO: result: $STRIP" >&5
5335: echo "${ECHO_T}$STRIP" >&6
5336: else
5337: echo "$as_me:$LINENO: result: no" >&5
5338: echo "${ECHO_T}no" >&6
5339: fi
5340:
5341: fi
5342: if test -z "$ac_cv_prog_STRIP"; then
5343: ac_ct_STRIP=$STRIP
5344: # Extract the first word of "strip", so it can be a program name with args.
5345: set dummy strip; ac_word=$2
5346: echo "$as_me:$LINENO: checking for $ac_word" >&5
5347: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5348: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5349: echo $ECHO_N "(cached) $ECHO_C" >&6
5350: else
5351: if test -n "$ac_ct_STRIP"; then
5352: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5353: else
5354: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355: for as_dir in $PATH
5356: do
5357: IFS=$as_save_IFS
5358: test -z "$as_dir" && as_dir=.
5359: for ac_exec_ext in '' $ac_executable_extensions; do
5360: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361: ac_cv_prog_ac_ct_STRIP="strip"
5362: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363: break 2
5364: fi
5365: done
5366: done
1.1 parser 5367:
1.10 paf 5368: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5369: fi
5370: fi
5371: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5372: if test -n "$ac_ct_STRIP"; then
5373: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5374: echo "${ECHO_T}$ac_ct_STRIP" >&6
5375: else
5376: echo "$as_me:$LINENO: result: no" >&5
5377: echo "${ECHO_T}no" >&6
5378: fi
1.1 parser 5379:
1.10 paf 5380: STRIP=$ac_ct_STRIP
1.1 parser 5381: else
1.10 paf 5382: STRIP="$ac_cv_prog_STRIP"
5383: fi
5384:
5385:
5386: enable_dlopen=no
5387: enable_win32_dll=no
5388:
5389: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5390: if test "${enable_libtool_lock+set}" = set; then
5391: enableval="$enable_libtool_lock"
5392:
5393: fi;
5394: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5395:
5396: # Some flags need to be propagated to the compiler or linker for good
5397: # libtool support.
5398: case $host in
5399: *-*-irix6*)
5400: # Find out which ABI we are using.
1.16 paf 5401: echo '#line 5401 "configure"' > conftest.$ac_ext
1.10 paf 5402: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403: (eval $ac_compile) 2>&5
5404: ac_status=$?
5405: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406: (exit $ac_status); }; then
5407: case `/usr/bin/file conftest.$ac_objext` in
5408: *32-bit*)
5409: LD="${LD-ld} -32"
5410: ;;
5411: *N32*)
5412: LD="${LD-ld} -n32"
5413: ;;
5414: *64-bit*)
5415: LD="${LD-ld} -64"
5416: ;;
5417: esac
5418: fi
1.1 parser 5419: rm -rf conftest*
1.10 paf 5420: ;;
5421:
5422: *-*-sco3.2v5*)
5423: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5424: SAVE_CFLAGS="$CFLAGS"
5425: CFLAGS="$CFLAGS -belf"
5426: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5427: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5428: if test "${lt_cv_cc_needs_belf+set}" = set; then
5429: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 5430: else
5431:
1.10 paf 5432:
5433: ac_ext=c
5434: ac_cpp='$CPP $CPPFLAGS'
5435: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5438:
5439: cat >conftest.$ac_ext <<_ACEOF
5440: /* confdefs.h. */
5441: _ACEOF
5442: cat confdefs.h >>conftest.$ac_ext
5443: cat >>conftest.$ac_ext <<_ACEOF
5444: /* end confdefs.h. */
5445:
5446: int
5447: main ()
5448: {
5449:
5450: ;
5451: return 0;
5452: }
5453: _ACEOF
5454: rm -f conftest.$ac_objext conftest$ac_exeext
5455: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.16 paf 5456: (eval $ac_link) 2>conftest.er1
1.10 paf 5457: ac_status=$?
1.16 paf 5458: grep -v '^ *+' conftest.er1 >conftest.err
5459: rm -f conftest.er1
5460: cat conftest.err >&5
1.10 paf 5461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462: (exit $ac_status); } &&
1.16 paf 5463: { ac_try='test -z "$ac_c_werror_flag"
5464: || test ! -s conftest.err'
5465: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466: (eval $ac_try) 2>&5
5467: ac_status=$?
5468: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469: (exit $ac_status); }; } &&
5470: { ac_try='test -s conftest$ac_exeext'
1.10 paf 5471: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472: (eval $ac_try) 2>&5
5473: ac_status=$?
5474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475: (exit $ac_status); }; }; then
5476: lt_cv_cc_needs_belf=yes
1.1 parser 5477: else
1.10 paf 5478: echo "$as_me: failed program was:" >&5
5479: sed 's/^/| /' conftest.$ac_ext >&5
5480:
5481: lt_cv_cc_needs_belf=no
1.1 parser 5482: fi
1.16 paf 5483: rm -f conftest.err conftest.$ac_objext \
5484: conftest$ac_exeext conftest.$ac_ext
1.15 paf 5485: ac_ext=c
5486: ac_cpp='$CPP $CPPFLAGS'
5487: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5488: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5489: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 parser 5490:
5491: fi
1.10 paf 5492: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5493: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5494: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5495: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5496: CFLAGS="$SAVE_CFLAGS"
5497: fi
5498: ;;
5499:
5500:
5501: esac
1.1 parser 5502:
1.10 paf 5503: # Sed substitution that helps us do robust quoting. It backslashifies
5504: # metacharacters that are still active within double-quoted strings.
5505: Xsed='sed -e s/^X//'
5506: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5507:
5508: # Same as above, but do not quote variable references.
5509: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5510:
5511: # Sed substitution to delay expansion of an escaped shell variable in a
5512: # double_quote_subst'ed string.
5513: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5514:
5515: # Constants:
5516: rm="rm -f"
5517:
5518: # Global variables:
5519: default_ofile=libtool
5520: can_build_shared=yes
5521:
5522: # All known linkers require a `.a' archive for static linking (except M$VC,
5523: # which needs '.lib').
5524: libext=a
5525: ltmain="$ac_aux_dir/ltmain.sh"
5526: ofile="$default_ofile"
5527: with_gnu_ld="$lt_cv_prog_gnu_ld"
5528: need_locks="$enable_libtool_lock"
5529:
5530: old_CC="$CC"
5531: old_CFLAGS="$CFLAGS"
5532:
5533: # Set sane defaults for various variables
5534: test -z "$AR" && AR=ar
5535: test -z "$AR_FLAGS" && AR_FLAGS=cru
5536: test -z "$AS" && AS=as
5537: test -z "$CC" && CC=cc
5538: test -z "$DLLTOOL" && DLLTOOL=dlltool
5539: test -z "$LD" && LD=ld
5540: test -z "$LN_S" && LN_S="ln -s"
5541: test -z "$MAGIC_CMD" && MAGIC_CMD=file
5542: test -z "$NM" && NM=nm
5543: test -z "$OBJDUMP" && OBJDUMP=objdump
5544: test -z "$RANLIB" && RANLIB=:
5545: test -z "$STRIP" && STRIP=:
5546: test -z "$ac_objext" && ac_objext=o
5547:
5548: if test x"$host" != x"$build"; then
5549: ac_tool_prefix=${host_alias}-
1.1 parser 5550: else
1.10 paf 5551: ac_tool_prefix=
1.1 parser 5552: fi
5553:
1.10 paf 5554: # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5555: case $host_os in
5556: linux-gnu*) ;;
5557: linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5558: esac
5559:
5560: case $host_os in
5561: aix3*)
5562: # AIX sometimes has problems with the GCC collect2 program. For some
5563: # reason, if we set the COLLECT_NAMES environment variable, the problems
5564: # vanish in a puff of smoke.
5565: if test "X${COLLECT_NAMES+set}" != Xset; then
5566: COLLECT_NAMES=
5567: export COLLECT_NAMES
5568: fi
5569: ;;
5570: esac
5571:
5572: # Determine commands to create old-style static archives.
5573: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5574: old_postinstall_cmds='chmod 644 $oldlib'
5575: old_postuninstall_cmds=
5576:
5577: if test -n "$RANLIB"; then
5578: case $host_os in
5579: openbsd*)
5580: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5581: ;;
5582: *)
5583: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5584: ;;
5585: esac
5586: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1.1 parser 5587: fi
5588:
1.10 paf 5589: # Allow CC to be a program name with arguments.
5590: set dummy $CC
5591: compiler="$2"
5592:
1.16 paf 5593: ## FIXME: this should be a separate macro
5594: ##
1.10 paf 5595: echo "$as_me:$LINENO: checking for objdir" >&5
5596: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5597: rm -f .libs 2>/dev/null
5598: mkdir .libs 2>/dev/null
5599: if test -d .libs; then
5600: objdir=.libs
5601: else
5602: # MS-DOS does not allow filenames that begin with a dot.
5603: objdir=_libs
5604: fi
5605: rmdir .libs 2>/dev/null
5606: echo "$as_me:$LINENO: result: $objdir" >&5
5607: echo "${ECHO_T}$objdir" >&6
1.16 paf 5608: ##
5609: ## END FIXME
1.10 paf 5610:
5611:
1.16 paf 5612: ## FIXME: this should be a separate macro
5613: ##
1.10 paf 5614:
5615: # Check whether --with-pic or --without-pic was given.
5616: if test "${with_pic+set}" = set; then
5617: withval="$with_pic"
5618: pic_mode="$withval"
5619: else
5620: pic_mode=default
5621: fi;
5622: test -z "$pic_mode" && pic_mode=default
5623:
5624: # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5625: # in isolation, and that seeing it set (from the cache) indicates that
5626: # the associated values are set (in the cache) correctly too.
5627: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5628: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5629: if test "${lt_cv_prog_cc_pic+set}" = set; then
5630: echo $ECHO_N "(cached) $ECHO_C" >&6
5631: else
5632: lt_cv_prog_cc_pic=
5633: lt_cv_prog_cc_shlib=
5634: lt_cv_prog_cc_wl=
5635: lt_cv_prog_cc_static=
5636: lt_cv_prog_cc_no_builtin=
5637: lt_cv_prog_cc_can_build_shared=$can_build_shared
5638:
5639: if test "$GCC" = yes; then
5640: lt_cv_prog_cc_wl='-Wl,'
5641: lt_cv_prog_cc_static='-static'
1.1 parser 5642:
1.10 paf 5643: case $host_os in
5644: aix*)
5645: # Below there is a dirty hack to force normal static linking with -ldl
5646: # The problem is because libdl dynamically linked with both libc and
5647: # libC (AIX C++ library), which obviously doesn't included in libraries
5648: # list by gcc. This cause undefined symbols with -static flags.
5649: # This hack allows C programs to be linked with "-static -ldl", but
5650: # not sure about C++ programs.
5651: lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5652: ;;
5653: amigaos*)
5654: # FIXME: we need at least 68020 code to build shared libraries, but
5655: # adding the `-m68020' flag to GCC prevents building anything better,
5656: # like `-m68040'.
5657: lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5658: ;;
5659: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5660: # PIC is the default for these OSes.
5661: ;;
5662: darwin* | rhapsody*)
5663: # PIC is the default on this platform
5664: # Common symbols not allowed in MH_DYLIB files
5665: lt_cv_prog_cc_pic='-fno-common'
5666: ;;
5667: cygwin* | mingw* | pw32* | os2*)
5668: # This hack is so that the source file can tell whether it is being
5669: # built for inclusion in a dll (and should export symbols for example).
5670: lt_cv_prog_cc_pic='-DDLL_EXPORT'
5671: ;;
5672: sysv4*MP*)
5673: if test -d /usr/nec; then
5674: lt_cv_prog_cc_pic=-Kconform_pic
5675: fi
5676: ;;
5677: *)
5678: lt_cv_prog_cc_pic='-fPIC'
5679: ;;
5680: esac
5681: else
5682: # PORTME Check for PIC flags for the system compiler.
5683: case $host_os in
5684: aix3* | aix4* | aix5*)
5685: lt_cv_prog_cc_wl='-Wl,'
5686: # All AIX code is PIC.
5687: if test "$host_cpu" = ia64; then
5688: # AIX 5 now supports IA64 processor
5689: lt_cv_prog_cc_static='-Bstatic'
5690: else
5691: lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5692: fi
5693: ;;
5694:
5695: hpux9* | hpux10* | hpux11*)
5696: # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5697: lt_cv_prog_cc_wl='-Wl,'
5698: lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5699: lt_cv_prog_cc_pic='+Z'
5700: ;;
5701:
5702: irix5* | irix6* | nonstopux*)
5703: lt_cv_prog_cc_wl='-Wl,'
5704: lt_cv_prog_cc_static='-non_shared'
5705: # PIC (with -KPIC) is the default.
5706: ;;
5707:
5708: cygwin* | mingw* | pw32* | os2*)
5709: # This hack is so that the source file can tell whether it is being
5710: # built for inclusion in a dll (and should export symbols for example).
5711: lt_cv_prog_cc_pic='-DDLL_EXPORT'
5712: ;;
5713:
5714: newsos6)
5715: lt_cv_prog_cc_pic='-KPIC'
5716: lt_cv_prog_cc_static='-Bstatic'
5717: ;;
5718:
5719: osf3* | osf4* | osf5*)
5720: # All OSF/1 code is PIC.
5721: lt_cv_prog_cc_wl='-Wl,'
5722: lt_cv_prog_cc_static='-non_shared'
5723: ;;
5724:
5725: sco3.2v5*)
5726: lt_cv_prog_cc_pic='-Kpic'
5727: lt_cv_prog_cc_static='-dn'
5728: lt_cv_prog_cc_shlib='-belf'
5729: ;;
5730:
5731: solaris*)
5732: lt_cv_prog_cc_pic='-KPIC'
5733: lt_cv_prog_cc_static='-Bstatic'
5734: lt_cv_prog_cc_wl='-Wl,'
5735: ;;
5736:
5737: sunos4*)
5738: lt_cv_prog_cc_pic='-PIC'
5739: lt_cv_prog_cc_static='-Bstatic'
5740: lt_cv_prog_cc_wl='-Qoption ld '
5741: ;;
5742:
5743: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5744: lt_cv_prog_cc_pic='-KPIC'
5745: lt_cv_prog_cc_static='-Bstatic'
5746: lt_cv_prog_cc_wl='-Wl,'
5747: ;;
5748:
5749: uts4*)
5750: lt_cv_prog_cc_pic='-pic'
5751: lt_cv_prog_cc_static='-Bstatic'
5752: ;;
5753:
5754: sysv4*MP*)
5755: if test -d /usr/nec ;then
5756: lt_cv_prog_cc_pic='-Kconform_pic'
5757: lt_cv_prog_cc_static='-Bstatic'
5758: fi
5759: ;;
5760:
5761: *)
5762: lt_cv_prog_cc_can_build_shared=no
5763: ;;
5764: esac
5765: fi
5766:
5767: fi
5768:
5769: if test -z "$lt_cv_prog_cc_pic"; then
5770: echo "$as_me:$LINENO: result: none" >&5
5771: echo "${ECHO_T}none" >&6
5772: else
5773: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5774: echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5775:
5776: # Check to make sure the pic_flag actually works.
5777: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5778: echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5779: if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5780: echo $ECHO_N "(cached) $ECHO_C" >&6
5781: else
5782: save_CFLAGS="$CFLAGS"
5783: CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5784: cat >conftest.$ac_ext <<_ACEOF
5785: /* confdefs.h. */
5786: _ACEOF
5787: cat confdefs.h >>conftest.$ac_ext
5788: cat >>conftest.$ac_ext <<_ACEOF
5789: /* end confdefs.h. */
5790:
5791: int
5792: main ()
5793: {
5794:
5795: ;
5796: return 0;
5797: }
5798: _ACEOF
5799: rm -f conftest.$ac_objext
5800: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 5801: (eval $ac_compile) 2>conftest.er1
1.10 paf 5802: ac_status=$?
1.16 paf 5803: grep -v '^ *+' conftest.er1 >conftest.err
5804: rm -f conftest.er1
5805: cat conftest.err >&5
1.10 paf 5806: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807: (exit $ac_status); } &&
1.16 paf 5808: { ac_try='test -z "$ac_c_werror_flag"
5809: || test ! -s conftest.err'
5810: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811: (eval $ac_try) 2>&5
5812: ac_status=$?
5813: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814: (exit $ac_status); }; } &&
5815: { ac_try='test -s conftest.$ac_objext'
1.10 paf 5816: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817: (eval $ac_try) 2>&5
5818: ac_status=$?
5819: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820: (exit $ac_status); }; }; then
5821: case $host_os in
5822: hpux9* | hpux10* | hpux11*)
5823: # On HP-UX, both CC and GCC only warn that PIC is supported... then
5824: # they create non-PIC objects. So, if there were any warnings, we
5825: # assume that PIC is not supported.
5826: if test -s conftest.err; then
5827: lt_cv_prog_cc_pic_works=no
5828: else
5829: lt_cv_prog_cc_pic_works=yes
5830: fi
5831: ;;
5832: *)
5833: lt_cv_prog_cc_pic_works=yes
5834: ;;
5835: esac
5836:
5837: else
5838: echo "$as_me: failed program was:" >&5
5839: sed 's/^/| /' conftest.$ac_ext >&5
5840:
5841: lt_cv_prog_cc_pic_works=no
5842:
5843: fi
1.16 paf 5844: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 5845: CFLAGS="$save_CFLAGS"
5846:
5847: fi
5848:
5849:
5850: if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5851: lt_cv_prog_cc_pic=
5852: lt_cv_prog_cc_can_build_shared=no
5853: else
5854: lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5855: fi
5856:
5857: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5858: echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5859: fi
1.16 paf 5860: ##
5861: ## END FIXME
1.10 paf 5862:
5863: # Check for any special shared library compilation flags.
5864: if test -n "$lt_cv_prog_cc_shlib"; then
5865: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5866: echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5867: if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5868: else
5869: { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5870: echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5871: lt_cv_prog_cc_can_build_shared=no
5872: fi
5873: fi
5874:
1.16 paf 5875: ## FIXME: this should be a separate macro
5876: ##
1.10 paf 5877: echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5878: echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5879: if test "${lt_cv_prog_cc_static_works+set}" = set; then
5880: echo $ECHO_N "(cached) $ECHO_C" >&6
5881: else
5882: lt_cv_prog_cc_static_works=no
5883: save_LDFLAGS="$LDFLAGS"
5884: LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5885: cat >conftest.$ac_ext <<_ACEOF
5886: /* confdefs.h. */
5887: _ACEOF
5888: cat confdefs.h >>conftest.$ac_ext
5889: cat >>conftest.$ac_ext <<_ACEOF
5890: /* end confdefs.h. */
5891:
5892: int
5893: main ()
5894: {
5895:
5896: ;
5897: return 0;
5898: }
5899: _ACEOF
5900: rm -f conftest.$ac_objext conftest$ac_exeext
5901: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.16 paf 5902: (eval $ac_link) 2>conftest.er1
1.10 paf 5903: ac_status=$?
1.16 paf 5904: grep -v '^ *+' conftest.er1 >conftest.err
5905: rm -f conftest.er1
5906: cat conftest.err >&5
1.10 paf 5907: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908: (exit $ac_status); } &&
1.16 paf 5909: { ac_try='test -z "$ac_c_werror_flag"
5910: || test ! -s conftest.err'
5911: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912: (eval $ac_try) 2>&5
5913: ac_status=$?
5914: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915: (exit $ac_status); }; } &&
5916: { ac_try='test -s conftest$ac_exeext'
1.10 paf 5917: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918: (eval $ac_try) 2>&5
5919: ac_status=$?
5920: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921: (exit $ac_status); }; }; then
5922: lt_cv_prog_cc_static_works=yes
5923: else
5924: echo "$as_me: failed program was:" >&5
5925: sed 's/^/| /' conftest.$ac_ext >&5
5926:
5927: fi
1.16 paf 5928: rm -f conftest.err conftest.$ac_objext \
5929: conftest$ac_exeext conftest.$ac_ext
1.10 paf 5930: LDFLAGS="$save_LDFLAGS"
5931:
5932: fi
5933:
5934:
5935: # Belt *and* braces to stop my trousers falling down:
5936: test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5937: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5938: echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5939:
5940: pic_flag="$lt_cv_prog_cc_pic"
5941: special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5942: wl="$lt_cv_prog_cc_wl"
5943: link_static_flag="$lt_cv_prog_cc_static"
5944: no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5945: can_build_shared="$lt_cv_prog_cc_can_build_shared"
1.16 paf 5946: ##
5947: ## END FIXME
1.10 paf 5948:
5949:
1.16 paf 5950: ## FIXME: this should be a separate macro
5951: ##
1.10 paf 5952: # Check to see if options -o and -c are simultaneously supported by compiler
5953: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5954: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5955: if test "${lt_cv_compiler_c_o+set}" = set; then
5956: echo $ECHO_N "(cached) $ECHO_C" >&6
5957: else
5958:
5959: $rm -r conftest 2>/dev/null
5960: mkdir conftest
5961: cd conftest
5962: echo "int some_variable = 0;" > conftest.$ac_ext
5963: mkdir out
5964: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5965: # that will create temporary files in the current directory regardless of
5966: # the output directory. Thus, making CWD read-only will cause this test
5967: # to fail, enabling locking or at least warning the user not to do parallel
5968: # builds.
5969: chmod -w .
5970: save_CFLAGS="$CFLAGS"
5971: CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5972: compiler_c_o=no
1.16 paf 5973: if { (eval echo configure:5973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
1.10 paf 5974: # The compiler can only warn and ignore the option if not recognized
5975: # So say no if there are warnings
5976: if test -s out/conftest.err; then
5977: lt_cv_compiler_c_o=no
5978: else
5979: lt_cv_compiler_c_o=yes
5980: fi
5981: else
5982: # Append any errors to the config.log.
5983: cat out/conftest.err 1>&5
5984: lt_cv_compiler_c_o=no
5985: fi
5986: CFLAGS="$save_CFLAGS"
5987: chmod u+w .
5988: $rm conftest* out/*
5989: rmdir out
5990: cd ..
5991: rmdir conftest
5992: $rm -r conftest 2>/dev/null
5993:
5994: fi
5995:
5996: compiler_c_o=$lt_cv_compiler_c_o
5997: echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5998: echo "${ECHO_T}$compiler_c_o" >&6
5999:
6000: if test x"$compiler_c_o" = x"yes"; then
6001: # Check to see if we can write to a .lo
6002: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
6003: echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
6004: if test "${lt_cv_compiler_o_lo+set}" = set; then
6005: echo $ECHO_N "(cached) $ECHO_C" >&6
6006: else
6007:
6008: lt_cv_compiler_o_lo=no
6009: save_CFLAGS="$CFLAGS"
6010: CFLAGS="$CFLAGS -c -o conftest.lo"
6011: save_objext="$ac_objext"
6012: ac_objext=lo
6013: cat >conftest.$ac_ext <<_ACEOF
6014: /* confdefs.h. */
6015: _ACEOF
6016: cat confdefs.h >>conftest.$ac_ext
6017: cat >>conftest.$ac_ext <<_ACEOF
6018: /* end confdefs.h. */
6019:
6020: int
6021: main ()
6022: {
6023: int some_variable = 0;
6024: ;
6025: return 0;
6026: }
6027: _ACEOF
6028: rm -f conftest.$ac_objext
6029: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 6030: (eval $ac_compile) 2>conftest.er1
1.10 paf 6031: ac_status=$?
1.16 paf 6032: grep -v '^ *+' conftest.er1 >conftest.err
6033: rm -f conftest.er1
6034: cat conftest.err >&5
1.10 paf 6035: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036: (exit $ac_status); } &&
1.16 paf 6037: { ac_try='test -z "$ac_c_werror_flag"
6038: || test ! -s conftest.err'
6039: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040: (eval $ac_try) 2>&5
6041: ac_status=$?
6042: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043: (exit $ac_status); }; } &&
6044: { ac_try='test -s conftest.$ac_objext'
1.10 paf 6045: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046: (eval $ac_try) 2>&5
6047: ac_status=$?
6048: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049: (exit $ac_status); }; }; then
6050: # The compiler can only warn and ignore the option if not recognized
6051: # So say no if there are warnings
6052: if test -s conftest.err; then
6053: lt_cv_compiler_o_lo=no
6054: else
6055: lt_cv_compiler_o_lo=yes
6056: fi
6057:
6058: else
6059: echo "$as_me: failed program was:" >&5
6060: sed 's/^/| /' conftest.$ac_ext >&5
6061:
6062: fi
1.16 paf 6063: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 6064: ac_objext="$save_objext"
6065: CFLAGS="$save_CFLAGS"
6066:
6067: fi
6068:
6069: compiler_o_lo=$lt_cv_compiler_o_lo
6070: echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
6071: echo "${ECHO_T}$compiler_o_lo" >&6
6072: else
6073: compiler_o_lo=no
6074: fi
1.16 paf 6075: ##
6076: ## END FIXME
1.10 paf 6077:
1.16 paf 6078: ## FIXME: this should be a separate macro
6079: ##
1.10 paf 6080: # Check to see if we can do hard links to lock some files if needed
6081: hard_links="nottested"
6082: if test "$compiler_c_o" = no && test "$need_locks" != no; then
6083: # do not overwrite the value of need_locks provided by the user
6084: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6085: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6086: hard_links=yes
6087: $rm conftest*
6088: ln conftest.a conftest.b 2>/dev/null && hard_links=no
6089: touch conftest.a
6090: ln conftest.a conftest.b 2>&5 || hard_links=no
6091: ln conftest.a conftest.b 2>/dev/null && hard_links=no
6092: echo "$as_me:$LINENO: result: $hard_links" >&5
6093: echo "${ECHO_T}$hard_links" >&6
6094: if test "$hard_links" = no; then
6095: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6096: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6097: need_locks=warn
6098: fi
6099: else
6100: need_locks=no
6101: fi
1.16 paf 6102: ##
6103: ## END FIXME
1.10 paf 6104:
1.16 paf 6105: ## FIXME: this should be a separate macro
6106: ##
1.10 paf 6107: if test "$GCC" = yes; then
6108: # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6109: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6110: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6111: echo "int some_variable = 0;" > conftest.$ac_ext
6112: save_CFLAGS="$CFLAGS"
6113: CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6114: compiler_rtti_exceptions=no
6115: cat >conftest.$ac_ext <<_ACEOF
6116: /* confdefs.h. */
6117: _ACEOF
6118: cat confdefs.h >>conftest.$ac_ext
6119: cat >>conftest.$ac_ext <<_ACEOF
6120: /* end confdefs.h. */
6121:
6122: int
6123: main ()
6124: {
6125: int some_variable = 0;
6126: ;
6127: return 0;
6128: }
6129: _ACEOF
6130: rm -f conftest.$ac_objext
6131: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 6132: (eval $ac_compile) 2>conftest.er1
1.10 paf 6133: ac_status=$?
1.16 paf 6134: grep -v '^ *+' conftest.er1 >conftest.err
6135: rm -f conftest.er1
6136: cat conftest.err >&5
1.10 paf 6137: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138: (exit $ac_status); } &&
1.16 paf 6139: { ac_try='test -z "$ac_c_werror_flag"
6140: || test ! -s conftest.err'
6141: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142: (eval $ac_try) 2>&5
6143: ac_status=$?
6144: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145: (exit $ac_status); }; } &&
6146: { ac_try='test -s conftest.$ac_objext'
1.10 paf 6147: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148: (eval $ac_try) 2>&5
6149: ac_status=$?
6150: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151: (exit $ac_status); }; }; then
6152: # The compiler can only warn and ignore the option if not recognized
6153: # So say no if there are warnings
6154: if test -s conftest.err; then
6155: compiler_rtti_exceptions=no
6156: else
6157: compiler_rtti_exceptions=yes
6158: fi
6159:
6160: else
6161: echo "$as_me: failed program was:" >&5
6162: sed 's/^/| /' conftest.$ac_ext >&5
6163:
6164: fi
1.16 paf 6165: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 6166: CFLAGS="$save_CFLAGS"
6167: echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6168: echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6169:
6170: if test "$compiler_rtti_exceptions" = "yes"; then
6171: no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6172: else
6173: no_builtin_flag=' -fno-builtin'
6174: fi
6175: fi
1.16 paf 6176: ##
6177: ## END FIXME
1.10 paf 6178:
1.16 paf 6179: ## FIXME: this should be a separate macro
6180: ##
1.10 paf 6181: # See if the linker supports building shared libraries.
6182: echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6183: echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6184:
6185: allow_undefined_flag=
6186: no_undefined_flag=
6187: need_lib_prefix=unknown
6188: need_version=unknown
6189: # when you set need_version to no, make sure it does not cause -set_version
6190: # flags to be left without arguments
6191: archive_cmds=
6192: archive_expsym_cmds=
6193: old_archive_from_new_cmds=
6194: old_archive_from_expsyms_cmds=
6195: export_dynamic_flag_spec=
6196: whole_archive_flag_spec=
6197: thread_safe_flag_spec=
6198: hardcode_into_libs=no
6199: hardcode_libdir_flag_spec=
6200: hardcode_libdir_separator=
6201: hardcode_direct=no
6202: hardcode_minus_L=no
6203: hardcode_shlibpath_var=unsupported
6204: runpath_var=
6205: link_all_deplibs=unknown
6206: always_export_symbols=no
6207: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6208: # include_expsyms should be a list of space-separated symbols to be *always*
6209: # included in the symbol list
6210: include_expsyms=
6211: # exclude_expsyms can be an egrep regular expression of symbols to exclude
6212: # it will be wrapped by ` (' and `)$', so one must not match beginning or
6213: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6214: # as well as any symbol that contains `d'.
6215: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6216: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6217: # platforms (ab)use it in PIC code, but their linkers get confused if
6218: # the symbol is explicitly referenced. Since portable code cannot
6219: # rely on this symbol name, it's probably fine to never include it in
6220: # preloaded symbol tables.
6221: extract_expsyms_cmds=
6222:
6223: case $host_os in
6224: cygwin* | mingw* | pw32*)
6225: # FIXME: the MSVC++ port hasn't been tested in a loooong time
6226: # When not using gcc, we currently assume that we are using
6227: # Microsoft Visual C++.
6228: if test "$GCC" != yes; then
6229: with_gnu_ld=no
6230: fi
6231: ;;
6232: openbsd*)
6233: with_gnu_ld=no
6234: ;;
6235: esac
6236:
6237: ld_shlibs=yes
6238: if test "$with_gnu_ld" = yes; then
6239: # If archive_cmds runs LD, not CC, wlarc should be empty
6240: wlarc='${wl}'
6241:
6242: # See if GNU ld supports shared libraries.
6243: case $host_os in
6244: aix3* | aix4* | aix5*)
6245: # On AIX, the GNU linker is very broken
6246: # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6247: ld_shlibs=no
6248: cat <<EOF 1>&2
6249:
6250: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6251: *** to be unable to reliably create shared libraries on AIX.
6252: *** Therefore, libtool is disabling shared libraries support. If you
6253: *** really care for shared libraries, you may want to modify your PATH
6254: *** so that a non-GNU linker is found, and then restart.
6255:
6256: EOF
6257: ;;
6258:
6259: amigaos*)
6260: 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)'
6261: hardcode_libdir_flag_spec='-L$libdir'
6262: hardcode_minus_L=yes
6263:
6264: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6265: # that the semantics of dynamic libraries on AmigaOS, at least up
6266: # to version 4, is to share data among multiple programs linked
6267: # with the same dynamic library. Since this doesn't match the
6268: # behavior of shared libraries on other platforms, we can use
6269: # them.
6270: ld_shlibs=no
6271: ;;
6272:
6273: beos*)
6274: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6275: allow_undefined_flag=unsupported
6276: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6277: # support --undefined. This deserves some investigation. FIXME
6278: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6279: else
6280: ld_shlibs=no
6281: fi
6282: ;;
6283:
6284: cygwin* | mingw* | pw32*)
6285: # hardcode_libdir_flag_spec is actually meaningless, as there is
6286: # no search path for DLLs.
6287: hardcode_libdir_flag_spec='-L$libdir'
6288: allow_undefined_flag=unsupported
6289: always_export_symbols=yes
6290:
6291: extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6292: sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6293: test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6294: if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6295: else $CC -o impgen impgen.c ; fi)~
6296: $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6297:
6298: old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6299:
6300: # cygwin and mingw dlls have different entry points and sets of symbols
6301: # to exclude.
6302: # FIXME: what about values for MSVC?
6303: dll_entry=__cygwin_dll_entry@12
6304: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6305: case $host_os in
6306: mingw*)
6307: # mingw values
6308: dll_entry=_DllMainCRTStartup@12
6309: dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6310: ;;
6311: esac
6312:
6313: # mingw and cygwin differ, and it's simplest to just exclude the union
6314: # of the two symbol sets.
6315: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6316:
6317: # recent cygwin and mingw systems supply a stub DllMain which the user
6318: # can override, but on older systems we have to supply one (in ltdll.c)
6319: if test "x$lt_cv_need_dllmain" = "xyes"; then
6320: ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6321: 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~
6322: test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6323: else
6324: ltdll_obj=
6325: ltdll_cmds=
6326: fi
6327:
6328: # Extract the symbol export list from an `--export-all' def file,
6329: # then regenerate the def file from the symbol export list, so that
6330: # the compiled dll only exports the symbol export list.
6331: # Be careful not to strip the DATA tag left be newer dlltools.
6332: export_symbols_cmds="$ltdll_cmds"'
6333: $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6334: sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6335:
6336: # If the export-symbols file already is a .def file (1st line
6337: # is EXPORTS), use it as is.
6338: # If DATA tags from a recent dlltool are present, honour them!
6339: archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6340: cp $export_symbols $output_objdir/$soname-def;
6341: else
6342: echo EXPORTS > $output_objdir/$soname-def;
6343: _lt_hint=1;
6344: cat $export_symbols | while read symbol; do
6345: set dummy \$symbol;
6346: case \$# in
6347: 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6348: 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6349: *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6350: esac;
6351: _lt_hint=`expr 1 + \$_lt_hint`;
6352: done;
6353: fi~
6354: '"$ltdll_cmds"'
6355: $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~
6356: $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~
6357: $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~
6358: $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~
6359: $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6360: ;;
6361:
6362: netbsd*)
6363: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6364: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6365: wlarc=
6366: else
6367: archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6368: archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6369: fi
6370: ;;
6371:
6372: solaris* | sysv5*)
6373: if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6374: ld_shlibs=no
6375: cat <<EOF 1>&2
6376:
6377: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6378: *** create shared libraries on Solaris systems. Therefore, libtool
6379: *** is disabling shared libraries support. We urge you to upgrade GNU
6380: *** binutils to release 2.9.1 or newer. Another option is to modify
6381: *** your PATH or compiler configuration so that the native linker is
6382: *** used, and then restart.
6383:
6384: EOF
6385: elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6386: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6387: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6388: else
6389: ld_shlibs=no
6390: fi
6391: ;;
6392:
6393: sunos4*)
6394: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6395: wlarc=
6396: hardcode_direct=yes
6397: hardcode_shlibpath_var=no
6398: ;;
6399:
6400: *)
6401: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6402: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6403: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6404: else
6405: ld_shlibs=no
6406: fi
6407: ;;
6408: esac
6409:
6410: if test "$ld_shlibs" = yes; then
6411: runpath_var=LD_RUN_PATH
6412: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6413: export_dynamic_flag_spec='${wl}--export-dynamic'
6414: case $host_os in
6415: cygwin* | mingw* | pw32*)
6416: # dlltool doesn't understand --whole-archive et. al.
6417: whole_archive_flag_spec=
6418: ;;
6419: *)
6420: # ancient GNU ld didn't support --whole-archive et. al.
6421: if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6422: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6423: else
6424: whole_archive_flag_spec=
6425: fi
6426: ;;
6427: esac
6428: fi
6429: else
6430: # PORTME fill in a description of your system's linker (not GNU ld)
6431: case $host_os in
6432: aix3*)
6433: allow_undefined_flag=unsupported
6434: always_export_symbols=yes
6435: 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'
6436: # Note: this linker hardcodes the directories in LIBPATH if there
6437: # are no directories specified by -L.
6438: hardcode_minus_L=yes
6439: if test "$GCC" = yes && test -z "$link_static_flag"; then
6440: # Neither direct hardcoding nor static linking is supported with a
6441: # broken collect2.
6442: hardcode_direct=unsupported
6443: fi
6444: ;;
6445:
6446: aix4* | aix5*)
6447: if test "$host_cpu" = ia64; then
6448: # On IA64, the linker does run time linking by default, so we don't
6449: # have to do anything special.
6450: aix_use_runtimelinking=no
6451: exp_sym_flag='-Bexport'
6452: no_entry_flag=""
6453: else
6454: aix_use_runtimelinking=no
6455:
6456: # Test if we are trying to use run time linking or normal
6457: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6458: # need to do runtime linking.
6459: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6460: for ld_flag in $LDFLAGS; do
6461: case $ld_flag in
6462: *-brtl*)
6463: aix_use_runtimelinking=yes
6464: break
6465: ;;
6466: esac
6467: done
6468: esac
6469:
6470: exp_sym_flag='-bexport'
6471: no_entry_flag='-bnoentry'
6472: fi
6473:
6474: # When large executables or shared objects are built, AIX ld can
6475: # have problems creating the table of contents. If linking a library
6476: # or program results in "error TOC overflow" add -mminimal-toc to
6477: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6478: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6479:
6480: hardcode_direct=yes
6481: archive_cmds=''
6482: hardcode_libdir_separator=':'
6483: if test "$GCC" = yes; then
6484: case $host_os in aix4.[012]|aix4.[012].*)
6485: collect2name=`${CC} -print-prog-name=collect2`
6486: if test -f "$collect2name" && \
6487: strings "$collect2name" | grep resolve_lib_name >/dev/null
6488: then
6489: # We have reworked collect2
6490: hardcode_direct=yes
6491: else
6492: # We have old collect2
6493: hardcode_direct=unsupported
6494: # It fails to find uninstalled libraries when the uninstalled
6495: # path is not listed in the libpath. Setting hardcode_minus_L
6496: # to unsupported forces relinking
6497: hardcode_minus_L=yes
6498: hardcode_libdir_flag_spec='-L$libdir'
6499: hardcode_libdir_separator=
6500: fi
6501: esac
6502:
6503: shared_flag='-shared'
6504: else
6505: # not using gcc
6506: if test "$host_cpu" = ia64; then
6507: shared_flag='${wl}-G'
6508: else
6509: if test "$aix_use_runtimelinking" = yes; then
6510: shared_flag='${wl}-G'
6511: else
6512: shared_flag='${wl}-bM:SRE'
6513: fi
6514: fi
6515: fi
6516:
6517: # It seems that -bexpall can do strange things, so it is better to
6518: # generate a list of symbols to export.
6519: always_export_symbols=yes
6520: if test "$aix_use_runtimelinking" = yes; then
6521: # Warning - without using the other runtime loading flags (-brtl),
6522: # -berok will link without error, but may produce a broken library.
6523: allow_undefined_flag='-berok'
6524: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6525: 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"
6526: else
6527: if test "$host_cpu" = ia64; then
6528: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6529: allow_undefined_flag="-z nodefs"
6530: 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"
6531: else
6532: hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6533: # Warning - without using the other run time loading flags,
6534: # -berok will link without error, but may produce a broken library.
6535: allow_undefined_flag='${wl}-berok'
6536: # This is a bit strange, but is similar to how AIX traditionally builds
6537: # it's shared libraries.
6538: 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'
6539: fi
6540: fi
6541: ;;
6542:
6543: amigaos*)
6544: 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)'
6545: hardcode_libdir_flag_spec='-L$libdir'
6546: hardcode_minus_L=yes
6547: # see comment about different semantics on the GNU ld section
6548: ld_shlibs=no
6549: ;;
6550:
6551: cygwin* | mingw* | pw32*)
6552: # When not using gcc, we currently assume that we are using
6553: # Microsoft Visual C++.
6554: # hardcode_libdir_flag_spec is actually meaningless, as there is
6555: # no search path for DLLs.
6556: hardcode_libdir_flag_spec=' '
6557: allow_undefined_flag=unsupported
6558: # Tell ltmain to make .lib files, not .a files.
6559: libext=lib
6560: # FIXME: Setting linknames here is a bad hack.
6561: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6562: # The linker will automatically build a .lib file if we build a DLL.
6563: old_archive_from_new_cmds='true'
6564: # FIXME: Should let the user specify the lib program.
6565: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6566: fix_srcfile_path='`cygpath -w "$srcfile"`'
6567: ;;
6568:
6569: darwin* | rhapsody*)
6570: case "$host_os" in
6571: rhapsody* | darwin1.[012])
6572: allow_undefined_flag='-undefined suppress'
6573: ;;
6574: *) # Darwin 1.3 on
6575: allow_undefined_flag='-flat_namespace -undefined suppress'
6576: ;;
6577: esac
6578: # FIXME: Relying on posixy $() will cause problems for
6579: # cross-compilation, but unfortunately the echo tests do not
6580: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6581: # `"' quotes if we put them in here... so don't!
6582: 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)'
6583: # We need to add '_' to the symbols in $export_symbols first
6584: #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6585: hardcode_direct=yes
6586: hardcode_shlibpath_var=no
6587: whole_archive_flag_spec='-all_load $convenience'
6588: ;;
6589:
6590: freebsd1*)
6591: ld_shlibs=no
6592: ;;
6593:
6594: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6595: # support. Future versions do this automatically, but an explicit c++rt0.o
6596: # does not break anything, and helps significantly (at the cost of a little
6597: # extra space).
6598: freebsd2.2*)
6599: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6600: hardcode_libdir_flag_spec='-R$libdir'
6601: hardcode_direct=yes
6602: hardcode_shlibpath_var=no
6603: ;;
6604:
6605: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6606: freebsd2*)
6607: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6608: hardcode_direct=yes
6609: hardcode_minus_L=yes
6610: hardcode_shlibpath_var=no
6611: ;;
6612:
6613: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6614: freebsd*)
6615: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6616: hardcode_libdir_flag_spec='-R$libdir'
6617: hardcode_direct=yes
6618: hardcode_shlibpath_var=no
6619: ;;
6620:
6621: hpux9* | hpux10* | hpux11*)
6622: case $host_os in
6623: 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' ;;
6624: *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6625: esac
6626: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6627: hardcode_libdir_separator=:
6628: hardcode_direct=yes
6629: hardcode_minus_L=yes # Not in the search PATH, but as the default
6630: # location of the library.
6631: export_dynamic_flag_spec='${wl}-E'
6632: ;;
6633:
6634: irix5* | irix6* | nonstopux*)
6635: if test "$GCC" = yes; then
6636: 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'
6637: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6638: else
6639: 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'
6640: hardcode_libdir_flag_spec='-rpath $libdir'
6641: fi
6642: hardcode_libdir_separator=:
6643: link_all_deplibs=yes
6644: ;;
6645:
6646: netbsd*)
6647: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6648: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6649: else
6650: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6651: fi
6652: hardcode_libdir_flag_spec='-R$libdir'
6653: hardcode_direct=yes
6654: hardcode_shlibpath_var=no
6655: ;;
6656:
6657: newsos6)
6658: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6659: hardcode_direct=yes
6660: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6661: hardcode_libdir_separator=:
6662: hardcode_shlibpath_var=no
6663: ;;
6664:
6665: openbsd*)
6666: hardcode_direct=yes
6667: hardcode_shlibpath_var=no
6668: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6669: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6670: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6671: export_dynamic_flag_spec='${wl}-E'
6672: else
6673: case "$host_os" in
6674: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6675: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6676: hardcode_libdir_flag_spec='-R$libdir'
6677: ;;
6678: *)
6679: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6680: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6681: ;;
6682: esac
6683: fi
6684: ;;
6685:
6686: os2*)
6687: hardcode_libdir_flag_spec='-L$libdir'
6688: hardcode_minus_L=yes
6689: allow_undefined_flag=unsupported
6690: 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'
6691: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6692: ;;
6693:
6694: osf3*)
6695: if test "$GCC" = yes; then
6696: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6697: 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'
6698: else
6699: allow_undefined_flag=' -expect_unresolved \*'
6700: 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'
6701: fi
6702: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6703: hardcode_libdir_separator=:
6704: ;;
6705:
6706: osf4* | osf5*) # as osf3* with the addition of -msym flag
6707: if test "$GCC" = yes; then
6708: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6709: 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'
6710: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6711: else
6712: allow_undefined_flag=' -expect_unresolved \*'
6713: 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'
6714: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6715: $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'
6716:
6717: #Both c and cxx compiler support -rpath directly
6718: hardcode_libdir_flag_spec='-rpath $libdir'
6719: fi
6720: hardcode_libdir_separator=:
6721: ;;
6722:
6723: sco3.2v5*)
6724: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6725: hardcode_shlibpath_var=no
6726: runpath_var=LD_RUN_PATH
6727: hardcode_runpath_var=yes
6728: export_dynamic_flag_spec='${wl}-Bexport'
6729: ;;
6730:
6731: solaris*)
6732: # gcc --version < 3.0 without binutils cannot create self contained
6733: # shared libraries reliably, requiring libgcc.a to resolve some of
6734: # the object symbols generated in some cases. Libraries that use
6735: # assert need libgcc.a to resolve __eprintf, for example. Linking
6736: # a copy of libgcc.a into every shared library to guarantee resolving
6737: # such symbols causes other problems: According to Tim Van Holder
6738: # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6739: # (to the application) exception stack for one thing.
6740: no_undefined_flag=' -z defs'
6741: if test "$GCC" = yes; then
6742: case `$CC --version 2>/dev/null` in
6743: [12].*)
6744: cat <<EOF 1>&2
6745:
6746: *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6747: *** create self contained shared libraries on Solaris systems, without
6748: *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6749: *** -no-undefined support, which will at least allow you to build shared
6750: *** libraries. However, you may find that when you link such libraries
6751: *** into an application without using GCC, you have to manually add
6752: *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6753: *** upgrade to a newer version of GCC. Another option is to rebuild your
6754: *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6755:
6756: EOF
6757: no_undefined_flag=
6758: ;;
6759: esac
6760: fi
6761: # $CC -shared without GNU ld will not create a library from C++
6762: # object files and a static libstdc++, better avoid it by now
6763: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6764: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6765: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6766: hardcode_libdir_flag_spec='-R$libdir'
6767: hardcode_shlibpath_var=no
6768: case $host_os in
6769: solaris2.[0-5] | solaris2.[0-5].*) ;;
6770: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6771: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6772: esac
6773: link_all_deplibs=yes
6774: ;;
6775:
6776: sunos4*)
6777: if test "x$host_vendor" = xsequent; then
6778: # Use $CC to link under sequent, because it throws in some extra .o
6779: # files that make .init and .fini sections work.
6780: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6781: else
6782: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6783: fi
6784: hardcode_libdir_flag_spec='-L$libdir'
6785: hardcode_direct=yes
6786: hardcode_minus_L=yes
6787: hardcode_shlibpath_var=no
6788: ;;
6789:
6790: sysv4)
6791: case $host_vendor in
6792: sni)
6793: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6794: hardcode_direct=yes # is this really true???
6795: ;;
6796: siemens)
6797: ## LD is ld it makes a PLAMLIB
6798: ## CC just makes a GrossModule.
6799: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6800: reload_cmds='$CC -r -o $output$reload_objs'
6801: hardcode_direct=no
6802: ;;
6803: motorola)
6804: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6805: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6806: ;;
6807: esac
6808: runpath_var='LD_RUN_PATH'
6809: hardcode_shlibpath_var=no
6810: ;;
6811:
6812: sysv4.3*)
6813: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6814: hardcode_shlibpath_var=no
6815: export_dynamic_flag_spec='-Bexport'
6816: ;;
6817:
6818: sysv5*)
6819: no_undefined_flag=' -z text'
6820: # $CC -shared without GNU ld will not create a library from C++
6821: # object files and a static libstdc++, better avoid it by now
6822: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6823: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6824: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6825: hardcode_libdir_flag_spec=
6826: hardcode_shlibpath_var=no
6827: runpath_var='LD_RUN_PATH'
6828: ;;
6829:
6830: uts4*)
6831: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6832: hardcode_libdir_flag_spec='-L$libdir'
6833: hardcode_shlibpath_var=no
6834: ;;
6835:
6836: dgux*)
6837: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6838: hardcode_libdir_flag_spec='-L$libdir'
6839: hardcode_shlibpath_var=no
6840: ;;
6841:
6842: sysv4*MP*)
6843: if test -d /usr/nec; then
6844: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6845: hardcode_shlibpath_var=no
6846: runpath_var=LD_RUN_PATH
6847: hardcode_runpath_var=yes
6848: ld_shlibs=yes
6849: fi
6850: ;;
6851:
6852: sysv4.2uw2*)
6853: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6854: hardcode_direct=yes
6855: hardcode_minus_L=no
6856: hardcode_shlibpath_var=no
6857: hardcode_runpath_var=yes
6858: runpath_var=LD_RUN_PATH
6859: ;;
6860:
6861: sysv5uw7* | unixware7*)
6862: no_undefined_flag='${wl}-z ${wl}text'
6863: if test "$GCC" = yes; then
6864: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6865: else
6866: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6867: fi
6868: runpath_var='LD_RUN_PATH'
6869: hardcode_shlibpath_var=no
6870: ;;
6871:
6872: *)
6873: ld_shlibs=no
6874: ;;
6875: esac
6876: fi
6877: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6878: echo "${ECHO_T}$ld_shlibs" >&6
6879: test "$ld_shlibs" = no && can_build_shared=no
1.16 paf 6880: ##
6881: ## END FIXME
1.10 paf 6882:
1.16 paf 6883: ## FIXME: this should be a separate macro
6884: ##
1.10 paf 6885: # Check hardcoding attributes.
6886: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6887: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6888: hardcode_action=
6889: if test -n "$hardcode_libdir_flag_spec" || \
6890: test -n "$runpath_var"; then
6891:
6892: # We can hardcode non-existant directories.
6893: if test "$hardcode_direct" != no &&
6894: # If the only mechanism to avoid hardcoding is shlibpath_var, we
6895: # have to relink, otherwise we might link with an installed library
6896: # when we should be linking with a yet-to-be-installed one
6897: ## test "$hardcode_shlibpath_var" != no &&
6898: test "$hardcode_minus_L" != no; then
6899: # Linking always hardcodes the temporary library directory.
6900: hardcode_action=relink
6901: else
6902: # We can link without hardcoding, and we can hardcode nonexisting dirs.
6903: hardcode_action=immediate
6904: fi
6905: else
6906: # We cannot hardcode anything, or else we can only hardcode existing
6907: # directories.
6908: hardcode_action=unsupported
6909: fi
6910: echo "$as_me:$LINENO: result: $hardcode_action" >&5
6911: echo "${ECHO_T}$hardcode_action" >&6
1.16 paf 6912: ##
6913: ## END FIXME
1.10 paf 6914:
1.16 paf 6915: ## FIXME: this should be a separate macro
6916: ##
1.10 paf 6917: striplib=
6918: old_striplib=
6919: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6920: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6921: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6922: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6923: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6924: echo "$as_me:$LINENO: result: yes" >&5
6925: echo "${ECHO_T}yes" >&6
6926: else
6927: echo "$as_me:$LINENO: result: no" >&5
6928: echo "${ECHO_T}no" >&6
6929: fi
1.16 paf 6930: ##
6931: ## END FIXME
1.10 paf 6932:
6933: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6934: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6935:
1.16 paf 6936: ## FIXME: this should be a separate macro
6937: ##
1.10 paf 6938: # PORTME Fill in your ld.so characteristics
6939: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6940: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6941: library_names_spec=
6942: libname_spec='lib$name'
6943: soname_spec=
6944: postinstall_cmds=
6945: postuninstall_cmds=
6946: finish_cmds=
6947: finish_eval=
6948: shlibpath_var=
6949: shlibpath_overrides_runpath=unknown
6950: version_type=none
6951: dynamic_linker="$host_os ld.so"
6952: sys_lib_dlsearch_path_spec="/lib /usr/lib"
6953: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6954:
6955: case $host_os in
6956: aix3*)
6957: version_type=linux
6958: library_names_spec='${libname}${release}.so$versuffix $libname.a'
6959: shlibpath_var=LIBPATH
6960:
6961: # AIX has no versioning support, so we append a major version to the name.
6962: soname_spec='${libname}${release}.so$major'
6963: ;;
6964:
6965: aix4* | aix5*)
6966: version_type=linux
6967: need_lib_prefix=no
6968: need_version=no
6969: hardcode_into_libs=yes
6970: if test "$host_cpu" = ia64; then
6971: # AIX 5 supports IA64
6972: library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6973: shlibpath_var=LD_LIBRARY_PATH
6974: else
6975: # With GCC up to 2.95.x, collect2 would create an import file
6976: # for dependence libraries. The import file would start with
6977: # the line `#! .'. This would cause the generated library to
6978: # depend on `.', always an invalid library. This was fixed in
6979: # development snapshots of GCC prior to 3.0.
6980: case $host_os in
6981: aix4 | aix4.[01] | aix4.[01].*)
6982: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6983: echo ' yes '
6984: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6985: :
6986: else
6987: can_build_shared=no
6988: fi
6989: ;;
6990: esac
6991: # AIX (on Power*) has no versioning support, so currently we can
6992: # not hardcode correct soname into executable. Probably we can
6993: # add versioning support to collect2, so additional links can
6994: # be useful in future.
6995: if test "$aix_use_runtimelinking" = yes; then
6996: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6997: # instead of lib<name>.a to let people know that these are not
6998: # typical AIX shared libraries.
6999: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7000: else
7001: # We preserve .a as extension for shared libraries through AIX4.2
7002: # and later when we are not doing run time linking.
7003: library_names_spec='${libname}${release}.a $libname.a'
7004: soname_spec='${libname}${release}.so$major'
7005: fi
7006: shlibpath_var=LIBPATH
7007: fi
7008: hardcode_into_libs=yes
7009: ;;
7010:
7011: amigaos*)
7012: library_names_spec='$libname.ixlibrary $libname.a'
7013: # Create ${libname}_ixlibrary.a entries in /sys/libs.
7014: 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'
7015: ;;
7016:
7017: beos*)
7018: library_names_spec='${libname}.so'
7019: dynamic_linker="$host_os ld.so"
7020: shlibpath_var=LIBRARY_PATH
7021: ;;
7022:
7023: bsdi4*)
7024: version_type=linux
7025: need_version=no
7026: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7027: soname_spec='${libname}${release}.so$major'
7028: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7029: shlibpath_var=LD_LIBRARY_PATH
7030: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7031: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7032: export_dynamic_flag_spec=-rdynamic
7033: # the default ld.so.conf also contains /usr/contrib/lib and
7034: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7035: # libtool to hard-code these into programs
7036: ;;
7037:
7038: cygwin* | mingw* | pw32*)
7039: version_type=windows
7040: need_version=no
7041: need_lib_prefix=no
7042: case $GCC,$host_os in
7043: yes,cygwin*)
7044: library_names_spec='$libname.dll.a'
7045: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7046: postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7047: dldir=$destdir/`dirname \$dlpath`~
7048: test -d \$dldir || mkdir -p \$dldir~
7049: $install_prog .libs/$dlname \$dldir/$dlname'
7050: postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7051: dlpath=$dir/\$dldll~
7052: $rm \$dlpath'
7053: ;;
7054: yes,mingw*)
7055: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7056: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
7057: ;;
7058: yes,pw32*)
7059: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7060: ;;
7061: *)
7062: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7063: ;;
7064: esac
7065: dynamic_linker='Win32 ld.exe'
7066: # FIXME: first we should search . and the directory the executable is in
7067: shlibpath_var=PATH
7068: ;;
7069:
7070: darwin* | rhapsody*)
7071: dynamic_linker="$host_os dyld"
7072: version_type=darwin
7073: need_lib_prefix=no
7074: need_version=no
7075: # FIXME: Relying on posixy $() will cause problems for
7076: # cross-compilation, but unfortunately the echo tests do not
7077: # yet detect zsh echo's removal of \ escapes.
7078: 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)'
7079: soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7080: shlibpath_overrides_runpath=yes
7081: shlibpath_var=DYLD_LIBRARY_PATH
7082: ;;
7083:
7084: freebsd1*)
7085: dynamic_linker=no
7086: ;;
7087:
7088: freebsd*)
7089: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7090: version_type=freebsd-$objformat
7091: case $version_type in
7092: freebsd-elf*)
7093: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7094: need_version=no
7095: need_lib_prefix=no
7096: ;;
7097: freebsd-*)
7098: library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7099: need_version=yes
7100: ;;
7101: esac
7102: shlibpath_var=LD_LIBRARY_PATH
7103: case $host_os in
7104: freebsd2*)
7105: shlibpath_overrides_runpath=yes
7106: ;;
7107: *)
7108: shlibpath_overrides_runpath=no
7109: hardcode_into_libs=yes
7110: ;;
7111: esac
7112: ;;
7113:
7114: gnu*)
7115: version_type=linux
7116: need_lib_prefix=no
7117: need_version=no
7118: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7119: soname_spec='${libname}${release}.so$major'
7120: shlibpath_var=LD_LIBRARY_PATH
7121: hardcode_into_libs=yes
7122: ;;
7123:
7124: hpux9* | hpux10* | hpux11*)
7125: # Give a soname corresponding to the major version so that dld.sl refuses to
7126: # link against other versions.
7127: dynamic_linker="$host_os dld.sl"
7128: version_type=sunos
7129: need_lib_prefix=no
7130: need_version=no
7131: shlibpath_var=SHLIB_PATH
7132: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7133: library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7134: soname_spec='${libname}${release}.sl$major'
7135: # HP-UX runs *really* slowly unless shared libraries are mode 555.
7136: postinstall_cmds='chmod 555 $lib'
7137: ;;
7138:
7139: irix5* | irix6* | nonstopux*)
7140: case $host_os in
7141: nonstopux*) version_type=nonstopux ;;
7142: *) version_type=irix ;;
7143: esac
7144: need_lib_prefix=no
7145: need_version=no
7146: soname_spec='${libname}${release}.so$major'
7147: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7148: case $host_os in
7149: irix5* | nonstopux*)
7150: libsuff= shlibsuff=
7151: ;;
7152: *)
7153: case $LD in # libtool.m4 will add one of these switches to LD
7154: *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7155: *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7156: *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7157: *) libsuff= shlibsuff= libmagic=never-match;;
7158: esac
7159: ;;
7160: esac
7161: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7162: shlibpath_overrides_runpath=no
7163: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7164: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7165: ;;
7166:
7167: # No shared lib support for Linux oldld, aout, or coff.
7168: linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7169: dynamic_linker=no
7170: ;;
7171:
7172: # This must be Linux ELF.
7173: linux-gnu*)
7174: version_type=linux
7175: need_lib_prefix=no
7176: need_version=no
7177: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7178: soname_spec='${libname}${release}.so$major'
7179: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7180: shlibpath_var=LD_LIBRARY_PATH
7181: shlibpath_overrides_runpath=no
7182: # This implies no fast_install, which is unacceptable.
7183: # Some rework will be needed to allow for fast_install
7184: # before this can be enabled.
7185: hardcode_into_libs=yes
7186:
7187: # We used to test for /lib/ld.so.1 and disable shared libraries on
7188: # powerpc, because MkLinux only supported shared libraries with the
7189: # GNU dynamic linker. Since this was broken with cross compilers,
7190: # most powerpc-linux boxes support dynamic linking these days and
7191: # people can always --disable-shared, the test was removed, and we
7192: # assume the GNU/Linux dynamic linker is in use.
7193: dynamic_linker='GNU/Linux ld.so'
7194: ;;
7195:
7196: netbsd*)
7197: version_type=sunos
7198: need_lib_prefix=no
7199: need_version=no
7200: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7201: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7202: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7203: dynamic_linker='NetBSD (a.out) ld.so'
7204: else
7205: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7206: soname_spec='${libname}${release}.so$major'
7207: dynamic_linker='NetBSD ld.elf_so'
7208: fi
7209: shlibpath_var=LD_LIBRARY_PATH
7210: shlibpath_overrides_runpath=yes
7211: hardcode_into_libs=yes
7212: ;;
7213:
7214: newsos6)
7215: version_type=linux
7216: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7217: shlibpath_var=LD_LIBRARY_PATH
7218: shlibpath_overrides_runpath=yes
7219: ;;
7220:
7221: openbsd*)
7222: version_type=sunos
7223: need_lib_prefix=no
7224: need_version=no
7225: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7226: case "$host_os" in
7227: openbsd2.[89] | openbsd2.[89].*)
7228: shlibpath_overrides_runpath=no
7229: ;;
7230: *)
7231: shlibpath_overrides_runpath=yes
7232: ;;
7233: esac
7234: else
7235: shlibpath_overrides_runpath=yes
7236: fi
7237: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7238: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7239: shlibpath_var=LD_LIBRARY_PATH
7240: ;;
7241:
7242: os2*)
7243: libname_spec='$name'
7244: need_lib_prefix=no
7245: library_names_spec='$libname.dll $libname.a'
7246: dynamic_linker='OS/2 ld.exe'
7247: shlibpath_var=LIBPATH
7248: ;;
7249:
7250: osf3* | osf4* | osf5*)
7251: version_type=osf
7252: need_version=no
7253: soname_spec='${libname}${release}.so$major'
7254: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7255: shlibpath_var=LD_LIBRARY_PATH
7256: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7257: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7258: hardcode_into_libs=yes
7259: ;;
7260:
7261: sco3.2v5*)
7262: version_type=osf
7263: soname_spec='${libname}${release}.so$major'
7264: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7265: shlibpath_var=LD_LIBRARY_PATH
7266: ;;
7267:
7268: solaris*)
7269: version_type=linux
7270: need_lib_prefix=no
7271: need_version=no
7272: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7273: soname_spec='${libname}${release}.so$major'
7274: shlibpath_var=LD_LIBRARY_PATH
7275: shlibpath_overrides_runpath=yes
7276: hardcode_into_libs=yes
7277: # ldd complains unless libraries are executable
7278: postinstall_cmds='chmod +x $lib'
7279: ;;
7280:
7281: sunos4*)
7282: version_type=sunos
7283: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7284: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7285: shlibpath_var=LD_LIBRARY_PATH
7286: shlibpath_overrides_runpath=yes
7287: if test "$with_gnu_ld" = yes; then
7288: need_lib_prefix=no
7289: fi
7290: need_version=yes
7291: ;;
7292:
7293: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7294: version_type=linux
7295: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7296: soname_spec='${libname}${release}.so$major'
7297: shlibpath_var=LD_LIBRARY_PATH
7298: case $host_vendor in
7299: sni)
7300: shlibpath_overrides_runpath=no
7301: need_lib_prefix=no
7302: export_dynamic_flag_spec='${wl}-Blargedynsym'
7303: runpath_var=LD_RUN_PATH
7304: ;;
7305: siemens)
7306: need_lib_prefix=no
7307: ;;
7308: motorola)
7309: need_lib_prefix=no
7310: need_version=no
7311: shlibpath_overrides_runpath=no
7312: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7313: ;;
7314: esac
7315: ;;
7316:
7317: uts4*)
7318: version_type=linux
7319: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7320: soname_spec='${libname}${release}.so$major'
7321: shlibpath_var=LD_LIBRARY_PATH
7322: ;;
7323:
7324: dgux*)
7325: version_type=linux
7326: need_lib_prefix=no
7327: need_version=no
7328: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7329: soname_spec='${libname}${release}.so$major'
7330: shlibpath_var=LD_LIBRARY_PATH
7331: ;;
7332:
7333: sysv4*MP*)
7334: if test -d /usr/nec ;then
7335: version_type=linux
7336: library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7337: soname_spec='$libname.so.$major'
7338: shlibpath_var=LD_LIBRARY_PATH
7339: fi
7340: ;;
7341:
7342: *)
7343: dynamic_linker=no
7344: ;;
7345: esac
7346: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7347: echo "${ECHO_T}$dynamic_linker" >&6
7348: test "$dynamic_linker" = no && can_build_shared=no
1.16 paf 7349: ##
7350: ## END FIXME
1.10 paf 7351:
1.16 paf 7352: ## FIXME: this should be a separate macro
7353: ##
1.10 paf 7354: # Report the final consequences.
7355: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7356: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7357: echo "$as_me:$LINENO: result: $can_build_shared" >&5
7358: echo "${ECHO_T}$can_build_shared" >&6
1.16 paf 7359: ##
7360: ## END FIXME
1.10 paf 7361:
1.16 paf 7362: ## FIXME: this should be a separate macro
7363: ##
1.10 paf 7364: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7365: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7366: test "$can_build_shared" = "no" && enable_shared=no
7367:
7368: # On AIX, shared libraries and static libraries use the same namespace, and
7369: # are all built from PIC.
7370: case "$host_os" in
7371: aix3*)
7372: test "$enable_shared" = yes && enable_static=no
7373: if test -n "$RANLIB"; then
7374: archive_cmds="$archive_cmds~\$RANLIB \$lib"
7375: postinstall_cmds='$RANLIB $lib'
7376: fi
7377: ;;
7378:
7379: aix4*)
7380: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7381: test "$enable_shared" = yes && enable_static=no
7382: fi
7383: ;;
7384: esac
7385: echo "$as_me:$LINENO: result: $enable_shared" >&5
7386: echo "${ECHO_T}$enable_shared" >&6
1.16 paf 7387: ##
7388: ## END FIXME
1.10 paf 7389:
1.16 paf 7390: ## FIXME: this should be a separate macro
7391: ##
1.10 paf 7392: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7393: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7394: # Make sure either enable_shared or enable_static is yes.
7395: test "$enable_shared" = yes || enable_static=yes
7396: echo "$as_me:$LINENO: result: $enable_static" >&5
7397: echo "${ECHO_T}$enable_static" >&6
1.16 paf 7398: ##
7399: ## END FIXME
1.10 paf 7400:
7401: if test "$hardcode_action" = relink; then
7402: # Fast installation is not supported
7403: enable_fast_install=no
7404: elif test "$shlibpath_overrides_runpath" = yes ||
7405: test "$enable_shared" = no; then
7406: # Fast installation is not necessary
7407: enable_fast_install=needless
7408: fi
7409:
7410: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7411: if test "$GCC" = yes; then
7412: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7413: fi
7414:
7415: if test "x$enable_dlopen" != xyes; then
7416: enable_dlopen=unknown
7417: enable_dlopen_self=unknown
7418: enable_dlopen_self_static=unknown
7419: else
7420: lt_cv_dlopen=no
7421: lt_cv_dlopen_libs=
7422:
7423: case $host_os in
7424: beos*)
7425: lt_cv_dlopen="load_add_on"
7426: lt_cv_dlopen_libs=
7427: lt_cv_dlopen_self=yes
7428: ;;
7429:
7430: cygwin* | mingw* | pw32*)
7431: lt_cv_dlopen="LoadLibrary"
7432: lt_cv_dlopen_libs=
7433: ;;
7434:
7435: *)
7436: echo "$as_me:$LINENO: checking for shl_load" >&5
7437: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7438: if test "${ac_cv_func_shl_load+set}" = set; then
7439: echo $ECHO_N "(cached) $ECHO_C" >&6
7440: else
7441: cat >conftest.$ac_ext <<_ACEOF
7442: /* confdefs.h. */
7443: _ACEOF
7444: cat confdefs.h >>conftest.$ac_ext
7445: cat >>conftest.$ac_ext <<_ACEOF
7446: /* end confdefs.h. */
1.16 paf 7447: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7448: For example, HP-UX 11i <limits.h> declares gettimeofday. */
7449: #define shl_load innocuous_shl_load
7450:
1.10 paf 7451: /* System header to define __stub macros and hopefully few prototypes,
7452: which can conflict with char shl_load (); below.
7453: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7454: <limits.h> exists even on freestanding compilers. */
1.16 paf 7455:
1.10 paf 7456: #ifdef __STDC__
7457: # include <limits.h>
7458: #else
7459: # include <assert.h>
7460: #endif
1.16 paf 7461:
7462: #undef shl_load
7463:
1.10 paf 7464: /* Override any gcc2 internal prototype to avoid an error. */
7465: #ifdef __cplusplus
7466: extern "C"
7467: {
7468: #endif
7469: /* We use char because int might match the return type of a gcc2
7470: builtin and then its argument prototype would still apply. */
7471: char shl_load ();
7472: /* The GNU C library defines this for functions which it implements
7473: to always fail with ENOSYS. Some functions are actually named
7474: something starting with __ and the normal name is an alias. */
7475: #if defined (__stub_shl_load) || defined (__stub___shl_load)
7476: choke me
7477: #else
7478: char (*f) () = shl_load;
7479: #endif
7480: #ifdef __cplusplus
7481: }
7482: #endif
7483:
7484: int
7485: main ()
7486: {
7487: return f != shl_load;
7488: ;
7489: return 0;
7490: }
7491: _ACEOF
7492: rm -f conftest.$ac_objext conftest$ac_exeext
7493: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.16 paf 7494: (eval $ac_link) 2>conftest.er1
1.10 paf 7495: ac_status=$?
1.16 paf 7496: grep -v '^ *+' conftest.er1 >conftest.err
7497: rm -f conftest.er1
7498: cat conftest.err >&5
1.10 paf 7499: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500: (exit $ac_status); } &&
1.16 paf 7501: { ac_try='test -z "$ac_c_werror_flag"
7502: || test ! -s conftest.err'
7503: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504: (eval $ac_try) 2>&5
7505: ac_status=$?
7506: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507: (exit $ac_status); }; } &&
7508: { ac_try='test -s conftest$ac_exeext'
1.10 paf 7509: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510: (eval $ac_try) 2>&5
7511: ac_status=$?
7512: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513: (exit $ac_status); }; }; then
7514: ac_cv_func_shl_load=yes
7515: else
7516: echo "$as_me: failed program was:" >&5
7517: sed 's/^/| /' conftest.$ac_ext >&5
7518:
7519: ac_cv_func_shl_load=no
7520: fi
1.16 paf 7521: rm -f conftest.err conftest.$ac_objext \
7522: conftest$ac_exeext conftest.$ac_ext
1.10 paf 7523: fi
7524: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7525: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7526: if test $ac_cv_func_shl_load = yes; then
7527: lt_cv_dlopen="shl_load"
7528: else
7529: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7530: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7531: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7532: echo $ECHO_N "(cached) $ECHO_C" >&6
7533: else
7534: ac_check_lib_save_LIBS=$LIBS
7535: LIBS="-ldld $LIBS"
7536: cat >conftest.$ac_ext <<_ACEOF
7537: /* confdefs.h. */
7538: _ACEOF
7539: cat confdefs.h >>conftest.$ac_ext
7540: cat >>conftest.$ac_ext <<_ACEOF
7541: /* end confdefs.h. */
7542:
7543: /* Override any gcc2 internal prototype to avoid an error. */
7544: #ifdef __cplusplus
7545: extern "C"
7546: #endif
7547: /* We use char because int might match the return type of a gcc2
7548: builtin and then its argument prototype would still apply. */
7549: char shl_load ();
7550: int
7551: main ()
7552: {
7553: shl_load ();
7554: ;
7555: return 0;
7556: }
7557: _ACEOF
7558: rm -f conftest.$ac_objext conftest$ac_exeext
7559: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.16 paf 7560: (eval $ac_link) 2>conftest.er1
1.10 paf 7561: ac_status=$?
1.16 paf 7562: grep -v '^ *+' conftest.er1 >conftest.err
7563: rm -f conftest.er1
7564: cat conftest.err >&5
1.10 paf 7565: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566: (exit $ac_status); } &&
1.16 paf 7567: { ac_try='test -z "$ac_c_werror_flag"
7568: || test ! -s conftest.err'
7569: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570: (eval $ac_try) 2>&5
7571: ac_status=$?
7572: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573: (exit $ac_status); }; } &&
7574: { ac_try='test -s conftest$ac_exeext'
1.10 paf 7575: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576: (eval $ac_try) 2>&5
7577: ac_status=$?
7578: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579: (exit $ac_status); }; }; then
7580: ac_cv_lib_dld_shl_load=yes
7581: else
7582: echo "$as_me: failed program was:" >&5
7583: sed 's/^/| /' conftest.$ac_ext >&5
7584:
7585: ac_cv_lib_dld_shl_load=no
7586: fi
1.16 paf 7587: rm -f conftest.err conftest.$ac_objext \
7588: conftest$ac_exeext conftest.$ac_ext
1.10 paf 7589: LIBS=$ac_check_lib_save_LIBS
7590: fi
7591: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7592: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7593: if test $ac_cv_lib_dld_shl_load = yes; then
7594: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7595: else
7596: echo "$as_me:$LINENO: checking for dlopen" >&5
7597: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7598: if test "${ac_cv_func_dlopen+set}" = set; then
7599: echo $ECHO_N "(cached) $ECHO_C" >&6
7600: else
7601: cat >conftest.$ac_ext <<_ACEOF
7602: /* confdefs.h. */
7603: _ACEOF
7604: cat confdefs.h >>conftest.$ac_ext
7605: cat >>conftest.$ac_ext <<_ACEOF
7606: /* end confdefs.h. */
1.16 paf 7607: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7608: For example, HP-UX 11i <limits.h> declares gettimeofday. */
7609: #define dlopen innocuous_dlopen
7610:
1.10 paf 7611: /* System header to define __stub macros and hopefully few prototypes,
7612: which can conflict with char dlopen (); below.
7613: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7614: <limits.h> exists even on freestanding compilers. */
1.16 paf 7615:
1.10 paf 7616: #ifdef __STDC__
7617: # include <limits.h>
7618: #else
7619: # include <assert.h>
7620: #endif
1.16 paf 7621:
7622: #undef dlopen
7623:
1.10 paf 7624: /* Override any gcc2 internal prototype to avoid an error. */
7625: #ifdef __cplusplus
7626: extern "C"
7627: {
7628: #endif
7629: /* We use char because int might match the return type of a gcc2
7630: builtin and then its argument prototype would still apply. */
7631: char dlopen ();
7632: /* The GNU C library defines this for functions which it implements
7633: to always fail with ENOSYS. Some functions are actually named
7634: something starting with __ and the normal name is an alias. */
7635: #if defined (__stub_dlopen) || defined (__stub___dlopen)
7636: choke me
7637: #else
7638: char (*f) () = dlopen;
7639: #endif
7640: #ifdef __cplusplus
7641: }
7642: #endif
7643:
7644: int
7645: main ()
7646: {
7647: return f != dlopen;
7648: ;
7649: return 0;
7650: }
7651: _ACEOF
7652: rm -f conftest.$ac_objext conftest$ac_exeext
7653: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.16 paf 7654: (eval $ac_link) 2>conftest.er1
1.10 paf 7655: ac_status=$?
1.16 paf 7656: grep -v '^ *+' conftest.er1 >conftest.err
7657: rm -f conftest.er1
7658: cat conftest.err >&5
1.10 paf 7659: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660: (exit $ac_status); } &&
1.16 paf 7661: { ac_try='test -z "$ac_c_werror_flag"
7662: || test ! -s conftest.err'
7663: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664: (eval $ac_try) 2>&5
7665: ac_status=$?
7666: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667: (exit $ac_status); }; } &&
7668: { ac_try='test -s conftest$ac_exeext'
1.10 paf 7669: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670: (eval $ac_try) 2>&5
7671: ac_status=$?
7672: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673: (exit $ac_status); }; }; then
7674: ac_cv_func_dlopen=yes
7675: else
7676: echo "$as_me: failed program was:" >&5
7677: sed 's/^/| /' conftest.$ac_ext >&5
7678:
7679: ac_cv_func_dlopen=no
7680: fi
1.16 paf 7681: rm -f conftest.err conftest.$ac_objext \
7682: conftest$ac_exeext conftest.$ac_ext
1.10 paf 7683: fi
7684: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7685: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7686: if test $ac_cv_func_dlopen = yes; then
7687: lt_cv_dlopen="dlopen"
7688: else
7689: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7690: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7691: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7692: echo $ECHO_N "(cached) $ECHO_C" >&6
7693: else
7694: ac_check_lib_save_LIBS=$LIBS
7695: LIBS="-ldl $LIBS"
7696: cat >conftest.$ac_ext <<_ACEOF
7697: /* confdefs.h. */
7698: _ACEOF
7699: cat confdefs.h >>conftest.$ac_ext
7700: cat >>conftest.$ac_ext <<_ACEOF
7701: /* end confdefs.h. */
7702:
7703: /* Override any gcc2 internal prototype to avoid an error. */
7704: #ifdef __cplusplus
7705: extern "C"
7706: #endif
7707: /* We use char because int might match the return type of a gcc2
7708: builtin and then its argument prototype would still apply. */
7709: char dlopen ();
7710: int
7711: main ()
7712: {
7713: dlopen ();
7714: ;
7715: return 0;
7716: }
7717: _ACEOF
7718: rm -f conftest.$ac_objext conftest$ac_exeext
7719: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.16 paf 7720: (eval $ac_link) 2>conftest.er1
1.10 paf 7721: ac_status=$?
1.16 paf 7722: grep -v '^ *+' conftest.er1 >conftest.err
7723: rm -f conftest.er1
7724: cat conftest.err >&5
1.10 paf 7725: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726: (exit $ac_status); } &&
1.16 paf 7727: { ac_try='test -z "$ac_c_werror_flag"
7728: || test ! -s conftest.err'
7729: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730: (eval $ac_try) 2>&5
7731: ac_status=$?
7732: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733: (exit $ac_status); }; } &&
7734: { ac_try='test -s conftest$ac_exeext'
1.10 paf 7735: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736: (eval $ac_try) 2>&5
7737: ac_status=$?
7738: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739: (exit $ac_status); }; }; then
7740: ac_cv_lib_dl_dlopen=yes
7741: else
7742: echo "$as_me: failed program was:" >&5
7743: sed 's/^/| /' conftest.$ac_ext >&5
7744:
7745: ac_cv_lib_dl_dlopen=no
7746: fi
1.16 paf 7747: rm -f conftest.err conftest.$ac_objext \
7748: conftest$ac_exeext conftest.$ac_ext
1.10 paf 7749: LIBS=$ac_check_lib_save_LIBS
7750: fi
7751: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7752: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7753: if test $ac_cv_lib_dl_dlopen = yes; then
7754: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7755: else
7756: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7757: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7758: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7759: echo $ECHO_N "(cached) $ECHO_C" >&6
7760: else
7761: ac_check_lib_save_LIBS=$LIBS
7762: LIBS="-lsvld $LIBS"
7763: cat >conftest.$ac_ext <<_ACEOF
7764: /* confdefs.h. */
7765: _ACEOF
7766: cat confdefs.h >>conftest.$ac_ext
7767: cat >>conftest.$ac_ext <<_ACEOF
7768: /* end confdefs.h. */
7769:
7770: /* Override any gcc2 internal prototype to avoid an error. */
7771: #ifdef __cplusplus
7772: extern "C"
7773: #endif
7774: /* We use char because int might match the return type of a gcc2
7775: builtin and then its argument prototype would still apply. */
7776: char dlopen ();
7777: int
7778: main ()
7779: {
7780: dlopen ();
7781: ;
7782: return 0;
7783: }
7784: _ACEOF
7785: rm -f conftest.$ac_objext conftest$ac_exeext
7786: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.16 paf 7787: (eval $ac_link) 2>conftest.er1
1.10 paf 7788: ac_status=$?
1.16 paf 7789: grep -v '^ *+' conftest.er1 >conftest.err
7790: rm -f conftest.er1
7791: cat conftest.err >&5
1.10 paf 7792: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793: (exit $ac_status); } &&
1.16 paf 7794: { ac_try='test -z "$ac_c_werror_flag"
7795: || test ! -s conftest.err'
7796: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797: (eval $ac_try) 2>&5
7798: ac_status=$?
7799: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800: (exit $ac_status); }; } &&
7801: { ac_try='test -s conftest$ac_exeext'
1.10 paf 7802: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7803: (eval $ac_try) 2>&5
7804: ac_status=$?
7805: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806: (exit $ac_status); }; }; then
7807: ac_cv_lib_svld_dlopen=yes
7808: else
7809: echo "$as_me: failed program was:" >&5
7810: sed 's/^/| /' conftest.$ac_ext >&5
7811:
7812: ac_cv_lib_svld_dlopen=no
7813: fi
1.16 paf 7814: rm -f conftest.err conftest.$ac_objext \
7815: conftest$ac_exeext conftest.$ac_ext
1.10 paf 7816: LIBS=$ac_check_lib_save_LIBS
7817: fi
7818: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7819: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7820: if test $ac_cv_lib_svld_dlopen = yes; then
7821: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7822: else
7823: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7824: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7825: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7826: echo $ECHO_N "(cached) $ECHO_C" >&6
7827: else
7828: ac_check_lib_save_LIBS=$LIBS
7829: LIBS="-ldld $LIBS"
7830: cat >conftest.$ac_ext <<_ACEOF
7831: /* confdefs.h. */
7832: _ACEOF
7833: cat confdefs.h >>conftest.$ac_ext
7834: cat >>conftest.$ac_ext <<_ACEOF
7835: /* end confdefs.h. */
7836:
7837: /* Override any gcc2 internal prototype to avoid an error. */
7838: #ifdef __cplusplus
7839: extern "C"
7840: #endif
7841: /* We use char because int might match the return type of a gcc2
7842: builtin and then its argument prototype would still apply. */
7843: char dld_link ();
7844: int
7845: main ()
7846: {
7847: dld_link ();
7848: ;
7849: return 0;
7850: }
7851: _ACEOF
7852: rm -f conftest.$ac_objext conftest$ac_exeext
7853: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.16 paf 7854: (eval $ac_link) 2>conftest.er1
1.10 paf 7855: ac_status=$?
1.16 paf 7856: grep -v '^ *+' conftest.er1 >conftest.err
7857: rm -f conftest.er1
7858: cat conftest.err >&5
1.10 paf 7859: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860: (exit $ac_status); } &&
1.16 paf 7861: { ac_try='test -z "$ac_c_werror_flag"
7862: || test ! -s conftest.err'
7863: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864: (eval $ac_try) 2>&5
7865: ac_status=$?
7866: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867: (exit $ac_status); }; } &&
7868: { ac_try='test -s conftest$ac_exeext'
1.10 paf 7869: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870: (eval $ac_try) 2>&5
7871: ac_status=$?
7872: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873: (exit $ac_status); }; }; then
7874: ac_cv_lib_dld_dld_link=yes
7875: else
7876: echo "$as_me: failed program was:" >&5
7877: sed 's/^/| /' conftest.$ac_ext >&5
7878:
7879: ac_cv_lib_dld_dld_link=no
7880: fi
1.16 paf 7881: rm -f conftest.err conftest.$ac_objext \
7882: conftest$ac_exeext conftest.$ac_ext
1.10 paf 7883: LIBS=$ac_check_lib_save_LIBS
7884: fi
7885: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7886: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7887: if test $ac_cv_lib_dld_dld_link = yes; then
7888: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7889: fi
7890:
7891:
7892: fi
7893:
7894:
7895: fi
7896:
7897:
7898: fi
7899:
7900:
7901: fi
7902:
7903:
7904: fi
7905:
7906: ;;
7907: esac
7908:
7909: if test "x$lt_cv_dlopen" != xno; then
7910: enable_dlopen=yes
7911: else
7912: enable_dlopen=no
7913: fi
7914:
7915: case $lt_cv_dlopen in
7916: dlopen)
7917: save_CPPFLAGS="$CPPFLAGS"
7918: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7919:
7920: save_LDFLAGS="$LDFLAGS"
7921: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7922:
7923: save_LIBS="$LIBS"
7924: LIBS="$lt_cv_dlopen_libs $LIBS"
7925:
7926: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7927: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7928: if test "${lt_cv_dlopen_self+set}" = set; then
7929: echo $ECHO_N "(cached) $ECHO_C" >&6
7930: else
7931: if test "$cross_compiling" = yes; then :
7932: lt_cv_dlopen_self=cross
7933: else
7934: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7935: lt_status=$lt_dlunknown
7936: cat > conftest.$ac_ext <<EOF
1.16 paf 7937: #line 7937 "configure"
1.10 paf 7938: #include "confdefs.h"
7939:
7940: #if HAVE_DLFCN_H
7941: #include <dlfcn.h>
7942: #endif
7943:
7944: #include <stdio.h>
7945:
7946: #ifdef RTLD_GLOBAL
7947: # define LT_DLGLOBAL RTLD_GLOBAL
7948: #else
7949: # ifdef DL_GLOBAL
7950: # define LT_DLGLOBAL DL_GLOBAL
7951: # else
7952: # define LT_DLGLOBAL 0
7953: # endif
7954: #endif
7955:
7956: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7957: find out it does not work in some platform. */
7958: #ifndef LT_DLLAZY_OR_NOW
7959: # ifdef RTLD_LAZY
7960: # define LT_DLLAZY_OR_NOW RTLD_LAZY
7961: # else
7962: # ifdef DL_LAZY
7963: # define LT_DLLAZY_OR_NOW DL_LAZY
7964: # else
7965: # ifdef RTLD_NOW
7966: # define LT_DLLAZY_OR_NOW RTLD_NOW
7967: # else
7968: # ifdef DL_NOW
7969: # define LT_DLLAZY_OR_NOW DL_NOW
7970: # else
7971: # define LT_DLLAZY_OR_NOW 0
7972: # endif
7973: # endif
7974: # endif
7975: # endif
7976: #endif
7977:
7978: #ifdef __cplusplus
7979: extern "C" void exit (int);
7980: #endif
7981:
7982: void fnord() { int i=42;}
7983: int main ()
7984: {
7985: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7986: int status = $lt_dlunknown;
7987:
7988: if (self)
7989: {
7990: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7991: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7992: /* dlclose (self); */
7993: }
7994:
7995: exit (status);
7996: }
7997: EOF
7998: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7999: (eval $ac_link) 2>&5
8000: ac_status=$?
8001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8003: (./conftest; exit; ) 2>/dev/null
8004: lt_status=$?
8005: case x$lt_status in
8006: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8007: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8008: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8009: esac
8010: else :
8011: # compilation failed
8012: lt_cv_dlopen_self=no
8013: fi
8014: fi
8015: rm -fr conftest*
8016:
8017:
8018: fi
8019: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8020: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8021:
8022: if test "x$lt_cv_dlopen_self" = xyes; then
8023: LDFLAGS="$LDFLAGS $link_static_flag"
8024: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8025: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8026: if test "${lt_cv_dlopen_self_static+set}" = set; then
8027: echo $ECHO_N "(cached) $ECHO_C" >&6
8028: else
8029: if test "$cross_compiling" = yes; then :
8030: lt_cv_dlopen_self_static=cross
8031: else
8032: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8033: lt_status=$lt_dlunknown
8034: cat > conftest.$ac_ext <<EOF
1.16 paf 8035: #line 8035 "configure"
1.10 paf 8036: #include "confdefs.h"
8037:
8038: #if HAVE_DLFCN_H
8039: #include <dlfcn.h>
8040: #endif
8041:
8042: #include <stdio.h>
8043:
8044: #ifdef RTLD_GLOBAL
8045: # define LT_DLGLOBAL RTLD_GLOBAL
8046: #else
8047: # ifdef DL_GLOBAL
8048: # define LT_DLGLOBAL DL_GLOBAL
8049: # else
8050: # define LT_DLGLOBAL 0
8051: # endif
8052: #endif
8053:
8054: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8055: find out it does not work in some platform. */
8056: #ifndef LT_DLLAZY_OR_NOW
8057: # ifdef RTLD_LAZY
8058: # define LT_DLLAZY_OR_NOW RTLD_LAZY
8059: # else
8060: # ifdef DL_LAZY
8061: # define LT_DLLAZY_OR_NOW DL_LAZY
8062: # else
8063: # ifdef RTLD_NOW
8064: # define LT_DLLAZY_OR_NOW RTLD_NOW
8065: # else
8066: # ifdef DL_NOW
8067: # define LT_DLLAZY_OR_NOW DL_NOW
8068: # else
8069: # define LT_DLLAZY_OR_NOW 0
8070: # endif
8071: # endif
8072: # endif
8073: # endif
8074: #endif
8075:
8076: #ifdef __cplusplus
8077: extern "C" void exit (int);
8078: #endif
8079:
8080: void fnord() { int i=42;}
8081: int main ()
8082: {
8083: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8084: int status = $lt_dlunknown;
8085:
8086: if (self)
8087: {
8088: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8089: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8090: /* dlclose (self); */
8091: }
8092:
8093: exit (status);
8094: }
1.1 parser 8095: EOF
1.10 paf 8096: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8097: (eval $ac_link) 2>&5
8098: ac_status=$?
8099: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8101: (./conftest; exit; ) 2>/dev/null
8102: lt_status=$?
8103: case x$lt_status in
8104: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8105: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8106: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8107: esac
8108: else :
8109: # compilation failed
8110: lt_cv_dlopen_self_static=no
8111: fi
8112: fi
8113: rm -fr conftest*
8114:
8115:
8116: fi
8117: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8118: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8119: fi
8120:
8121: CPPFLAGS="$save_CPPFLAGS"
8122: LDFLAGS="$save_LDFLAGS"
8123: LIBS="$save_LIBS"
8124: ;;
8125: esac
8126:
8127: case $lt_cv_dlopen_self in
8128: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8129: *) enable_dlopen_self=unknown ;;
8130: esac
8131:
8132: case $lt_cv_dlopen_self_static in
8133: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8134: *) enable_dlopen_self_static=unknown ;;
8135: esac
8136: fi
8137:
8138:
1.16 paf 8139: ## FIXME: this should be a separate macro
8140: ##
1.10 paf 8141: if test "$enable_shared" = yes && test "$GCC" = yes; then
8142: case $archive_cmds in
8143: *'~'*)
8144: # FIXME: we may have to deal with multi-command sequences.
8145: ;;
8146: '$CC '*)
8147: # Test whether the compiler implicitly links with -lc since on some
8148: # systems, -lgcc has to come before -lc. If gcc already passes -lc
8149: # to ld, don't add -lc before -lgcc.
8150: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8151: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8152: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8153: echo $ECHO_N "(cached) $ECHO_C" >&6
8154: else
8155: $rm conftest*
8156: echo 'static int dummy;' > conftest.$ac_ext
8157:
8158: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8159: (eval $ac_compile) 2>&5
8160: ac_status=$?
8161: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162: (exit $ac_status); }; then
8163: soname=conftest
8164: lib=conftest
8165: libobjs=conftest.$ac_objext
8166: deplibs=
8167: wl=$lt_cv_prog_cc_wl
8168: compiler_flags=-v
8169: linker_flags=-v
8170: verstring=
8171: output_objdir=.
8172: libname=conftest
8173: save_allow_undefined_flag=$allow_undefined_flag
8174: allow_undefined_flag=
8175: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8176: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8177: ac_status=$?
8178: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179: (exit $ac_status); }
8180: then
8181: lt_cv_archive_cmds_need_lc=no
8182: else
8183: lt_cv_archive_cmds_need_lc=yes
8184: fi
8185: allow_undefined_flag=$save_allow_undefined_flag
8186: else
8187: cat conftest.err 1>&5
8188: fi
8189: fi
8190:
8191: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8192: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8193: ;;
8194: esac
8195: fi
8196: need_lc=${lt_cv_archive_cmds_need_lc-yes}
1.16 paf 8197: ##
8198: ## END FIXME
1.10 paf 8199:
1.16 paf 8200: ## FIXME: this should be a separate macro
8201: ##
1.10 paf 8202: # The second clause should only fire when bootstrapping the
8203: # libtool distribution, otherwise you forgot to ship ltmain.sh
8204: # with your package, and you will get complaints that there are
8205: # no rules to generate ltmain.sh.
8206: if test -f "$ltmain"; then
1.1 parser 8207: :
8208: else
1.10 paf 8209: # If there is no Makefile yet, we rely on a make rule to execute
8210: # `config.status --recheck' to rerun these tests and create the
8211: # libtool script then.
8212: test -f Makefile && make "$ltmain"
8213: fi
8214:
8215: if test -f "$ltmain"; then
8216: trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8217: $rm -f "${ofile}T"
8218:
8219: echo creating $ofile
8220:
8221: # Now quote all the things that may contain metacharacters while being
8222: # careful not to overquote the AC_SUBSTed values. We take copies of the
8223: # variables and quote the copies for generation of the libtool script.
8224: for var in echo old_CC old_CFLAGS SED \
8225: AR AR_FLAGS CC LD LN_S NM SHELL \
8226: reload_flag reload_cmds wl \
8227: pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8228: thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8229: library_names_spec soname_spec \
8230: RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8231: old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8232: postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8233: old_striplib striplib file_magic_cmd export_symbols_cmds \
8234: deplibs_check_method allow_undefined_flag no_undefined_flag \
8235: finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8236: global_symbol_to_c_name_address \
8237: hardcode_libdir_flag_spec hardcode_libdir_separator \
8238: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8239: compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8240:
8241: case $var in
8242: reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8243: old_postinstall_cmds | old_postuninstall_cmds | \
8244: export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8245: extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8246: postinstall_cmds | postuninstall_cmds | \
8247: finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8248: # Double-quote double-evaled strings.
8249: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8250: ;;
8251: *)
8252: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8253: ;;
8254: esac
8255: done
8256:
8257: cat <<__EOF__ > "${ofile}T"
8258: #! $SHELL
8259:
8260: # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8261: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8262: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8263: #
8264: # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8265: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8266: #
8267: # This program is free software; you can redistribute it and/or modify
8268: # it under the terms of the GNU General Public License as published by
8269: # the Free Software Foundation; either version 2 of the License, or
8270: # (at your option) any later version.
8271: #
8272: # This program is distributed in the hope that it will be useful, but
8273: # WITHOUT ANY WARRANTY; without even the implied warranty of
8274: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8275: # General Public License for more details.
8276: #
8277: # You should have received a copy of the GNU General Public License
8278: # along with this program; if not, write to the Free Software
8279: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8280: #
8281: # As a special exception to the GNU General Public License, if you
8282: # distribute this file as part of a program that contains a
8283: # configuration script generated by Autoconf, you may include it under
8284: # the same distribution terms that you use for the rest of that program.
8285:
8286: # A sed that does not truncate output.
8287: SED=$lt_SED
8288:
8289: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8290: Xsed="${SED} -e s/^X//"
8291:
8292: # The HP-UX ksh and POSIX shell print the target directory to stdout
8293: # if CDPATH is set.
8294: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8295:
8296: # ### BEGIN LIBTOOL CONFIG
8297:
8298: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8299:
8300: # Shell to use when invoking shell scripts.
8301: SHELL=$lt_SHELL
8302:
8303: # Whether or not to build shared libraries.
8304: build_libtool_libs=$enable_shared
8305:
8306: # Whether or not to build static libraries.
8307: build_old_libs=$enable_static
8308:
8309: # Whether or not to add -lc for building shared libraries.
8310: build_libtool_need_lc=$need_lc
8311:
8312: # Whether or not to optimize for fast installation.
8313: fast_install=$enable_fast_install
8314:
8315: # The host system.
8316: host_alias=$host_alias
8317: host=$host
8318:
8319: # An echo program that does not interpret backslashes.
8320: echo=$lt_echo
8321:
8322: # The archiver.
8323: AR=$lt_AR
8324: AR_FLAGS=$lt_AR_FLAGS
8325:
8326: # The default C compiler.
8327: CC=$lt_CC
8328:
8329: # Is the compiler the GNU C compiler?
8330: with_gcc=$GCC
8331:
8332: # The linker used to build libraries.
8333: LD=$lt_LD
8334:
8335: # Whether we need hard or soft links.
8336: LN_S=$lt_LN_S
8337:
8338: # A BSD-compatible nm program.
8339: NM=$lt_NM
8340:
8341: # A symbol stripping program
8342: STRIP=$STRIP
8343:
8344: # Used to examine libraries when file_magic_cmd begins "file"
8345: MAGIC_CMD=$MAGIC_CMD
8346:
8347: # Used on cygwin: DLL creation program.
8348: DLLTOOL="$DLLTOOL"
8349:
8350: # Used on cygwin: object dumper.
8351: OBJDUMP="$OBJDUMP"
8352:
8353: # Used on cygwin: assembler.
8354: AS="$AS"
8355:
8356: # The name of the directory that contains temporary libtool files.
8357: objdir=$objdir
8358:
8359: # How to create reloadable object files.
8360: reload_flag=$lt_reload_flag
8361: reload_cmds=$lt_reload_cmds
8362:
8363: # How to pass a linker flag through the compiler.
8364: wl=$lt_wl
8365:
8366: # Object file suffix (normally "o").
8367: objext="$ac_objext"
8368:
8369: # Old archive suffix (normally "a").
8370: libext="$libext"
8371:
8372: # Executable file suffix (normally "").
8373: exeext="$exeext"
8374:
8375: # Additional compiler flags for building library objects.
8376: pic_flag=$lt_pic_flag
8377: pic_mode=$pic_mode
8378:
8379: # Does compiler simultaneously support -c and -o options?
8380: compiler_c_o=$lt_compiler_c_o
8381:
8382: # Can we write directly to a .lo ?
8383: compiler_o_lo=$lt_compiler_o_lo
8384:
8385: # Must we lock files when doing compilation ?
8386: need_locks=$lt_need_locks
8387:
8388: # Do we need the lib prefix for modules?
8389: need_lib_prefix=$need_lib_prefix
8390:
8391: # Do we need a version for libraries?
8392: need_version=$need_version
8393:
8394: # Whether dlopen is supported.
8395: dlopen_support=$enable_dlopen
8396:
8397: # Whether dlopen of programs is supported.
8398: dlopen_self=$enable_dlopen_self
8399:
8400: # Whether dlopen of statically linked programs is supported.
8401: dlopen_self_static=$enable_dlopen_self_static
8402:
8403: # Compiler flag to prevent dynamic linking.
8404: link_static_flag=$lt_link_static_flag
8405:
8406: # Compiler flag to turn off builtin functions.
8407: no_builtin_flag=$lt_no_builtin_flag
8408:
8409: # Compiler flag to allow reflexive dlopens.
8410: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8411:
8412: # Compiler flag to generate shared objects directly from archives.
8413: whole_archive_flag_spec=$lt_whole_archive_flag_spec
8414:
8415: # Compiler flag to generate thread-safe objects.
8416: thread_safe_flag_spec=$lt_thread_safe_flag_spec
8417:
8418: # Library versioning type.
8419: version_type=$version_type
8420:
8421: # Format of library name prefix.
8422: libname_spec=$lt_libname_spec
8423:
8424: # List of archive names. First name is the real one, the rest are links.
8425: # The last name is the one that the linker finds with -lNAME.
8426: library_names_spec=$lt_library_names_spec
8427:
8428: # The coded name of the library, if different from the real name.
8429: soname_spec=$lt_soname_spec
8430:
8431: # Commands used to build and install an old-style archive.
8432: RANLIB=$lt_RANLIB
8433: old_archive_cmds=$lt_old_archive_cmds
8434: old_postinstall_cmds=$lt_old_postinstall_cmds
8435: old_postuninstall_cmds=$lt_old_postuninstall_cmds
8436:
8437: # Create an old-style archive from a shared archive.
8438: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8439:
8440: # Create a temporary old-style archive to link instead of a shared archive.
8441: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8442:
8443: # Commands used to build and install a shared archive.
8444: archive_cmds=$lt_archive_cmds
8445: archive_expsym_cmds=$lt_archive_expsym_cmds
8446: postinstall_cmds=$lt_postinstall_cmds
8447: postuninstall_cmds=$lt_postuninstall_cmds
8448:
8449: # Commands to strip libraries.
8450: old_striplib=$lt_old_striplib
8451: striplib=$lt_striplib
8452:
8453: # Method to check whether dependent libraries are shared objects.
8454: deplibs_check_method=$lt_deplibs_check_method
8455:
8456: # Command to use when deplibs_check_method == file_magic.
8457: file_magic_cmd=$lt_file_magic_cmd
8458:
8459: # Flag that allows shared libraries with undefined symbols to be built.
8460: allow_undefined_flag=$lt_allow_undefined_flag
8461:
8462: # Flag that forces no undefined symbols.
8463: no_undefined_flag=$lt_no_undefined_flag
8464:
8465: # Commands used to finish a libtool library installation in a directory.
8466: finish_cmds=$lt_finish_cmds
8467:
8468: # Same as above, but a single script fragment to be evaled but not shown.
8469: finish_eval=$lt_finish_eval
8470:
8471: # Take the output of nm and produce a listing of raw symbols and C names.
8472: global_symbol_pipe=$lt_global_symbol_pipe
8473:
8474: # Transform the output of nm in a proper C declaration
8475: global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8476:
8477: # Transform the output of nm in a C name address pair
8478: global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8479:
8480: # This is the shared library runtime path variable.
8481: runpath_var=$runpath_var
8482:
8483: # This is the shared library path variable.
8484: shlibpath_var=$shlibpath_var
8485:
8486: # Is shlibpath searched before the hard-coded library search path?
8487: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8488:
8489: # How to hardcode a shared library path into an executable.
8490: hardcode_action=$hardcode_action
8491:
8492: # Whether we should hardcode library paths into libraries.
8493: hardcode_into_libs=$hardcode_into_libs
8494:
8495: # Flag to hardcode \$libdir into a binary during linking.
8496: # This must work even if \$libdir does not exist.
8497: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8498:
8499: # Whether we need a single -rpath flag with a separated argument.
8500: hardcode_libdir_separator=$lt_hardcode_libdir_separator
8501:
8502: # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8503: # resulting binary.
8504: hardcode_direct=$hardcode_direct
8505:
8506: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8507: # resulting binary.
8508: hardcode_minus_L=$hardcode_minus_L
8509:
8510: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8511: # the resulting binary.
8512: hardcode_shlibpath_var=$hardcode_shlibpath_var
8513:
8514: # Variables whose values should be saved in libtool wrapper scripts and
8515: # restored at relink time.
8516: variables_saved_for_relink="$variables_saved_for_relink"
8517:
8518: # Whether libtool must link a program against all its dependency libraries.
8519: link_all_deplibs=$link_all_deplibs
8520:
8521: # Compile-time system search path for libraries
8522: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8523:
8524: # Run-time system search path for libraries
8525: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8526:
8527: # Fix the shell variable \$srcfile for the compiler.
8528: fix_srcfile_path="$fix_srcfile_path"
8529:
8530: # Set to yes if exported symbols are required.
8531: always_export_symbols=$always_export_symbols
8532:
8533: # The commands to list exported symbols.
8534: export_symbols_cmds=$lt_export_symbols_cmds
8535:
8536: # The commands to extract the exported symbol list from a shared archive.
8537: extract_expsyms_cmds=$lt_extract_expsyms_cmds
8538:
8539: # Symbols that should not be listed in the preloaded symbols.
8540: exclude_expsyms=$lt_exclude_expsyms
8541:
8542: # Symbols that must always be exported.
8543: include_expsyms=$lt_include_expsyms
8544:
8545: # ### END LIBTOOL CONFIG
8546:
8547: __EOF__
8548:
8549: case $host_os in
8550: aix3*)
8551: cat <<\EOF >> "${ofile}T"
8552:
8553: # AIX sometimes has problems with the GCC collect2 program. For some
8554: # reason, if we set the COLLECT_NAMES environment variable, the problems
8555: # vanish in a puff of smoke.
8556: if test "X${COLLECT_NAMES+set}" != Xset; then
8557: COLLECT_NAMES=
8558: export COLLECT_NAMES
8559: fi
8560: EOF
8561: ;;
8562: esac
8563:
8564: case $host_os in
8565: cygwin* | mingw* | pw32* | os2*)
8566: cat <<'EOF' >> "${ofile}T"
8567: # This is a source program that is used to create dlls on Windows
8568: # Don't remove nor modify the starting and closing comments
8569: # /* ltdll.c starts here */
8570: # #define WIN32_LEAN_AND_MEAN
8571: # #include <windows.h>
8572: # #undef WIN32_LEAN_AND_MEAN
8573: # #include <stdio.h>
8574: #
8575: # #ifndef __CYGWIN__
8576: # # ifdef __CYGWIN32__
8577: # # define __CYGWIN__ __CYGWIN32__
8578: # # endif
8579: # #endif
8580: #
8581: # #ifdef __cplusplus
8582: # extern "C" {
8583: # #endif
8584: # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8585: # #ifdef __cplusplus
8586: # }
8587: # #endif
8588: #
8589: # #ifdef __CYGWIN__
8590: # #include <cygwin/cygwin_dll.h>
8591: # DECLARE_CYGWIN_DLL( DllMain );
8592: # #endif
8593: # HINSTANCE __hDllInstance_base;
8594: #
8595: # BOOL APIENTRY
8596: # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8597: # {
8598: # __hDllInstance_base = hInst;
8599: # return TRUE;
8600: # }
8601: # /* ltdll.c ends here */
8602: # This is a source program that is used to create import libraries
8603: # on Windows for dlls which lack them. Don't remove nor modify the
8604: # starting and closing comments
8605: # /* impgen.c starts here */
8606: # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8607: #
8608: # This file is part of GNU libtool.
8609: #
8610: # This program is free software; you can redistribute it and/or modify
8611: # it under the terms of the GNU General Public License as published by
8612: # the Free Software Foundation; either version 2 of the License, or
8613: # (at your option) any later version.
8614: #
8615: # This program is distributed in the hope that it will be useful,
8616: # but WITHOUT ANY WARRANTY; without even the implied warranty of
8617: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8618: # GNU General Public License for more details.
8619: #
8620: # You should have received a copy of the GNU General Public License
8621: # along with this program; if not, write to the Free Software
8622: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8623: # */
8624: #
8625: # #include <stdio.h> /* for printf() */
8626: # #include <unistd.h> /* for open(), lseek(), read() */
8627: # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8628: # #include <string.h> /* for strdup() */
8629: #
8630: # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8631: # #ifndef O_BINARY
8632: # #define O_BINARY 0
8633: # #endif
8634: #
8635: # static unsigned int
8636: # pe_get16 (fd, offset)
8637: # int fd;
8638: # int offset;
8639: # {
8640: # unsigned char b[2];
8641: # lseek (fd, offset, SEEK_SET);
8642: # read (fd, b, 2);
8643: # return b[0] + (b[1]<<8);
8644: # }
8645: #
8646: # static unsigned int
8647: # pe_get32 (fd, offset)
8648: # int fd;
8649: # int offset;
8650: # {
8651: # unsigned char b[4];
8652: # lseek (fd, offset, SEEK_SET);
8653: # read (fd, b, 4);
8654: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8655: # }
8656: #
8657: # static unsigned int
8658: # pe_as32 (ptr)
8659: # void *ptr;
8660: # {
8661: # unsigned char *b = ptr;
8662: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8663: # }
8664: #
8665: # int
8666: # main (argc, argv)
8667: # int argc;
8668: # char *argv[];
8669: # {
8670: # int dll;
8671: # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8672: # unsigned long export_rva, export_size, nsections, secptr, expptr;
8673: # unsigned long name_rvas, nexp;
8674: # unsigned char *expdata, *erva;
8675: # char *filename, *dll_name;
8676: #
8677: # filename = argv[1];
8678: #
8679: # dll = open(filename, O_RDONLY|O_BINARY);
8680: # if (dll < 1)
8681: # return 1;
8682: #
8683: # dll_name = filename;
8684: #
8685: # for (i=0; filename[i]; i++)
8686: # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8687: # dll_name = filename + i +1;
8688: #
8689: # pe_header_offset = pe_get32 (dll, 0x3c);
8690: # opthdr_ofs = pe_header_offset + 4 + 20;
8691: # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8692: #
8693: # if (num_entries < 1) /* no exports */
8694: # return 1;
8695: #
8696: # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8697: # export_size = pe_get32 (dll, opthdr_ofs + 100);
8698: # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8699: # secptr = (pe_header_offset + 4 + 20 +
8700: # pe_get16 (dll, pe_header_offset + 4 + 16));
8701: #
8702: # expptr = 0;
8703: # for (i = 0; i < nsections; i++)
8704: # {
8705: # char sname[8];
8706: # unsigned long secptr1 = secptr + 40 * i;
8707: # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8708: # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8709: # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8710: # lseek(dll, secptr1, SEEK_SET);
8711: # read(dll, sname, 8);
8712: # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8713: # {
8714: # expptr = fptr + (export_rva - vaddr);
8715: # if (export_rva + export_size > vaddr + vsize)
8716: # export_size = vsize - (export_rva - vaddr);
8717: # break;
8718: # }
8719: # }
8720: #
8721: # expdata = (unsigned char*)malloc(export_size);
8722: # lseek (dll, expptr, SEEK_SET);
8723: # read (dll, expdata, export_size);
8724: # erva = expdata - export_rva;
8725: #
8726: # nexp = pe_as32 (expdata+24);
8727: # name_rvas = pe_as32 (expdata+32);
8728: #
8729: # printf ("EXPORTS\n");
8730: # for (i = 0; i<nexp; i++)
8731: # {
8732: # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8733: # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8734: # }
8735: #
8736: # return 0;
8737: # }
8738: # /* impgen.c ends here */
8739:
8740: EOF
8741: ;;
8742: esac
8743:
8744: # We use sed instead of cat because bash on DJGPP gets confused if
8745: # if finds mixed CR/LF and LF-only lines. Since sed operates in
8746: # text mode, it properly converts lines to CR/LF. This bash problem
8747: # is reportedly fixed, but why not run on old versions too?
8748: sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8749:
8750: mv -f "${ofile}T" "$ofile" || \
8751: (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8752: chmod +x "$ofile"
8753: fi
1.16 paf 8754: ##
8755: ## END FIXME
1.10 paf 8756:
8757:
8758:
8759:
8760:
8761: # This can be used to rebuild libtool when needed
8762: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8763:
8764: # Always use rootdir libtool.
8765: LIBTOOL="$ac_aux_dir/libtool"
8766:
8767: # Prevent multiple expansion
8768:
8769:
8770:
8771:
8772: subdirs="$subdirs libltdl"
8773:
8774:
8775:
8776:
8777:
8778:
8779:
8780:
1.13 paf 8781:
1.10 paf 8782: for ac_header in stdio.h \
8783: stdlib.h \
8784: string.h \
1.13 paf 8785: setjmp.h \
8786: ctype.h
1.10 paf 8787:
8788: do
8789: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8790: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8791: echo "$as_me:$LINENO: checking for $ac_header" >&5
8792: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8793: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8794: echo $ECHO_N "(cached) $ECHO_C" >&6
8795: fi
8796: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8797: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8798: else
8799: # Is the header compilable?
8800: echo "$as_me:$LINENO: checking $ac_header usability" >&5
8801: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8802: cat >conftest.$ac_ext <<_ACEOF
8803: /* confdefs.h. */
8804: _ACEOF
8805: cat confdefs.h >>conftest.$ac_ext
8806: cat >>conftest.$ac_ext <<_ACEOF
8807: /* end confdefs.h. */
8808: $ac_includes_default
8809: #include <$ac_header>
8810: _ACEOF
8811: rm -f conftest.$ac_objext
8812: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 8813: (eval $ac_compile) 2>conftest.er1
1.10 paf 8814: ac_status=$?
1.16 paf 8815: grep -v '^ *+' conftest.er1 >conftest.err
8816: rm -f conftest.er1
8817: cat conftest.err >&5
1.10 paf 8818: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819: (exit $ac_status); } &&
1.16 paf 8820: { ac_try='test -z "$ac_c_werror_flag"
8821: || test ! -s conftest.err'
8822: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823: (eval $ac_try) 2>&5
8824: ac_status=$?
8825: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826: (exit $ac_status); }; } &&
8827: { ac_try='test -s conftest.$ac_objext'
1.10 paf 8828: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829: (eval $ac_try) 2>&5
8830: ac_status=$?
8831: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832: (exit $ac_status); }; }; then
8833: ac_header_compiler=yes
8834: else
8835: echo "$as_me: failed program was:" >&5
8836: sed 's/^/| /' conftest.$ac_ext >&5
8837:
8838: ac_header_compiler=no
8839: fi
1.16 paf 8840: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.10 paf 8841: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8842: echo "${ECHO_T}$ac_header_compiler" >&6
8843:
8844: # Is the header present?
8845: echo "$as_me:$LINENO: checking $ac_header presence" >&5
8846: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8847: cat >conftest.$ac_ext <<_ACEOF
8848: /* confdefs.h. */
8849: _ACEOF
8850: cat confdefs.h >>conftest.$ac_ext
8851: cat >>conftest.$ac_ext <<_ACEOF
8852: /* end confdefs.h. */
8853: #include <$ac_header>
8854: _ACEOF
8855: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8856: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8857: ac_status=$?
8858: grep -v '^ *+' conftest.er1 >conftest.err
8859: rm -f conftest.er1
8860: cat conftest.err >&5
8861: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862: (exit $ac_status); } >/dev/null; then
8863: if test -s conftest.err; then
1.15 paf 8864: ac_cpp_err=$ac_c_preproc_warn_flag
1.16 paf 8865: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.10 paf 8866: else
8867: ac_cpp_err=
8868: fi
8869: else
8870: ac_cpp_err=yes
8871: fi
8872: if test -z "$ac_cpp_err"; then
8873: ac_header_preproc=yes
8874: else
8875: echo "$as_me: failed program was:" >&5
8876: sed 's/^/| /' conftest.$ac_ext >&5
8877:
8878: ac_header_preproc=no
8879: fi
8880: rm -f conftest.err conftest.$ac_ext
8881: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8882: echo "${ECHO_T}$ac_header_preproc" >&6
8883:
8884: # So? What about this header?
1.16 paf 8885: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8886: yes:no: )
1.10 paf 8887: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8888: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.16 paf 8889: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8890: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8891: ac_header_preproc=yes
1.10 paf 8892: ;;
1.16 paf 8893: no:yes:* )
1.10 paf 8894: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8895: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.16 paf 8896: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8897: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8898: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8899: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8900: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8901: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.10 paf 8902: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8903: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.16 paf 8904: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8905: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.10 paf 8906: (
8907: cat <<\_ASBOX
1.16 paf 8908: ## ------------------------------------------ ##
8909: ## Report this to the AC_PACKAGE_NAME lists. ##
8910: ## ------------------------------------------ ##
1.10 paf 8911: _ASBOX
8912: ) |
8913: sed "s/^/$as_me: WARNING: /" >&2
8914: ;;
8915: esac
8916: echo "$as_me:$LINENO: checking for $ac_header" >&5
8917: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8918: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8919: echo $ECHO_N "(cached) $ECHO_C" >&6
8920: else
1.16 paf 8921: eval "$as_ac_Header=\$ac_header_preproc"
1.1 parser 8922: fi
1.10 paf 8923: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8924: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8925:
1.1 parser 8926: fi
1.10 paf 8927: if test `eval echo '${'$as_ac_Header'}'` = yes; then
8928: cat >>confdefs.h <<_ACEOF
8929: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8930: _ACEOF
1.1 parser 8931:
8932: fi
8933:
1.10 paf 8934: done
8935:
1.1 parser 8936:
8937:
1.10 paf 8938: echo "$as_me:$LINENO: checking for size_t" >&5
8939: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8940: if test "${ac_cv_type_size_t+set}" = set; then
8941: echo $ECHO_N "(cached) $ECHO_C" >&6
8942: else
8943: cat >conftest.$ac_ext <<_ACEOF
8944: /* confdefs.h. */
8945: _ACEOF
8946: cat confdefs.h >>conftest.$ac_ext
8947: cat >>conftest.$ac_ext <<_ACEOF
8948: /* end confdefs.h. */
8949: $ac_includes_default
8950: int
8951: main ()
8952: {
8953: if ((size_t *) 0)
8954: return 0;
8955: if (sizeof (size_t))
8956: return 0;
8957: ;
8958: return 0;
8959: }
8960: _ACEOF
8961: rm -f conftest.$ac_objext
8962: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.16 paf 8963: (eval $ac_compile) 2>conftest.er1
1.10 paf 8964: ac_status=$?
1.16 paf 8965: grep -v '^ *+' conftest.er1 >conftest.err
8966: rm -f conftest.er1
8967: cat conftest.err >&5
1.10 paf 8968: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969: (exit $ac_status); } &&
1.16 paf 8970: { ac_try='test -z "$ac_c_werror_flag"
8971: || test ! -s conftest.err'
8972: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973: (eval $ac_try) 2>&5
8974: ac_status=$?
8975: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976: (exit $ac_status); }; } &&
8977: { ac_try='test -s conftest.$ac_objext'
1.10 paf 8978: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979: (eval $ac_try) 2>&5
8980: ac_status=$?
8981: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982: (exit $ac_status); }; }; then
1.1 parser 8983: ac_cv_type_size_t=yes
8984: else
1.10 paf 8985: echo "$as_me: failed program was:" >&5
8986: sed 's/^/| /' conftest.$ac_ext >&5
8987:
8988: ac_cv_type_size_t=no
8989: fi
1.16 paf 8990: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 8991: fi
1.10 paf 8992: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8993: echo "${ECHO_T}$ac_cv_type_size_t" >&6
8994: if test $ac_cv_type_size_t = yes; then
8995: :
8996: else
1.1 parser 8997:
1.10 paf 8998: cat >>confdefs.h <<_ACEOF
1.1 parser 8999: #define size_t unsigned
1.10 paf 9000: _ACEOF
1.1 parser 9001:
9002: fi
9003:
9004:
9005:
9006:
1.10 paf 9007: ac_config_files="$ac_config_files Makefile"
9008: cat >confcache <<\_ACEOF
1.1 parser 9009: # This file is a shell script that caches the results of configure
9010: # tests run on this system so they can be shared between configure
1.10 paf 9011: # scripts and configure runs, see configure's option --config-cache.
9012: # It is not useful on other systems. If it contains results you don't
9013: # want to keep, you may remove or edit it.
1.1 parser 9014: #
1.10 paf 9015: # config.status only pays attention to the cache file if you give it
9016: # the --recheck option to rerun configure.
1.1 parser 9017: #
1.10 paf 9018: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9019: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9020: # following values.
9021:
9022: _ACEOF
9023:
1.1 parser 9024: # The following way of writing the cache mishandles newlines in values,
9025: # but we know of no workaround that is simple, portable, and efficient.
9026: # So, don't put newlines in cache variables' values.
9027: # Ultrix sh set writes to stderr and can't be redirected directly,
9028: # and sets the high bit in the cache file unless we assign to the vars.
1.10 paf 9029: {
9030: (set) 2>&1 |
9031: case `(ac_space=' '; set | grep ac_space) 2>&1` in
9032: *ac_space=\ *)
9033: # `set' does not quote correctly, so add quotes (double-quote
9034: # substitution turns \\\\ into \\, and sed turns \\ into \).
9035: sed -n \
1.16 paf 9036: "s/'/'\\\\''/g;
9037: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.10 paf 9038: ;;
9039: *)
9040: # `set' quotes correctly as required by POSIX, so do not add quotes.
9041: sed -n \
1.16 paf 9042: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.10 paf 9043: ;;
9044: esac;
9045: } |
9046: sed '
9047: t clear
9048: : clear
9049: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9050: t end
9051: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9052: : end' >>confcache
9053: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 parser 9054: if test -w $cache_file; then
1.10 paf 9055: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9056: cat confcache >$cache_file
1.1 parser 9057: else
9058: echo "not updating unwritable cache $cache_file"
9059: fi
9060: fi
9061: rm -f confcache
9062:
9063: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9064: # Let make expand exec_prefix.
9065: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9066:
1.10 paf 9067: # VPATH may cause trouble with some makes, so we remove $(srcdir),
9068: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9069: # trailing colons and then remove the whole line if VPATH becomes empty
9070: # (actually we leave an empty line to preserve line numbers).
1.1 parser 9071: if test "x$srcdir" = x.; then
1.16 paf 9072: ac_vpsub='/^[ ]*VPATH[ ]*=/{
1.10 paf 9073: s/:*\$(srcdir):*/:/;
9074: s/:*\${srcdir}:*/:/;
9075: s/:*@srcdir@:*/:/;
1.16 paf 9076: s/^\([^=]*=[ ]*\):*/\1/;
1.10 paf 9077: s/:*$//;
1.16 paf 9078: s/^[^=]*=[ ]*$//;
1.10 paf 9079: }'
1.1 parser 9080: fi
9081:
1.10 paf 9082: DEFS=-DHAVE_CONFIG_H
9083:
9084: ac_libobjs=
9085: ac_ltlibobjs=
9086: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9087: # 1. Remove the extension, and $U if already installed.
9088: ac_i=`echo "$ac_i" |
1.16 paf 9089: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
1.10 paf 9090: # 2. Add them.
9091: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9092: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9093: done
9094: LIBOBJS=$ac_libobjs
9095:
9096: LTLIBOBJS=$ac_ltlibobjs
9097:
1.1 parser 9098:
1.10 paf 9099: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9100: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9101: Usually this means the macro was only invoked conditionally." >&5
9102: echo "$as_me: error: conditional \"AMDEP\" was never defined.
9103: Usually this means the macro was only invoked conditionally." >&2;}
9104: { (exit 1); exit 1; }; }
9105: fi
9106: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9107: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9108: Usually this means the macro was only invoked conditionally." >&5
9109: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9110: Usually this means the macro was only invoked conditionally." >&2;}
9111: { (exit 1); exit 1; }; }
9112: fi
9113: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9114: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9115: Usually this means the macro was only invoked conditionally." >&5
9116: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9117: Usually this means the macro was only invoked conditionally." >&2;}
9118: { (exit 1); exit 1; }; }
9119: fi
1.1 parser 9120:
9121: : ${CONFIG_STATUS=./config.status}
1.10 paf 9122: ac_clean_files_save=$ac_clean_files
9123: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9124: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9125: echo "$as_me: creating $CONFIG_STATUS" >&6;}
9126: cat >$CONFIG_STATUS <<_ACEOF
9127: #! $SHELL
9128: # Generated by $as_me.
9129: # Run this file to recreate the current configuration.
9130: # Compiler output produced by configure, useful for debugging
9131: # configure, is in config.log if it exists.
9132:
9133: debug=false
9134: ac_cs_recheck=false
9135: ac_cs_silent=false
9136: SHELL=\${CONFIG_SHELL-$SHELL}
9137: _ACEOF
9138:
9139: cat >>$CONFIG_STATUS <<\_ACEOF
9140: ## --------------------- ##
9141: ## M4sh Initialization. ##
9142: ## --------------------- ##
9143:
9144: # Be Bourne compatible
9145: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9146: emulate sh
9147: NULLCMD=:
9148: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9149: # is contrary to our usage. Disable this feature.
9150: alias -g '${1+"$@"}'='"$@"'
9151: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9152: set -o posix
9153: fi
1.16 paf 9154: DUALCASE=1; export DUALCASE # for MKS sh
1.10 paf 9155:
9156: # Support unset when possible.
1.16 paf 9157: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.10 paf 9158: as_unset=unset
9159: else
9160: as_unset=false
9161: fi
9162:
9163:
9164: # Work around bugs in pre-3.0 UWIN ksh.
9165: $as_unset ENV MAIL MAILPATH
9166: PS1='$ '
9167: PS2='> '
9168: PS4='+ '
9169:
9170: # NLS nuisances.
9171: for as_var in \
9172: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9173: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9174: LC_TELEPHONE LC_TIME
9175: do
1.16 paf 9176: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.10 paf 9177: eval $as_var=C; export $as_var
9178: else
9179: $as_unset $as_var
9180: fi
9181: done
9182:
9183: # Required to use basename.
9184: if expr a : '\(a\)' >/dev/null 2>&1; then
9185: as_expr=expr
9186: else
9187: as_expr=false
9188: fi
9189:
9190: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9191: as_basename=basename
9192: else
9193: as_basename=false
9194: fi
9195:
9196:
9197: # Name of the executable.
9198: as_me=`$as_basename "$0" ||
9199: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9200: X"$0" : 'X\(//\)$' \| \
9201: X"$0" : 'X\(/\)$' \| \
9202: . : '\(.\)' 2>/dev/null ||
9203: echo X/"$0" |
9204: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9205: /^X\/\(\/\/\)$/{ s//\1/; q; }
9206: /^X\/\(\/\).*/{ s//\1/; q; }
9207: s/.*/./; q'`
9208:
9209:
9210: # PATH needs CR, and LINENO needs CR and PATH.
9211: # Avoid depending upon Character Ranges.
9212: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9213: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9214: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9215: as_cr_digits='0123456789'
9216: as_cr_alnum=$as_cr_Letters$as_cr_digits
9217:
9218: # The user is always right.
9219: if test "${PATH_SEPARATOR+set}" != set; then
9220: echo "#! /bin/sh" >conf$$.sh
9221: echo "exit 0" >>conf$$.sh
9222: chmod +x conf$$.sh
9223: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9224: PATH_SEPARATOR=';'
9225: else
9226: PATH_SEPARATOR=:
9227: fi
9228: rm -f conf$$.sh
9229: fi
9230:
9231:
9232: as_lineno_1=$LINENO
9233: as_lineno_2=$LINENO
9234: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9235: test "x$as_lineno_1" != "x$as_lineno_2" &&
9236: test "x$as_lineno_3" = "x$as_lineno_2" || {
9237: # Find who we are. Look in the path if we contain no path at all
9238: # relative or not.
9239: case $0 in
9240: *[\\/]* ) as_myself=$0 ;;
9241: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9242: for as_dir in $PATH
9243: do
9244: IFS=$as_save_IFS
9245: test -z "$as_dir" && as_dir=.
9246: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9247: done
9248:
9249: ;;
9250: esac
9251: # We did not find ourselves, most probably we were run as `sh COMMAND'
9252: # in which case we are not to be found in the path.
9253: if test "x$as_myself" = x; then
9254: as_myself=$0
9255: fi
9256: if test ! -f "$as_myself"; then
9257: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9258: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9259: { (exit 1); exit 1; }; }
9260: fi
9261: case $CONFIG_SHELL in
9262: '')
9263: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9264: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9265: do
9266: IFS=$as_save_IFS
9267: test -z "$as_dir" && as_dir=.
9268: for as_base in sh bash ksh sh5; do
9269: case $as_dir in
9270: /*)
9271: if ("$as_dir/$as_base" -c '
9272: as_lineno_1=$LINENO
9273: as_lineno_2=$LINENO
9274: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9275: test "x$as_lineno_1" != "x$as_lineno_2" &&
9276: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9277: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9278: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9279: CONFIG_SHELL=$as_dir/$as_base
9280: export CONFIG_SHELL
9281: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9282: fi;;
9283: esac
9284: done
9285: done
9286: ;;
9287: esac
9288:
9289: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9290: # uniformly replaced by the line number. The first 'sed' inserts a
9291: # line-number line before each line; the second 'sed' does the real
9292: # work. The second script uses 'N' to pair each line-number line
9293: # with the numbered line, and appends trailing '-' during
9294: # substitution so that $LINENO is not a special case at line end.
9295: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9296: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9297: sed '=' <$as_myself |
9298: sed '
9299: N
9300: s,$,-,
9301: : loop
9302: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9303: t loop
9304: s,-$,,
9305: s,^['$as_cr_digits']*\n,,
9306: ' >$as_me.lineno &&
9307: chmod +x $as_me.lineno ||
9308: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9309: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9310: { (exit 1); exit 1; }; }
9311:
9312: # Don't try to exec as it changes $[0], causing all sort of problems
9313: # (the dirname of $[0] is not the place where we might find the
9314: # original and so on. Autoconf is especially sensible to this).
9315: . ./$as_me.lineno
9316: # Exit status is that of the last command.
9317: exit
9318: }
9319:
9320:
9321: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9322: *c*,-n*) ECHO_N= ECHO_C='
9323: ' ECHO_T=' ' ;;
9324: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9325: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9326: esac
9327:
9328: if expr a : '\(a\)' >/dev/null 2>&1; then
9329: as_expr=expr
9330: else
9331: as_expr=false
9332: fi
9333:
9334: rm -f conf$$ conf$$.exe conf$$.file
9335: echo >conf$$.file
9336: if ln -s conf$$.file conf$$ 2>/dev/null; then
9337: # We could just check for DJGPP; but this test a) works b) is more generic
9338: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9339: if test -f conf$$.exe; then
9340: # Don't use ln at all; we don't have any links
9341: as_ln_s='cp -p'
9342: else
9343: as_ln_s='ln -s'
9344: fi
9345: elif ln conf$$.file conf$$ 2>/dev/null; then
9346: as_ln_s=ln
9347: else
9348: as_ln_s='cp -p'
9349: fi
9350: rm -f conf$$ conf$$.exe conf$$.file
9351:
9352: if mkdir -p . 2>/dev/null; then
9353: as_mkdir_p=:
9354: else
1.16 paf 9355: test -d ./-p && rmdir ./-p
1.10 paf 9356: as_mkdir_p=false
9357: fi
9358:
9359: as_executable_p="test -f"
9360:
9361: # Sed expression to map a string onto a valid CPP name.
1.16 paf 9362: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.10 paf 9363:
9364: # Sed expression to map a string onto a valid variable name.
1.16 paf 9365: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.10 paf 9366:
9367:
9368: # IFS
9369: # We need space, tab and new line, in precisely that order.
9370: as_nl='
9371: '
9372: IFS=" $as_nl"
9373:
9374: # CDPATH.
9375: $as_unset CDPATH
9376:
9377: exec 6>&1
9378:
9379: # Open the log real soon, to keep \$[0] and so on meaningful, and to
9380: # report actual input values of CONFIG_FILES etc. instead of their
9381: # values after options handling. Logging --version etc. is OK.
9382: exec 5>>config.log
9383: {
9384: echo
9385: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9386: ## Running $as_me. ##
9387: _ASBOX
9388: } >&5
9389: cat >&5 <<_CSEOF
9390:
9391: This file was extended by $as_me, which was
1.16 paf 9392: generated by GNU Autoconf 2.59. Invocation command line was
1.10 paf 9393:
9394: CONFIG_FILES = $CONFIG_FILES
9395: CONFIG_HEADERS = $CONFIG_HEADERS
9396: CONFIG_LINKS = $CONFIG_LINKS
9397: CONFIG_COMMANDS = $CONFIG_COMMANDS
9398: $ $0 $@
9399:
9400: _CSEOF
9401: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9402: echo >&5
9403: _ACEOF
9404:
9405: # Files that config.status was made for.
9406: if test -n "$ac_config_files"; then
9407: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9408: fi
9409:
9410: if test -n "$ac_config_headers"; then
9411: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9412: fi
9413:
9414: if test -n "$ac_config_links"; then
9415: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9416: fi
9417:
9418: if test -n "$ac_config_commands"; then
9419: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9420: fi
9421:
9422: cat >>$CONFIG_STATUS <<\_ACEOF
9423:
9424: ac_cs_usage="\
9425: \`$as_me' instantiates files from templates according to the
9426: current configuration.
9427:
9428: Usage: $0 [OPTIONS] [FILE]...
9429:
9430: -h, --help print this help, then exit
9431: -V, --version print version number, then exit
9432: -q, --quiet do not print progress messages
9433: -d, --debug don't remove temporary files
9434: --recheck update $as_me by reconfiguring in the same conditions
9435: --file=FILE[:TEMPLATE]
1.16 paf 9436: instantiate the configuration file FILE
1.10 paf 9437: --header=FILE[:TEMPLATE]
1.16 paf 9438: instantiate the configuration header FILE
1.10 paf 9439:
9440: Configuration files:
9441: $config_files
9442:
9443: Configuration headers:
9444: $config_headers
9445:
9446: Configuration commands:
9447: $config_commands
9448:
9449: Report bugs to <bug-autoconf@gnu.org>."
9450: _ACEOF
9451:
9452: cat >>$CONFIG_STATUS <<_ACEOF
9453: ac_cs_version="\\
9454: config.status
1.16 paf 9455: configured by $0, generated by GNU Autoconf 2.59,
1.10 paf 9456: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9457:
1.16 paf 9458: Copyright (C) 2003 Free Software Foundation, Inc.
1.10 paf 9459: This config.status script is free software; the Free Software Foundation
9460: gives unlimited permission to copy, distribute and modify it."
9461: srcdir=$srcdir
9462: INSTALL="$INSTALL"
9463: _ACEOF
9464:
9465: cat >>$CONFIG_STATUS <<\_ACEOF
9466: # If no file are specified by the user, then we need to provide default
9467: # value. By we need to know if files were specified by the user.
9468: ac_need_defaults=:
9469: while test $# != 0
9470: do
9471: case $1 in
9472: --*=*)
9473: ac_option=`expr "x$1" : 'x\([^=]*\)='`
9474: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9475: ac_shift=:
9476: ;;
9477: -*)
9478: ac_option=$1
9479: ac_optarg=$2
9480: ac_shift=shift
9481: ;;
9482: *) # This is not an option, so the user has probably given explicit
9483: # arguments.
9484: ac_option=$1
9485: ac_need_defaults=false;;
9486: esac
9487:
9488: case $ac_option in
9489: # Handling of the options.
9490: _ACEOF
9491: cat >>$CONFIG_STATUS <<\_ACEOF
9492: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9493: ac_cs_recheck=: ;;
9494: --version | --vers* | -V )
9495: echo "$ac_cs_version"; exit 0 ;;
9496: --he | --h)
9497: # Conflict between --help and --header
9498: { { echo "$as_me:$LINENO: error: ambiguous option: $1
9499: Try \`$0 --help' for more information." >&5
9500: echo "$as_me: error: ambiguous option: $1
9501: Try \`$0 --help' for more information." >&2;}
9502: { (exit 1); exit 1; }; };;
9503: --help | --hel | -h )
9504: echo "$ac_cs_usage"; exit 0 ;;
9505: --debug | --d* | -d )
9506: debug=: ;;
9507: --file | --fil | --fi | --f )
9508: $ac_shift
9509: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9510: ac_need_defaults=false;;
9511: --header | --heade | --head | --hea )
9512: $ac_shift
9513: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9514: ac_need_defaults=false;;
9515: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9516: | -silent | --silent | --silen | --sile | --sil | --si | --s)
9517: ac_cs_silent=: ;;
9518:
9519: # This is an error.
9520: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9521: Try \`$0 --help' for more information." >&5
9522: echo "$as_me: error: unrecognized option: $1
9523: Try \`$0 --help' for more information." >&2;}
9524: { (exit 1); exit 1; }; } ;;
9525:
9526: *) ac_config_targets="$ac_config_targets $1" ;;
1.1 parser 9527:
1.10 paf 9528: esac
9529: shift
9530: done
9531:
9532: ac_configure_extra_args=
9533:
9534: if $ac_cs_silent; then
9535: exec 6>/dev/null
9536: ac_configure_extra_args="$ac_configure_extra_args --silent"
9537: fi
9538:
9539: _ACEOF
9540: cat >>$CONFIG_STATUS <<_ACEOF
9541: if \$ac_cs_recheck; then
9542: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9543: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9544: fi
9545:
9546: _ACEOF
9547:
9548: cat >>$CONFIG_STATUS <<_ACEOF
1.1 parser 9549: #
1.10 paf 9550: # INIT-COMMANDS section.
1.1 parser 9551: #
9552:
1.10 paf 9553: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9554:
9555: _ACEOF
9556:
9557:
9558:
9559: cat >>$CONFIG_STATUS <<\_ACEOF
9560: for ac_config_target in $ac_config_targets
1.1 parser 9561: do
1.10 paf 9562: case "$ac_config_target" in
9563: # Handling of arguments.
9564: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9565: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9566: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
9567: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9568: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9569: { (exit 1); exit 1; }; };;
1.1 parser 9570: esac
9571: done
9572:
1.10 paf 9573: # If the user did not use the arguments to specify the items to instantiate,
9574: # then the envvar interface is used. Set only those that are not.
9575: # We use the long form for the default assignment because of an extremely
9576: # bizarre bug on SunOS 4.1.3.
9577: if $ac_need_defaults; then
9578: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9579: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9580: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9581: fi
9582:
9583: # Have a temporary directory for convenience. Make it in the build tree
9584: # simply because there is no reason to put it here, and in addition,
9585: # creating and moving files from /tmp can sometimes cause problems.
9586: # Create a temporary directory, and hook for its removal unless debugging.
9587: $debug ||
9588: {
9589: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9590: trap '{ (exit 1); exit 1; }' 1 2 13 15
9591: }
9592:
9593: # Create a (secure) tmp directory for tmp files.
9594:
9595: {
9596: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9597: test -n "$tmp" && test -d "$tmp"
9598: } ||
9599: {
9600: tmp=./confstat$$-$RANDOM
9601: (umask 077 && mkdir $tmp)
9602: } ||
9603: {
9604: echo "$me: cannot create a temporary directory in ." >&2
9605: { (exit 1); exit 1; }
9606: }
9607:
9608: _ACEOF
1.1 parser 9609:
1.10 paf 9610: cat >>$CONFIG_STATUS <<_ACEOF
1.1 parser 9611:
1.10 paf 9612: #
9613: # CONFIG_FILES section.
9614: #
1.1 parser 9615:
1.10 paf 9616: # No need to generate the scripts if there are no CONFIG_FILES.
9617: # This happens for instance when ./config.status config.h
9618: if test -n "\$CONFIG_FILES"; then
9619: # Protect against being on the right side of a sed subst in config.status.
9620: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9621: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9622: s,@SHELL@,$SHELL,;t t
9623: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9624: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9625: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9626: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9627: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9628: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9629: s,@exec_prefix@,$exec_prefix,;t t
9630: s,@prefix@,$prefix,;t t
9631: s,@program_transform_name@,$program_transform_name,;t t
9632: s,@bindir@,$bindir,;t t
9633: s,@sbindir@,$sbindir,;t t
9634: s,@libexecdir@,$libexecdir,;t t
9635: s,@datadir@,$datadir,;t t
9636: s,@sysconfdir@,$sysconfdir,;t t
9637: s,@sharedstatedir@,$sharedstatedir,;t t
9638: s,@localstatedir@,$localstatedir,;t t
9639: s,@libdir@,$libdir,;t t
9640: s,@includedir@,$includedir,;t t
9641: s,@oldincludedir@,$oldincludedir,;t t
9642: s,@infodir@,$infodir,;t t
9643: s,@mandir@,$mandir,;t t
9644: s,@build_alias@,$build_alias,;t t
9645: s,@host_alias@,$host_alias,;t t
9646: s,@target_alias@,$target_alias,;t t
9647: s,@DEFS@,$DEFS,;t t
9648: s,@ECHO_C@,$ECHO_C,;t t
9649: s,@ECHO_N@,$ECHO_N,;t t
9650: s,@ECHO_T@,$ECHO_T,;t t
9651: s,@LIBS@,$LIBS,;t t
9652: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9653: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9654: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9655: s,@CYGPATH_W@,$CYGPATH_W,;t t
9656: s,@PACKAGE@,$PACKAGE,;t t
9657: s,@VERSION@,$VERSION,;t t
9658: s,@ACLOCAL@,$ACLOCAL,;t t
9659: s,@AUTOCONF@,$AUTOCONF,;t t
9660: s,@AUTOMAKE@,$AUTOMAKE,;t t
9661: s,@AUTOHEADER@,$AUTOHEADER,;t t
9662: s,@MAKEINFO@,$MAKEINFO,;t t
9663: s,@install_sh@,$install_sh,;t t
9664: s,@STRIP@,$STRIP,;t t
9665: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9666: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
1.16 paf 9667: s,@mkdir_p@,$mkdir_p,;t t
1.10 paf 9668: s,@AWK@,$AWK,;t t
9669: s,@SET_MAKE@,$SET_MAKE,;t t
1.16 paf 9670: s,@am__leading_dot@,$am__leading_dot,;t t
9671: s,@AMTAR@,$AMTAR,;t t
9672: s,@am__tar@,$am__tar,;t t
9673: s,@am__untar@,$am__untar,;t t
1.10 paf 9674: s,@PGSQL_INC@,$PGSQL_INC,;t t
9675: s,@CXX@,$CXX,;t t
9676: s,@CXXFLAGS@,$CXXFLAGS,;t t
9677: s,@LDFLAGS@,$LDFLAGS,;t t
9678: s,@CPPFLAGS@,$CPPFLAGS,;t t
9679: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9680: s,@EXEEXT@,$EXEEXT,;t t
9681: s,@OBJEXT@,$OBJEXT,;t t
9682: s,@DEPDIR@,$DEPDIR,;t t
9683: s,@am__include@,$am__include,;t t
9684: s,@am__quote@,$am__quote,;t t
9685: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9686: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9687: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9688: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9689: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
9690: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
1.15 paf 9691: s,@CC@,$CC,;t t
9692: s,@CFLAGS@,$CFLAGS,;t t
9693: s,@ac_ct_CC@,$ac_ct_CC,;t t
9694: s,@CCDEPMODE@,$CCDEPMODE,;t t
9695: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9696: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
1.10 paf 9697: s,@INCLTDL@,$INCLTDL,;t t
9698: s,@LIBLTDL@,$LIBLTDL,;t t
9699: s,@LIBADD_DL@,$LIBADD_DL,;t t
9700: s,@build@,$build,;t t
9701: s,@build_cpu@,$build_cpu,;t t
9702: s,@build_vendor@,$build_vendor,;t t
9703: s,@build_os@,$build_os,;t t
9704: s,@host@,$host,;t t
9705: s,@host_cpu@,$host_cpu,;t t
9706: s,@host_vendor@,$host_vendor,;t t
9707: s,@host_os@,$host_os,;t t
9708: s,@LN_S@,$LN_S,;t t
9709: s,@ECHO@,$ECHO,;t t
9710: s,@RANLIB@,$RANLIB,;t t
9711: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
1.15 paf 9712: s,@CPP@,$CPP,;t t
1.10 paf 9713: s,@EGREP@,$EGREP,;t t
9714: s,@LIBTOOL@,$LIBTOOL,;t t
9715: s,@subdirs@,$subdirs,;t t
9716: s,@LIBOBJS@,$LIBOBJS,;t t
9717: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.1 parser 9718: CEOF
9719:
1.10 paf 9720: _ACEOF
1.1 parser 9721:
1.10 paf 9722: cat >>$CONFIG_STATUS <<\_ACEOF
9723: # Split the substitutions into bite-sized pieces for seds with
9724: # small command number limits, like on Digital OSF/1 and HP-UX.
9725: ac_max_sed_lines=48
9726: ac_sed_frag=1 # Number of current file.
9727: ac_beg=1 # First line for current file.
9728: ac_end=$ac_max_sed_lines # Line after last line for current file.
9729: ac_more_lines=:
9730: ac_sed_cmds=
9731: while $ac_more_lines; do
9732: if test $ac_beg -gt 1; then
9733: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9734: else
9735: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9736: fi
9737: if test ! -s $tmp/subs.frag; then
9738: ac_more_lines=false
9739: else
9740: # The purpose of the label and of the branching condition is to
9741: # speed up the sed processing (if there are no `@' at all, there
9742: # is no need to browse any of the substitutions).
9743: # These are the two extra sed commands mentioned above.
9744: (echo ':t
9745: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9746: if test -z "$ac_sed_cmds"; then
1.16 paf 9747: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1.10 paf 9748: else
1.16 paf 9749: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1.10 paf 9750: fi
9751: ac_sed_frag=`expr $ac_sed_frag + 1`
9752: ac_beg=$ac_end
9753: ac_end=`expr $ac_end + $ac_max_sed_lines`
9754: fi
9755: done
9756: if test -z "$ac_sed_cmds"; then
9757: ac_sed_cmds=cat
1.1 parser 9758: fi
1.10 paf 9759: fi # test -n "$CONFIG_FILES"
1.1 parser 9760:
1.10 paf 9761: _ACEOF
9762: cat >>$CONFIG_STATUS <<\_ACEOF
9763: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9764: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9765: case $ac_file in
9766: - | *:- | *:-:* ) # input from stdin
1.16 paf 9767: cat >$tmp/stdin
9768: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9769: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.10 paf 9770: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.16 paf 9771: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.10 paf 9772: * ) ac_file_in=$ac_file.in ;;
9773: esac
1.1 parser 9774:
1.10 paf 9775: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9776: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9777: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 9778: X"$ac_file" : 'X\(//\)[^/]' \| \
9779: X"$ac_file" : 'X\(//\)$' \| \
9780: X"$ac_file" : 'X\(/\)' \| \
9781: . : '\(.\)' 2>/dev/null ||
1.10 paf 9782: echo X"$ac_file" |
9783: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9784: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9785: /^X\(\/\/\)$/{ s//\1/; q; }
9786: /^X\(\/\).*/{ s//\1/; q; }
9787: s/.*/./; q'`
9788: { if $as_mkdir_p; then
9789: mkdir -p "$ac_dir"
9790: else
9791: as_dir="$ac_dir"
9792: as_dirs=
9793: while test ! -d "$as_dir"; do
9794: as_dirs="$as_dir $as_dirs"
9795: as_dir=`(dirname "$as_dir") 2>/dev/null ||
9796: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 9797: X"$as_dir" : 'X\(//\)[^/]' \| \
9798: X"$as_dir" : 'X\(//\)$' \| \
9799: X"$as_dir" : 'X\(/\)' \| \
9800: . : '\(.\)' 2>/dev/null ||
1.10 paf 9801: echo X"$as_dir" |
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: done
9808: test ! -n "$as_dirs" || mkdir $as_dirs
9809: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9810: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9811: { (exit 1); exit 1; }; }; }
9812:
9813: ac_builddir=.
9814:
9815: if test "$ac_dir" != .; then
9816: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9817: # A "../" for each directory in $ac_dir_suffix.
9818: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9819: else
9820: ac_dir_suffix= ac_top_builddir=
9821: fi
9822:
9823: case $srcdir in
9824: .) # No --srcdir option. We are building in place.
9825: ac_srcdir=.
9826: if test -z "$ac_top_builddir"; then
9827: ac_top_srcdir=.
9828: else
9829: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9830: fi ;;
9831: [\\/]* | ?:[\\/]* ) # Absolute path.
9832: ac_srcdir=$srcdir$ac_dir_suffix;
9833: ac_top_srcdir=$srcdir ;;
1.1 parser 9834: *) # Relative path.
1.10 paf 9835: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9836: ac_top_srcdir=$ac_top_builddir$srcdir ;;
9837: esac
1.16 paf 9838:
9839: # Do not use `cd foo && pwd` to compute absolute paths, because
9840: # the directories may not exist.
9841: case `pwd` in
9842: .) ac_abs_builddir="$ac_dir";;
9843: *)
9844: case "$ac_dir" in
9845: .) ac_abs_builddir=`pwd`;;
9846: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9847: *) ac_abs_builddir=`pwd`/"$ac_dir";;
9848: esac;;
9849: esac
9850: case $ac_abs_builddir in
9851: .) ac_abs_top_builddir=${ac_top_builddir}.;;
9852: *)
9853: case ${ac_top_builddir}. in
9854: .) ac_abs_top_builddir=$ac_abs_builddir;;
9855: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9856: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9857: esac;;
9858: esac
9859: case $ac_abs_builddir in
9860: .) ac_abs_srcdir=$ac_srcdir;;
9861: *)
9862: case $ac_srcdir in
9863: .) ac_abs_srcdir=$ac_abs_builddir;;
9864: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9865: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9866: esac;;
9867: esac
9868: case $ac_abs_builddir in
9869: .) ac_abs_top_srcdir=$ac_top_srcdir;;
9870: *)
9871: case $ac_top_srcdir in
9872: .) ac_abs_top_srcdir=$ac_abs_builddir;;
9873: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9874: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9875: esac;;
9876: esac
1.10 paf 9877:
9878:
9879: case $INSTALL in
9880: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9881: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.1 parser 9882: esac
9883:
1.10 paf 9884: if test x"$ac_file" != x-; then
9885: { echo "$as_me:$LINENO: creating $ac_file" >&5
9886: echo "$as_me: creating $ac_file" >&6;}
9887: rm -f "$ac_file"
9888: fi
9889: # Let's still pretend it is `configure' which instantiates (i.e., don't
9890: # use $as_me), people would be surprised to read:
9891: # /* config.h. Generated by config.status. */
9892: if test x"$ac_file" = x-; then
9893: configure_input=
9894: else
9895: configure_input="$ac_file. "
9896: fi
9897: configure_input=$configure_input"Generated from `echo $ac_file_in |
1.16 paf 9898: sed 's,.*/,,'` by configure."
1.10 paf 9899:
9900: # First look for the input files in the build tree, otherwise in the
9901: # src tree.
9902: ac_file_inputs=`IFS=:
9903: for f in $ac_file_in; do
9904: case $f in
9905: -) echo $tmp/stdin ;;
9906: [\\/$]*)
1.16 paf 9907: # Absolute (can't be DOS-style, as IFS=:)
9908: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.10 paf 9909: echo "$as_me: error: cannot find input file: $f" >&2;}
9910: { (exit 1); exit 1; }; }
1.16 paf 9911: echo "$f";;
1.10 paf 9912: *) # Relative
1.16 paf 9913: if test -f "$f"; then
9914: # Build tree
9915: echo "$f"
9916: elif test -f "$srcdir/$f"; then
9917: # Source tree
9918: echo "$srcdir/$f"
9919: else
9920: # /dev/null tree
9921: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.10 paf 9922: echo "$as_me: error: cannot find input file: $f" >&2;}
9923: { (exit 1); exit 1; }; }
1.16 paf 9924: fi;;
1.10 paf 9925: esac
9926: done` || { (exit 1); exit 1; }
9927: _ACEOF
9928: cat >>$CONFIG_STATUS <<_ACEOF
9929: sed "$ac_vpsub
9930: $extrasub
9931: _ACEOF
9932: cat >>$CONFIG_STATUS <<\_ACEOF
9933: :t
9934: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9935: s,@configure_input@,$configure_input,;t t
9936: s,@srcdir@,$ac_srcdir,;t t
9937: s,@abs_srcdir@,$ac_abs_srcdir,;t t
9938: s,@top_srcdir@,$ac_top_srcdir,;t t
9939: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9940: s,@builddir@,$ac_builddir,;t t
9941: s,@abs_builddir@,$ac_abs_builddir,;t t
9942: s,@top_builddir@,$ac_top_builddir,;t t
9943: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9944: s,@INSTALL@,$ac_INSTALL,;t t
9945: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9946: rm -f $tmp/stdin
9947: if test x"$ac_file" != x-; then
9948: mv $tmp/out $ac_file
9949: else
9950: cat $tmp/out
9951: rm -f $tmp/out
9952: fi
9953:
9954: done
9955: _ACEOF
9956: cat >>$CONFIG_STATUS <<\_ACEOF
9957:
9958: #
9959: # CONFIG_HEADER section.
9960: #
1.1 parser 9961:
9962: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9963: # NAME is the cpp macro being defined and VALUE is the value it is being given.
9964: #
9965: # ac_d sets the value in "#define NAME VALUE" lines.
1.16 paf 9966: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9967: ac_dB='[ ].*$,\1#\2'
1.10 paf 9968: ac_dC=' '
9969: ac_dD=',;t'
9970: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1.16 paf 9971: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1.10 paf 9972: ac_uB='$,\1#\2define\3'
1.1 parser 9973: ac_uC=' '
1.10 paf 9974: ac_uD=',;t'
1.1 parser 9975:
1.10 paf 9976: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 parser 9977: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.10 paf 9978: case $ac_file in
9979: - | *:- | *:-:* ) # input from stdin
1.16 paf 9980: cat >$tmp/stdin
9981: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9982: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.10 paf 9983: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.16 paf 9984: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.10 paf 9985: * ) ac_file_in=$ac_file.in ;;
1.1 parser 9986: esac
9987:
1.10 paf 9988: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9989: echo "$as_me: creating $ac_file" >&6;}
1.1 parser 9990:
1.10 paf 9991: # First look for the input files in the build tree, otherwise in the
9992: # src tree.
9993: ac_file_inputs=`IFS=:
9994: for f in $ac_file_in; do
9995: case $f in
9996: -) echo $tmp/stdin ;;
9997: [\\/$]*)
1.16 paf 9998: # Absolute (can't be DOS-style, as IFS=:)
9999: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.10 paf 10000: echo "$as_me: error: cannot find input file: $f" >&2;}
10001: { (exit 1); exit 1; }; }
1.16 paf 10002: # Do quote $f, to prevent DOS paths from being IFS'd.
10003: echo "$f";;
1.10 paf 10004: *) # Relative
1.16 paf 10005: if test -f "$f"; then
10006: # Build tree
10007: echo "$f"
10008: elif test -f "$srcdir/$f"; then
10009: # Source tree
10010: echo "$srcdir/$f"
10011: else
10012: # /dev/null tree
10013: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.10 paf 10014: echo "$as_me: error: cannot find input file: $f" >&2;}
10015: { (exit 1); exit 1; }; }
1.16 paf 10016: fi;;
1.10 paf 10017: esac
10018: done` || { (exit 1); exit 1; }
10019: # Remove the trailing spaces.
1.16 paf 10020: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
1.10 paf 10021:
10022: _ACEOF
10023:
10024: # Transform confdefs.h into two sed scripts, `conftest.defines' and
10025: # `conftest.undefs', that substitutes the proper values into
10026: # config.h.in to produce config.h. The first handles `#define'
10027: # templates, and the second `#undef' templates.
10028: # And first: Protect against being on the right side of a sed subst in
10029: # config.status. Protect against being in an unquoted here document
10030: # in config.status.
10031: rm -f conftest.defines conftest.undefs
10032: # Using a here document instead of a string reduces the quoting nightmare.
10033: # Putting comments in sed scripts is not portable.
10034: #
10035: # `end' is used to avoid that the second main sed command (meant for
10036: # 0-ary CPP macros) applies to n-ary macro definitions.
10037: # See the Autoconf documentation for `clear'.
10038: cat >confdef2sed.sed <<\_ACEOF
10039: s/[\\&,]/\\&/g
10040: s,[\\$`],\\&,g
10041: t clear
10042: : clear
1.16 paf 10043: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
1.10 paf 10044: t end
1.16 paf 10045: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
1.10 paf 10046: : end
10047: _ACEOF
10048: # If some macros were called several times there might be several times
10049: # the same #defines, which is useless. Nevertheless, we may not want to
10050: # sort them, since we want the *last* AC-DEFINE to be honored.
10051: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10052: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10053: rm -f confdef2sed.sed
1.1 parser 10054:
10055: # This sed command replaces #undef with comments. This is necessary, for
10056: # example, in the case of _POSIX_SOURCE, which is predefined and required
10057: # on some systems where configure will not decide to define it.
1.10 paf 10058: cat >>conftest.undefs <<\_ACEOF
1.16 paf 10059: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.10 paf 10060: _ACEOF
10061:
10062: # Break up conftest.defines because some shells have a limit on the size
10063: # of here documents, and old seds have small limits too (100 cmds).
10064: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
1.16 paf 10065: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
1.10 paf 10066: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10067: echo ' :' >>$CONFIG_STATUS
10068: rm -f conftest.tail
10069: while grep . conftest.defines >/dev/null
10070: do
10071: # Write a limited-size here document to $tmp/defines.sed.
10072: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10073: # Speed up: don't consider the non `#define' lines.
1.16 paf 10074: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
1.10 paf 10075: # Work around the forget-to-reset-the-flag bug.
10076: echo 't clr' >>$CONFIG_STATUS
10077: echo ': clr' >>$CONFIG_STATUS
10078: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10079: echo 'CEOF
10080: sed -f $tmp/defines.sed $tmp/in >$tmp/out
10081: rm -f $tmp/in
10082: mv $tmp/out $tmp/in
10083: ' >>$CONFIG_STATUS
10084: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10085: rm -f conftest.defines
10086: mv conftest.tail conftest.defines
10087: done
10088: rm -f conftest.defines
10089: echo ' fi # grep' >>$CONFIG_STATUS
10090: echo >>$CONFIG_STATUS
10091:
10092: # Break up conftest.undefs because some shells have a limit on the size
10093: # of here documents, and old seds have small limits too (100 cmds).
10094: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 parser 10095: rm -f conftest.tail
1.10 paf 10096: while grep . conftest.undefs >/dev/null
1.1 parser 10097: do
1.10 paf 10098: # Write a limited-size here document to $tmp/undefs.sed.
10099: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10100: # Speed up: don't consider the non `#undef'
1.16 paf 10101: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
1.10 paf 10102: # Work around the forget-to-reset-the-flag bug.
10103: echo 't clr' >>$CONFIG_STATUS
10104: echo ': clr' >>$CONFIG_STATUS
10105: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 parser 10106: echo 'CEOF
1.10 paf 10107: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10108: rm -f $tmp/in
10109: mv $tmp/out $tmp/in
10110: ' >>$CONFIG_STATUS
10111: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10112: rm -f conftest.undefs
10113: mv conftest.tail conftest.undefs
10114: done
10115: rm -f conftest.undefs
10116:
10117: cat >>$CONFIG_STATUS <<\_ACEOF
10118: # Let's still pretend it is `configure' which instantiates (i.e., don't
10119: # use $as_me), people would be surprised to read:
10120: # /* config.h. Generated by config.status. */
10121: if test x"$ac_file" = x-; then
10122: echo "/* Generated by configure. */" >$tmp/config.h
10123: else
10124: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10125: fi
10126: cat $tmp/in >>$tmp/config.h
10127: rm -f $tmp/in
10128: if test x"$ac_file" != x-; then
10129: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10130: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10131: echo "$as_me: $ac_file is unchanged" >&6;}
10132: else
10133: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10134: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 10135: X"$ac_file" : 'X\(//\)[^/]' \| \
10136: X"$ac_file" : 'X\(//\)$' \| \
10137: X"$ac_file" : 'X\(/\)' \| \
10138: . : '\(.\)' 2>/dev/null ||
1.10 paf 10139: echo X"$ac_file" |
10140: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10141: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10142: /^X\(\/\/\)$/{ s//\1/; q; }
10143: /^X\(\/\).*/{ s//\1/; q; }
10144: s/.*/./; q'`
10145: { if $as_mkdir_p; then
10146: mkdir -p "$ac_dir"
10147: else
10148: as_dir="$ac_dir"
10149: as_dirs=
10150: while test ! -d "$as_dir"; do
10151: as_dirs="$as_dir $as_dirs"
10152: as_dir=`(dirname "$as_dir") 2>/dev/null ||
10153: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 10154: X"$as_dir" : 'X\(//\)[^/]' \| \
10155: X"$as_dir" : 'X\(//\)$' \| \
10156: X"$as_dir" : 'X\(/\)' \| \
10157: . : '\(.\)' 2>/dev/null ||
1.10 paf 10158: echo X"$as_dir" |
10159: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10160: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10161: /^X\(\/\/\)$/{ s//\1/; q; }
10162: /^X\(\/\).*/{ s//\1/; q; }
10163: s/.*/./; q'`
10164: done
10165: test ! -n "$as_dirs" || mkdir $as_dirs
10166: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10167: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10168: { (exit 1); exit 1; }; }; }
10169:
10170: rm -f $ac_file
10171: mv $tmp/config.h $ac_file
1.1 parser 10172: fi
1.10 paf 10173: else
10174: cat $tmp/config.h
10175: rm -f $tmp/config.h
1.1 parser 10176: fi
1.16 paf 10177: # Compute $ac_file's index in $config_headers.
10178: _am_stamp_count=1
10179: for _am_header in $config_headers :; do
10180: case $_am_header in
10181: $ac_file | $ac_file:* )
10182: break ;;
10183: * )
10184: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10185: esac
10186: done
1.10 paf 10187: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10188: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 10189: X$ac_file : 'X\(//\)[^/]' \| \
10190: X$ac_file : 'X\(//\)$' \| \
10191: X$ac_file : 'X\(/\)' \| \
10192: . : '\(.\)' 2>/dev/null ||
1.10 paf 10193: echo X$ac_file |
10194: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10195: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10196: /^X\(\/\/\)$/{ s//\1/; q; }
10197: /^X\(\/\).*/{ s//\1/; q; }
10198: s/.*/./; q'`/stamp-h$_am_stamp_count
10199: done
10200: _ACEOF
10201: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 10202:
1.10 paf 10203: #
10204: # CONFIG_COMMANDS section.
10205: #
10206: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10207: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10208: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10209: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10210: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 10211: X"$ac_dest" : 'X\(//\)[^/]' \| \
10212: X"$ac_dest" : 'X\(//\)$' \| \
10213: X"$ac_dest" : 'X\(/\)' \| \
10214: . : '\(.\)' 2>/dev/null ||
1.10 paf 10215: echo X"$ac_dest" |
10216: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10217: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10218: /^X\(\/\/\)$/{ s//\1/; q; }
10219: /^X\(\/\).*/{ s//\1/; q; }
10220: s/.*/./; q'`
1.16 paf 10221: { if $as_mkdir_p; then
10222: mkdir -p "$ac_dir"
10223: else
10224: as_dir="$ac_dir"
10225: as_dirs=
10226: while test ! -d "$as_dir"; do
10227: as_dirs="$as_dir $as_dirs"
10228: as_dir=`(dirname "$as_dir") 2>/dev/null ||
10229: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10230: X"$as_dir" : 'X\(//\)[^/]' \| \
10231: X"$as_dir" : 'X\(//\)$' \| \
10232: X"$as_dir" : 'X\(/\)' \| \
10233: . : '\(.\)' 2>/dev/null ||
10234: echo X"$as_dir" |
10235: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10236: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10237: /^X\(\/\/\)$/{ s//\1/; q; }
10238: /^X\(\/\).*/{ s//\1/; q; }
10239: s/.*/./; q'`
10240: done
10241: test ! -n "$as_dirs" || mkdir $as_dirs
10242: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10243: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10244: { (exit 1); exit 1; }; }; }
10245:
1.10 paf 10246: ac_builddir=.
10247:
10248: if test "$ac_dir" != .; then
10249: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10250: # A "../" for each directory in $ac_dir_suffix.
10251: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10252: else
10253: ac_dir_suffix= ac_top_builddir=
10254: fi
10255:
10256: case $srcdir in
10257: .) # No --srcdir option. We are building in place.
10258: ac_srcdir=.
10259: if test -z "$ac_top_builddir"; then
10260: ac_top_srcdir=.
10261: else
10262: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10263: fi ;;
10264: [\\/]* | ?:[\\/]* ) # Absolute path.
10265: ac_srcdir=$srcdir$ac_dir_suffix;
10266: ac_top_srcdir=$srcdir ;;
10267: *) # Relative path.
10268: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10269: ac_top_srcdir=$ac_top_builddir$srcdir ;;
10270: esac
1.16 paf 10271:
10272: # Do not use `cd foo && pwd` to compute absolute paths, because
10273: # the directories may not exist.
10274: case `pwd` in
10275: .) ac_abs_builddir="$ac_dir";;
10276: *)
10277: case "$ac_dir" in
10278: .) ac_abs_builddir=`pwd`;;
10279: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10280: *) ac_abs_builddir=`pwd`/"$ac_dir";;
10281: esac;;
10282: esac
10283: case $ac_abs_builddir in
10284: .) ac_abs_top_builddir=${ac_top_builddir}.;;
10285: *)
10286: case ${ac_top_builddir}. in
10287: .) ac_abs_top_builddir=$ac_abs_builddir;;
10288: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10289: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10290: esac;;
10291: esac
10292: case $ac_abs_builddir in
10293: .) ac_abs_srcdir=$ac_srcdir;;
10294: *)
10295: case $ac_srcdir in
10296: .) ac_abs_srcdir=$ac_abs_builddir;;
10297: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10298: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10299: esac;;
10300: esac
10301: case $ac_abs_builddir in
10302: .) ac_abs_top_srcdir=$ac_top_srcdir;;
10303: *)
10304: case $ac_top_srcdir in
10305: .) ac_abs_top_srcdir=$ac_abs_builddir;;
10306: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10307: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10308: esac;;
10309: esac
1.10 paf 10310:
10311:
10312: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10313: echo "$as_me: executing $ac_dest commands" >&6;}
10314: case $ac_dest in
10315: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10316: # Strip MF so we end up with the name of the file.
10317: mf=`echo "$mf" | sed -e 's/:.*$//'`
10318: # Check whether this is an Automake generated Makefile or not.
10319: # We used to match only the files named `Makefile.in', but
10320: # some people rename them; so instead we look at the file content.
10321: # Grep'ing the first line is not enough: some people post-process
10322: # each Makefile.in and add a new line on top of each file to say so.
10323: # So let's grep whole file.
10324: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10325: dirpart=`(dirname "$mf") 2>/dev/null ||
10326: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 10327: X"$mf" : 'X\(//\)[^/]' \| \
10328: X"$mf" : 'X\(//\)$' \| \
10329: X"$mf" : 'X\(/\)' \| \
10330: . : '\(.\)' 2>/dev/null ||
1.10 paf 10331: echo X"$mf" |
10332: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10333: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10334: /^X\(\/\/\)$/{ s//\1/; q; }
10335: /^X\(\/\).*/{ s//\1/; q; }
10336: s/.*/./; q'`
10337: else
10338: continue
10339: fi
1.16 paf 10340: # Extract the definition of DEPDIR, am__include, and am__quote
10341: # from the Makefile without running `make'.
10342: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1.10 paf 10343: test -z "$DEPDIR" && continue
1.16 paf 10344: am__include=`sed -n 's/^am__include = //p' < "$mf"`
10345: test -z "am__include" && continue
10346: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1.10 paf 10347: # When using ansi2knr, U may be empty or an underscore; expand it
1.16 paf 10348: U=`sed -n 's/^U = //p' < "$mf"`
10349: # Find all dependency output files, they are included files with
10350: # $(DEPDIR) in their names. We invoke sed twice because it is the
10351: # simplest approach to changing $(DEPDIR) to its actual value in the
10352: # expansion.
10353: for file in `sed -n "
10354: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.10 paf 10355: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10356: # Make sure the directory exists.
10357: test -f "$dirpart/$file" && continue
10358: fdir=`(dirname "$file") 2>/dev/null ||
10359: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 10360: X"$file" : 'X\(//\)[^/]' \| \
10361: X"$file" : 'X\(//\)$' \| \
10362: X"$file" : 'X\(/\)' \| \
10363: . : '\(.\)' 2>/dev/null ||
1.10 paf 10364: echo X"$file" |
10365: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10366: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10367: /^X\(\/\/\)$/{ s//\1/; q; }
10368: /^X\(\/\).*/{ s//\1/; q; }
10369: s/.*/./; q'`
10370: { if $as_mkdir_p; then
10371: mkdir -p $dirpart/$fdir
10372: else
10373: as_dir=$dirpart/$fdir
10374: as_dirs=
10375: while test ! -d "$as_dir"; do
10376: as_dirs="$as_dir $as_dirs"
10377: as_dir=`(dirname "$as_dir") 2>/dev/null ||
10378: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 10379: X"$as_dir" : 'X\(//\)[^/]' \| \
10380: X"$as_dir" : 'X\(//\)$' \| \
10381: X"$as_dir" : 'X\(/\)' \| \
10382: . : '\(.\)' 2>/dev/null ||
1.10 paf 10383: echo X"$as_dir" |
10384: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10385: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10386: /^X\(\/\/\)$/{ s//\1/; q; }
10387: /^X\(\/\).*/{ s//\1/; q; }
10388: s/.*/./; q'`
10389: done
10390: test ! -n "$as_dirs" || mkdir $as_dirs
10391: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10392: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10393: { (exit 1); exit 1; }; }; }
1.1 parser 10394:
1.10 paf 10395: # echo "creating $dirpart/$file"
10396: echo '# dummy' > "$dirpart/$file"
10397: done
10398: done
10399: ;;
10400: esac
10401: done
10402: _ACEOF
1.1 parser 10403:
1.10 paf 10404: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 10405:
1.10 paf 10406: { (exit 0); exit 0; }
10407: _ACEOF
1.1 parser 10408: chmod +x $CONFIG_STATUS
1.10 paf 10409: ac_clean_files=$ac_clean_files_save
10410:
10411:
10412: # configure is writing to config.log, and then calls config.status.
10413: # config.status does its own redirection, appending to config.log.
10414: # Unfortunately, on DOS this fails, as config.log is still kept open
10415: # by configure, so config.status won't be able to write to it; its
10416: # output is simply discarded. So we exec the FD to /dev/null,
10417: # effectively closing config.log, so it can be properly (re)opened and
10418: # appended to by config.status. When coming back to configure, we
10419: # need to make the FD available again.
10420: if test "$no_create" != yes; then
10421: ac_cs_success=:
10422: ac_config_status_args=
10423: test "$silent" = yes &&
10424: ac_config_status_args="$ac_config_status_args --quiet"
10425: exec 5>/dev/null
10426: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10427: exec 5>>config.log
10428: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10429: # would make configure fail if this is the last instruction.
10430: $ac_cs_success || { (exit 1); exit 1; }
10431: fi
1.1 parser 10432:
1.10 paf 10433: #
10434: # CONFIG_SUBDIRS section.
10435: #
1.1 parser 10436: if test "$no_recursion" != yes; then
10437:
10438: # Remove --cache-file and --srcdir arguments so they do not pile up.
10439: ac_sub_configure_args=
10440: ac_prev=
10441: for ac_arg in $ac_configure_args; do
10442: if test -n "$ac_prev"; then
10443: ac_prev=
10444: continue
10445: fi
1.10 paf 10446: case $ac_arg in
1.1 parser 10447: -cache-file | --cache-file | --cache-fil | --cache-fi \
10448: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10449: ac_prev=cache_file ;;
10450: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.10 paf 10451: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10452: | --c=*)
10453: ;;
10454: --config-cache | -C)
1.1 parser 10455: ;;
10456: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10457: ac_prev=srcdir ;;
10458: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10459: ;;
1.10 paf 10460: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10461: ac_prev=prefix ;;
10462: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10463: ;;
1.1 parser 10464: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10465: esac
10466: done
10467:
1.10 paf 10468: # Always prepend --prefix to ensure using the same prefix
10469: # in subdir configurations.
10470: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
10471:
10472: ac_popdir=`pwd`
10473: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 10474:
10475: # Do not complain, so a configure script can configure whichever
10476: # parts of a large source tree are present.
1.10 paf 10477: test -d $srcdir/$ac_dir || continue
1.1 parser 10478:
1.10 paf 10479: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
10480: echo "$as_me: configuring in $ac_dir" >&6;}
10481: { if $as_mkdir_p; then
10482: mkdir -p "$ac_dir"
10483: else
10484: as_dir="$ac_dir"
10485: as_dirs=
10486: while test ! -d "$as_dir"; do
10487: as_dirs="$as_dir $as_dirs"
10488: as_dir=`(dirname "$as_dir") 2>/dev/null ||
10489: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.16 paf 10490: X"$as_dir" : 'X\(//\)[^/]' \| \
10491: X"$as_dir" : 'X\(//\)$' \| \
10492: X"$as_dir" : 'X\(/\)' \| \
10493: . : '\(.\)' 2>/dev/null ||
1.10 paf 10494: echo X"$as_dir" |
10495: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10496: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10497: /^X\(\/\/\)$/{ s//\1/; q; }
10498: /^X\(\/\).*/{ s//\1/; q; }
10499: s/.*/./; q'`
10500: done
10501: test ! -n "$as_dirs" || mkdir $as_dirs
10502: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10503: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10504: { (exit 1); exit 1; }; }; }
10505:
10506: ac_builddir=.
10507:
10508: if test "$ac_dir" != .; then
10509: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10510: # A "../" for each directory in $ac_dir_suffix.
10511: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10512: else
10513: ac_dir_suffix= ac_top_builddir=
10514: fi
10515:
10516: case $srcdir in
10517: .) # No --srcdir option. We are building in place.
10518: ac_srcdir=.
10519: if test -z "$ac_top_builddir"; then
10520: ac_top_srcdir=.
10521: else
10522: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10523: fi ;;
10524: [\\/]* | ?:[\\/]* ) # Absolute path.
10525: ac_srcdir=$srcdir$ac_dir_suffix;
10526: ac_top_srcdir=$srcdir ;;
10527: *) # Relative path.
10528: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10529: ac_top_srcdir=$ac_top_builddir$srcdir ;;
10530: esac
1.16 paf 10531:
10532: # Do not use `cd foo && pwd` to compute absolute paths, because
10533: # the directories may not exist.
10534: case `pwd` in
10535: .) ac_abs_builddir="$ac_dir";;
10536: *)
10537: case "$ac_dir" in
10538: .) ac_abs_builddir=`pwd`;;
10539: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10540: *) ac_abs_builddir=`pwd`/"$ac_dir";;
10541: esac;;
10542: esac
10543: case $ac_abs_builddir in
10544: .) ac_abs_top_builddir=${ac_top_builddir}.;;
10545: *)
10546: case ${ac_top_builddir}. in
10547: .) ac_abs_top_builddir=$ac_abs_builddir;;
10548: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10549: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10550: esac;;
10551: esac
10552: case $ac_abs_builddir in
10553: .) ac_abs_srcdir=$ac_srcdir;;
10554: *)
10555: case $ac_srcdir in
10556: .) ac_abs_srcdir=$ac_abs_builddir;;
10557: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10558: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10559: esac;;
10560: esac
10561: case $ac_abs_builddir in
10562: .) ac_abs_top_srcdir=$ac_top_srcdir;;
10563: *)
10564: case $ac_top_srcdir in
10565: .) ac_abs_top_srcdir=$ac_abs_builddir;;
10566: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10567: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10568: esac;;
10569: esac
1.1 parser 10570:
10571:
1.10 paf 10572: cd $ac_dir
1.1 parser 10573:
10574: # Check for guested configure; otherwise get Cygnus style configure.
1.10 paf 10575: if test -f $ac_srcdir/configure.gnu; then
10576: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
10577: elif test -f $ac_srcdir/configure; then
10578: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
10579: elif test -f $ac_srcdir/configure.in; then
1.1 parser 10580: ac_sub_configure=$ac_configure
10581: else
1.10 paf 10582: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10583: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 10584: ac_sub_configure=
10585: fi
10586:
10587: # The recursion is here.
10588: if test -n "$ac_sub_configure"; then
10589: # Make the cache file name correct relative to the subdirectory.
1.10 paf 10590: case $cache_file in
10591: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 parser 10592: *) # Relative path.
1.16 paf 10593: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 parser 10594: esac
10595:
1.10 paf 10596: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10597: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 parser 10598: # The eval makes quoting arguments work.
1.10 paf 10599: eval $ac_sub_configure $ac_sub_configure_args \
1.16 paf 10600: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
10601: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
1.10 paf 10602: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10603: { (exit 1); exit 1; }; }
1.1 parser 10604: fi
10605:
10606: cd $ac_popdir
10607: done
10608: fi
10609:
E-mail: