|
|
1.1 root 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.57.
4: #
5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6: # Free Software Foundation, Inc.
7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
9: ## --------------------- ##
10: ## M4sh Initialization. ##
11: ## --------------------- ##
12:
13: # Be Bourne compatible
14: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15: emulate sh
16: NULLCMD=:
17: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18: # is contrary to our usage. Disable this feature.
19: alias -g '${1+"$@"}'='"$@"'
20: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21: set -o posix
22: fi
23:
24: # Support unset when possible.
25: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26: as_unset=unset
27: else
28: as_unset=false
29: fi
30:
31:
32: # Work around bugs in pre-3.0 UWIN ksh.
33: $as_unset ENV MAIL MAILPATH
34: PS1='$ '
35: PS2='> '
36: PS4='+ '
37:
38: # NLS nuisances.
39: for as_var in \
40: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42: LC_TELEPHONE LC_TIME
43: do
44: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45: eval $as_var=C; export $as_var
46: else
47: $as_unset $as_var
48: fi
49: done
50:
51: # Required to use basename.
52: if expr a : '\(a\)' >/dev/null 2>&1; then
53: as_expr=expr
54: else
55: as_expr=false
56: fi
57:
58: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59: as_basename=basename
60: else
61: as_basename=false
62: fi
63:
64:
65: # Name of the executable.
66: as_me=`$as_basename "$0" ||
67: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68: X"$0" : 'X\(//\)$' \| \
69: X"$0" : 'X\(/\)$' \| \
70: . : '\(.\)' 2>/dev/null ||
71: echo X/"$0" |
72: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73: /^X\/\(\/\/\)$/{ s//\1/; q; }
74: /^X\/\(\/\).*/{ s//\1/; q; }
75: s/.*/./; q'`
76:
77:
78: # PATH needs CR, and LINENO needs CR and PATH.
79: # Avoid depending upon Character Ranges.
80: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83: as_cr_digits='0123456789'
84: as_cr_alnum=$as_cr_Letters$as_cr_digits
85:
86: # The user is always right.
87: if test "${PATH_SEPARATOR+set}" != set; then
88: echo "#! /bin/sh" >conf$$.sh
89: echo "exit 0" >>conf$$.sh
90: chmod +x conf$$.sh
91: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92: PATH_SEPARATOR=';'
93: else
94: PATH_SEPARATOR=:
95: fi
96: rm -f conf$$.sh
97: fi
98:
99:
100: as_lineno_1=$LINENO
101: as_lineno_2=$LINENO
102: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103: test "x$as_lineno_1" != "x$as_lineno_2" &&
104: test "x$as_lineno_3" = "x$as_lineno_2" || {
105: # Find who we are. Look in the path if we contain no path at all
106: # relative or not.
107: case $0 in
108: *[\\/]* ) as_myself=$0 ;;
109: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110: for as_dir in $PATH
111: do
112: IFS=$as_save_IFS
113: test -z "$as_dir" && as_dir=.
114: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115: done
116:
117: ;;
118: esac
119: # We did not find ourselves, most probably we were run as `sh COMMAND'
120: # in which case we are not to be found in the path.
121: if test "x$as_myself" = x; then
122: as_myself=$0
123: fi
124: if test ! -f "$as_myself"; then
125: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126: { (exit 1); exit 1; }; }
127: fi
128: case $CONFIG_SHELL in
129: '')
130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132: do
133: IFS=$as_save_IFS
134: test -z "$as_dir" && as_dir=.
135: for as_base in sh bash ksh sh5; do
136: case $as_dir in
137: /*)
138: if ("$as_dir/$as_base" -c '
139: as_lineno_1=$LINENO
140: as_lineno_2=$LINENO
141: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142: test "x$as_lineno_1" != "x$as_lineno_2" &&
143: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146: CONFIG_SHELL=$as_dir/$as_base
147: export CONFIG_SHELL
148: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149: fi;;
150: esac
151: done
152: done
153: ;;
154: esac
155:
156: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157: # uniformly replaced by the line number. The first 'sed' inserts a
158: # line-number line before each line; the second 'sed' does the real
159: # work. The second script uses 'N' to pair each line-number line
160: # with the numbered line, and appends trailing '-' during
161: # substitution so that $LINENO is not a special case at line end.
162: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164: sed '=' <$as_myself |
165: sed '
166: N
167: s,$,-,
168: : loop
169: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170: t loop
171: s,-$,,
172: s,^['$as_cr_digits']*\n,,
173: ' >$as_me.lineno &&
174: chmod +x $as_me.lineno ||
175: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176: { (exit 1); exit 1; }; }
177:
178: # Don't try to exec as it changes $[0], causing all sort of problems
179: # (the dirname of $[0] is not the place where we might find the
180: # original and so on. Autoconf is especially sensible to this).
181: . ./$as_me.lineno
182: # Exit status is that of the last command.
183: exit
184: }
185:
186:
187: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188: *c*,-n*) ECHO_N= ECHO_C='
189: ' ECHO_T=' ' ;;
190: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192: esac
193:
194: if expr a : '\(a\)' >/dev/null 2>&1; then
195: as_expr=expr
196: else
197: as_expr=false
198: fi
199:
200: rm -f conf$$ conf$$.exe conf$$.file
201: echo >conf$$.file
202: if ln -s conf$$.file conf$$ 2>/dev/null; then
203: # We could just check for DJGPP; but this test a) works b) is more generic
204: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205: if test -f conf$$.exe; then
206: # Don't use ln at all; we don't have any links
207: as_ln_s='cp -p'
208: else
209: as_ln_s='ln -s'
210: fi
211: elif ln conf$$.file conf$$ 2>/dev/null; then
212: as_ln_s=ln
213: else
214: as_ln_s='cp -p'
215: fi
216: rm -f conf$$ conf$$.exe conf$$.file
217:
218: if mkdir -p . 2>/dev/null; then
219: as_mkdir_p=:
220: else
221: as_mkdir_p=false
222: fi
223:
224: as_executable_p="test -f"
225:
226: # Sed expression to map a string onto a valid CPP name.
227: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228:
229: # Sed expression to map a string onto a valid variable name.
230: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231:
232:
233: # IFS
234: # We need space, tab and new line, in precisely that order.
235: as_nl='
236: '
237: IFS=" $as_nl"
238:
239: # CDPATH.
240: $as_unset CDPATH
241:
242:
243:
244: # Check that we are running under the correct shell.
245: SHELL=${CONFIG_SHELL-/bin/sh}
246:
247: case X$ECHO in
248: X*--fallback-echo)
249: # Remove one level of quotation (which was required for Make).
250: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
251: ;;
252: esac
253:
254: echo=${ECHO-echo}
255: if test "X$1" = X--no-reexec; then
256: # Discard the --no-reexec flag, and continue.
257: shift
258: elif test "X$1" = X--fallback-echo; then
259: # Avoid inline document here, it may be left over
260: :
261: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
262: # Yippee, $echo works!
263: :
264: else
265: # Restart under the correct shell.
266: exec $SHELL "$0" --no-reexec ${1+"$@"}
267: fi
268:
269: if test "X$1" = X--fallback-echo; then
270: # used as fallback echo
271: shift
272: cat <<EOF
273: $*
274: EOF
275: exit 0
276: fi
277:
278: # The HP-UX ksh and POSIX shell print the target directory to stdout
279: # if CDPATH is set.
280: if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
281:
282: if test -z "$ECHO"; then
283: if test "X${echo_test_string+set}" != Xset; then
284: # find a string as large as possible, as long as the shell can cope with it
285: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
286: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
287: if (echo_test_string="`eval $cmd`") 2>/dev/null &&
288: echo_test_string="`eval $cmd`" &&
289: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
290: then
291: break
292: fi
293: done
294: fi
295:
296: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
297: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
298: test "X$echo_testing_string" = "X$echo_test_string"; then
299: :
300: else
301: # The Solaris, AIX, and Digital Unix default echo programs unquote
302: # backslashes. This makes it impossible to quote backslashes using
303: # echo "$something" | sed 's/\\/\\\\/g'
304: #
305: # So, first we look for a working echo in the user's PATH.
306:
307: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308: for dir in $PATH /usr/ucb; do
309: IFS="$lt_save_ifs"
310: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313: test "X$echo_testing_string" = "X$echo_test_string"; then
314: echo="$dir/echo"
315: break
316: fi
317: done
318: IFS="$lt_save_ifs"
319:
320: if test "X$echo" = Xecho; then
321: # We didn't find a better echo, so look for alternatives.
322: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
323: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
324: test "X$echo_testing_string" = "X$echo_test_string"; then
325: # This shell has a builtin print -r that does the trick.
326: echo='print -r'
327: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
328: test "X$CONFIG_SHELL" != X/bin/ksh; then
329: # If we have ksh, try running configure again with it.
330: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331: export ORIGINAL_CONFIG_SHELL
332: CONFIG_SHELL=/bin/ksh
333: export CONFIG_SHELL
334: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335: else
336: # Try using printf.
337: echo='printf %s\n'
338: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
339: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
340: test "X$echo_testing_string" = "X$echo_test_string"; then
341: # Cool, printf works
342: :
343: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344: test "X$echo_testing_string" = 'X\t' &&
345: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346: test "X$echo_testing_string" = "X$echo_test_string"; then
347: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348: export CONFIG_SHELL
349: SHELL="$CONFIG_SHELL"
350: export SHELL
351: echo="$CONFIG_SHELL $0 --fallback-echo"
352: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353: test "X$echo_testing_string" = 'X\t' &&
354: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355: test "X$echo_testing_string" = "X$echo_test_string"; then
356: echo="$CONFIG_SHELL $0 --fallback-echo"
357: else
358: # maybe with a smaller string...
359: prev=:
360:
361: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
363: then
364: break
365: fi
366: prev="$cmd"
367: done
368:
369: if test "$prev" != 'sed 50q "$0"'; then
370: echo_test_string=`eval $prev`
371: export echo_test_string
372: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373: else
374: # Oops. We lost completely, so just stick with echo.
375: echo=echo
376: fi
377: fi
378: fi
379: fi
380: fi
381: fi
382:
383: # Copy echo and quote the copy suitably for passing to libtool from
384: # the Makefile, instead of quoting the original, which is used later.
385: ECHO=$echo
386: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388: fi
389:
390:
391:
392:
393: tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
394:
395: tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
396:
397: # Name of the host.
398: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
399: # so uname gets run too.
400: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
401:
402: exec 6>&1
403:
404: #
405: # Initializations.
406: #
407: ac_default_prefix=/usr/local
408: ac_config_libobj_dir=.
409: cross_compiling=no
410: subdirs=
411: MFLAGS=
412: MAKEFLAGS=
413: SHELL=${CONFIG_SHELL-/bin/sh}
414:
415: # Maximum number of lines to put in a shell here document.
416: # This variable seems obsolete. It should probably be removed, and
417: # only ac_max_sed_lines should be used.
418: : ${ac_max_here_lines=38}
419:
420: # Identity of this package.
421: PACKAGE_NAME=
422: PACKAGE_TARNAME=
423: PACKAGE_VERSION=
424: PACKAGE_STRING=
425: PACKAGE_BUGREPORT=
426:
427: ac_unique_file="ic/m68k/m68k-impl.h"
428: # Factoring default headers for most tests.
429: ac_includes_default="\
430: #include <stdio.h>
431: #if HAVE_SYS_TYPES_H
432: # include <sys/types.h>
433: #endif
434: #if HAVE_SYS_STAT_H
435: # include <sys/stat.h>
436: #endif
437: #if STDC_HEADERS
438: # include <stdlib.h>
439: # include <stddef.h>
440: #else
441: # if HAVE_STDLIB_H
442: # include <stdlib.h>
443: # endif
444: #endif
445: #if HAVE_STRING_H
446: # if !STDC_HEADERS && HAVE_MEMORY_H
447: # include <memory.h>
448: # endif
449: # include <string.h>
450: #endif
451: #if HAVE_STRINGS_H
452: # include <strings.h>
453: #endif
454: #if HAVE_INTTYPES_H
455: # include <inttypes.h>
456: #else
457: # if HAVE_STDINT_H
458: # include <stdint.h>
459: # endif
460: #endif
461: #if HAVE_UNISTD_H
462: # include <unistd.h>
463: #endif"
464:
465: ac_subdirs_all="$ac_subdirs_all libltdl"
1.1.1.3 ! root 466: 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP YACC EGREP LIBOBJS PERL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CONFIG GTK_CFLAGS GTK_LIBS TME_FB_XLAT_DST TME_MACHINE_SUBDIRS TME_IC_SUBDIRS TME_ICS TME_SERIAL_SUBDIRS TME_SERIALS TME_BUS_SUBDIRS TME_FB_XLAT_SRC TME_HOSTS INCLTDL LIBLTDL LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LTLIBOBJS subdirs TME_PREOPEN CFLAGS_NO_STRICT_ALIASING'
1.1 root 467: ac_subst_files=''
468:
469: # Initialize some variables set by options.
470: ac_init_help=
471: ac_init_version=false
472: # The variables have the same names as the options, with
473: # dashes changed to underlines.
474: cache_file=/dev/null
475: exec_prefix=NONE
476: no_create=
477: no_recursion=
478: prefix=NONE
479: program_prefix=NONE
480: program_suffix=NONE
481: program_transform_name=s,x,x,
482: silent=
483: site=
484: srcdir=
485: verbose=
486: x_includes=NONE
487: x_libraries=NONE
488:
489: # Installation directory options.
490: # These are left unexpanded so users can "make install exec_prefix=/foo"
491: # and all the variables that are supposed to be based on exec_prefix
492: # by default will actually change.
493: # Use braces instead of parens because sh, perl, etc. also accept them.
494: bindir='${exec_prefix}/bin'
495: sbindir='${exec_prefix}/sbin'
496: libexecdir='${exec_prefix}/libexec'
497: datadir='${prefix}/share'
498: sysconfdir='${prefix}/etc'
499: sharedstatedir='${prefix}/com'
500: localstatedir='${prefix}/var'
501: libdir='${exec_prefix}/lib'
502: includedir='${prefix}/include'
503: oldincludedir='/usr/include'
504: infodir='${prefix}/info'
505: mandir='${prefix}/man'
506:
507: ac_prev=
508: for ac_option
509: do
510: # If the previous option needs an argument, assign it.
511: if test -n "$ac_prev"; then
512: eval "$ac_prev=\$ac_option"
513: ac_prev=
514: continue
515: fi
516:
517: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518:
519: # Accept the important Cygnus configure options, so we can diagnose typos.
520:
521: case $ac_option in
522:
523: -bindir | --bindir | --bindi | --bind | --bin | --bi)
524: ac_prev=bindir ;;
525: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526: bindir=$ac_optarg ;;
527:
528: -build | --build | --buil | --bui | --bu)
529: ac_prev=build_alias ;;
530: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531: build_alias=$ac_optarg ;;
532:
533: -cache-file | --cache-file | --cache-fil | --cache-fi \
534: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535: ac_prev=cache_file ;;
536: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538: cache_file=$ac_optarg ;;
539:
540: --config-cache | -C)
541: cache_file=config.cache ;;
542:
543: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544: ac_prev=datadir ;;
545: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546: | --da=*)
547: datadir=$ac_optarg ;;
548:
549: -disable-* | --disable-*)
550: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551: # Reject names that are not valid shell variable names.
552: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554: { (exit 1); exit 1; }; }
555: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556: eval "enable_$ac_feature=no" ;;
557:
558: -enable-* | --enable-*)
559: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560: # Reject names that are not valid shell variable names.
561: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563: { (exit 1); exit 1; }; }
564: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565: case $ac_option in
566: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567: *) ac_optarg=yes ;;
568: esac
569: eval "enable_$ac_feature='$ac_optarg'" ;;
570:
571: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573: | --exec | --exe | --ex)
574: ac_prev=exec_prefix ;;
575: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577: | --exec=* | --exe=* | --ex=*)
578: exec_prefix=$ac_optarg ;;
579:
580: -gas | --gas | --ga | --g)
581: # Obsolete; use --with-gas.
582: with_gas=yes ;;
583:
584: -help | --help | --hel | --he | -h)
585: ac_init_help=long ;;
586: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587: ac_init_help=recursive ;;
588: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589: ac_init_help=short ;;
590:
591: -host | --host | --hos | --ho)
592: ac_prev=host_alias ;;
593: -host=* | --host=* | --hos=* | --ho=*)
594: host_alias=$ac_optarg ;;
595:
596: -includedir | --includedir | --includedi | --included | --include \
597: | --includ | --inclu | --incl | --inc)
598: ac_prev=includedir ;;
599: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600: | --includ=* | --inclu=* | --incl=* | --inc=*)
601: includedir=$ac_optarg ;;
602:
603: -infodir | --infodir | --infodi | --infod | --info | --inf)
604: ac_prev=infodir ;;
605: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606: infodir=$ac_optarg ;;
607:
608: -libdir | --libdir | --libdi | --libd)
609: ac_prev=libdir ;;
610: -libdir=* | --libdir=* | --libdi=* | --libd=*)
611: libdir=$ac_optarg ;;
612:
613: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614: | --libexe | --libex | --libe)
615: ac_prev=libexecdir ;;
616: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617: | --libexe=* | --libex=* | --libe=*)
618: libexecdir=$ac_optarg ;;
619:
620: -localstatedir | --localstatedir | --localstatedi | --localstated \
621: | --localstate | --localstat | --localsta | --localst \
622: | --locals | --local | --loca | --loc | --lo)
623: ac_prev=localstatedir ;;
624: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627: localstatedir=$ac_optarg ;;
628:
629: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630: ac_prev=mandir ;;
631: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632: mandir=$ac_optarg ;;
633:
634: -nfp | --nfp | --nf)
635: # Obsolete; use --without-fp.
636: with_fp=no ;;
637:
638: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639: | --no-cr | --no-c | -n)
640: no_create=yes ;;
641:
642: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644: no_recursion=yes ;;
645:
646: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648: | --oldin | --oldi | --old | --ol | --o)
649: ac_prev=oldincludedir ;;
650: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653: oldincludedir=$ac_optarg ;;
654:
655: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656: ac_prev=prefix ;;
657: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658: prefix=$ac_optarg ;;
659:
660: -program-prefix | --program-prefix | --program-prefi | --program-pref \
661: | --program-pre | --program-pr | --program-p)
662: ac_prev=program_prefix ;;
663: -program-prefix=* | --program-prefix=* | --program-prefi=* \
664: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665: program_prefix=$ac_optarg ;;
666:
667: -program-suffix | --program-suffix | --program-suffi | --program-suff \
668: | --program-suf | --program-su | --program-s)
669: ac_prev=program_suffix ;;
670: -program-suffix=* | --program-suffix=* | --program-suffi=* \
671: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672: program_suffix=$ac_optarg ;;
673:
674: -program-transform-name | --program-transform-name \
675: | --program-transform-nam | --program-transform-na \
676: | --program-transform-n | --program-transform- \
677: | --program-transform | --program-transfor \
678: | --program-transfo | --program-transf \
679: | --program-trans | --program-tran \
680: | --progr-tra | --program-tr | --program-t)
681: ac_prev=program_transform_name ;;
682: -program-transform-name=* | --program-transform-name=* \
683: | --program-transform-nam=* | --program-transform-na=* \
684: | --program-transform-n=* | --program-transform-=* \
685: | --program-transform=* | --program-transfor=* \
686: | --program-transfo=* | --program-transf=* \
687: | --program-trans=* | --program-tran=* \
688: | --progr-tra=* | --program-tr=* | --program-t=*)
689: program_transform_name=$ac_optarg ;;
690:
691: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692: | -silent | --silent | --silen | --sile | --sil)
693: silent=yes ;;
694:
695: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696: ac_prev=sbindir ;;
697: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698: | --sbi=* | --sb=*)
699: sbindir=$ac_optarg ;;
700:
701: -sharedstatedir | --sharedstatedir | --sharedstatedi \
702: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703: | --sharedst | --shareds | --shared | --share | --shar \
704: | --sha | --sh)
705: ac_prev=sharedstatedir ;;
706: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709: | --sha=* | --sh=*)
710: sharedstatedir=$ac_optarg ;;
711:
712: -site | --site | --sit)
713: ac_prev=site ;;
714: -site=* | --site=* | --sit=*)
715: site=$ac_optarg ;;
716:
717: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718: ac_prev=srcdir ;;
719: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720: srcdir=$ac_optarg ;;
721:
722: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723: | --syscon | --sysco | --sysc | --sys | --sy)
724: ac_prev=sysconfdir ;;
725: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727: sysconfdir=$ac_optarg ;;
728:
729: -target | --target | --targe | --targ | --tar | --ta | --t)
730: ac_prev=target_alias ;;
731: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732: target_alias=$ac_optarg ;;
733:
734: -v | -verbose | --verbose | --verbos | --verbo | --verb)
735: verbose=yes ;;
736:
737: -version | --version | --versio | --versi | --vers | -V)
738: ac_init_version=: ;;
739:
740: -with-* | --with-*)
741: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742: # Reject names that are not valid shell variable names.
743: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744: { echo "$as_me: error: invalid package name: $ac_package" >&2
745: { (exit 1); exit 1; }; }
746: ac_package=`echo $ac_package| sed 's/-/_/g'`
747: case $ac_option in
748: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749: *) ac_optarg=yes ;;
750: esac
751: eval "with_$ac_package='$ac_optarg'" ;;
752:
753: -without-* | --without-*)
754: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755: # Reject names that are not valid shell variable names.
756: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757: { echo "$as_me: error: invalid package name: $ac_package" >&2
758: { (exit 1); exit 1; }; }
759: ac_package=`echo $ac_package | sed 's/-/_/g'`
760: eval "with_$ac_package=no" ;;
761:
762: --x)
763: # Obsolete; use --with-x.
764: with_x=yes ;;
765:
766: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767: | --x-incl | --x-inc | --x-in | --x-i)
768: ac_prev=x_includes ;;
769: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771: x_includes=$ac_optarg ;;
772:
773: -x-libraries | --x-libraries | --x-librarie | --x-librari \
774: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775: ac_prev=x_libraries ;;
776: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778: x_libraries=$ac_optarg ;;
779:
780: -*) { echo "$as_me: error: unrecognized option: $ac_option
781: Try \`$0 --help' for more information." >&2
782: { (exit 1); exit 1; }; }
783: ;;
784:
785: *=*)
786: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787: # Reject names that are not valid shell variable names.
788: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790: { (exit 1); exit 1; }; }
791: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792: eval "$ac_envvar='$ac_optarg'"
793: export $ac_envvar ;;
794:
795: *)
796: # FIXME: should be removed in autoconf 3.0.
797: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801: ;;
802:
803: esac
804: done
805:
806: if test -n "$ac_prev"; then
807: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808: { echo "$as_me: error: missing argument to $ac_option" >&2
809: { (exit 1); exit 1; }; }
810: fi
811:
812: # Be sure to have absolute paths.
813: for ac_var in exec_prefix prefix
814: do
815: eval ac_val=$`echo $ac_var`
816: case $ac_val in
817: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819: { (exit 1); exit 1; }; };;
820: esac
821: done
822:
823: # Be sure to have absolute paths.
824: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825: localstatedir libdir includedir oldincludedir infodir mandir
826: do
827: eval ac_val=$`echo $ac_var`
828: case $ac_val in
829: [\\/$]* | ?:[\\/]* ) ;;
830: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831: { (exit 1); exit 1; }; };;
832: esac
833: done
834:
835: # There might be people who depend on the old broken behavior: `$host'
836: # used to hold the argument of --host etc.
837: # FIXME: To remove some day.
838: build=$build_alias
839: host=$host_alias
840: target=$target_alias
841:
842: # FIXME: To remove some day.
843: if test "x$host_alias" != x; then
844: if test "x$build_alias" = x; then
845: cross_compiling=maybe
846: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847: If a cross compiler is detected then cross compile mode will be used." >&2
848: elif test "x$build_alias" != "x$host_alias"; then
849: cross_compiling=yes
850: fi
851: fi
852:
853: ac_tool_prefix=
854: test -n "$host_alias" && ac_tool_prefix=$host_alias-
855:
856: test "$silent" = yes && exec 6>/dev/null
857:
858:
859: # Find the source files, if location was not specified.
860: if test -z "$srcdir"; then
861: ac_srcdir_defaulted=yes
862: # Try the directory containing this script, then its parent.
863: ac_confdir=`(dirname "$0") 2>/dev/null ||
864: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865: X"$0" : 'X\(//\)[^/]' \| \
866: X"$0" : 'X\(//\)$' \| \
867: X"$0" : 'X\(/\)' \| \
868: . : '\(.\)' 2>/dev/null ||
869: echo X"$0" |
870: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872: /^X\(\/\/\)$/{ s//\1/; q; }
873: /^X\(\/\).*/{ s//\1/; q; }
874: s/.*/./; q'`
875: srcdir=$ac_confdir
876: if test ! -r $srcdir/$ac_unique_file; then
877: srcdir=..
878: fi
879: else
880: ac_srcdir_defaulted=no
881: fi
882: if test ! -r $srcdir/$ac_unique_file; then
883: if test "$ac_srcdir_defaulted" = yes; then
884: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885: { (exit 1); exit 1; }; }
886: else
887: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888: { (exit 1); exit 1; }; }
889: fi
890: fi
891: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893: { (exit 1); exit 1; }; }
894: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895: ac_env_build_alias_set=${build_alias+set}
896: ac_env_build_alias_value=$build_alias
897: ac_cv_env_build_alias_set=${build_alias+set}
898: ac_cv_env_build_alias_value=$build_alias
899: ac_env_host_alias_set=${host_alias+set}
900: ac_env_host_alias_value=$host_alias
901: ac_cv_env_host_alias_set=${host_alias+set}
902: ac_cv_env_host_alias_value=$host_alias
903: ac_env_target_alias_set=${target_alias+set}
904: ac_env_target_alias_value=$target_alias
905: ac_cv_env_target_alias_set=${target_alias+set}
906: ac_cv_env_target_alias_value=$target_alias
907: ac_env_CC_set=${CC+set}
908: ac_env_CC_value=$CC
909: ac_cv_env_CC_set=${CC+set}
910: ac_cv_env_CC_value=$CC
911: ac_env_CFLAGS_set=${CFLAGS+set}
912: ac_env_CFLAGS_value=$CFLAGS
913: ac_cv_env_CFLAGS_set=${CFLAGS+set}
914: ac_cv_env_CFLAGS_value=$CFLAGS
915: ac_env_LDFLAGS_set=${LDFLAGS+set}
916: ac_env_LDFLAGS_value=$LDFLAGS
917: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918: ac_cv_env_LDFLAGS_value=$LDFLAGS
919: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920: ac_env_CPPFLAGS_value=$CPPFLAGS
921: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923: ac_env_CPP_set=${CPP+set}
924: ac_env_CPP_value=$CPP
925: ac_cv_env_CPP_set=${CPP+set}
926: ac_cv_env_CPP_value=$CPP
927: ac_env_CXX_set=${CXX+set}
928: ac_env_CXX_value=$CXX
929: ac_cv_env_CXX_set=${CXX+set}
930: ac_cv_env_CXX_value=$CXX
931: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932: ac_env_CXXFLAGS_value=$CXXFLAGS
933: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935: ac_env_CXXCPP_set=${CXXCPP+set}
936: ac_env_CXXCPP_value=$CXXCPP
937: ac_cv_env_CXXCPP_set=${CXXCPP+set}
938: ac_cv_env_CXXCPP_value=$CXXCPP
939: ac_env_F77_set=${F77+set}
940: ac_env_F77_value=$F77
941: ac_cv_env_F77_set=${F77+set}
942: ac_cv_env_F77_value=$F77
943: ac_env_FFLAGS_set=${FFLAGS+set}
944: ac_env_FFLAGS_value=$FFLAGS
945: ac_cv_env_FFLAGS_set=${FFLAGS+set}
946: ac_cv_env_FFLAGS_value=$FFLAGS
947:
948: #
949: # Report the --help message.
950: #
951: if test "$ac_init_help" = "long"; then
952: # Omit some internal or obsolete options to make the list less imposing.
953: # This message is too long to be a string in the A/UX 3.1 sh.
954: cat <<_ACEOF
955: \`configure' configures this package to adapt to many kinds of systems.
956:
957: Usage: $0 [OPTION]... [VAR=VALUE]...
958:
959: To assign environment variables (e.g., CC, CFLAGS...), specify them as
960: VAR=VALUE. See below for descriptions of some of the useful variables.
961:
962: Defaults for the options are specified in brackets.
963:
964: Configuration:
965: -h, --help display this help and exit
966: --help=short display options specific to this package
967: --help=recursive display the short help of all the included packages
968: -V, --version display version information and exit
969: -q, --quiet, --silent do not print \`checking...' messages
970: --cache-file=FILE cache test results in FILE [disabled]
971: -C, --config-cache alias for \`--cache-file=config.cache'
972: -n, --no-create do not create output files
973: --srcdir=DIR find the sources in DIR [configure dir or \`..']
974:
975: _ACEOF
976:
977: cat <<_ACEOF
978: Installation directories:
979: --prefix=PREFIX install architecture-independent files in PREFIX
980: [$ac_default_prefix]
981: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
982: [PREFIX]
983:
984: By default, \`make install' will install all the files in
985: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987: for instance \`--prefix=\$HOME'.
988:
989: For better control, use the options below.
990:
991: Fine tuning of the installation directories:
992: --bindir=DIR user executables [EPREFIX/bin]
993: --sbindir=DIR system admin executables [EPREFIX/sbin]
994: --libexecdir=DIR program executables [EPREFIX/libexec]
995: --datadir=DIR read-only architecture-independent data [PREFIX/share]
996: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999: --libdir=DIR object code libraries [EPREFIX/lib]
1000: --includedir=DIR C header files [PREFIX/include]
1001: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002: --infodir=DIR info documentation [PREFIX/info]
1003: --mandir=DIR man documentation [PREFIX/man]
1004: _ACEOF
1005:
1006: cat <<\_ACEOF
1007:
1008: Program names:
1009: --program-prefix=PREFIX prepend PREFIX to installed program names
1010: --program-suffix=SUFFIX append SUFFIX to installed program names
1011: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1012:
1.1.1.2 root 1013: X features:
1014: --x-includes=DIR X include files are in DIR
1015: --x-libraries=DIR X library files are in DIR
1016:
1.1 root 1017: System types:
1018: --build=BUILD configure for building on BUILD [guessed]
1019: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1020: --target=TARGET configure for building compilers for TARGET [HOST]
1021: _ACEOF
1022: fi
1023:
1024: if test -n "$ac_init_help"; then
1025:
1026: cat <<\_ACEOF
1027:
1028: Optional Features:
1029: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1030: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1031: --disable-dependency-tracking Speeds up one-time builds
1032: --enable-dependency-tracking Do not reject slow dependency extractors
1.1.1.2 root 1033: --disable-gtktest Do not try to compile and run a test GTK program
1.1 root 1034: --enable-shared[=PKGS]
1035: build shared libraries [default=yes]
1036: --enable-static[=PKGS]
1037: build static libraries [default=yes]
1038: --enable-fast-install[=PKGS]
1039: optimize for fast installation [default=yes]
1040: --disable-libtool-lock avoid locking (might break parallel builds)
1041: --disable-debug don't compile debuggable libraries and programs (default=do)
1042: --disable-warnings don't compile with warnings turned on (default=do)
1043:
1044: Optional Packages:
1045: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.1.1.2 root 1047: --with-x use the X Window System
1048: --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1049: --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1.1.1.3 ! root 1050: --with-tme-host-displays=DISPLAYS support host displays with these display formats
1.1 root 1051: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1052: --with-pic try to use only PIC/non-PIC objects [default=use
1053: both]
1054: --with-tags[=TAGS]
1055: include additional configurations [automatic]
1056:
1057: Some influential environment variables:
1058: CC C compiler command
1059: CFLAGS C compiler flags
1060: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1061: nonstandard directory <lib dir>
1062: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063: headers in a nonstandard directory <include dir>
1064: CPP C preprocessor
1065: CXX C++ compiler command
1066: CXXFLAGS C++ compiler flags
1067: CXXCPP C++ preprocessor
1068: F77 Fortran 77 compiler command
1069: FFLAGS Fortran 77 compiler flags
1070:
1071: Use these variables to override the choices made by `configure' or to help
1072: it to find libraries and programs with nonstandard names/locations.
1073:
1074: _ACEOF
1075: fi
1076:
1077: if test "$ac_init_help" = "recursive"; then
1078: # If there are subdirs, report their specific --help.
1079: ac_popdir=`pwd`
1080: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081: test -d $ac_dir || continue
1082: ac_builddir=.
1083:
1084: if test "$ac_dir" != .; then
1085: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086: # A "../" for each directory in $ac_dir_suffix.
1087: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088: else
1089: ac_dir_suffix= ac_top_builddir=
1090: fi
1091:
1092: case $srcdir in
1093: .) # No --srcdir option. We are building in place.
1094: ac_srcdir=.
1095: if test -z "$ac_top_builddir"; then
1096: ac_top_srcdir=.
1097: else
1098: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099: fi ;;
1100: [\\/]* | ?:[\\/]* ) # Absolute path.
1101: ac_srcdir=$srcdir$ac_dir_suffix;
1102: ac_top_srcdir=$srcdir ;;
1103: *) # Relative path.
1104: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106: esac
1107: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108: # absolute.
1109: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1110: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1111: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113:
1114: cd $ac_dir
1115: # Check for guested configure; otherwise get Cygnus style configure.
1116: if test -f $ac_srcdir/configure.gnu; then
1117: echo
1118: $SHELL $ac_srcdir/configure.gnu --help=recursive
1119: elif test -f $ac_srcdir/configure; then
1120: echo
1121: $SHELL $ac_srcdir/configure --help=recursive
1122: elif test -f $ac_srcdir/configure.ac ||
1123: test -f $ac_srcdir/configure.in; then
1124: echo
1125: $ac_configure --help
1126: else
1127: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128: fi
1129: cd $ac_popdir
1130: done
1131: fi
1132:
1133: test -n "$ac_init_help" && exit 0
1134: if $ac_init_version; then
1135: cat <<\_ACEOF
1136:
1137: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138: Free Software Foundation, Inc.
1139: This configure script is free software; the Free Software Foundation
1140: gives unlimited permission to copy, distribute and modify it.
1141: _ACEOF
1142: exit 0
1143: fi
1144: exec 5>config.log
1145: cat >&5 <<_ACEOF
1146: This file contains any messages produced by compilers while
1147: running configure, to aid debugging if configure makes a mistake.
1148:
1149: It was created by $as_me, which was
1150: generated by GNU Autoconf 2.57. Invocation command line was
1151:
1152: $ $0 $@
1153:
1154: _ACEOF
1155: {
1156: cat <<_ASUNAME
1157: ## --------- ##
1158: ## Platform. ##
1159: ## --------- ##
1160:
1161: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166:
1167: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169:
1170: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177:
1178: _ASUNAME
1179:
1180: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181: for as_dir in $PATH
1182: do
1183: IFS=$as_save_IFS
1184: test -z "$as_dir" && as_dir=.
1185: echo "PATH: $as_dir"
1186: done
1187:
1188: } >&5
1189:
1190: cat >&5 <<_ACEOF
1191:
1192:
1193: ## ----------- ##
1194: ## Core tests. ##
1195: ## ----------- ##
1196:
1197: _ACEOF
1198:
1199:
1200: # Keep a trace of the command line.
1201: # Strip out --no-create and --no-recursion so they do not pile up.
1202: # Strip out --silent because we don't want to record it for future runs.
1203: # Also quote any args containing shell meta-characters.
1204: # Make two passes to allow for proper duplicate-argument suppression.
1205: ac_configure_args=
1206: ac_configure_args0=
1207: ac_configure_args1=
1208: ac_sep=
1209: ac_must_keep_next=false
1210: for ac_pass in 1 2
1211: do
1212: for ac_arg
1213: do
1214: case $ac_arg in
1215: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217: | -silent | --silent | --silen | --sile | --sil)
1218: continue ;;
1219: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221: esac
1222: case $ac_pass in
1223: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224: 2)
1225: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226: if test $ac_must_keep_next = true; then
1227: ac_must_keep_next=false # Got value, back to normal.
1228: else
1229: case $ac_arg in
1230: *=* | --config-cache | -C | -disable-* | --disable-* \
1231: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233: | -with-* | --with-* | -without-* | --without-* | --x)
1234: case "$ac_configure_args0 " in
1235: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236: esac
1237: ;;
1238: -* ) ac_must_keep_next=true ;;
1239: esac
1240: fi
1241: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242: # Get rid of the leading space.
1243: ac_sep=" "
1244: ;;
1245: esac
1246: done
1247: done
1248: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250:
1251: # When interrupted or exit'd, cleanup temporary files, and complete
1252: # config.log. We remove comments because anyway the quotes in there
1253: # would cause problems or look ugly.
1254: # WARNING: Be sure not to use single quotes in there, as some shells,
1255: # such as our DU 5.0 friend, will then `close' the trap.
1256: trap 'exit_status=$?
1257: # Save into config.log some information that might help in debugging.
1258: {
1259: echo
1260:
1261: cat <<\_ASBOX
1262: ## ---------------- ##
1263: ## Cache variables. ##
1264: ## ---------------- ##
1265: _ASBOX
1266: echo
1267: # The following way of writing the cache mishandles newlines in values,
1268: {
1269: (set) 2>&1 |
1270: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271: *ac_space=\ *)
1272: sed -n \
1273: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275: ;;
1276: *)
1277: sed -n \
1278: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279: ;;
1280: esac;
1281: }
1282: echo
1283:
1284: cat <<\_ASBOX
1285: ## ----------------- ##
1286: ## Output variables. ##
1287: ## ----------------- ##
1288: _ASBOX
1289: echo
1290: for ac_var in $ac_subst_vars
1291: do
1292: eval ac_val=$`echo $ac_var`
1293: echo "$ac_var='"'"'$ac_val'"'"'"
1294: done | sort
1295: echo
1296:
1297: if test -n "$ac_subst_files"; then
1298: cat <<\_ASBOX
1299: ## ------------- ##
1300: ## Output files. ##
1301: ## ------------- ##
1302: _ASBOX
1303: echo
1304: for ac_var in $ac_subst_files
1305: do
1306: eval ac_val=$`echo $ac_var`
1307: echo "$ac_var='"'"'$ac_val'"'"'"
1308: done | sort
1309: echo
1310: fi
1311:
1312: if test -s confdefs.h; then
1313: cat <<\_ASBOX
1314: ## ----------- ##
1315: ## confdefs.h. ##
1316: ## ----------- ##
1317: _ASBOX
1318: echo
1319: sed "/^$/d" confdefs.h | sort
1320: echo
1321: fi
1322: test "$ac_signal" != 0 &&
1323: echo "$as_me: caught signal $ac_signal"
1324: echo "$as_me: exit $exit_status"
1325: } >&5
1326: rm -f core core.* *.core &&
1327: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328: exit $exit_status
1329: ' 0
1330: for ac_signal in 1 2 13 15; do
1331: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332: done
1333: ac_signal=0
1334:
1335: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336: rm -rf conftest* confdefs.h
1337: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338: echo >confdefs.h
1339:
1340: # Predefined preprocessor variables.
1341:
1342: cat >>confdefs.h <<_ACEOF
1343: #define PACKAGE_NAME "$PACKAGE_NAME"
1344: _ACEOF
1345:
1346:
1347: cat >>confdefs.h <<_ACEOF
1348: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349: _ACEOF
1350:
1351:
1352: cat >>confdefs.h <<_ACEOF
1353: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1354: _ACEOF
1355:
1356:
1357: cat >>confdefs.h <<_ACEOF
1358: #define PACKAGE_STRING "$PACKAGE_STRING"
1359: _ACEOF
1360:
1361:
1362: cat >>confdefs.h <<_ACEOF
1363: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364: _ACEOF
1365:
1366:
1367: # Let the site file select an alternate cache file if it wants to.
1368: # Prefer explicitly selected file to automatically selected ones.
1369: if test -z "$CONFIG_SITE"; then
1370: if test "x$prefix" != xNONE; then
1371: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372: else
1373: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374: fi
1375: fi
1376: for ac_site_file in $CONFIG_SITE; do
1377: if test -r "$ac_site_file"; then
1378: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379: echo "$as_me: loading site script $ac_site_file" >&6;}
1380: sed 's/^/| /' "$ac_site_file" >&5
1381: . "$ac_site_file"
1382: fi
1383: done
1384:
1385: if test -r "$cache_file"; then
1386: # Some versions of bash will fail to source /dev/null (special
1387: # files actually), so we avoid doing that.
1388: if test -f "$cache_file"; then
1389: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390: echo "$as_me: loading cache $cache_file" >&6;}
1391: case $cache_file in
1392: [\\/]* | ?:[\\/]* ) . $cache_file;;
1393: *) . ./$cache_file;;
1394: esac
1395: fi
1396: else
1397: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398: echo "$as_me: creating cache $cache_file" >&6;}
1399: >$cache_file
1400: fi
1401:
1402: # Check that the precious variables saved in the cache have kept the same
1403: # value.
1404: ac_cache_corrupted=false
1405: for ac_var in `(set) 2>&1 |
1406: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408: eval ac_new_set=\$ac_env_${ac_var}_set
1409: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410: eval ac_new_val="\$ac_env_${ac_var}_value"
1411: case $ac_old_set,$ac_new_set in
1412: set,)
1413: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415: ac_cache_corrupted=: ;;
1416: ,set)
1417: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419: ac_cache_corrupted=: ;;
1420: ,);;
1421: *)
1422: if test "x$ac_old_val" != "x$ac_new_val"; then
1423: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426: echo "$as_me: former value: $ac_old_val" >&2;}
1427: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428: echo "$as_me: current value: $ac_new_val" >&2;}
1429: ac_cache_corrupted=:
1430: fi;;
1431: esac
1432: # Pass precious variables to config.status.
1433: if test "$ac_new_set" = set; then
1434: case $ac_new_val in
1435: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437: *) ac_arg=$ac_var=$ac_new_val ;;
1438: esac
1439: case " $ac_configure_args " in
1440: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442: esac
1443: fi
1444: done
1445: if $ac_cache_corrupted; then
1446: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450: { (exit 1); exit 1; }; }
1451: fi
1452:
1453: ac_ext=c
1454: ac_cpp='$CPP $CPPFLAGS'
1455: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458:
1459:
1460:
1461:
1462:
1463:
1464:
1465:
1466:
1467:
1468:
1469:
1470:
1471:
1472:
1473:
1474:
1475:
1476:
1477: ac_aux_dir=
1478: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1479: if test -f $ac_dir/install-sh; then
1480: ac_aux_dir=$ac_dir
1481: ac_install_sh="$ac_aux_dir/install-sh -c"
1482: break
1483: elif test -f $ac_dir/install.sh; then
1484: ac_aux_dir=$ac_dir
1485: ac_install_sh="$ac_aux_dir/install.sh -c"
1486: break
1487: elif test -f $ac_dir/shtool; then
1488: ac_aux_dir=$ac_dir
1489: ac_install_sh="$ac_aux_dir/shtool install -c"
1490: break
1491: fi
1492: done
1493: if test -z "$ac_aux_dir"; then
1494: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1495: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1496: { (exit 1); exit 1; }; }
1497: fi
1498: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1499: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1500: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1501:
1502: # Make sure we can run config.sub.
1503: $ac_config_sub sun4 >/dev/null 2>&1 ||
1504: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1505: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1506: { (exit 1); exit 1; }; }
1507:
1508: echo "$as_me:$LINENO: checking build system type" >&5
1509: echo $ECHO_N "checking build system type... $ECHO_C" >&6
1510: if test "${ac_cv_build+set}" = set; then
1511: echo $ECHO_N "(cached) $ECHO_C" >&6
1512: else
1513: ac_cv_build_alias=$build_alias
1514: test -z "$ac_cv_build_alias" &&
1515: ac_cv_build_alias=`$ac_config_guess`
1516: test -z "$ac_cv_build_alias" &&
1517: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1518: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1519: { (exit 1); exit 1; }; }
1520: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1521: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1522: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1523: { (exit 1); exit 1; }; }
1524:
1525: fi
1526: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1527: echo "${ECHO_T}$ac_cv_build" >&6
1528: build=$ac_cv_build
1529: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1532:
1533:
1534: echo "$as_me:$LINENO: checking host system type" >&5
1535: echo $ECHO_N "checking host system type... $ECHO_C" >&6
1536: if test "${ac_cv_host+set}" = set; then
1537: echo $ECHO_N "(cached) $ECHO_C" >&6
1538: else
1539: ac_cv_host_alias=$host_alias
1540: test -z "$ac_cv_host_alias" &&
1541: ac_cv_host_alias=$ac_cv_build_alias
1542: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1543: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1544: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1545: { (exit 1); exit 1; }; }
1546:
1547: fi
1548: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1549: echo "${ECHO_T}$ac_cv_host" >&6
1550: host=$ac_cv_host
1551: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1552: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1553: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1554:
1555:
1556: echo "$as_me:$LINENO: checking target system type" >&5
1557: echo $ECHO_N "checking target system type... $ECHO_C" >&6
1558: if test "${ac_cv_target+set}" = set; then
1559: echo $ECHO_N "(cached) $ECHO_C" >&6
1560: else
1561: ac_cv_target_alias=$target_alias
1562: test "x$ac_cv_target_alias" = "x" &&
1563: ac_cv_target_alias=$ac_cv_host_alias
1564: ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1565: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1566: echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1567: { (exit 1); exit 1; }; }
1568:
1569: fi
1570: echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1571: echo "${ECHO_T}$ac_cv_target" >&6
1572: target=$ac_cv_target
1573: target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574: target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575: target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576:
1577:
1578: # The aliases save the names the user supplied, while $host etc.
1579: # will get canonicalized.
1580: test -n "$target_alias" &&
1581: test "$program_prefix$program_suffix$program_transform_name" = \
1582: NONENONEs,x,x, &&
1583: program_prefix=${target_alias}-
1584: am__api_version="1.7"
1585: # Find a good install program. We prefer a C program (faster),
1586: # so one script is as good as another. But avoid the broken or
1587: # incompatible versions:
1588: # SysV /etc/install, /usr/sbin/install
1589: # SunOS /usr/etc/install
1590: # IRIX /sbin/install
1591: # AIX /bin/install
1592: # AmigaOS /C/install, which installs bootblocks on floppy discs
1593: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1594: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1595: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1596: # ./install, which can be erroneously created by make from ./install.sh.
1597: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1598: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1599: if test -z "$INSTALL"; then
1600: if test "${ac_cv_path_install+set}" = set; then
1601: echo $ECHO_N "(cached) $ECHO_C" >&6
1602: else
1603: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604: for as_dir in $PATH
1605: do
1606: IFS=$as_save_IFS
1607: test -z "$as_dir" && as_dir=.
1608: # Account for people who put trailing slashes in PATH elements.
1609: case $as_dir/ in
1610: ./ | .// | /cC/* | \
1611: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1612: /usr/ucb/* ) ;;
1613: *)
1614: # OSF1 and SCO ODT 3.0 have their own names for install.
1615: # Don't use installbsd from OSF since it installs stuff as root
1616: # by default.
1617: for ac_prog in ginstall scoinst install; do
1618: for ac_exec_ext in '' $ac_executable_extensions; do
1619: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1620: if test $ac_prog = install &&
1621: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1622: # AIX install. It has an incompatible calling convention.
1623: :
1624: elif test $ac_prog = install &&
1625: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1626: # program-specific install script used by HP pwplus--don't use.
1627: :
1628: else
1629: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1630: break 3
1631: fi
1632: fi
1633: done
1634: done
1635: ;;
1636: esac
1637: done
1638:
1639:
1640: fi
1641: if test "${ac_cv_path_install+set}" = set; then
1642: INSTALL=$ac_cv_path_install
1643: else
1644: # As a last resort, use the slow shell script. We don't cache a
1645: # path for INSTALL within a source directory, because that will
1646: # break other packages using the cache if that directory is
1647: # removed, or if the path is relative.
1648: INSTALL=$ac_install_sh
1649: fi
1650: fi
1651: echo "$as_me:$LINENO: result: $INSTALL" >&5
1652: echo "${ECHO_T}$INSTALL" >&6
1653:
1654: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1655: # It thinks the first close brace ends the variable substitution.
1656: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1657:
1658: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1659:
1660: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1661:
1662: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1663: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1664: # Just in case
1665: sleep 1
1666: echo timestamp > conftest.file
1667: # Do `set' in a subshell so we don't clobber the current shell's
1668: # arguments. Must try -L first in case configure is actually a
1669: # symlink; some systems play weird games with the mod time of symlinks
1670: # (eg FreeBSD returns the mod time of the symlink's containing
1671: # directory).
1672: if (
1673: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1674: if test "$*" = "X"; then
1675: # -L didn't work.
1676: set X `ls -t $srcdir/configure conftest.file`
1677: fi
1678: rm -f conftest.file
1679: if test "$*" != "X $srcdir/configure conftest.file" \
1680: && test "$*" != "X conftest.file $srcdir/configure"; then
1681:
1682: # If neither matched, then we have a broken ls. This can happen
1683: # if, for instance, CONFIG_SHELL is bash and it inherits a
1684: # broken ls alias from the environment. This has actually
1685: # happened. Such a system could not be considered "sane".
1686: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1687: alias in your environment" >&5
1688: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1689: alias in your environment" >&2;}
1690: { (exit 1); exit 1; }; }
1691: fi
1692:
1693: test "$2" = conftest.file
1694: )
1695: then
1696: # Ok.
1697: :
1698: else
1699: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1700: Check your system clock" >&5
1701: echo "$as_me: error: newly created file is older than distributed files!
1702: Check your system clock" >&2;}
1703: { (exit 1); exit 1; }; }
1704: fi
1705: echo "$as_me:$LINENO: result: yes" >&5
1706: echo "${ECHO_T}yes" >&6
1707: test "$program_prefix" != NONE &&
1708: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1709: # Use a double $ so make ignores it.
1710: test "$program_suffix" != NONE &&
1711: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1712: # Double any \ or $. echo might interpret backslashes.
1713: # By default was `s,x,x', remove it if useless.
1714: cat <<\_ACEOF >conftest.sed
1715: s/[\\$]/&&/g;s/;s,x,x,$//
1716: _ACEOF
1717: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1718: rm conftest.sed
1719:
1720:
1721: # expand $ac_aux_dir to an absolute path
1722: am_aux_dir=`cd $ac_aux_dir && pwd`
1723:
1724: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1725: # Use eval to expand $SHELL
1726: if eval "$MISSING --run true"; then
1727: am_missing_run="$MISSING --run "
1728: else
1729: am_missing_run=
1730: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1731: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1732: fi
1733:
1734: for ac_prog in gawk mawk nawk awk
1735: do
1736: # Extract the first word of "$ac_prog", so it can be a program name with args.
1737: set dummy $ac_prog; ac_word=$2
1738: echo "$as_me:$LINENO: checking for $ac_word" >&5
1739: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740: if test "${ac_cv_prog_AWK+set}" = set; then
1741: echo $ECHO_N "(cached) $ECHO_C" >&6
1742: else
1743: if test -n "$AWK"; then
1744: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1745: else
1746: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747: for as_dir in $PATH
1748: do
1749: IFS=$as_save_IFS
1750: test -z "$as_dir" && as_dir=.
1751: for ac_exec_ext in '' $ac_executable_extensions; do
1752: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1753: ac_cv_prog_AWK="$ac_prog"
1754: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755: break 2
1756: fi
1757: done
1758: done
1759:
1760: fi
1761: fi
1762: AWK=$ac_cv_prog_AWK
1763: if test -n "$AWK"; then
1764: echo "$as_me:$LINENO: result: $AWK" >&5
1765: echo "${ECHO_T}$AWK" >&6
1766: else
1767: echo "$as_me:$LINENO: result: no" >&5
1768: echo "${ECHO_T}no" >&6
1769: fi
1770:
1771: test -n "$AWK" && break
1772: done
1773:
1774: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1775: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1776: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1777: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1778: echo $ECHO_N "(cached) $ECHO_C" >&6
1779: else
1780: cat >conftest.make <<\_ACEOF
1781: all:
1782: @echo 'ac_maketemp="$(MAKE)"'
1783: _ACEOF
1784: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1785: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1786: if test -n "$ac_maketemp"; then
1787: eval ac_cv_prog_make_${ac_make}_set=yes
1788: else
1789: eval ac_cv_prog_make_${ac_make}_set=no
1790: fi
1791: rm -f conftest.make
1792: fi
1793: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1794: echo "$as_me:$LINENO: result: yes" >&5
1795: echo "${ECHO_T}yes" >&6
1796: SET_MAKE=
1797: else
1798: echo "$as_me:$LINENO: result: no" >&5
1799: echo "${ECHO_T}no" >&6
1800: SET_MAKE="MAKE=${MAKE-make}"
1801: fi
1802:
1803: # test to see if srcdir already configured
1804: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1805: test -f $srcdir/config.status; then
1806: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1807: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1808: { (exit 1); exit 1; }; }
1809: fi
1810:
1811: # test whether we have cygpath
1812: if test -z "$CYGPATH_W"; then
1813: if (cygpath --version) >/dev/null 2>/dev/null; then
1814: CYGPATH_W='cygpath -w'
1815: else
1816: CYGPATH_W=echo
1817: fi
1818: fi
1819:
1820:
1821: # Define the identity of the package.
1822: PACKAGE=tme
1.1.1.3 ! root 1823: VERSION=0.4
1.1 root 1824:
1825:
1826: cat >>confdefs.h <<_ACEOF
1827: #define PACKAGE "$PACKAGE"
1828: _ACEOF
1829:
1830:
1831: cat >>confdefs.h <<_ACEOF
1832: #define VERSION "$VERSION"
1833: _ACEOF
1834:
1835: # Some tools Automake needs.
1836:
1837: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1838:
1839:
1840: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1841:
1842:
1843: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1844:
1845:
1846: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1847:
1848:
1849: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1850:
1851:
1852: AMTAR=${AMTAR-"${am_missing_run}tar"}
1853:
1854: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1855:
1856: # Installed binaries are usually stripped using `strip' when the user
1857: # run `make install-strip'. However `strip' might not be the right
1858: # tool to use in cross-compilation environments, therefore Automake
1859: # will honor the `STRIP' environment variable to overrule this program.
1860: if test "$cross_compiling" != no; then
1861: if test -n "$ac_tool_prefix"; then
1862: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1863: set dummy ${ac_tool_prefix}strip; ac_word=$2
1864: echo "$as_me:$LINENO: checking for $ac_word" >&5
1865: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866: if test "${ac_cv_prog_STRIP+set}" = set; then
1867: echo $ECHO_N "(cached) $ECHO_C" >&6
1868: else
1869: if test -n "$STRIP"; then
1870: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1871: else
1872: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873: for as_dir in $PATH
1874: do
1875: IFS=$as_save_IFS
1876: test -z "$as_dir" && as_dir=.
1877: for ac_exec_ext in '' $ac_executable_extensions; do
1878: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1880: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881: break 2
1882: fi
1883: done
1884: done
1885:
1886: fi
1887: fi
1888: STRIP=$ac_cv_prog_STRIP
1889: if test -n "$STRIP"; then
1890: echo "$as_me:$LINENO: result: $STRIP" >&5
1891: echo "${ECHO_T}$STRIP" >&6
1892: else
1893: echo "$as_me:$LINENO: result: no" >&5
1894: echo "${ECHO_T}no" >&6
1895: fi
1896:
1897: fi
1898: if test -z "$ac_cv_prog_STRIP"; then
1899: ac_ct_STRIP=$STRIP
1900: # Extract the first word of "strip", so it can be a program name with args.
1901: set dummy strip; ac_word=$2
1902: echo "$as_me:$LINENO: checking for $ac_word" >&5
1903: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1905: echo $ECHO_N "(cached) $ECHO_C" >&6
1906: else
1907: if test -n "$ac_ct_STRIP"; then
1908: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1909: else
1910: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911: for as_dir in $PATH
1912: do
1913: IFS=$as_save_IFS
1914: test -z "$as_dir" && as_dir=.
1915: for ac_exec_ext in '' $ac_executable_extensions; do
1916: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917: ac_cv_prog_ac_ct_STRIP="strip"
1918: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919: break 2
1920: fi
1921: done
1922: done
1923:
1924: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1925: fi
1926: fi
1927: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1928: if test -n "$ac_ct_STRIP"; then
1929: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1930: echo "${ECHO_T}$ac_ct_STRIP" >&6
1931: else
1932: echo "$as_me:$LINENO: result: no" >&5
1933: echo "${ECHO_T}no" >&6
1934: fi
1935:
1936: STRIP=$ac_ct_STRIP
1937: else
1938: STRIP="$ac_cv_prog_STRIP"
1939: fi
1940:
1941: fi
1942: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1943:
1944: # We need awk for the "check" target. The system "awk" is bad on
1945: # some platforms.
1946:
1947:
1948:
1949:
1950: ac_config_headers="$ac_config_headers config.h"
1951:
1952:
1953: ac_ext=c
1954: ac_cpp='$CPP $CPPFLAGS'
1955: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1956: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1957: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1958: if test -n "$ac_tool_prefix"; then
1959: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1960: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1961: echo "$as_me:$LINENO: checking for $ac_word" >&5
1962: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1963: if test "${ac_cv_prog_CC+set}" = set; then
1964: echo $ECHO_N "(cached) $ECHO_C" >&6
1965: else
1966: if test -n "$CC"; then
1967: ac_cv_prog_CC="$CC" # Let the user override the test.
1968: else
1969: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970: for as_dir in $PATH
1971: do
1972: IFS=$as_save_IFS
1973: test -z "$as_dir" && as_dir=.
1974: for ac_exec_ext in '' $ac_executable_extensions; do
1975: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1976: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1977: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978: break 2
1979: fi
1980: done
1981: done
1982:
1983: fi
1984: fi
1985: CC=$ac_cv_prog_CC
1986: if test -n "$CC"; then
1987: echo "$as_me:$LINENO: result: $CC" >&5
1988: echo "${ECHO_T}$CC" >&6
1989: else
1990: echo "$as_me:$LINENO: result: no" >&5
1991: echo "${ECHO_T}no" >&6
1992: fi
1993:
1994: fi
1995: if test -z "$ac_cv_prog_CC"; then
1996: ac_ct_CC=$CC
1997: # Extract the first word of "gcc", so it can be a program name with args.
1998: set dummy gcc; ac_word=$2
1999: echo "$as_me:$LINENO: checking for $ac_word" >&5
2000: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2001: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2002: echo $ECHO_N "(cached) $ECHO_C" >&6
2003: else
2004: if test -n "$ac_ct_CC"; then
2005: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2006: else
2007: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008: for as_dir in $PATH
2009: do
2010: IFS=$as_save_IFS
2011: test -z "$as_dir" && as_dir=.
2012: for ac_exec_ext in '' $ac_executable_extensions; do
2013: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014: ac_cv_prog_ac_ct_CC="gcc"
2015: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016: break 2
2017: fi
2018: done
2019: done
2020:
2021: fi
2022: fi
2023: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2024: if test -n "$ac_ct_CC"; then
2025: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2026: echo "${ECHO_T}$ac_ct_CC" >&6
2027: else
2028: echo "$as_me:$LINENO: result: no" >&5
2029: echo "${ECHO_T}no" >&6
2030: fi
2031:
2032: CC=$ac_ct_CC
2033: else
2034: CC="$ac_cv_prog_CC"
2035: fi
2036:
2037: if test -z "$CC"; then
2038: if test -n "$ac_tool_prefix"; then
2039: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2040: set dummy ${ac_tool_prefix}cc; ac_word=$2
2041: echo "$as_me:$LINENO: checking for $ac_word" >&5
2042: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043: if test "${ac_cv_prog_CC+set}" = set; then
2044: echo $ECHO_N "(cached) $ECHO_C" >&6
2045: else
2046: if test -n "$CC"; then
2047: ac_cv_prog_CC="$CC" # Let the user override the test.
2048: else
2049: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050: for as_dir in $PATH
2051: do
2052: IFS=$as_save_IFS
2053: test -z "$as_dir" && as_dir=.
2054: for ac_exec_ext in '' $ac_executable_extensions; do
2055: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056: ac_cv_prog_CC="${ac_tool_prefix}cc"
2057: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058: break 2
2059: fi
2060: done
2061: done
2062:
2063: fi
2064: fi
2065: CC=$ac_cv_prog_CC
2066: if test -n "$CC"; then
2067: echo "$as_me:$LINENO: result: $CC" >&5
2068: echo "${ECHO_T}$CC" >&6
2069: else
2070: echo "$as_me:$LINENO: result: no" >&5
2071: echo "${ECHO_T}no" >&6
2072: fi
2073:
2074: fi
2075: if test -z "$ac_cv_prog_CC"; then
2076: ac_ct_CC=$CC
2077: # Extract the first word of "cc", so it can be a program name with args.
2078: set dummy cc; ac_word=$2
2079: echo "$as_me:$LINENO: checking for $ac_word" >&5
2080: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2082: echo $ECHO_N "(cached) $ECHO_C" >&6
2083: else
2084: if test -n "$ac_ct_CC"; then
2085: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2086: else
2087: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088: for as_dir in $PATH
2089: do
2090: IFS=$as_save_IFS
2091: test -z "$as_dir" && as_dir=.
2092: for ac_exec_ext in '' $ac_executable_extensions; do
2093: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094: ac_cv_prog_ac_ct_CC="cc"
2095: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096: break 2
2097: fi
2098: done
2099: done
2100:
2101: fi
2102: fi
2103: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104: if test -n "$ac_ct_CC"; then
2105: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106: echo "${ECHO_T}$ac_ct_CC" >&6
2107: else
2108: echo "$as_me:$LINENO: result: no" >&5
2109: echo "${ECHO_T}no" >&6
2110: fi
2111:
2112: CC=$ac_ct_CC
2113: else
2114: CC="$ac_cv_prog_CC"
2115: fi
2116:
2117: fi
2118: if test -z "$CC"; then
2119: # Extract the first word of "cc", so it can be a program name with args.
2120: set dummy cc; ac_word=$2
2121: echo "$as_me:$LINENO: checking for $ac_word" >&5
2122: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2123: if test "${ac_cv_prog_CC+set}" = set; then
2124: echo $ECHO_N "(cached) $ECHO_C" >&6
2125: else
2126: if test -n "$CC"; then
2127: ac_cv_prog_CC="$CC" # Let the user override the test.
2128: else
2129: ac_prog_rejected=no
2130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131: for as_dir in $PATH
2132: do
2133: IFS=$as_save_IFS
2134: test -z "$as_dir" && as_dir=.
2135: for ac_exec_ext in '' $ac_executable_extensions; do
2136: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2137: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2138: ac_prog_rejected=yes
2139: continue
2140: fi
2141: ac_cv_prog_CC="cc"
2142: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143: break 2
2144: fi
2145: done
2146: done
2147:
2148: if test $ac_prog_rejected = yes; then
2149: # We found a bogon in the path, so make sure we never use it.
2150: set dummy $ac_cv_prog_CC
2151: shift
2152: if test $# != 0; then
2153: # We chose a different compiler from the bogus one.
2154: # However, it has the same basename, so the bogon will be chosen
2155: # first if we set CC to just the basename; use the full file name.
2156: shift
2157: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2158: fi
2159: fi
2160: fi
2161: fi
2162: CC=$ac_cv_prog_CC
2163: if test -n "$CC"; then
2164: echo "$as_me:$LINENO: result: $CC" >&5
2165: echo "${ECHO_T}$CC" >&6
2166: else
2167: echo "$as_me:$LINENO: result: no" >&5
2168: echo "${ECHO_T}no" >&6
2169: fi
2170:
2171: fi
2172: if test -z "$CC"; then
2173: if test -n "$ac_tool_prefix"; then
2174: for ac_prog in cl
2175: do
2176: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2177: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2178: echo "$as_me:$LINENO: checking for $ac_word" >&5
2179: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180: if test "${ac_cv_prog_CC+set}" = set; then
2181: echo $ECHO_N "(cached) $ECHO_C" >&6
2182: else
2183: if test -n "$CC"; then
2184: ac_cv_prog_CC="$CC" # Let the user override the test.
2185: else
2186: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187: for as_dir in $PATH
2188: do
2189: IFS=$as_save_IFS
2190: test -z "$as_dir" && as_dir=.
2191: for ac_exec_ext in '' $ac_executable_extensions; do
2192: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2194: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195: break 2
2196: fi
2197: done
2198: done
2199:
2200: fi
2201: fi
2202: CC=$ac_cv_prog_CC
2203: if test -n "$CC"; then
2204: echo "$as_me:$LINENO: result: $CC" >&5
2205: echo "${ECHO_T}$CC" >&6
2206: else
2207: echo "$as_me:$LINENO: result: no" >&5
2208: echo "${ECHO_T}no" >&6
2209: fi
2210:
2211: test -n "$CC" && break
2212: done
2213: fi
2214: if test -z "$CC"; then
2215: ac_ct_CC=$CC
2216: for ac_prog in cl
2217: do
2218: # Extract the first word of "$ac_prog", so it can be a program name with args.
2219: set dummy $ac_prog; ac_word=$2
2220: echo "$as_me:$LINENO: checking for $ac_word" >&5
2221: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2223: echo $ECHO_N "(cached) $ECHO_C" >&6
2224: else
2225: if test -n "$ac_ct_CC"; then
2226: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2227: else
2228: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229: for as_dir in $PATH
2230: do
2231: IFS=$as_save_IFS
2232: test -z "$as_dir" && as_dir=.
2233: for ac_exec_ext in '' $ac_executable_extensions; do
2234: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2235: ac_cv_prog_ac_ct_CC="$ac_prog"
2236: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237: break 2
2238: fi
2239: done
2240: done
2241:
2242: fi
2243: fi
2244: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2245: if test -n "$ac_ct_CC"; then
2246: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2247: echo "${ECHO_T}$ac_ct_CC" >&6
2248: else
2249: echo "$as_me:$LINENO: result: no" >&5
2250: echo "${ECHO_T}no" >&6
2251: fi
2252:
2253: test -n "$ac_ct_CC" && break
2254: done
2255:
2256: CC=$ac_ct_CC
2257: fi
2258:
2259: fi
2260:
2261:
2262: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2263: See \`config.log' for more details." >&5
2264: echo "$as_me: error: no acceptable C compiler found in \$PATH
2265: See \`config.log' for more details." >&2;}
2266: { (exit 1); exit 1; }; }
2267:
2268: # Provide some information about the compiler.
2269: echo "$as_me:$LINENO:" \
2270: "checking for C compiler version" >&5
2271: ac_compiler=`set X $ac_compile; echo $2`
2272: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2273: (eval $ac_compiler --version </dev/null >&5) 2>&5
2274: ac_status=$?
2275: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276: (exit $ac_status); }
2277: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2278: (eval $ac_compiler -v </dev/null >&5) 2>&5
2279: ac_status=$?
2280: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281: (exit $ac_status); }
2282: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2283: (eval $ac_compiler -V </dev/null >&5) 2>&5
2284: ac_status=$?
2285: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286: (exit $ac_status); }
2287:
2288: cat >conftest.$ac_ext <<_ACEOF
2289: #line $LINENO "configure"
2290: /* confdefs.h. */
2291: _ACEOF
2292: cat confdefs.h >>conftest.$ac_ext
2293: cat >>conftest.$ac_ext <<_ACEOF
2294: /* end confdefs.h. */
2295:
2296: int
2297: main ()
2298: {
2299:
2300: ;
2301: return 0;
2302: }
2303: _ACEOF
2304: ac_clean_files_save=$ac_clean_files
2305: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2306: # Try to create an executable without -o first, disregard a.out.
2307: # It will help us diagnose broken compilers, and finding out an intuition
2308: # of exeext.
2309: echo "$as_me:$LINENO: checking for C compiler default output" >&5
2310: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2311: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2312: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2313: (eval $ac_link_default) 2>&5
2314: ac_status=$?
2315: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316: (exit $ac_status); }; then
2317: # Find the output, starting from the most likely. This scheme is
2318: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2319: # resort.
2320:
2321: # Be careful to initialize this variable, since it used to be cached.
2322: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2323: ac_cv_exeext=
2324: # b.out is created by i960 compilers.
2325: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2326: do
2327: test -f "$ac_file" || continue
2328: case $ac_file in
2329: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2330: ;;
2331: conftest.$ac_ext )
2332: # This is the source file.
2333: ;;
2334: [ab].out )
2335: # We found the default executable, but exeext='' is most
2336: # certainly right.
2337: break;;
2338: *.* )
2339: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2340: # FIXME: I believe we export ac_cv_exeext for Libtool,
2341: # but it would be cool to find out if it's true. Does anybody
2342: # maintain Libtool? --akim.
2343: export ac_cv_exeext
2344: break;;
2345: * )
2346: break;;
2347: esac
2348: done
2349: else
2350: echo "$as_me: failed program was:" >&5
2351: sed 's/^/| /' conftest.$ac_ext >&5
2352:
2353: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2354: See \`config.log' for more details." >&5
2355: echo "$as_me: error: C compiler cannot create executables
2356: See \`config.log' for more details." >&2;}
2357: { (exit 77); exit 77; }; }
2358: fi
2359:
2360: ac_exeext=$ac_cv_exeext
2361: echo "$as_me:$LINENO: result: $ac_file" >&5
2362: echo "${ECHO_T}$ac_file" >&6
2363:
2364: # Check the compiler produces executables we can run. If not, either
2365: # the compiler is broken, or we cross compile.
2366: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2367: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2368: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2369: # If not cross compiling, check that we can run a simple program.
2370: if test "$cross_compiling" != yes; then
2371: if { ac_try='./$ac_file'
2372: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373: (eval $ac_try) 2>&5
2374: ac_status=$?
2375: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376: (exit $ac_status); }; }; then
2377: cross_compiling=no
2378: else
2379: if test "$cross_compiling" = maybe; then
2380: cross_compiling=yes
2381: else
2382: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2383: If you meant to cross compile, use \`--host'.
2384: See \`config.log' for more details." >&5
2385: echo "$as_me: error: cannot run C compiled programs.
2386: If you meant to cross compile, use \`--host'.
2387: See \`config.log' for more details." >&2;}
2388: { (exit 1); exit 1; }; }
2389: fi
2390: fi
2391: fi
2392: echo "$as_me:$LINENO: result: yes" >&5
2393: echo "${ECHO_T}yes" >&6
2394:
2395: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2396: ac_clean_files=$ac_clean_files_save
2397: # Check the compiler produces executables we can run. If not, either
2398: # the compiler is broken, or we cross compile.
2399: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2400: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2401: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2402: echo "${ECHO_T}$cross_compiling" >&6
2403:
2404: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2405: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2406: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2407: (eval $ac_link) 2>&5
2408: ac_status=$?
2409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410: (exit $ac_status); }; then
2411: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2412: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2413: # work properly (i.e., refer to `conftest.exe'), while it won't with
2414: # `rm'.
2415: for ac_file in conftest.exe conftest conftest.*; do
2416: test -f "$ac_file" || continue
2417: case $ac_file in
2418: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2419: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2420: export ac_cv_exeext
2421: break;;
2422: * ) break;;
2423: esac
2424: done
2425: else
2426: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2427: See \`config.log' for more details." >&5
2428: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2429: See \`config.log' for more details." >&2;}
2430: { (exit 1); exit 1; }; }
2431: fi
2432:
2433: rm -f conftest$ac_cv_exeext
2434: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2435: echo "${ECHO_T}$ac_cv_exeext" >&6
2436:
2437: rm -f conftest.$ac_ext
2438: EXEEXT=$ac_cv_exeext
2439: ac_exeext=$EXEEXT
2440: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2441: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2442: if test "${ac_cv_objext+set}" = set; then
2443: echo $ECHO_N "(cached) $ECHO_C" >&6
2444: else
2445: cat >conftest.$ac_ext <<_ACEOF
2446: #line $LINENO "configure"
2447: /* confdefs.h. */
2448: _ACEOF
2449: cat confdefs.h >>conftest.$ac_ext
2450: cat >>conftest.$ac_ext <<_ACEOF
2451: /* end confdefs.h. */
2452:
2453: int
2454: main ()
2455: {
2456:
2457: ;
2458: return 0;
2459: }
2460: _ACEOF
2461: rm -f conftest.o conftest.obj
2462: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2463: (eval $ac_compile) 2>&5
2464: ac_status=$?
2465: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466: (exit $ac_status); }; then
2467: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2468: case $ac_file in
2469: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2470: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2471: break;;
2472: esac
2473: done
2474: else
2475: echo "$as_me: failed program was:" >&5
2476: sed 's/^/| /' conftest.$ac_ext >&5
2477:
2478: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2479: See \`config.log' for more details." >&5
2480: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2481: See \`config.log' for more details." >&2;}
2482: { (exit 1); exit 1; }; }
2483: fi
2484:
2485: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2486: fi
2487: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2488: echo "${ECHO_T}$ac_cv_objext" >&6
2489: OBJEXT=$ac_cv_objext
2490: ac_objext=$OBJEXT
2491: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2492: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2493: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2494: echo $ECHO_N "(cached) $ECHO_C" >&6
2495: else
2496: cat >conftest.$ac_ext <<_ACEOF
2497: #line $LINENO "configure"
2498: /* confdefs.h. */
2499: _ACEOF
2500: cat confdefs.h >>conftest.$ac_ext
2501: cat >>conftest.$ac_ext <<_ACEOF
2502: /* end confdefs.h. */
2503:
2504: int
2505: main ()
2506: {
2507: #ifndef __GNUC__
2508: choke me
2509: #endif
2510:
2511: ;
2512: return 0;
2513: }
2514: _ACEOF
2515: rm -f conftest.$ac_objext
2516: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2517: (eval $ac_compile) 2>&5
2518: ac_status=$?
2519: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520: (exit $ac_status); } &&
2521: { ac_try='test -s conftest.$ac_objext'
2522: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523: (eval $ac_try) 2>&5
2524: ac_status=$?
2525: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526: (exit $ac_status); }; }; then
2527: ac_compiler_gnu=yes
2528: else
2529: echo "$as_me: failed program was:" >&5
2530: sed 's/^/| /' conftest.$ac_ext >&5
2531:
2532: ac_compiler_gnu=no
2533: fi
2534: rm -f conftest.$ac_objext conftest.$ac_ext
2535: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2536:
2537: fi
2538: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2539: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2540: GCC=`test $ac_compiler_gnu = yes && echo yes`
2541: ac_test_CFLAGS=${CFLAGS+set}
2542: ac_save_CFLAGS=$CFLAGS
2543: CFLAGS="-g"
2544: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2545: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2546: if test "${ac_cv_prog_cc_g+set}" = set; then
2547: echo $ECHO_N "(cached) $ECHO_C" >&6
2548: else
2549: cat >conftest.$ac_ext <<_ACEOF
2550: #line $LINENO "configure"
2551: /* confdefs.h. */
2552: _ACEOF
2553: cat confdefs.h >>conftest.$ac_ext
2554: cat >>conftest.$ac_ext <<_ACEOF
2555: /* end confdefs.h. */
2556:
2557: int
2558: main ()
2559: {
2560:
2561: ;
2562: return 0;
2563: }
2564: _ACEOF
2565: rm -f conftest.$ac_objext
2566: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567: (eval $ac_compile) 2>&5
2568: ac_status=$?
2569: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570: (exit $ac_status); } &&
2571: { ac_try='test -s conftest.$ac_objext'
2572: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573: (eval $ac_try) 2>&5
2574: ac_status=$?
2575: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576: (exit $ac_status); }; }; then
2577: ac_cv_prog_cc_g=yes
2578: else
2579: echo "$as_me: failed program was:" >&5
2580: sed 's/^/| /' conftest.$ac_ext >&5
2581:
2582: ac_cv_prog_cc_g=no
2583: fi
2584: rm -f conftest.$ac_objext conftest.$ac_ext
2585: fi
2586: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2587: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2588: if test "$ac_test_CFLAGS" = set; then
2589: CFLAGS=$ac_save_CFLAGS
2590: elif test $ac_cv_prog_cc_g = yes; then
2591: if test "$GCC" = yes; then
2592: CFLAGS="-g -O2"
2593: else
2594: CFLAGS="-g"
2595: fi
2596: else
2597: if test "$GCC" = yes; then
2598: CFLAGS="-O2"
2599: else
2600: CFLAGS=
2601: fi
2602: fi
2603: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2604: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2605: if test "${ac_cv_prog_cc_stdc+set}" = set; then
2606: echo $ECHO_N "(cached) $ECHO_C" >&6
2607: else
2608: ac_cv_prog_cc_stdc=no
2609: ac_save_CC=$CC
2610: cat >conftest.$ac_ext <<_ACEOF
2611: #line $LINENO "configure"
2612: /* confdefs.h. */
2613: _ACEOF
2614: cat confdefs.h >>conftest.$ac_ext
2615: cat >>conftest.$ac_ext <<_ACEOF
2616: /* end confdefs.h. */
2617: #include <stdarg.h>
2618: #include <stdio.h>
2619: #include <sys/types.h>
2620: #include <sys/stat.h>
2621: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2622: struct buf { int x; };
2623: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2624: static char *e (p, i)
2625: char **p;
2626: int i;
2627: {
2628: return p[i];
2629: }
2630: static char *f (char * (*g) (char **, int), char **p, ...)
2631: {
2632: char *s;
2633: va_list v;
2634: va_start (v,p);
2635: s = g (p, va_arg (v,int));
2636: va_end (v);
2637: return s;
2638: }
2639: int test (int i, double x);
2640: struct s1 {int (*f) (int a);};
2641: struct s2 {int (*f) (double a);};
2642: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2643: int argc;
2644: char **argv;
2645: int
2646: main ()
2647: {
2648: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2649: ;
2650: return 0;
2651: }
2652: _ACEOF
2653: # Don't try gcc -ansi; that turns off useful extensions and
2654: # breaks some systems' header files.
2655: # AIX -qlanglvl=ansi
2656: # Ultrix and OSF/1 -std1
2657: # HP-UX 10.20 and later -Ae
2658: # HP-UX older versions -Aa -D_HPUX_SOURCE
2659: # SVR4 -Xc -D__EXTENSIONS__
2660: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2661: do
2662: CC="$ac_save_CC $ac_arg"
2663: rm -f conftest.$ac_objext
2664: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665: (eval $ac_compile) 2>&5
2666: ac_status=$?
2667: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668: (exit $ac_status); } &&
2669: { ac_try='test -s conftest.$ac_objext'
2670: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671: (eval $ac_try) 2>&5
2672: ac_status=$?
2673: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674: (exit $ac_status); }; }; then
2675: ac_cv_prog_cc_stdc=$ac_arg
2676: break
2677: else
2678: echo "$as_me: failed program was:" >&5
2679: sed 's/^/| /' conftest.$ac_ext >&5
2680:
2681: fi
2682: rm -f conftest.$ac_objext
2683: done
2684: rm -f conftest.$ac_ext conftest.$ac_objext
2685: CC=$ac_save_CC
2686:
2687: fi
2688:
2689: case "x$ac_cv_prog_cc_stdc" in
2690: x|xno)
2691: echo "$as_me:$LINENO: result: none needed" >&5
2692: echo "${ECHO_T}none needed" >&6 ;;
2693: *)
2694: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2695: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2696: CC="$CC $ac_cv_prog_cc_stdc" ;;
2697: esac
2698:
2699: # Some people use a C++ compiler to compile C. Since we use `exit',
2700: # in C++ we need to declare it. In case someone uses the same compiler
2701: # for both compiling C and C++ we need to have the C++ compiler decide
2702: # the declaration of exit, since it's the most demanding environment.
2703: cat >conftest.$ac_ext <<_ACEOF
2704: #ifndef __cplusplus
2705: choke me
2706: #endif
2707: _ACEOF
2708: rm -f conftest.$ac_objext
2709: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710: (eval $ac_compile) 2>&5
2711: ac_status=$?
2712: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713: (exit $ac_status); } &&
2714: { ac_try='test -s conftest.$ac_objext'
2715: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716: (eval $ac_try) 2>&5
2717: ac_status=$?
2718: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719: (exit $ac_status); }; }; then
2720: for ac_declaration in \
2721: ''\
2722: '#include <stdlib.h>' \
2723: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2724: 'extern "C" void std::exit (int); using std::exit;' \
2725: 'extern "C" void exit (int) throw ();' \
2726: 'extern "C" void exit (int);' \
2727: 'void exit (int);'
2728: do
2729: cat >conftest.$ac_ext <<_ACEOF
2730: #line $LINENO "configure"
2731: /* confdefs.h. */
2732: _ACEOF
2733: cat confdefs.h >>conftest.$ac_ext
2734: cat >>conftest.$ac_ext <<_ACEOF
2735: /* end confdefs.h. */
2736: #include <stdlib.h>
2737: $ac_declaration
2738: int
2739: main ()
2740: {
2741: exit (42);
2742: ;
2743: return 0;
2744: }
2745: _ACEOF
2746: rm -f conftest.$ac_objext
2747: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2748: (eval $ac_compile) 2>&5
2749: ac_status=$?
2750: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751: (exit $ac_status); } &&
2752: { ac_try='test -s conftest.$ac_objext'
2753: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754: (eval $ac_try) 2>&5
2755: ac_status=$?
2756: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757: (exit $ac_status); }; }; then
2758: :
2759: else
2760: echo "$as_me: failed program was:" >&5
2761: sed 's/^/| /' conftest.$ac_ext >&5
2762:
2763: continue
2764: fi
2765: rm -f conftest.$ac_objext conftest.$ac_ext
2766: cat >conftest.$ac_ext <<_ACEOF
2767: #line $LINENO "configure"
2768: /* confdefs.h. */
2769: _ACEOF
2770: cat confdefs.h >>conftest.$ac_ext
2771: cat >>conftest.$ac_ext <<_ACEOF
2772: /* end confdefs.h. */
2773: $ac_declaration
2774: int
2775: main ()
2776: {
2777: exit (42);
2778: ;
2779: return 0;
2780: }
2781: _ACEOF
2782: rm -f conftest.$ac_objext
2783: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784: (eval $ac_compile) 2>&5
2785: ac_status=$?
2786: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787: (exit $ac_status); } &&
2788: { ac_try='test -s conftest.$ac_objext'
2789: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790: (eval $ac_try) 2>&5
2791: ac_status=$?
2792: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793: (exit $ac_status); }; }; then
2794: break
2795: else
2796: echo "$as_me: failed program was:" >&5
2797: sed 's/^/| /' conftest.$ac_ext >&5
2798:
2799: fi
2800: rm -f conftest.$ac_objext conftest.$ac_ext
2801: done
2802: rm -f conftest*
2803: if test -n "$ac_declaration"; then
2804: echo '#ifdef __cplusplus' >>confdefs.h
2805: echo $ac_declaration >>confdefs.h
2806: echo '#endif' >>confdefs.h
2807: fi
2808:
2809: else
2810: echo "$as_me: failed program was:" >&5
2811: sed 's/^/| /' conftest.$ac_ext >&5
2812:
2813: fi
2814: rm -f conftest.$ac_objext conftest.$ac_ext
2815: ac_ext=c
2816: ac_cpp='$CPP $CPPFLAGS'
2817: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2820: rm -f .deps 2>/dev/null
2821: mkdir .deps 2>/dev/null
2822: if test -d .deps; then
2823: DEPDIR=.deps
2824: else
2825: # MS-DOS does not allow filenames that begin with a dot.
2826: DEPDIR=_deps
2827: fi
2828: rmdir .deps 2>/dev/null
2829:
2830:
2831: ac_config_commands="$ac_config_commands depfiles"
2832:
2833:
2834: am_make=${MAKE-make}
2835: cat > confinc << 'END'
2836: doit:
2837: @echo done
2838: END
2839: # If we don't find an include directive, just comment out the code.
2840: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2841: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2842: am__include="#"
2843: am__quote=
2844: _am_result=none
2845: # First try GNU make style include.
2846: echo "include confinc" > confmf
2847: # We grep out `Entering directory' and `Leaving directory'
2848: # messages which can occur if `w' ends up in MAKEFLAGS.
2849: # In particular we don't look at `^make:' because GNU make might
2850: # be invoked under some other name (usually "gmake"), in which
2851: # case it prints its new name instead of `make'.
2852: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2853: am__include=include
2854: am__quote=
2855: _am_result=GNU
2856: fi
2857: # Now try BSD make style include.
2858: if test "$am__include" = "#"; then
2859: echo '.include "confinc"' > confmf
2860: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2861: am__include=.include
2862: am__quote="\""
2863: _am_result=BSD
2864: fi
2865: fi
2866:
2867:
2868: echo "$as_me:$LINENO: result: $_am_result" >&5
2869: echo "${ECHO_T}$_am_result" >&6
2870: rm -f confinc confmf
2871:
2872: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2873: if test "${enable_dependency_tracking+set}" = set; then
2874: enableval="$enable_dependency_tracking"
2875:
2876: fi;
2877: if test "x$enable_dependency_tracking" != xno; then
2878: am_depcomp="$ac_aux_dir/depcomp"
2879: AMDEPBACKSLASH='\'
2880: fi
2881:
2882:
2883: if test "x$enable_dependency_tracking" != xno; then
2884: AMDEP_TRUE=
2885: AMDEP_FALSE='#'
2886: else
2887: AMDEP_TRUE='#'
2888: AMDEP_FALSE=
2889: fi
2890:
2891:
2892:
2893:
2894: depcc="$CC" am_compiler_list=
2895:
2896: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2897: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2898: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2899: echo $ECHO_N "(cached) $ECHO_C" >&6
2900: else
2901: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2902: # We make a subdir and do the tests there. Otherwise we can end up
2903: # making bogus files that we don't know about and never remove. For
2904: # instance it was reported that on HP-UX the gcc test will end up
2905: # making a dummy file named `D' -- because `-MD' means `put the output
2906: # in D'.
2907: mkdir conftest.dir
2908: # Copy depcomp to subdir because otherwise we won't find it if we're
2909: # using a relative directory.
2910: cp "$am_depcomp" conftest.dir
2911: cd conftest.dir
2912:
2913: am_cv_CC_dependencies_compiler_type=none
2914: if test "$am_compiler_list" = ""; then
2915: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2916: fi
2917: for depmode in $am_compiler_list; do
2918: # We need to recreate these files for each test, as the compiler may
2919: # overwrite some of them when testing with obscure command lines.
2920: # This happens at least with the AIX C compiler.
2921: echo '#include "conftest.h"' > conftest.c
2922: echo 'int i;' > conftest.h
2923: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2924:
2925: case $depmode in
2926: nosideeffect)
2927: # after this tag, mechanisms are not by side-effect, so they'll
2928: # only be used when explicitly requested
2929: if test "x$enable_dependency_tracking" = xyes; then
2930: continue
2931: else
2932: break
2933: fi
2934: ;;
2935: none) break ;;
2936: esac
2937: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2938: # mode. It turns out that the SunPro C++ compiler does not properly
2939: # handle `-M -o', and we need to detect this.
2940: if depmode=$depmode \
2941: source=conftest.c object=conftest.o \
2942: depfile=conftest.Po tmpdepfile=conftest.TPo \
2943: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2944: grep conftest.h conftest.Po > /dev/null 2>&1 &&
2945: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2946: am_cv_CC_dependencies_compiler_type=$depmode
2947: break
2948: fi
2949: done
2950:
2951: cd ..
2952: rm -rf conftest.dir
2953: else
2954: am_cv_CC_dependencies_compiler_type=none
2955: fi
2956:
2957: fi
2958: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2959: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2960: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2961:
2962:
2963:
2964: if
2965: test "x$enable_dependency_tracking" != xno \
2966: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2967: am__fastdepCC_TRUE=
2968: am__fastdepCC_FALSE='#'
2969: else
2970: am__fastdepCC_TRUE='#'
2971: am__fastdepCC_FALSE=
2972: fi
2973:
2974:
2975: ac_ext=c
2976: ac_cpp='$CPP $CPPFLAGS'
2977: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2981: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2982: # On Suns, sometimes $CPP names a directory.
2983: if test -n "$CPP" && test -d "$CPP"; then
2984: CPP=
2985: fi
2986: if test -z "$CPP"; then
2987: if test "${ac_cv_prog_CPP+set}" = set; then
2988: echo $ECHO_N "(cached) $ECHO_C" >&6
2989: else
2990: # Double quotes because CPP needs to be expanded
2991: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2992: do
2993: ac_preproc_ok=false
2994: for ac_c_preproc_warn_flag in '' yes
2995: do
2996: # Use a header file that comes with gcc, so configuring glibc
2997: # with a fresh cross-compiler works.
2998: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2999: # <limits.h> exists even on freestanding compilers.
3000: # On the NeXT, cc -E runs the code through the compiler's parser,
3001: # not just through cpp. "Syntax error" is here to catch this case.
3002: cat >conftest.$ac_ext <<_ACEOF
3003: #line $LINENO "configure"
3004: /* confdefs.h. */
3005: _ACEOF
3006: cat confdefs.h >>conftest.$ac_ext
3007: cat >>conftest.$ac_ext <<_ACEOF
3008: /* end confdefs.h. */
3009: #ifdef __STDC__
3010: # include <limits.h>
3011: #else
3012: # include <assert.h>
3013: #endif
3014: Syntax error
3015: _ACEOF
3016: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3017: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3018: ac_status=$?
3019: grep -v '^ *+' conftest.er1 >conftest.err
3020: rm -f conftest.er1
3021: cat conftest.err >&5
3022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023: (exit $ac_status); } >/dev/null; then
3024: if test -s conftest.err; then
3025: ac_cpp_err=$ac_c_preproc_warn_flag
3026: else
3027: ac_cpp_err=
3028: fi
3029: else
3030: ac_cpp_err=yes
3031: fi
3032: if test -z "$ac_cpp_err"; then
3033: :
3034: else
3035: echo "$as_me: failed program was:" >&5
3036: sed 's/^/| /' conftest.$ac_ext >&5
3037:
3038: # Broken: fails on valid input.
3039: continue
3040: fi
3041: rm -f conftest.err conftest.$ac_ext
3042:
3043: # OK, works on sane cases. Now check whether non-existent headers
3044: # can be detected and how.
3045: cat >conftest.$ac_ext <<_ACEOF
3046: #line $LINENO "configure"
3047: /* confdefs.h. */
3048: _ACEOF
3049: cat confdefs.h >>conftest.$ac_ext
3050: cat >>conftest.$ac_ext <<_ACEOF
3051: /* end confdefs.h. */
3052: #include <ac_nonexistent.h>
3053: _ACEOF
3054: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3055: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3056: ac_status=$?
3057: grep -v '^ *+' conftest.er1 >conftest.err
3058: rm -f conftest.er1
3059: cat conftest.err >&5
3060: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061: (exit $ac_status); } >/dev/null; then
3062: if test -s conftest.err; then
3063: ac_cpp_err=$ac_c_preproc_warn_flag
3064: else
3065: ac_cpp_err=
3066: fi
3067: else
3068: ac_cpp_err=yes
3069: fi
3070: if test -z "$ac_cpp_err"; then
3071: # Broken: success on invalid input.
3072: continue
3073: else
3074: echo "$as_me: failed program was:" >&5
3075: sed 's/^/| /' conftest.$ac_ext >&5
3076:
3077: # Passes both tests.
3078: ac_preproc_ok=:
3079: break
3080: fi
3081: rm -f conftest.err conftest.$ac_ext
3082:
3083: done
3084: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3085: rm -f conftest.err conftest.$ac_ext
3086: if $ac_preproc_ok; then
3087: break
3088: fi
3089:
3090: done
3091: ac_cv_prog_CPP=$CPP
3092:
3093: fi
3094: CPP=$ac_cv_prog_CPP
3095: else
3096: ac_cv_prog_CPP=$CPP
3097: fi
3098: echo "$as_me:$LINENO: result: $CPP" >&5
3099: echo "${ECHO_T}$CPP" >&6
3100: ac_preproc_ok=false
3101: for ac_c_preproc_warn_flag in '' yes
3102: do
3103: # Use a header file that comes with gcc, so configuring glibc
3104: # with a fresh cross-compiler works.
3105: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3106: # <limits.h> exists even on freestanding compilers.
3107: # On the NeXT, cc -E runs the code through the compiler's parser,
3108: # not just through cpp. "Syntax error" is here to catch this case.
3109: cat >conftest.$ac_ext <<_ACEOF
3110: #line $LINENO "configure"
3111: /* confdefs.h. */
3112: _ACEOF
3113: cat confdefs.h >>conftest.$ac_ext
3114: cat >>conftest.$ac_ext <<_ACEOF
3115: /* end confdefs.h. */
3116: #ifdef __STDC__
3117: # include <limits.h>
3118: #else
3119: # include <assert.h>
3120: #endif
3121: Syntax error
3122: _ACEOF
3123: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3124: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3125: ac_status=$?
3126: grep -v '^ *+' conftest.er1 >conftest.err
3127: rm -f conftest.er1
3128: cat conftest.err >&5
3129: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130: (exit $ac_status); } >/dev/null; then
3131: if test -s conftest.err; then
3132: ac_cpp_err=$ac_c_preproc_warn_flag
3133: else
3134: ac_cpp_err=
3135: fi
3136: else
3137: ac_cpp_err=yes
3138: fi
3139: if test -z "$ac_cpp_err"; then
3140: :
3141: else
3142: echo "$as_me: failed program was:" >&5
3143: sed 's/^/| /' conftest.$ac_ext >&5
3144:
3145: # Broken: fails on valid input.
3146: continue
3147: fi
3148: rm -f conftest.err conftest.$ac_ext
3149:
3150: # OK, works on sane cases. Now check whether non-existent headers
3151: # can be detected and how.
3152: cat >conftest.$ac_ext <<_ACEOF
3153: #line $LINENO "configure"
3154: /* confdefs.h. */
3155: _ACEOF
3156: cat confdefs.h >>conftest.$ac_ext
3157: cat >>conftest.$ac_ext <<_ACEOF
3158: /* end confdefs.h. */
3159: #include <ac_nonexistent.h>
3160: _ACEOF
3161: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3162: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3163: ac_status=$?
3164: grep -v '^ *+' conftest.er1 >conftest.err
3165: rm -f conftest.er1
3166: cat conftest.err >&5
3167: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168: (exit $ac_status); } >/dev/null; then
3169: if test -s conftest.err; then
3170: ac_cpp_err=$ac_c_preproc_warn_flag
3171: else
3172: ac_cpp_err=
3173: fi
3174: else
3175: ac_cpp_err=yes
3176: fi
3177: if test -z "$ac_cpp_err"; then
3178: # Broken: success on invalid input.
3179: continue
3180: else
3181: echo "$as_me: failed program was:" >&5
3182: sed 's/^/| /' conftest.$ac_ext >&5
3183:
3184: # Passes both tests.
3185: ac_preproc_ok=:
3186: break
3187: fi
3188: rm -f conftest.err conftest.$ac_ext
3189:
3190: done
3191: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3192: rm -f conftest.err conftest.$ac_ext
3193: if $ac_preproc_ok; then
3194: :
3195: else
3196: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3197: See \`config.log' for more details." >&5
3198: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3199: See \`config.log' for more details." >&2;}
3200: { (exit 1); exit 1; }; }
3201: fi
3202:
3203: ac_ext=c
3204: ac_cpp='$CPP $CPPFLAGS'
3205: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3208:
3209: for ac_prog in 'bison -y' byacc
3210: do
3211: # Extract the first word of "$ac_prog", so it can be a program name with args.
3212: set dummy $ac_prog; ac_word=$2
3213: echo "$as_me:$LINENO: checking for $ac_word" >&5
3214: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3215: if test "${ac_cv_prog_YACC+set}" = set; then
3216: echo $ECHO_N "(cached) $ECHO_C" >&6
3217: else
3218: if test -n "$YACC"; then
3219: ac_cv_prog_YACC="$YACC" # Let the user override the test.
3220: else
3221: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222: for as_dir in $PATH
3223: do
3224: IFS=$as_save_IFS
3225: test -z "$as_dir" && as_dir=.
3226: for ac_exec_ext in '' $ac_executable_extensions; do
3227: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228: ac_cv_prog_YACC="$ac_prog"
3229: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230: break 2
3231: fi
3232: done
3233: done
3234:
3235: fi
3236: fi
3237: YACC=$ac_cv_prog_YACC
3238: if test -n "$YACC"; then
3239: echo "$as_me:$LINENO: result: $YACC" >&5
3240: echo "${ECHO_T}$YACC" >&6
3241: else
3242: echo "$as_me:$LINENO: result: no" >&5
3243: echo "${ECHO_T}no" >&6
3244: fi
3245:
3246: test -n "$YACC" && break
3247: done
3248: test -n "$YACC" || YACC="yacc"
3249:
3250: # Find a good install program. We prefer a C program (faster),
3251: # so one script is as good as another. But avoid the broken or
3252: # incompatible versions:
3253: # SysV /etc/install, /usr/sbin/install
3254: # SunOS /usr/etc/install
3255: # IRIX /sbin/install
3256: # AIX /bin/install
3257: # AmigaOS /C/install, which installs bootblocks on floppy discs
3258: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3259: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3260: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3261: # ./install, which can be erroneously created by make from ./install.sh.
3262: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3263: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3264: if test -z "$INSTALL"; then
3265: if test "${ac_cv_path_install+set}" = set; then
3266: echo $ECHO_N "(cached) $ECHO_C" >&6
3267: else
3268: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269: for as_dir in $PATH
3270: do
3271: IFS=$as_save_IFS
3272: test -z "$as_dir" && as_dir=.
3273: # Account for people who put trailing slashes in PATH elements.
3274: case $as_dir/ in
3275: ./ | .// | /cC/* | \
3276: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3277: /usr/ucb/* ) ;;
3278: *)
3279: # OSF1 and SCO ODT 3.0 have their own names for install.
3280: # Don't use installbsd from OSF since it installs stuff as root
3281: # by default.
3282: for ac_prog in ginstall scoinst install; do
3283: for ac_exec_ext in '' $ac_executable_extensions; do
3284: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3285: if test $ac_prog = install &&
3286: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3287: # AIX install. It has an incompatible calling convention.
3288: :
3289: elif test $ac_prog = install &&
3290: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3291: # program-specific install script used by HP pwplus--don't use.
3292: :
3293: else
3294: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3295: break 3
3296: fi
3297: fi
3298: done
3299: done
3300: ;;
3301: esac
3302: done
3303:
3304:
3305: fi
3306: if test "${ac_cv_path_install+set}" = set; then
3307: INSTALL=$ac_cv_path_install
3308: else
3309: # As a last resort, use the slow shell script. We don't cache a
3310: # path for INSTALL within a source directory, because that will
3311: # break other packages using the cache if that directory is
3312: # removed, or if the path is relative.
3313: INSTALL=$ac_install_sh
3314: fi
3315: fi
3316: echo "$as_me:$LINENO: result: $INSTALL" >&5
3317: echo "${ECHO_T}$INSTALL" >&6
3318:
3319: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3320: # It thinks the first close brace ends the variable substitution.
3321: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3322:
3323: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3324:
3325: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3326:
3327: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3328: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3329: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3330: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3331: echo $ECHO_N "(cached) $ECHO_C" >&6
3332: else
3333: cat >conftest.make <<\_ACEOF
3334: all:
3335: @echo 'ac_maketemp="$(MAKE)"'
3336: _ACEOF
3337: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3338: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3339: if test -n "$ac_maketemp"; then
3340: eval ac_cv_prog_make_${ac_make}_set=yes
3341: else
3342: eval ac_cv_prog_make_${ac_make}_set=no
3343: fi
3344: rm -f conftest.make
3345: fi
3346: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3347: echo "$as_me:$LINENO: result: yes" >&5
3348: echo "${ECHO_T}yes" >&6
3349: SET_MAKE=
3350: else
3351: echo "$as_me:$LINENO: result: no" >&5
3352: echo "${ECHO_T}no" >&6
3353: SET_MAKE="MAKE=${MAKE-make}"
3354: fi
3355:
3356:
3357:
3358:
3359: echo "$as_me:$LINENO: checking for egrep" >&5
3360: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3361: if test "${ac_cv_prog_egrep+set}" = set; then
3362: echo $ECHO_N "(cached) $ECHO_C" >&6
3363: else
3364: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3365: then ac_cv_prog_egrep='grep -E'
3366: else ac_cv_prog_egrep='egrep'
3367: fi
3368: fi
3369: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3370: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3371: EGREP=$ac_cv_prog_egrep
3372:
3373:
3374: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3375: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3376: if test "${ac_cv_header_stdc+set}" = set; then
3377: echo $ECHO_N "(cached) $ECHO_C" >&6
3378: else
3379: cat >conftest.$ac_ext <<_ACEOF
3380: #line $LINENO "configure"
3381: /* confdefs.h. */
3382: _ACEOF
3383: cat confdefs.h >>conftest.$ac_ext
3384: cat >>conftest.$ac_ext <<_ACEOF
3385: /* end confdefs.h. */
3386: #include <stdlib.h>
3387: #include <stdarg.h>
3388: #include <string.h>
3389: #include <float.h>
3390:
3391: int
3392: main ()
3393: {
3394:
3395: ;
3396: return 0;
3397: }
3398: _ACEOF
3399: rm -f conftest.$ac_objext
3400: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401: (eval $ac_compile) 2>&5
3402: ac_status=$?
3403: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404: (exit $ac_status); } &&
3405: { ac_try='test -s conftest.$ac_objext'
3406: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407: (eval $ac_try) 2>&5
3408: ac_status=$?
3409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410: (exit $ac_status); }; }; then
3411: ac_cv_header_stdc=yes
3412: else
3413: echo "$as_me: failed program was:" >&5
3414: sed 's/^/| /' conftest.$ac_ext >&5
3415:
3416: ac_cv_header_stdc=no
3417: fi
3418: rm -f conftest.$ac_objext conftest.$ac_ext
3419:
3420: if test $ac_cv_header_stdc = yes; then
3421: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3422: cat >conftest.$ac_ext <<_ACEOF
3423: #line $LINENO "configure"
3424: /* confdefs.h. */
3425: _ACEOF
3426: cat confdefs.h >>conftest.$ac_ext
3427: cat >>conftest.$ac_ext <<_ACEOF
3428: /* end confdefs.h. */
3429: #include <string.h>
3430:
3431: _ACEOF
3432: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3433: $EGREP "memchr" >/dev/null 2>&1; then
3434: :
3435: else
3436: ac_cv_header_stdc=no
3437: fi
3438: rm -f conftest*
3439:
3440: fi
3441:
3442: if test $ac_cv_header_stdc = yes; then
3443: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3444: cat >conftest.$ac_ext <<_ACEOF
3445: #line $LINENO "configure"
3446: /* confdefs.h. */
3447: _ACEOF
3448: cat confdefs.h >>conftest.$ac_ext
3449: cat >>conftest.$ac_ext <<_ACEOF
3450: /* end confdefs.h. */
3451: #include <stdlib.h>
3452:
3453: _ACEOF
3454: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3455: $EGREP "free" >/dev/null 2>&1; then
3456: :
3457: else
3458: ac_cv_header_stdc=no
3459: fi
3460: rm -f conftest*
3461:
3462: fi
3463:
3464: if test $ac_cv_header_stdc = yes; then
3465: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3466: if test "$cross_compiling" = yes; then
3467: :
3468: else
3469: cat >conftest.$ac_ext <<_ACEOF
3470: #line $LINENO "configure"
3471: /* confdefs.h. */
3472: _ACEOF
3473: cat confdefs.h >>conftest.$ac_ext
3474: cat >>conftest.$ac_ext <<_ACEOF
3475: /* end confdefs.h. */
3476: #include <ctype.h>
3477: #if ((' ' & 0x0FF) == 0x020)
3478: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3479: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3480: #else
3481: # define ISLOWER(c) \
3482: (('a' <= (c) && (c) <= 'i') \
3483: || ('j' <= (c) && (c) <= 'r') \
3484: || ('s' <= (c) && (c) <= 'z'))
3485: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3486: #endif
3487:
3488: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3489: int
3490: main ()
3491: {
3492: int i;
3493: for (i = 0; i < 256; i++)
3494: if (XOR (islower (i), ISLOWER (i))
3495: || toupper (i) != TOUPPER (i))
3496: exit(2);
3497: exit (0);
3498: }
3499: _ACEOF
3500: rm -f conftest$ac_exeext
3501: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3502: (eval $ac_link) 2>&5
3503: ac_status=$?
3504: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3506: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507: (eval $ac_try) 2>&5
3508: ac_status=$?
3509: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510: (exit $ac_status); }; }; then
3511: :
3512: else
3513: echo "$as_me: program exited with status $ac_status" >&5
3514: echo "$as_me: failed program was:" >&5
3515: sed 's/^/| /' conftest.$ac_ext >&5
3516:
3517: ( exit $ac_status )
3518: ac_cv_header_stdc=no
3519: fi
3520: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3521: fi
3522: fi
3523: fi
3524: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3525: echo "${ECHO_T}$ac_cv_header_stdc" >&6
3526: if test $ac_cv_header_stdc = yes; then
3527:
3528: cat >>confdefs.h <<\_ACEOF
3529: #define STDC_HEADERS 1
3530: _ACEOF
3531:
3532: fi
3533:
3534: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3535:
3536:
3537:
3538:
3539:
3540:
3541:
3542:
3543:
3544: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3545: inttypes.h stdint.h unistd.h
3546: do
3547: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3548: echo "$as_me:$LINENO: checking for $ac_header" >&5
3549: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3550: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3551: echo $ECHO_N "(cached) $ECHO_C" >&6
3552: else
3553: cat >conftest.$ac_ext <<_ACEOF
3554: #line $LINENO "configure"
3555: /* confdefs.h. */
3556: _ACEOF
3557: cat confdefs.h >>conftest.$ac_ext
3558: cat >>conftest.$ac_ext <<_ACEOF
3559: /* end confdefs.h. */
3560: $ac_includes_default
3561:
3562: #include <$ac_header>
3563: _ACEOF
3564: rm -f conftest.$ac_objext
3565: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566: (eval $ac_compile) 2>&5
3567: ac_status=$?
3568: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569: (exit $ac_status); } &&
3570: { ac_try='test -s conftest.$ac_objext'
3571: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572: (eval $ac_try) 2>&5
3573: ac_status=$?
3574: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575: (exit $ac_status); }; }; then
3576: eval "$as_ac_Header=yes"
3577: else
3578: echo "$as_me: failed program was:" >&5
3579: sed 's/^/| /' conftest.$ac_ext >&5
3580:
3581: eval "$as_ac_Header=no"
3582: fi
3583: rm -f conftest.$ac_objext conftest.$ac_ext
3584: fi
3585: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3586: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3587: if test `eval echo '${'$as_ac_Header'}'` = yes; then
3588: cat >>confdefs.h <<_ACEOF
3589: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3590: _ACEOF
3591:
3592: fi
3593:
3594: done
3595:
3596:
3597:
3598:
3599:
3600:
1.1.1.3 ! root 3601:
! 3602:
! 3603: for ac_header in unistd.h stdio.h memory.h stdarg.h limits.h float.h
1.1 root 3604: do
3605: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3606: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3607: echo "$as_me:$LINENO: checking for $ac_header" >&5
3608: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3609: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3610: echo $ECHO_N "(cached) $ECHO_C" >&6
3611: fi
3612: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3613: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3614: else
3615: # Is the header compilable?
3616: echo "$as_me:$LINENO: checking $ac_header usability" >&5
3617: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3618: cat >conftest.$ac_ext <<_ACEOF
3619: #line $LINENO "configure"
3620: /* confdefs.h. */
3621: _ACEOF
3622: cat confdefs.h >>conftest.$ac_ext
3623: cat >>conftest.$ac_ext <<_ACEOF
3624: /* end confdefs.h. */
3625: $ac_includes_default
3626: #include <$ac_header>
3627: _ACEOF
3628: rm -f conftest.$ac_objext
3629: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3630: (eval $ac_compile) 2>&5
3631: ac_status=$?
3632: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633: (exit $ac_status); } &&
3634: { ac_try='test -s conftest.$ac_objext'
3635: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636: (eval $ac_try) 2>&5
3637: ac_status=$?
3638: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639: (exit $ac_status); }; }; then
3640: ac_header_compiler=yes
3641: else
3642: echo "$as_me: failed program was:" >&5
3643: sed 's/^/| /' conftest.$ac_ext >&5
3644:
3645: ac_header_compiler=no
3646: fi
3647: rm -f conftest.$ac_objext conftest.$ac_ext
3648: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3649: echo "${ECHO_T}$ac_header_compiler" >&6
3650:
3651: # Is the header present?
3652: echo "$as_me:$LINENO: checking $ac_header presence" >&5
3653: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3654: cat >conftest.$ac_ext <<_ACEOF
3655: #line $LINENO "configure"
3656: /* confdefs.h. */
3657: _ACEOF
3658: cat confdefs.h >>conftest.$ac_ext
3659: cat >>conftest.$ac_ext <<_ACEOF
3660: /* end confdefs.h. */
3661: #include <$ac_header>
3662: _ACEOF
3663: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3664: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3665: ac_status=$?
3666: grep -v '^ *+' conftest.er1 >conftest.err
3667: rm -f conftest.er1
3668: cat conftest.err >&5
3669: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670: (exit $ac_status); } >/dev/null; then
3671: if test -s conftest.err; then
3672: ac_cpp_err=$ac_c_preproc_warn_flag
3673: else
3674: ac_cpp_err=
3675: fi
3676: else
3677: ac_cpp_err=yes
3678: fi
3679: if test -z "$ac_cpp_err"; then
3680: ac_header_preproc=yes
3681: else
3682: echo "$as_me: failed program was:" >&5
3683: sed 's/^/| /' conftest.$ac_ext >&5
3684:
3685: ac_header_preproc=no
3686: fi
3687: rm -f conftest.err conftest.$ac_ext
3688: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3689: echo "${ECHO_T}$ac_header_preproc" >&6
3690:
3691: # So? What about this header?
3692: case $ac_header_compiler:$ac_header_preproc in
3693: yes:no )
3694: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3695: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3696: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3697: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3698: (
3699: cat <<\_ASBOX
3700: ## ------------------------------------ ##
3701: ## Report this to [email protected]. ##
3702: ## ------------------------------------ ##
3703: _ASBOX
3704: ) |
3705: sed "s/^/$as_me: WARNING: /" >&2
3706: ;;
3707: no:yes )
3708: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3709: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3710: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3711: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3712: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3713: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3714: (
3715: cat <<\_ASBOX
3716: ## ------------------------------------ ##
3717: ## Report this to [email protected]. ##
3718: ## ------------------------------------ ##
3719: _ASBOX
3720: ) |
3721: sed "s/^/$as_me: WARNING: /" >&2
3722: ;;
3723: esac
3724: echo "$as_me:$LINENO: checking for $ac_header" >&5
3725: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3726: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3727: echo $ECHO_N "(cached) $ECHO_C" >&6
3728: else
3729: eval "$as_ac_Header=$ac_header_preproc"
3730: fi
3731: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3732: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3733:
3734: fi
3735: if test `eval echo '${'$as_ac_Header'}'` = yes; then
3736: cat >>confdefs.h <<_ACEOF
3737: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3738: _ACEOF
3739:
3740: fi
3741:
3742: done
3743:
3744:
3745:
3746:
3747:
3748:
3749: for ac_header in sys/ioctl.h sys/sockio.h sys/socketio.h net/if_dl.h ioctls.h
3750: do
3751: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3752: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3753: echo "$as_me:$LINENO: checking for $ac_header" >&5
3754: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3755: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3756: echo $ECHO_N "(cached) $ECHO_C" >&6
3757: fi
3758: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3759: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3760: else
3761: # Is the header compilable?
3762: echo "$as_me:$LINENO: checking $ac_header usability" >&5
3763: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3764: cat >conftest.$ac_ext <<_ACEOF
3765: #line $LINENO "configure"
3766: /* confdefs.h. */
3767: _ACEOF
3768: cat confdefs.h >>conftest.$ac_ext
3769: cat >>conftest.$ac_ext <<_ACEOF
3770: /* end confdefs.h. */
3771: $ac_includes_default
3772: #include <$ac_header>
3773: _ACEOF
3774: rm -f conftest.$ac_objext
3775: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3776: (eval $ac_compile) 2>&5
3777: ac_status=$?
3778: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779: (exit $ac_status); } &&
3780: { ac_try='test -s conftest.$ac_objext'
3781: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782: (eval $ac_try) 2>&5
3783: ac_status=$?
3784: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785: (exit $ac_status); }; }; then
3786: ac_header_compiler=yes
3787: else
3788: echo "$as_me: failed program was:" >&5
3789: sed 's/^/| /' conftest.$ac_ext >&5
3790:
3791: ac_header_compiler=no
3792: fi
3793: rm -f conftest.$ac_objext conftest.$ac_ext
3794: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3795: echo "${ECHO_T}$ac_header_compiler" >&6
3796:
3797: # Is the header present?
3798: echo "$as_me:$LINENO: checking $ac_header presence" >&5
3799: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3800: cat >conftest.$ac_ext <<_ACEOF
3801: #line $LINENO "configure"
3802: /* confdefs.h. */
3803: _ACEOF
3804: cat confdefs.h >>conftest.$ac_ext
3805: cat >>conftest.$ac_ext <<_ACEOF
3806: /* end confdefs.h. */
3807: #include <$ac_header>
3808: _ACEOF
3809: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3810: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3811: ac_status=$?
3812: grep -v '^ *+' conftest.er1 >conftest.err
3813: rm -f conftest.er1
3814: cat conftest.err >&5
3815: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816: (exit $ac_status); } >/dev/null; then
3817: if test -s conftest.err; then
3818: ac_cpp_err=$ac_c_preproc_warn_flag
3819: else
3820: ac_cpp_err=
3821: fi
3822: else
3823: ac_cpp_err=yes
3824: fi
3825: if test -z "$ac_cpp_err"; then
3826: ac_header_preproc=yes
3827: else
3828: echo "$as_me: failed program was:" >&5
3829: sed 's/^/| /' conftest.$ac_ext >&5
3830:
3831: ac_header_preproc=no
3832: fi
3833: rm -f conftest.err conftest.$ac_ext
3834: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3835: echo "${ECHO_T}$ac_header_preproc" >&6
3836:
3837: # So? What about this header?
3838: case $ac_header_compiler:$ac_header_preproc in
3839: yes:no )
3840: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3841: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3842: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3843: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3844: (
3845: cat <<\_ASBOX
3846: ## ------------------------------------ ##
3847: ## Report this to [email protected]. ##
3848: ## ------------------------------------ ##
3849: _ASBOX
3850: ) |
3851: sed "s/^/$as_me: WARNING: /" >&2
3852: ;;
3853: no:yes )
3854: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3855: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3856: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3857: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3858: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3859: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3860: (
3861: cat <<\_ASBOX
3862: ## ------------------------------------ ##
3863: ## Report this to [email protected]. ##
3864: ## ------------------------------------ ##
3865: _ASBOX
3866: ) |
3867: sed "s/^/$as_me: WARNING: /" >&2
3868: ;;
3869: esac
3870: echo "$as_me:$LINENO: checking for $ac_header" >&5
3871: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3872: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3873: echo $ECHO_N "(cached) $ECHO_C" >&6
3874: else
3875: eval "$as_ac_Header=$ac_header_preproc"
3876: fi
3877: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3878: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3879:
3880: fi
3881: if test `eval echo '${'$as_ac_Header'}'` = yes; then
3882: cat >>confdefs.h <<_ACEOF
3883: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3884: _ACEOF
3885:
3886: fi
3887:
3888: done
3889:
3890:
1.1.1.3 ! root 3891: for ac_header in sys/bswap.h
! 3892: do
! 3893: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 3894: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 3895: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 3896: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 3897: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 3898: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3899: fi
! 3900: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 3901: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 3902: else
! 3903: # Is the header compilable?
! 3904: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 3905: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! 3906: cat >conftest.$ac_ext <<_ACEOF
! 3907: #line $LINENO "configure"
! 3908: /* confdefs.h. */
! 3909: _ACEOF
! 3910: cat confdefs.h >>conftest.$ac_ext
! 3911: cat >>conftest.$ac_ext <<_ACEOF
! 3912: /* end confdefs.h. */
! 3913: $ac_includes_default
! 3914: #include <$ac_header>
! 3915: _ACEOF
! 3916: rm -f conftest.$ac_objext
! 3917: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3918: (eval $ac_compile) 2>&5
! 3919: ac_status=$?
! 3920: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3921: (exit $ac_status); } &&
! 3922: { ac_try='test -s conftest.$ac_objext'
! 3923: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3924: (eval $ac_try) 2>&5
! 3925: ac_status=$?
! 3926: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3927: (exit $ac_status); }; }; then
! 3928: ac_header_compiler=yes
! 3929: else
! 3930: echo "$as_me: failed program was:" >&5
! 3931: sed 's/^/| /' conftest.$ac_ext >&5
! 3932:
! 3933: ac_header_compiler=no
! 3934: fi
! 3935: rm -f conftest.$ac_objext conftest.$ac_ext
! 3936: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 3937: echo "${ECHO_T}$ac_header_compiler" >&6
! 3938:
! 3939: # Is the header present?
! 3940: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 3941: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! 3942: cat >conftest.$ac_ext <<_ACEOF
! 3943: #line $LINENO "configure"
! 3944: /* confdefs.h. */
! 3945: _ACEOF
! 3946: cat confdefs.h >>conftest.$ac_ext
! 3947: cat >>conftest.$ac_ext <<_ACEOF
! 3948: /* end confdefs.h. */
! 3949: #include <$ac_header>
! 3950: _ACEOF
! 3951: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 3952: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 3953: ac_status=$?
! 3954: grep -v '^ *+' conftest.er1 >conftest.err
! 3955: rm -f conftest.er1
! 3956: cat conftest.err >&5
! 3957: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3958: (exit $ac_status); } >/dev/null; then
! 3959: if test -s conftest.err; then
! 3960: ac_cpp_err=$ac_c_preproc_warn_flag
! 3961: else
! 3962: ac_cpp_err=
! 3963: fi
! 3964: else
! 3965: ac_cpp_err=yes
! 3966: fi
! 3967: if test -z "$ac_cpp_err"; then
! 3968: ac_header_preproc=yes
! 3969: else
! 3970: echo "$as_me: failed program was:" >&5
! 3971: sed 's/^/| /' conftest.$ac_ext >&5
! 3972:
! 3973: ac_header_preproc=no
! 3974: fi
! 3975: rm -f conftest.err conftest.$ac_ext
! 3976: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 3977: echo "${ECHO_T}$ac_header_preproc" >&6
! 3978:
! 3979: # So? What about this header?
! 3980: case $ac_header_compiler:$ac_header_preproc in
! 3981: yes:no )
! 3982: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 3983: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 3984: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 3985: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 3986: (
! 3987: cat <<\_ASBOX
! 3988: ## ------------------------------------ ##
! 3989: ## Report this to [email protected]. ##
! 3990: ## ------------------------------------ ##
! 3991: _ASBOX
! 3992: ) |
! 3993: sed "s/^/$as_me: WARNING: /" >&2
! 3994: ;;
! 3995: no:yes )
! 3996: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 3997: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 3998: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 3999: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 4000: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 4001: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 4002: (
! 4003: cat <<\_ASBOX
! 4004: ## ------------------------------------ ##
! 4005: ## Report this to [email protected]. ##
! 4006: ## ------------------------------------ ##
! 4007: _ASBOX
! 4008: ) |
! 4009: sed "s/^/$as_me: WARNING: /" >&2
! 4010: ;;
! 4011: esac
! 4012: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4013: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 4014: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 4015: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4016: else
! 4017: eval "$as_ac_Header=$ac_header_preproc"
! 4018: fi
! 4019: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 4020: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 4021:
! 4022: fi
! 4023: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 4024: cat >>confdefs.h <<_ACEOF
! 4025: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 4026: _ACEOF
! 4027:
! 4028: fi
! 4029:
! 4030: done
! 4031:
! 4032:
1.1 root 4033: echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4034: echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4035: if test "${ac_cv_c_bigendian+set}" = set; then
4036: echo $ECHO_N "(cached) $ECHO_C" >&6
4037: else
4038: # See if sys/param.h defines the BYTE_ORDER macro.
4039: cat >conftest.$ac_ext <<_ACEOF
4040: #line $LINENO "configure"
4041: /* confdefs.h. */
4042: _ACEOF
4043: cat confdefs.h >>conftest.$ac_ext
4044: cat >>conftest.$ac_ext <<_ACEOF
4045: /* end confdefs.h. */
4046: #include <sys/types.h>
4047: #include <sys/param.h>
4048:
4049: int
4050: main ()
4051: {
4052: #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4053: bogus endian macros
4054: #endif
4055:
4056: ;
4057: return 0;
4058: }
4059: _ACEOF
4060: rm -f conftest.$ac_objext
4061: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062: (eval $ac_compile) 2>&5
4063: ac_status=$?
4064: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065: (exit $ac_status); } &&
4066: { ac_try='test -s conftest.$ac_objext'
4067: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068: (eval $ac_try) 2>&5
4069: ac_status=$?
4070: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071: (exit $ac_status); }; }; then
4072: # It does; now see whether it defined to BIG_ENDIAN or not.
4073: cat >conftest.$ac_ext <<_ACEOF
4074: #line $LINENO "configure"
4075: /* confdefs.h. */
4076: _ACEOF
4077: cat confdefs.h >>conftest.$ac_ext
4078: cat >>conftest.$ac_ext <<_ACEOF
4079: /* end confdefs.h. */
4080: #include <sys/types.h>
4081: #include <sys/param.h>
4082:
4083: int
4084: main ()
4085: {
4086: #if BYTE_ORDER != BIG_ENDIAN
4087: not big endian
4088: #endif
4089:
4090: ;
4091: return 0;
4092: }
4093: _ACEOF
4094: rm -f conftest.$ac_objext
4095: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4096: (eval $ac_compile) 2>&5
4097: ac_status=$?
4098: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099: (exit $ac_status); } &&
4100: { ac_try='test -s conftest.$ac_objext'
4101: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102: (eval $ac_try) 2>&5
4103: ac_status=$?
4104: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105: (exit $ac_status); }; }; then
4106: ac_cv_c_bigendian=yes
4107: else
4108: echo "$as_me: failed program was:" >&5
4109: sed 's/^/| /' conftest.$ac_ext >&5
4110:
4111: ac_cv_c_bigendian=no
4112: fi
4113: rm -f conftest.$ac_objext conftest.$ac_ext
4114: else
4115: echo "$as_me: failed program was:" >&5
4116: sed 's/^/| /' conftest.$ac_ext >&5
4117:
4118: # It does not; compile a test program.
4119: if test "$cross_compiling" = yes; then
4120: # try to guess the endianness by grepping values into an object file
4121: ac_cv_c_bigendian=unknown
4122: cat >conftest.$ac_ext <<_ACEOF
4123: #line $LINENO "configure"
4124: /* confdefs.h. */
4125: _ACEOF
4126: cat confdefs.h >>conftest.$ac_ext
4127: cat >>conftest.$ac_ext <<_ACEOF
4128: /* end confdefs.h. */
4129: short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4130: short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4131: void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4132: short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4133: short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4134: void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4135: int
4136: main ()
4137: {
4138: _ascii (); _ebcdic ();
4139: ;
4140: return 0;
4141: }
4142: _ACEOF
4143: rm -f conftest.$ac_objext
4144: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4145: (eval $ac_compile) 2>&5
4146: ac_status=$?
4147: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148: (exit $ac_status); } &&
4149: { ac_try='test -s conftest.$ac_objext'
4150: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151: (eval $ac_try) 2>&5
4152: ac_status=$?
4153: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154: (exit $ac_status); }; }; then
4155: if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4156: ac_cv_c_bigendian=yes
4157: fi
4158: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4159: if test "$ac_cv_c_bigendian" = unknown; then
4160: ac_cv_c_bigendian=no
4161: else
4162: # finding both strings is unlikely to happen, but who knows?
4163: ac_cv_c_bigendian=unknown
4164: fi
4165: fi
4166: else
4167: echo "$as_me: failed program was:" >&5
4168: sed 's/^/| /' conftest.$ac_ext >&5
4169:
4170: fi
4171: rm -f conftest.$ac_objext conftest.$ac_ext
4172: else
4173: cat >conftest.$ac_ext <<_ACEOF
4174: #line $LINENO "configure"
4175: /* confdefs.h. */
4176: _ACEOF
4177: cat confdefs.h >>conftest.$ac_ext
4178: cat >>conftest.$ac_ext <<_ACEOF
4179: /* end confdefs.h. */
4180: int
4181: main ()
4182: {
4183: /* Are we little or big endian? From Harbison&Steele. */
4184: union
4185: {
4186: long l;
4187: char c[sizeof (long)];
4188: } u;
4189: u.l = 1;
4190: exit (u.c[sizeof (long) - 1] == 1);
4191: }
4192: _ACEOF
4193: rm -f conftest$ac_exeext
4194: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4195: (eval $ac_link) 2>&5
4196: ac_status=$?
4197: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4199: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200: (eval $ac_try) 2>&5
4201: ac_status=$?
4202: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203: (exit $ac_status); }; }; then
4204: ac_cv_c_bigendian=no
4205: else
4206: echo "$as_me: program exited with status $ac_status" >&5
4207: echo "$as_me: failed program was:" >&5
4208: sed 's/^/| /' conftest.$ac_ext >&5
4209:
4210: ( exit $ac_status )
4211: ac_cv_c_bigendian=yes
4212: fi
4213: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4214: fi
4215: fi
4216: rm -f conftest.$ac_objext conftest.$ac_ext
4217: fi
4218: echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4219: echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4220: case $ac_cv_c_bigendian in
4221: yes)
4222:
4223: cat >>confdefs.h <<\_ACEOF
4224: #define WORDS_BIGENDIAN 1
4225: _ACEOF
4226: ;;
4227: no)
4228: ;;
4229: *)
4230: { { echo "$as_me:$LINENO: error: unknown endianness
4231: presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4232: echo "$as_me: error: unknown endianness
4233: presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4234: { (exit 1); exit 1; }; } ;;
4235: esac
4236:
4237: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4238: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4239: if test "${ac_cv_c_const+set}" = set; then
4240: echo $ECHO_N "(cached) $ECHO_C" >&6
4241: else
4242: cat >conftest.$ac_ext <<_ACEOF
4243: #line $LINENO "configure"
4244: /* confdefs.h. */
4245: _ACEOF
4246: cat confdefs.h >>conftest.$ac_ext
4247: cat >>conftest.$ac_ext <<_ACEOF
4248: /* end confdefs.h. */
4249:
4250: int
4251: main ()
4252: {
4253: /* FIXME: Include the comments suggested by Paul. */
4254: #ifndef __cplusplus
4255: /* Ultrix mips cc rejects this. */
4256: typedef int charset[2];
4257: const charset x;
4258: /* SunOS 4.1.1 cc rejects this. */
4259: char const *const *ccp;
4260: char **p;
4261: /* NEC SVR4.0.2 mips cc rejects this. */
4262: struct point {int x, y;};
4263: static struct point const zero = {0,0};
4264: /* AIX XL C 1.02.0.0 rejects this.
4265: It does not let you subtract one const X* pointer from another in
4266: an arm of an if-expression whose if-part is not a constant
4267: expression */
4268: const char *g = "string";
4269: ccp = &g + (g ? g-g : 0);
4270: /* HPUX 7.0 cc rejects these. */
4271: ++ccp;
4272: p = (char**) ccp;
4273: ccp = (char const *const *) p;
4274: { /* SCO 3.2v4 cc rejects this. */
4275: char *t;
4276: char const *s = 0 ? (char *) 0 : (char const *) 0;
4277:
4278: *t++ = 0;
4279: }
4280: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4281: int x[] = {25, 17};
4282: const int *foo = &x[0];
4283: ++foo;
4284: }
4285: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4286: typedef const int *iptr;
4287: iptr p = 0;
4288: ++p;
4289: }
4290: { /* AIX XL C 1.02.0.0 rejects this saying
4291: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4292: struct s { int j; const int *ap[3]; };
4293: struct s *b; b->j = 5;
4294: }
4295: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4296: const int foo = 10;
4297: }
4298: #endif
4299:
4300: ;
4301: return 0;
4302: }
4303: _ACEOF
4304: rm -f conftest.$ac_objext
4305: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306: (eval $ac_compile) 2>&5
4307: ac_status=$?
4308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309: (exit $ac_status); } &&
4310: { ac_try='test -s conftest.$ac_objext'
4311: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312: (eval $ac_try) 2>&5
4313: ac_status=$?
4314: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315: (exit $ac_status); }; }; then
4316: ac_cv_c_const=yes
4317: else
4318: echo "$as_me: failed program was:" >&5
4319: sed 's/^/| /' conftest.$ac_ext >&5
4320:
4321: ac_cv_c_const=no
4322: fi
4323: rm -f conftest.$ac_objext conftest.$ac_ext
4324: fi
4325: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4326: echo "${ECHO_T}$ac_cv_c_const" >&6
4327: if test $ac_cv_c_const = no; then
4328:
4329: cat >>confdefs.h <<\_ACEOF
4330: #define const
4331: _ACEOF
4332:
4333: fi
4334:
4335: echo "$as_me:$LINENO: checking for inline" >&5
4336: echo $ECHO_N "checking for inline... $ECHO_C" >&6
4337: if test "${ac_cv_c_inline+set}" = set; then
4338: echo $ECHO_N "(cached) $ECHO_C" >&6
4339: else
4340: ac_cv_c_inline=no
4341: for ac_kw in inline __inline__ __inline; do
4342: cat >conftest.$ac_ext <<_ACEOF
4343: #line $LINENO "configure"
4344: /* confdefs.h. */
4345: _ACEOF
4346: cat confdefs.h >>conftest.$ac_ext
4347: cat >>conftest.$ac_ext <<_ACEOF
4348: /* end confdefs.h. */
4349: #ifndef __cplusplus
4350: typedef int foo_t;
4351: static $ac_kw foo_t static_foo () {return 0; }
4352: $ac_kw foo_t foo () {return 0; }
4353: #endif
4354:
4355: _ACEOF
4356: rm -f conftest.$ac_objext
4357: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358: (eval $ac_compile) 2>&5
4359: ac_status=$?
4360: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361: (exit $ac_status); } &&
4362: { ac_try='test -s conftest.$ac_objext'
4363: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364: (eval $ac_try) 2>&5
4365: ac_status=$?
4366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367: (exit $ac_status); }; }; then
4368: ac_cv_c_inline=$ac_kw; break
4369: else
4370: echo "$as_me: failed program was:" >&5
4371: sed 's/^/| /' conftest.$ac_ext >&5
4372:
4373: fi
4374: rm -f conftest.$ac_objext conftest.$ac_ext
4375: done
4376:
4377: fi
4378: echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4379: echo "${ECHO_T}$ac_cv_c_inline" >&6
4380: case $ac_cv_c_inline in
4381: inline | yes) ;;
4382: no)
4383: cat >>confdefs.h <<\_ACEOF
4384: #define inline
4385: _ACEOF
4386: ;;
4387: *) cat >>confdefs.h <<_ACEOF
4388: #define inline $ac_cv_c_inline
4389: _ACEOF
4390: ;;
4391: esac
4392:
1.1.1.3 ! root 4393: echo "$as_me:$LINENO: checking for working volatile" >&5
! 4394: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
! 4395: if test "${ac_cv_c_volatile+set}" = set; then
1.1.1.2 root 4396: echo $ECHO_N "(cached) $ECHO_C" >&6
4397: else
4398: cat >conftest.$ac_ext <<_ACEOF
4399: #line $LINENO "configure"
4400: /* confdefs.h. */
4401: _ACEOF
4402: cat confdefs.h >>conftest.$ac_ext
4403: cat >>conftest.$ac_ext <<_ACEOF
4404: /* end confdefs.h. */
1.1.1.3 ! root 4405:
1.1.1.2 root 4406: int
4407: main ()
4408: {
1.1.1.3 ! root 4409:
! 4410: volatile int x;
! 4411: int * volatile y;
1.1.1.2 root 4412: ;
4413: return 0;
4414: }
4415: _ACEOF
4416: rm -f conftest.$ac_objext
4417: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418: (eval $ac_compile) 2>&5
4419: ac_status=$?
4420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421: (exit $ac_status); } &&
4422: { ac_try='test -s conftest.$ac_objext'
4423: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424: (eval $ac_try) 2>&5
4425: ac_status=$?
4426: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427: (exit $ac_status); }; }; then
1.1.1.3 ! root 4428: ac_cv_c_volatile=yes
1.1.1.2 root 4429: else
4430: echo "$as_me: failed program was:" >&5
4431: sed 's/^/| /' conftest.$ac_ext >&5
4432:
1.1.1.3 ! root 4433: ac_cv_c_volatile=no
1.1.1.2 root 4434: fi
4435: rm -f conftest.$ac_objext conftest.$ac_ext
4436: fi
1.1.1.3 ! root 4437: echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
! 4438: echo "${ECHO_T}$ac_cv_c_volatile" >&6
! 4439: if test $ac_cv_c_volatile = no; then
1.1.1.2 root 4440:
1.1.1.3 ! root 4441: cat >>confdefs.h <<\_ACEOF
! 4442: #define volatile
1.1.1.2 root 4443: _ACEOF
4444:
4445: fi
4446:
1.1.1.3 ! root 4447: echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
! 4448: echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
! 4449: if test "${ac_cv_c_long_double+set}" = set; then
1.1 root 4450: echo $ECHO_N "(cached) $ECHO_C" >&6
4451: else
4452: cat >conftest.$ac_ext <<_ACEOF
4453: #line $LINENO "configure"
4454: /* confdefs.h. */
4455: _ACEOF
4456: cat confdefs.h >>conftest.$ac_ext
4457: cat >>conftest.$ac_ext <<_ACEOF
4458: /* end confdefs.h. */
1.1.1.3 ! root 4459: #include <float.h>
! 4460: long double foo = 0.0;
1.1 root 4461: int
4462: main ()
4463: {
1.1.1.3 ! root 4464: static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
! 4465: (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
! 4466: | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
! 4467: test_array [0] = 0
! 4468:
1.1 root 4469: ;
4470: return 0;
4471: }
4472: _ACEOF
4473: rm -f conftest.$ac_objext
4474: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475: (eval $ac_compile) 2>&5
4476: ac_status=$?
4477: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478: (exit $ac_status); } &&
4479: { ac_try='test -s conftest.$ac_objext'
4480: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481: (eval $ac_try) 2>&5
4482: ac_status=$?
4483: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484: (exit $ac_status); }; }; then
1.1.1.3 ! root 4485: ac_cv_c_long_double=yes
1.1 root 4486: else
4487: echo "$as_me: failed program was:" >&5
4488: sed 's/^/| /' conftest.$ac_ext >&5
4489:
1.1.1.3 ! root 4490: ac_cv_c_long_double=no
1.1 root 4491: fi
4492: rm -f conftest.$ac_objext conftest.$ac_ext
4493: fi
1.1.1.3 ! root 4494: echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
! 4495: echo "${ECHO_T}$ac_cv_c_long_double" >&6
! 4496: if test $ac_cv_c_long_double = yes; then
1.1 root 4497:
1.1.1.3 ! root 4498: cat >>confdefs.h <<\_ACEOF
! 4499: #define HAVE_LONG_DOUBLE 1
! 4500: _ACEOF
! 4501:
! 4502: fi
! 4503:
! 4504: echo "$as_me:$LINENO: checking for size_t" >&5
! 4505: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
! 4506: if test "${ac_cv_type_size_t+set}" = set; then
1.1 root 4507: echo $ECHO_N "(cached) $ECHO_C" >&6
4508: else
1.1.1.3 ! root 4509: cat >conftest.$ac_ext <<_ACEOF
1.1 root 4510: #line $LINENO "configure"
4511: /* confdefs.h. */
4512: _ACEOF
4513: cat confdefs.h >>conftest.$ac_ext
4514: cat >>conftest.$ac_ext <<_ACEOF
4515: /* end confdefs.h. */
4516: $ac_includes_default
4517: int
4518: main ()
4519: {
1.1.1.3 ! root 4520: if ((size_t *) 0)
! 4521: return 0;
! 4522: if (sizeof (size_t))
! 4523: return 0;
1.1 root 4524: ;
4525: return 0;
4526: }
4527: _ACEOF
4528: rm -f conftest.$ac_objext
4529: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530: (eval $ac_compile) 2>&5
4531: ac_status=$?
4532: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533: (exit $ac_status); } &&
4534: { ac_try='test -s conftest.$ac_objext'
4535: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536: (eval $ac_try) 2>&5
4537: ac_status=$?
4538: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539: (exit $ac_status); }; }; then
1.1.1.3 ! root 4540: ac_cv_type_size_t=yes
! 4541: else
! 4542: echo "$as_me: failed program was:" >&5
! 4543: sed 's/^/| /' conftest.$ac_ext >&5
! 4544:
! 4545: ac_cv_type_size_t=no
! 4546: fi
! 4547: rm -f conftest.$ac_objext conftest.$ac_ext
! 4548: fi
! 4549: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
! 4550: echo "${ECHO_T}$ac_cv_type_size_t" >&6
! 4551: if test $ac_cv_type_size_t = yes; then
! 4552: :
! 4553: else
! 4554:
! 4555: cat >>confdefs.h <<_ACEOF
! 4556: #define size_t unsigned
! 4557: _ACEOF
! 4558:
! 4559: fi
! 4560:
! 4561: echo "$as_me:$LINENO: checking return type of signal handlers" >&5
! 4562: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
! 4563: if test "${ac_cv_type_signal+set}" = set; then
! 4564: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4565: else
! 4566: cat >conftest.$ac_ext <<_ACEOF
1.1 root 4567: #line $LINENO "configure"
4568: /* confdefs.h. */
4569: _ACEOF
4570: cat confdefs.h >>conftest.$ac_ext
4571: cat >>conftest.$ac_ext <<_ACEOF
4572: /* end confdefs.h. */
1.1.1.3 ! root 4573: #include <sys/types.h>
! 4574: #include <signal.h>
! 4575: #ifdef signal
! 4576: # undef signal
! 4577: #endif
! 4578: #ifdef __cplusplus
! 4579: extern "C" void (*signal (int, void (*)(int)))(int);
! 4580: #else
! 4581: void (*signal ()) ();
! 4582: #endif
! 4583:
1.1 root 4584: int
4585: main ()
4586: {
1.1.1.3 ! root 4587: int i;
1.1 root 4588: ;
4589: return 0;
4590: }
4591: _ACEOF
4592: rm -f conftest.$ac_objext
4593: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594: (eval $ac_compile) 2>&5
4595: ac_status=$?
4596: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597: (exit $ac_status); } &&
4598: { ac_try='test -s conftest.$ac_objext'
4599: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600: (eval $ac_try) 2>&5
4601: ac_status=$?
4602: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603: (exit $ac_status); }; }; then
1.1.1.3 ! root 4604: ac_cv_type_signal=void
1.1 root 4605: else
4606: echo "$as_me: failed program was:" >&5
4607: sed 's/^/| /' conftest.$ac_ext >&5
4608:
1.1.1.3 ! root 4609: ac_cv_type_signal=int
1.1 root 4610: fi
4611: rm -f conftest.$ac_objext conftest.$ac_ext
1.1.1.3 ! root 4612: fi
! 4613: echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
! 4614: echo "${ECHO_T}$ac_cv_type_signal" >&6
1.1 root 4615:
1.1.1.3 ! root 4616: cat >>confdefs.h <<_ACEOF
! 4617: #define RETSIGTYPE $ac_cv_type_signal
! 4618: _ACEOF
! 4619:
! 4620:
! 4621: echo "$as_me:$LINENO: checking for long" >&5
! 4622: echo $ECHO_N "checking for long... $ECHO_C" >&6
! 4623: if test "${ac_cv_type_long+set}" = set; then
! 4624: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4625: else
! 4626: cat >conftest.$ac_ext <<_ACEOF
! 4627: #line $LINENO "configure"
! 4628: /* confdefs.h. */
! 4629: _ACEOF
! 4630: cat confdefs.h >>conftest.$ac_ext
! 4631: cat >>conftest.$ac_ext <<_ACEOF
! 4632: /* end confdefs.h. */
! 4633: $ac_includes_default
! 4634: int
! 4635: main ()
! 4636: {
! 4637: if ((long *) 0)
! 4638: return 0;
! 4639: if (sizeof (long))
! 4640: return 0;
! 4641: ;
! 4642: return 0;
! 4643: }
! 4644: _ACEOF
! 4645: rm -f conftest.$ac_objext
! 4646: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4647: (eval $ac_compile) 2>&5
! 4648: ac_status=$?
! 4649: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4650: (exit $ac_status); } &&
! 4651: { ac_try='test -s conftest.$ac_objext'
! 4652: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4653: (eval $ac_try) 2>&5
! 4654: ac_status=$?
! 4655: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4656: (exit $ac_status); }; }; then
! 4657: ac_cv_type_long=yes
! 4658: else
! 4659: echo "$as_me: failed program was:" >&5
! 4660: sed 's/^/| /' conftest.$ac_ext >&5
! 4661:
! 4662: ac_cv_type_long=no
! 4663: fi
! 4664: rm -f conftest.$ac_objext conftest.$ac_ext
! 4665: fi
! 4666: echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
! 4667: echo "${ECHO_T}$ac_cv_type_long" >&6
! 4668:
! 4669: echo "$as_me:$LINENO: checking size of long" >&5
! 4670: echo $ECHO_N "checking size of long... $ECHO_C" >&6
! 4671: if test "${ac_cv_sizeof_long+set}" = set; then
! 4672: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4673: else
! 4674: if test "$ac_cv_type_long" = yes; then
! 4675: # The cast to unsigned long works around a bug in the HP C Compiler
! 4676: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 4677: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 4678: # This bug is HP SR number 8606223364.
! 4679: if test "$cross_compiling" = yes; then
! 4680: # Depending upon the size, compute the lo and hi bounds.
! 4681: cat >conftest.$ac_ext <<_ACEOF
! 4682: #line $LINENO "configure"
! 4683: /* confdefs.h. */
! 4684: _ACEOF
! 4685: cat confdefs.h >>conftest.$ac_ext
! 4686: cat >>conftest.$ac_ext <<_ACEOF
! 4687: /* end confdefs.h. */
! 4688: $ac_includes_default
! 4689: int
! 4690: main ()
! 4691: {
! 4692: static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
! 4693: test_array [0] = 0
! 4694:
! 4695: ;
! 4696: return 0;
! 4697: }
! 4698: _ACEOF
! 4699: rm -f conftest.$ac_objext
! 4700: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4701: (eval $ac_compile) 2>&5
! 4702: ac_status=$?
! 4703: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4704: (exit $ac_status); } &&
! 4705: { ac_try='test -s conftest.$ac_objext'
! 4706: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4707: (eval $ac_try) 2>&5
! 4708: ac_status=$?
! 4709: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4710: (exit $ac_status); }; }; then
! 4711: ac_lo=0 ac_mid=0
! 4712: while :; do
! 4713: cat >conftest.$ac_ext <<_ACEOF
! 4714: #line $LINENO "configure"
! 4715: /* confdefs.h. */
! 4716: _ACEOF
! 4717: cat confdefs.h >>conftest.$ac_ext
! 4718: cat >>conftest.$ac_ext <<_ACEOF
! 4719: /* end confdefs.h. */
! 4720: $ac_includes_default
! 4721: int
! 4722: main ()
! 4723: {
! 4724: static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
! 4725: test_array [0] = 0
! 4726:
! 4727: ;
! 4728: return 0;
! 4729: }
! 4730: _ACEOF
! 4731: rm -f conftest.$ac_objext
! 4732: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4733: (eval $ac_compile) 2>&5
! 4734: ac_status=$?
! 4735: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4736: (exit $ac_status); } &&
! 4737: { ac_try='test -s conftest.$ac_objext'
! 4738: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4739: (eval $ac_try) 2>&5
! 4740: ac_status=$?
! 4741: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4742: (exit $ac_status); }; }; then
! 4743: ac_hi=$ac_mid; break
! 4744: else
! 4745: echo "$as_me: failed program was:" >&5
! 4746: sed 's/^/| /' conftest.$ac_ext >&5
! 4747:
! 4748: ac_lo=`expr $ac_mid + 1`
! 4749: if test $ac_lo -le $ac_mid; then
! 4750: ac_lo= ac_hi=
! 4751: break
! 4752: fi
! 4753: ac_mid=`expr 2 '*' $ac_mid + 1`
! 4754: fi
! 4755: rm -f conftest.$ac_objext conftest.$ac_ext
! 4756: done
! 4757: else
! 4758: echo "$as_me: failed program was:" >&5
! 4759: sed 's/^/| /' conftest.$ac_ext >&5
! 4760:
! 4761: cat >conftest.$ac_ext <<_ACEOF
! 4762: #line $LINENO "configure"
1.1 root 4763: /* confdefs.h. */
4764: _ACEOF
4765: cat confdefs.h >>conftest.$ac_ext
4766: cat >>conftest.$ac_ext <<_ACEOF
4767: /* end confdefs.h. */
4768: $ac_includes_default
4769: int
4770: main ()
4771: {
4772: static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4773: test_array [0] = 0
4774:
4775: ;
4776: return 0;
4777: }
4778: _ACEOF
4779: rm -f conftest.$ac_objext
4780: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4781: (eval $ac_compile) 2>&5
4782: ac_status=$?
4783: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784: (exit $ac_status); } &&
4785: { ac_try='test -s conftest.$ac_objext'
4786: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787: (eval $ac_try) 2>&5
4788: ac_status=$?
4789: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790: (exit $ac_status); }; }; then
4791: ac_hi=-1 ac_mid=-1
4792: while :; do
4793: cat >conftest.$ac_ext <<_ACEOF
4794: #line $LINENO "configure"
4795: /* confdefs.h. */
4796: _ACEOF
4797: cat confdefs.h >>conftest.$ac_ext
4798: cat >>conftest.$ac_ext <<_ACEOF
4799: /* end confdefs.h. */
4800: $ac_includes_default
4801: int
4802: main ()
4803: {
4804: static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4805: test_array [0] = 0
4806:
4807: ;
4808: return 0;
4809: }
4810: _ACEOF
4811: rm -f conftest.$ac_objext
4812: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813: (eval $ac_compile) 2>&5
4814: ac_status=$?
4815: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816: (exit $ac_status); } &&
4817: { ac_try='test -s conftest.$ac_objext'
4818: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819: (eval $ac_try) 2>&5
4820: ac_status=$?
4821: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822: (exit $ac_status); }; }; then
4823: ac_lo=$ac_mid; break
4824: else
4825: echo "$as_me: failed program was:" >&5
4826: sed 's/^/| /' conftest.$ac_ext >&5
4827:
4828: ac_hi=`expr '(' $ac_mid ')' - 1`
4829: if test $ac_mid -le $ac_hi; then
4830: ac_lo= ac_hi=
4831: break
4832: fi
4833: ac_mid=`expr 2 '*' $ac_mid`
4834: fi
4835: rm -f conftest.$ac_objext conftest.$ac_ext
4836: done
4837: else
4838: echo "$as_me: failed program was:" >&5
4839: sed 's/^/| /' conftest.$ac_ext >&5
4840:
4841: ac_lo= ac_hi=
4842: fi
4843: rm -f conftest.$ac_objext conftest.$ac_ext
4844: fi
4845: rm -f conftest.$ac_objext conftest.$ac_ext
4846: # Binary search between lo and hi bounds.
4847: while test "x$ac_lo" != "x$ac_hi"; do
4848: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4849: cat >conftest.$ac_ext <<_ACEOF
4850: #line $LINENO "configure"
4851: /* confdefs.h. */
4852: _ACEOF
4853: cat confdefs.h >>conftest.$ac_ext
4854: cat >>conftest.$ac_ext <<_ACEOF
4855: /* end confdefs.h. */
4856: $ac_includes_default
4857: int
4858: main ()
4859: {
4860: static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4861: test_array [0] = 0
4862:
4863: ;
4864: return 0;
4865: }
4866: _ACEOF
4867: rm -f conftest.$ac_objext
4868: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869: (eval $ac_compile) 2>&5
4870: ac_status=$?
4871: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872: (exit $ac_status); } &&
4873: { ac_try='test -s conftest.$ac_objext'
4874: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875: (eval $ac_try) 2>&5
4876: ac_status=$?
4877: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878: (exit $ac_status); }; }; then
4879: ac_hi=$ac_mid
4880: else
4881: echo "$as_me: failed program was:" >&5
4882: sed 's/^/| /' conftest.$ac_ext >&5
4883:
4884: ac_lo=`expr '(' $ac_mid ')' + 1`
4885: fi
4886: rm -f conftest.$ac_objext conftest.$ac_ext
4887: done
4888: case $ac_lo in
4889: ?*) ac_cv_sizeof_long=$ac_lo;;
4890: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4891: See \`config.log' for more details." >&5
4892: echo "$as_me: error: cannot compute sizeof (long), 77
4893: See \`config.log' for more details." >&2;}
4894: { (exit 1); exit 1; }; } ;;
4895: esac
4896: else
4897: if test "$cross_compiling" = yes; then
4898: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4899: See \`config.log' for more details." >&5
4900: echo "$as_me: error: cannot run test program while cross compiling
4901: See \`config.log' for more details." >&2;}
4902: { (exit 1); exit 1; }; }
4903: else
4904: cat >conftest.$ac_ext <<_ACEOF
4905: #line $LINENO "configure"
4906: /* confdefs.h. */
4907: _ACEOF
4908: cat confdefs.h >>conftest.$ac_ext
4909: cat >>conftest.$ac_ext <<_ACEOF
4910: /* end confdefs.h. */
4911: $ac_includes_default
4912: long longval () { return (long) (sizeof (long)); }
4913: unsigned long ulongval () { return (long) (sizeof (long)); }
4914: #include <stdio.h>
4915: #include <stdlib.h>
4916: int
4917: main ()
4918: {
4919:
4920: FILE *f = fopen ("conftest.val", "w");
4921: if (! f)
4922: exit (1);
4923: if (((long) (sizeof (long))) < 0)
4924: {
4925: long i = longval ();
4926: if (i != ((long) (sizeof (long))))
4927: exit (1);
4928: fprintf (f, "%ld\n", i);
4929: }
4930: else
4931: {
4932: unsigned long i = ulongval ();
4933: if (i != ((long) (sizeof (long))))
4934: exit (1);
4935: fprintf (f, "%lu\n", i);
4936: }
4937: exit (ferror (f) || fclose (f) != 0);
4938:
4939: ;
4940: return 0;
4941: }
4942: _ACEOF
4943: rm -f conftest$ac_exeext
4944: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4945: (eval $ac_link) 2>&5
4946: ac_status=$?
4947: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4949: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950: (eval $ac_try) 2>&5
4951: ac_status=$?
4952: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953: (exit $ac_status); }; }; then
4954: ac_cv_sizeof_long=`cat conftest.val`
4955: else
4956: echo "$as_me: program exited with status $ac_status" >&5
4957: echo "$as_me: failed program was:" >&5
4958: sed 's/^/| /' conftest.$ac_ext >&5
4959:
4960: ( exit $ac_status )
4961: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4962: See \`config.log' for more details." >&5
4963: echo "$as_me: error: cannot compute sizeof (long), 77
4964: See \`config.log' for more details." >&2;}
4965: { (exit 1); exit 1; }; }
4966: fi
4967: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4968: fi
4969: fi
4970: rm -f conftest.val
4971: else
4972: ac_cv_sizeof_long=0
4973: fi
4974: fi
4975: echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4976: echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4977: cat >>confdefs.h <<_ACEOF
4978: #define SIZEOF_LONG $ac_cv_sizeof_long
4979: _ACEOF
4980:
4981:
4982: echo "$as_me:$LINENO: checking for int" >&5
4983: echo $ECHO_N "checking for int... $ECHO_C" >&6
4984: if test "${ac_cv_type_int+set}" = set; then
4985: echo $ECHO_N "(cached) $ECHO_C" >&6
4986: else
4987: cat >conftest.$ac_ext <<_ACEOF
4988: #line $LINENO "configure"
4989: /* confdefs.h. */
4990: _ACEOF
4991: cat confdefs.h >>conftest.$ac_ext
4992: cat >>conftest.$ac_ext <<_ACEOF
4993: /* end confdefs.h. */
4994: $ac_includes_default
4995: int
4996: main ()
4997: {
4998: if ((int *) 0)
4999: return 0;
5000: if (sizeof (int))
5001: return 0;
5002: ;
5003: return 0;
5004: }
5005: _ACEOF
5006: rm -f conftest.$ac_objext
5007: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008: (eval $ac_compile) 2>&5
5009: ac_status=$?
5010: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011: (exit $ac_status); } &&
5012: { ac_try='test -s conftest.$ac_objext'
5013: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014: (eval $ac_try) 2>&5
5015: ac_status=$?
5016: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017: (exit $ac_status); }; }; then
5018: ac_cv_type_int=yes
5019: else
5020: echo "$as_me: failed program was:" >&5
5021: sed 's/^/| /' conftest.$ac_ext >&5
5022:
5023: ac_cv_type_int=no
5024: fi
5025: rm -f conftest.$ac_objext conftest.$ac_ext
5026: fi
5027: echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5028: echo "${ECHO_T}$ac_cv_type_int" >&6
5029:
5030: echo "$as_me:$LINENO: checking size of int" >&5
5031: echo $ECHO_N "checking size of int... $ECHO_C" >&6
5032: if test "${ac_cv_sizeof_int+set}" = set; then
5033: echo $ECHO_N "(cached) $ECHO_C" >&6
5034: else
5035: if test "$ac_cv_type_int" = yes; then
5036: # The cast to unsigned long works around a bug in the HP C Compiler
5037: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5038: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5039: # This bug is HP SR number 8606223364.
5040: if test "$cross_compiling" = yes; then
5041: # Depending upon the size, compute the lo and hi bounds.
5042: cat >conftest.$ac_ext <<_ACEOF
5043: #line $LINENO "configure"
5044: /* confdefs.h. */
5045: _ACEOF
5046: cat confdefs.h >>conftest.$ac_ext
5047: cat >>conftest.$ac_ext <<_ACEOF
5048: /* end confdefs.h. */
5049: $ac_includes_default
5050: int
5051: main ()
5052: {
5053: static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5054: test_array [0] = 0
5055:
5056: ;
5057: return 0;
5058: }
5059: _ACEOF
5060: rm -f conftest.$ac_objext
5061: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5062: (eval $ac_compile) 2>&5
5063: ac_status=$?
5064: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065: (exit $ac_status); } &&
5066: { ac_try='test -s conftest.$ac_objext'
5067: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068: (eval $ac_try) 2>&5
5069: ac_status=$?
5070: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071: (exit $ac_status); }; }; then
5072: ac_lo=0 ac_mid=0
5073: while :; do
5074: cat >conftest.$ac_ext <<_ACEOF
5075: #line $LINENO "configure"
5076: /* confdefs.h. */
5077: _ACEOF
5078: cat confdefs.h >>conftest.$ac_ext
5079: cat >>conftest.$ac_ext <<_ACEOF
5080: /* end confdefs.h. */
5081: $ac_includes_default
5082: int
5083: main ()
5084: {
5085: static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5086: test_array [0] = 0
5087:
5088: ;
5089: return 0;
5090: }
5091: _ACEOF
5092: rm -f conftest.$ac_objext
5093: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5094: (eval $ac_compile) 2>&5
5095: ac_status=$?
5096: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097: (exit $ac_status); } &&
5098: { ac_try='test -s conftest.$ac_objext'
5099: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100: (eval $ac_try) 2>&5
5101: ac_status=$?
5102: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103: (exit $ac_status); }; }; then
5104: ac_hi=$ac_mid; break
5105: else
5106: echo "$as_me: failed program was:" >&5
5107: sed 's/^/| /' conftest.$ac_ext >&5
5108:
5109: ac_lo=`expr $ac_mid + 1`
5110: if test $ac_lo -le $ac_mid; then
5111: ac_lo= ac_hi=
5112: break
5113: fi
5114: ac_mid=`expr 2 '*' $ac_mid + 1`
5115: fi
5116: rm -f conftest.$ac_objext conftest.$ac_ext
5117: done
5118: else
5119: echo "$as_me: failed program was:" >&5
5120: sed 's/^/| /' conftest.$ac_ext >&5
5121:
5122: cat >conftest.$ac_ext <<_ACEOF
5123: #line $LINENO "configure"
5124: /* confdefs.h. */
5125: _ACEOF
5126: cat confdefs.h >>conftest.$ac_ext
5127: cat >>conftest.$ac_ext <<_ACEOF
5128: /* end confdefs.h. */
5129: $ac_includes_default
5130: int
5131: main ()
5132: {
5133: static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5134: test_array [0] = 0
5135:
5136: ;
5137: return 0;
5138: }
5139: _ACEOF
5140: rm -f conftest.$ac_objext
5141: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5142: (eval $ac_compile) 2>&5
5143: ac_status=$?
5144: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145: (exit $ac_status); } &&
5146: { ac_try='test -s conftest.$ac_objext'
5147: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148: (eval $ac_try) 2>&5
5149: ac_status=$?
5150: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151: (exit $ac_status); }; }; then
5152: ac_hi=-1 ac_mid=-1
5153: while :; do
5154: cat >conftest.$ac_ext <<_ACEOF
5155: #line $LINENO "configure"
5156: /* confdefs.h. */
5157: _ACEOF
5158: cat confdefs.h >>conftest.$ac_ext
5159: cat >>conftest.$ac_ext <<_ACEOF
5160: /* end confdefs.h. */
5161: $ac_includes_default
5162: int
5163: main ()
5164: {
5165: static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5166: test_array [0] = 0
5167:
5168: ;
5169: return 0;
5170: }
5171: _ACEOF
5172: rm -f conftest.$ac_objext
5173: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5174: (eval $ac_compile) 2>&5
5175: ac_status=$?
5176: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177: (exit $ac_status); } &&
5178: { ac_try='test -s conftest.$ac_objext'
5179: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180: (eval $ac_try) 2>&5
5181: ac_status=$?
5182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183: (exit $ac_status); }; }; then
5184: ac_lo=$ac_mid; break
5185: else
5186: echo "$as_me: failed program was:" >&5
5187: sed 's/^/| /' conftest.$ac_ext >&5
5188:
5189: ac_hi=`expr '(' $ac_mid ')' - 1`
5190: if test $ac_mid -le $ac_hi; then
5191: ac_lo= ac_hi=
5192: break
5193: fi
5194: ac_mid=`expr 2 '*' $ac_mid`
5195: fi
5196: rm -f conftest.$ac_objext conftest.$ac_ext
5197: done
5198: else
5199: echo "$as_me: failed program was:" >&5
5200: sed 's/^/| /' conftest.$ac_ext >&5
5201:
5202: ac_lo= ac_hi=
5203: fi
5204: rm -f conftest.$ac_objext conftest.$ac_ext
5205: fi
5206: rm -f conftest.$ac_objext conftest.$ac_ext
5207: # Binary search between lo and hi bounds.
5208: while test "x$ac_lo" != "x$ac_hi"; do
5209: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5210: cat >conftest.$ac_ext <<_ACEOF
5211: #line $LINENO "configure"
5212: /* confdefs.h. */
5213: _ACEOF
5214: cat confdefs.h >>conftest.$ac_ext
5215: cat >>conftest.$ac_ext <<_ACEOF
5216: /* end confdefs.h. */
5217: $ac_includes_default
5218: int
5219: main ()
5220: {
5221: static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5222: test_array [0] = 0
5223:
5224: ;
5225: return 0;
5226: }
5227: _ACEOF
5228: rm -f conftest.$ac_objext
5229: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230: (eval $ac_compile) 2>&5
5231: ac_status=$?
5232: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233: (exit $ac_status); } &&
5234: { ac_try='test -s conftest.$ac_objext'
5235: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236: (eval $ac_try) 2>&5
5237: ac_status=$?
5238: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239: (exit $ac_status); }; }; then
5240: ac_hi=$ac_mid
5241: else
5242: echo "$as_me: failed program was:" >&5
5243: sed 's/^/| /' conftest.$ac_ext >&5
5244:
5245: ac_lo=`expr '(' $ac_mid ')' + 1`
5246: fi
5247: rm -f conftest.$ac_objext conftest.$ac_ext
5248: done
5249: case $ac_lo in
5250: ?*) ac_cv_sizeof_int=$ac_lo;;
5251: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5252: See \`config.log' for more details." >&5
5253: echo "$as_me: error: cannot compute sizeof (int), 77
5254: See \`config.log' for more details." >&2;}
5255: { (exit 1); exit 1; }; } ;;
5256: esac
5257: else
5258: if test "$cross_compiling" = yes; then
5259: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5260: See \`config.log' for more details." >&5
5261: echo "$as_me: error: cannot run test program while cross compiling
5262: See \`config.log' for more details." >&2;}
5263: { (exit 1); exit 1; }; }
5264: else
5265: cat >conftest.$ac_ext <<_ACEOF
5266: #line $LINENO "configure"
5267: /* confdefs.h. */
5268: _ACEOF
5269: cat confdefs.h >>conftest.$ac_ext
5270: cat >>conftest.$ac_ext <<_ACEOF
5271: /* end confdefs.h. */
5272: $ac_includes_default
5273: long longval () { return (long) (sizeof (int)); }
5274: unsigned long ulongval () { return (long) (sizeof (int)); }
5275: #include <stdio.h>
5276: #include <stdlib.h>
5277: int
5278: main ()
5279: {
5280:
5281: FILE *f = fopen ("conftest.val", "w");
5282: if (! f)
5283: exit (1);
5284: if (((long) (sizeof (int))) < 0)
5285: {
5286: long i = longval ();
5287: if (i != ((long) (sizeof (int))))
5288: exit (1);
5289: fprintf (f, "%ld\n", i);
5290: }
5291: else
5292: {
5293: unsigned long i = ulongval ();
5294: if (i != ((long) (sizeof (int))))
5295: exit (1);
5296: fprintf (f, "%lu\n", i);
5297: }
5298: exit (ferror (f) || fclose (f) != 0);
5299:
5300: ;
5301: return 0;
5302: }
5303: _ACEOF
5304: rm -f conftest$ac_exeext
5305: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5306: (eval $ac_link) 2>&5
5307: ac_status=$?
5308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5310: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311: (eval $ac_try) 2>&5
5312: ac_status=$?
5313: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314: (exit $ac_status); }; }; then
5315: ac_cv_sizeof_int=`cat conftest.val`
5316: else
5317: echo "$as_me: program exited with status $ac_status" >&5
5318: echo "$as_me: failed program was:" >&5
5319: sed 's/^/| /' conftest.$ac_ext >&5
5320:
5321: ( exit $ac_status )
5322: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5323: See \`config.log' for more details." >&5
5324: echo "$as_me: error: cannot compute sizeof (int), 77
5325: See \`config.log' for more details." >&2;}
5326: { (exit 1); exit 1; }; }
5327: fi
5328: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5329: fi
5330: fi
5331: rm -f conftest.val
5332: else
5333: ac_cv_sizeof_int=0
5334: fi
5335: fi
5336: echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5337: echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5338: cat >>confdefs.h <<_ACEOF
5339: #define SIZEOF_INT $ac_cv_sizeof_int
5340: _ACEOF
5341:
5342:
5343: echo "$as_me:$LINENO: checking for short" >&5
5344: echo $ECHO_N "checking for short... $ECHO_C" >&6
5345: if test "${ac_cv_type_short+set}" = set; then
5346: echo $ECHO_N "(cached) $ECHO_C" >&6
5347: else
5348: cat >conftest.$ac_ext <<_ACEOF
5349: #line $LINENO "configure"
5350: /* confdefs.h. */
5351: _ACEOF
5352: cat confdefs.h >>conftest.$ac_ext
5353: cat >>conftest.$ac_ext <<_ACEOF
5354: /* end confdefs.h. */
5355: $ac_includes_default
5356: int
5357: main ()
5358: {
5359: if ((short *) 0)
5360: return 0;
5361: if (sizeof (short))
5362: return 0;
5363: ;
5364: return 0;
5365: }
5366: _ACEOF
5367: rm -f conftest.$ac_objext
5368: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5369: (eval $ac_compile) 2>&5
5370: ac_status=$?
5371: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372: (exit $ac_status); } &&
5373: { ac_try='test -s conftest.$ac_objext'
5374: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375: (eval $ac_try) 2>&5
5376: ac_status=$?
5377: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378: (exit $ac_status); }; }; then
5379: ac_cv_type_short=yes
5380: else
5381: echo "$as_me: failed program was:" >&5
5382: sed 's/^/| /' conftest.$ac_ext >&5
5383:
5384: ac_cv_type_short=no
5385: fi
5386: rm -f conftest.$ac_objext conftest.$ac_ext
5387: fi
5388: echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5389: echo "${ECHO_T}$ac_cv_type_short" >&6
5390:
5391: echo "$as_me:$LINENO: checking size of short" >&5
5392: echo $ECHO_N "checking size of short... $ECHO_C" >&6
5393: if test "${ac_cv_sizeof_short+set}" = set; then
5394: echo $ECHO_N "(cached) $ECHO_C" >&6
5395: else
5396: if test "$ac_cv_type_short" = yes; then
5397: # The cast to unsigned long works around a bug in the HP C Compiler
5398: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5399: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5400: # This bug is HP SR number 8606223364.
5401: if test "$cross_compiling" = yes; then
5402: # Depending upon the size, compute the lo and hi bounds.
5403: cat >conftest.$ac_ext <<_ACEOF
5404: #line $LINENO "configure"
5405: /* confdefs.h. */
5406: _ACEOF
5407: cat confdefs.h >>conftest.$ac_ext
5408: cat >>conftest.$ac_ext <<_ACEOF
5409: /* end confdefs.h. */
5410: $ac_includes_default
5411: int
5412: main ()
5413: {
5414: static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5415: test_array [0] = 0
5416:
5417: ;
5418: return 0;
5419: }
5420: _ACEOF
5421: rm -f conftest.$ac_objext
5422: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423: (eval $ac_compile) 2>&5
5424: ac_status=$?
5425: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426: (exit $ac_status); } &&
5427: { ac_try='test -s conftest.$ac_objext'
5428: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429: (eval $ac_try) 2>&5
5430: ac_status=$?
5431: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432: (exit $ac_status); }; }; then
5433: ac_lo=0 ac_mid=0
5434: while :; do
5435: cat >conftest.$ac_ext <<_ACEOF
5436: #line $LINENO "configure"
5437: /* confdefs.h. */
5438: _ACEOF
5439: cat confdefs.h >>conftest.$ac_ext
5440: cat >>conftest.$ac_ext <<_ACEOF
5441: /* end confdefs.h. */
5442: $ac_includes_default
5443: int
5444: main ()
5445: {
5446: static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5447: test_array [0] = 0
5448:
5449: ;
5450: return 0;
5451: }
5452: _ACEOF
5453: rm -f conftest.$ac_objext
5454: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5455: (eval $ac_compile) 2>&5
5456: ac_status=$?
5457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458: (exit $ac_status); } &&
5459: { ac_try='test -s conftest.$ac_objext'
5460: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461: (eval $ac_try) 2>&5
5462: ac_status=$?
5463: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464: (exit $ac_status); }; }; then
5465: ac_hi=$ac_mid; break
5466: else
5467: echo "$as_me: failed program was:" >&5
5468: sed 's/^/| /' conftest.$ac_ext >&5
5469:
5470: ac_lo=`expr $ac_mid + 1`
5471: if test $ac_lo -le $ac_mid; then
5472: ac_lo= ac_hi=
5473: break
5474: fi
5475: ac_mid=`expr 2 '*' $ac_mid + 1`
5476: fi
5477: rm -f conftest.$ac_objext conftest.$ac_ext
5478: done
5479: else
5480: echo "$as_me: failed program was:" >&5
5481: sed 's/^/| /' conftest.$ac_ext >&5
5482:
5483: cat >conftest.$ac_ext <<_ACEOF
5484: #line $LINENO "configure"
5485: /* confdefs.h. */
5486: _ACEOF
5487: cat confdefs.h >>conftest.$ac_ext
5488: cat >>conftest.$ac_ext <<_ACEOF
5489: /* end confdefs.h. */
5490: $ac_includes_default
5491: int
5492: main ()
5493: {
5494: static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5495: test_array [0] = 0
5496:
5497: ;
5498: return 0;
5499: }
5500: _ACEOF
5501: rm -f conftest.$ac_objext
5502: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5503: (eval $ac_compile) 2>&5
5504: ac_status=$?
5505: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506: (exit $ac_status); } &&
5507: { ac_try='test -s conftest.$ac_objext'
5508: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509: (eval $ac_try) 2>&5
5510: ac_status=$?
5511: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512: (exit $ac_status); }; }; then
5513: ac_hi=-1 ac_mid=-1
5514: while :; do
5515: cat >conftest.$ac_ext <<_ACEOF
5516: #line $LINENO "configure"
5517: /* confdefs.h. */
5518: _ACEOF
5519: cat confdefs.h >>conftest.$ac_ext
5520: cat >>conftest.$ac_ext <<_ACEOF
5521: /* end confdefs.h. */
5522: $ac_includes_default
5523: int
5524: main ()
5525: {
5526: static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5527: test_array [0] = 0
5528:
5529: ;
5530: return 0;
5531: }
5532: _ACEOF
5533: rm -f conftest.$ac_objext
5534: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535: (eval $ac_compile) 2>&5
5536: ac_status=$?
5537: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538: (exit $ac_status); } &&
5539: { ac_try='test -s conftest.$ac_objext'
5540: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541: (eval $ac_try) 2>&5
5542: ac_status=$?
5543: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544: (exit $ac_status); }; }; then
5545: ac_lo=$ac_mid; break
5546: else
5547: echo "$as_me: failed program was:" >&5
5548: sed 's/^/| /' conftest.$ac_ext >&5
5549:
5550: ac_hi=`expr '(' $ac_mid ')' - 1`
5551: if test $ac_mid -le $ac_hi; then
5552: ac_lo= ac_hi=
5553: break
5554: fi
5555: ac_mid=`expr 2 '*' $ac_mid`
5556: fi
5557: rm -f conftest.$ac_objext conftest.$ac_ext
5558: done
5559: else
5560: echo "$as_me: failed program was:" >&5
5561: sed 's/^/| /' conftest.$ac_ext >&5
5562:
5563: ac_lo= ac_hi=
5564: fi
5565: rm -f conftest.$ac_objext conftest.$ac_ext
5566: fi
5567: rm -f conftest.$ac_objext conftest.$ac_ext
5568: # Binary search between lo and hi bounds.
5569: while test "x$ac_lo" != "x$ac_hi"; do
5570: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5571: cat >conftest.$ac_ext <<_ACEOF
5572: #line $LINENO "configure"
5573: /* confdefs.h. */
5574: _ACEOF
5575: cat confdefs.h >>conftest.$ac_ext
5576: cat >>conftest.$ac_ext <<_ACEOF
5577: /* end confdefs.h. */
5578: $ac_includes_default
5579: int
5580: main ()
5581: {
5582: static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5583: test_array [0] = 0
5584:
5585: ;
5586: return 0;
5587: }
5588: _ACEOF
5589: rm -f conftest.$ac_objext
5590: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5591: (eval $ac_compile) 2>&5
5592: ac_status=$?
5593: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594: (exit $ac_status); } &&
5595: { ac_try='test -s conftest.$ac_objext'
5596: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597: (eval $ac_try) 2>&5
5598: ac_status=$?
5599: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600: (exit $ac_status); }; }; then
5601: ac_hi=$ac_mid
5602: else
5603: echo "$as_me: failed program was:" >&5
5604: sed 's/^/| /' conftest.$ac_ext >&5
5605:
5606: ac_lo=`expr '(' $ac_mid ')' + 1`
5607: fi
5608: rm -f conftest.$ac_objext conftest.$ac_ext
5609: done
5610: case $ac_lo in
5611: ?*) ac_cv_sizeof_short=$ac_lo;;
5612: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5613: See \`config.log' for more details." >&5
5614: echo "$as_me: error: cannot compute sizeof (short), 77
5615: See \`config.log' for more details." >&2;}
5616: { (exit 1); exit 1; }; } ;;
5617: esac
5618: else
5619: if test "$cross_compiling" = yes; then
5620: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5621: See \`config.log' for more details." >&5
5622: echo "$as_me: error: cannot run test program while cross compiling
5623: See \`config.log' for more details." >&2;}
5624: { (exit 1); exit 1; }; }
5625: else
5626: cat >conftest.$ac_ext <<_ACEOF
5627: #line $LINENO "configure"
5628: /* confdefs.h. */
5629: _ACEOF
5630: cat confdefs.h >>conftest.$ac_ext
5631: cat >>conftest.$ac_ext <<_ACEOF
5632: /* end confdefs.h. */
5633: $ac_includes_default
5634: long longval () { return (long) (sizeof (short)); }
5635: unsigned long ulongval () { return (long) (sizeof (short)); }
5636: #include <stdio.h>
5637: #include <stdlib.h>
5638: int
5639: main ()
5640: {
5641:
5642: FILE *f = fopen ("conftest.val", "w");
5643: if (! f)
5644: exit (1);
5645: if (((long) (sizeof (short))) < 0)
5646: {
5647: long i = longval ();
5648: if (i != ((long) (sizeof (short))))
5649: exit (1);
5650: fprintf (f, "%ld\n", i);
5651: }
5652: else
5653: {
5654: unsigned long i = ulongval ();
5655: if (i != ((long) (sizeof (short))))
5656: exit (1);
5657: fprintf (f, "%lu\n", i);
5658: }
5659: exit (ferror (f) || fclose (f) != 0);
5660:
5661: ;
5662: return 0;
5663: }
5664: _ACEOF
5665: rm -f conftest$ac_exeext
5666: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5667: (eval $ac_link) 2>&5
5668: ac_status=$?
5669: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5671: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672: (eval $ac_try) 2>&5
5673: ac_status=$?
5674: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675: (exit $ac_status); }; }; then
5676: ac_cv_sizeof_short=`cat conftest.val`
5677: else
5678: echo "$as_me: program exited with status $ac_status" >&5
5679: echo "$as_me: failed program was:" >&5
5680: sed 's/^/| /' conftest.$ac_ext >&5
5681:
5682: ( exit $ac_status )
5683: { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5684: See \`config.log' for more details." >&5
5685: echo "$as_me: error: cannot compute sizeof (short), 77
5686: See \`config.log' for more details." >&2;}
5687: { (exit 1); exit 1; }; }
5688: fi
5689: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5690: fi
5691: fi
5692: rm -f conftest.val
5693: else
5694: ac_cv_sizeof_short=0
5695: fi
5696: fi
5697: echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5698: echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5699: cat >>confdefs.h <<_ACEOF
5700: #define SIZEOF_SHORT $ac_cv_sizeof_short
5701: _ACEOF
5702:
5703:
1.1.1.3 ! root 5704: echo "$as_me:$LINENO: checking for float" >&5
! 5705: echo $ECHO_N "checking for float... $ECHO_C" >&6
! 5706: if test "${ac_cv_type_float+set}" = set; then
1.1 root 5707: echo $ECHO_N "(cached) $ECHO_C" >&6
5708: else
5709: cat >conftest.$ac_ext <<_ACEOF
5710: #line $LINENO "configure"
5711: /* confdefs.h. */
5712: _ACEOF
5713: cat confdefs.h >>conftest.$ac_ext
5714: cat >>conftest.$ac_ext <<_ACEOF
5715: /* end confdefs.h. */
1.1.1.3 ! root 5716: $ac_includes_default
! 5717: int
! 5718: main ()
1.1 root 5719: {
1.1.1.3 ! root 5720: if ((float *) 0)
! 5721: return 0;
! 5722: if (sizeof (float))
! 5723: return 0;
! 5724: ;
! 5725: return 0;
1.1 root 5726: }
5727: _ACEOF
1.1.1.3 ! root 5728: rm -f conftest.$ac_objext
! 5729: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5730: (eval $ac_compile) 2>&5
1.1 root 5731: ac_status=$?
5732: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.3 ! root 5733: (exit $ac_status); } &&
! 5734: { ac_try='test -s conftest.$ac_objext'
1.1 root 5735: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736: (eval $ac_try) 2>&5
5737: ac_status=$?
5738: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739: (exit $ac_status); }; }; then
1.1.1.3 ! root 5740: ac_cv_type_float=yes
1.1 root 5741: else
1.1.1.3 ! root 5742: echo "$as_me: failed program was:" >&5
1.1 root 5743: sed 's/^/| /' conftest.$ac_ext >&5
5744:
1.1.1.3 ! root 5745: ac_cv_type_float=no
1.1 root 5746: fi
1.1.1.3 ! root 5747: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 root 5748: fi
1.1.1.3 ! root 5749: echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
! 5750: echo "${ECHO_T}$ac_cv_type_float" >&6
1.1 root 5751:
1.1.1.3 ! root 5752: echo "$as_me:$LINENO: checking size of float" >&5
! 5753: echo $ECHO_N "checking size of float... $ECHO_C" >&6
! 5754: if test "${ac_cv_sizeof_float+set}" = set; then
1.1 root 5755: echo $ECHO_N "(cached) $ECHO_C" >&6
5756: else
1.1.1.3 ! root 5757: if test "$ac_cv_type_float" = yes; then
! 5758: # The cast to unsigned long works around a bug in the HP C Compiler
! 5759: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 5760: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 5761: # This bug is HP SR number 8606223364.
1.1 root 5762: if test "$cross_compiling" = yes; then
1.1.1.3 ! root 5763: # Depending upon the size, compute the lo and hi bounds.
! 5764: cat >conftest.$ac_ext <<_ACEOF
1.1 root 5765: #line $LINENO "configure"
5766: /* confdefs.h. */
5767: _ACEOF
5768: cat confdefs.h >>conftest.$ac_ext
5769: cat >>conftest.$ac_ext <<_ACEOF
5770: /* end confdefs.h. */
1.1.1.3 ! root 5771: $ac_includes_default
! 5772: int
! 5773: main ()
1.1 root 5774: {
1.1.1.3 ! root 5775: static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
! 5776: test_array [0] = 0
! 5777:
! 5778: ;
! 5779: return 0;
! 5780: }
! 5781: _ACEOF
! 5782: rm -f conftest.$ac_objext
! 5783: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5784: (eval $ac_compile) 2>&5
! 5785: ac_status=$?
! 5786: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5787: (exit $ac_status); } &&
! 5788: { ac_try='test -s conftest.$ac_objext'
! 5789: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5790: (eval $ac_try) 2>&5
! 5791: ac_status=$?
! 5792: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5793: (exit $ac_status); }; }; then
! 5794: ac_lo=0 ac_mid=0
! 5795: while :; do
! 5796: cat >conftest.$ac_ext <<_ACEOF
! 5797: #line $LINENO "configure"
! 5798: /* confdefs.h. */
! 5799: _ACEOF
! 5800: cat confdefs.h >>conftest.$ac_ext
! 5801: cat >>conftest.$ac_ext <<_ACEOF
! 5802: /* end confdefs.h. */
! 5803: $ac_includes_default
! 5804: int
! 5805: main ()
! 5806: {
! 5807: static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
! 5808: test_array [0] = 0
! 5809:
! 5810: ;
! 5811: return 0;
! 5812: }
! 5813: _ACEOF
! 5814: rm -f conftest.$ac_objext
! 5815: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5816: (eval $ac_compile) 2>&5
! 5817: ac_status=$?
! 5818: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5819: (exit $ac_status); } &&
! 5820: { ac_try='test -s conftest.$ac_objext'
! 5821: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5822: (eval $ac_try) 2>&5
! 5823: ac_status=$?
! 5824: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5825: (exit $ac_status); }; }; then
! 5826: ac_hi=$ac_mid; break
! 5827: else
! 5828: echo "$as_me: failed program was:" >&5
! 5829: sed 's/^/| /' conftest.$ac_ext >&5
! 5830:
! 5831: ac_lo=`expr $ac_mid + 1`
! 5832: if test $ac_lo -le $ac_mid; then
! 5833: ac_lo= ac_hi=
! 5834: break
! 5835: fi
! 5836: ac_mid=`expr 2 '*' $ac_mid + 1`
! 5837: fi
! 5838: rm -f conftest.$ac_objext conftest.$ac_ext
! 5839: done
! 5840: else
! 5841: echo "$as_me: failed program was:" >&5
! 5842: sed 's/^/| /' conftest.$ac_ext >&5
! 5843:
! 5844: cat >conftest.$ac_ext <<_ACEOF
! 5845: #line $LINENO "configure"
! 5846: /* confdefs.h. */
! 5847: _ACEOF
! 5848: cat confdefs.h >>conftest.$ac_ext
! 5849: cat >>conftest.$ac_ext <<_ACEOF
! 5850: /* end confdefs.h. */
! 5851: $ac_includes_default
! 5852: int
! 5853: main ()
! 5854: {
! 5855: static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
! 5856: test_array [0] = 0
! 5857:
! 5858: ;
! 5859: return 0;
! 5860: }
! 5861: _ACEOF
! 5862: rm -f conftest.$ac_objext
! 5863: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5864: (eval $ac_compile) 2>&5
! 5865: ac_status=$?
! 5866: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5867: (exit $ac_status); } &&
! 5868: { ac_try='test -s conftest.$ac_objext'
! 5869: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5870: (eval $ac_try) 2>&5
! 5871: ac_status=$?
! 5872: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5873: (exit $ac_status); }; }; then
! 5874: ac_hi=-1 ac_mid=-1
! 5875: while :; do
! 5876: cat >conftest.$ac_ext <<_ACEOF
! 5877: #line $LINENO "configure"
! 5878: /* confdefs.h. */
! 5879: _ACEOF
! 5880: cat confdefs.h >>conftest.$ac_ext
! 5881: cat >>conftest.$ac_ext <<_ACEOF
! 5882: /* end confdefs.h. */
! 5883: $ac_includes_default
! 5884: int
! 5885: main ()
! 5886: {
! 5887: static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
! 5888: test_array [0] = 0
! 5889:
! 5890: ;
! 5891: return 0;
! 5892: }
! 5893: _ACEOF
! 5894: rm -f conftest.$ac_objext
! 5895: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5896: (eval $ac_compile) 2>&5
! 5897: ac_status=$?
! 5898: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5899: (exit $ac_status); } &&
! 5900: { ac_try='test -s conftest.$ac_objext'
! 5901: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5902: (eval $ac_try) 2>&5
! 5903: ac_status=$?
! 5904: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5905: (exit $ac_status); }; }; then
! 5906: ac_lo=$ac_mid; break
! 5907: else
! 5908: echo "$as_me: failed program was:" >&5
! 5909: sed 's/^/| /' conftest.$ac_ext >&5
! 5910:
! 5911: ac_hi=`expr '(' $ac_mid ')' - 1`
! 5912: if test $ac_mid -le $ac_hi; then
! 5913: ac_lo= ac_hi=
! 5914: break
! 5915: fi
! 5916: ac_mid=`expr 2 '*' $ac_mid`
! 5917: fi
! 5918: rm -f conftest.$ac_objext conftest.$ac_ext
! 5919: done
! 5920: else
! 5921: echo "$as_me: failed program was:" >&5
! 5922: sed 's/^/| /' conftest.$ac_ext >&5
! 5923:
! 5924: ac_lo= ac_hi=
! 5925: fi
! 5926: rm -f conftest.$ac_objext conftest.$ac_ext
! 5927: fi
! 5928: rm -f conftest.$ac_objext conftest.$ac_ext
! 5929: # Binary search between lo and hi bounds.
! 5930: while test "x$ac_lo" != "x$ac_hi"; do
! 5931: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 5932: cat >conftest.$ac_ext <<_ACEOF
! 5933: #line $LINENO "configure"
! 5934: /* confdefs.h. */
! 5935: _ACEOF
! 5936: cat confdefs.h >>conftest.$ac_ext
! 5937: cat >>conftest.$ac_ext <<_ACEOF
! 5938: /* end confdefs.h. */
! 5939: $ac_includes_default
! 5940: int
! 5941: main ()
! 5942: {
! 5943: static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
! 5944: test_array [0] = 0
! 5945:
! 5946: ;
! 5947: return 0;
! 5948: }
! 5949: _ACEOF
! 5950: rm -f conftest.$ac_objext
! 5951: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5952: (eval $ac_compile) 2>&5
! 5953: ac_status=$?
! 5954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5955: (exit $ac_status); } &&
! 5956: { ac_try='test -s conftest.$ac_objext'
! 5957: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5958: (eval $ac_try) 2>&5
! 5959: ac_status=$?
! 5960: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5961: (exit $ac_status); }; }; then
! 5962: ac_hi=$ac_mid
! 5963: else
! 5964: echo "$as_me: failed program was:" >&5
! 5965: sed 's/^/| /' conftest.$ac_ext >&5
! 5966:
! 5967: ac_lo=`expr '(' $ac_mid ')' + 1`
! 5968: fi
! 5969: rm -f conftest.$ac_objext conftest.$ac_ext
! 5970: done
! 5971: case $ac_lo in
! 5972: ?*) ac_cv_sizeof_float=$ac_lo;;
! 5973: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
! 5974: See \`config.log' for more details." >&5
! 5975: echo "$as_me: error: cannot compute sizeof (float), 77
! 5976: See \`config.log' for more details." >&2;}
! 5977: { (exit 1); exit 1; }; } ;;
! 5978: esac
! 5979: else
! 5980: if test "$cross_compiling" = yes; then
! 5981: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
! 5982: See \`config.log' for more details." >&5
! 5983: echo "$as_me: error: cannot run test program while cross compiling
! 5984: See \`config.log' for more details." >&2;}
! 5985: { (exit 1); exit 1; }; }
! 5986: else
! 5987: cat >conftest.$ac_ext <<_ACEOF
! 5988: #line $LINENO "configure"
! 5989: /* confdefs.h. */
! 5990: _ACEOF
! 5991: cat confdefs.h >>conftest.$ac_ext
! 5992: cat >>conftest.$ac_ext <<_ACEOF
! 5993: /* end confdefs.h. */
! 5994: $ac_includes_default
! 5995: long longval () { return (long) (sizeof (float)); }
! 5996: unsigned long ulongval () { return (long) (sizeof (float)); }
! 5997: #include <stdio.h>
! 5998: #include <stdlib.h>
! 5999: int
! 6000: main ()
! 6001: {
! 6002:
! 6003: FILE *f = fopen ("conftest.val", "w");
! 6004: if (! f)
! 6005: exit (1);
! 6006: if (((long) (sizeof (float))) < 0)
! 6007: {
! 6008: long i = longval ();
! 6009: if (i != ((long) (sizeof (float))))
! 6010: exit (1);
! 6011: fprintf (f, "%ld\n", i);
! 6012: }
! 6013: else
! 6014: {
! 6015: unsigned long i = ulongval ();
! 6016: if (i != ((long) (sizeof (float))))
! 6017: exit (1);
! 6018: fprintf (f, "%lu\n", i);
! 6019: }
! 6020: exit (ferror (f) || fclose (f) != 0);
! 6021:
! 6022: ;
! 6023: return 0;
! 6024: }
! 6025: _ACEOF
! 6026: rm -f conftest$ac_exeext
! 6027: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6028: (eval $ac_link) 2>&5
! 6029: ac_status=$?
! 6030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6031: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 6032: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6033: (eval $ac_try) 2>&5
! 6034: ac_status=$?
! 6035: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6036: (exit $ac_status); }; }; then
! 6037: ac_cv_sizeof_float=`cat conftest.val`
! 6038: else
! 6039: echo "$as_me: program exited with status $ac_status" >&5
! 6040: echo "$as_me: failed program was:" >&5
! 6041: sed 's/^/| /' conftest.$ac_ext >&5
! 6042:
! 6043: ( exit $ac_status )
! 6044: { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
! 6045: See \`config.log' for more details." >&5
! 6046: echo "$as_me: error: cannot compute sizeof (float), 77
! 6047: See \`config.log' for more details." >&2;}
! 6048: { (exit 1); exit 1; }; }
! 6049: fi
! 6050: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 6051: fi
! 6052: fi
! 6053: rm -f conftest.val
! 6054: else
! 6055: ac_cv_sizeof_float=0
! 6056: fi
! 6057: fi
! 6058: echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
! 6059: echo "${ECHO_T}$ac_cv_sizeof_float" >&6
! 6060: cat >>confdefs.h <<_ACEOF
! 6061: #define SIZEOF_FLOAT $ac_cv_sizeof_float
! 6062: _ACEOF
! 6063:
! 6064:
! 6065: echo "$as_me:$LINENO: checking for double" >&5
! 6066: echo $ECHO_N "checking for double... $ECHO_C" >&6
! 6067: if test "${ac_cv_type_double+set}" = set; then
! 6068: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6069: else
! 6070: cat >conftest.$ac_ext <<_ACEOF
! 6071: #line $LINENO "configure"
! 6072: /* confdefs.h. */
! 6073: _ACEOF
! 6074: cat confdefs.h >>conftest.$ac_ext
! 6075: cat >>conftest.$ac_ext <<_ACEOF
! 6076: /* end confdefs.h. */
! 6077: $ac_includes_default
! 6078: int
! 6079: main ()
! 6080: {
! 6081: if ((double *) 0)
! 6082: return 0;
! 6083: if (sizeof (double))
! 6084: return 0;
! 6085: ;
! 6086: return 0;
! 6087: }
! 6088: _ACEOF
! 6089: rm -f conftest.$ac_objext
! 6090: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6091: (eval $ac_compile) 2>&5
! 6092: ac_status=$?
! 6093: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6094: (exit $ac_status); } &&
! 6095: { ac_try='test -s conftest.$ac_objext'
! 6096: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6097: (eval $ac_try) 2>&5
! 6098: ac_status=$?
! 6099: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6100: (exit $ac_status); }; }; then
! 6101: ac_cv_type_double=yes
! 6102: else
! 6103: echo "$as_me: failed program was:" >&5
! 6104: sed 's/^/| /' conftest.$ac_ext >&5
! 6105:
! 6106: ac_cv_type_double=no
! 6107: fi
! 6108: rm -f conftest.$ac_objext conftest.$ac_ext
! 6109: fi
! 6110: echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
! 6111: echo "${ECHO_T}$ac_cv_type_double" >&6
! 6112:
! 6113: echo "$as_me:$LINENO: checking size of double" >&5
! 6114: echo $ECHO_N "checking size of double... $ECHO_C" >&6
! 6115: if test "${ac_cv_sizeof_double+set}" = set; then
! 6116: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6117: else
! 6118: if test "$ac_cv_type_double" = yes; then
! 6119: # The cast to unsigned long works around a bug in the HP C Compiler
! 6120: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 6121: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 6122: # This bug is HP SR number 8606223364.
! 6123: if test "$cross_compiling" = yes; then
! 6124: # Depending upon the size, compute the lo and hi bounds.
! 6125: cat >conftest.$ac_ext <<_ACEOF
! 6126: #line $LINENO "configure"
! 6127: /* confdefs.h. */
! 6128: _ACEOF
! 6129: cat confdefs.h >>conftest.$ac_ext
! 6130: cat >>conftest.$ac_ext <<_ACEOF
! 6131: /* end confdefs.h. */
! 6132: $ac_includes_default
! 6133: int
! 6134: main ()
! 6135: {
! 6136: static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
! 6137: test_array [0] = 0
! 6138:
! 6139: ;
! 6140: return 0;
! 6141: }
! 6142: _ACEOF
! 6143: rm -f conftest.$ac_objext
! 6144: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6145: (eval $ac_compile) 2>&5
! 6146: ac_status=$?
! 6147: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6148: (exit $ac_status); } &&
! 6149: { ac_try='test -s conftest.$ac_objext'
! 6150: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6151: (eval $ac_try) 2>&5
! 6152: ac_status=$?
! 6153: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6154: (exit $ac_status); }; }; then
! 6155: ac_lo=0 ac_mid=0
! 6156: while :; do
! 6157: cat >conftest.$ac_ext <<_ACEOF
! 6158: #line $LINENO "configure"
! 6159: /* confdefs.h. */
! 6160: _ACEOF
! 6161: cat confdefs.h >>conftest.$ac_ext
! 6162: cat >>conftest.$ac_ext <<_ACEOF
! 6163: /* end confdefs.h. */
! 6164: $ac_includes_default
! 6165: int
! 6166: main ()
! 6167: {
! 6168: static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
! 6169: test_array [0] = 0
! 6170:
! 6171: ;
! 6172: return 0;
! 6173: }
! 6174: _ACEOF
! 6175: rm -f conftest.$ac_objext
! 6176: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6177: (eval $ac_compile) 2>&5
! 6178: ac_status=$?
! 6179: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6180: (exit $ac_status); } &&
! 6181: { ac_try='test -s conftest.$ac_objext'
! 6182: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6183: (eval $ac_try) 2>&5
! 6184: ac_status=$?
! 6185: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6186: (exit $ac_status); }; }; then
! 6187: ac_hi=$ac_mid; break
! 6188: else
! 6189: echo "$as_me: failed program was:" >&5
! 6190: sed 's/^/| /' conftest.$ac_ext >&5
! 6191:
! 6192: ac_lo=`expr $ac_mid + 1`
! 6193: if test $ac_lo -le $ac_mid; then
! 6194: ac_lo= ac_hi=
! 6195: break
! 6196: fi
! 6197: ac_mid=`expr 2 '*' $ac_mid + 1`
! 6198: fi
! 6199: rm -f conftest.$ac_objext conftest.$ac_ext
! 6200: done
! 6201: else
! 6202: echo "$as_me: failed program was:" >&5
! 6203: sed 's/^/| /' conftest.$ac_ext >&5
! 6204:
! 6205: cat >conftest.$ac_ext <<_ACEOF
! 6206: #line $LINENO "configure"
! 6207: /* confdefs.h. */
! 6208: _ACEOF
! 6209: cat confdefs.h >>conftest.$ac_ext
! 6210: cat >>conftest.$ac_ext <<_ACEOF
! 6211: /* end confdefs.h. */
! 6212: $ac_includes_default
! 6213: int
! 6214: main ()
! 6215: {
! 6216: static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
! 6217: test_array [0] = 0
! 6218:
! 6219: ;
! 6220: return 0;
! 6221: }
! 6222: _ACEOF
! 6223: rm -f conftest.$ac_objext
! 6224: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6225: (eval $ac_compile) 2>&5
! 6226: ac_status=$?
! 6227: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6228: (exit $ac_status); } &&
! 6229: { ac_try='test -s conftest.$ac_objext'
! 6230: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6231: (eval $ac_try) 2>&5
! 6232: ac_status=$?
! 6233: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6234: (exit $ac_status); }; }; then
! 6235: ac_hi=-1 ac_mid=-1
! 6236: while :; do
! 6237: cat >conftest.$ac_ext <<_ACEOF
! 6238: #line $LINENO "configure"
! 6239: /* confdefs.h. */
! 6240: _ACEOF
! 6241: cat confdefs.h >>conftest.$ac_ext
! 6242: cat >>conftest.$ac_ext <<_ACEOF
! 6243: /* end confdefs.h. */
! 6244: $ac_includes_default
! 6245: int
! 6246: main ()
! 6247: {
! 6248: static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
! 6249: test_array [0] = 0
! 6250:
! 6251: ;
! 6252: return 0;
! 6253: }
! 6254: _ACEOF
! 6255: rm -f conftest.$ac_objext
! 6256: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6257: (eval $ac_compile) 2>&5
! 6258: ac_status=$?
! 6259: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6260: (exit $ac_status); } &&
! 6261: { ac_try='test -s conftest.$ac_objext'
! 6262: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6263: (eval $ac_try) 2>&5
! 6264: ac_status=$?
! 6265: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6266: (exit $ac_status); }; }; then
! 6267: ac_lo=$ac_mid; break
! 6268: else
! 6269: echo "$as_me: failed program was:" >&5
! 6270: sed 's/^/| /' conftest.$ac_ext >&5
! 6271:
! 6272: ac_hi=`expr '(' $ac_mid ')' - 1`
! 6273: if test $ac_mid -le $ac_hi; then
! 6274: ac_lo= ac_hi=
! 6275: break
! 6276: fi
! 6277: ac_mid=`expr 2 '*' $ac_mid`
! 6278: fi
! 6279: rm -f conftest.$ac_objext conftest.$ac_ext
! 6280: done
! 6281: else
! 6282: echo "$as_me: failed program was:" >&5
! 6283: sed 's/^/| /' conftest.$ac_ext >&5
! 6284:
! 6285: ac_lo= ac_hi=
! 6286: fi
! 6287: rm -f conftest.$ac_objext conftest.$ac_ext
! 6288: fi
! 6289: rm -f conftest.$ac_objext conftest.$ac_ext
! 6290: # Binary search between lo and hi bounds.
! 6291: while test "x$ac_lo" != "x$ac_hi"; do
! 6292: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 6293: cat >conftest.$ac_ext <<_ACEOF
! 6294: #line $LINENO "configure"
! 6295: /* confdefs.h. */
! 6296: _ACEOF
! 6297: cat confdefs.h >>conftest.$ac_ext
! 6298: cat >>conftest.$ac_ext <<_ACEOF
! 6299: /* end confdefs.h. */
! 6300: $ac_includes_default
! 6301: int
! 6302: main ()
! 6303: {
! 6304: static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
! 6305: test_array [0] = 0
! 6306:
! 6307: ;
! 6308: return 0;
! 6309: }
! 6310: _ACEOF
! 6311: rm -f conftest.$ac_objext
! 6312: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6313: (eval $ac_compile) 2>&5
! 6314: ac_status=$?
! 6315: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6316: (exit $ac_status); } &&
! 6317: { ac_try='test -s conftest.$ac_objext'
! 6318: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6319: (eval $ac_try) 2>&5
! 6320: ac_status=$?
! 6321: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6322: (exit $ac_status); }; }; then
! 6323: ac_hi=$ac_mid
! 6324: else
! 6325: echo "$as_me: failed program was:" >&5
! 6326: sed 's/^/| /' conftest.$ac_ext >&5
! 6327:
! 6328: ac_lo=`expr '(' $ac_mid ')' + 1`
! 6329: fi
! 6330: rm -f conftest.$ac_objext conftest.$ac_ext
! 6331: done
! 6332: case $ac_lo in
! 6333: ?*) ac_cv_sizeof_double=$ac_lo;;
! 6334: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
! 6335: See \`config.log' for more details." >&5
! 6336: echo "$as_me: error: cannot compute sizeof (double), 77
! 6337: See \`config.log' for more details." >&2;}
! 6338: { (exit 1); exit 1; }; } ;;
! 6339: esac
! 6340: else
! 6341: if test "$cross_compiling" = yes; then
! 6342: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
! 6343: See \`config.log' for more details." >&5
! 6344: echo "$as_me: error: cannot run test program while cross compiling
! 6345: See \`config.log' for more details." >&2;}
! 6346: { (exit 1); exit 1; }; }
! 6347: else
! 6348: cat >conftest.$ac_ext <<_ACEOF
! 6349: #line $LINENO "configure"
! 6350: /* confdefs.h. */
! 6351: _ACEOF
! 6352: cat confdefs.h >>conftest.$ac_ext
! 6353: cat >>conftest.$ac_ext <<_ACEOF
! 6354: /* end confdefs.h. */
! 6355: $ac_includes_default
! 6356: long longval () { return (long) (sizeof (double)); }
! 6357: unsigned long ulongval () { return (long) (sizeof (double)); }
! 6358: #include <stdio.h>
! 6359: #include <stdlib.h>
! 6360: int
! 6361: main ()
! 6362: {
! 6363:
! 6364: FILE *f = fopen ("conftest.val", "w");
! 6365: if (! f)
! 6366: exit (1);
! 6367: if (((long) (sizeof (double))) < 0)
! 6368: {
! 6369: long i = longval ();
! 6370: if (i != ((long) (sizeof (double))))
! 6371: exit (1);
! 6372: fprintf (f, "%ld\n", i);
! 6373: }
! 6374: else
! 6375: {
! 6376: unsigned long i = ulongval ();
! 6377: if (i != ((long) (sizeof (double))))
! 6378: exit (1);
! 6379: fprintf (f, "%lu\n", i);
! 6380: }
! 6381: exit (ferror (f) || fclose (f) != 0);
! 6382:
! 6383: ;
! 6384: return 0;
! 6385: }
! 6386: _ACEOF
! 6387: rm -f conftest$ac_exeext
! 6388: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6389: (eval $ac_link) 2>&5
! 6390: ac_status=$?
! 6391: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6392: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 6393: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6394: (eval $ac_try) 2>&5
! 6395: ac_status=$?
! 6396: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6397: (exit $ac_status); }; }; then
! 6398: ac_cv_sizeof_double=`cat conftest.val`
! 6399: else
! 6400: echo "$as_me: program exited with status $ac_status" >&5
! 6401: echo "$as_me: failed program was:" >&5
! 6402: sed 's/^/| /' conftest.$ac_ext >&5
! 6403:
! 6404: ( exit $ac_status )
! 6405: { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
! 6406: See \`config.log' for more details." >&5
! 6407: echo "$as_me: error: cannot compute sizeof (double), 77
! 6408: See \`config.log' for more details." >&2;}
! 6409: { (exit 1); exit 1; }; }
! 6410: fi
! 6411: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 6412: fi
! 6413: fi
! 6414: rm -f conftest.val
! 6415: else
! 6416: ac_cv_sizeof_double=0
! 6417: fi
! 6418: fi
! 6419: echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
! 6420: echo "${ECHO_T}$ac_cv_sizeof_double" >&6
! 6421: cat >>confdefs.h <<_ACEOF
! 6422: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
! 6423: _ACEOF
! 6424:
! 6425:
! 6426: if test $ac_cv_c_long_double = yes; then
! 6427: echo "$as_me:$LINENO: checking for long double" >&5
! 6428: echo $ECHO_N "checking for long double... $ECHO_C" >&6
! 6429: if test "${ac_cv_type_long_double+set}" = set; then
! 6430: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6431: else
! 6432: cat >conftest.$ac_ext <<_ACEOF
! 6433: #line $LINENO "configure"
! 6434: /* confdefs.h. */
! 6435: _ACEOF
! 6436: cat confdefs.h >>conftest.$ac_ext
! 6437: cat >>conftest.$ac_ext <<_ACEOF
! 6438: /* end confdefs.h. */
! 6439: $ac_includes_default
! 6440: int
! 6441: main ()
! 6442: {
! 6443: if ((long double *) 0)
! 6444: return 0;
! 6445: if (sizeof (long double))
! 6446: return 0;
! 6447: ;
! 6448: return 0;
! 6449: }
! 6450: _ACEOF
! 6451: rm -f conftest.$ac_objext
! 6452: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6453: (eval $ac_compile) 2>&5
! 6454: ac_status=$?
! 6455: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6456: (exit $ac_status); } &&
! 6457: { ac_try='test -s conftest.$ac_objext'
! 6458: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6459: (eval $ac_try) 2>&5
! 6460: ac_status=$?
! 6461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6462: (exit $ac_status); }; }; then
! 6463: ac_cv_type_long_double=yes
! 6464: else
! 6465: echo "$as_me: failed program was:" >&5
! 6466: sed 's/^/| /' conftest.$ac_ext >&5
! 6467:
! 6468: ac_cv_type_long_double=no
! 6469: fi
! 6470: rm -f conftest.$ac_objext conftest.$ac_ext
! 6471: fi
! 6472: echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
! 6473: echo "${ECHO_T}$ac_cv_type_long_double" >&6
! 6474:
! 6475: echo "$as_me:$LINENO: checking size of long double" >&5
! 6476: echo $ECHO_N "checking size of long double... $ECHO_C" >&6
! 6477: if test "${ac_cv_sizeof_long_double+set}" = set; then
! 6478: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6479: else
! 6480: if test "$ac_cv_type_long_double" = yes; then
! 6481: # The cast to unsigned long works around a bug in the HP C Compiler
! 6482: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 6483: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 6484: # This bug is HP SR number 8606223364.
! 6485: if test "$cross_compiling" = yes; then
! 6486: # Depending upon the size, compute the lo and hi bounds.
! 6487: cat >conftest.$ac_ext <<_ACEOF
! 6488: #line $LINENO "configure"
! 6489: /* confdefs.h. */
! 6490: _ACEOF
! 6491: cat confdefs.h >>conftest.$ac_ext
! 6492: cat >>conftest.$ac_ext <<_ACEOF
! 6493: /* end confdefs.h. */
! 6494: $ac_includes_default
! 6495: int
! 6496: main ()
! 6497: {
! 6498: static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
! 6499: test_array [0] = 0
! 6500:
! 6501: ;
! 6502: return 0;
! 6503: }
! 6504: _ACEOF
! 6505: rm -f conftest.$ac_objext
! 6506: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6507: (eval $ac_compile) 2>&5
! 6508: ac_status=$?
! 6509: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6510: (exit $ac_status); } &&
! 6511: { ac_try='test -s conftest.$ac_objext'
! 6512: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6513: (eval $ac_try) 2>&5
! 6514: ac_status=$?
! 6515: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6516: (exit $ac_status); }; }; then
! 6517: ac_lo=0 ac_mid=0
! 6518: while :; do
! 6519: cat >conftest.$ac_ext <<_ACEOF
! 6520: #line $LINENO "configure"
! 6521: /* confdefs.h. */
! 6522: _ACEOF
! 6523: cat confdefs.h >>conftest.$ac_ext
! 6524: cat >>conftest.$ac_ext <<_ACEOF
! 6525: /* end confdefs.h. */
! 6526: $ac_includes_default
! 6527: int
! 6528: main ()
! 6529: {
! 6530: static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
! 6531: test_array [0] = 0
! 6532:
! 6533: ;
! 6534: return 0;
! 6535: }
! 6536: _ACEOF
! 6537: rm -f conftest.$ac_objext
! 6538: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6539: (eval $ac_compile) 2>&5
! 6540: ac_status=$?
! 6541: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6542: (exit $ac_status); } &&
! 6543: { ac_try='test -s conftest.$ac_objext'
! 6544: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6545: (eval $ac_try) 2>&5
! 6546: ac_status=$?
! 6547: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6548: (exit $ac_status); }; }; then
! 6549: ac_hi=$ac_mid; break
! 6550: else
! 6551: echo "$as_me: failed program was:" >&5
! 6552: sed 's/^/| /' conftest.$ac_ext >&5
! 6553:
! 6554: ac_lo=`expr $ac_mid + 1`
! 6555: if test $ac_lo -le $ac_mid; then
! 6556: ac_lo= ac_hi=
! 6557: break
! 6558: fi
! 6559: ac_mid=`expr 2 '*' $ac_mid + 1`
! 6560: fi
! 6561: rm -f conftest.$ac_objext conftest.$ac_ext
! 6562: done
! 6563: else
! 6564: echo "$as_me: failed program was:" >&5
! 6565: sed 's/^/| /' conftest.$ac_ext >&5
! 6566:
! 6567: cat >conftest.$ac_ext <<_ACEOF
! 6568: #line $LINENO "configure"
! 6569: /* confdefs.h. */
! 6570: _ACEOF
! 6571: cat confdefs.h >>conftest.$ac_ext
! 6572: cat >>conftest.$ac_ext <<_ACEOF
! 6573: /* end confdefs.h. */
! 6574: $ac_includes_default
! 6575: int
! 6576: main ()
! 6577: {
! 6578: static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
! 6579: test_array [0] = 0
! 6580:
! 6581: ;
! 6582: return 0;
! 6583: }
! 6584: _ACEOF
! 6585: rm -f conftest.$ac_objext
! 6586: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6587: (eval $ac_compile) 2>&5
! 6588: ac_status=$?
! 6589: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6590: (exit $ac_status); } &&
! 6591: { ac_try='test -s conftest.$ac_objext'
! 6592: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6593: (eval $ac_try) 2>&5
! 6594: ac_status=$?
! 6595: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6596: (exit $ac_status); }; }; then
! 6597: ac_hi=-1 ac_mid=-1
! 6598: while :; do
! 6599: cat >conftest.$ac_ext <<_ACEOF
! 6600: #line $LINENO "configure"
! 6601: /* confdefs.h. */
! 6602: _ACEOF
! 6603: cat confdefs.h >>conftest.$ac_ext
! 6604: cat >>conftest.$ac_ext <<_ACEOF
! 6605: /* end confdefs.h. */
! 6606: $ac_includes_default
! 6607: int
! 6608: main ()
! 6609: {
! 6610: static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
! 6611: test_array [0] = 0
! 6612:
! 6613: ;
! 6614: return 0;
! 6615: }
! 6616: _ACEOF
! 6617: rm -f conftest.$ac_objext
! 6618: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6619: (eval $ac_compile) 2>&5
! 6620: ac_status=$?
! 6621: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6622: (exit $ac_status); } &&
! 6623: { ac_try='test -s conftest.$ac_objext'
! 6624: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6625: (eval $ac_try) 2>&5
! 6626: ac_status=$?
! 6627: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6628: (exit $ac_status); }; }; then
! 6629: ac_lo=$ac_mid; break
! 6630: else
! 6631: echo "$as_me: failed program was:" >&5
! 6632: sed 's/^/| /' conftest.$ac_ext >&5
! 6633:
! 6634: ac_hi=`expr '(' $ac_mid ')' - 1`
! 6635: if test $ac_mid -le $ac_hi; then
! 6636: ac_lo= ac_hi=
! 6637: break
! 6638: fi
! 6639: ac_mid=`expr 2 '*' $ac_mid`
! 6640: fi
! 6641: rm -f conftest.$ac_objext conftest.$ac_ext
! 6642: done
! 6643: else
! 6644: echo "$as_me: failed program was:" >&5
! 6645: sed 's/^/| /' conftest.$ac_ext >&5
! 6646:
! 6647: ac_lo= ac_hi=
! 6648: fi
! 6649: rm -f conftest.$ac_objext conftest.$ac_ext
! 6650: fi
! 6651: rm -f conftest.$ac_objext conftest.$ac_ext
! 6652: # Binary search between lo and hi bounds.
! 6653: while test "x$ac_lo" != "x$ac_hi"; do
! 6654: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 6655: cat >conftest.$ac_ext <<_ACEOF
! 6656: #line $LINENO "configure"
! 6657: /* confdefs.h. */
! 6658: _ACEOF
! 6659: cat confdefs.h >>conftest.$ac_ext
! 6660: cat >>conftest.$ac_ext <<_ACEOF
! 6661: /* end confdefs.h. */
! 6662: $ac_includes_default
! 6663: int
! 6664: main ()
! 6665: {
! 6666: static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
! 6667: test_array [0] = 0
! 6668:
! 6669: ;
! 6670: return 0;
! 6671: }
! 6672: _ACEOF
! 6673: rm -f conftest.$ac_objext
! 6674: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6675: (eval $ac_compile) 2>&5
! 6676: ac_status=$?
! 6677: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6678: (exit $ac_status); } &&
! 6679: { ac_try='test -s conftest.$ac_objext'
! 6680: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6681: (eval $ac_try) 2>&5
! 6682: ac_status=$?
! 6683: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6684: (exit $ac_status); }; }; then
! 6685: ac_hi=$ac_mid
! 6686: else
! 6687: echo "$as_me: failed program was:" >&5
! 6688: sed 's/^/| /' conftest.$ac_ext >&5
! 6689:
! 6690: ac_lo=`expr '(' $ac_mid ')' + 1`
! 6691: fi
! 6692: rm -f conftest.$ac_objext conftest.$ac_ext
! 6693: done
! 6694: case $ac_lo in
! 6695: ?*) ac_cv_sizeof_long_double=$ac_lo;;
! 6696: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
! 6697: See \`config.log' for more details." >&5
! 6698: echo "$as_me: error: cannot compute sizeof (long double), 77
! 6699: See \`config.log' for more details." >&2;}
! 6700: { (exit 1); exit 1; }; } ;;
! 6701: esac
! 6702: else
! 6703: if test "$cross_compiling" = yes; then
! 6704: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
! 6705: See \`config.log' for more details." >&5
! 6706: echo "$as_me: error: cannot run test program while cross compiling
! 6707: See \`config.log' for more details." >&2;}
! 6708: { (exit 1); exit 1; }; }
! 6709: else
! 6710: cat >conftest.$ac_ext <<_ACEOF
! 6711: #line $LINENO "configure"
! 6712: /* confdefs.h. */
! 6713: _ACEOF
! 6714: cat confdefs.h >>conftest.$ac_ext
! 6715: cat >>conftest.$ac_ext <<_ACEOF
! 6716: /* end confdefs.h. */
! 6717: $ac_includes_default
! 6718: long longval () { return (long) (sizeof (long double)); }
! 6719: unsigned long ulongval () { return (long) (sizeof (long double)); }
! 6720: #include <stdio.h>
! 6721: #include <stdlib.h>
! 6722: int
! 6723: main ()
! 6724: {
! 6725:
! 6726: FILE *f = fopen ("conftest.val", "w");
! 6727: if (! f)
! 6728: exit (1);
! 6729: if (((long) (sizeof (long double))) < 0)
! 6730: {
! 6731: long i = longval ();
! 6732: if (i != ((long) (sizeof (long double))))
! 6733: exit (1);
! 6734: fprintf (f, "%ld\n", i);
! 6735: }
! 6736: else
! 6737: {
! 6738: unsigned long i = ulongval ();
! 6739: if (i != ((long) (sizeof (long double))))
! 6740: exit (1);
! 6741: fprintf (f, "%lu\n", i);
! 6742: }
! 6743: exit (ferror (f) || fclose (f) != 0);
! 6744:
! 6745: ;
! 6746: return 0;
! 6747: }
! 6748: _ACEOF
! 6749: rm -f conftest$ac_exeext
! 6750: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6751: (eval $ac_link) 2>&5
! 6752: ac_status=$?
! 6753: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6754: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 6755: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6756: (eval $ac_try) 2>&5
! 6757: ac_status=$?
! 6758: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6759: (exit $ac_status); }; }; then
! 6760: ac_cv_sizeof_long_double=`cat conftest.val`
! 6761: else
! 6762: echo "$as_me: program exited with status $ac_status" >&5
! 6763: echo "$as_me: failed program was:" >&5
! 6764: sed 's/^/| /' conftest.$ac_ext >&5
! 6765:
! 6766: ( exit $ac_status )
! 6767: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
! 6768: See \`config.log' for more details." >&5
! 6769: echo "$as_me: error: cannot compute sizeof (long double), 77
! 6770: See \`config.log' for more details." >&2;}
! 6771: { (exit 1); exit 1; }; }
! 6772: fi
! 6773: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 6774: fi
! 6775: fi
! 6776: rm -f conftest.val
! 6777: else
! 6778: ac_cv_sizeof_long_double=0
! 6779: fi
! 6780: fi
! 6781: echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
! 6782: echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
! 6783: cat >>confdefs.h <<_ACEOF
! 6784: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
! 6785: _ACEOF
! 6786:
! 6787:
! 6788: fi
! 6789: if test $ac_cv_sizeof_int != 4 && test $ac_cv_sizeof_long != 4; then
! 6790: { { echo "$as_me:$LINENO: error: can't find a 32-bit type" >&5
! 6791: echo "$as_me: error: can't find a 32-bit type" >&2;}
! 6792: { (exit 1); exit 1; }; }
! 6793: fi
! 6794: if test $ac_cv_sizeof_int != 2 && test $ac_cv_sizeof_short != 2; then
! 6795: { { echo "$as_me:$LINENO: error: can't find a 16-bit type" >&5
! 6796: echo "$as_me: error: can't find a 16-bit type" >&2;}
! 6797: { (exit 1); exit 1; }; }
! 6798: fi
! 6799: echo "$as_me:$LINENO: checking minimum alignment of int32_t" >&5
! 6800: echo $ECHO_N "checking minimum alignment of int32_t... $ECHO_C" >&6
! 6801: if test "${ac_cv_alignof_int32_t+set}" = set; then
! 6802: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6803: else
! 6804: if test "$cross_compiling" = yes; then
! 6805: ac_cv_alignof_int32_t=32
! 6806: else
! 6807: cat >conftest.$ac_ext <<_ACEOF
! 6808: #line $LINENO "configure"
! 6809: /* confdefs.h. */
! 6810: _ACEOF
! 6811: cat confdefs.h >>conftest.$ac_ext
! 6812: cat >>conftest.$ac_ext <<_ACEOF
! 6813: /* end confdefs.h. */
! 6814: #include <stdio.h>
! 6815: #include <sys/types.h>
! 6816: main()
! 6817: {
! 6818: #if (SIZEOF_SHORT * 8) == 32
! 6819: #define _type short
! 6820: #elif (SIZEOF_INT * 8) == 32
! 6821: #define _type int
! 6822: #else
! 6823: #define _type long
! 6824: #endif
! 6825: char try_align_buffer[sizeof(_type) * 2];
! 6826: int min_align, try_align, status;
! 6827: _type value;
! 6828: FILE *f=fopen("conftestval", "w");
! 6829: if (!f) exit(1);
! 6830: min_align = sizeof(_type);
! 6831: for(try_align = sizeof(_type); try_align-- > 1;) {
! 6832: switch(fork()) {
! 6833: case -1: exit(1);
! 6834: case 0: value = *((_type *) &try_align_buffer[try_align]);
! 6835: fprintf(stderr, "%d\n", (int) value); exit(0);
! 6836: default: break;
! 6837: }
! 6838: wait(&status);
! 6839: if (!status && try_align < min_align) {
! 6840: min_align = try_align;
! 6841: }
! 6842: }
! 6843: fprintf(f, "%d\n", min_align * 8);
! 6844: exit(0);
! 6845: }
! 6846: _ACEOF
! 6847: rm -f conftest$ac_exeext
! 6848: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6849: (eval $ac_link) 2>&5
! 6850: ac_status=$?
! 6851: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6852: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 6853: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6854: (eval $ac_try) 2>&5
! 6855: ac_status=$?
! 6856: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6857: (exit $ac_status); }; }; then
! 6858: ac_cv_alignof_int32_t=`cat conftestval`
! 6859: else
! 6860: echo "$as_me: program exited with status $ac_status" >&5
! 6861: echo "$as_me: failed program was:" >&5
! 6862: sed 's/^/| /' conftest.$ac_ext >&5
! 6863:
! 6864: ( exit $ac_status )
! 6865: ac_cv_alignof_int32_t=32
! 6866: fi
! 6867: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 6868: fi
! 6869: fi
! 6870: ac_cv_alignof_int32_t=`expr $ac_cv_alignof_int32_t / 8`
! 6871: echo "$as_me:$LINENO: result: $ac_cv_alignof_int32_t" >&5
! 6872: echo "${ECHO_T}$ac_cv_alignof_int32_t" >&6
! 6873:
! 6874: cat >>confdefs.h <<_ACEOF
! 6875: #define ALIGNOF_INT32_T $ac_cv_alignof_int32_t
! 6876: _ACEOF
! 6877:
! 6878:
! 6879: echo "$as_me:$LINENO: checking minimum alignment of int16_t" >&5
! 6880: echo $ECHO_N "checking minimum alignment of int16_t... $ECHO_C" >&6
! 6881: if test "${ac_cv_alignof_int16_t+set}" = set; then
! 6882: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6883: else
! 6884: if test "$cross_compiling" = yes; then
! 6885: ac_cv_alignof_int16_t=16
! 6886: else
! 6887: cat >conftest.$ac_ext <<_ACEOF
! 6888: #line $LINENO "configure"
! 6889: /* confdefs.h. */
! 6890: _ACEOF
! 6891: cat confdefs.h >>conftest.$ac_ext
! 6892: cat >>conftest.$ac_ext <<_ACEOF
! 6893: /* end confdefs.h. */
! 6894: #include <stdio.h>
! 6895: #include <sys/types.h>
! 6896: main()
! 6897: {
! 6898: #if (SIZEOF_SHORT * 8) == 16
! 6899: #define _type short
! 6900: #elif (SIZEOF_INT * 8) == 16
! 6901: #define _type int
! 6902: #else
! 6903: #define _type long
! 6904: #endif
! 6905: char try_align_buffer[sizeof(_type) * 2];
! 6906: int min_align, try_align, status;
! 6907: _type value;
! 6908: FILE *f=fopen("conftestval", "w");
! 6909: if (!f) exit(1);
! 6910: min_align = sizeof(_type);
1.1 root 6911: for(try_align = sizeof(_type); try_align-- > 1;) {
6912: switch(fork()) {
6913: case -1: exit(1);
6914: case 0: value = *((_type *) &try_align_buffer[try_align]);
6915: fprintf(stderr, "%d\n", (int) value); exit(0);
6916: default: break;
6917: }
1.1.1.3 ! root 6918: wait(&status);
! 6919: if (!status && try_align < min_align) {
! 6920: min_align = try_align;
! 6921: }
! 6922: }
! 6923: fprintf(f, "%d\n", min_align * 8);
! 6924: exit(0);
! 6925: }
! 6926: _ACEOF
! 6927: rm -f conftest$ac_exeext
! 6928: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6929: (eval $ac_link) 2>&5
! 6930: ac_status=$?
! 6931: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6932: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 6933: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6934: (eval $ac_try) 2>&5
! 6935: ac_status=$?
! 6936: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6937: (exit $ac_status); }; }; then
! 6938: ac_cv_alignof_int16_t=`cat conftestval`
! 6939: else
! 6940: echo "$as_me: program exited with status $ac_status" >&5
! 6941: echo "$as_me: failed program was:" >&5
! 6942: sed 's/^/| /' conftest.$ac_ext >&5
! 6943:
! 6944: ( exit $ac_status )
! 6945: ac_cv_alignof_int16_t=16
! 6946: fi
! 6947: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 6948: fi
! 6949: fi
! 6950: ac_cv_alignof_int16_t=`expr $ac_cv_alignof_int16_t / 8`
! 6951: echo "$as_me:$LINENO: result: $ac_cv_alignof_int16_t" >&5
! 6952: echo "${ECHO_T}$ac_cv_alignof_int16_t" >&6
! 6953:
! 6954: cat >>confdefs.h <<_ACEOF
! 6955: #define ALIGNOF_INT16_T $ac_cv_alignof_int16_t
! 6956: _ACEOF
! 6957:
! 6958:
! 6959: echo "$as_me:$LINENO: checking maximum shift count for int8_t" >&5
! 6960: echo $ECHO_N "checking maximum shift count for int8_t... $ECHO_C" >&6
! 6961: if test "${ac_cv_shiftmax_int8_t+set}" = set; then
! 6962: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6963: else
! 6964: if test "$cross_compiling" = yes; then
! 6965: ac_cv_shiftmax_int8_t=8
! 6966: else
! 6967: cat >conftest.$ac_ext <<_ACEOF
! 6968: #line $LINENO "configure"
! 6969: /* confdefs.h. */
! 6970: _ACEOF
! 6971: cat confdefs.h >>conftest.$ac_ext
! 6972: cat >>conftest.$ac_ext <<_ACEOF
! 6973: /* end confdefs.h. */
! 6974: #include <stdio.h>
! 6975: #include <sys/types.h>
! 6976: main()
! 6977: {
! 6978: #if 8 == 8
! 6979: #define _type char
! 6980: #elif (SIZEOF_SHORT * 8) == 8
! 6981: #define _type short
! 6982: #elif (SIZEOF_INT * 8) == 8
! 6983: #define _type int
! 6984: #elif (SIZEOF_LONG * 8) == 8
! 6985: #define _type long
! 6986: #endif
! 6987: _type center, right, left;
! 6988: unsigned int shift, max_shift;
! 6989: FILE *f=fopen("conftestval", "w");
! 6990: if (!f) exit(1);
! 6991: center = 3 << ((sizeof(center) * 4) - 1);
! 6992: max_shift = 2047;
! 6993: for (shift = (sizeof(center) * 8);
! 6994: shift < 2048;
! 6995: shift <<= 1) {
! 6996: right = (center >> shift);
! 6997: left = (center << shift);
! 6998: if (right != 0
! 6999: || left != 0) {
! 7000: right = (center >> (shift | 1));
! 7001: left = (center << (shift | 1));
! 7002: max_shift = ((right == (center >> 1)
! 7003: && left == (center << 1))
! 7004: ? shift - 1
! 7005: : (sizeof(center) * 8) - 1);
! 7006: break;
! 7007: }
! 7008: }
! 7009: fprintf(f, "%d\n", max_shift + 1);
! 7010: exit(0);
! 7011: }
! 7012: _ACEOF
! 7013: rm -f conftest$ac_exeext
! 7014: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7015: (eval $ac_link) 2>&5
! 7016: ac_status=$?
! 7017: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7018: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 7019: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7020: (eval $ac_try) 2>&5
! 7021: ac_status=$?
! 7022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7023: (exit $ac_status); }; }; then
! 7024: ac_cv_shiftmax_int8_t=`cat conftestval`
! 7025: else
! 7026: echo "$as_me: program exited with status $ac_status" >&5
! 7027: echo "$as_me: failed program was:" >&5
! 7028: sed 's/^/| /' conftest.$ac_ext >&5
! 7029:
! 7030: ( exit $ac_status )
! 7031: ac_cv_shiftmax_int8_t=8
! 7032: fi
! 7033: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 7034: fi
! 7035: fi
! 7036: ac_cv_shiftmax_int8_t=`expr $ac_cv_shiftmax_int8_t - 1`
! 7037: echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int8_t" >&5
! 7038: echo "${ECHO_T}$ac_cv_shiftmax_int8_t" >&6
! 7039:
! 7040: cat >>confdefs.h <<_ACEOF
! 7041: #define SHIFTMAX_INT8_T $ac_cv_shiftmax_int8_t
! 7042: _ACEOF
! 7043:
! 7044:
! 7045: echo "$as_me:$LINENO: checking maximum shift count for int16_t" >&5
! 7046: echo $ECHO_N "checking maximum shift count for int16_t... $ECHO_C" >&6
! 7047: if test "${ac_cv_shiftmax_int16_t+set}" = set; then
! 7048: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7049: else
! 7050: if test "$cross_compiling" = yes; then
! 7051: ac_cv_shiftmax_int16_t=16
! 7052: else
! 7053: cat >conftest.$ac_ext <<_ACEOF
! 7054: #line $LINENO "configure"
! 7055: /* confdefs.h. */
! 7056: _ACEOF
! 7057: cat confdefs.h >>conftest.$ac_ext
! 7058: cat >>conftest.$ac_ext <<_ACEOF
! 7059: /* end confdefs.h. */
! 7060: #include <stdio.h>
! 7061: #include <sys/types.h>
! 7062: main()
! 7063: {
! 7064: #if 8 == 16
! 7065: #define _type char
! 7066: #elif (SIZEOF_SHORT * 8) == 16
! 7067: #define _type short
! 7068: #elif (SIZEOF_INT * 8) == 16
! 7069: #define _type int
! 7070: #elif (SIZEOF_LONG * 8) == 16
! 7071: #define _type long
! 7072: #endif
! 7073: _type center, right, left;
! 7074: unsigned int shift, max_shift;
! 7075: FILE *f=fopen("conftestval", "w");
! 7076: if (!f) exit(1);
! 7077: center = 3 << ((sizeof(center) * 4) - 1);
! 7078: max_shift = 2047;
! 7079: for (shift = (sizeof(center) * 8);
! 7080: shift < 2048;
! 7081: shift <<= 1) {
! 7082: right = (center >> shift);
! 7083: left = (center << shift);
! 7084: if (right != 0
! 7085: || left != 0) {
! 7086: right = (center >> (shift | 1));
! 7087: left = (center << (shift | 1));
! 7088: max_shift = ((right == (center >> 1)
! 7089: && left == (center << 1))
! 7090: ? shift - 1
! 7091: : (sizeof(center) * 8) - 1);
! 7092: break;
! 7093: }
! 7094: }
! 7095: fprintf(f, "%d\n", max_shift + 1);
! 7096: exit(0);
! 7097: }
! 7098: _ACEOF
! 7099: rm -f conftest$ac_exeext
! 7100: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7101: (eval $ac_link) 2>&5
! 7102: ac_status=$?
! 7103: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7104: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 7105: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7106: (eval $ac_try) 2>&5
! 7107: ac_status=$?
! 7108: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7109: (exit $ac_status); }; }; then
! 7110: ac_cv_shiftmax_int16_t=`cat conftestval`
! 7111: else
! 7112: echo "$as_me: program exited with status $ac_status" >&5
! 7113: echo "$as_me: failed program was:" >&5
! 7114: sed 's/^/| /' conftest.$ac_ext >&5
! 7115:
! 7116: ( exit $ac_status )
! 7117: ac_cv_shiftmax_int16_t=16
! 7118: fi
! 7119: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 7120: fi
! 7121: fi
! 7122: ac_cv_shiftmax_int16_t=`expr $ac_cv_shiftmax_int16_t - 1`
! 7123: echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int16_t" >&5
! 7124: echo "${ECHO_T}$ac_cv_shiftmax_int16_t" >&6
! 7125:
! 7126: cat >>confdefs.h <<_ACEOF
! 7127: #define SHIFTMAX_INT16_T $ac_cv_shiftmax_int16_t
! 7128: _ACEOF
! 7129:
! 7130:
! 7131: echo "$as_me:$LINENO: checking maximum shift count for int32_t" >&5
! 7132: echo $ECHO_N "checking maximum shift count for int32_t... $ECHO_C" >&6
! 7133: if test "${ac_cv_shiftmax_int32_t+set}" = set; then
! 7134: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7135: else
! 7136: if test "$cross_compiling" = yes; then
! 7137: ac_cv_shiftmax_int32_t=32
! 7138: else
! 7139: cat >conftest.$ac_ext <<_ACEOF
! 7140: #line $LINENO "configure"
! 7141: /* confdefs.h. */
! 7142: _ACEOF
! 7143: cat confdefs.h >>conftest.$ac_ext
! 7144: cat >>conftest.$ac_ext <<_ACEOF
! 7145: /* end confdefs.h. */
! 7146: #include <stdio.h>
! 7147: #include <sys/types.h>
! 7148: main()
! 7149: {
! 7150: #if 8 == 32
! 7151: #define _type char
! 7152: #elif (SIZEOF_SHORT * 8) == 32
! 7153: #define _type short
! 7154: #elif (SIZEOF_INT * 8) == 32
! 7155: #define _type int
! 7156: #elif (SIZEOF_LONG * 8) == 32
! 7157: #define _type long
! 7158: #endif
! 7159: _type center, right, left;
! 7160: unsigned int shift, max_shift;
! 7161: FILE *f=fopen("conftestval", "w");
! 7162: if (!f) exit(1);
! 7163: center = 3 << ((sizeof(center) * 4) - 1);
! 7164: max_shift = 2047;
! 7165: for (shift = (sizeof(center) * 8);
! 7166: shift < 2048;
! 7167: shift <<= 1) {
! 7168: right = (center >> shift);
! 7169: left = (center << shift);
! 7170: if (right != 0
! 7171: || left != 0) {
! 7172: right = (center >> (shift | 1));
! 7173: left = (center << (shift | 1));
! 7174: max_shift = ((right == (center >> 1)
! 7175: && left == (center << 1))
! 7176: ? shift - 1
! 7177: : (sizeof(center) * 8) - 1);
! 7178: break;
! 7179: }
! 7180: }
! 7181: fprintf(f, "%d\n", max_shift + 1);
! 7182: exit(0);
! 7183: }
! 7184: _ACEOF
! 7185: rm -f conftest$ac_exeext
! 7186: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7187: (eval $ac_link) 2>&5
! 7188: ac_status=$?
! 7189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7190: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 7191: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7192: (eval $ac_try) 2>&5
! 7193: ac_status=$?
! 7194: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7195: (exit $ac_status); }; }; then
! 7196: ac_cv_shiftmax_int32_t=`cat conftestval`
! 7197: else
! 7198: echo "$as_me: program exited with status $ac_status" >&5
! 7199: echo "$as_me: failed program was:" >&5
! 7200: sed 's/^/| /' conftest.$ac_ext >&5
! 7201:
! 7202: ( exit $ac_status )
! 7203: ac_cv_shiftmax_int32_t=32
! 7204: fi
! 7205: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 7206: fi
! 7207: fi
! 7208: ac_cv_shiftmax_int32_t=`expr $ac_cv_shiftmax_int32_t - 1`
! 7209: echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int32_t" >&5
! 7210: echo "${ECHO_T}$ac_cv_shiftmax_int32_t" >&6
! 7211:
! 7212: cat >>confdefs.h <<_ACEOF
! 7213: #define SHIFTMAX_INT32_T $ac_cv_shiftmax_int32_t
! 7214: _ACEOF
! 7215:
! 7216:
! 7217: echo "$as_me:$LINENO: checking for arithmetic right shifts of int8_t" >&5
! 7218: echo $ECHO_N "checking for arithmetic right shifts of int8_t... $ECHO_C" >&6
! 7219: if test "${ac_cv_shiftsigned_int8_t+set}" = set; then
! 7220: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7221: else
! 7222: if test "$cross_compiling" = yes; then
! 7223: ac_cv_shiftsigned_int8_t=0
! 7224: else
! 7225: cat >conftest.$ac_ext <<_ACEOF
! 7226: #line $LINENO "configure"
! 7227: /* confdefs.h. */
! 7228: _ACEOF
! 7229: cat confdefs.h >>conftest.$ac_ext
! 7230: cat >>conftest.$ac_ext <<_ACEOF
! 7231: /* end confdefs.h. */
! 7232: #include <stdio.h>
! 7233: #include <sys/types.h>
! 7234: main()
! 7235: {
! 7236: #if 8 == 8
! 7237: #define _type signed char
! 7238: #elif (SIZEOF_SHORT * 8) == 8
! 7239: #define _type signed short
! 7240: #elif (SIZEOF_INT * 8) == 8
! 7241: #define _type signed int
! 7242: #elif (SIZEOF_LONG * 8) == 8
! 7243: #define _type signed long
! 7244: #endif
! 7245: _type prime, shifted, dividend;
! 7246: unsigned int shift, divides;
! 7247: FILE *f;
! 7248:
! 7249: f=fopen("conftestval", "w");
! 7250: if (!f) exit(1);
! 7251:
! 7252: /* set value to the largest magnitude negative prime that it
! 7253: will hold: */
! 7254: #if 8 == 8
! 7255: prime = -127;
! 7256: #elif 8 == 16
! 7257: prime = -32749;
! 7258: #elif 8 == 32
! 7259: prime = -2147483647;
! 7260: #elif 8 == 64
! 7261: /* this is a crafty way of constructing -9223372036854775783,
! 7262: which is 0x8000000000000000 - 0x19, without having to know
! 7263: any compiler suffix for 64-bit literals: */
! 7264: prime = 1;
! 7265: prime <<= (8 - 2);
! 7266: prime = -prime;
! 7267: prime *= 2;
! 7268: prime -= 0x19;
! 7269: #else
! 7270: #error "need another prime"
! 7271: #endif
! 7272:
! 7273: /* all right shifts from a single bit up to SHIFTMAX_INT8_T
! 7274: must be arithmetic, otherwise shifts aren't arithmetic: */
! 7275: for (shift = 1;
! 7276: shift <= SHIFTMAX_INT8_T;
! 7277: shift++) {
! 7278: shifted = prime >> shift;
! 7279: dividend = prime;
! 7280: divides = 0;
! 7281: do {
! 7282: dividend &= ~((_type) 1); /* guarantee no remainder */
! 7283: dividend /= 2;
! 7284: } while (++divides < shift);
! 7285: if (shifted != dividend) {
! 7286: break;
! 7287: }
! 7288: }
! 7289:
! 7290: fprintf(f, "%d\n", (shift > SHIFTMAX_INT8_T ? 1 : 0));
! 7291: exit(0);
! 7292: }
! 7293: _ACEOF
! 7294: rm -f conftest$ac_exeext
! 7295: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7296: (eval $ac_link) 2>&5
! 7297: ac_status=$?
! 7298: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7299: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 7300: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7301: (eval $ac_try) 2>&5
! 7302: ac_status=$?
! 7303: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7304: (exit $ac_status); }; }; then
! 7305: ac_cv_shiftsigned_int8_t=`cat conftestval`
! 7306: else
! 7307: echo "$as_me: program exited with status $ac_status" >&5
! 7308: echo "$as_me: failed program was:" >&5
! 7309: sed 's/^/| /' conftest.$ac_ext >&5
! 7310:
! 7311: ( exit $ac_status )
! 7312: ac_cv_shiftsigned_int8_t=0
! 7313: fi
! 7314: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 7315: fi
! 7316: fi
! 7317: if test $ac_cv_shiftsigned_int8_t = 1; then
! 7318: echo "$as_me:$LINENO: result: yes" >&5
! 7319: echo "${ECHO_T}yes" >&6
! 7320:
! 7321: cat >>confdefs.h <<_ACEOF
! 7322: #define SHIFTSIGNED_INT8_T
! 7323: _ACEOF
! 7324:
! 7325: else
! 7326: echo "$as_me:$LINENO: result: no" >&5
! 7327: echo "${ECHO_T}no" >&6
! 7328: fi
! 7329:
! 7330: echo "$as_me:$LINENO: checking for arithmetic right shifts of int16_t" >&5
! 7331: echo $ECHO_N "checking for arithmetic right shifts of int16_t... $ECHO_C" >&6
! 7332: if test "${ac_cv_shiftsigned_int16_t+set}" = set; then
! 7333: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7334: else
! 7335: if test "$cross_compiling" = yes; then
! 7336: ac_cv_shiftsigned_int16_t=0
! 7337: else
! 7338: cat >conftest.$ac_ext <<_ACEOF
! 7339: #line $LINENO "configure"
! 7340: /* confdefs.h. */
! 7341: _ACEOF
! 7342: cat confdefs.h >>conftest.$ac_ext
! 7343: cat >>conftest.$ac_ext <<_ACEOF
! 7344: /* end confdefs.h. */
! 7345: #include <stdio.h>
! 7346: #include <sys/types.h>
! 7347: main()
! 7348: {
! 7349: #if 8 == 16
! 7350: #define _type signed char
! 7351: #elif (SIZEOF_SHORT * 8) == 16
! 7352: #define _type signed short
! 7353: #elif (SIZEOF_INT * 8) == 16
! 7354: #define _type signed int
! 7355: #elif (SIZEOF_LONG * 8) == 16
! 7356: #define _type signed long
! 7357: #endif
! 7358: _type prime, shifted, dividend;
! 7359: unsigned int shift, divides;
! 7360: FILE *f;
! 7361:
! 7362: f=fopen("conftestval", "w");
! 7363: if (!f) exit(1);
! 7364:
! 7365: /* set value to the largest magnitude negative prime that it
! 7366: will hold: */
! 7367: #if 16 == 8
! 7368: prime = -127;
! 7369: #elif 16 == 16
! 7370: prime = -32749;
! 7371: #elif 16 == 32
! 7372: prime = -2147483647;
! 7373: #elif 16 == 64
! 7374: /* this is a crafty way of constructing -9223372036854775783,
! 7375: which is 0x8000000000000000 - 0x19, without having to know
! 7376: any compiler suffix for 64-bit literals: */
! 7377: prime = 1;
! 7378: prime <<= (16 - 2);
! 7379: prime = -prime;
! 7380: prime *= 2;
! 7381: prime -= 0x19;
! 7382: #else
! 7383: #error "need another prime"
! 7384: #endif
! 7385:
! 7386: /* all right shifts from a single bit up to SHIFTMAX_INT16_T
! 7387: must be arithmetic, otherwise shifts aren't arithmetic: */
! 7388: for (shift = 1;
! 7389: shift <= SHIFTMAX_INT16_T;
! 7390: shift++) {
! 7391: shifted = prime >> shift;
! 7392: dividend = prime;
! 7393: divides = 0;
! 7394: do {
! 7395: dividend &= ~((_type) 1); /* guarantee no remainder */
! 7396: dividend /= 2;
! 7397: } while (++divides < shift);
! 7398: if (shifted != dividend) {
! 7399: break;
! 7400: }
! 7401: }
! 7402:
! 7403: fprintf(f, "%d\n", (shift > SHIFTMAX_INT16_T ? 1 : 0));
! 7404: exit(0);
! 7405: }
! 7406: _ACEOF
! 7407: rm -f conftest$ac_exeext
! 7408: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7409: (eval $ac_link) 2>&5
! 7410: ac_status=$?
! 7411: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7412: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 7413: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7414: (eval $ac_try) 2>&5
! 7415: ac_status=$?
! 7416: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7417: (exit $ac_status); }; }; then
! 7418: ac_cv_shiftsigned_int16_t=`cat conftestval`
! 7419: else
! 7420: echo "$as_me: program exited with status $ac_status" >&5
! 7421: echo "$as_me: failed program was:" >&5
! 7422: sed 's/^/| /' conftest.$ac_ext >&5
! 7423:
! 7424: ( exit $ac_status )
! 7425: ac_cv_shiftsigned_int16_t=0
! 7426: fi
! 7427: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 7428: fi
! 7429: fi
! 7430: if test $ac_cv_shiftsigned_int16_t = 1; then
! 7431: echo "$as_me:$LINENO: result: yes" >&5
! 7432: echo "${ECHO_T}yes" >&6
! 7433:
! 7434: cat >>confdefs.h <<_ACEOF
! 7435: #define SHIFTSIGNED_INT16_T
! 7436: _ACEOF
! 7437:
! 7438: else
! 7439: echo "$as_me:$LINENO: result: no" >&5
! 7440: echo "${ECHO_T}no" >&6
! 7441: fi
! 7442:
! 7443: echo "$as_me:$LINENO: checking for arithmetic right shifts of int32_t" >&5
! 7444: echo $ECHO_N "checking for arithmetic right shifts of int32_t... $ECHO_C" >&6
! 7445: if test "${ac_cv_shiftsigned_int32_t+set}" = set; then
! 7446: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7447: else
! 7448: if test "$cross_compiling" = yes; then
! 7449: ac_cv_shiftsigned_int32_t=0
! 7450: else
! 7451: cat >conftest.$ac_ext <<_ACEOF
! 7452: #line $LINENO "configure"
! 7453: /* confdefs.h. */
! 7454: _ACEOF
! 7455: cat confdefs.h >>conftest.$ac_ext
! 7456: cat >>conftest.$ac_ext <<_ACEOF
! 7457: /* end confdefs.h. */
! 7458: #include <stdio.h>
! 7459: #include <sys/types.h>
! 7460: main()
! 7461: {
! 7462: #if 8 == 32
! 7463: #define _type signed char
! 7464: #elif (SIZEOF_SHORT * 8) == 32
! 7465: #define _type signed short
! 7466: #elif (SIZEOF_INT * 8) == 32
! 7467: #define _type signed int
! 7468: #elif (SIZEOF_LONG * 8) == 32
! 7469: #define _type signed long
! 7470: #endif
! 7471: _type prime, shifted, dividend;
! 7472: unsigned int shift, divides;
! 7473: FILE *f;
! 7474:
! 7475: f=fopen("conftestval", "w");
! 7476: if (!f) exit(1);
! 7477:
! 7478: /* set value to the largest magnitude negative prime that it
! 7479: will hold: */
! 7480: #if 32 == 8
! 7481: prime = -127;
! 7482: #elif 32 == 16
! 7483: prime = -32749;
! 7484: #elif 32 == 32
! 7485: prime = -2147483647;
! 7486: #elif 32 == 64
! 7487: /* this is a crafty way of constructing -9223372036854775783,
! 7488: which is 0x8000000000000000 - 0x19, without having to know
! 7489: any compiler suffix for 64-bit literals: */
! 7490: prime = 1;
! 7491: prime <<= (32 - 2);
! 7492: prime = -prime;
! 7493: prime *= 2;
! 7494: prime -= 0x19;
! 7495: #else
! 7496: #error "need another prime"
! 7497: #endif
! 7498:
! 7499: /* all right shifts from a single bit up to SHIFTMAX_INT32_T
! 7500: must be arithmetic, otherwise shifts aren't arithmetic: */
! 7501: for (shift = 1;
! 7502: shift <= SHIFTMAX_INT32_T;
! 7503: shift++) {
! 7504: shifted = prime >> shift;
! 7505: dividend = prime;
! 7506: divides = 0;
! 7507: do {
! 7508: dividend &= ~((_type) 1); /* guarantee no remainder */
! 7509: dividend /= 2;
! 7510: } while (++divides < shift);
! 7511: if (shifted != dividend) {
! 7512: break;
! 7513: }
! 7514: }
! 7515:
! 7516: fprintf(f, "%d\n", (shift > SHIFTMAX_INT32_T ? 1 : 0));
! 7517: exit(0);
! 7518: }
! 7519: _ACEOF
! 7520: rm -f conftest$ac_exeext
! 7521: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7522: (eval $ac_link) 2>&5
! 7523: ac_status=$?
! 7524: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7525: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 7526: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7527: (eval $ac_try) 2>&5
! 7528: ac_status=$?
! 7529: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7530: (exit $ac_status); }; }; then
! 7531: ac_cv_shiftsigned_int32_t=`cat conftestval`
! 7532: else
! 7533: echo "$as_me: program exited with status $ac_status" >&5
! 7534: echo "$as_me: failed program was:" >&5
! 7535: sed 's/^/| /' conftest.$ac_ext >&5
! 7536:
! 7537: ( exit $ac_status )
! 7538: ac_cv_shiftsigned_int32_t=0
! 7539: fi
! 7540: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 7541: fi
! 7542: fi
! 7543: if test $ac_cv_shiftsigned_int32_t = 1; then
! 7544: echo "$as_me:$LINENO: result: yes" >&5
! 7545: echo "${ECHO_T}yes" >&6
! 7546:
! 7547: cat >>confdefs.h <<_ACEOF
! 7548: #define SHIFTSIGNED_INT32_T
! 7549: _ACEOF
! 7550:
! 7551: else
! 7552: echo "$as_me:$LINENO: result: no" >&5
! 7553: echo "${ECHO_T}no" >&6
! 7554: fi
! 7555:
! 7556: echo "$as_me:$LINENO: checking the floating point format of float" >&5
! 7557: echo $ECHO_N "checking the floating point format of float... $ECHO_C" >&6
! 7558: if test "${ac_cv_float_format_float+set}" = set; then
! 7559: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7560: else
! 7561: if test "$cross_compiling" = yes; then
! 7562: ac_cv_float_format_float=NATIVE
! 7563: else
! 7564: cat >conftest.$ac_ext <<_ACEOF
! 7565: #line $LINENO "configure"
! 7566: /* confdefs.h. */
! 7567: _ACEOF
! 7568: cat confdefs.h >>conftest.$ac_ext
! 7569: cat >>conftest.$ac_ext <<_ACEOF
! 7570: /* end confdefs.h. */
! 7571: #include <stdio.h>
! 7572: #include <sys/types.h>
! 7573: main()
! 7574: {
! 7575: float value;
! 7576: unsigned short value_buffer[16];
! 7577: #ifdef WORDS_BIGENDIAN
! 7578: #define UINT16_PART(v, i) (value_buffer[(sizeof(v) / sizeof(value_buffer[0])) - ((i) + 1)])
! 7579: #else
! 7580: #define UINT16_PART(v, i) (value_buffer[(i)])
! 7581: #endif
! 7582:
! 7583: FILE *f=fopen("conftestval", "w");
! 7584: if (!f) exit(1);
! 7585:
! 7586: /* see if this type is IEEE754 single precision: */
! 7587: value = 3.4793309169e-05;
! 7588: memcpy(value_buffer, &value, sizeof(value));
! 7589: if (sizeof(value) == 4
! 7590: && UINT16_PART(value, 1) == 0x3811
! 7591: && UINT16_PART(value, 0) == 0xef08) {
! 7592: fprintf(f, "IEEE754_SINGLE\n");
! 7593: exit (0);
! 7594: }
! 7595:
! 7596: /* see if this type is IEEE754 double precision: */
! 7597: value = 7.91534994289814532176e-04;
! 7598: memcpy(value_buffer, &value, sizeof(value));
! 7599: if (sizeof(value) == 8
! 7600: && UINT16_PART(value, 3) == 0x3f49
! 7601: && UINT16_PART(value, 2) == 0xefe0
! 7602: && UINT16_PART(value, 1) == 0x7501
! 7603: && UINT16_PART(value, 0) == 0xb288) {
! 7604: fprintf(f, "IEEE754_DOUBLE\n");
! 7605: exit (0);
! 7606: }
! 7607:
! 7608: /* see if this type might be IEEE754 extended 80-bit precision: */
! 7609: value = 1.1356523406294143949491931077970765006170e+04;
! 7610: memcpy(value_buffer, &value, sizeof(value));
! 7611: if (sizeof(value) >= 12
! 7612: && UINT16_PART(value, 0) == 0x7800
! 7613: && UINT16_PART(value, 1) == 0xd1cf
! 7614: && UINT16_PART(value, 2) == 0x17f7
! 7615: && UINT16_PART(value, 3) == 0xb172) {
! 7616:
! 7617: /* check for i387-style IEEE754 extended precision: */
! 7618: if (sizeof(value) == 12
! 7619: && UINT16_PART(value, 4) == 0x400c) {
! 7620: fprintf(f, "IEEE754_EXTENDED80_I387\n");
! 7621: exit (0);
! 7622: }
! 7623:
! 7624: /* check for m68881-style IEEE754 extended precision: */
! 7625: if (sizeof(value) == 12
! 7626: && UINT16_PART(value, 5) == 0x400c) {
! 7627: fprintf(f, "IEEE754_EXTENDED80_M68881\n");
! 7628: exit (0);
1.1 root 7629: }
7630: }
1.1.1.3 ! root 7631:
! 7632: /* otherwise, this is some native type: */
! 7633: fprintf(f, "NATIVE\n");
! 7634: exit (0);
1.1 root 7635: }
7636: _ACEOF
7637: rm -f conftest$ac_exeext
7638: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7639: (eval $ac_link) 2>&5
7640: ac_status=$?
7641: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7643: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644: (eval $ac_try) 2>&5
7645: ac_status=$?
7646: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647: (exit $ac_status); }; }; then
1.1.1.3 ! root 7648: ac_cv_float_format_float=`cat conftestval`
1.1 root 7649: else
7650: echo "$as_me: program exited with status $ac_status" >&5
7651: echo "$as_me: failed program was:" >&5
7652: sed 's/^/| /' conftest.$ac_ext >&5
7653:
7654: ( exit $ac_status )
1.1.1.3 ! root 7655: ac_cv_float_format_float=NATIVE
1.1 root 7656: fi
7657: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7658: fi
7659: fi
1.1.1.3 ! root 7660: echo "$as_me:$LINENO: result: $ac_cv_float_format_float" >&5
! 7661: echo "${ECHO_T}$ac_cv_float_format_float" >&6
! 7662: if test $ac_cv_float_format_float != NATIVE; then
1.1 root 7663:
7664: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! root 7665: #define FLOAT_FORMAT_FLOAT $ac_cv_float_format_float
1.1 root 7666: _ACEOF
7667:
1.1.1.3 ! root 7668: fi
1.1 root 7669:
1.1.1.3 ! root 7670: echo "$as_me:$LINENO: checking the limits of float" >&5
! 7671: echo $ECHO_N "checking the limits of float... $ECHO_C" >&6
! 7672: if test "${ac_cv_float_limits_float+set}" = set; then
! 7673: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7674: else
! 7675: for limits in FLT_MAX/FLT_MIN; do
! 7676: max=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
! 7677: min=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
! 7678: cat >conftest.$ac_ext <<_ACEOF
! 7679: #line $LINENO "configure"
! 7680: /* confdefs.h. */
! 7681: _ACEOF
! 7682: cat confdefs.h >>conftest.$ac_ext
! 7683: cat >>conftest.$ac_ext <<_ACEOF
! 7684: /* end confdefs.h. */
! 7685: #include <sys/types.h>
! 7686: #ifdef HAVE_FLOAT_H
! 7687: #include <float.h>
! 7688: #endif
! 7689: #ifdef HAVE_LIMITS_H
! 7690: #include <limits.h>
! 7691: #endif
! 7692: int
! 7693: main ()
! 7694: {
! 7695: float x; x = $max - $min;
! 7696: ;
! 7697: return 0;
! 7698: }
! 7699: _ACEOF
! 7700: rm -f conftest.$ac_objext
! 7701: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 7702: (eval $ac_compile) 2>&5
! 7703: ac_status=$?
! 7704: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7705: (exit $ac_status); } &&
! 7706: { ac_try='test -s conftest.$ac_objext'
! 7707: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7708: (eval $ac_try) 2>&5
! 7709: ac_status=$?
! 7710: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7711: (exit $ac_status); }; }; then
! 7712: ac_cv_float_limits_float=$limits ; break
! 7713: else
! 7714: echo "$as_me: failed program was:" >&5
! 7715: sed 's/^/| /' conftest.$ac_ext >&5
! 7716:
! 7717: ac_cv_float_limits_float=
! 7718: fi
! 7719: rm -f conftest.$ac_objext conftest.$ac_ext
! 7720: done
! 7721: fi
! 7722:
! 7723: if test "x$ac_cv_float_limits_float" = x; then
! 7724: { { echo "$as_me:$LINENO: error: can't determine the limits of float" >&5
! 7725: echo "$as_me: error: can't determine the limits of float" >&2;}
! 7726: { (exit 1); exit 1; }; }
! 7727: fi
! 7728: echo "$as_me:$LINENO: result: $ac_cv_float_limits_float" >&5
! 7729: echo "${ECHO_T}$ac_cv_float_limits_float" >&6
! 7730: max=`echo $ac_cv_float_limits_float | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
! 7731: min=`echo $ac_cv_float_limits_float | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
! 7732:
! 7733: cat >>confdefs.h <<_ACEOF
! 7734: #define FLOAT_MAX_FLOAT ($max)
! 7735: _ACEOF
! 7736:
! 7737:
! 7738: cat >>confdefs.h <<_ACEOF
! 7739: #define FLOAT_MIN_FLOAT ($min)
! 7740: _ACEOF
! 7741:
! 7742:
! 7743: echo "$as_me:$LINENO: checking the floating point format of double" >&5
! 7744: echo $ECHO_N "checking the floating point format of double... $ECHO_C" >&6
! 7745: if test "${ac_cv_float_format_double+set}" = set; then
1.1 root 7746: echo $ECHO_N "(cached) $ECHO_C" >&6
7747: else
7748: if test "$cross_compiling" = yes; then
1.1.1.3 ! root 7749: ac_cv_float_format_double=NATIVE
1.1 root 7750: else
7751: cat >conftest.$ac_ext <<_ACEOF
7752: #line $LINENO "configure"
7753: /* confdefs.h. */
7754: _ACEOF
7755: cat confdefs.h >>conftest.$ac_ext
7756: cat >>conftest.$ac_ext <<_ACEOF
7757: /* end confdefs.h. */
7758: #include <stdio.h>
7759: #include <sys/types.h>
7760: main()
7761: {
1.1.1.3 ! root 7762: double value;
! 7763: unsigned short value_buffer[16];
! 7764: #ifdef WORDS_BIGENDIAN
! 7765: #define UINT16_PART(v, i) (value_buffer[(sizeof(v) / sizeof(value_buffer[0])) - ((i) + 1)])
! 7766: #else
! 7767: #define UINT16_PART(v, i) (value_buffer[(i)])
1.1 root 7768: #endif
1.1.1.3 ! root 7769:
1.1 root 7770: FILE *f=fopen("conftestval", "w");
7771: if (!f) exit(1);
1.1.1.3 ! root 7772:
! 7773: /* see if this type is IEEE754 single precision: */
! 7774: value = 3.4793309169e-05;
! 7775: memcpy(value_buffer, &value, sizeof(value));
! 7776: if (sizeof(value) == 4
! 7777: && UINT16_PART(value, 1) == 0x3811
! 7778: && UINT16_PART(value, 0) == 0xef08) {
! 7779: fprintf(f, "IEEE754_SINGLE\n");
! 7780: exit (0);
! 7781: }
! 7782:
! 7783: /* see if this type is IEEE754 double precision: */
! 7784: value = 7.91534994289814532176e-04;
! 7785: memcpy(value_buffer, &value, sizeof(value));
! 7786: if (sizeof(value) == 8
! 7787: && UINT16_PART(value, 3) == 0x3f49
! 7788: && UINT16_PART(value, 2) == 0xefe0
! 7789: && UINT16_PART(value, 1) == 0x7501
! 7790: && UINT16_PART(value, 0) == 0xb288) {
! 7791: fprintf(f, "IEEE754_DOUBLE\n");
! 7792: exit (0);
! 7793: }
! 7794:
! 7795: /* see if this type might be IEEE754 extended 80-bit precision: */
! 7796: value = 1.1356523406294143949491931077970765006170e+04;
! 7797: memcpy(value_buffer, &value, sizeof(value));
! 7798: if (sizeof(value) >= 12
! 7799: && UINT16_PART(value, 0) == 0x7800
! 7800: && UINT16_PART(value, 1) == 0xd1cf
! 7801: && UINT16_PART(value, 2) == 0x17f7
! 7802: && UINT16_PART(value, 3) == 0xb172) {
! 7803:
! 7804: /* check for i387-style IEEE754 extended precision: */
! 7805: if (sizeof(value) == 12
! 7806: && UINT16_PART(value, 4) == 0x400c) {
! 7807: fprintf(f, "IEEE754_EXTENDED80_I387\n");
! 7808: exit (0);
! 7809: }
! 7810:
! 7811: /* check for m68881-style IEEE754 extended precision: */
! 7812: if (sizeof(value) == 12
! 7813: && UINT16_PART(value, 5) == 0x400c) {
! 7814: fprintf(f, "IEEE754_EXTENDED80_M68881\n");
! 7815: exit (0);
1.1 root 7816: }
7817: }
1.1.1.3 ! root 7818:
! 7819: /* otherwise, this is some native type: */
! 7820: fprintf(f, "NATIVE\n");
! 7821: exit (0);
1.1 root 7822: }
7823: _ACEOF
7824: rm -f conftest$ac_exeext
7825: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7826: (eval $ac_link) 2>&5
7827: ac_status=$?
7828: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7830: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831: (eval $ac_try) 2>&5
7832: ac_status=$?
7833: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834: (exit $ac_status); }; }; then
1.1.1.3 ! root 7835: ac_cv_float_format_double=`cat conftestval`
1.1 root 7836: else
7837: echo "$as_me: program exited with status $ac_status" >&5
7838: echo "$as_me: failed program was:" >&5
7839: sed 's/^/| /' conftest.$ac_ext >&5
7840:
7841: ( exit $ac_status )
1.1.1.3 ! root 7842: ac_cv_float_format_double=NATIVE
1.1 root 7843: fi
7844: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7845: fi
7846: fi
1.1.1.3 ! root 7847: echo "$as_me:$LINENO: result: $ac_cv_float_format_double" >&5
! 7848: echo "${ECHO_T}$ac_cv_float_format_double" >&6
! 7849: if test $ac_cv_float_format_double != NATIVE; then
1.1 root 7850:
7851: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! root 7852: #define FLOAT_FORMAT_DOUBLE $ac_cv_float_format_double
1.1 root 7853: _ACEOF
7854:
1.1.1.3 ! root 7855: fi
1.1 root 7856:
1.1.1.3 ! root 7857: echo "$as_me:$LINENO: checking the limits of double" >&5
! 7858: echo $ECHO_N "checking the limits of double... $ECHO_C" >&6
! 7859: if test "${ac_cv_float_limits_double+set}" = set; then
! 7860: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7861: else
! 7862: for limits in DBL_MAX/DBL_MIN; do
! 7863: max=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
! 7864: min=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
! 7865: cat >conftest.$ac_ext <<_ACEOF
! 7866: #line $LINENO "configure"
! 7867: /* confdefs.h. */
! 7868: _ACEOF
! 7869: cat confdefs.h >>conftest.$ac_ext
! 7870: cat >>conftest.$ac_ext <<_ACEOF
! 7871: /* end confdefs.h. */
! 7872: #include <sys/types.h>
! 7873: #ifdef HAVE_FLOAT_H
! 7874: #include <float.h>
! 7875: #endif
! 7876: #ifdef HAVE_LIMITS_H
! 7877: #include <limits.h>
! 7878: #endif
! 7879: int
! 7880: main ()
! 7881: {
! 7882: double x; x = $max - $min;
! 7883: ;
! 7884: return 0;
! 7885: }
! 7886: _ACEOF
! 7887: rm -f conftest.$ac_objext
! 7888: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 7889: (eval $ac_compile) 2>&5
! 7890: ac_status=$?
! 7891: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7892: (exit $ac_status); } &&
! 7893: { ac_try='test -s conftest.$ac_objext'
! 7894: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7895: (eval $ac_try) 2>&5
! 7896: ac_status=$?
! 7897: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7898: (exit $ac_status); }; }; then
! 7899: ac_cv_float_limits_double=$limits ; break
! 7900: else
! 7901: echo "$as_me: failed program was:" >&5
! 7902: sed 's/^/| /' conftest.$ac_ext >&5
! 7903:
! 7904: ac_cv_float_limits_double=
! 7905: fi
! 7906: rm -f conftest.$ac_objext conftest.$ac_ext
! 7907: done
! 7908: fi
! 7909:
! 7910: if test "x$ac_cv_float_limits_double" = x; then
! 7911: { { echo "$as_me:$LINENO: error: can't determine the limits of double" >&5
! 7912: echo "$as_me: error: can't determine the limits of double" >&2;}
! 7913: { (exit 1); exit 1; }; }
! 7914: fi
! 7915: echo "$as_me:$LINENO: result: $ac_cv_float_limits_double" >&5
! 7916: echo "${ECHO_T}$ac_cv_float_limits_double" >&6
! 7917: max=`echo $ac_cv_float_limits_double | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
! 7918: min=`echo $ac_cv_float_limits_double | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
! 7919:
! 7920: cat >>confdefs.h <<_ACEOF
! 7921: #define FLOAT_MAX_DOUBLE ($max)
! 7922: _ACEOF
! 7923:
! 7924:
! 7925: cat >>confdefs.h <<_ACEOF
! 7926: #define FLOAT_MIN_DOUBLE ($min)
! 7927: _ACEOF
! 7928:
! 7929:
! 7930: if test $ac_cv_c_long_double = yes; then
! 7931: echo "$as_me:$LINENO: checking the floating point format of long double" >&5
! 7932: echo $ECHO_N "checking the floating point format of long double... $ECHO_C" >&6
! 7933: if test "${ac_cv_float_format_long_double+set}" = set; then
1.1 root 7934: echo $ECHO_N "(cached) $ECHO_C" >&6
7935: else
7936: if test "$cross_compiling" = yes; then
1.1.1.3 ! root 7937: ac_cv_float_format_long_double=NATIVE
1.1 root 7938: else
7939: cat >conftest.$ac_ext <<_ACEOF
7940: #line $LINENO "configure"
7941: /* confdefs.h. */
7942: _ACEOF
7943: cat confdefs.h >>conftest.$ac_ext
7944: cat >>conftest.$ac_ext <<_ACEOF
7945: /* end confdefs.h. */
7946: #include <stdio.h>
7947: #include <sys/types.h>
7948: main()
7949: {
1.1.1.3 ! root 7950: long double value;
! 7951: unsigned short value_buffer[16];
! 7952: #ifdef WORDS_BIGENDIAN
! 7953: #define UINT16_PART(v, i) (value_buffer[(sizeof(v) / sizeof(value_buffer[0])) - ((i) + 1)])
! 7954: #else
! 7955: #define UINT16_PART(v, i) (value_buffer[(i)])
1.1 root 7956: #endif
1.1.1.3 ! root 7957:
1.1 root 7958: FILE *f=fopen("conftestval", "w");
7959: if (!f) exit(1);
1.1.1.3 ! root 7960:
! 7961: /* see if this type is IEEE754 single precision: */
! 7962: value = 3.4793309169e-05;
! 7963: memcpy(value_buffer, &value, sizeof(value));
! 7964: if (sizeof(value) == 4
! 7965: && UINT16_PART(value, 1) == 0x3811
! 7966: && UINT16_PART(value, 0) == 0xef08) {
! 7967: fprintf(f, "IEEE754_SINGLE\n");
! 7968: exit (0);
! 7969: }
! 7970:
! 7971: /* see if this type is IEEE754 double precision: */
! 7972: value = 7.91534994289814532176e-04;
! 7973: memcpy(value_buffer, &value, sizeof(value));
! 7974: if (sizeof(value) == 8
! 7975: && UINT16_PART(value, 3) == 0x3f49
! 7976: && UINT16_PART(value, 2) == 0xefe0
! 7977: && UINT16_PART(value, 1) == 0x7501
! 7978: && UINT16_PART(value, 0) == 0xb288) {
! 7979: fprintf(f, "IEEE754_DOUBLE\n");
! 7980: exit (0);
! 7981: }
! 7982:
! 7983: /* see if this type might be IEEE754 extended 80-bit precision: */
! 7984: value = 1.1356523406294143949491931077970765006170e+04;
! 7985: memcpy(value_buffer, &value, sizeof(value));
! 7986: if (sizeof(value) >= 12
! 7987: && UINT16_PART(value, 0) == 0x7800
! 7988: && UINT16_PART(value, 1) == 0xd1cf
! 7989: && UINT16_PART(value, 2) == 0x17f7
! 7990: && UINT16_PART(value, 3) == 0xb172) {
! 7991:
! 7992: /* check for i387-style IEEE754 extended precision: */
! 7993: if (sizeof(value) == 12
! 7994: && UINT16_PART(value, 4) == 0x400c) {
! 7995: fprintf(f, "IEEE754_EXTENDED80_I387\n");
! 7996: exit (0);
! 7997: }
! 7998:
! 7999: /* check for m68881-style IEEE754 extended precision: */
! 8000: if (sizeof(value) == 12
! 8001: && UINT16_PART(value, 5) == 0x400c) {
! 8002: fprintf(f, "IEEE754_EXTENDED80_M68881\n");
! 8003: exit (0);
1.1 root 8004: }
8005: }
1.1.1.3 ! root 8006:
! 8007: /* otherwise, this is some native type: */
! 8008: fprintf(f, "NATIVE\n");
! 8009: exit (0);
1.1 root 8010: }
8011: _ACEOF
8012: rm -f conftest$ac_exeext
8013: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8014: (eval $ac_link) 2>&5
8015: ac_status=$?
8016: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8018: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019: (eval $ac_try) 2>&5
8020: ac_status=$?
8021: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022: (exit $ac_status); }; }; then
1.1.1.3 ! root 8023: ac_cv_float_format_long_double=`cat conftestval`
1.1 root 8024: else
8025: echo "$as_me: program exited with status $ac_status" >&5
8026: echo "$as_me: failed program was:" >&5
8027: sed 's/^/| /' conftest.$ac_ext >&5
8028:
8029: ( exit $ac_status )
1.1.1.3 ! root 8030: ac_cv_float_format_long_double=NATIVE
1.1 root 8031: fi
8032: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8033: fi
8034: fi
1.1.1.3 ! root 8035: echo "$as_me:$LINENO: result: $ac_cv_float_format_long_double" >&5
! 8036: echo "${ECHO_T}$ac_cv_float_format_long_double" >&6
! 8037: if test $ac_cv_float_format_long_double != NATIVE; then
1.1 root 8038:
8039: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! root 8040: #define FLOAT_FORMAT_LONG_DOUBLE $ac_cv_float_format_long_double
1.1 root 8041: _ACEOF
8042:
1.1.1.3 ! root 8043: fi
1.1 root 8044:
1.1.1.3 ! root 8045: echo "$as_me:$LINENO: checking the limits of long double" >&5
! 8046: echo $ECHO_N "checking the limits of long double... $ECHO_C" >&6
! 8047: if test "${ac_cv_float_limits_long_double+set}" = set; then
1.1 root 8048: echo $ECHO_N "(cached) $ECHO_C" >&6
8049: else
1.1.1.3 ! root 8050: for limits in LDBL_MAX/LDBL_MIN; do
! 8051: max=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
! 8052: min=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
1.1 root 8053: cat >conftest.$ac_ext <<_ACEOF
8054: #line $LINENO "configure"
8055: /* confdefs.h. */
8056: _ACEOF
8057: cat confdefs.h >>conftest.$ac_ext
8058: cat >>conftest.$ac_ext <<_ACEOF
8059: /* end confdefs.h. */
8060: #include <sys/types.h>
1.1.1.3 ! root 8061: #ifdef HAVE_FLOAT_H
! 8062: #include <float.h>
1.1 root 8063: #endif
1.1.1.3 ! root 8064: #ifdef HAVE_LIMITS_H
! 8065: #include <limits.h>
! 8066: #endif
! 8067: int
! 8068: main ()
! 8069: {
! 8070: long double x; x = $max - $min;
! 8071: ;
! 8072: return 0;
1.1 root 8073: }
8074: _ACEOF
1.1.1.3 ! root 8075: rm -f conftest.$ac_objext
! 8076: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 8077: (eval $ac_compile) 2>&5
1.1 root 8078: ac_status=$?
8079: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.3 ! root 8080: (exit $ac_status); } &&
! 8081: { ac_try='test -s conftest.$ac_objext'
1.1 root 8082: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083: (eval $ac_try) 2>&5
8084: ac_status=$?
8085: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086: (exit $ac_status); }; }; then
1.1.1.3 ! root 8087: ac_cv_float_limits_long_double=$limits ; break
1.1 root 8088: else
1.1.1.3 ! root 8089: echo "$as_me: failed program was:" >&5
1.1 root 8090: sed 's/^/| /' conftest.$ac_ext >&5
8091:
1.1.1.3 ! root 8092: ac_cv_float_limits_long_double=
1.1 root 8093: fi
1.1.1.3 ! root 8094: rm -f conftest.$ac_objext conftest.$ac_ext
! 8095: done
1.1 root 8096: fi
1.1.1.3 ! root 8097:
! 8098: if test "x$ac_cv_float_limits_long_double" = x; then
! 8099: { { echo "$as_me:$LINENO: error: can't determine the limits of long double" >&5
! 8100: echo "$as_me: error: can't determine the limits of long double" >&2;}
! 8101: { (exit 1); exit 1; }; }
1.1 root 8102: fi
1.1.1.3 ! root 8103: echo "$as_me:$LINENO: result: $ac_cv_float_limits_long_double" >&5
! 8104: echo "${ECHO_T}$ac_cv_float_limits_long_double" >&6
! 8105: max=`echo $ac_cv_float_limits_long_double | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
! 8106: min=`echo $ac_cv_float_limits_long_double | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
1.1 root 8107:
8108: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! root 8109: #define FLOAT_MAX_LONG_DOUBLE ($max)
! 8110: _ACEOF
! 8111:
! 8112:
! 8113: cat >>confdefs.h <<_ACEOF
! 8114: #define FLOAT_MIN_LONG_DOUBLE ($min)
1.1 root 8115: _ACEOF
8116:
8117:
1.1.1.3 ! root 8118: fi
1.1 root 8119: echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
8120: echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
8121: if test "${ac_cv_sys_sockaddr_sa_len+set}" = set; then
8122: echo $ECHO_N "(cached) $ECHO_C" >&6
8123: else
8124: cat >conftest.$ac_ext <<_ACEOF
8125: #line $LINENO "configure"
8126: /* confdefs.h. */
8127: _ACEOF
8128: cat confdefs.h >>conftest.$ac_ext
8129: cat >>conftest.$ac_ext <<_ACEOF
8130: /* end confdefs.h. */
8131:
8132: #include <sys/types.h>
8133: #include <sys/socket.h>
8134:
8135: int
8136: main ()
8137: {
8138:
8139: int length;
8140: struct sockaddr sock;
8141: length = sock.sa_len;
8142:
8143: ;
8144: return 0;
8145: }
8146: _ACEOF
8147: rm -f conftest.$ac_objext
8148: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8149: (eval $ac_compile) 2>&5
8150: ac_status=$?
8151: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152: (exit $ac_status); } &&
8153: { ac_try='test -s conftest.$ac_objext'
8154: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155: (eval $ac_try) 2>&5
8156: ac_status=$?
8157: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158: (exit $ac_status); }; }; then
8159: ac_cv_sys_sockaddr_sa_len=yes
8160: else
8161: echo "$as_me: failed program was:" >&5
8162: sed 's/^/| /' conftest.$ac_ext >&5
8163:
8164: ac_cv_sys_sockaddr_sa_len=no
8165: fi
8166: rm -f conftest.$ac_objext conftest.$ac_ext
8167: fi
8168: if test $ac_cv_sys_sockaddr_sa_len = yes; then
8169: echo "$as_me:$LINENO: result: yes" >&5
8170: echo "${ECHO_T}yes" >&6
8171:
8172: cat >>confdefs.h <<_ACEOF
8173: #define HAVE_SOCKADDR_SA_LEN
8174: _ACEOF
8175:
8176: else
8177: echo "$as_me:$LINENO: result: no" >&5
8178: echo "${ECHO_T}no" >&6
8179: fi
8180:
8181:
8182: if test $ac_cv_c_compiler_gnu = yes; then
8183: echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8184: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
8185: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8186: echo $ECHO_N "(cached) $ECHO_C" >&6
8187: else
8188: ac_pattern="Autoconf.*'x'"
8189: cat >conftest.$ac_ext <<_ACEOF
8190: #line $LINENO "configure"
8191: /* confdefs.h. */
8192: _ACEOF
8193: cat confdefs.h >>conftest.$ac_ext
8194: cat >>conftest.$ac_ext <<_ACEOF
8195: /* end confdefs.h. */
8196: #include <sgtty.h>
8197: Autoconf TIOCGETP
8198: _ACEOF
8199: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8200: $EGREP "$ac_pattern" >/dev/null 2>&1; then
8201: ac_cv_prog_gcc_traditional=yes
8202: else
8203: ac_cv_prog_gcc_traditional=no
8204: fi
8205: rm -f conftest*
8206:
8207:
8208: if test $ac_cv_prog_gcc_traditional = no; then
8209: cat >conftest.$ac_ext <<_ACEOF
8210: #line $LINENO "configure"
8211: /* confdefs.h. */
8212: _ACEOF
8213: cat confdefs.h >>conftest.$ac_ext
8214: cat >>conftest.$ac_ext <<_ACEOF
8215: /* end confdefs.h. */
8216: #include <termio.h>
8217: Autoconf TCGETA
8218: _ACEOF
8219: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8220: $EGREP "$ac_pattern" >/dev/null 2>&1; then
8221: ac_cv_prog_gcc_traditional=yes
8222: fi
8223: rm -f conftest*
8224:
8225: fi
8226: fi
8227: echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8228: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
8229: if test $ac_cv_prog_gcc_traditional = yes; then
8230: CC="$CC -traditional"
8231: fi
8232: fi
8233:
8234: echo "$as_me:$LINENO: checking for working memcmp" >&5
8235: echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8236: if test "${ac_cv_func_memcmp_working+set}" = set; then
8237: echo $ECHO_N "(cached) $ECHO_C" >&6
8238: else
8239: if test "$cross_compiling" = yes; then
8240: ac_cv_func_memcmp_working=no
8241: else
8242: cat >conftest.$ac_ext <<_ACEOF
8243: #line $LINENO "configure"
8244: /* confdefs.h. */
8245: _ACEOF
8246: cat confdefs.h >>conftest.$ac_ext
8247: cat >>conftest.$ac_ext <<_ACEOF
8248: /* end confdefs.h. */
8249:
8250: int
8251: main ()
8252: {
8253:
8254: /* Some versions of memcmp are not 8-bit clean. */
8255: char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8256: if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8257: exit (1);
8258:
8259: /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8260: or more and with at least one buffer not starting on a 4-byte boundary.
8261: William Lewis provided this test program. */
8262: {
8263: char foo[21];
8264: char bar[21];
8265: int i;
8266: for (i = 0; i < 4; i++)
8267: {
8268: char *a = foo + i;
8269: char *b = bar + i;
8270: strcpy (a, "--------01111111");
8271: strcpy (b, "--------10000000");
8272: if (memcmp (a, b, 16) >= 0)
8273: exit (1);
8274: }
8275: exit (0);
8276: }
8277:
8278: ;
8279: return 0;
8280: }
8281: _ACEOF
8282: rm -f conftest$ac_exeext
8283: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8284: (eval $ac_link) 2>&5
8285: ac_status=$?
8286: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8288: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289: (eval $ac_try) 2>&5
8290: ac_status=$?
8291: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292: (exit $ac_status); }; }; then
8293: ac_cv_func_memcmp_working=yes
8294: else
8295: echo "$as_me: program exited with status $ac_status" >&5
8296: echo "$as_me: failed program was:" >&5
8297: sed 's/^/| /' conftest.$ac_ext >&5
8298:
8299: ( exit $ac_status )
8300: ac_cv_func_memcmp_working=no
8301: fi
8302: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8303: fi
8304: fi
8305: echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8306: echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8307: test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8308:
8309:
8310:
8311: for ac_header in stdlib.h unistd.h
8312: do
8313: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8314: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8315: echo "$as_me:$LINENO: checking for $ac_header" >&5
8316: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8317: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8318: echo $ECHO_N "(cached) $ECHO_C" >&6
8319: fi
8320: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8321: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8322: else
8323: # Is the header compilable?
8324: echo "$as_me:$LINENO: checking $ac_header usability" >&5
8325: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8326: cat >conftest.$ac_ext <<_ACEOF
8327: #line $LINENO "configure"
8328: /* confdefs.h. */
8329: _ACEOF
8330: cat confdefs.h >>conftest.$ac_ext
8331: cat >>conftest.$ac_ext <<_ACEOF
8332: /* end confdefs.h. */
8333: $ac_includes_default
8334: #include <$ac_header>
8335: _ACEOF
8336: rm -f conftest.$ac_objext
8337: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8338: (eval $ac_compile) 2>&5
8339: ac_status=$?
8340: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341: (exit $ac_status); } &&
8342: { ac_try='test -s conftest.$ac_objext'
8343: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344: (eval $ac_try) 2>&5
8345: ac_status=$?
8346: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347: (exit $ac_status); }; }; then
8348: ac_header_compiler=yes
8349: else
8350: echo "$as_me: failed program was:" >&5
8351: sed 's/^/| /' conftest.$ac_ext >&5
8352:
8353: ac_header_compiler=no
8354: fi
8355: rm -f conftest.$ac_objext conftest.$ac_ext
8356: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8357: echo "${ECHO_T}$ac_header_compiler" >&6
8358:
8359: # Is the header present?
8360: echo "$as_me:$LINENO: checking $ac_header presence" >&5
8361: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8362: cat >conftest.$ac_ext <<_ACEOF
8363: #line $LINENO "configure"
8364: /* confdefs.h. */
8365: _ACEOF
8366: cat confdefs.h >>conftest.$ac_ext
8367: cat >>conftest.$ac_ext <<_ACEOF
8368: /* end confdefs.h. */
8369: #include <$ac_header>
8370: _ACEOF
8371: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8372: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8373: ac_status=$?
8374: grep -v '^ *+' conftest.er1 >conftest.err
8375: rm -f conftest.er1
8376: cat conftest.err >&5
8377: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378: (exit $ac_status); } >/dev/null; then
8379: if test -s conftest.err; then
8380: ac_cpp_err=$ac_c_preproc_warn_flag
8381: else
8382: ac_cpp_err=
8383: fi
8384: else
8385: ac_cpp_err=yes
8386: fi
8387: if test -z "$ac_cpp_err"; then
8388: ac_header_preproc=yes
8389: else
8390: echo "$as_me: failed program was:" >&5
8391: sed 's/^/| /' conftest.$ac_ext >&5
8392:
8393: ac_header_preproc=no
8394: fi
8395: rm -f conftest.err conftest.$ac_ext
8396: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8397: echo "${ECHO_T}$ac_header_preproc" >&6
8398:
8399: # So? What about this header?
8400: case $ac_header_compiler:$ac_header_preproc in
8401: yes:no )
8402: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8403: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8404: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8405: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8406: (
8407: cat <<\_ASBOX
8408: ## ------------------------------------ ##
8409: ## Report this to [email protected]. ##
8410: ## ------------------------------------ ##
8411: _ASBOX
8412: ) |
8413: sed "s/^/$as_me: WARNING: /" >&2
8414: ;;
8415: no:yes )
8416: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8417: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8418: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8419: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8420: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8421: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8422: (
8423: cat <<\_ASBOX
8424: ## ------------------------------------ ##
8425: ## Report this to [email protected]. ##
8426: ## ------------------------------------ ##
8427: _ASBOX
8428: ) |
8429: sed "s/^/$as_me: WARNING: /" >&2
8430: ;;
8431: esac
8432: echo "$as_me:$LINENO: checking for $ac_header" >&5
8433: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8434: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8435: echo $ECHO_N "(cached) $ECHO_C" >&6
8436: else
8437: eval "$as_ac_Header=$ac_header_preproc"
8438: fi
8439: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8440: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8441:
8442: fi
8443: if test `eval echo '${'$as_ac_Header'}'` = yes; then
8444: cat >>confdefs.h <<_ACEOF
8445: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8446: _ACEOF
8447:
8448: fi
8449:
8450: done
8451:
8452:
8453: for ac_func in getpagesize
8454: do
8455: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8456: echo "$as_me:$LINENO: checking for $ac_func" >&5
8457: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8458: if eval "test \"\${$as_ac_var+set}\" = set"; then
8459: echo $ECHO_N "(cached) $ECHO_C" >&6
8460: else
8461: cat >conftest.$ac_ext <<_ACEOF
8462: #line $LINENO "configure"
8463: /* confdefs.h. */
8464: _ACEOF
8465: cat confdefs.h >>conftest.$ac_ext
8466: cat >>conftest.$ac_ext <<_ACEOF
8467: /* end confdefs.h. */
8468: /* System header to define __stub macros and hopefully few prototypes,
8469: which can conflict with char $ac_func (); below.
8470: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8471: <limits.h> exists even on freestanding compilers. */
8472: #ifdef __STDC__
8473: # include <limits.h>
8474: #else
8475: # include <assert.h>
8476: #endif
8477: /* Override any gcc2 internal prototype to avoid an error. */
8478: #ifdef __cplusplus
8479: extern "C"
8480: {
8481: #endif
8482: /* We use char because int might match the return type of a gcc2
8483: builtin and then its argument prototype would still apply. */
8484: char $ac_func ();
8485: /* The GNU C library defines this for functions which it implements
8486: to always fail with ENOSYS. Some functions are actually named
8487: something starting with __ and the normal name is an alias. */
8488: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8489: choke me
8490: #else
8491: char (*f) () = $ac_func;
8492: #endif
8493: #ifdef __cplusplus
8494: }
8495: #endif
8496:
8497: int
8498: main ()
8499: {
8500: return f != $ac_func;
8501: ;
8502: return 0;
8503: }
8504: _ACEOF
8505: rm -f conftest.$ac_objext conftest$ac_exeext
8506: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8507: (eval $ac_link) 2>&5
8508: ac_status=$?
8509: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510: (exit $ac_status); } &&
8511: { ac_try='test -s conftest$ac_exeext'
8512: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513: (eval $ac_try) 2>&5
8514: ac_status=$?
8515: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516: (exit $ac_status); }; }; then
8517: eval "$as_ac_var=yes"
8518: else
8519: echo "$as_me: failed program was:" >&5
8520: sed 's/^/| /' conftest.$ac_ext >&5
8521:
8522: eval "$as_ac_var=no"
8523: fi
8524: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8525: fi
8526: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8527: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8528: if test `eval echo '${'$as_ac_var'}'` = yes; then
8529: cat >>confdefs.h <<_ACEOF
8530: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8531: _ACEOF
8532:
8533: fi
8534: done
8535:
8536: echo "$as_me:$LINENO: checking for working mmap" >&5
8537: echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8538: if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8539: echo $ECHO_N "(cached) $ECHO_C" >&6
8540: else
8541: if test "$cross_compiling" = yes; then
8542: ac_cv_func_mmap_fixed_mapped=no
8543: else
8544: cat >conftest.$ac_ext <<_ACEOF
8545: #line $LINENO "configure"
8546: /* confdefs.h. */
8547: _ACEOF
8548: cat confdefs.h >>conftest.$ac_ext
8549: cat >>conftest.$ac_ext <<_ACEOF
8550: /* end confdefs.h. */
8551: $ac_includes_default
8552: /* malloc might have been renamed as rpl_malloc. */
8553: #undef malloc
8554:
8555: /* Thanks to Mike Haertel and Jim Avera for this test.
8556: Here is a matrix of mmap possibilities:
8557: mmap private not fixed
8558: mmap private fixed at somewhere currently unmapped
8559: mmap private fixed at somewhere already mapped
8560: mmap shared not fixed
8561: mmap shared fixed at somewhere currently unmapped
8562: mmap shared fixed at somewhere already mapped
8563: For private mappings, we should verify that changes cannot be read()
8564: back from the file, nor mmap's back from the file at a different
8565: address. (There have been systems where private was not correctly
8566: implemented like the infamous i386 svr4.0, and systems where the
8567: VM page cache was not coherent with the file system buffer cache
8568: like early versions of FreeBSD and possibly contemporary NetBSD.)
8569: For shared mappings, we should conversely verify that changes get
8570: propagated back to all the places they're supposed to be.
8571:
8572: Grep wants private fixed already mapped.
8573: The main things grep needs to know about mmap are:
8574: * does it exist and is it safe to write into the mmap'd area
8575: * how to use it (BSD variants) */
8576:
8577: #include <fcntl.h>
8578: #include <sys/mman.h>
8579:
8580: #if !STDC_HEADERS && !HAVE_STDLIB_H
8581: char *malloc ();
8582: #endif
8583:
8584: /* This mess was copied from the GNU getpagesize.h. */
8585: #if !HAVE_GETPAGESIZE
8586: /* Assume that all systems that can run configure have sys/param.h. */
8587: # if !HAVE_SYS_PARAM_H
8588: # define HAVE_SYS_PARAM_H 1
8589: # endif
8590:
8591: # ifdef _SC_PAGESIZE
8592: # define getpagesize() sysconf(_SC_PAGESIZE)
8593: # else /* no _SC_PAGESIZE */
8594: # if HAVE_SYS_PARAM_H
8595: # include <sys/param.h>
8596: # ifdef EXEC_PAGESIZE
8597: # define getpagesize() EXEC_PAGESIZE
8598: # else /* no EXEC_PAGESIZE */
8599: # ifdef NBPG
8600: # define getpagesize() NBPG * CLSIZE
8601: # ifndef CLSIZE
8602: # define CLSIZE 1
8603: # endif /* no CLSIZE */
8604: # else /* no NBPG */
8605: # ifdef NBPC
8606: # define getpagesize() NBPC
8607: # else /* no NBPC */
8608: # ifdef PAGESIZE
8609: # define getpagesize() PAGESIZE
8610: # endif /* PAGESIZE */
8611: # endif /* no NBPC */
8612: # endif /* no NBPG */
8613: # endif /* no EXEC_PAGESIZE */
8614: # else /* no HAVE_SYS_PARAM_H */
8615: # define getpagesize() 8192 /* punt totally */
8616: # endif /* no HAVE_SYS_PARAM_H */
8617: # endif /* no _SC_PAGESIZE */
8618:
8619: #endif /* no HAVE_GETPAGESIZE */
8620:
8621: int
8622: main ()
8623: {
8624: char *data, *data2, *data3;
8625: int i, pagesize;
8626: int fd;
8627:
8628: pagesize = getpagesize ();
8629:
8630: /* First, make a file with some known garbage in it. */
8631: data = (char *) malloc (pagesize);
8632: if (!data)
8633: exit (1);
8634: for (i = 0; i < pagesize; ++i)
8635: *(data + i) = rand ();
8636: umask (0);
8637: fd = creat ("conftest.mmap", 0600);
8638: if (fd < 0)
8639: exit (1);
8640: if (write (fd, data, pagesize) != pagesize)
8641: exit (1);
8642: close (fd);
8643:
8644: /* Next, try to mmap the file at a fixed address which already has
8645: something else allocated at it. If we can, also make sure that
8646: we see the same garbage. */
8647: fd = open ("conftest.mmap", O_RDWR);
8648: if (fd < 0)
8649: exit (1);
8650: data2 = (char *) malloc (2 * pagesize);
8651: if (!data2)
8652: exit (1);
8653: data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8654: if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8655: MAP_PRIVATE | MAP_FIXED, fd, 0L))
8656: exit (1);
8657: for (i = 0; i < pagesize; ++i)
8658: if (*(data + i) != *(data2 + i))
8659: exit (1);
8660:
8661: /* Finally, make sure that changes to the mapped area do not
8662: percolate back to the file as seen by read(). (This is a bug on
8663: some variants of i386 svr4.0.) */
8664: for (i = 0; i < pagesize; ++i)
8665: *(data2 + i) = *(data2 + i) + 1;
8666: data3 = (char *) malloc (pagesize);
8667: if (!data3)
8668: exit (1);
8669: if (read (fd, data3, pagesize) != pagesize)
8670: exit (1);
8671: for (i = 0; i < pagesize; ++i)
8672: if (*(data + i) != *(data3 + i))
8673: exit (1);
8674: close (fd);
8675: exit (0);
8676: }
8677: _ACEOF
8678: rm -f conftest$ac_exeext
8679: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680: (eval $ac_link) 2>&5
8681: ac_status=$?
8682: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8684: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685: (eval $ac_try) 2>&5
8686: ac_status=$?
8687: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688: (exit $ac_status); }; }; then
8689: ac_cv_func_mmap_fixed_mapped=yes
8690: else
8691: echo "$as_me: program exited with status $ac_status" >&5
8692: echo "$as_me: failed program was:" >&5
8693: sed 's/^/| /' conftest.$ac_ext >&5
8694:
8695: ( exit $ac_status )
8696: ac_cv_func_mmap_fixed_mapped=no
8697: fi
8698: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8699: fi
8700: fi
8701: echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8702: echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8703: if test $ac_cv_func_mmap_fixed_mapped = yes; then
8704:
8705: cat >>confdefs.h <<\_ACEOF
8706: #define HAVE_MMAP 1
8707: _ACEOF
8708:
8709: fi
8710: rm -f conftest.mmap
8711:
1.1.1.3 ! root 8712: echo "$as_me:$LINENO: checking for bswap16" >&5
! 8713: echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
! 8714: if test "${ac_cv_have_bswap16+set}" = set; then
! 8715: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8716: else
! 8717: ac_func_long_LIBS=$LIBS
! 8718: LIBS="${LIBS-} "
! 8719: cat >conftest.$ac_ext <<_ACEOF
! 8720: #line $LINENO "configure"
! 8721: /* confdefs.h. */
! 8722: _ACEOF
! 8723: cat confdefs.h >>conftest.$ac_ext
! 8724: cat >>conftest.$ac_ext <<_ACEOF
! 8725: /* end confdefs.h. */
! 8726:
! 8727:
! 8728: #ifdef HAVE_SYS_BSWAP_H
! 8729: #include <sys/bswap.h>
! 8730: #endif
! 8731:
! 8732:
! 8733: int
! 8734: main ()
! 8735: {
! 8736:
! 8737:
! 8738: unsigned int x;
! 8739:
! 8740: x = bswap16(0x1122);
! 8741:
! 8742:
! 8743: ;
! 8744: return 0;
! 8745: }
! 8746: _ACEOF
! 8747: rm -f conftest.$ac_objext conftest$ac_exeext
! 8748: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 8749: (eval $ac_link) 2>&5
! 8750: ac_status=$?
! 8751: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8752: (exit $ac_status); } &&
! 8753: { ac_try='test -s conftest$ac_exeext'
! 8754: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 8755: (eval $ac_try) 2>&5
! 8756: ac_status=$?
! 8757: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8758: (exit $ac_status); }; }; then
! 8759: ac_cv_have_bswap16=yes
! 8760: else
! 8761: echo "$as_me: failed program was:" >&5
! 8762: sed 's/^/| /' conftest.$ac_ext >&5
! 8763:
! 8764: ac_cv_have_bswap16=no
! 8765: fi
! 8766: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8767: LIBS=$ac_func_long_LIBS
! 8768: fi
! 8769: echo "$as_me:$LINENO: result: $ac_cv_have_bswap16" >&5
! 8770: echo "${ECHO_T}$ac_cv_have_bswap16" >&6
! 8771: if test $ac_cv_have_bswap16 = yes; then
! 8772:
! 8773: cat >>confdefs.h <<_ACEOF
! 8774: #define HAVE_BSWAP16
! 8775: _ACEOF
! 8776:
! 8777: fi
! 8778:
! 8779: echo "$as_me:$LINENO: checking for bswap32" >&5
! 8780: echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
! 8781: if test "${ac_cv_have_bswap32+set}" = set; then
! 8782: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8783: else
! 8784: ac_func_long_LIBS=$LIBS
! 8785: LIBS="${LIBS-} "
! 8786: cat >conftest.$ac_ext <<_ACEOF
! 8787: #line $LINENO "configure"
! 8788: /* confdefs.h. */
! 8789: _ACEOF
! 8790: cat confdefs.h >>conftest.$ac_ext
! 8791: cat >>conftest.$ac_ext <<_ACEOF
! 8792: /* end confdefs.h. */
! 8793:
! 8794:
! 8795: #ifdef HAVE_SYS_BSWAP_H
! 8796: #include <sys/bswap.h>
! 8797: #endif
! 8798:
! 8799:
! 8800: int
! 8801: main ()
! 8802: {
! 8803:
! 8804:
! 8805: unsigned int x;
! 8806:
! 8807: x = bswap32(0x11223344);
! 8808:
! 8809:
! 8810: ;
! 8811: return 0;
! 8812: }
! 8813: _ACEOF
! 8814: rm -f conftest.$ac_objext conftest$ac_exeext
! 8815: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 8816: (eval $ac_link) 2>&5
! 8817: ac_status=$?
! 8818: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8819: (exit $ac_status); } &&
! 8820: { ac_try='test -s conftest$ac_exeext'
! 8821: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 8822: (eval $ac_try) 2>&5
! 8823: ac_status=$?
! 8824: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8825: (exit $ac_status); }; }; then
! 8826: ac_cv_have_bswap32=yes
! 8827: else
! 8828: echo "$as_me: failed program was:" >&5
! 8829: sed 's/^/| /' conftest.$ac_ext >&5
! 8830:
! 8831: ac_cv_have_bswap32=no
! 8832: fi
! 8833: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8834: LIBS=$ac_func_long_LIBS
! 8835: fi
! 8836: echo "$as_me:$LINENO: result: $ac_cv_have_bswap32" >&5
! 8837: echo "${ECHO_T}$ac_cv_have_bswap32" >&6
! 8838: if test $ac_cv_have_bswap32 = yes; then
! 8839:
! 8840: cat >>confdefs.h <<_ACEOF
! 8841: #define HAVE_BSWAP32
! 8842: _ACEOF
! 8843:
! 8844: fi
! 8845:
! 8846: echo "$as_me:$LINENO: checking for isinff" >&5
! 8847: echo $ECHO_N "checking for isinff... $ECHO_C" >&6
! 8848: if test "${ac_cv_have_isinff+set}" = set; then
! 8849: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8850: else
! 8851: ac_func_long_LIBS=$LIBS
! 8852: LIBS="${LIBS-} -lm"
! 8853: cat >conftest.$ac_ext <<_ACEOF
! 8854: #line $LINENO "configure"
! 8855: /* confdefs.h. */
! 8856: _ACEOF
! 8857: cat confdefs.h >>conftest.$ac_ext
! 8858: cat >>conftest.$ac_ext <<_ACEOF
! 8859: /* end confdefs.h. */
! 8860:
! 8861:
! 8862: #include <math.h>
! 8863:
! 8864:
! 8865: int
! 8866: main ()
! 8867: {
! 8868:
! 8869:
! 8870: float x;
! 8871: int y;
! 8872:
! 8873: x = 1;
! 8874: y = isinff(x);
! 8875:
! 8876:
! 8877: ;
! 8878: return 0;
! 8879: }
! 8880: _ACEOF
! 8881: rm -f conftest.$ac_objext conftest$ac_exeext
! 8882: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 8883: (eval $ac_link) 2>&5
! 8884: ac_status=$?
! 8885: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8886: (exit $ac_status); } &&
! 8887: { ac_try='test -s conftest$ac_exeext'
! 8888: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 8889: (eval $ac_try) 2>&5
! 8890: ac_status=$?
! 8891: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8892: (exit $ac_status); }; }; then
! 8893: ac_cv_have_isinff=yes
! 8894: else
! 8895: echo "$as_me: failed program was:" >&5
! 8896: sed 's/^/| /' conftest.$ac_ext >&5
! 8897:
! 8898: ac_cv_have_isinff=no
! 8899: fi
! 8900: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8901: LIBS=$ac_func_long_LIBS
! 8902: fi
! 8903: echo "$as_me:$LINENO: result: $ac_cv_have_isinff" >&5
! 8904: echo "${ECHO_T}$ac_cv_have_isinff" >&6
! 8905: if test $ac_cv_have_isinff = yes; then
! 8906:
! 8907: cat >>confdefs.h <<_ACEOF
! 8908: #define HAVE_ISINFF
! 8909: _ACEOF
! 8910:
! 8911: fi
! 8912:
1.1 root 8913:
8914: for ac_prog in perl4.036 perl4 perl perl5
8915: do
8916: # Extract the first word of "$ac_prog", so it can be a program name with args.
8917: set dummy $ac_prog; ac_word=$2
8918: echo "$as_me:$LINENO: checking for $ac_word" >&5
8919: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8920: if test "${ac_cv_path_PERL+set}" = set; then
8921: echo $ECHO_N "(cached) $ECHO_C" >&6
8922: else
8923: case $PERL in
8924: [\\/]* | ?:[\\/]*)
8925: ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8926: ;;
8927: *)
8928: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929: for as_dir in $PATH
8930: do
8931: IFS=$as_save_IFS
8932: test -z "$as_dir" && as_dir=.
8933: for ac_exec_ext in '' $ac_executable_extensions; do
8934: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8935: ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8936: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8937: break 2
8938: fi
8939: done
8940: done
8941:
8942: ;;
8943: esac
8944: fi
8945: PERL=$ac_cv_path_PERL
8946:
8947: if test -n "$PERL"; then
8948: echo "$as_me:$LINENO: result: $PERL" >&5
8949: echo "${ECHO_T}$PERL" >&6
8950: else
8951: echo "$as_me:$LINENO: result: no" >&5
8952: echo "${ECHO_T}no" >&6
8953: fi
8954:
1.1.1.2 root 8955: test -n "$PERL" && break
8956: done
8957: test -n "$PERL" || PERL="no"
8958:
8959:
8960:
8961: TME_HOSTS="posix"
8962:
8963: echo "$as_me:$LINENO: checking for AF_LINK support" >&5
8964: echo $ECHO_N "checking for AF_LINK support... $ECHO_C" >&6
8965: cat >conftest.$ac_ext <<_ACEOF
8966: #line $LINENO "configure"
8967: /* confdefs.h. */
8968: _ACEOF
8969: cat confdefs.h >>conftest.$ac_ext
8970: cat >>conftest.$ac_ext <<_ACEOF
8971: /* end confdefs.h. */
8972:
8973: #include <sys/socket.h>
8974: #ifdef AF_LINK
8975: _tme_has_af_link
8976: #endif
8977:
8978: _ACEOF
8979: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8980: $EGREP "_tme_has_af_link" >/dev/null 2>&1; then
8981:
8982: echo "$as_me:$LINENO: result: yes" >&5
8983: echo "${ECHO_T}yes" >&6
8984:
8985: cat >>confdefs.h <<\_ACEOF
8986: #define HAVE_AF_LINK
8987: _ACEOF
8988:
8989:
8990: else
8991:
8992: echo "$as_me:$LINENO: result: no" >&5
8993: echo "${ECHO_T}no" >&6
8994:
8995: fi
8996: rm -f conftest*
8997:
8998:
8999: tme_raw_type=
9000: if test "${ac_cv_header_net_bpf_h+set}" = set; then
9001: echo "$as_me:$LINENO: checking for net/bpf.h" >&5
9002: echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6
9003: if test "${ac_cv_header_net_bpf_h+set}" = set; then
9004: echo $ECHO_N "(cached) $ECHO_C" >&6
9005: fi
9006: echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
9007: echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6
9008: else
9009: # Is the header compilable?
9010: echo "$as_me:$LINENO: checking net/bpf.h usability" >&5
9011: echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6
9012: cat >conftest.$ac_ext <<_ACEOF
9013: #line $LINENO "configure"
9014: /* confdefs.h. */
9015: _ACEOF
9016: cat confdefs.h >>conftest.$ac_ext
9017: cat >>conftest.$ac_ext <<_ACEOF
9018: /* end confdefs.h. */
9019: $ac_includes_default
9020: #include <net/bpf.h>
9021: _ACEOF
9022: rm -f conftest.$ac_objext
9023: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9024: (eval $ac_compile) 2>&5
9025: ac_status=$?
9026: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027: (exit $ac_status); } &&
9028: { ac_try='test -s conftest.$ac_objext'
9029: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030: (eval $ac_try) 2>&5
9031: ac_status=$?
9032: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033: (exit $ac_status); }; }; then
9034: ac_header_compiler=yes
9035: else
9036: echo "$as_me: failed program was:" >&5
9037: sed 's/^/| /' conftest.$ac_ext >&5
9038:
9039: ac_header_compiler=no
9040: fi
9041: rm -f conftest.$ac_objext conftest.$ac_ext
9042: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9043: echo "${ECHO_T}$ac_header_compiler" >&6
9044:
9045: # Is the header present?
9046: echo "$as_me:$LINENO: checking net/bpf.h presence" >&5
9047: echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6
9048: cat >conftest.$ac_ext <<_ACEOF
9049: #line $LINENO "configure"
9050: /* confdefs.h. */
9051: _ACEOF
9052: cat confdefs.h >>conftest.$ac_ext
9053: cat >>conftest.$ac_ext <<_ACEOF
9054: /* end confdefs.h. */
9055: #include <net/bpf.h>
9056: _ACEOF
9057: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9058: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9059: ac_status=$?
9060: grep -v '^ *+' conftest.er1 >conftest.err
9061: rm -f conftest.er1
9062: cat conftest.err >&5
9063: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064: (exit $ac_status); } >/dev/null; then
9065: if test -s conftest.err; then
9066: ac_cpp_err=$ac_c_preproc_warn_flag
9067: else
9068: ac_cpp_err=
9069: fi
9070: else
9071: ac_cpp_err=yes
9072: fi
9073: if test -z "$ac_cpp_err"; then
9074: ac_header_preproc=yes
9075: else
9076: echo "$as_me: failed program was:" >&5
9077: sed 's/^/| /' conftest.$ac_ext >&5
9078:
9079: ac_header_preproc=no
9080: fi
9081: rm -f conftest.err conftest.$ac_ext
9082: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9083: echo "${ECHO_T}$ac_header_preproc" >&6
9084:
9085: # So? What about this header?
9086: case $ac_header_compiler:$ac_header_preproc in
9087: yes:no )
9088: { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9089: echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9090: { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5
9091: echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;}
9092: (
9093: cat <<\_ASBOX
9094: ## ------------------------------------ ##
9095: ## Report this to [email protected]. ##
9096: ## ------------------------------------ ##
9097: _ASBOX
9098: ) |
9099: sed "s/^/$as_me: WARNING: /" >&2
9100: ;;
9101: no:yes )
9102: { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5
9103: echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;}
9104: { echo "$as_me:$LINENO: WARNING: net/bpf.h: check for missing prerequisite headers?" >&5
9105: echo "$as_me: WARNING: net/bpf.h: check for missing prerequisite headers?" >&2;}
9106: { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5
9107: echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;}
9108: (
9109: cat <<\_ASBOX
9110: ## ------------------------------------ ##
9111: ## Report this to [email protected]. ##
9112: ## ------------------------------------ ##
9113: _ASBOX
9114: ) |
9115: sed "s/^/$as_me: WARNING: /" >&2
9116: ;;
9117: esac
9118: echo "$as_me:$LINENO: checking for net/bpf.h" >&5
9119: echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6
9120: if test "${ac_cv_header_net_bpf_h+set}" = set; then
9121: echo $ECHO_N "(cached) $ECHO_C" >&6
9122: else
9123: ac_cv_header_net_bpf_h=$ac_header_preproc
9124: fi
9125: echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
9126: echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6
9127:
9128: fi
9129: if test $ac_cv_header_net_bpf_h = yes; then
9130: cat >conftest.$ac_ext <<_ACEOF
9131: #line $LINENO "configure"
9132: /* confdefs.h. */
9133: _ACEOF
9134: cat confdefs.h >>conftest.$ac_ext
9135: cat >>conftest.$ac_ext <<_ACEOF
9136: /* end confdefs.h. */
9137: #include <net/bpf.h>
9138: #ifdef BIOCSHDRCMPLT
9139: found_BIOCSHDRCMPLT
9140: #endif
9141:
9142: _ACEOF
9143: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9144: $EGREP "found_BIOCSHDRCMPLT" >/dev/null 2>&1; then
9145: tme_raw_type=bpf
9146: fi
9147: rm -f conftest*
9148:
9149: fi
9150:
9151:
9152: echo "$as_me:$LINENO: checking for raw Ethernet access method" >&5
9153: echo $ECHO_N "checking for raw Ethernet access method... $ECHO_C" >&6
9154: case "x$tme_raw_type" in
9155: xbpf) TME_HOSTS="${TME_HOSTS} bsd" ;;
9156: x) tme_raw_type=none ;;
9157: esac
9158: echo "$as_me:$LINENO: result: $tme_raw_type" >&5
9159: echo "${ECHO_T}$tme_raw_type" >&6
9160:
9161: echo "$as_me:$LINENO: checking for X" >&5
9162: echo $ECHO_N "checking for X... $ECHO_C" >&6
9163:
9164:
9165: # Check whether --with-x or --without-x was given.
9166: if test "${with_x+set}" = set; then
9167: withval="$with_x"
9168:
9169: fi;
9170: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9171: if test "x$with_x" = xno; then
9172: # The user explicitly disabled X.
9173: have_x=disabled
9174: else
9175: if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9176: # Both variables are already set.
9177: have_x=yes
9178: else
9179: if test "${ac_cv_have_x+set}" = set; then
9180: echo $ECHO_N "(cached) $ECHO_C" >&6
9181: else
9182: # One or both of the vars are not set, and there is no cached value.
9183: ac_x_includes=no ac_x_libraries=no
9184: rm -fr conftest.dir
9185: if mkdir conftest.dir; then
9186: cd conftest.dir
9187: # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9188: cat >Imakefile <<'_ACEOF'
9189: acfindx:
9190: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9191: _ACEOF
9192: if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9193: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9194: eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9195: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9196: for ac_extension in a so sl; do
9197: if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9198: test -f $ac_im_libdir/libX11.$ac_extension; then
9199: ac_im_usrlibdir=$ac_im_libdir; break
9200: fi
9201: done
9202: # Screen out bogus values from the imake configuration. They are
9203: # bogus both because they are the default anyway, and because
9204: # using them would break gcc on systems where it needs fixed includes.
9205: case $ac_im_incroot in
9206: /usr/include) ;;
9207: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9208: esac
9209: case $ac_im_usrlibdir in
9210: /usr/lib | /lib) ;;
9211: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9212: esac
9213: fi
9214: cd ..
9215: rm -fr conftest.dir
9216: fi
9217:
9218: # Standard set of common directories for X headers.
9219: # Check X11 before X11Rn because it is often a symlink to the current release.
9220: ac_x_header_dirs='
9221: /usr/X11/include
9222: /usr/X11R6/include
9223: /usr/X11R5/include
9224: /usr/X11R4/include
9225:
9226: /usr/include/X11
9227: /usr/include/X11R6
9228: /usr/include/X11R5
9229: /usr/include/X11R4
9230:
9231: /usr/local/X11/include
9232: /usr/local/X11R6/include
9233: /usr/local/X11R5/include
9234: /usr/local/X11R4/include
9235:
9236: /usr/local/include/X11
9237: /usr/local/include/X11R6
9238: /usr/local/include/X11R5
9239: /usr/local/include/X11R4
9240:
9241: /usr/X386/include
9242: /usr/x386/include
9243: /usr/XFree86/include/X11
9244:
9245: /usr/include
9246: /usr/local/include
9247: /usr/unsupported/include
9248: /usr/athena/include
9249: /usr/local/x11r5/include
9250: /usr/lpp/Xamples/include
9251:
9252: /usr/openwin/include
9253: /usr/openwin/share/include'
9254:
9255: if test "$ac_x_includes" = no; then
9256: # Guess where to find include files, by looking for Intrinsic.h.
9257: # First, try using that file with no special directory specified.
9258: cat >conftest.$ac_ext <<_ACEOF
9259: #line $LINENO "configure"
9260: /* confdefs.h. */
9261: _ACEOF
9262: cat confdefs.h >>conftest.$ac_ext
9263: cat >>conftest.$ac_ext <<_ACEOF
9264: /* end confdefs.h. */
9265: #include <X11/Intrinsic.h>
9266: _ACEOF
9267: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9268: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9269: ac_status=$?
9270: grep -v '^ *+' conftest.er1 >conftest.err
9271: rm -f conftest.er1
9272: cat conftest.err >&5
9273: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274: (exit $ac_status); } >/dev/null; then
9275: if test -s conftest.err; then
9276: ac_cpp_err=$ac_c_preproc_warn_flag
9277: else
9278: ac_cpp_err=
9279: fi
9280: else
9281: ac_cpp_err=yes
9282: fi
9283: if test -z "$ac_cpp_err"; then
9284: # We can compile using X headers with no special include directory.
9285: ac_x_includes=
9286: else
9287: echo "$as_me: failed program was:" >&5
9288: sed 's/^/| /' conftest.$ac_ext >&5
9289:
9290: for ac_dir in $ac_x_header_dirs; do
9291: if test -r "$ac_dir/X11/Intrinsic.h"; then
9292: ac_x_includes=$ac_dir
9293: break
9294: fi
9295: done
9296: fi
9297: rm -f conftest.err conftest.$ac_ext
9298: fi # $ac_x_includes = no
9299:
9300: if test "$ac_x_libraries" = no; then
9301: # Check for the libraries.
9302: # See if we find them without any special options.
9303: # Don't add to $LIBS permanently.
9304: ac_save_LIBS=$LIBS
9305: LIBS="-lXt $LIBS"
9306: cat >conftest.$ac_ext <<_ACEOF
9307: #line $LINENO "configure"
9308: /* confdefs.h. */
9309: _ACEOF
9310: cat confdefs.h >>conftest.$ac_ext
9311: cat >>conftest.$ac_ext <<_ACEOF
9312: /* end confdefs.h. */
9313: #include <X11/Intrinsic.h>
9314: int
9315: main ()
9316: {
9317: XtMalloc (0)
9318: ;
9319: return 0;
9320: }
9321: _ACEOF
9322: rm -f conftest.$ac_objext conftest$ac_exeext
9323: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9324: (eval $ac_link) 2>&5
9325: ac_status=$?
9326: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327: (exit $ac_status); } &&
9328: { ac_try='test -s conftest$ac_exeext'
9329: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330: (eval $ac_try) 2>&5
9331: ac_status=$?
9332: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333: (exit $ac_status); }; }; then
9334: LIBS=$ac_save_LIBS
9335: # We can link X programs with no special library path.
9336: ac_x_libraries=
9337: else
9338: echo "$as_me: failed program was:" >&5
9339: sed 's/^/| /' conftest.$ac_ext >&5
9340:
9341: LIBS=$ac_save_LIBS
9342: for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9343: do
9344: # Don't even attempt the hair of trying to link an X program!
9345: for ac_extension in a so sl; do
9346: if test -r $ac_dir/libXt.$ac_extension; then
9347: ac_x_libraries=$ac_dir
9348: break 2
9349: fi
9350: done
9351: done
9352: fi
9353: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9354: fi # $ac_x_libraries = no
9355:
9356: if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9357: # Didn't find X anywhere. Cache the known absence of X.
9358: ac_cv_have_x="have_x=no"
9359: else
9360: # Record where we found X for the cache.
9361: ac_cv_have_x="have_x=yes \
9362: ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9363: fi
9364: fi
9365:
9366: fi
9367: eval "$ac_cv_have_x"
9368: fi # $with_x != no
9369:
9370: if test "$have_x" != yes; then
9371: echo "$as_me:$LINENO: result: $have_x" >&5
9372: echo "${ECHO_T}$have_x" >&6
9373: no_x=yes
9374: else
9375: # If each of the values was on the command line, it overrides each guess.
9376: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9377: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9378: # Update the cache value to reflect the command line values.
9379: ac_cv_have_x="have_x=yes \
9380: ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9381: echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9382: echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9383: fi
9384:
9385: if test "$no_x" = yes; then
9386: # Not all programs may use this symbol, but it does not hurt to define it.
9387:
9388: cat >>confdefs.h <<\_ACEOF
9389: #define X_DISPLAY_MISSING 1
9390: _ACEOF
9391:
9392: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9393: else
9394: if test -n "$x_includes"; then
9395: X_CFLAGS="$X_CFLAGS -I$x_includes"
9396: fi
9397:
9398: # It would also be nice to do this for all -L options, not just this one.
9399: if test -n "$x_libraries"; then
9400: X_LIBS="$X_LIBS -L$x_libraries"
9401: # For Solaris; some versions of Sun CC require a space after -R and
9402: # others require no space. Words are not sufficient . . . .
9403: case `(uname -sr) 2>/dev/null` in
9404: "SunOS 5"*)
9405: echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9406: echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9407: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9408: cat >conftest.$ac_ext <<_ACEOF
9409: #line $LINENO "configure"
9410: /* confdefs.h. */
9411: _ACEOF
9412: cat confdefs.h >>conftest.$ac_ext
9413: cat >>conftest.$ac_ext <<_ACEOF
9414: /* end confdefs.h. */
9415:
9416: int
9417: main ()
9418: {
9419:
9420: ;
9421: return 0;
9422: }
9423: _ACEOF
9424: rm -f conftest.$ac_objext conftest$ac_exeext
9425: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426: (eval $ac_link) 2>&5
9427: ac_status=$?
9428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429: (exit $ac_status); } &&
9430: { ac_try='test -s conftest$ac_exeext'
9431: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432: (eval $ac_try) 2>&5
9433: ac_status=$?
9434: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435: (exit $ac_status); }; }; then
9436: ac_R_nospace=yes
9437: else
9438: echo "$as_me: failed program was:" >&5
9439: sed 's/^/| /' conftest.$ac_ext >&5
9440:
9441: ac_R_nospace=no
9442: fi
9443: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9444: if test $ac_R_nospace = yes; then
9445: echo "$as_me:$LINENO: result: no" >&5
9446: echo "${ECHO_T}no" >&6
9447: X_LIBS="$X_LIBS -R$x_libraries"
9448: else
9449: LIBS="$ac_xsave_LIBS -R $x_libraries"
9450: cat >conftest.$ac_ext <<_ACEOF
9451: #line $LINENO "configure"
9452: /* confdefs.h. */
9453: _ACEOF
9454: cat confdefs.h >>conftest.$ac_ext
9455: cat >>conftest.$ac_ext <<_ACEOF
9456: /* end confdefs.h. */
9457:
9458: int
9459: main ()
9460: {
9461:
9462: ;
9463: return 0;
9464: }
9465: _ACEOF
9466: rm -f conftest.$ac_objext conftest$ac_exeext
9467: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9468: (eval $ac_link) 2>&5
9469: ac_status=$?
9470: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471: (exit $ac_status); } &&
9472: { ac_try='test -s conftest$ac_exeext'
9473: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474: (eval $ac_try) 2>&5
9475: ac_status=$?
9476: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477: (exit $ac_status); }; }; then
9478: ac_R_space=yes
9479: else
9480: echo "$as_me: failed program was:" >&5
9481: sed 's/^/| /' conftest.$ac_ext >&5
9482:
9483: ac_R_space=no
9484: fi
9485: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9486: if test $ac_R_space = yes; then
9487: echo "$as_me:$LINENO: result: yes" >&5
9488: echo "${ECHO_T}yes" >&6
9489: X_LIBS="$X_LIBS -R $x_libraries"
9490: else
9491: echo "$as_me:$LINENO: result: neither works" >&5
9492: echo "${ECHO_T}neither works" >&6
9493: fi
9494: fi
9495: LIBS=$ac_xsave_LIBS
9496: esac
9497: fi
9498:
9499: # Check for system-dependent libraries X programs must link with.
9500: # Do this before checking for the system-independent R6 libraries
9501: # (-lICE), since we may need -lsocket or whatever for X linking.
9502:
9503: if test "$ISC" = yes; then
9504: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9505: else
9506: # Martyn Johnson says this is needed for Ultrix, if the X
9507: # libraries were built with DECnet support. And Karl Berry says
9508: # the Alpha needs dnet_stub (dnet does not exist).
9509: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9510: cat >conftest.$ac_ext <<_ACEOF
9511: #line $LINENO "configure"
9512: /* confdefs.h. */
9513: _ACEOF
9514: cat confdefs.h >>conftest.$ac_ext
9515: cat >>conftest.$ac_ext <<_ACEOF
9516: /* end confdefs.h. */
9517:
9518: /* Override any gcc2 internal prototype to avoid an error. */
9519: #ifdef __cplusplus
9520: extern "C"
9521: #endif
9522: /* We use char because int might match the return type of a gcc2
9523: builtin and then its argument prototype would still apply. */
9524: char XOpenDisplay ();
9525: int
9526: main ()
9527: {
9528: XOpenDisplay ();
9529: ;
9530: return 0;
9531: }
9532: _ACEOF
9533: rm -f conftest.$ac_objext conftest$ac_exeext
9534: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9535: (eval $ac_link) 2>&5
9536: ac_status=$?
9537: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538: (exit $ac_status); } &&
9539: { ac_try='test -s conftest$ac_exeext'
9540: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541: (eval $ac_try) 2>&5
9542: ac_status=$?
9543: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544: (exit $ac_status); }; }; then
9545: :
9546: else
9547: echo "$as_me: failed program was:" >&5
9548: sed 's/^/| /' conftest.$ac_ext >&5
9549:
9550: echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9551: echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9552: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9553: echo $ECHO_N "(cached) $ECHO_C" >&6
9554: else
9555: ac_check_lib_save_LIBS=$LIBS
9556: LIBS="-ldnet $LIBS"
9557: cat >conftest.$ac_ext <<_ACEOF
9558: #line $LINENO "configure"
9559: /* confdefs.h. */
9560: _ACEOF
9561: cat confdefs.h >>conftest.$ac_ext
9562: cat >>conftest.$ac_ext <<_ACEOF
9563: /* end confdefs.h. */
9564:
9565: /* Override any gcc2 internal prototype to avoid an error. */
9566: #ifdef __cplusplus
9567: extern "C"
9568: #endif
9569: /* We use char because int might match the return type of a gcc2
9570: builtin and then its argument prototype would still apply. */
9571: char dnet_ntoa ();
9572: int
9573: main ()
9574: {
9575: dnet_ntoa ();
9576: ;
9577: return 0;
9578: }
9579: _ACEOF
9580: rm -f conftest.$ac_objext conftest$ac_exeext
9581: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9582: (eval $ac_link) 2>&5
9583: ac_status=$?
9584: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585: (exit $ac_status); } &&
9586: { ac_try='test -s conftest$ac_exeext'
9587: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588: (eval $ac_try) 2>&5
9589: ac_status=$?
9590: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591: (exit $ac_status); }; }; then
9592: ac_cv_lib_dnet_dnet_ntoa=yes
9593: else
9594: echo "$as_me: failed program was:" >&5
9595: sed 's/^/| /' conftest.$ac_ext >&5
9596:
9597: ac_cv_lib_dnet_dnet_ntoa=no
9598: fi
9599: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9600: LIBS=$ac_check_lib_save_LIBS
9601: fi
9602: echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9603: echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9604: if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9605: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9606: fi
9607:
9608: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9609: echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9610: echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9611: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9612: echo $ECHO_N "(cached) $ECHO_C" >&6
9613: else
9614: ac_check_lib_save_LIBS=$LIBS
9615: LIBS="-ldnet_stub $LIBS"
9616: cat >conftest.$ac_ext <<_ACEOF
9617: #line $LINENO "configure"
9618: /* confdefs.h. */
9619: _ACEOF
9620: cat confdefs.h >>conftest.$ac_ext
9621: cat >>conftest.$ac_ext <<_ACEOF
9622: /* end confdefs.h. */
9623:
9624: /* Override any gcc2 internal prototype to avoid an error. */
9625: #ifdef __cplusplus
9626: extern "C"
9627: #endif
9628: /* We use char because int might match the return type of a gcc2
9629: builtin and then its argument prototype would still apply. */
9630: char dnet_ntoa ();
9631: int
9632: main ()
9633: {
9634: dnet_ntoa ();
9635: ;
9636: return 0;
9637: }
9638: _ACEOF
9639: rm -f conftest.$ac_objext conftest$ac_exeext
9640: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9641: (eval $ac_link) 2>&5
9642: ac_status=$?
9643: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644: (exit $ac_status); } &&
9645: { ac_try='test -s conftest$ac_exeext'
9646: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647: (eval $ac_try) 2>&5
9648: ac_status=$?
9649: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650: (exit $ac_status); }; }; then
9651: ac_cv_lib_dnet_stub_dnet_ntoa=yes
9652: else
9653: echo "$as_me: failed program was:" >&5
9654: sed 's/^/| /' conftest.$ac_ext >&5
9655:
9656: ac_cv_lib_dnet_stub_dnet_ntoa=no
9657: fi
9658: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9659: LIBS=$ac_check_lib_save_LIBS
9660: fi
9661: echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9662: echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9663: if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9664: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9665: fi
9666:
9667: fi
9668: fi
9669: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9670: LIBS="$ac_xsave_LIBS"
9671:
9672: # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
9673: # to get the SysV transport functions.
9674: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9675: # needs -lnsl.
9676: # The nsl library prevents programs from opening the X display
9677: # on Irix 5.2, according to T.E. Dickey.
9678: # The functions gethostbyname, getservbyname, and inet_addr are
9679: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9680: echo "$as_me:$LINENO: checking for gethostbyname" >&5
9681: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9682: if test "${ac_cv_func_gethostbyname+set}" = set; then
9683: echo $ECHO_N "(cached) $ECHO_C" >&6
9684: else
9685: cat >conftest.$ac_ext <<_ACEOF
9686: #line $LINENO "configure"
9687: /* confdefs.h. */
9688: _ACEOF
9689: cat confdefs.h >>conftest.$ac_ext
9690: cat >>conftest.$ac_ext <<_ACEOF
9691: /* end confdefs.h. */
9692: /* System header to define __stub macros and hopefully few prototypes,
9693: which can conflict with char gethostbyname (); below.
9694: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9695: <limits.h> exists even on freestanding compilers. */
9696: #ifdef __STDC__
9697: # include <limits.h>
9698: #else
9699: # include <assert.h>
9700: #endif
9701: /* Override any gcc2 internal prototype to avoid an error. */
9702: #ifdef __cplusplus
9703: extern "C"
9704: {
9705: #endif
9706: /* We use char because int might match the return type of a gcc2
9707: builtin and then its argument prototype would still apply. */
9708: char gethostbyname ();
9709: /* The GNU C library defines this for functions which it implements
9710: to always fail with ENOSYS. Some functions are actually named
9711: something starting with __ and the normal name is an alias. */
9712: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9713: choke me
9714: #else
9715: char (*f) () = gethostbyname;
9716: #endif
9717: #ifdef __cplusplus
9718: }
9719: #endif
9720:
9721: int
9722: main ()
9723: {
9724: return f != gethostbyname;
9725: ;
9726: return 0;
9727: }
9728: _ACEOF
9729: rm -f conftest.$ac_objext conftest$ac_exeext
9730: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9731: (eval $ac_link) 2>&5
9732: ac_status=$?
9733: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734: (exit $ac_status); } &&
9735: { ac_try='test -s conftest$ac_exeext'
9736: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737: (eval $ac_try) 2>&5
9738: ac_status=$?
9739: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740: (exit $ac_status); }; }; then
9741: ac_cv_func_gethostbyname=yes
9742: else
9743: echo "$as_me: failed program was:" >&5
9744: sed 's/^/| /' conftest.$ac_ext >&5
9745:
9746: ac_cv_func_gethostbyname=no
9747: fi
9748: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9749: fi
9750: echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9751: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9752:
9753: if test $ac_cv_func_gethostbyname = no; then
9754: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9755: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9756: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9757: echo $ECHO_N "(cached) $ECHO_C" >&6
9758: else
9759: ac_check_lib_save_LIBS=$LIBS
9760: LIBS="-lnsl $LIBS"
9761: cat >conftest.$ac_ext <<_ACEOF
9762: #line $LINENO "configure"
9763: /* confdefs.h. */
9764: _ACEOF
9765: cat confdefs.h >>conftest.$ac_ext
9766: cat >>conftest.$ac_ext <<_ACEOF
9767: /* end confdefs.h. */
9768:
9769: /* Override any gcc2 internal prototype to avoid an error. */
9770: #ifdef __cplusplus
9771: extern "C"
9772: #endif
9773: /* We use char because int might match the return type of a gcc2
9774: builtin and then its argument prototype would still apply. */
9775: char gethostbyname ();
9776: int
9777: main ()
9778: {
9779: gethostbyname ();
9780: ;
9781: return 0;
9782: }
9783: _ACEOF
9784: rm -f conftest.$ac_objext conftest$ac_exeext
9785: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9786: (eval $ac_link) 2>&5
9787: ac_status=$?
9788: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789: (exit $ac_status); } &&
9790: { ac_try='test -s conftest$ac_exeext'
9791: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792: (eval $ac_try) 2>&5
9793: ac_status=$?
9794: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795: (exit $ac_status); }; }; then
9796: ac_cv_lib_nsl_gethostbyname=yes
9797: else
9798: echo "$as_me: failed program was:" >&5
9799: sed 's/^/| /' conftest.$ac_ext >&5
9800:
9801: ac_cv_lib_nsl_gethostbyname=no
9802: fi
9803: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9804: LIBS=$ac_check_lib_save_LIBS
9805: fi
9806: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9807: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9808: if test $ac_cv_lib_nsl_gethostbyname = yes; then
9809: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9810: fi
9811:
9812: if test $ac_cv_lib_nsl_gethostbyname = no; then
9813: echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9814: echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9815: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9816: echo $ECHO_N "(cached) $ECHO_C" >&6
9817: else
9818: ac_check_lib_save_LIBS=$LIBS
9819: LIBS="-lbsd $LIBS"
9820: cat >conftest.$ac_ext <<_ACEOF
9821: #line $LINENO "configure"
9822: /* confdefs.h. */
9823: _ACEOF
9824: cat confdefs.h >>conftest.$ac_ext
9825: cat >>conftest.$ac_ext <<_ACEOF
9826: /* end confdefs.h. */
9827:
9828: /* Override any gcc2 internal prototype to avoid an error. */
9829: #ifdef __cplusplus
9830: extern "C"
9831: #endif
9832: /* We use char because int might match the return type of a gcc2
9833: builtin and then its argument prototype would still apply. */
9834: char gethostbyname ();
9835: int
9836: main ()
9837: {
9838: gethostbyname ();
9839: ;
9840: return 0;
9841: }
9842: _ACEOF
9843: rm -f conftest.$ac_objext conftest$ac_exeext
9844: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9845: (eval $ac_link) 2>&5
9846: ac_status=$?
9847: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848: (exit $ac_status); } &&
9849: { ac_try='test -s conftest$ac_exeext'
9850: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851: (eval $ac_try) 2>&5
9852: ac_status=$?
9853: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854: (exit $ac_status); }; }; then
9855: ac_cv_lib_bsd_gethostbyname=yes
9856: else
9857: echo "$as_me: failed program was:" >&5
9858: sed 's/^/| /' conftest.$ac_ext >&5
9859:
9860: ac_cv_lib_bsd_gethostbyname=no
9861: fi
9862: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9863: LIBS=$ac_check_lib_save_LIBS
9864: fi
9865: echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9866: echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9867: if test $ac_cv_lib_bsd_gethostbyname = yes; then
9868: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9869: fi
9870:
9871: fi
9872: fi
9873:
9874: # [email protected] says without -lsocket,
9875: # socket/setsockopt and other routines are undefined under SCO ODT
9876: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9877: # on later versions), says Simon Leinen: it contains gethostby*
9878: # variants that don't use the name server (or something). -lsocket
9879: # must be given before -lnsl if both are needed. We assume that
9880: # if connect needs -lnsl, so does gethostbyname.
9881: echo "$as_me:$LINENO: checking for connect" >&5
9882: echo $ECHO_N "checking for connect... $ECHO_C" >&6
9883: if test "${ac_cv_func_connect+set}" = set; then
9884: echo $ECHO_N "(cached) $ECHO_C" >&6
9885: else
9886: cat >conftest.$ac_ext <<_ACEOF
9887: #line $LINENO "configure"
9888: /* confdefs.h. */
9889: _ACEOF
9890: cat confdefs.h >>conftest.$ac_ext
9891: cat >>conftest.$ac_ext <<_ACEOF
9892: /* end confdefs.h. */
9893: /* System header to define __stub macros and hopefully few prototypes,
9894: which can conflict with char connect (); below.
9895: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9896: <limits.h> exists even on freestanding compilers. */
9897: #ifdef __STDC__
9898: # include <limits.h>
9899: #else
9900: # include <assert.h>
9901: #endif
9902: /* Override any gcc2 internal prototype to avoid an error. */
9903: #ifdef __cplusplus
9904: extern "C"
9905: {
9906: #endif
9907: /* We use char because int might match the return type of a gcc2
9908: builtin and then its argument prototype would still apply. */
9909: char connect ();
9910: /* The GNU C library defines this for functions which it implements
9911: to always fail with ENOSYS. Some functions are actually named
9912: something starting with __ and the normal name is an alias. */
9913: #if defined (__stub_connect) || defined (__stub___connect)
9914: choke me
9915: #else
9916: char (*f) () = connect;
9917: #endif
9918: #ifdef __cplusplus
9919: }
9920: #endif
9921:
9922: int
9923: main ()
9924: {
9925: return f != connect;
9926: ;
9927: return 0;
9928: }
9929: _ACEOF
9930: rm -f conftest.$ac_objext conftest$ac_exeext
9931: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9932: (eval $ac_link) 2>&5
9933: ac_status=$?
9934: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935: (exit $ac_status); } &&
9936: { ac_try='test -s conftest$ac_exeext'
9937: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938: (eval $ac_try) 2>&5
9939: ac_status=$?
9940: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941: (exit $ac_status); }; }; then
9942: ac_cv_func_connect=yes
9943: else
9944: echo "$as_me: failed program was:" >&5
9945: sed 's/^/| /' conftest.$ac_ext >&5
9946:
9947: ac_cv_func_connect=no
9948: fi
9949: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9950: fi
9951: echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9952: echo "${ECHO_T}$ac_cv_func_connect" >&6
9953:
9954: if test $ac_cv_func_connect = no; then
9955: echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9956: echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9957: if test "${ac_cv_lib_socket_connect+set}" = set; then
9958: echo $ECHO_N "(cached) $ECHO_C" >&6
9959: else
9960: ac_check_lib_save_LIBS=$LIBS
9961: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9962: cat >conftest.$ac_ext <<_ACEOF
9963: #line $LINENO "configure"
9964: /* confdefs.h. */
9965: _ACEOF
9966: cat confdefs.h >>conftest.$ac_ext
9967: cat >>conftest.$ac_ext <<_ACEOF
9968: /* end confdefs.h. */
9969:
9970: /* Override any gcc2 internal prototype to avoid an error. */
9971: #ifdef __cplusplus
9972: extern "C"
9973: #endif
9974: /* We use char because int might match the return type of a gcc2
9975: builtin and then its argument prototype would still apply. */
9976: char connect ();
9977: int
9978: main ()
9979: {
9980: connect ();
9981: ;
9982: return 0;
9983: }
9984: _ACEOF
9985: rm -f conftest.$ac_objext conftest$ac_exeext
9986: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9987: (eval $ac_link) 2>&5
9988: ac_status=$?
9989: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990: (exit $ac_status); } &&
9991: { ac_try='test -s conftest$ac_exeext'
9992: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993: (eval $ac_try) 2>&5
9994: ac_status=$?
9995: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996: (exit $ac_status); }; }; then
9997: ac_cv_lib_socket_connect=yes
9998: else
9999: echo "$as_me: failed program was:" >&5
10000: sed 's/^/| /' conftest.$ac_ext >&5
10001:
10002: ac_cv_lib_socket_connect=no
10003: fi
10004: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10005: LIBS=$ac_check_lib_save_LIBS
10006: fi
10007: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10008: echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10009: if test $ac_cv_lib_socket_connect = yes; then
10010: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10011: fi
10012:
10013: fi
10014:
10015: # Guillermo Gomez says -lposix is necessary on A/UX.
10016: echo "$as_me:$LINENO: checking for remove" >&5
10017: echo $ECHO_N "checking for remove... $ECHO_C" >&6
10018: if test "${ac_cv_func_remove+set}" = set; then
10019: echo $ECHO_N "(cached) $ECHO_C" >&6
10020: else
10021: cat >conftest.$ac_ext <<_ACEOF
10022: #line $LINENO "configure"
10023: /* confdefs.h. */
10024: _ACEOF
10025: cat confdefs.h >>conftest.$ac_ext
10026: cat >>conftest.$ac_ext <<_ACEOF
10027: /* end confdefs.h. */
10028: /* System header to define __stub macros and hopefully few prototypes,
10029: which can conflict with char remove (); below.
10030: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10031: <limits.h> exists even on freestanding compilers. */
10032: #ifdef __STDC__
10033: # include <limits.h>
10034: #else
10035: # include <assert.h>
10036: #endif
10037: /* Override any gcc2 internal prototype to avoid an error. */
10038: #ifdef __cplusplus
10039: extern "C"
10040: {
10041: #endif
10042: /* We use char because int might match the return type of a gcc2
10043: builtin and then its argument prototype would still apply. */
10044: char remove ();
10045: /* The GNU C library defines this for functions which it implements
10046: to always fail with ENOSYS. Some functions are actually named
10047: something starting with __ and the normal name is an alias. */
10048: #if defined (__stub_remove) || defined (__stub___remove)
10049: choke me
10050: #else
10051: char (*f) () = remove;
10052: #endif
10053: #ifdef __cplusplus
10054: }
10055: #endif
10056:
10057: int
10058: main ()
10059: {
10060: return f != remove;
10061: ;
10062: return 0;
10063: }
10064: _ACEOF
10065: rm -f conftest.$ac_objext conftest$ac_exeext
10066: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067: (eval $ac_link) 2>&5
10068: ac_status=$?
10069: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070: (exit $ac_status); } &&
10071: { ac_try='test -s conftest$ac_exeext'
10072: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073: (eval $ac_try) 2>&5
10074: ac_status=$?
10075: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076: (exit $ac_status); }; }; then
10077: ac_cv_func_remove=yes
10078: else
10079: echo "$as_me: failed program was:" >&5
10080: sed 's/^/| /' conftest.$ac_ext >&5
10081:
10082: ac_cv_func_remove=no
10083: fi
10084: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10085: fi
10086: echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10087: echo "${ECHO_T}$ac_cv_func_remove" >&6
10088:
10089: if test $ac_cv_func_remove = no; then
10090: echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10091: echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10092: if test "${ac_cv_lib_posix_remove+set}" = set; then
10093: echo $ECHO_N "(cached) $ECHO_C" >&6
10094: else
10095: ac_check_lib_save_LIBS=$LIBS
10096: LIBS="-lposix $LIBS"
10097: cat >conftest.$ac_ext <<_ACEOF
10098: #line $LINENO "configure"
10099: /* confdefs.h. */
10100: _ACEOF
10101: cat confdefs.h >>conftest.$ac_ext
10102: cat >>conftest.$ac_ext <<_ACEOF
10103: /* end confdefs.h. */
10104:
10105: /* Override any gcc2 internal prototype to avoid an error. */
10106: #ifdef __cplusplus
10107: extern "C"
10108: #endif
10109: /* We use char because int might match the return type of a gcc2
10110: builtin and then its argument prototype would still apply. */
10111: char remove ();
10112: int
10113: main ()
10114: {
10115: remove ();
10116: ;
10117: return 0;
10118: }
10119: _ACEOF
10120: rm -f conftest.$ac_objext conftest$ac_exeext
10121: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10122: (eval $ac_link) 2>&5
10123: ac_status=$?
10124: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125: (exit $ac_status); } &&
10126: { ac_try='test -s conftest$ac_exeext'
10127: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128: (eval $ac_try) 2>&5
10129: ac_status=$?
10130: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131: (exit $ac_status); }; }; then
10132: ac_cv_lib_posix_remove=yes
10133: else
10134: echo "$as_me: failed program was:" >&5
10135: sed 's/^/| /' conftest.$ac_ext >&5
10136:
10137: ac_cv_lib_posix_remove=no
10138: fi
10139: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10140: LIBS=$ac_check_lib_save_LIBS
10141: fi
10142: echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10143: echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10144: if test $ac_cv_lib_posix_remove = yes; then
10145: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10146: fi
10147:
10148: fi
10149:
10150: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10151: echo "$as_me:$LINENO: checking for shmat" >&5
10152: echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10153: if test "${ac_cv_func_shmat+set}" = set; then
10154: echo $ECHO_N "(cached) $ECHO_C" >&6
10155: else
10156: cat >conftest.$ac_ext <<_ACEOF
10157: #line $LINENO "configure"
10158: /* confdefs.h. */
10159: _ACEOF
10160: cat confdefs.h >>conftest.$ac_ext
10161: cat >>conftest.$ac_ext <<_ACEOF
10162: /* end confdefs.h. */
10163: /* System header to define __stub macros and hopefully few prototypes,
10164: which can conflict with char shmat (); below.
10165: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10166: <limits.h> exists even on freestanding compilers. */
10167: #ifdef __STDC__
10168: # include <limits.h>
10169: #else
10170: # include <assert.h>
10171: #endif
10172: /* Override any gcc2 internal prototype to avoid an error. */
10173: #ifdef __cplusplus
10174: extern "C"
10175: {
10176: #endif
10177: /* We use char because int might match the return type of a gcc2
10178: builtin and then its argument prototype would still apply. */
10179: char shmat ();
10180: /* The GNU C library defines this for functions which it implements
10181: to always fail with ENOSYS. Some functions are actually named
10182: something starting with __ and the normal name is an alias. */
10183: #if defined (__stub_shmat) || defined (__stub___shmat)
10184: choke me
10185: #else
10186: char (*f) () = shmat;
10187: #endif
10188: #ifdef __cplusplus
10189: }
10190: #endif
10191:
10192: int
10193: main ()
10194: {
10195: return f != shmat;
10196: ;
10197: return 0;
10198: }
10199: _ACEOF
10200: rm -f conftest.$ac_objext conftest$ac_exeext
10201: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202: (eval $ac_link) 2>&5
10203: ac_status=$?
10204: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205: (exit $ac_status); } &&
10206: { ac_try='test -s conftest$ac_exeext'
10207: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208: (eval $ac_try) 2>&5
10209: ac_status=$?
10210: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211: (exit $ac_status); }; }; then
10212: ac_cv_func_shmat=yes
10213: else
10214: echo "$as_me: failed program was:" >&5
10215: sed 's/^/| /' conftest.$ac_ext >&5
10216:
10217: ac_cv_func_shmat=no
10218: fi
10219: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10220: fi
10221: echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10222: echo "${ECHO_T}$ac_cv_func_shmat" >&6
10223:
10224: if test $ac_cv_func_shmat = no; then
10225: echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10226: echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10227: if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10228: echo $ECHO_N "(cached) $ECHO_C" >&6
10229: else
10230: ac_check_lib_save_LIBS=$LIBS
10231: LIBS="-lipc $LIBS"
10232: cat >conftest.$ac_ext <<_ACEOF
10233: #line $LINENO "configure"
10234: /* confdefs.h. */
10235: _ACEOF
10236: cat confdefs.h >>conftest.$ac_ext
10237: cat >>conftest.$ac_ext <<_ACEOF
10238: /* end confdefs.h. */
10239:
10240: /* Override any gcc2 internal prototype to avoid an error. */
10241: #ifdef __cplusplus
10242: extern "C"
10243: #endif
10244: /* We use char because int might match the return type of a gcc2
10245: builtin and then its argument prototype would still apply. */
10246: char shmat ();
10247: int
10248: main ()
10249: {
10250: shmat ();
10251: ;
10252: return 0;
10253: }
10254: _ACEOF
10255: rm -f conftest.$ac_objext conftest$ac_exeext
10256: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10257: (eval $ac_link) 2>&5
10258: ac_status=$?
10259: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260: (exit $ac_status); } &&
10261: { ac_try='test -s conftest$ac_exeext'
10262: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263: (eval $ac_try) 2>&5
10264: ac_status=$?
10265: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266: (exit $ac_status); }; }; then
10267: ac_cv_lib_ipc_shmat=yes
10268: else
10269: echo "$as_me: failed program was:" >&5
10270: sed 's/^/| /' conftest.$ac_ext >&5
10271:
10272: ac_cv_lib_ipc_shmat=no
10273: fi
10274: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10275: LIBS=$ac_check_lib_save_LIBS
10276: fi
10277: echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10278: echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10279: if test $ac_cv_lib_ipc_shmat = yes; then
10280: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10281: fi
10282:
10283: fi
10284: fi
10285:
10286: # Check for libraries that X11R6 Xt/Xaw programs need.
10287: ac_save_LDFLAGS=$LDFLAGS
10288: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10289: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10290: # check for ICE first), but we must link in the order -lSM -lICE or
10291: # we get undefined symbols. So assume we have SM if we have ICE.
10292: # These have to be linked with before -lX11, unlike the other
10293: # libraries we check for below, so use a different variable.
10294: # John Interrante, Karl Berry
10295: echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10296: echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10297: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10298: echo $ECHO_N "(cached) $ECHO_C" >&6
10299: else
10300: ac_check_lib_save_LIBS=$LIBS
10301: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10302: cat >conftest.$ac_ext <<_ACEOF
10303: #line $LINENO "configure"
10304: /* confdefs.h. */
10305: _ACEOF
10306: cat confdefs.h >>conftest.$ac_ext
10307: cat >>conftest.$ac_ext <<_ACEOF
10308: /* end confdefs.h. */
10309:
10310: /* Override any gcc2 internal prototype to avoid an error. */
10311: #ifdef __cplusplus
10312: extern "C"
10313: #endif
10314: /* We use char because int might match the return type of a gcc2
10315: builtin and then its argument prototype would still apply. */
10316: char IceConnectionNumber ();
10317: int
10318: main ()
10319: {
10320: IceConnectionNumber ();
10321: ;
10322: return 0;
10323: }
10324: _ACEOF
10325: rm -f conftest.$ac_objext conftest$ac_exeext
10326: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10327: (eval $ac_link) 2>&5
10328: ac_status=$?
10329: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330: (exit $ac_status); } &&
10331: { ac_try='test -s conftest$ac_exeext'
10332: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333: (eval $ac_try) 2>&5
10334: ac_status=$?
10335: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336: (exit $ac_status); }; }; then
10337: ac_cv_lib_ICE_IceConnectionNumber=yes
10338: else
10339: echo "$as_me: failed program was:" >&5
10340: sed 's/^/| /' conftest.$ac_ext >&5
10341:
10342: ac_cv_lib_ICE_IceConnectionNumber=no
10343: fi
10344: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10345: LIBS=$ac_check_lib_save_LIBS
10346: fi
10347: echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10348: echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10349: if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10350: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10351: fi
10352:
10353: LDFLAGS=$ac_save_LDFLAGS
10354:
10355: fi
10356:
10357:
10358:
10359: # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10360: if test "${with_gtk_prefix+set}" = set; then
10361: withval="$with_gtk_prefix"
10362: gtk_config_prefix="$withval"
10363: else
10364: gtk_config_prefix=""
10365: fi;
10366:
10367: # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10368: if test "${with_gtk_exec_prefix+set}" = set; then
10369: withval="$with_gtk_exec_prefix"
10370: gtk_config_exec_prefix="$withval"
10371: else
10372: gtk_config_exec_prefix=""
10373: fi;
10374: # Check whether --enable-gtktest or --disable-gtktest was given.
10375: if test "${enable_gtktest+set}" = set; then
10376: enableval="$enable_gtktest"
10377:
10378: else
10379: enable_gtktest=yes
10380: fi;
10381:
10382: for module in .
10383: do
10384: case "$module" in
10385: gthread)
10386: gtk_config_args="$gtk_config_args gthread"
10387: ;;
10388: esac
10389: done
10390:
10391: if test x$gtk_config_exec_prefix != x ; then
10392: gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10393: if test x${GTK_CONFIG+set} != xset ; then
10394: GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10395: fi
10396: fi
10397: if test x$gtk_config_prefix != x ; then
10398: gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10399: if test x${GTK_CONFIG+set} != xset ; then
10400: GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10401: fi
10402: fi
10403:
10404: # Extract the first word of "gtk-config", so it can be a program name with args.
10405: set dummy gtk-config; ac_word=$2
10406: echo "$as_me:$LINENO: checking for $ac_word" >&5
10407: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10408: if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
10409: echo $ECHO_N "(cached) $ECHO_C" >&6
10410: else
10411: case $GTK_CONFIG in
10412: [\\/]* | ?:[\\/]*)
10413: ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10414: ;;
10415: *)
10416: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10417: for as_dir in $PATH
10418: do
10419: IFS=$as_save_IFS
10420: test -z "$as_dir" && as_dir=.
10421: for ac_exec_ext in '' $ac_executable_extensions; do
10422: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10423: ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10424: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10425: break 2
10426: fi
10427: done
10428: done
10429:
10430: test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10431: ;;
10432: esac
10433: fi
10434: GTK_CONFIG=$ac_cv_path_GTK_CONFIG
10435:
10436: if test -n "$GTK_CONFIG"; then
10437: echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
10438: echo "${ECHO_T}$GTK_CONFIG" >&6
10439: else
10440: echo "$as_me:$LINENO: result: no" >&5
10441: echo "${ECHO_T}no" >&6
10442: fi
10443:
10444: min_gtk_version=0.99.7
10445: echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
10446: echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
10447: no_gtk=""
10448: if test "$GTK_CONFIG" = "no" ; then
10449: no_gtk=yes
10450: else
10451: GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10452: GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10453: gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10454: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10455: gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10456: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10457: gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10458: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10459: if test "x$enable_gtktest" = "xyes" ; then
10460: ac_save_CFLAGS="$CFLAGS"
10461: ac_save_LIBS="$LIBS"
10462: CFLAGS="$CFLAGS $GTK_CFLAGS"
10463: LIBS="$GTK_LIBS $LIBS"
10464: rm -f conf.gtktest
10465: if test "$cross_compiling" = yes; then
10466: echo $ac_n "cross compiling; assumed OK... $ac_c"
10467: else
10468: cat >conftest.$ac_ext <<_ACEOF
1.1 root 10469: #line $LINENO "configure"
10470: /* confdefs.h. */
10471: _ACEOF
10472: cat confdefs.h >>conftest.$ac_ext
10473: cat >>conftest.$ac_ext <<_ACEOF
10474: /* end confdefs.h. */
10475:
1.1.1.2 root 10476: #include <gtk/gtk.h>
10477: #include <stdio.h>
10478: #include <stdlib.h>
1.1 root 10479:
1.1.1.2 root 10480: int
10481: main ()
10482: {
10483: int major, minor, micro;
10484: char *tmp_version;
1.1 root 10485:
1.1.1.2 root 10486: system ("touch conf.gtktest");
1.1 root 10487:
1.1.1.2 root 10488: /* HP/UX 9 (%@#!) writes to sscanf strings */
10489: tmp_version = g_strdup("$min_gtk_version");
10490: if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
10491: printf("%s, bad version string\n", "$min_gtk_version");
10492: exit(1);
10493: }
10494:
10495: if ((gtk_major_version != $gtk_config_major_version) ||
10496: (gtk_minor_version != $gtk_config_minor_version) ||
10497: (gtk_micro_version != $gtk_config_micro_version))
10498: {
10499: printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10500: $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10501: gtk_major_version, gtk_minor_version, gtk_micro_version);
10502: printf ("*** was found! If gtk-config was correct, then it is best\n");
10503: printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10504: printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10505: printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10506: printf("*** required on your system.\n");
10507: printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10508: printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10509: printf("*** before re-running configure\n");
10510: }
10511: #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10512: else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10513: (gtk_minor_version != GTK_MINOR_VERSION) ||
10514: (gtk_micro_version != GTK_MICRO_VERSION))
10515: {
10516: printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10517: GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10518: printf("*** library (version %d.%d.%d)\n",
10519: gtk_major_version, gtk_minor_version, gtk_micro_version);
10520: }
10521: #endif /* defined (GTK_MAJOR_VERSION) ... */
10522: else
10523: {
10524: if ((gtk_major_version > major) ||
10525: ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10526: ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10527: {
10528: return 0;
10529: }
10530: else
10531: {
10532: printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10533: gtk_major_version, gtk_minor_version, gtk_micro_version);
10534: printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10535: major, minor, micro);
10536: printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10537: printf("***\n");
10538: printf("*** If you have already installed a sufficiently new version, this error\n");
10539: printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10540: printf("*** being found. The easiest way to fix this is to remove the old version\n");
10541: printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10542: printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10543: printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10544: printf("*** so that the correct libraries are found at run-time))\n");
10545: }
10546: }
10547: return 1;
10548: }
1.1 root 10549:
1.1.1.2 root 10550: _ACEOF
10551: rm -f conftest$ac_exeext
10552: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10553: (eval $ac_link) 2>&5
10554: ac_status=$?
10555: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10557: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558: (eval $ac_try) 2>&5
10559: ac_status=$?
10560: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561: (exit $ac_status); }; }; then
10562: :
1.1 root 10563: else
1.1.1.2 root 10564: echo "$as_me: program exited with status $ac_status" >&5
10565: echo "$as_me: failed program was:" >&5
10566: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 10567:
1.1.1.2 root 10568: ( exit $ac_status )
10569: no_gtk=yes
1.1 root 10570: fi
1.1.1.2 root 10571: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 10572: fi
1.1.1.2 root 10573: CFLAGS="$ac_save_CFLAGS"
10574: LIBS="$ac_save_LIBS"
10575: fi
10576: fi
10577: if test "x$no_gtk" = x ; then
10578: echo "$as_me:$LINENO: result: yes" >&5
10579: echo "${ECHO_T}yes" >&6
10580: have_gtk=true
10581: else
10582: echo "$as_me:$LINENO: result: no" >&5
10583: echo "${ECHO_T}no" >&6
10584: if test "$GTK_CONFIG" = "no" ; then
10585: echo "*** The gtk-config script installed by GTK could not be found"
10586: echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10587: echo "*** your path, or set the GTK_CONFIG environment variable to the"
10588: echo "*** full path to gtk-config."
10589: else
10590: if test -f conf.gtktest ; then
10591: :
10592: else
10593: echo "*** Could not run GTK test program, checking why..."
10594: CFLAGS="$CFLAGS $GTK_CFLAGS"
10595: LIBS="$LIBS $GTK_LIBS"
10596: cat >conftest.$ac_ext <<_ACEOF
1.1 root 10597: #line $LINENO "configure"
10598: /* confdefs.h. */
10599: _ACEOF
10600: cat confdefs.h >>conftest.$ac_ext
10601: cat >>conftest.$ac_ext <<_ACEOF
10602: /* end confdefs.h. */
1.1.1.2 root 10603:
10604: #include <gtk/gtk.h>
10605: #include <stdio.h>
10606:
10607: int
10608: main ()
10609: {
10610: return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10611: ;
10612: return 0;
10613: }
1.1 root 10614: _ACEOF
1.1.1.2 root 10615: rm -f conftest.$ac_objext conftest$ac_exeext
10616: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10617: (eval $ac_link) 2>&5
1.1 root 10618: ac_status=$?
10619: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620: (exit $ac_status); } &&
1.1.1.2 root 10621: { ac_try='test -s conftest$ac_exeext'
1.1 root 10622: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623: (eval $ac_try) 2>&5
10624: ac_status=$?
10625: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626: (exit $ac_status); }; }; then
1.1.1.2 root 10627: echo "*** The test program compiled, but did not run. This usually means"
10628: echo "*** that the run-time linker is not finding GTK or finding the wrong"
10629: echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10630: echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10631: echo "*** to the installed location Also, make sure you have run ldconfig if that"
10632: echo "*** is required on your system"
10633: echo "***"
10634: echo "*** If you have an old version installed, it is best to remove it, although"
10635: echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10636: echo "***"
10637: echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10638: echo "*** came with the system with the command"
10639: echo "***"
10640: echo "*** rpm --erase --nodeps gtk gtk-devel"
1.1 root 10641: else
10642: echo "$as_me: failed program was:" >&5
10643: sed 's/^/| /' conftest.$ac_ext >&5
10644:
1.1.1.2 root 10645: echo "*** The test program failed to compile or link. See the file config.log for the"
10646: echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10647: echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10648: echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
1.1 root 10649: fi
1.1.1.2 root 10650: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10651: CFLAGS="$ac_save_CFLAGS"
10652: LIBS="$ac_save_LIBS"
10653: fi
10654: fi
10655: GTK_CFLAGS=""
10656: GTK_LIBS=""
10657: have_gtk=false
10658: fi
1.1 root 10659:
1.1.1.2 root 10660:
10661: rm -f conf.gtktest
10662:
10663: if $have_gtk; then
10664:
10665: cat >>confdefs.h <<\_ACEOF
10666: #define HAVE_GTK
1.1 root 10667: _ACEOF
10668:
1.1.1.2 root 10669: TME_HOSTS="${TME_HOSTS} gtk"
1.1 root 10670: fi
10671:
1.1.1.2 root 10672: TME_FB_XLAT_DST=
10673: area_smallest=0
10674: area_largest=0
1.1 root 10675:
1.1.1.3 ! root 10676: # if --with-tme-host-displays is given, characterize those given displays:
! 10677:
! 10678: # Check whether --with-tme-host-displays or --without-tme-host-displays was given.
! 10679: if test "${with_tme_host_displays+set}" = set; then
! 10680: withval="$with_tme_host_displays"
! 10681:
! 10682: fi;
! 10683: for dst_key in ${with_tme_host_displays}; do
1.1 root 10684:
10685:
1.1.1.2 root 10686: this_width=`echo ${dst_key} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\1/'`
10687: this_height=`echo ${dst_key} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\2/'`
10688: dst_key=`echo ${dst_key} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\3/'`
10689: this_area=`expr ${this_width} \* ${this_height}`
10690:
10691: if test ${area_smallest} = 0 || test `expr ${this_area} \< ${area_smallest}` = 1; then
10692: area_smallest=${this_area}
10693: fi
10694: if test `expr ${this_area} \> ${area_largest}` = 1; then
10695: area_largest=${this_area}
10696: fi
10697:
10698: # add in this destination display key:
10699: if echo " ${TME_FB_XLAT_DST} " | grep " ${dst_key} " > /dev/null 2>&1; then :; else
10700: TME_FB_XLAT_DST="${TME_FB_XLAT_DST} ${dst_key}"
10701: fi
10702:
10703: done
10704:
10705: # if DISPLAY is set and xdpyinfo appears to work, characterize this X display:
10706: if test "x${DISPLAY}" != x && xdpyinfo >/dev/null 2>&1; then
10707: echo "$as_me:$LINENO: checking characteristics of X display ${DISPLAY}" >&5
10708: echo $ECHO_N "checking characteristics of X display ${DISPLAY}... $ECHO_C" >&6
10709:
10710:
10711: # get the format this display uses for bitmaps:
10712: bitmap_info=`xdpyinfo | grep 'bitmap unit' | sed -e 's/bitmap unit, *bit order, *padding: *\(.*\)$/\1/'`
10713: bitmap_order=`echo ${bitmap_info} | sed -e 's/\([0-9][0-9]*\), *\([LM]\)SBFirst, *\([0-9][0-9]*\).*/\2/'`
10714: bitmap_pad=`echo ${bitmap_info} | sed -e 's/\([0-9][0-9]*\), *\([LM]\)SBFirst, *\([0-9][0-9]*\).*/\3/'`
10715: bitmap_order=`echo ${bitmap_order} | tr A-Z a-z`
10716:
1.1.1.3 ! root 10717: # get the format this display uses for images at its default depth. we
! 10718: # assume that the root window is at the default depth:
1.1.1.2 root 10719: pixmap_order=`xdpyinfo | grep 'image byte order'`
10720: pixmap_order=`echo ${pixmap_order} | sed -e 's/.*image byte order: *\([LM]\)SBFirst.*/\1/' | tr A-Z a-z`
1.1.1.3 ! root 10721: pixmap_depth=`xwininfo -root | grep 'Depth:'`
! 10722: pixmap_depth=`echo ${pixmap_depth} | sed -e 's/.*Depth: *\([0-9][0-9]*\).*/\1/'`
1.1.1.2 root 10723: pixmap_infos=`xdpyinfo | grep bits_per_pixel | tr '\n' %`
10724: save_IFS=$IFS
10725: IFS=%
10726: for pixmap_info in $pixmap_infos; do
10727: IFS=$save_IFS
10728: if test "x$pixmap_info" = x; then continue; fi
10729: this_pixmap_depth=`echo ${pixmap_info} | sed -e 's/.*depth \([0-9][0-9]*\), *bits_per_pixel \([0-9][0-9]*\), *scanline_pad \([0-9][0-9]*\).*/\1/'`
10730: this_pixmap_bipp=`echo ${pixmap_info} | sed -e 's/.*depth \([0-9][0-9]*\), *bits_per_pixel \([0-9][0-9]*\), *scanline_pad \([0-9][0-9]*\).*/\2/'`
10731: this_pixmap_pad=`echo ${pixmap_info} | sed -e 's/.*depth \([0-9][0-9]*\), *bits_per_pixel \([0-9][0-9]*\), *scanline_pad \([0-9][0-9]*\).*/\3/'`
1.1.1.3 ! root 10732: if test "x${this_pixmap_depth}" = "x${pixmap_depth}"; then
1.1.1.2 root 10733: pixmap_bipp=${this_pixmap_bipp}
10734: pixmap_pad=${this_pixmap_pad}
1.1.1.3 ! root 10735: break
1.1.1.2 root 10736: fi
10737: done
10738: IFS=$save_IFS
10739:
10740: # if this display's greatest depth is one, we use its
10741: # bitmap format:
1.1.1.3 ! root 10742: if test "x${pixmap_bipp}" = x; then
1.1.1.2 root 10743: pixmap_bipp=1
10744: pixmap_pad=${bitmap_pad}
10745:
10746: # our translation functions can't handle the case when the bitmap
10747: # bit order is different from the image byte order - doing so
10748: # requires dealing with the bitmap unit size. since this
10749: # situation is rare, just bail:
10750: if test ${bitmap_order} != ${pixmap_order}; then
10751: { echo "$as_me:$LINENO: WARNING: the X display ${DISPLAY} is monochrome and needs bitmaps with a bit order that the generic code doesn't support" >&5
10752: echo "$as_me: WARNING: the X display ${DISPLAY} is monochrome and needs bitmaps with a bit order that the generic code doesn't support" >&2;}
1.1.1.3 ! root 10753: pixmap_bipp=
1.1.1.2 root 10754: fi
10755: fi
10756:
10757: # if this display seems usable:
1.1.1.3 ! root 10758: if test "x${pixmap_bipp}" != x; then
1.1.1.2 root 10759:
10760: # check the dimensions of all screens on this display:
10761: dimensions=`xdpyinfo | grep dimensions | tr '\n' %`
10762: save_IFS=$IFS
10763: IFS=%
10764: for dimension in $dimensions; do
10765: IFS=$save_IFS
10766: if test "x$dimension" = x; then continue; fi
10767: this_width=`echo ${dimension} | sed -e 's/.*dimensions: *\([0-9][0-9]*\)x\([0-9][0-9]*\).*/\1/'`
10768: this_height=`echo ${dimension} | sed -e 's/.*dimensions: *\([0-9][0-9]*\)x\([0-9][0-9]*\).*/\2/'`
10769: this_area=`expr ${this_width} \* ${this_height}`
10770: if test ${area_smallest} = 0 || test `expr ${this_area} \< ${area_smallest}` = 1; then
10771: area_smallest=${this_area}
10772: fi
10773: if test `expr ${this_area} \> ${area_largest}` = 1; then
10774: area_largest=${this_area}
10775: fi
10776: done
10777: IFS=$save_IFS
10778:
1.1.1.3 ! root 10779: # assume an unknown set of masks and an unknown mapping type:
! 10780: dst_masks=_r0x0_g0x0_b0x0
! 10781: dst_map=
! 10782: value_visual=", unknown visual"
! 10783:
! 10784: # if the depth is greater than one:
! 10785: if test "x${pixmap_depth}" != 1; then
! 10786:
! 10787: # we assume that the root window uses the default visual:
! 10788: visual=`xwininfo -root | grep 'Visual Class:' | sed -e 's/^ *Visual Class: *\([A-Za-z][A-Za-z]*\).*$/\1/'`
! 10789:
! 10790: # get any primary masks for this visual:
! 10791: case "x${visual}" in
! 10792: xDirectColor | xTrueColor)
! 10793: dst_masks=`xdpyinfo | $EGREP '(visual id|class|blue masks):' | $EGREP -C1 $visual | grep 'blue masks' | head -1`
! 10794: dst_masks=`echo ${dst_masks} | sed -e 's/^.*blue masks: *\(.*\)/\1/'`
! 10795: value_visual=", rgb masks ${dst_masks}"
! 10796: dst_masks=`echo ${dst_masks} | sed -e 's/^/_r/' -e 's/, /_g/' -e 's/, /_b/'`
! 10797: ;;
! 10798: xStaticGray | xGrayScale | xStaticColor | xPseudoColor)
! 10799: dst_masks=
! 10800: value_visual=", no subfields"
! 10801: ;;
! 10802: *) ;;
! 10803: esac
! 10804:
! 10805: # get the mapping type for this visual:
! 10806: case "x${visual}" in
! 10807: xStaticGray | xStaticColor | xPseudoColor)
! 10808: dst_map="ml"
! 10809: ;;
! 10810: xDirectColor)
! 10811: dst_map="mi"
! 10812: value_visual="${value_visual}, indexed"
! 10813: ;;
! 10814: xGrayScale | xTrueColor)
! 10815: dst_map="ml"
! 10816: value_visual="${value_visual}, linear"
! 10817: ;;
! 10818: *) ;;
! 10819: esac
! 10820: fi
! 10821:
1.1.1.2 root 10822:
10823: # finish the characterization:
1.1.1.3 ! root 10824: if test "x${pixmap_bipp}" = "x${pixmap_depth}"; then
1.1.1.2 root 10825: value=
10826: else
10827: value=" (${pixmap_bipp} bits per pixel)"
10828: fi
1.1.1.3 ! root 10829: echo "$as_me:$LINENO: result: ${pixmap_depth}-bit${value} ${pixmap_order}sb-first images with ${pixmap_pad}-bit padding${value_visual}" >&5
! 10830: echo "${ECHO_T}${pixmap_depth}-bit${value} ${pixmap_order}sb-first images with ${pixmap_pad}-bit padding${value_visual}" >&6
! 10831: dst_key="d${pixmap_depth}b${pixmap_bipp}s0p${pixmap_pad}o${pixmap_order}${dst_map}${dst_masks}"
1.1.1.2 root 10832:
10833: # add in this destination display key:
10834: if echo " ${TME_FB_XLAT_DST} " | grep " ${dst_key} " > /dev/null 2>&1; then :; else
10835: TME_FB_XLAT_DST="${TME_FB_XLAT_DST} ${dst_key}"
10836: fi
10837: fi
1.1 root 10838: fi
1.1.1.2 root 10839:
1.1 root 10840:
10841: systems=all
10842: if echo " ${systems} " | grep ' all ' > /dev/null 2>&1; then
1.1.1.3 ! root 10843: systems="sun2 sun3"
1.1 root 10844: fi
10845: TME_MACHINE_SUBDIRS=
10846: TME_IC_SUBDIRS=
10847: TME_ICS=
1.1.1.2 root 10848: TME_SERIAL_SUBDIRS=
10849: TME_SERIALS=
1.1 root 10850: TME_BUS_SUBDIRS=
1.1.1.2 root 10851: TME_FB_XLAT_SRC=
1.1 root 10852: for system in $systems; do
10853:
10854: # dispatch on the machine type to get more machines, ICs, and
10855: # buses to compile:
10856: case ${system} in
10857:
10858: # the sun2:
10859: sun2)
10860: machines="sun sun2"
1.1.1.3 ! root 10861: ics="m68k am9513 mm58167 z8530 i825x6"
1.1 root 10862: buses="multibus"
1.1.1.2 root 10863: fb_xlats="1152x900d1b1s0p32om"
1.1 root 10864: ;;
10865:
1.1.1.3 ! root 10866: # the sun3:
! 10867: sun3)
! 10868: machines="sun sun3"
! 10869: ics="m68k isil7170 z8530 i825x6 ieee754 ncr5380"
! 10870: buses="multibus"
! 10871: fb_xlats="1152x900d1b1s0p32om 1152x900d8b8s0p32ommi8 1152x900d1b1s0p32omccmi8"
! 10872: ;;
! 10873:
1.1 root 10874: *)
10875: { { echo "$as_me:$LINENO: error: don't know how to emulate ${machine}" >&5
10876: echo "$as_me: error: don't know how to emulate ${machine}" >&2;}
10877: { (exit 1); exit 1; }; }
10878: ;;
10879: esac
10880:
1.1.1.2 root 10881: # add in the new machines, ICs, serials, and buses to compile:
1.1 root 10882: for machine in $machines; do
10883: if echo " ${TME_MACHINE_SUBDIRS} " | grep " ${machine} " > /dev/null 2>&1; then :; else
10884: TME_MACHINE_SUBDIRS="${TME_MACHINE_SUBDIRS} ${machine}"
10885: fi
10886: done
10887: for ic in $ics; do
10888: if test -d ic/$ic; then
10889: if echo " ${TME_IC_SUBDIRS} " | grep " ${ic} " > /dev/null 2>&1; then :; else
10890: TME_IC_SUBDIRS="${TME_IC_SUBDIRS} ${ic}"
10891: fi
10892: else
10893: ic="tme_ic_${ic}.la"
10894: if echo " ${TME_ICS} " | grep " ${ic} " > /dev/null 2>&1; then :; else
10895: TME_ICS="${TME_ICS} ${ic}"
10896: fi
10897: fi
10898: done
1.1.1.2 root 10899: for serial in $serials; do
10900: if test -d serial/$serial; then
10901: if echo " ${TME_SERIAL_SUBDIRS} " | grep " ${serial} " > /dev/null 2>&1; then :; else
10902: TME_SERIAL_SUBDIRS="${TME_SERIAL_SUBDIRS} ${serial}"
10903: fi
10904: else
10905: serial="tme_serial_${serial}.la"
10906: if echo " ${TME_SERIALS} " | grep " ${serial} " > /dev/null 2>&1; then :; else
10907: TME_SERIALS="${TME_SERIALS} ${serial}"
10908: fi
10909: fi
10910: done
1.1 root 10911: for bus in $buses; do
10912: if echo " ${TME_BUS_SUBDIRS} " | grep " ${bus} " > /dev/null 2>&1; then :; else
10913: TME_BUS_SUBDIRS="${TME_BUS_SUBDIRS} ${bus}"
10914: fi
10915: done
1.1.1.2 root 10916:
10917: # add in the new frame buffer translations to compile:
10918: for fb_xlat in $fb_xlats; do
10919: if echo " ${TME_FB_XLAT_SRC} " | grep " ${fb_xlat} " > /dev/null 2>&1; then :; else
10920: TME_FB_XLAT_SRC="${TME_FB_XLAT_SRC} ${fb_xlat}"
10921: fi
10922:
10923:
10924: # calculate the area of this frame buffer multiplied by 100:
10925: this_width=`echo ${fb_xlat} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\1/'`
10926: this_height=`echo ${fb_xlat} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\2/'`
10927: this_area=`expr ${this_width} \* ${this_height} \* 100`
10928:
10929:
10930: # if this frame buffer would consume at least 70 percent of
10931: # the smallest destination screen, make an xlat function that
10932: # scales this frame buffer down by two:
10933: if test ${area_smallest} = 0; then
10934: percentage=100
10935: else
10936: percentage=`expr ${this_area} / ${area_smallest}`
10937: fi
10938: if test `expr ${percentage} \> 70` = 1; then
10939: src_key="${fb_xlat}_h"
10940: if echo " ${TME_FB_XLAT_SRC} " | grep " ${src_key} " > /dev/null 2>&1; then :; else
10941: TME_FB_XLAT_SRC="${TME_FB_XLAT_SRC} ${src_key}"
10942: fi
10943: fi
10944:
10945: # if this frame buffer would consume less than 30 percent of
10946: # the largest destination screen, make an xlat function that
10947: # scales this frame buffer up by two:
10948: if test ${area_largest} = 0; then
10949: percentage=0
10950: else
10951: percentage=`expr ${this_area} / ${area_largest}`
10952: fi
10953: if test `expr ${percentage} \< 30` = 1; then
10954: src_key="${fb_xlat}_d"
10955: if echo " ${TME_FB_XLAT_SRC} " | grep " ${src_key} " > /dev/null 2>&1; then :; else
10956: TME_FB_XLAT_SRC="${TME_FB_XLAT_SRC} ${src_key}"
10957: fi
10958: fi
10959: done
1.1 root 10960: done
1.1.1.2 root 10961:
10962:
10963:
10964:
1.1 root 10965:
10966:
10967:
10968:
10969:
10970:
10971: echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
10972: echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
10973: if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
10974: echo $ECHO_N "(cached) $ECHO_C" >&6
10975: else
10976: ac_check_lib_save_LIBS=$LIBS
10977: LIBS="-lltdl $LIBS"
10978: cat >conftest.$ac_ext <<_ACEOF
10979: #line $LINENO "configure"
10980: /* confdefs.h. */
10981: _ACEOF
10982: cat confdefs.h >>conftest.$ac_ext
10983: cat >>conftest.$ac_ext <<_ACEOF
10984: /* end confdefs.h. */
10985:
10986: /* Override any gcc2 internal prototype to avoid an error. */
10987: #ifdef __cplusplus
10988: extern "C"
10989: #endif
10990: /* We use char because int might match the return type of a gcc2
10991: builtin and then its argument prototype would still apply. */
10992: char lt_dlinit ();
10993: int
10994: main ()
10995: {
10996: lt_dlinit ();
10997: ;
10998: return 0;
10999: }
11000: _ACEOF
11001: rm -f conftest.$ac_objext conftest$ac_exeext
11002: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11003: (eval $ac_link) 2>&5
11004: ac_status=$?
11005: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006: (exit $ac_status); } &&
11007: { ac_try='test -s conftest$ac_exeext'
11008: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009: (eval $ac_try) 2>&5
11010: ac_status=$?
11011: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012: (exit $ac_status); }; }; then
11013: ac_cv_lib_ltdl_lt_dlinit=yes
11014: else
11015: echo "$as_me: failed program was:" >&5
11016: sed 's/^/| /' conftest.$ac_ext >&5
11017:
11018: ac_cv_lib_ltdl_lt_dlinit=no
11019: fi
11020: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11021: LIBS=$ac_check_lib_save_LIBS
11022: fi
11023: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
11024: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
11025: if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
11026: test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
11027: else
11028: if test x"$enable_ltdl_install" = xno; then
11029: { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
11030: echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
11031: else
11032: enable_ltdl_install=yes
11033: fi
11034:
11035: fi
11036:
11037: if test x"$enable_ltdl_install" = x"yes"; then
11038: ac_configure_args="$ac_configure_args --enable-ltdl-install"
11039: LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
11040: LTDLINCL='-I${top_srcdir}/''libltdl'
11041: else
11042: ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
11043: LIBLTDL="-lltdl"
11044: LTDLINCL=
11045: fi
11046: # For backwards non-gettext consistent compatibility...
11047: INCLTDL="$LTDLINCL"
11048:
11049:
11050:
11051:
11052:
11053: # Check whether --enable-shared or --disable-shared was given.
11054: if test "${enable_shared+set}" = set; then
11055: enableval="$enable_shared"
11056: p=${PACKAGE-default}
11057: case $enableval in
11058: yes) enable_shared=yes ;;
11059: no) enable_shared=no ;;
11060: *)
11061: enable_shared=no
11062: # Look at the argument we got. We use all the common list separators.
11063: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11064: for pkg in $enableval; do
11065: IFS="$lt_save_ifs"
11066: if test "X$pkg" = "X$p"; then
11067: enable_shared=yes
11068: fi
11069: done
11070: IFS="$lt_save_ifs"
11071: ;;
11072: esac
11073: else
11074: enable_shared=yes
11075: fi;
11076:
11077: # Check whether --enable-static or --disable-static was given.
11078: if test "${enable_static+set}" = set; then
11079: enableval="$enable_static"
11080: p=${PACKAGE-default}
11081: case $enableval in
11082: yes) enable_static=yes ;;
11083: no) enable_static=no ;;
11084: *)
11085: enable_static=no
11086: # Look at the argument we got. We use all the common list separators.
11087: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11088: for pkg in $enableval; do
11089: IFS="$lt_save_ifs"
11090: if test "X$pkg" = "X$p"; then
11091: enable_static=yes
11092: fi
11093: done
11094: IFS="$lt_save_ifs"
11095: ;;
11096: esac
11097: else
11098: enable_static=yes
11099: fi;
11100:
11101: # Check whether --enable-fast-install or --disable-fast-install was given.
11102: if test "${enable_fast_install+set}" = set; then
11103: enableval="$enable_fast_install"
11104: p=${PACKAGE-default}
11105: case $enableval in
11106: yes) enable_fast_install=yes ;;
11107: no) enable_fast_install=no ;;
11108: *)
11109: enable_fast_install=no
11110: # Look at the argument we got. We use all the common list separators.
11111: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11112: for pkg in $enableval; do
11113: IFS="$lt_save_ifs"
11114: if test "X$pkg" = "X$p"; then
11115: enable_fast_install=yes
11116: fi
11117: done
11118: IFS="$lt_save_ifs"
11119: ;;
11120: esac
11121: else
11122: enable_fast_install=yes
11123: fi;
11124:
11125: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11126: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
11127: if test "${lt_cv_path_SED+set}" = set; then
11128: echo $ECHO_N "(cached) $ECHO_C" >&6
11129: else
11130: # Loop through the user's path and test for sed and gsed.
11131: # Then use that list of sed's as ones to test for truncation.
11132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11133: for as_dir in $PATH
11134: do
11135: IFS=$as_save_IFS
11136: test -z "$as_dir" && as_dir=.
11137: for lt_ac_prog in sed gsed; do
11138: for ac_exec_ext in '' $ac_executable_extensions; do
11139: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11140: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11141: fi
11142: done
11143: done
11144: done
11145: lt_ac_max=0
11146: lt_ac_count=0
11147: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11148: # along with /bin/sed that truncates output.
11149: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11150: test ! -f $lt_ac_sed && break
11151: cat /dev/null > conftest.in
11152: lt_ac_count=0
11153: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11154: # Check for GNU sed and select it if it is found.
11155: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11156: lt_cv_path_SED=$lt_ac_sed
11157: break
11158: fi
11159: while true; do
11160: cat conftest.in conftest.in >conftest.tmp
11161: mv conftest.tmp conftest.in
11162: cp conftest.in conftest.nl
11163: echo >>conftest.nl
11164: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11165: cmp -s conftest.out conftest.nl || break
11166: # 10000 chars as input seems more than enough
11167: test $lt_ac_count -gt 10 && break
11168: lt_ac_count=`expr $lt_ac_count + 1`
11169: if test $lt_ac_count -gt $lt_ac_max; then
11170: lt_ac_max=$lt_ac_count
11171: lt_cv_path_SED=$lt_ac_sed
11172: fi
11173: done
11174: done
11175: SED=$lt_cv_path_SED
11176:
11177: fi
11178:
11179: echo "$as_me:$LINENO: result: $SED" >&5
11180: echo "${ECHO_T}$SED" >&6
11181:
11182:
11183: # Check whether --with-gnu-ld or --without-gnu-ld was given.
11184: if test "${with_gnu_ld+set}" = set; then
11185: withval="$with_gnu_ld"
11186: test "$withval" = no || with_gnu_ld=yes
11187: else
11188: with_gnu_ld=no
11189: fi;
11190: ac_prog=ld
11191: if test "$GCC" = yes; then
11192: # Check if gcc -print-prog-name=ld gives a path.
11193: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11194: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11195: case $host in
11196: *-*-mingw*)
11197: # gcc leaves a trailing carriage return which upsets mingw
11198: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11199: *)
11200: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11201: esac
11202: case $ac_prog in
11203: # Accept absolute paths.
11204: [\\/]* | ?:[\\/]*)
11205: re_direlt='/[^/][^/]*/\.\./'
11206: # Canonicalize the path of ld
11207: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11208: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11209: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11210: done
11211: test -z "$LD" && LD="$ac_prog"
11212: ;;
11213: "")
11214: # If it fails, then pretend we aren't using GCC.
11215: ac_prog=ld
11216: ;;
11217: *)
11218: # If it is relative, then search for the first ld in PATH.
11219: with_gnu_ld=unknown
11220: ;;
11221: esac
11222: elif test "$with_gnu_ld" = yes; then
11223: echo "$as_me:$LINENO: checking for GNU ld" >&5
11224: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11225: else
11226: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11227: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11228: fi
11229: if test "${lt_cv_path_LD+set}" = set; then
11230: echo $ECHO_N "(cached) $ECHO_C" >&6
11231: else
11232: if test -z "$LD"; then
11233: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11234: for ac_dir in $PATH; do
11235: IFS="$lt_save_ifs"
11236: test -z "$ac_dir" && ac_dir=.
11237: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11238: lt_cv_path_LD="$ac_dir/$ac_prog"
11239: # Check to see if the program is GNU ld. I'd rather use --version,
11240: # but apparently some GNU ld's only accept -v.
11241: # Break only if it was the GNU/non-GNU ld that we prefer.
11242: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11243: *GNU* | *'with BFD'*)
11244: test "$with_gnu_ld" != no && break
11245: ;;
11246: *)
11247: test "$with_gnu_ld" != yes && break
11248: ;;
11249: esac
11250: fi
11251: done
11252: IFS="$lt_save_ifs"
11253: else
11254: lt_cv_path_LD="$LD" # Let the user override the test with a path.
11255: fi
11256: fi
11257:
11258: LD="$lt_cv_path_LD"
11259: if test -n "$LD"; then
11260: echo "$as_me:$LINENO: result: $LD" >&5
11261: echo "${ECHO_T}$LD" >&6
11262: else
11263: echo "$as_me:$LINENO: result: no" >&5
11264: echo "${ECHO_T}no" >&6
11265: fi
11266: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11267: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11268: { (exit 1); exit 1; }; }
11269: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11270: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11271: if test "${lt_cv_prog_gnu_ld+set}" = set; then
11272: echo $ECHO_N "(cached) $ECHO_C" >&6
11273: else
11274: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11275: case `"$LD" -v 2>&1 </dev/null` in
11276: *GNU* | *'with BFD'*)
11277: lt_cv_prog_gnu_ld=yes
11278: ;;
11279: *)
11280: lt_cv_prog_gnu_ld=no
11281: ;;
11282: esac
11283: fi
11284: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11285: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11286: with_gnu_ld=$lt_cv_prog_gnu_ld
11287:
11288:
11289: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11290: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
11291: if test "${lt_cv_ld_reload_flag+set}" = set; then
11292: echo $ECHO_N "(cached) $ECHO_C" >&6
11293: else
11294: lt_cv_ld_reload_flag='-r'
11295: fi
11296: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11297: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
11298: reload_flag=$lt_cv_ld_reload_flag
11299: case $reload_flag in
11300: "" | " "*) ;;
11301: *) reload_flag=" $reload_flag" ;;
11302: esac
11303: reload_cmds='$LD$reload_flag -o $output$reload_objs'
11304:
11305: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
11306: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
11307: if test "${lt_cv_path_NM+set}" = set; then
11308: echo $ECHO_N "(cached) $ECHO_C" >&6
11309: else
11310: if test -n "$NM"; then
11311: # Let the user override the test.
11312: lt_cv_path_NM="$NM"
11313: else
11314: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11315: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
11316: IFS="$lt_save_ifs"
11317: test -z "$ac_dir" && ac_dir=.
11318: tmp_nm="$ac_dir/${ac_tool_prefix}nm"
11319: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11320: # Check to see if the nm accepts a BSD-compat flag.
11321: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11322: # nm: unknown option "B" ignored
11323: # Tru64's nm complains that /dev/null is an invalid object file
11324: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11325: */dev/null* | *'Invalid file or object type'*)
11326: lt_cv_path_NM="$tmp_nm -B"
11327: break
11328: ;;
11329: *)
11330: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11331: */dev/null*)
11332: lt_cv_path_NM="$tmp_nm -p"
11333: break
11334: ;;
11335: *)
11336: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11337: continue # so that we can try to find one that supports BSD flags
11338: ;;
11339: esac
11340: esac
11341: fi
11342: done
11343: IFS="$lt_save_ifs"
11344: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
11345: fi
11346: fi
11347: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
11348: echo "${ECHO_T}$lt_cv_path_NM" >&6
11349: NM="$lt_cv_path_NM"
11350:
11351: echo "$as_me:$LINENO: checking whether ln -s works" >&5
11352: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11353: LN_S=$as_ln_s
11354: if test "$LN_S" = "ln -s"; then
11355: echo "$as_me:$LINENO: result: yes" >&5
11356: echo "${ECHO_T}yes" >&6
11357: else
11358: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11359: echo "${ECHO_T}no, using $LN_S" >&6
11360: fi
11361:
11362: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11363: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
11364: if test "${lt_cv_deplibs_check_method+set}" = set; then
11365: echo $ECHO_N "(cached) $ECHO_C" >&6
11366: else
11367: lt_cv_file_magic_cmd='$MAGIC_CMD'
11368: lt_cv_file_magic_test_file=
11369: lt_cv_deplibs_check_method='unknown'
11370: # Need to set the preceding variable on all platforms that support
11371: # interlibrary dependencies.
11372: # 'none' -- dependencies not supported.
11373: # `unknown' -- same as none, but documents that we really don't know.
11374: # 'pass_all' -- all dependencies passed with no checks.
11375: # 'test_compile' -- check by making test program.
11376: # 'file_magic [[regex]]' -- check by looking for files in library path
11377: # which responds to the $file_magic_cmd with a given extended regex.
11378: # If you have `file' or equivalent on your system and you're not sure
11379: # whether `pass_all' will *always* work, you probably want this one.
11380:
11381: case $host_os in
11382: aix4* | aix5*)
11383: lt_cv_deplibs_check_method=pass_all
11384: ;;
11385:
11386: beos*)
11387: lt_cv_deplibs_check_method=pass_all
11388: ;;
11389:
11390: bsdi4*)
11391: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11392: lt_cv_file_magic_cmd='/usr/bin/file -L'
11393: lt_cv_file_magic_test_file=/shlib/libc.so
11394: ;;
11395:
11396: cygwin* | mingw* | pw32*)
11397: # win32_libid is a shell function defined in ltmain.sh
11398: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11399: lt_cv_file_magic_cmd='win32_libid'
11400: ;;
11401:
11402: darwin* | rhapsody*)
11403: # this will be overwritten by pass_all, but leave it in just in case
11404: lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
11405: lt_cv_file_magic_cmd='/usr/bin/file -L'
11406: case "$host_os" in
11407: rhapsody* | darwin1.[012])
11408: lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
11409: ;;
11410: *) # Darwin 1.3 on
11411: lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
11412: ;;
11413: esac
11414: lt_cv_deplibs_check_method=pass_all
11415: ;;
11416:
11417: freebsd*)
11418: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11419: case $host_cpu in
11420: i*86 )
11421: # Not sure whether the presence of OpenBSD here was a mistake.
11422: # Let's accept both of them until this is cleared up.
11423: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
11424: lt_cv_file_magic_cmd=/usr/bin/file
11425: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11426: ;;
11427: esac
11428: else
11429: lt_cv_deplibs_check_method=pass_all
11430: fi
11431: ;;
11432:
11433: gnu*)
11434: lt_cv_deplibs_check_method=pass_all
11435: ;;
11436:
11437: hpux10.20* | hpux11*)
11438: lt_cv_file_magic_cmd=/usr/bin/file
11439: case "$host_cpu" in
11440: ia64*)
11441: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11442: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11443: ;;
11444: hppa*64*)
11445: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
11446: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11447: ;;
11448: *)
11449: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11450: lt_cv_file_magic_test_file=/usr/lib/libc.sl
11451: ;;
11452: esac
11453: ;;
11454:
11455: irix5* | irix6* | nonstopux*)
11456: case $host_os in
11457: irix5* | nonstopux*)
11458: # this will be overridden with pass_all, but let us keep it just in case
11459: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
11460: ;;
11461: *)
11462: case $LD in
11463: *-32|*"-32 ") libmagic=32-bit;;
11464: *-n32|*"-n32 ") libmagic=N32;;
11465: *-64|*"-64 ") libmagic=64-bit;;
11466: *) libmagic=never-match;;
11467: esac
11468: # this will be overridden with pass_all, but let us keep it just in case
11469: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
11470: ;;
11471: esac
11472: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
11473: lt_cv_deplibs_check_method=pass_all
11474: ;;
11475:
11476: # This must be Linux ELF.
11477: linux*)
11478: case $host_cpu in
11479: alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
11480: lt_cv_deplibs_check_method=pass_all ;;
11481: *)
11482: # glibc up to 2.1.1 does not perform some relocations on ARM
11483: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
11484: esac
11485: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
11486: ;;
11487:
11488: netbsd*)
11489: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11490: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11491: else
11492: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11493: fi
11494: ;;
11495:
11496: newos6*)
11497: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11498: lt_cv_file_magic_cmd=/usr/bin/file
11499: lt_cv_file_magic_test_file=/usr/lib/libnls.so
11500: ;;
11501:
11502: nto-qnx)
11503: lt_cv_deplibs_check_method=unknown
11504: ;;
11505:
11506: openbsd*)
11507: lt_cv_file_magic_cmd=/usr/bin/file
11508: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11509: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11510: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
11511: else
11512: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
11513: fi
11514: ;;
11515:
11516: osf3* | osf4* | osf5*)
11517: # this will be overridden with pass_all, but let us keep it just in case
11518: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
11519: lt_cv_file_magic_test_file=/shlib/libc.so
11520: lt_cv_deplibs_check_method=pass_all
11521: ;;
11522:
11523: sco3.2v5*)
11524: lt_cv_deplibs_check_method=pass_all
11525: ;;
11526:
11527: solaris*)
11528: lt_cv_deplibs_check_method=pass_all
11529: lt_cv_file_magic_test_file=/lib/libc.so
11530: ;;
11531:
11532: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11533: case $host_vendor in
11534: motorola)
11535: 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]'
11536: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11537: ;;
11538: ncr)
11539: lt_cv_deplibs_check_method=pass_all
11540: ;;
11541: sequent)
11542: lt_cv_file_magic_cmd='/bin/file'
11543: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11544: ;;
11545: sni)
11546: lt_cv_file_magic_cmd='/bin/file'
11547: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11548: lt_cv_file_magic_test_file=/lib/libc.so
11549: ;;
11550: siemens)
11551: lt_cv_deplibs_check_method=pass_all
11552: ;;
11553: esac
11554: ;;
11555:
11556: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
11557: lt_cv_deplibs_check_method=pass_all
11558: ;;
11559: esac
11560:
11561: fi
11562: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11563: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
11564: file_magic_cmd=$lt_cv_file_magic_cmd
11565: deplibs_check_method=$lt_cv_deplibs_check_method
11566: test -z "$deplibs_check_method" && deplibs_check_method=unknown
11567:
11568:
11569:
11570:
11571: # If no C compiler was specified, use CC.
11572: LTCC=${LTCC-"$CC"}
11573:
11574: # Allow CC to be a program name with arguments.
11575: compiler=$CC
11576:
11577: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11578: if test "${enable_libtool_lock+set}" = set; then
11579: enableval="$enable_libtool_lock"
11580:
11581: fi;
11582: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11583:
11584: # Some flags need to be propagated to the compiler or linker for good
11585: # libtool support.
11586: case $host in
11587: ia64-*-hpux*)
11588: # Find out which ABI we are using.
11589: echo 'int i;' > conftest.$ac_ext
11590: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11591: (eval $ac_compile) 2>&5
11592: ac_status=$?
11593: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594: (exit $ac_status); }; then
11595: case `/usr/bin/file conftest.$ac_objext` in
11596: *ELF-32*)
11597: HPUX_IA64_MODE="32"
11598: ;;
11599: *ELF-64*)
11600: HPUX_IA64_MODE="64"
11601: ;;
11602: esac
11603: fi
11604: rm -rf conftest*
11605: ;;
11606: *-*-irix6*)
11607: # Find out which ABI we are using.
1.1.1.3 ! root 11608: echo '#line 11608 "configure"' > conftest.$ac_ext
1.1 root 11609: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11610: (eval $ac_compile) 2>&5
11611: ac_status=$?
11612: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613: (exit $ac_status); }; then
11614: if test "$lt_cv_prog_gnu_ld" = yes; then
11615: case `/usr/bin/file conftest.$ac_objext` in
11616: *32-bit*)
11617: LD="${LD-ld} -melf32bsmip"
11618: ;;
11619: *N32*)
11620: LD="${LD-ld} -melf32bmipn32"
11621: ;;
11622: *64-bit*)
11623: LD="${LD-ld} -melf64bmip"
11624: ;;
11625: esac
11626: else
11627: case `/usr/bin/file conftest.$ac_objext` in
11628: *32-bit*)
11629: LD="${LD-ld} -32"
11630: ;;
11631: *N32*)
11632: LD="${LD-ld} -n32"
11633: ;;
11634: *64-bit*)
11635: LD="${LD-ld} -64"
11636: ;;
11637: esac
11638: fi
11639: fi
11640: rm -rf conftest*
11641: ;;
11642:
11643: x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11644: # Find out which ABI we are using.
11645: echo 'int i;' > conftest.$ac_ext
11646: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11647: (eval $ac_compile) 2>&5
11648: ac_status=$?
11649: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650: (exit $ac_status); }; then
11651: case "`/usr/bin/file conftest.o`" in
11652: *32-bit*)
11653: case $host in
11654: x86_64-*linux*)
11655: LD="${LD-ld} -m elf_i386"
11656: ;;
11657: ppc64-*linux*)
11658: LD="${LD-ld} -m elf32ppclinux"
11659: ;;
11660: s390x-*linux*)
11661: LD="${LD-ld} -m elf_s390"
11662: ;;
11663: sparc64-*linux*)
11664: LD="${LD-ld} -m elf32_sparc"
11665: ;;
11666: esac
11667: ;;
11668: *64-bit*)
11669: case $host in
11670: x86_64-*linux*)
11671: LD="${LD-ld} -m elf_x86_64"
11672: ;;
11673: ppc*-*linux*|powerpc*-*linux*)
11674: LD="${LD-ld} -m elf64ppc"
11675: ;;
11676: s390*-*linux*)
11677: LD="${LD-ld} -m elf64_s390"
11678: ;;
11679: sparc*-*linux*)
11680: LD="${LD-ld} -m elf64_sparc"
11681: ;;
11682: esac
11683: ;;
11684: esac
11685: fi
11686: rm -rf conftest*
11687: ;;
11688:
11689: *-*-sco3.2v5*)
11690: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11691: SAVE_CFLAGS="$CFLAGS"
11692: CFLAGS="$CFLAGS -belf"
11693: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11694: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
11695: if test "${lt_cv_cc_needs_belf+set}" = set; then
11696: echo $ECHO_N "(cached) $ECHO_C" >&6
11697: else
11698: ac_ext=c
11699: ac_cpp='$CPP $CPPFLAGS'
11700: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11701: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11702: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11703:
11704: cat >conftest.$ac_ext <<_ACEOF
11705: #line $LINENO "configure"
11706: /* confdefs.h. */
11707: _ACEOF
11708: cat confdefs.h >>conftest.$ac_ext
11709: cat >>conftest.$ac_ext <<_ACEOF
11710: /* end confdefs.h. */
11711:
11712: int
11713: main ()
11714: {
11715:
11716: ;
11717: return 0;
11718: }
11719: _ACEOF
11720: rm -f conftest.$ac_objext conftest$ac_exeext
11721: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11722: (eval $ac_link) 2>&5
11723: ac_status=$?
11724: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725: (exit $ac_status); } &&
11726: { ac_try='test -s conftest$ac_exeext'
11727: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728: (eval $ac_try) 2>&5
11729: ac_status=$?
11730: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731: (exit $ac_status); }; }; then
11732: lt_cv_cc_needs_belf=yes
11733: else
11734: echo "$as_me: failed program was:" >&5
11735: sed 's/^/| /' conftest.$ac_ext >&5
11736:
11737: lt_cv_cc_needs_belf=no
11738: fi
11739: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11740: ac_ext=c
11741: ac_cpp='$CPP $CPPFLAGS'
11742: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11743: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11744: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11745:
11746: fi
11747: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11748: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
11749: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11750: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11751: CFLAGS="$SAVE_CFLAGS"
11752: fi
11753: ;;
11754:
11755: esac
11756:
11757: need_locks="$enable_libtool_lock"
11758:
11759:
11760:
11761: for ac_header in dlfcn.h
11762: do
11763: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11764: if eval "test \"\${$as_ac_Header+set}\" = set"; then
11765: echo "$as_me:$LINENO: checking for $ac_header" >&5
11766: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11767: if eval "test \"\${$as_ac_Header+set}\" = set"; then
11768: echo $ECHO_N "(cached) $ECHO_C" >&6
11769: fi
11770: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11771: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11772: else
11773: # Is the header compilable?
11774: echo "$as_me:$LINENO: checking $ac_header usability" >&5
11775: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11776: cat >conftest.$ac_ext <<_ACEOF
11777: #line $LINENO "configure"
11778: /* confdefs.h. */
11779: _ACEOF
11780: cat confdefs.h >>conftest.$ac_ext
11781: cat >>conftest.$ac_ext <<_ACEOF
11782: /* end confdefs.h. */
11783: $ac_includes_default
11784: #include <$ac_header>
11785: _ACEOF
11786: rm -f conftest.$ac_objext
11787: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11788: (eval $ac_compile) 2>&5
11789: ac_status=$?
11790: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791: (exit $ac_status); } &&
11792: { ac_try='test -s conftest.$ac_objext'
11793: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794: (eval $ac_try) 2>&5
11795: ac_status=$?
11796: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797: (exit $ac_status); }; }; then
11798: ac_header_compiler=yes
11799: else
11800: echo "$as_me: failed program was:" >&5
11801: sed 's/^/| /' conftest.$ac_ext >&5
11802:
11803: ac_header_compiler=no
11804: fi
11805: rm -f conftest.$ac_objext conftest.$ac_ext
11806: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11807: echo "${ECHO_T}$ac_header_compiler" >&6
11808:
11809: # Is the header present?
11810: echo "$as_me:$LINENO: checking $ac_header presence" >&5
11811: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11812: cat >conftest.$ac_ext <<_ACEOF
11813: #line $LINENO "configure"
11814: /* confdefs.h. */
11815: _ACEOF
11816: cat confdefs.h >>conftest.$ac_ext
11817: cat >>conftest.$ac_ext <<_ACEOF
11818: /* end confdefs.h. */
11819: #include <$ac_header>
11820: _ACEOF
11821: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11822: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11823: ac_status=$?
11824: grep -v '^ *+' conftest.er1 >conftest.err
11825: rm -f conftest.er1
11826: cat conftest.err >&5
11827: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828: (exit $ac_status); } >/dev/null; then
11829: if test -s conftest.err; then
11830: ac_cpp_err=$ac_c_preproc_warn_flag
11831: else
11832: ac_cpp_err=
11833: fi
11834: else
11835: ac_cpp_err=yes
11836: fi
11837: if test -z "$ac_cpp_err"; then
11838: ac_header_preproc=yes
11839: else
11840: echo "$as_me: failed program was:" >&5
11841: sed 's/^/| /' conftest.$ac_ext >&5
11842:
11843: ac_header_preproc=no
11844: fi
11845: rm -f conftest.err conftest.$ac_ext
11846: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11847: echo "${ECHO_T}$ac_header_preproc" >&6
11848:
11849: # So? What about this header?
11850: case $ac_header_compiler:$ac_header_preproc in
11851: yes:no )
11852: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11853: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11854: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11855: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11856: (
11857: cat <<\_ASBOX
11858: ## ------------------------------------ ##
11859: ## Report this to [email protected]. ##
11860: ## ------------------------------------ ##
11861: _ASBOX
11862: ) |
11863: sed "s/^/$as_me: WARNING: /" >&2
11864: ;;
11865: no:yes )
11866: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11867: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11868: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11869: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11870: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11871: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11872: (
11873: cat <<\_ASBOX
11874: ## ------------------------------------ ##
11875: ## Report this to [email protected]. ##
11876: ## ------------------------------------ ##
11877: _ASBOX
11878: ) |
11879: sed "s/^/$as_me: WARNING: /" >&2
11880: ;;
11881: esac
11882: echo "$as_me:$LINENO: checking for $ac_header" >&5
11883: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11884: if eval "test \"\${$as_ac_Header+set}\" = set"; then
11885: echo $ECHO_N "(cached) $ECHO_C" >&6
11886: else
11887: eval "$as_ac_Header=$ac_header_preproc"
11888: fi
11889: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11890: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11891:
11892: fi
11893: if test `eval echo '${'$as_ac_Header'}'` = yes; then
11894: cat >>confdefs.h <<_ACEOF
11895: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11896: _ACEOF
11897:
11898: fi
11899:
11900: done
11901:
11902: ac_ext=cc
11903: ac_cpp='$CXXCPP $CPPFLAGS'
11904: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11905: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11906: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11907: if test -n "$ac_tool_prefix"; then
11908: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11909: do
11910: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11911: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11912: echo "$as_me:$LINENO: checking for $ac_word" >&5
11913: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11914: if test "${ac_cv_prog_CXX+set}" = set; then
11915: echo $ECHO_N "(cached) $ECHO_C" >&6
11916: else
11917: if test -n "$CXX"; then
11918: ac_cv_prog_CXX="$CXX" # Let the user override the test.
11919: else
11920: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11921: for as_dir in $PATH
11922: do
11923: IFS=$as_save_IFS
11924: test -z "$as_dir" && as_dir=.
11925: for ac_exec_ext in '' $ac_executable_extensions; do
11926: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11927: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11928: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11929: break 2
11930: fi
11931: done
11932: done
11933:
11934: fi
11935: fi
11936: CXX=$ac_cv_prog_CXX
11937: if test -n "$CXX"; then
11938: echo "$as_me:$LINENO: result: $CXX" >&5
11939: echo "${ECHO_T}$CXX" >&6
11940: else
11941: echo "$as_me:$LINENO: result: no" >&5
11942: echo "${ECHO_T}no" >&6
11943: fi
11944:
11945: test -n "$CXX" && break
11946: done
11947: fi
11948: if test -z "$CXX"; then
11949: ac_ct_CXX=$CXX
11950: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11951: do
11952: # Extract the first word of "$ac_prog", so it can be a program name with args.
11953: set dummy $ac_prog; ac_word=$2
11954: echo "$as_me:$LINENO: checking for $ac_word" >&5
11955: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11956: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11957: echo $ECHO_N "(cached) $ECHO_C" >&6
11958: else
11959: if test -n "$ac_ct_CXX"; then
11960: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11961: else
11962: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963: for as_dir in $PATH
11964: do
11965: IFS=$as_save_IFS
11966: test -z "$as_dir" && as_dir=.
11967: for ac_exec_ext in '' $ac_executable_extensions; do
11968: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11969: ac_cv_prog_ac_ct_CXX="$ac_prog"
11970: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11971: break 2
11972: fi
11973: done
11974: done
11975:
11976: fi
11977: fi
11978: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11979: if test -n "$ac_ct_CXX"; then
11980: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11981: echo "${ECHO_T}$ac_ct_CXX" >&6
11982: else
11983: echo "$as_me:$LINENO: result: no" >&5
11984: echo "${ECHO_T}no" >&6
11985: fi
11986:
11987: test -n "$ac_ct_CXX" && break
11988: done
11989: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11990:
11991: CXX=$ac_ct_CXX
11992: fi
11993:
11994:
11995: # Provide some information about the compiler.
11996: echo "$as_me:$LINENO:" \
11997: "checking for C++ compiler version" >&5
11998: ac_compiler=`set X $ac_compile; echo $2`
11999: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12000: (eval $ac_compiler --version </dev/null >&5) 2>&5
12001: ac_status=$?
12002: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003: (exit $ac_status); }
12004: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12005: (eval $ac_compiler -v </dev/null >&5) 2>&5
12006: ac_status=$?
12007: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008: (exit $ac_status); }
12009: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12010: (eval $ac_compiler -V </dev/null >&5) 2>&5
12011: ac_status=$?
12012: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013: (exit $ac_status); }
12014:
12015: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12016: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12017: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12018: echo $ECHO_N "(cached) $ECHO_C" >&6
12019: else
12020: cat >conftest.$ac_ext <<_ACEOF
12021: #line $LINENO "configure"
12022: /* confdefs.h. */
12023: _ACEOF
12024: cat confdefs.h >>conftest.$ac_ext
12025: cat >>conftest.$ac_ext <<_ACEOF
12026: /* end confdefs.h. */
12027:
12028: int
12029: main ()
12030: {
12031: #ifndef __GNUC__
12032: choke me
12033: #endif
12034:
12035: ;
12036: return 0;
12037: }
12038: _ACEOF
12039: rm -f conftest.$ac_objext
12040: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12041: (eval $ac_compile) 2>&5
12042: ac_status=$?
12043: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044: (exit $ac_status); } &&
12045: { ac_try='test -s conftest.$ac_objext'
12046: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047: (eval $ac_try) 2>&5
12048: ac_status=$?
12049: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050: (exit $ac_status); }; }; then
12051: ac_compiler_gnu=yes
12052: else
12053: echo "$as_me: failed program was:" >&5
12054: sed 's/^/| /' conftest.$ac_ext >&5
12055:
12056: ac_compiler_gnu=no
12057: fi
12058: rm -f conftest.$ac_objext conftest.$ac_ext
12059: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12060:
12061: fi
12062: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12063: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12064: GXX=`test $ac_compiler_gnu = yes && echo yes`
12065: ac_test_CXXFLAGS=${CXXFLAGS+set}
12066: ac_save_CXXFLAGS=$CXXFLAGS
12067: CXXFLAGS="-g"
12068: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12069: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12070: if test "${ac_cv_prog_cxx_g+set}" = set; then
12071: echo $ECHO_N "(cached) $ECHO_C" >&6
12072: else
12073: cat >conftest.$ac_ext <<_ACEOF
12074: #line $LINENO "configure"
12075: /* confdefs.h. */
12076: _ACEOF
12077: cat confdefs.h >>conftest.$ac_ext
12078: cat >>conftest.$ac_ext <<_ACEOF
12079: /* end confdefs.h. */
12080:
12081: int
12082: main ()
12083: {
12084:
12085: ;
12086: return 0;
12087: }
12088: _ACEOF
12089: rm -f conftest.$ac_objext
12090: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12091: (eval $ac_compile) 2>&5
12092: ac_status=$?
12093: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094: (exit $ac_status); } &&
12095: { ac_try='test -s conftest.$ac_objext'
12096: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097: (eval $ac_try) 2>&5
12098: ac_status=$?
12099: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100: (exit $ac_status); }; }; then
12101: ac_cv_prog_cxx_g=yes
12102: else
12103: echo "$as_me: failed program was:" >&5
12104: sed 's/^/| /' conftest.$ac_ext >&5
12105:
12106: ac_cv_prog_cxx_g=no
12107: fi
12108: rm -f conftest.$ac_objext conftest.$ac_ext
12109: fi
12110: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12111: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12112: if test "$ac_test_CXXFLAGS" = set; then
12113: CXXFLAGS=$ac_save_CXXFLAGS
12114: elif test $ac_cv_prog_cxx_g = yes; then
12115: if test "$GXX" = yes; then
12116: CXXFLAGS="-g -O2"
12117: else
12118: CXXFLAGS="-g"
12119: fi
12120: else
12121: if test "$GXX" = yes; then
12122: CXXFLAGS="-O2"
12123: else
12124: CXXFLAGS=
12125: fi
12126: fi
12127: for ac_declaration in \
12128: ''\
12129: '#include <stdlib.h>' \
12130: 'extern "C" void std::exit (int) throw (); using std::exit;' \
12131: 'extern "C" void std::exit (int); using std::exit;' \
12132: 'extern "C" void exit (int) throw ();' \
12133: 'extern "C" void exit (int);' \
12134: 'void exit (int);'
12135: do
12136: cat >conftest.$ac_ext <<_ACEOF
12137: #line $LINENO "configure"
12138: /* confdefs.h. */
12139: _ACEOF
12140: cat confdefs.h >>conftest.$ac_ext
12141: cat >>conftest.$ac_ext <<_ACEOF
12142: /* end confdefs.h. */
12143: #include <stdlib.h>
12144: $ac_declaration
12145: int
12146: main ()
12147: {
12148: exit (42);
12149: ;
12150: return 0;
12151: }
12152: _ACEOF
12153: rm -f conftest.$ac_objext
12154: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12155: (eval $ac_compile) 2>&5
12156: ac_status=$?
12157: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158: (exit $ac_status); } &&
12159: { ac_try='test -s conftest.$ac_objext'
12160: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161: (eval $ac_try) 2>&5
12162: ac_status=$?
12163: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164: (exit $ac_status); }; }; then
12165: :
12166: else
12167: echo "$as_me: failed program was:" >&5
12168: sed 's/^/| /' conftest.$ac_ext >&5
12169:
12170: continue
12171: fi
12172: rm -f conftest.$ac_objext conftest.$ac_ext
12173: cat >conftest.$ac_ext <<_ACEOF
12174: #line $LINENO "configure"
12175: /* confdefs.h. */
12176: _ACEOF
12177: cat confdefs.h >>conftest.$ac_ext
12178: cat >>conftest.$ac_ext <<_ACEOF
12179: /* end confdefs.h. */
12180: $ac_declaration
12181: int
12182: main ()
12183: {
12184: exit (42);
12185: ;
12186: return 0;
12187: }
12188: _ACEOF
12189: rm -f conftest.$ac_objext
12190: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12191: (eval $ac_compile) 2>&5
12192: ac_status=$?
12193: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194: (exit $ac_status); } &&
12195: { ac_try='test -s conftest.$ac_objext'
12196: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197: (eval $ac_try) 2>&5
12198: ac_status=$?
12199: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200: (exit $ac_status); }; }; then
12201: break
12202: else
12203: echo "$as_me: failed program was:" >&5
12204: sed 's/^/| /' conftest.$ac_ext >&5
12205:
12206: fi
12207: rm -f conftest.$ac_objext conftest.$ac_ext
12208: done
12209: rm -f conftest*
12210: if test -n "$ac_declaration"; then
12211: echo '#ifdef __cplusplus' >>confdefs.h
12212: echo $ac_declaration >>confdefs.h
12213: echo '#endif' >>confdefs.h
12214: fi
12215:
12216: ac_ext=cc
12217: ac_cpp='$CXXCPP $CPPFLAGS'
12218: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12219: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12220: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12221:
12222: depcc="$CXX" am_compiler_list=
12223:
12224: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12225: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12226: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12227: echo $ECHO_N "(cached) $ECHO_C" >&6
12228: else
12229: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12230: # We make a subdir and do the tests there. Otherwise we can end up
12231: # making bogus files that we don't know about and never remove. For
12232: # instance it was reported that on HP-UX the gcc test will end up
12233: # making a dummy file named `D' -- because `-MD' means `put the output
12234: # in D'.
12235: mkdir conftest.dir
12236: # Copy depcomp to subdir because otherwise we won't find it if we're
12237: # using a relative directory.
12238: cp "$am_depcomp" conftest.dir
12239: cd conftest.dir
12240:
12241: am_cv_CXX_dependencies_compiler_type=none
12242: if test "$am_compiler_list" = ""; then
12243: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12244: fi
12245: for depmode in $am_compiler_list; do
12246: # We need to recreate these files for each test, as the compiler may
12247: # overwrite some of them when testing with obscure command lines.
12248: # This happens at least with the AIX C compiler.
12249: echo '#include "conftest.h"' > conftest.c
12250: echo 'int i;' > conftest.h
12251: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
12252:
12253: case $depmode in
12254: nosideeffect)
12255: # after this tag, mechanisms are not by side-effect, so they'll
12256: # only be used when explicitly requested
12257: if test "x$enable_dependency_tracking" = xyes; then
12258: continue
12259: else
12260: break
12261: fi
12262: ;;
12263: none) break ;;
12264: esac
12265: # We check with `-c' and `-o' for the sake of the "dashmstdout"
12266: # mode. It turns out that the SunPro C++ compiler does not properly
12267: # handle `-M -o', and we need to detect this.
12268: if depmode=$depmode \
12269: source=conftest.c object=conftest.o \
12270: depfile=conftest.Po tmpdepfile=conftest.TPo \
12271: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
12272: grep conftest.h conftest.Po > /dev/null 2>&1 &&
12273: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12274: am_cv_CXX_dependencies_compiler_type=$depmode
12275: break
12276: fi
12277: done
12278:
12279: cd ..
12280: rm -rf conftest.dir
12281: else
12282: am_cv_CXX_dependencies_compiler_type=none
12283: fi
12284:
12285: fi
12286: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
12287: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
12288: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12289:
12290:
12291:
12292: if
12293: test "x$enable_dependency_tracking" != xno \
12294: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12295: am__fastdepCXX_TRUE=
12296: am__fastdepCXX_FALSE='#'
12297: else
12298: am__fastdepCXX_TRUE='#'
12299: am__fastdepCXX_FALSE=
12300: fi
12301:
12302:
12303: ac_ext=cc
12304: ac_cpp='$CXXCPP $CPPFLAGS'
12305: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12306: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12307: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12308: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12309: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
12310: if test -z "$CXXCPP"; then
12311: if test "${ac_cv_prog_CXXCPP+set}" = set; then
12312: echo $ECHO_N "(cached) $ECHO_C" >&6
12313: else
12314: # Double quotes because CXXCPP needs to be expanded
12315: for CXXCPP in "$CXX -E" "/lib/cpp"
12316: do
12317: ac_preproc_ok=false
12318: for ac_cxx_preproc_warn_flag in '' yes
12319: do
12320: # Use a header file that comes with gcc, so configuring glibc
12321: # with a fresh cross-compiler works.
12322: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12323: # <limits.h> exists even on freestanding compilers.
12324: # On the NeXT, cc -E runs the code through the compiler's parser,
12325: # not just through cpp. "Syntax error" is here to catch this case.
12326: cat >conftest.$ac_ext <<_ACEOF
12327: #line $LINENO "configure"
12328: /* confdefs.h. */
12329: _ACEOF
12330: cat confdefs.h >>conftest.$ac_ext
12331: cat >>conftest.$ac_ext <<_ACEOF
12332: /* end confdefs.h. */
12333: #ifdef __STDC__
12334: # include <limits.h>
12335: #else
12336: # include <assert.h>
12337: #endif
12338: Syntax error
12339: _ACEOF
12340: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12341: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12342: ac_status=$?
12343: grep -v '^ *+' conftest.er1 >conftest.err
12344: rm -f conftest.er1
12345: cat conftest.err >&5
12346: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347: (exit $ac_status); } >/dev/null; then
12348: if test -s conftest.err; then
12349: ac_cpp_err=$ac_cxx_preproc_warn_flag
12350: else
12351: ac_cpp_err=
12352: fi
12353: else
12354: ac_cpp_err=yes
12355: fi
12356: if test -z "$ac_cpp_err"; then
12357: :
12358: else
12359: echo "$as_me: failed program was:" >&5
12360: sed 's/^/| /' conftest.$ac_ext >&5
12361:
12362: # Broken: fails on valid input.
12363: continue
12364: fi
12365: rm -f conftest.err conftest.$ac_ext
12366:
12367: # OK, works on sane cases. Now check whether non-existent headers
12368: # can be detected and how.
12369: cat >conftest.$ac_ext <<_ACEOF
12370: #line $LINENO "configure"
12371: /* confdefs.h. */
12372: _ACEOF
12373: cat confdefs.h >>conftest.$ac_ext
12374: cat >>conftest.$ac_ext <<_ACEOF
12375: /* end confdefs.h. */
12376: #include <ac_nonexistent.h>
12377: _ACEOF
12378: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12379: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12380: ac_status=$?
12381: grep -v '^ *+' conftest.er1 >conftest.err
12382: rm -f conftest.er1
12383: cat conftest.err >&5
12384: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385: (exit $ac_status); } >/dev/null; then
12386: if test -s conftest.err; then
12387: ac_cpp_err=$ac_cxx_preproc_warn_flag
12388: else
12389: ac_cpp_err=
12390: fi
12391: else
12392: ac_cpp_err=yes
12393: fi
12394: if test -z "$ac_cpp_err"; then
12395: # Broken: success on invalid input.
12396: continue
12397: else
12398: echo "$as_me: failed program was:" >&5
12399: sed 's/^/| /' conftest.$ac_ext >&5
12400:
12401: # Passes both tests.
12402: ac_preproc_ok=:
12403: break
12404: fi
12405: rm -f conftest.err conftest.$ac_ext
12406:
12407: done
12408: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12409: rm -f conftest.err conftest.$ac_ext
12410: if $ac_preproc_ok; then
12411: break
12412: fi
12413:
12414: done
12415: ac_cv_prog_CXXCPP=$CXXCPP
12416:
12417: fi
12418: CXXCPP=$ac_cv_prog_CXXCPP
12419: else
12420: ac_cv_prog_CXXCPP=$CXXCPP
12421: fi
12422: echo "$as_me:$LINENO: result: $CXXCPP" >&5
12423: echo "${ECHO_T}$CXXCPP" >&6
12424: ac_preproc_ok=false
12425: for ac_cxx_preproc_warn_flag in '' yes
12426: do
12427: # Use a header file that comes with gcc, so configuring glibc
12428: # with a fresh cross-compiler works.
12429: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12430: # <limits.h> exists even on freestanding compilers.
12431: # On the NeXT, cc -E runs the code through the compiler's parser,
12432: # not just through cpp. "Syntax error" is here to catch this case.
12433: cat >conftest.$ac_ext <<_ACEOF
12434: #line $LINENO "configure"
12435: /* confdefs.h. */
12436: _ACEOF
12437: cat confdefs.h >>conftest.$ac_ext
12438: cat >>conftest.$ac_ext <<_ACEOF
12439: /* end confdefs.h. */
12440: #ifdef __STDC__
12441: # include <limits.h>
12442: #else
12443: # include <assert.h>
12444: #endif
12445: Syntax error
12446: _ACEOF
12447: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12448: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12449: ac_status=$?
12450: grep -v '^ *+' conftest.er1 >conftest.err
12451: rm -f conftest.er1
12452: cat conftest.err >&5
12453: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454: (exit $ac_status); } >/dev/null; then
12455: if test -s conftest.err; then
12456: ac_cpp_err=$ac_cxx_preproc_warn_flag
12457: else
12458: ac_cpp_err=
12459: fi
12460: else
12461: ac_cpp_err=yes
12462: fi
12463: if test -z "$ac_cpp_err"; then
12464: :
12465: else
12466: echo "$as_me: failed program was:" >&5
12467: sed 's/^/| /' conftest.$ac_ext >&5
12468:
12469: # Broken: fails on valid input.
12470: continue
12471: fi
12472: rm -f conftest.err conftest.$ac_ext
12473:
12474: # OK, works on sane cases. Now check whether non-existent headers
12475: # can be detected and how.
12476: cat >conftest.$ac_ext <<_ACEOF
12477: #line $LINENO "configure"
12478: /* confdefs.h. */
12479: _ACEOF
12480: cat confdefs.h >>conftest.$ac_ext
12481: cat >>conftest.$ac_ext <<_ACEOF
12482: /* end confdefs.h. */
12483: #include <ac_nonexistent.h>
12484: _ACEOF
12485: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12486: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12487: ac_status=$?
12488: grep -v '^ *+' conftest.er1 >conftest.err
12489: rm -f conftest.er1
12490: cat conftest.err >&5
12491: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492: (exit $ac_status); } >/dev/null; then
12493: if test -s conftest.err; then
12494: ac_cpp_err=$ac_cxx_preproc_warn_flag
12495: else
12496: ac_cpp_err=
12497: fi
12498: else
12499: ac_cpp_err=yes
12500: fi
12501: if test -z "$ac_cpp_err"; then
12502: # Broken: success on invalid input.
12503: continue
12504: else
12505: echo "$as_me: failed program was:" >&5
12506: sed 's/^/| /' conftest.$ac_ext >&5
12507:
12508: # Passes both tests.
12509: ac_preproc_ok=:
12510: break
12511: fi
12512: rm -f conftest.err conftest.$ac_ext
12513:
12514: done
12515: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12516: rm -f conftest.err conftest.$ac_ext
12517: if $ac_preproc_ok; then
12518: :
12519: else
12520: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12521: See \`config.log' for more details." >&5
12522: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12523: See \`config.log' for more details." >&2;}
12524: { (exit 1); exit 1; }; }
12525: fi
12526:
12527: ac_ext=cc
12528: ac_cpp='$CXXCPP $CPPFLAGS'
12529: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12530: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12531: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12532:
12533:
12534: ac_ext=f
12535: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12536: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12537: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12538: if test -n "$ac_tool_prefix"; then
12539: for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
12540: do
12541: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12542: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12543: echo "$as_me:$LINENO: checking for $ac_word" >&5
12544: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12545: if test "${ac_cv_prog_F77+set}" = set; then
12546: echo $ECHO_N "(cached) $ECHO_C" >&6
12547: else
12548: if test -n "$F77"; then
12549: ac_cv_prog_F77="$F77" # Let the user override the test.
12550: else
12551: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552: for as_dir in $PATH
12553: do
12554: IFS=$as_save_IFS
12555: test -z "$as_dir" && as_dir=.
12556: for ac_exec_ext in '' $ac_executable_extensions; do
12557: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12558: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12559: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12560: break 2
12561: fi
12562: done
12563: done
12564:
12565: fi
12566: fi
12567: F77=$ac_cv_prog_F77
12568: if test -n "$F77"; then
12569: echo "$as_me:$LINENO: result: $F77" >&5
12570: echo "${ECHO_T}$F77" >&6
12571: else
12572: echo "$as_me:$LINENO: result: no" >&5
12573: echo "${ECHO_T}no" >&6
12574: fi
12575:
12576: test -n "$F77" && break
12577: done
12578: fi
12579: if test -z "$F77"; then
12580: ac_ct_F77=$F77
12581: for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
12582: do
12583: # Extract the first word of "$ac_prog", so it can be a program name with args.
12584: set dummy $ac_prog; ac_word=$2
12585: echo "$as_me:$LINENO: checking for $ac_word" >&5
12586: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12587: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12588: echo $ECHO_N "(cached) $ECHO_C" >&6
12589: else
12590: if test -n "$ac_ct_F77"; then
12591: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12592: else
12593: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594: for as_dir in $PATH
12595: do
12596: IFS=$as_save_IFS
12597: test -z "$as_dir" && as_dir=.
12598: for ac_exec_ext in '' $ac_executable_extensions; do
12599: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12600: ac_cv_prog_ac_ct_F77="$ac_prog"
12601: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12602: break 2
12603: fi
12604: done
12605: done
12606:
12607: fi
12608: fi
12609: ac_ct_F77=$ac_cv_prog_ac_ct_F77
12610: if test -n "$ac_ct_F77"; then
12611: echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12612: echo "${ECHO_T}$ac_ct_F77" >&6
12613: else
12614: echo "$as_me:$LINENO: result: no" >&5
12615: echo "${ECHO_T}no" >&6
12616: fi
12617:
12618: test -n "$ac_ct_F77" && break
12619: done
12620:
12621: F77=$ac_ct_F77
12622: fi
12623:
12624:
12625: # Provide some information about the compiler.
1.1.1.3 ! root 12626: echo "$as_me:12626:" \
1.1 root 12627: "checking for Fortran 77 compiler version" >&5
12628: ac_compiler=`set X $ac_compile; echo $2`
12629: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12630: (eval $ac_compiler --version </dev/null >&5) 2>&5
12631: ac_status=$?
12632: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633: (exit $ac_status); }
12634: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12635: (eval $ac_compiler -v </dev/null >&5) 2>&5
12636: ac_status=$?
12637: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638: (exit $ac_status); }
12639: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12640: (eval $ac_compiler -V </dev/null >&5) 2>&5
12641: ac_status=$?
12642: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643: (exit $ac_status); }
12644:
12645: # If we don't use `.F' as extension, the preprocessor is not run on the
12646: # input file.
12647: ac_save_ext=$ac_ext
12648: ac_ext=F
12649: echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12650: echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
12651: if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12652: echo $ECHO_N "(cached) $ECHO_C" >&6
12653: else
12654: cat >conftest.$ac_ext <<_ACEOF
12655: program main
12656: #ifndef __GNUC__
12657: choke me
12658: #endif
12659:
12660: end
12661: _ACEOF
12662: rm -f conftest.$ac_objext
12663: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12664: (eval $ac_compile) 2>&5
12665: ac_status=$?
12666: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667: (exit $ac_status); } &&
12668: { ac_try='test -s conftest.$ac_objext'
12669: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670: (eval $ac_try) 2>&5
12671: ac_status=$?
12672: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673: (exit $ac_status); }; }; then
12674: ac_compiler_gnu=yes
12675: else
12676: echo "$as_me: failed program was:" >&5
12677: sed 's/^/| /' conftest.$ac_ext >&5
12678:
12679: ac_compiler_gnu=no
12680: fi
12681: rm -f conftest.$ac_objext conftest.$ac_ext
12682: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12683:
12684: fi
12685: echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12686: echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
12687: ac_ext=$ac_save_ext
12688: G77=`test $ac_compiler_gnu = yes && echo yes`
12689: ac_test_FFLAGS=${FFLAGS+set}
12690: ac_save_FFLAGS=$FFLAGS
12691: FFLAGS=
12692: echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12693: echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
12694: if test "${ac_cv_prog_f77_g+set}" = set; then
12695: echo $ECHO_N "(cached) $ECHO_C" >&6
12696: else
12697: FFLAGS=-g
12698: cat >conftest.$ac_ext <<_ACEOF
12699: program main
12700:
12701: end
12702: _ACEOF
12703: rm -f conftest.$ac_objext
12704: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12705: (eval $ac_compile) 2>&5
12706: ac_status=$?
12707: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708: (exit $ac_status); } &&
12709: { ac_try='test -s conftest.$ac_objext'
12710: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711: (eval $ac_try) 2>&5
12712: ac_status=$?
12713: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714: (exit $ac_status); }; }; then
12715: ac_cv_prog_f77_g=yes
12716: else
12717: echo "$as_me: failed program was:" >&5
12718: sed 's/^/| /' conftest.$ac_ext >&5
12719:
12720: ac_cv_prog_f77_g=no
12721: fi
12722: rm -f conftest.$ac_objext conftest.$ac_ext
12723:
12724: fi
12725: echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12726: echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
12727: if test "$ac_test_FFLAGS" = set; then
12728: FFLAGS=$ac_save_FFLAGS
12729: elif test $ac_cv_prog_f77_g = yes; then
12730: if test "$G77" = yes; then
12731: FFLAGS="-g -O2"
12732: else
12733: FFLAGS="-g"
12734: fi
12735: else
12736: if test "$G77" = yes; then
12737: FFLAGS="-O2"
12738: else
12739: FFLAGS=
12740: fi
12741: fi
12742: ac_ext=c
12743: ac_cpp='$CPP $CPPFLAGS'
12744: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12745: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12746: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12747:
12748:
12749:
12750: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12751:
12752: # find the maximum length of command line arguments
12753: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12754: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
12755: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12756: echo $ECHO_N "(cached) $ECHO_C" >&6
12757: else
12758: i=0
12759: testring="ABCD"
12760:
12761: case $build_os in
12762: msdosdjgpp*)
12763: # On DJGPP, this test can blow up pretty badly due to problems in libc
12764: # (any single argument exceeding 2000 bytes causes a buffer overrun
12765: # during glob expansion). Even if it were fixed, the result of this
12766: # check would be larger than it should be.
12767: lt_cv_sys_max_cmd_len=12288; # 12K is about right
12768: ;;
12769:
12770: gnu*)
12771: # Under GNU Hurd, this test is not required because there is
12772: # no limit to the length of command line arguments.
12773: # Libtool will interpret -1 as no limit whatsoever
12774: lt_cv_sys_max_cmd_len=-1;
12775: ;;
12776:
12777: cygwin* | mingw*)
12778: # On Win9x/ME, this test blows up -- it succeeds, but takes
12779: # about 5 minutes as the teststring grows exponentially.
12780: # Worse, since 9x/ME are not pre-emptively multitasking,
12781: # you end up with a "frozen" computer, even though with patience
12782: # the test eventually succeeds (with a max line length of 256k).
12783: # Instead, let's just punt: use the minimum linelength reported by
12784: # all of the supported platforms: 8192 (on NT/2K/XP).
12785: lt_cv_sys_max_cmd_len=8192;
12786: ;;
12787:
12788: *)
12789: # If test is not a shell built-in, we'll probably end up computing a
12790: # maximum length that is only half of the actual maximum length, but
12791: # we can't tell.
12792: while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
12793: = "XX$testring") >/dev/null 2>&1 &&
12794: new_result=`expr "X$testring" : ".*" 2>&1` &&
12795: lt_cv_sys_max_cmd_len=$new_result &&
12796: test $i != 17 # 1/2 MB should be enough
12797: do
12798: i=`expr $i + 1`
12799: testring=$testring$testring
12800: done
12801: testring=
12802: # Add a significant safety factor because C++ compilers can tack on massive
12803: # amounts of additional arguments before passing them to the linker.
12804: # It appears as though 1/2 is a usable value.
12805: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12806: ;;
12807: esac
12808:
12809: fi
12810:
12811: if test -n $lt_cv_sys_max_cmd_len ; then
12812: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12813: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
12814: else
12815: echo "$as_me:$LINENO: result: none" >&5
12816: echo "${ECHO_T}none" >&6
12817: fi
12818:
12819:
12820:
12821:
12822: # Check for command to grab the raw symbol name followed by C symbol from nm.
12823: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12824: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
12825: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12826: echo $ECHO_N "(cached) $ECHO_C" >&6
12827: else
12828:
12829: # These are sane defaults that work on at least a few old systems.
12830: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12831:
12832: # Character class describing NM global symbol codes.
12833: symcode='[BCDEGRST]'
12834:
12835: # Regexp to match symbols that can be accessed directly from C.
12836: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12837:
12838: # Transform the above into a raw symbol and a C symbol.
12839: symxfrm='\1 \2\3 \3'
12840:
12841: # Transform an extracted symbol line into a proper C declaration
12842: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12843:
12844: # Transform an extracted symbol line into symbol name and symbol address
12845: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
12846:
12847: # Define system-specific variables.
12848: case $host_os in
12849: aix*)
12850: symcode='[BCDT]'
12851: ;;
12852: cygwin* | mingw* | pw32*)
12853: symcode='[ABCDGISTW]'
12854: ;;
12855: hpux*) # Its linker distinguishes data from code symbols
12856: if test "$host_cpu" = ia64; then
12857: symcode='[ABCDEGRST]'
12858: fi
12859: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12860: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
12861: ;;
12862: irix* | nonstopux*)
12863: symcode='[BCDEGRST]'
12864: ;;
12865: osf*)
12866: symcode='[BCDEGQRST]'
12867: ;;
12868: solaris* | sysv5*)
12869: symcode='[BDT]'
12870: ;;
12871: sysv4)
12872: symcode='[DFNSTU]'
12873: ;;
12874: esac
12875:
12876: # Handle CRLF in mingw tool chain
12877: opt_cr=
12878: case $build_os in
12879: mingw*)
12880: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12881: ;;
12882: esac
12883:
12884: # If we're using GNU nm, then use its standard symbol codes.
12885: case `$NM -V 2>&1` in
12886: *GNU* | *'with BFD'*)
12887: symcode='[ABCDGISTW]' ;;
12888: esac
12889:
12890: # Try without a prefix undercore, then with it.
12891: for ac_symprfx in "" "_"; do
12892:
12893: # Write the raw and C identifiers.
12894: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
12895:
12896: # Check to see that the pipe works correctly.
12897: pipe_works=no
12898:
12899: rm -f conftest*
12900: cat > conftest.$ac_ext <<EOF
12901: #ifdef __cplusplus
12902: extern "C" {
12903: #endif
12904: char nm_test_var;
12905: void nm_test_func(){}
12906: #ifdef __cplusplus
12907: }
12908: #endif
12909: int main(){nm_test_var='a';nm_test_func();return(0);}
12910: EOF
12911:
12912: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12913: (eval $ac_compile) 2>&5
12914: ac_status=$?
12915: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916: (exit $ac_status); }; then
12917: # Now try to grab the symbols.
12918: nlist=conftest.nm
12919: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12920: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12921: ac_status=$?
12922: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923: (exit $ac_status); } && test -s "$nlist"; then
12924: # Try sorting and uniquifying the output.
12925: if sort "$nlist" | uniq > "$nlist"T; then
12926: mv -f "$nlist"T "$nlist"
12927: else
12928: rm -f "$nlist"T
12929: fi
12930:
12931: # Make sure that we snagged all the symbols we need.
12932: if grep ' nm_test_var$' "$nlist" >/dev/null; then
12933: if grep ' nm_test_func$' "$nlist" >/dev/null; then
12934: cat <<EOF > conftest.$ac_ext
12935: #ifdef __cplusplus
12936: extern "C" {
12937: #endif
12938:
12939: EOF
12940: # Now generate the symbol file.
12941: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12942:
12943: cat <<EOF >> conftest.$ac_ext
12944: #if defined (__STDC__) && __STDC__
12945: # define lt_ptr_t void *
12946: #else
12947: # define lt_ptr_t char *
12948: # define const
12949: #endif
12950:
12951: /* The mapping between symbol names and symbols. */
12952: const struct {
12953: const char *name;
12954: lt_ptr_t address;
12955: }
12956: lt_preloaded_symbols[] =
12957: {
12958: EOF
12959: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12960: cat <<\EOF >> conftest.$ac_ext
12961: {0, (lt_ptr_t) 0}
12962: };
12963:
12964: #ifdef __cplusplus
12965: }
12966: #endif
12967: EOF
12968: # Now try linking the two files.
12969: mv conftest.$ac_objext conftstm.$ac_objext
12970: lt_save_LIBS="$LIBS"
12971: lt_save_CFLAGS="$CFLAGS"
12972: LIBS="conftstm.$ac_objext"
12973: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12974: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12975: (eval $ac_link) 2>&5
12976: ac_status=$?
12977: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978: (exit $ac_status); } && test -s conftest${ac_exeext}; then
12979: pipe_works=yes
12980: fi
12981: LIBS="$lt_save_LIBS"
12982: CFLAGS="$lt_save_CFLAGS"
12983: else
12984: echo "cannot find nm_test_func in $nlist" >&5
12985: fi
12986: else
12987: echo "cannot find nm_test_var in $nlist" >&5
12988: fi
12989: else
12990: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12991: fi
12992: else
12993: echo "$progname: failed program was:" >&5
12994: cat conftest.$ac_ext >&5
12995: fi
12996: rm -f conftest* conftst*
12997:
12998: # Do not use the global_symbol_pipe unless it works.
12999: if test "$pipe_works" = yes; then
13000: break
13001: else
13002: lt_cv_sys_global_symbol_pipe=
13003: fi
13004: done
13005:
13006: fi
13007:
13008: if test -z "$lt_cv_sys_global_symbol_pipe"; then
13009: lt_cv_sys_global_symbol_to_cdecl=
13010: fi
13011: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13012: echo "$as_me:$LINENO: result: failed" >&5
13013: echo "${ECHO_T}failed" >&6
13014: else
13015: echo "$as_me:$LINENO: result: ok" >&5
13016: echo "${ECHO_T}ok" >&6
13017: fi
13018:
13019: echo "$as_me:$LINENO: checking for objdir" >&5
13020: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
13021: if test "${lt_cv_objdir+set}" = set; then
13022: echo $ECHO_N "(cached) $ECHO_C" >&6
13023: else
13024: rm -f .libs 2>/dev/null
13025: mkdir .libs 2>/dev/null
13026: if test -d .libs; then
13027: lt_cv_objdir=.libs
13028: else
13029: # MS-DOS does not allow filenames that begin with a dot.
13030: lt_cv_objdir=_libs
13031: fi
13032: rmdir .libs 2>/dev/null
13033: fi
13034: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13035: echo "${ECHO_T}$lt_cv_objdir" >&6
13036: objdir=$lt_cv_objdir
13037:
13038:
13039:
13040:
13041:
13042: case $host_os in
13043: aix3*)
13044: # AIX sometimes has problems with the GCC collect2 program. For some
13045: # reason, if we set the COLLECT_NAMES environment variable, the problems
13046: # vanish in a puff of smoke.
13047: if test "X${COLLECT_NAMES+set}" != Xset; then
13048: COLLECT_NAMES=
13049: export COLLECT_NAMES
13050: fi
13051: ;;
13052: esac
13053:
13054: # Sed substitution that helps us do robust quoting. It backslashifies
13055: # metacharacters that are still active within double-quoted strings.
13056: Xsed='sed -e s/^X//'
13057: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13058:
13059: # Same as above, but do not quote variable references.
13060: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13061:
13062: # Sed substitution to delay expansion of an escaped shell variable in a
13063: # double_quote_subst'ed string.
13064: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13065:
13066: # Sed substitution to avoid accidental globbing in evaled expressions
13067: no_glob_subst='s/\*/\\\*/g'
13068:
13069: # Constants:
13070: rm="rm -f"
13071:
13072: # Global variables:
13073: default_ofile=libtool
13074: can_build_shared=yes
13075:
13076: # All known linkers require a `.a' archive for static linking (except M$VC,
13077: # which needs '.lib').
13078: libext=a
13079: ltmain="$ac_aux_dir/ltmain.sh"
13080: ofile="$default_ofile"
13081: with_gnu_ld="$lt_cv_prog_gnu_ld"
13082:
13083: if test -n "$ac_tool_prefix"; then
13084: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13085: set dummy ${ac_tool_prefix}ar; ac_word=$2
13086: echo "$as_me:$LINENO: checking for $ac_word" >&5
13087: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13088: if test "${ac_cv_prog_AR+set}" = set; then
13089: echo $ECHO_N "(cached) $ECHO_C" >&6
13090: else
13091: if test -n "$AR"; then
13092: ac_cv_prog_AR="$AR" # Let the user override the test.
13093: else
13094: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095: for as_dir in $PATH
13096: do
13097: IFS=$as_save_IFS
13098: test -z "$as_dir" && as_dir=.
13099: for ac_exec_ext in '' $ac_executable_extensions; do
13100: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13101: ac_cv_prog_AR="${ac_tool_prefix}ar"
13102: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13103: break 2
13104: fi
13105: done
13106: done
13107:
13108: fi
13109: fi
13110: AR=$ac_cv_prog_AR
13111: if test -n "$AR"; then
13112: echo "$as_me:$LINENO: result: $AR" >&5
13113: echo "${ECHO_T}$AR" >&6
13114: else
13115: echo "$as_me:$LINENO: result: no" >&5
13116: echo "${ECHO_T}no" >&6
13117: fi
13118:
13119: fi
13120: if test -z "$ac_cv_prog_AR"; then
13121: ac_ct_AR=$AR
13122: # Extract the first word of "ar", so it can be a program name with args.
13123: set dummy ar; ac_word=$2
13124: echo "$as_me:$LINENO: checking for $ac_word" >&5
13125: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13126: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13127: echo $ECHO_N "(cached) $ECHO_C" >&6
13128: else
13129: if test -n "$ac_ct_AR"; then
13130: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13131: else
13132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13133: for as_dir in $PATH
13134: do
13135: IFS=$as_save_IFS
13136: test -z "$as_dir" && as_dir=.
13137: for ac_exec_ext in '' $ac_executable_extensions; do
13138: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13139: ac_cv_prog_ac_ct_AR="ar"
13140: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13141: break 2
13142: fi
13143: done
13144: done
13145:
13146: test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
13147: fi
13148: fi
13149: ac_ct_AR=$ac_cv_prog_ac_ct_AR
13150: if test -n "$ac_ct_AR"; then
13151: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13152: echo "${ECHO_T}$ac_ct_AR" >&6
13153: else
13154: echo "$as_me:$LINENO: result: no" >&5
13155: echo "${ECHO_T}no" >&6
13156: fi
13157:
13158: AR=$ac_ct_AR
13159: else
13160: AR="$ac_cv_prog_AR"
13161: fi
13162:
13163: if test -n "$ac_tool_prefix"; then
13164: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13165: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13166: echo "$as_me:$LINENO: checking for $ac_word" >&5
13167: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13168: if test "${ac_cv_prog_RANLIB+set}" = set; then
13169: echo $ECHO_N "(cached) $ECHO_C" >&6
13170: else
13171: if test -n "$RANLIB"; then
13172: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13173: else
13174: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175: for as_dir in $PATH
13176: do
13177: IFS=$as_save_IFS
13178: test -z "$as_dir" && as_dir=.
13179: for ac_exec_ext in '' $ac_executable_extensions; do
13180: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13181: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13182: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13183: break 2
13184: fi
13185: done
13186: done
13187:
13188: fi
13189: fi
13190: RANLIB=$ac_cv_prog_RANLIB
13191: if test -n "$RANLIB"; then
13192: echo "$as_me:$LINENO: result: $RANLIB" >&5
13193: echo "${ECHO_T}$RANLIB" >&6
13194: else
13195: echo "$as_me:$LINENO: result: no" >&5
13196: echo "${ECHO_T}no" >&6
13197: fi
13198:
13199: fi
13200: if test -z "$ac_cv_prog_RANLIB"; then
13201: ac_ct_RANLIB=$RANLIB
13202: # Extract the first word of "ranlib", so it can be a program name with args.
13203: set dummy ranlib; ac_word=$2
13204: echo "$as_me:$LINENO: checking for $ac_word" >&5
13205: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13206: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13207: echo $ECHO_N "(cached) $ECHO_C" >&6
13208: else
13209: if test -n "$ac_ct_RANLIB"; then
13210: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13211: else
13212: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13213: for as_dir in $PATH
13214: do
13215: IFS=$as_save_IFS
13216: test -z "$as_dir" && as_dir=.
13217: for ac_exec_ext in '' $ac_executable_extensions; do
13218: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13219: ac_cv_prog_ac_ct_RANLIB="ranlib"
13220: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13221: break 2
13222: fi
13223: done
13224: done
13225:
13226: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13227: fi
13228: fi
13229: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13230: if test -n "$ac_ct_RANLIB"; then
13231: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13232: echo "${ECHO_T}$ac_ct_RANLIB" >&6
13233: else
13234: echo "$as_me:$LINENO: result: no" >&5
13235: echo "${ECHO_T}no" >&6
13236: fi
13237:
13238: RANLIB=$ac_ct_RANLIB
13239: else
13240: RANLIB="$ac_cv_prog_RANLIB"
13241: fi
13242:
13243: if test -n "$ac_tool_prefix"; then
13244: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13245: set dummy ${ac_tool_prefix}strip; ac_word=$2
13246: echo "$as_me:$LINENO: checking for $ac_word" >&5
13247: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13248: if test "${ac_cv_prog_STRIP+set}" = set; then
13249: echo $ECHO_N "(cached) $ECHO_C" >&6
13250: else
13251: if test -n "$STRIP"; then
13252: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13253: else
13254: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13255: for as_dir in $PATH
13256: do
13257: IFS=$as_save_IFS
13258: test -z "$as_dir" && as_dir=.
13259: for ac_exec_ext in '' $ac_executable_extensions; do
13260: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13261: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13262: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13263: break 2
13264: fi
13265: done
13266: done
13267:
13268: fi
13269: fi
13270: STRIP=$ac_cv_prog_STRIP
13271: if test -n "$STRIP"; then
13272: echo "$as_me:$LINENO: result: $STRIP" >&5
13273: echo "${ECHO_T}$STRIP" >&6
13274: else
13275: echo "$as_me:$LINENO: result: no" >&5
13276: echo "${ECHO_T}no" >&6
13277: fi
13278:
13279: fi
13280: if test -z "$ac_cv_prog_STRIP"; then
13281: ac_ct_STRIP=$STRIP
13282: # Extract the first word of "strip", so it can be a program name with args.
13283: set dummy strip; ac_word=$2
13284: echo "$as_me:$LINENO: checking for $ac_word" >&5
13285: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13286: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13287: echo $ECHO_N "(cached) $ECHO_C" >&6
13288: else
13289: if test -n "$ac_ct_STRIP"; then
13290: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13291: else
13292: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13293: for as_dir in $PATH
13294: do
13295: IFS=$as_save_IFS
13296: test -z "$as_dir" && as_dir=.
13297: for ac_exec_ext in '' $ac_executable_extensions; do
13298: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13299: ac_cv_prog_ac_ct_STRIP="strip"
13300: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13301: break 2
13302: fi
13303: done
13304: done
13305:
13306: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
13307: fi
13308: fi
13309: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13310: if test -n "$ac_ct_STRIP"; then
13311: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13312: echo "${ECHO_T}$ac_ct_STRIP" >&6
13313: else
13314: echo "$as_me:$LINENO: result: no" >&5
13315: echo "${ECHO_T}no" >&6
13316: fi
13317:
13318: STRIP=$ac_ct_STRIP
13319: else
13320: STRIP="$ac_cv_prog_STRIP"
13321: fi
13322:
13323:
13324: old_CC="$CC"
13325: old_CFLAGS="$CFLAGS"
13326:
13327: # Set sane defaults for various variables
13328: test -z "$AR" && AR=ar
13329: test -z "$AR_FLAGS" && AR_FLAGS=cru
13330: test -z "$AS" && AS=as
13331: test -z "$CC" && CC=cc
13332: test -z "$LTCC" && LTCC=$CC
13333: test -z "$DLLTOOL" && DLLTOOL=dlltool
13334: test -z "$LD" && LD=ld
13335: test -z "$LN_S" && LN_S="ln -s"
13336: test -z "$MAGIC_CMD" && MAGIC_CMD=file
13337: test -z "$NM" && NM=nm
13338: test -z "$SED" && SED=sed
13339: test -z "$OBJDUMP" && OBJDUMP=objdump
13340: test -z "$RANLIB" && RANLIB=:
13341: test -z "$STRIP" && STRIP=:
13342: test -z "$ac_objext" && ac_objext=o
13343:
13344: # Determine commands to create old-style static archives.
13345: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13346: old_postinstall_cmds='chmod 644 $oldlib'
13347: old_postuninstall_cmds=
13348:
13349: if test -n "$RANLIB"; then
13350: case $host_os in
13351: openbsd*)
13352: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
13353: ;;
13354: *)
13355: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
13356: ;;
13357: esac
13358: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13359: fi
13360:
13361: # Only perform the check for file, if the check method requires it
13362: case $deplibs_check_method in
13363: file_magic*)
13364: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13365: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13366: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
13367: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13368: echo $ECHO_N "(cached) $ECHO_C" >&6
13369: else
13370: case $MAGIC_CMD in
13371: [\\/*] | ?:[\\/]*)
13372: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13373: ;;
13374: *)
13375: lt_save_MAGIC_CMD="$MAGIC_CMD"
13376: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13377: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13378: for ac_dir in $ac_dummy; do
13379: IFS="$lt_save_ifs"
13380: test -z "$ac_dir" && ac_dir=.
13381: if test -f $ac_dir/${ac_tool_prefix}file; then
13382: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13383: if test -n "$file_magic_test_file"; then
13384: case $deplibs_check_method in
13385: "file_magic "*)
13386: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
13387: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13388: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13389: $EGREP "$file_magic_regex" > /dev/null; then
13390: :
13391: else
13392: cat <<EOF 1>&2
13393:
13394: *** Warning: the command libtool uses to detect shared libraries,
13395: *** $file_magic_cmd, produces output that libtool cannot recognize.
13396: *** The result is that libtool may fail to recognize shared libraries
13397: *** as such. This will affect the creation of libtool libraries that
13398: *** depend on shared libraries, but programs linked with such libtool
13399: *** libraries will work regardless of this problem. Nevertheless, you
13400: *** may want to report the problem to your system manager and/or to
13401: *** [email protected]
13402:
13403: EOF
13404: fi ;;
13405: esac
13406: fi
13407: break
13408: fi
13409: done
13410: IFS="$lt_save_ifs"
13411: MAGIC_CMD="$lt_save_MAGIC_CMD"
13412: ;;
13413: esac
13414: fi
13415:
13416: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13417: if test -n "$MAGIC_CMD"; then
13418: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13419: echo "${ECHO_T}$MAGIC_CMD" >&6
13420: else
13421: echo "$as_me:$LINENO: result: no" >&5
13422: echo "${ECHO_T}no" >&6
13423: fi
13424:
13425: if test -z "$lt_cv_path_MAGIC_CMD"; then
13426: if test -n "$ac_tool_prefix"; then
13427: echo "$as_me:$LINENO: checking for file" >&5
13428: echo $ECHO_N "checking for file... $ECHO_C" >&6
13429: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13430: echo $ECHO_N "(cached) $ECHO_C" >&6
13431: else
13432: case $MAGIC_CMD in
13433: [\\/*] | ?:[\\/]*)
13434: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13435: ;;
13436: *)
13437: lt_save_MAGIC_CMD="$MAGIC_CMD"
13438: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13439: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13440: for ac_dir in $ac_dummy; do
13441: IFS="$lt_save_ifs"
13442: test -z "$ac_dir" && ac_dir=.
13443: if test -f $ac_dir/file; then
13444: lt_cv_path_MAGIC_CMD="$ac_dir/file"
13445: if test -n "$file_magic_test_file"; then
13446: case $deplibs_check_method in
13447: "file_magic "*)
13448: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
13449: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13450: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13451: $EGREP "$file_magic_regex" > /dev/null; then
13452: :
13453: else
13454: cat <<EOF 1>&2
13455:
13456: *** Warning: the command libtool uses to detect shared libraries,
13457: *** $file_magic_cmd, produces output that libtool cannot recognize.
13458: *** The result is that libtool may fail to recognize shared libraries
13459: *** as such. This will affect the creation of libtool libraries that
13460: *** depend on shared libraries, but programs linked with such libtool
13461: *** libraries will work regardless of this problem. Nevertheless, you
13462: *** may want to report the problem to your system manager and/or to
13463: *** [email protected]
13464:
13465: EOF
13466: fi ;;
13467: esac
13468: fi
13469: break
13470: fi
13471: done
13472: IFS="$lt_save_ifs"
13473: MAGIC_CMD="$lt_save_MAGIC_CMD"
13474: ;;
13475: esac
13476: fi
13477:
13478: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13479: if test -n "$MAGIC_CMD"; then
13480: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13481: echo "${ECHO_T}$MAGIC_CMD" >&6
13482: else
13483: echo "$as_me:$LINENO: result: no" >&5
13484: echo "${ECHO_T}no" >&6
13485: fi
13486:
13487: else
13488: MAGIC_CMD=:
13489: fi
13490: fi
13491:
13492: fi
13493: ;;
13494: esac
13495:
13496: enable_dlopen=yes
13497: enable_win32_dll=no
13498:
13499: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
13500: if test "${enable_libtool_lock+set}" = set; then
13501: enableval="$enable_libtool_lock"
13502:
13503: fi;
13504: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13505:
13506:
13507: # Check whether --with-pic or --without-pic was given.
13508: if test "${with_pic+set}" = set; then
13509: withval="$with_pic"
13510: pic_mode="$withval"
13511: else
13512: pic_mode=default
13513: fi;
13514: test -z "$pic_mode" && pic_mode=default
13515:
13516: # Use C for the default configuration in the libtool script
13517: tagname=
13518: lt_save_CC="$CC"
13519: ac_ext=c
13520: ac_cpp='$CPP $CPPFLAGS'
13521: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13522: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13523: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13524:
13525:
13526: # Source file extension for C test sources.
13527: ac_ext=c
13528:
13529: # Object file extension for compiled C test sources.
13530: objext=o
13531: objext=$objext
13532:
13533: # Code to be used in simple compile tests
13534: lt_simple_compile_test_code="int some_variable = 0;\n"
13535:
13536: # Code to be used in simple link tests
13537: lt_simple_link_test_code='int main(){return(0);}\n'
13538:
13539:
13540: # If no C compiler was specified, use CC.
13541: LTCC=${LTCC-"$CC"}
13542:
13543: # Allow CC to be a program name with arguments.
13544: compiler=$CC
13545:
13546:
13547: #
13548: # Check for any special shared library compilation flags.
13549: #
13550: lt_prog_cc_shlib=
13551: if test "$GCC" = no; then
13552: case $host_os in
13553: sco3.2v5*)
13554: lt_prog_cc_shlib='-belf'
13555: ;;
13556: esac
13557: fi
13558: if test -n "$lt_prog_cc_shlib"; then
13559: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
13560: echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
13561: if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
13562: else
13563: { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
13564: echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
13565: lt_cv_prog_cc_can_build_shared=no
13566: fi
13567: fi
13568:
13569:
13570: #
13571: # Check to make sure the static flag actually works.
13572: #
13573: echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
13574: echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
13575: if test "${lt_prog_compiler_static_works+set}" = set; then
13576: echo $ECHO_N "(cached) $ECHO_C" >&6
13577: else
13578: lt_prog_compiler_static_works=no
13579: save_LDFLAGS="$LDFLAGS"
13580: LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
13581: printf "$lt_simple_link_test_code" > conftest.$ac_ext
13582: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13583: # The compiler can only warn and ignore the option if not recognized
13584: # So say no if there are warnings
13585: if test -s conftest.err; then
13586: # Append any errors to the config.log.
13587: cat conftest.err 1>&5
13588: else
13589: lt_prog_compiler_static_works=yes
13590: fi
13591: fi
13592: $rm conftest*
13593: LDFLAGS="$save_LDFLAGS"
13594:
13595: fi
13596: echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13597: echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
13598:
13599: if test x"$lt_prog_compiler_static_works" = xyes; then
13600: :
13601: else
13602: lt_prog_compiler_static=
13603: fi
13604:
13605:
13606:
13607:
13608: lt_prog_compiler_no_builtin_flag=
13609:
13610: if test "$GCC" = yes; then
13611: lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13612:
13613: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13614: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
13615: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13616: echo $ECHO_N "(cached) $ECHO_C" >&6
13617: else
13618: lt_cv_prog_compiler_rtti_exceptions=no
13619: ac_outfile=conftest.$ac_objext
13620: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13621: lt_compiler_flag="-fno-rtti -fno-exceptions"
13622: # Insert the option either (1) after the last *FLAGS variable, or
13623: # (2) before a word containing "conftest.", or (3) at the end.
13624: # Note that $ac_compile itself does not contain backslashes and begins
13625: # with a dollar sign (not a hyphen), so the echo should work correctly.
13626: # The option is referenced via a variable to avoid confusing sed.
13627: lt_compile=`echo "$ac_compile" | $SED \
13628: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13629: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13630: -e 's:$: $lt_compiler_flag:'`
1.1.1.3 ! root 13631: (eval echo "\"\$as_me:13631: $lt_compile\"" >&5)
1.1 root 13632: (eval "$lt_compile" 2>conftest.err)
13633: ac_status=$?
13634: cat conftest.err >&5
1.1.1.3 ! root 13635: echo "$as_me:13635: \$? = $ac_status" >&5
1.1 root 13636: if (exit $ac_status) && test -s "$ac_outfile"; then
13637: # The compiler can only warn and ignore the option if not recognized
13638: # So say no if there are warnings
13639: if test ! -s conftest.err; then
13640: lt_cv_prog_compiler_rtti_exceptions=yes
13641: fi
13642: fi
13643: $rm conftest*
13644:
13645: fi
13646: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13647: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
13648:
13649: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13650: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13651: else
13652: :
13653: fi
13654:
13655: fi
13656:
13657: lt_prog_compiler_wl=
13658: lt_prog_compiler_pic=
13659: lt_prog_compiler_static=
13660:
13661: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13662: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13663:
13664: if test "$GCC" = yes; then
13665: lt_prog_compiler_wl='-Wl,'
13666: lt_prog_compiler_static='-static'
13667:
13668: case $host_os in
13669: aix*)
13670: # All AIX code is PIC.
13671: if test "$host_cpu" = ia64; then
13672: # AIX 5 now supports IA64 processor
13673: lt_prog_compiler_static='-Bstatic'
13674: fi
13675: ;;
13676:
13677: amigaos*)
13678: # FIXME: we need at least 68020 code to build shared libraries, but
13679: # adding the `-m68020' flag to GCC prevents building anything better,
13680: # like `-m68040'.
13681: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13682: ;;
13683:
13684: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13685: # PIC is the default for these OSes.
13686: ;;
13687:
13688: mingw* | pw32* | os2*)
13689: # This hack is so that the source file can tell whether it is being
13690: # built for inclusion in a dll (and should export symbols for example).
13691: lt_prog_compiler_pic='-DDLL_EXPORT'
13692: ;;
13693:
13694: darwin* | rhapsody*)
13695: # PIC is the default on this platform
13696: # Common symbols not allowed in MH_DYLIB files
13697: lt_prog_compiler_pic='-fno-common'
13698: ;;
13699:
13700: msdosdjgpp*)
13701: # Just because we use GCC doesn't mean we suddenly get shared libraries
13702: # on systems that don't support them.
13703: lt_prog_compiler_can_build_shared=no
13704: enable_shared=no
13705: ;;
13706:
13707: sysv4*MP*)
13708: if test -d /usr/nec; then
13709: lt_prog_compiler_pic=-Kconform_pic
13710: fi
13711: ;;
13712:
13713: hpux*)
13714: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13715: # not for PA HP-UX.
13716: case "$host_cpu" in
13717: hppa*64*|ia64*)
13718: # +Z the default
13719: ;;
13720: *)
13721: lt_prog_compiler_pic='-fPIC'
13722: ;;
13723: esac
13724: ;;
13725:
13726: *)
13727: lt_prog_compiler_pic='-fPIC'
13728: ;;
13729: esac
13730: else
13731: # PORTME Check for flag to pass linker flags through the system compiler.
13732: case $host_os in
13733: aix*)
13734: lt_prog_compiler_wl='-Wl,'
13735: if test "$host_cpu" = ia64; then
13736: # AIX 5 now supports IA64 processor
13737: lt_prog_compiler_static='-Bstatic'
13738: else
13739: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13740: fi
13741: ;;
13742:
13743: mingw* | pw32* | os2*)
13744: # This hack is so that the source file can tell whether it is being
13745: # built for inclusion in a dll (and should export symbols for example).
13746: lt_prog_compiler_pic='-DDLL_EXPORT'
13747: ;;
13748:
13749: hpux9* | hpux10* | hpux11*)
13750: lt_prog_compiler_wl='-Wl,'
13751: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13752: # not for PA HP-UX.
13753: case "$host_cpu" in
13754: hppa*64*|ia64*)
13755: # +Z the default
13756: ;;
13757: *)
13758: lt_prog_compiler_pic='+Z'
13759: ;;
13760: esac
13761: # Is there a better lt_prog_compiler_static that works with the bundled CC?
13762: lt_prog_compiler_static='${wl}-a ${wl}archive'
13763: ;;
13764:
13765: irix5* | irix6* | nonstopux*)
13766: lt_prog_compiler_wl='-Wl,'
13767: # PIC (with -KPIC) is the default.
13768: lt_prog_compiler_static='-non_shared'
13769: ;;
13770:
13771: newsos6)
13772: lt_prog_compiler_pic='-KPIC'
13773: lt_prog_compiler_static='-Bstatic'
13774: ;;
13775:
13776: linux*)
13777: case $CC in
13778: icc|ecc)
13779: lt_prog_compiler_wl='-Wl,'
13780: lt_prog_compiler_pic='-KPIC'
13781: lt_prog_compiler_static='-static'
13782: ;;
13783: ccc)
13784: lt_prog_compiler_wl='-Wl,'
13785: # All Alpha code is PIC.
13786: lt_prog_compiler_static='-non_shared'
13787: ;;
13788: esac
13789: ;;
13790:
13791: osf3* | osf4* | osf5*)
13792: lt_prog_compiler_wl='-Wl,'
13793: # All OSF/1 code is PIC.
13794: lt_prog_compiler_static='-non_shared'
13795: ;;
13796:
13797: sco3.2v5*)
13798: lt_prog_compiler_pic='-Kpic'
13799: lt_prog_compiler_static='-dn'
13800: ;;
13801:
13802: solaris*)
13803: lt_prog_compiler_wl='-Wl,'
13804: lt_prog_compiler_pic='-KPIC'
13805: lt_prog_compiler_static='-Bstatic'
13806: ;;
13807:
13808: sunos4*)
13809: lt_prog_compiler_wl='-Qoption ld '
13810: lt_prog_compiler_pic='-PIC'
13811: lt_prog_compiler_static='-Bstatic'
13812: ;;
13813:
13814: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13815: lt_prog_compiler_wl='-Wl,'
13816: lt_prog_compiler_pic='-KPIC'
13817: lt_prog_compiler_static='-Bstatic'
13818: ;;
13819:
13820: sysv4*MP*)
13821: if test -d /usr/nec ;then
13822: lt_prog_compiler_pic='-Kconform_pic'
13823: lt_prog_compiler_static='-Bstatic'
13824: fi
13825: ;;
13826:
13827: uts4*)
13828: lt_prog_compiler_pic='-pic'
13829: lt_prog_compiler_static='-Bstatic'
13830: ;;
13831:
13832: *)
13833: lt_prog_compiler_can_build_shared=no
13834: ;;
13835: esac
13836: fi
13837:
13838: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13839: echo "${ECHO_T}$lt_prog_compiler_pic" >&6
13840:
13841: #
13842: # Check to make sure the PIC flag actually works.
13843: #
13844: if test -n "$lt_prog_compiler_pic"; then
13845: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13846: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
13847: if test "${lt_prog_compiler_pic_works+set}" = set; then
13848: echo $ECHO_N "(cached) $ECHO_C" >&6
13849: else
13850: lt_prog_compiler_pic_works=no
13851: ac_outfile=conftest.$ac_objext
13852: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13853: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13854: # Insert the option either (1) after the last *FLAGS variable, or
13855: # (2) before a word containing "conftest.", or (3) at the end.
13856: # Note that $ac_compile itself does not contain backslashes and begins
13857: # with a dollar sign (not a hyphen), so the echo should work correctly.
13858: # The option is referenced via a variable to avoid confusing sed.
13859: lt_compile=`echo "$ac_compile" | $SED \
13860: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13861: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13862: -e 's:$: $lt_compiler_flag:'`
1.1.1.3 ! root 13863: (eval echo "\"\$as_me:13863: $lt_compile\"" >&5)
1.1 root 13864: (eval "$lt_compile" 2>conftest.err)
13865: ac_status=$?
13866: cat conftest.err >&5
1.1.1.3 ! root 13867: echo "$as_me:13867: \$? = $ac_status" >&5
1.1 root 13868: if (exit $ac_status) && test -s "$ac_outfile"; then
13869: # The compiler can only warn and ignore the option if not recognized
13870: # So say no if there are warnings
13871: if test ! -s conftest.err; then
13872: lt_prog_compiler_pic_works=yes
13873: fi
13874: fi
13875: $rm conftest*
13876:
13877: fi
13878: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13879: echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
13880:
13881: if test x"$lt_prog_compiler_pic_works" = xyes; then
13882: case $lt_prog_compiler_pic in
13883: "" | " "*) ;;
13884: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13885: esac
13886: else
13887: lt_prog_compiler_pic=
13888: lt_prog_compiler_can_build_shared=no
13889: fi
13890:
13891: fi
13892: case "$host_os" in
13893: # For platforms which do not support PIC, -DPIC is meaningless:
13894: *djgpp*)
13895: lt_prog_compiler_pic=
13896: ;;
13897: *)
13898: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13899: ;;
13900: esac
13901:
13902: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13903: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13904: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13905: echo $ECHO_N "(cached) $ECHO_C" >&6
13906: else
13907: lt_cv_prog_compiler_c_o=no
13908: $rm -r conftest 2>/dev/null
13909: mkdir conftest
13910: cd conftest
13911: mkdir out
13912: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13913:
13914: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13915: # that will create temporary files in the current directory regardless of
13916: # the output directory. Thus, making CWD read-only will cause this test
13917: # to fail, enabling locking or at least warning the user not to do parallel
13918: # builds.
13919: chmod -w .
13920:
13921: lt_compiler_flag="-o out/conftest2.$ac_objext"
13922: # Insert the option either (1) after the last *FLAGS variable, or
13923: # (2) before a word containing "conftest.", or (3) at the end.
13924: # Note that $ac_compile itself does not contain backslashes and begins
13925: # with a dollar sign (not a hyphen), so the echo should work correctly.
13926: lt_compile=`echo "$ac_compile" | $SED \
13927: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13928: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13929: -e 's:$: $lt_compiler_flag:'`
1.1.1.3 ! root 13930: (eval echo "\"\$as_me:13930: $lt_compile\"" >&5)
1.1 root 13931: (eval "$lt_compile" 2>out/conftest.err)
13932: ac_status=$?
13933: cat out/conftest.err >&5
1.1.1.3 ! root 13934: echo "$as_me:13934: \$? = $ac_status" >&5
1.1 root 13935: if (exit $ac_status) && test -s out/conftest2.$ac_objext
13936: then
13937: # The compiler can only warn and ignore the option if not recognized
13938: # So say no if there are warnings
13939: if test ! -s out/conftest.err; then
13940: lt_cv_prog_compiler_c_o=yes
13941: fi
13942: fi
13943: chmod u+w .
13944: $rm conftest* out/*
13945: rmdir out
13946: cd ..
13947: rmdir conftest
13948: $rm conftest*
13949:
13950: fi
13951: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13952: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
13953:
13954:
13955: hard_links="nottested"
13956: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13957: # do not overwrite the value of need_locks provided by the user
13958: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13959: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13960: hard_links=yes
13961: $rm conftest*
13962: ln conftest.a conftest.b 2>/dev/null && hard_links=no
13963: touch conftest.a
13964: ln conftest.a conftest.b 2>&5 || hard_links=no
13965: ln conftest.a conftest.b 2>/dev/null && hard_links=no
13966: echo "$as_me:$LINENO: result: $hard_links" >&5
13967: echo "${ECHO_T}$hard_links" >&6
13968: if test "$hard_links" = no; then
13969: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13970: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13971: need_locks=warn
13972: fi
13973: else
13974: need_locks=no
13975: fi
13976:
13977: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13978: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13979:
13980: runpath_var=
13981: allow_undefined_flag=
13982: enable_shared_with_static_runtimes=no
13983: archive_cmds=
13984: archive_expsym_cmds=
13985: old_archive_From_new_cmds=
13986: old_archive_from_expsyms_cmds=
13987: export_dynamic_flag_spec=
13988: whole_archive_flag_spec=
13989: thread_safe_flag_spec=
13990: hardcode_libdir_flag_spec=
13991: hardcode_libdir_flag_spec_ld=
13992: hardcode_libdir_separator=
13993: hardcode_direct=no
13994: hardcode_minus_L=no
13995: hardcode_shlibpath_var=unsupported
13996: link_all_deplibs=unknown
13997: hardcode_automatic=no
13998: module_cmds=
13999: module_expsym_cmds=
14000: always_export_symbols=no
14001: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14002: # include_expsyms should be a list of space-separated symbols to be *always*
14003: # included in the symbol list
14004: include_expsyms=
14005: # exclude_expsyms can be an extended regexp of symbols to exclude
14006: # it will be wrapped by ` (' and `)$', so one must not match beginning or
14007: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14008: # as well as any symbol that contains `d'.
14009: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14010: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14011: # platforms (ab)use it in PIC code, but their linkers get confused if
14012: # the symbol is explicitly referenced. Since portable code cannot
14013: # rely on this symbol name, it's probably fine to never include it in
14014: # preloaded symbol tables.
14015: extract_expsyms_cmds=
14016:
14017: case $host_os in
14018: cygwin* | mingw* | pw32*)
14019: # FIXME: the MSVC++ port hasn't been tested in a loooong time
14020: # When not using gcc, we currently assume that we are using
14021: # Microsoft Visual C++.
14022: if test "$GCC" != yes; then
14023: with_gnu_ld=no
14024: fi
14025: ;;
14026: openbsd*)
14027: with_gnu_ld=no
14028: ;;
14029: esac
14030:
14031: ld_shlibs=yes
14032: if test "$with_gnu_ld" = yes; then
14033: # If archive_cmds runs LD, not CC, wlarc should be empty
14034: wlarc='${wl}'
14035:
14036: # See if GNU ld supports shared libraries.
14037: case $host_os in
14038: aix3* | aix4* | aix5*)
14039: # On AIX/PPC, the GNU linker is very broken
14040: if test "$host_cpu" != ia64; then
14041: ld_shlibs=no
14042: cat <<EOF 1>&2
14043:
14044: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14045: *** to be unable to reliably create shared libraries on AIX.
14046: *** Therefore, libtool is disabling shared libraries support. If you
14047: *** really care for shared libraries, you may want to modify your PATH
14048: *** so that a non-GNU linker is found, and then restart.
14049:
14050: EOF
14051: fi
14052: ;;
14053:
14054: amigaos*)
14055: 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)'
14056: hardcode_libdir_flag_spec='-L$libdir'
14057: hardcode_minus_L=yes
14058:
14059: # Samuel A. Falvo II <[email protected]> reports
14060: # that the semantics of dynamic libraries on AmigaOS, at least up
14061: # to version 4, is to share data among multiple programs linked
14062: # with the same dynamic library. Since this doesn't match the
14063: # behavior of shared libraries on other platforms, we can't use
14064: # them.
14065: ld_shlibs=no
14066: ;;
14067:
14068: beos*)
14069: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14070: allow_undefined_flag=unsupported
14071: # Joseph Beckenbach <[email protected]> says some releases of gcc
14072: # support --undefined. This deserves some investigation. FIXME
14073: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14074: else
14075: ld_shlibs=no
14076: fi
14077: ;;
14078:
14079: cygwin* | mingw* | pw32*)
14080: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14081: # as there is no search path for DLLs.
14082: hardcode_libdir_flag_spec='-L$libdir'
14083: allow_undefined_flag=unsupported
14084: always_export_symbols=no
14085: enable_shared_with_static_runtimes=yes
14086: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14087:
14088: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14089: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14090: # If the export-symbols file already is a .def file (1st line
14091: # is EXPORTS), use it as is; otherwise, prepend...
14092: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14093: cp $export_symbols $output_objdir/$soname.def;
14094: else
14095: echo EXPORTS > $output_objdir/$soname.def;
14096: cat $export_symbols >> $output_objdir/$soname.def;
14097: fi~
14098: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14099: else
14100: ld_shlibs=no
14101: fi
14102: ;;
14103:
14104: netbsd*)
14105: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14106: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14107: wlarc=
14108: else
14109: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14110: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14111: fi
14112: ;;
14113:
14114: solaris* | sysv5*)
14115: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14116: ld_shlibs=no
14117: cat <<EOF 1>&2
14118:
14119: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14120: *** create shared libraries on Solaris systems. Therefore, libtool
14121: *** is disabling shared libraries support. We urge you to upgrade GNU
14122: *** binutils to release 2.9.1 or newer. Another option is to modify
14123: *** your PATH or compiler configuration so that the native linker is
14124: *** used, and then restart.
14125:
14126: EOF
14127: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14128: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14129: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14130: else
14131: ld_shlibs=no
14132: fi
14133: ;;
14134:
14135: sunos4*)
14136: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14137: wlarc=
14138: hardcode_direct=yes
14139: hardcode_shlibpath_var=no
14140: ;;
14141:
14142: *)
14143: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14144: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14145: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14146: else
14147: ld_shlibs=no
14148: fi
14149: ;;
14150: esac
14151:
14152: if test "$ld_shlibs" = yes; then
14153: runpath_var=LD_RUN_PATH
14154: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14155: export_dynamic_flag_spec='${wl}--export-dynamic'
14156: # ancient GNU ld didn't support --whole-archive et. al.
14157: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14158: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14159: else
14160: whole_archive_flag_spec=
14161: fi
14162: fi
14163: else
14164: # PORTME fill in a description of your system's linker (not GNU ld)
14165: case $host_os in
14166: aix3*)
14167: allow_undefined_flag=unsupported
14168: always_export_symbols=yes
14169: 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'
14170: # Note: this linker hardcodes the directories in LIBPATH if there
14171: # are no directories specified by -L.
14172: hardcode_minus_L=yes
14173: if test "$GCC" = yes && test -z "$link_static_flag"; then
14174: # Neither direct hardcoding nor static linking is supported with a
14175: # broken collect2.
14176: hardcode_direct=unsupported
14177: fi
14178: ;;
14179:
14180: aix4* | aix5*)
14181: if test "$host_cpu" = ia64; then
14182: # On IA64, the linker does run time linking by default, so we don't
14183: # have to do anything special.
14184: aix_use_runtimelinking=no
14185: exp_sym_flag='-Bexport'
14186: no_entry_flag=""
14187: else
14188: # If we're using GNU nm, then we don't want the "-C" option.
14189: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14190: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14191: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14192: else
14193: export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14194: fi
14195: aix_use_runtimelinking=no
14196:
14197: # Test if we are trying to use run time linking or normal
14198: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14199: # need to do runtime linking.
14200: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14201: for ld_flag in $LDFLAGS; do
14202: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14203: aix_use_runtimelinking=yes
14204: break
14205: fi
14206: done
14207: esac
14208:
14209: exp_sym_flag='-bexport'
14210: no_entry_flag='-bnoentry'
14211: fi
14212:
14213: # When large executables or shared objects are built, AIX ld can
14214: # have problems creating the table of contents. If linking a library
14215: # or program results in "error TOC overflow" add -mminimal-toc to
14216: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14217: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14218:
14219: archive_cmds=''
14220: hardcode_direct=yes
14221: hardcode_libdir_separator=':'
14222: link_all_deplibs=yes
14223:
14224: if test "$GCC" = yes; then
14225: case $host_os in aix4.012|aix4.012.*)
14226: # We only want to do this on AIX 4.2 and lower, the check
14227: # below for broken collect2 doesn't work under 4.3+
14228: collect2name=`${CC} -print-prog-name=collect2`
14229: if test -f "$collect2name" && \
14230: strings "$collect2name" | grep resolve_lib_name >/dev/null
14231: then
14232: # We have reworked collect2
14233: hardcode_direct=yes
14234: else
14235: # We have old collect2
14236: hardcode_direct=unsupported
14237: # It fails to find uninstalled libraries when the uninstalled
14238: # path is not listed in the libpath. Setting hardcode_minus_L
14239: # to unsupported forces relinking
14240: hardcode_minus_L=yes
14241: hardcode_libdir_flag_spec='-L$libdir'
14242: hardcode_libdir_separator=
14243: fi
14244: esac
14245: shared_flag='-shared'
14246: else
14247: # not using gcc
14248: if test "$host_cpu" = ia64; then
14249: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14250: # chokes on -Wl,-G. The following line is correct:
14251: shared_flag='-G'
14252: else
14253: if test "$aix_use_runtimelinking" = yes; then
14254: shared_flag='${wl}-G'
14255: else
14256: shared_flag='${wl}-bM:SRE'
14257: fi
14258: fi
14259: fi
14260:
14261: # It seems that -bexpall does not export symbols beginning with
14262: # underscore (_), so it is better to generate a list of symbols to export.
14263: always_export_symbols=yes
14264: if test "$aix_use_runtimelinking" = yes; then
14265: # Warning - without using the other runtime loading flags (-brtl),
14266: # -berok will link without error, but may produce a broken library.
14267: allow_undefined_flag='-berok'
14268: # Determine the default libpath from the value encoded in an empty executable.
14269: cat >conftest.$ac_ext <<_ACEOF
14270: #line $LINENO "configure"
14271: /* confdefs.h. */
14272: _ACEOF
14273: cat confdefs.h >>conftest.$ac_ext
14274: cat >>conftest.$ac_ext <<_ACEOF
14275: /* end confdefs.h. */
14276:
14277: int
14278: main ()
14279: {
14280:
14281: ;
14282: return 0;
14283: }
14284: _ACEOF
14285: rm -f conftest.$ac_objext conftest$ac_exeext
14286: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14287: (eval $ac_link) 2>&5
14288: ac_status=$?
14289: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290: (exit $ac_status); } &&
14291: { ac_try='test -s conftest$ac_exeext'
14292: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293: (eval $ac_try) 2>&5
14294: ac_status=$?
14295: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296: (exit $ac_status); }; }; then
14297:
14298: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14299: }'`
14300: # Check for a 64-bit object if we didn't find anything.
14301: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14302: }'`; fi
14303: else
14304: echo "$as_me: failed program was:" >&5
14305: sed 's/^/| /' conftest.$ac_ext >&5
14306:
14307: fi
14308: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14309: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14310:
14311: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14312: 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"
14313: else
14314: if test "$host_cpu" = ia64; then
14315: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14316: allow_undefined_flag="-z nodefs"
14317: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14318: else
14319: # Determine the default libpath from the value encoded in an empty executable.
14320: cat >conftest.$ac_ext <<_ACEOF
14321: #line $LINENO "configure"
14322: /* confdefs.h. */
14323: _ACEOF
14324: cat confdefs.h >>conftest.$ac_ext
14325: cat >>conftest.$ac_ext <<_ACEOF
14326: /* end confdefs.h. */
14327:
14328: int
14329: main ()
14330: {
14331:
14332: ;
14333: return 0;
14334: }
14335: _ACEOF
14336: rm -f conftest.$ac_objext conftest$ac_exeext
14337: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14338: (eval $ac_link) 2>&5
14339: ac_status=$?
14340: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341: (exit $ac_status); } &&
14342: { ac_try='test -s conftest$ac_exeext'
14343: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344: (eval $ac_try) 2>&5
14345: ac_status=$?
14346: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347: (exit $ac_status); }; }; then
14348:
14349: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14350: }'`
14351: # Check for a 64-bit object if we didn't find anything.
14352: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14353: }'`; fi
14354: else
14355: echo "$as_me: failed program was:" >&5
14356: sed 's/^/| /' conftest.$ac_ext >&5
14357:
14358: fi
14359: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14360: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14361:
14362: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14363: # Warning - without using the other run time loading flags,
14364: # -berok will link without error, but may produce a broken library.
14365: no_undefined_flag=' ${wl}-bernotok'
14366: allow_undefined_flag=' ${wl}-berok'
14367: # -bexpall does not export symbols beginning with underscore (_)
14368: always_export_symbols=yes
14369: # Exported symbols can be pulled into shared objects from archives
14370: whole_archive_flag_spec=' '
14371: archive_cmds_need_lc=yes
14372: # This is similar to how AIX traditionally builds it's shared libraries.
14373: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14374: fi
14375: fi
14376: ;;
14377:
14378: amigaos*)
14379: 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)'
14380: hardcode_libdir_flag_spec='-L$libdir'
14381: hardcode_minus_L=yes
14382: # see comment about different semantics on the GNU ld section
14383: ld_shlibs=no
14384: ;;
14385:
14386: bsdi4*)
14387: export_dynamic_flag_spec=-rdynamic
14388: ;;
14389:
14390: cygwin* | mingw* | pw32*)
14391: # When not using gcc, we currently assume that we are using
14392: # Microsoft Visual C++.
14393: # hardcode_libdir_flag_spec is actually meaningless, as there is
14394: # no search path for DLLs.
14395: hardcode_libdir_flag_spec=' '
14396: allow_undefined_flag=unsupported
14397: # Tell ltmain to make .lib files, not .a files.
14398: libext=lib
14399: # Tell ltmain to make .dll files, not .so files.
14400: shrext=".dll"
14401: # FIXME: Setting linknames here is a bad hack.
14402: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14403: # The linker will automatically build a .lib file if we build a DLL.
14404: old_archive_From_new_cmds='true'
14405: # FIXME: Should let the user specify the lib program.
14406: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14407: fix_srcfile_path='`cygpath -w "$srcfile"`'
14408: enable_shared_with_static_runtimes=yes
14409: ;;
14410:
14411: darwin* | rhapsody*)
14412: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14413: archive_cmds_need_lc=no
14414: case "$host_os" in
14415: rhapsody* | darwin1.[012])
14416: allow_undefined_flag='-undefined suppress'
14417: ;;
14418: *) # Darwin 1.3 on
14419: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
14420: ;;
14421: esac
14422: # FIXME: Relying on posixy $() will cause problems for
14423: # cross-compilation, but unfortunately the echo tests do not
14424: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
14425: # `"' quotes if we put them in here... so don't!
14426: lt_int_apple_cc_single_mod=no
14427: output_verbose_link_cmd='echo'
14428: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14429: lt_int_apple_cc_single_mod=yes
14430: fi
14431: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14432: archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14433: else
14434: archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14435: fi
14436: module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
14437: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14438: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14439: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14440: else
14441: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14442: fi
14443: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14444: hardcode_direct=no
14445: hardcode_automatic=yes
14446: hardcode_shlibpath_var=unsupported
14447: whole_archive_flag_spec='-all_load $convenience'
14448: link_all_deplibs=yes
14449: fi
14450: ;;
14451:
14452: dgux*)
14453: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14454: hardcode_libdir_flag_spec='-L$libdir'
14455: hardcode_shlibpath_var=no
14456: ;;
14457:
14458: freebsd1*)
14459: ld_shlibs=no
14460: ;;
14461:
14462: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14463: # support. Future versions do this automatically, but an explicit c++rt0.o
14464: # does not break anything, and helps significantly (at the cost of a little
14465: # extra space).
14466: freebsd2.2*)
14467: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14468: hardcode_libdir_flag_spec='-R$libdir'
14469: hardcode_direct=yes
14470: hardcode_shlibpath_var=no
14471: ;;
14472:
14473: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14474: freebsd2*)
14475: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14476: hardcode_direct=yes
14477: hardcode_minus_L=yes
14478: hardcode_shlibpath_var=no
14479: ;;
14480:
14481: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14482: freebsd*)
14483: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14484: hardcode_libdir_flag_spec='-R$libdir'
14485: hardcode_direct=yes
14486: hardcode_shlibpath_var=no
14487: ;;
14488:
14489: hpux9*)
14490: if test "$GCC" = yes; then
14491: archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14492: else
14493: 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'
14494: fi
14495: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14496: hardcode_libdir_separator=:
14497: hardcode_direct=yes
14498:
14499: # hardcode_minus_L: Not really in the search PATH,
14500: # but as the default location of the library.
14501: hardcode_minus_L=yes
14502: export_dynamic_flag_spec='${wl}-E'
14503: ;;
14504:
14505: hpux10* | hpux11*)
14506: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14507: case "$host_cpu" in
14508: hppa*64*|ia64*)
14509: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14510: ;;
14511: *)
14512: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14513: ;;
14514: esac
14515: else
14516: case "$host_cpu" in
14517: hppa*64*|ia64*)
14518: archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14519: ;;
14520: *)
14521: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14522: ;;
14523: esac
14524: fi
14525: if test "$with_gnu_ld" = no; then
14526: case "$host_cpu" in
14527: hppa*64*)
14528: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14529: hardcode_libdir_flag_spec_ld='+b $libdir'
14530: hardcode_libdir_separator=:
14531: hardcode_direct=no
14532: hardcode_shlibpath_var=no
14533: ;;
14534: ia64*)
14535: hardcode_libdir_flag_spec='-L$libdir'
14536: hardcode_direct=no
14537: hardcode_shlibpath_var=no
14538:
14539: # hardcode_minus_L: Not really in the search PATH,
14540: # but as the default location of the library.
14541: hardcode_minus_L=yes
14542: ;;
14543: *)
14544: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14545: hardcode_libdir_separator=:
14546: hardcode_direct=yes
14547: export_dynamic_flag_spec='${wl}-E'
14548:
14549: # hardcode_minus_L: Not really in the search PATH,
14550: # but as the default location of the library.
14551: hardcode_minus_L=yes
14552: ;;
14553: esac
14554: fi
14555: ;;
14556:
14557: irix5* | irix6* | nonstopux*)
14558: if test "$GCC" = yes; then
14559: 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'
14560: else
14561: 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'
14562: hardcode_libdir_flag_spec_ld='-rpath $libdir'
14563: fi
14564: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14565: hardcode_libdir_separator=:
14566: link_all_deplibs=yes
14567: ;;
14568:
14569: netbsd*)
14570: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14571: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14572: else
14573: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14574: fi
14575: hardcode_libdir_flag_spec='-R$libdir'
14576: hardcode_direct=yes
14577: hardcode_shlibpath_var=no
14578: ;;
14579:
14580: newsos6)
14581: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14582: hardcode_direct=yes
14583: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14584: hardcode_libdir_separator=:
14585: hardcode_shlibpath_var=no
14586: ;;
14587:
14588: openbsd*)
14589: hardcode_direct=yes
14590: hardcode_shlibpath_var=no
14591: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14592: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14593: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14594: export_dynamic_flag_spec='${wl}-E'
14595: else
14596: case $host_os in
14597: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14598: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14599: hardcode_libdir_flag_spec='-R$libdir'
14600: ;;
14601: *)
14602: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14603: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14604: ;;
14605: esac
14606: fi
14607: ;;
14608:
14609: os2*)
14610: hardcode_libdir_flag_spec='-L$libdir'
14611: hardcode_minus_L=yes
14612: allow_undefined_flag=unsupported
14613: 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'
14614: old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14615: ;;
14616:
14617: osf3*)
14618: if test "$GCC" = yes; then
14619: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14620: 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'
14621: else
14622: allow_undefined_flag=' -expect_unresolved \*'
14623: 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'
14624: fi
14625: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14626: hardcode_libdir_separator=:
14627: ;;
14628:
14629: osf4* | osf5*) # as osf3* with the addition of -msym flag
14630: if test "$GCC" = yes; then
14631: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14632: 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'
14633: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14634: else
14635: allow_undefined_flag=' -expect_unresolved \*'
14636: 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'
14637: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14638: $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'
14639:
14640: # Both c and cxx compiler support -rpath directly
14641: hardcode_libdir_flag_spec='-rpath $libdir'
14642: fi
14643: hardcode_libdir_separator=:
14644: ;;
14645:
14646: sco3.2v5*)
14647: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14648: hardcode_shlibpath_var=no
14649: export_dynamic_flag_spec='${wl}-Bexport'
14650: runpath_var=LD_RUN_PATH
14651: hardcode_runpath_var=yes
14652: ;;
14653:
14654: solaris*)
14655: no_undefined_flag=' -z text'
14656: if test "$GCC" = yes; then
14657: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14658: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14659: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14660: else
14661: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14662: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14663: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14664: fi
14665: hardcode_libdir_flag_spec='-R$libdir'
14666: hardcode_shlibpath_var=no
14667: case $host_os in
14668: solaris2.[0-5] | solaris2.[0-5].*) ;;
14669: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14670: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14671: esac
14672: link_all_deplibs=yes
14673: ;;
14674:
14675: sunos4*)
14676: if test "x$host_vendor" = xsequent; then
14677: # Use $CC to link under sequent, because it throws in some extra .o
14678: # files that make .init and .fini sections work.
14679: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14680: else
14681: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14682: fi
14683: hardcode_libdir_flag_spec='-L$libdir'
14684: hardcode_direct=yes
14685: hardcode_minus_L=yes
14686: hardcode_shlibpath_var=no
14687: ;;
14688:
14689: sysv4)
14690: case $host_vendor in
14691: sni)
14692: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14693: hardcode_direct=yes # is this really true???
14694: ;;
14695: siemens)
14696: ## LD is ld it makes a PLAMLIB
14697: ## CC just makes a GrossModule.
14698: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14699: reload_cmds='$CC -r -o $output$reload_objs'
14700: hardcode_direct=no
14701: ;;
14702: motorola)
14703: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14704: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14705: ;;
14706: esac
14707: runpath_var='LD_RUN_PATH'
14708: hardcode_shlibpath_var=no
14709: ;;
14710:
14711: sysv4.3*)
14712: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14713: hardcode_shlibpath_var=no
14714: export_dynamic_flag_spec='-Bexport'
14715: ;;
14716:
14717: sysv4*MP*)
14718: if test -d /usr/nec; then
14719: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14720: hardcode_shlibpath_var=no
14721: runpath_var=LD_RUN_PATH
14722: hardcode_runpath_var=yes
14723: ld_shlibs=yes
14724: fi
14725: ;;
14726:
14727: sysv4.2uw2*)
14728: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14729: hardcode_direct=yes
14730: hardcode_minus_L=no
14731: hardcode_shlibpath_var=no
14732: hardcode_runpath_var=yes
14733: runpath_var=LD_RUN_PATH
14734: ;;
14735:
14736: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14737: no_undefined_flag='${wl}-z ${wl}text'
14738: if test "$GCC" = yes; then
14739: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14740: else
14741: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14742: fi
14743: runpath_var='LD_RUN_PATH'
14744: hardcode_shlibpath_var=no
14745: ;;
14746:
14747: sysv5*)
14748: no_undefined_flag=' -z text'
14749: # $CC -shared without GNU ld will not create a library from C++
14750: # object files and a static libstdc++, better avoid it by now
14751: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14752: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14753: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14754: hardcode_libdir_flag_spec=
14755: hardcode_shlibpath_var=no
14756: runpath_var='LD_RUN_PATH'
14757: ;;
14758:
14759: uts4*)
14760: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14761: hardcode_libdir_flag_spec='-L$libdir'
14762: hardcode_shlibpath_var=no
14763: ;;
14764:
14765: *)
14766: ld_shlibs=no
14767: ;;
14768: esac
14769: fi
14770:
14771: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14772: echo "${ECHO_T}$ld_shlibs" >&6
14773: test "$ld_shlibs" = no && can_build_shared=no
14774:
14775: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14776: if test "$GCC" = yes; then
14777: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14778: fi
14779:
14780: #
14781: # Do we need to explicitly link libc?
14782: #
14783: case "x$archive_cmds_need_lc" in
14784: x|xyes)
14785: # Assume -lc should be added
14786: archive_cmds_need_lc=yes
14787:
14788: if test "$enable_shared" = yes && test "$GCC" = yes; then
14789: case $archive_cmds in
14790: *'~'*)
14791: # FIXME: we may have to deal with multi-command sequences.
14792: ;;
14793: '$CC '*)
14794: # Test whether the compiler implicitly links with -lc since on some
14795: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14796: # to ld, don't add -lc before -lgcc.
14797: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14798: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14799: $rm conftest*
14800: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14801:
14802: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14803: (eval $ac_compile) 2>&5
14804: ac_status=$?
14805: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806: (exit $ac_status); } 2>conftest.err; then
14807: soname=conftest
14808: lib=conftest
14809: libobjs=conftest.$ac_objext
14810: deplibs=
14811: wl=$lt_prog_compiler_wl
14812: compiler_flags=-v
14813: linker_flags=-v
14814: verstring=
14815: output_objdir=.
14816: libname=conftest
14817: lt_save_allow_undefined_flag=$allow_undefined_flag
14818: allow_undefined_flag=
14819: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14820: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14821: ac_status=$?
14822: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823: (exit $ac_status); }
14824: then
14825: archive_cmds_need_lc=no
14826: else
14827: archive_cmds_need_lc=yes
14828: fi
14829: allow_undefined_flag=$lt_save_allow_undefined_flag
14830: else
14831: cat conftest.err 1>&5
14832: fi
14833: $rm conftest*
14834: echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14835: echo "${ECHO_T}$archive_cmds_need_lc" >&6
14836: ;;
14837: esac
14838: fi
14839: ;;
14840: esac
14841:
14842: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14843: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14844: hardcode_action=
14845: if test -n "$hardcode_libdir_flag_spec" || \
14846: test -n "$runpath_var " || \
14847: test "X$hardcode_automatic"="Xyes" ; then
14848:
14849: # We can hardcode non-existant directories.
14850: if test "$hardcode_direct" != no &&
14851: # If the only mechanism to avoid hardcoding is shlibpath_var, we
14852: # have to relink, otherwise we might link with an installed library
14853: # when we should be linking with a yet-to-be-installed one
14854: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14855: test "$hardcode_minus_L" != no; then
14856: # Linking always hardcodes the temporary library directory.
14857: hardcode_action=relink
14858: else
14859: # We can link without hardcoding, and we can hardcode nonexisting dirs.
14860: hardcode_action=immediate
14861: fi
14862: else
14863: # We cannot hardcode anything, or else we can only hardcode existing
14864: # directories.
14865: hardcode_action=unsupported
14866: fi
14867: echo "$as_me:$LINENO: result: $hardcode_action" >&5
14868: echo "${ECHO_T}$hardcode_action" >&6
14869:
14870: if test "$hardcode_action" = relink; then
14871: # Fast installation is not supported
14872: enable_fast_install=no
14873: elif test "$shlibpath_overrides_runpath" = yes ||
14874: test "$enable_shared" = no; then
14875: # Fast installation is not necessary
14876: enable_fast_install=needless
14877: fi
14878:
14879: striplib=
14880: old_striplib=
14881: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14882: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14883: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14884: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14885: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14886: echo "$as_me:$LINENO: result: yes" >&5
14887: echo "${ECHO_T}yes" >&6
14888: else
14889: # FIXME - insert some real tests, host_os isn't really good enough
14890: case $host_os in
14891: darwin*)
14892: if test -n "$STRIP" ; then
14893: striplib="$STRIP -x"
14894: echo "$as_me:$LINENO: result: yes" >&5
14895: echo "${ECHO_T}yes" >&6
14896: else
14897: echo "$as_me:$LINENO: result: no" >&5
14898: echo "${ECHO_T}no" >&6
14899: fi
14900: ;;
14901: *)
14902: echo "$as_me:$LINENO: result: no" >&5
14903: echo "${ECHO_T}no" >&6
14904: ;;
14905: esac
14906: fi
14907:
14908: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14909: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14910: library_names_spec=
14911: libname_spec='lib$name'
14912: soname_spec=
14913: shrext=".so"
14914: postinstall_cmds=
14915: postuninstall_cmds=
14916: finish_cmds=
14917: finish_eval=
14918: shlibpath_var=
14919: shlibpath_overrides_runpath=unknown
14920: version_type=none
14921: dynamic_linker="$host_os ld.so"
14922: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14923: if test "$GCC" = yes; then
14924: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14925: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14926: # if the path contains ";" then we assume it to be the separator
14927: # otherwise default to the standard path separator (i.e. ":") - it is
14928: # assumed that no part of a normal pathname contains ";" but that should
14929: # okay in the real world where ";" in dirpaths is itself problematic.
14930: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14931: else
14932: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14933: fi
14934: else
14935: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14936: fi
14937: need_lib_prefix=unknown
14938: hardcode_into_libs=no
14939:
14940: # when you set need_version to no, make sure it does not cause -set_version
14941: # flags to be left without arguments
14942: need_version=unknown
14943:
14944: case $host_os in
14945: aix3*)
14946: version_type=linux
14947: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14948: shlibpath_var=LIBPATH
14949:
14950: # AIX 3 has no versioning support, so we append a major version to the name.
14951: soname_spec='${libname}${release}${shared_ext}$major'
14952: ;;
14953:
14954: aix4* | aix5*)
14955: version_type=linux
14956: need_lib_prefix=no
14957: need_version=no
14958: hardcode_into_libs=yes
14959: if test "$host_cpu" = ia64; then
14960: # AIX 5 supports IA64
14961: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14962: shlibpath_var=LD_LIBRARY_PATH
14963: else
14964: # With GCC up to 2.95.x, collect2 would create an import file
14965: # for dependence libraries. The import file would start with
14966: # the line `#! .'. This would cause the generated library to
14967: # depend on `.', always an invalid library. This was fixed in
14968: # development snapshots of GCC prior to 3.0.
14969: case $host_os in
14970: aix4 | aix4.[01] | aix4.[01].*)
14971: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14972: echo ' yes '
14973: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14974: :
14975: else
14976: can_build_shared=no
14977: fi
14978: ;;
14979: esac
14980: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14981: # soname into executable. Probably we can add versioning support to
14982: # collect2, so additional links can be useful in future.
14983: if test "$aix_use_runtimelinking" = yes; then
14984: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14985: # instead of lib<name>.a to let people know that these are not
14986: # typical AIX shared libraries.
14987: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14988: else
14989: # We preserve .a as extension for shared libraries through AIX4.2
14990: # and later when we are not doing run time linking.
14991: library_names_spec='${libname}${release}.a $libname.a'
14992: soname_spec='${libname}${release}${shared_ext}$major'
14993: fi
14994: shlibpath_var=LIBPATH
14995: fi
14996: ;;
14997:
14998: amigaos*)
14999: library_names_spec='$libname.ixlibrary $libname.a'
15000: # Create ${libname}_ixlibrary.a entries in /sys/libs.
15001: 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'
15002: ;;
15003:
15004: beos*)
15005: library_names_spec='${libname}${shared_ext}'
15006: dynamic_linker="$host_os ld.so"
15007: shlibpath_var=LIBRARY_PATH
15008: ;;
15009:
15010: bsdi4*)
15011: version_type=linux
15012: need_version=no
15013: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15014: soname_spec='${libname}${release}${shared_ext}$major'
15015: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15016: shlibpath_var=LD_LIBRARY_PATH
15017: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15018: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15019: # the default ld.so.conf also contains /usr/contrib/lib and
15020: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15021: # libtool to hard-code these into programs
15022: ;;
15023:
15024: cygwin* | mingw* | pw32*)
15025: version_type=windows
15026: shrext=".dll"
15027: need_version=no
15028: need_lib_prefix=no
15029:
15030: case $GCC,$host_os in
15031: yes,cygwin* | yes,mingw* | yes,pw32*)
15032: library_names_spec='$libname.dll.a'
15033: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15034: postinstall_cmds='base_file=`basename \${file}`~
15035: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15036: dldir=$destdir/`dirname \$dlpath`~
15037: test -d \$dldir || mkdir -p \$dldir~
15038: $install_prog $dir/$dlname \$dldir/$dlname'
15039: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15040: dlpath=$dir/\$dldll~
15041: $rm \$dlpath'
15042: shlibpath_overrides_runpath=yes
15043:
15044: case $host_os in
15045: cygwin*)
15046: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15047: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15048: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
15049: ;;
15050: mingw*)
15051: # MinGW DLLs use traditional 'lib' prefix
15052: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15053: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15054: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15055: # It is most probably a Windows format PATH printed by
15056: # mingw gcc, but we are running on Cygwin. Gcc prints its search
15057: # path with ; separators, and with drive letters. We can handle the
15058: # drive letters (cygwin fileutils understands them), so leave them,
15059: # especially as we might pass files found there to a mingw objdump,
15060: # which wouldn't understand a cygwinified path. Ahh.
15061: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15062: else
15063: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15064: fi
15065: ;;
15066: pw32*)
15067: # pw32 DLLs use 'pw' prefix rather than 'lib'
15068: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15069: ;;
15070: esac
15071: ;;
15072:
15073: *)
15074: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15075: ;;
15076: esac
15077: dynamic_linker='Win32 ld.exe'
15078: # FIXME: first we should search . and the directory the executable is in
15079: shlibpath_var=PATH
15080: ;;
15081:
15082: darwin* | rhapsody*)
15083: dynamic_linker="$host_os dyld"
15084: version_type=darwin
15085: need_lib_prefix=no
15086: need_version=no
15087: # FIXME: Relying on posixy $() will cause problems for
15088: # cross-compilation, but unfortunately the echo tests do not
15089: # yet detect zsh echo's removal of \ escapes.
15090: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15091: soname_spec='${libname}${release}${major}$shared_ext'
15092: shlibpath_overrides_runpath=yes
15093: shlibpath_var=DYLD_LIBRARY_PATH
15094: shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15095: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15096: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15097: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15098: fi
15099: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15100: ;;
15101:
15102: dgux*)
15103: version_type=linux
15104: need_lib_prefix=no
15105: need_version=no
15106: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15107: soname_spec='${libname}${release}${shared_ext}$major'
15108: shlibpath_var=LD_LIBRARY_PATH
15109: ;;
15110:
15111: freebsd1*)
15112: dynamic_linker=no
15113: ;;
15114:
15115: freebsd*)
15116: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15117: version_type=freebsd-$objformat
15118: case $version_type in
15119: freebsd-elf*)
15120: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15121: need_version=no
15122: need_lib_prefix=no
15123: ;;
15124: freebsd-*)
15125: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15126: need_version=yes
15127: ;;
15128: esac
15129: shlibpath_var=LD_LIBRARY_PATH
15130: case $host_os in
15131: freebsd2*)
15132: shlibpath_overrides_runpath=yes
15133: ;;
15134: freebsd3.01* | freebsdelf3.01*)
15135: shlibpath_overrides_runpath=yes
15136: hardcode_into_libs=yes
15137: ;;
15138: *) # from 3.2 on
15139: shlibpath_overrides_runpath=no
15140: hardcode_into_libs=yes
15141: ;;
15142: esac
15143: ;;
15144:
15145: gnu*)
15146: version_type=linux
15147: need_lib_prefix=no
15148: need_version=no
15149: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15150: soname_spec='${libname}${release}${shared_ext}$major'
15151: shlibpath_var=LD_LIBRARY_PATH
15152: hardcode_into_libs=yes
15153: ;;
15154:
15155: hpux9* | hpux10* | hpux11*)
15156: # Give a soname corresponding to the major version so that dld.sl refuses to
15157: # link against other versions.
15158: version_type=sunos
15159: need_lib_prefix=no
15160: need_version=no
15161: case "$host_cpu" in
15162: ia64*)
15163: shrext='.so'
15164: hardcode_into_libs=yes
15165: dynamic_linker="$host_os dld.so"
15166: shlibpath_var=LD_LIBRARY_PATH
15167: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15168: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15169: soname_spec='${libname}${release}${shared_ext}$major'
15170: if test "X$HPUX_IA64_MODE" = X32; then
15171: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15172: else
15173: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15174: fi
15175: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15176: ;;
15177: hppa*64*)
15178: shrext='.sl'
15179: hardcode_into_libs=yes
15180: dynamic_linker="$host_os dld.sl"
15181: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15182: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15183: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15184: soname_spec='${libname}${release}${shared_ext}$major'
15185: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15186: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15187: ;;
15188: *)
15189: shrext='.sl'
15190: dynamic_linker="$host_os dld.sl"
15191: shlibpath_var=SHLIB_PATH
15192: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15193: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194: soname_spec='${libname}${release}${shared_ext}$major'
15195: ;;
15196: esac
15197: # HP-UX runs *really* slowly unless shared libraries are mode 555.
15198: postinstall_cmds='chmod 555 $lib'
15199: ;;
15200:
15201: irix5* | irix6* | nonstopux*)
15202: case $host_os in
15203: nonstopux*) version_type=nonstopux ;;
15204: *)
15205: if test "$lt_cv_prog_gnu_ld" = yes; then
15206: version_type=linux
15207: else
15208: version_type=irix
15209: fi ;;
15210: esac
15211: need_lib_prefix=no
15212: need_version=no
15213: soname_spec='${libname}${release}${shared_ext}$major'
15214: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15215: case $host_os in
15216: irix5* | nonstopux*)
15217: libsuff= shlibsuff=
15218: ;;
15219: *)
15220: case $LD in # libtool.m4 will add one of these switches to LD
15221: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15222: libsuff= shlibsuff= libmagic=32-bit;;
15223: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15224: libsuff=32 shlibsuff=N32 libmagic=N32;;
15225: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15226: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15227: *) libsuff= shlibsuff= libmagic=never-match;;
15228: esac
15229: ;;
15230: esac
15231: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15232: shlibpath_overrides_runpath=no
15233: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15234: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15235: hardcode_into_libs=yes
15236: ;;
15237:
15238: # No shared lib support for Linux oldld, aout, or coff.
15239: linux*oldld* | linux*aout* | linux*coff*)
15240: dynamic_linker=no
15241: ;;
15242:
15243: # This must be Linux ELF.
15244: linux*)
15245: version_type=linux
15246: need_lib_prefix=no
15247: need_version=no
15248: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15249: soname_spec='${libname}${release}${shared_ext}$major'
15250: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15251: shlibpath_var=LD_LIBRARY_PATH
15252: shlibpath_overrides_runpath=no
15253: # This implies no fast_install, which is unacceptable.
15254: # Some rework will be needed to allow for fast_install
15255: # before this can be enabled.
15256: hardcode_into_libs=yes
15257:
15258: # We used to test for /lib/ld.so.1 and disable shared libraries on
15259: # powerpc, because MkLinux only supported shared libraries with the
15260: # GNU dynamic linker. Since this was broken with cross compilers,
15261: # most powerpc-linux boxes support dynamic linking these days and
15262: # people can always --disable-shared, the test was removed, and we
15263: # assume the GNU/Linux dynamic linker is in use.
15264: dynamic_linker='GNU/Linux ld.so'
15265: ;;
15266:
15267: netbsd*)
15268: version_type=sunos
15269: need_lib_prefix=no
15270: need_version=no
15271: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15272: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15273: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15274: dynamic_linker='NetBSD (a.out) ld.so'
15275: else
15276: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15277: soname_spec='${libname}${release}${shared_ext}$major'
15278: dynamic_linker='NetBSD ld.elf_so'
15279: fi
15280: shlibpath_var=LD_LIBRARY_PATH
15281: shlibpath_overrides_runpath=yes
15282: hardcode_into_libs=yes
15283: ;;
15284:
15285: newsos6)
15286: version_type=linux
15287: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15288: shlibpath_var=LD_LIBRARY_PATH
15289: shlibpath_overrides_runpath=yes
15290: ;;
15291:
15292: nto-qnx)
15293: version_type=linux
15294: need_lib_prefix=no
15295: need_version=no
15296: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15297: soname_spec='${libname}${release}${shared_ext}$major'
15298: shlibpath_var=LD_LIBRARY_PATH
15299: shlibpath_overrides_runpath=yes
15300: ;;
15301:
15302: openbsd*)
15303: version_type=sunos
15304: need_lib_prefix=no
15305: need_version=no
15306: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15307: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15308: shlibpath_var=LD_LIBRARY_PATH
15309: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15310: case $host_os in
15311: openbsd2.[89] | openbsd2.[89].*)
15312: shlibpath_overrides_runpath=no
15313: ;;
15314: *)
15315: shlibpath_overrides_runpath=yes
15316: ;;
15317: esac
15318: else
15319: shlibpath_overrides_runpath=yes
15320: fi
15321: ;;
15322:
15323: os2*)
15324: libname_spec='$name'
15325: shrext=".dll"
15326: need_lib_prefix=no
15327: library_names_spec='$libname${shared_ext} $libname.a'
15328: dynamic_linker='OS/2 ld.exe'
15329: shlibpath_var=LIBPATH
15330: ;;
15331:
15332: osf3* | osf4* | osf5*)
15333: version_type=osf
15334: need_lib_prefix=no
15335: need_version=no
15336: soname_spec='${libname}${release}${shared_ext}$major'
15337: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15338: shlibpath_var=LD_LIBRARY_PATH
15339: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15340: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15341: ;;
15342:
15343: sco3.2v5*)
15344: version_type=osf
15345: soname_spec='${libname}${release}${shared_ext}$major'
15346: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15347: shlibpath_var=LD_LIBRARY_PATH
15348: ;;
15349:
15350: solaris*)
15351: version_type=linux
15352: need_lib_prefix=no
15353: need_version=no
15354: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15355: soname_spec='${libname}${release}${shared_ext}$major'
15356: shlibpath_var=LD_LIBRARY_PATH
15357: shlibpath_overrides_runpath=yes
15358: hardcode_into_libs=yes
15359: # ldd complains unless libraries are executable
15360: postinstall_cmds='chmod +x $lib'
15361: ;;
15362:
15363: sunos4*)
15364: version_type=sunos
15365: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15366: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15367: shlibpath_var=LD_LIBRARY_PATH
15368: shlibpath_overrides_runpath=yes
15369: if test "$with_gnu_ld" = yes; then
15370: need_lib_prefix=no
15371: fi
15372: need_version=yes
15373: ;;
15374:
15375: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15376: version_type=linux
15377: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378: soname_spec='${libname}${release}${shared_ext}$major'
15379: shlibpath_var=LD_LIBRARY_PATH
15380: case $host_vendor in
15381: sni)
15382: shlibpath_overrides_runpath=no
15383: need_lib_prefix=no
15384: export_dynamic_flag_spec='${wl}-Blargedynsym'
15385: runpath_var=LD_RUN_PATH
15386: ;;
15387: siemens)
15388: need_lib_prefix=no
15389: ;;
15390: motorola)
15391: need_lib_prefix=no
15392: need_version=no
15393: shlibpath_overrides_runpath=no
15394: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15395: ;;
15396: esac
15397: ;;
15398:
15399: sysv4*MP*)
15400: if test -d /usr/nec ;then
15401: version_type=linux
15402: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15403: soname_spec='$libname${shared_ext}.$major'
15404: shlibpath_var=LD_LIBRARY_PATH
15405: fi
15406: ;;
15407:
15408: uts4*)
15409: version_type=linux
15410: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15411: soname_spec='${libname}${release}${shared_ext}$major'
15412: shlibpath_var=LD_LIBRARY_PATH
15413: ;;
15414:
15415: *)
15416: dynamic_linker=no
15417: ;;
15418: esac
15419: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15420: echo "${ECHO_T}$dynamic_linker" >&6
15421: test "$dynamic_linker" = no && can_build_shared=no
15422:
15423: if test "x$enable_dlopen" != xyes; then
15424: enable_dlopen=unknown
15425: enable_dlopen_self=unknown
15426: enable_dlopen_self_static=unknown
15427: else
15428: lt_cv_dlopen=no
15429: lt_cv_dlopen_libs=
15430:
15431: case $host_os in
15432: beos*)
15433: lt_cv_dlopen="load_add_on"
15434: lt_cv_dlopen_libs=
15435: lt_cv_dlopen_self=yes
15436: ;;
15437:
15438: mingw* | pw32*)
15439: lt_cv_dlopen="LoadLibrary"
15440: lt_cv_dlopen_libs=
15441: ;;
15442:
15443: cygwin*)
15444: lt_cv_dlopen="dlopen"
15445: lt_cv_dlopen_libs=
15446: ;;
15447:
15448: darwin*)
15449: # if libdl is installed we need to link against it
15450: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15451: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15452: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15453: echo $ECHO_N "(cached) $ECHO_C" >&6
15454: else
15455: ac_check_lib_save_LIBS=$LIBS
15456: LIBS="-ldl $LIBS"
15457: cat >conftest.$ac_ext <<_ACEOF
15458: #line $LINENO "configure"
15459: /* confdefs.h. */
15460: _ACEOF
15461: cat confdefs.h >>conftest.$ac_ext
15462: cat >>conftest.$ac_ext <<_ACEOF
15463: /* end confdefs.h. */
15464:
15465: /* Override any gcc2 internal prototype to avoid an error. */
15466: #ifdef __cplusplus
15467: extern "C"
15468: #endif
15469: /* We use char because int might match the return type of a gcc2
15470: builtin and then its argument prototype would still apply. */
15471: char dlopen ();
15472: int
15473: main ()
15474: {
15475: dlopen ();
15476: ;
15477: return 0;
15478: }
15479: _ACEOF
15480: rm -f conftest.$ac_objext conftest$ac_exeext
15481: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15482: (eval $ac_link) 2>&5
15483: ac_status=$?
15484: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485: (exit $ac_status); } &&
15486: { ac_try='test -s conftest$ac_exeext'
15487: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488: (eval $ac_try) 2>&5
15489: ac_status=$?
15490: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491: (exit $ac_status); }; }; then
15492: ac_cv_lib_dl_dlopen=yes
15493: else
15494: echo "$as_me: failed program was:" >&5
15495: sed 's/^/| /' conftest.$ac_ext >&5
15496:
15497: ac_cv_lib_dl_dlopen=no
15498: fi
15499: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15500: LIBS=$ac_check_lib_save_LIBS
15501: fi
15502: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15503: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15504: if test $ac_cv_lib_dl_dlopen = yes; then
15505: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15506: else
15507:
15508: lt_cv_dlopen="dyld"
15509: lt_cv_dlopen_libs=
15510: lt_cv_dlopen_self=yes
15511:
15512: fi
15513:
15514: ;;
15515:
15516: *)
15517: echo "$as_me:$LINENO: checking for shl_load" >&5
15518: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15519: if test "${ac_cv_func_shl_load+set}" = set; then
15520: echo $ECHO_N "(cached) $ECHO_C" >&6
15521: else
15522: cat >conftest.$ac_ext <<_ACEOF
15523: #line $LINENO "configure"
15524: /* confdefs.h. */
15525: _ACEOF
15526: cat confdefs.h >>conftest.$ac_ext
15527: cat >>conftest.$ac_ext <<_ACEOF
15528: /* end confdefs.h. */
15529: /* System header to define __stub macros and hopefully few prototypes,
15530: which can conflict with char shl_load (); below.
15531: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15532: <limits.h> exists even on freestanding compilers. */
15533: #ifdef __STDC__
15534: # include <limits.h>
15535: #else
15536: # include <assert.h>
15537: #endif
15538: /* Override any gcc2 internal prototype to avoid an error. */
15539: #ifdef __cplusplus
15540: extern "C"
15541: {
15542: #endif
15543: /* We use char because int might match the return type of a gcc2
15544: builtin and then its argument prototype would still apply. */
15545: char shl_load ();
15546: /* The GNU C library defines this for functions which it implements
15547: to always fail with ENOSYS. Some functions are actually named
15548: something starting with __ and the normal name is an alias. */
15549: #if defined (__stub_shl_load) || defined (__stub___shl_load)
15550: choke me
15551: #else
15552: char (*f) () = shl_load;
15553: #endif
15554: #ifdef __cplusplus
15555: }
15556: #endif
15557:
15558: int
15559: main ()
15560: {
15561: return f != shl_load;
15562: ;
15563: return 0;
15564: }
15565: _ACEOF
15566: rm -f conftest.$ac_objext conftest$ac_exeext
15567: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15568: (eval $ac_link) 2>&5
15569: ac_status=$?
15570: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571: (exit $ac_status); } &&
15572: { ac_try='test -s conftest$ac_exeext'
15573: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574: (eval $ac_try) 2>&5
15575: ac_status=$?
15576: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577: (exit $ac_status); }; }; then
15578: ac_cv_func_shl_load=yes
15579: else
15580: echo "$as_me: failed program was:" >&5
15581: sed 's/^/| /' conftest.$ac_ext >&5
15582:
15583: ac_cv_func_shl_load=no
15584: fi
15585: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15586: fi
15587: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15588: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15589: if test $ac_cv_func_shl_load = yes; then
15590: lt_cv_dlopen="shl_load"
15591: else
15592: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15593: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15594: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15595: echo $ECHO_N "(cached) $ECHO_C" >&6
15596: else
15597: ac_check_lib_save_LIBS=$LIBS
15598: LIBS="-ldld $LIBS"
15599: cat >conftest.$ac_ext <<_ACEOF
15600: #line $LINENO "configure"
15601: /* confdefs.h. */
15602: _ACEOF
15603: cat confdefs.h >>conftest.$ac_ext
15604: cat >>conftest.$ac_ext <<_ACEOF
15605: /* end confdefs.h. */
15606:
15607: /* Override any gcc2 internal prototype to avoid an error. */
15608: #ifdef __cplusplus
15609: extern "C"
15610: #endif
15611: /* We use char because int might match the return type of a gcc2
15612: builtin and then its argument prototype would still apply. */
15613: char shl_load ();
15614: int
15615: main ()
15616: {
15617: shl_load ();
15618: ;
15619: return 0;
15620: }
15621: _ACEOF
15622: rm -f conftest.$ac_objext conftest$ac_exeext
15623: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15624: (eval $ac_link) 2>&5
15625: ac_status=$?
15626: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627: (exit $ac_status); } &&
15628: { ac_try='test -s conftest$ac_exeext'
15629: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630: (eval $ac_try) 2>&5
15631: ac_status=$?
15632: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633: (exit $ac_status); }; }; then
15634: ac_cv_lib_dld_shl_load=yes
15635: else
15636: echo "$as_me: failed program was:" >&5
15637: sed 's/^/| /' conftest.$ac_ext >&5
15638:
15639: ac_cv_lib_dld_shl_load=no
15640: fi
15641: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15642: LIBS=$ac_check_lib_save_LIBS
15643: fi
15644: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15645: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15646: if test $ac_cv_lib_dld_shl_load = yes; then
15647: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15648: else
15649: echo "$as_me:$LINENO: checking for dlopen" >&5
15650: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15651: if test "${ac_cv_func_dlopen+set}" = set; then
15652: echo $ECHO_N "(cached) $ECHO_C" >&6
15653: else
15654: cat >conftest.$ac_ext <<_ACEOF
15655: #line $LINENO "configure"
15656: /* confdefs.h. */
15657: _ACEOF
15658: cat confdefs.h >>conftest.$ac_ext
15659: cat >>conftest.$ac_ext <<_ACEOF
15660: /* end confdefs.h. */
15661: /* System header to define __stub macros and hopefully few prototypes,
15662: which can conflict with char dlopen (); below.
15663: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15664: <limits.h> exists even on freestanding compilers. */
15665: #ifdef __STDC__
15666: # include <limits.h>
15667: #else
15668: # include <assert.h>
15669: #endif
15670: /* Override any gcc2 internal prototype to avoid an error. */
15671: #ifdef __cplusplus
15672: extern "C"
15673: {
15674: #endif
15675: /* We use char because int might match the return type of a gcc2
15676: builtin and then its argument prototype would still apply. */
15677: char dlopen ();
15678: /* The GNU C library defines this for functions which it implements
15679: to always fail with ENOSYS. Some functions are actually named
15680: something starting with __ and the normal name is an alias. */
15681: #if defined (__stub_dlopen) || defined (__stub___dlopen)
15682: choke me
15683: #else
15684: char (*f) () = dlopen;
15685: #endif
15686: #ifdef __cplusplus
15687: }
15688: #endif
15689:
15690: int
15691: main ()
15692: {
15693: return f != dlopen;
15694: ;
15695: return 0;
15696: }
15697: _ACEOF
15698: rm -f conftest.$ac_objext conftest$ac_exeext
15699: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15700: (eval $ac_link) 2>&5
15701: ac_status=$?
15702: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703: (exit $ac_status); } &&
15704: { ac_try='test -s conftest$ac_exeext'
15705: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706: (eval $ac_try) 2>&5
15707: ac_status=$?
15708: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709: (exit $ac_status); }; }; then
15710: ac_cv_func_dlopen=yes
15711: else
15712: echo "$as_me: failed program was:" >&5
15713: sed 's/^/| /' conftest.$ac_ext >&5
15714:
15715: ac_cv_func_dlopen=no
15716: fi
15717: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15718: fi
15719: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15720: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15721: if test $ac_cv_func_dlopen = yes; then
15722: lt_cv_dlopen="dlopen"
15723: else
15724: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15725: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15726: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15727: echo $ECHO_N "(cached) $ECHO_C" >&6
15728: else
15729: ac_check_lib_save_LIBS=$LIBS
15730: LIBS="-ldl $LIBS"
15731: cat >conftest.$ac_ext <<_ACEOF
15732: #line $LINENO "configure"
15733: /* confdefs.h. */
15734: _ACEOF
15735: cat confdefs.h >>conftest.$ac_ext
15736: cat >>conftest.$ac_ext <<_ACEOF
15737: /* end confdefs.h. */
15738:
15739: /* Override any gcc2 internal prototype to avoid an error. */
15740: #ifdef __cplusplus
15741: extern "C"
15742: #endif
15743: /* We use char because int might match the return type of a gcc2
15744: builtin and then its argument prototype would still apply. */
15745: char dlopen ();
15746: int
15747: main ()
15748: {
15749: dlopen ();
15750: ;
15751: return 0;
15752: }
15753: _ACEOF
15754: rm -f conftest.$ac_objext conftest$ac_exeext
15755: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15756: (eval $ac_link) 2>&5
15757: ac_status=$?
15758: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759: (exit $ac_status); } &&
15760: { ac_try='test -s conftest$ac_exeext'
15761: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762: (eval $ac_try) 2>&5
15763: ac_status=$?
15764: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765: (exit $ac_status); }; }; then
15766: ac_cv_lib_dl_dlopen=yes
15767: else
15768: echo "$as_me: failed program was:" >&5
15769: sed 's/^/| /' conftest.$ac_ext >&5
15770:
15771: ac_cv_lib_dl_dlopen=no
15772: fi
15773: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15774: LIBS=$ac_check_lib_save_LIBS
15775: fi
15776: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15777: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15778: if test $ac_cv_lib_dl_dlopen = yes; then
15779: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15780: else
15781: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15782: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15783: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15784: echo $ECHO_N "(cached) $ECHO_C" >&6
15785: else
15786: ac_check_lib_save_LIBS=$LIBS
15787: LIBS="-lsvld $LIBS"
15788: cat >conftest.$ac_ext <<_ACEOF
15789: #line $LINENO "configure"
15790: /* confdefs.h. */
15791: _ACEOF
15792: cat confdefs.h >>conftest.$ac_ext
15793: cat >>conftest.$ac_ext <<_ACEOF
15794: /* end confdefs.h. */
15795:
15796: /* Override any gcc2 internal prototype to avoid an error. */
15797: #ifdef __cplusplus
15798: extern "C"
15799: #endif
15800: /* We use char because int might match the return type of a gcc2
15801: builtin and then its argument prototype would still apply. */
15802: char dlopen ();
15803: int
15804: main ()
15805: {
15806: dlopen ();
15807: ;
15808: return 0;
15809: }
15810: _ACEOF
15811: rm -f conftest.$ac_objext conftest$ac_exeext
15812: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15813: (eval $ac_link) 2>&5
15814: ac_status=$?
15815: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816: (exit $ac_status); } &&
15817: { ac_try='test -s conftest$ac_exeext'
15818: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15819: (eval $ac_try) 2>&5
15820: ac_status=$?
15821: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822: (exit $ac_status); }; }; then
15823: ac_cv_lib_svld_dlopen=yes
15824: else
15825: echo "$as_me: failed program was:" >&5
15826: sed 's/^/| /' conftest.$ac_ext >&5
15827:
15828: ac_cv_lib_svld_dlopen=no
15829: fi
15830: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15831: LIBS=$ac_check_lib_save_LIBS
15832: fi
15833: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15834: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15835: if test $ac_cv_lib_svld_dlopen = yes; then
15836: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15837: else
15838: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15839: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15840: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15841: echo $ECHO_N "(cached) $ECHO_C" >&6
15842: else
15843: ac_check_lib_save_LIBS=$LIBS
15844: LIBS="-ldld $LIBS"
15845: cat >conftest.$ac_ext <<_ACEOF
15846: #line $LINENO "configure"
15847: /* confdefs.h. */
15848: _ACEOF
15849: cat confdefs.h >>conftest.$ac_ext
15850: cat >>conftest.$ac_ext <<_ACEOF
15851: /* end confdefs.h. */
15852:
15853: /* Override any gcc2 internal prototype to avoid an error. */
15854: #ifdef __cplusplus
15855: extern "C"
15856: #endif
15857: /* We use char because int might match the return type of a gcc2
15858: builtin and then its argument prototype would still apply. */
15859: char dld_link ();
15860: int
15861: main ()
15862: {
15863: dld_link ();
15864: ;
15865: return 0;
15866: }
15867: _ACEOF
15868: rm -f conftest.$ac_objext conftest$ac_exeext
15869: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15870: (eval $ac_link) 2>&5
15871: ac_status=$?
15872: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873: (exit $ac_status); } &&
15874: { ac_try='test -s conftest$ac_exeext'
15875: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876: (eval $ac_try) 2>&5
15877: ac_status=$?
15878: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879: (exit $ac_status); }; }; then
15880: ac_cv_lib_dld_dld_link=yes
15881: else
15882: echo "$as_me: failed program was:" >&5
15883: sed 's/^/| /' conftest.$ac_ext >&5
15884:
15885: ac_cv_lib_dld_dld_link=no
15886: fi
15887: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15888: LIBS=$ac_check_lib_save_LIBS
15889: fi
15890: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15891: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15892: if test $ac_cv_lib_dld_dld_link = yes; then
15893: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15894: fi
15895:
15896:
15897: fi
15898:
15899:
15900: fi
15901:
15902:
15903: fi
15904:
15905:
15906: fi
15907:
15908:
15909: fi
15910:
15911: ;;
15912: esac
15913:
15914: if test "x$lt_cv_dlopen" != xno; then
15915: enable_dlopen=yes
15916: else
15917: enable_dlopen=no
15918: fi
15919:
15920: case $lt_cv_dlopen in
15921: dlopen)
15922: save_CPPFLAGS="$CPPFLAGS"
15923: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15924:
15925: save_LDFLAGS="$LDFLAGS"
15926: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15927:
15928: save_LIBS="$LIBS"
15929: LIBS="$lt_cv_dlopen_libs $LIBS"
15930:
15931: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15932: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15933: if test "${lt_cv_dlopen_self+set}" = set; then
15934: echo $ECHO_N "(cached) $ECHO_C" >&6
15935: else
15936: if test "$cross_compiling" = yes; then :
15937: lt_cv_dlopen_self=cross
15938: else
15939: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15940: lt_status=$lt_dlunknown
15941: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root 15942: #line 15942 "configure"
1.1 root 15943: #include "confdefs.h"
15944:
15945: #if HAVE_DLFCN_H
15946: #include <dlfcn.h>
15947: #endif
15948:
15949: #include <stdio.h>
15950:
15951: #ifdef RTLD_GLOBAL
15952: # define LT_DLGLOBAL RTLD_GLOBAL
15953: #else
15954: # ifdef DL_GLOBAL
15955: # define LT_DLGLOBAL DL_GLOBAL
15956: # else
15957: # define LT_DLGLOBAL 0
15958: # endif
15959: #endif
15960:
15961: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15962: find out it does not work in some platform. */
15963: #ifndef LT_DLLAZY_OR_NOW
15964: # ifdef RTLD_LAZY
15965: # define LT_DLLAZY_OR_NOW RTLD_LAZY
15966: # else
15967: # ifdef DL_LAZY
15968: # define LT_DLLAZY_OR_NOW DL_LAZY
15969: # else
15970: # ifdef RTLD_NOW
15971: # define LT_DLLAZY_OR_NOW RTLD_NOW
15972: # else
15973: # ifdef DL_NOW
15974: # define LT_DLLAZY_OR_NOW DL_NOW
15975: # else
15976: # define LT_DLLAZY_OR_NOW 0
15977: # endif
15978: # endif
15979: # endif
15980: # endif
15981: #endif
15982:
15983: #ifdef __cplusplus
15984: extern "C" void exit (int);
15985: #endif
15986:
15987: void fnord() { int i=42;}
15988: int main ()
15989: {
15990: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15991: int status = $lt_dlunknown;
15992:
15993: if (self)
15994: {
15995: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15996: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15997: /* dlclose (self); */
15998: }
15999:
16000: exit (status);
16001: }
16002: EOF
16003: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16004: (eval $ac_link) 2>&5
16005: ac_status=$?
16006: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16008: (./conftest; exit; ) 2>/dev/null
16009: lt_status=$?
16010: case x$lt_status in
16011: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16012: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16013: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16014: esac
16015: else :
16016: # compilation failed
16017: lt_cv_dlopen_self=no
16018: fi
16019: fi
16020: rm -fr conftest*
16021:
16022:
16023: fi
16024: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16025: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16026:
16027: if test "x$lt_cv_dlopen_self" = xyes; then
16028: LDFLAGS="$LDFLAGS $link_static_flag"
16029: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16030: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16031: if test "${lt_cv_dlopen_self_static+set}" = set; then
16032: echo $ECHO_N "(cached) $ECHO_C" >&6
16033: else
16034: if test "$cross_compiling" = yes; then :
16035: lt_cv_dlopen_self_static=cross
16036: else
16037: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16038: lt_status=$lt_dlunknown
16039: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root 16040: #line 16040 "configure"
1.1 root 16041: #include "confdefs.h"
16042:
16043: #if HAVE_DLFCN_H
16044: #include <dlfcn.h>
16045: #endif
16046:
16047: #include <stdio.h>
16048:
16049: #ifdef RTLD_GLOBAL
16050: # define LT_DLGLOBAL RTLD_GLOBAL
16051: #else
16052: # ifdef DL_GLOBAL
16053: # define LT_DLGLOBAL DL_GLOBAL
16054: # else
16055: # define LT_DLGLOBAL 0
16056: # endif
16057: #endif
16058:
16059: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16060: find out it does not work in some platform. */
16061: #ifndef LT_DLLAZY_OR_NOW
16062: # ifdef RTLD_LAZY
16063: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16064: # else
16065: # ifdef DL_LAZY
16066: # define LT_DLLAZY_OR_NOW DL_LAZY
16067: # else
16068: # ifdef RTLD_NOW
16069: # define LT_DLLAZY_OR_NOW RTLD_NOW
16070: # else
16071: # ifdef DL_NOW
16072: # define LT_DLLAZY_OR_NOW DL_NOW
16073: # else
16074: # define LT_DLLAZY_OR_NOW 0
16075: # endif
16076: # endif
16077: # endif
16078: # endif
16079: #endif
16080:
16081: #ifdef __cplusplus
16082: extern "C" void exit (int);
16083: #endif
16084:
16085: void fnord() { int i=42;}
16086: int main ()
16087: {
16088: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16089: int status = $lt_dlunknown;
16090:
16091: if (self)
16092: {
16093: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16094: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16095: /* dlclose (self); */
16096: }
16097:
16098: exit (status);
16099: }
16100: EOF
16101: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16102: (eval $ac_link) 2>&5
16103: ac_status=$?
16104: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16106: (./conftest; exit; ) 2>/dev/null
16107: lt_status=$?
16108: case x$lt_status in
16109: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16110: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16111: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16112: esac
16113: else :
16114: # compilation failed
16115: lt_cv_dlopen_self_static=no
16116: fi
16117: fi
16118: rm -fr conftest*
16119:
16120:
16121: fi
16122: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16123: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16124: fi
16125:
16126: CPPFLAGS="$save_CPPFLAGS"
16127: LDFLAGS="$save_LDFLAGS"
16128: LIBS="$save_LIBS"
16129: ;;
16130: esac
16131:
16132: case $lt_cv_dlopen_self in
16133: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16134: *) enable_dlopen_self=unknown ;;
16135: esac
16136:
16137: case $lt_cv_dlopen_self_static in
16138: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16139: *) enable_dlopen_self_static=unknown ;;
16140: esac
16141: fi
16142:
16143:
16144: # Report which librarie types wil actually be built
16145: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16146: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
16147: echo "$as_me:$LINENO: result: $can_build_shared" >&5
16148: echo "${ECHO_T}$can_build_shared" >&6
16149:
16150: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16151: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16152: test "$can_build_shared" = "no" && enable_shared=no
16153:
16154: # On AIX, shared libraries and static libraries use the same namespace, and
16155: # are all built from PIC.
16156: case "$host_os" in
16157: aix3*)
16158: test "$enable_shared" = yes && enable_static=no
16159: if test -n "$RANLIB"; then
16160: archive_cmds="$archive_cmds~\$RANLIB \$lib"
16161: postinstall_cmds='$RANLIB $lib'
16162: fi
16163: ;;
16164:
16165: aix4*)
16166: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16167: test "$enable_shared" = yes && enable_static=no
16168: fi
16169: ;;
16170: darwin* | rhapsody*)
16171: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16172: archive_cmds_need_lc=no
16173: case "$host_os" in
16174: rhapsody* | darwin1.[012])
16175: allow_undefined_flag='-undefined suppress'
16176: ;;
16177: *) # Darwin 1.3 on
16178: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
16179: ;;
16180: esac
16181: # FIXME: Relying on posixy $() will cause problems for
16182: # cross-compilation, but unfortunately the echo tests do not
16183: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
16184: # `"' quotes if we put them in here... so don't!
16185: output_verbose_link_cmd='echo'
16186: archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
16187: module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16188: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16189: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16190: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16191: hardcode_direct=no
16192: hardcode_automatic=yes
16193: hardcode_shlibpath_var=unsupported
16194: whole_archive_flag_spec='-all_load $convenience'
16195: link_all_deplibs=yes
16196: fi
16197: ;;
16198: esac
16199: echo "$as_me:$LINENO: result: $enable_shared" >&5
16200: echo "${ECHO_T}$enable_shared" >&6
16201:
16202: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16203: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
16204: # Make sure either enable_shared or enable_static is yes.
16205: test "$enable_shared" = yes || enable_static=yes
16206: echo "$as_me:$LINENO: result: $enable_static" >&5
16207: echo "${ECHO_T}$enable_static" >&6
16208:
16209: # The else clause should only fire when bootstrapping the
16210: # libtool distribution, otherwise you forgot to ship ltmain.sh
16211: # with your package, and you will get complaints that there are
16212: # no rules to generate ltmain.sh.
16213: if test -f "$ltmain"; then
16214: # See if we are running on zsh, and set the options which allow our commands through
16215: # without removal of \ escapes.
16216: if test -n "${ZSH_VERSION+set}" ; then
16217: setopt NO_GLOB_SUBST
16218: fi
16219: # Now quote all the things that may contain metacharacters while being
16220: # careful not to overquote the AC_SUBSTed values. We take copies of the
16221: # variables and quote the copies for generation of the libtool script.
16222: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
16223: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16224: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16225: deplibs_check_method reload_flag reload_cmds need_locks \
16226: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16227: lt_cv_sys_global_symbol_to_c_name_address \
16228: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16229: old_postinstall_cmds old_postuninstall_cmds \
16230: compiler \
16231: CC \
16232: LD \
16233: lt_prog_compiler_wl \
16234: lt_prog_compiler_pic \
16235: lt_prog_compiler_static \
16236: lt_prog_compiler_no_builtin_flag \
16237: export_dynamic_flag_spec \
16238: thread_safe_flag_spec \
16239: whole_archive_flag_spec \
16240: enable_shared_with_static_runtimes \
16241: old_archive_cmds \
16242: old_archive_from_new_cmds \
16243: predep_objects \
16244: postdep_objects \
16245: predeps \
16246: postdeps \
16247: compiler_lib_search_path \
16248: archive_cmds \
16249: archive_expsym_cmds \
16250: postinstall_cmds \
16251: postuninstall_cmds \
16252: old_archive_from_expsyms_cmds \
16253: allow_undefined_flag \
16254: no_undefined_flag \
16255: export_symbols_cmds \
16256: hardcode_libdir_flag_spec \
16257: hardcode_libdir_flag_spec_ld \
16258: hardcode_libdir_separator \
16259: hardcode_automatic \
16260: module_cmds \
16261: module_expsym_cmds \
16262: lt_cv_prog_compiler_c_o \
16263: exclude_expsyms \
16264: include_expsyms; do
16265:
16266: case $var in
16267: old_archive_cmds | \
16268: old_archive_from_new_cmds | \
16269: archive_cmds | \
16270: archive_expsym_cmds | \
16271: module_cmds | \
16272: module_expsym_cmds | \
16273: old_archive_from_expsyms_cmds | \
16274: export_symbols_cmds | \
16275: extract_expsyms_cmds | reload_cmds | finish_cmds | \
16276: postinstall_cmds | postuninstall_cmds | \
16277: old_postinstall_cmds | old_postuninstall_cmds | \
16278: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16279: # Double-quote double-evaled strings.
16280: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16281: ;;
16282: *)
16283: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16284: ;;
16285: esac
16286: done
16287:
16288: case $lt_echo in
16289: *'\$0 --fallback-echo"')
16290: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16291: ;;
16292: esac
16293:
16294: cfgfile="${ofile}T"
16295: trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16296: $rm -f "$cfgfile"
16297: { echo "$as_me:$LINENO: creating $ofile" >&5
16298: echo "$as_me: creating $ofile" >&6;}
16299:
16300: cat <<__EOF__ >> "$cfgfile"
16301: #! $SHELL
16302:
16303: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16304: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16305: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16306: #
16307: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16308: # Free Software Foundation, Inc.
16309: #
16310: # This file is part of GNU Libtool:
16311: # Originally by Gordon Matzigkeit <[email protected]>, 1996
16312: #
16313: # This program is free software; you can redistribute it and/or modify
16314: # it under the terms of the GNU General Public License as published by
16315: # the Free Software Foundation; either version 2 of the License, or
16316: # (at your option) any later version.
16317: #
16318: # This program is distributed in the hope that it will be useful, but
16319: # WITHOUT ANY WARRANTY; without even the implied warranty of
16320: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16321: # General Public License for more details.
16322: #
16323: # You should have received a copy of the GNU General Public License
16324: # along with this program; if not, write to the Free Software
16325: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16326: #
16327: # As a special exception to the GNU General Public License, if you
16328: # distribute this file as part of a program that contains a
16329: # configuration script generated by Autoconf, you may include it under
16330: # the same distribution terms that you use for the rest of that program.
16331:
16332: # A sed program that does not truncate output.
16333: SED=$lt_SED
16334:
16335: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16336: Xsed="$SED -e s/^X//"
16337:
16338: # The HP-UX ksh and POSIX shell print the target directory to stdout
16339: # if CDPATH is set.
16340: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
16341:
16342: # The names of the tagged configurations supported by this script.
16343: available_tags=
16344:
16345: # ### BEGIN LIBTOOL CONFIG
16346:
16347: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16348:
16349: # Shell to use when invoking shell scripts.
16350: SHELL=$lt_SHELL
16351:
16352: # Whether or not to build shared libraries.
16353: build_libtool_libs=$enable_shared
16354:
16355: # Whether or not to build static libraries.
16356: build_old_libs=$enable_static
16357:
16358: # Whether or not to add -lc for building shared libraries.
16359: build_libtool_need_lc=$archive_cmds_need_lc
16360:
16361: # Whether or not to disallow shared libs when runtime libs are static
16362: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16363:
16364: # Whether or not to optimize for fast installation.
16365: fast_install=$enable_fast_install
16366:
16367: # The host system.
16368: host_alias=$host_alias
16369: host=$host
16370:
16371: # An echo program that does not interpret backslashes.
16372: echo=$lt_echo
16373:
16374: # The archiver.
16375: AR=$lt_AR
16376: AR_FLAGS=$lt_AR_FLAGS
16377:
16378: # A C compiler.
16379: LTCC=$lt_LTCC
16380:
16381: # A language-specific compiler.
16382: CC=$lt_compiler
16383:
16384: # Is the compiler the GNU C compiler?
16385: with_gcc=$GCC
16386:
16387: # An ERE matcher.
16388: EGREP=$lt_EGREP
16389:
16390: # The linker used to build libraries.
16391: LD=$lt_LD
16392:
16393: # Whether we need hard or soft links.
16394: LN_S=$lt_LN_S
16395:
16396: # A BSD-compatible nm program.
16397: NM=$lt_NM
16398:
16399: # A symbol stripping program
16400: STRIP=$STRIP
16401:
16402: # Used to examine libraries when file_magic_cmd begins "file"
16403: MAGIC_CMD=$MAGIC_CMD
16404:
16405: # Used on cygwin: DLL creation program.
16406: DLLTOOL="$DLLTOOL"
16407:
16408: # Used on cygwin: object dumper.
16409: OBJDUMP="$OBJDUMP"
16410:
16411: # Used on cygwin: assembler.
16412: AS="$AS"
16413:
16414: # The name of the directory that contains temporary libtool files.
16415: objdir=$objdir
16416:
16417: # How to create reloadable object files.
16418: reload_flag=$lt_reload_flag
16419: reload_cmds=$lt_reload_cmds
16420:
16421: # How to pass a linker flag through the compiler.
16422: wl=$lt_lt_prog_compiler_wl
16423:
16424: # Object file suffix (normally "o").
16425: objext="$ac_objext"
16426:
16427: # Old archive suffix (normally "a").
16428: libext="$libext"
16429:
16430: # Shared library suffix (normally ".so").
16431: shrext='$shrext'
16432:
16433: # Executable file suffix (normally "").
16434: exeext="$exeext"
16435:
16436: # Additional compiler flags for building library objects.
16437: pic_flag=$lt_lt_prog_compiler_pic
16438: pic_mode=$pic_mode
16439:
16440: # What is the maximum length of a command?
16441: max_cmd_len=$lt_cv_sys_max_cmd_len
16442:
16443: # Does compiler simultaneously support -c and -o options?
16444: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16445:
16446: # Must we lock files when doing compilation ?
16447: need_locks=$lt_need_locks
16448:
16449: # Do we need the lib prefix for modules?
16450: need_lib_prefix=$need_lib_prefix
16451:
16452: # Do we need a version for libraries?
16453: need_version=$need_version
16454:
16455: # Whether dlopen is supported.
16456: dlopen_support=$enable_dlopen
16457:
16458: # Whether dlopen of programs is supported.
16459: dlopen_self=$enable_dlopen_self
16460:
16461: # Whether dlopen of statically linked programs is supported.
16462: dlopen_self_static=$enable_dlopen_self_static
16463:
16464: # Compiler flag to prevent dynamic linking.
16465: link_static_flag=$lt_lt_prog_compiler_static
16466:
16467: # Compiler flag to turn off builtin functions.
16468: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16469:
16470: # Compiler flag to allow reflexive dlopens.
16471: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16472:
16473: # Compiler flag to generate shared objects directly from archives.
16474: whole_archive_flag_spec=$lt_whole_archive_flag_spec
16475:
16476: # Compiler flag to generate thread-safe objects.
16477: thread_safe_flag_spec=$lt_thread_safe_flag_spec
16478:
16479: # Library versioning type.
16480: version_type=$version_type
16481:
16482: # Format of library name prefix.
16483: libname_spec=$lt_libname_spec
16484:
16485: # List of archive names. First name is the real one, the rest are links.
16486: # The last name is the one that the linker finds with -lNAME.
16487: library_names_spec=$lt_library_names_spec
16488:
16489: # The coded name of the library, if different from the real name.
16490: soname_spec=$lt_soname_spec
16491:
16492: # Commands used to build and install an old-style archive.
16493: RANLIB=$lt_RANLIB
16494: old_archive_cmds=$lt_old_archive_cmds
16495: old_postinstall_cmds=$lt_old_postinstall_cmds
16496: old_postuninstall_cmds=$lt_old_postuninstall_cmds
16497:
16498: # Create an old-style archive from a shared archive.
16499: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16500:
16501: # Create a temporary old-style archive to link instead of a shared archive.
16502: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16503:
16504: # Commands used to build and install a shared archive.
16505: archive_cmds=$lt_archive_cmds
16506: archive_expsym_cmds=$lt_archive_expsym_cmds
16507: postinstall_cmds=$lt_postinstall_cmds
16508: postuninstall_cmds=$lt_postuninstall_cmds
16509:
16510: # Commands used to build a loadable module (assumed same as above if empty)
16511: module_cmds=$lt_module_cmds
16512: module_expsym_cmds=$lt_module_expsym_cmds
16513:
16514: # Commands to strip libraries.
16515: old_striplib=$lt_old_striplib
16516: striplib=$lt_striplib
16517:
16518: # Dependencies to place before the objects being linked to create a
16519: # shared library.
16520: predep_objects=$lt_predep_objects
16521:
16522: # Dependencies to place after the objects being linked to create a
16523: # shared library.
16524: postdep_objects=$lt_postdep_objects
16525:
16526: # Dependencies to place before the objects being linked to create a
16527: # shared library.
16528: predeps=$lt_predeps
16529:
16530: # Dependencies to place after the objects being linked to create a
16531: # shared library.
16532: postdeps=$lt_postdeps
16533:
16534: # The library search path used internally by the compiler when linking
16535: # a shared library.
16536: compiler_lib_search_path=$lt_compiler_lib_search_path
16537:
16538: # Method to check whether dependent libraries are shared objects.
16539: deplibs_check_method=$lt_deplibs_check_method
16540:
16541: # Command to use when deplibs_check_method == file_magic.
16542: file_magic_cmd=$lt_file_magic_cmd
16543:
16544: # Flag that allows shared libraries with undefined symbols to be built.
16545: allow_undefined_flag=$lt_allow_undefined_flag
16546:
16547: # Flag that forces no undefined symbols.
16548: no_undefined_flag=$lt_no_undefined_flag
16549:
16550: # Commands used to finish a libtool library installation in a directory.
16551: finish_cmds=$lt_finish_cmds
16552:
16553: # Same as above, but a single script fragment to be evaled but not shown.
16554: finish_eval=$lt_finish_eval
16555:
16556: # Take the output of nm and produce a listing of raw symbols and C names.
16557: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16558:
16559: # Transform the output of nm in a proper C declaration
16560: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16561:
16562: # Transform the output of nm in a C name address pair
16563: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16564:
16565: # This is the shared library runtime path variable.
16566: runpath_var=$runpath_var
16567:
16568: # This is the shared library path variable.
16569: shlibpath_var=$shlibpath_var
16570:
16571: # Is shlibpath searched before the hard-coded library search path?
16572: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16573:
16574: # How to hardcode a shared library path into an executable.
16575: hardcode_action=$hardcode_action
16576:
16577: # Whether we should hardcode library paths into libraries.
16578: hardcode_into_libs=$hardcode_into_libs
16579:
16580: # Flag to hardcode \$libdir into a binary during linking.
16581: # This must work even if \$libdir does not exist.
16582: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16583:
16584: # If ld is used when linking, flag to hardcode \$libdir into
16585: # a binary during linking. This must work even if \$libdir does
16586: # not exist.
16587: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16588:
16589: # Whether we need a single -rpath flag with a separated argument.
16590: hardcode_libdir_separator=$lt_hardcode_libdir_separator
16591:
16592: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16593: # resulting binary.
16594: hardcode_direct=$hardcode_direct
16595:
16596: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16597: # resulting binary.
16598: hardcode_minus_L=$hardcode_minus_L
16599:
16600: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16601: # the resulting binary.
16602: hardcode_shlibpath_var=$hardcode_shlibpath_var
16603:
16604: # Set to yes if building a shared library automatically hardcodes DIR into the library
16605: # and all subsequent libraries and executables linked against it.
16606: hardcode_automatic=$hardcode_automatic
16607:
16608: # Variables whose values should be saved in libtool wrapper scripts and
16609: # restored at relink time.
16610: variables_saved_for_relink="$variables_saved_for_relink"
16611:
16612: # Whether libtool must link a program against all its dependency libraries.
16613: link_all_deplibs=$link_all_deplibs
16614:
16615: # Compile-time system search path for libraries
16616: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16617:
16618: # Run-time system search path for libraries
16619: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16620:
16621: # Fix the shell variable \$srcfile for the compiler.
16622: fix_srcfile_path="$fix_srcfile_path"
16623:
16624: # Set to yes if exported symbols are required.
16625: always_export_symbols=$always_export_symbols
16626:
16627: # The commands to list exported symbols.
16628: export_symbols_cmds=$lt_export_symbols_cmds
16629:
16630: # The commands to extract the exported symbol list from a shared archive.
16631: extract_expsyms_cmds=$lt_extract_expsyms_cmds
16632:
16633: # Symbols that should not be listed in the preloaded symbols.
16634: exclude_expsyms=$lt_exclude_expsyms
16635:
16636: # Symbols that must always be exported.
16637: include_expsyms=$lt_include_expsyms
16638:
16639: # ### END LIBTOOL CONFIG
16640:
16641: __EOF__
16642:
16643:
16644: case $host_os in
16645: aix3*)
16646: cat <<\EOF >> "$cfgfile"
16647:
16648: # AIX sometimes has problems with the GCC collect2 program. For some
16649: # reason, if we set the COLLECT_NAMES environment variable, the problems
16650: # vanish in a puff of smoke.
16651: if test "X${COLLECT_NAMES+set}" != Xset; then
16652: COLLECT_NAMES=
16653: export COLLECT_NAMES
16654: fi
16655: EOF
16656: ;;
16657: esac
16658:
16659: # We use sed instead of cat because bash on DJGPP gets confused if
16660: # if finds mixed CR/LF and LF-only lines. Since sed operates in
16661: # text mode, it properly converts lines to CR/LF. This bash problem
16662: # is reportedly fixed, but why not run on old versions too?
16663: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
16664:
16665: mv -f "$cfgfile" "$ofile" || \
16666: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16667: chmod +x "$ofile"
16668:
16669: else
16670: # If there is no Makefile yet, we rely on a make rule to execute
16671: # `config.status --recheck' to rerun these tests and create the
16672: # libtool script then.
16673: test -f Makefile && make "$ltmain"
16674: fi
16675:
16676:
16677: ac_ext=c
16678: ac_cpp='$CPP $CPPFLAGS'
16679: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16680: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16681: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16682:
16683: CC="$lt_save_CC"
16684:
16685:
16686: # Check whether --with-tags or --without-tags was given.
16687: if test "${with_tags+set}" = set; then
16688: withval="$with_tags"
16689: tagnames="$withval"
16690: fi;
16691:
16692: if test -f "$ltmain" && test -n "$tagnames"; then
16693: if test ! -f "${ofile}"; then
16694: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16695: echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16696: fi
16697:
16698: if test -z "$LTCC"; then
16699: eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16700: if test -z "$LTCC"; then
16701: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16702: echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16703: else
16704: { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16705: echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16706: fi
16707: fi
16708:
16709: # Extract list of available tagged configurations in $ofile.
16710: # Note that this assumes the entire list is on one line.
16711: available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16712:
16713: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16714: for tagname in $tagnames; do
16715: IFS="$lt_save_ifs"
16716: # Check whether tagname contains only valid characters
16717: case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16718: "") ;;
16719: *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16720: echo "$as_me: error: invalid tag name: $tagname" >&2;}
16721: { (exit 1); exit 1; }; }
16722: ;;
16723: esac
16724:
16725: if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16726: then
16727: { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16728: echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16729: { (exit 1); exit 1; }; }
16730: fi
16731:
16732: # Update the list of available tags.
16733: if test -n "$tagname"; then
16734: echo appending configuration tag \"$tagname\" to $ofile
16735:
16736: case $tagname in
16737: CXX)
16738: if test -n "$CXX" && test "X$CXX" != "Xno"; then
16739: ac_ext=cc
16740: ac_cpp='$CXXCPP $CPPFLAGS'
16741: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16742: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16743: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16744:
16745:
16746:
16747:
16748: archive_cmds_need_lc_CXX=no
16749: allow_undefined_flag_CXX=
16750: always_export_symbols_CXX=no
16751: archive_expsym_cmds_CXX=
16752: export_dynamic_flag_spec_CXX=
16753: hardcode_direct_CXX=no
16754: hardcode_libdir_flag_spec_CXX=
16755: hardcode_libdir_flag_spec_ld_CXX=
16756: hardcode_libdir_separator_CXX=
16757: hardcode_minus_L_CXX=no
16758: hardcode_automatic_CXX=no
16759: module_cmds_CXX=
16760: module_expsym_cmds_CXX=
16761: link_all_deplibs_CXX=unknown
16762: old_archive_cmds_CXX=$old_archive_cmds
16763: no_undefined_flag_CXX=
16764: whole_archive_flag_spec_CXX=
16765: enable_shared_with_static_runtimes_CXX=no
16766:
16767: # Dependencies to place before and after the object being linked:
16768: predep_objects_CXX=
16769: postdep_objects_CXX=
16770: predeps_CXX=
16771: postdeps_CXX=
16772: compiler_lib_search_path_CXX=
16773:
16774: # Source file extension for C++ test sources.
16775: ac_ext=cc
16776:
16777: # Object file extension for compiled C++ test sources.
16778: objext=o
16779: objext_CXX=$objext
16780:
16781: # Code to be used in simple compile tests
16782: lt_simple_compile_test_code="int some_variable = 0;\n"
16783:
16784: # Code to be used in simple link tests
16785: lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
16786:
16787: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16788:
16789: # If no C compiler was specified, use CC.
16790: LTCC=${LTCC-"$CC"}
16791:
16792: # Allow CC to be a program name with arguments.
16793: compiler=$CC
16794:
16795:
16796: # Allow CC to be a program name with arguments.
16797: lt_save_CC=$CC
16798: lt_save_LD=$LD
16799: lt_save_GCC=$GCC
16800: GCC=$GXX
16801: lt_save_with_gnu_ld=$with_gnu_ld
16802: lt_save_path_LD=$lt_cv_path_LD
16803: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16804: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16805: else
16806: unset lt_cv_prog_gnu_ld
16807: fi
16808: if test -n "${lt_cv_path_LDCXX+set}"; then
16809: lt_cv_path_LD=$lt_cv_path_LDCXX
16810: else
16811: unset lt_cv_path_LD
16812: fi
16813: test -z "${LDCXX+set}" || LD=$LDCXX
16814: CC=${CXX-"c++"}
16815: compiler=$CC
16816: compiler_CXX=$CC
16817: cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
16818:
16819: # We don't want -fno-exception wen compiling C++ code, so set the
16820: # no_builtin_flag separately
16821: if test "$GXX" = yes; then
16822: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16823: else
16824: lt_prog_compiler_no_builtin_flag_CXX=
16825: fi
16826:
16827: if test "$GXX" = yes; then
16828: # Set up default GNU C++ configuration
16829:
16830:
16831: # Check whether --with-gnu-ld or --without-gnu-ld was given.
16832: if test "${with_gnu_ld+set}" = set; then
16833: withval="$with_gnu_ld"
16834: test "$withval" = no || with_gnu_ld=yes
16835: else
16836: with_gnu_ld=no
16837: fi;
16838: ac_prog=ld
16839: if test "$GCC" = yes; then
16840: # Check if gcc -print-prog-name=ld gives a path.
16841: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
16842: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
16843: case $host in
16844: *-*-mingw*)
16845: # gcc leaves a trailing carriage return which upsets mingw
16846: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16847: *)
16848: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16849: esac
16850: case $ac_prog in
16851: # Accept absolute paths.
16852: [\\/]* | ?:[\\/]*)
16853: re_direlt='/[^/][^/]*/\.\./'
16854: # Canonicalize the path of ld
16855: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
16856: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16857: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
16858: done
16859: test -z "$LD" && LD="$ac_prog"
16860: ;;
16861: "")
16862: # If it fails, then pretend we aren't using GCC.
16863: ac_prog=ld
16864: ;;
16865: *)
16866: # If it is relative, then search for the first ld in PATH.
16867: with_gnu_ld=unknown
16868: ;;
16869: esac
16870: elif test "$with_gnu_ld" = yes; then
16871: echo "$as_me:$LINENO: checking for GNU ld" >&5
16872: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16873: else
16874: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16875: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16876: fi
16877: if test "${lt_cv_path_LD+set}" = set; then
16878: echo $ECHO_N "(cached) $ECHO_C" >&6
16879: else
16880: if test -z "$LD"; then
16881: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16882: for ac_dir in $PATH; do
16883: IFS="$lt_save_ifs"
16884: test -z "$ac_dir" && ac_dir=.
16885: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16886: lt_cv_path_LD="$ac_dir/$ac_prog"
16887: # Check to see if the program is GNU ld. I'd rather use --version,
16888: # but apparently some GNU ld's only accept -v.
16889: # Break only if it was the GNU/non-GNU ld that we prefer.
16890: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16891: *GNU* | *'with BFD'*)
16892: test "$with_gnu_ld" != no && break
16893: ;;
16894: *)
16895: test "$with_gnu_ld" != yes && break
16896: ;;
16897: esac
16898: fi
16899: done
16900: IFS="$lt_save_ifs"
16901: else
16902: lt_cv_path_LD="$LD" # Let the user override the test with a path.
16903: fi
16904: fi
16905:
16906: LD="$lt_cv_path_LD"
16907: if test -n "$LD"; then
16908: echo "$as_me:$LINENO: result: $LD" >&5
16909: echo "${ECHO_T}$LD" >&6
16910: else
16911: echo "$as_me:$LINENO: result: no" >&5
16912: echo "${ECHO_T}no" >&6
16913: fi
16914: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16915: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16916: { (exit 1); exit 1; }; }
16917: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16918: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16919: if test "${lt_cv_prog_gnu_ld+set}" = set; then
16920: echo $ECHO_N "(cached) $ECHO_C" >&6
16921: else
16922: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16923: case `"$LD" -v 2>&1 </dev/null` in
16924: *GNU* | *'with BFD'*)
16925: lt_cv_prog_gnu_ld=yes
16926: ;;
16927: *)
16928: lt_cv_prog_gnu_ld=no
16929: ;;
16930: esac
16931: fi
16932: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
16933: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
16934: with_gnu_ld=$lt_cv_prog_gnu_ld
16935:
16936:
16937:
16938: # Check if GNU C++ uses GNU ld as the underlying linker, since the
16939: # archiving commands below assume that GNU ld is being used.
16940: if test "$with_gnu_ld" = yes; then
16941: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16942: archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16943:
16944: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16945: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16946:
16947: # If archive_cmds runs LD, not CC, wlarc should be empty
16948: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16949: # investigate it a little bit more. (MM)
16950: wlarc='${wl}'
16951:
16952: # ancient GNU ld didn't support --whole-archive et. al.
16953: if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
16954: grep 'no-whole-archive' > /dev/null; then
16955: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16956: else
16957: whole_archive_flag_spec_CXX=
16958: fi
16959: else
16960: with_gnu_ld=no
16961: wlarc=
16962:
16963: # A generic and very simple default shared library creation
16964: # command for GNU C++ for the case where it uses the native
16965: # linker, instead of GNU ld. If possible, this setting should
16966: # overridden to take advantage of the native linker features on
16967: # the platform it is being used on.
16968: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16969: fi
16970:
16971: # Commands to make compiler produce verbose output that lists
16972: # what "hidden" libraries, object files and flags are used when
16973: # linking a shared library.
16974: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16975:
16976: else
16977: GXX=no
16978: with_gnu_ld=no
16979: wlarc=
16980: fi
16981:
16982: # PORTME: fill in a description of your system's C++ link characteristics
16983: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16984: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16985: ld_shlibs_CXX=yes
16986: case $host_os in
16987: aix3*)
16988: # FIXME: insert proper C++ library support
16989: ld_shlibs_CXX=no
16990: ;;
16991: aix4* | aix5*)
16992: if test "$host_cpu" = ia64; then
16993: # On IA64, the linker does run time linking by default, so we don't
16994: # have to do anything special.
16995: aix_use_runtimelinking=no
16996: exp_sym_flag='-Bexport'
16997: no_entry_flag=""
16998: else
16999: aix_use_runtimelinking=no
17000:
17001: # Test if we are trying to use run time linking or normal
17002: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17003: # need to do runtime linking.
17004: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17005: for ld_flag in $LDFLAGS; do
17006: case $ld_flag in
17007: *-brtl*)
17008: aix_use_runtimelinking=yes
17009: break
17010: ;;
17011: esac
17012: done
17013: esac
17014:
17015: exp_sym_flag='-bexport'
17016: no_entry_flag='-bnoentry'
17017: fi
17018:
17019: # When large executables or shared objects are built, AIX ld can
17020: # have problems creating the table of contents. If linking a library
17021: # or program results in "error TOC overflow" add -mminimal-toc to
17022: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17023: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17024:
17025: archive_cmds_CXX=''
17026: hardcode_direct_CXX=yes
17027: hardcode_libdir_separator_CXX=':'
17028: link_all_deplibs_CXX=yes
17029:
17030: if test "$GXX" = yes; then
17031: case $host_os in aix4.012|aix4.012.*)
17032: # We only want to do this on AIX 4.2 and lower, the check
17033: # below for broken collect2 doesn't work under 4.3+
17034: collect2name=`${CC} -print-prog-name=collect2`
17035: if test -f "$collect2name" && \
17036: strings "$collect2name" | grep resolve_lib_name >/dev/null
17037: then
17038: # We have reworked collect2
17039: hardcode_direct_CXX=yes
17040: else
17041: # We have old collect2
17042: hardcode_direct_CXX=unsupported
17043: # It fails to find uninstalled libraries when the uninstalled
17044: # path is not listed in the libpath. Setting hardcode_minus_L
17045: # to unsupported forces relinking
17046: hardcode_minus_L_CXX=yes
17047: hardcode_libdir_flag_spec_CXX='-L$libdir'
17048: hardcode_libdir_separator_CXX=
17049: fi
17050: esac
17051: shared_flag='-shared'
17052: else
17053: # not using gcc
17054: if test "$host_cpu" = ia64; then
17055: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17056: # chokes on -Wl,-G. The following line is correct:
17057: shared_flag='-G'
17058: else
17059: if test "$aix_use_runtimelinking" = yes; then
17060: shared_flag='${wl}-G'
17061: else
17062: shared_flag='${wl}-bM:SRE'
17063: fi
17064: fi
17065: fi
17066:
17067: # It seems that -bexpall does not export symbols beginning with
17068: # underscore (_), so it is better to generate a list of symbols to export.
17069: always_export_symbols_CXX=yes
17070: if test "$aix_use_runtimelinking" = yes; then
17071: # Warning - without using the other runtime loading flags (-brtl),
17072: # -berok will link without error, but may produce a broken library.
17073: allow_undefined_flag_CXX='-berok'
17074: # Determine the default libpath from the value encoded in an empty executable.
17075: cat >conftest.$ac_ext <<_ACEOF
17076: #line $LINENO "configure"
17077: /* confdefs.h. */
17078: _ACEOF
17079: cat confdefs.h >>conftest.$ac_ext
17080: cat >>conftest.$ac_ext <<_ACEOF
17081: /* end confdefs.h. */
17082:
17083: int
17084: main ()
17085: {
17086:
17087: ;
17088: return 0;
17089: }
17090: _ACEOF
17091: rm -f conftest.$ac_objext conftest$ac_exeext
17092: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17093: (eval $ac_link) 2>&5
17094: ac_status=$?
17095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096: (exit $ac_status); } &&
17097: { ac_try='test -s conftest$ac_exeext'
17098: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099: (eval $ac_try) 2>&5
17100: ac_status=$?
17101: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102: (exit $ac_status); }; }; then
17103:
17104: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17105: }'`
17106: # Check for a 64-bit object if we didn't find anything.
17107: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17108: }'`; fi
17109: else
17110: echo "$as_me: failed program was:" >&5
17111: sed 's/^/| /' conftest.$ac_ext >&5
17112:
17113: fi
17114: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17115: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17116:
17117: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17118:
17119: archive_expsym_cmds_CXX="\$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"
17120: else
17121: if test "$host_cpu" = ia64; then
17122: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17123: allow_undefined_flag_CXX="-z nodefs"
17124: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17125: else
17126: # Determine the default libpath from the value encoded in an empty executable.
17127: cat >conftest.$ac_ext <<_ACEOF
17128: #line $LINENO "configure"
17129: /* confdefs.h. */
17130: _ACEOF
17131: cat confdefs.h >>conftest.$ac_ext
17132: cat >>conftest.$ac_ext <<_ACEOF
17133: /* end confdefs.h. */
17134:
17135: int
17136: main ()
17137: {
17138:
17139: ;
17140: return 0;
17141: }
17142: _ACEOF
17143: rm -f conftest.$ac_objext conftest$ac_exeext
17144: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17145: (eval $ac_link) 2>&5
17146: ac_status=$?
17147: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148: (exit $ac_status); } &&
17149: { ac_try='test -s conftest$ac_exeext'
17150: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17151: (eval $ac_try) 2>&5
17152: ac_status=$?
17153: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154: (exit $ac_status); }; }; then
17155:
17156: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17157: }'`
17158: # Check for a 64-bit object if we didn't find anything.
17159: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17160: }'`; fi
17161: else
17162: echo "$as_me: failed program was:" >&5
17163: sed 's/^/| /' conftest.$ac_ext >&5
17164:
17165: fi
17166: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17167: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17168:
17169: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17170: # Warning - without using the other run time loading flags,
17171: # -berok will link without error, but may produce a broken library.
17172: no_undefined_flag_CXX=' ${wl}-bernotok'
17173: allow_undefined_flag_CXX=' ${wl}-berok'
17174: # -bexpall does not export symbols beginning with underscore (_)
17175: always_export_symbols_CXX=yes
17176: # Exported symbols can be pulled into shared objects from archives
17177: whole_archive_flag_spec_CXX=' '
17178: archive_cmds_need_lc_CXX=yes
17179: # This is similar to how AIX traditionally builds it's shared libraries.
17180: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17181: fi
17182: fi
17183: ;;
17184: chorus*)
17185: case $cc_basename in
17186: *)
17187: # FIXME: insert proper C++ library support
17188: ld_shlibs_CXX=no
17189: ;;
17190: esac
17191: ;;
17192:
17193: cygwin* | mingw* | pw32*)
17194: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17195: # as there is no search path for DLLs.
17196: hardcode_libdir_flag_spec_CXX='-L$libdir'
17197: allow_undefined_flag_CXX=unsupported
17198: always_export_symbols_CXX=no
17199: enable_shared_with_static_runtimes_CXX=yes
17200:
17201: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17202: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17203: # If the export-symbols file already is a .def file (1st line
17204: # is EXPORTS), use it as is; otherwise, prepend...
17205: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17206: cp $export_symbols $output_objdir/$soname.def;
17207: else
17208: echo EXPORTS > $output_objdir/$soname.def;
17209: cat $export_symbols >> $output_objdir/$soname.def;
17210: fi~
17211: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17212: else
17213: ld_shlibs_CXX=no
17214: fi
17215: ;;
17216:
17217: darwin* | rhapsody*)
17218: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
17219: archive_cmds_need_lc_CXX=no
17220: case "$host_os" in
17221: rhapsody* | darwin1.[012])
17222: allow_undefined_flag_CXX='-undefined suppress'
17223: ;;
17224: *) # Darwin 1.3 on
17225: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
17226: ;;
17227: esac
17228: lt_int_apple_cc_single_mod=no
17229: output_verbose_link_cmd='echo'
17230: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17231: lt_int_apple_cc_single_mod=yes
17232: fi
17233: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17234: archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17235: else
17236: archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17237: fi
17238: module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
17239:
17240: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17241: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17242: archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17243: else
17244: archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17245: fi
17246: module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17247: hardcode_direct_CXX=no
17248: hardcode_automatic_CXX=yes
17249: hardcode_shlibpath_var_CXX=unsupported
17250: whole_archive_flag_spec_CXX='-all_load $convenience'
17251: link_all_deplibs_CXX=yes
17252: fi
17253: ;;
17254:
17255: dgux*)
17256: case $cc_basename in
17257: ec++)
17258: # FIXME: insert proper C++ library support
17259: ld_shlibs_CXX=no
17260: ;;
17261: ghcx)
17262: # Green Hills C++ Compiler
17263: # FIXME: insert proper C++ library support
17264: ld_shlibs_CXX=no
17265: ;;
17266: *)
17267: # FIXME: insert proper C++ library support
17268: ld_shlibs_CXX=no
17269: ;;
17270: esac
17271: ;;
17272: freebsd12*)
17273: # C++ shared libraries reported to be fairly broken before switch to ELF
17274: ld_shlibs_CXX=no
17275: ;;
17276: freebsd-elf*)
17277: archive_cmds_need_lc_CXX=no
17278: ;;
17279: freebsd*)
17280: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17281: # conventions
17282: ld_shlibs_CXX=yes
17283: ;;
17284: gnu*)
17285: ;;
17286: hpux9*)
17287: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17288: hardcode_libdir_separator_CXX=:
17289: export_dynamic_flag_spec_CXX='${wl}-E'
17290: hardcode_direct_CXX=yes
17291: hardcode_minus_L_CXX=yes # Not in the search PATH,
17292: # but as the default
17293: # location of the library.
17294:
17295: case $cc_basename in
17296: CC)
17297: # FIXME: insert proper C++ library support
17298: ld_shlibs_CXX=no
17299: ;;
17300: aCC)
17301: archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17302: # Commands to make compiler produce verbose output that lists
17303: # what "hidden" libraries, object files and flags are used when
17304: # linking a shared library.
17305: #
17306: # There doesn't appear to be a way to prevent this compiler from
17307: # explicitly linking system object files so we need to strip them
17308: # from the output so that they don't get included in the library
17309: # dependencies.
17310: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
17311: ;;
17312: *)
17313: if test "$GXX" = yes; then
17314: archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17315: else
17316: # FIXME: insert proper C++ library support
17317: ld_shlibs_CXX=no
17318: fi
17319: ;;
17320: esac
17321: ;;
17322: hpux10*|hpux11*)
17323: if test $with_gnu_ld = no; then
17324: case "$host_cpu" in
17325: hppa*64*)
17326: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17327: hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17328: hardcode_libdir_separator_CXX=:
17329: ;;
17330: ia64*)
17331: hardcode_libdir_flag_spec_CXX='-L$libdir'
17332: ;;
17333: *)
17334: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17335: hardcode_libdir_separator_CXX=:
17336: export_dynamic_flag_spec_CXX='${wl}-E'
17337: ;;
17338: esac
17339: fi
17340: case "$host_cpu" in
17341: hppa*64*)
17342: hardcode_direct_CXX=no
17343: hardcode_shlibpath_var_CXX=no
17344: ;;
17345: ia64*)
17346: hardcode_direct_CXX=no
17347: hardcode_shlibpath_var_CXX=no
17348: hardcode_minus_L_CXX=yes # Not in the search PATH,
17349: # but as the default
17350: # location of the library.
17351: ;;
17352: *)
17353: hardcode_direct_CXX=yes
17354: hardcode_minus_L_CXX=yes # Not in the search PATH,
17355: # but as the default
17356: # location of the library.
17357: ;;
17358: esac
17359:
17360: case $cc_basename in
17361: CC)
17362: # FIXME: insert proper C++ library support
17363: ld_shlibs_CXX=no
17364: ;;
17365: aCC)
17366: case "$host_cpu" in
17367: hppa*64*|ia64*)
17368: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
17369: ;;
17370: *)
17371: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17372: ;;
17373: esac
17374: # Commands to make compiler produce verbose output that lists
17375: # what "hidden" libraries, object files and flags are used when
17376: # linking a shared library.
17377: #
17378: # There doesn't appear to be a way to prevent this compiler from
17379: # explicitly linking system object files so we need to strip them
17380: # from the output so that they don't get included in the library
17381: # dependencies.
17382: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
17383: ;;
17384: *)
17385: if test "$GXX" = yes; then
17386: if test $with_gnu_ld = no; then
17387: case "$host_cpu" in
17388: ia64*|hppa*64*)
17389: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
17390: ;;
17391: *)
17392: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17393: ;;
17394: esac
17395: fi
17396: else
17397: # FIXME: insert proper C++ library support
17398: ld_shlibs_CXX=no
17399: fi
17400: ;;
17401: esac
17402: ;;
17403: irix5* | irix6*)
17404: case $cc_basename in
17405: CC)
17406: # SGI C++
17407: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
17408:
17409: # Archives containing C++ object files must be created using
17410: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17411: # necessary to make sure instantiated templates are included
17412: # in the archive.
17413: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17414: ;;
17415: *)
17416: if test "$GXX" = yes; then
17417: if test "$with_gnu_ld" = no; then
17418: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
17419: else
17420: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
17421: fi
17422: fi
17423: link_all_deplibs_CXX=yes
17424: ;;
17425: esac
17426: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17427: hardcode_libdir_separator_CXX=:
17428: ;;
17429: linux*)
17430: case $cc_basename in
17431: KCC)
17432: # Kuck and Associates, Inc. (KAI) C++ Compiler
17433:
17434: # KCC will only create a shared library if the output file
17435: # ends with ".so" (or ".sl" for HP-UX), so rename the library
17436: # to its proper name (with version) after linking.
17437: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17438: archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
17439: # Commands to make compiler produce verbose output that lists
17440: # what "hidden" libraries, object files and flags are used when
17441: # linking a shared library.
17442: #
17443: # There doesn't appear to be a way to prevent this compiler from
17444: # explicitly linking system object files so we need to strip them
17445: # from the output so that they don't get included in the library
17446: # dependencies.
17447: output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
17448:
17449: hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17450: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17451:
17452: # Archives containing C++ object files must be created using
17453: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17454: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17455: ;;
17456: icpc)
17457: # Intel C++
17458: with_gnu_ld=yes
17459: archive_cmds_need_lc_CXX=no
17460: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17461: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17462: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17463: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17464: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17465: ;;
17466: cxx)
17467: # Compaq C++
17468: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17469: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
17470:
17471: runpath_var=LD_RUN_PATH
17472: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17473: hardcode_libdir_separator_CXX=:
17474:
17475: # Commands to make compiler produce verbose output that lists
17476: # what "hidden" libraries, object files and flags are used when
17477: # linking a shared library.
17478: #
17479: # There doesn't appear to be a way to prevent this compiler from
17480: # explicitly linking system object files so we need to strip them
17481: # from the output so that they don't get included in the library
17482: # dependencies.
17483: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
17484: ;;
17485: esac
17486: ;;
17487: lynxos*)
17488: # FIXME: insert proper C++ library support
17489: ld_shlibs_CXX=no
17490: ;;
17491: m88k*)
17492: # FIXME: insert proper C++ library support
17493: ld_shlibs_CXX=no
17494: ;;
17495: mvs*)
17496: case $cc_basename in
17497: cxx)
17498: # FIXME: insert proper C++ library support
17499: ld_shlibs_CXX=no
17500: ;;
17501: *)
17502: # FIXME: insert proper C++ library support
17503: ld_shlibs_CXX=no
17504: ;;
17505: esac
17506: ;;
17507: netbsd*)
17508: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17509: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17510: wlarc=
17511: hardcode_libdir_flag_spec_CXX='-R$libdir'
17512: hardcode_direct_CXX=yes
17513: hardcode_shlibpath_var_CXX=no
17514: fi
17515: # Workaround some broken pre-1.5 toolchains
17516: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17517: ;;
17518: osf3*)
17519: case $cc_basename in
17520: KCC)
17521: # Kuck and Associates, Inc. (KAI) C++ Compiler
17522:
17523: # KCC will only create a shared library if the output file
17524: # ends with ".so" (or ".sl" for HP-UX), so rename the library
17525: # to its proper name (with version) after linking.
17526: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17527:
17528: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17529: hardcode_libdir_separator_CXX=:
17530:
17531: # Archives containing C++ object files must be created using
17532: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17533: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17534:
17535: ;;
17536: RCC)
17537: # Rational C++ 2.4.1
17538: # FIXME: insert proper C++ library support
17539: ld_shlibs_CXX=no
17540: ;;
17541: cxx)
17542: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17543: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
17544:
17545: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17546: hardcode_libdir_separator_CXX=:
17547:
17548: # Commands to make compiler produce verbose output that lists
17549: # what "hidden" libraries, object files and flags are used when
17550: # linking a shared library.
17551: #
17552: # There doesn't appear to be a way to prevent this compiler from
17553: # explicitly linking system object files so we need to strip them
17554: # from the output so that they don't get included in the library
17555: # dependencies.
17556: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
17557: ;;
17558: *)
17559: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17560: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17561: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
17562:
17563: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17564: hardcode_libdir_separator_CXX=:
17565:
17566: # Commands to make compiler produce verbose output that lists
17567: # what "hidden" libraries, object files and flags are used when
17568: # linking a shared library.
17569: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17570:
17571: else
17572: # FIXME: insert proper C++ library support
17573: ld_shlibs_CXX=no
17574: fi
17575: ;;
17576: esac
17577: ;;
17578: osf4* | osf5*)
17579: case $cc_basename in
17580: KCC)
17581: # Kuck and Associates, Inc. (KAI) C++ Compiler
17582:
17583: # KCC will only create a shared library if the output file
17584: # ends with ".so" (or ".sl" for HP-UX), so rename the library
17585: # to its proper name (with version) after linking.
17586: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17587:
17588: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17589: hardcode_libdir_separator_CXX=:
17590:
17591: # Archives containing C++ object files must be created using
17592: # the KAI C++ compiler.
17593: old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17594: ;;
17595: RCC)
17596: # Rational C++ 2.4.1
17597: # FIXME: insert proper C++ library support
17598: ld_shlibs_CXX=no
17599: ;;
17600: cxx)
17601: allow_undefined_flag_CXX=' -expect_unresolved \*'
17602: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
17603: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17604: echo "-hidden">> $lib.exp~
17605: $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
17606: $rm $lib.exp'
17607:
17608: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17609: hardcode_libdir_separator_CXX=:
17610:
17611: # Commands to make compiler produce verbose output that lists
17612: # what "hidden" libraries, object files and flags are used when
17613: # linking a shared library.
17614: #
17615: # There doesn't appear to be a way to prevent this compiler from
17616: # explicitly linking system object files so we need to strip them
17617: # from the output so that they don't get included in the library
17618: # dependencies.
17619: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
17620: ;;
17621: *)
17622: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17623: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17624: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
17625:
17626: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17627: hardcode_libdir_separator_CXX=:
17628:
17629: # Commands to make compiler produce verbose output that lists
17630: # what "hidden" libraries, object files and flags are used when
17631: # linking a shared library.
17632: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17633:
17634: else
17635: # FIXME: insert proper C++ library support
17636: ld_shlibs_CXX=no
17637: fi
17638: ;;
17639: esac
17640: ;;
17641: psos*)
17642: # FIXME: insert proper C++ library support
17643: ld_shlibs_CXX=no
17644: ;;
17645: sco*)
17646: archive_cmds_need_lc_CXX=no
17647: case $cc_basename in
17648: CC)
17649: # FIXME: insert proper C++ library support
17650: ld_shlibs_CXX=no
17651: ;;
17652: *)
17653: # FIXME: insert proper C++ library support
17654: ld_shlibs_CXX=no
17655: ;;
17656: esac
17657: ;;
17658: sunos4*)
17659: case $cc_basename in
17660: CC)
17661: # Sun C++ 4.x
17662: # FIXME: insert proper C++ library support
17663: ld_shlibs_CXX=no
17664: ;;
17665: lcc)
17666: # Lucid
17667: # FIXME: insert proper C++ library support
17668: ld_shlibs_CXX=no
17669: ;;
17670: *)
17671: # FIXME: insert proper C++ library support
17672: ld_shlibs_CXX=no
17673: ;;
17674: esac
17675: ;;
17676: solaris*)
17677: case $cc_basename in
17678: CC)
17679: # Sun C++ 4.2, 5.x and Centerline C++
17680: no_undefined_flag_CXX=' -zdefs'
17681: archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17682: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17683: $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17684:
17685: hardcode_libdir_flag_spec_CXX='-R$libdir'
17686: hardcode_shlibpath_var_CXX=no
17687: case $host_os in
17688: solaris2.0-5 | solaris2.0-5.*) ;;
17689: *)
17690: # The C++ compiler is used as linker so we must use $wl
17691: # flag to pass the commands to the underlying system
17692: # linker.
17693: # Supported since Solaris 2.6 (maybe 2.5.1?)
17694: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17695: ;;
17696: esac
17697: link_all_deplibs_CXX=yes
17698:
17699: # Commands to make compiler produce verbose output that lists
17700: # what "hidden" libraries, object files and flags are used when
17701: # linking a shared library.
17702: #
17703: # There doesn't appear to be a way to prevent this compiler from
17704: # explicitly linking system object files so we need to strip them
17705: # from the output so that they don't get included in the library
17706: # dependencies.
17707: output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
17708:
17709: # Archives containing C++ object files must be created using
17710: # "CC -xar", where "CC" is the Sun C++ compiler. This is
17711: # necessary to make sure instantiated templates are included
17712: # in the archive.
17713: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17714: ;;
17715: gcx)
17716: # Green Hills C++ Compiler
17717: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17718:
17719: # The C++ compiler must be used to create the archive.
17720: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17721: ;;
17722: *)
17723: # GNU C++ compiler with Solaris linker
17724: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17725: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17726: if $CC --version | grep -v '^2\.7' > /dev/null; then
17727: archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17728: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17729: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17730:
17731: # Commands to make compiler produce verbose output that lists
17732: # what "hidden" libraries, object files and flags are used when
17733: # linking a shared library.
17734: output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17735: else
17736: # g++ 2.7 appears to require `-G' NOT `-shared' on this
17737: # platform.
17738: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17739: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17740: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17741:
17742: # Commands to make compiler produce verbose output that lists
17743: # what "hidden" libraries, object files and flags are used when
17744: # linking a shared library.
17745: output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17746: fi
17747:
17748: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17749: fi
17750: ;;
17751: esac
17752: ;;
17753: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17754: archive_cmds_need_lc_CXX=no
17755: ;;
17756: tandem*)
17757: case $cc_basename in
17758: NCC)
17759: # NonStop-UX NCC 3.20
17760: # FIXME: insert proper C++ library support
17761: ld_shlibs_CXX=no
17762: ;;
17763: *)
17764: # FIXME: insert proper C++ library support
17765: ld_shlibs_CXX=no
17766: ;;
17767: esac
17768: ;;
17769: vxworks*)
17770: # FIXME: insert proper C++ library support
17771: ld_shlibs_CXX=no
17772: ;;
17773: *)
17774: # FIXME: insert proper C++ library support
17775: ld_shlibs_CXX=no
17776: ;;
17777: esac
17778: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17779: echo "${ECHO_T}$ld_shlibs_CXX" >&6
17780: test "$ld_shlibs_CXX" = no && can_build_shared=no
17781:
17782: GCC_CXX="$GXX"
17783: LD_CXX="$LD"
17784:
17785:
17786: cat > conftest.$ac_ext <<EOF
17787: class Foo
17788: {
17789: public:
17790: Foo (void) { a = 0; }
17791: private:
17792: int a;
17793: };
17794: EOF
17795:
17796: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17797: (eval $ac_compile) 2>&5
17798: ac_status=$?
17799: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800: (exit $ac_status); }; then
17801: # Parse the compiler output and extract the necessary
17802: # objects, libraries and library flags.
17803:
17804: # Sentinel used to keep track of whether or not we are before
17805: # the conftest object file.
17806: pre_test_object_deps_done=no
17807:
17808: # The `*' in the case matches for architectures that use `case' in
17809: # $output_verbose_cmd can trigger glob expansion during the loop
17810: # eval without this substitution.
17811: output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
17812:
17813: for p in `eval $output_verbose_link_cmd`; do
17814: case $p in
17815:
17816: -L* | -R* | -l*)
17817: # Some compilers place space between "-{L,R}" and the path.
17818: # Remove the space.
17819: if test $p = "-L" \
17820: || test $p = "-R"; then
17821: prev=$p
17822: continue
17823: else
17824: prev=
17825: fi
17826:
17827: if test "$pre_test_object_deps_done" = no; then
17828: case $p in
17829: -L* | -R*)
17830: # Internal compiler library paths should come after those
17831: # provided the user. The postdeps already come after the
17832: # user supplied libs so there is no need to process them.
17833: if test -z "$compiler_lib_search_path_CXX"; then
17834: compiler_lib_search_path_CXX="${prev}${p}"
17835: else
17836: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17837: fi
17838: ;;
17839: # The "-l" case would never come before the object being
17840: # linked, so don't bother handling this case.
17841: esac
17842: else
17843: if test -z "$postdeps_CXX"; then
17844: postdeps_CXX="${prev}${p}"
17845: else
17846: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17847: fi
17848: fi
17849: ;;
17850:
17851: *.$objext)
17852: # This assumes that the test object file only shows up
17853: # once in the compiler output.
17854: if test "$p" = "conftest.$objext"; then
17855: pre_test_object_deps_done=yes
17856: continue
17857: fi
17858:
17859: if test "$pre_test_object_deps_done" = no; then
17860: if test -z "$predep_objects_CXX"; then
17861: predep_objects_CXX="$p"
17862: else
17863: predep_objects_CXX="$predep_objects_CXX $p"
17864: fi
17865: else
17866: if test -z "$postdep_objects_CXX"; then
17867: postdep_objects_CXX="$p"
17868: else
17869: postdep_objects_CXX="$postdep_objects_CXX $p"
17870: fi
17871: fi
17872: ;;
17873:
17874: *) ;; # Ignore the rest.
17875:
17876: esac
17877: done
17878:
17879: # Clean up.
17880: rm -f a.out a.exe
17881: else
17882: echo "libtool.m4: error: problem compiling CXX test program"
17883: fi
17884:
17885: $rm -f confest.$objext
17886:
17887: case " $postdeps_CXX " in
17888: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17889: esac
17890:
17891: lt_prog_compiler_wl_CXX=
17892: lt_prog_compiler_pic_CXX=
17893: lt_prog_compiler_static_CXX=
17894:
17895: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17896: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17897:
17898: # C++ specific cases for pic, static, wl, etc.
17899: if test "$GXX" = yes; then
17900: lt_prog_compiler_wl_CXX='-Wl,'
17901: lt_prog_compiler_static_CXX='-static'
17902:
17903: case $host_os in
17904: aix*)
17905: # All AIX code is PIC.
17906: if test "$host_cpu" = ia64; then
17907: # AIX 5 now supports IA64 processor
17908: lt_prog_compiler_static_CXX='-Bstatic'
17909: fi
17910: ;;
17911: amigaos*)
17912: # FIXME: we need at least 68020 code to build shared libraries, but
17913: # adding the `-m68020' flag to GCC prevents building anything better,
17914: # like `-m68040'.
17915: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17916: ;;
17917: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17918: # PIC is the default for these OSes.
17919: ;;
17920: mingw* | os2* | pw32*)
17921: # This hack is so that the source file can tell whether it is being
17922: # built for inclusion in a dll (and should export symbols for example).
17923: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17924: ;;
17925: darwin* | rhapsody*)
17926: # PIC is the default on this platform
17927: # Common symbols not allowed in MH_DYLIB files
17928: lt_prog_compiler_pic_CXX='-fno-common'
17929: ;;
17930: *djgpp*)
17931: # DJGPP does not support shared libraries at all
17932: lt_prog_compiler_pic_CXX=
17933: ;;
17934: sysv4*MP*)
17935: if test -d /usr/nec; then
17936: lt_prog_compiler_pic_CXX=-Kconform_pic
17937: fi
17938: ;;
17939: hpux*)
17940: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17941: # not for PA HP-UX.
17942: case "$host_cpu" in
17943: hppa*64*|ia64*)
17944: ;;
17945: *)
17946: lt_prog_compiler_pic_CXX='-fPIC'
17947: ;;
17948: esac
17949: ;;
17950: *)
17951: lt_prog_compiler_pic_CXX='-fPIC'
17952: ;;
17953: esac
17954: else
17955: case $host_os in
17956: aix4* | aix5*)
17957: # All AIX code is PIC.
17958: if test "$host_cpu" = ia64; then
17959: # AIX 5 now supports IA64 processor
17960: lt_prog_compiler_static_CXX='-Bstatic'
17961: else
17962: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17963: fi
17964: ;;
17965: chorus*)
17966: case $cc_basename in
17967: cxch68)
17968: # Green Hills C++ Compiler
17969: # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17970: ;;
17971: esac
17972: ;;
17973: dgux*)
17974: case $cc_basename in
17975: ec++)
17976: lt_prog_compiler_pic_CXX='-KPIC'
17977: ;;
17978: ghcx)
17979: # Green Hills C++ Compiler
17980: lt_prog_compiler_pic_CXX='-pic'
17981: ;;
17982: *)
17983: ;;
17984: esac
17985: ;;
17986: freebsd*)
17987: # FreeBSD uses GNU C++
17988: ;;
17989: hpux9* | hpux10* | hpux11*)
17990: case $cc_basename in
17991: CC)
17992: lt_prog_compiler_wl_CXX='-Wl,'
17993: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17994: if test "$host_cpu" != ia64; then
17995: lt_prog_compiler_pic_CXX='+Z'
17996: fi
17997: ;;
17998: aCC)
17999: lt_prog_compiler_wl_CXX='-Wl,'
18000: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
18001: case "$host_cpu" in
18002: hppa*64*|ia64*)
18003: # +Z the default
18004: ;;
18005: *)
18006: lt_prog_compiler_pic_CXX='+Z'
18007: ;;
18008: esac
18009: ;;
18010: *)
18011: ;;
18012: esac
18013: ;;
18014: irix5* | irix6* | nonstopux*)
18015: case $cc_basename in
18016: CC)
18017: lt_prog_compiler_wl_CXX='-Wl,'
18018: lt_prog_compiler_static_CXX='-non_shared'
18019: # CC pic flag -KPIC is the default.
18020: ;;
18021: *)
18022: ;;
18023: esac
18024: ;;
18025: linux*)
18026: case $cc_basename in
18027: KCC)
18028: # KAI C++ Compiler
18029: lt_prog_compiler_wl_CXX='--backend -Wl,'
18030: lt_prog_compiler_pic_CXX='-fPIC'
18031: ;;
18032: icpc)
18033: # Intel C++
18034: lt_prog_compiler_wl_CXX='-Wl,'
18035: lt_prog_compiler_pic_CXX='-KPIC'
18036: lt_prog_compiler_static_CXX='-static'
18037: ;;
18038: cxx)
18039: # Compaq C++
18040: # Make sure the PIC flag is empty. It appears that all Alpha
18041: # Linux and Compaq Tru64 Unix objects are PIC.
18042: lt_prog_compiler_pic_CXX=
18043: lt_prog_compiler_static_CXX='-non_shared'
18044: ;;
18045: *)
18046: ;;
18047: esac
18048: ;;
18049: lynxos*)
18050: ;;
18051: m88k*)
18052: ;;
18053: mvs*)
18054: case $cc_basename in
18055: cxx)
18056: lt_prog_compiler_pic_CXX='-W c,exportall'
18057: ;;
18058: *)
18059: ;;
18060: esac
18061: ;;
18062: netbsd*)
18063: ;;
18064: osf3* | osf4* | osf5*)
18065: case $cc_basename in
18066: KCC)
18067: lt_prog_compiler_wl_CXX='--backend -Wl,'
18068: ;;
18069: RCC)
18070: # Rational C++ 2.4.1
18071: lt_prog_compiler_pic_CXX='-pic'
18072: ;;
18073: cxx)
18074: # Digital/Compaq C++
18075: lt_prog_compiler_wl_CXX='-Wl,'
18076: # Make sure the PIC flag is empty. It appears that all Alpha
18077: # Linux and Compaq Tru64 Unix objects are PIC.
18078: lt_prog_compiler_pic_CXX=
18079: lt_prog_compiler_static_CXX='-non_shared'
18080: ;;
18081: *)
18082: ;;
18083: esac
18084: ;;
18085: psos*)
18086: ;;
18087: sco*)
18088: case $cc_basename in
18089: CC)
18090: lt_prog_compiler_pic_CXX='-fPIC'
18091: ;;
18092: *)
18093: ;;
18094: esac
18095: ;;
18096: solaris*)
18097: case $cc_basename in
18098: CC)
18099: # Sun C++ 4.2, 5.x and Centerline C++
18100: lt_prog_compiler_pic_CXX='-KPIC'
18101: lt_prog_compiler_static_CXX='-Bstatic'
18102: lt_prog_compiler_wl_CXX='-Qoption ld '
18103: ;;
18104: gcx)
18105: # Green Hills C++ Compiler
18106: lt_prog_compiler_pic_CXX='-PIC'
18107: ;;
18108: *)
18109: ;;
18110: esac
18111: ;;
18112: sunos4*)
18113: case $cc_basename in
18114: CC)
18115: # Sun C++ 4.x
18116: lt_prog_compiler_pic_CXX='-pic'
18117: lt_prog_compiler_static_CXX='-Bstatic'
18118: ;;
18119: lcc)
18120: # Lucid
18121: lt_prog_compiler_pic_CXX='-pic'
18122: ;;
18123: *)
18124: ;;
18125: esac
18126: ;;
18127: tandem*)
18128: case $cc_basename in
18129: NCC)
18130: # NonStop-UX NCC 3.20
18131: lt_prog_compiler_pic_CXX='-KPIC'
18132: ;;
18133: *)
18134: ;;
18135: esac
18136: ;;
18137: unixware*)
18138: ;;
18139: vxworks*)
18140: ;;
18141: *)
18142: lt_prog_compiler_can_build_shared_CXX=no
18143: ;;
18144: esac
18145: fi
18146:
18147: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18148: echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
18149:
18150: #
18151: # Check to make sure the PIC flag actually works.
18152: #
18153: if test -n "$lt_prog_compiler_pic_CXX"; then
18154: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18155: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
18156: if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18157: echo $ECHO_N "(cached) $ECHO_C" >&6
18158: else
18159: lt_prog_compiler_pic_works_CXX=no
18160: ac_outfile=conftest.$ac_objext
18161: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18162: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18163: # Insert the option either (1) after the last *FLAGS variable, or
18164: # (2) before a word containing "conftest.", or (3) at the end.
18165: # Note that $ac_compile itself does not contain backslashes and begins
18166: # with a dollar sign (not a hyphen), so the echo should work correctly.
18167: # The option is referenced via a variable to avoid confusing sed.
18168: lt_compile=`echo "$ac_compile" | $SED \
18169: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18170: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18171: -e 's:$: $lt_compiler_flag:'`
1.1.1.3 ! root 18172: (eval echo "\"\$as_me:18172: $lt_compile\"" >&5)
1.1 root 18173: (eval "$lt_compile" 2>conftest.err)
18174: ac_status=$?
18175: cat conftest.err >&5
1.1.1.3 ! root 18176: echo "$as_me:18176: \$? = $ac_status" >&5
1.1 root 18177: if (exit $ac_status) && test -s "$ac_outfile"; then
18178: # The compiler can only warn and ignore the option if not recognized
18179: # So say no if there are warnings
18180: if test ! -s conftest.err; then
18181: lt_prog_compiler_pic_works_CXX=yes
18182: fi
18183: fi
18184: $rm conftest*
18185:
18186: fi
18187: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18188: echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
18189:
18190: if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18191: case $lt_prog_compiler_pic_CXX in
18192: "" | " "*) ;;
18193: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18194: esac
18195: else
18196: lt_prog_compiler_pic_CXX=
18197: lt_prog_compiler_can_build_shared_CXX=no
18198: fi
18199:
18200: fi
18201: case "$host_os" in
18202: # For platforms which do not support PIC, -DPIC is meaningless:
18203: *djgpp*)
18204: lt_prog_compiler_pic_CXX=
18205: ;;
18206: *)
18207: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18208: ;;
18209: esac
18210:
18211: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18212: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18213: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18214: echo $ECHO_N "(cached) $ECHO_C" >&6
18215: else
18216: lt_cv_prog_compiler_c_o_CXX=no
18217: $rm -r conftest 2>/dev/null
18218: mkdir conftest
18219: cd conftest
18220: mkdir out
18221: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18222:
18223: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
18224: # that will create temporary files in the current directory regardless of
18225: # the output directory. Thus, making CWD read-only will cause this test
18226: # to fail, enabling locking or at least warning the user not to do parallel
18227: # builds.
18228: chmod -w .
18229:
18230: lt_compiler_flag="-o out/conftest2.$ac_objext"
18231: # Insert the option either (1) after the last *FLAGS variable, or
18232: # (2) before a word containing "conftest.", or (3) at the end.
18233: # Note that $ac_compile itself does not contain backslashes and begins
18234: # with a dollar sign (not a hyphen), so the echo should work correctly.
18235: lt_compile=`echo "$ac_compile" | $SED \
18236: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18237: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18238: -e 's:$: $lt_compiler_flag:'`
1.1.1.3 ! root 18239: (eval echo "\"\$as_me:18239: $lt_compile\"" >&5)
1.1 root 18240: (eval "$lt_compile" 2>out/conftest.err)
18241: ac_status=$?
18242: cat out/conftest.err >&5
1.1.1.3 ! root 18243: echo "$as_me:18243: \$? = $ac_status" >&5
1.1 root 18244: if (exit $ac_status) && test -s out/conftest2.$ac_objext
18245: then
18246: # The compiler can only warn and ignore the option if not recognized
18247: # So say no if there are warnings
18248: if test ! -s out/conftest.err; then
18249: lt_cv_prog_compiler_c_o_CXX=yes
18250: fi
18251: fi
18252: chmod u+w .
18253: $rm conftest* out/*
18254: rmdir out
18255: cd ..
18256: rmdir conftest
18257: $rm conftest*
18258:
18259: fi
18260: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18261: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
18262:
18263:
18264: hard_links="nottested"
18265: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18266: # do not overwrite the value of need_locks provided by the user
18267: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18268: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18269: hard_links=yes
18270: $rm conftest*
18271: ln conftest.a conftest.b 2>/dev/null && hard_links=no
18272: touch conftest.a
18273: ln conftest.a conftest.b 2>&5 || hard_links=no
18274: ln conftest.a conftest.b 2>/dev/null && hard_links=no
18275: echo "$as_me:$LINENO: result: $hard_links" >&5
18276: echo "${ECHO_T}$hard_links" >&6
18277: if test "$hard_links" = no; then
18278: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18279: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18280: need_locks=warn
18281: fi
18282: else
18283: need_locks=no
18284: fi
18285:
18286: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18287: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18288:
18289: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18290: case $host_os in
18291: aix4* | aix5*)
18292: # If we're using GNU nm, then we don't want the "-C" option.
18293: # -C means demangle to AIX nm, but means don't demangle with GNU nm
18294: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18295: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18296: else
18297: export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18298: fi
18299: ;;
18300: pw32*)
18301: export_symbols_cmds_CXX="$ltdll_cmds"
18302: ;;
18303: cygwin* | mingw*)
18304: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18305: ;;
18306: *)
18307: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18308: ;;
18309: esac
18310:
18311: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18312: echo "${ECHO_T}$ld_shlibs_CXX" >&6
18313: test "$ld_shlibs_CXX" = no && can_build_shared=no
18314:
18315: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18316: if test "$GCC" = yes; then
18317: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18318: fi
18319:
18320: #
18321: # Do we need to explicitly link libc?
18322: #
18323: case "x$archive_cmds_need_lc_CXX" in
18324: x|xyes)
18325: # Assume -lc should be added
18326: archive_cmds_need_lc_CXX=yes
18327:
18328: if test "$enable_shared" = yes && test "$GCC" = yes; then
18329: case $archive_cmds_CXX in
18330: *'~'*)
18331: # FIXME: we may have to deal with multi-command sequences.
18332: ;;
18333: '$CC '*)
18334: # Test whether the compiler implicitly links with -lc since on some
18335: # systems, -lgcc has to come before -lc. If gcc already passes -lc
18336: # to ld, don't add -lc before -lgcc.
18337: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18338: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18339: $rm conftest*
18340: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18341:
18342: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18343: (eval $ac_compile) 2>&5
18344: ac_status=$?
18345: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346: (exit $ac_status); } 2>conftest.err; then
18347: soname=conftest
18348: lib=conftest
18349: libobjs=conftest.$ac_objext
18350: deplibs=
18351: wl=$lt_prog_compiler_wl_CXX
18352: compiler_flags=-v
18353: linker_flags=-v
18354: verstring=
18355: output_objdir=.
18356: libname=conftest
18357: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18358: allow_undefined_flag_CXX=
18359: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18360: (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18361: ac_status=$?
18362: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363: (exit $ac_status); }
18364: then
18365: archive_cmds_need_lc_CXX=no
18366: else
18367: archive_cmds_need_lc_CXX=yes
18368: fi
18369: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18370: else
18371: cat conftest.err 1>&5
18372: fi
18373: $rm conftest*
18374: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18375: echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
18376: ;;
18377: esac
18378: fi
18379: ;;
18380: esac
18381:
18382: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18383: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18384: hardcode_action_CXX=
18385: if test -n "$hardcode_libdir_flag_spec_CXX" || \
18386: test -n "$runpath_var CXX" || \
18387: test "X$hardcode_automatic_CXX"="Xyes" ; then
18388:
18389: # We can hardcode non-existant directories.
18390: if test "$hardcode_direct_CXX" != no &&
18391: # If the only mechanism to avoid hardcoding is shlibpath_var, we
18392: # have to relink, otherwise we might link with an installed library
18393: # when we should be linking with a yet-to-be-installed one
18394: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18395: test "$hardcode_minus_L_CXX" != no; then
18396: # Linking always hardcodes the temporary library directory.
18397: hardcode_action_CXX=relink
18398: else
18399: # We can link without hardcoding, and we can hardcode nonexisting dirs.
18400: hardcode_action_CXX=immediate
18401: fi
18402: else
18403: # We cannot hardcode anything, or else we can only hardcode existing
18404: # directories.
18405: hardcode_action_CXX=unsupported
18406: fi
18407: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
18408: echo "${ECHO_T}$hardcode_action_CXX" >&6
18409:
18410: if test "$hardcode_action_CXX" = relink; then
18411: # Fast installation is not supported
18412: enable_fast_install=no
18413: elif test "$shlibpath_overrides_runpath" = yes ||
18414: test "$enable_shared" = no; then
18415: # Fast installation is not necessary
18416: enable_fast_install=needless
18417: fi
18418:
18419: striplib=
18420: old_striplib=
18421: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18422: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18423: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18424: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18425: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18426: echo "$as_me:$LINENO: result: yes" >&5
18427: echo "${ECHO_T}yes" >&6
18428: else
18429: # FIXME - insert some real tests, host_os isn't really good enough
18430: case $host_os in
18431: darwin*)
18432: if test -n "$STRIP" ; then
18433: striplib="$STRIP -x"
18434: echo "$as_me:$LINENO: result: yes" >&5
18435: echo "${ECHO_T}yes" >&6
18436: else
18437: echo "$as_me:$LINENO: result: no" >&5
18438: echo "${ECHO_T}no" >&6
18439: fi
18440: ;;
18441: *)
18442: echo "$as_me:$LINENO: result: no" >&5
18443: echo "${ECHO_T}no" >&6
18444: ;;
18445: esac
18446: fi
18447:
18448: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18449: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18450: library_names_spec=
18451: libname_spec='lib$name'
18452: soname_spec=
18453: shrext=".so"
18454: postinstall_cmds=
18455: postuninstall_cmds=
18456: finish_cmds=
18457: finish_eval=
18458: shlibpath_var=
18459: shlibpath_overrides_runpath=unknown
18460: version_type=none
18461: dynamic_linker="$host_os ld.so"
18462: sys_lib_dlsearch_path_spec="/lib /usr/lib"
18463: if test "$GCC" = yes; then
18464: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18465: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18466: # if the path contains ";" then we assume it to be the separator
18467: # otherwise default to the standard path separator (i.e. ":") - it is
18468: # assumed that no part of a normal pathname contains ";" but that should
18469: # okay in the real world where ";" in dirpaths is itself problematic.
18470: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18471: else
18472: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18473: fi
18474: else
18475: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18476: fi
18477: need_lib_prefix=unknown
18478: hardcode_into_libs=no
18479:
18480: # when you set need_version to no, make sure it does not cause -set_version
18481: # flags to be left without arguments
18482: need_version=unknown
18483:
18484: case $host_os in
18485: aix3*)
18486: version_type=linux
18487: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18488: shlibpath_var=LIBPATH
18489:
18490: # AIX 3 has no versioning support, so we append a major version to the name.
18491: soname_spec='${libname}${release}${shared_ext}$major'
18492: ;;
18493:
18494: aix4* | aix5*)
18495: version_type=linux
18496: need_lib_prefix=no
18497: need_version=no
18498: hardcode_into_libs=yes
18499: if test "$host_cpu" = ia64; then
18500: # AIX 5 supports IA64
18501: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18502: shlibpath_var=LD_LIBRARY_PATH
18503: else
18504: # With GCC up to 2.95.x, collect2 would create an import file
18505: # for dependence libraries. The import file would start with
18506: # the line `#! .'. This would cause the generated library to
18507: # depend on `.', always an invalid library. This was fixed in
18508: # development snapshots of GCC prior to 3.0.
18509: case $host_os in
18510: aix4 | aix4.[01] | aix4.[01].*)
18511: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18512: echo ' yes '
18513: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18514: :
18515: else
18516: can_build_shared=no
18517: fi
18518: ;;
18519: esac
18520: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18521: # soname into executable. Probably we can add versioning support to
18522: # collect2, so additional links can be useful in future.
18523: if test "$aix_use_runtimelinking" = yes; then
18524: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18525: # instead of lib<name>.a to let people know that these are not
18526: # typical AIX shared libraries.
18527: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18528: else
18529: # We preserve .a as extension for shared libraries through AIX4.2
18530: # and later when we are not doing run time linking.
18531: library_names_spec='${libname}${release}.a $libname.a'
18532: soname_spec='${libname}${release}${shared_ext}$major'
18533: fi
18534: shlibpath_var=LIBPATH
18535: fi
18536: ;;
18537:
18538: amigaos*)
18539: library_names_spec='$libname.ixlibrary $libname.a'
18540: # Create ${libname}_ixlibrary.a entries in /sys/libs.
18541: 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'
18542: ;;
18543:
18544: beos*)
18545: library_names_spec='${libname}${shared_ext}'
18546: dynamic_linker="$host_os ld.so"
18547: shlibpath_var=LIBRARY_PATH
18548: ;;
18549:
18550: bsdi4*)
18551: version_type=linux
18552: need_version=no
18553: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18554: soname_spec='${libname}${release}${shared_ext}$major'
18555: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18556: shlibpath_var=LD_LIBRARY_PATH
18557: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18558: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18559: # the default ld.so.conf also contains /usr/contrib/lib and
18560: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18561: # libtool to hard-code these into programs
18562: ;;
18563:
18564: cygwin* | mingw* | pw32*)
18565: version_type=windows
18566: shrext=".dll"
18567: need_version=no
18568: need_lib_prefix=no
18569:
18570: case $GCC,$host_os in
18571: yes,cygwin* | yes,mingw* | yes,pw32*)
18572: library_names_spec='$libname.dll.a'
18573: # DLL is installed to $(libdir)/../bin by postinstall_cmds
18574: postinstall_cmds='base_file=`basename \${file}`~
18575: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18576: dldir=$destdir/`dirname \$dlpath`~
18577: test -d \$dldir || mkdir -p \$dldir~
18578: $install_prog $dir/$dlname \$dldir/$dlname'
18579: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18580: dlpath=$dir/\$dldll~
18581: $rm \$dlpath'
18582: shlibpath_overrides_runpath=yes
18583:
18584: case $host_os in
18585: cygwin*)
18586: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18587: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18588: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
18589: ;;
18590: mingw*)
18591: # MinGW DLLs use traditional 'lib' prefix
18592: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18593: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18594: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18595: # It is most probably a Windows format PATH printed by
18596: # mingw gcc, but we are running on Cygwin. Gcc prints its search
18597: # path with ; separators, and with drive letters. We can handle the
18598: # drive letters (cygwin fileutils understands them), so leave them,
18599: # especially as we might pass files found there to a mingw objdump,
18600: # which wouldn't understand a cygwinified path. Ahh.
18601: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18602: else
18603: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18604: fi
18605: ;;
18606: pw32*)
18607: # pw32 DLLs use 'pw' prefix rather than 'lib'
18608: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18609: ;;
18610: esac
18611: ;;
18612:
18613: *)
18614: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18615: ;;
18616: esac
18617: dynamic_linker='Win32 ld.exe'
18618: # FIXME: first we should search . and the directory the executable is in
18619: shlibpath_var=PATH
18620: ;;
18621:
18622: darwin* | rhapsody*)
18623: dynamic_linker="$host_os dyld"
18624: version_type=darwin
18625: need_lib_prefix=no
18626: need_version=no
18627: # FIXME: Relying on posixy $() will cause problems for
18628: # cross-compilation, but unfortunately the echo tests do not
18629: # yet detect zsh echo's removal of \ escapes.
18630: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18631: soname_spec='${libname}${release}${major}$shared_ext'
18632: shlibpath_overrides_runpath=yes
18633: shlibpath_var=DYLD_LIBRARY_PATH
18634: shrext='$(test .$module = .yes && echo .so || echo .dylib)'
18635: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18636: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
18637: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18638: fi
18639: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18640: ;;
18641:
18642: dgux*)
18643: version_type=linux
18644: need_lib_prefix=no
18645: need_version=no
18646: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18647: soname_spec='${libname}${release}${shared_ext}$major'
18648: shlibpath_var=LD_LIBRARY_PATH
18649: ;;
18650:
18651: freebsd1*)
18652: dynamic_linker=no
18653: ;;
18654:
18655: freebsd*)
18656: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18657: version_type=freebsd-$objformat
18658: case $version_type in
18659: freebsd-elf*)
18660: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18661: need_version=no
18662: need_lib_prefix=no
18663: ;;
18664: freebsd-*)
18665: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18666: need_version=yes
18667: ;;
18668: esac
18669: shlibpath_var=LD_LIBRARY_PATH
18670: case $host_os in
18671: freebsd2*)
18672: shlibpath_overrides_runpath=yes
18673: ;;
18674: freebsd3.01* | freebsdelf3.01*)
18675: shlibpath_overrides_runpath=yes
18676: hardcode_into_libs=yes
18677: ;;
18678: *) # from 3.2 on
18679: shlibpath_overrides_runpath=no
18680: hardcode_into_libs=yes
18681: ;;
18682: esac
18683: ;;
18684:
18685: gnu*)
18686: version_type=linux
18687: need_lib_prefix=no
18688: need_version=no
18689: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18690: soname_spec='${libname}${release}${shared_ext}$major'
18691: shlibpath_var=LD_LIBRARY_PATH
18692: hardcode_into_libs=yes
18693: ;;
18694:
18695: hpux9* | hpux10* | hpux11*)
18696: # Give a soname corresponding to the major version so that dld.sl refuses to
18697: # link against other versions.
18698: version_type=sunos
18699: need_lib_prefix=no
18700: need_version=no
18701: case "$host_cpu" in
18702: ia64*)
18703: shrext='.so'
18704: hardcode_into_libs=yes
18705: dynamic_linker="$host_os dld.so"
18706: shlibpath_var=LD_LIBRARY_PATH
18707: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18708: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18709: soname_spec='${libname}${release}${shared_ext}$major'
18710: if test "X$HPUX_IA64_MODE" = X32; then
18711: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18712: else
18713: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18714: fi
18715: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18716: ;;
18717: hppa*64*)
18718: shrext='.sl'
18719: hardcode_into_libs=yes
18720: dynamic_linker="$host_os dld.sl"
18721: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18722: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18723: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18724: soname_spec='${libname}${release}${shared_ext}$major'
18725: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18726: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18727: ;;
18728: *)
18729: shrext='.sl'
18730: dynamic_linker="$host_os dld.sl"
18731: shlibpath_var=SHLIB_PATH
18732: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18733: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18734: soname_spec='${libname}${release}${shared_ext}$major'
18735: ;;
18736: esac
18737: # HP-UX runs *really* slowly unless shared libraries are mode 555.
18738: postinstall_cmds='chmod 555 $lib'
18739: ;;
18740:
18741: irix5* | irix6* | nonstopux*)
18742: case $host_os in
18743: nonstopux*) version_type=nonstopux ;;
18744: *)
18745: if test "$lt_cv_prog_gnu_ld" = yes; then
18746: version_type=linux
18747: else
18748: version_type=irix
18749: fi ;;
18750: esac
18751: need_lib_prefix=no
18752: need_version=no
18753: soname_spec='${libname}${release}${shared_ext}$major'
18754: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18755: case $host_os in
18756: irix5* | nonstopux*)
18757: libsuff= shlibsuff=
18758: ;;
18759: *)
18760: case $LD in # libtool.m4 will add one of these switches to LD
18761: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18762: libsuff= shlibsuff= libmagic=32-bit;;
18763: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18764: libsuff=32 shlibsuff=N32 libmagic=N32;;
18765: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18766: libsuff=64 shlibsuff=64 libmagic=64-bit;;
18767: *) libsuff= shlibsuff= libmagic=never-match;;
18768: esac
18769: ;;
18770: esac
18771: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18772: shlibpath_overrides_runpath=no
18773: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18774: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18775: hardcode_into_libs=yes
18776: ;;
18777:
18778: # No shared lib support for Linux oldld, aout, or coff.
18779: linux*oldld* | linux*aout* | linux*coff*)
18780: dynamic_linker=no
18781: ;;
18782:
18783: # This must be Linux ELF.
18784: linux*)
18785: version_type=linux
18786: need_lib_prefix=no
18787: need_version=no
18788: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18789: soname_spec='${libname}${release}${shared_ext}$major'
18790: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18791: shlibpath_var=LD_LIBRARY_PATH
18792: shlibpath_overrides_runpath=no
18793: # This implies no fast_install, which is unacceptable.
18794: # Some rework will be needed to allow for fast_install
18795: # before this can be enabled.
18796: hardcode_into_libs=yes
18797:
18798: # We used to test for /lib/ld.so.1 and disable shared libraries on
18799: # powerpc, because MkLinux only supported shared libraries with the
18800: # GNU dynamic linker. Since this was broken with cross compilers,
18801: # most powerpc-linux boxes support dynamic linking these days and
18802: # people can always --disable-shared, the test was removed, and we
18803: # assume the GNU/Linux dynamic linker is in use.
18804: dynamic_linker='GNU/Linux ld.so'
18805: ;;
18806:
18807: netbsd*)
18808: version_type=sunos
18809: need_lib_prefix=no
18810: need_version=no
18811: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18812: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18813: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18814: dynamic_linker='NetBSD (a.out) ld.so'
18815: else
18816: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
18817: soname_spec='${libname}${release}${shared_ext}$major'
18818: dynamic_linker='NetBSD ld.elf_so'
18819: fi
18820: shlibpath_var=LD_LIBRARY_PATH
18821: shlibpath_overrides_runpath=yes
18822: hardcode_into_libs=yes
18823: ;;
18824:
18825: newsos6)
18826: version_type=linux
18827: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18828: shlibpath_var=LD_LIBRARY_PATH
18829: shlibpath_overrides_runpath=yes
18830: ;;
18831:
18832: nto-qnx)
18833: version_type=linux
18834: need_lib_prefix=no
18835: need_version=no
18836: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18837: soname_spec='${libname}${release}${shared_ext}$major'
18838: shlibpath_var=LD_LIBRARY_PATH
18839: shlibpath_overrides_runpath=yes
18840: ;;
18841:
18842: openbsd*)
18843: version_type=sunos
18844: need_lib_prefix=no
18845: need_version=no
18846: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18847: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18848: shlibpath_var=LD_LIBRARY_PATH
18849: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18850: case $host_os in
18851: openbsd2.[89] | openbsd2.[89].*)
18852: shlibpath_overrides_runpath=no
18853: ;;
18854: *)
18855: shlibpath_overrides_runpath=yes
18856: ;;
18857: esac
18858: else
18859: shlibpath_overrides_runpath=yes
18860: fi
18861: ;;
18862:
18863: os2*)
18864: libname_spec='$name'
18865: shrext=".dll"
18866: need_lib_prefix=no
18867: library_names_spec='$libname${shared_ext} $libname.a'
18868: dynamic_linker='OS/2 ld.exe'
18869: shlibpath_var=LIBPATH
18870: ;;
18871:
18872: osf3* | osf4* | osf5*)
18873: version_type=osf
18874: need_lib_prefix=no
18875: need_version=no
18876: soname_spec='${libname}${release}${shared_ext}$major'
18877: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18878: shlibpath_var=LD_LIBRARY_PATH
18879: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18880: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18881: ;;
18882:
18883: sco3.2v5*)
18884: version_type=osf
18885: soname_spec='${libname}${release}${shared_ext}$major'
18886: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18887: shlibpath_var=LD_LIBRARY_PATH
18888: ;;
18889:
18890: solaris*)
18891: version_type=linux
18892: need_lib_prefix=no
18893: need_version=no
18894: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18895: soname_spec='${libname}${release}${shared_ext}$major'
18896: shlibpath_var=LD_LIBRARY_PATH
18897: shlibpath_overrides_runpath=yes
18898: hardcode_into_libs=yes
18899: # ldd complains unless libraries are executable
18900: postinstall_cmds='chmod +x $lib'
18901: ;;
18902:
18903: sunos4*)
18904: version_type=sunos
18905: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18906: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18907: shlibpath_var=LD_LIBRARY_PATH
18908: shlibpath_overrides_runpath=yes
18909: if test "$with_gnu_ld" = yes; then
18910: need_lib_prefix=no
18911: fi
18912: need_version=yes
18913: ;;
18914:
18915: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18916: version_type=linux
18917: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18918: soname_spec='${libname}${release}${shared_ext}$major'
18919: shlibpath_var=LD_LIBRARY_PATH
18920: case $host_vendor in
18921: sni)
18922: shlibpath_overrides_runpath=no
18923: need_lib_prefix=no
18924: export_dynamic_flag_spec='${wl}-Blargedynsym'
18925: runpath_var=LD_RUN_PATH
18926: ;;
18927: siemens)
18928: need_lib_prefix=no
18929: ;;
18930: motorola)
18931: need_lib_prefix=no
18932: need_version=no
18933: shlibpath_overrides_runpath=no
18934: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18935: ;;
18936: esac
18937: ;;
18938:
18939: sysv4*MP*)
18940: if test -d /usr/nec ;then
18941: version_type=linux
18942: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18943: soname_spec='$libname${shared_ext}.$major'
18944: shlibpath_var=LD_LIBRARY_PATH
18945: fi
18946: ;;
18947:
18948: uts4*)
18949: version_type=linux
18950: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18951: soname_spec='${libname}${release}${shared_ext}$major'
18952: shlibpath_var=LD_LIBRARY_PATH
18953: ;;
18954:
18955: *)
18956: dynamic_linker=no
18957: ;;
18958: esac
18959: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18960: echo "${ECHO_T}$dynamic_linker" >&6
18961: test "$dynamic_linker" = no && can_build_shared=no
18962:
18963: if test "x$enable_dlopen" != xyes; then
18964: enable_dlopen=unknown
18965: enable_dlopen_self=unknown
18966: enable_dlopen_self_static=unknown
18967: else
18968: lt_cv_dlopen=no
18969: lt_cv_dlopen_libs=
18970:
18971: case $host_os in
18972: beos*)
18973: lt_cv_dlopen="load_add_on"
18974: lt_cv_dlopen_libs=
18975: lt_cv_dlopen_self=yes
18976: ;;
18977:
18978: mingw* | pw32*)
18979: lt_cv_dlopen="LoadLibrary"
18980: lt_cv_dlopen_libs=
18981: ;;
18982:
18983: cygwin*)
18984: lt_cv_dlopen="dlopen"
18985: lt_cv_dlopen_libs=
18986: ;;
18987:
18988: darwin*)
18989: # if libdl is installed we need to link against it
18990: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18991: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18992: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18993: echo $ECHO_N "(cached) $ECHO_C" >&6
18994: else
18995: ac_check_lib_save_LIBS=$LIBS
18996: LIBS="-ldl $LIBS"
18997: cat >conftest.$ac_ext <<_ACEOF
18998: #line $LINENO "configure"
18999: /* confdefs.h. */
19000: _ACEOF
19001: cat confdefs.h >>conftest.$ac_ext
19002: cat >>conftest.$ac_ext <<_ACEOF
19003: /* end confdefs.h. */
19004:
19005: /* Override any gcc2 internal prototype to avoid an error. */
19006: #ifdef __cplusplus
19007: extern "C"
19008: #endif
19009: /* We use char because int might match the return type of a gcc2
19010: builtin and then its argument prototype would still apply. */
19011: char dlopen ();
19012: int
19013: main ()
19014: {
19015: dlopen ();
19016: ;
19017: return 0;
19018: }
19019: _ACEOF
19020: rm -f conftest.$ac_objext conftest$ac_exeext
19021: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19022: (eval $ac_link) 2>&5
19023: ac_status=$?
19024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025: (exit $ac_status); } &&
19026: { ac_try='test -s conftest$ac_exeext'
19027: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19028: (eval $ac_try) 2>&5
19029: ac_status=$?
19030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031: (exit $ac_status); }; }; then
19032: ac_cv_lib_dl_dlopen=yes
19033: else
19034: echo "$as_me: failed program was:" >&5
19035: sed 's/^/| /' conftest.$ac_ext >&5
19036:
19037: ac_cv_lib_dl_dlopen=no
19038: fi
19039: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19040: LIBS=$ac_check_lib_save_LIBS
19041: fi
19042: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19043: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19044: if test $ac_cv_lib_dl_dlopen = yes; then
19045: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19046: else
19047:
19048: lt_cv_dlopen="dyld"
19049: lt_cv_dlopen_libs=
19050: lt_cv_dlopen_self=yes
19051:
19052: fi
19053:
19054: ;;
19055:
19056: *)
19057: echo "$as_me:$LINENO: checking for shl_load" >&5
19058: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19059: if test "${ac_cv_func_shl_load+set}" = set; then
19060: echo $ECHO_N "(cached) $ECHO_C" >&6
19061: else
19062: cat >conftest.$ac_ext <<_ACEOF
19063: #line $LINENO "configure"
19064: /* confdefs.h. */
19065: _ACEOF
19066: cat confdefs.h >>conftest.$ac_ext
19067: cat >>conftest.$ac_ext <<_ACEOF
19068: /* end confdefs.h. */
19069: /* System header to define __stub macros and hopefully few prototypes,
19070: which can conflict with char shl_load (); below.
19071: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19072: <limits.h> exists even on freestanding compilers. */
19073: #ifdef __STDC__
19074: # include <limits.h>
19075: #else
19076: # include <assert.h>
19077: #endif
19078: /* Override any gcc2 internal prototype to avoid an error. */
19079: #ifdef __cplusplus
19080: extern "C"
19081: {
19082: #endif
19083: /* We use char because int might match the return type of a gcc2
19084: builtin and then its argument prototype would still apply. */
19085: char shl_load ();
19086: /* The GNU C library defines this for functions which it implements
19087: to always fail with ENOSYS. Some functions are actually named
19088: something starting with __ and the normal name is an alias. */
19089: #if defined (__stub_shl_load) || defined (__stub___shl_load)
19090: choke me
19091: #else
19092: char (*f) () = shl_load;
19093: #endif
19094: #ifdef __cplusplus
19095: }
19096: #endif
19097:
19098: int
19099: main ()
19100: {
19101: return f != shl_load;
19102: ;
19103: return 0;
19104: }
19105: _ACEOF
19106: rm -f conftest.$ac_objext conftest$ac_exeext
19107: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19108: (eval $ac_link) 2>&5
19109: ac_status=$?
19110: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111: (exit $ac_status); } &&
19112: { ac_try='test -s conftest$ac_exeext'
19113: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19114: (eval $ac_try) 2>&5
19115: ac_status=$?
19116: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117: (exit $ac_status); }; }; then
19118: ac_cv_func_shl_load=yes
19119: else
19120: echo "$as_me: failed program was:" >&5
19121: sed 's/^/| /' conftest.$ac_ext >&5
19122:
19123: ac_cv_func_shl_load=no
19124: fi
19125: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19126: fi
19127: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19128: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19129: if test $ac_cv_func_shl_load = yes; then
19130: lt_cv_dlopen="shl_load"
19131: else
19132: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19133: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19134: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19135: echo $ECHO_N "(cached) $ECHO_C" >&6
19136: else
19137: ac_check_lib_save_LIBS=$LIBS
19138: LIBS="-ldld $LIBS"
19139: cat >conftest.$ac_ext <<_ACEOF
19140: #line $LINENO "configure"
19141: /* confdefs.h. */
19142: _ACEOF
19143: cat confdefs.h >>conftest.$ac_ext
19144: cat >>conftest.$ac_ext <<_ACEOF
19145: /* end confdefs.h. */
19146:
19147: /* Override any gcc2 internal prototype to avoid an error. */
19148: #ifdef __cplusplus
19149: extern "C"
19150: #endif
19151: /* We use char because int might match the return type of a gcc2
19152: builtin and then its argument prototype would still apply. */
19153: char shl_load ();
19154: int
19155: main ()
19156: {
19157: shl_load ();
19158: ;
19159: return 0;
19160: }
19161: _ACEOF
19162: rm -f conftest.$ac_objext conftest$ac_exeext
19163: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19164: (eval $ac_link) 2>&5
19165: ac_status=$?
19166: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167: (exit $ac_status); } &&
19168: { ac_try='test -s conftest$ac_exeext'
19169: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170: (eval $ac_try) 2>&5
19171: ac_status=$?
19172: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173: (exit $ac_status); }; }; then
19174: ac_cv_lib_dld_shl_load=yes
19175: else
19176: echo "$as_me: failed program was:" >&5
19177: sed 's/^/| /' conftest.$ac_ext >&5
19178:
19179: ac_cv_lib_dld_shl_load=no
19180: fi
19181: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19182: LIBS=$ac_check_lib_save_LIBS
19183: fi
19184: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19185: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19186: if test $ac_cv_lib_dld_shl_load = yes; then
19187: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19188: else
19189: echo "$as_me:$LINENO: checking for dlopen" >&5
19190: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19191: if test "${ac_cv_func_dlopen+set}" = set; then
19192: echo $ECHO_N "(cached) $ECHO_C" >&6
19193: else
19194: cat >conftest.$ac_ext <<_ACEOF
19195: #line $LINENO "configure"
19196: /* confdefs.h. */
19197: _ACEOF
19198: cat confdefs.h >>conftest.$ac_ext
19199: cat >>conftest.$ac_ext <<_ACEOF
19200: /* end confdefs.h. */
19201: /* System header to define __stub macros and hopefully few prototypes,
19202: which can conflict with char dlopen (); below.
19203: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19204: <limits.h> exists even on freestanding compilers. */
19205: #ifdef __STDC__
19206: # include <limits.h>
19207: #else
19208: # include <assert.h>
19209: #endif
19210: /* Override any gcc2 internal prototype to avoid an error. */
19211: #ifdef __cplusplus
19212: extern "C"
19213: {
19214: #endif
19215: /* We use char because int might match the return type of a gcc2
19216: builtin and then its argument prototype would still apply. */
19217: char dlopen ();
19218: /* The GNU C library defines this for functions which it implements
19219: to always fail with ENOSYS. Some functions are actually named
19220: something starting with __ and the normal name is an alias. */
19221: #if defined (__stub_dlopen) || defined (__stub___dlopen)
19222: choke me
19223: #else
19224: char (*f) () = dlopen;
19225: #endif
19226: #ifdef __cplusplus
19227: }
19228: #endif
19229:
19230: int
19231: main ()
19232: {
19233: return f != dlopen;
19234: ;
19235: return 0;
19236: }
19237: _ACEOF
19238: rm -f conftest.$ac_objext conftest$ac_exeext
19239: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19240: (eval $ac_link) 2>&5
19241: ac_status=$?
19242: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243: (exit $ac_status); } &&
19244: { ac_try='test -s conftest$ac_exeext'
19245: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246: (eval $ac_try) 2>&5
19247: ac_status=$?
19248: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249: (exit $ac_status); }; }; then
19250: ac_cv_func_dlopen=yes
19251: else
19252: echo "$as_me: failed program was:" >&5
19253: sed 's/^/| /' conftest.$ac_ext >&5
19254:
19255: ac_cv_func_dlopen=no
19256: fi
19257: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19258: fi
19259: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19260: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19261: if test $ac_cv_func_dlopen = yes; then
19262: lt_cv_dlopen="dlopen"
19263: else
19264: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19265: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19266: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19267: echo $ECHO_N "(cached) $ECHO_C" >&6
19268: else
19269: ac_check_lib_save_LIBS=$LIBS
19270: LIBS="-ldl $LIBS"
19271: cat >conftest.$ac_ext <<_ACEOF
19272: #line $LINENO "configure"
19273: /* confdefs.h. */
19274: _ACEOF
19275: cat confdefs.h >>conftest.$ac_ext
19276: cat >>conftest.$ac_ext <<_ACEOF
19277: /* end confdefs.h. */
19278:
19279: /* Override any gcc2 internal prototype to avoid an error. */
19280: #ifdef __cplusplus
19281: extern "C"
19282: #endif
19283: /* We use char because int might match the return type of a gcc2
19284: builtin and then its argument prototype would still apply. */
19285: char dlopen ();
19286: int
19287: main ()
19288: {
19289: dlopen ();
19290: ;
19291: return 0;
19292: }
19293: _ACEOF
19294: rm -f conftest.$ac_objext conftest$ac_exeext
19295: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19296: (eval $ac_link) 2>&5
19297: ac_status=$?
19298: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299: (exit $ac_status); } &&
19300: { ac_try='test -s conftest$ac_exeext'
19301: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302: (eval $ac_try) 2>&5
19303: ac_status=$?
19304: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305: (exit $ac_status); }; }; then
19306: ac_cv_lib_dl_dlopen=yes
19307: else
19308: echo "$as_me: failed program was:" >&5
19309: sed 's/^/| /' conftest.$ac_ext >&5
19310:
19311: ac_cv_lib_dl_dlopen=no
19312: fi
19313: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19314: LIBS=$ac_check_lib_save_LIBS
19315: fi
19316: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19317: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19318: if test $ac_cv_lib_dl_dlopen = yes; then
19319: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19320: else
19321: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19322: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19323: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19324: echo $ECHO_N "(cached) $ECHO_C" >&6
19325: else
19326: ac_check_lib_save_LIBS=$LIBS
19327: LIBS="-lsvld $LIBS"
19328: cat >conftest.$ac_ext <<_ACEOF
19329: #line $LINENO "configure"
19330: /* confdefs.h. */
19331: _ACEOF
19332: cat confdefs.h >>conftest.$ac_ext
19333: cat >>conftest.$ac_ext <<_ACEOF
19334: /* end confdefs.h. */
19335:
19336: /* Override any gcc2 internal prototype to avoid an error. */
19337: #ifdef __cplusplus
19338: extern "C"
19339: #endif
19340: /* We use char because int might match the return type of a gcc2
19341: builtin and then its argument prototype would still apply. */
19342: char dlopen ();
19343: int
19344: main ()
19345: {
19346: dlopen ();
19347: ;
19348: return 0;
19349: }
19350: _ACEOF
19351: rm -f conftest.$ac_objext conftest$ac_exeext
19352: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19353: (eval $ac_link) 2>&5
19354: ac_status=$?
19355: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356: (exit $ac_status); } &&
19357: { ac_try='test -s conftest$ac_exeext'
19358: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359: (eval $ac_try) 2>&5
19360: ac_status=$?
19361: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362: (exit $ac_status); }; }; then
19363: ac_cv_lib_svld_dlopen=yes
19364: else
19365: echo "$as_me: failed program was:" >&5
19366: sed 's/^/| /' conftest.$ac_ext >&5
19367:
19368: ac_cv_lib_svld_dlopen=no
19369: fi
19370: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19371: LIBS=$ac_check_lib_save_LIBS
19372: fi
19373: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19374: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19375: if test $ac_cv_lib_svld_dlopen = yes; then
19376: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19377: else
19378: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19379: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19380: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19381: echo $ECHO_N "(cached) $ECHO_C" >&6
19382: else
19383: ac_check_lib_save_LIBS=$LIBS
19384: LIBS="-ldld $LIBS"
19385: cat >conftest.$ac_ext <<_ACEOF
19386: #line $LINENO "configure"
19387: /* confdefs.h. */
19388: _ACEOF
19389: cat confdefs.h >>conftest.$ac_ext
19390: cat >>conftest.$ac_ext <<_ACEOF
19391: /* end confdefs.h. */
19392:
19393: /* Override any gcc2 internal prototype to avoid an error. */
19394: #ifdef __cplusplus
19395: extern "C"
19396: #endif
19397: /* We use char because int might match the return type of a gcc2
19398: builtin and then its argument prototype would still apply. */
19399: char dld_link ();
19400: int
19401: main ()
19402: {
19403: dld_link ();
19404: ;
19405: return 0;
19406: }
19407: _ACEOF
19408: rm -f conftest.$ac_objext conftest$ac_exeext
19409: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19410: (eval $ac_link) 2>&5
19411: ac_status=$?
19412: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413: (exit $ac_status); } &&
19414: { ac_try='test -s conftest$ac_exeext'
19415: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416: (eval $ac_try) 2>&5
19417: ac_status=$?
19418: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419: (exit $ac_status); }; }; then
19420: ac_cv_lib_dld_dld_link=yes
19421: else
19422: echo "$as_me: failed program was:" >&5
19423: sed 's/^/| /' conftest.$ac_ext >&5
19424:
19425: ac_cv_lib_dld_dld_link=no
19426: fi
19427: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19428: LIBS=$ac_check_lib_save_LIBS
19429: fi
19430: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19431: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19432: if test $ac_cv_lib_dld_dld_link = yes; then
19433: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19434: fi
19435:
19436:
19437: fi
19438:
19439:
19440: fi
19441:
19442:
19443: fi
19444:
19445:
19446: fi
19447:
19448:
19449: fi
19450:
19451: ;;
19452: esac
19453:
19454: if test "x$lt_cv_dlopen" != xno; then
19455: enable_dlopen=yes
19456: else
19457: enable_dlopen=no
19458: fi
19459:
19460: case $lt_cv_dlopen in
19461: dlopen)
19462: save_CPPFLAGS="$CPPFLAGS"
19463: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19464:
19465: save_LDFLAGS="$LDFLAGS"
19466: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19467:
19468: save_LIBS="$LIBS"
19469: LIBS="$lt_cv_dlopen_libs $LIBS"
19470:
19471: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19472: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19473: if test "${lt_cv_dlopen_self+set}" = set; then
19474: echo $ECHO_N "(cached) $ECHO_C" >&6
19475: else
19476: if test "$cross_compiling" = yes; then :
19477: lt_cv_dlopen_self=cross
19478: else
19479: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19480: lt_status=$lt_dlunknown
19481: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root 19482: #line 19482 "configure"
1.1 root 19483: #include "confdefs.h"
19484:
19485: #if HAVE_DLFCN_H
19486: #include <dlfcn.h>
19487: #endif
19488:
19489: #include <stdio.h>
19490:
19491: #ifdef RTLD_GLOBAL
19492: # define LT_DLGLOBAL RTLD_GLOBAL
19493: #else
19494: # ifdef DL_GLOBAL
19495: # define LT_DLGLOBAL DL_GLOBAL
19496: # else
19497: # define LT_DLGLOBAL 0
19498: # endif
19499: #endif
19500:
19501: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19502: find out it does not work in some platform. */
19503: #ifndef LT_DLLAZY_OR_NOW
19504: # ifdef RTLD_LAZY
19505: # define LT_DLLAZY_OR_NOW RTLD_LAZY
19506: # else
19507: # ifdef DL_LAZY
19508: # define LT_DLLAZY_OR_NOW DL_LAZY
19509: # else
19510: # ifdef RTLD_NOW
19511: # define LT_DLLAZY_OR_NOW RTLD_NOW
19512: # else
19513: # ifdef DL_NOW
19514: # define LT_DLLAZY_OR_NOW DL_NOW
19515: # else
19516: # define LT_DLLAZY_OR_NOW 0
19517: # endif
19518: # endif
19519: # endif
19520: # endif
19521: #endif
19522:
19523: #ifdef __cplusplus
19524: extern "C" void exit (int);
19525: #endif
19526:
19527: void fnord() { int i=42;}
19528: int main ()
19529: {
19530: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19531: int status = $lt_dlunknown;
19532:
19533: if (self)
19534: {
19535: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19536: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19537: /* dlclose (self); */
19538: }
19539:
19540: exit (status);
19541: }
19542: EOF
19543: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19544: (eval $ac_link) 2>&5
19545: ac_status=$?
19546: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19548: (./conftest; exit; ) 2>/dev/null
19549: lt_status=$?
19550: case x$lt_status in
19551: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19552: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19553: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19554: esac
19555: else :
19556: # compilation failed
19557: lt_cv_dlopen_self=no
19558: fi
19559: fi
19560: rm -fr conftest*
19561:
19562:
19563: fi
19564: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19565: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19566:
19567: if test "x$lt_cv_dlopen_self" = xyes; then
19568: LDFLAGS="$LDFLAGS $link_static_flag"
19569: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19570: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19571: if test "${lt_cv_dlopen_self_static+set}" = set; then
19572: echo $ECHO_N "(cached) $ECHO_C" >&6
19573: else
19574: if test "$cross_compiling" = yes; then :
19575: lt_cv_dlopen_self_static=cross
19576: else
19577: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19578: lt_status=$lt_dlunknown
19579: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root 19580: #line 19580 "configure"
1.1 root 19581: #include "confdefs.h"
19582:
19583: #if HAVE_DLFCN_H
19584: #include <dlfcn.h>
19585: #endif
19586:
19587: #include <stdio.h>
19588:
19589: #ifdef RTLD_GLOBAL
19590: # define LT_DLGLOBAL RTLD_GLOBAL
19591: #else
19592: # ifdef DL_GLOBAL
19593: # define LT_DLGLOBAL DL_GLOBAL
19594: # else
19595: # define LT_DLGLOBAL 0
19596: # endif
19597: #endif
19598:
19599: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19600: find out it does not work in some platform. */
19601: #ifndef LT_DLLAZY_OR_NOW
19602: # ifdef RTLD_LAZY
19603: # define LT_DLLAZY_OR_NOW RTLD_LAZY
19604: # else
19605: # ifdef DL_LAZY
19606: # define LT_DLLAZY_OR_NOW DL_LAZY
19607: # else
19608: # ifdef RTLD_NOW
19609: # define LT_DLLAZY_OR_NOW RTLD_NOW
19610: # else
19611: # ifdef DL_NOW
19612: # define LT_DLLAZY_OR_NOW DL_NOW
19613: # else
19614: # define LT_DLLAZY_OR_NOW 0
19615: # endif
19616: # endif
19617: # endif
19618: # endif
19619: #endif
19620:
19621: #ifdef __cplusplus
19622: extern "C" void exit (int);
19623: #endif
19624:
19625: void fnord() { int i=42;}
19626: int main ()
19627: {
19628: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19629: int status = $lt_dlunknown;
19630:
19631: if (self)
19632: {
19633: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19634: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19635: /* dlclose (self); */
19636: }
19637:
19638: exit (status);
19639: }
19640: EOF
19641: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19642: (eval $ac_link) 2>&5
19643: ac_status=$?
19644: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19646: (./conftest; exit; ) 2>/dev/null
19647: lt_status=$?
19648: case x$lt_status in
19649: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19650: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19651: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19652: esac
19653: else :
19654: # compilation failed
19655: lt_cv_dlopen_self_static=no
19656: fi
19657: fi
19658: rm -fr conftest*
19659:
19660:
19661: fi
19662: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19663: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19664: fi
19665:
19666: CPPFLAGS="$save_CPPFLAGS"
19667: LDFLAGS="$save_LDFLAGS"
19668: LIBS="$save_LIBS"
19669: ;;
19670: esac
19671:
19672: case $lt_cv_dlopen_self in
19673: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19674: *) enable_dlopen_self=unknown ;;
19675: esac
19676:
19677: case $lt_cv_dlopen_self_static in
19678: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19679: *) enable_dlopen_self_static=unknown ;;
19680: esac
19681: fi
19682:
19683:
19684: # The else clause should only fire when bootstrapping the
19685: # libtool distribution, otherwise you forgot to ship ltmain.sh
19686: # with your package, and you will get complaints that there are
19687: # no rules to generate ltmain.sh.
19688: if test -f "$ltmain"; then
19689: # See if we are running on zsh, and set the options which allow our commands through
19690: # without removal of \ escapes.
19691: if test -n "${ZSH_VERSION+set}" ; then
19692: setopt NO_GLOB_SUBST
19693: fi
19694: # Now quote all the things that may contain metacharacters while being
19695: # careful not to overquote the AC_SUBSTed values. We take copies of the
19696: # variables and quote the copies for generation of the libtool script.
19697: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
19698: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19699: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19700: deplibs_check_method reload_flag reload_cmds need_locks \
19701: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19702: lt_cv_sys_global_symbol_to_c_name_address \
19703: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19704: old_postinstall_cmds old_postuninstall_cmds \
19705: compiler_CXX \
19706: CC_CXX \
19707: LD_CXX \
19708: lt_prog_compiler_wl_CXX \
19709: lt_prog_compiler_pic_CXX \
19710: lt_prog_compiler_static_CXX \
19711: lt_prog_compiler_no_builtin_flag_CXX \
19712: export_dynamic_flag_spec_CXX \
19713: thread_safe_flag_spec_CXX \
19714: whole_archive_flag_spec_CXX \
19715: enable_shared_with_static_runtimes_CXX \
19716: old_archive_cmds_CXX \
19717: old_archive_from_new_cmds_CXX \
19718: predep_objects_CXX \
19719: postdep_objects_CXX \
19720: predeps_CXX \
19721: postdeps_CXX \
19722: compiler_lib_search_path_CXX \
19723: archive_cmds_CXX \
19724: archive_expsym_cmds_CXX \
19725: postinstall_cmds_CXX \
19726: postuninstall_cmds_CXX \
19727: old_archive_from_expsyms_cmds_CXX \
19728: allow_undefined_flag_CXX \
19729: no_undefined_flag_CXX \
19730: export_symbols_cmds_CXX \
19731: hardcode_libdir_flag_spec_CXX \
19732: hardcode_libdir_flag_spec_ld_CXX \
19733: hardcode_libdir_separator_CXX \
19734: hardcode_automatic_CXX \
19735: module_cmds_CXX \
19736: module_expsym_cmds_CXX \
19737: lt_cv_prog_compiler_c_o_CXX \
19738: exclude_expsyms_CXX \
19739: include_expsyms_CXX; do
19740:
19741: case $var in
19742: old_archive_cmds_CXX | \
19743: old_archive_from_new_cmds_CXX | \
19744: archive_cmds_CXX | \
19745: archive_expsym_cmds_CXX | \
19746: module_cmds_CXX | \
19747: module_expsym_cmds_CXX | \
19748: old_archive_from_expsyms_cmds_CXX | \
19749: export_symbols_cmds_CXX | \
19750: extract_expsyms_cmds | reload_cmds | finish_cmds | \
19751: postinstall_cmds | postuninstall_cmds | \
19752: old_postinstall_cmds | old_postuninstall_cmds | \
19753: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19754: # Double-quote double-evaled strings.
19755: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19756: ;;
19757: *)
19758: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19759: ;;
19760: esac
19761: done
19762:
19763: case $lt_echo in
19764: *'\$0 --fallback-echo"')
19765: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19766: ;;
19767: esac
19768:
19769: cfgfile="$ofile"
19770:
19771: cat <<__EOF__ >> "$cfgfile"
19772: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19773:
19774: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19775:
19776: # Shell to use when invoking shell scripts.
19777: SHELL=$lt_SHELL
19778:
19779: # Whether or not to build shared libraries.
19780: build_libtool_libs=$enable_shared
19781:
19782: # Whether or not to build static libraries.
19783: build_old_libs=$enable_static
19784:
19785: # Whether or not to add -lc for building shared libraries.
19786: build_libtool_need_lc=$archive_cmds_need_lc_CXX
19787:
19788: # Whether or not to disallow shared libs when runtime libs are static
19789: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19790:
19791: # Whether or not to optimize for fast installation.
19792: fast_install=$enable_fast_install
19793:
19794: # The host system.
19795: host_alias=$host_alias
19796: host=$host
19797:
19798: # An echo program that does not interpret backslashes.
19799: echo=$lt_echo
19800:
19801: # The archiver.
19802: AR=$lt_AR
19803: AR_FLAGS=$lt_AR_FLAGS
19804:
19805: # A C compiler.
19806: LTCC=$lt_LTCC
19807:
19808: # A language-specific compiler.
19809: CC=$lt_compiler_CXX
19810:
19811: # Is the compiler the GNU C compiler?
19812: with_gcc=$GCC_CXX
19813:
19814: # An ERE matcher.
19815: EGREP=$lt_EGREP
19816:
19817: # The linker used to build libraries.
19818: LD=$lt_LD_CXX
19819:
19820: # Whether we need hard or soft links.
19821: LN_S=$lt_LN_S
19822:
19823: # A BSD-compatible nm program.
19824: NM=$lt_NM
19825:
19826: # A symbol stripping program
19827: STRIP=$STRIP
19828:
19829: # Used to examine libraries when file_magic_cmd begins "file"
19830: MAGIC_CMD=$MAGIC_CMD
19831:
19832: # Used on cygwin: DLL creation program.
19833: DLLTOOL="$DLLTOOL"
19834:
19835: # Used on cygwin: object dumper.
19836: OBJDUMP="$OBJDUMP"
19837:
19838: # Used on cygwin: assembler.
19839: AS="$AS"
19840:
19841: # The name of the directory that contains temporary libtool files.
19842: objdir=$objdir
19843:
19844: # How to create reloadable object files.
19845: reload_flag=$lt_reload_flag
19846: reload_cmds=$lt_reload_cmds
19847:
19848: # How to pass a linker flag through the compiler.
19849: wl=$lt_lt_prog_compiler_wl_CXX
19850:
19851: # Object file suffix (normally "o").
19852: objext="$ac_objext"
19853:
19854: # Old archive suffix (normally "a").
19855: libext="$libext"
19856:
19857: # Shared library suffix (normally ".so").
19858: shrext='$shrext'
19859:
19860: # Executable file suffix (normally "").
19861: exeext="$exeext"
19862:
19863: # Additional compiler flags for building library objects.
19864: pic_flag=$lt_lt_prog_compiler_pic_CXX
19865: pic_mode=$pic_mode
19866:
19867: # What is the maximum length of a command?
19868: max_cmd_len=$lt_cv_sys_max_cmd_len
19869:
19870: # Does compiler simultaneously support -c and -o options?
19871: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19872:
19873: # Must we lock files when doing compilation ?
19874: need_locks=$lt_need_locks
19875:
19876: # Do we need the lib prefix for modules?
19877: need_lib_prefix=$need_lib_prefix
19878:
19879: # Do we need a version for libraries?
19880: need_version=$need_version
19881:
19882: # Whether dlopen is supported.
19883: dlopen_support=$enable_dlopen
19884:
19885: # Whether dlopen of programs is supported.
19886: dlopen_self=$enable_dlopen_self
19887:
19888: # Whether dlopen of statically linked programs is supported.
19889: dlopen_self_static=$enable_dlopen_self_static
19890:
19891: # Compiler flag to prevent dynamic linking.
19892: link_static_flag=$lt_lt_prog_compiler_static_CXX
19893:
19894: # Compiler flag to turn off builtin functions.
19895: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19896:
19897: # Compiler flag to allow reflexive dlopens.
19898: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19899:
19900: # Compiler flag to generate shared objects directly from archives.
19901: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19902:
19903: # Compiler flag to generate thread-safe objects.
19904: thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19905:
19906: # Library versioning type.
19907: version_type=$version_type
19908:
19909: # Format of library name prefix.
19910: libname_spec=$lt_libname_spec
19911:
19912: # List of archive names. First name is the real one, the rest are links.
19913: # The last name is the one that the linker finds with -lNAME.
19914: library_names_spec=$lt_library_names_spec
19915:
19916: # The coded name of the library, if different from the real name.
19917: soname_spec=$lt_soname_spec
19918:
19919: # Commands used to build and install an old-style archive.
19920: RANLIB=$lt_RANLIB
19921: old_archive_cmds=$lt_old_archive_cmds_CXX
19922: old_postinstall_cmds=$lt_old_postinstall_cmds
19923: old_postuninstall_cmds=$lt_old_postuninstall_cmds
19924:
19925: # Create an old-style archive from a shared archive.
19926: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19927:
19928: # Create a temporary old-style archive to link instead of a shared archive.
19929: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19930:
19931: # Commands used to build and install a shared archive.
19932: archive_cmds=$lt_archive_cmds_CXX
19933: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19934: postinstall_cmds=$lt_postinstall_cmds
19935: postuninstall_cmds=$lt_postuninstall_cmds
19936:
19937: # Commands used to build a loadable module (assumed same as above if empty)
19938: module_cmds=$lt_module_cmds_CXX
19939: module_expsym_cmds=$lt_module_expsym_cmds_CXX
19940:
19941: # Commands to strip libraries.
19942: old_striplib=$lt_old_striplib
19943: striplib=$lt_striplib
19944:
19945: # Dependencies to place before the objects being linked to create a
19946: # shared library.
19947: predep_objects=$lt_predep_objects_CXX
19948:
19949: # Dependencies to place after the objects being linked to create a
19950: # shared library.
19951: postdep_objects=$lt_postdep_objects_CXX
19952:
19953: # Dependencies to place before the objects being linked to create a
19954: # shared library.
19955: predeps=$lt_predeps_CXX
19956:
19957: # Dependencies to place after the objects being linked to create a
19958: # shared library.
19959: postdeps=$lt_postdeps_CXX
19960:
19961: # The library search path used internally by the compiler when linking
19962: # a shared library.
19963: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19964:
19965: # Method to check whether dependent libraries are shared objects.
19966: deplibs_check_method=$lt_deplibs_check_method
19967:
19968: # Command to use when deplibs_check_method == file_magic.
19969: file_magic_cmd=$lt_file_magic_cmd
19970:
19971: # Flag that allows shared libraries with undefined symbols to be built.
19972: allow_undefined_flag=$lt_allow_undefined_flag_CXX
19973:
19974: # Flag that forces no undefined symbols.
19975: no_undefined_flag=$lt_no_undefined_flag_CXX
19976:
19977: # Commands used to finish a libtool library installation in a directory.
19978: finish_cmds=$lt_finish_cmds
19979:
19980: # Same as above, but a single script fragment to be evaled but not shown.
19981: finish_eval=$lt_finish_eval
19982:
19983: # Take the output of nm and produce a listing of raw symbols and C names.
19984: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19985:
19986: # Transform the output of nm in a proper C declaration
19987: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19988:
19989: # Transform the output of nm in a C name address pair
19990: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19991:
19992: # This is the shared library runtime path variable.
19993: runpath_var=$runpath_var
19994:
19995: # This is the shared library path variable.
19996: shlibpath_var=$shlibpath_var
19997:
19998: # Is shlibpath searched before the hard-coded library search path?
19999: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20000:
20001: # How to hardcode a shared library path into an executable.
20002: hardcode_action=$hardcode_action_CXX
20003:
20004: # Whether we should hardcode library paths into libraries.
20005: hardcode_into_libs=$hardcode_into_libs
20006:
20007: # Flag to hardcode \$libdir into a binary during linking.
20008: # This must work even if \$libdir does not exist.
20009: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20010:
20011: # If ld is used when linking, flag to hardcode \$libdir into
20012: # a binary during linking. This must work even if \$libdir does
20013: # not exist.
20014: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20015:
20016: # Whether we need a single -rpath flag with a separated argument.
20017: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20018:
20019: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20020: # resulting binary.
20021: hardcode_direct=$hardcode_direct_CXX
20022:
20023: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20024: # resulting binary.
20025: hardcode_minus_L=$hardcode_minus_L_CXX
20026:
20027: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20028: # the resulting binary.
20029: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20030:
20031: # Set to yes if building a shared library automatically hardcodes DIR into the library
20032: # and all subsequent libraries and executables linked against it.
20033: hardcode_automatic=$hardcode_automatic_CXX
20034:
20035: # Variables whose values should be saved in libtool wrapper scripts and
20036: # restored at relink time.
20037: variables_saved_for_relink="$variables_saved_for_relink"
20038:
20039: # Whether libtool must link a program against all its dependency libraries.
20040: link_all_deplibs=$link_all_deplibs_CXX
20041:
20042: # Compile-time system search path for libraries
20043: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20044:
20045: # Run-time system search path for libraries
20046: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20047:
20048: # Fix the shell variable \$srcfile for the compiler.
20049: fix_srcfile_path="$fix_srcfile_path_CXX"
20050:
20051: # Set to yes if exported symbols are required.
20052: always_export_symbols=$always_export_symbols_CXX
20053:
20054: # The commands to list exported symbols.
20055: export_symbols_cmds=$lt_export_symbols_cmds_CXX
20056:
20057: # The commands to extract the exported symbol list from a shared archive.
20058: extract_expsyms_cmds=$lt_extract_expsyms_cmds
20059:
20060: # Symbols that should not be listed in the preloaded symbols.
20061: exclude_expsyms=$lt_exclude_expsyms_CXX
20062:
20063: # Symbols that must always be exported.
20064: include_expsyms=$lt_include_expsyms_CXX
20065:
20066: # ### END LIBTOOL TAG CONFIG: $tagname
20067:
20068: __EOF__
20069:
20070:
20071: else
20072: # If there is no Makefile yet, we rely on a make rule to execute
20073: # `config.status --recheck' to rerun these tests and create the
20074: # libtool script then.
20075: test -f Makefile && make "$ltmain"
20076: fi
20077:
20078:
20079: ac_ext=c
20080: ac_cpp='$CPP $CPPFLAGS'
20081: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20082: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20083: ac_compiler_gnu=$ac_cv_c_compiler_gnu
20084:
20085: CC=$lt_save_CC
20086: LDCXX=$LD
20087: LD=$lt_save_LD
20088: GCC=$lt_save_GCC
20089: with_gnu_ldcxx=$with_gnu_ld
20090: with_gnu_ld=$lt_save_with_gnu_ld
20091: lt_cv_path_LDCXX=$lt_cv_path_LD
20092: lt_cv_path_LD=$lt_save_path_LD
20093: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20094: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20095:
20096: else
20097: tagname=""
20098: fi
20099: ;;
20100:
20101: F77)
20102: if test -n "$F77" && test "X$F77" != "Xno"; then
20103:
20104: ac_ext=f
20105: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20106: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20107: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20108:
20109:
20110: archive_cmds_need_lc_F77=no
20111: allow_undefined_flag_F77=
20112: always_export_symbols_F77=no
20113: archive_expsym_cmds_F77=
20114: export_dynamic_flag_spec_F77=
20115: hardcode_direct_F77=no
20116: hardcode_libdir_flag_spec_F77=
20117: hardcode_libdir_flag_spec_ld_F77=
20118: hardcode_libdir_separator_F77=
20119: hardcode_minus_L_F77=no
20120: hardcode_automatic_F77=no
20121: module_cmds_F77=
20122: module_expsym_cmds_F77=
20123: link_all_deplibs_F77=unknown
20124: old_archive_cmds_F77=$old_archive_cmds
20125: no_undefined_flag_F77=
20126: whole_archive_flag_spec_F77=
20127: enable_shared_with_static_runtimes_F77=no
20128:
20129: # Source file extension for f77 test sources.
20130: ac_ext=f
20131:
20132: # Object file extension for compiled f77 test sources.
20133: objext=o
20134: objext_F77=$objext
20135:
20136: # Code to be used in simple compile tests
20137: lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20138:
20139: # Code to be used in simple link tests
20140: lt_simple_link_test_code=" program t\n end\n"
20141:
20142: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20143:
20144: # If no C compiler was specified, use CC.
20145: LTCC=${LTCC-"$CC"}
20146:
20147: # Allow CC to be a program name with arguments.
20148: compiler=$CC
20149:
20150:
20151: # Allow CC to be a program name with arguments.
20152: lt_save_CC="$CC"
20153: CC=${F77-"f77"}
20154: compiler=$CC
20155: compiler_F77=$CC
20156: cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
20157:
20158: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20159: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20160: echo "$as_me:$LINENO: result: $can_build_shared" >&5
20161: echo "${ECHO_T}$can_build_shared" >&6
20162:
20163: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20164: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20165: test "$can_build_shared" = "no" && enable_shared=no
20166:
20167: # On AIX, shared libraries and static libraries use the same namespace, and
20168: # are all built from PIC.
20169: case "$host_os" in
20170: aix3*)
20171: test "$enable_shared" = yes && enable_static=no
20172: if test -n "$RANLIB"; then
20173: archive_cmds="$archive_cmds~\$RANLIB \$lib"
20174: postinstall_cmds='$RANLIB $lib'
20175: fi
20176: ;;
20177: aix4*)
20178: test "$enable_shared" = yes && enable_static=no
20179: ;;
20180: esac
20181: echo "$as_me:$LINENO: result: $enable_shared" >&5
20182: echo "${ECHO_T}$enable_shared" >&6
20183:
20184: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20185: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20186: # Make sure either enable_shared or enable_static is yes.
20187: test "$enable_shared" = yes || enable_static=yes
20188: echo "$as_me:$LINENO: result: $enable_static" >&5
20189: echo "${ECHO_T}$enable_static" >&6
20190:
20191: test "$ld_shlibs_F77" = no && can_build_shared=no
20192:
20193: GCC_F77="$G77"
20194: LD_F77="$LD"
20195:
20196: lt_prog_compiler_wl_F77=
20197: lt_prog_compiler_pic_F77=
20198: lt_prog_compiler_static_F77=
20199:
20200: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20201: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20202:
20203: if test "$GCC" = yes; then
20204: lt_prog_compiler_wl_F77='-Wl,'
20205: lt_prog_compiler_static_F77='-static'
20206:
20207: case $host_os in
20208: aix*)
20209: # All AIX code is PIC.
20210: if test "$host_cpu" = ia64; then
20211: # AIX 5 now supports IA64 processor
20212: lt_prog_compiler_static_F77='-Bstatic'
20213: fi
20214: ;;
20215:
20216: amigaos*)
20217: # FIXME: we need at least 68020 code to build shared libraries, but
20218: # adding the `-m68020' flag to GCC prevents building anything better,
20219: # like `-m68040'.
20220: lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20221: ;;
20222:
20223: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20224: # PIC is the default for these OSes.
20225: ;;
20226:
20227: mingw* | pw32* | os2*)
20228: # This hack is so that the source file can tell whether it is being
20229: # built for inclusion in a dll (and should export symbols for example).
20230: lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20231: ;;
20232:
20233: darwin* | rhapsody*)
20234: # PIC is the default on this platform
20235: # Common symbols not allowed in MH_DYLIB files
20236: lt_prog_compiler_pic_F77='-fno-common'
20237: ;;
20238:
20239: msdosdjgpp*)
20240: # Just because we use GCC doesn't mean we suddenly get shared libraries
20241: # on systems that don't support them.
20242: lt_prog_compiler_can_build_shared_F77=no
20243: enable_shared=no
20244: ;;
20245:
20246: sysv4*MP*)
20247: if test -d /usr/nec; then
20248: lt_prog_compiler_pic_F77=-Kconform_pic
20249: fi
20250: ;;
20251:
20252: hpux*)
20253: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20254: # not for PA HP-UX.
20255: case "$host_cpu" in
20256: hppa*64*|ia64*)
20257: # +Z the default
20258: ;;
20259: *)
20260: lt_prog_compiler_pic_F77='-fPIC'
20261: ;;
20262: esac
20263: ;;
20264:
20265: *)
20266: lt_prog_compiler_pic_F77='-fPIC'
20267: ;;
20268: esac
20269: else
20270: # PORTME Check for flag to pass linker flags through the system compiler.
20271: case $host_os in
20272: aix*)
20273: lt_prog_compiler_wl_F77='-Wl,'
20274: if test "$host_cpu" = ia64; then
20275: # AIX 5 now supports IA64 processor
20276: lt_prog_compiler_static_F77='-Bstatic'
20277: else
20278: lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20279: fi
20280: ;;
20281:
20282: mingw* | pw32* | os2*)
20283: # This hack is so that the source file can tell whether it is being
20284: # built for inclusion in a dll (and should export symbols for example).
20285: lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20286: ;;
20287:
20288: hpux9* | hpux10* | hpux11*)
20289: lt_prog_compiler_wl_F77='-Wl,'
20290: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20291: # not for PA HP-UX.
20292: case "$host_cpu" in
20293: hppa*64*|ia64*)
20294: # +Z the default
20295: ;;
20296: *)
20297: lt_prog_compiler_pic_F77='+Z'
20298: ;;
20299: esac
20300: # Is there a better lt_prog_compiler_static that works with the bundled CC?
20301: lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20302: ;;
20303:
20304: irix5* | irix6* | nonstopux*)
20305: lt_prog_compiler_wl_F77='-Wl,'
20306: # PIC (with -KPIC) is the default.
20307: lt_prog_compiler_static_F77='-non_shared'
20308: ;;
20309:
20310: newsos6)
20311: lt_prog_compiler_pic_F77='-KPIC'
20312: lt_prog_compiler_static_F77='-Bstatic'
20313: ;;
20314:
20315: linux*)
20316: case $CC in
20317: icc|ecc)
20318: lt_prog_compiler_wl_F77='-Wl,'
20319: lt_prog_compiler_pic_F77='-KPIC'
20320: lt_prog_compiler_static_F77='-static'
20321: ;;
20322: ccc)
20323: lt_prog_compiler_wl_F77='-Wl,'
20324: # All Alpha code is PIC.
20325: lt_prog_compiler_static_F77='-non_shared'
20326: ;;
20327: esac
20328: ;;
20329:
20330: osf3* | osf4* | osf5*)
20331: lt_prog_compiler_wl_F77='-Wl,'
20332: # All OSF/1 code is PIC.
20333: lt_prog_compiler_static_F77='-non_shared'
20334: ;;
20335:
20336: sco3.2v5*)
20337: lt_prog_compiler_pic_F77='-Kpic'
20338: lt_prog_compiler_static_F77='-dn'
20339: ;;
20340:
20341: solaris*)
20342: lt_prog_compiler_wl_F77='-Wl,'
20343: lt_prog_compiler_pic_F77='-KPIC'
20344: lt_prog_compiler_static_F77='-Bstatic'
20345: ;;
20346:
20347: sunos4*)
20348: lt_prog_compiler_wl_F77='-Qoption ld '
20349: lt_prog_compiler_pic_F77='-PIC'
20350: lt_prog_compiler_static_F77='-Bstatic'
20351: ;;
20352:
20353: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20354: lt_prog_compiler_wl_F77='-Wl,'
20355: lt_prog_compiler_pic_F77='-KPIC'
20356: lt_prog_compiler_static_F77='-Bstatic'
20357: ;;
20358:
20359: sysv4*MP*)
20360: if test -d /usr/nec ;then
20361: lt_prog_compiler_pic_F77='-Kconform_pic'
20362: lt_prog_compiler_static_F77='-Bstatic'
20363: fi
20364: ;;
20365:
20366: uts4*)
20367: lt_prog_compiler_pic_F77='-pic'
20368: lt_prog_compiler_static_F77='-Bstatic'
20369: ;;
20370:
20371: *)
20372: lt_prog_compiler_can_build_shared_F77=no
20373: ;;
20374: esac
20375: fi
20376:
20377: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20378: echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
20379:
20380: #
20381: # Check to make sure the PIC flag actually works.
20382: #
20383: if test -n "$lt_prog_compiler_pic_F77"; then
20384: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20385: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
20386: if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20387: echo $ECHO_N "(cached) $ECHO_C" >&6
20388: else
20389: lt_prog_compiler_pic_works_F77=no
20390: ac_outfile=conftest.$ac_objext
20391: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20392: lt_compiler_flag="$lt_prog_compiler_pic_F77"
20393: # Insert the option either (1) after the last *FLAGS variable, or
20394: # (2) before a word containing "conftest.", or (3) at the end.
20395: # Note that $ac_compile itself does not contain backslashes and begins
20396: # with a dollar sign (not a hyphen), so the echo should work correctly.
20397: # The option is referenced via a variable to avoid confusing sed.
20398: lt_compile=`echo "$ac_compile" | $SED \
20399: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20400: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20401: -e 's:$: $lt_compiler_flag:'`
1.1.1.3 ! root 20402: (eval echo "\"\$as_me:20402: $lt_compile\"" >&5)
1.1 root 20403: (eval "$lt_compile" 2>conftest.err)
20404: ac_status=$?
20405: cat conftest.err >&5
1.1.1.3 ! root 20406: echo "$as_me:20406: \$? = $ac_status" >&5
1.1 root 20407: if (exit $ac_status) && test -s "$ac_outfile"; then
20408: # The compiler can only warn and ignore the option if not recognized
20409: # So say no if there are warnings
20410: if test ! -s conftest.err; then
20411: lt_prog_compiler_pic_works_F77=yes
20412: fi
20413: fi
20414: $rm conftest*
20415:
20416: fi
20417: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20418: echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
20419:
20420: if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20421: case $lt_prog_compiler_pic_F77 in
20422: "" | " "*) ;;
20423: *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20424: esac
20425: else
20426: lt_prog_compiler_pic_F77=
20427: lt_prog_compiler_can_build_shared_F77=no
20428: fi
20429:
20430: fi
20431: case "$host_os" in
20432: # For platforms which do not support PIC, -DPIC is meaningless:
20433: *djgpp*)
20434: lt_prog_compiler_pic_F77=
20435: ;;
20436: *)
20437: lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20438: ;;
20439: esac
20440:
20441: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20442: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
20443: if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20444: echo $ECHO_N "(cached) $ECHO_C" >&6
20445: else
20446: lt_cv_prog_compiler_c_o_F77=no
20447: $rm -r conftest 2>/dev/null
20448: mkdir conftest
20449: cd conftest
20450: mkdir out
20451: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20452:
20453: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
20454: # that will create temporary files in the current directory regardless of
20455: # the output directory. Thus, making CWD read-only will cause this test
20456: # to fail, enabling locking or at least warning the user not to do parallel
20457: # builds.
20458: chmod -w .
20459:
20460: lt_compiler_flag="-o out/conftest2.$ac_objext"
20461: # Insert the option either (1) after the last *FLAGS variable, or
20462: # (2) before a word containing "conftest.", or (3) at the end.
20463: # Note that $ac_compile itself does not contain backslashes and begins
20464: # with a dollar sign (not a hyphen), so the echo should work correctly.
20465: lt_compile=`echo "$ac_compile" | $SED \
20466: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20467: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20468: -e 's:$: $lt_compiler_flag:'`
1.1.1.3 ! root 20469: (eval echo "\"\$as_me:20469: $lt_compile\"" >&5)
1.1 root 20470: (eval "$lt_compile" 2>out/conftest.err)
20471: ac_status=$?
20472: cat out/conftest.err >&5
1.1.1.3 ! root 20473: echo "$as_me:20473: \$? = $ac_status" >&5
1.1 root 20474: if (exit $ac_status) && test -s out/conftest2.$ac_objext
20475: then
20476: # The compiler can only warn and ignore the option if not recognized
20477: # So say no if there are warnings
20478: if test ! -s out/conftest.err; then
20479: lt_cv_prog_compiler_c_o_F77=yes
20480: fi
20481: fi
20482: chmod u+w .
20483: $rm conftest* out/*
20484: rmdir out
20485: cd ..
20486: rmdir conftest
20487: $rm conftest*
20488:
20489: fi
20490: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20491: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
20492:
20493:
20494: hard_links="nottested"
20495: if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20496: # do not overwrite the value of need_locks provided by the user
20497: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20498: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20499: hard_links=yes
20500: $rm conftest*
20501: ln conftest.a conftest.b 2>/dev/null && hard_links=no
20502: touch conftest.a
20503: ln conftest.a conftest.b 2>&5 || hard_links=no
20504: ln conftest.a conftest.b 2>/dev/null && hard_links=no
20505: echo "$as_me:$LINENO: result: $hard_links" >&5
20506: echo "${ECHO_T}$hard_links" >&6
20507: if test "$hard_links" = no; then
20508: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20509: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20510: need_locks=warn
20511: fi
20512: else
20513: need_locks=no
20514: fi
20515:
20516: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20517: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20518:
20519: runpath_var=
20520: allow_undefined_flag_F77=
20521: enable_shared_with_static_runtimes_F77=no
20522: archive_cmds_F77=
20523: archive_expsym_cmds_F77=
20524: old_archive_From_new_cmds_F77=
20525: old_archive_from_expsyms_cmds_F77=
20526: export_dynamic_flag_spec_F77=
20527: whole_archive_flag_spec_F77=
20528: thread_safe_flag_spec_F77=
20529: hardcode_libdir_flag_spec_F77=
20530: hardcode_libdir_flag_spec_ld_F77=
20531: hardcode_libdir_separator_F77=
20532: hardcode_direct_F77=no
20533: hardcode_minus_L_F77=no
20534: hardcode_shlibpath_var_F77=unsupported
20535: link_all_deplibs_F77=unknown
20536: hardcode_automatic_F77=no
20537: module_cmds_F77=
20538: module_expsym_cmds_F77=
20539: always_export_symbols_F77=no
20540: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20541: # include_expsyms should be a list of space-separated symbols to be *always*
20542: # included in the symbol list
20543: include_expsyms_F77=
20544: # exclude_expsyms can be an extended regexp of symbols to exclude
20545: # it will be wrapped by ` (' and `)$', so one must not match beginning or
20546: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20547: # as well as any symbol that contains `d'.
20548: exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20549: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20550: # platforms (ab)use it in PIC code, but their linkers get confused if
20551: # the symbol is explicitly referenced. Since portable code cannot
20552: # rely on this symbol name, it's probably fine to never include it in
20553: # preloaded symbol tables.
20554: extract_expsyms_cmds=
20555:
20556: case $host_os in
20557: cygwin* | mingw* | pw32*)
20558: # FIXME: the MSVC++ port hasn't been tested in a loooong time
20559: # When not using gcc, we currently assume that we are using
20560: # Microsoft Visual C++.
20561: if test "$GCC" != yes; then
20562: with_gnu_ld=no
20563: fi
20564: ;;
20565: openbsd*)
20566: with_gnu_ld=no
20567: ;;
20568: esac
20569:
20570: ld_shlibs_F77=yes
20571: if test "$with_gnu_ld" = yes; then
20572: # If archive_cmds runs LD, not CC, wlarc should be empty
20573: wlarc='${wl}'
20574:
20575: # See if GNU ld supports shared libraries.
20576: case $host_os in
20577: aix3* | aix4* | aix5*)
20578: # On AIX/PPC, the GNU linker is very broken
20579: if test "$host_cpu" != ia64; then
20580: ld_shlibs_F77=no
20581: cat <<EOF 1>&2
20582:
20583: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20584: *** to be unable to reliably create shared libraries on AIX.
20585: *** Therefore, libtool is disabling shared libraries support. If you
20586: *** really care for shared libraries, you may want to modify your PATH
20587: *** so that a non-GNU linker is found, and then restart.
20588:
20589: EOF
20590: fi
20591: ;;
20592:
20593: amigaos*)
20594: archive_cmds_F77='$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)'
20595: hardcode_libdir_flag_spec_F77='-L$libdir'
20596: hardcode_minus_L_F77=yes
20597:
20598: # Samuel A. Falvo II <[email protected]> reports
20599: # that the semantics of dynamic libraries on AmigaOS, at least up
20600: # to version 4, is to share data among multiple programs linked
20601: # with the same dynamic library. Since this doesn't match the
20602: # behavior of shared libraries on other platforms, we can't use
20603: # them.
20604: ld_shlibs_F77=no
20605: ;;
20606:
20607: beos*)
20608: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20609: allow_undefined_flag_F77=unsupported
20610: # Joseph Beckenbach <[email protected]> says some releases of gcc
20611: # support --undefined. This deserves some investigation. FIXME
20612: archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20613: else
20614: ld_shlibs_F77=no
20615: fi
20616: ;;
20617:
20618: cygwin* | mingw* | pw32*)
20619: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20620: # as there is no search path for DLLs.
20621: hardcode_libdir_flag_spec_F77='-L$libdir'
20622: allow_undefined_flag_F77=unsupported
20623: always_export_symbols_F77=no
20624: enable_shared_with_static_runtimes_F77=yes
20625: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20626:
20627: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20628: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20629: # If the export-symbols file already is a .def file (1st line
20630: # is EXPORTS), use it as is; otherwise, prepend...
20631: archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20632: cp $export_symbols $output_objdir/$soname.def;
20633: else
20634: echo EXPORTS > $output_objdir/$soname.def;
20635: cat $export_symbols >> $output_objdir/$soname.def;
20636: fi~
20637: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20638: else
20639: ld_shlibs=no
20640: fi
20641: ;;
20642:
20643: netbsd*)
20644: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20645: archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20646: wlarc=
20647: else
20648: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20649: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20650: fi
20651: ;;
20652:
20653: solaris* | sysv5*)
20654: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20655: ld_shlibs_F77=no
20656: cat <<EOF 1>&2
20657:
20658: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20659: *** create shared libraries on Solaris systems. Therefore, libtool
20660: *** is disabling shared libraries support. We urge you to upgrade GNU
20661: *** binutils to release 2.9.1 or newer. Another option is to modify
20662: *** your PATH or compiler configuration so that the native linker is
20663: *** used, and then restart.
20664:
20665: EOF
20666: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20667: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20668: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20669: else
20670: ld_shlibs_F77=no
20671: fi
20672: ;;
20673:
20674: sunos4*)
20675: archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20676: wlarc=
20677: hardcode_direct_F77=yes
20678: hardcode_shlibpath_var_F77=no
20679: ;;
20680:
20681: *)
20682: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20683: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20684: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20685: else
20686: ld_shlibs_F77=no
20687: fi
20688: ;;
20689: esac
20690:
20691: if test "$ld_shlibs_F77" = yes; then
20692: runpath_var=LD_RUN_PATH
20693: hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20694: export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20695: # ancient GNU ld didn't support --whole-archive et. al.
20696: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20697: whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20698: else
20699: whole_archive_flag_spec_F77=
20700: fi
20701: fi
20702: else
20703: # PORTME fill in a description of your system's linker (not GNU ld)
20704: case $host_os in
20705: aix3*)
20706: allow_undefined_flag_F77=unsupported
20707: always_export_symbols_F77=yes
20708: archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
20709: # Note: this linker hardcodes the directories in LIBPATH if there
20710: # are no directories specified by -L.
20711: hardcode_minus_L_F77=yes
20712: if test "$GCC" = yes && test -z "$link_static_flag"; then
20713: # Neither direct hardcoding nor static linking is supported with a
20714: # broken collect2.
20715: hardcode_direct_F77=unsupported
20716: fi
20717: ;;
20718:
20719: aix4* | aix5*)
20720: if test "$host_cpu" = ia64; then
20721: # On IA64, the linker does run time linking by default, so we don't
20722: # have to do anything special.
20723: aix_use_runtimelinking=no
20724: exp_sym_flag='-Bexport'
20725: no_entry_flag=""
20726: else
20727: # If we're using GNU nm, then we don't want the "-C" option.
20728: # -C means demangle to AIX nm, but means don't demangle with GNU nm
20729: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20730: export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20731: else
20732: export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20733: fi
20734: aix_use_runtimelinking=no
20735:
20736: # Test if we are trying to use run time linking or normal
20737: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20738: # need to do runtime linking.
20739: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20740: for ld_flag in $LDFLAGS; do
20741: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20742: aix_use_runtimelinking=yes
20743: break
20744: fi
20745: done
20746: esac
20747:
20748: exp_sym_flag='-bexport'
20749: no_entry_flag='-bnoentry'
20750: fi
20751:
20752: # When large executables or shared objects are built, AIX ld can
20753: # have problems creating the table of contents. If linking a library
20754: # or program results in "error TOC overflow" add -mminimal-toc to
20755: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20756: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20757:
20758: archive_cmds_F77=''
20759: hardcode_direct_F77=yes
20760: hardcode_libdir_separator_F77=':'
20761: link_all_deplibs_F77=yes
20762:
20763: if test "$GCC" = yes; then
20764: case $host_os in aix4.012|aix4.012.*)
20765: # We only want to do this on AIX 4.2 and lower, the check
20766: # below for broken collect2 doesn't work under 4.3+
20767: collect2name=`${CC} -print-prog-name=collect2`
20768: if test -f "$collect2name" && \
20769: strings "$collect2name" | grep resolve_lib_name >/dev/null
20770: then
20771: # We have reworked collect2
20772: hardcode_direct_F77=yes
20773: else
20774: # We have old collect2
20775: hardcode_direct_F77=unsupported
20776: # It fails to find uninstalled libraries when the uninstalled
20777: # path is not listed in the libpath. Setting hardcode_minus_L
20778: # to unsupported forces relinking
20779: hardcode_minus_L_F77=yes
20780: hardcode_libdir_flag_spec_F77='-L$libdir'
20781: hardcode_libdir_separator_F77=
20782: fi
20783: esac
20784: shared_flag='-shared'
20785: else
20786: # not using gcc
20787: if test "$host_cpu" = ia64; then
20788: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20789: # chokes on -Wl,-G. The following line is correct:
20790: shared_flag='-G'
20791: else
20792: if test "$aix_use_runtimelinking" = yes; then
20793: shared_flag='${wl}-G'
20794: else
20795: shared_flag='${wl}-bM:SRE'
20796: fi
20797: fi
20798: fi
20799:
20800: # It seems that -bexpall does not export symbols beginning with
20801: # underscore (_), so it is better to generate a list of symbols to export.
20802: always_export_symbols_F77=yes
20803: if test "$aix_use_runtimelinking" = yes; then
20804: # Warning - without using the other runtime loading flags (-brtl),
20805: # -berok will link without error, but may produce a broken library.
20806: allow_undefined_flag_F77='-berok'
20807: # Determine the default libpath from the value encoded in an empty executable.
20808: cat >conftest.$ac_ext <<_ACEOF
20809: program main
20810:
20811: end
20812: _ACEOF
20813: rm -f conftest.$ac_objext conftest$ac_exeext
20814: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20815: (eval $ac_link) 2>&5
20816: ac_status=$?
20817: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818: (exit $ac_status); } &&
20819: { ac_try='test -s conftest$ac_exeext'
20820: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821: (eval $ac_try) 2>&5
20822: ac_status=$?
20823: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824: (exit $ac_status); }; }; then
20825:
20826: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20827: }'`
20828: # Check for a 64-bit object if we didn't find anything.
20829: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20830: }'`; fi
20831: else
20832: echo "$as_me: failed program was:" >&5
20833: sed 's/^/| /' conftest.$ac_ext >&5
20834:
20835: fi
20836: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20837: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20838:
20839: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20840: archive_expsym_cmds_F77="\$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"
20841: else
20842: if test "$host_cpu" = ia64; then
20843: hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20844: allow_undefined_flag_F77="-z nodefs"
20845: archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
20846: else
20847: # Determine the default libpath from the value encoded in an empty executable.
20848: cat >conftest.$ac_ext <<_ACEOF
20849: program main
20850:
20851: end
20852: _ACEOF
20853: rm -f conftest.$ac_objext conftest$ac_exeext
20854: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20855: (eval $ac_link) 2>&5
20856: ac_status=$?
20857: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858: (exit $ac_status); } &&
20859: { ac_try='test -s conftest$ac_exeext'
20860: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20861: (eval $ac_try) 2>&5
20862: ac_status=$?
20863: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864: (exit $ac_status); }; }; then
20865:
20866: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20867: }'`
20868: # Check for a 64-bit object if we didn't find anything.
20869: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20870: }'`; fi
20871: else
20872: echo "$as_me: failed program was:" >&5
20873: sed 's/^/| /' conftest.$ac_ext >&5
20874:
20875: fi
20876: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20877: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20878:
20879: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20880: # Warning - without using the other run time loading flags,
20881: # -berok will link without error, but may produce a broken library.
20882: no_undefined_flag_F77=' ${wl}-bernotok'
20883: allow_undefined_flag_F77=' ${wl}-berok'
20884: # -bexpall does not export symbols beginning with underscore (_)
20885: always_export_symbols_F77=yes
20886: # Exported symbols can be pulled into shared objects from archives
20887: whole_archive_flag_spec_F77=' '
20888: archive_cmds_need_lc_F77=yes
20889: # This is similar to how AIX traditionally builds it's shared libraries.
20890: archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
20891: fi
20892: fi
20893: ;;
20894:
20895: amigaos*)
20896: archive_cmds_F77='$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)'
20897: hardcode_libdir_flag_spec_F77='-L$libdir'
20898: hardcode_minus_L_F77=yes
20899: # see comment about different semantics on the GNU ld section
20900: ld_shlibs_F77=no
20901: ;;
20902:
20903: bsdi4*)
20904: export_dynamic_flag_spec_F77=-rdynamic
20905: ;;
20906:
20907: cygwin* | mingw* | pw32*)
20908: # When not using gcc, we currently assume that we are using
20909: # Microsoft Visual C++.
20910: # hardcode_libdir_flag_spec is actually meaningless, as there is
20911: # no search path for DLLs.
20912: hardcode_libdir_flag_spec_F77=' '
20913: allow_undefined_flag_F77=unsupported
20914: # Tell ltmain to make .lib files, not .a files.
20915: libext=lib
20916: # Tell ltmain to make .dll files, not .so files.
20917: shrext=".dll"
20918: # FIXME: Setting linknames here is a bad hack.
20919: archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20920: # The linker will automatically build a .lib file if we build a DLL.
20921: old_archive_From_new_cmds_F77='true'
20922: # FIXME: Should let the user specify the lib program.
20923: old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20924: fix_srcfile_path='`cygpath -w "$srcfile"`'
20925: enable_shared_with_static_runtimes_F77=yes
20926: ;;
20927:
20928: darwin* | rhapsody*)
20929: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
20930: archive_cmds_need_lc_F77=no
20931: case "$host_os" in
20932: rhapsody* | darwin1.[012])
20933: allow_undefined_flag_F77='-undefined suppress'
20934: ;;
20935: *) # Darwin 1.3 on
20936: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
20937: ;;
20938: esac
20939: # FIXME: Relying on posixy $() will cause problems for
20940: # cross-compilation, but unfortunately the echo tests do not
20941: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
20942: # `"' quotes if we put them in here... so don't!
20943: lt_int_apple_cc_single_mod=no
20944: output_verbose_link_cmd='echo'
20945: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
20946: lt_int_apple_cc_single_mod=yes
20947: fi
20948: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20949: archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20950: else
20951: archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20952: fi
20953: module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
20954: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20955: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20956: archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20957: else
20958: archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20959: fi
20960: module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20961: hardcode_direct_F77=no
20962: hardcode_automatic_F77=yes
20963: hardcode_shlibpath_var_F77=unsupported
20964: whole_archive_flag_spec_F77='-all_load $convenience'
20965: link_all_deplibs_F77=yes
20966: fi
20967: ;;
20968:
20969: dgux*)
20970: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20971: hardcode_libdir_flag_spec_F77='-L$libdir'
20972: hardcode_shlibpath_var_F77=no
20973: ;;
20974:
20975: freebsd1*)
20976: ld_shlibs_F77=no
20977: ;;
20978:
20979: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20980: # support. Future versions do this automatically, but an explicit c++rt0.o
20981: # does not break anything, and helps significantly (at the cost of a little
20982: # extra space).
20983: freebsd2.2*)
20984: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20985: hardcode_libdir_flag_spec_F77='-R$libdir'
20986: hardcode_direct_F77=yes
20987: hardcode_shlibpath_var_F77=no
20988: ;;
20989:
20990: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20991: freebsd2*)
20992: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20993: hardcode_direct_F77=yes
20994: hardcode_minus_L_F77=yes
20995: hardcode_shlibpath_var_F77=no
20996: ;;
20997:
20998: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20999: freebsd*)
21000: archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21001: hardcode_libdir_flag_spec_F77='-R$libdir'
21002: hardcode_direct_F77=yes
21003: hardcode_shlibpath_var_F77=no
21004: ;;
21005:
21006: hpux9*)
21007: if test "$GCC" = yes; then
21008: archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
21009: else
21010: archive_cmds_F77='$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'
21011: fi
21012: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21013: hardcode_libdir_separator_F77=:
21014: hardcode_direct_F77=yes
21015:
21016: # hardcode_minus_L: Not really in the search PATH,
21017: # but as the default location of the library.
21018: hardcode_minus_L_F77=yes
21019: export_dynamic_flag_spec_F77='${wl}-E'
21020: ;;
21021:
21022: hpux10* | hpux11*)
21023: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21024: case "$host_cpu" in
21025: hppa*64*|ia64*)
21026: archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21027: ;;
21028: *)
21029: archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21030: ;;
21031: esac
21032: else
21033: case "$host_cpu" in
21034: hppa*64*|ia64*)
21035: archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21036: ;;
21037: *)
21038: archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21039: ;;
21040: esac
21041: fi
21042: if test "$with_gnu_ld" = no; then
21043: case "$host_cpu" in
21044: hppa*64*)
21045: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21046: hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21047: hardcode_libdir_separator_F77=:
21048: hardcode_direct_F77=no
21049: hardcode_shlibpath_var_F77=no
21050: ;;
21051: ia64*)
21052: hardcode_libdir_flag_spec_F77='-L$libdir'
21053: hardcode_direct_F77=no
21054: hardcode_shlibpath_var_F77=no
21055:
21056: # hardcode_minus_L: Not really in the search PATH,
21057: # but as the default location of the library.
21058: hardcode_minus_L_F77=yes
21059: ;;
21060: *)
21061: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21062: hardcode_libdir_separator_F77=:
21063: hardcode_direct_F77=yes
21064: export_dynamic_flag_spec_F77='${wl}-E'
21065:
21066: # hardcode_minus_L: Not really in the search PATH,
21067: # but as the default location of the library.
21068: hardcode_minus_L_F77=yes
21069: ;;
21070: esac
21071: fi
21072: ;;
21073:
21074: irix5* | irix6* | nonstopux*)
21075: if test "$GCC" = yes; then
21076: archive_cmds_F77='$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'
21077: else
21078: archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21079: hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21080: fi
21081: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21082: hardcode_libdir_separator_F77=:
21083: link_all_deplibs_F77=yes
21084: ;;
21085:
21086: netbsd*)
21087: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21088: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21089: else
21090: archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21091: fi
21092: hardcode_libdir_flag_spec_F77='-R$libdir'
21093: hardcode_direct_F77=yes
21094: hardcode_shlibpath_var_F77=no
21095: ;;
21096:
21097: newsos6)
21098: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21099: hardcode_direct_F77=yes
21100: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21101: hardcode_libdir_separator_F77=:
21102: hardcode_shlibpath_var_F77=no
21103: ;;
21104:
21105: openbsd*)
21106: hardcode_direct_F77=yes
21107: hardcode_shlibpath_var_F77=no
21108: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21109: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21110: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21111: export_dynamic_flag_spec_F77='${wl}-E'
21112: else
21113: case $host_os in
21114: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21115: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21116: hardcode_libdir_flag_spec_F77='-R$libdir'
21117: ;;
21118: *)
21119: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21120: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21121: ;;
21122: esac
21123: fi
21124: ;;
21125:
21126: os2*)
21127: hardcode_libdir_flag_spec_F77='-L$libdir'
21128: hardcode_minus_L_F77=yes
21129: allow_undefined_flag_F77=unsupported
21130: archive_cmds_F77='$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'
21131: old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21132: ;;
21133:
21134: osf3*)
21135: if test "$GCC" = yes; then
21136: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21137: archive_cmds_F77='$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'
21138: else
21139: allow_undefined_flag_F77=' -expect_unresolved \*'
21140: archive_cmds_F77='$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'
21141: fi
21142: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21143: hardcode_libdir_separator_F77=:
21144: ;;
21145:
21146: osf4* | osf5*) # as osf3* with the addition of -msym flag
21147: if test "$GCC" = yes; then
21148: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21149: archive_cmds_F77='$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'
21150: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21151: else
21152: allow_undefined_flag_F77=' -expect_unresolved \*'
21153: archive_cmds_F77='$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'
21154: archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
21155: $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'
21156:
21157: # Both c and cxx compiler support -rpath directly
21158: hardcode_libdir_flag_spec_F77='-rpath $libdir'
21159: fi
21160: hardcode_libdir_separator_F77=:
21161: ;;
21162:
21163: sco3.2v5*)
21164: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21165: hardcode_shlibpath_var_F77=no
21166: export_dynamic_flag_spec_F77='${wl}-Bexport'
21167: runpath_var=LD_RUN_PATH
21168: hardcode_runpath_var=yes
21169: ;;
21170:
21171: solaris*)
21172: no_undefined_flag_F77=' -z text'
21173: if test "$GCC" = yes; then
21174: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21175: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21176: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21177: else
21178: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21179: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21180: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21181: fi
21182: hardcode_libdir_flag_spec_F77='-R$libdir'
21183: hardcode_shlibpath_var_F77=no
21184: case $host_os in
21185: solaris2.[0-5] | solaris2.[0-5].*) ;;
21186: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
21187: whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21188: esac
21189: link_all_deplibs_F77=yes
21190: ;;
21191:
21192: sunos4*)
21193: if test "x$host_vendor" = xsequent; then
21194: # Use $CC to link under sequent, because it throws in some extra .o
21195: # files that make .init and .fini sections work.
21196: archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21197: else
21198: archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21199: fi
21200: hardcode_libdir_flag_spec_F77='-L$libdir'
21201: hardcode_direct_F77=yes
21202: hardcode_minus_L_F77=yes
21203: hardcode_shlibpath_var_F77=no
21204: ;;
21205:
21206: sysv4)
21207: case $host_vendor in
21208: sni)
21209: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21210: hardcode_direct_F77=yes # is this really true???
21211: ;;
21212: siemens)
21213: ## LD is ld it makes a PLAMLIB
21214: ## CC just makes a GrossModule.
21215: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21216: reload_cmds_F77='$CC -r -o $output$reload_objs'
21217: hardcode_direct_F77=no
21218: ;;
21219: motorola)
21220: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21221: hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21222: ;;
21223: esac
21224: runpath_var='LD_RUN_PATH'
21225: hardcode_shlibpath_var_F77=no
21226: ;;
21227:
21228: sysv4.3*)
21229: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21230: hardcode_shlibpath_var_F77=no
21231: export_dynamic_flag_spec_F77='-Bexport'
21232: ;;
21233:
21234: sysv4*MP*)
21235: if test -d /usr/nec; then
21236: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21237: hardcode_shlibpath_var_F77=no
21238: runpath_var=LD_RUN_PATH
21239: hardcode_runpath_var=yes
21240: ld_shlibs_F77=yes
21241: fi
21242: ;;
21243:
21244: sysv4.2uw2*)
21245: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21246: hardcode_direct_F77=yes
21247: hardcode_minus_L_F77=no
21248: hardcode_shlibpath_var_F77=no
21249: hardcode_runpath_var=yes
21250: runpath_var=LD_RUN_PATH
21251: ;;
21252:
21253: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
21254: no_undefined_flag_F77='${wl}-z ${wl}text'
21255: if test "$GCC" = yes; then
21256: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21257: else
21258: archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21259: fi
21260: runpath_var='LD_RUN_PATH'
21261: hardcode_shlibpath_var_F77=no
21262: ;;
21263:
21264: sysv5*)
21265: no_undefined_flag_F77=' -z text'
21266: # $CC -shared without GNU ld will not create a library from C++
21267: # object files and a static libstdc++, better avoid it by now
21268: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21269: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21270: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21271: hardcode_libdir_flag_spec_F77=
21272: hardcode_shlibpath_var_F77=no
21273: runpath_var='LD_RUN_PATH'
21274: ;;
21275:
21276: uts4*)
21277: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21278: hardcode_libdir_flag_spec_F77='-L$libdir'
21279: hardcode_shlibpath_var_F77=no
21280: ;;
21281:
21282: *)
21283: ld_shlibs_F77=no
21284: ;;
21285: esac
21286: fi
21287:
21288: echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21289: echo "${ECHO_T}$ld_shlibs_F77" >&6
21290: test "$ld_shlibs_F77" = no && can_build_shared=no
21291:
21292: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21293: if test "$GCC" = yes; then
21294: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21295: fi
21296:
21297: #
21298: # Do we need to explicitly link libc?
21299: #
21300: case "x$archive_cmds_need_lc_F77" in
21301: x|xyes)
21302: # Assume -lc should be added
21303: archive_cmds_need_lc_F77=yes
21304:
21305: if test "$enable_shared" = yes && test "$GCC" = yes; then
21306: case $archive_cmds_F77 in
21307: *'~'*)
21308: # FIXME: we may have to deal with multi-command sequences.
21309: ;;
21310: '$CC '*)
21311: # Test whether the compiler implicitly links with -lc since on some
21312: # systems, -lgcc has to come before -lc. If gcc already passes -lc
21313: # to ld, don't add -lc before -lgcc.
21314: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21315: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
21316: $rm conftest*
21317: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21318:
21319: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21320: (eval $ac_compile) 2>&5
21321: ac_status=$?
21322: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323: (exit $ac_status); } 2>conftest.err; then
21324: soname=conftest
21325: lib=conftest
21326: libobjs=conftest.$ac_objext
21327: deplibs=
21328: wl=$lt_prog_compiler_wl_F77
21329: compiler_flags=-v
21330: linker_flags=-v
21331: verstring=
21332: output_objdir=.
21333: libname=conftest
21334: lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21335: allow_undefined_flag_F77=
21336: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21337: (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21338: ac_status=$?
21339: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340: (exit $ac_status); }
21341: then
21342: archive_cmds_need_lc_F77=no
21343: else
21344: archive_cmds_need_lc_F77=yes
21345: fi
21346: allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21347: else
21348: cat conftest.err 1>&5
21349: fi
21350: $rm conftest*
21351: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21352: echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
21353: ;;
21354: esac
21355: fi
21356: ;;
21357: esac
21358:
21359: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21360: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21361: hardcode_action_F77=
21362: if test -n "$hardcode_libdir_flag_spec_F77" || \
21363: test -n "$runpath_var F77" || \
21364: test "X$hardcode_automatic_F77"="Xyes" ; then
21365:
21366: # We can hardcode non-existant directories.
21367: if test "$hardcode_direct_F77" != no &&
21368: # If the only mechanism to avoid hardcoding is shlibpath_var, we
21369: # have to relink, otherwise we might link with an installed library
21370: # when we should be linking with a yet-to-be-installed one
21371: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
21372: test "$hardcode_minus_L_F77" != no; then
21373: # Linking always hardcodes the temporary library directory.
21374: hardcode_action_F77=relink
21375: else
21376: # We can link without hardcoding, and we can hardcode nonexisting dirs.
21377: hardcode_action_F77=immediate
21378: fi
21379: else
21380: # We cannot hardcode anything, or else we can only hardcode existing
21381: # directories.
21382: hardcode_action_F77=unsupported
21383: fi
21384: echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21385: echo "${ECHO_T}$hardcode_action_F77" >&6
21386:
21387: if test "$hardcode_action_F77" = relink; then
21388: # Fast installation is not supported
21389: enable_fast_install=no
21390: elif test "$shlibpath_overrides_runpath" = yes ||
21391: test "$enable_shared" = no; then
21392: # Fast installation is not necessary
21393: enable_fast_install=needless
21394: fi
21395:
21396: striplib=
21397: old_striplib=
21398: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21399: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21400: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21401: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21402: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21403: echo "$as_me:$LINENO: result: yes" >&5
21404: echo "${ECHO_T}yes" >&6
21405: else
21406: # FIXME - insert some real tests, host_os isn't really good enough
21407: case $host_os in
21408: darwin*)
21409: if test -n "$STRIP" ; then
21410: striplib="$STRIP -x"
21411: echo "$as_me:$LINENO: result: yes" >&5
21412: echo "${ECHO_T}yes" >&6
21413: else
21414: echo "$as_me:$LINENO: result: no" >&5
21415: echo "${ECHO_T}no" >&6
21416: fi
21417: ;;
21418: *)
21419: echo "$as_me:$LINENO: result: no" >&5
21420: echo "${ECHO_T}no" >&6
21421: ;;
21422: esac
21423: fi
21424:
21425: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21426: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
21427: library_names_spec=
21428: libname_spec='lib$name'
21429: soname_spec=
21430: shrext=".so"
21431: postinstall_cmds=
21432: postuninstall_cmds=
21433: finish_cmds=
21434: finish_eval=
21435: shlibpath_var=
21436: shlibpath_overrides_runpath=unknown
21437: version_type=none
21438: dynamic_linker="$host_os ld.so"
21439: sys_lib_dlsearch_path_spec="/lib /usr/lib"
21440: if test "$GCC" = yes; then
21441: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21442: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21443: # if the path contains ";" then we assume it to be the separator
21444: # otherwise default to the standard path separator (i.e. ":") - it is
21445: # assumed that no part of a normal pathname contains ";" but that should
21446: # okay in the real world where ";" in dirpaths is itself problematic.
21447: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21448: else
21449: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21450: fi
21451: else
21452: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21453: fi
21454: need_lib_prefix=unknown
21455: hardcode_into_libs=no
21456:
21457: # when you set need_version to no, make sure it does not cause -set_version
21458: # flags to be left without arguments
21459: need_version=unknown
21460:
21461: case $host_os in
21462: aix3*)
21463: version_type=linux
21464: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21465: shlibpath_var=LIBPATH
21466:
21467: # AIX 3 has no versioning support, so we append a major version to the name.
21468: soname_spec='${libname}${release}${shared_ext}$major'
21469: ;;
21470:
21471: aix4* | aix5*)
21472: version_type=linux
21473: need_lib_prefix=no
21474: need_version=no
21475: hardcode_into_libs=yes
21476: if test "$host_cpu" = ia64; then
21477: # AIX 5 supports IA64
21478: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21479: shlibpath_var=LD_LIBRARY_PATH
21480: else
21481: # With GCC up to 2.95.x, collect2 would create an import file
21482: # for dependence libraries. The import file would start with
21483: # the line `#! .'. This would cause the generated library to
21484: # depend on `.', always an invalid library. This was fixed in
21485: # development snapshots of GCC prior to 3.0.
21486: case $host_os in
21487: aix4 | aix4.[01] | aix4.[01].*)
21488: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21489: echo ' yes '
21490: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21491: :
21492: else
21493: can_build_shared=no
21494: fi
21495: ;;
21496: esac
21497: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21498: # soname into executable. Probably we can add versioning support to
21499: # collect2, so additional links can be useful in future.
21500: if test "$aix_use_runtimelinking" = yes; then
21501: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21502: # instead of lib<name>.a to let people know that these are not
21503: # typical AIX shared libraries.
21504: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21505: else
21506: # We preserve .a as extension for shared libraries through AIX4.2
21507: # and later when we are not doing run time linking.
21508: library_names_spec='${libname}${release}.a $libname.a'
21509: soname_spec='${libname}${release}${shared_ext}$major'
21510: fi
21511: shlibpath_var=LIBPATH
21512: fi
21513: ;;
21514:
21515: amigaos*)
21516: library_names_spec='$libname.ixlibrary $libname.a'
21517: # Create ${libname}_ixlibrary.a entries in /sys/libs.
21518: 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'
21519: ;;
21520:
21521: beos*)
21522: library_names_spec='${libname}${shared_ext}'
21523: dynamic_linker="$host_os ld.so"
21524: shlibpath_var=LIBRARY_PATH
21525: ;;
21526:
21527: bsdi4*)
21528: version_type=linux
21529: need_version=no
21530: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21531: soname_spec='${libname}${release}${shared_ext}$major'
21532: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21533: shlibpath_var=LD_LIBRARY_PATH
21534: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21535: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21536: # the default ld.so.conf also contains /usr/contrib/lib and
21537: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21538: # libtool to hard-code these into programs
21539: ;;
21540:
21541: cygwin* | mingw* | pw32*)
21542: version_type=windows
21543: shrext=".dll"
21544: need_version=no
21545: need_lib_prefix=no
21546:
21547: case $GCC,$host_os in
21548: yes,cygwin* | yes,mingw* | yes,pw32*)
21549: library_names_spec='$libname.dll.a'
21550: # DLL is installed to $(libdir)/../bin by postinstall_cmds
21551: postinstall_cmds='base_file=`basename \${file}`~
21552: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21553: dldir=$destdir/`dirname \$dlpath`~
21554: test -d \$dldir || mkdir -p \$dldir~
21555: $install_prog $dir/$dlname \$dldir/$dlname'
21556: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21557: dlpath=$dir/\$dldll~
21558: $rm \$dlpath'
21559: shlibpath_overrides_runpath=yes
21560:
21561: case $host_os in
21562: cygwin*)
21563: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21564: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21565: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
21566: ;;
21567: mingw*)
21568: # MinGW DLLs use traditional 'lib' prefix
21569: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21570: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21571: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21572: # It is most probably a Windows format PATH printed by
21573: # mingw gcc, but we are running on Cygwin. Gcc prints its search
21574: # path with ; separators, and with drive letters. We can handle the
21575: # drive letters (cygwin fileutils understands them), so leave them,
21576: # especially as we might pass files found there to a mingw objdump,
21577: # which wouldn't understand a cygwinified path. Ahh.
21578: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21579: else
21580: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21581: fi
21582: ;;
21583: pw32*)
21584: # pw32 DLLs use 'pw' prefix rather than 'lib'
21585: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
21586: ;;
21587: esac
21588: ;;
21589:
21590: *)
21591: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21592: ;;
21593: esac
21594: dynamic_linker='Win32 ld.exe'
21595: # FIXME: first we should search . and the directory the executable is in
21596: shlibpath_var=PATH
21597: ;;
21598:
21599: darwin* | rhapsody*)
21600: dynamic_linker="$host_os dyld"
21601: version_type=darwin
21602: need_lib_prefix=no
21603: need_version=no
21604: # FIXME: Relying on posixy $() will cause problems for
21605: # cross-compilation, but unfortunately the echo tests do not
21606: # yet detect zsh echo's removal of \ escapes.
21607: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21608: soname_spec='${libname}${release}${major}$shared_ext'
21609: shlibpath_overrides_runpath=yes
21610: shlibpath_var=DYLD_LIBRARY_PATH
21611: shrext='$(test .$module = .yes && echo .so || echo .dylib)'
21612: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21613: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
21614: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
21615: fi
21616: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21617: ;;
21618:
21619: dgux*)
21620: version_type=linux
21621: need_lib_prefix=no
21622: need_version=no
21623: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21624: soname_spec='${libname}${release}${shared_ext}$major'
21625: shlibpath_var=LD_LIBRARY_PATH
21626: ;;
21627:
21628: freebsd1*)
21629: dynamic_linker=no
21630: ;;
21631:
21632: freebsd*)
21633: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
21634: version_type=freebsd-$objformat
21635: case $version_type in
21636: freebsd-elf*)
21637: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21638: need_version=no
21639: need_lib_prefix=no
21640: ;;
21641: freebsd-*)
21642: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21643: need_version=yes
21644: ;;
21645: esac
21646: shlibpath_var=LD_LIBRARY_PATH
21647: case $host_os in
21648: freebsd2*)
21649: shlibpath_overrides_runpath=yes
21650: ;;
21651: freebsd3.01* | freebsdelf3.01*)
21652: shlibpath_overrides_runpath=yes
21653: hardcode_into_libs=yes
21654: ;;
21655: *) # from 3.2 on
21656: shlibpath_overrides_runpath=no
21657: hardcode_into_libs=yes
21658: ;;
21659: esac
21660: ;;
21661:
21662: gnu*)
21663: version_type=linux
21664: need_lib_prefix=no
21665: need_version=no
21666: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21667: soname_spec='${libname}${release}${shared_ext}$major'
21668: shlibpath_var=LD_LIBRARY_PATH
21669: hardcode_into_libs=yes
21670: ;;
21671:
21672: hpux9* | hpux10* | hpux11*)
21673: # Give a soname corresponding to the major version so that dld.sl refuses to
21674: # link against other versions.
21675: version_type=sunos
21676: need_lib_prefix=no
21677: need_version=no
21678: case "$host_cpu" in
21679: ia64*)
21680: shrext='.so'
21681: hardcode_into_libs=yes
21682: dynamic_linker="$host_os dld.so"
21683: shlibpath_var=LD_LIBRARY_PATH
21684: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21685: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21686: soname_spec='${libname}${release}${shared_ext}$major'
21687: if test "X$HPUX_IA64_MODE" = X32; then
21688: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21689: else
21690: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21691: fi
21692: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21693: ;;
21694: hppa*64*)
21695: shrext='.sl'
21696: hardcode_into_libs=yes
21697: dynamic_linker="$host_os dld.sl"
21698: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21699: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21700: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21701: soname_spec='${libname}${release}${shared_ext}$major'
21702: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21703: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21704: ;;
21705: *)
21706: shrext='.sl'
21707: dynamic_linker="$host_os dld.sl"
21708: shlibpath_var=SHLIB_PATH
21709: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21710: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21711: soname_spec='${libname}${release}${shared_ext}$major'
21712: ;;
21713: esac
21714: # HP-UX runs *really* slowly unless shared libraries are mode 555.
21715: postinstall_cmds='chmod 555 $lib'
21716: ;;
21717:
21718: irix5* | irix6* | nonstopux*)
21719: case $host_os in
21720: nonstopux*) version_type=nonstopux ;;
21721: *)
21722: if test "$lt_cv_prog_gnu_ld" = yes; then
21723: version_type=linux
21724: else
21725: version_type=irix
21726: fi ;;
21727: esac
21728: need_lib_prefix=no
21729: need_version=no
21730: soname_spec='${libname}${release}${shared_ext}$major'
21731: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21732: case $host_os in
21733: irix5* | nonstopux*)
21734: libsuff= shlibsuff=
21735: ;;
21736: *)
21737: case $LD in # libtool.m4 will add one of these switches to LD
21738: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21739: libsuff= shlibsuff= libmagic=32-bit;;
21740: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21741: libsuff=32 shlibsuff=N32 libmagic=N32;;
21742: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21743: libsuff=64 shlibsuff=64 libmagic=64-bit;;
21744: *) libsuff= shlibsuff= libmagic=never-match;;
21745: esac
21746: ;;
21747: esac
21748: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21749: shlibpath_overrides_runpath=no
21750: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21751: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21752: hardcode_into_libs=yes
21753: ;;
21754:
21755: # No shared lib support for Linux oldld, aout, or coff.
21756: linux*oldld* | linux*aout* | linux*coff*)
21757: dynamic_linker=no
21758: ;;
21759:
21760: # This must be Linux ELF.
21761: linux*)
21762: version_type=linux
21763: need_lib_prefix=no
21764: need_version=no
21765: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21766: soname_spec='${libname}${release}${shared_ext}$major'
21767: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21768: shlibpath_var=LD_LIBRARY_PATH
21769: shlibpath_overrides_runpath=no
21770: # This implies no fast_install, which is unacceptable.
21771: # Some rework will be needed to allow for fast_install
21772: # before this can be enabled.
21773: hardcode_into_libs=yes
21774:
21775: # We used to test for /lib/ld.so.1 and disable shared libraries on
21776: # powerpc, because MkLinux only supported shared libraries with the
21777: # GNU dynamic linker. Since this was broken with cross compilers,
21778: # most powerpc-linux boxes support dynamic linking these days and
21779: # people can always --disable-shared, the test was removed, and we
21780: # assume the GNU/Linux dynamic linker is in use.
21781: dynamic_linker='GNU/Linux ld.so'
21782: ;;
21783:
21784: netbsd*)
21785: version_type=sunos
21786: need_lib_prefix=no
21787: need_version=no
21788: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21789: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21790: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21791: dynamic_linker='NetBSD (a.out) ld.so'
21792: else
21793: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
21794: soname_spec='${libname}${release}${shared_ext}$major'
21795: dynamic_linker='NetBSD ld.elf_so'
21796: fi
21797: shlibpath_var=LD_LIBRARY_PATH
21798: shlibpath_overrides_runpath=yes
21799: hardcode_into_libs=yes
21800: ;;
21801:
21802: newsos6)
21803: version_type=linux
21804: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21805: shlibpath_var=LD_LIBRARY_PATH
21806: shlibpath_overrides_runpath=yes
21807: ;;
21808:
21809: nto-qnx)
21810: version_type=linux
21811: need_lib_prefix=no
21812: need_version=no
21813: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21814: soname_spec='${libname}${release}${shared_ext}$major'
21815: shlibpath_var=LD_LIBRARY_PATH
21816: shlibpath_overrides_runpath=yes
21817: ;;
21818:
21819: openbsd*)
21820: version_type=sunos
21821: need_lib_prefix=no
21822: need_version=no
21823: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21824: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21825: shlibpath_var=LD_LIBRARY_PATH
21826: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21827: case $host_os in
21828: openbsd2.[89] | openbsd2.[89].*)
21829: shlibpath_overrides_runpath=no
21830: ;;
21831: *)
21832: shlibpath_overrides_runpath=yes
21833: ;;
21834: esac
21835: else
21836: shlibpath_overrides_runpath=yes
21837: fi
21838: ;;
21839:
21840: os2*)
21841: libname_spec='$name'
21842: shrext=".dll"
21843: need_lib_prefix=no
21844: library_names_spec='$libname${shared_ext} $libname.a'
21845: dynamic_linker='OS/2 ld.exe'
21846: shlibpath_var=LIBPATH
21847: ;;
21848:
21849: osf3* | osf4* | osf5*)
21850: version_type=osf
21851: need_lib_prefix=no
21852: need_version=no
21853: soname_spec='${libname}${release}${shared_ext}$major'
21854: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21855: shlibpath_var=LD_LIBRARY_PATH
21856: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21857: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21858: ;;
21859:
21860: sco3.2v5*)
21861: version_type=osf
21862: soname_spec='${libname}${release}${shared_ext}$major'
21863: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21864: shlibpath_var=LD_LIBRARY_PATH
21865: ;;
21866:
21867: solaris*)
21868: version_type=linux
21869: need_lib_prefix=no
21870: need_version=no
21871: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21872: soname_spec='${libname}${release}${shared_ext}$major'
21873: shlibpath_var=LD_LIBRARY_PATH
21874: shlibpath_overrides_runpath=yes
21875: hardcode_into_libs=yes
21876: # ldd complains unless libraries are executable
21877: postinstall_cmds='chmod +x $lib'
21878: ;;
21879:
21880: sunos4*)
21881: version_type=sunos
21882: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21883: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21884: shlibpath_var=LD_LIBRARY_PATH
21885: shlibpath_overrides_runpath=yes
21886: if test "$with_gnu_ld" = yes; then
21887: need_lib_prefix=no
21888: fi
21889: need_version=yes
21890: ;;
21891:
21892: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21893: version_type=linux
21894: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21895: soname_spec='${libname}${release}${shared_ext}$major'
21896: shlibpath_var=LD_LIBRARY_PATH
21897: case $host_vendor in
21898: sni)
21899: shlibpath_overrides_runpath=no
21900: need_lib_prefix=no
21901: export_dynamic_flag_spec='${wl}-Blargedynsym'
21902: runpath_var=LD_RUN_PATH
21903: ;;
21904: siemens)
21905: need_lib_prefix=no
21906: ;;
21907: motorola)
21908: need_lib_prefix=no
21909: need_version=no
21910: shlibpath_overrides_runpath=no
21911: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21912: ;;
21913: esac
21914: ;;
21915:
21916: sysv4*MP*)
21917: if test -d /usr/nec ;then
21918: version_type=linux
21919: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21920: soname_spec='$libname${shared_ext}.$major'
21921: shlibpath_var=LD_LIBRARY_PATH
21922: fi
21923: ;;
21924:
21925: uts4*)
21926: version_type=linux
21927: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21928: soname_spec='${libname}${release}${shared_ext}$major'
21929: shlibpath_var=LD_LIBRARY_PATH
21930: ;;
21931:
21932: *)
21933: dynamic_linker=no
21934: ;;
21935: esac
21936: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21937: echo "${ECHO_T}$dynamic_linker" >&6
21938: test "$dynamic_linker" = no && can_build_shared=no
21939:
21940:
21941: # The else clause should only fire when bootstrapping the
21942: # libtool distribution, otherwise you forgot to ship ltmain.sh
21943: # with your package, and you will get complaints that there are
21944: # no rules to generate ltmain.sh.
21945: if test -f "$ltmain"; then
21946: # See if we are running on zsh, and set the options which allow our commands through
21947: # without removal of \ escapes.
21948: if test -n "${ZSH_VERSION+set}" ; then
21949: setopt NO_GLOB_SUBST
21950: fi
21951: # Now quote all the things that may contain metacharacters while being
21952: # careful not to overquote the AC_SUBSTed values. We take copies of the
21953: # variables and quote the copies for generation of the libtool script.
21954: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
21955: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21956: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21957: deplibs_check_method reload_flag reload_cmds need_locks \
21958: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21959: lt_cv_sys_global_symbol_to_c_name_address \
21960: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21961: old_postinstall_cmds old_postuninstall_cmds \
21962: compiler_F77 \
21963: CC_F77 \
21964: LD_F77 \
21965: lt_prog_compiler_wl_F77 \
21966: lt_prog_compiler_pic_F77 \
21967: lt_prog_compiler_static_F77 \
21968: lt_prog_compiler_no_builtin_flag_F77 \
21969: export_dynamic_flag_spec_F77 \
21970: thread_safe_flag_spec_F77 \
21971: whole_archive_flag_spec_F77 \
21972: enable_shared_with_static_runtimes_F77 \
21973: old_archive_cmds_F77 \
21974: old_archive_from_new_cmds_F77 \
21975: predep_objects_F77 \
21976: postdep_objects_F77 \
21977: predeps_F77 \
21978: postdeps_F77 \
21979: compiler_lib_search_path_F77 \
21980: archive_cmds_F77 \
21981: archive_expsym_cmds_F77 \
21982: postinstall_cmds_F77 \
21983: postuninstall_cmds_F77 \
21984: old_archive_from_expsyms_cmds_F77 \
21985: allow_undefined_flag_F77 \
21986: no_undefined_flag_F77 \
21987: export_symbols_cmds_F77 \
21988: hardcode_libdir_flag_spec_F77 \
21989: hardcode_libdir_flag_spec_ld_F77 \
21990: hardcode_libdir_separator_F77 \
21991: hardcode_automatic_F77 \
21992: module_cmds_F77 \
21993: module_expsym_cmds_F77 \
21994: lt_cv_prog_compiler_c_o_F77 \
21995: exclude_expsyms_F77 \
21996: include_expsyms_F77; do
21997:
21998: case $var in
21999: old_archive_cmds_F77 | \
22000: old_archive_from_new_cmds_F77 | \
22001: archive_cmds_F77 | \
22002: archive_expsym_cmds_F77 | \
22003: module_cmds_F77 | \
22004: module_expsym_cmds_F77 | \
22005: old_archive_from_expsyms_cmds_F77 | \
22006: export_symbols_cmds_F77 | \
22007: extract_expsyms_cmds | reload_cmds | finish_cmds | \
22008: postinstall_cmds | postuninstall_cmds | \
22009: old_postinstall_cmds | old_postuninstall_cmds | \
22010: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22011: # Double-quote double-evaled strings.
22012: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22013: ;;
22014: *)
22015: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22016: ;;
22017: esac
22018: done
22019:
22020: case $lt_echo in
22021: *'\$0 --fallback-echo"')
22022: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22023: ;;
22024: esac
22025:
22026: cfgfile="$ofile"
22027:
22028: cat <<__EOF__ >> "$cfgfile"
22029: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22030:
22031: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22032:
22033: # Shell to use when invoking shell scripts.
22034: SHELL=$lt_SHELL
22035:
22036: # Whether or not to build shared libraries.
22037: build_libtool_libs=$enable_shared
22038:
22039: # Whether or not to build static libraries.
22040: build_old_libs=$enable_static
22041:
22042: # Whether or not to add -lc for building shared libraries.
22043: build_libtool_need_lc=$archive_cmds_need_lc_F77
22044:
22045: # Whether or not to disallow shared libs when runtime libs are static
22046: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22047:
22048: # Whether or not to optimize for fast installation.
22049: fast_install=$enable_fast_install
22050:
22051: # The host system.
22052: host_alias=$host_alias
22053: host=$host
22054:
22055: # An echo program that does not interpret backslashes.
22056: echo=$lt_echo
22057:
22058: # The archiver.
22059: AR=$lt_AR
22060: AR_FLAGS=$lt_AR_FLAGS
22061:
22062: # A C compiler.
22063: LTCC=$lt_LTCC
22064:
22065: # A language-specific compiler.
22066: CC=$lt_compiler_F77
22067:
22068: # Is the compiler the GNU C compiler?
22069: with_gcc=$GCC_F77
22070:
22071: # An ERE matcher.
22072: EGREP=$lt_EGREP
22073:
22074: # The linker used to build libraries.
22075: LD=$lt_LD_F77
22076:
22077: # Whether we need hard or soft links.
22078: LN_S=$lt_LN_S
22079:
22080: # A BSD-compatible nm program.
22081: NM=$lt_NM
22082:
22083: # A symbol stripping program
22084: STRIP=$STRIP
22085:
22086: # Used to examine libraries when file_magic_cmd begins "file"
22087: MAGIC_CMD=$MAGIC_CMD
22088:
22089: # Used on cygwin: DLL creation program.
22090: DLLTOOL="$DLLTOOL"
22091:
22092: # Used on cygwin: object dumper.
22093: OBJDUMP="$OBJDUMP"
22094:
22095: # Used on cygwin: assembler.
22096: AS="$AS"
22097:
22098: # The name of the directory that contains temporary libtool files.
22099: objdir=$objdir
22100:
22101: # How to create reloadable object files.
22102: reload_flag=$lt_reload_flag
22103: reload_cmds=$lt_reload_cmds
22104:
22105: # How to pass a linker flag through the compiler.
22106: wl=$lt_lt_prog_compiler_wl_F77
22107:
22108: # Object file suffix (normally "o").
22109: objext="$ac_objext"
22110:
22111: # Old archive suffix (normally "a").
22112: libext="$libext"
22113:
22114: # Shared library suffix (normally ".so").
22115: shrext='$shrext'
22116:
22117: # Executable file suffix (normally "").
22118: exeext="$exeext"
22119:
22120: # Additional compiler flags for building library objects.
22121: pic_flag=$lt_lt_prog_compiler_pic_F77
22122: pic_mode=$pic_mode
22123:
22124: # What is the maximum length of a command?
22125: max_cmd_len=$lt_cv_sys_max_cmd_len
22126:
22127: # Does compiler simultaneously support -c and -o options?
22128: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22129:
22130: # Must we lock files when doing compilation ?
22131: need_locks=$lt_need_locks
22132:
22133: # Do we need the lib prefix for modules?
22134: need_lib_prefix=$need_lib_prefix
22135:
22136: # Do we need a version for libraries?
22137: need_version=$need_version
22138:
22139: # Whether dlopen is supported.
22140: dlopen_support=$enable_dlopen
22141:
22142: # Whether dlopen of programs is supported.
22143: dlopen_self=$enable_dlopen_self
22144:
22145: # Whether dlopen of statically linked programs is supported.
22146: dlopen_self_static=$enable_dlopen_self_static
22147:
22148: # Compiler flag to prevent dynamic linking.
22149: link_static_flag=$lt_lt_prog_compiler_static_F77
22150:
22151: # Compiler flag to turn off builtin functions.
22152: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22153:
22154: # Compiler flag to allow reflexive dlopens.
22155: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22156:
22157: # Compiler flag to generate shared objects directly from archives.
22158: whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22159:
22160: # Compiler flag to generate thread-safe objects.
22161: thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22162:
22163: # Library versioning type.
22164: version_type=$version_type
22165:
22166: # Format of library name prefix.
22167: libname_spec=$lt_libname_spec
22168:
22169: # List of archive names. First name is the real one, the rest are links.
22170: # The last name is the one that the linker finds with -lNAME.
22171: library_names_spec=$lt_library_names_spec
22172:
22173: # The coded name of the library, if different from the real name.
22174: soname_spec=$lt_soname_spec
22175:
22176: # Commands used to build and install an old-style archive.
22177: RANLIB=$lt_RANLIB
22178: old_archive_cmds=$lt_old_archive_cmds_F77
22179: old_postinstall_cmds=$lt_old_postinstall_cmds
22180: old_postuninstall_cmds=$lt_old_postuninstall_cmds
22181:
22182: # Create an old-style archive from a shared archive.
22183: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22184:
22185: # Create a temporary old-style archive to link instead of a shared archive.
22186: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22187:
22188: # Commands used to build and install a shared archive.
22189: archive_cmds=$lt_archive_cmds_F77
22190: archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22191: postinstall_cmds=$lt_postinstall_cmds
22192: postuninstall_cmds=$lt_postuninstall_cmds
22193:
22194: # Commands used to build a loadable module (assumed same as above if empty)
22195: module_cmds=$lt_module_cmds_F77
22196: module_expsym_cmds=$lt_module_expsym_cmds_F77
22197:
22198: # Commands to strip libraries.
22199: old_striplib=$lt_old_striplib
22200: striplib=$lt_striplib
22201:
22202: # Dependencies to place before the objects being linked to create a
22203: # shared library.
22204: predep_objects=$lt_predep_objects_F77
22205:
22206: # Dependencies to place after the objects being linked to create a
22207: # shared library.
22208: postdep_objects=$lt_postdep_objects_F77
22209:
22210: # Dependencies to place before the objects being linked to create a
22211: # shared library.
22212: predeps=$lt_predeps_F77
22213:
22214: # Dependencies to place after the objects being linked to create a
22215: # shared library.
22216: postdeps=$lt_postdeps_F77
22217:
22218: # The library search path used internally by the compiler when linking
22219: # a shared library.
22220: compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22221:
22222: # Method to check whether dependent libraries are shared objects.
22223: deplibs_check_method=$lt_deplibs_check_method
22224:
22225: # Command to use when deplibs_check_method == file_magic.
22226: file_magic_cmd=$lt_file_magic_cmd
22227:
22228: # Flag that allows shared libraries with undefined symbols to be built.
22229: allow_undefined_flag=$lt_allow_undefined_flag_F77
22230:
22231: # Flag that forces no undefined symbols.
22232: no_undefined_flag=$lt_no_undefined_flag_F77
22233:
22234: # Commands used to finish a libtool library installation in a directory.
22235: finish_cmds=$lt_finish_cmds
22236:
22237: # Same as above, but a single script fragment to be evaled but not shown.
22238: finish_eval=$lt_finish_eval
22239:
22240: # Take the output of nm and produce a listing of raw symbols and C names.
22241: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22242:
22243: # Transform the output of nm in a proper C declaration
22244: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22245:
22246: # Transform the output of nm in a C name address pair
22247: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22248:
22249: # This is the shared library runtime path variable.
22250: runpath_var=$runpath_var
22251:
22252: # This is the shared library path variable.
22253: shlibpath_var=$shlibpath_var
22254:
22255: # Is shlibpath searched before the hard-coded library search path?
22256: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22257:
22258: # How to hardcode a shared library path into an executable.
22259: hardcode_action=$hardcode_action_F77
22260:
22261: # Whether we should hardcode library paths into libraries.
22262: hardcode_into_libs=$hardcode_into_libs
22263:
22264: # Flag to hardcode \$libdir into a binary during linking.
22265: # This must work even if \$libdir does not exist.
22266: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22267:
22268: # If ld is used when linking, flag to hardcode \$libdir into
22269: # a binary during linking. This must work even if \$libdir does
22270: # not exist.
22271: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22272:
22273: # Whether we need a single -rpath flag with a separated argument.
22274: hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22275:
22276: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22277: # resulting binary.
22278: hardcode_direct=$hardcode_direct_F77
22279:
22280: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22281: # resulting binary.
22282: hardcode_minus_L=$hardcode_minus_L_F77
22283:
22284: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22285: # the resulting binary.
22286: hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22287:
22288: # Set to yes if building a shared library automatically hardcodes DIR into the library
22289: # and all subsequent libraries and executables linked against it.
22290: hardcode_automatic=$hardcode_automatic_F77
22291:
22292: # Variables whose values should be saved in libtool wrapper scripts and
22293: # restored at relink time.
22294: variables_saved_for_relink="$variables_saved_for_relink"
22295:
22296: # Whether libtool must link a program against all its dependency libraries.
22297: link_all_deplibs=$link_all_deplibs_F77
22298:
22299: # Compile-time system search path for libraries
22300: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22301:
22302: # Run-time system search path for libraries
22303: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22304:
22305: # Fix the shell variable \$srcfile for the compiler.
22306: fix_srcfile_path="$fix_srcfile_path_F77"
22307:
22308: # Set to yes if exported symbols are required.
22309: always_export_symbols=$always_export_symbols_F77
22310:
22311: # The commands to list exported symbols.
22312: export_symbols_cmds=$lt_export_symbols_cmds_F77
22313:
22314: # The commands to extract the exported symbol list from a shared archive.
22315: extract_expsyms_cmds=$lt_extract_expsyms_cmds
22316:
22317: # Symbols that should not be listed in the preloaded symbols.
22318: exclude_expsyms=$lt_exclude_expsyms_F77
22319:
22320: # Symbols that must always be exported.
22321: include_expsyms=$lt_include_expsyms_F77
22322:
22323: # ### END LIBTOOL TAG CONFIG: $tagname
22324:
22325: __EOF__
22326:
22327:
22328: else
22329: # If there is no Makefile yet, we rely on a make rule to execute
22330: # `config.status --recheck' to rerun these tests and create the
22331: # libtool script then.
22332: test -f Makefile && make "$ltmain"
22333: fi
22334:
22335:
22336: ac_ext=c
22337: ac_cpp='$CPP $CPPFLAGS'
22338: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22339: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22340: ac_compiler_gnu=$ac_cv_c_compiler_gnu
22341:
22342: CC="$lt_save_CC"
22343:
22344: else
22345: tagname=""
22346: fi
22347: ;;
22348:
22349: GCJ)
22350: if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22351:
22352:
22353:
22354: # Source file extension for Java test sources.
22355: ac_ext=java
22356:
22357: # Object file extension for compiled Java test sources.
22358: objext=o
22359: objext_GCJ=$objext
22360:
22361: # Code to be used in simple compile tests
22362: lt_simple_compile_test_code="class foo {}\n"
22363:
22364: # Code to be used in simple link tests
22365: lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
22366:
22367: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22368:
22369: # If no C compiler was specified, use CC.
22370: LTCC=${LTCC-"$CC"}
22371:
22372: # Allow CC to be a program name with arguments.
22373: compiler=$CC
22374:
22375:
22376: # Allow CC to be a program name with arguments.
22377: lt_save_CC="$CC"
22378: CC=${GCJ-"gcj"}
22379: compiler=$CC
22380: compiler_GCJ=$CC
22381:
22382: # GCJ did not exist at the time GCC didn't implicitly link libc in.
22383: archive_cmds_need_lc_GCJ=no
22384:
22385:
22386: lt_prog_compiler_no_builtin_flag_GCJ=
22387:
22388: if test "$GCC" = yes; then
22389: lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22390:
22391: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22392: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
22393: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22394: echo $ECHO_N "(cached) $ECHO_C" >&6
22395: else
22396: lt_cv_prog_compiler_rtti_exceptions=no
22397: ac_outfile=conftest.$ac_objext
22398: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22399: lt_compiler_flag="-fno-rtti -fno-exceptions"
22400: # Insert the option either (1) after the last *FLAGS variable, or
22401: # (2) before a word containing "conftest.", or (3) at the end.
22402: # Note that $ac_compile itself does not contain backslashes and begins
22403: # with a dollar sign (not a hyphen), so the echo should work correctly.
22404: # The option is referenced via a variable to avoid confusing sed.
22405: lt_compile=`echo "$ac_compile" | $SED \
22406: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22407: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22408: -e 's:$: $lt_compiler_flag:'`
1.1.1.3 ! root 22409: (eval echo "\"\$as_me:22409: $lt_compile\"" >&5)
1.1 root 22410: (eval "$lt_compile" 2>conftest.err)
22411: ac_status=$?
22412: cat conftest.err >&5
1.1.1.3 ! root 22413: echo "$as_me:22413: \$? = $ac_status" >&5
1.1 root 22414: if (exit $ac_status) && test -s "$ac_outfile"; then
22415: # The compiler can only warn and ignore the option if not recognized
22416: # So say no if there are warnings
22417: if test ! -s conftest.err; then
22418: lt_cv_prog_compiler_rtti_exceptions=yes
22419: fi
22420: fi
22421: $rm conftest*
22422:
22423: fi
22424: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22425: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
22426:
22427: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22428: lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22429: else
22430: :
22431: fi
22432:
22433: fi
22434:
22435: lt_prog_compiler_wl_GCJ=
22436: lt_prog_compiler_pic_GCJ=
22437: lt_prog_compiler_static_GCJ=
22438:
22439: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22440: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
22441:
22442: if test "$GCC" = yes; then
22443: lt_prog_compiler_wl_GCJ='-Wl,'
22444: lt_prog_compiler_static_GCJ='-static'
22445:
22446: case $host_os in
22447: aix*)
22448: # All AIX code is PIC.
22449: if test "$host_cpu" = ia64; then
22450: # AIX 5 now supports IA64 processor
22451: lt_prog_compiler_static_GCJ='-Bstatic'
22452: fi
22453: ;;
22454:
22455: amigaos*)
22456: # FIXME: we need at least 68020 code to build shared libraries, but
22457: # adding the `-m68020' flag to GCC prevents building anything better,
22458: # like `-m68040'.
22459: lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22460: ;;
22461:
22462: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22463: # PIC is the default for these OSes.
22464: ;;
22465:
22466: mingw* | pw32* | os2*)
22467: # This hack is so that the source file can tell whether it is being
22468: # built for inclusion in a dll (and should export symbols for example).
22469: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22470: ;;
22471:
22472: darwin* | rhapsody*)
22473: # PIC is the default on this platform
22474: # Common symbols not allowed in MH_DYLIB files
22475: lt_prog_compiler_pic_GCJ='-fno-common'
22476: ;;
22477:
22478: msdosdjgpp*)
22479: # Just because we use GCC doesn't mean we suddenly get shared libraries
22480: # on systems that don't support them.
22481: lt_prog_compiler_can_build_shared_GCJ=no
22482: enable_shared=no
22483: ;;
22484:
22485: sysv4*MP*)
22486: if test -d /usr/nec; then
22487: lt_prog_compiler_pic_GCJ=-Kconform_pic
22488: fi
22489: ;;
22490:
22491: hpux*)
22492: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22493: # not for PA HP-UX.
22494: case "$host_cpu" in
22495: hppa*64*|ia64*)
22496: # +Z the default
22497: ;;
22498: *)
22499: lt_prog_compiler_pic_GCJ='-fPIC'
22500: ;;
22501: esac
22502: ;;
22503:
22504: *)
22505: lt_prog_compiler_pic_GCJ='-fPIC'
22506: ;;
22507: esac
22508: else
22509: # PORTME Check for flag to pass linker flags through the system compiler.
22510: case $host_os in
22511: aix*)
22512: lt_prog_compiler_wl_GCJ='-Wl,'
22513: if test "$host_cpu" = ia64; then
22514: # AIX 5 now supports IA64 processor
22515: lt_prog_compiler_static_GCJ='-Bstatic'
22516: else
22517: lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22518: fi
22519: ;;
22520:
22521: mingw* | pw32* | os2*)
22522: # This hack is so that the source file can tell whether it is being
22523: # built for inclusion in a dll (and should export symbols for example).
22524: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22525: ;;
22526:
22527: hpux9* | hpux10* | hpux11*)
22528: lt_prog_compiler_wl_GCJ='-Wl,'
22529: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22530: # not for PA HP-UX.
22531: case "$host_cpu" in
22532: hppa*64*|ia64*)
22533: # +Z the default
22534: ;;
22535: *)
22536: lt_prog_compiler_pic_GCJ='+Z'
22537: ;;
22538: esac
22539: # Is there a better lt_prog_compiler_static that works with the bundled CC?
22540: lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22541: ;;
22542:
22543: irix5* | irix6* | nonstopux*)
22544: lt_prog_compiler_wl_GCJ='-Wl,'
22545: # PIC (with -KPIC) is the default.
22546: lt_prog_compiler_static_GCJ='-non_shared'
22547: ;;
22548:
22549: newsos6)
22550: lt_prog_compiler_pic_GCJ='-KPIC'
22551: lt_prog_compiler_static_GCJ='-Bstatic'
22552: ;;
22553:
22554: linux*)
22555: case $CC in
22556: icc|ecc)
22557: lt_prog_compiler_wl_GCJ='-Wl,'
22558: lt_prog_compiler_pic_GCJ='-KPIC'
22559: lt_prog_compiler_static_GCJ='-static'
22560: ;;
22561: ccc)
22562: lt_prog_compiler_wl_GCJ='-Wl,'
22563: # All Alpha code is PIC.
22564: lt_prog_compiler_static_GCJ='-non_shared'
22565: ;;
22566: esac
22567: ;;
22568:
22569: osf3* | osf4* | osf5*)
22570: lt_prog_compiler_wl_GCJ='-Wl,'
22571: # All OSF/1 code is PIC.
22572: lt_prog_compiler_static_GCJ='-non_shared'
22573: ;;
22574:
22575: sco3.2v5*)
22576: lt_prog_compiler_pic_GCJ='-Kpic'
22577: lt_prog_compiler_static_GCJ='-dn'
22578: ;;
22579:
22580: solaris*)
22581: lt_prog_compiler_wl_GCJ='-Wl,'
22582: lt_prog_compiler_pic_GCJ='-KPIC'
22583: lt_prog_compiler_static_GCJ='-Bstatic'
22584: ;;
22585:
22586: sunos4*)
22587: lt_prog_compiler_wl_GCJ='-Qoption ld '
22588: lt_prog_compiler_pic_GCJ='-PIC'
22589: lt_prog_compiler_static_GCJ='-Bstatic'
22590: ;;
22591:
22592: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22593: lt_prog_compiler_wl_GCJ='-Wl,'
22594: lt_prog_compiler_pic_GCJ='-KPIC'
22595: lt_prog_compiler_static_GCJ='-Bstatic'
22596: ;;
22597:
22598: sysv4*MP*)
22599: if test -d /usr/nec ;then
22600: lt_prog_compiler_pic_GCJ='-Kconform_pic'
22601: lt_prog_compiler_static_GCJ='-Bstatic'
22602: fi
22603: ;;
22604:
22605: uts4*)
22606: lt_prog_compiler_pic_GCJ='-pic'
22607: lt_prog_compiler_static_GCJ='-Bstatic'
22608: ;;
22609:
22610: *)
22611: lt_prog_compiler_can_build_shared_GCJ=no
22612: ;;
22613: esac
22614: fi
22615:
22616: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22617: echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
22618:
22619: #
22620: # Check to make sure the PIC flag actually works.
22621: #
22622: if test -n "$lt_prog_compiler_pic_GCJ"; then
22623: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22624: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
22625: if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22626: echo $ECHO_N "(cached) $ECHO_C" >&6
22627: else
22628: lt_prog_compiler_pic_works_GCJ=no
22629: ac_outfile=conftest.$ac_objext
22630: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22631: lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22632: # Insert the option either (1) after the last *FLAGS variable, or
22633: # (2) before a word containing "conftest.", or (3) at the end.
22634: # Note that $ac_compile itself does not contain backslashes and begins
22635: # with a dollar sign (not a hyphen), so the echo should work correctly.
22636: # The option is referenced via a variable to avoid confusing sed.
22637: lt_compile=`echo "$ac_compile" | $SED \
22638: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22639: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22640: -e 's:$: $lt_compiler_flag:'`
1.1.1.3 ! root 22641: (eval echo "\"\$as_me:22641: $lt_compile\"" >&5)
1.1 root 22642: (eval "$lt_compile" 2>conftest.err)
22643: ac_status=$?
22644: cat conftest.err >&5
1.1.1.3 ! root 22645: echo "$as_me:22645: \$? = $ac_status" >&5
1.1 root 22646: if (exit $ac_status) && test -s "$ac_outfile"; then
22647: # The compiler can only warn and ignore the option if not recognized
22648: # So say no if there are warnings
22649: if test ! -s conftest.err; then
22650: lt_prog_compiler_pic_works_GCJ=yes
22651: fi
22652: fi
22653: $rm conftest*
22654:
22655: fi
22656: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22657: echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
22658:
22659: if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22660: case $lt_prog_compiler_pic_GCJ in
22661: "" | " "*) ;;
22662: *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22663: esac
22664: else
22665: lt_prog_compiler_pic_GCJ=
22666: lt_prog_compiler_can_build_shared_GCJ=no
22667: fi
22668:
22669: fi
22670: case "$host_os" in
22671: # For platforms which do not support PIC, -DPIC is meaningless:
22672: *djgpp*)
22673: lt_prog_compiler_pic_GCJ=
22674: ;;
22675: *)
22676: lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22677: ;;
22678: esac
22679:
22680: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22681: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22682: if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22683: echo $ECHO_N "(cached) $ECHO_C" >&6
22684: else
22685: lt_cv_prog_compiler_c_o_GCJ=no
22686: $rm -r conftest 2>/dev/null
22687: mkdir conftest
22688: cd conftest
22689: mkdir out
22690: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22691:
22692: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
22693: # that will create temporary files in the current directory regardless of
22694: # the output directory. Thus, making CWD read-only will cause this test
22695: # to fail, enabling locking or at least warning the user not to do parallel
22696: # builds.
22697: chmod -w .
22698:
22699: lt_compiler_flag="-o out/conftest2.$ac_objext"
22700: # Insert the option either (1) after the last *FLAGS variable, or
22701: # (2) before a word containing "conftest.", or (3) at the end.
22702: # Note that $ac_compile itself does not contain backslashes and begins
22703: # with a dollar sign (not a hyphen), so the echo should work correctly.
22704: lt_compile=`echo "$ac_compile" | $SED \
22705: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22706: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22707: -e 's:$: $lt_compiler_flag:'`
1.1.1.3 ! root 22708: (eval echo "\"\$as_me:22708: $lt_compile\"" >&5)
1.1 root 22709: (eval "$lt_compile" 2>out/conftest.err)
22710: ac_status=$?
22711: cat out/conftest.err >&5
1.1.1.3 ! root 22712: echo "$as_me:22712: \$? = $ac_status" >&5
1.1 root 22713: if (exit $ac_status) && test -s out/conftest2.$ac_objext
22714: then
22715: # The compiler can only warn and ignore the option if not recognized
22716: # So say no if there are warnings
22717: if test ! -s out/conftest.err; then
22718: lt_cv_prog_compiler_c_o_GCJ=yes
22719: fi
22720: fi
22721: chmod u+w .
22722: $rm conftest* out/*
22723: rmdir out
22724: cd ..
22725: rmdir conftest
22726: $rm conftest*
22727:
22728: fi
22729: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22730: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
22731:
22732:
22733: hard_links="nottested"
22734: if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22735: # do not overwrite the value of need_locks provided by the user
22736: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22737: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22738: hard_links=yes
22739: $rm conftest*
22740: ln conftest.a conftest.b 2>/dev/null && hard_links=no
22741: touch conftest.a
22742: ln conftest.a conftest.b 2>&5 || hard_links=no
22743: ln conftest.a conftest.b 2>/dev/null && hard_links=no
22744: echo "$as_me:$LINENO: result: $hard_links" >&5
22745: echo "${ECHO_T}$hard_links" >&6
22746: if test "$hard_links" = no; then
22747: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22748: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22749: need_locks=warn
22750: fi
22751: else
22752: need_locks=no
22753: fi
22754:
22755: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22756: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22757:
22758: runpath_var=
22759: allow_undefined_flag_GCJ=
22760: enable_shared_with_static_runtimes_GCJ=no
22761: archive_cmds_GCJ=
22762: archive_expsym_cmds_GCJ=
22763: old_archive_From_new_cmds_GCJ=
22764: old_archive_from_expsyms_cmds_GCJ=
22765: export_dynamic_flag_spec_GCJ=
22766: whole_archive_flag_spec_GCJ=
22767: thread_safe_flag_spec_GCJ=
22768: hardcode_libdir_flag_spec_GCJ=
22769: hardcode_libdir_flag_spec_ld_GCJ=
22770: hardcode_libdir_separator_GCJ=
22771: hardcode_direct_GCJ=no
22772: hardcode_minus_L_GCJ=no
22773: hardcode_shlibpath_var_GCJ=unsupported
22774: link_all_deplibs_GCJ=unknown
22775: hardcode_automatic_GCJ=no
22776: module_cmds_GCJ=
22777: module_expsym_cmds_GCJ=
22778: always_export_symbols_GCJ=no
22779: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22780: # include_expsyms should be a list of space-separated symbols to be *always*
22781: # included in the symbol list
22782: include_expsyms_GCJ=
22783: # exclude_expsyms can be an extended regexp of symbols to exclude
22784: # it will be wrapped by ` (' and `)$', so one must not match beginning or
22785: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22786: # as well as any symbol that contains `d'.
22787: exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
22788: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22789: # platforms (ab)use it in PIC code, but their linkers get confused if
22790: # the symbol is explicitly referenced. Since portable code cannot
22791: # rely on this symbol name, it's probably fine to never include it in
22792: # preloaded symbol tables.
22793: extract_expsyms_cmds=
22794:
22795: case $host_os in
22796: cygwin* | mingw* | pw32*)
22797: # FIXME: the MSVC++ port hasn't been tested in a loooong time
22798: # When not using gcc, we currently assume that we are using
22799: # Microsoft Visual C++.
22800: if test "$GCC" != yes; then
22801: with_gnu_ld=no
22802: fi
22803: ;;
22804: openbsd*)
22805: with_gnu_ld=no
22806: ;;
22807: esac
22808:
22809: ld_shlibs_GCJ=yes
22810: if test "$with_gnu_ld" = yes; then
22811: # If archive_cmds runs LD, not CC, wlarc should be empty
22812: wlarc='${wl}'
22813:
22814: # See if GNU ld supports shared libraries.
22815: case $host_os in
22816: aix3* | aix4* | aix5*)
22817: # On AIX/PPC, the GNU linker is very broken
22818: if test "$host_cpu" != ia64; then
22819: ld_shlibs_GCJ=no
22820: cat <<EOF 1>&2
22821:
22822: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22823: *** to be unable to reliably create shared libraries on AIX.
22824: *** Therefore, libtool is disabling shared libraries support. If you
22825: *** really care for shared libraries, you may want to modify your PATH
22826: *** so that a non-GNU linker is found, and then restart.
22827:
22828: EOF
22829: fi
22830: ;;
22831:
22832: amigaos*)
22833: archive_cmds_GCJ='$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)'
22834: hardcode_libdir_flag_spec_GCJ='-L$libdir'
22835: hardcode_minus_L_GCJ=yes
22836:
22837: # Samuel A. Falvo II <[email protected]> reports
22838: # that the semantics of dynamic libraries on AmigaOS, at least up
22839: # to version 4, is to share data among multiple programs linked
22840: # with the same dynamic library. Since this doesn't match the
22841: # behavior of shared libraries on other platforms, we can't use
22842: # them.
22843: ld_shlibs_GCJ=no
22844: ;;
22845:
22846: beos*)
22847: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22848: allow_undefined_flag_GCJ=unsupported
22849: # Joseph Beckenbach <[email protected]> says some releases of gcc
22850: # support --undefined. This deserves some investigation. FIXME
22851: archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22852: else
22853: ld_shlibs_GCJ=no
22854: fi
22855: ;;
22856:
22857: cygwin* | mingw* | pw32*)
22858: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
22859: # as there is no search path for DLLs.
22860: hardcode_libdir_flag_spec_GCJ='-L$libdir'
22861: allow_undefined_flag_GCJ=unsupported
22862: always_export_symbols_GCJ=no
22863: enable_shared_with_static_runtimes_GCJ=yes
22864: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22865:
22866: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22867: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22868: # If the export-symbols file already is a .def file (1st line
22869: # is EXPORTS), use it as is; otherwise, prepend...
22870: archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22871: cp $export_symbols $output_objdir/$soname.def;
22872: else
22873: echo EXPORTS > $output_objdir/$soname.def;
22874: cat $export_symbols >> $output_objdir/$soname.def;
22875: fi~
22876: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22877: else
22878: ld_shlibs=no
22879: fi
22880: ;;
22881:
22882: netbsd*)
22883: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22884: archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22885: wlarc=
22886: else
22887: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22888: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22889: fi
22890: ;;
22891:
22892: solaris* | sysv5*)
22893: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22894: ld_shlibs_GCJ=no
22895: cat <<EOF 1>&2
22896:
22897: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22898: *** create shared libraries on Solaris systems. Therefore, libtool
22899: *** is disabling shared libraries support. We urge you to upgrade GNU
22900: *** binutils to release 2.9.1 or newer. Another option is to modify
22901: *** your PATH or compiler configuration so that the native linker is
22902: *** used, and then restart.
22903:
22904: EOF
22905: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22906: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22907: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22908: else
22909: ld_shlibs_GCJ=no
22910: fi
22911: ;;
22912:
22913: sunos4*)
22914: archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22915: wlarc=
22916: hardcode_direct_GCJ=yes
22917: hardcode_shlibpath_var_GCJ=no
22918: ;;
22919:
22920: *)
22921: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22922: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22923: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22924: else
22925: ld_shlibs_GCJ=no
22926: fi
22927: ;;
22928: esac
22929:
22930: if test "$ld_shlibs_GCJ" = yes; then
22931: runpath_var=LD_RUN_PATH
22932: hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22933: export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22934: # ancient GNU ld didn't support --whole-archive et. al.
22935: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22936: whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22937: else
22938: whole_archive_flag_spec_GCJ=
22939: fi
22940: fi
22941: else
22942: # PORTME fill in a description of your system's linker (not GNU ld)
22943: case $host_os in
22944: aix3*)
22945: allow_undefined_flag_GCJ=unsupported
22946: always_export_symbols_GCJ=yes
22947: archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
22948: # Note: this linker hardcodes the directories in LIBPATH if there
22949: # are no directories specified by -L.
22950: hardcode_minus_L_GCJ=yes
22951: if test "$GCC" = yes && test -z "$link_static_flag"; then
22952: # Neither direct hardcoding nor static linking is supported with a
22953: # broken collect2.
22954: hardcode_direct_GCJ=unsupported
22955: fi
22956: ;;
22957:
22958: aix4* | aix5*)
22959: if test "$host_cpu" = ia64; then
22960: # On IA64, the linker does run time linking by default, so we don't
22961: # have to do anything special.
22962: aix_use_runtimelinking=no
22963: exp_sym_flag='-Bexport'
22964: no_entry_flag=""
22965: else
22966: # If we're using GNU nm, then we don't want the "-C" option.
22967: # -C means demangle to AIX nm, but means don't demangle with GNU nm
22968: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22969: export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22970: else
22971: export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22972: fi
22973: aix_use_runtimelinking=no
22974:
22975: # Test if we are trying to use run time linking or normal
22976: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22977: # need to do runtime linking.
22978: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22979: for ld_flag in $LDFLAGS; do
22980: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22981: aix_use_runtimelinking=yes
22982: break
22983: fi
22984: done
22985: esac
22986:
22987: exp_sym_flag='-bexport'
22988: no_entry_flag='-bnoentry'
22989: fi
22990:
22991: # When large executables or shared objects are built, AIX ld can
22992: # have problems creating the table of contents. If linking a library
22993: # or program results in "error TOC overflow" add -mminimal-toc to
22994: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22995: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22996:
22997: archive_cmds_GCJ=''
22998: hardcode_direct_GCJ=yes
22999: hardcode_libdir_separator_GCJ=':'
23000: link_all_deplibs_GCJ=yes
23001:
23002: if test "$GCC" = yes; then
23003: case $host_os in aix4.012|aix4.012.*)
23004: # We only want to do this on AIX 4.2 and lower, the check
23005: # below for broken collect2 doesn't work under 4.3+
23006: collect2name=`${CC} -print-prog-name=collect2`
23007: if test -f "$collect2name" && \
23008: strings "$collect2name" | grep resolve_lib_name >/dev/null
23009: then
23010: # We have reworked collect2
23011: hardcode_direct_GCJ=yes
23012: else
23013: # We have old collect2
23014: hardcode_direct_GCJ=unsupported
23015: # It fails to find uninstalled libraries when the uninstalled
23016: # path is not listed in the libpath. Setting hardcode_minus_L
23017: # to unsupported forces relinking
23018: hardcode_minus_L_GCJ=yes
23019: hardcode_libdir_flag_spec_GCJ='-L$libdir'
23020: hardcode_libdir_separator_GCJ=
23021: fi
23022: esac
23023: shared_flag='-shared'
23024: else
23025: # not using gcc
23026: if test "$host_cpu" = ia64; then
23027: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23028: # chokes on -Wl,-G. The following line is correct:
23029: shared_flag='-G'
23030: else
23031: if test "$aix_use_runtimelinking" = yes; then
23032: shared_flag='${wl}-G'
23033: else
23034: shared_flag='${wl}-bM:SRE'
23035: fi
23036: fi
23037: fi
23038:
23039: # It seems that -bexpall does not export symbols beginning with
23040: # underscore (_), so it is better to generate a list of symbols to export.
23041: always_export_symbols_GCJ=yes
23042: if test "$aix_use_runtimelinking" = yes; then
23043: # Warning - without using the other runtime loading flags (-brtl),
23044: # -berok will link without error, but may produce a broken library.
23045: allow_undefined_flag_GCJ='-berok'
23046: # Determine the default libpath from the value encoded in an empty executable.
23047: cat >conftest.$ac_ext <<_ACEOF
23048: #line $LINENO "configure"
23049: /* confdefs.h. */
23050: _ACEOF
23051: cat confdefs.h >>conftest.$ac_ext
23052: cat >>conftest.$ac_ext <<_ACEOF
23053: /* end confdefs.h. */
23054:
23055: int
23056: main ()
23057: {
23058:
23059: ;
23060: return 0;
23061: }
23062: _ACEOF
23063: rm -f conftest.$ac_objext conftest$ac_exeext
23064: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23065: (eval $ac_link) 2>&5
23066: ac_status=$?
23067: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068: (exit $ac_status); } &&
23069: { ac_try='test -s conftest$ac_exeext'
23070: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23071: (eval $ac_try) 2>&5
23072: ac_status=$?
23073: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074: (exit $ac_status); }; }; then
23075:
23076: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23077: }'`
23078: # Check for a 64-bit object if we didn't find anything.
23079: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23080: }'`; fi
23081: else
23082: echo "$as_me: failed program was:" >&5
23083: sed 's/^/| /' conftest.$ac_ext >&5
23084:
23085: fi
23086: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23087: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23088:
23089: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23090: archive_expsym_cmds_GCJ="\$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"
23091: else
23092: if test "$host_cpu" = ia64; then
23093: hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23094: allow_undefined_flag_GCJ="-z nodefs"
23095: archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
23096: else
23097: # Determine the default libpath from the value encoded in an empty executable.
23098: cat >conftest.$ac_ext <<_ACEOF
23099: #line $LINENO "configure"
23100: /* confdefs.h. */
23101: _ACEOF
23102: cat confdefs.h >>conftest.$ac_ext
23103: cat >>conftest.$ac_ext <<_ACEOF
23104: /* end confdefs.h. */
23105:
23106: int
23107: main ()
23108: {
23109:
23110: ;
23111: return 0;
23112: }
23113: _ACEOF
23114: rm -f conftest.$ac_objext conftest$ac_exeext
23115: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23116: (eval $ac_link) 2>&5
23117: ac_status=$?
23118: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119: (exit $ac_status); } &&
23120: { ac_try='test -s conftest$ac_exeext'
23121: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23122: (eval $ac_try) 2>&5
23123: ac_status=$?
23124: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125: (exit $ac_status); }; }; then
23126:
23127: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23128: }'`
23129: # Check for a 64-bit object if we didn't find anything.
23130: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23131: }'`; fi
23132: else
23133: echo "$as_me: failed program was:" >&5
23134: sed 's/^/| /' conftest.$ac_ext >&5
23135:
23136: fi
23137: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23138: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23139:
23140: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23141: # Warning - without using the other run time loading flags,
23142: # -berok will link without error, but may produce a broken library.
23143: no_undefined_flag_GCJ=' ${wl}-bernotok'
23144: allow_undefined_flag_GCJ=' ${wl}-berok'
23145: # -bexpall does not export symbols beginning with underscore (_)
23146: always_export_symbols_GCJ=yes
23147: # Exported symbols can be pulled into shared objects from archives
23148: whole_archive_flag_spec_GCJ=' '
23149: archive_cmds_need_lc_GCJ=yes
23150: # This is similar to how AIX traditionally builds it's shared libraries.
23151: archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
23152: fi
23153: fi
23154: ;;
23155:
23156: amigaos*)
23157: archive_cmds_GCJ='$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)'
23158: hardcode_libdir_flag_spec_GCJ='-L$libdir'
23159: hardcode_minus_L_GCJ=yes
23160: # see comment about different semantics on the GNU ld section
23161: ld_shlibs_GCJ=no
23162: ;;
23163:
23164: bsdi4*)
23165: export_dynamic_flag_spec_GCJ=-rdynamic
23166: ;;
23167:
23168: cygwin* | mingw* | pw32*)
23169: # When not using gcc, we currently assume that we are using
23170: # Microsoft Visual C++.
23171: # hardcode_libdir_flag_spec is actually meaningless, as there is
23172: # no search path for DLLs.
23173: hardcode_libdir_flag_spec_GCJ=' '
23174: allow_undefined_flag_GCJ=unsupported
23175: # Tell ltmain to make .lib files, not .a files.
23176: libext=lib
23177: # Tell ltmain to make .dll files, not .so files.
23178: shrext=".dll"
23179: # FIXME: Setting linknames here is a bad hack.
23180: archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23181: # The linker will automatically build a .lib file if we build a DLL.
23182: old_archive_From_new_cmds_GCJ='true'
23183: # FIXME: Should let the user specify the lib program.
23184: old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23185: fix_srcfile_path='`cygpath -w "$srcfile"`'
23186: enable_shared_with_static_runtimes_GCJ=yes
23187: ;;
23188:
23189: darwin* | rhapsody*)
23190: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
23191: archive_cmds_need_lc_GCJ=no
23192: case "$host_os" in
23193: rhapsody* | darwin1.[012])
23194: allow_undefined_flag_GCJ='-undefined suppress'
23195: ;;
23196: *) # Darwin 1.3 on
23197: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
23198: ;;
23199: esac
23200: # FIXME: Relying on posixy $() will cause problems for
23201: # cross-compilation, but unfortunately the echo tests do not
23202: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
23203: # `"' quotes if we put them in here... so don't!
23204: lt_int_apple_cc_single_mod=no
23205: output_verbose_link_cmd='echo'
23206: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
23207: lt_int_apple_cc_single_mod=yes
23208: fi
23209: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
23210: archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23211: else
23212: archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23213: fi
23214: module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
23215: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
23216: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
23217: archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23218: else
23219: archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23220: fi
23221: module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23222: hardcode_direct_GCJ=no
23223: hardcode_automatic_GCJ=yes
23224: hardcode_shlibpath_var_GCJ=unsupported
23225: whole_archive_flag_spec_GCJ='-all_load $convenience'
23226: link_all_deplibs_GCJ=yes
23227: fi
23228: ;;
23229:
23230: dgux*)
23231: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23232: hardcode_libdir_flag_spec_GCJ='-L$libdir'
23233: hardcode_shlibpath_var_GCJ=no
23234: ;;
23235:
23236: freebsd1*)
23237: ld_shlibs_GCJ=no
23238: ;;
23239:
23240: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23241: # support. Future versions do this automatically, but an explicit c++rt0.o
23242: # does not break anything, and helps significantly (at the cost of a little
23243: # extra space).
23244: freebsd2.2*)
23245: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23246: hardcode_libdir_flag_spec_GCJ='-R$libdir'
23247: hardcode_direct_GCJ=yes
23248: hardcode_shlibpath_var_GCJ=no
23249: ;;
23250:
23251: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23252: freebsd2*)
23253: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23254: hardcode_direct_GCJ=yes
23255: hardcode_minus_L_GCJ=yes
23256: hardcode_shlibpath_var_GCJ=no
23257: ;;
23258:
23259: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23260: freebsd*)
23261: archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23262: hardcode_libdir_flag_spec_GCJ='-R$libdir'
23263: hardcode_direct_GCJ=yes
23264: hardcode_shlibpath_var_GCJ=no
23265: ;;
23266:
23267: hpux9*)
23268: if test "$GCC" = yes; then
23269: archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
23270: else
23271: archive_cmds_GCJ='$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'
23272: fi
23273: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23274: hardcode_libdir_separator_GCJ=:
23275: hardcode_direct_GCJ=yes
23276:
23277: # hardcode_minus_L: Not really in the search PATH,
23278: # but as the default location of the library.
23279: hardcode_minus_L_GCJ=yes
23280: export_dynamic_flag_spec_GCJ='${wl}-E'
23281: ;;
23282:
23283: hpux10* | hpux11*)
23284: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23285: case "$host_cpu" in
23286: hppa*64*|ia64*)
23287: archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23288: ;;
23289: *)
23290: archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23291: ;;
23292: esac
23293: else
23294: case "$host_cpu" in
23295: hppa*64*|ia64*)
23296: archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
23297: ;;
23298: *)
23299: archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23300: ;;
23301: esac
23302: fi
23303: if test "$with_gnu_ld" = no; then
23304: case "$host_cpu" in
23305: hppa*64*)
23306: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23307: hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23308: hardcode_libdir_separator_GCJ=:
23309: hardcode_direct_GCJ=no
23310: hardcode_shlibpath_var_GCJ=no
23311: ;;
23312: ia64*)
23313: hardcode_libdir_flag_spec_GCJ='-L$libdir'
23314: hardcode_direct_GCJ=no
23315: hardcode_shlibpath_var_GCJ=no
23316:
23317: # hardcode_minus_L: Not really in the search PATH,
23318: # but as the default location of the library.
23319: hardcode_minus_L_GCJ=yes
23320: ;;
23321: *)
23322: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23323: hardcode_libdir_separator_GCJ=:
23324: hardcode_direct_GCJ=yes
23325: export_dynamic_flag_spec_GCJ='${wl}-E'
23326:
23327: # hardcode_minus_L: Not really in the search PATH,
23328: # but as the default location of the library.
23329: hardcode_minus_L_GCJ=yes
23330: ;;
23331: esac
23332: fi
23333: ;;
23334:
23335: irix5* | irix6* | nonstopux*)
23336: if test "$GCC" = yes; then
23337: archive_cmds_GCJ='$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'
23338: else
23339: archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
23340: hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23341: fi
23342: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23343: hardcode_libdir_separator_GCJ=:
23344: link_all_deplibs_GCJ=yes
23345: ;;
23346:
23347: netbsd*)
23348: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23349: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23350: else
23351: archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23352: fi
23353: hardcode_libdir_flag_spec_GCJ='-R$libdir'
23354: hardcode_direct_GCJ=yes
23355: hardcode_shlibpath_var_GCJ=no
23356: ;;
23357:
23358: newsos6)
23359: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23360: hardcode_direct_GCJ=yes
23361: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23362: hardcode_libdir_separator_GCJ=:
23363: hardcode_shlibpath_var_GCJ=no
23364: ;;
23365:
23366: openbsd*)
23367: hardcode_direct_GCJ=yes
23368: hardcode_shlibpath_var_GCJ=no
23369: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23370: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23371: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23372: export_dynamic_flag_spec_GCJ='${wl}-E'
23373: else
23374: case $host_os in
23375: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23376: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23377: hardcode_libdir_flag_spec_GCJ='-R$libdir'
23378: ;;
23379: *)
23380: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23381: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23382: ;;
23383: esac
23384: fi
23385: ;;
23386:
23387: os2*)
23388: hardcode_libdir_flag_spec_GCJ='-L$libdir'
23389: hardcode_minus_L_GCJ=yes
23390: allow_undefined_flag_GCJ=unsupported
23391: archive_cmds_GCJ='$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'
23392: old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23393: ;;
23394:
23395: osf3*)
23396: if test "$GCC" = yes; then
23397: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23398: archive_cmds_GCJ='$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'
23399: else
23400: allow_undefined_flag_GCJ=' -expect_unresolved \*'
23401: archive_cmds_GCJ='$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'
23402: fi
23403: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23404: hardcode_libdir_separator_GCJ=:
23405: ;;
23406:
23407: osf4* | osf5*) # as osf3* with the addition of -msym flag
23408: if test "$GCC" = yes; then
23409: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23410: archive_cmds_GCJ='$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'
23411: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23412: else
23413: allow_undefined_flag_GCJ=' -expect_unresolved \*'
23414: archive_cmds_GCJ='$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'
23415: archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
23416: $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'
23417:
23418: # Both c and cxx compiler support -rpath directly
23419: hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23420: fi
23421: hardcode_libdir_separator_GCJ=:
23422: ;;
23423:
23424: sco3.2v5*)
23425: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23426: hardcode_shlibpath_var_GCJ=no
23427: export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23428: runpath_var=LD_RUN_PATH
23429: hardcode_runpath_var=yes
23430: ;;
23431:
23432: solaris*)
23433: no_undefined_flag_GCJ=' -z text'
23434: if test "$GCC" = yes; then
23435: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23436: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23437: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23438: else
23439: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23440: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23441: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23442: fi
23443: hardcode_libdir_flag_spec_GCJ='-R$libdir'
23444: hardcode_shlibpath_var_GCJ=no
23445: case $host_os in
23446: solaris2.[0-5] | solaris2.[0-5].*) ;;
23447: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
23448: whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23449: esac
23450: link_all_deplibs_GCJ=yes
23451: ;;
23452:
23453: sunos4*)
23454: if test "x$host_vendor" = xsequent; then
23455: # Use $CC to link under sequent, because it throws in some extra .o
23456: # files that make .init and .fini sections work.
23457: archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23458: else
23459: archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23460: fi
23461: hardcode_libdir_flag_spec_GCJ='-L$libdir'
23462: hardcode_direct_GCJ=yes
23463: hardcode_minus_L_GCJ=yes
23464: hardcode_shlibpath_var_GCJ=no
23465: ;;
23466:
23467: sysv4)
23468: case $host_vendor in
23469: sni)
23470: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23471: hardcode_direct_GCJ=yes # is this really true???
23472: ;;
23473: siemens)
23474: ## LD is ld it makes a PLAMLIB
23475: ## CC just makes a GrossModule.
23476: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23477: reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23478: hardcode_direct_GCJ=no
23479: ;;
23480: motorola)
23481: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23482: hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23483: ;;
23484: esac
23485: runpath_var='LD_RUN_PATH'
23486: hardcode_shlibpath_var_GCJ=no
23487: ;;
23488:
23489: sysv4.3*)
23490: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23491: hardcode_shlibpath_var_GCJ=no
23492: export_dynamic_flag_spec_GCJ='-Bexport'
23493: ;;
23494:
23495: sysv4*MP*)
23496: if test -d /usr/nec; then
23497: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23498: hardcode_shlibpath_var_GCJ=no
23499: runpath_var=LD_RUN_PATH
23500: hardcode_runpath_var=yes
23501: ld_shlibs_GCJ=yes
23502: fi
23503: ;;
23504:
23505: sysv4.2uw2*)
23506: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23507: hardcode_direct_GCJ=yes
23508: hardcode_minus_L_GCJ=no
23509: hardcode_shlibpath_var_GCJ=no
23510: hardcode_runpath_var=yes
23511: runpath_var=LD_RUN_PATH
23512: ;;
23513:
23514: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
23515: no_undefined_flag_GCJ='${wl}-z ${wl}text'
23516: if test "$GCC" = yes; then
23517: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23518: else
23519: archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23520: fi
23521: runpath_var='LD_RUN_PATH'
23522: hardcode_shlibpath_var_GCJ=no
23523: ;;
23524:
23525: sysv5*)
23526: no_undefined_flag_GCJ=' -z text'
23527: # $CC -shared without GNU ld will not create a library from C++
23528: # object files and a static libstdc++, better avoid it by now
23529: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23530: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23531: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23532: hardcode_libdir_flag_spec_GCJ=
23533: hardcode_shlibpath_var_GCJ=no
23534: runpath_var='LD_RUN_PATH'
23535: ;;
23536:
23537: uts4*)
23538: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23539: hardcode_libdir_flag_spec_GCJ='-L$libdir'
23540: hardcode_shlibpath_var_GCJ=no
23541: ;;
23542:
23543: *)
23544: ld_shlibs_GCJ=no
23545: ;;
23546: esac
23547: fi
23548:
23549: echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23550: echo "${ECHO_T}$ld_shlibs_GCJ" >&6
23551: test "$ld_shlibs_GCJ" = no && can_build_shared=no
23552:
23553: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23554: if test "$GCC" = yes; then
23555: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23556: fi
23557:
23558: #
23559: # Do we need to explicitly link libc?
23560: #
23561: case "x$archive_cmds_need_lc_GCJ" in
23562: x|xyes)
23563: # Assume -lc should be added
23564: archive_cmds_need_lc_GCJ=yes
23565:
23566: if test "$enable_shared" = yes && test "$GCC" = yes; then
23567: case $archive_cmds_GCJ in
23568: *'~'*)
23569: # FIXME: we may have to deal with multi-command sequences.
23570: ;;
23571: '$CC '*)
23572: # Test whether the compiler implicitly links with -lc since on some
23573: # systems, -lgcc has to come before -lc. If gcc already passes -lc
23574: # to ld, don't add -lc before -lgcc.
23575: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23576: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
23577: $rm conftest*
23578: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23579:
23580: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23581: (eval $ac_compile) 2>&5
23582: ac_status=$?
23583: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584: (exit $ac_status); } 2>conftest.err; then
23585: soname=conftest
23586: lib=conftest
23587: libobjs=conftest.$ac_objext
23588: deplibs=
23589: wl=$lt_prog_compiler_wl_GCJ
23590: compiler_flags=-v
23591: linker_flags=-v
23592: verstring=
23593: output_objdir=.
23594: libname=conftest
23595: lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23596: allow_undefined_flag_GCJ=
23597: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23598: (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23599: ac_status=$?
23600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601: (exit $ac_status); }
23602: then
23603: archive_cmds_need_lc_GCJ=no
23604: else
23605: archive_cmds_need_lc_GCJ=yes
23606: fi
23607: allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23608: else
23609: cat conftest.err 1>&5
23610: fi
23611: $rm conftest*
23612: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23613: echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
23614: ;;
23615: esac
23616: fi
23617: ;;
23618: esac
23619:
23620: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23621: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23622: hardcode_action_GCJ=
23623: if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23624: test -n "$runpath_var GCJ" || \
23625: test "X$hardcode_automatic_GCJ"="Xyes" ; then
23626:
23627: # We can hardcode non-existant directories.
23628: if test "$hardcode_direct_GCJ" != no &&
23629: # If the only mechanism to avoid hardcoding is shlibpath_var, we
23630: # have to relink, otherwise we might link with an installed library
23631: # when we should be linking with a yet-to-be-installed one
23632: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23633: test "$hardcode_minus_L_GCJ" != no; then
23634: # Linking always hardcodes the temporary library directory.
23635: hardcode_action_GCJ=relink
23636: else
23637: # We can link without hardcoding, and we can hardcode nonexisting dirs.
23638: hardcode_action_GCJ=immediate
23639: fi
23640: else
23641: # We cannot hardcode anything, or else we can only hardcode existing
23642: # directories.
23643: hardcode_action_GCJ=unsupported
23644: fi
23645: echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23646: echo "${ECHO_T}$hardcode_action_GCJ" >&6
23647:
23648: if test "$hardcode_action_GCJ" = relink; then
23649: # Fast installation is not supported
23650: enable_fast_install=no
23651: elif test "$shlibpath_overrides_runpath" = yes ||
23652: test "$enable_shared" = no; then
23653: # Fast installation is not necessary
23654: enable_fast_install=needless
23655: fi
23656:
23657: striplib=
23658: old_striplib=
23659: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23660: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23661: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23662: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23663: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23664: echo "$as_me:$LINENO: result: yes" >&5
23665: echo "${ECHO_T}yes" >&6
23666: else
23667: # FIXME - insert some real tests, host_os isn't really good enough
23668: case $host_os in
23669: darwin*)
23670: if test -n "$STRIP" ; then
23671: striplib="$STRIP -x"
23672: echo "$as_me:$LINENO: result: yes" >&5
23673: echo "${ECHO_T}yes" >&6
23674: else
23675: echo "$as_me:$LINENO: result: no" >&5
23676: echo "${ECHO_T}no" >&6
23677: fi
23678: ;;
23679: *)
23680: echo "$as_me:$LINENO: result: no" >&5
23681: echo "${ECHO_T}no" >&6
23682: ;;
23683: esac
23684: fi
23685:
23686: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23687: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
23688: library_names_spec=
23689: libname_spec='lib$name'
23690: soname_spec=
23691: shrext=".so"
23692: postinstall_cmds=
23693: postuninstall_cmds=
23694: finish_cmds=
23695: finish_eval=
23696: shlibpath_var=
23697: shlibpath_overrides_runpath=unknown
23698: version_type=none
23699: dynamic_linker="$host_os ld.so"
23700: sys_lib_dlsearch_path_spec="/lib /usr/lib"
23701: if test "$GCC" = yes; then
23702: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23703: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23704: # if the path contains ";" then we assume it to be the separator
23705: # otherwise default to the standard path separator (i.e. ":") - it is
23706: # assumed that no part of a normal pathname contains ";" but that should
23707: # okay in the real world where ";" in dirpaths is itself problematic.
23708: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23709: else
23710: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23711: fi
23712: else
23713: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23714: fi
23715: need_lib_prefix=unknown
23716: hardcode_into_libs=no
23717:
23718: # when you set need_version to no, make sure it does not cause -set_version
23719: # flags to be left without arguments
23720: need_version=unknown
23721:
23722: case $host_os in
23723: aix3*)
23724: version_type=linux
23725: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23726: shlibpath_var=LIBPATH
23727:
23728: # AIX 3 has no versioning support, so we append a major version to the name.
23729: soname_spec='${libname}${release}${shared_ext}$major'
23730: ;;
23731:
23732: aix4* | aix5*)
23733: version_type=linux
23734: need_lib_prefix=no
23735: need_version=no
23736: hardcode_into_libs=yes
23737: if test "$host_cpu" = ia64; then
23738: # AIX 5 supports IA64
23739: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23740: shlibpath_var=LD_LIBRARY_PATH
23741: else
23742: # With GCC up to 2.95.x, collect2 would create an import file
23743: # for dependence libraries. The import file would start with
23744: # the line `#! .'. This would cause the generated library to
23745: # depend on `.', always an invalid library. This was fixed in
23746: # development snapshots of GCC prior to 3.0.
23747: case $host_os in
23748: aix4 | aix4.[01] | aix4.[01].*)
23749: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23750: echo ' yes '
23751: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23752: :
23753: else
23754: can_build_shared=no
23755: fi
23756: ;;
23757: esac
23758: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23759: # soname into executable. Probably we can add versioning support to
23760: # collect2, so additional links can be useful in future.
23761: if test "$aix_use_runtimelinking" = yes; then
23762: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23763: # instead of lib<name>.a to let people know that these are not
23764: # typical AIX shared libraries.
23765: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23766: else
23767: # We preserve .a as extension for shared libraries through AIX4.2
23768: # and later when we are not doing run time linking.
23769: library_names_spec='${libname}${release}.a $libname.a'
23770: soname_spec='${libname}${release}${shared_ext}$major'
23771: fi
23772: shlibpath_var=LIBPATH
23773: fi
23774: ;;
23775:
23776: amigaos*)
23777: library_names_spec='$libname.ixlibrary $libname.a'
23778: # Create ${libname}_ixlibrary.a entries in /sys/libs.
23779: 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'
23780: ;;
23781:
23782: beos*)
23783: library_names_spec='${libname}${shared_ext}'
23784: dynamic_linker="$host_os ld.so"
23785: shlibpath_var=LIBRARY_PATH
23786: ;;
23787:
23788: bsdi4*)
23789: version_type=linux
23790: need_version=no
23791: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23792: soname_spec='${libname}${release}${shared_ext}$major'
23793: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23794: shlibpath_var=LD_LIBRARY_PATH
23795: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23796: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23797: # the default ld.so.conf also contains /usr/contrib/lib and
23798: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23799: # libtool to hard-code these into programs
23800: ;;
23801:
23802: cygwin* | mingw* | pw32*)
23803: version_type=windows
23804: shrext=".dll"
23805: need_version=no
23806: need_lib_prefix=no
23807:
23808: case $GCC,$host_os in
23809: yes,cygwin* | yes,mingw* | yes,pw32*)
23810: library_names_spec='$libname.dll.a'
23811: # DLL is installed to $(libdir)/../bin by postinstall_cmds
23812: postinstall_cmds='base_file=`basename \${file}`~
23813: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23814: dldir=$destdir/`dirname \$dlpath`~
23815: test -d \$dldir || mkdir -p \$dldir~
23816: $install_prog $dir/$dlname \$dldir/$dlname'
23817: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23818: dlpath=$dir/\$dldll~
23819: $rm \$dlpath'
23820: shlibpath_overrides_runpath=yes
23821:
23822: case $host_os in
23823: cygwin*)
23824: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23825: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23826: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
23827: ;;
23828: mingw*)
23829: # MinGW DLLs use traditional 'lib' prefix
23830: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23831: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23832: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23833: # It is most probably a Windows format PATH printed by
23834: # mingw gcc, but we are running on Cygwin. Gcc prints its search
23835: # path with ; separators, and with drive letters. We can handle the
23836: # drive letters (cygwin fileutils understands them), so leave them,
23837: # especially as we might pass files found there to a mingw objdump,
23838: # which wouldn't understand a cygwinified path. Ahh.
23839: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23840: else
23841: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23842: fi
23843: ;;
23844: pw32*)
23845: # pw32 DLLs use 'pw' prefix rather than 'lib'
23846: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
23847: ;;
23848: esac
23849: ;;
23850:
23851: *)
23852: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23853: ;;
23854: esac
23855: dynamic_linker='Win32 ld.exe'
23856: # FIXME: first we should search . and the directory the executable is in
23857: shlibpath_var=PATH
23858: ;;
23859:
23860: darwin* | rhapsody*)
23861: dynamic_linker="$host_os dyld"
23862: version_type=darwin
23863: need_lib_prefix=no
23864: need_version=no
23865: # FIXME: Relying on posixy $() will cause problems for
23866: # cross-compilation, but unfortunately the echo tests do not
23867: # yet detect zsh echo's removal of \ escapes.
23868: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23869: soname_spec='${libname}${release}${major}$shared_ext'
23870: shlibpath_overrides_runpath=yes
23871: shlibpath_var=DYLD_LIBRARY_PATH
23872: shrext='$(test .$module = .yes && echo .so || echo .dylib)'
23873: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23874: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
23875: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
23876: fi
23877: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23878: ;;
23879:
23880: dgux*)
23881: version_type=linux
23882: need_lib_prefix=no
23883: need_version=no
23884: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23885: soname_spec='${libname}${release}${shared_ext}$major'
23886: shlibpath_var=LD_LIBRARY_PATH
23887: ;;
23888:
23889: freebsd1*)
23890: dynamic_linker=no
23891: ;;
23892:
23893: freebsd*)
23894: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
23895: version_type=freebsd-$objformat
23896: case $version_type in
23897: freebsd-elf*)
23898: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23899: need_version=no
23900: need_lib_prefix=no
23901: ;;
23902: freebsd-*)
23903: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23904: need_version=yes
23905: ;;
23906: esac
23907: shlibpath_var=LD_LIBRARY_PATH
23908: case $host_os in
23909: freebsd2*)
23910: shlibpath_overrides_runpath=yes
23911: ;;
23912: freebsd3.01* | freebsdelf3.01*)
23913: shlibpath_overrides_runpath=yes
23914: hardcode_into_libs=yes
23915: ;;
23916: *) # from 3.2 on
23917: shlibpath_overrides_runpath=no
23918: hardcode_into_libs=yes
23919: ;;
23920: esac
23921: ;;
23922:
23923: gnu*)
23924: version_type=linux
23925: need_lib_prefix=no
23926: need_version=no
23927: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23928: soname_spec='${libname}${release}${shared_ext}$major'
23929: shlibpath_var=LD_LIBRARY_PATH
23930: hardcode_into_libs=yes
23931: ;;
23932:
23933: hpux9* | hpux10* | hpux11*)
23934: # Give a soname corresponding to the major version so that dld.sl refuses to
23935: # link against other versions.
23936: version_type=sunos
23937: need_lib_prefix=no
23938: need_version=no
23939: case "$host_cpu" in
23940: ia64*)
23941: shrext='.so'
23942: hardcode_into_libs=yes
23943: dynamic_linker="$host_os dld.so"
23944: shlibpath_var=LD_LIBRARY_PATH
23945: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23946: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23947: soname_spec='${libname}${release}${shared_ext}$major'
23948: if test "X$HPUX_IA64_MODE" = X32; then
23949: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23950: else
23951: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23952: fi
23953: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23954: ;;
23955: hppa*64*)
23956: shrext='.sl'
23957: hardcode_into_libs=yes
23958: dynamic_linker="$host_os dld.sl"
23959: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23960: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23961: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23962: soname_spec='${libname}${release}${shared_ext}$major'
23963: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23964: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23965: ;;
23966: *)
23967: shrext='.sl'
23968: dynamic_linker="$host_os dld.sl"
23969: shlibpath_var=SHLIB_PATH
23970: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23971: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23972: soname_spec='${libname}${release}${shared_ext}$major'
23973: ;;
23974: esac
23975: # HP-UX runs *really* slowly unless shared libraries are mode 555.
23976: postinstall_cmds='chmod 555 $lib'
23977: ;;
23978:
23979: irix5* | irix6* | nonstopux*)
23980: case $host_os in
23981: nonstopux*) version_type=nonstopux ;;
23982: *)
23983: if test "$lt_cv_prog_gnu_ld" = yes; then
23984: version_type=linux
23985: else
23986: version_type=irix
23987: fi ;;
23988: esac
23989: need_lib_prefix=no
23990: need_version=no
23991: soname_spec='${libname}${release}${shared_ext}$major'
23992: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23993: case $host_os in
23994: irix5* | nonstopux*)
23995: libsuff= shlibsuff=
23996: ;;
23997: *)
23998: case $LD in # libtool.m4 will add one of these switches to LD
23999: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24000: libsuff= shlibsuff= libmagic=32-bit;;
24001: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24002: libsuff=32 shlibsuff=N32 libmagic=N32;;
24003: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24004: libsuff=64 shlibsuff=64 libmagic=64-bit;;
24005: *) libsuff= shlibsuff= libmagic=never-match;;
24006: esac
24007: ;;
24008: esac
24009: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24010: shlibpath_overrides_runpath=no
24011: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24012: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24013: hardcode_into_libs=yes
24014: ;;
24015:
24016: # No shared lib support for Linux oldld, aout, or coff.
24017: linux*oldld* | linux*aout* | linux*coff*)
24018: dynamic_linker=no
24019: ;;
24020:
24021: # This must be Linux ELF.
24022: linux*)
24023: version_type=linux
24024: need_lib_prefix=no
24025: need_version=no
24026: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24027: soname_spec='${libname}${release}${shared_ext}$major'
24028: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24029: shlibpath_var=LD_LIBRARY_PATH
24030: shlibpath_overrides_runpath=no
24031: # This implies no fast_install, which is unacceptable.
24032: # Some rework will be needed to allow for fast_install
24033: # before this can be enabled.
24034: hardcode_into_libs=yes
24035:
24036: # We used to test for /lib/ld.so.1 and disable shared libraries on
24037: # powerpc, because MkLinux only supported shared libraries with the
24038: # GNU dynamic linker. Since this was broken with cross compilers,
24039: # most powerpc-linux boxes support dynamic linking these days and
24040: # people can always --disable-shared, the test was removed, and we
24041: # assume the GNU/Linux dynamic linker is in use.
24042: dynamic_linker='GNU/Linux ld.so'
24043: ;;
24044:
24045: netbsd*)
24046: version_type=sunos
24047: need_lib_prefix=no
24048: need_version=no
24049: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24050: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24051: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24052: dynamic_linker='NetBSD (a.out) ld.so'
24053: else
24054: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
24055: soname_spec='${libname}${release}${shared_ext}$major'
24056: dynamic_linker='NetBSD ld.elf_so'
24057: fi
24058: shlibpath_var=LD_LIBRARY_PATH
24059: shlibpath_overrides_runpath=yes
24060: hardcode_into_libs=yes
24061: ;;
24062:
24063: newsos6)
24064: version_type=linux
24065: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24066: shlibpath_var=LD_LIBRARY_PATH
24067: shlibpath_overrides_runpath=yes
24068: ;;
24069:
24070: nto-qnx)
24071: version_type=linux
24072: need_lib_prefix=no
24073: need_version=no
24074: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24075: soname_spec='${libname}${release}${shared_ext}$major'
24076: shlibpath_var=LD_LIBRARY_PATH
24077: shlibpath_overrides_runpath=yes
24078: ;;
24079:
24080: openbsd*)
24081: version_type=sunos
24082: need_lib_prefix=no
24083: need_version=no
24084: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24085: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24086: shlibpath_var=LD_LIBRARY_PATH
24087: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24088: case $host_os in
24089: openbsd2.[89] | openbsd2.[89].*)
24090: shlibpath_overrides_runpath=no
24091: ;;
24092: *)
24093: shlibpath_overrides_runpath=yes
24094: ;;
24095: esac
24096: else
24097: shlibpath_overrides_runpath=yes
24098: fi
24099: ;;
24100:
24101: os2*)
24102: libname_spec='$name'
24103: shrext=".dll"
24104: need_lib_prefix=no
24105: library_names_spec='$libname${shared_ext} $libname.a'
24106: dynamic_linker='OS/2 ld.exe'
24107: shlibpath_var=LIBPATH
24108: ;;
24109:
24110: osf3* | osf4* | osf5*)
24111: version_type=osf
24112: need_lib_prefix=no
24113: need_version=no
24114: soname_spec='${libname}${release}${shared_ext}$major'
24115: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24116: shlibpath_var=LD_LIBRARY_PATH
24117: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24118: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24119: ;;
24120:
24121: sco3.2v5*)
24122: version_type=osf
24123: soname_spec='${libname}${release}${shared_ext}$major'
24124: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24125: shlibpath_var=LD_LIBRARY_PATH
24126: ;;
24127:
24128: solaris*)
24129: version_type=linux
24130: need_lib_prefix=no
24131: need_version=no
24132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24133: soname_spec='${libname}${release}${shared_ext}$major'
24134: shlibpath_var=LD_LIBRARY_PATH
24135: shlibpath_overrides_runpath=yes
24136: hardcode_into_libs=yes
24137: # ldd complains unless libraries are executable
24138: postinstall_cmds='chmod +x $lib'
24139: ;;
24140:
24141: sunos4*)
24142: version_type=sunos
24143: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24144: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24145: shlibpath_var=LD_LIBRARY_PATH
24146: shlibpath_overrides_runpath=yes
24147: if test "$with_gnu_ld" = yes; then
24148: need_lib_prefix=no
24149: fi
24150: need_version=yes
24151: ;;
24152:
24153: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24154: version_type=linux
24155: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24156: soname_spec='${libname}${release}${shared_ext}$major'
24157: shlibpath_var=LD_LIBRARY_PATH
24158: case $host_vendor in
24159: sni)
24160: shlibpath_overrides_runpath=no
24161: need_lib_prefix=no
24162: export_dynamic_flag_spec='${wl}-Blargedynsym'
24163: runpath_var=LD_RUN_PATH
24164: ;;
24165: siemens)
24166: need_lib_prefix=no
24167: ;;
24168: motorola)
24169: need_lib_prefix=no
24170: need_version=no
24171: shlibpath_overrides_runpath=no
24172: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24173: ;;
24174: esac
24175: ;;
24176:
24177: sysv4*MP*)
24178: if test -d /usr/nec ;then
24179: version_type=linux
24180: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24181: soname_spec='$libname${shared_ext}.$major'
24182: shlibpath_var=LD_LIBRARY_PATH
24183: fi
24184: ;;
24185:
24186: uts4*)
24187: version_type=linux
24188: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24189: soname_spec='${libname}${release}${shared_ext}$major'
24190: shlibpath_var=LD_LIBRARY_PATH
24191: ;;
24192:
24193: *)
24194: dynamic_linker=no
24195: ;;
24196: esac
24197: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24198: echo "${ECHO_T}$dynamic_linker" >&6
24199: test "$dynamic_linker" = no && can_build_shared=no
24200:
24201: if test "x$enable_dlopen" != xyes; then
24202: enable_dlopen=unknown
24203: enable_dlopen_self=unknown
24204: enable_dlopen_self_static=unknown
24205: else
24206: lt_cv_dlopen=no
24207: lt_cv_dlopen_libs=
24208:
24209: case $host_os in
24210: beos*)
24211: lt_cv_dlopen="load_add_on"
24212: lt_cv_dlopen_libs=
24213: lt_cv_dlopen_self=yes
24214: ;;
24215:
24216: mingw* | pw32*)
24217: lt_cv_dlopen="LoadLibrary"
24218: lt_cv_dlopen_libs=
24219: ;;
24220:
24221: cygwin*)
24222: lt_cv_dlopen="dlopen"
24223: lt_cv_dlopen_libs=
24224: ;;
24225:
24226: darwin*)
24227: # if libdl is installed we need to link against it
24228: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24229: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24230: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24231: echo $ECHO_N "(cached) $ECHO_C" >&6
24232: else
24233: ac_check_lib_save_LIBS=$LIBS
24234: LIBS="-ldl $LIBS"
24235: cat >conftest.$ac_ext <<_ACEOF
24236: #line $LINENO "configure"
24237: /* confdefs.h. */
24238: _ACEOF
24239: cat confdefs.h >>conftest.$ac_ext
24240: cat >>conftest.$ac_ext <<_ACEOF
24241: /* end confdefs.h. */
24242:
24243: /* Override any gcc2 internal prototype to avoid an error. */
24244: #ifdef __cplusplus
24245: extern "C"
24246: #endif
24247: /* We use char because int might match the return type of a gcc2
24248: builtin and then its argument prototype would still apply. */
24249: char dlopen ();
24250: int
24251: main ()
24252: {
24253: dlopen ();
24254: ;
24255: return 0;
24256: }
24257: _ACEOF
24258: rm -f conftest.$ac_objext conftest$ac_exeext
24259: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24260: (eval $ac_link) 2>&5
24261: ac_status=$?
24262: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263: (exit $ac_status); } &&
24264: { ac_try='test -s conftest$ac_exeext'
24265: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24266: (eval $ac_try) 2>&5
24267: ac_status=$?
24268: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269: (exit $ac_status); }; }; then
24270: ac_cv_lib_dl_dlopen=yes
24271: else
24272: echo "$as_me: failed program was:" >&5
24273: sed 's/^/| /' conftest.$ac_ext >&5
24274:
24275: ac_cv_lib_dl_dlopen=no
24276: fi
24277: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24278: LIBS=$ac_check_lib_save_LIBS
24279: fi
24280: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24281: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24282: if test $ac_cv_lib_dl_dlopen = yes; then
24283: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24284: else
24285:
24286: lt_cv_dlopen="dyld"
24287: lt_cv_dlopen_libs=
24288: lt_cv_dlopen_self=yes
24289:
24290: fi
24291:
24292: ;;
24293:
24294: *)
24295: echo "$as_me:$LINENO: checking for shl_load" >&5
24296: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
24297: if test "${ac_cv_func_shl_load+set}" = set; then
24298: echo $ECHO_N "(cached) $ECHO_C" >&6
24299: else
24300: cat >conftest.$ac_ext <<_ACEOF
24301: #line $LINENO "configure"
24302: /* confdefs.h. */
24303: _ACEOF
24304: cat confdefs.h >>conftest.$ac_ext
24305: cat >>conftest.$ac_ext <<_ACEOF
24306: /* end confdefs.h. */
24307: /* System header to define __stub macros and hopefully few prototypes,
24308: which can conflict with char shl_load (); below.
24309: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24310: <limits.h> exists even on freestanding compilers. */
24311: #ifdef __STDC__
24312: # include <limits.h>
24313: #else
24314: # include <assert.h>
24315: #endif
24316: /* Override any gcc2 internal prototype to avoid an error. */
24317: #ifdef __cplusplus
24318: extern "C"
24319: {
24320: #endif
24321: /* We use char because int might match the return type of a gcc2
24322: builtin and then its argument prototype would still apply. */
24323: char shl_load ();
24324: /* The GNU C library defines this for functions which it implements
24325: to always fail with ENOSYS. Some functions are actually named
24326: something starting with __ and the normal name is an alias. */
24327: #if defined (__stub_shl_load) || defined (__stub___shl_load)
24328: choke me
24329: #else
24330: char (*f) () = shl_load;
24331: #endif
24332: #ifdef __cplusplus
24333: }
24334: #endif
24335:
24336: int
24337: main ()
24338: {
24339: return f != shl_load;
24340: ;
24341: return 0;
24342: }
24343: _ACEOF
24344: rm -f conftest.$ac_objext conftest$ac_exeext
24345: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24346: (eval $ac_link) 2>&5
24347: ac_status=$?
24348: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349: (exit $ac_status); } &&
24350: { ac_try='test -s conftest$ac_exeext'
24351: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24352: (eval $ac_try) 2>&5
24353: ac_status=$?
24354: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355: (exit $ac_status); }; }; then
24356: ac_cv_func_shl_load=yes
24357: else
24358: echo "$as_me: failed program was:" >&5
24359: sed 's/^/| /' conftest.$ac_ext >&5
24360:
24361: ac_cv_func_shl_load=no
24362: fi
24363: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24364: fi
24365: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
24366: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
24367: if test $ac_cv_func_shl_load = yes; then
24368: lt_cv_dlopen="shl_load"
24369: else
24370: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
24371: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
24372: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
24373: echo $ECHO_N "(cached) $ECHO_C" >&6
24374: else
24375: ac_check_lib_save_LIBS=$LIBS
24376: LIBS="-ldld $LIBS"
24377: cat >conftest.$ac_ext <<_ACEOF
24378: #line $LINENO "configure"
24379: /* confdefs.h. */
24380: _ACEOF
24381: cat confdefs.h >>conftest.$ac_ext
24382: cat >>conftest.$ac_ext <<_ACEOF
24383: /* end confdefs.h. */
24384:
24385: /* Override any gcc2 internal prototype to avoid an error. */
24386: #ifdef __cplusplus
24387: extern "C"
24388: #endif
24389: /* We use char because int might match the return type of a gcc2
24390: builtin and then its argument prototype would still apply. */
24391: char shl_load ();
24392: int
24393: main ()
24394: {
24395: shl_load ();
24396: ;
24397: return 0;
24398: }
24399: _ACEOF
24400: rm -f conftest.$ac_objext conftest$ac_exeext
24401: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24402: (eval $ac_link) 2>&5
24403: ac_status=$?
24404: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405: (exit $ac_status); } &&
24406: { ac_try='test -s conftest$ac_exeext'
24407: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24408: (eval $ac_try) 2>&5
24409: ac_status=$?
24410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411: (exit $ac_status); }; }; then
24412: ac_cv_lib_dld_shl_load=yes
24413: else
24414: echo "$as_me: failed program was:" >&5
24415: sed 's/^/| /' conftest.$ac_ext >&5
24416:
24417: ac_cv_lib_dld_shl_load=no
24418: fi
24419: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24420: LIBS=$ac_check_lib_save_LIBS
24421: fi
24422: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
24423: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
24424: if test $ac_cv_lib_dld_shl_load = yes; then
24425: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
24426: else
24427: echo "$as_me:$LINENO: checking for dlopen" >&5
24428: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
24429: if test "${ac_cv_func_dlopen+set}" = set; then
24430: echo $ECHO_N "(cached) $ECHO_C" >&6
24431: else
24432: cat >conftest.$ac_ext <<_ACEOF
24433: #line $LINENO "configure"
24434: /* confdefs.h. */
24435: _ACEOF
24436: cat confdefs.h >>conftest.$ac_ext
24437: cat >>conftest.$ac_ext <<_ACEOF
24438: /* end confdefs.h. */
24439: /* System header to define __stub macros and hopefully few prototypes,
24440: which can conflict with char dlopen (); below.
24441: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24442: <limits.h> exists even on freestanding compilers. */
24443: #ifdef __STDC__
24444: # include <limits.h>
24445: #else
24446: # include <assert.h>
24447: #endif
24448: /* Override any gcc2 internal prototype to avoid an error. */
24449: #ifdef __cplusplus
24450: extern "C"
24451: {
24452: #endif
24453: /* We use char because int might match the return type of a gcc2
24454: builtin and then its argument prototype would still apply. */
24455: char dlopen ();
24456: /* The GNU C library defines this for functions which it implements
24457: to always fail with ENOSYS. Some functions are actually named
24458: something starting with __ and the normal name is an alias. */
24459: #if defined (__stub_dlopen) || defined (__stub___dlopen)
24460: choke me
24461: #else
24462: char (*f) () = dlopen;
24463: #endif
24464: #ifdef __cplusplus
24465: }
24466: #endif
24467:
24468: int
24469: main ()
24470: {
24471: return f != dlopen;
24472: ;
24473: return 0;
24474: }
24475: _ACEOF
24476: rm -f conftest.$ac_objext conftest$ac_exeext
24477: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24478: (eval $ac_link) 2>&5
24479: ac_status=$?
24480: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481: (exit $ac_status); } &&
24482: { ac_try='test -s conftest$ac_exeext'
24483: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24484: (eval $ac_try) 2>&5
24485: ac_status=$?
24486: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487: (exit $ac_status); }; }; then
24488: ac_cv_func_dlopen=yes
24489: else
24490: echo "$as_me: failed program was:" >&5
24491: sed 's/^/| /' conftest.$ac_ext >&5
24492:
24493: ac_cv_func_dlopen=no
24494: fi
24495: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24496: fi
24497: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
24498: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
24499: if test $ac_cv_func_dlopen = yes; then
24500: lt_cv_dlopen="dlopen"
24501: else
24502: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24503: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24504: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24505: echo $ECHO_N "(cached) $ECHO_C" >&6
24506: else
24507: ac_check_lib_save_LIBS=$LIBS
24508: LIBS="-ldl $LIBS"
24509: cat >conftest.$ac_ext <<_ACEOF
24510: #line $LINENO "configure"
24511: /* confdefs.h. */
24512: _ACEOF
24513: cat confdefs.h >>conftest.$ac_ext
24514: cat >>conftest.$ac_ext <<_ACEOF
24515: /* end confdefs.h. */
24516:
24517: /* Override any gcc2 internal prototype to avoid an error. */
24518: #ifdef __cplusplus
24519: extern "C"
24520: #endif
24521: /* We use char because int might match the return type of a gcc2
24522: builtin and then its argument prototype would still apply. */
24523: char dlopen ();
24524: int
24525: main ()
24526: {
24527: dlopen ();
24528: ;
24529: return 0;
24530: }
24531: _ACEOF
24532: rm -f conftest.$ac_objext conftest$ac_exeext
24533: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24534: (eval $ac_link) 2>&5
24535: ac_status=$?
24536: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537: (exit $ac_status); } &&
24538: { ac_try='test -s conftest$ac_exeext'
24539: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24540: (eval $ac_try) 2>&5
24541: ac_status=$?
24542: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543: (exit $ac_status); }; }; then
24544: ac_cv_lib_dl_dlopen=yes
24545: else
24546: echo "$as_me: failed program was:" >&5
24547: sed 's/^/| /' conftest.$ac_ext >&5
24548:
24549: ac_cv_lib_dl_dlopen=no
24550: fi
24551: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24552: LIBS=$ac_check_lib_save_LIBS
24553: fi
24554: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24555: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24556: if test $ac_cv_lib_dl_dlopen = yes; then
24557: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24558: else
24559: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
24560: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
24561: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
24562: echo $ECHO_N "(cached) $ECHO_C" >&6
24563: else
24564: ac_check_lib_save_LIBS=$LIBS
24565: LIBS="-lsvld $LIBS"
24566: cat >conftest.$ac_ext <<_ACEOF
24567: #line $LINENO "configure"
24568: /* confdefs.h. */
24569: _ACEOF
24570: cat confdefs.h >>conftest.$ac_ext
24571: cat >>conftest.$ac_ext <<_ACEOF
24572: /* end confdefs.h. */
24573:
24574: /* Override any gcc2 internal prototype to avoid an error. */
24575: #ifdef __cplusplus
24576: extern "C"
24577: #endif
24578: /* We use char because int might match the return type of a gcc2
24579: builtin and then its argument prototype would still apply. */
24580: char dlopen ();
24581: int
24582: main ()
24583: {
24584: dlopen ();
24585: ;
24586: return 0;
24587: }
24588: _ACEOF
24589: rm -f conftest.$ac_objext conftest$ac_exeext
24590: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24591: (eval $ac_link) 2>&5
24592: ac_status=$?
24593: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594: (exit $ac_status); } &&
24595: { ac_try='test -s conftest$ac_exeext'
24596: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24597: (eval $ac_try) 2>&5
24598: ac_status=$?
24599: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600: (exit $ac_status); }; }; then
24601: ac_cv_lib_svld_dlopen=yes
24602: else
24603: echo "$as_me: failed program was:" >&5
24604: sed 's/^/| /' conftest.$ac_ext >&5
24605:
24606: ac_cv_lib_svld_dlopen=no
24607: fi
24608: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24609: LIBS=$ac_check_lib_save_LIBS
24610: fi
24611: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
24612: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
24613: if test $ac_cv_lib_svld_dlopen = yes; then
24614: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
24615: else
24616: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
24617: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
24618: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
24619: echo $ECHO_N "(cached) $ECHO_C" >&6
24620: else
24621: ac_check_lib_save_LIBS=$LIBS
24622: LIBS="-ldld $LIBS"
24623: cat >conftest.$ac_ext <<_ACEOF
24624: #line $LINENO "configure"
24625: /* confdefs.h. */
24626: _ACEOF
24627: cat confdefs.h >>conftest.$ac_ext
24628: cat >>conftest.$ac_ext <<_ACEOF
24629: /* end confdefs.h. */
24630:
24631: /* Override any gcc2 internal prototype to avoid an error. */
24632: #ifdef __cplusplus
24633: extern "C"
24634: #endif
24635: /* We use char because int might match the return type of a gcc2
24636: builtin and then its argument prototype would still apply. */
24637: char dld_link ();
24638: int
24639: main ()
24640: {
24641: dld_link ();
24642: ;
24643: return 0;
24644: }
24645: _ACEOF
24646: rm -f conftest.$ac_objext conftest$ac_exeext
24647: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24648: (eval $ac_link) 2>&5
24649: ac_status=$?
24650: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651: (exit $ac_status); } &&
24652: { ac_try='test -s conftest$ac_exeext'
24653: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24654: (eval $ac_try) 2>&5
24655: ac_status=$?
24656: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657: (exit $ac_status); }; }; then
24658: ac_cv_lib_dld_dld_link=yes
24659: else
24660: echo "$as_me: failed program was:" >&5
24661: sed 's/^/| /' conftest.$ac_ext >&5
24662:
24663: ac_cv_lib_dld_dld_link=no
24664: fi
24665: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24666: LIBS=$ac_check_lib_save_LIBS
24667: fi
24668: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
24669: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
24670: if test $ac_cv_lib_dld_dld_link = yes; then
24671: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
24672: fi
24673:
24674:
24675: fi
24676:
24677:
24678: fi
24679:
24680:
24681: fi
24682:
24683:
24684: fi
24685:
24686:
24687: fi
24688:
24689: ;;
24690: esac
24691:
24692: if test "x$lt_cv_dlopen" != xno; then
24693: enable_dlopen=yes
24694: else
24695: enable_dlopen=no
24696: fi
24697:
24698: case $lt_cv_dlopen in
24699: dlopen)
24700: save_CPPFLAGS="$CPPFLAGS"
24701: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
24702:
24703: save_LDFLAGS="$LDFLAGS"
24704: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
24705:
24706: save_LIBS="$LIBS"
24707: LIBS="$lt_cv_dlopen_libs $LIBS"
24708:
24709: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
24710: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
24711: if test "${lt_cv_dlopen_self+set}" = set; then
24712: echo $ECHO_N "(cached) $ECHO_C" >&6
24713: else
24714: if test "$cross_compiling" = yes; then :
24715: lt_cv_dlopen_self=cross
24716: else
24717: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24718: lt_status=$lt_dlunknown
24719: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root 24720: #line 24720 "configure"
1.1 root 24721: #include "confdefs.h"
24722:
24723: #if HAVE_DLFCN_H
24724: #include <dlfcn.h>
24725: #endif
24726:
24727: #include <stdio.h>
24728:
24729: #ifdef RTLD_GLOBAL
24730: # define LT_DLGLOBAL RTLD_GLOBAL
24731: #else
24732: # ifdef DL_GLOBAL
24733: # define LT_DLGLOBAL DL_GLOBAL
24734: # else
24735: # define LT_DLGLOBAL 0
24736: # endif
24737: #endif
24738:
24739: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24740: find out it does not work in some platform. */
24741: #ifndef LT_DLLAZY_OR_NOW
24742: # ifdef RTLD_LAZY
24743: # define LT_DLLAZY_OR_NOW RTLD_LAZY
24744: # else
24745: # ifdef DL_LAZY
24746: # define LT_DLLAZY_OR_NOW DL_LAZY
24747: # else
24748: # ifdef RTLD_NOW
24749: # define LT_DLLAZY_OR_NOW RTLD_NOW
24750: # else
24751: # ifdef DL_NOW
24752: # define LT_DLLAZY_OR_NOW DL_NOW
24753: # else
24754: # define LT_DLLAZY_OR_NOW 0
24755: # endif
24756: # endif
24757: # endif
24758: # endif
24759: #endif
24760:
24761: #ifdef __cplusplus
24762: extern "C" void exit (int);
24763: #endif
24764:
24765: void fnord() { int i=42;}
24766: int main ()
24767: {
24768: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24769: int status = $lt_dlunknown;
24770:
24771: if (self)
24772: {
24773: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
24774: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24775: /* dlclose (self); */
24776: }
24777:
24778: exit (status);
24779: }
24780: EOF
24781: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24782: (eval $ac_link) 2>&5
24783: ac_status=$?
24784: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24786: (./conftest; exit; ) 2>/dev/null
24787: lt_status=$?
24788: case x$lt_status in
24789: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
24790: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
24791: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
24792: esac
24793: else :
24794: # compilation failed
24795: lt_cv_dlopen_self=no
24796: fi
24797: fi
24798: rm -fr conftest*
24799:
24800:
24801: fi
24802: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
24803: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
24804:
24805: if test "x$lt_cv_dlopen_self" = xyes; then
24806: LDFLAGS="$LDFLAGS $link_static_flag"
24807: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
24808: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
24809: if test "${lt_cv_dlopen_self_static+set}" = set; then
24810: echo $ECHO_N "(cached) $ECHO_C" >&6
24811: else
24812: if test "$cross_compiling" = yes; then :
24813: lt_cv_dlopen_self_static=cross
24814: else
24815: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24816: lt_status=$lt_dlunknown
24817: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root 24818: #line 24818 "configure"
1.1 root 24819: #include "confdefs.h"
24820:
24821: #if HAVE_DLFCN_H
24822: #include <dlfcn.h>
24823: #endif
24824:
24825: #include <stdio.h>
24826:
24827: #ifdef RTLD_GLOBAL
24828: # define LT_DLGLOBAL RTLD_GLOBAL
24829: #else
24830: # ifdef DL_GLOBAL
24831: # define LT_DLGLOBAL DL_GLOBAL
24832: # else
24833: # define LT_DLGLOBAL 0
24834: # endif
24835: #endif
24836:
24837: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24838: find out it does not work in some platform. */
24839: #ifndef LT_DLLAZY_OR_NOW
24840: # ifdef RTLD_LAZY
24841: # define LT_DLLAZY_OR_NOW RTLD_LAZY
24842: # else
24843: # ifdef DL_LAZY
24844: # define LT_DLLAZY_OR_NOW DL_LAZY
24845: # else
24846: # ifdef RTLD_NOW
24847: # define LT_DLLAZY_OR_NOW RTLD_NOW
24848: # else
24849: # ifdef DL_NOW
24850: # define LT_DLLAZY_OR_NOW DL_NOW
24851: # else
24852: # define LT_DLLAZY_OR_NOW 0
24853: # endif
24854: # endif
24855: # endif
24856: # endif
24857: #endif
24858:
24859: #ifdef __cplusplus
24860: extern "C" void exit (int);
24861: #endif
24862:
24863: void fnord() { int i=42;}
24864: int main ()
24865: {
24866: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24867: int status = $lt_dlunknown;
24868:
24869: if (self)
24870: {
24871: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
24872: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24873: /* dlclose (self); */
24874: }
24875:
24876: exit (status);
24877: }
24878: EOF
24879: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24880: (eval $ac_link) 2>&5
24881: ac_status=$?
24882: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24884: (./conftest; exit; ) 2>/dev/null
24885: lt_status=$?
24886: case x$lt_status in
24887: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
24888: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
24889: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
24890: esac
24891: else :
24892: # compilation failed
24893: lt_cv_dlopen_self_static=no
24894: fi
24895: fi
24896: rm -fr conftest*
24897:
24898:
24899: fi
24900: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24901: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
24902: fi
24903:
24904: CPPFLAGS="$save_CPPFLAGS"
24905: LDFLAGS="$save_LDFLAGS"
24906: LIBS="$save_LIBS"
24907: ;;
24908: esac
24909:
24910: case $lt_cv_dlopen_self in
24911: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24912: *) enable_dlopen_self=unknown ;;
24913: esac
24914:
24915: case $lt_cv_dlopen_self_static in
24916: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24917: *) enable_dlopen_self_static=unknown ;;
24918: esac
24919: fi
24920:
24921:
24922: # The else clause should only fire when bootstrapping the
24923: # libtool distribution, otherwise you forgot to ship ltmain.sh
24924: # with your package, and you will get complaints that there are
24925: # no rules to generate ltmain.sh.
24926: if test -f "$ltmain"; then
24927: # See if we are running on zsh, and set the options which allow our commands through
24928: # without removal of \ escapes.
24929: if test -n "${ZSH_VERSION+set}" ; then
24930: setopt NO_GLOB_SUBST
24931: fi
24932: # Now quote all the things that may contain metacharacters while being
24933: # careful not to overquote the AC_SUBSTed values. We take copies of the
24934: # variables and quote the copies for generation of the libtool script.
24935: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
24936: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24937: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24938: deplibs_check_method reload_flag reload_cmds need_locks \
24939: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24940: lt_cv_sys_global_symbol_to_c_name_address \
24941: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24942: old_postinstall_cmds old_postuninstall_cmds \
24943: compiler_GCJ \
24944: CC_GCJ \
24945: LD_GCJ \
24946: lt_prog_compiler_wl_GCJ \
24947: lt_prog_compiler_pic_GCJ \
24948: lt_prog_compiler_static_GCJ \
24949: lt_prog_compiler_no_builtin_flag_GCJ \
24950: export_dynamic_flag_spec_GCJ \
24951: thread_safe_flag_spec_GCJ \
24952: whole_archive_flag_spec_GCJ \
24953: enable_shared_with_static_runtimes_GCJ \
24954: old_archive_cmds_GCJ \
24955: old_archive_from_new_cmds_GCJ \
24956: predep_objects_GCJ \
24957: postdep_objects_GCJ \
24958: predeps_GCJ \
24959: postdeps_GCJ \
24960: compiler_lib_search_path_GCJ \
24961: archive_cmds_GCJ \
24962: archive_expsym_cmds_GCJ \
24963: postinstall_cmds_GCJ \
24964: postuninstall_cmds_GCJ \
24965: old_archive_from_expsyms_cmds_GCJ \
24966: allow_undefined_flag_GCJ \
24967: no_undefined_flag_GCJ \
24968: export_symbols_cmds_GCJ \
24969: hardcode_libdir_flag_spec_GCJ \
24970: hardcode_libdir_flag_spec_ld_GCJ \
24971: hardcode_libdir_separator_GCJ \
24972: hardcode_automatic_GCJ \
24973: module_cmds_GCJ \
24974: module_expsym_cmds_GCJ \
24975: lt_cv_prog_compiler_c_o_GCJ \
24976: exclude_expsyms_GCJ \
24977: include_expsyms_GCJ; do
24978:
24979: case $var in
24980: old_archive_cmds_GCJ | \
24981: old_archive_from_new_cmds_GCJ | \
24982: archive_cmds_GCJ | \
24983: archive_expsym_cmds_GCJ | \
24984: module_cmds_GCJ | \
24985: module_expsym_cmds_GCJ | \
24986: old_archive_from_expsyms_cmds_GCJ | \
24987: export_symbols_cmds_GCJ | \
24988: extract_expsyms_cmds | reload_cmds | finish_cmds | \
24989: postinstall_cmds | postuninstall_cmds | \
24990: old_postinstall_cmds | old_postuninstall_cmds | \
24991: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24992: # Double-quote double-evaled strings.
24993: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24994: ;;
24995: *)
24996: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24997: ;;
24998: esac
24999: done
25000:
25001: case $lt_echo in
25002: *'\$0 --fallback-echo"')
25003: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25004: ;;
25005: esac
25006:
25007: cfgfile="$ofile"
25008:
25009: cat <<__EOF__ >> "$cfgfile"
25010: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25011:
25012: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25013:
25014: # Shell to use when invoking shell scripts.
25015: SHELL=$lt_SHELL
25016:
25017: # Whether or not to build shared libraries.
25018: build_libtool_libs=$enable_shared
25019:
25020: # Whether or not to build static libraries.
25021: build_old_libs=$enable_static
25022:
25023: # Whether or not to add -lc for building shared libraries.
25024: build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25025:
25026: # Whether or not to disallow shared libs when runtime libs are static
25027: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25028:
25029: # Whether or not to optimize for fast installation.
25030: fast_install=$enable_fast_install
25031:
25032: # The host system.
25033: host_alias=$host_alias
25034: host=$host
25035:
25036: # An echo program that does not interpret backslashes.
25037: echo=$lt_echo
25038:
25039: # The archiver.
25040: AR=$lt_AR
25041: AR_FLAGS=$lt_AR_FLAGS
25042:
25043: # A C compiler.
25044: LTCC=$lt_LTCC
25045:
25046: # A language-specific compiler.
25047: CC=$lt_compiler_GCJ
25048:
25049: # Is the compiler the GNU C compiler?
25050: with_gcc=$GCC_GCJ
25051:
25052: # An ERE matcher.
25053: EGREP=$lt_EGREP
25054:
25055: # The linker used to build libraries.
25056: LD=$lt_LD_GCJ
25057:
25058: # Whether we need hard or soft links.
25059: LN_S=$lt_LN_S
25060:
25061: # A BSD-compatible nm program.
25062: NM=$lt_NM
25063:
25064: # A symbol stripping program
25065: STRIP=$STRIP
25066:
25067: # Used to examine libraries when file_magic_cmd begins "file"
25068: MAGIC_CMD=$MAGIC_CMD
25069:
25070: # Used on cygwin: DLL creation program.
25071: DLLTOOL="$DLLTOOL"
25072:
25073: # Used on cygwin: object dumper.
25074: OBJDUMP="$OBJDUMP"
25075:
25076: # Used on cygwin: assembler.
25077: AS="$AS"
25078:
25079: # The name of the directory that contains temporary libtool files.
25080: objdir=$objdir
25081:
25082: # How to create reloadable object files.
25083: reload_flag=$lt_reload_flag
25084: reload_cmds=$lt_reload_cmds
25085:
25086: # How to pass a linker flag through the compiler.
25087: wl=$lt_lt_prog_compiler_wl_GCJ
25088:
25089: # Object file suffix (normally "o").
25090: objext="$ac_objext"
25091:
25092: # Old archive suffix (normally "a").
25093: libext="$libext"
25094:
25095: # Shared library suffix (normally ".so").
25096: shrext='$shrext'
25097:
25098: # Executable file suffix (normally "").
25099: exeext="$exeext"
25100:
25101: # Additional compiler flags for building library objects.
25102: pic_flag=$lt_lt_prog_compiler_pic_GCJ
25103: pic_mode=$pic_mode
25104:
25105: # What is the maximum length of a command?
25106: max_cmd_len=$lt_cv_sys_max_cmd_len
25107:
25108: # Does compiler simultaneously support -c and -o options?
25109: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25110:
25111: # Must we lock files when doing compilation ?
25112: need_locks=$lt_need_locks
25113:
25114: # Do we need the lib prefix for modules?
25115: need_lib_prefix=$need_lib_prefix
25116:
25117: # Do we need a version for libraries?
25118: need_version=$need_version
25119:
25120: # Whether dlopen is supported.
25121: dlopen_support=$enable_dlopen
25122:
25123: # Whether dlopen of programs is supported.
25124: dlopen_self=$enable_dlopen_self
25125:
25126: # Whether dlopen of statically linked programs is supported.
25127: dlopen_self_static=$enable_dlopen_self_static
25128:
25129: # Compiler flag to prevent dynamic linking.
25130: link_static_flag=$lt_lt_prog_compiler_static_GCJ
25131:
25132: # Compiler flag to turn off builtin functions.
25133: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25134:
25135: # Compiler flag to allow reflexive dlopens.
25136: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25137:
25138: # Compiler flag to generate shared objects directly from archives.
25139: whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25140:
25141: # Compiler flag to generate thread-safe objects.
25142: thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25143:
25144: # Library versioning type.
25145: version_type=$version_type
25146:
25147: # Format of library name prefix.
25148: libname_spec=$lt_libname_spec
25149:
25150: # List of archive names. First name is the real one, the rest are links.
25151: # The last name is the one that the linker finds with -lNAME.
25152: library_names_spec=$lt_library_names_spec
25153:
25154: # The coded name of the library, if different from the real name.
25155: soname_spec=$lt_soname_spec
25156:
25157: # Commands used to build and install an old-style archive.
25158: RANLIB=$lt_RANLIB
25159: old_archive_cmds=$lt_old_archive_cmds_GCJ
25160: old_postinstall_cmds=$lt_old_postinstall_cmds
25161: old_postuninstall_cmds=$lt_old_postuninstall_cmds
25162:
25163: # Create an old-style archive from a shared archive.
25164: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25165:
25166: # Create a temporary old-style archive to link instead of a shared archive.
25167: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25168:
25169: # Commands used to build and install a shared archive.
25170: archive_cmds=$lt_archive_cmds_GCJ
25171: archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25172: postinstall_cmds=$lt_postinstall_cmds
25173: postuninstall_cmds=$lt_postuninstall_cmds
25174:
25175: # Commands used to build a loadable module (assumed same as above if empty)
25176: module_cmds=$lt_module_cmds_GCJ
25177: module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25178:
25179: # Commands to strip libraries.
25180: old_striplib=$lt_old_striplib
25181: striplib=$lt_striplib
25182:
25183: # Dependencies to place before the objects being linked to create a
25184: # shared library.
25185: predep_objects=$lt_predep_objects_GCJ
25186:
25187: # Dependencies to place after the objects being linked to create a
25188: # shared library.
25189: postdep_objects=$lt_postdep_objects_GCJ
25190:
25191: # Dependencies to place before the objects being linked to create a
25192: # shared library.
25193: predeps=$lt_predeps_GCJ
25194:
25195: # Dependencies to place after the objects being linked to create a
25196: # shared library.
25197: postdeps=$lt_postdeps_GCJ
25198:
25199: # The library search path used internally by the compiler when linking
25200: # a shared library.
25201: compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25202:
25203: # Method to check whether dependent libraries are shared objects.
25204: deplibs_check_method=$lt_deplibs_check_method
25205:
25206: # Command to use when deplibs_check_method == file_magic.
25207: file_magic_cmd=$lt_file_magic_cmd
25208:
25209: # Flag that allows shared libraries with undefined symbols to be built.
25210: allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25211:
25212: # Flag that forces no undefined symbols.
25213: no_undefined_flag=$lt_no_undefined_flag_GCJ
25214:
25215: # Commands used to finish a libtool library installation in a directory.
25216: finish_cmds=$lt_finish_cmds
25217:
25218: # Same as above, but a single script fragment to be evaled but not shown.
25219: finish_eval=$lt_finish_eval
25220:
25221: # Take the output of nm and produce a listing of raw symbols and C names.
25222: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25223:
25224: # Transform the output of nm in a proper C declaration
25225: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25226:
25227: # Transform the output of nm in a C name address pair
25228: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25229:
25230: # This is the shared library runtime path variable.
25231: runpath_var=$runpath_var
25232:
25233: # This is the shared library path variable.
25234: shlibpath_var=$shlibpath_var
25235:
25236: # Is shlibpath searched before the hard-coded library search path?
25237: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25238:
25239: # How to hardcode a shared library path into an executable.
25240: hardcode_action=$hardcode_action_GCJ
25241:
25242: # Whether we should hardcode library paths into libraries.
25243: hardcode_into_libs=$hardcode_into_libs
25244:
25245: # Flag to hardcode \$libdir into a binary during linking.
25246: # This must work even if \$libdir does not exist.
25247: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25248:
25249: # If ld is used when linking, flag to hardcode \$libdir into
25250: # a binary during linking. This must work even if \$libdir does
25251: # not exist.
25252: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25253:
25254: # Whether we need a single -rpath flag with a separated argument.
25255: hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25256:
25257: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25258: # resulting binary.
25259: hardcode_direct=$hardcode_direct_GCJ
25260:
25261: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25262: # resulting binary.
25263: hardcode_minus_L=$hardcode_minus_L_GCJ
25264:
25265: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25266: # the resulting binary.
25267: hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25268:
25269: # Set to yes if building a shared library automatically hardcodes DIR into the library
25270: # and all subsequent libraries and executables linked against it.
25271: hardcode_automatic=$hardcode_automatic_GCJ
25272:
25273: # Variables whose values should be saved in libtool wrapper scripts and
25274: # restored at relink time.
25275: variables_saved_for_relink="$variables_saved_for_relink"
25276:
25277: # Whether libtool must link a program against all its dependency libraries.
25278: link_all_deplibs=$link_all_deplibs_GCJ
25279:
25280: # Compile-time system search path for libraries
25281: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25282:
25283: # Run-time system search path for libraries
25284: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25285:
25286: # Fix the shell variable \$srcfile for the compiler.
25287: fix_srcfile_path="$fix_srcfile_path_GCJ"
25288:
25289: # Set to yes if exported symbols are required.
25290: always_export_symbols=$always_export_symbols_GCJ
25291:
25292: # The commands to list exported symbols.
25293: export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25294:
25295: # The commands to extract the exported symbol list from a shared archive.
25296: extract_expsyms_cmds=$lt_extract_expsyms_cmds
25297:
25298: # Symbols that should not be listed in the preloaded symbols.
25299: exclude_expsyms=$lt_exclude_expsyms_GCJ
25300:
25301: # Symbols that must always be exported.
25302: include_expsyms=$lt_include_expsyms_GCJ
25303:
25304: # ### END LIBTOOL TAG CONFIG: $tagname
25305:
25306: __EOF__
25307:
25308:
25309: else
25310: # If there is no Makefile yet, we rely on a make rule to execute
25311: # `config.status --recheck' to rerun these tests and create the
25312: # libtool script then.
25313: test -f Makefile && make "$ltmain"
25314: fi
25315:
25316:
25317: ac_ext=c
25318: ac_cpp='$CPP $CPPFLAGS'
25319: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25320: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25321: ac_compiler_gnu=$ac_cv_c_compiler_gnu
25322:
25323: CC="$lt_save_CC"
25324:
25325: else
25326: tagname=""
25327: fi
25328: ;;
25329:
25330: RC)
25331:
25332:
25333:
25334: # Source file extension for RC test sources.
25335: ac_ext=rc
25336:
25337: # Object file extension for compiled RC test sources.
25338: objext=o
25339: objext_RC=$objext
25340:
25341: # Code to be used in simple compile tests
25342: lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25343:
25344: # Code to be used in simple link tests
25345: lt_simple_link_test_code="$lt_simple_compile_test_code"
25346:
25347: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25348:
25349: # If no C compiler was specified, use CC.
25350: LTCC=${LTCC-"$CC"}
25351:
25352: # Allow CC to be a program name with arguments.
25353: compiler=$CC
25354:
25355:
25356: # Allow CC to be a program name with arguments.
25357: lt_save_CC="$CC"
25358: CC=${RC-"windres"}
25359: compiler=$CC
25360: compiler_RC=$CC
25361: lt_cv_prog_compiler_c_o_RC=yes
25362:
25363: # The else clause should only fire when bootstrapping the
25364: # libtool distribution, otherwise you forgot to ship ltmain.sh
25365: # with your package, and you will get complaints that there are
25366: # no rules to generate ltmain.sh.
25367: if test -f "$ltmain"; then
25368: # See if we are running on zsh, and set the options which allow our commands through
25369: # without removal of \ escapes.
25370: if test -n "${ZSH_VERSION+set}" ; then
25371: setopt NO_GLOB_SUBST
25372: fi
25373: # Now quote all the things that may contain metacharacters while being
25374: # careful not to overquote the AC_SUBSTed values. We take copies of the
25375: # variables and quote the copies for generation of the libtool script.
25376: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
25377: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25378: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25379: deplibs_check_method reload_flag reload_cmds need_locks \
25380: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25381: lt_cv_sys_global_symbol_to_c_name_address \
25382: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25383: old_postinstall_cmds old_postuninstall_cmds \
25384: compiler_RC \
25385: CC_RC \
25386: LD_RC \
25387: lt_prog_compiler_wl_RC \
25388: lt_prog_compiler_pic_RC \
25389: lt_prog_compiler_static_RC \
25390: lt_prog_compiler_no_builtin_flag_RC \
25391: export_dynamic_flag_spec_RC \
25392: thread_safe_flag_spec_RC \
25393: whole_archive_flag_spec_RC \
25394: enable_shared_with_static_runtimes_RC \
25395: old_archive_cmds_RC \
25396: old_archive_from_new_cmds_RC \
25397: predep_objects_RC \
25398: postdep_objects_RC \
25399: predeps_RC \
25400: postdeps_RC \
25401: compiler_lib_search_path_RC \
25402: archive_cmds_RC \
25403: archive_expsym_cmds_RC \
25404: postinstall_cmds_RC \
25405: postuninstall_cmds_RC \
25406: old_archive_from_expsyms_cmds_RC \
25407: allow_undefined_flag_RC \
25408: no_undefined_flag_RC \
25409: export_symbols_cmds_RC \
25410: hardcode_libdir_flag_spec_RC \
25411: hardcode_libdir_flag_spec_ld_RC \
25412: hardcode_libdir_separator_RC \
25413: hardcode_automatic_RC \
25414: module_cmds_RC \
25415: module_expsym_cmds_RC \
25416: lt_cv_prog_compiler_c_o_RC \
25417: exclude_expsyms_RC \
25418: include_expsyms_RC; do
25419:
25420: case $var in
25421: old_archive_cmds_RC | \
25422: old_archive_from_new_cmds_RC | \
25423: archive_cmds_RC | \
25424: archive_expsym_cmds_RC | \
25425: module_cmds_RC | \
25426: module_expsym_cmds_RC | \
25427: old_archive_from_expsyms_cmds_RC | \
25428: export_symbols_cmds_RC | \
25429: extract_expsyms_cmds | reload_cmds | finish_cmds | \
25430: postinstall_cmds | postuninstall_cmds | \
25431: old_postinstall_cmds | old_postuninstall_cmds | \
25432: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25433: # Double-quote double-evaled strings.
25434: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25435: ;;
25436: *)
25437: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25438: ;;
25439: esac
25440: done
25441:
25442: case $lt_echo in
25443: *'\$0 --fallback-echo"')
25444: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25445: ;;
25446: esac
25447:
25448: cfgfile="$ofile"
25449:
25450: cat <<__EOF__ >> "$cfgfile"
25451: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25452:
25453: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25454:
25455: # Shell to use when invoking shell scripts.
25456: SHELL=$lt_SHELL
25457:
25458: # Whether or not to build shared libraries.
25459: build_libtool_libs=$enable_shared
25460:
25461: # Whether or not to build static libraries.
25462: build_old_libs=$enable_static
25463:
25464: # Whether or not to add -lc for building shared libraries.
25465: build_libtool_need_lc=$archive_cmds_need_lc_RC
25466:
25467: # Whether or not to disallow shared libs when runtime libs are static
25468: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25469:
25470: # Whether or not to optimize for fast installation.
25471: fast_install=$enable_fast_install
25472:
25473: # The host system.
25474: host_alias=$host_alias
25475: host=$host
25476:
25477: # An echo program that does not interpret backslashes.
25478: echo=$lt_echo
25479:
25480: # The archiver.
25481: AR=$lt_AR
25482: AR_FLAGS=$lt_AR_FLAGS
25483:
25484: # A C compiler.
25485: LTCC=$lt_LTCC
25486:
25487: # A language-specific compiler.
25488: CC=$lt_compiler_RC
25489:
25490: # Is the compiler the GNU C compiler?
25491: with_gcc=$GCC_RC
25492:
25493: # An ERE matcher.
25494: EGREP=$lt_EGREP
25495:
25496: # The linker used to build libraries.
25497: LD=$lt_LD_RC
25498:
25499: # Whether we need hard or soft links.
25500: LN_S=$lt_LN_S
25501:
25502: # A BSD-compatible nm program.
25503: NM=$lt_NM
25504:
25505: # A symbol stripping program
25506: STRIP=$STRIP
25507:
25508: # Used to examine libraries when file_magic_cmd begins "file"
25509: MAGIC_CMD=$MAGIC_CMD
25510:
25511: # Used on cygwin: DLL creation program.
25512: DLLTOOL="$DLLTOOL"
25513:
25514: # Used on cygwin: object dumper.
25515: OBJDUMP="$OBJDUMP"
25516:
25517: # Used on cygwin: assembler.
25518: AS="$AS"
25519:
25520: # The name of the directory that contains temporary libtool files.
25521: objdir=$objdir
25522:
25523: # How to create reloadable object files.
25524: reload_flag=$lt_reload_flag
25525: reload_cmds=$lt_reload_cmds
25526:
25527: # How to pass a linker flag through the compiler.
25528: wl=$lt_lt_prog_compiler_wl_RC
25529:
25530: # Object file suffix (normally "o").
25531: objext="$ac_objext"
25532:
25533: # Old archive suffix (normally "a").
25534: libext="$libext"
25535:
25536: # Shared library suffix (normally ".so").
25537: shrext='$shrext'
25538:
25539: # Executable file suffix (normally "").
25540: exeext="$exeext"
25541:
25542: # Additional compiler flags for building library objects.
25543: pic_flag=$lt_lt_prog_compiler_pic_RC
25544: pic_mode=$pic_mode
25545:
25546: # What is the maximum length of a command?
25547: max_cmd_len=$lt_cv_sys_max_cmd_len
25548:
25549: # Does compiler simultaneously support -c and -o options?
25550: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25551:
25552: # Must we lock files when doing compilation ?
25553: need_locks=$lt_need_locks
25554:
25555: # Do we need the lib prefix for modules?
25556: need_lib_prefix=$need_lib_prefix
25557:
25558: # Do we need a version for libraries?
25559: need_version=$need_version
25560:
25561: # Whether dlopen is supported.
25562: dlopen_support=$enable_dlopen
25563:
25564: # Whether dlopen of programs is supported.
25565: dlopen_self=$enable_dlopen_self
25566:
25567: # Whether dlopen of statically linked programs is supported.
25568: dlopen_self_static=$enable_dlopen_self_static
25569:
25570: # Compiler flag to prevent dynamic linking.
25571: link_static_flag=$lt_lt_prog_compiler_static_RC
25572:
25573: # Compiler flag to turn off builtin functions.
25574: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25575:
25576: # Compiler flag to allow reflexive dlopens.
25577: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25578:
25579: # Compiler flag to generate shared objects directly from archives.
25580: whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25581:
25582: # Compiler flag to generate thread-safe objects.
25583: thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25584:
25585: # Library versioning type.
25586: version_type=$version_type
25587:
25588: # Format of library name prefix.
25589: libname_spec=$lt_libname_spec
25590:
25591: # List of archive names. First name is the real one, the rest are links.
25592: # The last name is the one that the linker finds with -lNAME.
25593: library_names_spec=$lt_library_names_spec
25594:
25595: # The coded name of the library, if different from the real name.
25596: soname_spec=$lt_soname_spec
25597:
25598: # Commands used to build and install an old-style archive.
25599: RANLIB=$lt_RANLIB
25600: old_archive_cmds=$lt_old_archive_cmds_RC
25601: old_postinstall_cmds=$lt_old_postinstall_cmds
25602: old_postuninstall_cmds=$lt_old_postuninstall_cmds
25603:
25604: # Create an old-style archive from a shared archive.
25605: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25606:
25607: # Create a temporary old-style archive to link instead of a shared archive.
25608: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25609:
25610: # Commands used to build and install a shared archive.
25611: archive_cmds=$lt_archive_cmds_RC
25612: archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25613: postinstall_cmds=$lt_postinstall_cmds
25614: postuninstall_cmds=$lt_postuninstall_cmds
25615:
25616: # Commands used to build a loadable module (assumed same as above if empty)
25617: module_cmds=$lt_module_cmds_RC
25618: module_expsym_cmds=$lt_module_expsym_cmds_RC
25619:
25620: # Commands to strip libraries.
25621: old_striplib=$lt_old_striplib
25622: striplib=$lt_striplib
25623:
25624: # Dependencies to place before the objects being linked to create a
25625: # shared library.
25626: predep_objects=$lt_predep_objects_RC
25627:
25628: # Dependencies to place after the objects being linked to create a
25629: # shared library.
25630: postdep_objects=$lt_postdep_objects_RC
25631:
25632: # Dependencies to place before the objects being linked to create a
25633: # shared library.
25634: predeps=$lt_predeps_RC
25635:
25636: # Dependencies to place after the objects being linked to create a
25637: # shared library.
25638: postdeps=$lt_postdeps_RC
25639:
25640: # The library search path used internally by the compiler when linking
25641: # a shared library.
25642: compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25643:
25644: # Method to check whether dependent libraries are shared objects.
25645: deplibs_check_method=$lt_deplibs_check_method
25646:
25647: # Command to use when deplibs_check_method == file_magic.
25648: file_magic_cmd=$lt_file_magic_cmd
25649:
25650: # Flag that allows shared libraries with undefined symbols to be built.
25651: allow_undefined_flag=$lt_allow_undefined_flag_RC
25652:
25653: # Flag that forces no undefined symbols.
25654: no_undefined_flag=$lt_no_undefined_flag_RC
25655:
25656: # Commands used to finish a libtool library installation in a directory.
25657: finish_cmds=$lt_finish_cmds
25658:
25659: # Same as above, but a single script fragment to be evaled but not shown.
25660: finish_eval=$lt_finish_eval
25661:
25662: # Take the output of nm and produce a listing of raw symbols and C names.
25663: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25664:
25665: # Transform the output of nm in a proper C declaration
25666: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25667:
25668: # Transform the output of nm in a C name address pair
25669: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25670:
25671: # This is the shared library runtime path variable.
25672: runpath_var=$runpath_var
25673:
25674: # This is the shared library path variable.
25675: shlibpath_var=$shlibpath_var
25676:
25677: # Is shlibpath searched before the hard-coded library search path?
25678: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25679:
25680: # How to hardcode a shared library path into an executable.
25681: hardcode_action=$hardcode_action_RC
25682:
25683: # Whether we should hardcode library paths into libraries.
25684: hardcode_into_libs=$hardcode_into_libs
25685:
25686: # Flag to hardcode \$libdir into a binary during linking.
25687: # This must work even if \$libdir does not exist.
25688: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25689:
25690: # If ld is used when linking, flag to hardcode \$libdir into
25691: # a binary during linking. This must work even if \$libdir does
25692: # not exist.
25693: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25694:
25695: # Whether we need a single -rpath flag with a separated argument.
25696: hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25697:
25698: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25699: # resulting binary.
25700: hardcode_direct=$hardcode_direct_RC
25701:
25702: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25703: # resulting binary.
25704: hardcode_minus_L=$hardcode_minus_L_RC
25705:
25706: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25707: # the resulting binary.
25708: hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25709:
25710: # Set to yes if building a shared library automatically hardcodes DIR into the library
25711: # and all subsequent libraries and executables linked against it.
25712: hardcode_automatic=$hardcode_automatic_RC
25713:
25714: # Variables whose values should be saved in libtool wrapper scripts and
25715: # restored at relink time.
25716: variables_saved_for_relink="$variables_saved_for_relink"
25717:
25718: # Whether libtool must link a program against all its dependency libraries.
25719: link_all_deplibs=$link_all_deplibs_RC
25720:
25721: # Compile-time system search path for libraries
25722: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25723:
25724: # Run-time system search path for libraries
25725: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25726:
25727: # Fix the shell variable \$srcfile for the compiler.
25728: fix_srcfile_path="$fix_srcfile_path_RC"
25729:
25730: # Set to yes if exported symbols are required.
25731: always_export_symbols=$always_export_symbols_RC
25732:
25733: # The commands to list exported symbols.
25734: export_symbols_cmds=$lt_export_symbols_cmds_RC
25735:
25736: # The commands to extract the exported symbol list from a shared archive.
25737: extract_expsyms_cmds=$lt_extract_expsyms_cmds
25738:
25739: # Symbols that should not be listed in the preloaded symbols.
25740: exclude_expsyms=$lt_exclude_expsyms_RC
25741:
25742: # Symbols that must always be exported.
25743: include_expsyms=$lt_include_expsyms_RC
25744:
25745: # ### END LIBTOOL TAG CONFIG: $tagname
25746:
25747: __EOF__
25748:
25749:
25750: else
25751: # If there is no Makefile yet, we rely on a make rule to execute
25752: # `config.status --recheck' to rerun these tests and create the
25753: # libtool script then.
25754: test -f Makefile && make "$ltmain"
25755: fi
25756:
25757:
25758: ac_ext=c
25759: ac_cpp='$CPP $CPPFLAGS'
25760: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25761: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25762: ac_compiler_gnu=$ac_cv_c_compiler_gnu
25763:
25764: CC="$lt_save_CC"
25765:
25766: ;;
25767:
25768: *)
25769: { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25770: echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25771: { (exit 1); exit 1; }; }
25772: ;;
25773: esac
25774:
25775: # Append the new tag name to the list of available tags.
25776: if test -n "$tagname" ; then
25777: available_tags="$available_tags $tagname"
25778: fi
25779: fi
25780: done
25781: IFS="$lt_save_ifs"
25782:
25783: # Now substitute the updated list of available tags.
25784: if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25785: mv "${ofile}T" "$ofile"
25786: chmod +x "$ofile"
25787: else
25788: rm -f "${ofile}T"
25789: { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25790: echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25791: { (exit 1); exit 1; }; }
25792: fi
25793: fi
25794:
25795:
25796:
25797: # This can be used to rebuild libtool when needed
25798: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25799:
25800: # Always use our own libtool.
25801: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
25802:
25803: # Prevent multiple expansion
25804:
25805:
25806:
25807:
25808:
25809:
25810:
25811:
25812:
25813:
25814:
25815:
25816:
25817:
25818:
25819:
25820:
25821:
25822:
25823:
25824:
25825:
25826:
25827: subdirs="$subdirs libltdl"
25828:
25829: TME_PREOPEN=
25830: if test $enable_shared = no; then
25831: TME_PREOPEN='`sort -u $(top_builddir)/tme-preopen.txt`'
25832: fi
25833:
25834:
25835: # Check whether --enable-debug or --disable-debug was given.
25836: if test "${enable_debug+set}" = set; then
25837: enableval="$enable_debug"
25838:
25839: else
1.1.1.3 ! root 25840: enable_debug=no
1.1 root 25841: fi;
25842: if test "x$enable_debug" = "xyes"; then
25843: CFLAGS="${CFLAGS-} -g -O0"
25844: CXXFLAGS="${CXXFLAGS-} -g3 -O0"
1.1.1.3 ! root 25845: else
! 25846: CPPFLAGS="${CPPFLAGS-} -DTME_NO_LOG -DTME_NO_DEBUG_LOCKS -DTME_NO_AUDIT_ATOMICS -DNDEBUG"
1.1 root 25847: fi
25848: # Check whether --enable-warnings or --disable-warnings was given.
25849: if test "${enable_warnings+set}" = set; then
25850: enableval="$enable_warnings"
25851:
25852: else
25853: enable_warnings=yes
25854: fi;
25855: if test "x$enable_warnings" = "xyes" -a "x$GCC" = "xyes"; then
1.1.1.3 ! root 25856: CFLAGS="${CFLAGS-} -Wundef -Wall -Werror"
1.1 root 25857: CXXFLAGS="${CXXFLAGS-} -W"
25858: fi
25859:
1.1.1.3 ! root 25860: CFLAGS_NO_STRICT_ALIASING=
! 25861: if test "x$GCC" = "xyes"; then
! 25862: CFLAGS_NO_STRICT_ALIASING=" -fno-strict-aliasing"
! 25863: fi
! 25864:
! 25865:
1.1 root 25866: ac_config_commands="$ac_config_commands default-1"
25867:
25868:
1.1.1.3 ! root 25869: ac_config_files="$ac_config_files Makefile tme/Makefile tme/ic/Makefile tme/machine/Makefile tme/generic/Makefile tme/scsi/Makefile libtme/Makefile ic/Makefile ic/m68k/Makefile ic/ieee754/Makefile machine/Makefile machine/sun/Makefile machine/sun2/Makefile machine/sun3/Makefile host/Makefile host/posix/Makefile host/bsd/Makefile host/gtk/Makefile bus/Makefile bus/multibus/Makefile serial/Makefile scsi/Makefile generic/Makefile tmesh/Makefile tools/Makefile"
1.1 root 25870: cat >confcache <<\_ACEOF
25871: # This file is a shell script that caches the results of configure
25872: # tests run on this system so they can be shared between configure
25873: # scripts and configure runs, see configure's option --config-cache.
25874: # It is not useful on other systems. If it contains results you don't
25875: # want to keep, you may remove or edit it.
25876: #
25877: # config.status only pays attention to the cache file if you give it
25878: # the --recheck option to rerun configure.
25879: #
25880: # `ac_cv_env_foo' variables (set or unset) will be overridden when
25881: # loading this file, other *unset* `ac_cv_foo' will be assigned the
25882: # following values.
25883:
25884: _ACEOF
25885:
25886: # The following way of writing the cache mishandles newlines in values,
25887: # but we know of no workaround that is simple, portable, and efficient.
25888: # So, don't put newlines in cache variables' values.
25889: # Ultrix sh set writes to stderr and can't be redirected directly,
25890: # and sets the high bit in the cache file unless we assign to the vars.
25891: {
25892: (set) 2>&1 |
25893: case `(ac_space=' '; set | grep ac_space) 2>&1` in
25894: *ac_space=\ *)
25895: # `set' does not quote correctly, so add quotes (double-quote
25896: # substitution turns \\\\ into \\, and sed turns \\ into \).
25897: sed -n \
25898: "s/'/'\\\\''/g;
25899: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25900: ;;
25901: *)
25902: # `set' quotes correctly as required by POSIX, so do not add quotes.
25903: sed -n \
25904: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25905: ;;
25906: esac;
25907: } |
25908: sed '
25909: t clear
25910: : clear
25911: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25912: t end
25913: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25914: : end' >>confcache
25915: if diff $cache_file confcache >/dev/null 2>&1; then :; else
25916: if test -w $cache_file; then
25917: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25918: cat confcache >$cache_file
25919: else
25920: echo "not updating unwritable cache $cache_file"
25921: fi
25922: fi
25923: rm -f confcache
25924:
25925: test "x$prefix" = xNONE && prefix=$ac_default_prefix
25926: # Let make expand exec_prefix.
25927: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25928:
25929: # VPATH may cause trouble with some makes, so we remove $(srcdir),
25930: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25931: # trailing colons and then remove the whole line if VPATH becomes empty
25932: # (actually we leave an empty line to preserve line numbers).
25933: if test "x$srcdir" = x.; then
25934: ac_vpsub='/^[ ]*VPATH[ ]*=/{
25935: s/:*\$(srcdir):*/:/;
25936: s/:*\${srcdir}:*/:/;
25937: s/:*@srcdir@:*/:/;
25938: s/^\([^=]*=[ ]*\):*/\1/;
25939: s/:*$//;
25940: s/^[^=]*=[ ]*$//;
25941: }'
25942: fi
25943:
25944: DEFS=-DHAVE_CONFIG_H
25945:
25946: ac_libobjs=
25947: ac_ltlibobjs=
25948: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25949: # 1. Remove the extension, and $U if already installed.
25950: ac_i=`echo "$ac_i" |
25951: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25952: # 2. Add them.
25953: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25954: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25955: done
25956: LIBOBJS=$ac_libobjs
25957:
25958: LTLIBOBJS=$ac_ltlibobjs
25959:
25960:
25961: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25962: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25963: Usually this means the macro was only invoked conditionally." >&5
25964: echo "$as_me: error: conditional \"AMDEP\" was never defined.
25965: Usually this means the macro was only invoked conditionally." >&2;}
25966: { (exit 1); exit 1; }; }
25967: fi
25968: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25969: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25970: Usually this means the macro was only invoked conditionally." >&5
25971: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25972: Usually this means the macro was only invoked conditionally." >&2;}
25973: { (exit 1); exit 1; }; }
25974: fi
25975: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25976: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25977: Usually this means the macro was only invoked conditionally." >&5
25978: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25979: Usually this means the macro was only invoked conditionally." >&2;}
25980: { (exit 1); exit 1; }; }
25981: fi
25982:
25983: : ${CONFIG_STATUS=./config.status}
25984: ac_clean_files_save=$ac_clean_files
25985: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25986: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25987: echo "$as_me: creating $CONFIG_STATUS" >&6;}
25988: cat >$CONFIG_STATUS <<_ACEOF
25989: #! $SHELL
25990: # Generated by $as_me.
25991: # Run this file to recreate the current configuration.
25992: # Compiler output produced by configure, useful for debugging
25993: # configure, is in config.log if it exists.
25994:
25995: debug=false
25996: ac_cs_recheck=false
25997: ac_cs_silent=false
25998: SHELL=\${CONFIG_SHELL-$SHELL}
25999: _ACEOF
26000:
26001: cat >>$CONFIG_STATUS <<\_ACEOF
26002: ## --------------------- ##
26003: ## M4sh Initialization. ##
26004: ## --------------------- ##
26005:
26006: # Be Bourne compatible
26007: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26008: emulate sh
26009: NULLCMD=:
26010: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26011: # is contrary to our usage. Disable this feature.
26012: alias -g '${1+"$@"}'='"$@"'
26013: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26014: set -o posix
26015: fi
26016:
26017: # Support unset when possible.
26018: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26019: as_unset=unset
26020: else
26021: as_unset=false
26022: fi
26023:
26024:
26025: # Work around bugs in pre-3.0 UWIN ksh.
26026: $as_unset ENV MAIL MAILPATH
26027: PS1='$ '
26028: PS2='> '
26029: PS4='+ '
26030:
26031: # NLS nuisances.
26032: for as_var in \
26033: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26034: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26035: LC_TELEPHONE LC_TIME
26036: do
26037: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
26038: eval $as_var=C; export $as_var
26039: else
26040: $as_unset $as_var
26041: fi
26042: done
26043:
26044: # Required to use basename.
26045: if expr a : '\(a\)' >/dev/null 2>&1; then
26046: as_expr=expr
26047: else
26048: as_expr=false
26049: fi
26050:
26051: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26052: as_basename=basename
26053: else
26054: as_basename=false
26055: fi
26056:
26057:
26058: # Name of the executable.
26059: as_me=`$as_basename "$0" ||
26060: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26061: X"$0" : 'X\(//\)$' \| \
26062: X"$0" : 'X\(/\)$' \| \
26063: . : '\(.\)' 2>/dev/null ||
26064: echo X/"$0" |
26065: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26066: /^X\/\(\/\/\)$/{ s//\1/; q; }
26067: /^X\/\(\/\).*/{ s//\1/; q; }
26068: s/.*/./; q'`
26069:
26070:
26071: # PATH needs CR, and LINENO needs CR and PATH.
26072: # Avoid depending upon Character Ranges.
26073: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26074: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26075: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26076: as_cr_digits='0123456789'
26077: as_cr_alnum=$as_cr_Letters$as_cr_digits
26078:
26079: # The user is always right.
26080: if test "${PATH_SEPARATOR+set}" != set; then
26081: echo "#! /bin/sh" >conf$$.sh
26082: echo "exit 0" >>conf$$.sh
26083: chmod +x conf$$.sh
26084: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26085: PATH_SEPARATOR=';'
26086: else
26087: PATH_SEPARATOR=:
26088: fi
26089: rm -f conf$$.sh
26090: fi
26091:
26092:
26093: as_lineno_1=$LINENO
26094: as_lineno_2=$LINENO
26095: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26096: test "x$as_lineno_1" != "x$as_lineno_2" &&
26097: test "x$as_lineno_3" = "x$as_lineno_2" || {
26098: # Find who we are. Look in the path if we contain no path at all
26099: # relative or not.
26100: case $0 in
26101: *[\\/]* ) as_myself=$0 ;;
26102: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26103: for as_dir in $PATH
26104: do
26105: IFS=$as_save_IFS
26106: test -z "$as_dir" && as_dir=.
26107: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26108: done
26109:
26110: ;;
26111: esac
26112: # We did not find ourselves, most probably we were run as `sh COMMAND'
26113: # in which case we are not to be found in the path.
26114: if test "x$as_myself" = x; then
26115: as_myself=$0
26116: fi
26117: if test ! -f "$as_myself"; then
26118: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26119: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26120: { (exit 1); exit 1; }; }
26121: fi
26122: case $CONFIG_SHELL in
26123: '')
26124: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26125: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26126: do
26127: IFS=$as_save_IFS
26128: test -z "$as_dir" && as_dir=.
26129: for as_base in sh bash ksh sh5; do
26130: case $as_dir in
26131: /*)
26132: if ("$as_dir/$as_base" -c '
26133: as_lineno_1=$LINENO
26134: as_lineno_2=$LINENO
26135: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26136: test "x$as_lineno_1" != "x$as_lineno_2" &&
26137: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26138: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26139: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26140: CONFIG_SHELL=$as_dir/$as_base
26141: export CONFIG_SHELL
26142: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26143: fi;;
26144: esac
26145: done
26146: done
26147: ;;
26148: esac
26149:
26150: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26151: # uniformly replaced by the line number. The first 'sed' inserts a
26152: # line-number line before each line; the second 'sed' does the real
26153: # work. The second script uses 'N' to pair each line-number line
26154: # with the numbered line, and appends trailing '-' during
26155: # substitution so that $LINENO is not a special case at line end.
26156: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26157: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26158: sed '=' <$as_myself |
26159: sed '
26160: N
26161: s,$,-,
26162: : loop
26163: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26164: t loop
26165: s,-$,,
26166: s,^['$as_cr_digits']*\n,,
26167: ' >$as_me.lineno &&
26168: chmod +x $as_me.lineno ||
26169: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26170: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26171: { (exit 1); exit 1; }; }
26172:
26173: # Don't try to exec as it changes $[0], causing all sort of problems
26174: # (the dirname of $[0] is not the place where we might find the
26175: # original and so on. Autoconf is especially sensible to this).
26176: . ./$as_me.lineno
26177: # Exit status is that of the last command.
26178: exit
26179: }
26180:
26181:
26182: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26183: *c*,-n*) ECHO_N= ECHO_C='
26184: ' ECHO_T=' ' ;;
26185: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26186: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26187: esac
26188:
26189: if expr a : '\(a\)' >/dev/null 2>&1; then
26190: as_expr=expr
26191: else
26192: as_expr=false
26193: fi
26194:
26195: rm -f conf$$ conf$$.exe conf$$.file
26196: echo >conf$$.file
26197: if ln -s conf$$.file conf$$ 2>/dev/null; then
26198: # We could just check for DJGPP; but this test a) works b) is more generic
26199: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26200: if test -f conf$$.exe; then
26201: # Don't use ln at all; we don't have any links
26202: as_ln_s='cp -p'
26203: else
26204: as_ln_s='ln -s'
26205: fi
26206: elif ln conf$$.file conf$$ 2>/dev/null; then
26207: as_ln_s=ln
26208: else
26209: as_ln_s='cp -p'
26210: fi
26211: rm -f conf$$ conf$$.exe conf$$.file
26212:
26213: if mkdir -p . 2>/dev/null; then
26214: as_mkdir_p=:
26215: else
26216: as_mkdir_p=false
26217: fi
26218:
26219: as_executable_p="test -f"
26220:
26221: # Sed expression to map a string onto a valid CPP name.
26222: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
26223:
26224: # Sed expression to map a string onto a valid variable name.
26225: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
26226:
26227:
26228: # IFS
26229: # We need space, tab and new line, in precisely that order.
26230: as_nl='
26231: '
26232: IFS=" $as_nl"
26233:
26234: # CDPATH.
26235: $as_unset CDPATH
26236:
26237: exec 6>&1
26238:
26239: # Open the log real soon, to keep \$[0] and so on meaningful, and to
26240: # report actual input values of CONFIG_FILES etc. instead of their
26241: # values after options handling. Logging --version etc. is OK.
26242: exec 5>>config.log
26243: {
26244: echo
26245: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26246: ## Running $as_me. ##
26247: _ASBOX
26248: } >&5
26249: cat >&5 <<_CSEOF
26250:
26251: This file was extended by $as_me, which was
26252: generated by GNU Autoconf 2.57. Invocation command line was
26253:
26254: CONFIG_FILES = $CONFIG_FILES
26255: CONFIG_HEADERS = $CONFIG_HEADERS
26256: CONFIG_LINKS = $CONFIG_LINKS
26257: CONFIG_COMMANDS = $CONFIG_COMMANDS
26258: $ $0 $@
26259:
26260: _CSEOF
26261: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26262: echo >&5
26263: _ACEOF
26264:
26265: # Files that config.status was made for.
26266: if test -n "$ac_config_files"; then
26267: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26268: fi
26269:
26270: if test -n "$ac_config_headers"; then
26271: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26272: fi
26273:
26274: if test -n "$ac_config_links"; then
26275: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26276: fi
26277:
26278: if test -n "$ac_config_commands"; then
26279: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26280: fi
26281:
26282: cat >>$CONFIG_STATUS <<\_ACEOF
26283:
26284: ac_cs_usage="\
26285: \`$as_me' instantiates files from templates according to the
26286: current configuration.
26287:
26288: Usage: $0 [OPTIONS] [FILE]...
26289:
26290: -h, --help print this help, then exit
26291: -V, --version print version number, then exit
26292: -q, --quiet do not print progress messages
26293: -d, --debug don't remove temporary files
26294: --recheck update $as_me by reconfiguring in the same conditions
26295: --file=FILE[:TEMPLATE]
26296: instantiate the configuration file FILE
26297: --header=FILE[:TEMPLATE]
26298: instantiate the configuration header FILE
26299:
26300: Configuration files:
26301: $config_files
26302:
26303: Configuration headers:
26304: $config_headers
26305:
26306: Configuration commands:
26307: $config_commands
26308:
26309: Report bugs to <[email protected]>."
26310: _ACEOF
26311:
26312: cat >>$CONFIG_STATUS <<_ACEOF
26313: ac_cs_version="\\
26314: config.status
26315: configured by $0, generated by GNU Autoconf 2.57,
26316: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26317:
26318: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
26319: Free Software Foundation, Inc.
26320: This config.status script is free software; the Free Software Foundation
26321: gives unlimited permission to copy, distribute and modify it."
26322: srcdir=$srcdir
26323: INSTALL="$INSTALL"
26324: _ACEOF
26325:
26326: cat >>$CONFIG_STATUS <<\_ACEOF
26327: # If no file are specified by the user, then we need to provide default
26328: # value. By we need to know if files were specified by the user.
26329: ac_need_defaults=:
26330: while test $# != 0
26331: do
26332: case $1 in
26333: --*=*)
26334: ac_option=`expr "x$1" : 'x\([^=]*\)='`
26335: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26336: ac_shift=:
26337: ;;
26338: -*)
26339: ac_option=$1
26340: ac_optarg=$2
26341: ac_shift=shift
26342: ;;
26343: *) # This is not an option, so the user has probably given explicit
26344: # arguments.
26345: ac_option=$1
26346: ac_need_defaults=false;;
26347: esac
26348:
26349: case $ac_option in
26350: # Handling of the options.
26351: _ACEOF
26352: cat >>$CONFIG_STATUS <<\_ACEOF
26353: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26354: ac_cs_recheck=: ;;
26355: --version | --vers* | -V )
26356: echo "$ac_cs_version"; exit 0 ;;
26357: --he | --h)
26358: # Conflict between --help and --header
26359: { { echo "$as_me:$LINENO: error: ambiguous option: $1
26360: Try \`$0 --help' for more information." >&5
26361: echo "$as_me: error: ambiguous option: $1
26362: Try \`$0 --help' for more information." >&2;}
26363: { (exit 1); exit 1; }; };;
26364: --help | --hel | -h )
26365: echo "$ac_cs_usage"; exit 0 ;;
26366: --debug | --d* | -d )
26367: debug=: ;;
26368: --file | --fil | --fi | --f )
26369: $ac_shift
26370: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26371: ac_need_defaults=false;;
26372: --header | --heade | --head | --hea )
26373: $ac_shift
26374: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26375: ac_need_defaults=false;;
26376: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26377: | -silent | --silent | --silen | --sile | --sil | --si | --s)
26378: ac_cs_silent=: ;;
26379:
26380: # This is an error.
26381: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26382: Try \`$0 --help' for more information." >&5
26383: echo "$as_me: error: unrecognized option: $1
26384: Try \`$0 --help' for more information." >&2;}
26385: { (exit 1); exit 1; }; } ;;
26386:
26387: *) ac_config_targets="$ac_config_targets $1" ;;
26388:
26389: esac
26390: shift
26391: done
26392:
26393: ac_configure_extra_args=
26394:
26395: if $ac_cs_silent; then
26396: exec 6>/dev/null
26397: ac_configure_extra_args="$ac_configure_extra_args --silent"
26398: fi
26399:
26400: _ACEOF
26401: cat >>$CONFIG_STATUS <<_ACEOF
26402: if \$ac_cs_recheck; then
26403: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26404: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26405: fi
26406:
26407: _ACEOF
26408:
26409: cat >>$CONFIG_STATUS <<_ACEOF
26410: #
26411: # INIT-COMMANDS section.
26412: #
26413:
26414: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26415:
26416: PACKAGE="$PACKAGE"
26417: VERSION="$VERSION"
26418: target="$target"
26419: ac_cv_sizeof_int="$ac_cv_sizeof_int"
26420: ac_cv_sizeof_long="$ac_cv_sizeof_long"
26421: ac_cv_sizeof_short="$ac_cv_sizeof_short"
26422:
26423:
26424: _ACEOF
26425:
26426:
26427:
26428: cat >>$CONFIG_STATUS <<\_ACEOF
26429: for ac_config_target in $ac_config_targets
26430: do
26431: case "$ac_config_target" in
26432: # Handling of arguments.
26433: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26434: "tme/Makefile" ) CONFIG_FILES="$CONFIG_FILES tme/Makefile" ;;
26435: "tme/ic/Makefile" ) CONFIG_FILES="$CONFIG_FILES tme/ic/Makefile" ;;
26436: "tme/machine/Makefile" ) CONFIG_FILES="$CONFIG_FILES tme/machine/Makefile" ;;
26437: "tme/generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES tme/generic/Makefile" ;;
1.1.1.2 root 26438: "tme/scsi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tme/scsi/Makefile" ;;
1.1 root 26439: "libtme/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtme/Makefile" ;;
26440: "ic/Makefile" ) CONFIG_FILES="$CONFIG_FILES ic/Makefile" ;;
26441: "ic/m68k/Makefile" ) CONFIG_FILES="$CONFIG_FILES ic/m68k/Makefile" ;;
1.1.1.3 ! root 26442: "ic/ieee754/Makefile" ) CONFIG_FILES="$CONFIG_FILES ic/ieee754/Makefile" ;;
1.1 root 26443: "machine/Makefile" ) CONFIG_FILES="$CONFIG_FILES machine/Makefile" ;;
26444: "machine/sun/Makefile" ) CONFIG_FILES="$CONFIG_FILES machine/sun/Makefile" ;;
26445: "machine/sun2/Makefile" ) CONFIG_FILES="$CONFIG_FILES machine/sun2/Makefile" ;;
1.1.1.3 ! root 26446: "machine/sun3/Makefile" ) CONFIG_FILES="$CONFIG_FILES machine/sun3/Makefile" ;;
1.1 root 26447: "host/Makefile" ) CONFIG_FILES="$CONFIG_FILES host/Makefile" ;;
26448: "host/posix/Makefile" ) CONFIG_FILES="$CONFIG_FILES host/posix/Makefile" ;;
26449: "host/bsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES host/bsd/Makefile" ;;
1.1.1.2 root 26450: "host/gtk/Makefile" ) CONFIG_FILES="$CONFIG_FILES host/gtk/Makefile" ;;
1.1 root 26451: "bus/Makefile" ) CONFIG_FILES="$CONFIG_FILES bus/Makefile" ;;
26452: "bus/multibus/Makefile" ) CONFIG_FILES="$CONFIG_FILES bus/multibus/Makefile" ;;
1.1.1.2 root 26453: "serial/Makefile" ) CONFIG_FILES="$CONFIG_FILES serial/Makefile" ;;
26454: "scsi/Makefile" ) CONFIG_FILES="$CONFIG_FILES scsi/Makefile" ;;
1.1 root 26455: "generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES generic/Makefile" ;;
26456: "tmesh/Makefile" ) CONFIG_FILES="$CONFIG_FILES tmesh/Makefile" ;;
1.1.1.3 ! root 26457: "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
1.1 root 26458: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26459: "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26460: "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26461: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26462: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26463: { (exit 1); exit 1; }; };;
26464: esac
26465: done
26466:
26467: # If the user did not use the arguments to specify the items to instantiate,
26468: # then the envvar interface is used. Set only those that are not.
26469: # We use the long form for the default assignment because of an extremely
26470: # bizarre bug on SunOS 4.1.3.
26471: if $ac_need_defaults; then
26472: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26473: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26474: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26475: fi
26476:
26477: # Have a temporary directory for convenience. Make it in the build tree
26478: # simply because there is no reason to put it here, and in addition,
26479: # creating and moving files from /tmp can sometimes cause problems.
26480: # Create a temporary directory, and hook for its removal unless debugging.
26481: $debug ||
26482: {
26483: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26484: trap '{ (exit 1); exit 1; }' 1 2 13 15
26485: }
26486:
26487: # Create a (secure) tmp directory for tmp files.
26488:
26489: {
26490: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26491: test -n "$tmp" && test -d "$tmp"
26492: } ||
26493: {
26494: tmp=./confstat$$-$RANDOM
26495: (umask 077 && mkdir $tmp)
26496: } ||
26497: {
26498: echo "$me: cannot create a temporary directory in ." >&2
26499: { (exit 1); exit 1; }
26500: }
26501:
26502: _ACEOF
26503:
26504: cat >>$CONFIG_STATUS <<_ACEOF
26505:
26506: #
26507: # CONFIG_FILES section.
26508: #
26509:
26510: # No need to generate the scripts if there are no CONFIG_FILES.
26511: # This happens for instance when ./config.status config.h
26512: if test -n "\$CONFIG_FILES"; then
26513: # Protect against being on the right side of a sed subst in config.status.
26514: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26515: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26516: s,@SHELL@,$SHELL,;t t
26517: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26518: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26519: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26520: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26521: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26522: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26523: s,@exec_prefix@,$exec_prefix,;t t
26524: s,@prefix@,$prefix,;t t
26525: s,@program_transform_name@,$program_transform_name,;t t
26526: s,@bindir@,$bindir,;t t
26527: s,@sbindir@,$sbindir,;t t
26528: s,@libexecdir@,$libexecdir,;t t
26529: s,@datadir@,$datadir,;t t
26530: s,@sysconfdir@,$sysconfdir,;t t
26531: s,@sharedstatedir@,$sharedstatedir,;t t
26532: s,@localstatedir@,$localstatedir,;t t
26533: s,@libdir@,$libdir,;t t
26534: s,@includedir@,$includedir,;t t
26535: s,@oldincludedir@,$oldincludedir,;t t
26536: s,@infodir@,$infodir,;t t
26537: s,@mandir@,$mandir,;t t
26538: s,@build_alias@,$build_alias,;t t
26539: s,@host_alias@,$host_alias,;t t
26540: s,@target_alias@,$target_alias,;t t
26541: s,@DEFS@,$DEFS,;t t
26542: s,@ECHO_C@,$ECHO_C,;t t
26543: s,@ECHO_N@,$ECHO_N,;t t
26544: s,@ECHO_T@,$ECHO_T,;t t
26545: s,@LIBS@,$LIBS,;t t
26546: s,@build@,$build,;t t
26547: s,@build_cpu@,$build_cpu,;t t
26548: s,@build_vendor@,$build_vendor,;t t
26549: s,@build_os@,$build_os,;t t
26550: s,@host@,$host,;t t
26551: s,@host_cpu@,$host_cpu,;t t
26552: s,@host_vendor@,$host_vendor,;t t
26553: s,@host_os@,$host_os,;t t
26554: s,@target@,$target,;t t
26555: s,@target_cpu@,$target_cpu,;t t
26556: s,@target_vendor@,$target_vendor,;t t
26557: s,@target_os@,$target_os,;t t
26558: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26559: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26560: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26561: s,@CYGPATH_W@,$CYGPATH_W,;t t
26562: s,@PACKAGE@,$PACKAGE,;t t
26563: s,@VERSION@,$VERSION,;t t
26564: s,@ACLOCAL@,$ACLOCAL,;t t
26565: s,@AUTOCONF@,$AUTOCONF,;t t
26566: s,@AUTOMAKE@,$AUTOMAKE,;t t
26567: s,@AUTOHEADER@,$AUTOHEADER,;t t
26568: s,@MAKEINFO@,$MAKEINFO,;t t
26569: s,@AMTAR@,$AMTAR,;t t
26570: s,@install_sh@,$install_sh,;t t
26571: s,@STRIP@,$STRIP,;t t
26572: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26573: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26574: s,@AWK@,$AWK,;t t
26575: s,@SET_MAKE@,$SET_MAKE,;t t
26576: s,@CC@,$CC,;t t
26577: s,@CFLAGS@,$CFLAGS,;t t
26578: s,@LDFLAGS@,$LDFLAGS,;t t
26579: s,@CPPFLAGS@,$CPPFLAGS,;t t
26580: s,@ac_ct_CC@,$ac_ct_CC,;t t
26581: s,@EXEEXT@,$EXEEXT,;t t
26582: s,@OBJEXT@,$OBJEXT,;t t
26583: s,@DEPDIR@,$DEPDIR,;t t
26584: s,@am__include@,$am__include,;t t
26585: s,@am__quote@,$am__quote,;t t
26586: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26587: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26588: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26589: s,@CCDEPMODE@,$CCDEPMODE,;t t
26590: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26591: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26592: s,@CPP@,$CPP,;t t
26593: s,@YACC@,$YACC,;t t
26594: s,@EGREP@,$EGREP,;t t
26595: s,@LIBOBJS@,$LIBOBJS,;t t
26596: s,@PERL@,$PERL,;t t
1.1.1.2 root 26597: s,@X_CFLAGS@,$X_CFLAGS,;t t
26598: s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
26599: s,@X_LIBS@,$X_LIBS,;t t
26600: s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
26601: s,@GTK_CONFIG@,$GTK_CONFIG,;t t
26602: s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
26603: s,@GTK_LIBS@,$GTK_LIBS,;t t
26604: s,@TME_FB_XLAT_DST@,$TME_FB_XLAT_DST,;t t
1.1 root 26605: s,@TME_MACHINE_SUBDIRS@,$TME_MACHINE_SUBDIRS,;t t
26606: s,@TME_IC_SUBDIRS@,$TME_IC_SUBDIRS,;t t
26607: s,@TME_ICS@,$TME_ICS,;t t
1.1.1.2 root 26608: s,@TME_SERIAL_SUBDIRS@,$TME_SERIAL_SUBDIRS,;t t
26609: s,@TME_SERIALS@,$TME_SERIALS,;t t
1.1 root 26610: s,@TME_BUS_SUBDIRS@,$TME_BUS_SUBDIRS,;t t
1.1.1.2 root 26611: s,@TME_FB_XLAT_SRC@,$TME_FB_XLAT_SRC,;t t
1.1 root 26612: s,@TME_HOSTS@,$TME_HOSTS,;t t
26613: s,@INCLTDL@,$INCLTDL,;t t
26614: s,@LIBLTDL@,$LIBLTDL,;t t
26615: s,@LN_S@,$LN_S,;t t
26616: s,@ECHO@,$ECHO,;t t
26617: s,@AR@,$AR,;t t
26618: s,@ac_ct_AR@,$ac_ct_AR,;t t
26619: s,@RANLIB@,$RANLIB,;t t
26620: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26621: s,@CXX@,$CXX,;t t
26622: s,@CXXFLAGS@,$CXXFLAGS,;t t
26623: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26624: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
26625: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
26626: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
26627: s,@CXXCPP@,$CXXCPP,;t t
26628: s,@F77@,$F77,;t t
26629: s,@FFLAGS@,$FFLAGS,;t t
26630: s,@ac_ct_F77@,$ac_ct_F77,;t t
26631: s,@LIBTOOL@,$LIBTOOL,;t t
26632: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26633: s,@subdirs@,$subdirs,;t t
26634: s,@TME_PREOPEN@,$TME_PREOPEN,;t t
1.1.1.3 ! root 26635: s,@CFLAGS_NO_STRICT_ALIASING@,$CFLAGS_NO_STRICT_ALIASING,;t t
1.1 root 26636: CEOF
26637:
26638: _ACEOF
26639:
26640: cat >>$CONFIG_STATUS <<\_ACEOF
26641: # Split the substitutions into bite-sized pieces for seds with
26642: # small command number limits, like on Digital OSF/1 and HP-UX.
26643: ac_max_sed_lines=48
26644: ac_sed_frag=1 # Number of current file.
26645: ac_beg=1 # First line for current file.
26646: ac_end=$ac_max_sed_lines # Line after last line for current file.
26647: ac_more_lines=:
26648: ac_sed_cmds=
26649: while $ac_more_lines; do
26650: if test $ac_beg -gt 1; then
26651: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26652: else
26653: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26654: fi
26655: if test ! -s $tmp/subs.frag; then
26656: ac_more_lines=false
26657: else
26658: # The purpose of the label and of the branching condition is to
26659: # speed up the sed processing (if there are no `@' at all, there
26660: # is no need to browse any of the substitutions).
26661: # These are the two extra sed commands mentioned above.
26662: (echo ':t
26663: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26664: if test -z "$ac_sed_cmds"; then
26665: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26666: else
26667: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26668: fi
26669: ac_sed_frag=`expr $ac_sed_frag + 1`
26670: ac_beg=$ac_end
26671: ac_end=`expr $ac_end + $ac_max_sed_lines`
26672: fi
26673: done
26674: if test -z "$ac_sed_cmds"; then
26675: ac_sed_cmds=cat
26676: fi
26677: fi # test -n "$CONFIG_FILES"
26678:
26679: _ACEOF
26680: cat >>$CONFIG_STATUS <<\_ACEOF
26681: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26682: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26683: case $ac_file in
26684: - | *:- | *:-:* ) # input from stdin
26685: cat >$tmp/stdin
26686: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26687: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26688: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26689: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26690: * ) ac_file_in=$ac_file.in ;;
26691: esac
26692:
26693: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26694: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26695: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26696: X"$ac_file" : 'X\(//\)[^/]' \| \
26697: X"$ac_file" : 'X\(//\)$' \| \
26698: X"$ac_file" : 'X\(/\)' \| \
26699: . : '\(.\)' 2>/dev/null ||
26700: echo X"$ac_file" |
26701: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26702: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26703: /^X\(\/\/\)$/{ s//\1/; q; }
26704: /^X\(\/\).*/{ s//\1/; q; }
26705: s/.*/./; q'`
26706: { if $as_mkdir_p; then
26707: mkdir -p "$ac_dir"
26708: else
26709: as_dir="$ac_dir"
26710: as_dirs=
26711: while test ! -d "$as_dir"; do
26712: as_dirs="$as_dir $as_dirs"
26713: as_dir=`(dirname "$as_dir") 2>/dev/null ||
26714: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26715: X"$as_dir" : 'X\(//\)[^/]' \| \
26716: X"$as_dir" : 'X\(//\)$' \| \
26717: X"$as_dir" : 'X\(/\)' \| \
26718: . : '\(.\)' 2>/dev/null ||
26719: echo X"$as_dir" |
26720: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26721: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26722: /^X\(\/\/\)$/{ s//\1/; q; }
26723: /^X\(\/\).*/{ s//\1/; q; }
26724: s/.*/./; q'`
26725: done
26726: test ! -n "$as_dirs" || mkdir $as_dirs
26727: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26728: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26729: { (exit 1); exit 1; }; }; }
26730:
26731: ac_builddir=.
26732:
26733: if test "$ac_dir" != .; then
26734: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26735: # A "../" for each directory in $ac_dir_suffix.
26736: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26737: else
26738: ac_dir_suffix= ac_top_builddir=
26739: fi
26740:
26741: case $srcdir in
26742: .) # No --srcdir option. We are building in place.
26743: ac_srcdir=.
26744: if test -z "$ac_top_builddir"; then
26745: ac_top_srcdir=.
26746: else
26747: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26748: fi ;;
26749: [\\/]* | ?:[\\/]* ) # Absolute path.
26750: ac_srcdir=$srcdir$ac_dir_suffix;
26751: ac_top_srcdir=$srcdir ;;
26752: *) # Relative path.
26753: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26754: ac_top_srcdir=$ac_top_builddir$srcdir ;;
26755: esac
26756: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
26757: # absolute.
26758: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
26759: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
26760: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
26761: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
26762:
26763:
26764: case $INSTALL in
26765: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26766: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26767: esac
26768:
26769: if test x"$ac_file" != x-; then
26770: { echo "$as_me:$LINENO: creating $ac_file" >&5
26771: echo "$as_me: creating $ac_file" >&6;}
26772: rm -f "$ac_file"
26773: fi
26774: # Let's still pretend it is `configure' which instantiates (i.e., don't
26775: # use $as_me), people would be surprised to read:
26776: # /* config.h. Generated by config.status. */
26777: if test x"$ac_file" = x-; then
26778: configure_input=
26779: else
26780: configure_input="$ac_file. "
26781: fi
26782: configure_input=$configure_input"Generated from `echo $ac_file_in |
26783: sed 's,.*/,,'` by configure."
26784:
26785: # First look for the input files in the build tree, otherwise in the
26786: # src tree.
26787: ac_file_inputs=`IFS=:
26788: for f in $ac_file_in; do
26789: case $f in
26790: -) echo $tmp/stdin ;;
26791: [\\/$]*)
26792: # Absolute (can't be DOS-style, as IFS=:)
26793: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26794: echo "$as_me: error: cannot find input file: $f" >&2;}
26795: { (exit 1); exit 1; }; }
26796: echo $f;;
26797: *) # Relative
26798: if test -f "$f"; then
26799: # Build tree
26800: echo $f
26801: elif test -f "$srcdir/$f"; then
26802: # Source tree
26803: echo $srcdir/$f
26804: else
26805: # /dev/null tree
26806: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26807: echo "$as_me: error: cannot find input file: $f" >&2;}
26808: { (exit 1); exit 1; }; }
26809: fi;;
26810: esac
26811: done` || { (exit 1); exit 1; }
26812: _ACEOF
26813: cat >>$CONFIG_STATUS <<_ACEOF
26814: sed "$ac_vpsub
26815: $extrasub
26816: _ACEOF
26817: cat >>$CONFIG_STATUS <<\_ACEOF
26818: :t
26819: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26820: s,@configure_input@,$configure_input,;t t
26821: s,@srcdir@,$ac_srcdir,;t t
26822: s,@abs_srcdir@,$ac_abs_srcdir,;t t
26823: s,@top_srcdir@,$ac_top_srcdir,;t t
26824: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26825: s,@builddir@,$ac_builddir,;t t
26826: s,@abs_builddir@,$ac_abs_builddir,;t t
26827: s,@top_builddir@,$ac_top_builddir,;t t
26828: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26829: s,@INSTALL@,$ac_INSTALL,;t t
26830: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26831: rm -f $tmp/stdin
26832: if test x"$ac_file" != x-; then
26833: mv $tmp/out $ac_file
26834: else
26835: cat $tmp/out
26836: rm -f $tmp/out
26837: fi
26838:
26839: done
26840: _ACEOF
26841: cat >>$CONFIG_STATUS <<\_ACEOF
26842:
26843: #
26844: # CONFIG_HEADER section.
26845: #
26846:
26847: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26848: # NAME is the cpp macro being defined and VALUE is the value it is being given.
26849: #
26850: # ac_d sets the value in "#define NAME VALUE" lines.
26851: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26852: ac_dB='[ ].*$,\1#\2'
26853: ac_dC=' '
26854: ac_dD=',;t'
26855: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26856: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26857: ac_uB='$,\1#\2define\3'
26858: ac_uC=' '
26859: ac_uD=',;t'
26860:
26861: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26862: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26863: case $ac_file in
26864: - | *:- | *:-:* ) # input from stdin
26865: cat >$tmp/stdin
26866: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26867: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26868: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26869: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26870: * ) ac_file_in=$ac_file.in ;;
26871: esac
26872:
26873: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26874: echo "$as_me: creating $ac_file" >&6;}
26875:
26876: # First look for the input files in the build tree, otherwise in the
26877: # src tree.
26878: ac_file_inputs=`IFS=:
26879: for f in $ac_file_in; do
26880: case $f in
26881: -) echo $tmp/stdin ;;
26882: [\\/$]*)
26883: # Absolute (can't be DOS-style, as IFS=:)
26884: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26885: echo "$as_me: error: cannot find input file: $f" >&2;}
26886: { (exit 1); exit 1; }; }
26887: echo $f;;
26888: *) # Relative
26889: if test -f "$f"; then
26890: # Build tree
26891: echo $f
26892: elif test -f "$srcdir/$f"; then
26893: # Source tree
26894: echo $srcdir/$f
26895: else
26896: # /dev/null tree
26897: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26898: echo "$as_me: error: cannot find input file: $f" >&2;}
26899: { (exit 1); exit 1; }; }
26900: fi;;
26901: esac
26902: done` || { (exit 1); exit 1; }
26903: # Remove the trailing spaces.
26904: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26905:
26906: _ACEOF
26907:
26908: # Transform confdefs.h into two sed scripts, `conftest.defines' and
26909: # `conftest.undefs', that substitutes the proper values into
26910: # config.h.in to produce config.h. The first handles `#define'
26911: # templates, and the second `#undef' templates.
26912: # And first: Protect against being on the right side of a sed subst in
26913: # config.status. Protect against being in an unquoted here document
26914: # in config.status.
26915: rm -f conftest.defines conftest.undefs
26916: # Using a here document instead of a string reduces the quoting nightmare.
26917: # Putting comments in sed scripts is not portable.
26918: #
26919: # `end' is used to avoid that the second main sed command (meant for
26920: # 0-ary CPP macros) applies to n-ary macro definitions.
26921: # See the Autoconf documentation for `clear'.
26922: cat >confdef2sed.sed <<\_ACEOF
26923: s/[\\&,]/\\&/g
26924: s,[\\$`],\\&,g
26925: t clear
26926: : clear
26927: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26928: t end
26929: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26930: : end
26931: _ACEOF
26932: # If some macros were called several times there might be several times
26933: # the same #defines, which is useless. Nevertheless, we may not want to
26934: # sort them, since we want the *last* AC-DEFINE to be honored.
26935: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26936: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26937: rm -f confdef2sed.sed
26938:
26939: # This sed command replaces #undef with comments. This is necessary, for
26940: # example, in the case of _POSIX_SOURCE, which is predefined and required
26941: # on some systems where configure will not decide to define it.
26942: cat >>conftest.undefs <<\_ACEOF
26943: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26944: _ACEOF
26945:
26946: # Break up conftest.defines because some shells have a limit on the size
26947: # of here documents, and old seds have small limits too (100 cmds).
26948: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26949: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26950: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26951: echo ' :' >>$CONFIG_STATUS
26952: rm -f conftest.tail
26953: while grep . conftest.defines >/dev/null
26954: do
26955: # Write a limited-size here document to $tmp/defines.sed.
26956: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26957: # Speed up: don't consider the non `#define' lines.
26958: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26959: # Work around the forget-to-reset-the-flag bug.
26960: echo 't clr' >>$CONFIG_STATUS
26961: echo ': clr' >>$CONFIG_STATUS
26962: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26963: echo 'CEOF
26964: sed -f $tmp/defines.sed $tmp/in >$tmp/out
26965: rm -f $tmp/in
26966: mv $tmp/out $tmp/in
26967: ' >>$CONFIG_STATUS
26968: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26969: rm -f conftest.defines
26970: mv conftest.tail conftest.defines
26971: done
26972: rm -f conftest.defines
26973: echo ' fi # grep' >>$CONFIG_STATUS
26974: echo >>$CONFIG_STATUS
26975:
26976: # Break up conftest.undefs because some shells have a limit on the size
26977: # of here documents, and old seds have small limits too (100 cmds).
26978: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26979: rm -f conftest.tail
26980: while grep . conftest.undefs >/dev/null
26981: do
26982: # Write a limited-size here document to $tmp/undefs.sed.
26983: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26984: # Speed up: don't consider the non `#undef'
26985: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26986: # Work around the forget-to-reset-the-flag bug.
26987: echo 't clr' >>$CONFIG_STATUS
26988: echo ': clr' >>$CONFIG_STATUS
26989: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26990: echo 'CEOF
26991: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26992: rm -f $tmp/in
26993: mv $tmp/out $tmp/in
26994: ' >>$CONFIG_STATUS
26995: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26996: rm -f conftest.undefs
26997: mv conftest.tail conftest.undefs
26998: done
26999: rm -f conftest.undefs
27000:
27001: cat >>$CONFIG_STATUS <<\_ACEOF
27002: # Let's still pretend it is `configure' which instantiates (i.e., don't
27003: # use $as_me), people would be surprised to read:
27004: # /* config.h. Generated by config.status. */
27005: if test x"$ac_file" = x-; then
27006: echo "/* Generated by configure. */" >$tmp/config.h
27007: else
27008: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27009: fi
27010: cat $tmp/in >>$tmp/config.h
27011: rm -f $tmp/in
27012: if test x"$ac_file" != x-; then
27013: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27014: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27015: echo "$as_me: $ac_file is unchanged" >&6;}
27016: else
27017: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27018: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27019: X"$ac_file" : 'X\(//\)[^/]' \| \
27020: X"$ac_file" : 'X\(//\)$' \| \
27021: X"$ac_file" : 'X\(/\)' \| \
27022: . : '\(.\)' 2>/dev/null ||
27023: echo X"$ac_file" |
27024: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27025: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27026: /^X\(\/\/\)$/{ s//\1/; q; }
27027: /^X\(\/\).*/{ s//\1/; q; }
27028: s/.*/./; q'`
27029: { if $as_mkdir_p; then
27030: mkdir -p "$ac_dir"
27031: else
27032: as_dir="$ac_dir"
27033: as_dirs=
27034: while test ! -d "$as_dir"; do
27035: as_dirs="$as_dir $as_dirs"
27036: as_dir=`(dirname "$as_dir") 2>/dev/null ||
27037: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27038: X"$as_dir" : 'X\(//\)[^/]' \| \
27039: X"$as_dir" : 'X\(//\)$' \| \
27040: X"$as_dir" : 'X\(/\)' \| \
27041: . : '\(.\)' 2>/dev/null ||
27042: echo X"$as_dir" |
27043: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27044: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27045: /^X\(\/\/\)$/{ s//\1/; q; }
27046: /^X\(\/\).*/{ s//\1/; q; }
27047: s/.*/./; q'`
27048: done
27049: test ! -n "$as_dirs" || mkdir $as_dirs
27050: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27051: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27052: { (exit 1); exit 1; }; }; }
27053:
27054: rm -f $ac_file
27055: mv $tmp/config.h $ac_file
27056: fi
27057: else
27058: cat $tmp/config.h
27059: rm -f $tmp/config.h
27060: fi
27061: _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
27062: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27063: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27064: X$ac_file : 'X\(//\)[^/]' \| \
27065: X$ac_file : 'X\(//\)$' \| \
27066: X$ac_file : 'X\(/\)' \| \
27067: . : '\(.\)' 2>/dev/null ||
27068: echo X$ac_file |
27069: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27070: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27071: /^X\(\/\/\)$/{ s//\1/; q; }
27072: /^X\(\/\).*/{ s//\1/; q; }
27073: s/.*/./; q'`/stamp-h$_am_stamp_count
27074: done
27075: _ACEOF
27076: cat >>$CONFIG_STATUS <<\_ACEOF
27077:
27078: #
27079: # CONFIG_COMMANDS section.
27080: #
27081: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27082: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27083: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27084: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27085: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27086: X"$ac_dest" : 'X\(//\)[^/]' \| \
27087: X"$ac_dest" : 'X\(//\)$' \| \
27088: X"$ac_dest" : 'X\(/\)' \| \
27089: . : '\(.\)' 2>/dev/null ||
27090: echo X"$ac_dest" |
27091: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27092: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27093: /^X\(\/\/\)$/{ s//\1/; q; }
27094: /^X\(\/\).*/{ s//\1/; q; }
27095: s/.*/./; q'`
27096: ac_builddir=.
27097:
27098: if test "$ac_dir" != .; then
27099: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27100: # A "../" for each directory in $ac_dir_suffix.
27101: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27102: else
27103: ac_dir_suffix= ac_top_builddir=
27104: fi
27105:
27106: case $srcdir in
27107: .) # No --srcdir option. We are building in place.
27108: ac_srcdir=.
27109: if test -z "$ac_top_builddir"; then
27110: ac_top_srcdir=.
27111: else
27112: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27113: fi ;;
27114: [\\/]* | ?:[\\/]* ) # Absolute path.
27115: ac_srcdir=$srcdir$ac_dir_suffix;
27116: ac_top_srcdir=$srcdir ;;
27117: *) # Relative path.
27118: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27119: ac_top_srcdir=$ac_top_builddir$srcdir ;;
27120: esac
27121: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
27122: # absolute.
27123: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
27124: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
27125: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
27126: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
27127:
27128:
27129: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27130: echo "$as_me: executing $ac_dest commands" >&6;}
27131: case $ac_dest in
27132: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27133: # Strip MF so we end up with the name of the file.
27134: mf=`echo "$mf" | sed -e 's/:.*$//'`
27135: # Check whether this is an Automake generated Makefile or not.
27136: # We used to match only the files named `Makefile.in', but
27137: # some people rename them; so instead we look at the file content.
27138: # Grep'ing the first line is not enough: some people post-process
27139: # each Makefile.in and add a new line on top of each file to say so.
27140: # So let's grep whole file.
27141: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27142: dirpart=`(dirname "$mf") 2>/dev/null ||
27143: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27144: X"$mf" : 'X\(//\)[^/]' \| \
27145: X"$mf" : 'X\(//\)$' \| \
27146: X"$mf" : 'X\(/\)' \| \
27147: . : '\(.\)' 2>/dev/null ||
27148: echo X"$mf" |
27149: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27150: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27151: /^X\(\/\/\)$/{ s//\1/; q; }
27152: /^X\(\/\).*/{ s//\1/; q; }
27153: s/.*/./; q'`
27154: else
27155: continue
27156: fi
27157: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
27158: # Extract the definition of DEP_FILES from the Makefile without
27159: # running `make'.
27160: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
27161: test -z "$DEPDIR" && continue
27162: # When using ansi2knr, U may be empty or an underscore; expand it
27163: U=`sed -n -e '/^U = / s///p' < "$mf"`
27164: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
27165: # We invoke sed twice because it is the simplest approach to
27166: # changing $(DEPDIR) to its actual value in the expansion.
27167: for file in `sed -n -e '
27168: /^DEP_FILES = .*\\\\$/ {
27169: s/^DEP_FILES = //
27170: :loop
27171: s/\\\\$//
27172: p
27173: n
27174: /\\\\$/ b loop
27175: p
27176: }
27177: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
27178: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27179: # Make sure the directory exists.
27180: test -f "$dirpart/$file" && continue
27181: fdir=`(dirname "$file") 2>/dev/null ||
27182: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27183: X"$file" : 'X\(//\)[^/]' \| \
27184: X"$file" : 'X\(//\)$' \| \
27185: X"$file" : 'X\(/\)' \| \
27186: . : '\(.\)' 2>/dev/null ||
27187: echo X"$file" |
27188: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27189: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27190: /^X\(\/\/\)$/{ s//\1/; q; }
27191: /^X\(\/\).*/{ s//\1/; q; }
27192: s/.*/./; q'`
27193: { if $as_mkdir_p; then
27194: mkdir -p $dirpart/$fdir
27195: else
27196: as_dir=$dirpart/$fdir
27197: as_dirs=
27198: while test ! -d "$as_dir"; do
27199: as_dirs="$as_dir $as_dirs"
27200: as_dir=`(dirname "$as_dir") 2>/dev/null ||
27201: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27202: X"$as_dir" : 'X\(//\)[^/]' \| \
27203: X"$as_dir" : 'X\(//\)$' \| \
27204: X"$as_dir" : 'X\(/\)' \| \
27205: . : '\(.\)' 2>/dev/null ||
27206: echo X"$as_dir" |
27207: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27208: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27209: /^X\(\/\/\)$/{ s//\1/; q; }
27210: /^X\(\/\).*/{ s//\1/; q; }
27211: s/.*/./; q'`
27212: done
27213: test ! -n "$as_dirs" || mkdir $as_dirs
27214: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27215: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27216: { (exit 1); exit 1; }; }; }
27217:
27218: # echo "creating $dirpart/$file"
27219: echo '# dummy' > "$dirpart/$file"
27220: done
27221: done
27222: ;;
27223: default-1 )
27224:
27225: ## Generate our configure-time sources in two
27226: ## cases:
27227: ## 1. `config.status' is run either explicitly, or via configure.
27228: ## Esp. not when it is run in `Makefile' to generate makefiles and
27229: ## config.h
27230: ## 2. CONFIG_OTHER is set explicitly
27231: ##
27232: ## Case 1 is difficult. We know that `automake' sets one of
27233: ## CONFIG_FILES or CONFIG_HEADERS to empty. This heuristic works
27234: ## only when AM_CONFIG_HEADER is set, however.
27235:
27236: case "x$CONFIG_OTHER" in
27237: *tmeconfig.h) gen_tmeconfig_h=yes
27238: ;;
27239: esac
27240: if test -n "${CONFIG_FILES}" && test -n "${CONFIG_HEADERS}"; then
27241: # Both CONFIG_FILES and CONFIG_HEADERS are non-empty ==> Case 1
27242: if test "x${CONFIG_OTHER}" = x; then
27243: gen_tmeconfig_h=yes
27244: fi
27245: fi
27246:
27247: ## If we're generating tmeconfig.h:
27248: if test "x$gen_tmeconfig_h" = xyes; then
27249: outfile=tmeconfig.h
27250: echo "$as_me: creating $outfile"
27251: cat <<TMEEOF > ${outfile}-tmp
27252: /* tmeconfig.h
27253: *
27254: * This is an automatically generated file - please modify 'configure.in'.
27255: */
27256:
27257: #ifndef _TMECONFIG_H
27258: #define _TMECONFIG_H
27259:
27260: TMEEOF
1.1.1.2 root 27261: (for word in HAVE_ TIME_ PROTO_ ALIGNOF_ SIZEOF_ WORDS_BIGENDIAN; do \
1.1 root 27262: grep $word config.h | sed 's/#define[ ]\{1,\}/&_TME_/' ; \
27263: done) | sort | uniq >> ${outfile}-tmp
1.1.1.3 ! root 27264: grep FLOAT_FORMAT config.h | \
! 27265: sed 's/#define[ ]\{1,\}\([A-Za-z0-9_]\{1,\}\)[ ]\{1,\}\([A-Za-z0-9_]\{1,\}\)/#define TME_\1 TME_FLOAT_FORMAT_\2/' >> ${outfile}-tmp
1.1 root 27266: echo '#define TME_RELEASE_MAJOR (' \
27267: `echo $VERSION | sed -e 's,^\([0-9][0-9]*\)\.[0-9][0-9]*$,\1,'` ')' >> ${outfile}-tmp
27268: echo '#define TME_RELEASE_MINOR (' \
27269: `echo $VERSION | sed -e 's,^[0-9][0-9]*\.\([0-9][0-9]*\)$,\1,'` ')' >> ${outfile}-tmp
27270: echo '#define TME_BUILD_TARGET "'$target'"' >> ${outfile}-tmp
1.1.1.2 root 27271: if test $ac_cv_sizeof_long = 8; then
27272: echo '#define TME_HAVE_INT64_T' >> ${outfile}-tmp
27273: echo 'typedef signed long tme_int64_t;' >> ${outfile}-tmp
27274: echo 'typedef unsigned long tme_uint64_t;' >> ${outfile}-tmp
27275: fi
1.1 root 27276: if test $ac_cv_sizeof_int = 4; then
27277: echo 'typedef signed int tme_int32_t;' >> ${outfile}-tmp
27278: echo 'typedef unsigned int tme_uint32_t;' >> ${outfile}-tmp
27279: elif test $ac_cv_sizeof_long = 4; then
27280: echo 'typedef signed long tme_int32_t;' >> ${outfile}-tmp
27281: echo 'typedef unsigned long tme_uint32_t;' >> ${outfile}-tmp
27282: fi
27283: if test $ac_cv_sizeof_int = 2; then
27284: echo 'typedef signed int tme_int16_t;' >> ${outfile}-tmp
27285: echo 'typedef unsigned int tme_uint16_t;' >> ${outfile}-tmp
27286: elif test $ac_cv_sizeof_short = 2; then
27287: echo 'typedef signed short tme_int16_t;' >> ${outfile}-tmp
27288: echo 'typedef unsigned short tme_uint16_t;' >> ${outfile}-tmp
27289: fi
27290: echo 'typedef signed char tme_int8_t;' >> ${outfile}-tmp
27291: echo 'typedef unsigned char tme_uint8_t;' >> ${outfile}-tmp
27292: cat <<TMEEOF >> ${outfile}-tmp
27293:
27294: /* features that aren't currently controlled by a configure option: */
27295: #define TME_THREADS_SJLJ
27296:
27297: #endif /* !_TMECONFIG_H */
27298: TMEEOF
27299: if cmp -s ${outfile}-tmp $outfile; then
27300: echo "$as_me: $outfile is unchanged"
27301: rm -f ${outfile}-tmp
27302: else
27303: mv ${outfile}-tmp ${outfile}
27304: fi
27305: fi
27306: ;;
27307: esac
27308: done
27309: _ACEOF
27310:
27311: cat >>$CONFIG_STATUS <<\_ACEOF
27312:
27313: { (exit 0); exit 0; }
27314: _ACEOF
27315: chmod +x $CONFIG_STATUS
27316: ac_clean_files=$ac_clean_files_save
27317:
27318:
27319: # configure is writing to config.log, and then calls config.status.
27320: # config.status does its own redirection, appending to config.log.
27321: # Unfortunately, on DOS this fails, as config.log is still kept open
27322: # by configure, so config.status won't be able to write to it; its
27323: # output is simply discarded. So we exec the FD to /dev/null,
27324: # effectively closing config.log, so it can be properly (re)opened and
27325: # appended to by config.status. When coming back to configure, we
27326: # need to make the FD available again.
27327: if test "$no_create" != yes; then
27328: ac_cs_success=:
27329: ac_config_status_args=
27330: test "$silent" = yes &&
27331: ac_config_status_args="$ac_config_status_args --quiet"
27332: exec 5>/dev/null
27333: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27334: exec 5>>config.log
27335: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27336: # would make configure fail if this is the last instruction.
27337: $ac_cs_success || { (exit 1); exit 1; }
27338: fi
27339:
27340: #
27341: # CONFIG_SUBDIRS section.
27342: #
27343: if test "$no_recursion" != yes; then
27344:
27345: # Remove --cache-file and --srcdir arguments so they do not pile up.
27346: ac_sub_configure_args=
27347: ac_prev=
27348: for ac_arg in $ac_configure_args; do
27349: if test -n "$ac_prev"; then
27350: ac_prev=
27351: continue
27352: fi
27353: case $ac_arg in
27354: -cache-file | --cache-file | --cache-fil | --cache-fi \
27355: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27356: ac_prev=cache_file ;;
27357: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27358: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27359: | --c=*)
27360: ;;
27361: --config-cache | -C)
27362: ;;
27363: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27364: ac_prev=srcdir ;;
27365: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27366: ;;
27367: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27368: ac_prev=prefix ;;
27369: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27370: ;;
27371: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
27372: esac
27373: done
27374:
27375: # Always prepend --prefix to ensure using the same prefix
27376: # in subdir configurations.
27377: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
27378:
27379: ac_popdir=`pwd`
27380: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27381:
27382: # Do not complain, so a configure script can configure whichever
27383: # parts of a large source tree are present.
27384: test -d $srcdir/$ac_dir || continue
27385:
27386: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27387: echo "$as_me: configuring in $ac_dir" >&6;}
27388: { if $as_mkdir_p; then
27389: mkdir -p "$ac_dir"
27390: else
27391: as_dir="$ac_dir"
27392: as_dirs=
27393: while test ! -d "$as_dir"; do
27394: as_dirs="$as_dir $as_dirs"
27395: as_dir=`(dirname "$as_dir") 2>/dev/null ||
27396: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27397: X"$as_dir" : 'X\(//\)[^/]' \| \
27398: X"$as_dir" : 'X\(//\)$' \| \
27399: X"$as_dir" : 'X\(/\)' \| \
27400: . : '\(.\)' 2>/dev/null ||
27401: echo X"$as_dir" |
27402: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27403: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27404: /^X\(\/\/\)$/{ s//\1/; q; }
27405: /^X\(\/\).*/{ s//\1/; q; }
27406: s/.*/./; q'`
27407: done
27408: test ! -n "$as_dirs" || mkdir $as_dirs
27409: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27410: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27411: { (exit 1); exit 1; }; }; }
27412:
27413: ac_builddir=.
27414:
27415: if test "$ac_dir" != .; then
27416: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27417: # A "../" for each directory in $ac_dir_suffix.
27418: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27419: else
27420: ac_dir_suffix= ac_top_builddir=
27421: fi
27422:
27423: case $srcdir in
27424: .) # No --srcdir option. We are building in place.
27425: ac_srcdir=.
27426: if test -z "$ac_top_builddir"; then
27427: ac_top_srcdir=.
27428: else
27429: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27430: fi ;;
27431: [\\/]* | ?:[\\/]* ) # Absolute path.
27432: ac_srcdir=$srcdir$ac_dir_suffix;
27433: ac_top_srcdir=$srcdir ;;
27434: *) # Relative path.
27435: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27436: ac_top_srcdir=$ac_top_builddir$srcdir ;;
27437: esac
27438: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
27439: # absolute.
27440: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
27441: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
27442: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
27443: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
27444:
27445:
27446: cd $ac_dir
27447:
27448: # Check for guested configure; otherwise get Cygnus style configure.
27449: if test -f $ac_srcdir/configure.gnu; then
27450: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
27451: elif test -f $ac_srcdir/configure; then
27452: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
27453: elif test -f $ac_srcdir/configure.in; then
27454: ac_sub_configure=$ac_configure
27455: else
27456: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27457: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27458: ac_sub_configure=
27459: fi
27460:
27461: # The recursion is here.
27462: if test -n "$ac_sub_configure"; then
27463: # Make the cache file name correct relative to the subdirectory.
27464: case $cache_file in
27465: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27466: *) # Relative path.
27467: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
27468: esac
27469:
27470: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27471: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27472: # The eval makes quoting arguments work.
27473: eval $ac_sub_configure $ac_sub_configure_args \
27474: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
27475: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27476: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27477: { (exit 1); exit 1; }; }
27478: fi
27479:
27480: cd $ac_popdir
27481: done
27482: fi
27483:
27484:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.