2007-05-27 H.J. Lu <hongjiu.lu@intel.com>
[official-gcc.git] / libgomp / configure
blobedb1475282dd7f1add862fcfdd6d93de8c5eec59
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU OpenMP Runtime Library 1.0.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
44 if (set +x; test -z "`(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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
293 done
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
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'
305 # So, first we look for a working echo in the user's PATH.
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
317 done
318 IFS="$lt_save_ifs"
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
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=:
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
366 prev="$cmd"
367 done
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
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 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME='GNU OpenMP Runtime Library'
418 PACKAGE_TARNAME='libgomp'
419 PACKAGE_VERSION='1.0'
420 PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
421 PACKAGE_BUGREPORT=''
423 # Factoring default headers for most tests.
424 ac_includes_default="\
425 #include <stdio.h>
426 #if HAVE_SYS_TYPES_H
427 # include <sys/types.h>
428 #endif
429 #if HAVE_SYS_STAT_H
430 # include <sys/stat.h>
431 #endif
432 #if STDC_HEADERS
433 # include <stdlib.h>
434 # include <stddef.h>
435 #else
436 # if HAVE_STDLIB_H
437 # include <stdlib.h>
438 # endif
439 #endif
440 #if HAVE_STRING_H
441 # if !STDC_HEADERS && HAVE_MEMORY_H
442 # include <memory.h>
443 # endif
444 # include <string.h>
445 #endif
446 #if HAVE_STRINGS_H
447 # include <strings.h>
448 #endif
449 #if HAVE_INTTYPES_H
450 # include <inttypes.h>
451 #else
452 # if HAVE_STDINT_H
453 # include <stdint.h>
454 # endif
455 #endif
456 #if HAVE_UNISTD_H
457 # include <unistd.h>
458 #endif"
460 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 GENINSRC_TRUE GENINSRC_FALSE 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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL BUILD_INFO_TRUE BUILD_INFO_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP CPPFLAGS enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND LIBOBJS LTLIBOBJS'
461 ac_subst_files=''
463 # Initialize some variables set by options.
464 ac_init_help=
465 ac_init_version=false
466 # The variables have the same names as the options, with
467 # dashes changed to underlines.
468 cache_file=/dev/null
469 exec_prefix=NONE
470 no_create=
471 no_recursion=
472 prefix=NONE
473 program_prefix=NONE
474 program_suffix=NONE
475 program_transform_name=s,x,x,
476 silent=
477 site=
478 srcdir=
479 verbose=
480 x_includes=NONE
481 x_libraries=NONE
483 # Installation directory options.
484 # These are left unexpanded so users can "make install exec_prefix=/foo"
485 # and all the variables that are supposed to be based on exec_prefix
486 # by default will actually change.
487 # Use braces instead of parens because sh, perl, etc. also accept them.
488 bindir='${exec_prefix}/bin'
489 sbindir='${exec_prefix}/sbin'
490 libexecdir='${exec_prefix}/libexec'
491 datadir='${prefix}/share'
492 sysconfdir='${prefix}/etc'
493 sharedstatedir='${prefix}/com'
494 localstatedir='${prefix}/var'
495 libdir='${exec_prefix}/lib'
496 includedir='${prefix}/include'
497 oldincludedir='/usr/include'
498 infodir='${prefix}/info'
499 mandir='${prefix}/man'
501 ac_prev=
502 for ac_option
504 # If the previous option needs an argument, assign it.
505 if test -n "$ac_prev"; then
506 eval "$ac_prev=\$ac_option"
507 ac_prev=
508 continue
511 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513 # Accept the important Cygnus configure options, so we can diagnose typos.
515 case $ac_option in
517 -bindir | --bindir | --bindi | --bind | --bin | --bi)
518 ac_prev=bindir ;;
519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
520 bindir=$ac_optarg ;;
522 -build | --build | --buil | --bui | --bu)
523 ac_prev=build_alias ;;
524 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
525 build_alias=$ac_optarg ;;
527 -cache-file | --cache-file | --cache-fil | --cache-fi \
528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529 ac_prev=cache_file ;;
530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
532 cache_file=$ac_optarg ;;
534 --config-cache | -C)
535 cache_file=config.cache ;;
537 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
538 ac_prev=datadir ;;
539 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
540 | --da=*)
541 datadir=$ac_optarg ;;
543 -disable-* | --disable-*)
544 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
548 { (exit 1); exit 1; }; }
549 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
550 eval "enable_$ac_feature=no" ;;
552 -enable-* | --enable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 case $ac_option in
560 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 *) ac_optarg=yes ;;
562 esac
563 eval "enable_$ac_feature='$ac_optarg'" ;;
565 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
566 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
567 | --exec | --exe | --ex)
568 ac_prev=exec_prefix ;;
569 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
570 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
571 | --exec=* | --exe=* | --ex=*)
572 exec_prefix=$ac_optarg ;;
574 -gas | --gas | --ga | --g)
575 # Obsolete; use --with-gas.
576 with_gas=yes ;;
578 -help | --help | --hel | --he | -h)
579 ac_init_help=long ;;
580 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
581 ac_init_help=recursive ;;
582 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
583 ac_init_help=short ;;
585 -host | --host | --hos | --ho)
586 ac_prev=host_alias ;;
587 -host=* | --host=* | --hos=* | --ho=*)
588 host_alias=$ac_optarg ;;
590 -includedir | --includedir | --includedi | --included | --include \
591 | --includ | --inclu | --incl | --inc)
592 ac_prev=includedir ;;
593 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
594 | --includ=* | --inclu=* | --incl=* | --inc=*)
595 includedir=$ac_optarg ;;
597 -infodir | --infodir | --infodi | --infod | --info | --inf)
598 ac_prev=infodir ;;
599 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
600 infodir=$ac_optarg ;;
602 -libdir | --libdir | --libdi | --libd)
603 ac_prev=libdir ;;
604 -libdir=* | --libdir=* | --libdi=* | --libd=*)
605 libdir=$ac_optarg ;;
607 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
608 | --libexe | --libex | --libe)
609 ac_prev=libexecdir ;;
610 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
611 | --libexe=* | --libex=* | --libe=*)
612 libexecdir=$ac_optarg ;;
614 -localstatedir | --localstatedir | --localstatedi | --localstated \
615 | --localstate | --localstat | --localsta | --localst \
616 | --locals | --local | --loca | --loc | --lo)
617 ac_prev=localstatedir ;;
618 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
619 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
620 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
621 localstatedir=$ac_optarg ;;
623 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
624 ac_prev=mandir ;;
625 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
626 mandir=$ac_optarg ;;
628 -nfp | --nfp | --nf)
629 # Obsolete; use --without-fp.
630 with_fp=no ;;
632 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
633 | --no-cr | --no-c | -n)
634 no_create=yes ;;
636 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
637 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
638 no_recursion=yes ;;
640 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
641 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
642 | --oldin | --oldi | --old | --ol | --o)
643 ac_prev=oldincludedir ;;
644 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
645 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
646 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
647 oldincludedir=$ac_optarg ;;
649 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
650 ac_prev=prefix ;;
651 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
652 prefix=$ac_optarg ;;
654 -program-prefix | --program-prefix | --program-prefi | --program-pref \
655 | --program-pre | --program-pr | --program-p)
656 ac_prev=program_prefix ;;
657 -program-prefix=* | --program-prefix=* | --program-prefi=* \
658 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
659 program_prefix=$ac_optarg ;;
661 -program-suffix | --program-suffix | --program-suffi | --program-suff \
662 | --program-suf | --program-su | --program-s)
663 ac_prev=program_suffix ;;
664 -program-suffix=* | --program-suffix=* | --program-suffi=* \
665 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
666 program_suffix=$ac_optarg ;;
668 -program-transform-name | --program-transform-name \
669 | --program-transform-nam | --program-transform-na \
670 | --program-transform-n | --program-transform- \
671 | --program-transform | --program-transfor \
672 | --program-transfo | --program-transf \
673 | --program-trans | --program-tran \
674 | --progr-tra | --program-tr | --program-t)
675 ac_prev=program_transform_name ;;
676 -program-transform-name=* | --program-transform-name=* \
677 | --program-transform-nam=* | --program-transform-na=* \
678 | --program-transform-n=* | --program-transform-=* \
679 | --program-transform=* | --program-transfor=* \
680 | --program-transfo=* | --program-transf=* \
681 | --program-trans=* | --program-tran=* \
682 | --progr-tra=* | --program-tr=* | --program-t=*)
683 program_transform_name=$ac_optarg ;;
685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
686 | -silent | --silent | --silen | --sile | --sil)
687 silent=yes ;;
689 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
690 ac_prev=sbindir ;;
691 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
692 | --sbi=* | --sb=*)
693 sbindir=$ac_optarg ;;
695 -sharedstatedir | --sharedstatedir | --sharedstatedi \
696 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
697 | --sharedst | --shareds | --shared | --share | --shar \
698 | --sha | --sh)
699 ac_prev=sharedstatedir ;;
700 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
701 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
702 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
703 | --sha=* | --sh=*)
704 sharedstatedir=$ac_optarg ;;
706 -site | --site | --sit)
707 ac_prev=site ;;
708 -site=* | --site=* | --sit=*)
709 site=$ac_optarg ;;
711 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
712 ac_prev=srcdir ;;
713 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
714 srcdir=$ac_optarg ;;
716 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
717 | --syscon | --sysco | --sysc | --sys | --sy)
718 ac_prev=sysconfdir ;;
719 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
720 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
721 sysconfdir=$ac_optarg ;;
723 -target | --target | --targe | --targ | --tar | --ta | --t)
724 ac_prev=target_alias ;;
725 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
726 target_alias=$ac_optarg ;;
728 -v | -verbose | --verbose | --verbos | --verbo | --verb)
729 verbose=yes ;;
731 -version | --version | --versio | --versi | --vers | -V)
732 ac_init_version=: ;;
734 -with-* | --with-*)
735 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
736 # Reject names that are not valid shell variable names.
737 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
738 { echo "$as_me: error: invalid package name: $ac_package" >&2
739 { (exit 1); exit 1; }; }
740 ac_package=`echo $ac_package| sed 's/-/_/g'`
741 case $ac_option in
742 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
743 *) ac_optarg=yes ;;
744 esac
745 eval "with_$ac_package='$ac_optarg'" ;;
747 -without-* | --without-*)
748 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
749 # Reject names that are not valid shell variable names.
750 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751 { echo "$as_me: error: invalid package name: $ac_package" >&2
752 { (exit 1); exit 1; }; }
753 ac_package=`echo $ac_package | sed 's/-/_/g'`
754 eval "with_$ac_package=no" ;;
756 --x)
757 # Obsolete; use --with-x.
758 with_x=yes ;;
760 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
761 | --x-incl | --x-inc | --x-in | --x-i)
762 ac_prev=x_includes ;;
763 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
764 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
765 x_includes=$ac_optarg ;;
767 -x-libraries | --x-libraries | --x-librarie | --x-librari \
768 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
769 ac_prev=x_libraries ;;
770 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
771 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
772 x_libraries=$ac_optarg ;;
774 -*) { echo "$as_me: error: unrecognized option: $ac_option
775 Try \`$0 --help' for more information." >&2
776 { (exit 1); exit 1; }; }
779 *=*)
780 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
783 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
784 { (exit 1); exit 1; }; }
785 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
786 eval "$ac_envvar='$ac_optarg'"
787 export $ac_envvar ;;
790 # FIXME: should be removed in autoconf 3.0.
791 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
792 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
793 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
794 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797 esac
798 done
800 if test -n "$ac_prev"; then
801 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
802 { echo "$as_me: error: missing argument to $ac_option" >&2
803 { (exit 1); exit 1; }; }
806 # Be sure to have absolute paths.
807 for ac_var in exec_prefix prefix
809 eval ac_val=$`echo $ac_var`
810 case $ac_val in
811 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
812 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
813 { (exit 1); exit 1; }; };;
814 esac
815 done
817 # Be sure to have absolute paths.
818 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
819 localstatedir libdir includedir oldincludedir infodir mandir
821 eval ac_val=$`echo $ac_var`
822 case $ac_val in
823 [\\/$]* | ?:[\\/]* ) ;;
824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825 { (exit 1); exit 1; }; };;
826 esac
827 done
829 # There might be people who depend on the old broken behavior: `$host'
830 # used to hold the argument of --host etc.
831 # FIXME: To remove some day.
832 build=$build_alias
833 host=$host_alias
834 target=$target_alias
836 # FIXME: To remove some day.
837 if test "x$host_alias" != x; then
838 if test "x$build_alias" = x; then
839 cross_compiling=maybe
840 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
841 If a cross compiler is detected then cross compile mode will be used." >&2
842 elif test "x$build_alias" != "x$host_alias"; then
843 cross_compiling=yes
847 ac_tool_prefix=
848 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850 test "$silent" = yes && exec 6>/dev/null
853 # Find the source files, if location was not specified.
854 if test -z "$srcdir"; then
855 ac_srcdir_defaulted=yes
856 # Try the directory containing this script, then its parent.
857 ac_confdir=`(dirname "$0") 2>/dev/null ||
858 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
859 X"$0" : 'X\(//\)[^/]' \| \
860 X"$0" : 'X\(//\)$' \| \
861 X"$0" : 'X\(/\)' \| \
862 . : '\(.\)' 2>/dev/null ||
863 echo X"$0" |
864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
866 /^X\(\/\/\)$/{ s//\1/; q; }
867 /^X\(\/\).*/{ s//\1/; q; }
868 s/.*/./; q'`
869 srcdir=$ac_confdir
870 if test ! -r $srcdir/$ac_unique_file; then
871 srcdir=..
873 else
874 ac_srcdir_defaulted=no
876 if test ! -r $srcdir/$ac_unique_file; then
877 if test "$ac_srcdir_defaulted" = yes; then
878 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
879 { (exit 1); exit 1; }; }
880 else
881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
882 { (exit 1); exit 1; }; }
885 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
886 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
887 { (exit 1); exit 1; }; }
888 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
889 ac_env_build_alias_set=${build_alias+set}
890 ac_env_build_alias_value=$build_alias
891 ac_cv_env_build_alias_set=${build_alias+set}
892 ac_cv_env_build_alias_value=$build_alias
893 ac_env_host_alias_set=${host_alias+set}
894 ac_env_host_alias_value=$host_alias
895 ac_cv_env_host_alias_set=${host_alias+set}
896 ac_cv_env_host_alias_value=$host_alias
897 ac_env_target_alias_set=${target_alias+set}
898 ac_env_target_alias_value=$target_alias
899 ac_cv_env_target_alias_set=${target_alias+set}
900 ac_cv_env_target_alias_value=$target_alias
901 ac_env_CPP_set=${CPP+set}
902 ac_env_CPP_value=$CPP
903 ac_cv_env_CPP_set=${CPP+set}
904 ac_cv_env_CPP_value=$CPP
905 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
906 ac_env_CPPFLAGS_value=$CPPFLAGS
907 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
909 ac_env_FC_set=${FC+set}
910 ac_env_FC_value=$FC
911 ac_cv_env_FC_set=${FC+set}
912 ac_cv_env_FC_value=$FC
913 ac_env_FCFLAGS_set=${FCFLAGS+set}
914 ac_env_FCFLAGS_value=$FCFLAGS
915 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
916 ac_cv_env_FCFLAGS_value=$FCFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 # Report the --help message.
925 if test "$ac_init_help" = "long"; then
926 # Omit some internal or obsolete options to make the list less imposing.
927 # This message is too long to be a string in the A/UX 3.1 sh.
928 cat <<_ACEOF
929 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
931 Usage: $0 [OPTION]... [VAR=VALUE]...
933 To assign environment variables (e.g., CC, CFLAGS...), specify them as
934 VAR=VALUE. See below for descriptions of some of the useful variables.
936 Defaults for the options are specified in brackets.
938 Configuration:
939 -h, --help display this help and exit
940 --help=short display options specific to this package
941 --help=recursive display the short help of all the included packages
942 -V, --version display version information and exit
943 -q, --quiet, --silent do not print \`checking...' messages
944 --cache-file=FILE cache test results in FILE [disabled]
945 -C, --config-cache alias for \`--cache-file=config.cache'
946 -n, --no-create do not create output files
947 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949 _ACEOF
951 cat <<_ACEOF
952 Installation directories:
953 --prefix=PREFIX install architecture-independent files in PREFIX
954 [$ac_default_prefix]
955 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
956 [PREFIX]
958 By default, \`make install' will install all the files in
959 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
960 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
961 for instance \`--prefix=\$HOME'.
963 For better control, use the options below.
965 Fine tuning of the installation directories:
966 --bindir=DIR user executables [EPREFIX/bin]
967 --sbindir=DIR system admin executables [EPREFIX/sbin]
968 --libexecdir=DIR program executables [EPREFIX/libexec]
969 --datadir=DIR read-only architecture-independent data [PREFIX/share]
970 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
971 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
972 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
973 --libdir=DIR object code libraries [EPREFIX/lib]
974 --includedir=DIR C header files [PREFIX/include]
975 --oldincludedir=DIR C header files for non-gcc [/usr/include]
976 --infodir=DIR info documentation [PREFIX/info]
977 --mandir=DIR man documentation [PREFIX/man]
978 _ACEOF
980 cat <<\_ACEOF
982 Program names:
983 --program-prefix=PREFIX prepend PREFIX to installed program names
984 --program-suffix=SUFFIX append SUFFIX to installed program names
985 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
987 System types:
988 --build=BUILD configure for building on BUILD [guessed]
989 --host=HOST cross-compile to build programs to run on HOST [BUILD]
990 --target=TARGET configure for building compilers for TARGET [HOST]
991 _ACEOF
994 if test -n "$ac_init_help"; then
995 case $ac_init_help in
996 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
997 esac
998 cat <<\_ACEOF
1000 Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --enable-version-specific-runtime-libs
1004 Specify that runtime libraries should be installed
1005 in a compiler-specific directory [default=no]
1006 --enable-linux-futex Use the Linux futex system call
1007 [default=default]
1008 --enable-generated-files-in-srcdir
1009 put copies of generated files in source dir intended
1010 for creating source tarballs for users without
1011 texinfo bison or flex. [default=no]
1012 --enable-multilib build many library versions (default)
1013 --disable-dependency-tracking speeds up one-time build
1014 --enable-dependency-tracking do not reject slow dependency extractors
1015 --enable-shared[=PKGS]
1016 build shared libraries [default=yes]
1017 --enable-static[=PKGS]
1018 build static libraries [default=yes]
1019 --enable-fast-install[=PKGS]
1020 optimize for fast installation [default=yes]
1021 --disable-libtool-lock avoid locking (might break parallel builds)
1022 --enable-maintainer-mode enable make rules and dependencies not useful
1023 (and sometimes confusing) to the casual installer
1024 --enable-tls Use thread-local storage [default=yes]
1025 --enable-symvers=STYLE enables symbol versioning of the shared library
1026 [default=yes]
1028 Optional Packages:
1029 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1030 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1031 --with-pic try to use only PIC/non-PIC objects [default=use
1032 both]
1033 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1035 Some influential environment variables:
1036 CC C compiler command
1037 CFLAGS C compiler flags
1038 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1039 nonstandard directory <lib dir>
1040 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1041 headers in a nonstandard directory <include dir>
1042 CPP C preprocessor
1043 FC Fortran compiler command
1044 FCFLAGS Fortran compiler flags
1046 Use these variables to override the choices made by `configure' or to help
1047 it to find libraries and programs with nonstandard names/locations.
1049 _ACEOF
1052 if test "$ac_init_help" = "recursive"; then
1053 # If there are subdirs, report their specific --help.
1054 ac_popdir=`pwd`
1055 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1056 test -d $ac_dir || continue
1057 ac_builddir=.
1059 if test "$ac_dir" != .; then
1060 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1061 # A "../" for each directory in $ac_dir_suffix.
1062 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063 else
1064 ac_dir_suffix= ac_top_builddir=
1067 case $srcdir in
1068 .) # No --srcdir option. We are building in place.
1069 ac_srcdir=.
1070 if test -z "$ac_top_builddir"; then
1071 ac_top_srcdir=.
1072 else
1073 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074 fi ;;
1075 [\\/]* | ?:[\\/]* ) # Absolute path.
1076 ac_srcdir=$srcdir$ac_dir_suffix;
1077 ac_top_srcdir=$srcdir ;;
1078 *) # Relative path.
1079 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1080 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1081 esac
1083 # Do not use `cd foo && pwd` to compute absolute paths, because
1084 # the directories may not exist.
1085 case `pwd` in
1086 .) ac_abs_builddir="$ac_dir";;
1088 case "$ac_dir" in
1089 .) ac_abs_builddir=`pwd`;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1091 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1092 esac;;
1093 esac
1094 case $ac_abs_builddir in
1095 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1097 case ${ac_top_builddir}. in
1098 .) ac_abs_top_builddir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1100 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1101 esac;;
1102 esac
1103 case $ac_abs_builddir in
1104 .) ac_abs_srcdir=$ac_srcdir;;
1106 case $ac_srcdir in
1107 .) ac_abs_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1109 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1110 esac;;
1111 esac
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1115 case $ac_top_srcdir in
1116 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1118 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1119 esac;;
1120 esac
1122 cd $ac_dir
1123 # Check for guested configure; otherwise get Cygnus style configure.
1124 if test -f $ac_srcdir/configure.gnu; then
1125 echo
1126 $SHELL $ac_srcdir/configure.gnu --help=recursive
1127 elif test -f $ac_srcdir/configure; then
1128 echo
1129 $SHELL $ac_srcdir/configure --help=recursive
1130 elif test -f $ac_srcdir/configure.ac ||
1131 test -f $ac_srcdir/configure.in; then
1132 echo
1133 $ac_configure --help
1134 else
1135 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1137 cd $ac_popdir
1138 done
1141 test -n "$ac_init_help" && exit 0
1142 if $ac_init_version; then
1143 cat <<\_ACEOF
1144 GNU OpenMP Runtime Library configure 1.0
1145 generated by GNU Autoconf 2.59
1147 Copyright (C) 2003 Free Software Foundation, Inc.
1148 This configure script is free software; the Free Software Foundation
1149 gives unlimited permission to copy, distribute and modify it.
1150 _ACEOF
1151 exit 0
1153 exec 5>config.log
1154 cat >&5 <<_ACEOF
1155 This file contains any messages produced by compilers while
1156 running configure, to aid debugging if configure makes a mistake.
1158 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1159 generated by GNU Autoconf 2.59. Invocation command line was
1161 $ $0 $@
1163 _ACEOF
1165 cat <<_ASUNAME
1166 ## --------- ##
1167 ## Platform. ##
1168 ## --------- ##
1170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1187 _ASUNAME
1189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190 for as_dir in $PATH
1192 IFS=$as_save_IFS
1193 test -z "$as_dir" && as_dir=.
1194 echo "PATH: $as_dir"
1195 done
1197 } >&5
1199 cat >&5 <<_ACEOF
1202 ## ----------- ##
1203 ## Core tests. ##
1204 ## ----------- ##
1206 _ACEOF
1209 # Keep a trace of the command line.
1210 # Strip out --no-create and --no-recursion so they do not pile up.
1211 # Strip out --silent because we don't want to record it for future runs.
1212 # Also quote any args containing shell meta-characters.
1213 # Make two passes to allow for proper duplicate-argument suppression.
1214 ac_configure_args=
1215 ac_configure_args0=
1216 ac_configure_args1=
1217 ac_sep=
1218 ac_must_keep_next=false
1219 for ac_pass in 1 2
1221 for ac_arg
1223 case $ac_arg in
1224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 continue ;;
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230 esac
1231 case $ac_pass in
1232 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1234 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235 if test $ac_must_keep_next = true; then
1236 ac_must_keep_next=false # Got value, back to normal.
1237 else
1238 case $ac_arg in
1239 *=* | --config-cache | -C | -disable-* | --disable-* \
1240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242 | -with-* | --with-* | -without-* | --without-* | --x)
1243 case "$ac_configure_args0 " in
1244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245 esac
1247 -* ) ac_must_keep_next=true ;;
1248 esac
1250 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251 # Get rid of the leading space.
1252 ac_sep=" "
1254 esac
1255 done
1256 done
1257 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1260 # When interrupted or exit'd, cleanup temporary files, and complete
1261 # config.log. We remove comments because anyway the quotes in there
1262 # would cause problems or look ugly.
1263 # WARNING: Be sure not to use single quotes in there, as some shells,
1264 # such as our DU 5.0 friend, will then `close' the trap.
1265 trap 'exit_status=$?
1266 # Save into config.log some information that might help in debugging.
1268 echo
1270 cat <<\_ASBOX
1271 ## ---------------- ##
1272 ## Cache variables. ##
1273 ## ---------------- ##
1274 _ASBOX
1275 echo
1276 # The following way of writing the cache mishandles newlines in values,
1278 (set) 2>&1 |
1279 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280 *ac_space=\ *)
1281 sed -n \
1282 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1286 sed -n \
1287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1289 esac;
1291 echo
1293 cat <<\_ASBOX
1294 ## ----------------- ##
1295 ## Output variables. ##
1296 ## ----------------- ##
1297 _ASBOX
1298 echo
1299 for ac_var in $ac_subst_vars
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1306 if test -n "$ac_subst_files"; then
1307 cat <<\_ASBOX
1308 ## ------------- ##
1309 ## Output files. ##
1310 ## ------------- ##
1311 _ASBOX
1312 echo
1313 for ac_var in $ac_subst_files
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1317 done | sort
1318 echo
1321 if test -s confdefs.h; then
1322 cat <<\_ASBOX
1323 ## ----------- ##
1324 ## confdefs.h. ##
1325 ## ----------- ##
1326 _ASBOX
1327 echo
1328 sed "/^$/d" confdefs.h | sort
1329 echo
1331 test "$ac_signal" != 0 &&
1332 echo "$as_me: caught signal $ac_signal"
1333 echo "$as_me: exit $exit_status"
1334 } >&5
1335 rm -f core *.core &&
1336 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337 exit $exit_status
1339 for ac_signal in 1 2 13 15; do
1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341 done
1342 ac_signal=0
1344 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1345 rm -rf conftest* confdefs.h
1346 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347 echo >confdefs.h
1349 # Predefined preprocessor variables.
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_NAME "$PACKAGE_NAME"
1353 _ACEOF
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358 _ACEOF
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1363 _ACEOF
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_STRING "$PACKAGE_STRING"
1368 _ACEOF
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373 _ACEOF
1376 # Let the site file select an alternate cache file if it wants to.
1377 # Prefer explicitly selected file to automatically selected ones.
1378 if test -z "$CONFIG_SITE"; then
1379 if test "x$prefix" != xNONE; then
1380 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381 else
1382 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1385 for ac_site_file in $CONFIG_SITE; do
1386 if test -r "$ac_site_file"; then
1387 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388 echo "$as_me: loading site script $ac_site_file" >&6;}
1389 sed 's/^/| /' "$ac_site_file" >&5
1390 . "$ac_site_file"
1392 done
1394 if test -r "$cache_file"; then
1395 # Some versions of bash will fail to source /dev/null (special
1396 # files actually), so we avoid doing that.
1397 if test -f "$cache_file"; then
1398 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399 echo "$as_me: loading cache $cache_file" >&6;}
1400 case $cache_file in
1401 [\\/]* | ?:[\\/]* ) . $cache_file;;
1402 *) . ./$cache_file;;
1403 esac
1405 else
1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407 echo "$as_me: creating cache $cache_file" >&6;}
1408 >$cache_file
1411 # Check that the precious variables saved in the cache have kept the same
1412 # value.
1413 ac_cache_corrupted=false
1414 for ac_var in `(set) 2>&1 |
1415 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417 eval ac_new_set=\$ac_env_${ac_var}_set
1418 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419 eval ac_new_val="\$ac_env_${ac_var}_value"
1420 case $ac_old_set,$ac_new_set in
1421 set,)
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1425 ,set)
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1429 ,);;
1431 if test "x$ac_old_val" != "x$ac_new_val"; then
1432 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1433 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1434 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1435 echo "$as_me: former value: $ac_old_val" >&2;}
1436 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1437 echo "$as_me: current value: $ac_new_val" >&2;}
1438 ac_cache_corrupted=:
1439 fi;;
1440 esac
1441 # Pass precious variables to config.status.
1442 if test "$ac_new_set" = set; then
1443 case $ac_new_val in
1444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1445 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1446 *) ac_arg=$ac_var=$ac_new_val ;;
1447 esac
1448 case " $ac_configure_args " in
1449 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1450 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1451 esac
1453 done
1454 if $ac_cache_corrupted; then
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1462 ac_ext=c
1463 ac_cpp='$CPP $CPPFLAGS'
1464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1494 ac_config_headers="$ac_config_headers config.h"
1497 # -------
1498 # Options
1499 # -------
1501 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1502 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1503 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1504 if test "${enable_version_specific_runtime_libs+set}" = set; then
1505 enableval="$enable_version_specific_runtime_libs"
1507 case "$enableval" in
1508 yes|no) ;;
1509 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1510 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1511 { (exit 1); exit 1; }; } ;;
1512 esac
1514 else
1515 enable_version_specific_runtime_libs=no
1518 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1519 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1521 echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5
1522 echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6
1523 # Check whether --enable-linux-futex or --disable-linux-futex was given.
1524 if test "${enable_linux_futex+set}" = set; then
1525 enableval="$enable_linux_futex"
1527 case "$enableval" in
1528 yes|no|default) ;;
1529 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
1530 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
1531 { (exit 1); exit 1; }; } ;;
1532 esac
1534 else
1535 enable_linux_futex=default
1538 echo "$as_me:$LINENO: result: $enable_linux_futex" >&5
1539 echo "${ECHO_T}$enable_linux_futex" >&6
1541 # We would like our source tree to be readonly. However when releases or
1542 # pre-releases are generated, the flex/bison generated files as well as the
1543 # various formats of manuals need to be included along with the rest of the
1544 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1545 # just that.
1546 echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1547 echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1548 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1549 if test "${enable_generated_files_in_srcdir+set}" = set; then
1550 enableval="$enable_generated_files_in_srcdir"
1552 case "$enableval" in
1553 yes|no) ;;
1554 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1555 echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1556 { (exit 1); exit 1; }; } ;;
1557 esac
1559 else
1560 enable_generated_files_in_srcdir=no
1563 echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1564 echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1567 if test "$enable_generated_files_in_srcdir" = yes; then
1568 GENINSRC_TRUE=
1569 GENINSRC_FALSE='#'
1570 else
1571 GENINSRC_TRUE='#'
1572 GENINSRC_FALSE=
1577 # -------
1578 # -------
1580 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1582 # You will slowly go insane if you do not grok the following fact: when
1583 # building this library, the top-level /target/ becomes the library's /host/.
1585 # configure then causes --target to default to --host, exactly like any
1586 # other package using autoconf. Therefore, 'target' and 'host' will
1587 # always be the same. This makes sense both for native and cross compilers
1588 # just think about it for a little while. :-)
1590 # Also, if this library is being configured as part of a cross compiler, the
1591 # top-level configure script will pass the "real" host as $with_cross_host.
1593 # Do not delete or change the following two lines. For why, see
1594 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1595 ac_aux_dir=
1596 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1597 if test -f $ac_dir/install-sh; then
1598 ac_aux_dir=$ac_dir
1599 ac_install_sh="$ac_aux_dir/install-sh -c"
1600 break
1601 elif test -f $ac_dir/install.sh; then
1602 ac_aux_dir=$ac_dir
1603 ac_install_sh="$ac_aux_dir/install.sh -c"
1604 break
1605 elif test -f $ac_dir/shtool; then
1606 ac_aux_dir=$ac_dir
1607 ac_install_sh="$ac_aux_dir/shtool install -c"
1608 break
1610 done
1611 if test -z "$ac_aux_dir"; then
1612 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1613 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1614 { (exit 1); exit 1; }; }
1616 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1617 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1618 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1620 # Make sure we can run config.sub.
1621 $ac_config_sub sun4 >/dev/null 2>&1 ||
1622 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1623 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1624 { (exit 1); exit 1; }; }
1626 echo "$as_me:$LINENO: checking build system type" >&5
1627 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1628 if test "${ac_cv_build+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 else
1631 ac_cv_build_alias=$build_alias
1632 test -z "$ac_cv_build_alias" &&
1633 ac_cv_build_alias=`$ac_config_guess`
1634 test -z "$ac_cv_build_alias" &&
1635 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1636 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1637 { (exit 1); exit 1; }; }
1638 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1639 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1640 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1641 { (exit 1); exit 1; }; }
1644 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1645 echo "${ECHO_T}$ac_cv_build" >&6
1646 build=$ac_cv_build
1647 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1648 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1649 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1652 echo "$as_me:$LINENO: checking host system type" >&5
1653 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1654 if test "${ac_cv_host+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 else
1657 ac_cv_host_alias=$host_alias
1658 test -z "$ac_cv_host_alias" &&
1659 ac_cv_host_alias=$ac_cv_build_alias
1660 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1661 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1662 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1663 { (exit 1); exit 1; }; }
1666 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1667 echo "${ECHO_T}$ac_cv_host" >&6
1668 host=$ac_cv_host
1669 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1670 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1671 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1674 echo "$as_me:$LINENO: checking target system type" >&5
1675 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1676 if test "${ac_cv_target+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 else
1679 ac_cv_target_alias=$target_alias
1680 test "x$ac_cv_target_alias" = "x" &&
1681 ac_cv_target_alias=$ac_cv_host_alias
1682 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1683 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1684 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1685 { (exit 1); exit 1; }; }
1688 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1689 echo "${ECHO_T}$ac_cv_target" >&6
1690 target=$ac_cv_target
1691 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1692 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1693 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1696 # The aliases save the names the user supplied, while $host etc.
1697 # will get canonicalized.
1698 test -n "$target_alias" &&
1699 test "$program_prefix$program_suffix$program_transform_name" = \
1700 NONENONEs,x,x, &&
1701 program_prefix=${target_alias}-
1702 target_alias=${target_alias-$host_alias}
1704 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1705 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1706 # 1.9.0: minimum required version
1707 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1708 # of other PACKAGE_* variables will, however, and there's nothing
1709 # we can do about that; they come from AC_INIT).
1710 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1711 # file in the top srcdir, etc, etc), so stop complaining.
1712 # -Wall: turns on all automake warnings...
1713 # -Wno-portability: ...except this one, since GNU make is required.
1714 # -Wno-override: ... and this one, since we do want this in testsuite.
1715 am__api_version="1.9"
1716 # Find a good install program. We prefer a C program (faster),
1717 # so one script is as good as another. But avoid the broken or
1718 # incompatible versions:
1719 # SysV /etc/install, /usr/sbin/install
1720 # SunOS /usr/etc/install
1721 # IRIX /sbin/install
1722 # AIX /bin/install
1723 # AmigaOS /C/install, which installs bootblocks on floppy discs
1724 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1725 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1726 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1727 # OS/2's system install, which has a completely different semantic
1728 # ./install, which can be erroneously created by make from ./install.sh.
1729 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1730 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1731 if test -z "$INSTALL"; then
1732 if test "${ac_cv_path_install+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1734 else
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 for as_dir in $PATH
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 # Account for people who put trailing slashes in PATH elements.
1741 case $as_dir/ in
1742 ./ | .// | /cC/* | \
1743 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1744 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1745 /usr/ucb/* ) ;;
1747 # OSF1 and SCO ODT 3.0 have their own names for install.
1748 # Don't use installbsd from OSF since it installs stuff as root
1749 # by default.
1750 for ac_prog in ginstall scoinst install; do
1751 for ac_exec_ext in '' $ac_executable_extensions; do
1752 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1753 if test $ac_prog = install &&
1754 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1755 # AIX install. It has an incompatible calling convention.
1757 elif test $ac_prog = install &&
1758 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1759 # program-specific install script used by HP pwplus--don't use.
1761 else
1762 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1763 break 3
1766 done
1767 done
1769 esac
1770 done
1774 if test "${ac_cv_path_install+set}" = set; then
1775 INSTALL=$ac_cv_path_install
1776 else
1777 # As a last resort, use the slow shell script. We don't cache a
1778 # path for INSTALL within a source directory, because that will
1779 # break other packages using the cache if that directory is
1780 # removed, or if the path is relative.
1781 INSTALL=$ac_install_sh
1784 echo "$as_me:$LINENO: result: $INSTALL" >&5
1785 echo "${ECHO_T}$INSTALL" >&6
1787 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1788 # It thinks the first close brace ends the variable substitution.
1789 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1791 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1793 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1795 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1796 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1797 # Just in case
1798 sleep 1
1799 echo timestamp > conftest.file
1800 # Do `set' in a subshell so we don't clobber the current shell's
1801 # arguments. Must try -L first in case configure is actually a
1802 # symlink; some systems play weird games with the mod time of symlinks
1803 # (eg FreeBSD returns the mod time of the symlink's containing
1804 # directory).
1805 if (
1806 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1807 if test "$*" = "X"; then
1808 # -L didn't work.
1809 set X `ls -t $srcdir/configure conftest.file`
1811 rm -f conftest.file
1812 if test "$*" != "X $srcdir/configure conftest.file" \
1813 && test "$*" != "X conftest.file $srcdir/configure"; then
1815 # If neither matched, then we have a broken ls. This can happen
1816 # if, for instance, CONFIG_SHELL is bash and it inherits a
1817 # broken ls alias from the environment. This has actually
1818 # happened. Such a system could not be considered "sane".
1819 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1820 alias in your environment" >&5
1821 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1822 alias in your environment" >&2;}
1823 { (exit 1); exit 1; }; }
1826 test "$2" = conftest.file
1828 then
1829 # Ok.
1831 else
1832 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1833 Check your system clock" >&5
1834 echo "$as_me: error: newly created file is older than distributed files!
1835 Check your system clock" >&2;}
1836 { (exit 1); exit 1; }; }
1838 echo "$as_me:$LINENO: result: yes" >&5
1839 echo "${ECHO_T}yes" >&6
1840 test "$program_prefix" != NONE &&
1841 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1842 # Use a double $ so make ignores it.
1843 test "$program_suffix" != NONE &&
1844 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1845 # Double any \ or $. echo might interpret backslashes.
1846 # By default was `s,x,x', remove it if useless.
1847 cat <<\_ACEOF >conftest.sed
1848 s/[\\$]/&&/g;s/;s,x,x,$//
1849 _ACEOF
1850 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1851 rm conftest.sed
1853 # expand $ac_aux_dir to an absolute path
1854 am_aux_dir=`cd $ac_aux_dir && pwd`
1856 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1857 # Use eval to expand $SHELL
1858 if eval "$MISSING --run true"; then
1859 am_missing_run="$MISSING --run "
1860 else
1861 am_missing_run=
1862 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1863 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1866 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1867 # We used to keeping the `.' as first argument, in order to
1868 # allow $(mkdir_p) to be used without argument. As in
1869 # $(mkdir_p) $(somedir)
1870 # where $(somedir) is conditionally defined. However this is wrong
1871 # for two reasons:
1872 # 1. if the package is installed by a user who cannot write `.'
1873 # make install will fail,
1874 # 2. the above comment should most certainly read
1875 # $(mkdir_p) $(DESTDIR)$(somedir)
1876 # so it does not work when $(somedir) is undefined and
1877 # $(DESTDIR) is not.
1878 # To support the latter case, we have to write
1879 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1880 # so the `.' trick is pointless.
1881 mkdir_p='mkdir -p --'
1882 else
1883 # On NextStep and OpenStep, the `mkdir' command does not
1884 # recognize any option. It will interpret all options as
1885 # directories to create, and then abort because `.' already
1886 # exists.
1887 for d in ./-p ./--version;
1889 test -d $d && rmdir $d
1890 done
1891 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1892 if test -f "$ac_aux_dir/mkinstalldirs"; then
1893 mkdir_p='$(mkinstalldirs)'
1894 else
1895 mkdir_p='$(install_sh) -d'
1899 for ac_prog in gawk mawk nawk awk
1901 # Extract the first word of "$ac_prog", so it can be a program name with args.
1902 set dummy $ac_prog; ac_word=$2
1903 echo "$as_me:$LINENO: checking for $ac_word" >&5
1904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905 if test "${ac_cv_prog_AWK+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 else
1908 if test -n "$AWK"; then
1909 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1910 else
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1914 IFS=$as_save_IFS
1915 test -z "$as_dir" && as_dir=.
1916 for ac_exec_ext in '' $ac_executable_extensions; do
1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918 ac_cv_prog_AWK="$ac_prog"
1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 break 2
1922 done
1923 done
1927 AWK=$ac_cv_prog_AWK
1928 if test -n "$AWK"; then
1929 echo "$as_me:$LINENO: result: $AWK" >&5
1930 echo "${ECHO_T}$AWK" >&6
1931 else
1932 echo "$as_me:$LINENO: result: no" >&5
1933 echo "${ECHO_T}no" >&6
1936 test -n "$AWK" && break
1937 done
1939 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1940 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1941 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1942 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 else
1945 cat >conftest.make <<\_ACEOF
1946 all:
1947 @echo 'ac_maketemp="$(MAKE)"'
1948 _ACEOF
1949 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1950 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1951 if test -n "$ac_maketemp"; then
1952 eval ac_cv_prog_make_${ac_make}_set=yes
1953 else
1954 eval ac_cv_prog_make_${ac_make}_set=no
1956 rm -f conftest.make
1958 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1959 echo "$as_me:$LINENO: result: yes" >&5
1960 echo "${ECHO_T}yes" >&6
1961 SET_MAKE=
1962 else
1963 echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1965 SET_MAKE="MAKE=${MAKE-make}"
1968 rm -rf .tst 2>/dev/null
1969 mkdir .tst 2>/dev/null
1970 if test -d .tst; then
1971 am__leading_dot=.
1972 else
1973 am__leading_dot=_
1975 rmdir .tst 2>/dev/null
1977 # test to see if srcdir already configured
1978 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1979 test -f $srcdir/config.status; then
1980 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1981 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1982 { (exit 1); exit 1; }; }
1985 # test whether we have cygpath
1986 if test -z "$CYGPATH_W"; then
1987 if (cygpath --version) >/dev/null 2>/dev/null; then
1988 CYGPATH_W='cygpath -w'
1989 else
1990 CYGPATH_W=echo
1995 # Define the identity of the package.
1996 PACKAGE='libgomp'
1997 VERSION='1.0'
2000 cat >>confdefs.h <<_ACEOF
2001 #define PACKAGE "$PACKAGE"
2002 _ACEOF
2005 cat >>confdefs.h <<_ACEOF
2006 #define VERSION "$VERSION"
2007 _ACEOF
2009 # Some tools Automake needs.
2011 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2014 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2017 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2020 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2023 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2025 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2027 # Installed binaries are usually stripped using `strip' when the user
2028 # run `make install-strip'. However `strip' might not be the right
2029 # tool to use in cross-compilation environments, therefore Automake
2030 # will honor the `STRIP' environment variable to overrule this program.
2031 if test "$cross_compiling" != no; then
2032 if test -n "$ac_tool_prefix"; then
2033 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2034 set dummy ${ac_tool_prefix}strip; ac_word=$2
2035 echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037 if test "${ac_cv_prog_STRIP+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040 if test -n "$STRIP"; then
2041 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2042 else
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 break 2
2054 done
2055 done
2059 STRIP=$ac_cv_prog_STRIP
2060 if test -n "$STRIP"; then
2061 echo "$as_me:$LINENO: result: $STRIP" >&5
2062 echo "${ECHO_T}$STRIP" >&6
2063 else
2064 echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6
2069 if test -z "$ac_cv_prog_STRIP"; then
2070 ac_ct_STRIP=$STRIP
2071 # Extract the first word of "strip", so it can be a program name with args.
2072 set dummy strip; ac_word=$2
2073 echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078 if test -n "$ac_ct_STRIP"; then
2079 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2080 else
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 for as_dir in $PATH
2084 IFS=$as_save_IFS
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088 ac_cv_prog_ac_ct_STRIP="strip"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090 break 2
2092 done
2093 done
2095 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2098 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2099 if test -n "$ac_ct_STRIP"; then
2100 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2101 echo "${ECHO_T}$ac_ct_STRIP" >&6
2102 else
2103 echo "$as_me:$LINENO: result: no" >&5
2104 echo "${ECHO_T}no" >&6
2107 STRIP=$ac_ct_STRIP
2108 else
2109 STRIP="$ac_cv_prog_STRIP"
2113 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2115 # We need awk for the "check" target. The system "awk" is bad on
2116 # some platforms.
2117 # Always define AMTAR for backward compatibility.
2119 AMTAR=${AMTAR-"${am_missing_run}tar"}
2121 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2127 # Default to --enable-multilib
2128 # Check whether --enable-multilib or --disable-multilib was given.
2129 if test "${enable_multilib+set}" = set; then
2130 enableval="$enable_multilib"
2131 case "$enableval" in
2132 yes) multilib=yes ;;
2133 no) multilib=no ;;
2134 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2135 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2136 { (exit 1); exit 1; }; } ;;
2137 esac
2138 else
2139 multilib=yes
2142 # We may get other options which we leave undocumented:
2143 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2144 # See config-ml.in if you want the gory details.
2146 if test "$srcdir" = "."; then
2147 if test "$with_target_subdir" != "."; then
2148 multi_basedir="$srcdir/$with_multisrctop../.."
2149 else
2150 multi_basedir="$srcdir/$with_multisrctop.."
2152 else
2153 multi_basedir="$srcdir/.."
2157 # Even if the default multilib is not a cross compilation,
2158 # it may be that some of the other multilibs are.
2159 if test $cross_compiling = no && test $multilib = yes \
2160 && test "x${with_multisubdir}" != x ; then
2161 cross_compiling=maybe
2164 ac_config_commands="$ac_config_commands default-1"
2167 # Calculate toolexeclibdir
2168 # Also toolexecdir, though it's only used in toolexeclibdir
2169 case ${enable_version_specific_runtime_libs} in
2170 yes)
2171 # Need the gcc compiler version to know where to install libraries
2172 # and header files if --enable-version-specific-runtime-libs option
2173 # is selected.
2174 toolexecdir='$(libdir)/gcc/$(target_alias)'
2175 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2178 if test -n "$with_cross_host" &&
2179 test x"$with_cross_host" != x"no"; then
2180 # Install a library built with a cross compiler in tooldir, not libdir.
2181 toolexecdir='$(exec_prefix)/$(target_alias)'
2182 toolexeclibdir='$(toolexecdir)/lib'
2183 else
2184 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2185 toolexeclibdir='$(libdir)'
2187 multi_os_directory=`$CC -print-multi-os-directory`
2188 case $multi_os_directory in
2189 .) ;; # Avoid trailing /.
2190 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2191 esac
2193 esac
2197 # Check the compiler.
2198 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2199 # We must force CC to /not/ be precious variables; otherwise
2200 # the wrong, non-multilib-adjusted value will be used in multilibs.
2201 # As a side effect, we have to subst CFLAGS ourselves.
2205 ac_ext=c
2206 ac_cpp='$CPP $CPPFLAGS'
2207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2210 if test -n "$ac_tool_prefix"; then
2211 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2212 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2213 echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215 if test "${ac_cv_prog_CC+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218 if test -n "$CC"; then
2219 ac_cv_prog_CC="$CC" # Let the user override the test.
2220 else
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2224 IFS=$as_save_IFS
2225 test -z "$as_dir" && as_dir=.
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 break 2
2232 done
2233 done
2237 CC=$ac_cv_prog_CC
2238 if test -n "$CC"; then
2239 echo "$as_me:$LINENO: result: $CC" >&5
2240 echo "${ECHO_T}$CC" >&6
2241 else
2242 echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6
2247 if test -z "$ac_cv_prog_CC"; then
2248 ac_ct_CC=$CC
2249 # Extract the first word of "gcc", so it can be a program name with args.
2250 set dummy gcc; ac_word=$2
2251 echo "$as_me:$LINENO: checking for $ac_word" >&5
2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2253 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256 if test -n "$ac_ct_CC"; then
2257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2258 else
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266 ac_cv_prog_ac_ct_CC="gcc"
2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268 break 2
2270 done
2271 done
2275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2276 if test -n "$ac_ct_CC"; then
2277 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2278 echo "${ECHO_T}$ac_ct_CC" >&6
2279 else
2280 echo "$as_me:$LINENO: result: no" >&5
2281 echo "${ECHO_T}no" >&6
2284 CC=$ac_ct_CC
2285 else
2286 CC="$ac_cv_prog_CC"
2289 if test -z "$CC"; then
2290 if test -n "$ac_tool_prefix"; then
2291 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2292 set dummy ${ac_tool_prefix}cc; ac_word=$2
2293 echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2295 if test "${ac_cv_prog_CC+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298 if test -n "$CC"; then
2299 ac_cv_prog_CC="$CC" # Let the user override the test.
2300 else
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2304 IFS=$as_save_IFS
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308 ac_cv_prog_CC="${ac_tool_prefix}cc"
2309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 break 2
2312 done
2313 done
2317 CC=$ac_cv_prog_CC
2318 if test -n "$CC"; then
2319 echo "$as_me:$LINENO: result: $CC" >&5
2320 echo "${ECHO_T}$CC" >&6
2321 else
2322 echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6
2327 if test -z "$ac_cv_prog_CC"; then
2328 ac_ct_CC=$CC
2329 # Extract the first word of "cc", so it can be a program name with args.
2330 set dummy cc; ac_word=$2
2331 echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336 if test -n "$ac_ct_CC"; then
2337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2338 else
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2342 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346 ac_cv_prog_ac_ct_CC="cc"
2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 break 2
2350 done
2351 done
2355 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2356 if test -n "$ac_ct_CC"; then
2357 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2358 echo "${ECHO_T}$ac_ct_CC" >&6
2359 else
2360 echo "$as_me:$LINENO: result: no" >&5
2361 echo "${ECHO_T}no" >&6
2364 CC=$ac_ct_CC
2365 else
2366 CC="$ac_cv_prog_CC"
2370 if test -z "$CC"; then
2371 # Extract the first word of "cc", so it can be a program name with args.
2372 set dummy cc; ac_word=$2
2373 echo "$as_me:$LINENO: checking for $ac_word" >&5
2374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2375 if test "${ac_cv_prog_CC+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378 if test -n "$CC"; then
2379 ac_cv_prog_CC="$CC" # Let the user override the test.
2380 else
2381 ac_prog_rejected=no
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2389 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2390 ac_prog_rejected=yes
2391 continue
2393 ac_cv_prog_CC="cc"
2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 break 2
2397 done
2398 done
2400 if test $ac_prog_rejected = yes; then
2401 # We found a bogon in the path, so make sure we never use it.
2402 set dummy $ac_cv_prog_CC
2403 shift
2404 if test $# != 0; then
2405 # We chose a different compiler from the bogus one.
2406 # However, it has the same basename, so the bogon will be chosen
2407 # first if we set CC to just the basename; use the full file name.
2408 shift
2409 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2414 CC=$ac_cv_prog_CC
2415 if test -n "$CC"; then
2416 echo "$as_me:$LINENO: result: $CC" >&5
2417 echo "${ECHO_T}$CC" >&6
2418 else
2419 echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2424 if test -z "$CC"; then
2425 if test -n "$ac_tool_prefix"; then
2426 for ac_prog in cl
2428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2429 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2430 echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2432 if test "${ac_cv_prog_CC+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 else
2435 if test -n "$CC"; then
2436 ac_cv_prog_CC="$CC" # Let the user override the test.
2437 else
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 for as_dir in $PATH
2441 IFS=$as_save_IFS
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2445 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 break 2
2449 done
2450 done
2454 CC=$ac_cv_prog_CC
2455 if test -n "$CC"; then
2456 echo "$as_me:$LINENO: result: $CC" >&5
2457 echo "${ECHO_T}$CC" >&6
2458 else
2459 echo "$as_me:$LINENO: result: no" >&5
2460 echo "${ECHO_T}no" >&6
2463 test -n "$CC" && break
2464 done
2466 if test -z "$CC"; then
2467 ac_ct_CC=$CC
2468 for ac_prog in cl
2470 # Extract the first word of "$ac_prog", so it can be a program name with args.
2471 set dummy $ac_prog; ac_word=$2
2472 echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477 if test -n "$ac_ct_CC"; then
2478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487 ac_cv_prog_ac_ct_CC="$ac_prog"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2491 done
2492 done
2496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2497 if test -n "$ac_ct_CC"; then
2498 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2499 echo "${ECHO_T}$ac_ct_CC" >&6
2500 else
2501 echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6
2505 test -n "$ac_ct_CC" && break
2506 done
2508 CC=$ac_ct_CC
2514 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2515 See \`config.log' for more details." >&5
2516 echo "$as_me: error: no acceptable C compiler found in \$PATH
2517 See \`config.log' for more details." >&2;}
2518 { (exit 1); exit 1; }; }
2520 # Provide some information about the compiler.
2521 echo "$as_me:$LINENO:" \
2522 "checking for C compiler version" >&5
2523 ac_compiler=`set X $ac_compile; echo $2`
2524 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2525 (eval $ac_compiler --version </dev/null >&5) 2>&5
2526 ac_status=$?
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }
2529 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2530 (eval $ac_compiler -v </dev/null >&5) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }
2534 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2535 (eval $ac_compiler -V </dev/null >&5) 2>&5
2536 ac_status=$?
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }
2540 cat >conftest.$ac_ext <<_ACEOF
2541 /* confdefs.h. */
2542 _ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2548 main ()
2552 return 0;
2554 _ACEOF
2555 ac_clean_files_save=$ac_clean_files
2556 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2557 # Try to create an executable without -o first, disregard a.out.
2558 # It will help us diagnose broken compilers, and finding out an intuition
2559 # of exeext.
2560 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2561 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2562 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2563 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2564 (eval $ac_link_default) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; then
2568 # Find the output, starting from the most likely. This scheme is
2569 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2570 # resort.
2572 # Be careful to initialize this variable, since it used to be cached.
2573 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2574 ac_cv_exeext=
2575 # b.out is created by i960 compilers.
2576 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2578 test -f "$ac_file" || continue
2579 case $ac_file in
2580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2582 conftest.$ac_ext )
2583 # This is the source file.
2585 [ab].out )
2586 # We found the default executable, but exeext='' is most
2587 # certainly right.
2588 break;;
2589 *.* )
2590 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2591 # FIXME: I believe we export ac_cv_exeext for Libtool,
2592 # but it would be cool to find out if it's true. Does anybody
2593 # maintain Libtool? --akim.
2594 export ac_cv_exeext
2595 break;;
2597 break;;
2598 esac
2599 done
2600 else
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2604 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2605 See \`config.log' for more details." >&5
2606 echo "$as_me: error: C compiler cannot create executables
2607 See \`config.log' for more details." >&2;}
2608 { (exit 77); exit 77; }; }
2611 ac_exeext=$ac_cv_exeext
2612 echo "$as_me:$LINENO: result: $ac_file" >&5
2613 echo "${ECHO_T}$ac_file" >&6
2615 # Check the compiler produces executables we can run. If not, either
2616 # the compiler is broken, or we cross compile.
2617 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2618 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2619 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2620 # If not cross compiling, check that we can run a simple program.
2621 if test "$cross_compiling" != yes; then
2622 if { ac_try='./$ac_file'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 (eval $ac_try) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2628 cross_compiling=no
2629 else
2630 if test "$cross_compiling" = maybe; then
2631 cross_compiling=yes
2632 else
2633 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2634 If you meant to cross compile, use \`--host'.
2635 See \`config.log' for more details." >&5
2636 echo "$as_me: error: cannot run C compiled programs.
2637 If you meant to cross compile, use \`--host'.
2638 See \`config.log' for more details." >&2;}
2639 { (exit 1); exit 1; }; }
2643 echo "$as_me:$LINENO: result: yes" >&5
2644 echo "${ECHO_T}yes" >&6
2646 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2647 ac_clean_files=$ac_clean_files_save
2648 # Check the compiler produces executables we can run. If not, either
2649 # the compiler is broken, or we cross compile.
2650 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2651 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2652 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2653 echo "${ECHO_T}$cross_compiling" >&6
2655 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2656 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2658 (eval $ac_link) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; then
2662 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2663 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2664 # work properly (i.e., refer to `conftest.exe'), while it won't with
2665 # `rm'.
2666 for ac_file in conftest.exe conftest conftest.*; do
2667 test -f "$ac_file" || continue
2668 case $ac_file in
2669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2670 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2671 export ac_cv_exeext
2672 break;;
2673 * ) break;;
2674 esac
2675 done
2676 else
2677 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2678 See \`config.log' for more details." >&5
2679 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2680 See \`config.log' for more details." >&2;}
2681 { (exit 1); exit 1; }; }
2684 rm -f conftest$ac_cv_exeext
2685 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2686 echo "${ECHO_T}$ac_cv_exeext" >&6
2688 rm -f conftest.$ac_ext
2689 EXEEXT=$ac_cv_exeext
2690 ac_exeext=$EXEEXT
2691 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2692 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2693 if test "${ac_cv_objext+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2695 else
2696 cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h. */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2704 main ()
2708 return 0;
2710 _ACEOF
2711 rm -f conftest.o conftest.obj
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713 (eval $ac_compile) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; then
2717 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2718 case $ac_file in
2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2720 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2721 break;;
2722 esac
2723 done
2724 else
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2728 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2729 See \`config.log' for more details." >&5
2730 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2731 See \`config.log' for more details." >&2;}
2732 { (exit 1); exit 1; }; }
2735 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2737 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2738 echo "${ECHO_T}$ac_cv_objext" >&6
2739 OBJEXT=$ac_cv_objext
2740 ac_objext=$OBJEXT
2741 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2742 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2743 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746 cat >conftest.$ac_ext <<_ACEOF
2747 /* confdefs.h. */
2748 _ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2754 main ()
2756 #ifndef __GNUC__
2757 choke me
2758 #endif
2761 return 0;
2763 _ACEOF
2764 rm -f conftest.$ac_objext
2765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>conftest.er1
2767 ac_status=$?
2768 grep -v '^ *+' conftest.er1 >conftest.err
2769 rm -f conftest.er1
2770 cat conftest.err >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } &&
2773 { ac_try='test -z "$ac_c_werror_flag"
2774 || test ! -s conftest.err'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 (eval $ac_try) 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; } &&
2780 { ac_try='test -s conftest.$ac_objext'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 (eval $ac_try) 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2786 ac_compiler_gnu=yes
2787 else
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2791 ac_compiler_gnu=no
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2797 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2798 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2799 GCC=`test $ac_compiler_gnu = yes && echo yes`
2800 ac_test_CFLAGS=${CFLAGS+set}
2801 ac_save_CFLAGS=$CFLAGS
2802 CFLAGS="-g"
2803 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2804 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2805 if test "${ac_cv_prog_cc_g+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808 cat >conftest.$ac_ext <<_ACEOF
2809 /* confdefs.h. */
2810 _ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2816 main ()
2820 return 0;
2822 _ACEOF
2823 rm -f conftest.$ac_objext
2824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825 (eval $ac_compile) 2>conftest.er1
2826 ac_status=$?
2827 grep -v '^ *+' conftest.er1 >conftest.err
2828 rm -f conftest.er1
2829 cat conftest.err >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } &&
2832 { ac_try='test -z "$ac_c_werror_flag"
2833 || test ! -s conftest.err'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; } &&
2839 { ac_try='test -s conftest.$ac_objext'
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 (eval $ac_try) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; }; then
2845 ac_cv_prog_cc_g=yes
2846 else
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2850 ac_cv_prog_cc_g=no
2852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2854 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2855 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2856 if test "$ac_test_CFLAGS" = set; then
2857 CFLAGS=$ac_save_CFLAGS
2858 elif test $ac_cv_prog_cc_g = yes; then
2859 if test "$GCC" = yes; then
2860 CFLAGS="-g -O2"
2861 else
2862 CFLAGS="-g"
2864 else
2865 if test "$GCC" = yes; then
2866 CFLAGS="-O2"
2867 else
2868 CFLAGS=
2871 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2872 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2873 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876 ac_cv_prog_cc_stdc=no
2877 ac_save_CC=$CC
2878 cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h. */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2884 #include <stdarg.h>
2885 #include <stdio.h>
2886 #include <sys/types.h>
2887 #include <sys/stat.h>
2888 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2889 struct buf { int x; };
2890 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2891 static char *e (p, i)
2892 char **p;
2893 int i;
2895 return p[i];
2897 static char *f (char * (*g) (char **, int), char **p, ...)
2899 char *s;
2900 va_list v;
2901 va_start (v,p);
2902 s = g (p, va_arg (v,int));
2903 va_end (v);
2904 return s;
2907 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2908 function prototypes and stuff, but not '\xHH' hex character constants.
2909 These don't provoke an error unfortunately, instead are silently treated
2910 as 'x'. The following induces an error, until -std1 is added to get
2911 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2912 array size at least. It's necessary to write '\x00'==0 to get something
2913 that's true only with -std1. */
2914 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2916 int test (int i, double x);
2917 struct s1 {int (*f) (int a);};
2918 struct s2 {int (*f) (double a);};
2919 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2920 int argc;
2921 char **argv;
2923 main ()
2925 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2927 return 0;
2929 _ACEOF
2930 # Don't try gcc -ansi; that turns off useful extensions and
2931 # breaks some systems' header files.
2932 # AIX -qlanglvl=ansi
2933 # Ultrix and OSF/1 -std1
2934 # HP-UX 10.20 and later -Ae
2935 # HP-UX older versions -Aa -D_HPUX_SOURCE
2936 # SVR4 -Xc -D__EXTENSIONS__
2937 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2939 CC="$ac_save_CC $ac_arg"
2940 rm -f conftest.$ac_objext
2941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2942 (eval $ac_compile) 2>conftest.er1
2943 ac_status=$?
2944 grep -v '^ *+' conftest.er1 >conftest.err
2945 rm -f conftest.er1
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -z "$ac_c_werror_flag"
2950 || test ! -s conftest.err'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; } &&
2956 { ac_try='test -s conftest.$ac_objext'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 (eval $ac_try) 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; }; then
2962 ac_cv_prog_cc_stdc=$ac_arg
2963 break
2964 else
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2969 rm -f conftest.err conftest.$ac_objext
2970 done
2971 rm -f conftest.$ac_ext conftest.$ac_objext
2972 CC=$ac_save_CC
2976 case "x$ac_cv_prog_cc_stdc" in
2977 x|xno)
2978 echo "$as_me:$LINENO: result: none needed" >&5
2979 echo "${ECHO_T}none needed" >&6 ;;
2981 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2982 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2983 CC="$CC $ac_cv_prog_cc_stdc" ;;
2984 esac
2986 # Some people use a C++ compiler to compile C. Since we use `exit',
2987 # in C++ we need to declare it. In case someone uses the same compiler
2988 # for both compiling C and C++ we need to have the C++ compiler decide
2989 # the declaration of exit, since it's the most demanding environment.
2990 cat >conftest.$ac_ext <<_ACEOF
2991 #ifndef __cplusplus
2992 choke me
2993 #endif
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2997 (eval $ac_compile) 2>conftest.er1
2998 ac_status=$?
2999 grep -v '^ *+' conftest.er1 >conftest.err
3000 rm -f conftest.er1
3001 cat conftest.err >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } &&
3004 { ac_try='test -z "$ac_c_werror_flag"
3005 || test ! -s conftest.err'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 (eval $ac_try) 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 (eval $ac_try) 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 for ac_declaration in \
3018 '' \
3019 'extern "C" void std::exit (int) throw (); using std::exit;' \
3020 'extern "C" void std::exit (int); using std::exit;' \
3021 'extern "C" void exit (int) throw ();' \
3022 'extern "C" void exit (int);' \
3023 'void exit (int);'
3025 cat >conftest.$ac_ext <<_ACEOF
3026 /* confdefs.h. */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3031 $ac_declaration
3032 #include <stdlib.h>
3034 main ()
3036 exit (42);
3038 return 0;
3040 _ACEOF
3041 rm -f conftest.$ac_objext
3042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3043 (eval $ac_compile) 2>conftest.er1
3044 ac_status=$?
3045 grep -v '^ *+' conftest.er1 >conftest.err
3046 rm -f conftest.er1
3047 cat conftest.err >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 { ac_try='test -z "$ac_c_werror_flag"
3051 || test ! -s conftest.err'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 (eval $ac_try) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; } &&
3057 { ac_try='test -s conftest.$ac_objext'
3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059 (eval $ac_try) 2>&5
3060 ac_status=$?
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3064 else
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3068 continue
3070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3071 cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h. */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3077 $ac_declaration
3079 main ()
3081 exit (42);
3083 return 0;
3085 _ACEOF
3086 rm -f conftest.$ac_objext
3087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3088 (eval $ac_compile) 2>conftest.er1
3089 ac_status=$?
3090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } &&
3095 { ac_try='test -z "$ac_c_werror_flag"
3096 || test ! -s conftest.err'
3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098 (eval $ac_try) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; } &&
3102 { ac_try='test -s conftest.$ac_objext'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 (eval $ac_try) 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3108 break
3109 else
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3115 done
3116 rm -f conftest*
3117 if test -n "$ac_declaration"; then
3118 echo '#ifdef __cplusplus' >>confdefs.h
3119 echo $ac_declaration >>confdefs.h
3120 echo '#endif' >>confdefs.h
3123 else
3124 echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3129 ac_ext=c
3130 ac_cpp='$CPP $CPPFLAGS'
3131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134 DEPDIR="${am__leading_dot}deps"
3136 ac_config_commands="$ac_config_commands depfiles"
3139 am_make=${MAKE-make}
3140 cat > confinc << 'END'
3141 am__doit:
3142 @echo done
3143 .PHONY: am__doit
3145 # If we don't find an include directive, just comment out the code.
3146 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3147 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3148 am__include="#"
3149 am__quote=
3150 _am_result=none
3151 # First try GNU make style include.
3152 echo "include confinc" > confmf
3153 # We grep out `Entering directory' and `Leaving directory'
3154 # messages which can occur if `w' ends up in MAKEFLAGS.
3155 # In particular we don't look at `^make:' because GNU make might
3156 # be invoked under some other name (usually "gmake"), in which
3157 # case it prints its new name instead of `make'.
3158 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3159 am__include=include
3160 am__quote=
3161 _am_result=GNU
3163 # Now try BSD make style include.
3164 if test "$am__include" = "#"; then
3165 echo '.include "confinc"' > confmf
3166 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3167 am__include=.include
3168 am__quote="\""
3169 _am_result=BSD
3174 echo "$as_me:$LINENO: result: $_am_result" >&5
3175 echo "${ECHO_T}$_am_result" >&6
3176 rm -f confinc confmf
3178 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3179 if test "${enable_dependency_tracking+set}" = set; then
3180 enableval="$enable_dependency_tracking"
3183 if test "x$enable_dependency_tracking" != xno; then
3184 am_depcomp="$ac_aux_dir/depcomp"
3185 AMDEPBACKSLASH='\'
3189 if test "x$enable_dependency_tracking" != xno; then
3190 AMDEP_TRUE=
3191 AMDEP_FALSE='#'
3192 else
3193 AMDEP_TRUE='#'
3194 AMDEP_FALSE=
3200 depcc="$CC" am_compiler_list=
3202 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3203 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3204 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3208 # We make a subdir and do the tests there. Otherwise we can end up
3209 # making bogus files that we don't know about and never remove. For
3210 # instance it was reported that on HP-UX the gcc test will end up
3211 # making a dummy file named `D' -- because `-MD' means `put the output
3212 # in D'.
3213 mkdir conftest.dir
3214 # Copy depcomp to subdir because otherwise we won't find it if we're
3215 # using a relative directory.
3216 cp "$am_depcomp" conftest.dir
3217 cd conftest.dir
3218 # We will build objects and dependencies in a subdirectory because
3219 # it helps to detect inapplicable dependency modes. For instance
3220 # both Tru64's cc and ICC support -MD to output dependencies as a
3221 # side effect of compilation, but ICC will put the dependencies in
3222 # the current directory while Tru64 will put them in the object
3223 # directory.
3224 mkdir sub
3226 am_cv_CC_dependencies_compiler_type=none
3227 if test "$am_compiler_list" = ""; then
3228 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3230 for depmode in $am_compiler_list; do
3231 # Setup a source with many dependencies, because some compilers
3232 # like to wrap large dependency lists on column 80 (with \), and
3233 # we should not choose a depcomp mode which is confused by this.
3235 # We need to recreate these files for each test, as the compiler may
3236 # overwrite some of them when testing with obscure command lines.
3237 # This happens at least with the AIX C compiler.
3238 : > sub/conftest.c
3239 for i in 1 2 3 4 5 6; do
3240 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3241 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3242 # Solaris 8's {/usr,}/bin/sh.
3243 touch sub/conftst$i.h
3244 done
3245 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3247 case $depmode in
3248 nosideeffect)
3249 # after this tag, mechanisms are not by side-effect, so they'll
3250 # only be used when explicitly requested
3251 if test "x$enable_dependency_tracking" = xyes; then
3252 continue
3253 else
3254 break
3257 none) break ;;
3258 esac
3259 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3260 # mode. It turns out that the SunPro C++ compiler does not properly
3261 # handle `-M -o', and we need to detect this.
3262 if depmode=$depmode \
3263 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3264 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3265 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3266 >/dev/null 2>conftest.err &&
3267 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3268 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3269 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3270 # icc doesn't choke on unknown options, it will just issue warnings
3271 # or remarks (even with -Werror). So we grep stderr for any message
3272 # that says an option was ignored or not supported.
3273 # When given -MP, icc 7.0 and 7.1 complain thusly:
3274 # icc: Command line warning: ignoring option '-M'; no argument required
3275 # The diagnosis changed in icc 8.0:
3276 # icc: Command line remark: option '-MP' not supported
3277 if (grep 'ignoring option' conftest.err ||
3278 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3279 am_cv_CC_dependencies_compiler_type=$depmode
3280 break
3283 done
3285 cd ..
3286 rm -rf conftest.dir
3287 else
3288 am_cv_CC_dependencies_compiler_type=none
3292 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3293 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3294 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3299 test "x$enable_dependency_tracking" != xno \
3300 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3301 am__fastdepCC_TRUE=
3302 am__fastdepCC_FALSE='#'
3303 else
3304 am__fastdepCC_TRUE='#'
3305 am__fastdepCC_FALSE=
3313 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3314 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
3315 # in both places for now and restore CFLAGS at the end of config.
3316 save_CFLAGS="$CFLAGS"
3318 # Add -Wall -Werror if we are using GCC.
3319 if test "x$GCC" = "xyes"; then
3320 XCFLAGS="$XCFLAGS -Wall -Werror"
3323 # Find other programs we need.
3324 if test -n "$ac_tool_prefix"; then
3325 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3326 set dummy ${ac_tool_prefix}ar; ac_word=$2
3327 echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3329 if test "${ac_cv_prog_AR+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332 if test -n "$AR"; then
3333 ac_cv_prog_AR="$AR" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3342 ac_cv_prog_AR="${ac_tool_prefix}ar"
3343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 break 2
3346 done
3347 done
3351 AR=$ac_cv_prog_AR
3352 if test -n "$AR"; then
3353 echo "$as_me:$LINENO: result: $AR" >&5
3354 echo "${ECHO_T}$AR" >&6
3355 else
3356 echo "$as_me:$LINENO: result: no" >&5
3357 echo "${ECHO_T}no" >&6
3361 if test -z "$ac_cv_prog_AR"; then
3362 ac_ct_AR=$AR
3363 # Extract the first word of "ar", so it can be a program name with args.
3364 set dummy ar; ac_word=$2
3365 echo "$as_me:$LINENO: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3367 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370 if test -n "$ac_ct_AR"; then
3371 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380 ac_cv_prog_ac_ct_AR="ar"
3381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3384 done
3385 done
3389 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3390 if test -n "$ac_ct_AR"; then
3391 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3392 echo "${ECHO_T}$ac_ct_AR" >&6
3393 else
3394 echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6
3398 AR=$ac_ct_AR
3399 else
3400 AR="$ac_cv_prog_AR"
3403 if test -n "$ac_tool_prefix"; then
3404 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3405 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3406 echo "$as_me:$LINENO: checking for $ac_word" >&5
3407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3408 if test "${ac_cv_prog_RANLIB+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 if test -n "$RANLIB"; then
3412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3425 done
3426 done
3430 RANLIB=$ac_cv_prog_RANLIB
3431 if test -n "$RANLIB"; then
3432 echo "$as_me:$LINENO: result: $RANLIB" >&5
3433 echo "${ECHO_T}$RANLIB" >&6
3434 else
3435 echo "$as_me:$LINENO: result: no" >&5
3436 echo "${ECHO_T}no" >&6
3440 if test -z "$ac_cv_prog_RANLIB"; then
3441 ac_ct_RANLIB=$RANLIB
3442 # Extract the first word of "ranlib", so it can be a program name with args.
3443 set dummy ranlib; ac_word=$2
3444 echo "$as_me:$LINENO: checking for $ac_word" >&5
3445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449 if test -n "$ac_ct_RANLIB"; then
3450 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3451 else
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3455 IFS=$as_save_IFS
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 ac_cv_prog_ac_ct_RANLIB="ranlib"
3460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 break 2
3463 done
3464 done
3466 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3469 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3470 if test -n "$ac_ct_RANLIB"; then
3471 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3472 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3473 else
3474 echo "$as_me:$LINENO: result: no" >&5
3475 echo "${ECHO_T}no" >&6
3478 RANLIB=$ac_ct_RANLIB
3479 else
3480 RANLIB="$ac_cv_prog_RANLIB"
3483 # Extract the first word of "perl", so it can be a program name with args.
3484 set dummy perl; ac_word=$2
3485 echo "$as_me:$LINENO: checking for $ac_word" >&5
3486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3487 if test "${ac_cv_path_PERL+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490 case $PERL in
3491 [\\/]* | ?:[\\/]*)
3492 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496 for as_dir in $PATH
3498 IFS=$as_save_IFS
3499 test -z "$as_dir" && as_dir=.
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3502 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3504 break 2
3506 done
3507 done
3509 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3511 esac
3513 PERL=$ac_cv_path_PERL
3515 if test -n "$PERL"; then
3516 echo "$as_me:$LINENO: result: $PERL" >&5
3517 echo "${ECHO_T}$PERL" >&6
3518 else
3519 echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6
3523 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3524 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3525 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3526 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529 cat >conftest.make <<\_ACEOF
3530 all:
3531 @echo 'ac_maketemp="$(MAKE)"'
3532 _ACEOF
3533 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3534 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3535 if test -n "$ac_maketemp"; then
3536 eval ac_cv_prog_make_${ac_make}_set=yes
3537 else
3538 eval ac_cv_prog_make_${ac_make}_set=no
3540 rm -f conftest.make
3542 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3543 echo "$as_me:$LINENO: result: yes" >&5
3544 echo "${ECHO_T}yes" >&6
3545 SET_MAKE=
3546 else
3547 echo "$as_me:$LINENO: result: no" >&5
3548 echo "${ECHO_T}no" >&6
3549 SET_MAKE="MAKE=${MAKE-make}"
3552 # Find a good install program. We prefer a C program (faster),
3553 # so one script is as good as another. But avoid the broken or
3554 # incompatible versions:
3555 # SysV /etc/install, /usr/sbin/install
3556 # SunOS /usr/etc/install
3557 # IRIX /sbin/install
3558 # AIX /bin/install
3559 # AmigaOS /C/install, which installs bootblocks on floppy discs
3560 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3563 # OS/2's system install, which has a completely different semantic
3564 # ./install, which can be erroneously created by make from ./install.sh.
3565 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3566 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3567 if test -z "$INSTALL"; then
3568 if test "${ac_cv_path_install+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
3576 # Account for people who put trailing slashes in PATH elements.
3577 case $as_dir/ in
3578 ./ | .// | /cC/* | \
3579 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3580 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3581 /usr/ucb/* ) ;;
3583 # OSF1 and SCO ODT 3.0 have their own names for install.
3584 # Don't use installbsd from OSF since it installs stuff as root
3585 # by default.
3586 for ac_prog in ginstall scoinst install; do
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3589 if test $ac_prog = install &&
3590 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3591 # AIX install. It has an incompatible calling convention.
3593 elif test $ac_prog = install &&
3594 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3595 # program-specific install script used by HP pwplus--don't use.
3597 else
3598 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3599 break 3
3602 done
3603 done
3605 esac
3606 done
3610 if test "${ac_cv_path_install+set}" = set; then
3611 INSTALL=$ac_cv_path_install
3612 else
3613 # As a last resort, use the slow shell script. We don't cache a
3614 # path for INSTALL within a source directory, because that will
3615 # break other packages using the cache if that directory is
3616 # removed, or if the path is relative.
3617 INSTALL=$ac_install_sh
3620 echo "$as_me:$LINENO: result: $INSTALL" >&5
3621 echo "${ECHO_T}$INSTALL" >&6
3623 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3624 # It thinks the first close brace ends the variable substitution.
3625 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3627 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3629 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3632 # See if makeinfo has been installed and is modern enough
3633 # that we can use it.
3635 # Extract the first word of "makeinfo", so it can be a program name with args.
3636 set dummy makeinfo; ac_word=$2
3637 echo "$as_me:$LINENO: checking for $ac_word" >&5
3638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3639 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 else
3642 if test -n "$MAKEINFO"; then
3643 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3644 else
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652 ac_cv_prog_MAKEINFO="makeinfo"
3653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 break 2
3656 done
3657 done
3661 MAKEINFO=$ac_cv_prog_MAKEINFO
3662 if test -n "$MAKEINFO"; then
3663 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3664 echo "${ECHO_T}$MAKEINFO" >&6
3665 else
3666 echo "$as_me:$LINENO: result: no" >&5
3667 echo "${ECHO_T}no" >&6
3670 if test -n "$MAKEINFO"; then
3671 # Found it, now check the version.
3672 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3673 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3674 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3678 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3680 case $ac_prog_version in
3681 '') gcc_cv_prog_makeinfo_modern=no;;
3682 4.[4-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3683 *) gcc_cv_prog_makeinfo_modern=no;;
3684 esac
3686 if test $gcc_cv_prog_makeinfo_modern = no; then
3687 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3691 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3692 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3693 else
3694 gcc_cv_prog_makeinfo_modern=no
3696 if test $gcc_cv_prog_makeinfo_modern = no; then
3697 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3702 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3703 BUILD_INFO_TRUE=
3704 BUILD_INFO_FALSE='#'
3705 else
3706 BUILD_INFO_TRUE='#'
3707 BUILD_INFO_FALSE=
3712 # Configure libtool
3715 macro_version='2.1a'
3716 macro_revision='1.2435'
3729 ltmain="$ac_aux_dir/ltmain.sh"
3731 # Set options
3733 enable_dlopen=no
3736 enable_win32_dll=no
3739 # Check whether --enable-shared or --disable-shared was given.
3740 if test "${enable_shared+set}" = set; then
3741 enableval="$enable_shared"
3742 p=${PACKAGE-default}
3743 case $enableval in
3744 yes) enable_shared=yes ;;
3745 no) enable_shared=no ;;
3747 enable_shared=no
3748 # Look at the argument we got. We use all the common list separators.
3749 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3750 for pkg in $enableval; do
3751 IFS="$lt_save_ifs"
3752 if test "X$pkg" = "X$p"; then
3753 enable_shared=yes
3755 done
3756 IFS="$lt_save_ifs"
3758 esac
3759 else
3760 enable_shared=yes
3770 # Check whether --enable-static or --disable-static was given.
3771 if test "${enable_static+set}" = set; then
3772 enableval="$enable_static"
3773 p=${PACKAGE-default}
3774 case $enableval in
3775 yes) enable_static=yes ;;
3776 no) enable_static=no ;;
3778 enable_static=no
3779 # Look at the argument we got. We use all the common list separators.
3780 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3781 for pkg in $enableval; do
3782 IFS="$lt_save_ifs"
3783 if test "X$pkg" = "X$p"; then
3784 enable_static=yes
3786 done
3787 IFS="$lt_save_ifs"
3789 esac
3790 else
3791 enable_static=yes
3802 # Check whether --with-pic or --without-pic was given.
3803 if test "${with_pic+set}" = set; then
3804 withval="$with_pic"
3805 pic_mode="$withval"
3806 else
3807 pic_mode=default
3810 test -z "$pic_mode" && pic_mode=default
3818 # Check whether --enable-fast-install or --disable-fast-install was given.
3819 if test "${enable_fast_install+set}" = set; then
3820 enableval="$enable_fast_install"
3821 p=${PACKAGE-default}
3822 case $enableval in
3823 yes) enable_fast_install=yes ;;
3824 no) enable_fast_install=no ;;
3826 enable_fast_install=no
3827 # Look at the argument we got. We use all the common list separators.
3828 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3829 for pkg in $enableval; do
3830 IFS="$lt_save_ifs"
3831 if test "X$pkg" = "X$p"; then
3832 enable_fast_install=yes
3834 done
3835 IFS="$lt_save_ifs"
3837 esac
3838 else
3839 enable_fast_install=yes
3849 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3850 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3851 if test "${lt_cv_path_SED+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854 # Loop through the user's path and test for sed and gsed.
3855 # Then use that list of sed's as ones to test for truncation.
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH
3859 IFS=$as_save_IFS
3860 test -z "$as_dir" && as_dir=.
3861 for lt_ac_prog in sed gsed; do
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3864 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3866 done
3867 done
3868 done
3869 IFS=$as_save_IFS
3870 lt_ac_max=0
3871 lt_ac_count=0
3872 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3873 # along with /bin/sed that truncates output.
3874 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3875 test ! -f $lt_ac_sed && continue
3876 cat /dev/null > conftest.in
3877 lt_ac_count=0
3878 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3879 # Check for GNU sed and select it if it is found.
3880 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3881 lt_cv_path_SED=$lt_ac_sed
3882 break
3884 while true; do
3885 cat conftest.in conftest.in >conftest.tmp
3886 mv conftest.tmp conftest.in
3887 cp conftest.in conftest.nl
3888 echo >>conftest.nl
3889 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3890 cmp -s conftest.out conftest.nl || break
3891 # 10000 chars as input seems more than enough
3892 test $lt_ac_count -gt 10 && break
3893 lt_ac_count=`expr $lt_ac_count + 1`
3894 if test $lt_ac_count -gt $lt_ac_max; then
3895 lt_ac_max=$lt_ac_count
3896 lt_cv_path_SED=$lt_ac_sed
3898 done
3899 done
3903 SED=$lt_cv_path_SED
3905 echo "$as_me:$LINENO: result: $SED" >&5
3906 echo "${ECHO_T}$SED" >&6
3908 test -z "$SED" && SED=sed
3909 Xsed="$SED -e 1s/^X//"
3921 echo "$as_me:$LINENO: checking for egrep" >&5
3922 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3923 if test "${ac_cv_prog_egrep+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3927 then ac_cv_prog_egrep='grep -E'
3928 else ac_cv_prog_egrep='egrep'
3931 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3932 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3933 EGREP=$ac_cv_prog_egrep
3936 echo "$as_me:$LINENO: checking for fgrep" >&5
3937 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3938 if test "${ac_cv_prog_fgrep+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3942 then ac_cv_prog_fgrep='grep -F'
3943 else ac_cv_prog_fgrep='fgrep'
3946 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3947 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3948 FGREP=$ac_cv_prog_fgrep
3951 test -z "$GREP" && GREP=grep
3971 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3972 if test "${with_gnu_ld+set}" = set; then
3973 withval="$with_gnu_ld"
3974 test "$withval" = no || with_gnu_ld=yes
3975 else
3976 with_gnu_ld=no
3978 ac_prog=ld
3979 if test "$GCC" = yes; then
3980 # Check if gcc -print-prog-name=ld gives a path.
3981 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3982 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3983 case $host in
3984 *-*-mingw*)
3985 # gcc leaves a trailing carriage return which upsets mingw
3986 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3988 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3989 esac
3990 case $ac_prog in
3991 # Accept absolute paths.
3992 [\\/]* | ?:[\\/]*)
3993 re_direlt='/[^/][^/]*/\.\./'
3994 # Canonicalize the pathname of ld
3995 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3996 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3997 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3998 done
3999 test -z "$LD" && LD="$ac_prog"
4002 # If it fails, then pretend we aren't using GCC.
4003 ac_prog=ld
4006 # If it is relative, then search for the first ld in PATH.
4007 with_gnu_ld=unknown
4009 esac
4010 elif test "$with_gnu_ld" = yes; then
4011 echo "$as_me:$LINENO: checking for GNU ld" >&5
4012 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4013 else
4014 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4015 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4017 if test "${lt_cv_path_LD+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020 if test -z "$LD"; then
4021 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4022 for ac_dir in $PATH; do
4023 IFS="$lt_save_ifs"
4024 test -z "$ac_dir" && ac_dir=.
4025 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4026 lt_cv_path_LD="$ac_dir/$ac_prog"
4027 # Check to see if the program is GNU ld. I'd rather use --version,
4028 # but apparently some variants of GNU ld only accept -v.
4029 # Break only if it was the GNU/non-GNU ld that we prefer.
4030 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4031 *GNU* | *'with BFD'*)
4032 test "$with_gnu_ld" != no && break
4035 test "$with_gnu_ld" != yes && break
4037 esac
4039 done
4040 IFS="$lt_save_ifs"
4041 else
4042 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4046 LD="$lt_cv_path_LD"
4047 if test -n "$LD"; then
4048 echo "$as_me:$LINENO: result: $LD" >&5
4049 echo "${ECHO_T}$LD" >&6
4050 else
4051 echo "$as_me:$LINENO: result: no" >&5
4052 echo "${ECHO_T}no" >&6
4054 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4055 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4056 { (exit 1); exit 1; }; }
4057 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4058 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4059 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4063 case `$LD -v 2>&1 </dev/null` in
4064 *GNU* | *'with BFD'*)
4065 lt_cv_prog_gnu_ld=yes
4068 lt_cv_prog_gnu_ld=no
4070 esac
4072 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4073 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4074 with_gnu_ld=$lt_cv_prog_gnu_ld
4085 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4086 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4087 if test "${lt_cv_path_NM+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090 if test -n "$NM"; then
4091 # Let the user override the test.
4092 lt_cv_path_NM="$NM"
4093 else
4094 lt_nm_to_check="${ac_tool_prefix}nm"
4095 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4096 lt_nm_to_check="$lt_nm_to_check nm"
4098 for lt_tmp_nm in $lt_nm_to_check; do
4099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4100 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4101 IFS="$lt_save_ifs"
4102 test -z "$ac_dir" && ac_dir=.
4103 tmp_nm="$ac_dir/$lt_tmp_nm"
4104 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4105 # Check to see if the nm accepts a BSD-compat flag.
4106 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4107 # nm: unknown option "B" ignored
4108 # Tru64's nm complains that /dev/null is an invalid object file
4109 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4110 */dev/null* | *'Invalid file or object type'*)
4111 lt_cv_path_NM="$tmp_nm -B"
4112 break
4115 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4116 */dev/null*)
4117 lt_cv_path_NM="$tmp_nm -p"
4118 break
4121 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4122 continue # so that we can try to find one that supports BSD flags
4124 esac
4126 esac
4128 done
4129 IFS="$lt_save_ifs"
4130 done
4131 : ${lt_cv_path_NM=no}
4134 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4135 echo "${ECHO_T}$lt_cv_path_NM" >&6
4136 if test "$lt_cv_path_NM" != "no"; then
4137 NM="$lt_cv_path_NM"
4138 else
4139 # Didn't find any BSD compatible name lister, look for dumpbin.
4140 if test -n "$ac_tool_prefix"; then
4141 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4145 echo "$as_me:$LINENO: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 if test -n "$DUMPBIN"; then
4151 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4152 else
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4160 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 break 2
4164 done
4165 done
4169 DUMPBIN=$ac_cv_prog_DUMPBIN
4170 if test -n "$DUMPBIN"; then
4171 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4172 echo "${ECHO_T}$DUMPBIN" >&6
4173 else
4174 echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4178 test -n "$DUMPBIN" && break
4179 done
4181 if test -z "$DUMPBIN"; then
4182 ac_ct_DUMPBIN=$DUMPBIN
4183 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4185 # Extract the first word of "$ac_prog", so it can be a program name with args.
4186 set dummy $ac_prog; ac_word=$2
4187 echo "$as_me:$LINENO: checking for $ac_word" >&5
4188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4189 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192 if test -n "$ac_ct_DUMPBIN"; then
4193 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4194 else
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH
4198 IFS=$as_save_IFS
4199 test -z "$as_dir" && as_dir=.
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4202 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 break 2
4206 done
4207 done
4211 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4212 if test -n "$ac_ct_DUMPBIN"; then
4213 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4214 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4215 else
4216 echo "$as_me:$LINENO: result: no" >&5
4217 echo "${ECHO_T}no" >&6
4220 test -n "$ac_ct_DUMPBIN" && break
4221 done
4222 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4224 DUMPBIN=$ac_ct_DUMPBIN
4228 if test "$DUMPBIN" != ":"; then
4229 NM="$DUMPBIN"
4232 test -z "$NM" && NM=nm
4239 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4240 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4241 if test "${lt_cv_nm_interface+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244 lt_cv_nm_interface="BSD nm"
4245 echo "int some_variable = 0;" > conftest.$ac_ext
4246 (eval echo "\"\$as_me:4246: $ac_compile\"" >&5)
4247 (eval "$ac_compile" 2>conftest.err)
4248 cat conftest.err >&5
4249 (eval echo "\"\$as_me:4249: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4250 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4251 cat conftest.err >&5
4252 (eval echo "\"\$as_me:4252: output\"" >&5)
4253 cat conftest.out >&5
4254 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4255 lt_cv_nm_interface="MS dumpbin"
4257 rm -f conftest*
4259 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4260 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4262 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4263 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4264 LN_S=$as_ln_s
4265 if test "$LN_S" = "ln -s"; then
4266 echo "$as_me:$LINENO: result: yes" >&5
4267 echo "${ECHO_T}yes" >&6
4268 else
4269 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4270 echo "${ECHO_T}no, using $LN_S" >&6
4273 # find the maximum length of command line arguments
4274 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4275 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4276 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4280 teststring="ABCD"
4282 case $build_os in
4283 msdosdjgpp*)
4284 # On DJGPP, this test can blow up pretty badly due to problems in libc
4285 # (any single argument exceeding 2000 bytes causes a buffer overrun
4286 # during glob expansion). Even if it were fixed, the result of this
4287 # check would be larger than it should be.
4288 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4291 gnu*)
4292 # Under GNU Hurd, this test is not required because there is
4293 # no limit to the length of command line arguments.
4294 # Libtool will interpret -1 as no limit whatsoever
4295 lt_cv_sys_max_cmd_len=-1;
4298 cygwin* | mingw*)
4299 # On Win9x/ME, this test blows up -- it succeeds, but takes
4300 # about 5 minutes as the teststring grows exponentially.
4301 # Worse, since 9x/ME are not pre-emptively multitasking,
4302 # you end up with a "frozen" computer, even though with patience
4303 # the test eventually succeeds (with a max line length of 256k).
4304 # Instead, let's just punt: use the minimum linelength reported by
4305 # all of the supported platforms: 8192 (on NT/2K/XP).
4306 lt_cv_sys_max_cmd_len=8192;
4309 amigaos*)
4310 # On AmigaOS with pdksh, this test takes hours, literally.
4311 # So we just punt and use a minimum line length of 8192.
4312 lt_cv_sys_max_cmd_len=8192;
4315 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4316 # This has been around since 386BSD, at least. Likely further.
4317 if test -x /sbin/sysctl; then
4318 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4319 elif test -x /usr/sbin/sysctl; then
4320 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4321 else
4322 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4324 # And add a safety zone
4325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4329 interix*)
4330 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4331 lt_cv_sys_max_cmd_len=196608
4334 osf*)
4335 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4336 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4337 # nice to cause kernel panics so lets avoid the loop below.
4338 # First set a reasonable default.
4339 lt_cv_sys_max_cmd_len=16384
4341 if test -x /sbin/sysconfig; then
4342 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4343 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4344 esac
4347 sco3.2v5*)
4348 lt_cv_sys_max_cmd_len=102400
4350 sysv5* | sco5v6* | sysv4.2uw2*)
4351 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4352 if test -n "$kargmax"; then
4353 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4354 else
4355 lt_cv_sys_max_cmd_len=32768
4359 # Make teststring a little bigger before we do anything with it.
4360 # a 1K string should be a reasonable start.
4361 for i in 1 2 3 4 5 6 7 8 ; do
4362 teststring=$teststring$teststring
4363 done
4364 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4365 # If test is not a shell built-in, we'll probably end up computing a
4366 # maximum length that is only half of the actual maximum length, but
4367 # we can't tell.
4368 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4369 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4370 test $i != 17 # 1/2 MB should be enough
4372 i=`expr $i + 1`
4373 teststring=$teststring$teststring
4374 done
4375 # Only check the string length outside the loop.
4376 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4377 teststring=
4378 # Add a significant safety factor because C++ compilers can tack on massive
4379 # amounts of additional arguments before passing them to the linker.
4380 # It appears as though 1/2 is a usable value.
4381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4383 esac
4387 if test -n $lt_cv_sys_max_cmd_len ; then
4388 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4389 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4390 else
4391 echo "$as_me:$LINENO: result: none" >&5
4392 echo "${ECHO_T}none" >&6
4394 max_cmd_len=$lt_cv_sys_max_cmd_len
4402 : ${CP="cp -f"}
4403 : ${MV="mv -f"}
4404 : ${RM="rm -f"}
4406 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4407 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4408 # Try some XSI features
4409 xsi_shell=no
4410 ( _lt_dummy="a/b/c"
4411 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4412 = c,a/b,, ) >/dev/null 2>&1 \
4413 && xsi_shell=yes
4414 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4415 echo "${ECHO_T}$xsi_shell" >&6
4418 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4419 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4420 lt_shell_append=no
4421 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4422 >/dev/null 2>&1 \
4423 && lt_shell_append=yes
4424 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4425 echo "${ECHO_T}$lt_shell_append" >&6
4428 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4429 lt_unset=unset
4430 else
4431 lt_unset=false
4438 # test EBCDIC or ASCII
4439 case `echo X|tr X '\101'` in
4440 A) # ASCII based system
4441 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4442 lt_SP2NL='tr \040 \012'
4443 lt_NL2SP='tr \015\012 \040\040'
4445 *) # EBCDIC based system
4446 lt_SP2NL='tr \100 \n'
4447 lt_NL2SP='tr \r\n \100\100'
4449 esac
4459 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4460 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4461 if test "${lt_cv_ld_reload_flag+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464 lt_cv_ld_reload_flag='-r'
4466 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4467 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4468 reload_flag=$lt_cv_ld_reload_flag
4469 case $reload_flag in
4470 "" | " "*) ;;
4471 *) reload_flag=" $reload_flag" ;;
4472 esac
4473 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4474 case $host_os in
4475 darwin*)
4476 if test "$GCC" = yes; then
4477 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4478 else
4479 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4482 esac
4493 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4494 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4495 if test "${lt_cv_deplibs_check_method+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498 lt_cv_file_magic_cmd='$MAGIC_CMD'
4499 lt_cv_file_magic_test_file=
4500 lt_cv_deplibs_check_method='unknown'
4501 # Need to set the preceding variable on all platforms that support
4502 # interlibrary dependencies.
4503 # 'none' -- dependencies not supported.
4504 # `unknown' -- same as none, but documents that we really don't know.
4505 # 'pass_all' -- all dependencies passed with no checks.
4506 # 'test_compile' -- check by making test program.
4507 # 'file_magic [[regex]]' -- check by looking for files in library path
4508 # which responds to the $file_magic_cmd with a given extended regex.
4509 # If you have `file' or equivalent on your system and you're not sure
4510 # whether `pass_all' will *always* work, you probably want this one.
4512 case $host_os in
4513 aix4* | aix5*)
4514 lt_cv_deplibs_check_method=pass_all
4517 beos*)
4518 lt_cv_deplibs_check_method=pass_all
4521 bsdi[45]*)
4522 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4523 lt_cv_file_magic_cmd='/usr/bin/file -L'
4524 lt_cv_file_magic_test_file=/shlib/libc.so
4527 cygwin*)
4528 # func_win32_libid is a shell function defined in ltmain.sh
4529 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4530 lt_cv_file_magic_cmd='func_win32_libid'
4533 mingw* | pw32*)
4534 # Base MSYS/MinGW do not provide the 'file' command needed by
4535 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4536 # unless we find 'file', for example because we are cross-compiling.
4537 if ( file / ) >/dev/null 2>&1; then
4538 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4539 lt_cv_file_magic_cmd='func_win32_libid'
4540 else
4541 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4542 lt_cv_file_magic_cmd='$OBJDUMP -f'
4546 darwin* | rhapsody*)
4547 lt_cv_deplibs_check_method=pass_all
4550 freebsd* | dragonfly*)
4551 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4552 case $host_cpu in
4553 i*86 )
4554 # Not sure whether the presence of OpenBSD here was a mistake.
4555 # Let's accept both of them until this is cleared up.
4556 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4557 lt_cv_file_magic_cmd=/usr/bin/file
4558 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4560 esac
4561 else
4562 lt_cv_deplibs_check_method=pass_all
4566 gnu*)
4567 lt_cv_deplibs_check_method=pass_all
4570 hpux10.20* | hpux11*)
4571 lt_cv_file_magic_cmd=/usr/bin/file
4572 case $host_cpu in
4573 ia64*)
4574 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4575 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4577 hppa*64*)
4578 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]'
4579 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4582 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4583 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4585 esac
4588 interix[3-9]*)
4589 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4593 irix5* | irix6* | nonstopux*)
4594 case $LD in
4595 *-32|*"-32 ") libmagic=32-bit;;
4596 *-n32|*"-n32 ") libmagic=N32;;
4597 *-64|*"-64 ") libmagic=64-bit;;
4598 *) libmagic=never-match;;
4599 esac
4600 lt_cv_deplibs_check_method=pass_all
4603 # This must be Linux ELF.
4604 linux* | k*bsd*-gnu)
4605 lt_cv_deplibs_check_method=pass_all
4608 netbsd*)
4609 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4611 else
4612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4616 newos6*)
4617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4618 lt_cv_file_magic_cmd=/usr/bin/file
4619 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4622 *nto* | *qnx*)
4623 lt_cv_deplibs_check_method=pass_all
4626 openbsd*)
4627 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4628 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4629 else
4630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4634 osf3* | osf4* | osf5*)
4635 lt_cv_deplibs_check_method=pass_all
4638 rdos*)
4639 lt_cv_deplibs_check_method=pass_all
4642 solaris*)
4643 lt_cv_deplibs_check_method=pass_all
4646 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4647 lt_cv_deplibs_check_method=pass_all
4650 sysv4 | sysv4.3*)
4651 case $host_vendor in
4652 motorola)
4653 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]'
4654 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4656 ncr)
4657 lt_cv_deplibs_check_method=pass_all
4659 sequent)
4660 lt_cv_file_magic_cmd='/bin/file'
4661 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4663 sni)
4664 lt_cv_file_magic_cmd='/bin/file'
4665 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4666 lt_cv_file_magic_test_file=/lib/libc.so
4668 siemens)
4669 lt_cv_deplibs_check_method=pass_all
4672 lt_cv_deplibs_check_method=pass_all
4674 esac
4677 tpf*)
4678 lt_cv_deplibs_check_method=pass_all
4680 esac
4683 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4684 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4685 file_magic_cmd=$lt_cv_file_magic_cmd
4686 deplibs_check_method=$lt_cv_deplibs_check_method
4687 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4700 if test -n "$ac_tool_prefix"; then
4701 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4702 set dummy ${ac_tool_prefix}ar; ac_word=$2
4703 echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4705 if test "${ac_cv_prog_AR+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708 if test -n "$AR"; then
4709 ac_cv_prog_AR="$AR" # Let the user override the test.
4710 else
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4718 ac_cv_prog_AR="${ac_tool_prefix}ar"
4719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 break 2
4722 done
4723 done
4727 AR=$ac_cv_prog_AR
4728 if test -n "$AR"; then
4729 echo "$as_me:$LINENO: result: $AR" >&5
4730 echo "${ECHO_T}$AR" >&6
4731 else
4732 echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6
4737 if test -z "$ac_cv_prog_AR"; then
4738 ac_ct_AR=$AR
4739 # Extract the first word of "ar", so it can be a program name with args.
4740 set dummy ar; ac_word=$2
4741 echo "$as_me:$LINENO: checking for $ac_word" >&5
4742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4743 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746 if test -n "$ac_ct_AR"; then
4747 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_prog_ac_ct_AR="ar"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4760 done
4761 done
4763 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4766 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4767 if test -n "$ac_ct_AR"; then
4768 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4769 echo "${ECHO_T}$ac_ct_AR" >&6
4770 else
4771 echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6
4775 AR=$ac_ct_AR
4776 else
4777 AR="$ac_cv_prog_AR"
4780 test -z "$AR" && AR=ar
4781 test -z "$AR_FLAGS" && AR_FLAGS=cru
4793 if test -n "$ac_tool_prefix"; then
4794 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4795 set dummy ${ac_tool_prefix}strip; ac_word=$2
4796 echo "$as_me:$LINENO: checking for $ac_word" >&5
4797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4798 if test "${ac_cv_prog_STRIP+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 else
4801 if test -n "$STRIP"; then
4802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4803 else
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4811 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4815 done
4816 done
4820 STRIP=$ac_cv_prog_STRIP
4821 if test -n "$STRIP"; then
4822 echo "$as_me:$LINENO: result: $STRIP" >&5
4823 echo "${ECHO_T}$STRIP" >&6
4824 else
4825 echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6
4830 if test -z "$ac_cv_prog_STRIP"; then
4831 ac_ct_STRIP=$STRIP
4832 # Extract the first word of "strip", so it can be a program name with args.
4833 set dummy strip; ac_word=$2
4834 echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4836 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839 if test -n "$ac_ct_STRIP"; then
4840 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4841 else
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849 ac_cv_prog_ac_ct_STRIP="strip"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4853 done
4854 done
4856 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4859 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4860 if test -n "$ac_ct_STRIP"; then
4861 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4862 echo "${ECHO_T}$ac_ct_STRIP" >&6
4863 else
4864 echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6
4868 STRIP=$ac_ct_STRIP
4869 else
4870 STRIP="$ac_cv_prog_STRIP"
4873 test -z "$STRIP" && STRIP=:
4880 if test -n "$ac_tool_prefix"; then
4881 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4882 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4883 echo "$as_me:$LINENO: checking for $ac_word" >&5
4884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4885 if test "${ac_cv_prog_RANLIB+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 else
4888 if test -n "$RANLIB"; then
4889 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4890 else
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4894 IFS=$as_save_IFS
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4898 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 break 2
4902 done
4903 done
4907 RANLIB=$ac_cv_prog_RANLIB
4908 if test -n "$RANLIB"; then
4909 echo "$as_me:$LINENO: result: $RANLIB" >&5
4910 echo "${ECHO_T}$RANLIB" >&6
4911 else
4912 echo "$as_me:$LINENO: result: no" >&5
4913 echo "${ECHO_T}no" >&6
4917 if test -z "$ac_cv_prog_RANLIB"; then
4918 ac_ct_RANLIB=$RANLIB
4919 # Extract the first word of "ranlib", so it can be a program name with args.
4920 set dummy ranlib; ac_word=$2
4921 echo "$as_me:$LINENO: checking for $ac_word" >&5
4922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4923 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926 if test -n "$ac_ct_RANLIB"; then
4927 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936 ac_cv_prog_ac_ct_RANLIB="ranlib"
4937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4940 done
4941 done
4943 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4946 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4947 if test -n "$ac_ct_RANLIB"; then
4948 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4949 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4950 else
4951 echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6
4955 RANLIB=$ac_ct_RANLIB
4956 else
4957 RANLIB="$ac_cv_prog_RANLIB"
4960 test -z "$RANLIB" && RANLIB=:
4967 # Determine commands to create old-style static archives.
4968 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4969 old_postinstall_cmds='chmod 644 $oldlib'
4970 old_postuninstall_cmds=
4972 if test -n "$RANLIB"; then
4973 case $host_os in
4974 openbsd*)
4975 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4978 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4980 esac
4981 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5017 # If no C compiler was specified, use CC.
5018 LTCC=${LTCC-"$CC"}
5020 # If no C compiler flags were specified, use CFLAGS.
5021 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5023 # Allow CC to be a program name with arguments.
5024 compiler=$CC
5027 # Check for command to grab the raw symbol name followed by C symbol from nm.
5028 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5029 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5030 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 else
5034 # These are sane defaults that work on at least a few old systems.
5035 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5037 # Character class describing NM global symbol codes.
5038 symcode='[BCDEGRST]'
5040 # Regexp to match symbols that can be accessed directly from C.
5041 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5043 # Define system-specific variables.
5044 case $host_os in
5045 aix*)
5046 symcode='[BCDT]'
5048 cygwin* | mingw* | pw32*)
5049 symcode='[ABCDGISTW]'
5051 hpux*)
5052 if test "$host_cpu" = ia64; then
5053 symcode='[ABCDEGRST]'
5056 irix* | nonstopux*)
5057 symcode='[BCDEGRST]'
5059 osf*)
5060 symcode='[BCDEGQRST]'
5062 solaris*)
5063 symcode='[BDRT]'
5065 sco3.2v5*)
5066 symcode='[DT]'
5068 sysv4.2uw2*)
5069 symcode='[DT]'
5071 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5072 symcode='[ABDT]'
5074 sysv4)
5075 symcode='[DFNSTU]'
5077 esac
5079 # If we're using GNU nm, then use its standard symbol codes.
5080 case `$NM -V 2>&1` in
5081 *GNU* | *'with BFD'*)
5082 symcode='[ABCDGIRSTW]' ;;
5083 esac
5085 # Transform an extracted symbol line into a proper C declaration.
5086 # Some systems (esp. on ia64) link data and code symbols differently,
5087 # so use this general approach.
5088 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5090 # Transform an extracted symbol line into symbol name and symbol address
5091 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5093 # Handle CRLF in mingw tool chain
5094 opt_cr=
5095 case $build_os in
5096 mingw*)
5097 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5099 esac
5101 # Try without a prefix underscore, then with it.
5102 for ac_symprfx in "" "_"; do
5104 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5105 symxfrm="\\1 $ac_symprfx\\2 \\2"
5107 # Write the raw and C identifiers.
5108 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5109 # Fake it for dumpbin and say T for any non-static function
5110 # and D for any global variable.
5111 # Also find C++ and __fastcall symbols from MSVC++,
5112 # which start with @ or ?.
5113 lt_cv_sys_global_symbol_pipe="$AWK '"\
5114 " {last_section=section; section=\$ 3};"\
5115 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5116 " \$ 0!~/External *\|/{next};"\
5117 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5118 " {if(hide[section]) next};"\
5119 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5120 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5121 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5122 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5123 " ' prfx=^$ac_symprfx"
5124 else
5125 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5128 # Check to see that the pipe works correctly.
5129 pipe_works=no
5131 rm -f conftest*
5132 cat > conftest.$ac_ext <<_LT_EOF
5133 #ifdef __cplusplus
5134 extern "C" {
5135 #endif
5136 char nm_test_var;
5137 void nm_test_func(void);
5138 void nm_test_func(void){}
5139 #ifdef __cplusplus
5141 #endif
5142 int main(){nm_test_var='a';nm_test_func();return(0);}
5143 _LT_EOF
5145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5146 (eval $ac_compile) 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; then
5150 # Now try to grab the symbols.
5151 nlist=conftest.nm
5152 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5153 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5154 ac_status=$?
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } && test -s "$nlist"; then
5157 # Try sorting and uniquifying the output.
5158 if sort "$nlist" | uniq > "$nlist"T; then
5159 mv -f "$nlist"T "$nlist"
5160 else
5161 rm -f "$nlist"T
5164 # Make sure that we snagged all the symbols we need.
5165 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5166 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5167 cat <<_LT_EOF > conftest.$ac_ext
5168 #ifdef __cplusplus
5169 extern "C" {
5170 #endif
5172 _LT_EOF
5173 # Now generate the symbol file.
5174 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5176 cat <<_LT_EOF >> conftest.$ac_ext
5178 /* The mapping between symbol names and symbols. */
5179 const struct {
5180 const char *name;
5181 void *address;
5183 lt__PROGRAM__LTX_preloaded_symbols[] =
5185 { "@PROGRAM@", (void *) 0 },
5186 _LT_EOF
5187 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5188 cat <<\_LT_EOF >> conftest.$ac_ext
5189 {0, (void *) 0}
5192 /* This works around a problem in FreeBSD linker */
5193 #ifdef FREEBSD_WORKAROUND
5194 static const void *lt_preloaded_setup() {
5195 return lt__PROGRAM__LTX_preloaded_symbols;
5197 #endif
5199 #ifdef __cplusplus
5201 #endif
5202 _LT_EOF
5203 # Now try linking the two files.
5204 mv conftest.$ac_objext conftstm.$ac_objext
5205 lt_save_LIBS="$LIBS"
5206 lt_save_CFLAGS="$CFLAGS"
5207 LIBS="conftstm.$ac_objext"
5208 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5210 (eval $ac_link) 2>&5
5211 ac_status=$?
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5214 pipe_works=yes
5216 LIBS="$lt_save_LIBS"
5217 CFLAGS="$lt_save_CFLAGS"
5218 else
5219 echo "cannot find nm_test_func in $nlist" >&5
5221 else
5222 echo "cannot find nm_test_var in $nlist" >&5
5224 else
5225 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5227 else
5228 echo "$progname: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5231 rm -f conftest* conftst*
5233 # Do not use the global_symbol_pipe unless it works.
5234 if test "$pipe_works" = yes; then
5235 break
5236 else
5237 lt_cv_sys_global_symbol_pipe=
5239 done
5243 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5244 lt_cv_sys_global_symbol_to_cdecl=
5246 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5247 echo "$as_me:$LINENO: result: failed" >&5
5248 echo "${ECHO_T}failed" >&6
5249 else
5250 echo "$as_me:$LINENO: result: ok" >&5
5251 echo "${ECHO_T}ok" >&6
5271 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5272 if test "${enable_libtool_lock+set}" = set; then
5273 enableval="$enable_libtool_lock"
5276 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5278 # Some flags need to be propagated to the compiler or linker for good
5279 # libtool support.
5280 case $host in
5281 ia64-*-hpux*)
5282 # Find out which ABI we are using.
5283 echo 'int i;' > conftest.$ac_ext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285 (eval $ac_compile) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; then
5289 case `/usr/bin/file conftest.$ac_objext` in
5290 *ELF-32*)
5291 HPUX_IA64_MODE="32"
5293 *ELF-64*)
5294 HPUX_IA64_MODE="64"
5296 esac
5298 rm -rf conftest*
5300 *-*-irix6*)
5301 # Find out which ABI we are using.
5302 echo '#line 5302 "configure"' > conftest.$ac_ext
5303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5304 (eval $ac_compile) 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; then
5308 if test "$lt_cv_prog_gnu_ld" = yes; then
5309 case `/usr/bin/file conftest.$ac_objext` in
5310 *32-bit*)
5311 LD="${LD-ld} -melf32bsmip"
5313 *N32*)
5314 LD="${LD-ld} -melf32bmipn32"
5316 *64-bit*)
5317 LD="${LD-ld} -melf64bmip"
5319 esac
5320 else
5321 case `/usr/bin/file conftest.$ac_objext` in
5322 *32-bit*)
5323 LD="${LD-ld} -32"
5325 *N32*)
5326 LD="${LD-ld} -n32"
5328 *64-bit*)
5329 LD="${LD-ld} -64"
5331 esac
5334 rm -rf conftest*
5337 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5338 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5339 # Find out which ABI we are using.
5340 echo 'int i;' > conftest.$ac_ext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342 (eval $ac_compile) 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; then
5346 case `/usr/bin/file conftest.o` in
5347 *32-bit*)
5348 case $host in
5349 x86_64-*kfreebsd*-gnu)
5350 LD="${LD-ld} -m elf_i386_fbsd"
5352 x86_64-*linux*)
5353 LD="${LD-ld} -m elf_i386"
5355 ppc64-*linux*|powerpc64-*linux*)
5356 LD="${LD-ld} -m elf32ppclinux"
5358 s390x-*linux*)
5359 LD="${LD-ld} -m elf_s390"
5361 sparc64-*linux*)
5362 LD="${LD-ld} -m elf32_sparc"
5364 esac
5366 *64-bit*)
5367 case $host in
5368 x86_64-*kfreebsd*-gnu)
5369 LD="${LD-ld} -m elf_x86_64_fbsd"
5371 x86_64-*linux*)
5372 LD="${LD-ld} -m elf_x86_64"
5374 ppc*-*linux*|powerpc*-*linux*)
5375 LD="${LD-ld} -m elf64ppc"
5377 s390*-*linux*|s390*-*tpf*)
5378 LD="${LD-ld} -m elf64_s390"
5380 sparc*-*linux*)
5381 LD="${LD-ld} -m elf64_sparc"
5383 esac
5385 esac
5387 rm -rf conftest*
5390 *-*-sco3.2v5*)
5391 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5392 SAVE_CFLAGS="$CFLAGS"
5393 CFLAGS="$CFLAGS -belf"
5394 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5395 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5396 if test "${lt_cv_cc_needs_belf+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399 ac_ext=c
5400 ac_cpp='$CPP $CPPFLAGS'
5401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5405 cat >conftest.$ac_ext <<_ACEOF
5406 /* confdefs.h. */
5407 _ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5413 main ()
5417 return 0;
5419 _ACEOF
5420 rm -f conftest.$ac_objext conftest$ac_exeext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5422 (eval $ac_link) 2>conftest.er1
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try='test -z "$ac_c_werror_flag"
5430 || test ! -s conftest.err'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 (eval $ac_try) 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; } &&
5436 { ac_try='test -s conftest$ac_exeext'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 (eval $ac_try) 2>&5
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
5442 lt_cv_cc_needs_belf=yes
5443 else
5444 echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5447 lt_cv_cc_needs_belf=no
5449 rm -f conftest.err conftest.$ac_objext \
5450 conftest$ac_exeext conftest.$ac_ext
5451 ac_ext=c
5452 ac_cpp='$CPP $CPPFLAGS'
5453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5458 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5459 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5460 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5461 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5462 CFLAGS="$SAVE_CFLAGS"
5465 sparc*-*solaris*)
5466 # Find out which ABI we are using.
5467 echo 'int i;' > conftest.$ac_ext
5468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5469 (eval $ac_compile) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; then
5473 case `/usr/bin/file conftest.o` in
5474 *64-bit*)
5475 case $lt_cv_prog_gnu_ld in
5476 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5477 *) LD="${LD-ld} -64" ;;
5478 esac
5480 esac
5482 rm -rf conftest*
5484 esac
5486 need_locks="$enable_libtool_lock"
5488 ac_ext=c
5489 ac_cpp='$CPP $CPPFLAGS'
5490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5493 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5494 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5495 # On Suns, sometimes $CPP names a directory.
5496 if test -n "$CPP" && test -d "$CPP"; then
5497 CPP=
5499 if test -z "$CPP"; then
5500 if test "${ac_cv_prog_CPP+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 else
5503 # Double quotes because CPP needs to be expanded
5504 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5506 ac_preproc_ok=false
5507 for ac_c_preproc_warn_flag in '' yes
5509 # Use a header file that comes with gcc, so configuring glibc
5510 # with a fresh cross-compiler works.
5511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5512 # <limits.h> exists even on freestanding compilers.
5513 # On the NeXT, cc -E runs the code through the compiler's parser,
5514 # not just through cpp. "Syntax error" is here to catch this case.
5515 cat >conftest.$ac_ext <<_ACEOF
5516 /* confdefs.h. */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5521 #ifdef __STDC__
5522 # include <limits.h>
5523 #else
5524 # include <assert.h>
5525 #endif
5526 Syntax error
5527 _ACEOF
5528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5530 ac_status=$?
5531 grep -v '^ *+' conftest.er1 >conftest.err
5532 rm -f conftest.er1
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } >/dev/null; then
5536 if test -s conftest.err; then
5537 ac_cpp_err=$ac_c_preproc_warn_flag
5538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5539 else
5540 ac_cpp_err=
5542 else
5543 ac_cpp_err=yes
5545 if test -z "$ac_cpp_err"; then
5547 else
5548 echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5551 # Broken: fails on valid input.
5552 continue
5554 rm -f conftest.err conftest.$ac_ext
5556 # OK, works on sane cases. Now check whether non-existent headers
5557 # can be detected and how.
5558 cat >conftest.$ac_ext <<_ACEOF
5559 /* confdefs.h. */
5560 _ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5564 #include <ac_nonexistent.h>
5565 _ACEOF
5566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5568 ac_status=$?
5569 grep -v '^ *+' conftest.er1 >conftest.err
5570 rm -f conftest.er1
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } >/dev/null; then
5574 if test -s conftest.err; then
5575 ac_cpp_err=$ac_c_preproc_warn_flag
5576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5577 else
5578 ac_cpp_err=
5580 else
5581 ac_cpp_err=yes
5583 if test -z "$ac_cpp_err"; then
5584 # Broken: success on invalid input.
5585 continue
5586 else
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5590 # Passes both tests.
5591 ac_preproc_ok=:
5592 break
5594 rm -f conftest.err conftest.$ac_ext
5596 done
5597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5598 rm -f conftest.err conftest.$ac_ext
5599 if $ac_preproc_ok; then
5600 break
5603 done
5604 ac_cv_prog_CPP=$CPP
5607 CPP=$ac_cv_prog_CPP
5608 else
5609 ac_cv_prog_CPP=$CPP
5611 echo "$as_me:$LINENO: result: $CPP" >&5
5612 echo "${ECHO_T}$CPP" >&6
5613 ac_preproc_ok=false
5614 for ac_c_preproc_warn_flag in '' yes
5616 # Use a header file that comes with gcc, so configuring glibc
5617 # with a fresh cross-compiler works.
5618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5619 # <limits.h> exists even on freestanding compilers.
5620 # On the NeXT, cc -E runs the code through the compiler's parser,
5621 # not just through cpp. "Syntax error" is here to catch this case.
5622 cat >conftest.$ac_ext <<_ACEOF
5623 /* confdefs.h. */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 #ifdef __STDC__
5629 # include <limits.h>
5630 #else
5631 # include <assert.h>
5632 #endif
5633 Syntax error
5634 _ACEOF
5635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5637 ac_status=$?
5638 grep -v '^ *+' conftest.er1 >conftest.err
5639 rm -f conftest.er1
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } >/dev/null; then
5643 if test -s conftest.err; then
5644 ac_cpp_err=$ac_c_preproc_warn_flag
5645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5646 else
5647 ac_cpp_err=
5649 else
5650 ac_cpp_err=yes
5652 if test -z "$ac_cpp_err"; then
5654 else
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5658 # Broken: fails on valid input.
5659 continue
5661 rm -f conftest.err conftest.$ac_ext
5663 # OK, works on sane cases. Now check whether non-existent headers
5664 # can be detected and how.
5665 cat >conftest.$ac_ext <<_ACEOF
5666 /* confdefs.h. */
5667 _ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5671 #include <ac_nonexistent.h>
5672 _ACEOF
5673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5675 ac_status=$?
5676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } >/dev/null; then
5681 if test -s conftest.err; then
5682 ac_cpp_err=$ac_c_preproc_warn_flag
5683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5684 else
5685 ac_cpp_err=
5687 else
5688 ac_cpp_err=yes
5690 if test -z "$ac_cpp_err"; then
5691 # Broken: success on invalid input.
5692 continue
5693 else
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5697 # Passes both tests.
5698 ac_preproc_ok=:
5699 break
5701 rm -f conftest.err conftest.$ac_ext
5703 done
5704 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5705 rm -f conftest.err conftest.$ac_ext
5706 if $ac_preproc_ok; then
5708 else
5709 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5710 See \`config.log' for more details." >&5
5711 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5712 See \`config.log' for more details." >&2;}
5713 { (exit 1); exit 1; }; }
5716 ac_ext=c
5717 ac_cpp='$CPP $CPPFLAGS'
5718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5723 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5724 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5725 if test "${ac_cv_header_stdc+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 else
5728 cat >conftest.$ac_ext <<_ACEOF
5729 /* confdefs.h. */
5730 _ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5734 #include <stdlib.h>
5735 #include <stdarg.h>
5736 #include <string.h>
5737 #include <float.h>
5740 main ()
5744 return 0;
5746 _ACEOF
5747 rm -f conftest.$ac_objext
5748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5749 (eval $ac_compile) 2>conftest.er1
5750 ac_status=$?
5751 grep -v '^ *+' conftest.er1 >conftest.err
5752 rm -f conftest.er1
5753 cat conftest.err >&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } &&
5756 { ac_try='test -z "$ac_c_werror_flag"
5757 || test ! -s conftest.err'
5758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759 (eval $ac_try) 2>&5
5760 ac_status=$?
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }; } &&
5763 { ac_try='test -s conftest.$ac_objext'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 (eval $ac_try) 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5769 ac_cv_header_stdc=yes
5770 else
5771 echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5774 ac_cv_header_stdc=no
5776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5778 if test $ac_cv_header_stdc = yes; then
5779 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5780 cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h. */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786 #include <string.h>
5788 _ACEOF
5789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5790 $EGREP "memchr" >/dev/null 2>&1; then
5792 else
5793 ac_cv_header_stdc=no
5795 rm -f conftest*
5799 if test $ac_cv_header_stdc = yes; then
5800 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5801 cat >conftest.$ac_ext <<_ACEOF
5802 /* confdefs.h. */
5803 _ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807 #include <stdlib.h>
5809 _ACEOF
5810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5811 $EGREP "free" >/dev/null 2>&1; then
5813 else
5814 ac_cv_header_stdc=no
5816 rm -f conftest*
5820 if test $ac_cv_header_stdc = yes; then
5821 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5822 if test "$cross_compiling" = yes; then
5824 else
5825 cat >conftest.$ac_ext <<_ACEOF
5826 /* confdefs.h. */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5831 #include <ctype.h>
5832 #if ((' ' & 0x0FF) == 0x020)
5833 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5834 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5835 #else
5836 # define ISLOWER(c) \
5837 (('a' <= (c) && (c) <= 'i') \
5838 || ('j' <= (c) && (c) <= 'r') \
5839 || ('s' <= (c) && (c) <= 'z'))
5840 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5841 #endif
5843 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5845 main ()
5847 int i;
5848 for (i = 0; i < 256; i++)
5849 if (XOR (islower (i), ISLOWER (i))
5850 || toupper (i) != TOUPPER (i))
5851 exit(2);
5852 exit (0);
5854 _ACEOF
5855 rm -f conftest$ac_exeext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5857 (eval $ac_link) 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 (eval $ac_try) 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; }; then
5867 else
5868 echo "$as_me: program exited with status $ac_status" >&5
5869 echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5872 ( exit $ac_status )
5873 ac_cv_header_stdc=no
5875 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5879 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5880 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5881 if test $ac_cv_header_stdc = yes; then
5883 cat >>confdefs.h <<\_ACEOF
5884 #define STDC_HEADERS 1
5885 _ACEOF
5889 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5899 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5900 inttypes.h stdint.h unistd.h
5902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5903 echo "$as_me:$LINENO: checking for $ac_header" >&5
5904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908 cat >conftest.$ac_ext <<_ACEOF
5909 /* confdefs.h. */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5914 $ac_includes_default
5916 #include <$ac_header>
5917 _ACEOF
5918 rm -f conftest.$ac_objext
5919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5920 (eval $ac_compile) 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try='test -z "$ac_c_werror_flag"
5928 || test ! -s conftest.err'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; } &&
5934 { ac_try='test -s conftest.$ac_objext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 eval "$as_ac_Header=yes"
5941 else
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 eval "$as_ac_Header=no"
5947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5952 cat >>confdefs.h <<_ACEOF
5953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5954 _ACEOF
5958 done
5962 for ac_header in dlfcn.h
5964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5965 echo "$as_me:$LINENO: checking for $ac_header" >&5
5966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970 cat >conftest.$ac_ext <<_ACEOF
5971 /* confdefs.h. */
5972 _ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5976 $ac_includes_default
5978 #include <$ac_header>
5979 _ACEOF
5980 rm -f conftest.$ac_objext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_c_werror_flag"
5990 || test ! -s conftest.err'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; } &&
5996 { ac_try='test -s conftest.$ac_objext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 (eval $ac_try) 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 eval "$as_ac_Header=yes"
6003 else
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 eval "$as_ac_Header=no"
6009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6014 cat >>confdefs.h <<_ACEOF
6015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6016 _ACEOF
6020 done
6024 # This can be used to rebuild libtool when needed
6025 LIBTOOL_DEPS="$ltmain"
6027 # Always use our own libtool.
6028 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6054 test -z "$LN_S" && LN_S="ln -s"
6069 if test -n "${ZSH_VERSION+set}" ; then
6070 setopt NO_GLOB_SUBST
6073 echo "$as_me:$LINENO: checking for objdir" >&5
6074 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6075 if test "${lt_cv_objdir+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078 rm -f .libs 2>/dev/null
6079 mkdir .libs 2>/dev/null
6080 if test -d .libs; then
6081 lt_cv_objdir=.libs
6082 else
6083 # MS-DOS does not allow filenames that begin with a dot.
6084 lt_cv_objdir=_libs
6086 rmdir .libs 2>/dev/null
6088 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6089 echo "${ECHO_T}$lt_cv_objdir" >&6
6090 objdir=$lt_cv_objdir
6096 cat >>confdefs.h <<_ACEOF
6097 #define LT_OBJDIR "$lt_cv_objdir/"
6098 _ACEOF
6116 case $host_os in
6117 aix3*)
6118 # AIX sometimes has problems with the GCC collect2 program. For some
6119 # reason, if we set the COLLECT_NAMES environment variable, the problems
6120 # vanish in a puff of smoke.
6121 if test "X${COLLECT_NAMES+set}" != Xset; then
6122 COLLECT_NAMES=
6123 export COLLECT_NAMES
6126 esac
6128 # Sed substitution that helps us do robust quoting. It backslashifies
6129 # metacharacters that are still active within double-quoted strings.
6130 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6132 # Same as above, but do not quote variable references.
6133 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6135 # Sed substitution to delay expansion of an escaped shell variable in a
6136 # double_quote_subst'ed string.
6137 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6139 # Sed substitution to delay expansion of an escaped single quote.
6140 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6142 # Sed substitution to avoid accidental globbing in evaled expressions
6143 no_glob_subst='s/\*/\\\*/g'
6145 # Global variables:
6146 ofile=libtool
6147 can_build_shared=yes
6149 # All known linkers require a `.a' archive for static linking (except MSVC,
6150 # which needs '.lib').
6151 libext=a
6153 with_gnu_ld="$lt_cv_prog_gnu_ld"
6155 old_CC="$CC"
6156 old_CFLAGS="$CFLAGS"
6158 # Set sane defaults for various variables
6159 test -z "$CC" && CC=cc
6160 test -z "$LTCC" && LTCC=$CC
6161 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6162 test -z "$LD" && LD=ld
6163 test -z "$ac_objext" && ac_objext=o
6165 for cc_temp in $compiler""; do
6166 case $cc_temp in
6167 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6168 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6169 \-*) ;;
6170 *) break;;
6171 esac
6172 done
6173 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6176 # Only perform the check for file, if the check method requires it
6177 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6178 case $deplibs_check_method in
6179 file_magic*)
6180 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6181 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6182 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6183 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186 case $MAGIC_CMD in
6187 [\\/*] | ?:[\\/]*)
6188 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6191 lt_save_MAGIC_CMD="$MAGIC_CMD"
6192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6193 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6194 for ac_dir in $ac_dummy; do
6195 IFS="$lt_save_ifs"
6196 test -z "$ac_dir" && ac_dir=.
6197 if test -f $ac_dir/${ac_tool_prefix}file; then
6198 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6199 if test -n "$file_magic_test_file"; then
6200 case $deplibs_check_method in
6201 "file_magic "*)
6202 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6204 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6205 $EGREP "$file_magic_regex" > /dev/null; then
6207 else
6208 cat <<_LT_EOF 1>&2
6210 *** Warning: the command libtool uses to detect shared libraries,
6211 *** $file_magic_cmd, produces output that libtool cannot recognize.
6212 *** The result is that libtool may fail to recognize shared libraries
6213 *** as such. This will affect the creation of libtool libraries that
6214 *** depend on shared libraries, but programs linked with such libtool
6215 *** libraries will work regardless of this problem. Nevertheless, you
6216 *** may want to report the problem to your system manager and/or to
6217 *** bug-libtool@gnu.org
6219 _LT_EOF
6220 fi ;;
6221 esac
6223 break
6225 done
6226 IFS="$lt_save_ifs"
6227 MAGIC_CMD="$lt_save_MAGIC_CMD"
6229 esac
6232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6233 if test -n "$MAGIC_CMD"; then
6234 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6235 echo "${ECHO_T}$MAGIC_CMD" >&6
6236 else
6237 echo "$as_me:$LINENO: result: no" >&5
6238 echo "${ECHO_T}no" >&6
6245 if test -z "$lt_cv_path_MAGIC_CMD"; then
6246 if test -n "$ac_tool_prefix"; then
6247 echo "$as_me:$LINENO: checking for file" >&5
6248 echo $ECHO_N "checking for file... $ECHO_C" >&6
6249 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252 case $MAGIC_CMD in
6253 [\\/*] | ?:[\\/]*)
6254 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6257 lt_save_MAGIC_CMD="$MAGIC_CMD"
6258 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6259 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6260 for ac_dir in $ac_dummy; do
6261 IFS="$lt_save_ifs"
6262 test -z "$ac_dir" && ac_dir=.
6263 if test -f $ac_dir/file; then
6264 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6265 if test -n "$file_magic_test_file"; then
6266 case $deplibs_check_method in
6267 "file_magic "*)
6268 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6270 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6271 $EGREP "$file_magic_regex" > /dev/null; then
6273 else
6274 cat <<_LT_EOF 1>&2
6276 *** Warning: the command libtool uses to detect shared libraries,
6277 *** $file_magic_cmd, produces output that libtool cannot recognize.
6278 *** The result is that libtool may fail to recognize shared libraries
6279 *** as such. This will affect the creation of libtool libraries that
6280 *** depend on shared libraries, but programs linked with such libtool
6281 *** libraries will work regardless of this problem. Nevertheless, you
6282 *** may want to report the problem to your system manager and/or to
6283 *** bug-libtool@gnu.org
6285 _LT_EOF
6286 fi ;;
6287 esac
6289 break
6291 done
6292 IFS="$lt_save_ifs"
6293 MAGIC_CMD="$lt_save_MAGIC_CMD"
6295 esac
6298 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6299 if test -n "$MAGIC_CMD"; then
6300 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6301 echo "${ECHO_T}$MAGIC_CMD" >&6
6302 else
6303 echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6
6308 else
6309 MAGIC_CMD=:
6315 esac
6317 # Use C for the default configuration in the libtool script
6319 lt_save_CC="$CC"
6320 ac_ext=c
6321 ac_cpp='$CPP $CPPFLAGS'
6322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6327 # Source file extension for C test sources.
6328 ac_ext=c
6330 # Object file extension for compiled C test sources.
6331 objext=o
6332 objext=$objext
6334 # Code to be used in simple compile tests
6335 lt_simple_compile_test_code="int some_variable = 0;"
6337 # Code to be used in simple link tests
6338 lt_simple_link_test_code='int main(){return(0);}'
6346 # If no C compiler was specified, use CC.
6347 LTCC=${LTCC-"$CC"}
6349 # If no C compiler flags were specified, use CFLAGS.
6350 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6352 # Allow CC to be a program name with arguments.
6353 compiler=$CC
6355 # Save the default compiler, since it gets overwritten when the other
6356 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6357 compiler_DEFAULT=$CC
6359 # save warnings/boilerplate of simple test code
6360 ac_outfile=conftest.$ac_objext
6361 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6362 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6363 _lt_compiler_boilerplate=`cat conftest.err`
6364 $RM conftest*
6366 ac_outfile=conftest.$ac_objext
6367 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6368 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6369 _lt_linker_boilerplate=`cat conftest.err`
6370 $RM conftest*
6373 ## CAVEAT EMPTOR:
6374 ## There is no encapsulation within the following macros, do not change
6375 ## the running order or otherwise move them around unless you know exactly
6376 ## what you are doing...
6377 if test -n "$compiler"; then
6379 lt_prog_compiler_no_builtin_flag=
6381 if test "$GCC" = yes; then
6382 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6384 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6385 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6386 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389 lt_cv_prog_compiler_rtti_exceptions=no
6390 ac_outfile=conftest.$ac_objext
6391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6392 lt_compiler_flag="-fno-rtti -fno-exceptions"
6393 # Insert the option either (1) after the last *FLAGS variable, or
6394 # (2) before a word containing "conftest.", or (3) at the end.
6395 # Note that $ac_compile itself does not contain backslashes and begins
6396 # with a dollar sign (not a hyphen), so the echo should work correctly.
6397 # The option is referenced via a variable to avoid confusing sed.
6398 lt_compile=`echo "$ac_compile" | $SED \
6399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6401 -e 's:$: $lt_compiler_flag:'`
6402 (eval echo "\"\$as_me:6402: $lt_compile\"" >&5)
6403 (eval "$lt_compile" 2>conftest.err)
6404 ac_status=$?
6405 cat conftest.err >&5
6406 echo "$as_me:6406: \$? = $ac_status" >&5
6407 if (exit $ac_status) && test -s "$ac_outfile"; then
6408 # The compiler can only warn and ignore the option if not recognized
6409 # So say no if there are warnings other than the usual output.
6410 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6412 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6413 lt_cv_prog_compiler_rtti_exceptions=yes
6416 $RM conftest*
6419 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6420 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6422 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6423 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6424 else
6435 lt_prog_compiler_wl=
6436 lt_prog_compiler_pic=
6437 lt_prog_compiler_static=
6439 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6440 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6442 if test "$GCC" = yes; then
6443 lt_prog_compiler_wl='-Wl,'
6444 lt_prog_compiler_static='-static'
6446 case $host_os in
6447 aix*)
6448 # All AIX code is PIC.
6449 if test "$host_cpu" = ia64; then
6450 # AIX 5 now supports IA64 processor
6451 lt_prog_compiler_static='-Bstatic'
6455 amigaos*)
6456 if test "$host_cpu" = m68k; then
6457 # FIXME: we need at least 68020 code to build shared libraries, but
6458 # adding the `-m68020' flag to GCC prevents building anything better,
6459 # like `-m68040'.
6460 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6464 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6465 # PIC is the default for these OSes.
6468 mingw* | cygwin* | pw32* | os2*)
6469 # This hack is so that the source file can tell whether it is being
6470 # built for inclusion in a dll (and should export symbols for example).
6471 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6472 # (--disable-auto-import) libraries
6473 lt_prog_compiler_pic='-DDLL_EXPORT'
6476 darwin* | rhapsody*)
6477 # PIC is the default on this platform
6478 # Common symbols not allowed in MH_DYLIB files
6479 lt_prog_compiler_pic='-fno-common'
6482 hpux*)
6483 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6484 # not for PA HP-UX.
6485 case $host_cpu in
6486 hppa*64*|ia64*)
6487 # +Z the default
6490 lt_prog_compiler_pic='-fPIC'
6492 esac
6495 interix[3-9]*)
6496 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6497 # Instead, we relocate shared libraries at runtime.
6500 msdosdjgpp*)
6501 # Just because we use GCC doesn't mean we suddenly get shared libraries
6502 # on systems that don't support them.
6503 lt_prog_compiler_can_build_shared=no
6504 enable_shared=no
6507 *nto* | *qnx*)
6508 # QNX uses GNU C++, but need to define -shared option too, otherwise
6509 # it will coredump.
6510 lt_prog_compiler_pic='-fPIC -shared'
6513 sysv4*MP*)
6514 if test -d /usr/nec; then
6515 lt_prog_compiler_pic=-Kconform_pic
6520 lt_prog_compiler_pic='-fPIC'
6522 esac
6523 else
6524 # PORTME Check for flag to pass linker flags through the system compiler.
6525 case $host_os in
6526 aix*)
6527 lt_prog_compiler_wl='-Wl,'
6528 if test "$host_cpu" = ia64; then
6529 # AIX 5 now supports IA64 processor
6530 lt_prog_compiler_static='-Bstatic'
6531 else
6532 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6535 darwin*)
6536 # PIC is the default on this platform
6537 # Common symbols not allowed in MH_DYLIB files
6538 case $cc_basename in
6539 xlc*)
6540 lt_prog_compiler_pic='-qnocommon'
6541 lt_prog_compiler_wl='-Wl,'
6543 esac
6546 mingw* | cygwin* | pw32* | os2*)
6547 # This hack is so that the source file can tell whether it is being
6548 # built for inclusion in a dll (and should export symbols for example).
6549 lt_prog_compiler_pic='-DDLL_EXPORT'
6552 hpux9* | hpux10* | hpux11*)
6553 lt_prog_compiler_wl='-Wl,'
6554 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6555 # not for PA HP-UX.
6556 case $host_cpu in
6557 hppa*64*|ia64*)
6558 # +Z the default
6561 lt_prog_compiler_pic='+Z'
6563 esac
6564 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6565 lt_prog_compiler_static='${wl}-a ${wl}archive'
6568 irix5* | irix6* | nonstopux*)
6569 lt_prog_compiler_wl='-Wl,'
6570 # PIC (with -KPIC) is the default.
6571 lt_prog_compiler_static='-non_shared'
6574 linux* | k*bsd*-gnu)
6575 case $cc_basename in
6576 icc* | ecc*)
6577 lt_prog_compiler_wl='-Wl,'
6578 lt_prog_compiler_pic='-KPIC'
6579 lt_prog_compiler_static='-static'
6581 pgcc* | pgf77* | pgf90* | pgf95*)
6582 # Portland Group compilers (*not* the Pentium gcc compiler,
6583 # which looks to be a dead project)
6584 lt_prog_compiler_wl='-Wl,'
6585 lt_prog_compiler_pic='-fpic'
6586 lt_prog_compiler_static='-Bstatic'
6588 ccc*)
6589 lt_prog_compiler_wl='-Wl,'
6590 # All Alpha code is PIC.
6591 lt_prog_compiler_static='-non_shared'
6594 case `$CC -V 2>&1 | sed 5q` in
6595 *Sun\ C*)
6596 # Sun C 5.9
6597 lt_prog_compiler_pic='-KPIC'
6598 lt_prog_compiler_static='-Bstatic'
6599 lt_prog_compiler_wl='-Wl,'
6601 *Sun\ F*)
6602 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6603 lt_prog_compiler_pic='-KPIC'
6604 lt_prog_compiler_static='-Bstatic'
6605 lt_prog_compiler_wl=''
6607 esac
6609 esac
6612 newsos6)
6613 lt_prog_compiler_pic='-KPIC'
6614 lt_prog_compiler_static='-Bstatic'
6617 *nto* | *qnx*)
6618 # QNX uses GNU C++, but need to define -shared option too, otherwise
6619 # it will coredump.
6620 lt_prog_compiler_pic='-fPIC -shared'
6623 osf3* | osf4* | osf5*)
6624 lt_prog_compiler_wl='-Wl,'
6625 # All OSF/1 code is PIC.
6626 lt_prog_compiler_static='-non_shared'
6629 rdos*)
6630 lt_prog_compiler_static='-non_shared'
6633 solaris*)
6634 lt_prog_compiler_pic='-KPIC'
6635 lt_prog_compiler_static='-Bstatic'
6636 case $cc_basename in
6637 f77* | f90* | f95*)
6638 lt_prog_compiler_wl='-Qoption ld ';;
6640 lt_prog_compiler_wl='-Wl,';;
6641 esac
6644 sunos4*)
6645 lt_prog_compiler_wl='-Qoption ld '
6646 lt_prog_compiler_pic='-PIC'
6647 lt_prog_compiler_static='-Bstatic'
6650 sysv4 | sysv4.2uw2* | sysv4.3*)
6651 lt_prog_compiler_wl='-Wl,'
6652 lt_prog_compiler_pic='-KPIC'
6653 lt_prog_compiler_static='-Bstatic'
6656 sysv4*MP*)
6657 if test -d /usr/nec ;then
6658 lt_prog_compiler_pic='-Kconform_pic'
6659 lt_prog_compiler_static='-Bstatic'
6663 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6664 lt_prog_compiler_wl='-Wl,'
6665 lt_prog_compiler_pic='-KPIC'
6666 lt_prog_compiler_static='-Bstatic'
6669 unicos*)
6670 lt_prog_compiler_wl='-Wl,'
6671 lt_prog_compiler_can_build_shared=no
6674 uts4*)
6675 lt_prog_compiler_pic='-pic'
6676 lt_prog_compiler_static='-Bstatic'
6680 lt_prog_compiler_can_build_shared=no
6682 esac
6685 case $host_os in
6686 # For platforms which do not support PIC, -DPIC is meaningless:
6687 *djgpp*)
6688 lt_prog_compiler_pic=
6691 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6693 esac
6694 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6695 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6703 # Check to make sure the PIC flag actually works.
6705 if test -n "$lt_prog_compiler_pic"; then
6706 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6707 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6708 if test "${lt_prog_compiler_pic_works+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711 lt_prog_compiler_pic_works=no
6712 ac_outfile=conftest.$ac_objext
6713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6714 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6715 # Insert the option either (1) after the last *FLAGS variable, or
6716 # (2) before a word containing "conftest.", or (3) at the end.
6717 # Note that $ac_compile itself does not contain backslashes and begins
6718 # with a dollar sign (not a hyphen), so the echo should work correctly.
6719 # The option is referenced via a variable to avoid confusing sed.
6720 lt_compile=`echo "$ac_compile" | $SED \
6721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6723 -e 's:$: $lt_compiler_flag:'`
6724 (eval echo "\"\$as_me:6724: $lt_compile\"" >&5)
6725 (eval "$lt_compile" 2>conftest.err)
6726 ac_status=$?
6727 cat conftest.err >&5
6728 echo "$as_me:6728: \$? = $ac_status" >&5
6729 if (exit $ac_status) && test -s "$ac_outfile"; then
6730 # The compiler can only warn and ignore the option if not recognized
6731 # So say no if there are warnings other than the usual output.
6732 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6734 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6735 lt_prog_compiler_pic_works=yes
6738 $RM conftest*
6741 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6742 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6744 if test x"$lt_prog_compiler_pic_works" = xyes; then
6745 case $lt_prog_compiler_pic in
6746 "" | " "*) ;;
6747 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6748 esac
6749 else
6750 lt_prog_compiler_pic=
6751 lt_prog_compiler_can_build_shared=no
6762 # Check to make sure the static flag actually works.
6764 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6765 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6766 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6767 if test "${lt_prog_compiler_static_works+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 else
6770 lt_prog_compiler_static_works=no
6771 save_LDFLAGS="$LDFLAGS"
6772 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6773 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6774 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6775 # The linker can only warn and ignore the option if not recognized
6776 # So say no if there are warnings
6777 if test -s conftest.err; then
6778 # Append any errors to the config.log.
6779 cat conftest.err 1>&5
6780 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6782 if diff conftest.exp conftest.er2 >/dev/null; then
6783 lt_prog_compiler_static_works=yes
6785 else
6786 lt_prog_compiler_static_works=yes
6789 $RM conftest*
6790 LDFLAGS="$save_LDFLAGS"
6793 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6794 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6796 if test x"$lt_prog_compiler_static_works" = xyes; then
6798 else
6799 lt_prog_compiler_static=
6808 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6809 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6810 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813 lt_cv_prog_compiler_c_o=no
6814 $RM -r conftest 2>/dev/null
6815 mkdir conftest
6816 cd conftest
6817 mkdir out
6818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6820 lt_compiler_flag="-o out/conftest2.$ac_objext"
6821 # Insert the option either (1) after the last *FLAGS variable, or
6822 # (2) before a word containing "conftest.", or (3) at the end.
6823 # Note that $ac_compile itself does not contain backslashes and begins
6824 # with a dollar sign (not a hyphen), so the echo should work correctly.
6825 lt_compile=`echo "$ac_compile" | $SED \
6826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6828 -e 's:$: $lt_compiler_flag:'`
6829 (eval echo "\"\$as_me:6829: $lt_compile\"" >&5)
6830 (eval "$lt_compile" 2>out/conftest.err)
6831 ac_status=$?
6832 cat out/conftest.err >&5
6833 echo "$as_me:6833: \$? = $ac_status" >&5
6834 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6835 then
6836 # The compiler can only warn and ignore the option if not recognized
6837 # So say no if there are warnings
6838 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6839 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6840 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6841 lt_cv_prog_compiler_c_o=yes
6844 chmod u+w . 2>&5
6845 $RM conftest*
6846 # SGI C++ compiler will create directory out/ii_files/ for
6847 # template instantiation
6848 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6849 $RM out/* && rmdir out
6850 cd ..
6851 $RM -r conftest
6852 $RM conftest*
6855 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6856 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6863 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6864 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6865 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868 lt_cv_prog_compiler_c_o=no
6869 $RM -r conftest 2>/dev/null
6870 mkdir conftest
6871 cd conftest
6872 mkdir out
6873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6875 lt_compiler_flag="-o out/conftest2.$ac_objext"
6876 # Insert the option either (1) after the last *FLAGS variable, or
6877 # (2) before a word containing "conftest.", or (3) at the end.
6878 # Note that $ac_compile itself does not contain backslashes and begins
6879 # with a dollar sign (not a hyphen), so the echo should work correctly.
6880 lt_compile=`echo "$ac_compile" | $SED \
6881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6883 -e 's:$: $lt_compiler_flag:'`
6884 (eval echo "\"\$as_me:6884: $lt_compile\"" >&5)
6885 (eval "$lt_compile" 2>out/conftest.err)
6886 ac_status=$?
6887 cat out/conftest.err >&5
6888 echo "$as_me:6888: \$? = $ac_status" >&5
6889 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6890 then
6891 # The compiler can only warn and ignore the option if not recognized
6892 # So say no if there are warnings
6893 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6894 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6895 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6896 lt_cv_prog_compiler_c_o=yes
6899 chmod u+w . 2>&5
6900 $RM conftest*
6901 # SGI C++ compiler will create directory out/ii_files/ for
6902 # template instantiation
6903 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6904 $RM out/* && rmdir out
6905 cd ..
6906 $RM -r conftest
6907 $RM conftest*
6910 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6911 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6916 hard_links="nottested"
6917 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6918 # do not overwrite the value of need_locks provided by the user
6919 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6920 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6921 hard_links=yes
6922 $RM conftest*
6923 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6924 touch conftest.a
6925 ln conftest.a conftest.b 2>&5 || hard_links=no
6926 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6927 echo "$as_me:$LINENO: result: $hard_links" >&5
6928 echo "${ECHO_T}$hard_links" >&6
6929 if test "$hard_links" = no; then
6930 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6931 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6932 need_locks=warn
6934 else
6935 need_locks=no
6943 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6944 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6946 runpath_var=
6947 allow_undefined_flag=
6948 always_export_symbols=no
6949 archive_cmds=
6950 archive_expsym_cmds=
6951 compiler_needs_object=no
6952 enable_shared_with_static_runtimes=no
6953 export_dynamic_flag_spec=
6954 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6955 hardcode_automatic=no
6956 hardcode_direct=no
6957 hardcode_direct_absolute=no
6958 hardcode_libdir_flag_spec=
6959 hardcode_libdir_flag_spec_ld=
6960 hardcode_libdir_separator=
6961 hardcode_minus_L=no
6962 hardcode_shlibpath_var=unsupported
6963 inherit_rpath=no
6964 link_all_deplibs=unknown
6965 module_cmds=
6966 module_expsym_cmds=
6967 old_archive_from_new_cmds=
6968 old_archive_from_expsyms_cmds=
6969 thread_safe_flag_spec=
6970 whole_archive_flag_spec=
6971 # include_expsyms should be a list of space-separated symbols to be *always*
6972 # included in the symbol list
6973 include_expsyms=
6974 # exclude_expsyms can be an extended regexp of symbols to exclude
6975 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6976 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6977 # as well as any symbol that contains `d'.
6978 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6979 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6980 # platforms (ab)use it in PIC code, but their linkers get confused if
6981 # the symbol is explicitly referenced. Since portable code cannot
6982 # rely on this symbol name, it's probably fine to never include it in
6983 # preloaded symbol tables.
6984 extract_expsyms_cmds=
6986 case $host_os in
6987 cygwin* | mingw* | pw32*)
6988 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6989 # When not using gcc, we currently assume that we are using
6990 # Microsoft Visual C++.
6991 if test "$GCC" != yes; then
6992 with_gnu_ld=no
6995 interix*)
6996 # we just hope/assume this is gcc and not c89 (= MSVC++)
6997 with_gnu_ld=yes
6999 openbsd*)
7000 with_gnu_ld=no
7002 esac
7004 ld_shlibs=yes
7005 if test "$with_gnu_ld" = yes; then
7006 # If archive_cmds runs LD, not CC, wlarc should be empty
7007 wlarc='${wl}'
7009 # Set some defaults for GNU ld with shared library support. These
7010 # are reset later if shared libraries are not supported. Putting them
7011 # here allows them to be overridden if necessary.
7012 runpath_var=LD_RUN_PATH
7013 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7014 export_dynamic_flag_spec='${wl}--export-dynamic'
7015 # ancient GNU ld didn't support --whole-archive et. al.
7016 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7017 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7018 else
7019 whole_archive_flag_spec=
7021 supports_anon_versioning=no
7022 case `$LD -v 2>&1` in
7023 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7024 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7025 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7026 *\ 2.11.*) ;; # other 2.11 versions
7027 *) supports_anon_versioning=yes ;;
7028 esac
7030 # See if GNU ld supports shared libraries.
7031 case $host_os in
7032 aix3* | aix4* | aix5*)
7033 # On AIX/PPC, the GNU linker is very broken
7034 if test "$host_cpu" != ia64; then
7035 ld_shlibs=no
7036 cat <<_LT_EOF 1>&2
7038 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7039 *** to be unable to reliably create shared libraries on AIX.
7040 *** Therefore, libtool is disabling shared libraries support. If you
7041 *** really care for shared libraries, you may want to modify your PATH
7042 *** so that a non-GNU linker is found, and then restart.
7044 _LT_EOF
7048 amigaos*)
7049 if test "$host_cpu" = m68k; then
7050 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)'
7051 hardcode_libdir_flag_spec='-L$libdir'
7052 hardcode_minus_L=yes
7055 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7056 # that the semantics of dynamic libraries on AmigaOS, at least up
7057 # to version 4, is to share data among multiple programs linked
7058 # with the same dynamic library. Since this doesn't match the
7059 # behavior of shared libraries on other platforms, we can't use
7060 # them.
7061 ld_shlibs=no
7064 beos*)
7065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7066 allow_undefined_flag=unsupported
7067 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7068 # support --undefined. This deserves some investigation. FIXME
7069 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7070 else
7071 ld_shlibs=no
7075 cygwin* | mingw* | pw32*)
7076 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7077 # as there is no search path for DLLs.
7078 hardcode_libdir_flag_spec='-L$libdir'
7079 allow_undefined_flag=unsupported
7080 always_export_symbols=no
7081 enable_shared_with_static_runtimes=yes
7082 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7084 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7086 # If the export-symbols file already is a .def file (1st line
7087 # is EXPORTS), use it as is; otherwise, prepend...
7088 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7089 cp $export_symbols $output_objdir/$soname.def;
7090 else
7091 echo EXPORTS > $output_objdir/$soname.def;
7092 cat $export_symbols >> $output_objdir/$soname.def;
7094 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7095 else
7096 ld_shlibs=no
7100 interix[3-9]*)
7101 hardcode_direct=no
7102 hardcode_shlibpath_var=no
7103 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7104 export_dynamic_flag_spec='${wl}-E'
7105 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7106 # Instead, shared libraries are loaded at an image base (0x10000000 by
7107 # default) and relocated if they conflict, which is a slow very memory
7108 # consuming and fragmenting process. To avoid this, we pick a random,
7109 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7110 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7111 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7112 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7115 gnu* | linux* | tpf* | k*bsd*-gnu)
7116 tmp_diet=no
7117 if test "$host_os" = linux-dietlibc; then
7118 case $cc_basename in
7119 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7120 esac
7122 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7123 && test "$tmp_diet" = no
7124 then
7125 tmp_addflag=
7126 case $cc_basename,$host_cpu in
7127 pgcc*) # Portland Group C compiler
7128 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7129 tmp_addflag=' $pic_flag'
7131 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7132 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7133 tmp_addflag=' $pic_flag -Mnomain' ;;
7134 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7135 tmp_addflag=' -i_dynamic' ;;
7136 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7137 tmp_addflag=' -i_dynamic -nofor_main' ;;
7138 ifc* | ifort*) # Intel Fortran compiler
7139 tmp_addflag=' -nofor_main' ;;
7140 esac
7141 case `$CC -V 2>&1 | sed 5q` in
7142 *Sun\ C*) # Sun C 5.9
7143 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7144 compiler_needs_object=yes
7145 tmp_sharedflag='-G' ;;
7146 *Sun\ F*) # Sun Fortran 8.3
7147 tmp_sharedflag='-G' ;;
7149 tmp_sharedflag='-shared' ;;
7150 esac
7151 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7153 if test "x$supports_anon_versioning" = xyes; then
7154 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7155 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7156 echo "local: *; };" >> $output_objdir/$libname.ver~
7157 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7159 else
7160 ld_shlibs=no
7164 netbsd*)
7165 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7166 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7167 wlarc=
7168 else
7169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7170 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7174 solaris*)
7175 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7176 ld_shlibs=no
7177 cat <<_LT_EOF 1>&2
7179 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7180 *** create shared libraries on Solaris systems. Therefore, libtool
7181 *** is disabling shared libraries support. We urge you to upgrade GNU
7182 *** binutils to release 2.9.1 or newer. Another option is to modify
7183 *** your PATH or compiler configuration so that the native linker is
7184 *** used, and then restart.
7186 _LT_EOF
7187 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7189 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7190 else
7191 ld_shlibs=no
7195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7196 case `$LD -v 2>&1` in
7197 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7198 ld_shlibs=no
7199 cat <<_LT_EOF 1>&2
7201 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7202 *** reliably create shared libraries on SCO systems. Therefore, libtool
7203 *** is disabling shared libraries support. We urge you to upgrade GNU
7204 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7205 *** your PATH or compiler configuration so that the native linker is
7206 *** used, and then restart.
7208 _LT_EOF
7211 # For security reasons, it is highly recommended that you always
7212 # use absolute paths for naming shared libraries, and exclude the
7213 # DT_RUNPATH tag from executables and libraries. But doing so
7214 # requires that you compile everything twice, which is a pain.
7215 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7218 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7219 else
7220 ld_shlibs=no
7223 esac
7226 sunos4*)
7227 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7228 wlarc=
7229 hardcode_direct=yes
7230 hardcode_shlibpath_var=no
7234 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7236 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7237 else
7238 ld_shlibs=no
7241 esac
7243 if test "$ld_shlibs" = no; then
7244 runpath_var=
7245 hardcode_libdir_flag_spec=
7246 export_dynamic_flag_spec=
7247 whole_archive_flag_spec=
7249 else
7250 # PORTME fill in a description of your system's linker (not GNU ld)
7251 case $host_os in
7252 aix3*)
7253 allow_undefined_flag=unsupported
7254 always_export_symbols=yes
7255 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'
7256 # Note: this linker hardcodes the directories in LIBPATH if there
7257 # are no directories specified by -L.
7258 hardcode_minus_L=yes
7259 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7260 # Neither direct hardcoding nor static linking is supported with a
7261 # broken collect2.
7262 hardcode_direct=unsupported
7266 aix4* | aix5*)
7267 if test "$host_cpu" = ia64; then
7268 # On IA64, the linker does run time linking by default, so we don't
7269 # have to do anything special.
7270 aix_use_runtimelinking=no
7271 exp_sym_flag='-Bexport'
7272 no_entry_flag=""
7273 else
7274 # If we're using GNU nm, then we don't want the "-C" option.
7275 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7276 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7277 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'
7278 else
7279 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'
7281 aix_use_runtimelinking=no
7283 # Test if we are trying to use run time linking or normal
7284 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7285 # need to do runtime linking.
7286 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7287 for ld_flag in $LDFLAGS; do
7288 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7289 aix_use_runtimelinking=yes
7290 break
7292 done
7294 esac
7296 exp_sym_flag='-bexport'
7297 no_entry_flag='-bnoentry'
7300 # When large executables or shared objects are built, AIX ld can
7301 # have problems creating the table of contents. If linking a library
7302 # or program results in "error TOC overflow" add -mminimal-toc to
7303 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7304 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7306 archive_cmds=''
7307 hardcode_direct=yes
7308 hardcode_direct_absolute=yes
7309 hardcode_libdir_separator=':'
7310 link_all_deplibs=yes
7311 file_list_spec='${wl}-f,'
7313 if test "$GCC" = yes; then
7314 case $host_os in aix4.[012]|aix4.[012].*)
7315 # We only want to do this on AIX 4.2 and lower, the check
7316 # below for broken collect2 doesn't work under 4.3+
7317 collect2name=`${CC} -print-prog-name=collect2`
7318 if test -f "$collect2name" &&
7319 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7320 then
7321 # We have reworked collect2
7323 else
7324 # We have old collect2
7325 hardcode_direct=unsupported
7326 # It fails to find uninstalled libraries when the uninstalled
7327 # path is not listed in the libpath. Setting hardcode_minus_L
7328 # to unsupported forces relinking
7329 hardcode_minus_L=yes
7330 hardcode_libdir_flag_spec='-L$libdir'
7331 hardcode_libdir_separator=
7334 esac
7335 shared_flag='-shared'
7336 if test "$aix_use_runtimelinking" = yes; then
7337 shared_flag="$shared_flag "'${wl}-G'
7339 else
7340 # not using gcc
7341 if test "$host_cpu" = ia64; then
7342 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7343 # chokes on -Wl,-G. The following line is correct:
7344 shared_flag='-G'
7345 else
7346 if test "$aix_use_runtimelinking" = yes; then
7347 shared_flag='${wl}-G'
7348 else
7349 shared_flag='${wl}-bM:SRE'
7354 # It seems that -bexpall does not export symbols beginning with
7355 # underscore (_), so it is better to generate a list of symbols to export.
7356 always_export_symbols=yes
7357 if test "$aix_use_runtimelinking" = yes; then
7358 # Warning - without using the other runtime loading flags (-brtl),
7359 # -berok will link without error, but may produce a broken library.
7360 allow_undefined_flag='-berok'
7361 # Determine the default libpath from the value encoded in an
7362 # empty executable.
7363 cat >conftest.$ac_ext <<_ACEOF
7364 /* confdefs.h. */
7365 _ACEOF
7366 cat confdefs.h >>conftest.$ac_ext
7367 cat >>conftest.$ac_ext <<_ACEOF
7368 /* end confdefs.h. */
7371 main ()
7375 return 0;
7377 _ACEOF
7378 rm -f conftest.$ac_objext conftest$ac_exeext
7379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7380 (eval $ac_link) 2>conftest.er1
7381 ac_status=$?
7382 grep -v '^ *+' conftest.er1 >conftest.err
7383 rm -f conftest.er1
7384 cat conftest.err >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } &&
7387 { ac_try='test -z "$ac_c_werror_flag"
7388 || test ! -s conftest.err'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390 (eval $ac_try) 2>&5
7391 ac_status=$?
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; } &&
7394 { ac_try='test -s conftest$ac_exeext'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 (eval $ac_try) 2>&5
7397 ac_status=$?
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7401 lt_aix_libpath_sed='
7402 /Import File Strings/,/^$/ {
7403 /^0/ {
7404 s/^0 *\(.*\)$/\1/
7408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7409 # Check for a 64-bit object if we didn't find anything.
7410 if test -z "$aix_libpath"; then
7411 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7413 else
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7418 rm -f conftest.err conftest.$ac_objext \
7419 conftest$ac_exeext conftest.$ac_ext
7420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7422 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7423 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7424 else
7425 if test "$host_cpu" = ia64; then
7426 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7427 allow_undefined_flag="-z nodefs"
7428 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7429 else
7430 # Determine the default libpath from the value encoded in an
7431 # empty executable.
7432 cat >conftest.$ac_ext <<_ACEOF
7433 /* confdefs.h. */
7434 _ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h. */
7440 main ()
7444 return 0;
7446 _ACEOF
7447 rm -f conftest.$ac_objext conftest$ac_exeext
7448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7449 (eval $ac_link) 2>conftest.er1
7450 ac_status=$?
7451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try='test -z "$ac_c_werror_flag"
7457 || test ! -s conftest.err'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 (eval $ac_try) 2>&5
7460 ac_status=$?
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; } &&
7463 { ac_try='test -s conftest$ac_exeext'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465 (eval $ac_try) 2>&5
7466 ac_status=$?
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7470 lt_aix_libpath_sed='
7471 /Import File Strings/,/^$/ {
7472 /^0/ {
7473 s/^0 *\(.*\)$/\1/
7477 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7478 # Check for a 64-bit object if we didn't find anything.
7479 if test -z "$aix_libpath"; then
7480 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7482 else
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7487 rm -f conftest.err conftest.$ac_objext \
7488 conftest$ac_exeext conftest.$ac_ext
7489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7491 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7492 # Warning - without using the other run time loading flags,
7493 # -berok will link without error, but may produce a broken library.
7494 no_undefined_flag=' ${wl}-bernotok'
7495 allow_undefined_flag=' ${wl}-berok'
7496 # Exported symbols can be pulled into shared objects from archives
7497 whole_archive_flag_spec='$convenience'
7498 archive_cmds_need_lc=yes
7499 # This is similar to how AIX traditionally builds its shared libraries.
7500 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7505 amigaos*)
7506 if test "$host_cpu" = m68k; then
7507 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)'
7508 hardcode_libdir_flag_spec='-L$libdir'
7509 hardcode_minus_L=yes
7511 # see comment about different semantics on the GNU ld section
7512 ld_shlibs=no
7515 bsdi[45]*)
7516 export_dynamic_flag_spec=-rdynamic
7519 cygwin* | mingw* | pw32*)
7520 # When not using gcc, we currently assume that we are using
7521 # Microsoft Visual C++.
7522 # hardcode_libdir_flag_spec is actually meaningless, as there is
7523 # no search path for DLLs.
7524 hardcode_libdir_flag_spec=' '
7525 allow_undefined_flag=unsupported
7526 # Tell ltmain to make .lib files, not .a files.
7527 libext=lib
7528 # Tell ltmain to make .dll files, not .so files.
7529 shrext_cmds=".dll"
7530 # FIXME: Setting linknames here is a bad hack.
7531 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7532 # The linker will automatically build a .lib file if we build a DLL.
7533 old_archive_from_new_cmds='true'
7534 # FIXME: Should let the user specify the lib program.
7535 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7536 fix_srcfile_path='`cygpath -w "$srcfile"`'
7537 enable_shared_with_static_runtimes=yes
7540 darwin* | rhapsody*)
7541 case $host_os in
7542 rhapsody* | darwin1.[012])
7543 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7545 *) # Darwin 1.3 on
7546 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7547 10.[012])
7548 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7550 10.*)
7551 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7553 esac
7555 esac
7556 archive_cmds_need_lc=no
7557 hardcode_direct=no
7558 hardcode_automatic=yes
7559 hardcode_shlibpath_var=unsupported
7560 whole_archive_flag_spec=''
7561 link_all_deplibs=yes
7562 if test "$GCC" = yes ; then
7563 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 else
7566 lt_cv_apple_cc_single_mod=no
7567 if test -z "${LT_MULTI_MODULE}"; then
7568 # By default we will add the -single_module flag. You can override
7569 # by either setting the environment variable LT_MULTI_MODULE
7570 # non-empty at configure time, or by adding -multi-module to the
7571 # link flags.
7572 echo "int foo(void){return 1;}" > conftest.c
7573 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7574 -dynamiclib ${wl}-single_module conftest.c
7575 if test -f libconftest.dylib; then
7576 lt_cv_apple_cc_single_mod=yes
7577 rm libconftest.dylib
7579 rm conftest.$ac_ext
7583 output_verbose_link_cmd=echo
7584 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7585 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7586 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7587 else
7588 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7589 archive_expsym_cmds='sed "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}'
7591 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7592 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7593 else
7594 case $cc_basename in
7595 xlc*)
7596 output_verbose_link_cmd=echo
7597 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7598 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7599 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7600 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7601 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7604 ld_shlibs=no
7606 esac
7610 dgux*)
7611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7612 hardcode_libdir_flag_spec='-L$libdir'
7613 hardcode_shlibpath_var=no
7616 freebsd1*)
7617 ld_shlibs=no
7620 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7621 # support. Future versions do this automatically, but an explicit c++rt0.o
7622 # does not break anything, and helps significantly (at the cost of a little
7623 # extra space).
7624 freebsd2.2*)
7625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7626 hardcode_libdir_flag_spec='-R$libdir'
7627 hardcode_direct=yes
7628 hardcode_shlibpath_var=no
7631 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7632 freebsd2*)
7633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7634 hardcode_direct=yes
7635 hardcode_minus_L=yes
7636 hardcode_shlibpath_var=no
7639 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7640 freebsd* | dragonfly*)
7641 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7642 hardcode_libdir_flag_spec='-R$libdir'
7643 hardcode_direct=yes
7644 hardcode_shlibpath_var=no
7647 hpux9*)
7648 if test "$GCC" = yes; then
7649 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'
7650 else
7651 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'
7653 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7654 hardcode_libdir_separator=:
7655 hardcode_direct=yes
7657 # hardcode_minus_L: Not really in the search PATH,
7658 # but as the default location of the library.
7659 hardcode_minus_L=yes
7660 export_dynamic_flag_spec='${wl}-E'
7663 hpux10*)
7664 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7665 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7666 else
7667 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7669 if test "$with_gnu_ld" = no; then
7670 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7671 hardcode_libdir_flag_spec_ld='+b $libdir'
7672 hardcode_libdir_separator=:
7673 hardcode_direct=yes
7674 hardcode_direct_absolute=yes
7675 export_dynamic_flag_spec='${wl}-E'
7676 # hardcode_minus_L: Not really in the search PATH,
7677 # but as the default location of the library.
7678 hardcode_minus_L=yes
7682 hpux11*)
7683 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7684 case $host_cpu in
7685 hppa*64*)
7686 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7688 ia64*)
7689 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7692 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7694 esac
7695 else
7696 case $host_cpu in
7697 hppa*64*)
7698 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7700 ia64*)
7701 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7704 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7706 esac
7708 if test "$with_gnu_ld" = no; then
7709 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7710 hardcode_libdir_separator=:
7712 case $host_cpu in
7713 hppa*64*|ia64*)
7714 hardcode_direct=no
7715 hardcode_shlibpath_var=no
7718 hardcode_direct=yes
7719 hardcode_direct_absolute=yes
7720 export_dynamic_flag_spec='${wl}-E'
7722 # hardcode_minus_L: Not really in the search PATH,
7723 # but as the default location of the library.
7724 hardcode_minus_L=yes
7726 esac
7730 irix5* | irix6* | nonstopux*)
7731 if test "$GCC" = yes; then
7732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7733 # Try to use the -exported_symbol ld option, if it does not
7734 # work, assume that -exports_file does not work either and
7735 # implicitly export all symbols.
7736 save_LDFLAGS="$LDFLAGS"
7737 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7738 cat >conftest.$ac_ext <<_ACEOF
7739 int foo(void) {}
7740 _ACEOF
7741 rm -f conftest.$ac_objext conftest$ac_exeext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7743 (eval $ac_link) 2>conftest.er1
7744 ac_status=$?
7745 grep -v '^ *+' conftest.er1 >conftest.err
7746 rm -f conftest.er1
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } &&
7750 { ac_try='test -z "$ac_c_werror_flag"
7751 || test ! -s conftest.err'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 (eval $ac_try) 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; } &&
7757 { ac_try='test -s conftest$ac_exeext'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759 (eval $ac_try) 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
7763 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7765 else
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7770 rm -f conftest.err conftest.$ac_objext \
7771 conftest$ac_exeext conftest.$ac_ext
7772 LDFLAGS="$save_LDFLAGS"
7773 else
7774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7775 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7777 archive_cmds_need_lc='no'
7778 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7779 hardcode_libdir_separator=:
7780 inherit_rpath=yes
7781 link_all_deplibs=yes
7784 netbsd*)
7785 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7787 else
7788 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7790 hardcode_libdir_flag_spec='-R$libdir'
7791 hardcode_direct=yes
7792 hardcode_shlibpath_var=no
7795 newsos6)
7796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7797 hardcode_direct=yes
7798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7799 hardcode_libdir_separator=:
7800 hardcode_shlibpath_var=no
7803 *nto* | *qnx*)
7806 openbsd*)
7807 hardcode_direct=yes
7808 hardcode_shlibpath_var=no
7809 hardcode_direct_absolute=yes
7810 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7811 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7812 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7813 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7814 export_dynamic_flag_spec='${wl}-E'
7815 else
7816 case $host_os in
7817 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7818 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7819 hardcode_libdir_flag_spec='-R$libdir'
7822 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7823 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7825 esac
7829 os2*)
7830 hardcode_libdir_flag_spec='-L$libdir'
7831 hardcode_minus_L=yes
7832 allow_undefined_flag=unsupported
7833 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'
7834 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7837 osf3*)
7838 if test "$GCC" = yes; then
7839 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7840 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7841 else
7842 allow_undefined_flag=' -expect_unresolved \*'
7843 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7845 archive_cmds_need_lc='no'
7846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7847 hardcode_libdir_separator=:
7850 osf4* | osf5*) # as osf3* with the addition of -msym flag
7851 if test "$GCC" = yes; then
7852 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7853 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7855 else
7856 allow_undefined_flag=' -expect_unresolved \*'
7857 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7858 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
7859 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7861 # Both c and cxx compiler support -rpath directly
7862 hardcode_libdir_flag_spec='-rpath $libdir'
7864 archive_cmds_need_lc='no'
7865 hardcode_libdir_separator=:
7868 solaris*)
7869 no_undefined_flag=' -z defs'
7870 if test "$GCC" = yes; then
7871 wlarc='${wl}'
7872 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7873 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7874 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7875 else
7876 case `$CC -V 2>&1` in
7877 *"Compilers 5.0"*)
7878 wlarc=''
7879 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7880 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7881 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7884 wlarc='${wl}'
7885 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7887 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7889 esac
7891 hardcode_libdir_flag_spec='-R$libdir'
7892 hardcode_shlibpath_var=no
7893 case $host_os in
7894 solaris2.[0-5] | solaris2.[0-5].*) ;;
7896 # The compiler driver will combine and reorder linker options,
7897 # but understands `-z linker_flag'. GCC discards it without `$wl',
7898 # but is careful enough not to reorder.
7899 # Supported since Solaris 2.6 (maybe 2.5.1?)
7900 if test "$GCC" = yes; then
7901 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7902 else
7903 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7906 esac
7907 link_all_deplibs=yes
7910 sunos4*)
7911 if test "x$host_vendor" = xsequent; then
7912 # Use $CC to link under sequent, because it throws in some extra .o
7913 # files that make .init and .fini sections work.
7914 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7915 else
7916 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7918 hardcode_libdir_flag_spec='-L$libdir'
7919 hardcode_direct=yes
7920 hardcode_minus_L=yes
7921 hardcode_shlibpath_var=no
7924 sysv4)
7925 case $host_vendor in
7926 sni)
7927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7928 hardcode_direct=yes # is this really true???
7930 siemens)
7931 ## LD is ld it makes a PLAMLIB
7932 ## CC just makes a GrossModule.
7933 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7934 reload_cmds='$CC -r -o $output$reload_objs'
7935 hardcode_direct=no
7937 motorola)
7938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7939 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7941 esac
7942 runpath_var='LD_RUN_PATH'
7943 hardcode_shlibpath_var=no
7946 sysv4.3*)
7947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7948 hardcode_shlibpath_var=no
7949 export_dynamic_flag_spec='-Bexport'
7952 sysv4*MP*)
7953 if test -d /usr/nec; then
7954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7955 hardcode_shlibpath_var=no
7956 runpath_var=LD_RUN_PATH
7957 hardcode_runpath_var=yes
7958 ld_shlibs=yes
7962 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7963 no_undefined_flag='${wl}-z,text'
7964 archive_cmds_need_lc=no
7965 hardcode_shlibpath_var=no
7966 runpath_var='LD_RUN_PATH'
7968 if test "$GCC" = yes; then
7969 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7970 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7971 else
7972 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7973 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7977 sysv5* | sco3.2v5* | sco5v6*)
7978 # Note: We can NOT use -z defs as we might desire, because we do not
7979 # link with -lc, and that would cause any symbols used from libc to
7980 # always be unresolved, which means just about no library would
7981 # ever link correctly. If we're not using GNU ld we use -z text
7982 # though, which does catch some bad symbols but isn't as heavy-handed
7983 # as -z defs.
7984 no_undefined_flag='${wl}-z,text'
7985 allow_undefined_flag='${wl}-z,nodefs'
7986 archive_cmds_need_lc=no
7987 hardcode_shlibpath_var=no
7988 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7989 hardcode_libdir_separator=':'
7990 link_all_deplibs=yes
7991 export_dynamic_flag_spec='${wl}-Bexport'
7992 runpath_var='LD_RUN_PATH'
7994 if test "$GCC" = yes; then
7995 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7996 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7997 else
7998 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7999 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8003 uts4*)
8004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8005 hardcode_libdir_flag_spec='-L$libdir'
8006 hardcode_shlibpath_var=no
8010 ld_shlibs=no
8012 esac
8014 if test x$host_vendor = xsni; then
8015 case $host in
8016 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8017 export_dynamic_flag_spec='${wl}-Blargedynsym'
8019 esac
8023 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8024 echo "${ECHO_T}$ld_shlibs" >&6
8025 test "$ld_shlibs" = no && can_build_shared=no
8027 with_gnu_ld=$with_gnu_ld
8044 # Do we need to explicitly link libc?
8046 case "x$archive_cmds_need_lc" in
8047 x|xyes)
8048 # Assume -lc should be added
8049 archive_cmds_need_lc=yes
8051 if test "$enable_shared" = yes && test "$GCC" = yes; then
8052 case $archive_cmds in
8053 *'~'*)
8054 # FIXME: we may have to deal with multi-command sequences.
8056 '$CC '*)
8057 # Test whether the compiler implicitly links with -lc since on some
8058 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8059 # to ld, don't add -lc before -lgcc.
8060 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8061 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8062 $RM conftest*
8063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8066 (eval $ac_compile) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } 2>conftest.err; then
8070 soname=conftest
8071 lib=conftest
8072 libobjs=conftest.$ac_objext
8073 deplibs=
8074 wl=$lt_prog_compiler_wl
8075 pic_flag=$lt_prog_compiler_pic
8076 compiler_flags=-v
8077 linker_flags=-v
8078 verstring=
8079 output_objdir=.
8080 libname=conftest
8081 lt_save_allow_undefined_flag=$allow_undefined_flag
8082 allow_undefined_flag=
8083 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8084 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8085 ac_status=$?
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }
8088 then
8089 archive_cmds_need_lc=no
8090 else
8091 archive_cmds_need_lc=yes
8093 allow_undefined_flag=$lt_save_allow_undefined_flag
8094 else
8095 cat conftest.err 1>&5
8097 $RM conftest*
8098 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8099 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8101 esac
8104 esac
8262 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8263 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8264 withGCC=$GCC
8265 if test "$withGCC" = yes; then
8266 case $host_os in
8267 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8268 *) lt_awk_arg="/^libraries:/" ;;
8269 esac
8270 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8271 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8272 # if the path contains ";" then we assume it to be the separator
8273 # otherwise default to the standard path separator (i.e. ":") - it is
8274 # assumed that no part of a normal pathname contains ";" but that should
8275 # okay in the real world where ";" in dirpaths is itself problematic.
8276 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8277 else
8278 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8280 # Ok, now we have the path, separated by spaces, we can step through it
8281 # and add multilib dir if necessary.
8282 lt_tmp_lt_search_path_spec=
8283 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8284 for lt_sys_path in $lt_search_path_spec; do
8285 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8286 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8287 else
8288 test -d "$lt_sys_path" && \
8289 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8291 done
8292 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8293 BEGIN {RS=" "; FS="/|\n";} {
8294 lt_foo="";
8295 lt_count=0;
8296 for (lt_i = NF; lt_i > 0; lt_i--) {
8297 if ($lt_i != "" && $lt_i != ".") {
8298 if ($lt_i == "..") {
8299 lt_count++;
8300 } else {
8301 if (lt_count == 0) {
8302 lt_foo="/" $lt_i lt_foo;
8303 } else {
8304 lt_count--;
8309 if (lt_foo != "") { lt_freq[lt_foo]++; }
8310 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8312 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8313 else
8314 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8316 library_names_spec=
8317 libname_spec='lib$name'
8318 soname_spec=
8319 shrext_cmds=".so"
8320 postinstall_cmds=
8321 postuninstall_cmds=
8322 finish_cmds=
8323 finish_eval=
8324 shlibpath_var=
8325 shlibpath_overrides_runpath=unknown
8326 version_type=none
8327 dynamic_linker="$host_os ld.so"
8328 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8329 need_lib_prefix=unknown
8330 hardcode_into_libs=no
8332 # when you set need_version to no, make sure it does not cause -set_version
8333 # flags to be left without arguments
8334 need_version=unknown
8336 case $host_os in
8337 aix3*)
8338 version_type=linux
8339 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8340 shlibpath_var=LIBPATH
8342 # AIX 3 has no versioning support, so we append a major version to the name.
8343 soname_spec='${libname}${release}${shared_ext}$major'
8346 aix4* | aix5*)
8347 version_type=linux
8348 need_lib_prefix=no
8349 need_version=no
8350 hardcode_into_libs=yes
8351 if test "$host_cpu" = ia64; then
8352 # AIX 5 supports IA64
8353 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8354 shlibpath_var=LD_LIBRARY_PATH
8355 else
8356 # With GCC up to 2.95.x, collect2 would create an import file
8357 # for dependence libraries. The import file would start with
8358 # the line `#! .'. This would cause the generated library to
8359 # depend on `.', always an invalid library. This was fixed in
8360 # development snapshots of GCC prior to 3.0.
8361 case $host_os in
8362 aix4 | aix4.[01] | aix4.[01].*)
8363 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8364 echo ' yes '
8365 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8367 else
8368 can_build_shared=no
8371 esac
8372 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8373 # soname into executable. Probably we can add versioning support to
8374 # collect2, so additional links can be useful in future.
8375 if test "$aix_use_runtimelinking" = yes; then
8376 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8377 # instead of lib<name>.a to let people know that these are not
8378 # typical AIX shared libraries.
8379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8380 else
8381 # We preserve .a as extension for shared libraries through AIX4.2
8382 # and later when we are not doing run time linking.
8383 library_names_spec='${libname}${release}.a $libname.a'
8384 soname_spec='${libname}${release}${shared_ext}$major'
8386 shlibpath_var=LIBPATH
8390 amigaos*)
8391 if test "$host_cpu" = m68k; then
8392 library_names_spec='$libname.ixlibrary $libname.a'
8393 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8394 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'
8395 else
8396 dynamic_linker=no
8400 beos*)
8401 library_names_spec='${libname}${shared_ext}'
8402 dynamic_linker="$host_os ld.so"
8403 shlibpath_var=LIBRARY_PATH
8406 bsdi[45]*)
8407 version_type=linux
8408 need_version=no
8409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8410 soname_spec='${libname}${release}${shared_ext}$major'
8411 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8412 shlibpath_var=LD_LIBRARY_PATH
8413 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8414 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8415 # the default ld.so.conf also contains /usr/contrib/lib and
8416 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8417 # libtool to hard-code these into programs
8420 cygwin* | mingw* | pw32*)
8421 version_type=windows
8422 shrext_cmds=".dll"
8423 need_version=no
8424 need_lib_prefix=no
8426 case $withGCC,$host_os in
8427 yes,cygwin* | yes,mingw* | yes,pw32*)
8428 library_names_spec='$libname.dll.a'
8429 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8430 postinstall_cmds='base_file=`basename \${file}`~
8431 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8432 dldir=$destdir/`dirname \$dlpath`~
8433 test -d \$dldir || mkdir -p \$dldir~
8434 $install_prog $dir/$dlname \$dldir/$dlname~
8435 chmod a+x \$dldir/$dlname~
8436 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8437 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8439 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8440 dlpath=$dir/\$dldll~
8441 $RM \$dlpath'
8442 shlibpath_overrides_runpath=yes
8444 case $host_os in
8445 cygwin*)
8446 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8447 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8448 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8450 mingw*)
8451 # MinGW DLLs use traditional 'lib' prefix
8452 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8453 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8454 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8455 # It is most probably a Windows format PATH printed by
8456 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8457 # path with ; separators, and with drive letters. We can handle the
8458 # drive letters (cygwin fileutils understands them), so leave them,
8459 # especially as we might pass files found there to a mingw objdump,
8460 # which wouldn't understand a cygwinified path. Ahh.
8461 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8462 else
8463 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8466 pw32*)
8467 # pw32 DLLs use 'pw' prefix rather than 'lib'
8468 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8470 esac
8474 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8476 esac
8477 dynamic_linker='Win32 ld.exe'
8478 # FIXME: first we should search . and the directory the executable is in
8479 shlibpath_var=PATH
8482 darwin* | rhapsody*)
8483 dynamic_linker="$host_os dyld"
8484 version_type=darwin
8485 need_lib_prefix=no
8486 need_version=no
8487 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8488 soname_spec='${libname}${release}${major}$shared_ext'
8489 shlibpath_overrides_runpath=yes
8490 shlibpath_var=DYLD_LIBRARY_PATH
8491 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8493 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8494 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8497 dgux*)
8498 version_type=linux
8499 need_lib_prefix=no
8500 need_version=no
8501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8502 soname_spec='${libname}${release}${shared_ext}$major'
8503 shlibpath_var=LD_LIBRARY_PATH
8506 freebsd1*)
8507 dynamic_linker=no
8510 freebsd* | dragonfly*)
8511 # DragonFly does not have aout. When/if they implement a new
8512 # versioning mechanism, adjust this.
8513 if test -x /usr/bin/objformat; then
8514 objformat=`/usr/bin/objformat`
8515 else
8516 case $host_os in
8517 freebsd[123]*) objformat=aout ;;
8518 *) objformat=elf ;;
8519 esac
8521 version_type=freebsd-$objformat
8522 case $version_type in
8523 freebsd-elf*)
8524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8525 need_version=no
8526 need_lib_prefix=no
8528 freebsd-*)
8529 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8530 need_version=yes
8532 esac
8533 shlibpath_var=LD_LIBRARY_PATH
8534 case $host_os in
8535 freebsd2*)
8536 shlibpath_overrides_runpath=yes
8538 freebsd3.[01]* | freebsdelf3.[01]*)
8539 shlibpath_overrides_runpath=yes
8540 hardcode_into_libs=yes
8542 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8543 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8544 shlibpath_overrides_runpath=no
8545 hardcode_into_libs=yes
8547 *) # from 4.6 on, and DragonFly
8548 shlibpath_overrides_runpath=yes
8549 hardcode_into_libs=yes
8551 esac
8554 gnu*)
8555 version_type=linux
8556 need_lib_prefix=no
8557 need_version=no
8558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8559 soname_spec='${libname}${release}${shared_ext}$major'
8560 shlibpath_var=LD_LIBRARY_PATH
8561 hardcode_into_libs=yes
8564 hpux9* | hpux10* | hpux11*)
8565 # Give a soname corresponding to the major version so that dld.sl refuses to
8566 # link against other versions.
8567 version_type=sunos
8568 need_lib_prefix=no
8569 need_version=no
8570 case $host_cpu in
8571 ia64*)
8572 shrext_cmds='.so'
8573 hardcode_into_libs=yes
8574 dynamic_linker="$host_os dld.so"
8575 shlibpath_var=LD_LIBRARY_PATH
8576 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8578 soname_spec='${libname}${release}${shared_ext}$major'
8579 if test "X$HPUX_IA64_MODE" = X32; then
8580 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8581 else
8582 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8584 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8586 hppa*64*)
8587 shrext_cmds='.sl'
8588 hardcode_into_libs=yes
8589 dynamic_linker="$host_os dld.sl"
8590 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8591 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8593 soname_spec='${libname}${release}${shared_ext}$major'
8594 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8595 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8598 shrext_cmds='.sl'
8599 dynamic_linker="$host_os dld.sl"
8600 shlibpath_var=SHLIB_PATH
8601 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8603 soname_spec='${libname}${release}${shared_ext}$major'
8605 esac
8606 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8607 postinstall_cmds='chmod 555 $lib'
8610 interix[3-9]*)
8611 version_type=linux
8612 need_lib_prefix=no
8613 need_version=no
8614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8615 soname_spec='${libname}${release}${shared_ext}$major'
8616 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8617 shlibpath_var=LD_LIBRARY_PATH
8618 shlibpath_overrides_runpath=no
8619 hardcode_into_libs=yes
8622 irix5* | irix6* | nonstopux*)
8623 case $host_os in
8624 nonstopux*) version_type=nonstopux ;;
8626 if test "$lt_cv_prog_gnu_ld" = yes; then
8627 version_type=linux
8628 else
8629 version_type=irix
8630 fi ;;
8631 esac
8632 need_lib_prefix=no
8633 need_version=no
8634 soname_spec='${libname}${release}${shared_ext}$major'
8635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8636 case $host_os in
8637 irix5* | nonstopux*)
8638 libsuff= shlibsuff=
8641 case $LD in # libtool.m4 will add one of these switches to LD
8642 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8643 libsuff= shlibsuff= libmagic=32-bit;;
8644 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8645 libsuff=32 shlibsuff=N32 libmagic=N32;;
8646 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8647 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8648 *) libsuff= shlibsuff= libmagic=never-match;;
8649 esac
8651 esac
8652 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8653 shlibpath_overrides_runpath=no
8654 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8655 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8656 hardcode_into_libs=yes
8659 # No shared lib support for Linux oldld, aout, or coff.
8660 linux*oldld* | linux*aout* | linux*coff*)
8661 dynamic_linker=no
8664 # This must be Linux ELF.
8665 linux* | k*bsd*-gnu)
8666 version_type=linux
8667 need_lib_prefix=no
8668 need_version=no
8669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8670 soname_spec='${libname}${release}${shared_ext}$major'
8671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8672 shlibpath_var=LD_LIBRARY_PATH
8673 shlibpath_overrides_runpath=no
8674 # Some binutils ld are patched to set DT_RUNPATH
8675 save_LDFLAGS=$LDFLAGS
8676 save_libdir=$libdir
8677 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8678 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8679 cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h. */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8687 main ()
8691 return 0;
8693 _ACEOF
8694 rm -f conftest.$ac_objext conftest$ac_exeext
8695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8696 (eval $ac_link) 2>conftest.er1
8697 ac_status=$?
8698 grep -v '^ *+' conftest.er1 >conftest.err
8699 rm -f conftest.er1
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } &&
8703 { ac_try='test -z "$ac_c_werror_flag"
8704 || test ! -s conftest.err'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 (eval $ac_try) 2>&5
8707 ac_status=$?
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; } &&
8710 { ac_try='test -s conftest$ac_exeext'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 (eval $ac_try) 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; }; then
8716 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8717 shlibpath_overrides_runpath=yes
8720 else
8721 echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8725 rm -f conftest.err conftest.$ac_objext \
8726 conftest$ac_exeext conftest.$ac_ext
8727 LDFLAGS=$save_LDFLAGS
8728 libdir=$save_libdir
8730 # This implies no fast_install, which is unacceptable.
8731 # Some rework will be needed to allow for fast_install
8732 # before this can be enabled.
8733 hardcode_into_libs=yes
8735 # Append ld.so.conf contents to the search path
8736 if test -f /etc/ld.so.conf; then
8737 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8738 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8741 # We used to test for /lib/ld.so.1 and disable shared libraries on
8742 # powerpc, because MkLinux only supported shared libraries with the
8743 # GNU dynamic linker. Since this was broken with cross compilers,
8744 # most powerpc-linux boxes support dynamic linking these days and
8745 # people can always --disable-shared, the test was removed, and we
8746 # assume the GNU/Linux dynamic linker is in use.
8747 dynamic_linker='GNU/Linux ld.so'
8750 netbsd*)
8751 version_type=sunos
8752 need_lib_prefix=no
8753 need_version=no
8754 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8757 dynamic_linker='NetBSD (a.out) ld.so'
8758 else
8759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8760 soname_spec='${libname}${release}${shared_ext}$major'
8761 dynamic_linker='NetBSD ld.elf_so'
8763 shlibpath_var=LD_LIBRARY_PATH
8764 shlibpath_overrides_runpath=yes
8765 hardcode_into_libs=yes
8768 newsos6)
8769 version_type=linux
8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8771 shlibpath_var=LD_LIBRARY_PATH
8772 shlibpath_overrides_runpath=yes
8775 *nto* | *qnx*)
8776 version_type=qnx
8777 need_lib_prefix=no
8778 need_version=no
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8780 soname_spec='${libname}${release}${shared_ext}$major'
8781 shlibpath_var=LD_LIBRARY_PATH
8782 shlibpath_overrides_runpath=no
8783 hardcode_into_libs=yes
8784 dynamic_linker='ldqnx.so'
8787 openbsd*)
8788 version_type=sunos
8789 sys_lib_dlsearch_path_spec="/usr/lib"
8790 need_lib_prefix=no
8791 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8792 case $host_os in
8793 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8794 *) need_version=no ;;
8795 esac
8796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8798 shlibpath_var=LD_LIBRARY_PATH
8799 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8800 case $host_os in
8801 openbsd2.[89] | openbsd2.[89].*)
8802 shlibpath_overrides_runpath=no
8805 shlibpath_overrides_runpath=yes
8807 esac
8808 else
8809 shlibpath_overrides_runpath=yes
8813 os2*)
8814 libname_spec='$name'
8815 shrext_cmds=".dll"
8816 need_lib_prefix=no
8817 library_names_spec='$libname${shared_ext} $libname.a'
8818 dynamic_linker='OS/2 ld.exe'
8819 shlibpath_var=LIBPATH
8822 osf3* | osf4* | osf5*)
8823 version_type=osf
8824 need_lib_prefix=no
8825 need_version=no
8826 soname_spec='${libname}${release}${shared_ext}$major'
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8828 shlibpath_var=LD_LIBRARY_PATH
8829 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8830 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8833 rdos*)
8834 dynamic_linker=no
8837 solaris*)
8838 version_type=linux
8839 need_lib_prefix=no
8840 need_version=no
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8842 soname_spec='${libname}${release}${shared_ext}$major'
8843 shlibpath_var=LD_LIBRARY_PATH
8844 shlibpath_overrides_runpath=yes
8845 hardcode_into_libs=yes
8846 # ldd complains unless libraries are executable
8847 postinstall_cmds='chmod +x $lib'
8850 sunos4*)
8851 version_type=sunos
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8853 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8854 shlibpath_var=LD_LIBRARY_PATH
8855 shlibpath_overrides_runpath=yes
8856 if test "$with_gnu_ld" = yes; then
8857 need_lib_prefix=no
8859 need_version=yes
8862 sysv4 | sysv4.3*)
8863 version_type=linux
8864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8865 soname_spec='${libname}${release}${shared_ext}$major'
8866 shlibpath_var=LD_LIBRARY_PATH
8867 case $host_vendor in
8868 sni)
8869 shlibpath_overrides_runpath=no
8870 need_lib_prefix=no
8871 runpath_var=LD_RUN_PATH
8873 siemens)
8874 need_lib_prefix=no
8876 motorola)
8877 need_lib_prefix=no
8878 need_version=no
8879 shlibpath_overrides_runpath=no
8880 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8882 esac
8885 sysv4*MP*)
8886 if test -d /usr/nec ;then
8887 version_type=linux
8888 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8889 soname_spec='$libname${shared_ext}.$major'
8890 shlibpath_var=LD_LIBRARY_PATH
8894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8895 version_type=freebsd-elf
8896 need_lib_prefix=no
8897 need_version=no
8898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8899 soname_spec='${libname}${release}${shared_ext}$major'
8900 shlibpath_var=LD_LIBRARY_PATH
8901 shlibpath_overrides_runpath=yes
8902 hardcode_into_libs=yes
8903 if test "$with_gnu_ld" = yes; then
8904 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8905 else
8906 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8907 case $host_os in
8908 sco3.2v5*)
8909 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8911 esac
8913 sys_lib_dlsearch_path_spec='/usr/lib'
8916 tpf*)
8917 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8918 version_type=linux
8919 need_lib_prefix=no
8920 need_version=no
8921 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath=no
8924 hardcode_into_libs=yes
8927 uts4*)
8928 version_type=linux
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8930 soname_spec='${libname}${release}${shared_ext}$major'
8931 shlibpath_var=LD_LIBRARY_PATH
8935 dynamic_linker=no
8937 esac
8938 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8939 echo "${ECHO_T}$dynamic_linker" >&6
8940 test "$dynamic_linker" = no && can_build_shared=no
8942 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8943 if test "$GCC" = yes; then
8944 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9033 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9034 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9035 hardcode_action=
9036 if test -n "$hardcode_libdir_flag_spec" ||
9037 test -n "$runpath_var" ||
9038 test "X$hardcode_automatic" = "Xyes" ; then
9040 # We can hardcode non-existent directories.
9041 if test "$hardcode_direct" != no &&
9042 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9043 # have to relink, otherwise we might link with an installed library
9044 # when we should be linking with a yet-to-be-installed one
9045 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9046 test "$hardcode_minus_L" != no; then
9047 # Linking always hardcodes the temporary library directory.
9048 hardcode_action=relink
9049 else
9050 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9051 hardcode_action=immediate
9053 else
9054 # We cannot hardcode anything, or else we can only hardcode existing
9055 # directories.
9056 hardcode_action=unsupported
9058 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9059 echo "${ECHO_T}$hardcode_action" >&6
9061 if test "$hardcode_action" = relink ||
9062 test "$inherit_rpath" = yes; then
9063 # Fast installation is not supported
9064 enable_fast_install=no
9065 elif test "$shlibpath_overrides_runpath" = yes ||
9066 test "$enable_shared" = no; then
9067 # Fast installation is not necessary
9068 enable_fast_install=needless
9076 if test "x$enable_dlopen" != xyes; then
9077 enable_dlopen=unknown
9078 enable_dlopen_self=unknown
9079 enable_dlopen_self_static=unknown
9080 else
9081 lt_cv_dlopen=no
9082 lt_cv_dlopen_libs=
9084 case $host_os in
9085 beos*)
9086 lt_cv_dlopen="load_add_on"
9087 lt_cv_dlopen_libs=
9088 lt_cv_dlopen_self=yes
9091 mingw* | pw32*)
9092 lt_cv_dlopen="LoadLibrary"
9093 lt_cv_dlopen_libs=
9096 cygwin*)
9097 lt_cv_dlopen="dlopen"
9098 lt_cv_dlopen_libs=
9101 darwin*)
9102 # if libdl is installed we need to link against it
9103 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9104 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9105 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108 ac_check_lib_save_LIBS=$LIBS
9109 LIBS="-ldl $LIBS"
9110 cat >conftest.$ac_ext <<_ACEOF
9111 /* confdefs.h. */
9112 _ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h. */
9117 /* Override any gcc2 internal prototype to avoid an error. */
9118 #ifdef __cplusplus
9119 extern "C"
9120 #endif
9121 /* We use char because int might match the return type of a gcc2
9122 builtin and then its argument prototype would still apply. */
9123 char dlopen ();
9125 main ()
9127 dlopen ();
9129 return 0;
9131 _ACEOF
9132 rm -f conftest.$ac_objext conftest$ac_exeext
9133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9134 (eval $ac_link) 2>conftest.er1
9135 ac_status=$?
9136 grep -v '^ *+' conftest.er1 >conftest.err
9137 rm -f conftest.er1
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } &&
9141 { ac_try='test -z "$ac_c_werror_flag"
9142 || test ! -s conftest.err'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 (eval $ac_try) 2>&5
9145 ac_status=$?
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; } &&
9148 { ac_try='test -s conftest$ac_exeext'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150 (eval $ac_try) 2>&5
9151 ac_status=$?
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 ac_cv_lib_dl_dlopen=yes
9155 else
9156 echo "$as_me: failed program was:" >&5
9157 sed 's/^/| /' conftest.$ac_ext >&5
9159 ac_cv_lib_dl_dlopen=no
9161 rm -f conftest.err conftest.$ac_objext \
9162 conftest$ac_exeext conftest.$ac_ext
9163 LIBS=$ac_check_lib_save_LIBS
9165 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9166 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9167 if test $ac_cv_lib_dl_dlopen = yes; then
9168 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9169 else
9171 lt_cv_dlopen="dyld"
9172 lt_cv_dlopen_libs=
9173 lt_cv_dlopen_self=yes
9180 echo "$as_me:$LINENO: checking for shl_load" >&5
9181 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9182 if test "${ac_cv_func_shl_load+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 else
9185 cat >conftest.$ac_ext <<_ACEOF
9186 /* confdefs.h. */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9191 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9193 #define shl_load innocuous_shl_load
9195 /* System header to define __stub macros and hopefully few prototypes,
9196 which can conflict with char shl_load (); below.
9197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9198 <limits.h> exists even on freestanding compilers. */
9200 #ifdef __STDC__
9201 # include <limits.h>
9202 #else
9203 # include <assert.h>
9204 #endif
9206 #undef shl_load
9208 /* Override any gcc2 internal prototype to avoid an error. */
9209 #ifdef __cplusplus
9210 extern "C"
9212 #endif
9213 /* We use char because int might match the return type of a gcc2
9214 builtin and then its argument prototype would still apply. */
9215 char shl_load ();
9216 /* The GNU C library defines this for functions which it implements
9217 to always fail with ENOSYS. Some functions are actually named
9218 something starting with __ and the normal name is an alias. */
9219 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9220 choke me
9221 #else
9222 char (*f) () = shl_load;
9223 #endif
9224 #ifdef __cplusplus
9226 #endif
9229 main ()
9231 return f != shl_load;
9233 return 0;
9235 _ACEOF
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238 (eval $ac_link) 2>conftest.er1
9239 ac_status=$?
9240 grep -v '^ *+' conftest.er1 >conftest.err
9241 rm -f conftest.er1
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } &&
9245 { ac_try='test -z "$ac_c_werror_flag"
9246 || test ! -s conftest.err'
9247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 (eval $ac_try) 2>&5
9249 ac_status=$?
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); }; } &&
9252 { ac_try='test -s conftest$ac_exeext'
9253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 (eval $ac_try) 2>&5
9255 ac_status=$?
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; }; then
9258 ac_cv_func_shl_load=yes
9259 else
9260 echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9263 ac_cv_func_shl_load=no
9265 rm -f conftest.err conftest.$ac_objext \
9266 conftest$ac_exeext conftest.$ac_ext
9268 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9269 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9270 if test $ac_cv_func_shl_load = yes; then
9271 lt_cv_dlopen="shl_load"
9272 else
9273 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9274 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9275 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9276 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 else
9278 ac_check_lib_save_LIBS=$LIBS
9279 LIBS="-ldld $LIBS"
9280 cat >conftest.$ac_ext <<_ACEOF
9281 /* confdefs.h. */
9282 _ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9287 /* Override any gcc2 internal prototype to avoid an error. */
9288 #ifdef __cplusplus
9289 extern "C"
9290 #endif
9291 /* We use char because int might match the return type of a gcc2
9292 builtin and then its argument prototype would still apply. */
9293 char shl_load ();
9295 main ()
9297 shl_load ();
9299 return 0;
9301 _ACEOF
9302 rm -f conftest.$ac_objext conftest$ac_exeext
9303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9304 (eval $ac_link) 2>conftest.er1
9305 ac_status=$?
9306 grep -v '^ *+' conftest.er1 >conftest.err
9307 rm -f conftest.er1
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } &&
9311 { ac_try='test -z "$ac_c_werror_flag"
9312 || test ! -s conftest.err'
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 (eval $ac_try) 2>&5
9315 ac_status=$?
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; } &&
9318 { ac_try='test -s conftest$ac_exeext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 (eval $ac_try) 2>&5
9321 ac_status=$?
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 ac_cv_lib_dld_shl_load=yes
9325 else
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9329 ac_cv_lib_dld_shl_load=no
9331 rm -f conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
9333 LIBS=$ac_check_lib_save_LIBS
9335 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9336 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9337 if test $ac_cv_lib_dld_shl_load = yes; then
9338 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9339 else
9340 echo "$as_me:$LINENO: checking for dlopen" >&5
9341 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9342 if test "${ac_cv_func_dlopen+set}" = set; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
9344 else
9345 cat >conftest.$ac_ext <<_ACEOF
9346 /* confdefs.h. */
9347 _ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h. */
9351 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9353 #define dlopen innocuous_dlopen
9355 /* System header to define __stub macros and hopefully few prototypes,
9356 which can conflict with char dlopen (); below.
9357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9358 <limits.h> exists even on freestanding compilers. */
9360 #ifdef __STDC__
9361 # include <limits.h>
9362 #else
9363 # include <assert.h>
9364 #endif
9366 #undef dlopen
9368 /* Override any gcc2 internal prototype to avoid an error. */
9369 #ifdef __cplusplus
9370 extern "C"
9372 #endif
9373 /* We use char because int might match the return type of a gcc2
9374 builtin and then its argument prototype would still apply. */
9375 char dlopen ();
9376 /* The GNU C library defines this for functions which it implements
9377 to always fail with ENOSYS. Some functions are actually named
9378 something starting with __ and the normal name is an alias. */
9379 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9380 choke me
9381 #else
9382 char (*f) () = dlopen;
9383 #endif
9384 #ifdef __cplusplus
9386 #endif
9389 main ()
9391 return f != dlopen;
9393 return 0;
9395 _ACEOF
9396 rm -f conftest.$ac_objext conftest$ac_exeext
9397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9398 (eval $ac_link) 2>conftest.er1
9399 ac_status=$?
9400 grep -v '^ *+' conftest.er1 >conftest.err
9401 rm -f conftest.er1
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } &&
9405 { ac_try='test -z "$ac_c_werror_flag"
9406 || test ! -s conftest.err'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 (eval $ac_try) 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; } &&
9412 { ac_try='test -s conftest$ac_exeext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 ac_cv_func_dlopen=yes
9419 else
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9423 ac_cv_func_dlopen=no
9425 rm -f conftest.err conftest.$ac_objext \
9426 conftest$ac_exeext conftest.$ac_ext
9428 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9429 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9430 if test $ac_cv_func_dlopen = yes; then
9431 lt_cv_dlopen="dlopen"
9432 else
9433 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9434 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9435 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9437 else
9438 ac_check_lib_save_LIBS=$LIBS
9439 LIBS="-ldl $LIBS"
9440 cat >conftest.$ac_ext <<_ACEOF
9441 /* confdefs.h. */
9442 _ACEOF
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h. */
9447 /* Override any gcc2 internal prototype to avoid an error. */
9448 #ifdef __cplusplus
9449 extern "C"
9450 #endif
9451 /* We use char because int might match the return type of a gcc2
9452 builtin and then its argument prototype would still apply. */
9453 char dlopen ();
9455 main ()
9457 dlopen ();
9459 return 0;
9461 _ACEOF
9462 rm -f conftest.$ac_objext conftest$ac_exeext
9463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9464 (eval $ac_link) 2>conftest.er1
9465 ac_status=$?
9466 grep -v '^ *+' conftest.er1 >conftest.err
9467 rm -f conftest.er1
9468 cat conftest.err >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
9471 { ac_try='test -z "$ac_c_werror_flag"
9472 || test ! -s conftest.err'
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); }; } &&
9478 { ac_try='test -s conftest$ac_exeext'
9479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 (eval $ac_try) 2>&5
9481 ac_status=$?
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; }; then
9484 ac_cv_lib_dl_dlopen=yes
9485 else
9486 echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9489 ac_cv_lib_dl_dlopen=no
9491 rm -f conftest.err conftest.$ac_objext \
9492 conftest$ac_exeext conftest.$ac_ext
9493 LIBS=$ac_check_lib_save_LIBS
9495 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9496 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9497 if test $ac_cv_lib_dl_dlopen = yes; then
9498 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9499 else
9500 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9501 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9502 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505 ac_check_lib_save_LIBS=$LIBS
9506 LIBS="-lsvld $LIBS"
9507 cat >conftest.$ac_ext <<_ACEOF
9508 /* confdefs.h. */
9509 _ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h. */
9514 /* Override any gcc2 internal prototype to avoid an error. */
9515 #ifdef __cplusplus
9516 extern "C"
9517 #endif
9518 /* We use char because int might match the return type of a gcc2
9519 builtin and then its argument prototype would still apply. */
9520 char dlopen ();
9522 main ()
9524 dlopen ();
9526 return 0;
9528 _ACEOF
9529 rm -f conftest.$ac_objext conftest$ac_exeext
9530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9531 (eval $ac_link) 2>conftest.er1
9532 ac_status=$?
9533 grep -v '^ *+' conftest.er1 >conftest.err
9534 rm -f conftest.er1
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } &&
9538 { ac_try='test -z "$ac_c_werror_flag"
9539 || test ! -s conftest.err'
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); }; } &&
9545 { ac_try='test -s conftest$ac_exeext'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 (eval $ac_try) 2>&5
9548 ac_status=$?
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; }; then
9551 ac_cv_lib_svld_dlopen=yes
9552 else
9553 echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9556 ac_cv_lib_svld_dlopen=no
9558 rm -f conftest.err conftest.$ac_objext \
9559 conftest$ac_exeext conftest.$ac_ext
9560 LIBS=$ac_check_lib_save_LIBS
9562 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9563 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9564 if test $ac_cv_lib_svld_dlopen = yes; then
9565 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9566 else
9567 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9568 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9569 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9572 ac_check_lib_save_LIBS=$LIBS
9573 LIBS="-ldld $LIBS"
9574 cat >conftest.$ac_ext <<_ACEOF
9575 /* confdefs.h. */
9576 _ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9581 /* Override any gcc2 internal prototype to avoid an error. */
9582 #ifdef __cplusplus
9583 extern "C"
9584 #endif
9585 /* We use char because int might match the return type of a gcc2
9586 builtin and then its argument prototype would still apply. */
9587 char dld_link ();
9589 main ()
9591 dld_link ();
9593 return 0;
9595 _ACEOF
9596 rm -f conftest.$ac_objext conftest$ac_exeext
9597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9598 (eval $ac_link) 2>conftest.er1
9599 ac_status=$?
9600 grep -v '^ *+' conftest.er1 >conftest.err
9601 rm -f conftest.er1
9602 cat conftest.err >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } &&
9605 { ac_try='test -z "$ac_c_werror_flag"
9606 || test ! -s conftest.err'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 (eval $ac_try) 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; } &&
9612 { ac_try='test -s conftest$ac_exeext'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 (eval $ac_try) 2>&5
9615 ac_status=$?
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9618 ac_cv_lib_dld_dld_link=yes
9619 else
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 ac_cv_lib_dld_dld_link=no
9625 rm -f conftest.err conftest.$ac_objext \
9626 conftest$ac_exeext conftest.$ac_ext
9627 LIBS=$ac_check_lib_save_LIBS
9629 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9630 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9631 if test $ac_cv_lib_dld_dld_link = yes; then
9632 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9651 esac
9653 if test "x$lt_cv_dlopen" != xno; then
9654 enable_dlopen=yes
9655 else
9656 enable_dlopen=no
9659 case $lt_cv_dlopen in
9660 dlopen)
9661 save_CPPFLAGS="$CPPFLAGS"
9662 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9664 save_LDFLAGS="$LDFLAGS"
9665 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9667 save_LIBS="$LIBS"
9668 LIBS="$lt_cv_dlopen_libs $LIBS"
9670 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9671 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9672 if test "${lt_cv_dlopen_self+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9674 else
9675 if test "$cross_compiling" = yes; then :
9676 lt_cv_dlopen_self=cross
9677 else
9678 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9679 lt_status=$lt_dlunknown
9680 cat > conftest.$ac_ext <<_LT_EOF
9681 #line 9681 "configure"
9682 #include "confdefs.h"
9684 #if HAVE_DLFCN_H
9685 #include <dlfcn.h>
9686 #endif
9688 #include <stdio.h>
9690 #ifdef RTLD_GLOBAL
9691 # define LT_DLGLOBAL RTLD_GLOBAL
9692 #else
9693 # ifdef DL_GLOBAL
9694 # define LT_DLGLOBAL DL_GLOBAL
9695 # else
9696 # define LT_DLGLOBAL 0
9697 # endif
9698 #endif
9700 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9701 find out it does not work in some platform. */
9702 #ifndef LT_DLLAZY_OR_NOW
9703 # ifdef RTLD_LAZY
9704 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9705 # else
9706 # ifdef DL_LAZY
9707 # define LT_DLLAZY_OR_NOW DL_LAZY
9708 # else
9709 # ifdef RTLD_NOW
9710 # define LT_DLLAZY_OR_NOW RTLD_NOW
9711 # else
9712 # ifdef DL_NOW
9713 # define LT_DLLAZY_OR_NOW DL_NOW
9714 # else
9715 # define LT_DLLAZY_OR_NOW 0
9716 # endif
9717 # endif
9718 # endif
9719 # endif
9720 #endif
9722 #ifdef __cplusplus
9723 extern "C" void exit (int);
9724 #endif
9726 void fnord() { int i=42;}
9727 int main ()
9729 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9730 int status = $lt_dlunknown;
9732 if (self)
9734 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9735 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9736 /* dlclose (self); */
9738 else
9739 puts (dlerror ());
9741 exit (status);
9743 _LT_EOF
9744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9745 (eval $ac_link) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9749 (./conftest; exit; ) >&5 2>/dev/null
9750 lt_status=$?
9751 case x$lt_status in
9752 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9753 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9754 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9755 esac
9756 else :
9757 # compilation failed
9758 lt_cv_dlopen_self=no
9761 rm -fr conftest*
9765 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9766 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9768 if test "x$lt_cv_dlopen_self" = xyes; then
9769 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9770 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9771 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9772 if test "${lt_cv_dlopen_self_static+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 else
9775 if test "$cross_compiling" = yes; then :
9776 lt_cv_dlopen_self_static=cross
9777 else
9778 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9779 lt_status=$lt_dlunknown
9780 cat > conftest.$ac_ext <<_LT_EOF
9781 #line 9781 "configure"
9782 #include "confdefs.h"
9784 #if HAVE_DLFCN_H
9785 #include <dlfcn.h>
9786 #endif
9788 #include <stdio.h>
9790 #ifdef RTLD_GLOBAL
9791 # define LT_DLGLOBAL RTLD_GLOBAL
9792 #else
9793 # ifdef DL_GLOBAL
9794 # define LT_DLGLOBAL DL_GLOBAL
9795 # else
9796 # define LT_DLGLOBAL 0
9797 # endif
9798 #endif
9800 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9801 find out it does not work in some platform. */
9802 #ifndef LT_DLLAZY_OR_NOW
9803 # ifdef RTLD_LAZY
9804 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9805 # else
9806 # ifdef DL_LAZY
9807 # define LT_DLLAZY_OR_NOW DL_LAZY
9808 # else
9809 # ifdef RTLD_NOW
9810 # define LT_DLLAZY_OR_NOW RTLD_NOW
9811 # else
9812 # ifdef DL_NOW
9813 # define LT_DLLAZY_OR_NOW DL_NOW
9814 # else
9815 # define LT_DLLAZY_OR_NOW 0
9816 # endif
9817 # endif
9818 # endif
9819 # endif
9820 #endif
9822 #ifdef __cplusplus
9823 extern "C" void exit (int);
9824 #endif
9826 void fnord() { int i=42;}
9827 int main ()
9829 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9830 int status = $lt_dlunknown;
9832 if (self)
9834 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9835 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9836 /* dlclose (self); */
9838 else
9839 puts (dlerror ());
9841 exit (status);
9843 _LT_EOF
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); } && test -s conftest${ac_exeext} 2>/dev/null; then
9849 (./conftest; exit; ) >&5 2>/dev/null
9850 lt_status=$?
9851 case x$lt_status in
9852 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9853 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9854 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9855 esac
9856 else :
9857 # compilation failed
9858 lt_cv_dlopen_self_static=no
9861 rm -fr conftest*
9865 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9866 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9869 CPPFLAGS="$save_CPPFLAGS"
9870 LDFLAGS="$save_LDFLAGS"
9871 LIBS="$save_LIBS"
9873 esac
9875 case $lt_cv_dlopen_self in
9876 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9877 *) enable_dlopen_self=unknown ;;
9878 esac
9880 case $lt_cv_dlopen_self_static in
9881 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9882 *) enable_dlopen_self_static=unknown ;;
9883 esac
9902 striplib=
9903 old_striplib=
9904 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9905 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9906 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9907 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9908 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9909 echo "$as_me:$LINENO: result: yes" >&5
9910 echo "${ECHO_T}yes" >&6
9911 else
9912 # FIXME - insert some real tests, host_os isn't really good enough
9913 case $host_os in
9914 darwin*)
9915 if test -n "$STRIP" ; then
9916 striplib="$STRIP -x"
9917 old_striplib="$STRIP -S"
9918 echo "$as_me:$LINENO: result: yes" >&5
9919 echo "${ECHO_T}yes" >&6
9920 else
9921 echo "$as_me:$LINENO: result: no" >&5
9922 echo "${ECHO_T}no" >&6
9926 echo "$as_me:$LINENO: result: no" >&5
9927 echo "${ECHO_T}no" >&6
9929 esac
9943 # Report which library types will actually be built
9944 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9945 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9946 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9947 echo "${ECHO_T}$can_build_shared" >&6
9949 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9950 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9951 test "$can_build_shared" = "no" && enable_shared=no
9953 # On AIX, shared libraries and static libraries use the same namespace, and
9954 # are all built from PIC.
9955 case $host_os in
9956 aix3*)
9957 test "$enable_shared" = yes && enable_static=no
9958 if test -n "$RANLIB"; then
9959 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9960 postinstall_cmds='$RANLIB $lib'
9964 aix4* | aix5*)
9965 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9966 test "$enable_shared" = yes && enable_static=no
9969 esac
9970 echo "$as_me:$LINENO: result: $enable_shared" >&5
9971 echo "${ECHO_T}$enable_shared" >&6
9973 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9974 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9975 # Make sure either enable_shared or enable_static is yes.
9976 test "$enable_shared" = yes || enable_static=yes
9977 echo "$as_me:$LINENO: result: $enable_static" >&5
9978 echo "${ECHO_T}$enable_static" >&6
9984 ac_ext=c
9985 ac_cpp='$CPP $CPPFLAGS'
9986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9990 CC="$lt_save_CC"
10004 ac_config_commands="$ac_config_commands libtool"
10009 # Only expand once:
10015 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10016 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10017 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10018 if test "${enable_maintainer_mode+set}" = set; then
10019 enableval="$enable_maintainer_mode"
10020 USE_MAINTAINER_MODE=$enableval
10021 else
10022 USE_MAINTAINER_MODE=no
10024 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10025 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10028 if test $USE_MAINTAINER_MODE = yes; then
10029 MAINTAINER_MODE_TRUE=
10030 MAINTAINER_MODE_FALSE='#'
10031 else
10032 MAINTAINER_MODE_TRUE='#'
10033 MAINTAINER_MODE_FALSE=
10036 MAINT=$MAINTAINER_MODE_TRUE
10040 # We need gfortran to compile parts of the library
10041 # We can't use AC_PROG_FC because it expects a fully working gfortran.
10042 #AC_PROG_FC(gfortran)
10043 FC="$GFORTRAN"
10044 ac_ext=${FC_SRCEXT-f}
10045 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10046 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10047 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10048 if test -n "$ac_tool_prefix"; then
10049 for ac_prog in gfortran
10051 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10052 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10053 echo "$as_me:$LINENO: checking for $ac_word" >&5
10054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10055 if test "${ac_cv_prog_FC+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10057 else
10058 if test -n "$FC"; then
10059 ac_cv_prog_FC="$FC" # Let the user override the test.
10060 else
10061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10062 for as_dir in $PATH
10064 IFS=$as_save_IFS
10065 test -z "$as_dir" && as_dir=.
10066 for ac_exec_ext in '' $ac_executable_extensions; do
10067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10068 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10070 break 2
10072 done
10073 done
10077 FC=$ac_cv_prog_FC
10078 if test -n "$FC"; then
10079 echo "$as_me:$LINENO: result: $FC" >&5
10080 echo "${ECHO_T}$FC" >&6
10081 else
10082 echo "$as_me:$LINENO: result: no" >&5
10083 echo "${ECHO_T}no" >&6
10086 test -n "$FC" && break
10087 done
10089 if test -z "$FC"; then
10090 ac_ct_FC=$FC
10091 for ac_prog in gfortran
10093 # Extract the first word of "$ac_prog", so it can be a program name with args.
10094 set dummy $ac_prog; ac_word=$2
10095 echo "$as_me:$LINENO: checking for $ac_word" >&5
10096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10097 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10099 else
10100 if test -n "$ac_ct_FC"; then
10101 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10102 else
10103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104 for as_dir in $PATH
10106 IFS=$as_save_IFS
10107 test -z "$as_dir" && as_dir=.
10108 for ac_exec_ext in '' $ac_executable_extensions; do
10109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10110 ac_cv_prog_ac_ct_FC="$ac_prog"
10111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 break 2
10114 done
10115 done
10119 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10120 if test -n "$ac_ct_FC"; then
10121 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10122 echo "${ECHO_T}$ac_ct_FC" >&6
10123 else
10124 echo "$as_me:$LINENO: result: no" >&5
10125 echo "${ECHO_T}no" >&6
10128 test -n "$ac_ct_FC" && break
10129 done
10131 FC=$ac_ct_FC
10135 # Provide some information about the compiler.
10136 echo "$as_me:10136:" \
10137 "checking for Fortran compiler version" >&5
10138 ac_compiler=`set X $ac_compile; echo $2`
10139 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10140 (eval $ac_compiler --version </dev/null >&5) 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }
10144 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10145 (eval $ac_compiler -v </dev/null >&5) 2>&5
10146 ac_status=$?
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }
10149 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10150 (eval $ac_compiler -V </dev/null >&5) 2>&5
10151 ac_status=$?
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }
10154 rm -f a.out
10156 # If we don't use `.F' as extension, the preprocessor is not run on the
10157 # input file. (Note that this only needs to work for GNU compilers.)
10158 ac_save_ext=$ac_ext
10159 ac_ext=F
10160 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10161 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10162 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 else
10165 cat >conftest.$ac_ext <<_ACEOF
10166 program main
10167 #ifndef __GNUC__
10168 choke me
10169 #endif
10172 _ACEOF
10173 rm -f conftest.$ac_objext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10175 (eval $ac_compile) 2>conftest.er1
10176 ac_status=$?
10177 grep -v '^ *+' conftest.er1 >conftest.err
10178 rm -f conftest.er1
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } &&
10182 { ac_try='test -z "$ac_fc_werror_flag"
10183 || test ! -s conftest.err'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; } &&
10189 { ac_try='test -s conftest.$ac_objext'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; }; then
10195 ac_compiler_gnu=yes
10196 else
10197 echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10200 ac_compiler_gnu=no
10202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10203 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10206 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10207 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10208 ac_ext=$ac_save_ext
10209 ac_test_FFLAGS=${FCFLAGS+set}
10210 ac_save_FFLAGS=$FCFLAGS
10211 FCFLAGS=
10212 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10213 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10214 if test "${ac_cv_prog_fc_g+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 else
10217 FCFLAGS=-g
10218 cat >conftest.$ac_ext <<_ACEOF
10219 program main
10222 _ACEOF
10223 rm -f conftest.$ac_objext
10224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10225 (eval $ac_compile) 2>conftest.er1
10226 ac_status=$?
10227 grep -v '^ *+' conftest.er1 >conftest.err
10228 rm -f conftest.er1
10229 cat conftest.err >&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } &&
10232 { ac_try='test -z "$ac_fc_werror_flag"
10233 || test ! -s conftest.err'
10234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235 (eval $ac_try) 2>&5
10236 ac_status=$?
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); }; } &&
10239 { ac_try='test -s conftest.$ac_objext'
10240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241 (eval $ac_try) 2>&5
10242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; }; then
10245 ac_cv_prog_fc_g=yes
10246 else
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10250 ac_cv_prog_fc_g=no
10252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10255 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10256 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10257 if test "$ac_test_FFLAGS" = set; then
10258 FCFLAGS=$ac_save_FFLAGS
10259 elif test $ac_cv_prog_fc_g = yes; then
10260 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10261 FCFLAGS="-g -O2"
10262 else
10263 FCFLAGS="-g"
10265 else
10266 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10267 FCFLAGS="-O2"
10268 else
10269 FCFLAGS=
10273 ac_ext=c
10274 ac_cpp='$CPP $CPPFLAGS'
10275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10280 ac_ext=${FC_SRCEXT-f}
10281 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10282 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10283 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10284 if test -n "$ac_tool_prefix"; then
10285 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10288 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10289 echo "$as_me:$LINENO: checking for $ac_word" >&5
10290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10291 if test "${ac_cv_prog_FC+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294 if test -n "$FC"; then
10295 ac_cv_prog_FC="$FC" # Let the user override the test.
10296 else
10297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298 for as_dir in $PATH
10300 IFS=$as_save_IFS
10301 test -z "$as_dir" && as_dir=.
10302 for ac_exec_ext in '' $ac_executable_extensions; do
10303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10304 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10306 break 2
10308 done
10309 done
10313 FC=$ac_cv_prog_FC
10314 if test -n "$FC"; then
10315 echo "$as_me:$LINENO: result: $FC" >&5
10316 echo "${ECHO_T}$FC" >&6
10317 else
10318 echo "$as_me:$LINENO: result: no" >&5
10319 echo "${ECHO_T}no" >&6
10322 test -n "$FC" && break
10323 done
10325 if test -z "$FC"; then
10326 ac_ct_FC=$FC
10327 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10329 # Extract the first word of "$ac_prog", so it can be a program name with args.
10330 set dummy $ac_prog; ac_word=$2
10331 echo "$as_me:$LINENO: checking for $ac_word" >&5
10332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10333 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
10335 else
10336 if test -n "$ac_ct_FC"; then
10337 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10338 else
10339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10340 for as_dir in $PATH
10342 IFS=$as_save_IFS
10343 test -z "$as_dir" && as_dir=.
10344 for ac_exec_ext in '' $ac_executable_extensions; do
10345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10346 ac_cv_prog_ac_ct_FC="$ac_prog"
10347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10348 break 2
10350 done
10351 done
10355 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10356 if test -n "$ac_ct_FC"; then
10357 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10358 echo "${ECHO_T}$ac_ct_FC" >&6
10359 else
10360 echo "$as_me:$LINENO: result: no" >&5
10361 echo "${ECHO_T}no" >&6
10364 test -n "$ac_ct_FC" && break
10365 done
10367 FC=$ac_ct_FC
10371 # Provide some information about the compiler.
10372 echo "$as_me:10372:" \
10373 "checking for Fortran compiler version" >&5
10374 ac_compiler=`set X $ac_compile; echo $2`
10375 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10376 (eval $ac_compiler --version </dev/null >&5) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }
10380 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10381 (eval $ac_compiler -v </dev/null >&5) 2>&5
10382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }
10385 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10386 (eval $ac_compiler -V </dev/null >&5) 2>&5
10387 ac_status=$?
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }
10390 rm -f a.out
10392 # If we don't use `.F' as extension, the preprocessor is not run on the
10393 # input file. (Note that this only needs to work for GNU compilers.)
10394 ac_save_ext=$ac_ext
10395 ac_ext=F
10396 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10397 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10398 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10399 echo $ECHO_N "(cached) $ECHO_C" >&6
10400 else
10401 cat >conftest.$ac_ext <<_ACEOF
10402 program main
10403 #ifndef __GNUC__
10404 choke me
10405 #endif
10408 _ACEOF
10409 rm -f conftest.$ac_objext
10410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10411 (eval $ac_compile) 2>conftest.er1
10412 ac_status=$?
10413 grep -v '^ *+' conftest.er1 >conftest.err
10414 rm -f conftest.er1
10415 cat conftest.err >&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } &&
10418 { ac_try='test -z "$ac_fc_werror_flag"
10419 || test ! -s conftest.err'
10420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421 (eval $ac_try) 2>&5
10422 ac_status=$?
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; } &&
10425 { ac_try='test -s conftest.$ac_objext'
10426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427 (eval $ac_try) 2>&5
10428 ac_status=$?
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; }; then
10431 ac_compiler_gnu=yes
10432 else
10433 echo "$as_me: failed program was:" >&5
10434 sed 's/^/| /' conftest.$ac_ext >&5
10436 ac_compiler_gnu=no
10438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10439 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10442 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10443 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10444 ac_ext=$ac_save_ext
10445 ac_test_FFLAGS=${FCFLAGS+set}
10446 ac_save_FFLAGS=$FCFLAGS
10447 FCFLAGS=
10448 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10449 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10450 if test "${ac_cv_prog_fc_g+set}" = set; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
10452 else
10453 FCFLAGS=-g
10454 cat >conftest.$ac_ext <<_ACEOF
10455 program main
10458 _ACEOF
10459 rm -f conftest.$ac_objext
10460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10461 (eval $ac_compile) 2>conftest.er1
10462 ac_status=$?
10463 grep -v '^ *+' conftest.er1 >conftest.err
10464 rm -f conftest.er1
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } &&
10468 { ac_try='test -z "$ac_fc_werror_flag"
10469 || test ! -s conftest.err'
10470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471 (eval $ac_try) 2>&5
10472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; } &&
10475 { ac_try='test -s conftest.$ac_objext'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; }; then
10481 ac_cv_prog_fc_g=yes
10482 else
10483 echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10486 ac_cv_prog_fc_g=no
10488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10491 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10492 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10493 if test "$ac_test_FFLAGS" = set; then
10494 FCFLAGS=$ac_save_FFLAGS
10495 elif test $ac_cv_prog_fc_g = yes; then
10496 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10497 FCFLAGS="-g -O2"
10498 else
10499 FCFLAGS="-g"
10501 else
10502 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10503 FCFLAGS="-O2"
10504 else
10505 FCFLAGS=
10509 ac_ext=c
10510 ac_cpp='$CPP $CPPFLAGS'
10511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10515 if test -z "$FC" || test "X$FC" = "Xno"; then
10516 _lt_disable_FC=yes
10521 ac_ext=${FC_SRCEXT-f}
10522 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10523 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10524 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10527 archive_cmds_need_lc_FC=no
10528 allow_undefined_flag_FC=
10529 always_export_symbols_FC=no
10530 archive_expsym_cmds_FC=
10531 export_dynamic_flag_spec_FC=
10532 hardcode_direct_FC=no
10533 hardcode_direct_absolute_FC=no
10534 hardcode_libdir_flag_spec_FC=
10535 hardcode_libdir_flag_spec_ld_FC=
10536 hardcode_libdir_separator_FC=
10537 hardcode_minus_L_FC=no
10538 hardcode_automatic_FC=no
10539 inherit_rpath_FC=no
10540 module_cmds_FC=
10541 module_expsym_cmds_FC=
10542 link_all_deplibs_FC=unknown
10543 old_archive_cmds_FC=$old_archive_cmds
10544 no_undefined_flag_FC=
10545 whole_archive_flag_spec_FC=
10546 enable_shared_with_static_runtimes_FC=no
10548 # Source file extension for fc test sources.
10549 ac_ext=${ac_fc_srcext-f}
10551 # Object file extension for compiled fc test sources.
10552 objext=o
10553 objext_FC=$objext
10555 # No sense in running all these tests if we already determined that
10556 # the FC compiler isn't working. Some variables (like enable_shared)
10557 # are currently assumed to apply to all compilers on this platform,
10558 # and will be corrupted by setting them based on a non-working compiler.
10559 if test "$_lt_disable_FC" != yes; then
10560 # Code to be used in simple compile tests
10561 lt_simple_compile_test_code="\
10562 subroutine t
10563 return
10567 # Code to be used in simple link tests
10568 lt_simple_link_test_code="\
10569 program t
10573 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10580 # If no C compiler was specified, use CC.
10581 LTCC=${LTCC-"$CC"}
10583 # If no C compiler flags were specified, use CFLAGS.
10584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10586 # Allow CC to be a program name with arguments.
10587 compiler=$CC
10590 # save warnings/boilerplate of simple test code
10591 ac_outfile=conftest.$ac_objext
10592 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10593 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10594 _lt_compiler_boilerplate=`cat conftest.err`
10595 $RM conftest*
10597 ac_outfile=conftest.$ac_objext
10598 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10599 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10600 _lt_linker_boilerplate=`cat conftest.err`
10601 $RM conftest*
10604 # Allow CC to be a program name with arguments.
10605 lt_save_CC="$CC"
10606 CC=${FC-"f95"}
10607 compiler=$CC
10608 compiler_FC=$CC
10609 for cc_temp in $compiler""; do
10610 case $cc_temp in
10611 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10612 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10613 \-*) ;;
10614 *) break;;
10615 esac
10616 done
10617 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10620 if test -n "$compiler"; then
10621 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10622 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10623 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10624 echo "${ECHO_T}$can_build_shared" >&6
10626 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10627 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10628 test "$can_build_shared" = "no" && enable_shared=no
10630 # On AIX, shared libraries and static libraries use the same namespace, and
10631 # are all built from PIC.
10632 case $host_os in
10633 aix3*)
10634 test "$enable_shared" = yes && enable_static=no
10635 if test -n "$RANLIB"; then
10636 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10637 postinstall_cmds='$RANLIB $lib'
10640 aix4* | aix5*)
10641 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10642 test "$enable_shared" = yes && enable_static=no
10645 esac
10646 echo "$as_me:$LINENO: result: $enable_shared" >&5
10647 echo "${ECHO_T}$enable_shared" >&6
10649 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10650 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10651 # Make sure either enable_shared or enable_static is yes.
10652 test "$enable_shared" = yes || enable_static=yes
10653 echo "$as_me:$LINENO: result: $enable_static" >&5
10654 echo "${ECHO_T}$enable_static" >&6
10656 GCC_FC="$ac_cv_fc_compiler_gnu"
10657 LD_FC="$LD"
10659 ## CAVEAT EMPTOR:
10660 ## There is no encapsulation within the following macros, do not change
10661 ## the running order or otherwise move them around unless you know exactly
10662 ## what you are doing...
10663 # Dependencies to place before and after the object being linked:
10664 predep_objects_FC=
10665 postdep_objects_FC=
10666 predeps_FC=
10667 postdeps_FC=
10668 compiler_lib_search_path_FC=
10670 cat > conftest.$ac_ext <<_LT_EOF
10671 subroutine foo
10672 implicit none
10673 integer a
10675 return
10677 _LT_EOF
10679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10680 (eval $ac_compile) 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; then
10684 # Parse the compiler output and extract the necessary
10685 # objects, libraries and library flags.
10687 # Sentinel used to keep track of whether or not we are before
10688 # the conftest object file.
10689 pre_test_object_deps_done=no
10691 # The `*' in the case matches for architectures that use `case' in
10692 # $output_verbose_cmd can trigger glob expansion during the loop
10693 # eval without this substitution.
10694 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10696 for p in `eval $output_verbose_link_cmd`; do
10697 case $p in
10699 -L* | -R* | -l*)
10700 # Some compilers place space between "-{L,R}" and the path.
10701 # Remove the space.
10702 if test $p = "-L" ||
10703 test $p = "-R"; then
10704 prev=$p
10705 continue
10706 else
10707 prev=
10710 if test "$pre_test_object_deps_done" = no; then
10711 case $p in
10712 -L* | -R*)
10713 # Internal compiler library paths should come after those
10714 # provided the user. The postdeps already come after the
10715 # user supplied libs so there is no need to process them.
10716 if test -z "$compiler_lib_search_path_FC"; then
10717 compiler_lib_search_path_FC="${prev}${p}"
10718 else
10719 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
10722 # The "-l" case would never come before the object being
10723 # linked, so don't bother handling this case.
10724 esac
10725 else
10726 if test -z "$postdeps_FC"; then
10727 postdeps_FC="${prev}${p}"
10728 else
10729 postdeps_FC="${postdeps_FC} ${prev}${p}"
10734 *.$objext)
10735 # This assumes that the test object file only shows up
10736 # once in the compiler output.
10737 if test "$p" = "conftest.$objext"; then
10738 pre_test_object_deps_done=yes
10739 continue
10742 if test "$pre_test_object_deps_done" = no; then
10743 if test -z "$predep_objects_FC"; then
10744 predep_objects_FC="$p"
10745 else
10746 predep_objects_FC="$predep_objects_FC $p"
10748 else
10749 if test -z "$postdep_objects_FC"; then
10750 postdep_objects_FC="$p"
10751 else
10752 postdep_objects_FC="$postdep_objects_FC $p"
10757 *) ;; # Ignore the rest.
10759 esac
10760 done
10762 # Clean up.
10763 rm -f a.out a.exe
10764 else
10765 echo "libtool.m4: error: problem compiling FC test program"
10768 $RM -f confest.$objext
10770 # PORTME: override above test on systems where it is broken
10773 case " $postdeps_FC " in
10774 *" -lc "*) archive_cmds_need_lc_FC=no ;;
10775 esac
10802 lt_prog_compiler_wl_FC=
10803 lt_prog_compiler_pic_FC=
10804 lt_prog_compiler_static_FC=
10806 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10807 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10809 if test "$GCC" = yes; then
10810 lt_prog_compiler_wl_FC='-Wl,'
10811 lt_prog_compiler_static_FC='-static'
10813 case $host_os in
10814 aix*)
10815 # All AIX code is PIC.
10816 if test "$host_cpu" = ia64; then
10817 # AIX 5 now supports IA64 processor
10818 lt_prog_compiler_static_FC='-Bstatic'
10822 amigaos*)
10823 if test "$host_cpu" = m68k; then
10824 # FIXME: we need at least 68020 code to build shared libraries, but
10825 # adding the `-m68020' flag to GCC prevents building anything better,
10826 # like `-m68040'.
10827 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
10831 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10832 # PIC is the default for these OSes.
10835 mingw* | cygwin* | pw32* | os2*)
10836 # This hack is so that the source file can tell whether it is being
10837 # built for inclusion in a dll (and should export symbols for example).
10838 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10839 # (--disable-auto-import) libraries
10840 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10843 darwin* | rhapsody*)
10844 # PIC is the default on this platform
10845 # Common symbols not allowed in MH_DYLIB files
10846 lt_prog_compiler_pic_FC='-fno-common'
10849 hpux*)
10850 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10851 # not for PA HP-UX.
10852 case $host_cpu in
10853 hppa*64*|ia64*)
10854 # +Z the default
10857 lt_prog_compiler_pic_FC='-fPIC'
10859 esac
10862 interix[3-9]*)
10863 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10864 # Instead, we relocate shared libraries at runtime.
10867 msdosdjgpp*)
10868 # Just because we use GCC doesn't mean we suddenly get shared libraries
10869 # on systems that don't support them.
10870 lt_prog_compiler_can_build_shared_FC=no
10871 enable_shared=no
10874 *nto* | *qnx*)
10875 # QNX uses GNU C++, but need to define -shared option too, otherwise
10876 # it will coredump.
10877 lt_prog_compiler_pic_FC='-fPIC -shared'
10880 sysv4*MP*)
10881 if test -d /usr/nec; then
10882 lt_prog_compiler_pic_FC=-Kconform_pic
10887 lt_prog_compiler_pic_FC='-fPIC'
10889 esac
10890 else
10891 # PORTME Check for flag to pass linker flags through the system compiler.
10892 case $host_os in
10893 aix*)
10894 lt_prog_compiler_wl_FC='-Wl,'
10895 if test "$host_cpu" = ia64; then
10896 # AIX 5 now supports IA64 processor
10897 lt_prog_compiler_static_FC='-Bstatic'
10898 else
10899 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
10902 darwin*)
10903 # PIC is the default on this platform
10904 # Common symbols not allowed in MH_DYLIB files
10905 case $cc_basename in
10906 xlc*)
10907 lt_prog_compiler_pic_FC='-qnocommon'
10908 lt_prog_compiler_wl_FC='-Wl,'
10910 esac
10913 mingw* | cygwin* | pw32* | os2*)
10914 # This hack is so that the source file can tell whether it is being
10915 # built for inclusion in a dll (and should export symbols for example).
10916 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10919 hpux9* | hpux10* | hpux11*)
10920 lt_prog_compiler_wl_FC='-Wl,'
10921 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10922 # not for PA HP-UX.
10923 case $host_cpu in
10924 hppa*64*|ia64*)
10925 # +Z the default
10928 lt_prog_compiler_pic_FC='+Z'
10930 esac
10931 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10932 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
10935 irix5* | irix6* | nonstopux*)
10936 lt_prog_compiler_wl_FC='-Wl,'
10937 # PIC (with -KPIC) is the default.
10938 lt_prog_compiler_static_FC='-non_shared'
10941 linux* | k*bsd*-gnu)
10942 case $cc_basename in
10943 icc* | ecc*)
10944 lt_prog_compiler_wl_FC='-Wl,'
10945 lt_prog_compiler_pic_FC='-KPIC'
10946 lt_prog_compiler_static_FC='-static'
10948 pgcc* | pgf77* | pgf90* | pgf95*)
10949 # Portland Group compilers (*not* the Pentium gcc compiler,
10950 # which looks to be a dead project)
10951 lt_prog_compiler_wl_FC='-Wl,'
10952 lt_prog_compiler_pic_FC='-fpic'
10953 lt_prog_compiler_static_FC='-Bstatic'
10955 ccc*)
10956 lt_prog_compiler_wl_FC='-Wl,'
10957 # All Alpha code is PIC.
10958 lt_prog_compiler_static_FC='-non_shared'
10961 case `$CC -V 2>&1 | sed 5q` in
10962 *Sun\ C*)
10963 # Sun C 5.9
10964 lt_prog_compiler_pic_FC='-KPIC'
10965 lt_prog_compiler_static_FC='-Bstatic'
10966 lt_prog_compiler_wl_FC='-Wl,'
10968 *Sun\ F*)
10969 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10970 lt_prog_compiler_pic_FC='-KPIC'
10971 lt_prog_compiler_static_FC='-Bstatic'
10972 lt_prog_compiler_wl_FC=''
10974 esac
10976 esac
10979 newsos6)
10980 lt_prog_compiler_pic_FC='-KPIC'
10981 lt_prog_compiler_static_FC='-Bstatic'
10984 *nto* | *qnx*)
10985 # QNX uses GNU C++, but need to define -shared option too, otherwise
10986 # it will coredump.
10987 lt_prog_compiler_pic_FC='-fPIC -shared'
10990 osf3* | osf4* | osf5*)
10991 lt_prog_compiler_wl_FC='-Wl,'
10992 # All OSF/1 code is PIC.
10993 lt_prog_compiler_static_FC='-non_shared'
10996 rdos*)
10997 lt_prog_compiler_static_FC='-non_shared'
11000 solaris*)
11001 lt_prog_compiler_pic_FC='-KPIC'
11002 lt_prog_compiler_static_FC='-Bstatic'
11003 case $cc_basename in
11004 f77* | f90* | f95*)
11005 lt_prog_compiler_wl_FC='-Qoption ld ';;
11007 lt_prog_compiler_wl_FC='-Wl,';;
11008 esac
11011 sunos4*)
11012 lt_prog_compiler_wl_FC='-Qoption ld '
11013 lt_prog_compiler_pic_FC='-PIC'
11014 lt_prog_compiler_static_FC='-Bstatic'
11017 sysv4 | sysv4.2uw2* | sysv4.3*)
11018 lt_prog_compiler_wl_FC='-Wl,'
11019 lt_prog_compiler_pic_FC='-KPIC'
11020 lt_prog_compiler_static_FC='-Bstatic'
11023 sysv4*MP*)
11024 if test -d /usr/nec ;then
11025 lt_prog_compiler_pic_FC='-Kconform_pic'
11026 lt_prog_compiler_static_FC='-Bstatic'
11030 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11031 lt_prog_compiler_wl_FC='-Wl,'
11032 lt_prog_compiler_pic_FC='-KPIC'
11033 lt_prog_compiler_static_FC='-Bstatic'
11036 unicos*)
11037 lt_prog_compiler_wl_FC='-Wl,'
11038 lt_prog_compiler_can_build_shared_FC=no
11041 uts4*)
11042 lt_prog_compiler_pic_FC='-pic'
11043 lt_prog_compiler_static_FC='-Bstatic'
11047 lt_prog_compiler_can_build_shared_FC=no
11049 esac
11052 case $host_os in
11053 # For platforms which do not support PIC, -DPIC is meaningless:
11054 *djgpp*)
11055 lt_prog_compiler_pic_FC=
11058 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11060 esac
11061 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11062 echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
11067 # Check to make sure the PIC flag actually works.
11069 if test -n "$lt_prog_compiler_pic_FC"; then
11070 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11071 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
11072 if test "${lt_prog_compiler_pic_works_FC+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 else
11075 lt_prog_compiler_pic_works_FC=no
11076 ac_outfile=conftest.$ac_objext
11077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11078 lt_compiler_flag="$lt_prog_compiler_pic_FC"
11079 # Insert the option either (1) after the last *FLAGS variable, or
11080 # (2) before a word containing "conftest.", or (3) at the end.
11081 # Note that $ac_compile itself does not contain backslashes and begins
11082 # with a dollar sign (not a hyphen), so the echo should work correctly.
11083 # The option is referenced via a variable to avoid confusing sed.
11084 lt_compile=`echo "$ac_compile" | $SED \
11085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11087 -e 's:$: $lt_compiler_flag:'`
11088 (eval echo "\"\$as_me:11088: $lt_compile\"" >&5)
11089 (eval "$lt_compile" 2>conftest.err)
11090 ac_status=$?
11091 cat conftest.err >&5
11092 echo "$as_me:11092: \$? = $ac_status" >&5
11093 if (exit $ac_status) && test -s "$ac_outfile"; then
11094 # The compiler can only warn and ignore the option if not recognized
11095 # So say no if there are warnings other than the usual output.
11096 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11097 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11098 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11099 lt_prog_compiler_pic_works_FC=yes
11102 $RM conftest*
11105 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_FC" >&5
11106 echo "${ECHO_T}$lt_prog_compiler_pic_works_FC" >&6
11108 if test x"$lt_prog_compiler_pic_works_FC" = xyes; then
11109 case $lt_prog_compiler_pic_FC in
11110 "" | " "*) ;;
11111 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11112 esac
11113 else
11114 lt_prog_compiler_pic_FC=
11115 lt_prog_compiler_can_build_shared_FC=no
11123 # Check to make sure the static flag actually works.
11125 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
11126 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11127 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11128 if test "${lt_prog_compiler_static_works_FC+set}" = set; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11130 else
11131 lt_prog_compiler_static_works_FC=no
11132 save_LDFLAGS="$LDFLAGS"
11133 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11134 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11135 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11136 # The linker can only warn and ignore the option if not recognized
11137 # So say no if there are warnings
11138 if test -s conftest.err; then
11139 # Append any errors to the config.log.
11140 cat conftest.err 1>&5
11141 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11143 if diff conftest.exp conftest.er2 >/dev/null; then
11144 lt_prog_compiler_static_works_FC=yes
11146 else
11147 lt_prog_compiler_static_works_FC=yes
11150 $RM conftest*
11151 LDFLAGS="$save_LDFLAGS"
11154 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_FC" >&5
11155 echo "${ECHO_T}$lt_prog_compiler_static_works_FC" >&6
11157 if test x"$lt_prog_compiler_static_works_FC" = xyes; then
11159 else
11160 lt_prog_compiler_static_FC=
11166 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11167 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11168 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
11170 else
11171 lt_cv_prog_compiler_c_o_FC=no
11172 $RM -r conftest 2>/dev/null
11173 mkdir conftest
11174 cd conftest
11175 mkdir out
11176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11178 lt_compiler_flag="-o out/conftest2.$ac_objext"
11179 # Insert the option either (1) after the last *FLAGS variable, or
11180 # (2) before a word containing "conftest.", or (3) at the end.
11181 # Note that $ac_compile itself does not contain backslashes and begins
11182 # with a dollar sign (not a hyphen), so the echo should work correctly.
11183 lt_compile=`echo "$ac_compile" | $SED \
11184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11186 -e 's:$: $lt_compiler_flag:'`
11187 (eval echo "\"\$as_me:11187: $lt_compile\"" >&5)
11188 (eval "$lt_compile" 2>out/conftest.err)
11189 ac_status=$?
11190 cat out/conftest.err >&5
11191 echo "$as_me:11191: \$? = $ac_status" >&5
11192 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11193 then
11194 # The compiler can only warn and ignore the option if not recognized
11195 # So say no if there are warnings
11196 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11197 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11198 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11199 lt_cv_prog_compiler_c_o_FC=yes
11202 chmod u+w . 2>&5
11203 $RM conftest*
11204 # SGI C++ compiler will create directory out/ii_files/ for
11205 # template instantiation
11206 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11207 $RM out/* && rmdir out
11208 cd ..
11209 $RM -r conftest
11210 $RM conftest*
11213 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11214 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11218 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11219 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11220 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11222 else
11223 lt_cv_prog_compiler_c_o_FC=no
11224 $RM -r conftest 2>/dev/null
11225 mkdir conftest
11226 cd conftest
11227 mkdir out
11228 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11230 lt_compiler_flag="-o out/conftest2.$ac_objext"
11231 # Insert the option either (1) after the last *FLAGS variable, or
11232 # (2) before a word containing "conftest.", or (3) at the end.
11233 # Note that $ac_compile itself does not contain backslashes and begins
11234 # with a dollar sign (not a hyphen), so the echo should work correctly.
11235 lt_compile=`echo "$ac_compile" | $SED \
11236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11238 -e 's:$: $lt_compiler_flag:'`
11239 (eval echo "\"\$as_me:11239: $lt_compile\"" >&5)
11240 (eval "$lt_compile" 2>out/conftest.err)
11241 ac_status=$?
11242 cat out/conftest.err >&5
11243 echo "$as_me:11243: \$? = $ac_status" >&5
11244 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11245 then
11246 # The compiler can only warn and ignore the option if not recognized
11247 # So say no if there are warnings
11248 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11249 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11250 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11251 lt_cv_prog_compiler_c_o_FC=yes
11254 chmod u+w . 2>&5
11255 $RM conftest*
11256 # SGI C++ compiler will create directory out/ii_files/ for
11257 # template instantiation
11258 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11259 $RM out/* && rmdir out
11260 cd ..
11261 $RM -r conftest
11262 $RM conftest*
11265 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11266 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11271 hard_links="nottested"
11272 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
11273 # do not overwrite the value of need_locks provided by the user
11274 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11275 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11276 hard_links=yes
11277 $RM conftest*
11278 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11279 touch conftest.a
11280 ln conftest.a conftest.b 2>&5 || hard_links=no
11281 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11282 echo "$as_me:$LINENO: result: $hard_links" >&5
11283 echo "${ECHO_T}$hard_links" >&6
11284 if test "$hard_links" = no; then
11285 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11286 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11287 need_locks=warn
11289 else
11290 need_locks=no
11295 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11296 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11298 runpath_var=
11299 allow_undefined_flag_FC=
11300 always_export_symbols_FC=no
11301 archive_cmds_FC=
11302 archive_expsym_cmds_FC=
11303 compiler_needs_object_FC=no
11304 enable_shared_with_static_runtimes_FC=no
11305 export_dynamic_flag_spec_FC=
11306 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11307 hardcode_automatic_FC=no
11308 hardcode_direct_FC=no
11309 hardcode_direct_absolute_FC=no
11310 hardcode_libdir_flag_spec_FC=
11311 hardcode_libdir_flag_spec_ld_FC=
11312 hardcode_libdir_separator_FC=
11313 hardcode_minus_L_FC=no
11314 hardcode_shlibpath_var_FC=unsupported
11315 inherit_rpath_FC=no
11316 link_all_deplibs_FC=unknown
11317 module_cmds_FC=
11318 module_expsym_cmds_FC=
11319 old_archive_from_new_cmds_FC=
11320 old_archive_from_expsyms_cmds_FC=
11321 thread_safe_flag_spec_FC=
11322 whole_archive_flag_spec_FC=
11323 # include_expsyms should be a list of space-separated symbols to be *always*
11324 # included in the symbol list
11325 include_expsyms_FC=
11326 # exclude_expsyms can be an extended regexp of symbols to exclude
11327 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11328 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11329 # as well as any symbol that contains `d'.
11330 exclude_expsyms_FC="_GLOBAL_OFFSET_TABLE_"
11331 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11332 # platforms (ab)use it in PIC code, but their linkers get confused if
11333 # the symbol is explicitly referenced. Since portable code cannot
11334 # rely on this symbol name, it's probably fine to never include it in
11335 # preloaded symbol tables.
11336 extract_expsyms_cmds=
11338 case $host_os in
11339 cygwin* | mingw* | pw32*)
11340 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11341 # When not using gcc, we currently assume that we are using
11342 # Microsoft Visual C++.
11343 if test "$GCC" != yes; then
11344 with_gnu_ld=no
11347 interix*)
11348 # we just hope/assume this is gcc and not c89 (= MSVC++)
11349 with_gnu_ld=yes
11351 openbsd*)
11352 with_gnu_ld=no
11354 esac
11356 ld_shlibs_FC=yes
11357 if test "$with_gnu_ld" = yes; then
11358 # If archive_cmds runs LD, not CC, wlarc should be empty
11359 wlarc='${wl}'
11361 # Set some defaults for GNU ld with shared library support. These
11362 # are reset later if shared libraries are not supported. Putting them
11363 # here allows them to be overridden if necessary.
11364 runpath_var=LD_RUN_PATH
11365 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11366 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
11367 # ancient GNU ld didn't support --whole-archive et. al.
11368 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11369 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11370 else
11371 whole_archive_flag_spec_FC=
11373 supports_anon_versioning=no
11374 case `$LD -v 2>&1` in
11375 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11376 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11377 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11378 *\ 2.11.*) ;; # other 2.11 versions
11379 *) supports_anon_versioning=yes ;;
11380 esac
11382 # See if GNU ld supports shared libraries.
11383 case $host_os in
11384 aix3* | aix4* | aix5*)
11385 # On AIX/PPC, the GNU linker is very broken
11386 if test "$host_cpu" != ia64; then
11387 ld_shlibs_FC=no
11388 cat <<_LT_EOF 1>&2
11390 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11391 *** to be unable to reliably create shared libraries on AIX.
11392 *** Therefore, libtool is disabling shared libraries support. If you
11393 *** really care for shared libraries, you may want to modify your PATH
11394 *** so that a non-GNU linker is found, and then restart.
11396 _LT_EOF
11400 amigaos*)
11401 if test "$host_cpu" = m68k; then
11402 archive_cmds_FC='$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)'
11403 hardcode_libdir_flag_spec_FC='-L$libdir'
11404 hardcode_minus_L_FC=yes
11407 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11408 # that the semantics of dynamic libraries on AmigaOS, at least up
11409 # to version 4, is to share data among multiple programs linked
11410 # with the same dynamic library. Since this doesn't match the
11411 # behavior of shared libraries on other platforms, we can't use
11412 # them.
11413 ld_shlibs_FC=no
11416 beos*)
11417 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11418 allow_undefined_flag_FC=unsupported
11419 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11420 # support --undefined. This deserves some investigation. FIXME
11421 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11422 else
11423 ld_shlibs_FC=no
11427 cygwin* | mingw* | pw32*)
11428 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
11429 # as there is no search path for DLLs.
11430 hardcode_libdir_flag_spec_FC='-L$libdir'
11431 allow_undefined_flag_FC=unsupported
11432 always_export_symbols_FC=no
11433 enable_shared_with_static_runtimes_FC=yes
11434 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11436 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11437 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11438 # If the export-symbols file already is a .def file (1st line
11439 # is EXPORTS), use it as is; otherwise, prepend...
11440 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11441 cp $export_symbols $output_objdir/$soname.def;
11442 else
11443 echo EXPORTS > $output_objdir/$soname.def;
11444 cat $export_symbols >> $output_objdir/$soname.def;
11446 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11447 else
11448 ld_shlibs_FC=no
11452 interix[3-9]*)
11453 hardcode_direct_FC=no
11454 hardcode_shlibpath_var_FC=no
11455 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
11456 export_dynamic_flag_spec_FC='${wl}-E'
11457 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11458 # Instead, shared libraries are loaded at an image base (0x10000000 by
11459 # default) and relocated if they conflict, which is a slow very memory
11460 # consuming and fragmenting process. To avoid this, we pick a random,
11461 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11462 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11463 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11464 archive_expsym_cmds_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11467 gnu* | linux* | tpf* | k*bsd*-gnu)
11468 tmp_diet=no
11469 if test "$host_os" = linux-dietlibc; then
11470 case $cc_basename in
11471 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11472 esac
11474 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11475 && test "$tmp_diet" = no
11476 then
11477 tmp_addflag=
11478 case $cc_basename,$host_cpu in
11479 pgcc*) # Portland Group C compiler
11480 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11481 tmp_addflag=' $pic_flag'
11483 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11484 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11485 tmp_addflag=' $pic_flag -Mnomain' ;;
11486 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11487 tmp_addflag=' -i_dynamic' ;;
11488 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11489 tmp_addflag=' -i_dynamic -nofor_main' ;;
11490 ifc* | ifort*) # Intel Fortran compiler
11491 tmp_addflag=' -nofor_main' ;;
11492 esac
11493 case `$CC -V 2>&1 | sed 5q` in
11494 *Sun\ C*) # Sun C 5.9
11495 whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11496 compiler_needs_object_FC=yes
11497 tmp_sharedflag='-G' ;;
11498 *Sun\ F*) # Sun Fortran 8.3
11499 tmp_sharedflag='-G' ;;
11501 tmp_sharedflag='-shared' ;;
11502 esac
11503 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11505 if test "x$supports_anon_versioning" = xyes; then
11506 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
11507 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11508 echo "local: *; };" >> $output_objdir/$libname.ver~
11509 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11511 else
11512 ld_shlibs_FC=no
11516 netbsd*)
11517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11518 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11519 wlarc=
11520 else
11521 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11522 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11526 solaris*)
11527 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11528 ld_shlibs_FC=no
11529 cat <<_LT_EOF 1>&2
11531 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11532 *** create shared libraries on Solaris systems. Therefore, libtool
11533 *** is disabling shared libraries support. We urge you to upgrade GNU
11534 *** binutils to release 2.9.1 or newer. Another option is to modify
11535 *** your PATH or compiler configuration so that the native linker is
11536 *** used, and then restart.
11538 _LT_EOF
11539 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11540 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11541 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11542 else
11543 ld_shlibs_FC=no
11547 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11548 case `$LD -v 2>&1` in
11549 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11550 ld_shlibs_FC=no
11551 cat <<_LT_EOF 1>&2
11553 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11554 *** reliably create shared libraries on SCO systems. Therefore, libtool
11555 *** is disabling shared libraries support. We urge you to upgrade GNU
11556 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11557 *** your PATH or compiler configuration so that the native linker is
11558 *** used, and then restart.
11560 _LT_EOF
11563 # For security reasons, it is highly recommended that you always
11564 # use absolute paths for naming shared libraries, and exclude the
11565 # DT_RUNPATH tag from executables and libraries. But doing so
11566 # requires that you compile everything twice, which is a pain.
11567 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11568 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11569 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11570 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11571 else
11572 ld_shlibs_FC=no
11575 esac
11578 sunos4*)
11579 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11580 wlarc=
11581 hardcode_direct_FC=yes
11582 hardcode_shlibpath_var_FC=no
11586 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11587 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11588 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11589 else
11590 ld_shlibs_FC=no
11593 esac
11595 if test "$ld_shlibs_FC" = no; then
11596 runpath_var=
11597 hardcode_libdir_flag_spec_FC=
11598 export_dynamic_flag_spec_FC=
11599 whole_archive_flag_spec_FC=
11601 else
11602 # PORTME fill in a description of your system's linker (not GNU ld)
11603 case $host_os in
11604 aix3*)
11605 allow_undefined_flag_FC=unsupported
11606 always_export_symbols_FC=yes
11607 archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11608 # Note: this linker hardcodes the directories in LIBPATH if there
11609 # are no directories specified by -L.
11610 hardcode_minus_L_FC=yes
11611 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11612 # Neither direct hardcoding nor static linking is supported with a
11613 # broken collect2.
11614 hardcode_direct_FC=unsupported
11618 aix4* | aix5*)
11619 if test "$host_cpu" = ia64; then
11620 # On IA64, the linker does run time linking by default, so we don't
11621 # have to do anything special.
11622 aix_use_runtimelinking=no
11623 exp_sym_flag='-Bexport'
11624 no_entry_flag=""
11625 else
11626 # If we're using GNU nm, then we don't want the "-C" option.
11627 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11628 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11629 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11630 else
11631 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11633 aix_use_runtimelinking=no
11635 # Test if we are trying to use run time linking or normal
11636 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11637 # need to do runtime linking.
11638 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11639 for ld_flag in $LDFLAGS; do
11640 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11641 aix_use_runtimelinking=yes
11642 break
11644 done
11646 esac
11648 exp_sym_flag='-bexport'
11649 no_entry_flag='-bnoentry'
11652 # When large executables or shared objects are built, AIX ld can
11653 # have problems creating the table of contents. If linking a library
11654 # or program results in "error TOC overflow" add -mminimal-toc to
11655 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11656 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11658 archive_cmds_FC=''
11659 hardcode_direct_FC=yes
11660 hardcode_direct_absolute_FC=yes
11661 hardcode_libdir_separator_FC=':'
11662 link_all_deplibs_FC=yes
11663 file_list_spec_FC='${wl}-f,'
11665 if test "$GCC" = yes; then
11666 case $host_os in aix4.[012]|aix4.[012].*)
11667 # We only want to do this on AIX 4.2 and lower, the check
11668 # below for broken collect2 doesn't work under 4.3+
11669 collect2name=`${CC} -print-prog-name=collect2`
11670 if test -f "$collect2name" &&
11671 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11672 then
11673 # We have reworked collect2
11675 else
11676 # We have old collect2
11677 hardcode_direct_FC=unsupported
11678 # It fails to find uninstalled libraries when the uninstalled
11679 # path is not listed in the libpath. Setting hardcode_minus_L
11680 # to unsupported forces relinking
11681 hardcode_minus_L_FC=yes
11682 hardcode_libdir_flag_spec_FC='-L$libdir'
11683 hardcode_libdir_separator_FC=
11686 esac
11687 shared_flag='-shared'
11688 if test "$aix_use_runtimelinking" = yes; then
11689 shared_flag="$shared_flag "'${wl}-G'
11691 else
11692 # not using gcc
11693 if test "$host_cpu" = ia64; then
11694 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11695 # chokes on -Wl,-G. The following line is correct:
11696 shared_flag='-G'
11697 else
11698 if test "$aix_use_runtimelinking" = yes; then
11699 shared_flag='${wl}-G'
11700 else
11701 shared_flag='${wl}-bM:SRE'
11706 # It seems that -bexpall does not export symbols beginning with
11707 # underscore (_), so it is better to generate a list of symbols to export.
11708 always_export_symbols_FC=yes
11709 if test "$aix_use_runtimelinking" = yes; then
11710 # Warning - without using the other runtime loading flags (-brtl),
11711 # -berok will link without error, but may produce a broken library.
11712 allow_undefined_flag_FC='-berok'
11713 # Determine the default libpath from the value encoded in an
11714 # empty executable.
11715 cat >conftest.$ac_ext <<_ACEOF
11716 program main
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>conftest.er1
11723 ac_status=$?
11724 grep -v '^ *+' conftest.er1 >conftest.err
11725 rm -f conftest.er1
11726 cat conftest.err >&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try='test -z "$ac_fc_werror_flag"
11730 || test ! -s conftest.err'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; } &&
11736 { ac_try='test -s conftest$ac_exeext'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; }; then
11743 lt_aix_libpath_sed='
11744 /Import File Strings/,/^$/ {
11745 /^0/ {
11746 s/^0 *\(.*\)$/\1/
11750 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11751 # Check for a 64-bit object if we didn't find anything.
11752 if test -z "$aix_libpath"; then
11753 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11755 else
11756 echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11760 rm -f conftest.err conftest.$ac_objext \
11761 conftest$ac_exeext conftest.$ac_ext
11762 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11764 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11765 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11766 else
11767 if test "$host_cpu" = ia64; then
11768 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
11769 allow_undefined_flag_FC="-z nodefs"
11770 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11771 else
11772 # Determine the default libpath from the value encoded in an
11773 # empty executable.
11774 cat >conftest.$ac_ext <<_ACEOF
11775 program main
11778 _ACEOF
11779 rm -f conftest.$ac_objext conftest$ac_exeext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11781 (eval $ac_link) 2>conftest.er1
11782 ac_status=$?
11783 grep -v '^ *+' conftest.er1 >conftest.err
11784 rm -f conftest.er1
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
11788 { ac_try='test -z "$ac_fc_werror_flag"
11789 || test ! -s conftest.err'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
11795 { ac_try='test -s conftest$ac_exeext'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11802 lt_aix_libpath_sed='
11803 /Import File Strings/,/^$/ {
11804 /^0/ {
11805 s/^0 *\(.*\)$/\1/
11809 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11810 # Check for a 64-bit object if we didn't find anything.
11811 if test -z "$aix_libpath"; then
11812 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11814 else
11815 echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.$ac_ext >&5
11819 rm -f conftest.err conftest.$ac_objext \
11820 conftest$ac_exeext conftest.$ac_ext
11821 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11823 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11824 # Warning - without using the other run time loading flags,
11825 # -berok will link without error, but may produce a broken library.
11826 no_undefined_flag_FC=' ${wl}-bernotok'
11827 allow_undefined_flag_FC=' ${wl}-berok'
11828 # Exported symbols can be pulled into shared objects from archives
11829 whole_archive_flag_spec_FC='$convenience'
11830 archive_cmds_need_lc_FC=yes
11831 # This is similar to how AIX traditionally builds its shared libraries.
11832 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11837 amigaos*)
11838 if test "$host_cpu" = m68k; then
11839 archive_cmds_FC='$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)'
11840 hardcode_libdir_flag_spec_FC='-L$libdir'
11841 hardcode_minus_L_FC=yes
11843 # see comment about different semantics on the GNU ld section
11844 ld_shlibs_FC=no
11847 bsdi[45]*)
11848 export_dynamic_flag_spec_FC=-rdynamic
11851 cygwin* | mingw* | pw32*)
11852 # When not using gcc, we currently assume that we are using
11853 # Microsoft Visual C++.
11854 # hardcode_libdir_flag_spec is actually meaningless, as there is
11855 # no search path for DLLs.
11856 hardcode_libdir_flag_spec_FC=' '
11857 allow_undefined_flag_FC=unsupported
11858 # Tell ltmain to make .lib files, not .a files.
11859 libext=lib
11860 # Tell ltmain to make .dll files, not .so files.
11861 shrext_cmds=".dll"
11862 # FIXME: Setting linknames here is a bad hack.
11863 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11864 # The linker will automatically build a .lib file if we build a DLL.
11865 old_archive_from_new_cmds_FC='true'
11866 # FIXME: Should let the user specify the lib program.
11867 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
11868 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
11869 enable_shared_with_static_runtimes_FC=yes
11872 darwin* | rhapsody*)
11873 case $host_os in
11874 rhapsody* | darwin1.[012])
11875 allow_undefined_flag_FC='${wl}-undefined ${wl}suppress'
11877 *) # Darwin 1.3 on
11878 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11879 10.[012])
11880 allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11882 10.*)
11883 allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup'
11885 esac
11887 esac
11888 archive_cmds_need_lc_FC=no
11889 hardcode_direct_FC=no
11890 hardcode_automatic_FC=yes
11891 hardcode_shlibpath_var_FC=unsupported
11892 whole_archive_flag_spec_FC=''
11893 link_all_deplibs_FC=yes
11894 if test "$GCC" = yes ; then
11895 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 else
11898 lt_cv_apple_cc_single_mod=no
11899 if test -z "${LT_MULTI_MODULE}"; then
11900 # By default we will add the -single_module flag. You can override
11901 # by either setting the environment variable LT_MULTI_MODULE
11902 # non-empty at configure time, or by adding -multi-module to the
11903 # link flags.
11904 echo "int foo(void){return 1;}" > conftest.c
11905 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11906 -dynamiclib ${wl}-single_module conftest.c
11907 if test -f libconftest.dylib; then
11908 lt_cv_apple_cc_single_mod=yes
11909 rm libconftest.dylib
11911 rm conftest.$ac_ext
11915 output_verbose_link_cmd=echo
11916 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11917 archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11918 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11919 else
11920 archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11921 archive_expsym_cmds_FC='sed "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}'
11923 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11924 module_expsym_cmds_FC='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11925 else
11926 case $cc_basename in
11927 xlc*)
11928 output_verbose_link_cmd=echo
11929 archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
11930 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11931 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11932 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11933 module_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11936 ld_shlibs_FC=no
11938 esac
11942 dgux*)
11943 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11944 hardcode_libdir_flag_spec_FC='-L$libdir'
11945 hardcode_shlibpath_var_FC=no
11948 freebsd1*)
11949 ld_shlibs_FC=no
11952 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11953 # support. Future versions do this automatically, but an explicit c++rt0.o
11954 # does not break anything, and helps significantly (at the cost of a little
11955 # extra space).
11956 freebsd2.2*)
11957 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11958 hardcode_libdir_flag_spec_FC='-R$libdir'
11959 hardcode_direct_FC=yes
11960 hardcode_shlibpath_var_FC=no
11963 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11964 freebsd2*)
11965 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11966 hardcode_direct_FC=yes
11967 hardcode_minus_L_FC=yes
11968 hardcode_shlibpath_var_FC=no
11971 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11972 freebsd* | dragonfly*)
11973 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11974 hardcode_libdir_flag_spec_FC='-R$libdir'
11975 hardcode_direct_FC=yes
11976 hardcode_shlibpath_var_FC=no
11979 hpux9*)
11980 if test "$GCC" = yes; then
11981 archive_cmds_FC='$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'
11982 else
11983 archive_cmds_FC='$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'
11985 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
11986 hardcode_libdir_separator_FC=:
11987 hardcode_direct_FC=yes
11989 # hardcode_minus_L: Not really in the search PATH,
11990 # but as the default location of the library.
11991 hardcode_minus_L_FC=yes
11992 export_dynamic_flag_spec_FC='${wl}-E'
11995 hpux10*)
11996 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11997 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11998 else
11999 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12001 if test "$with_gnu_ld" = no; then
12002 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12003 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
12004 hardcode_libdir_separator_FC=:
12005 hardcode_direct_FC=yes
12006 hardcode_direct_absolute_FC=yes
12007 export_dynamic_flag_spec_FC='${wl}-E'
12008 # hardcode_minus_L: Not really in the search PATH,
12009 # but as the default location of the library.
12010 hardcode_minus_L_FC=yes
12014 hpux11*)
12015 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12016 case $host_cpu in
12017 hppa*64*)
12018 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12020 ia64*)
12021 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12024 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12026 esac
12027 else
12028 case $host_cpu in
12029 hppa*64*)
12030 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12032 ia64*)
12033 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12036 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12038 esac
12040 if test "$with_gnu_ld" = no; then
12041 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12042 hardcode_libdir_separator_FC=:
12044 case $host_cpu in
12045 hppa*64*|ia64*)
12046 hardcode_direct_FC=no
12047 hardcode_shlibpath_var_FC=no
12050 hardcode_direct_FC=yes
12051 hardcode_direct_absolute_FC=yes
12052 export_dynamic_flag_spec_FC='${wl}-E'
12054 # hardcode_minus_L: Not really in the search PATH,
12055 # but as the default location of the library.
12056 hardcode_minus_L_FC=yes
12058 esac
12062 irix5* | irix6* | nonstopux*)
12063 if test "$GCC" = yes; then
12064 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12065 # Try to use the -exported_symbol ld option, if it does not
12066 # work, assume that -exports_file does not work either and
12067 # implicitly export all symbols.
12068 save_LDFLAGS="$LDFLAGS"
12069 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12070 cat >conftest.$ac_ext <<_ACEOF
12071 int foo(void) {}
12072 _ACEOF
12073 rm -f conftest.$ac_objext conftest$ac_exeext
12074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12075 (eval $ac_link) 2>conftest.er1
12076 ac_status=$?
12077 grep -v '^ *+' conftest.er1 >conftest.err
12078 rm -f conftest.er1
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try='test -z "$ac_fc_werror_flag"
12083 || test ! -s conftest.err'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try='test -s conftest$ac_exeext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12097 else
12098 echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12102 rm -f conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
12104 LDFLAGS="$save_LDFLAGS"
12105 else
12106 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12107 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12109 archive_cmds_need_lc_FC='no'
12110 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12111 hardcode_libdir_separator_FC=:
12112 inherit_rpath_FC=yes
12113 link_all_deplibs_FC=yes
12116 netbsd*)
12117 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12118 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12119 else
12120 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12122 hardcode_libdir_flag_spec_FC='-R$libdir'
12123 hardcode_direct_FC=yes
12124 hardcode_shlibpath_var_FC=no
12127 newsos6)
12128 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12129 hardcode_direct_FC=yes
12130 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12131 hardcode_libdir_separator_FC=:
12132 hardcode_shlibpath_var_FC=no
12135 *nto* | *qnx*)
12138 openbsd*)
12139 hardcode_direct_FC=yes
12140 hardcode_shlibpath_var_FC=no
12141 hardcode_direct_absolute_FC=yes
12142 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12143 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12144 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12145 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12146 export_dynamic_flag_spec_FC='${wl}-E'
12147 else
12148 case $host_os in
12149 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12150 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12151 hardcode_libdir_flag_spec_FC='-R$libdir'
12154 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12155 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12157 esac
12161 os2*)
12162 hardcode_libdir_flag_spec_FC='-L$libdir'
12163 hardcode_minus_L_FC=yes
12164 allow_undefined_flag_FC=unsupported
12165 archive_cmds_FC='$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'
12166 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12169 osf3*)
12170 if test "$GCC" = yes; then
12171 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12172 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12173 else
12174 allow_undefined_flag_FC=' -expect_unresolved \*'
12175 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12177 archive_cmds_need_lc_FC='no'
12178 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12179 hardcode_libdir_separator_FC=:
12182 osf4* | osf5*) # as osf3* with the addition of -msym flag
12183 if test "$GCC" = yes; then
12184 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12185 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12186 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12187 else
12188 allow_undefined_flag_FC=' -expect_unresolved \*'
12189 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12190 archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12191 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12193 # Both c and cxx compiler support -rpath directly
12194 hardcode_libdir_flag_spec_FC='-rpath $libdir'
12196 archive_cmds_need_lc_FC='no'
12197 hardcode_libdir_separator_FC=:
12200 solaris*)
12201 no_undefined_flag_FC=' -z defs'
12202 if test "$GCC" = yes; then
12203 wlarc='${wl}'
12204 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12205 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12206 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12207 else
12208 case `$CC -V 2>&1` in
12209 *"Compilers 5.0"*)
12210 wlarc=''
12211 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12212 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12213 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12216 wlarc='${wl}'
12217 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12218 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12219 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12221 esac
12223 hardcode_libdir_flag_spec_FC='-R$libdir'
12224 hardcode_shlibpath_var_FC=no
12225 case $host_os in
12226 solaris2.[0-5] | solaris2.[0-5].*) ;;
12228 # The compiler driver will combine and reorder linker options,
12229 # but understands `-z linker_flag'. GCC discards it without `$wl',
12230 # but is careful enough not to reorder.
12231 # Supported since Solaris 2.6 (maybe 2.5.1?)
12232 if test "$GCC" = yes; then
12233 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12234 else
12235 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12238 esac
12239 link_all_deplibs_FC=yes
12242 sunos4*)
12243 if test "x$host_vendor" = xsequent; then
12244 # Use $CC to link under sequent, because it throws in some extra .o
12245 # files that make .init and .fini sections work.
12246 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12247 else
12248 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12250 hardcode_libdir_flag_spec_FC='-L$libdir'
12251 hardcode_direct_FC=yes
12252 hardcode_minus_L_FC=yes
12253 hardcode_shlibpath_var_FC=no
12256 sysv4)
12257 case $host_vendor in
12258 sni)
12259 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12260 hardcode_direct_FC=yes # is this really true???
12262 siemens)
12263 ## LD is ld it makes a PLAMLIB
12264 ## CC just makes a GrossModule.
12265 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12266 reload_cmds_FC='$CC -r -o $output$reload_objs'
12267 hardcode_direct_FC=no
12269 motorola)
12270 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12271 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
12273 esac
12274 runpath_var='LD_RUN_PATH'
12275 hardcode_shlibpath_var_FC=no
12278 sysv4.3*)
12279 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12280 hardcode_shlibpath_var_FC=no
12281 export_dynamic_flag_spec_FC='-Bexport'
12284 sysv4*MP*)
12285 if test -d /usr/nec; then
12286 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12287 hardcode_shlibpath_var_FC=no
12288 runpath_var=LD_RUN_PATH
12289 hardcode_runpath_var=yes
12290 ld_shlibs_FC=yes
12294 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12295 no_undefined_flag_FC='${wl}-z,text'
12296 archive_cmds_need_lc_FC=no
12297 hardcode_shlibpath_var_FC=no
12298 runpath_var='LD_RUN_PATH'
12300 if test "$GCC" = yes; then
12301 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12302 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12303 else
12304 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12305 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12309 sysv5* | sco3.2v5* | sco5v6*)
12310 # Note: We can NOT use -z defs as we might desire, because we do not
12311 # link with -lc, and that would cause any symbols used from libc to
12312 # always be unresolved, which means just about no library would
12313 # ever link correctly. If we're not using GNU ld we use -z text
12314 # though, which does catch some bad symbols but isn't as heavy-handed
12315 # as -z defs.
12316 no_undefined_flag_FC='${wl}-z,text'
12317 allow_undefined_flag_FC='${wl}-z,nodefs'
12318 archive_cmds_need_lc_FC=no
12319 hardcode_shlibpath_var_FC=no
12320 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
12321 hardcode_libdir_separator_FC=':'
12322 link_all_deplibs_FC=yes
12323 export_dynamic_flag_spec_FC='${wl}-Bexport'
12324 runpath_var='LD_RUN_PATH'
12326 if test "$GCC" = yes; then
12327 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12328 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12329 else
12330 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12331 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12335 uts4*)
12336 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12337 hardcode_libdir_flag_spec_FC='-L$libdir'
12338 hardcode_shlibpath_var_FC=no
12342 ld_shlibs_FC=no
12344 esac
12346 if test x$host_vendor = xsni; then
12347 case $host in
12348 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12349 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
12351 esac
12355 echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
12356 echo "${ECHO_T}$ld_shlibs_FC" >&6
12357 test "$ld_shlibs_FC" = no && can_build_shared=no
12359 with_gnu_ld_FC=$with_gnu_ld
12367 # Do we need to explicitly link libc?
12369 case "x$archive_cmds_need_lc_FC" in
12370 x|xyes)
12371 # Assume -lc should be added
12372 archive_cmds_need_lc_FC=yes
12374 if test "$enable_shared" = yes && test "$GCC" = yes; then
12375 case $archive_cmds_FC in
12376 *'~'*)
12377 # FIXME: we may have to deal with multi-command sequences.
12379 '$CC '*)
12380 # Test whether the compiler implicitly links with -lc since on some
12381 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12382 # to ld, don't add -lc before -lgcc.
12383 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12384 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12385 $RM conftest*
12386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12389 (eval $ac_compile) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } 2>conftest.err; then
12393 soname=conftest
12394 lib=conftest
12395 libobjs=conftest.$ac_objext
12396 deplibs=
12397 wl=$lt_prog_compiler_wl_FC
12398 pic_flag=$lt_prog_compiler_pic_FC
12399 compiler_flags=-v
12400 linker_flags=-v
12401 verstring=
12402 output_objdir=.
12403 libname=conftest
12404 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
12405 allow_undefined_flag_FC=
12406 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12407 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }
12411 then
12412 archive_cmds_need_lc_FC=no
12413 else
12414 archive_cmds_need_lc_FC=yes
12416 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
12417 else
12418 cat conftest.err 1>&5
12420 $RM conftest*
12421 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
12422 echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6
12424 esac
12427 esac
12492 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12493 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12494 withGCC=$ac_cv_fc_compiler_gnu
12495 library_names_spec=
12496 libname_spec='lib$name'
12497 soname_spec=
12498 shrext_cmds=".so"
12499 postinstall_cmds=
12500 postuninstall_cmds=
12501 finish_cmds=
12502 finish_eval=
12503 shlibpath_var=
12504 shlibpath_overrides_runpath=unknown
12505 version_type=none
12506 dynamic_linker="$host_os ld.so"
12507 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12508 need_lib_prefix=unknown
12509 hardcode_into_libs=no
12511 # when you set need_version to no, make sure it does not cause -set_version
12512 # flags to be left without arguments
12513 need_version=unknown
12515 case $host_os in
12516 aix3*)
12517 version_type=linux
12518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12519 shlibpath_var=LIBPATH
12521 # AIX 3 has no versioning support, so we append a major version to the name.
12522 soname_spec='${libname}${release}${shared_ext}$major'
12525 aix4* | aix5*)
12526 version_type=linux
12527 need_lib_prefix=no
12528 need_version=no
12529 hardcode_into_libs=yes
12530 if test "$host_cpu" = ia64; then
12531 # AIX 5 supports IA64
12532 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12533 shlibpath_var=LD_LIBRARY_PATH
12534 else
12535 # With GCC up to 2.95.x, collect2 would create an import file
12536 # for dependence libraries. The import file would start with
12537 # the line `#! .'. This would cause the generated library to
12538 # depend on `.', always an invalid library. This was fixed in
12539 # development snapshots of GCC prior to 3.0.
12540 case $host_os in
12541 aix4 | aix4.[01] | aix4.[01].*)
12542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12543 echo ' yes '
12544 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12546 else
12547 can_build_shared=no
12550 esac
12551 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12552 # soname into executable. Probably we can add versioning support to
12553 # collect2, so additional links can be useful in future.
12554 if test "$aix_use_runtimelinking" = yes; then
12555 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12556 # instead of lib<name>.a to let people know that these are not
12557 # typical AIX shared libraries.
12558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12559 else
12560 # We preserve .a as extension for shared libraries through AIX4.2
12561 # and later when we are not doing run time linking.
12562 library_names_spec='${libname}${release}.a $libname.a'
12563 soname_spec='${libname}${release}${shared_ext}$major'
12565 shlibpath_var=LIBPATH
12569 amigaos*)
12570 if test "$host_cpu" = m68k; then
12571 library_names_spec='$libname.ixlibrary $libname.a'
12572 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12573 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'
12574 else
12575 dynamic_linker=no
12579 beos*)
12580 library_names_spec='${libname}${shared_ext}'
12581 dynamic_linker="$host_os ld.so"
12582 shlibpath_var=LIBRARY_PATH
12585 bsdi[45]*)
12586 version_type=linux
12587 need_version=no
12588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12589 soname_spec='${libname}${release}${shared_ext}$major'
12590 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12591 shlibpath_var=LD_LIBRARY_PATH
12592 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12593 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12594 # the default ld.so.conf also contains /usr/contrib/lib and
12595 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12596 # libtool to hard-code these into programs
12599 cygwin* | mingw* | pw32*)
12600 version_type=windows
12601 shrext_cmds=".dll"
12602 need_version=no
12603 need_lib_prefix=no
12605 case $withGCC,$host_os in
12606 yes,cygwin* | yes,mingw* | yes,pw32*)
12607 library_names_spec='$libname.dll.a'
12608 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12609 postinstall_cmds='base_file=`basename \${file}`~
12610 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12611 dldir=$destdir/`dirname \$dlpath`~
12612 test -d \$dldir || mkdir -p \$dldir~
12613 $install_prog $dir/$dlname \$dldir/$dlname~
12614 chmod a+x \$dldir/$dlname~
12615 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12616 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12618 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12619 dlpath=$dir/\$dldll~
12620 $RM \$dlpath'
12621 shlibpath_overrides_runpath=yes
12623 case $host_os in
12624 cygwin*)
12625 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12626 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12627 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12629 mingw*)
12630 # MinGW DLLs use traditional 'lib' prefix
12631 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12632 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12633 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12634 # It is most probably a Windows format PATH printed by
12635 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12636 # path with ; separators, and with drive letters. We can handle the
12637 # drive letters (cygwin fileutils understands them), so leave them,
12638 # especially as we might pass files found there to a mingw objdump,
12639 # which wouldn't understand a cygwinified path. Ahh.
12640 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12641 else
12642 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12645 pw32*)
12646 # pw32 DLLs use 'pw' prefix rather than 'lib'
12647 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12649 esac
12653 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12655 esac
12656 dynamic_linker='Win32 ld.exe'
12657 # FIXME: first we should search . and the directory the executable is in
12658 shlibpath_var=PATH
12661 darwin* | rhapsody*)
12662 dynamic_linker="$host_os dyld"
12663 version_type=darwin
12664 need_lib_prefix=no
12665 need_version=no
12666 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12667 soname_spec='${libname}${release}${major}$shared_ext'
12668 shlibpath_overrides_runpath=yes
12669 shlibpath_var=DYLD_LIBRARY_PATH
12670 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12672 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12675 dgux*)
12676 version_type=linux
12677 need_lib_prefix=no
12678 need_version=no
12679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12680 soname_spec='${libname}${release}${shared_ext}$major'
12681 shlibpath_var=LD_LIBRARY_PATH
12684 freebsd1*)
12685 dynamic_linker=no
12688 freebsd* | dragonfly*)
12689 # DragonFly does not have aout. When/if they implement a new
12690 # versioning mechanism, adjust this.
12691 if test -x /usr/bin/objformat; then
12692 objformat=`/usr/bin/objformat`
12693 else
12694 case $host_os in
12695 freebsd[123]*) objformat=aout ;;
12696 *) objformat=elf ;;
12697 esac
12699 version_type=freebsd-$objformat
12700 case $version_type in
12701 freebsd-elf*)
12702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12703 need_version=no
12704 need_lib_prefix=no
12706 freebsd-*)
12707 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12708 need_version=yes
12710 esac
12711 shlibpath_var=LD_LIBRARY_PATH
12712 case $host_os in
12713 freebsd2*)
12714 shlibpath_overrides_runpath=yes
12716 freebsd3.[01]* | freebsdelf3.[01]*)
12717 shlibpath_overrides_runpath=yes
12718 hardcode_into_libs=yes
12720 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12721 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12722 shlibpath_overrides_runpath=no
12723 hardcode_into_libs=yes
12725 *) # from 4.6 on, and DragonFly
12726 shlibpath_overrides_runpath=yes
12727 hardcode_into_libs=yes
12729 esac
12732 gnu*)
12733 version_type=linux
12734 need_lib_prefix=no
12735 need_version=no
12736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12737 soname_spec='${libname}${release}${shared_ext}$major'
12738 shlibpath_var=LD_LIBRARY_PATH
12739 hardcode_into_libs=yes
12742 hpux9* | hpux10* | hpux11*)
12743 # Give a soname corresponding to the major version so that dld.sl refuses to
12744 # link against other versions.
12745 version_type=sunos
12746 need_lib_prefix=no
12747 need_version=no
12748 case $host_cpu in
12749 ia64*)
12750 shrext_cmds='.so'
12751 hardcode_into_libs=yes
12752 dynamic_linker="$host_os dld.so"
12753 shlibpath_var=LD_LIBRARY_PATH
12754 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12756 soname_spec='${libname}${release}${shared_ext}$major'
12757 if test "X$HPUX_IA64_MODE" = X32; then
12758 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12759 else
12760 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12764 hppa*64*)
12765 shrext_cmds='.sl'
12766 hardcode_into_libs=yes
12767 dynamic_linker="$host_os dld.sl"
12768 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12769 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12771 soname_spec='${libname}${release}${shared_ext}$major'
12772 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12776 shrext_cmds='.sl'
12777 dynamic_linker="$host_os dld.sl"
12778 shlibpath_var=SHLIB_PATH
12779 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12781 soname_spec='${libname}${release}${shared_ext}$major'
12783 esac
12784 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12785 postinstall_cmds='chmod 555 $lib'
12788 interix[3-9]*)
12789 version_type=linux
12790 need_lib_prefix=no
12791 need_version=no
12792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12793 soname_spec='${libname}${release}${shared_ext}$major'
12794 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12795 shlibpath_var=LD_LIBRARY_PATH
12796 shlibpath_overrides_runpath=no
12797 hardcode_into_libs=yes
12800 irix5* | irix6* | nonstopux*)
12801 case $host_os in
12802 nonstopux*) version_type=nonstopux ;;
12804 if test "$lt_cv_prog_gnu_ld" = yes; then
12805 version_type=linux
12806 else
12807 version_type=irix
12808 fi ;;
12809 esac
12810 need_lib_prefix=no
12811 need_version=no
12812 soname_spec='${libname}${release}${shared_ext}$major'
12813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12814 case $host_os in
12815 irix5* | nonstopux*)
12816 libsuff= shlibsuff=
12819 case $LD in # libtool.m4 will add one of these switches to LD
12820 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12821 libsuff= shlibsuff= libmagic=32-bit;;
12822 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12823 libsuff=32 shlibsuff=N32 libmagic=N32;;
12824 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12825 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12826 *) libsuff= shlibsuff= libmagic=never-match;;
12827 esac
12829 esac
12830 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12831 shlibpath_overrides_runpath=no
12832 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12833 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12834 hardcode_into_libs=yes
12837 # No shared lib support for Linux oldld, aout, or coff.
12838 linux*oldld* | linux*aout* | linux*coff*)
12839 dynamic_linker=no
12842 # This must be Linux ELF.
12843 linux* | k*bsd*-gnu)
12844 version_type=linux
12845 need_lib_prefix=no
12846 need_version=no
12847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12848 soname_spec='${libname}${release}${shared_ext}$major'
12849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12850 shlibpath_var=LD_LIBRARY_PATH
12851 shlibpath_overrides_runpath=no
12852 # Some binutils ld are patched to set DT_RUNPATH
12853 save_LDFLAGS=$LDFLAGS
12854 save_libdir=$libdir
12855 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
12856 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
12857 cat >conftest.$ac_ext <<_ACEOF
12858 program main
12861 _ACEOF
12862 rm -f conftest.$ac_objext conftest$ac_exeext
12863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12864 (eval $ac_link) 2>conftest.er1
12865 ac_status=$?
12866 grep -v '^ *+' conftest.er1 >conftest.err
12867 rm -f conftest.er1
12868 cat conftest.err >&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); } &&
12871 { ac_try='test -z "$ac_fc_werror_flag"
12872 || test ! -s conftest.err'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12875 ac_status=$?
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; } &&
12878 { ac_try='test -s conftest$ac_exeext'
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
12884 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
12885 shlibpath_overrides_runpath=yes
12888 else
12889 echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12893 rm -f conftest.err conftest.$ac_objext \
12894 conftest$ac_exeext conftest.$ac_ext
12895 LDFLAGS=$save_LDFLAGS
12896 libdir=$save_libdir
12898 # This implies no fast_install, which is unacceptable.
12899 # Some rework will be needed to allow for fast_install
12900 # before this can be enabled.
12901 hardcode_into_libs=yes
12903 # Append ld.so.conf contents to the search path
12904 if test -f /etc/ld.so.conf; then
12905 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12906 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12909 # We used to test for /lib/ld.so.1 and disable shared libraries on
12910 # powerpc, because MkLinux only supported shared libraries with the
12911 # GNU dynamic linker. Since this was broken with cross compilers,
12912 # most powerpc-linux boxes support dynamic linking these days and
12913 # people can always --disable-shared, the test was removed, and we
12914 # assume the GNU/Linux dynamic linker is in use.
12915 dynamic_linker='GNU/Linux ld.so'
12918 netbsd*)
12919 version_type=sunos
12920 need_lib_prefix=no
12921 need_version=no
12922 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12925 dynamic_linker='NetBSD (a.out) ld.so'
12926 else
12927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12928 soname_spec='${libname}${release}${shared_ext}$major'
12929 dynamic_linker='NetBSD ld.elf_so'
12931 shlibpath_var=LD_LIBRARY_PATH
12932 shlibpath_overrides_runpath=yes
12933 hardcode_into_libs=yes
12936 newsos6)
12937 version_type=linux
12938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12939 shlibpath_var=LD_LIBRARY_PATH
12940 shlibpath_overrides_runpath=yes
12943 *nto* | *qnx*)
12944 version_type=qnx
12945 need_lib_prefix=no
12946 need_version=no
12947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12948 soname_spec='${libname}${release}${shared_ext}$major'
12949 shlibpath_var=LD_LIBRARY_PATH
12950 shlibpath_overrides_runpath=no
12951 hardcode_into_libs=yes
12952 dynamic_linker='ldqnx.so'
12955 openbsd*)
12956 version_type=sunos
12957 sys_lib_dlsearch_path_spec="/usr/lib"
12958 need_lib_prefix=no
12959 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12960 case $host_os in
12961 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12962 *) need_version=no ;;
12963 esac
12964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12966 shlibpath_var=LD_LIBRARY_PATH
12967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12968 case $host_os in
12969 openbsd2.[89] | openbsd2.[89].*)
12970 shlibpath_overrides_runpath=no
12973 shlibpath_overrides_runpath=yes
12975 esac
12976 else
12977 shlibpath_overrides_runpath=yes
12981 os2*)
12982 libname_spec='$name'
12983 shrext_cmds=".dll"
12984 need_lib_prefix=no
12985 library_names_spec='$libname${shared_ext} $libname.a'
12986 dynamic_linker='OS/2 ld.exe'
12987 shlibpath_var=LIBPATH
12990 osf3* | osf4* | osf5*)
12991 version_type=osf
12992 need_lib_prefix=no
12993 need_version=no
12994 soname_spec='${libname}${release}${shared_ext}$major'
12995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12996 shlibpath_var=LD_LIBRARY_PATH
12997 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12998 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13001 rdos*)
13002 dynamic_linker=no
13005 solaris*)
13006 version_type=linux
13007 need_lib_prefix=no
13008 need_version=no
13009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13010 soname_spec='${libname}${release}${shared_ext}$major'
13011 shlibpath_var=LD_LIBRARY_PATH
13012 shlibpath_overrides_runpath=yes
13013 hardcode_into_libs=yes
13014 # ldd complains unless libraries are executable
13015 postinstall_cmds='chmod +x $lib'
13018 sunos4*)
13019 version_type=sunos
13020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13021 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13022 shlibpath_var=LD_LIBRARY_PATH
13023 shlibpath_overrides_runpath=yes
13024 if test "$with_gnu_ld" = yes; then
13025 need_lib_prefix=no
13027 need_version=yes
13030 sysv4 | sysv4.3*)
13031 version_type=linux
13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13033 soname_spec='${libname}${release}${shared_ext}$major'
13034 shlibpath_var=LD_LIBRARY_PATH
13035 case $host_vendor in
13036 sni)
13037 shlibpath_overrides_runpath=no
13038 need_lib_prefix=no
13039 runpath_var=LD_RUN_PATH
13041 siemens)
13042 need_lib_prefix=no
13044 motorola)
13045 need_lib_prefix=no
13046 need_version=no
13047 shlibpath_overrides_runpath=no
13048 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13050 esac
13053 sysv4*MP*)
13054 if test -d /usr/nec ;then
13055 version_type=linux
13056 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13057 soname_spec='$libname${shared_ext}.$major'
13058 shlibpath_var=LD_LIBRARY_PATH
13062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13063 version_type=freebsd-elf
13064 need_lib_prefix=no
13065 need_version=no
13066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13067 soname_spec='${libname}${release}${shared_ext}$major'
13068 shlibpath_var=LD_LIBRARY_PATH
13069 shlibpath_overrides_runpath=yes
13070 hardcode_into_libs=yes
13071 if test "$with_gnu_ld" = yes; then
13072 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13073 else
13074 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13075 case $host_os in
13076 sco3.2v5*)
13077 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13079 esac
13081 sys_lib_dlsearch_path_spec='/usr/lib'
13084 tpf*)
13085 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13086 version_type=linux
13087 need_lib_prefix=no
13088 need_version=no
13089 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13090 shlibpath_var=LD_LIBRARY_PATH
13091 shlibpath_overrides_runpath=no
13092 hardcode_into_libs=yes
13095 uts4*)
13096 version_type=linux
13097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13098 soname_spec='${libname}${release}${shared_ext}$major'
13099 shlibpath_var=LD_LIBRARY_PATH
13103 dynamic_linker=no
13105 esac
13106 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13107 echo "${ECHO_T}$dynamic_linker" >&6
13108 test "$dynamic_linker" = no && can_build_shared=no
13110 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13111 if test "$GCC" = yes; then
13112 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13150 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13151 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13152 hardcode_action_FC=
13153 if test -n "$hardcode_libdir_flag_spec_FC" ||
13154 test -n "$runpath_var_FC" ||
13155 test "X$hardcode_automatic_FC" = "Xyes" ; then
13157 # We can hardcode non-existent directories.
13158 if test "$hardcode_direct_FC" != no &&
13159 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13160 # have to relink, otherwise we might link with an installed library
13161 # when we should be linking with a yet-to-be-installed one
13162 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13163 test "$hardcode_minus_L_FC" != no; then
13164 # Linking always hardcodes the temporary library directory.
13165 hardcode_action_FC=relink
13166 else
13167 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13168 hardcode_action_FC=immediate
13170 else
13171 # We cannot hardcode anything, or else we can only hardcode existing
13172 # directories.
13173 hardcode_action_FC=unsupported
13175 echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13176 echo "${ECHO_T}$hardcode_action_FC" >&6
13178 if test "$hardcode_action_FC" = relink ||
13179 test "$inherit_rpath_FC" = yes; then
13180 # Fast installation is not supported
13181 enable_fast_install=no
13182 elif test "$shlibpath_overrides_runpath" = yes ||
13183 test "$enable_shared" = no; then
13184 # Fast installation is not necessary
13185 enable_fast_install=needless
13194 fi # test -n "$compiler"
13196 CC="$lt_save_CC"
13197 fi # test "$_lt_disable_FC" != yes
13199 ac_ext=c
13200 ac_cpp='$CPP $CPPFLAGS'
13201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13206 FCFLAGS="$FCFLAGS -Wall"
13208 # For libtool versioning info, format is CURRENT:REVISION:AGE
13209 libtool_VERSION=1:0:0
13212 # Check header files.
13213 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13214 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13215 if test "${ac_cv_header_stdc+set}" = set; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 else
13218 cat >conftest.$ac_ext <<_ACEOF
13219 /* confdefs.h. */
13220 _ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h. */
13224 #include <stdlib.h>
13225 #include <stdarg.h>
13226 #include <string.h>
13227 #include <float.h>
13230 main ()
13234 return 0;
13236 _ACEOF
13237 rm -f conftest.$ac_objext
13238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13239 (eval $ac_compile) 2>conftest.er1
13240 ac_status=$?
13241 grep -v '^ *+' conftest.er1 >conftest.err
13242 rm -f conftest.er1
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } &&
13246 { ac_try='test -z "$ac_c_werror_flag"
13247 || test ! -s conftest.err'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; } &&
13253 { ac_try='test -s conftest.$ac_objext'
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 ac_cv_header_stdc=yes
13260 else
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13264 ac_cv_header_stdc=no
13266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13268 if test $ac_cv_header_stdc = yes; then
13269 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13270 cat >conftest.$ac_ext <<_ACEOF
13271 /* confdefs.h. */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13276 #include <string.h>
13278 _ACEOF
13279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13280 $EGREP "memchr" >/dev/null 2>&1; then
13282 else
13283 ac_cv_header_stdc=no
13285 rm -f conftest*
13289 if test $ac_cv_header_stdc = yes; then
13290 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13291 cat >conftest.$ac_ext <<_ACEOF
13292 /* confdefs.h. */
13293 _ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 #include <stdlib.h>
13299 _ACEOF
13300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13301 $EGREP "free" >/dev/null 2>&1; then
13303 else
13304 ac_cv_header_stdc=no
13306 rm -f conftest*
13310 if test $ac_cv_header_stdc = yes; then
13311 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13312 if test "$cross_compiling" = yes; then
13314 else
13315 cat >conftest.$ac_ext <<_ACEOF
13316 /* confdefs.h. */
13317 _ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13321 #include <ctype.h>
13322 #if ((' ' & 0x0FF) == 0x020)
13323 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13324 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13325 #else
13326 # define ISLOWER(c) \
13327 (('a' <= (c) && (c) <= 'i') \
13328 || ('j' <= (c) && (c) <= 'r') \
13329 || ('s' <= (c) && (c) <= 'z'))
13330 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13331 #endif
13333 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13335 main ()
13337 int i;
13338 for (i = 0; i < 256; i++)
13339 if (XOR (islower (i), ISLOWER (i))
13340 || toupper (i) != TOUPPER (i))
13341 exit(2);
13342 exit (0);
13344 _ACEOF
13345 rm -f conftest$ac_exeext
13346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13347 (eval $ac_link) 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352 (eval $ac_try) 2>&5
13353 ac_status=$?
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; }; then
13357 else
13358 echo "$as_me: program exited with status $ac_status" >&5
13359 echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13362 ( exit $ac_status )
13363 ac_cv_header_stdc=no
13365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13369 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13370 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13371 if test $ac_cv_header_stdc = yes; then
13373 cat >>confdefs.h <<\_ACEOF
13374 #define STDC_HEADERS 1
13375 _ACEOF
13379 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13380 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13381 if test "${ac_cv_header_time+set}" = set; then
13382 echo $ECHO_N "(cached) $ECHO_C" >&6
13383 else
13384 cat >conftest.$ac_ext <<_ACEOF
13385 /* confdefs.h. */
13386 _ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h. */
13390 #include <sys/types.h>
13391 #include <sys/time.h>
13392 #include <time.h>
13395 main ()
13397 if ((struct tm *) 0)
13398 return 0;
13400 return 0;
13402 _ACEOF
13403 rm -f conftest.$ac_objext
13404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13405 (eval $ac_compile) 2>conftest.er1
13406 ac_status=$?
13407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
13412 { ac_try='test -z "$ac_c_werror_flag"
13413 || test ! -s conftest.err'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; } &&
13419 { ac_try='test -s conftest.$ac_objext'
13420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13421 (eval $ac_try) 2>&5
13422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; }; then
13425 ac_cv_header_time=yes
13426 else
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13430 ac_cv_header_time=no
13432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13434 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13435 echo "${ECHO_T}$ac_cv_header_time" >&6
13436 if test $ac_cv_header_time = yes; then
13438 cat >>confdefs.h <<\_ACEOF
13439 #define TIME_WITH_SYS_TIME 1
13440 _ACEOF
13448 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
13450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13452 echo "$as_me:$LINENO: checking for $ac_header" >&5
13453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13459 else
13460 # Is the header compilable?
13461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13463 cat >conftest.$ac_ext <<_ACEOF
13464 /* confdefs.h. */
13465 _ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h. */
13469 $ac_includes_default
13470 #include <$ac_header>
13471 _ACEOF
13472 rm -f conftest.$ac_objext
13473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13474 (eval $ac_compile) 2>conftest.er1
13475 ac_status=$?
13476 grep -v '^ *+' conftest.er1 >conftest.err
13477 rm -f conftest.er1
13478 cat conftest.err >&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } &&
13481 { ac_try='test -z "$ac_c_werror_flag"
13482 || test ! -s conftest.err'
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; } &&
13488 { ac_try='test -s conftest.$ac_objext'
13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490 (eval $ac_try) 2>&5
13491 ac_status=$?
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; }; then
13494 ac_header_compiler=yes
13495 else
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13499 ac_header_compiler=no
13501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13503 echo "${ECHO_T}$ac_header_compiler" >&6
13505 # Is the header present?
13506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13508 cat >conftest.$ac_ext <<_ACEOF
13509 /* confdefs.h. */
13510 _ACEOF
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h. */
13514 #include <$ac_header>
13515 _ACEOF
13516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13518 ac_status=$?
13519 grep -v '^ *+' conftest.er1 >conftest.err
13520 rm -f conftest.er1
13521 cat conftest.err >&5
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); } >/dev/null; then
13524 if test -s conftest.err; then
13525 ac_cpp_err=$ac_c_preproc_warn_flag
13526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13527 else
13528 ac_cpp_err=
13530 else
13531 ac_cpp_err=yes
13533 if test -z "$ac_cpp_err"; then
13534 ac_header_preproc=yes
13535 else
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 ac_header_preproc=no
13541 rm -f conftest.err conftest.$ac_ext
13542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13543 echo "${ECHO_T}$ac_header_preproc" >&6
13545 # So? What about this header?
13546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13547 yes:no: )
13548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13552 ac_header_preproc=yes
13554 no:yes:* )
13555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13568 cat <<\_ASBOX
13569 ## ----------------------------------------------------- ##
13570 ## Report this to the GNU OpenMP Runtime Library lists. ##
13571 ## ----------------------------------------------------- ##
13572 _ASBOX
13574 sed "s/^/$as_me: WARNING: /" >&2
13576 esac
13577 echo "$as_me:$LINENO: checking for $ac_header" >&5
13578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13581 else
13582 eval "$as_ac_Header=\$ac_header_preproc"
13584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13589 cat >>confdefs.h <<_ACEOF
13590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13591 _ACEOF
13595 done
13600 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13602 acx_cv_header_stdint=stddef.h
13603 acx_cv_header_stdint_kind="(already complete)"
13604 for i in stdint.h $inttype_headers; do
13605 unset ac_cv_type_uintptr_t
13606 unset ac_cv_type_uintmax_t
13607 unset ac_cv_type_int_least32_t
13608 unset ac_cv_type_int_fast32_t
13609 unset ac_cv_type_uint64_t
13610 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13611 echo "$as_me:$LINENO: checking for uintmax_t" >&5
13612 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13613 if test "${ac_cv_type_uintmax_t+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13615 else
13616 cat >conftest.$ac_ext <<_ACEOF
13617 /* confdefs.h. */
13618 _ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h. */
13622 #include <sys/types.h>
13623 #include <$i>
13626 main ()
13628 if ((uintmax_t *) 0)
13629 return 0;
13630 if (sizeof (uintmax_t))
13631 return 0;
13633 return 0;
13635 _ACEOF
13636 rm -f conftest.$ac_objext
13637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13638 (eval $ac_compile) 2>conftest.er1
13639 ac_status=$?
13640 grep -v '^ *+' conftest.er1 >conftest.err
13641 rm -f conftest.er1
13642 cat conftest.err >&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } &&
13645 { ac_try='test -z "$ac_c_werror_flag"
13646 || test ! -s conftest.err'
13647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648 (eval $ac_try) 2>&5
13649 ac_status=$?
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; } &&
13652 { ac_try='test -s conftest.$ac_objext'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13655 ac_status=$?
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; }; then
13658 ac_cv_type_uintmax_t=yes
13659 else
13660 echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13663 ac_cv_type_uintmax_t=no
13665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13667 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13668 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13669 if test $ac_cv_type_uintmax_t = yes; then
13670 acx_cv_header_stdint=$i
13671 else
13672 continue
13675 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13676 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13677 if test "${ac_cv_type_uintptr_t+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13680 cat >conftest.$ac_ext <<_ACEOF
13681 /* confdefs.h. */
13682 _ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13686 #include <sys/types.h>
13687 #include <$i>
13690 main ()
13692 if ((uintptr_t *) 0)
13693 return 0;
13694 if (sizeof (uintptr_t))
13695 return 0;
13697 return 0;
13699 _ACEOF
13700 rm -f conftest.$ac_objext
13701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13702 (eval $ac_compile) 2>conftest.er1
13703 ac_status=$?
13704 grep -v '^ *+' conftest.er1 >conftest.err
13705 rm -f conftest.er1
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try='test -z "$ac_c_werror_flag"
13710 || test ! -s conftest.err'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13713 ac_status=$?
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try='test -s conftest.$ac_objext'
13717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718 (eval $ac_try) 2>&5
13719 ac_status=$?
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; }; then
13722 ac_cv_type_uintptr_t=yes
13723 else
13724 echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.$ac_ext >&5
13727 ac_cv_type_uintptr_t=no
13729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13731 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13732 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13733 if test $ac_cv_type_uintptr_t = yes; then
13735 else
13736 acx_cv_header_stdint_kind="(mostly complete)"
13739 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13740 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13741 if test "${ac_cv_type_int_least32_t+set}" = set; then
13742 echo $ECHO_N "(cached) $ECHO_C" >&6
13743 else
13744 cat >conftest.$ac_ext <<_ACEOF
13745 /* confdefs.h. */
13746 _ACEOF
13747 cat confdefs.h >>conftest.$ac_ext
13748 cat >>conftest.$ac_ext <<_ACEOF
13749 /* end confdefs.h. */
13750 #include <sys/types.h>
13751 #include <$i>
13754 main ()
13756 if ((int_least32_t *) 0)
13757 return 0;
13758 if (sizeof (int_least32_t))
13759 return 0;
13761 return 0;
13763 _ACEOF
13764 rm -f conftest.$ac_objext
13765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13766 (eval $ac_compile) 2>conftest.er1
13767 ac_status=$?
13768 grep -v '^ *+' conftest.er1 >conftest.err
13769 rm -f conftest.er1
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try='test -z "$ac_c_werror_flag"
13774 || test ! -s conftest.err'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; } &&
13780 { ac_try='test -s conftest.$ac_objext'
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13783 ac_status=$?
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }; then
13786 ac_cv_type_int_least32_t=yes
13787 else
13788 echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13791 ac_cv_type_int_least32_t=no
13793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13795 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13796 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13797 if test $ac_cv_type_int_least32_t = yes; then
13799 else
13800 acx_cv_header_stdint_kind="(mostly complete)"
13803 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13804 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13805 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 else
13808 cat >conftest.$ac_ext <<_ACEOF
13809 /* confdefs.h. */
13810 _ACEOF
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h. */
13814 #include <sys/types.h>
13815 #include <$i>
13818 main ()
13820 if ((int_fast32_t *) 0)
13821 return 0;
13822 if (sizeof (int_fast32_t))
13823 return 0;
13825 return 0;
13827 _ACEOF
13828 rm -f conftest.$ac_objext
13829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13830 (eval $ac_compile) 2>conftest.er1
13831 ac_status=$?
13832 grep -v '^ *+' conftest.er1 >conftest.err
13833 rm -f conftest.er1
13834 cat conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } &&
13837 { ac_try='test -z "$ac_c_werror_flag"
13838 || test ! -s conftest.err'
13839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840 (eval $ac_try) 2>&5
13841 ac_status=$?
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; } &&
13844 { ac_try='test -s conftest.$ac_objext'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; }; then
13850 ac_cv_type_int_fast32_t=yes
13851 else
13852 echo "$as_me: failed program was:" >&5
13853 sed 's/^/| /' conftest.$ac_ext >&5
13855 ac_cv_type_int_fast32_t=no
13857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13859 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13860 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13861 if test $ac_cv_type_int_fast32_t = yes; then
13863 else
13864 acx_cv_header_stdint_kind="(mostly complete)"
13867 echo "$as_me:$LINENO: checking for uint64_t" >&5
13868 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13869 if test "${ac_cv_type_uint64_t+set}" = set; then
13870 echo $ECHO_N "(cached) $ECHO_C" >&6
13871 else
13872 cat >conftest.$ac_ext <<_ACEOF
13873 /* confdefs.h. */
13874 _ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h. */
13878 #include <sys/types.h>
13879 #include <$i>
13882 main ()
13884 if ((uint64_t *) 0)
13885 return 0;
13886 if (sizeof (uint64_t))
13887 return 0;
13889 return 0;
13891 _ACEOF
13892 rm -f conftest.$ac_objext
13893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13894 (eval $ac_compile) 2>conftest.er1
13895 ac_status=$?
13896 grep -v '^ *+' conftest.er1 >conftest.err
13897 rm -f conftest.er1
13898 cat conftest.err >&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try='test -z "$ac_c_werror_flag"
13902 || test ! -s conftest.err'
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; } &&
13908 { ac_try='test -s conftest.$ac_objext'
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13914 ac_cv_type_uint64_t=yes
13915 else
13916 echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13919 ac_cv_type_uint64_t=no
13921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13923 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13924 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13925 if test $ac_cv_type_uint64_t = yes; then
13927 else
13928 acx_cv_header_stdint_kind="(lacks uint64_t)"
13931 break
13932 done
13933 if test "$acx_cv_header_stdint" = stddef.h; then
13934 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13935 for i in stdint.h $inttype_headers; do
13936 unset ac_cv_type_uintptr_t
13937 unset ac_cv_type_uint32_t
13938 unset ac_cv_type_uint64_t
13939 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13940 echo "$as_me:$LINENO: checking for uint32_t" >&5
13941 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13942 if test "${ac_cv_type_uint32_t+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
13944 else
13945 cat >conftest.$ac_ext <<_ACEOF
13946 /* confdefs.h. */
13947 _ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h. */
13951 #include <sys/types.h>
13952 #include <$i>
13955 main ()
13957 if ((uint32_t *) 0)
13958 return 0;
13959 if (sizeof (uint32_t))
13960 return 0;
13962 return 0;
13964 _ACEOF
13965 rm -f conftest.$ac_objext
13966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13967 (eval $ac_compile) 2>conftest.er1
13968 ac_status=$?
13969 grep -v '^ *+' conftest.er1 >conftest.err
13970 rm -f conftest.er1
13971 cat conftest.err >&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); } &&
13974 { ac_try='test -z "$ac_c_werror_flag"
13975 || test ! -s conftest.err'
13976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13978 ac_status=$?
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); }; } &&
13981 { ac_try='test -s conftest.$ac_objext'
13982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983 (eval $ac_try) 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; }; then
13987 ac_cv_type_uint32_t=yes
13988 else
13989 echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13992 ac_cv_type_uint32_t=no
13994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13996 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13997 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13998 if test $ac_cv_type_uint32_t = yes; then
13999 acx_cv_header_stdint=$i
14000 else
14001 continue
14004 echo "$as_me:$LINENO: checking for uint64_t" >&5
14005 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14006 if test "${ac_cv_type_uint64_t+set}" = set; then
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 else
14009 cat >conftest.$ac_ext <<_ACEOF
14010 /* confdefs.h. */
14011 _ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h. */
14015 #include <sys/types.h>
14016 #include <$i>
14019 main ()
14021 if ((uint64_t *) 0)
14022 return 0;
14023 if (sizeof (uint64_t))
14024 return 0;
14026 return 0;
14028 _ACEOF
14029 rm -f conftest.$ac_objext
14030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14031 (eval $ac_compile) 2>conftest.er1
14032 ac_status=$?
14033 grep -v '^ *+' conftest.er1 >conftest.err
14034 rm -f conftest.er1
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } &&
14038 { ac_try='test -z "$ac_c_werror_flag"
14039 || test ! -s conftest.err'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; } &&
14045 { ac_try='test -s conftest.$ac_objext'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14048 ac_status=$?
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }; then
14051 ac_cv_type_uint64_t=yes
14052 else
14053 echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.$ac_ext >&5
14056 ac_cv_type_uint64_t=no
14058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14060 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14061 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14063 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14064 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14065 if test "${ac_cv_type_uintptr_t+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 else
14068 cat >conftest.$ac_ext <<_ACEOF
14069 /* confdefs.h. */
14070 _ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074 #include <sys/types.h>
14075 #include <$i>
14078 main ()
14080 if ((uintptr_t *) 0)
14081 return 0;
14082 if (sizeof (uintptr_t))
14083 return 0;
14085 return 0;
14087 _ACEOF
14088 rm -f conftest.$ac_objext
14089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14090 (eval $ac_compile) 2>conftest.er1
14091 ac_status=$?
14092 grep -v '^ *+' conftest.er1 >conftest.err
14093 rm -f conftest.er1
14094 cat conftest.err >&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } &&
14097 { ac_try='test -z "$ac_c_werror_flag"
14098 || test ! -s conftest.err'
14099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14101 ac_status=$?
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; } &&
14104 { ac_try='test -s conftest.$ac_objext'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14107 ac_status=$?
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
14110 ac_cv_type_uintptr_t=yes
14111 else
14112 echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14115 ac_cv_type_uintptr_t=no
14117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14119 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14120 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14122 break
14123 done
14125 if test "$acx_cv_header_stdint" = stddef.h; then
14126 acx_cv_header_stdint_kind="(u_intXX_t style)"
14127 for i in sys/types.h $inttype_headers; do
14128 unset ac_cv_type_u_int32_t
14129 unset ac_cv_type_u_int64_t
14130 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14131 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14132 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14133 if test "${ac_cv_type_u_int32_t+set}" = set; then
14134 echo $ECHO_N "(cached) $ECHO_C" >&6
14135 else
14136 cat >conftest.$ac_ext <<_ACEOF
14137 /* confdefs.h. */
14138 _ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14142 #include <sys/types.h>
14143 #include <$i>
14146 main ()
14148 if ((u_int32_t *) 0)
14149 return 0;
14150 if (sizeof (u_int32_t))
14151 return 0;
14153 return 0;
14155 _ACEOF
14156 rm -f conftest.$ac_objext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14158 (eval $ac_compile) 2>conftest.er1
14159 ac_status=$?
14160 grep -v '^ *+' conftest.er1 >conftest.err
14161 rm -f conftest.er1
14162 cat conftest.err >&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try='test -z "$ac_c_werror_flag"
14166 || test ! -s conftest.err'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; } &&
14172 { ac_try='test -s conftest.$ac_objext'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; }; then
14178 ac_cv_type_u_int32_t=yes
14179 else
14180 echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14183 ac_cv_type_u_int32_t=no
14185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14187 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14188 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14189 if test $ac_cv_type_u_int32_t = yes; then
14190 acx_cv_header_stdint=$i
14191 else
14192 continue
14195 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14196 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14197 if test "${ac_cv_type_u_int64_t+set}" = set; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14199 else
14200 cat >conftest.$ac_ext <<_ACEOF
14201 /* confdefs.h. */
14202 _ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14206 #include <sys/types.h>
14207 #include <$i>
14210 main ()
14212 if ((u_int64_t *) 0)
14213 return 0;
14214 if (sizeof (u_int64_t))
14215 return 0;
14217 return 0;
14219 _ACEOF
14220 rm -f conftest.$ac_objext
14221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14222 (eval $ac_compile) 2>conftest.er1
14223 ac_status=$?
14224 grep -v '^ *+' conftest.er1 >conftest.err
14225 rm -f conftest.er1
14226 cat conftest.err >&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } &&
14229 { ac_try='test -z "$ac_c_werror_flag"
14230 || test ! -s conftest.err'
14231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232 (eval $ac_try) 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; } &&
14236 { ac_try='test -s conftest.$ac_objext'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14239 ac_status=$?
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
14242 ac_cv_type_u_int64_t=yes
14243 else
14244 echo "$as_me: failed program was:" >&5
14245 sed 's/^/| /' conftest.$ac_ext >&5
14247 ac_cv_type_u_int64_t=no
14249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14251 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14252 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14254 break
14255 done
14257 if test "$acx_cv_header_stdint" = stddef.h; then
14258 acx_cv_header_stdint_kind="(using manual detection)"
14261 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14262 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14263 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14264 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14265 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14267 # ----------------- Summarize what we found so far
14269 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
14270 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
14272 case `$as_basename gstdint.h ||
14273 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14274 Xgstdint.h : 'X\(//\)$' \| \
14275 Xgstdint.h : 'X\(/\)$' \| \
14276 . : '\(.\)' 2>/dev/null ||
14277 echo X/gstdint.h |
14278 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14279 /^X\/\(\/\/\)$/{ s//\1/; q; }
14280 /^X\/\(\/\).*/{ s//\1/; q; }
14281 s/.*/./; q'` in
14282 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14283 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14284 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14285 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14286 *) ;;
14287 esac
14289 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14290 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14292 # ----------------- done included file, check C basic types --------
14294 # Lacking an uintptr_t? Test size of void *
14295 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14296 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14297 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14298 if test "${ac_cv_type_void_p+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 else
14301 cat >conftest.$ac_ext <<_ACEOF
14302 /* confdefs.h. */
14303 _ACEOF
14304 cat confdefs.h >>conftest.$ac_ext
14305 cat >>conftest.$ac_ext <<_ACEOF
14306 /* end confdefs.h. */
14307 $ac_includes_default
14309 main ()
14311 if ((void * *) 0)
14312 return 0;
14313 if (sizeof (void *))
14314 return 0;
14316 return 0;
14318 _ACEOF
14319 rm -f conftest.$ac_objext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321 (eval $ac_compile) 2>conftest.er1
14322 ac_status=$?
14323 grep -v '^ *+' conftest.er1 >conftest.err
14324 rm -f conftest.er1
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -z "$ac_c_werror_flag"
14329 || test ! -s conftest.err'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; } &&
14335 { ac_try='test -s conftest.$ac_objext'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 ac_cv_type_void_p=yes
14342 else
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14346 ac_cv_type_void_p=no
14348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14350 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14351 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14353 echo "$as_me:$LINENO: checking size of void *" >&5
14354 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14355 if test "${ac_cv_sizeof_void_p+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14357 else
14358 if test "$ac_cv_type_void_p" = yes; then
14359 # The cast to unsigned long works around a bug in the HP C Compiler
14360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14362 # This bug is HP SR number 8606223364.
14363 if test "$cross_compiling" = yes; then
14364 # Depending upon the size, compute the lo and hi bounds.
14365 cat >conftest.$ac_ext <<_ACEOF
14366 /* confdefs.h. */
14367 _ACEOF
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h. */
14371 $ac_includes_default
14373 main ()
14375 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14376 test_array [0] = 0
14379 return 0;
14381 _ACEOF
14382 rm -f conftest.$ac_objext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14384 (eval $ac_compile) 2>conftest.er1
14385 ac_status=$?
14386 grep -v '^ *+' conftest.er1 >conftest.err
14387 rm -f conftest.er1
14388 cat conftest.err >&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try='test -z "$ac_c_werror_flag"
14392 || test ! -s conftest.err'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; } &&
14398 { ac_try='test -s conftest.$ac_objext'
14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400 (eval $ac_try) 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; }; then
14404 ac_lo=0 ac_mid=0
14405 while :; do
14406 cat >conftest.$ac_ext <<_ACEOF
14407 /* confdefs.h. */
14408 _ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h. */
14412 $ac_includes_default
14414 main ()
14416 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14417 test_array [0] = 0
14420 return 0;
14422 _ACEOF
14423 rm -f conftest.$ac_objext
14424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14425 (eval $ac_compile) 2>conftest.er1
14426 ac_status=$?
14427 grep -v '^ *+' conftest.er1 >conftest.err
14428 rm -f conftest.er1
14429 cat conftest.err >&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } &&
14432 { ac_try='test -z "$ac_c_werror_flag"
14433 || test ! -s conftest.err'
14434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435 (eval $ac_try) 2>&5
14436 ac_status=$?
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; } &&
14439 { ac_try='test -s conftest.$ac_objext'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; }; then
14445 ac_hi=$ac_mid; break
14446 else
14447 echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.$ac_ext >&5
14450 ac_lo=`expr $ac_mid + 1`
14451 if test $ac_lo -le $ac_mid; then
14452 ac_lo= ac_hi=
14453 break
14455 ac_mid=`expr 2 '*' $ac_mid + 1`
14457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14458 done
14459 else
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14463 cat >conftest.$ac_ext <<_ACEOF
14464 /* confdefs.h. */
14465 _ACEOF
14466 cat confdefs.h >>conftest.$ac_ext
14467 cat >>conftest.$ac_ext <<_ACEOF
14468 /* end confdefs.h. */
14469 $ac_includes_default
14471 main ()
14473 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14474 test_array [0] = 0
14477 return 0;
14479 _ACEOF
14480 rm -f conftest.$ac_objext
14481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14482 (eval $ac_compile) 2>conftest.er1
14483 ac_status=$?
14484 grep -v '^ *+' conftest.er1 >conftest.err
14485 rm -f conftest.er1
14486 cat conftest.err >&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); } &&
14489 { ac_try='test -z "$ac_c_werror_flag"
14490 || test ! -s conftest.err'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; } &&
14496 { ac_try='test -s conftest.$ac_objext'
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14499 ac_status=$?
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; }; then
14502 ac_hi=-1 ac_mid=-1
14503 while :; do
14504 cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h. */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14510 $ac_includes_default
14512 main ()
14514 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14515 test_array [0] = 0
14518 return 0;
14520 _ACEOF
14521 rm -f conftest.$ac_objext
14522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14523 (eval $ac_compile) 2>conftest.er1
14524 ac_status=$?
14525 grep -v '^ *+' conftest.er1 >conftest.err
14526 rm -f conftest.er1
14527 cat conftest.err >&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } &&
14530 { ac_try='test -z "$ac_c_werror_flag"
14531 || test ! -s conftest.err'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; } &&
14537 { ac_try='test -s conftest.$ac_objext'
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
14543 ac_lo=$ac_mid; break
14544 else
14545 echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14548 ac_hi=`expr '(' $ac_mid ')' - 1`
14549 if test $ac_mid -le $ac_hi; then
14550 ac_lo= ac_hi=
14551 break
14553 ac_mid=`expr 2 '*' $ac_mid`
14555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14556 done
14557 else
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14561 ac_lo= ac_hi=
14563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14566 # Binary search between lo and hi bounds.
14567 while test "x$ac_lo" != "x$ac_hi"; do
14568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14569 cat >conftest.$ac_ext <<_ACEOF
14570 /* confdefs.h. */
14571 _ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h. */
14575 $ac_includes_default
14577 main ()
14579 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14580 test_array [0] = 0
14583 return 0;
14585 _ACEOF
14586 rm -f conftest.$ac_objext
14587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14588 (eval $ac_compile) 2>conftest.er1
14589 ac_status=$?
14590 grep -v '^ *+' conftest.er1 >conftest.err
14591 rm -f conftest.er1
14592 cat conftest.err >&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); } &&
14595 { ac_try='test -z "$ac_c_werror_flag"
14596 || test ! -s conftest.err'
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14599 ac_status=$?
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; } &&
14602 { ac_try='test -s conftest.$ac_objext'
14603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14604 (eval $ac_try) 2>&5
14605 ac_status=$?
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); }; }; then
14608 ac_hi=$ac_mid
14609 else
14610 echo "$as_me: failed program was:" >&5
14611 sed 's/^/| /' conftest.$ac_ext >&5
14613 ac_lo=`expr '(' $ac_mid ')' + 1`
14615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14616 done
14617 case $ac_lo in
14618 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14619 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14620 See \`config.log' for more details." >&5
14621 echo "$as_me: error: cannot compute sizeof (void *), 77
14622 See \`config.log' for more details." >&2;}
14623 { (exit 1); exit 1; }; } ;;
14624 esac
14625 else
14626 if test "$cross_compiling" = yes; then
14627 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14628 See \`config.log' for more details." >&5
14629 echo "$as_me: error: cannot run test program while cross compiling
14630 See \`config.log' for more details." >&2;}
14631 { (exit 1); exit 1; }; }
14632 else
14633 cat >conftest.$ac_ext <<_ACEOF
14634 /* confdefs.h. */
14635 _ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h. */
14639 $ac_includes_default
14640 long longval () { return (long) (sizeof (void *)); }
14641 unsigned long ulongval () { return (long) (sizeof (void *)); }
14642 #include <stdio.h>
14643 #include <stdlib.h>
14645 main ()
14648 FILE *f = fopen ("conftest.val", "w");
14649 if (! f)
14650 exit (1);
14651 if (((long) (sizeof (void *))) < 0)
14653 long i = longval ();
14654 if (i != ((long) (sizeof (void *))))
14655 exit (1);
14656 fprintf (f, "%ld\n", i);
14658 else
14660 unsigned long i = ulongval ();
14661 if (i != ((long) (sizeof (void *))))
14662 exit (1);
14663 fprintf (f, "%lu\n", i);
14665 exit (ferror (f) || fclose (f) != 0);
14668 return 0;
14670 _ACEOF
14671 rm -f conftest$ac_exeext
14672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14673 (eval $ac_link) 2>&5
14674 ac_status=$?
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14679 ac_status=$?
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
14682 ac_cv_sizeof_void_p=`cat conftest.val`
14683 else
14684 echo "$as_me: program exited with status $ac_status" >&5
14685 echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14688 ( exit $ac_status )
14689 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14690 See \`config.log' for more details." >&5
14691 echo "$as_me: error: cannot compute sizeof (void *), 77
14692 See \`config.log' for more details." >&2;}
14693 { (exit 1); exit 1; }; }
14695 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14698 rm -f conftest.val
14699 else
14700 ac_cv_sizeof_void_p=0
14703 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14704 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14705 cat >>confdefs.h <<_ACEOF
14706 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14707 _ACEOF
14710 esac
14712 # Lacking an uint64_t? Test size of long
14713 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14714 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14715 echo $ECHO_N "checking for long... $ECHO_C" >&6
14716 if test "${ac_cv_type_long+set}" = set; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 else
14719 cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h. */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14725 $ac_includes_default
14727 main ()
14729 if ((long *) 0)
14730 return 0;
14731 if (sizeof (long))
14732 return 0;
14734 return 0;
14736 _ACEOF
14737 rm -f conftest.$ac_objext
14738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14739 (eval $ac_compile) 2>conftest.er1
14740 ac_status=$?
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -z "$ac_c_werror_flag"
14747 || test ! -s conftest.err'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14750 ac_status=$?
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; } &&
14753 { ac_try='test -s conftest.$ac_objext'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14756 ac_status=$?
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; }; then
14759 ac_cv_type_long=yes
14760 else
14761 echo "$as_me: failed program was:" >&5
14762 sed 's/^/| /' conftest.$ac_ext >&5
14764 ac_cv_type_long=no
14766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14768 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14769 echo "${ECHO_T}$ac_cv_type_long" >&6
14771 echo "$as_me:$LINENO: checking size of long" >&5
14772 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14773 if test "${ac_cv_sizeof_long+set}" = set; then
14774 echo $ECHO_N "(cached) $ECHO_C" >&6
14775 else
14776 if test "$ac_cv_type_long" = yes; then
14777 # The cast to unsigned long works around a bug in the HP C Compiler
14778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14780 # This bug is HP SR number 8606223364.
14781 if test "$cross_compiling" = yes; then
14782 # Depending upon the size, compute the lo and hi bounds.
14783 cat >conftest.$ac_ext <<_ACEOF
14784 /* confdefs.h. */
14785 _ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 $ac_includes_default
14791 main ()
14793 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14794 test_array [0] = 0
14797 return 0;
14799 _ACEOF
14800 rm -f conftest.$ac_objext
14801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14802 (eval $ac_compile) 2>conftest.er1
14803 ac_status=$?
14804 grep -v '^ *+' conftest.er1 >conftest.err
14805 rm -f conftest.er1
14806 cat conftest.err >&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } &&
14809 { ac_try='test -z "$ac_c_werror_flag"
14810 || test ! -s conftest.err'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14813 ac_status=$?
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; } &&
14816 { ac_try='test -s conftest.$ac_objext'
14817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14819 ac_status=$?
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; }; then
14822 ac_lo=0 ac_mid=0
14823 while :; do
14824 cat >conftest.$ac_ext <<_ACEOF
14825 /* confdefs.h. */
14826 _ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14830 $ac_includes_default
14832 main ()
14834 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14835 test_array [0] = 0
14838 return 0;
14840 _ACEOF
14841 rm -f conftest.$ac_objext
14842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14843 (eval $ac_compile) 2>conftest.er1
14844 ac_status=$?
14845 grep -v '^ *+' conftest.er1 >conftest.err
14846 rm -f conftest.er1
14847 cat conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } &&
14850 { ac_try='test -z "$ac_c_werror_flag"
14851 || test ! -s conftest.err'
14852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14853 (eval $ac_try) 2>&5
14854 ac_status=$?
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); }; } &&
14857 { ac_try='test -s conftest.$ac_objext'
14858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859 (eval $ac_try) 2>&5
14860 ac_status=$?
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; }; then
14863 ac_hi=$ac_mid; break
14864 else
14865 echo "$as_me: failed program was:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14868 ac_lo=`expr $ac_mid + 1`
14869 if test $ac_lo -le $ac_mid; then
14870 ac_lo= ac_hi=
14871 break
14873 ac_mid=`expr 2 '*' $ac_mid + 1`
14875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14876 done
14877 else
14878 echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14881 cat >conftest.$ac_ext <<_ACEOF
14882 /* confdefs.h. */
14883 _ACEOF
14884 cat confdefs.h >>conftest.$ac_ext
14885 cat >>conftest.$ac_ext <<_ACEOF
14886 /* end confdefs.h. */
14887 $ac_includes_default
14889 main ()
14891 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14892 test_array [0] = 0
14895 return 0;
14897 _ACEOF
14898 rm -f conftest.$ac_objext
14899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14900 (eval $ac_compile) 2>conftest.er1
14901 ac_status=$?
14902 grep -v '^ *+' conftest.er1 >conftest.err
14903 rm -f conftest.er1
14904 cat conftest.err >&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } &&
14907 { ac_try='test -z "$ac_c_werror_flag"
14908 || test ! -s conftest.err'
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; } &&
14914 { ac_try='test -s conftest.$ac_objext'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 ac_hi=-1 ac_mid=-1
14921 while :; do
14922 cat >conftest.$ac_ext <<_ACEOF
14923 /* confdefs.h. */
14924 _ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h. */
14928 $ac_includes_default
14930 main ()
14932 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14933 test_array [0] = 0
14936 return 0;
14938 _ACEOF
14939 rm -f conftest.$ac_objext
14940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14941 (eval $ac_compile) 2>conftest.er1
14942 ac_status=$?
14943 grep -v '^ *+' conftest.er1 >conftest.err
14944 rm -f conftest.er1
14945 cat conftest.err >&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); } &&
14948 { ac_try='test -z "$ac_c_werror_flag"
14949 || test ! -s conftest.err'
14950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14952 ac_status=$?
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; } &&
14955 { ac_try='test -s conftest.$ac_objext'
14956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957 (eval $ac_try) 2>&5
14958 ac_status=$?
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); }; }; then
14961 ac_lo=$ac_mid; break
14962 else
14963 echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14966 ac_hi=`expr '(' $ac_mid ')' - 1`
14967 if test $ac_mid -le $ac_hi; then
14968 ac_lo= ac_hi=
14969 break
14971 ac_mid=`expr 2 '*' $ac_mid`
14973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14974 done
14975 else
14976 echo "$as_me: failed program was:" >&5
14977 sed 's/^/| /' conftest.$ac_ext >&5
14979 ac_lo= ac_hi=
14981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14984 # Binary search between lo and hi bounds.
14985 while test "x$ac_lo" != "x$ac_hi"; do
14986 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14987 cat >conftest.$ac_ext <<_ACEOF
14988 /* confdefs.h. */
14989 _ACEOF
14990 cat confdefs.h >>conftest.$ac_ext
14991 cat >>conftest.$ac_ext <<_ACEOF
14992 /* end confdefs.h. */
14993 $ac_includes_default
14995 main ()
14997 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14998 test_array [0] = 0
15001 return 0;
15003 _ACEOF
15004 rm -f conftest.$ac_objext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15006 (eval $ac_compile) 2>conftest.er1
15007 ac_status=$?
15008 grep -v '^ *+' conftest.er1 >conftest.err
15009 rm -f conftest.er1
15010 cat conftest.err >&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); } &&
15013 { ac_try='test -z "$ac_c_werror_flag"
15014 || test ! -s conftest.err'
15015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15017 ac_status=$?
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; } &&
15020 { ac_try='test -s conftest.$ac_objext'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026 ac_hi=$ac_mid
15027 else
15028 echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15031 ac_lo=`expr '(' $ac_mid ')' + 1`
15033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15034 done
15035 case $ac_lo in
15036 ?*) ac_cv_sizeof_long=$ac_lo;;
15037 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15038 See \`config.log' for more details." >&5
15039 echo "$as_me: error: cannot compute sizeof (long), 77
15040 See \`config.log' for more details." >&2;}
15041 { (exit 1); exit 1; }; } ;;
15042 esac
15043 else
15044 if test "$cross_compiling" = yes; then
15045 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15046 See \`config.log' for more details." >&5
15047 echo "$as_me: error: cannot run test program while cross compiling
15048 See \`config.log' for more details." >&2;}
15049 { (exit 1); exit 1; }; }
15050 else
15051 cat >conftest.$ac_ext <<_ACEOF
15052 /* confdefs.h. */
15053 _ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15057 $ac_includes_default
15058 long longval () { return (long) (sizeof (long)); }
15059 unsigned long ulongval () { return (long) (sizeof (long)); }
15060 #include <stdio.h>
15061 #include <stdlib.h>
15063 main ()
15066 FILE *f = fopen ("conftest.val", "w");
15067 if (! f)
15068 exit (1);
15069 if (((long) (sizeof (long))) < 0)
15071 long i = longval ();
15072 if (i != ((long) (sizeof (long))))
15073 exit (1);
15074 fprintf (f, "%ld\n", i);
15076 else
15078 unsigned long i = ulongval ();
15079 if (i != ((long) (sizeof (long))))
15080 exit (1);
15081 fprintf (f, "%lu\n", i);
15083 exit (ferror (f) || fclose (f) != 0);
15086 return 0;
15088 _ACEOF
15089 rm -f conftest$ac_exeext
15090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15091 (eval $ac_link) 2>&5
15092 ac_status=$?
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_cv_sizeof_long=`cat conftest.val`
15101 else
15102 echo "$as_me: program exited with status $ac_status" >&5
15103 echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15106 ( exit $ac_status )
15107 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15108 See \`config.log' for more details." >&5
15109 echo "$as_me: error: cannot compute sizeof (long), 77
15110 See \`config.log' for more details." >&2;}
15111 { (exit 1); exit 1; }; }
15113 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15116 rm -f conftest.val
15117 else
15118 ac_cv_sizeof_long=0
15121 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15122 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15123 cat >>confdefs.h <<_ACEOF
15124 #define SIZEOF_LONG $ac_cv_sizeof_long
15125 _ACEOF
15128 esac
15130 if test $acx_cv_header_stdint = stddef.h; then
15131 # Lacking a good header? Test size of everything and deduce all types.
15132 echo "$as_me:$LINENO: checking for int" >&5
15133 echo $ECHO_N "checking for int... $ECHO_C" >&6
15134 if test "${ac_cv_type_int+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15136 else
15137 cat >conftest.$ac_ext <<_ACEOF
15138 /* confdefs.h. */
15139 _ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15143 $ac_includes_default
15145 main ()
15147 if ((int *) 0)
15148 return 0;
15149 if (sizeof (int))
15150 return 0;
15152 return 0;
15154 _ACEOF
15155 rm -f conftest.$ac_objext
15156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15157 (eval $ac_compile) 2>conftest.er1
15158 ac_status=$?
15159 grep -v '^ *+' conftest.er1 >conftest.err
15160 rm -f conftest.er1
15161 cat conftest.err >&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } &&
15164 { ac_try='test -z "$ac_c_werror_flag"
15165 || test ! -s conftest.err'
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; } &&
15171 { ac_try='test -s conftest.$ac_objext'
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15174 ac_status=$?
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }; then
15177 ac_cv_type_int=yes
15178 else
15179 echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15182 ac_cv_type_int=no
15184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15186 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15187 echo "${ECHO_T}$ac_cv_type_int" >&6
15189 echo "$as_me:$LINENO: checking size of int" >&5
15190 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15191 if test "${ac_cv_sizeof_int+set}" = set; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 else
15194 if test "$ac_cv_type_int" = yes; then
15195 # The cast to unsigned long works around a bug in the HP C Compiler
15196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15198 # This bug is HP SR number 8606223364.
15199 if test "$cross_compiling" = yes; then
15200 # Depending upon the size, compute the lo and hi bounds.
15201 cat >conftest.$ac_ext <<_ACEOF
15202 /* confdefs.h. */
15203 _ACEOF
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h. */
15207 $ac_includes_default
15209 main ()
15211 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15212 test_array [0] = 0
15215 return 0;
15217 _ACEOF
15218 rm -f conftest.$ac_objext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15220 (eval $ac_compile) 2>conftest.er1
15221 ac_status=$?
15222 grep -v '^ *+' conftest.er1 >conftest.err
15223 rm -f conftest.er1
15224 cat conftest.err >&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } &&
15227 { ac_try='test -z "$ac_c_werror_flag"
15228 || test ! -s conftest.err'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; } &&
15234 { ac_try='test -s conftest.$ac_objext'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15240 ac_lo=0 ac_mid=0
15241 while :; do
15242 cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h. */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 $ac_includes_default
15250 main ()
15252 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15253 test_array [0] = 0
15256 return 0;
15258 _ACEOF
15259 rm -f conftest.$ac_objext
15260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15261 (eval $ac_compile) 2>conftest.er1
15262 ac_status=$?
15263 grep -v '^ *+' conftest.er1 >conftest.err
15264 rm -f conftest.er1
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
15268 { ac_try='test -z "$ac_c_werror_flag"
15269 || test ! -s conftest.err'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; } &&
15275 { ac_try='test -s conftest.$ac_objext'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 ac_hi=$ac_mid; break
15282 else
15283 echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15286 ac_lo=`expr $ac_mid + 1`
15287 if test $ac_lo -le $ac_mid; then
15288 ac_lo= ac_hi=
15289 break
15291 ac_mid=`expr 2 '*' $ac_mid + 1`
15293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15294 done
15295 else
15296 echo "$as_me: failed program was:" >&5
15297 sed 's/^/| /' conftest.$ac_ext >&5
15299 cat >conftest.$ac_ext <<_ACEOF
15300 /* confdefs.h. */
15301 _ACEOF
15302 cat confdefs.h >>conftest.$ac_ext
15303 cat >>conftest.$ac_ext <<_ACEOF
15304 /* end confdefs.h. */
15305 $ac_includes_default
15307 main ()
15309 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15310 test_array [0] = 0
15313 return 0;
15315 _ACEOF
15316 rm -f conftest.$ac_objext
15317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15318 (eval $ac_compile) 2>conftest.er1
15319 ac_status=$?
15320 grep -v '^ *+' conftest.er1 >conftest.err
15321 rm -f conftest.er1
15322 cat conftest.err >&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } &&
15325 { ac_try='test -z "$ac_c_werror_flag"
15326 || test ! -s conftest.err'
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; } &&
15332 { ac_try='test -s conftest.$ac_objext'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15335 ac_status=$?
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; }; then
15338 ac_hi=-1 ac_mid=-1
15339 while :; do
15340 cat >conftest.$ac_ext <<_ACEOF
15341 /* confdefs.h. */
15342 _ACEOF
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h. */
15346 $ac_includes_default
15348 main ()
15350 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15351 test_array [0] = 0
15354 return 0;
15356 _ACEOF
15357 rm -f conftest.$ac_objext
15358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15359 (eval $ac_compile) 2>conftest.er1
15360 ac_status=$?
15361 grep -v '^ *+' conftest.er1 >conftest.err
15362 rm -f conftest.er1
15363 cat conftest.err >&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } &&
15366 { ac_try='test -z "$ac_c_werror_flag"
15367 || test ! -s conftest.err'
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15370 ac_status=$?
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; } &&
15373 { ac_try='test -s conftest.$ac_objext'
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; }; then
15379 ac_lo=$ac_mid; break
15380 else
15381 echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15384 ac_hi=`expr '(' $ac_mid ')' - 1`
15385 if test $ac_mid -le $ac_hi; then
15386 ac_lo= ac_hi=
15387 break
15389 ac_mid=`expr 2 '*' $ac_mid`
15391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15392 done
15393 else
15394 echo "$as_me: failed program was:" >&5
15395 sed 's/^/| /' conftest.$ac_ext >&5
15397 ac_lo= ac_hi=
15399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15402 # Binary search between lo and hi bounds.
15403 while test "x$ac_lo" != "x$ac_hi"; do
15404 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15405 cat >conftest.$ac_ext <<_ACEOF
15406 /* confdefs.h. */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15411 $ac_includes_default
15413 main ()
15415 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15416 test_array [0] = 0
15419 return 0;
15421 _ACEOF
15422 rm -f conftest.$ac_objext
15423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15424 (eval $ac_compile) 2>conftest.er1
15425 ac_status=$?
15426 grep -v '^ *+' conftest.er1 >conftest.err
15427 rm -f conftest.er1
15428 cat conftest.err >&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } &&
15431 { ac_try='test -z "$ac_c_werror_flag"
15432 || test ! -s conftest.err'
15433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434 (eval $ac_try) 2>&5
15435 ac_status=$?
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; } &&
15438 { ac_try='test -s conftest.$ac_objext'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; }; then
15444 ac_hi=$ac_mid
15445 else
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 ac_lo=`expr '(' $ac_mid ')' + 1`
15451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15452 done
15453 case $ac_lo in
15454 ?*) ac_cv_sizeof_int=$ac_lo;;
15455 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15456 See \`config.log' for more details." >&5
15457 echo "$as_me: error: cannot compute sizeof (int), 77
15458 See \`config.log' for more details." >&2;}
15459 { (exit 1); exit 1; }; } ;;
15460 esac
15461 else
15462 if test "$cross_compiling" = yes; then
15463 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15464 See \`config.log' for more details." >&5
15465 echo "$as_me: error: cannot run test program while cross compiling
15466 See \`config.log' for more details." >&2;}
15467 { (exit 1); exit 1; }; }
15468 else
15469 cat >conftest.$ac_ext <<_ACEOF
15470 /* confdefs.h. */
15471 _ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h. */
15475 $ac_includes_default
15476 long longval () { return (long) (sizeof (int)); }
15477 unsigned long ulongval () { return (long) (sizeof (int)); }
15478 #include <stdio.h>
15479 #include <stdlib.h>
15481 main ()
15484 FILE *f = fopen ("conftest.val", "w");
15485 if (! f)
15486 exit (1);
15487 if (((long) (sizeof (int))) < 0)
15489 long i = longval ();
15490 if (i != ((long) (sizeof (int))))
15491 exit (1);
15492 fprintf (f, "%ld\n", i);
15494 else
15496 unsigned long i = ulongval ();
15497 if (i != ((long) (sizeof (int))))
15498 exit (1);
15499 fprintf (f, "%lu\n", i);
15501 exit (ferror (f) || fclose (f) != 0);
15504 return 0;
15506 _ACEOF
15507 rm -f conftest$ac_exeext
15508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15509 (eval $ac_link) 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514 (eval $ac_try) 2>&5
15515 ac_status=$?
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
15518 ac_cv_sizeof_int=`cat conftest.val`
15519 else
15520 echo "$as_me: program exited with status $ac_status" >&5
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15524 ( exit $ac_status )
15525 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15526 See \`config.log' for more details." >&5
15527 echo "$as_me: error: cannot compute sizeof (int), 77
15528 See \`config.log' for more details." >&2;}
15529 { (exit 1); exit 1; }; }
15531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15534 rm -f conftest.val
15535 else
15536 ac_cv_sizeof_int=0
15539 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15540 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15541 cat >>confdefs.h <<_ACEOF
15542 #define SIZEOF_INT $ac_cv_sizeof_int
15543 _ACEOF
15546 echo "$as_me:$LINENO: checking for short" >&5
15547 echo $ECHO_N "checking for short... $ECHO_C" >&6
15548 if test "${ac_cv_type_short+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15550 else
15551 cat >conftest.$ac_ext <<_ACEOF
15552 /* confdefs.h. */
15553 _ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 $ac_includes_default
15559 main ()
15561 if ((short *) 0)
15562 return 0;
15563 if (sizeof (short))
15564 return 0;
15566 return 0;
15568 _ACEOF
15569 rm -f conftest.$ac_objext
15570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15571 (eval $ac_compile) 2>conftest.er1
15572 ac_status=$?
15573 grep -v '^ *+' conftest.er1 >conftest.err
15574 rm -f conftest.er1
15575 cat conftest.err >&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } &&
15578 { ac_try='test -z "$ac_c_werror_flag"
15579 || test ! -s conftest.err'
15580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581 (eval $ac_try) 2>&5
15582 ac_status=$?
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; } &&
15585 { ac_try='test -s conftest.$ac_objext'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; }; then
15591 ac_cv_type_short=yes
15592 else
15593 echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15596 ac_cv_type_short=no
15598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15600 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15601 echo "${ECHO_T}$ac_cv_type_short" >&6
15603 echo "$as_me:$LINENO: checking size of short" >&5
15604 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15605 if test "${ac_cv_sizeof_short+set}" = set; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15607 else
15608 if test "$ac_cv_type_short" = yes; then
15609 # The cast to unsigned long works around a bug in the HP C Compiler
15610 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15611 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15612 # This bug is HP SR number 8606223364.
15613 if test "$cross_compiling" = yes; then
15614 # Depending upon the size, compute the lo and hi bounds.
15615 cat >conftest.$ac_ext <<_ACEOF
15616 /* confdefs.h. */
15617 _ACEOF
15618 cat confdefs.h >>conftest.$ac_ext
15619 cat >>conftest.$ac_ext <<_ACEOF
15620 /* end confdefs.h. */
15621 $ac_includes_default
15623 main ()
15625 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15626 test_array [0] = 0
15629 return 0;
15631 _ACEOF
15632 rm -f conftest.$ac_objext
15633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15634 (eval $ac_compile) 2>conftest.er1
15635 ac_status=$?
15636 grep -v '^ *+' conftest.er1 >conftest.err
15637 rm -f conftest.er1
15638 cat conftest.err >&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } &&
15641 { ac_try='test -z "$ac_c_werror_flag"
15642 || test ! -s conftest.err'
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15645 ac_status=$?
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; } &&
15648 { ac_try='test -s conftest.$ac_objext'
15649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15651 ac_status=$?
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15654 ac_lo=0 ac_mid=0
15655 while :; do
15656 cat >conftest.$ac_ext <<_ACEOF
15657 /* confdefs.h. */
15658 _ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h. */
15662 $ac_includes_default
15664 main ()
15666 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15667 test_array [0] = 0
15670 return 0;
15672 _ACEOF
15673 rm -f conftest.$ac_objext
15674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15675 (eval $ac_compile) 2>conftest.er1
15676 ac_status=$?
15677 grep -v '^ *+' conftest.er1 >conftest.err
15678 rm -f conftest.er1
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } &&
15682 { ac_try='test -z "$ac_c_werror_flag"
15683 || test ! -s conftest.err'
15684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685 (eval $ac_try) 2>&5
15686 ac_status=$?
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; } &&
15689 { ac_try='test -s conftest.$ac_objext'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695 ac_hi=$ac_mid; break
15696 else
15697 echo "$as_me: failed program was:" >&5
15698 sed 's/^/| /' conftest.$ac_ext >&5
15700 ac_lo=`expr $ac_mid + 1`
15701 if test $ac_lo -le $ac_mid; then
15702 ac_lo= ac_hi=
15703 break
15705 ac_mid=`expr 2 '*' $ac_mid + 1`
15707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15708 done
15709 else
15710 echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15713 cat >conftest.$ac_ext <<_ACEOF
15714 /* confdefs.h. */
15715 _ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15719 $ac_includes_default
15721 main ()
15723 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15724 test_array [0] = 0
15727 return 0;
15729 _ACEOF
15730 rm -f conftest.$ac_objext
15731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15732 (eval $ac_compile) 2>conftest.er1
15733 ac_status=$?
15734 grep -v '^ *+' conftest.er1 >conftest.err
15735 rm -f conftest.er1
15736 cat conftest.err >&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } &&
15739 { ac_try='test -z "$ac_c_werror_flag"
15740 || test ! -s conftest.err'
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; } &&
15746 { ac_try='test -s conftest.$ac_objext'
15747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748 (eval $ac_try) 2>&5
15749 ac_status=$?
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); }; }; then
15752 ac_hi=-1 ac_mid=-1
15753 while :; do
15754 cat >conftest.$ac_ext <<_ACEOF
15755 /* confdefs.h. */
15756 _ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h. */
15760 $ac_includes_default
15762 main ()
15764 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15765 test_array [0] = 0
15768 return 0;
15770 _ACEOF
15771 rm -f conftest.$ac_objext
15772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15773 (eval $ac_compile) 2>conftest.er1
15774 ac_status=$?
15775 grep -v '^ *+' conftest.er1 >conftest.err
15776 rm -f conftest.er1
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } &&
15780 { ac_try='test -z "$ac_c_werror_flag"
15781 || test ! -s conftest.err'
15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783 (eval $ac_try) 2>&5
15784 ac_status=$?
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; } &&
15787 { ac_try='test -s conftest.$ac_objext'
15788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789 (eval $ac_try) 2>&5
15790 ac_status=$?
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; }; then
15793 ac_lo=$ac_mid; break
15794 else
15795 echo "$as_me: failed program was:" >&5
15796 sed 's/^/| /' conftest.$ac_ext >&5
15798 ac_hi=`expr '(' $ac_mid ')' - 1`
15799 if test $ac_mid -le $ac_hi; then
15800 ac_lo= ac_hi=
15801 break
15803 ac_mid=`expr 2 '*' $ac_mid`
15805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15806 done
15807 else
15808 echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15811 ac_lo= ac_hi=
15813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15816 # Binary search between lo and hi bounds.
15817 while test "x$ac_lo" != "x$ac_hi"; do
15818 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15819 cat >conftest.$ac_ext <<_ACEOF
15820 /* confdefs.h. */
15821 _ACEOF
15822 cat confdefs.h >>conftest.$ac_ext
15823 cat >>conftest.$ac_ext <<_ACEOF
15824 /* end confdefs.h. */
15825 $ac_includes_default
15827 main ()
15829 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15830 test_array [0] = 0
15833 return 0;
15835 _ACEOF
15836 rm -f conftest.$ac_objext
15837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15838 (eval $ac_compile) 2>conftest.er1
15839 ac_status=$?
15840 grep -v '^ *+' conftest.er1 >conftest.err
15841 rm -f conftest.er1
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag"
15846 || test ! -s conftest.err'
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; } &&
15852 { ac_try='test -s conftest.$ac_objext'
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
15858 ac_hi=$ac_mid
15859 else
15860 echo "$as_me: failed program was:" >&5
15861 sed 's/^/| /' conftest.$ac_ext >&5
15863 ac_lo=`expr '(' $ac_mid ')' + 1`
15865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15866 done
15867 case $ac_lo in
15868 ?*) ac_cv_sizeof_short=$ac_lo;;
15869 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15870 See \`config.log' for more details." >&5
15871 echo "$as_me: error: cannot compute sizeof (short), 77
15872 See \`config.log' for more details." >&2;}
15873 { (exit 1); exit 1; }; } ;;
15874 esac
15875 else
15876 if test "$cross_compiling" = yes; then
15877 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15878 See \`config.log' for more details." >&5
15879 echo "$as_me: error: cannot run test program while cross compiling
15880 See \`config.log' for more details." >&2;}
15881 { (exit 1); exit 1; }; }
15882 else
15883 cat >conftest.$ac_ext <<_ACEOF
15884 /* confdefs.h. */
15885 _ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15889 $ac_includes_default
15890 long longval () { return (long) (sizeof (short)); }
15891 unsigned long ulongval () { return (long) (sizeof (short)); }
15892 #include <stdio.h>
15893 #include <stdlib.h>
15895 main ()
15898 FILE *f = fopen ("conftest.val", "w");
15899 if (! f)
15900 exit (1);
15901 if (((long) (sizeof (short))) < 0)
15903 long i = longval ();
15904 if (i != ((long) (sizeof (short))))
15905 exit (1);
15906 fprintf (f, "%ld\n", i);
15908 else
15910 unsigned long i = ulongval ();
15911 if (i != ((long) (sizeof (short))))
15912 exit (1);
15913 fprintf (f, "%lu\n", i);
15915 exit (ferror (f) || fclose (f) != 0);
15918 return 0;
15920 _ACEOF
15921 rm -f conftest$ac_exeext
15922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15923 (eval $ac_link) 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928 (eval $ac_try) 2>&5
15929 ac_status=$?
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); }; }; then
15932 ac_cv_sizeof_short=`cat conftest.val`
15933 else
15934 echo "$as_me: program exited with status $ac_status" >&5
15935 echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15938 ( exit $ac_status )
15939 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15940 See \`config.log' for more details." >&5
15941 echo "$as_me: error: cannot compute sizeof (short), 77
15942 See \`config.log' for more details." >&2;}
15943 { (exit 1); exit 1; }; }
15945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15948 rm -f conftest.val
15949 else
15950 ac_cv_sizeof_short=0
15953 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15954 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15955 cat >>confdefs.h <<_ACEOF
15956 #define SIZEOF_SHORT $ac_cv_sizeof_short
15957 _ACEOF
15960 echo "$as_me:$LINENO: checking for char" >&5
15961 echo $ECHO_N "checking for char... $ECHO_C" >&6
15962 if test "${ac_cv_type_char+set}" = set; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 else
15965 cat >conftest.$ac_ext <<_ACEOF
15966 /* confdefs.h. */
15967 _ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15971 $ac_includes_default
15973 main ()
15975 if ((char *) 0)
15976 return 0;
15977 if (sizeof (char))
15978 return 0;
15980 return 0;
15982 _ACEOF
15983 rm -f conftest.$ac_objext
15984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985 (eval $ac_compile) 2>conftest.er1
15986 ac_status=$?
15987 grep -v '^ *+' conftest.er1 >conftest.err
15988 rm -f conftest.er1
15989 cat conftest.err >&5
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); } &&
15992 { ac_try='test -z "$ac_c_werror_flag"
15993 || test ! -s conftest.err'
15994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995 (eval $ac_try) 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; } &&
15999 { ac_try='test -s conftest.$ac_objext'
16000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001 (eval $ac_try) 2>&5
16002 ac_status=$?
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); }; }; then
16005 ac_cv_type_char=yes
16006 else
16007 echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16010 ac_cv_type_char=no
16012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16014 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16015 echo "${ECHO_T}$ac_cv_type_char" >&6
16017 echo "$as_me:$LINENO: checking size of char" >&5
16018 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16019 if test "${ac_cv_sizeof_char+set}" = set; then
16020 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 else
16022 if test "$ac_cv_type_char" = yes; then
16023 # The cast to unsigned long works around a bug in the HP C Compiler
16024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16026 # This bug is HP SR number 8606223364.
16027 if test "$cross_compiling" = yes; then
16028 # Depending upon the size, compute the lo and hi bounds.
16029 cat >conftest.$ac_ext <<_ACEOF
16030 /* confdefs.h. */
16031 _ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h. */
16035 $ac_includes_default
16037 main ()
16039 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16040 test_array [0] = 0
16043 return 0;
16045 _ACEOF
16046 rm -f conftest.$ac_objext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16048 (eval $ac_compile) 2>conftest.er1
16049 ac_status=$?
16050 grep -v '^ *+' conftest.er1 >conftest.err
16051 rm -f conftest.er1
16052 cat conftest.err >&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); } &&
16055 { ac_try='test -z "$ac_c_werror_flag"
16056 || test ! -s conftest.err'
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16059 ac_status=$?
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; } &&
16062 { ac_try='test -s conftest.$ac_objext'
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16065 ac_status=$?
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; }; then
16068 ac_lo=0 ac_mid=0
16069 while :; do
16070 cat >conftest.$ac_ext <<_ACEOF
16071 /* confdefs.h. */
16072 _ACEOF
16073 cat confdefs.h >>conftest.$ac_ext
16074 cat >>conftest.$ac_ext <<_ACEOF
16075 /* end confdefs.h. */
16076 $ac_includes_default
16078 main ()
16080 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16081 test_array [0] = 0
16084 return 0;
16086 _ACEOF
16087 rm -f conftest.$ac_objext
16088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16089 (eval $ac_compile) 2>conftest.er1
16090 ac_status=$?
16091 grep -v '^ *+' conftest.er1 >conftest.err
16092 rm -f conftest.er1
16093 cat conftest.err >&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } &&
16096 { ac_try='test -z "$ac_c_werror_flag"
16097 || test ! -s conftest.err'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest.$ac_objext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_hi=$ac_mid; break
16110 else
16111 echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16114 ac_lo=`expr $ac_mid + 1`
16115 if test $ac_lo -le $ac_mid; then
16116 ac_lo= ac_hi=
16117 break
16119 ac_mid=`expr 2 '*' $ac_mid + 1`
16121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16122 done
16123 else
16124 echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16127 cat >conftest.$ac_ext <<_ACEOF
16128 /* confdefs.h. */
16129 _ACEOF
16130 cat confdefs.h >>conftest.$ac_ext
16131 cat >>conftest.$ac_ext <<_ACEOF
16132 /* end confdefs.h. */
16133 $ac_includes_default
16135 main ()
16137 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16138 test_array [0] = 0
16141 return 0;
16143 _ACEOF
16144 rm -f conftest.$ac_objext
16145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16146 (eval $ac_compile) 2>conftest.er1
16147 ac_status=$?
16148 grep -v '^ *+' conftest.er1 >conftest.err
16149 rm -f conftest.er1
16150 cat conftest.err >&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } &&
16153 { ac_try='test -z "$ac_c_werror_flag"
16154 || test ! -s conftest.err'
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16157 ac_status=$?
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; } &&
16160 { ac_try='test -s conftest.$ac_objext'
16161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162 (eval $ac_try) 2>&5
16163 ac_status=$?
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; }; then
16166 ac_hi=-1 ac_mid=-1
16167 while :; do
16168 cat >conftest.$ac_ext <<_ACEOF
16169 /* confdefs.h. */
16170 _ACEOF
16171 cat confdefs.h >>conftest.$ac_ext
16172 cat >>conftest.$ac_ext <<_ACEOF
16173 /* end confdefs.h. */
16174 $ac_includes_default
16176 main ()
16178 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16179 test_array [0] = 0
16182 return 0;
16184 _ACEOF
16185 rm -f conftest.$ac_objext
16186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16187 (eval $ac_compile) 2>conftest.er1
16188 ac_status=$?
16189 grep -v '^ *+' conftest.er1 >conftest.err
16190 rm -f conftest.er1
16191 cat conftest.err >&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } &&
16194 { ac_try='test -z "$ac_c_werror_flag"
16195 || test ! -s conftest.err'
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; } &&
16201 { ac_try='test -s conftest.$ac_objext'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; }; then
16207 ac_lo=$ac_mid; break
16208 else
16209 echo "$as_me: failed program was:" >&5
16210 sed 's/^/| /' conftest.$ac_ext >&5
16212 ac_hi=`expr '(' $ac_mid ')' - 1`
16213 if test $ac_mid -le $ac_hi; then
16214 ac_lo= ac_hi=
16215 break
16217 ac_mid=`expr 2 '*' $ac_mid`
16219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16220 done
16221 else
16222 echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16225 ac_lo= ac_hi=
16227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16230 # Binary search between lo and hi bounds.
16231 while test "x$ac_lo" != "x$ac_hi"; do
16232 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16233 cat >conftest.$ac_ext <<_ACEOF
16234 /* confdefs.h. */
16235 _ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16239 $ac_includes_default
16241 main ()
16243 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16244 test_array [0] = 0
16247 return 0;
16249 _ACEOF
16250 rm -f conftest.$ac_objext
16251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16252 (eval $ac_compile) 2>conftest.er1
16253 ac_status=$?
16254 grep -v '^ *+' conftest.er1 >conftest.err
16255 rm -f conftest.er1
16256 cat conftest.err >&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); } &&
16259 { ac_try='test -z "$ac_c_werror_flag"
16260 || test ! -s conftest.err'
16261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262 (eval $ac_try) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; } &&
16266 { ac_try='test -s conftest.$ac_objext'
16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16269 ac_status=$?
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; }; then
16272 ac_hi=$ac_mid
16273 else
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 ac_lo=`expr '(' $ac_mid ')' + 1`
16279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16280 done
16281 case $ac_lo in
16282 ?*) ac_cv_sizeof_char=$ac_lo;;
16283 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16284 See \`config.log' for more details." >&5
16285 echo "$as_me: error: cannot compute sizeof (char), 77
16286 See \`config.log' for more details." >&2;}
16287 { (exit 1); exit 1; }; } ;;
16288 esac
16289 else
16290 if test "$cross_compiling" = yes; then
16291 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16292 See \`config.log' for more details." >&5
16293 echo "$as_me: error: cannot run test program while cross compiling
16294 See \`config.log' for more details." >&2;}
16295 { (exit 1); exit 1; }; }
16296 else
16297 cat >conftest.$ac_ext <<_ACEOF
16298 /* confdefs.h. */
16299 _ACEOF
16300 cat confdefs.h >>conftest.$ac_ext
16301 cat >>conftest.$ac_ext <<_ACEOF
16302 /* end confdefs.h. */
16303 $ac_includes_default
16304 long longval () { return (long) (sizeof (char)); }
16305 unsigned long ulongval () { return (long) (sizeof (char)); }
16306 #include <stdio.h>
16307 #include <stdlib.h>
16309 main ()
16312 FILE *f = fopen ("conftest.val", "w");
16313 if (! f)
16314 exit (1);
16315 if (((long) (sizeof (char))) < 0)
16317 long i = longval ();
16318 if (i != ((long) (sizeof (char))))
16319 exit (1);
16320 fprintf (f, "%ld\n", i);
16322 else
16324 unsigned long i = ulongval ();
16325 if (i != ((long) (sizeof (char))))
16326 exit (1);
16327 fprintf (f, "%lu\n", i);
16329 exit (ferror (f) || fclose (f) != 0);
16332 return 0;
16334 _ACEOF
16335 rm -f conftest$ac_exeext
16336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16337 (eval $ac_link) 2>&5
16338 ac_status=$?
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16343 ac_status=$?
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; }; then
16346 ac_cv_sizeof_char=`cat conftest.val`
16347 else
16348 echo "$as_me: program exited with status $ac_status" >&5
16349 echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.$ac_ext >&5
16352 ( exit $ac_status )
16353 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16354 See \`config.log' for more details." >&5
16355 echo "$as_me: error: cannot compute sizeof (char), 77
16356 See \`config.log' for more details." >&2;}
16357 { (exit 1); exit 1; }; }
16359 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16362 rm -f conftest.val
16363 else
16364 ac_cv_sizeof_char=0
16367 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16368 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16369 cat >>confdefs.h <<_ACEOF
16370 #define SIZEOF_CHAR $ac_cv_sizeof_char
16371 _ACEOF
16375 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16376 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
16377 case "$ac_cv_sizeof_char" in
16378 1) acx_cv_type_int8_t=char ;;
16379 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16380 echo "$as_me: error: no 8-bit type" >&2;}
16381 { (exit please report a bug); exit please report a bug; }; }
16382 esac
16383 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16384 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
16386 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16387 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
16388 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16389 2:*) acx_cv_type_int16_t=int ;;
16390 *:2) acx_cv_type_int16_t=short ;;
16391 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16392 echo "$as_me: error: no 16-bit type" >&2;}
16393 { (exit please report a bug); exit please report a bug; }; }
16394 esac
16395 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16396 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16398 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16399 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16400 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16401 4:*) acx_cv_type_int32_t=int ;;
16402 *:4) acx_cv_type_int32_t=long ;;
16403 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16404 echo "$as_me: error: no 32-bit type" >&2;}
16405 { (exit please report a bug); exit please report a bug; }; }
16406 esac
16407 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16408 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16411 # These tests are here to make the output prettier
16413 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16414 case "$ac_cv_sizeof_long" in
16415 8) acx_cv_type_int64_t=long ;;
16416 esac
16417 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16418 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16419 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16420 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16423 # Now we can use the above types
16425 if test "$ac_cv_type_uintptr_t" != yes; then
16426 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16427 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16428 case $ac_cv_sizeof_void_p in
16429 2) acx_cv_type_intptr_t=int16_t ;;
16430 4) acx_cv_type_intptr_t=int32_t ;;
16431 8) acx_cv_type_intptr_t=int64_t ;;
16432 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16433 echo "$as_me: error: no equivalent for intptr_t" >&2;}
16434 { (exit please report a bug); exit please report a bug; }; }
16435 esac
16436 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16437 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16440 # ----------------- done all checks, emit header -------------
16441 ac_config_commands="$ac_config_commands gstdint.h"
16446 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16447 # In case the pthread.h system header is not found, this test will fail.
16448 XPCFLAGS=""
16449 CFLAGS="$CFLAGS -pthread"
16450 cat >conftest.$ac_ext <<_ACEOF
16451 /* confdefs.h. */
16452 _ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16456 #include <pthread.h>
16457 void *g(void *d) { return NULL; }
16459 main ()
16461 pthread_t t; pthread_create(&t,NULL,g,NULL);
16463 return 0;
16465 _ACEOF
16466 rm -f conftest.$ac_objext conftest$ac_exeext
16467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16468 (eval $ac_link) 2>conftest.er1
16469 ac_status=$?
16470 grep -v '^ *+' conftest.er1 >conftest.err
16471 rm -f conftest.er1
16472 cat conftest.err >&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } &&
16475 { ac_try='test -z "$ac_c_werror_flag"
16476 || test ! -s conftest.err'
16477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16478 (eval $ac_try) 2>&5
16479 ac_status=$?
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); }; } &&
16482 { ac_try='test -s conftest$ac_exeext'
16483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16484 (eval $ac_try) 2>&5
16485 ac_status=$?
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; }; then
16488 XPCFLAGS=" -Wc,-pthread"
16489 else
16490 echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16493 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16494 cat >conftest.$ac_ext <<_ACEOF
16495 /* confdefs.h. */
16496 _ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h. */
16500 #include <pthread.h>
16501 void *g(void *d) { return NULL; }
16503 main ()
16505 pthread_t t; pthread_create(&t,NULL,g,NULL);
16507 return 0;
16509 _ACEOF
16510 rm -f conftest.$ac_objext conftest$ac_exeext
16511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16512 (eval $ac_link) 2>conftest.er1
16513 ac_status=$?
16514 grep -v '^ *+' conftest.er1 >conftest.err
16515 rm -f conftest.er1
16516 cat conftest.err >&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
16519 { ac_try='test -z "$ac_c_werror_flag"
16520 || test ! -s conftest.err'
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; } &&
16526 { ac_try='test -s conftest$ac_exeext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16533 else
16534 echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16537 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
16538 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
16539 { (exit 1); exit 1; }; }
16541 rm -f conftest.err conftest.$ac_objext \
16542 conftest$ac_exeext conftest.$ac_ext
16544 rm -f conftest.err conftest.$ac_objext \
16545 conftest$ac_exeext conftest.$ac_ext
16547 # Check for functions needed.
16550 for ac_func in getloadavg clock_gettime
16552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16553 echo "$as_me:$LINENO: checking for $ac_func" >&5
16554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16555 if eval "test \"\${$as_ac_var+set}\" = set"; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
16557 else
16558 cat >conftest.$ac_ext <<_ACEOF
16559 /* confdefs.h. */
16560 _ACEOF
16561 cat confdefs.h >>conftest.$ac_ext
16562 cat >>conftest.$ac_ext <<_ACEOF
16563 /* end confdefs.h. */
16564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16566 #define $ac_func innocuous_$ac_func
16568 /* System header to define __stub macros and hopefully few prototypes,
16569 which can conflict with char $ac_func (); below.
16570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16571 <limits.h> exists even on freestanding compilers. */
16573 #ifdef __STDC__
16574 # include <limits.h>
16575 #else
16576 # include <assert.h>
16577 #endif
16579 #undef $ac_func
16581 /* Override any gcc2 internal prototype to avoid an error. */
16582 #ifdef __cplusplus
16583 extern "C"
16585 #endif
16586 /* We use char because int might match the return type of a gcc2
16587 builtin and then its argument prototype would still apply. */
16588 char $ac_func ();
16589 /* The GNU C library defines this for functions which it implements
16590 to always fail with ENOSYS. Some functions are actually named
16591 something starting with __ and the normal name is an alias. */
16592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16593 choke me
16594 #else
16595 char (*f) () = $ac_func;
16596 #endif
16597 #ifdef __cplusplus
16599 #endif
16602 main ()
16604 return f != $ac_func;
16606 return 0;
16608 _ACEOF
16609 rm -f conftest.$ac_objext conftest$ac_exeext
16610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16611 (eval $ac_link) 2>conftest.er1
16612 ac_status=$?
16613 grep -v '^ *+' conftest.er1 >conftest.err
16614 rm -f conftest.er1
16615 cat conftest.err >&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); } &&
16618 { ac_try='test -z "$ac_c_werror_flag"
16619 || test ! -s conftest.err'
16620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621 (eval $ac_try) 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; } &&
16625 { ac_try='test -s conftest$ac_exeext'
16626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16627 (eval $ac_try) 2>&5
16628 ac_status=$?
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; }; then
16631 eval "$as_ac_var=yes"
16632 else
16633 echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.$ac_ext >&5
16636 eval "$as_ac_var=no"
16638 rm -f conftest.err conftest.$ac_objext \
16639 conftest$ac_exeext conftest.$ac_ext
16641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16643 if test `eval echo '${'$as_ac_var'}'` = yes; then
16644 cat >>confdefs.h <<_ACEOF
16645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16646 _ACEOF
16649 done
16652 # Check for broken semaphore implementation on darwin.
16653 # sem_init returns: sem_init error: Function not implemented.
16654 case "$host" in
16655 *-darwin*)
16657 cat >>confdefs.h <<\_ACEOF
16658 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16659 _ACEOF
16662 *-linux*)
16663 case "$enable_linux_futex" in
16664 default)
16665 # If headers don't have gettid/futex syscalls definition, then
16666 # default to no, otherwise there will be compile time failures.
16667 # Otherwise, default to yes. If we don't detect we are
16668 # compiled/linked against NPTL and not cross-compiling, check
16669 # if programs are run by default against NPTL and if not, issue
16670 # a warning.
16671 enable_linux_futex=no
16672 cat >conftest.$ac_ext <<_ACEOF
16673 /* confdefs.h. */
16674 _ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h. */
16678 #include <sys/syscall.h>
16679 int lk;
16681 main ()
16683 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16685 return 0;
16687 _ACEOF
16688 rm -f conftest.$ac_objext conftest$ac_exeext
16689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16690 (eval $ac_link) 2>conftest.er1
16691 ac_status=$?
16692 grep -v '^ *+' conftest.er1 >conftest.err
16693 rm -f conftest.er1
16694 cat conftest.err >&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } &&
16697 { ac_try='test -z "$ac_c_werror_flag"
16698 || test ! -s conftest.err'
16699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16700 (eval $ac_try) 2>&5
16701 ac_status=$?
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; } &&
16704 { ac_try='test -s conftest$ac_exeext'
16705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706 (eval $ac_try) 2>&5
16707 ac_status=$?
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }; }; then
16710 cat >conftest.$ac_ext <<_ACEOF
16711 /* confdefs.h. */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 #ifndef _GNU_SOURCE
16717 #define _GNU_SOURCE 1
16718 #endif
16719 #include <pthread.h>
16720 pthread_t th; void *status;
16722 main ()
16724 pthread_tryjoin_np (th, &status);
16726 return 0;
16728 _ACEOF
16729 rm -f conftest.$ac_objext conftest$ac_exeext
16730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16731 (eval $ac_link) 2>conftest.er1
16732 ac_status=$?
16733 grep -v '^ *+' conftest.er1 >conftest.err
16734 rm -f conftest.er1
16735 cat conftest.err >&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
16738 { ac_try='test -z "$ac_c_werror_flag"
16739 || test ! -s conftest.err'
16740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741 (eval $ac_try) 2>&5
16742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; } &&
16745 { ac_try='test -s conftest$ac_exeext'
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; }; then
16751 enable_linux_futex=yes
16752 else
16753 echo "$as_me: failed program was:" >&5
16754 sed 's/^/| /' conftest.$ac_ext >&5
16756 if test x$cross_compiling = xno; then
16757 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16758 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then
16759 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
16760 If so, please configure with --disable-linux-futex" >&5
16761 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16762 If so, please configure with --disable-linux-futex" >&2;}
16765 enable_linux_futex=yes
16767 rm -f conftest.err conftest.$ac_objext \
16768 conftest$ac_exeext conftest.$ac_ext
16769 else
16770 echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16774 rm -f conftest.err conftest.$ac_objext \
16775 conftest$ac_exeext conftest.$ac_ext
16777 yes)
16778 cat >conftest.$ac_ext <<_ACEOF
16779 /* confdefs.h. */
16780 _ACEOF
16781 cat confdefs.h >>conftest.$ac_ext
16782 cat >>conftest.$ac_ext <<_ACEOF
16783 /* end confdefs.h. */
16784 #include <sys/syscall.h>
16785 int lk;
16787 main ()
16789 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16791 return 0;
16793 _ACEOF
16794 rm -f conftest.$ac_objext conftest$ac_exeext
16795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16796 (eval $ac_link) 2>conftest.er1
16797 ac_status=$?
16798 grep -v '^ *+' conftest.er1 >conftest.err
16799 rm -f conftest.er1
16800 cat conftest.err >&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } &&
16803 { ac_try='test -z "$ac_c_werror_flag"
16804 || test ! -s conftest.err'
16805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806 (eval $ac_try) 2>&5
16807 ac_status=$?
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); }; } &&
16810 { ac_try='test -s conftest$ac_exeext'
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; }; then
16817 else
16818 echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16821 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
16822 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
16823 { (exit 1); exit 1; }; }
16825 rm -f conftest.err conftest.$ac_objext \
16826 conftest$ac_exeext conftest.$ac_ext
16828 esac
16830 esac
16832 # Check for pthread_{,attr_}[sg]etaffinity_np.
16833 cat >conftest.$ac_ext <<_ACEOF
16834 /* confdefs.h. */
16835 _ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16839 #define _GNU_SOURCE
16840 #include <pthread.h>
16842 main ()
16844 cpu_set_t cpuset;
16845 pthread_attr_t attr;
16846 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16847 if (CPU_ISSET (0, &cpuset))
16848 CPU_SET (1, &cpuset);
16849 else
16850 CPU_ZERO (&cpuset);
16851 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16852 pthread_attr_init (&attr);
16853 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16854 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16856 return 0;
16858 _ACEOF
16859 rm -f conftest.$ac_objext conftest$ac_exeext
16860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16861 (eval $ac_link) 2>conftest.er1
16862 ac_status=$?
16863 grep -v '^ *+' conftest.er1 >conftest.err
16864 rm -f conftest.er1
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
16868 { ac_try='test -z "$ac_c_werror_flag"
16869 || test ! -s conftest.err'
16870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest$ac_exeext'
16876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877 (eval $ac_try) 2>&5
16878 ac_status=$?
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; }; then
16882 cat >>confdefs.h <<\_ACEOF
16883 #define HAVE_PTHREAD_AFFINITY_NP 1
16884 _ACEOF
16886 else
16887 echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16891 rm -f conftest.err conftest.$ac_objext \
16892 conftest$ac_exeext conftest.$ac_ext
16894 # At least for glibc, clock_gettime is in librt. But don't pull that
16895 # in if it still doesn't give us the function we want.
16896 if test $ac_cv_func_clock_gettime = no; then
16897 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
16898 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
16899 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16901 else
16902 ac_check_lib_save_LIBS=$LIBS
16903 LIBS="-lrt $LIBS"
16904 cat >conftest.$ac_ext <<_ACEOF
16905 /* confdefs.h. */
16906 _ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h. */
16911 /* Override any gcc2 internal prototype to avoid an error. */
16912 #ifdef __cplusplus
16913 extern "C"
16914 #endif
16915 /* We use char because int might match the return type of a gcc2
16916 builtin and then its argument prototype would still apply. */
16917 char clock_gettime ();
16919 main ()
16921 clock_gettime ();
16923 return 0;
16925 _ACEOF
16926 rm -f conftest.$ac_objext conftest$ac_exeext
16927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16928 (eval $ac_link) 2>conftest.er1
16929 ac_status=$?
16930 grep -v '^ *+' conftest.er1 >conftest.err
16931 rm -f conftest.er1
16932 cat conftest.err >&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); } &&
16935 { ac_try='test -z "$ac_c_werror_flag"
16936 || test ! -s conftest.err'
16937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938 (eval $ac_try) 2>&5
16939 ac_status=$?
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }; } &&
16942 { ac_try='test -s conftest$ac_exeext'
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; }; then
16948 ac_cv_lib_rt_clock_gettime=yes
16949 else
16950 echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16953 ac_cv_lib_rt_clock_gettime=no
16955 rm -f conftest.err conftest.$ac_objext \
16956 conftest$ac_exeext conftest.$ac_ext
16957 LIBS=$ac_check_lib_save_LIBS
16959 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
16960 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
16961 if test $ac_cv_lib_rt_clock_gettime = yes; then
16962 LIBS="-lrt $LIBS"
16964 cat >>confdefs.h <<\_ACEOF
16965 #define HAVE_CLOCK_GETTIME 1
16966 _ACEOF
16972 # See if we support thread-local storage.
16974 # Check whether --enable-tls or --disable-tls was given.
16975 if test "${enable_tls+set}" = set; then
16976 enableval="$enable_tls"
16978 case "$enableval" in
16979 yes|no) ;;
16980 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16981 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16982 { (exit 1); exit 1; }; } ;;
16983 esac
16985 else
16986 enable_tls=yes
16989 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16990 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16991 if test "${have_tls+set}" = set; then
16992 echo $ECHO_N "(cached) $ECHO_C" >&6
16993 else
16995 if test "$cross_compiling" = yes; then
16996 cat >conftest.$ac_ext <<_ACEOF
16997 __thread int a; int b; int main() { return a = b; }
16998 _ACEOF
16999 rm -f conftest.$ac_objext conftest$ac_exeext
17000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17001 (eval $ac_link) 2>conftest.er1
17002 ac_status=$?
17003 grep -v '^ *+' conftest.er1 >conftest.err
17004 rm -f conftest.er1
17005 cat conftest.err >&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); } &&
17008 { ac_try='test -z "$ac_c_werror_flag"
17009 || test ! -s conftest.err'
17010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011 (eval $ac_try) 2>&5
17012 ac_status=$?
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; } &&
17015 { ac_try='test -s conftest$ac_exeext'
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17018 ac_status=$?
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; }; then
17021 have_tls=yes
17022 else
17023 echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17026 have_tls=no
17028 rm -f conftest.err conftest.$ac_objext \
17029 conftest$ac_exeext conftest.$ac_ext
17032 else
17033 cat >conftest.$ac_ext <<_ACEOF
17034 __thread int a; int b; int main() { return a = b; }
17035 _ACEOF
17036 rm -f conftest$ac_exeext
17037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17038 (eval $ac_link) 2>&5
17039 ac_status=$?
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
17047 chktls_save_LDFLAGS="$LDFLAGS"
17048 LDFLAGS="-static $LDFLAGS"
17049 cat >conftest.$ac_ext <<_ACEOF
17050 int main() { return 0; }
17051 _ACEOF
17052 rm -f conftest.$ac_objext conftest$ac_exeext
17053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17054 (eval $ac_link) 2>conftest.er1
17055 ac_status=$?
17056 grep -v '^ *+' conftest.er1 >conftest.err
17057 rm -f conftest.er1
17058 cat conftest.err >&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); } &&
17061 { ac_try='test -z "$ac_c_werror_flag"
17062 || test ! -s conftest.err'
17063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064 (eval $ac_try) 2>&5
17065 ac_status=$?
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; } &&
17068 { ac_try='test -s conftest$ac_exeext'
17069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17070 (eval $ac_try) 2>&5
17071 ac_status=$?
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; }; then
17074 if test "$cross_compiling" = yes; then
17075 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17076 See \`config.log' for more details." >&5
17077 echo "$as_me: error: cannot run test program while cross compiling
17078 See \`config.log' for more details." >&2;}
17079 { (exit 1); exit 1; }; }
17080 else
17081 cat >conftest.$ac_ext <<_ACEOF
17082 __thread int a; int b; int main() { return a = b; }
17083 _ACEOF
17084 rm -f conftest$ac_exeext
17085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17086 (eval $ac_link) 2>&5
17087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091 (eval $ac_try) 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; }; then
17095 have_tls=yes
17096 else
17097 echo "$as_me: program exited with status $ac_status" >&5
17098 echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17101 ( exit $ac_status )
17102 have_tls=no
17104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17106 else
17107 echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17110 have_tls=yes
17112 rm -f conftest.err conftest.$ac_objext \
17113 conftest$ac_exeext conftest.$ac_ext
17114 LDFLAGS="$chktls_save_LDFLAGS"
17115 if test $have_tls = yes; then
17116 chktls_save_CFLAGS="$CFLAGS"
17117 thread_CFLAGS=failed
17118 for flag in '' '-pthread' '-lpthread'; do
17119 CFLAGS="$flag $chktls_save_CFLAGS"
17120 cat >conftest.$ac_ext <<_ACEOF
17121 /* confdefs.h. */
17122 _ACEOF
17123 cat confdefs.h >>conftest.$ac_ext
17124 cat >>conftest.$ac_ext <<_ACEOF
17125 /* end confdefs.h. */
17126 #include <pthread.h>
17127 void *g(void *d) { return NULL; }
17129 main ()
17131 pthread_t t; pthread_create(&t,NULL,g,NULL);
17133 return 0;
17135 _ACEOF
17136 rm -f conftest.$ac_objext conftest$ac_exeext
17137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17138 (eval $ac_link) 2>conftest.er1
17139 ac_status=$?
17140 grep -v '^ *+' conftest.er1 >conftest.err
17141 rm -f conftest.er1
17142 cat conftest.err >&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } &&
17145 { ac_try='test -z "$ac_c_werror_flag"
17146 || test ! -s conftest.err'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; } &&
17152 { ac_try='test -s conftest$ac_exeext'
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; }; then
17158 thread_CFLAGS="$flag"
17159 else
17160 echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17164 rm -f conftest.err conftest.$ac_objext \
17165 conftest$ac_exeext conftest.$ac_ext
17166 if test "X$thread_CFLAGS" != Xfailed; then
17167 break
17169 done
17170 CFLAGS="$chktls_save_CFLAGS"
17171 if test "X$thread_CFLAGS" != Xfailed; then
17172 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17173 if test "$cross_compiling" = yes; then
17174 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17175 See \`config.log' for more details." >&5
17176 echo "$as_me: error: cannot run test program while cross compiling
17177 See \`config.log' for more details." >&2;}
17178 { (exit 1); exit 1; }; }
17179 else
17180 cat >conftest.$ac_ext <<_ACEOF
17181 /* confdefs.h. */
17182 _ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h. */
17186 #include <pthread.h>
17187 __thread int a;
17188 static int *a_in_other_thread;
17189 static void *
17190 thread_func (void *arg)
17192 a_in_other_thread = &a;
17193 return (void *)0;
17196 main ()
17198 pthread_t thread;
17199 void *thread_retval;
17200 int *a_in_main_thread;
17201 if (pthread_create (&thread, (pthread_attr_t *)0,
17202 thread_func, (void *)0))
17203 return 0;
17204 a_in_main_thread = &a;
17205 if (pthread_join (thread, &thread_retval))
17206 return 0;
17207 return (a_in_other_thread == a_in_main_thread);
17209 return 0;
17211 _ACEOF
17212 rm -f conftest$ac_exeext
17213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17214 (eval $ac_link) 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 have_tls=yes
17224 else
17225 echo "$as_me: program exited with status $ac_status" >&5
17226 echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17229 ( exit $ac_status )
17230 have_tls=no
17232 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17234 CFLAGS="$chktls_save_CFLAGS"
17237 else
17238 echo "$as_me: program exited with status $ac_status" >&5
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17242 ( exit $ac_status )
17243 have_tls=no
17245 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17248 echo "$as_me:$LINENO: result: $have_tls" >&5
17249 echo "${ECHO_T}$have_tls" >&6
17250 if test "$enable_tls $have_tls" = "yes yes"; then
17252 cat >>confdefs.h <<\_ACEOF
17253 #define HAVE_TLS 1
17254 _ACEOF
17258 # See what sort of export controls are availible.
17260 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
17261 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
17262 if test "${have_attribute_visibility+set}" = set; then
17263 echo $ECHO_N "(cached) $ECHO_C" >&6
17264 else
17266 save_CFLAGS="$CFLAGS"
17267 CFLAGS="$CFLAGS -Werror"
17268 cat >conftest.$ac_ext <<_ACEOF
17269 /* confdefs.h. */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h. */
17274 void __attribute__((visibility("hidden"))) foo(void) { }
17276 main ()
17280 return 0;
17282 _ACEOF
17283 rm -f conftest.$ac_objext
17284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17285 (eval $ac_compile) 2>conftest.er1
17286 ac_status=$?
17287 grep -v '^ *+' conftest.er1 >conftest.err
17288 rm -f conftest.er1
17289 cat conftest.err >&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); } &&
17292 { ac_try='test -z "$ac_c_werror_flag"
17293 || test ! -s conftest.err'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; } &&
17299 { ac_try='test -s conftest.$ac_objext'
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 have_attribute_visibility=yes
17306 else
17307 echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17310 have_attribute_visibility=no
17312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17313 CFLAGS="$save_CFLAGS"
17315 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
17316 echo "${ECHO_T}$have_attribute_visibility" >&6
17317 if test $have_attribute_visibility = yes; then
17319 cat >>confdefs.h <<\_ACEOF
17320 #define HAVE_ATTRIBUTE_VISIBILITY 1
17321 _ACEOF
17325 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
17326 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
17327 if test "${have_attribute_dllexport+set}" = set; then
17328 echo $ECHO_N "(cached) $ECHO_C" >&6
17329 else
17331 save_CFLAGS="$CFLAGS"
17332 CFLAGS="$CFLAGS -Werror"
17333 cat >conftest.$ac_ext <<_ACEOF
17334 /* confdefs.h. */
17335 _ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h. */
17339 void __attribute__((dllexport)) foo(void) { }
17341 main ()
17345 return 0;
17347 _ACEOF
17348 rm -f conftest.$ac_objext
17349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17350 (eval $ac_compile) 2>conftest.er1
17351 ac_status=$?
17352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
17357 { ac_try='test -z "$ac_c_werror_flag"
17358 || test ! -s conftest.err'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17361 ac_status=$?
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try='test -s conftest.$ac_objext'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; }; then
17370 have_attribute_dllexport=yes
17371 else
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17375 have_attribute_dllexport=no
17377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17378 CFLAGS="$save_CFLAGS"
17380 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
17381 echo "${ECHO_T}$have_attribute_dllexport" >&6
17382 if test $have_attribute_dllexport = yes; then
17384 cat >>confdefs.h <<\_ACEOF
17385 #define HAVE_ATTRIBUTE_DLLEXPORT 1
17386 _ACEOF
17390 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
17391 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
17392 if test "${have_attribute_alias+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17394 else
17396 cat >conftest.$ac_ext <<_ACEOF
17397 /* confdefs.h. */
17398 _ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h. */
17403 void foo(void) { }
17404 extern void bar(void) __attribute__((alias("foo")));
17406 main ()
17408 bar();
17410 return 0;
17412 _ACEOF
17413 rm -f conftest.$ac_objext conftest$ac_exeext
17414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17415 (eval $ac_link) 2>conftest.er1
17416 ac_status=$?
17417 grep -v '^ *+' conftest.er1 >conftest.err
17418 rm -f conftest.er1
17419 cat conftest.err >&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } &&
17422 { ac_try='test -z "$ac_c_werror_flag"
17423 || test ! -s conftest.err'
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; } &&
17429 { ac_try='test -s conftest$ac_exeext'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17432 ac_status=$?
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; }; then
17435 have_attribute_alias=yes
17436 else
17437 echo "$as_me: failed program was:" >&5
17438 sed 's/^/| /' conftest.$ac_ext >&5
17440 have_attribute_alias=no
17442 rm -f conftest.err conftest.$ac_objext \
17443 conftest$ac_exeext conftest.$ac_ext
17445 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
17446 echo "${ECHO_T}$have_attribute_alias" >&6
17447 if test $have_attribute_alias = yes; then
17449 cat >>confdefs.h <<\_ACEOF
17450 #define HAVE_ATTRIBUTE_ALIAS 1
17451 _ACEOF
17456 # Check whether --with-gnu-ld or --without-gnu-ld was given.
17457 if test "${with_gnu_ld+set}" = set; then
17458 withval="$with_gnu_ld"
17459 test "$withval" = no || with_gnu_ld=yes
17460 else
17461 with_gnu_ld=no
17463 ac_prog=ld
17464 if test "$GCC" = yes; then
17465 # Check if gcc -print-prog-name=ld gives a path.
17466 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17467 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17468 case $host in
17469 *-*-mingw*)
17470 # gcc leaves a trailing carriage return which upsets mingw
17471 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17473 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17474 esac
17475 case $ac_prog in
17476 # Accept absolute paths.
17477 [\\/]* | ?:[\\/]*)
17478 re_direlt='/[^/][^/]*/\.\./'
17479 # Canonicalize the pathname of ld
17480 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17481 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17482 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17483 done
17484 test -z "$LD" && LD="$ac_prog"
17487 # If it fails, then pretend we aren't using GCC.
17488 ac_prog=ld
17491 # If it is relative, then search for the first ld in PATH.
17492 with_gnu_ld=unknown
17494 esac
17495 elif test "$with_gnu_ld" = yes; then
17496 echo "$as_me:$LINENO: checking for GNU ld" >&5
17497 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17498 else
17499 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17500 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17502 if test "${lt_cv_path_LD+set}" = set; then
17503 echo $ECHO_N "(cached) $ECHO_C" >&6
17504 else
17505 if test -z "$LD"; then
17506 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17507 for ac_dir in $PATH; do
17508 IFS="$lt_save_ifs"
17509 test -z "$ac_dir" && ac_dir=.
17510 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17511 lt_cv_path_LD="$ac_dir/$ac_prog"
17512 # Check to see if the program is GNU ld. I'd rather use --version,
17513 # but apparently some variants of GNU ld only accept -v.
17514 # Break only if it was the GNU/non-GNU ld that we prefer.
17515 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17516 *GNU* | *'with BFD'*)
17517 test "$with_gnu_ld" != no && break
17520 test "$with_gnu_ld" != yes && break
17522 esac
17524 done
17525 IFS="$lt_save_ifs"
17526 else
17527 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17531 LD="$lt_cv_path_LD"
17532 if test -n "$LD"; then
17533 echo "$as_me:$LINENO: result: $LD" >&5
17534 echo "${ECHO_T}$LD" >&6
17535 else
17536 echo "$as_me:$LINENO: result: no" >&5
17537 echo "${ECHO_T}no" >&6
17539 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17540 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17541 { (exit 1); exit 1; }; }
17542 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17543 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17544 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17545 echo $ECHO_N "(cached) $ECHO_C" >&6
17546 else
17547 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17548 case `$LD -v 2>&1 </dev/null` in
17549 *GNU* | *'with BFD'*)
17550 lt_cv_prog_gnu_ld=yes
17553 lt_cv_prog_gnu_ld=no
17555 esac
17557 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17558 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17559 with_gnu_ld=$lt_cv_prog_gnu_ld
17567 # If we're not using GNU ld, then there's no point in even trying these
17568 # tests. Check for that first. We should have already tested for gld
17569 # by now (in libtool), but require it now just to be safe...
17570 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17571 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17575 # The name set by libtool depends on the version of libtool. Shame on us
17576 # for depending on an impl detail, but c'est la vie. Older versions used
17577 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17578 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17579 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17580 # set (hence we're using an older libtool), then set it.
17581 if test x${with_gnu_ld+set} != xset; then
17582 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17583 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17584 with_gnu_ld=no
17585 else
17586 with_gnu_ld=$ac_cv_prog_gnu_ld
17590 # Start by getting the version number. I think the libtool test already
17591 # does some of this, but throws away the result.
17593 ldver=`$LD --version 2>/dev/null | head -1 | \
17594 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
17596 libgomp_gnu_ld_version=`echo $ldver | \
17597 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17599 # Set --gc-sections.
17600 if test "$with_gnu_ld" = "notbroken"; then
17601 # GNU ld it is! Joy and bunny rabbits!
17603 # All these tests are for C++; save the language and the compiler flags.
17604 # Need to do this so that g++ won't try to link in libstdc++
17605 ac_test_CFLAGS="${CFLAGS+set}"
17606 ac_save_CFLAGS="$CFLAGS"
17607 CFLAGS='-x c++ -Wl,--gc-sections'
17609 # Check for -Wl,--gc-sections
17610 # XXX This test is broken at the moment, as symbols required for linking
17611 # are now in libsupc++ (not built yet). In addition, this test has
17612 # cored on solaris in the past. In addition, --gc-sections doesn't
17613 # really work at the moment (keeps on discarding used sections, first
17614 # .eh_frame and now some of the glibc sections for iconv).
17615 # Bzzzzt. Thanks for playing, maybe next time.
17616 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
17617 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
17618 if test "$cross_compiling" = yes; then
17619 ac_sectionLDflags=yes
17620 else
17621 cat >conftest.$ac_ext <<_ACEOF
17622 /* confdefs.h. */
17623 _ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17628 int main(void)
17630 try { throw 1; }
17631 catch (...) { };
17632 return 0;
17635 _ACEOF
17636 rm -f conftest$ac_exeext
17637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17638 (eval $ac_link) 2>&5
17639 ac_status=$?
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643 (eval $ac_try) 2>&5
17644 ac_status=$?
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; }; then
17647 ac_sectionLDflags=yes
17648 else
17649 echo "$as_me: program exited with status $ac_status" >&5
17650 echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17653 ( exit $ac_status )
17654 ac_sectionLDflags=no
17656 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17658 if test "$ac_test_CFLAGS" = set; then
17659 CFLAGS="$ac_save_CFLAGS"
17660 else
17661 # this is the suspicious part
17662 CFLAGS=''
17664 if test "$ac_sectionLDflags" = "yes"; then
17665 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17667 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
17668 echo "${ECHO_T}$ac_sectionLDflags" >&6
17671 # Set linker optimization flags.
17672 if test x"$with_gnu_ld" = x"yes"; then
17673 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17681 # Check whether --enable-symvers or --disable-symvers was given.
17682 if test "${enable_symvers+set}" = set; then
17683 enableval="$enable_symvers"
17685 case "$enableval" in
17686 yes|no|gnu) ;;
17687 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
17688 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
17689 { (exit 1); exit 1; }; } ;;
17690 esac
17692 else
17693 enable_symvers=yes
17697 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
17698 # don't know enough about $LD to do tricks...
17700 # FIXME The following test is too strict, in theory.
17701 if test $enable_shared = no ||
17702 test "x$LD" = x ||
17703 test x$libgomp_gnu_ld_version = x; then
17704 enable_symvers=no
17707 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17708 if test $enable_symvers != no; then
17709 echo "$as_me:$LINENO: checking for shared libgcc" >&5
17710 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
17711 ac_save_CFLAGS="$CFLAGS"
17712 CFLAGS=' -lgcc_s'
17713 cat >conftest.$ac_ext <<_ACEOF
17714 /* confdefs.h. */
17715 _ACEOF
17716 cat confdefs.h >>conftest.$ac_ext
17717 cat >>conftest.$ac_ext <<_ACEOF
17718 /* end confdefs.h. */
17721 main ()
17723 return 0;
17725 return 0;
17727 _ACEOF
17728 rm -f conftest.$ac_objext conftest$ac_exeext
17729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17730 (eval $ac_link) 2>conftest.er1
17731 ac_status=$?
17732 grep -v '^ *+' conftest.er1 >conftest.err
17733 rm -f conftest.er1
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try='test -z "$ac_c_werror_flag"
17738 || test ! -s conftest.err'
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17741 ac_status=$?
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; } &&
17744 { ac_try='test -s conftest$ac_exeext'
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17747 ac_status=$?
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; }; then
17750 libgomp_shared_libgcc=yes
17751 else
17752 echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17755 libgomp_shared_libgcc=no
17757 rm -f conftest.err conftest.$ac_objext \
17758 conftest$ac_exeext conftest.$ac_ext
17759 CFLAGS="$ac_save_CFLAGS"
17760 if test $libgomp_shared_libgcc = no; then
17761 cat > conftest.c <<EOF
17762 int main (void) { return 0; }
17764 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17765 -shared -shared-libgcc -o conftest.so \
17766 conftest.c -v 2>&1 >/dev/null \
17767 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17768 rm -f conftest.c conftest.so
17769 if test x${libgomp_libgcc_s_suffix+set} = xset; then
17770 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
17771 cat >conftest.$ac_ext <<_ACEOF
17772 /* confdefs.h. */
17773 _ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17779 main ()
17781 return 0;
17783 return 0;
17785 _ACEOF
17786 rm -f conftest.$ac_objext conftest$ac_exeext
17787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17788 (eval $ac_link) 2>conftest.er1
17789 ac_status=$?
17790 grep -v '^ *+' conftest.er1 >conftest.err
17791 rm -f conftest.er1
17792 cat conftest.err >&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } &&
17795 { ac_try='test -z "$ac_c_werror_flag"
17796 || test ! -s conftest.err'
17797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798 (eval $ac_try) 2>&5
17799 ac_status=$?
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); }; } &&
17802 { ac_try='test -s conftest$ac_exeext'
17803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804 (eval $ac_try) 2>&5
17805 ac_status=$?
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); }; }; then
17808 libgomp_shared_libgcc=yes
17809 else
17810 echo "$as_me: failed program was:" >&5
17811 sed 's/^/| /' conftest.$ac_ext >&5
17814 rm -f conftest.err conftest.$ac_objext \
17815 conftest$ac_exeext conftest.$ac_ext
17816 CFLAGS="$ac_save_CFLAGS"
17819 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
17820 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
17823 # For GNU ld, we need at least this version. The format is described in
17824 # LIBGOMP_CHECK_LINKER_FEATURES above.
17825 libgomp_min_gnu_ld_version=21400
17826 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
17828 # Check to see if unspecified "yes" value can win, given results above.
17829 # Change "yes" into either "no" or a style name.
17830 if test $enable_symvers = yes; then
17831 if test $with_gnu_ld = yes &&
17832 test $libgomp_shared_libgcc = yes;
17833 then
17834 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
17835 enable_symvers=gnu
17836 else
17837 # The right tools, the right setup, but too old. Fallbacks?
17838 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
17839 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
17840 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
17841 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17842 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
17843 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17844 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
17845 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
17846 if test $libgomp_gnu_ld_version -ge 21200 ; then
17847 # Globbing fix is present, proper block support is not.
17848 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17849 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17850 enable_symvers=no
17851 else
17852 # 2.11 or older.
17853 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17854 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17855 enable_symvers=no
17858 else
17859 # just fail for now
17860 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
17861 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17862 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
17863 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17864 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
17865 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17866 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17867 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17868 enable_symvers=no
17874 if test $enable_symvers != no; then
17875 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
17876 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
17877 else
17878 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
17879 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
17882 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
17883 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17886 # Get target configury.
17887 . ${srcdir}/configure.tgt
17888 CFLAGS="$save_CFLAGS $XCFLAGS"
17890 # Check for __sync_val_compare_and_swap, but only after the target has
17891 # had a chance to set XCFLAGS.
17893 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
17894 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
17895 if test "${have_sync_builtins+set}" = set; then
17896 echo $ECHO_N "(cached) $ECHO_C" >&6
17897 else
17899 cat >conftest.$ac_ext <<_ACEOF
17900 /* confdefs.h. */
17901 _ACEOF
17902 cat confdefs.h >>conftest.$ac_ext
17903 cat >>conftest.$ac_ext <<_ACEOF
17904 /* end confdefs.h. */
17907 main ()
17909 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17911 return 0;
17913 _ACEOF
17914 rm -f conftest.$ac_objext conftest$ac_exeext
17915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17916 (eval $ac_link) 2>conftest.er1
17917 ac_status=$?
17918 grep -v '^ *+' conftest.er1 >conftest.err
17919 rm -f conftest.er1
17920 cat conftest.err >&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); } &&
17923 { ac_try='test -z "$ac_c_werror_flag"
17924 || test ! -s conftest.err'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; } &&
17930 { ac_try='test -s conftest$ac_exeext'
17931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17932 (eval $ac_try) 2>&5
17933 ac_status=$?
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; }; then
17936 have_sync_builtins=yes
17937 else
17938 echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.$ac_ext >&5
17941 have_sync_builtins=no
17943 rm -f conftest.err conftest.$ac_objext \
17944 conftest$ac_exeext conftest.$ac_ext
17946 echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
17947 echo "${ECHO_T}$have_sync_builtins" >&6
17948 if test $have_sync_builtins = yes; then
17950 cat >>confdefs.h <<\_ACEOF
17951 #define HAVE_SYNC_BUILTINS 1
17952 _ACEOF
17956 XCFLAGS="$XCFLAGS$XPCFLAGS"
17962 # Cleanup and exit.
17963 CFLAGS="$save_CFLAGS"
17964 cat >confcache <<\_ACEOF
17965 # This file is a shell script that caches the results of configure
17966 # tests run on this system so they can be shared between configure
17967 # scripts and configure runs, see configure's option --config-cache.
17968 # It is not useful on other systems. If it contains results you don't
17969 # want to keep, you may remove or edit it.
17971 # config.status only pays attention to the cache file if you give it
17972 # the --recheck option to rerun configure.
17974 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17975 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17976 # following values.
17978 _ACEOF
17980 # The following way of writing the cache mishandles newlines in values,
17981 # but we know of no workaround that is simple, portable, and efficient.
17982 # So, don't put newlines in cache variables' values.
17983 # Ultrix sh set writes to stderr and can't be redirected directly,
17984 # and sets the high bit in the cache file unless we assign to the vars.
17986 (set) 2>&1 |
17987 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17988 *ac_space=\ *)
17989 # `set' does not quote correctly, so add quotes (double-quote
17990 # substitution turns \\\\ into \\, and sed turns \\ into \).
17991 sed -n \
17992 "s/'/'\\\\''/g;
17993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17996 # `set' quotes correctly as required by POSIX, so do not add quotes.
17997 sed -n \
17998 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18000 esac;
18002 sed '
18003 t clear
18004 : clear
18005 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18006 t end
18007 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18008 : end' >>confcache
18009 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18010 if test -w $cache_file; then
18011 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18012 cat confcache >$cache_file
18013 else
18014 echo "not updating unwritable cache $cache_file"
18017 rm -f confcache
18019 if test ${multilib} = yes; then
18020 multilib_arg="--enable-multilib"
18021 else
18022 multilib_arg=
18025 # Set up the set of libraries that we need to link against for libgomp.
18026 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
18027 # which will force linkage against -lpthread (or equivalent for the system).
18028 # That's not 100% ideal, but about the best we can do easily.
18029 if test $enable_shared = yes; then
18030 link_gomp="-lgomp %{static: $LIBS}"
18031 else
18032 link_gomp="-lgomp $LIBS"
18038 if test "$ac_cv_fc_compiler_gnu" = yes; then
18039 USE_FORTRAN_TRUE=
18040 USE_FORTRAN_FALSE='#'
18041 else
18042 USE_FORTRAN_TRUE='#'
18043 USE_FORTRAN_FALSE=
18047 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
18048 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
18049 # the underscore here and update the PREREQ. If it doesn't, then we'll
18050 # need to copy this macro to our acinclude.m4.
18051 save_CFLAGS="$CFLAGS"
18052 for i in $config_path; do
18053 if test -f $srcdir/config/$i/omp-lock.h; then
18054 CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
18055 break
18057 done
18059 if test "$cross_compiling" = yes; then
18060 # Depending upon the size, compute the lo and hi bounds.
18061 cat >conftest.$ac_ext <<_ACEOF
18062 /* confdefs.h. */
18063 _ACEOF
18064 cat confdefs.h >>conftest.$ac_ext
18065 cat >>conftest.$ac_ext <<_ACEOF
18066 /* end confdefs.h. */
18069 main ()
18071 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
18072 test_array [0] = 0
18075 return 0;
18077 _ACEOF
18078 rm -f conftest.$ac_objext
18079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18080 (eval $ac_compile) 2>conftest.er1
18081 ac_status=$?
18082 grep -v '^ *+' conftest.er1 >conftest.err
18083 rm -f conftest.er1
18084 cat conftest.err >&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } &&
18087 { ac_try='test -z "$ac_c_werror_flag"
18088 || test ! -s conftest.err'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18091 ac_status=$?
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; } &&
18094 { ac_try='test -s conftest.$ac_objext'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 ac_lo=0 ac_mid=0
18101 while :; do
18102 cat >conftest.$ac_ext <<_ACEOF
18103 /* confdefs.h. */
18104 _ACEOF
18105 cat confdefs.h >>conftest.$ac_ext
18106 cat >>conftest.$ac_ext <<_ACEOF
18107 /* end confdefs.h. */
18110 main ()
18112 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18113 test_array [0] = 0
18116 return 0;
18118 _ACEOF
18119 rm -f conftest.$ac_objext
18120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18121 (eval $ac_compile) 2>conftest.er1
18122 ac_status=$?
18123 grep -v '^ *+' conftest.er1 >conftest.err
18124 rm -f conftest.er1
18125 cat conftest.err >&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); } &&
18128 { ac_try='test -z "$ac_c_werror_flag"
18129 || test ! -s conftest.err'
18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; } &&
18135 { ac_try='test -s conftest.$ac_objext'
18136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18137 (eval $ac_try) 2>&5
18138 ac_status=$?
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); }; }; then
18141 ac_hi=$ac_mid; break
18142 else
18143 echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18146 ac_lo=`expr $ac_mid + 1`
18147 if test $ac_lo -le $ac_mid; then
18148 ac_lo= ac_hi=
18149 break
18151 ac_mid=`expr 2 '*' $ac_mid + 1`
18153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18154 done
18155 else
18156 echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18159 cat >conftest.$ac_ext <<_ACEOF
18160 /* confdefs.h. */
18161 _ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18167 main ()
18169 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
18170 test_array [0] = 0
18173 return 0;
18175 _ACEOF
18176 rm -f conftest.$ac_objext
18177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18178 (eval $ac_compile) 2>conftest.er1
18179 ac_status=$?
18180 grep -v '^ *+' conftest.er1 >conftest.err
18181 rm -f conftest.er1
18182 cat conftest.err >&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); } &&
18185 { ac_try='test -z "$ac_c_werror_flag"
18186 || test ! -s conftest.err'
18187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18188 (eval $ac_try) 2>&5
18189 ac_status=$?
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; } &&
18192 { ac_try='test -s conftest.$ac_objext'
18193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18194 (eval $ac_try) 2>&5
18195 ac_status=$?
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); }; }; then
18198 ac_hi=-1 ac_mid=-1
18199 while :; do
18200 cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h. */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18208 main ()
18210 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
18211 test_array [0] = 0
18214 return 0;
18216 _ACEOF
18217 rm -f conftest.$ac_objext
18218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18219 (eval $ac_compile) 2>conftest.er1
18220 ac_status=$?
18221 grep -v '^ *+' conftest.er1 >conftest.err
18222 rm -f conftest.er1
18223 cat conftest.err >&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); } &&
18226 { ac_try='test -z "$ac_c_werror_flag"
18227 || test ! -s conftest.err'
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; } &&
18233 { ac_try='test -s conftest.$ac_objext'
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18236 ac_status=$?
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; }; then
18239 ac_lo=$ac_mid; break
18240 else
18241 echo "$as_me: failed program was:" >&5
18242 sed 's/^/| /' conftest.$ac_ext >&5
18244 ac_hi=`expr '(' $ac_mid ')' - 1`
18245 if test $ac_mid -le $ac_hi; then
18246 ac_lo= ac_hi=
18247 break
18249 ac_mid=`expr 2 '*' $ac_mid`
18251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18252 done
18253 else
18254 echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.$ac_ext >&5
18257 ac_lo= ac_hi=
18259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18262 # Binary search between lo and hi bounds.
18263 while test "x$ac_lo" != "x$ac_hi"; do
18264 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18265 cat >conftest.$ac_ext <<_ACEOF
18266 /* confdefs.h. */
18267 _ACEOF
18268 cat confdefs.h >>conftest.$ac_ext
18269 cat >>conftest.$ac_ext <<_ACEOF
18270 /* end confdefs.h. */
18273 main ()
18275 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18276 test_array [0] = 0
18279 return 0;
18281 _ACEOF
18282 rm -f conftest.$ac_objext
18283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18284 (eval $ac_compile) 2>conftest.er1
18285 ac_status=$?
18286 grep -v '^ *+' conftest.er1 >conftest.err
18287 rm -f conftest.er1
18288 cat conftest.err >&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } &&
18291 { ac_try='test -z "$ac_c_werror_flag"
18292 || test ! -s conftest.err'
18293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294 (eval $ac_try) 2>&5
18295 ac_status=$?
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; } &&
18298 { ac_try='test -s conftest.$ac_objext'
18299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300 (eval $ac_try) 2>&5
18301 ac_status=$?
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; }; then
18304 ac_hi=$ac_mid
18305 else
18306 echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18309 ac_lo=`expr '(' $ac_mid ')' + 1`
18311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18312 done
18313 case $ac_lo in
18314 ?*) OMP_LOCK_SIZE=$ac_lo;;
18315 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18316 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18317 { (exit 1); exit 1; }; } ;;
18318 esac
18319 else
18320 if test "$cross_compiling" = yes; then
18321 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18322 See \`config.log' for more details." >&5
18323 echo "$as_me: error: cannot run test program while cross compiling
18324 See \`config.log' for more details." >&2;}
18325 { (exit 1); exit 1; }; }
18326 else
18327 cat >conftest.$ac_ext <<_ACEOF
18328 /* confdefs.h. */
18329 _ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h. */
18334 long longval () { return sizeof (omp_lock_t); }
18335 unsigned long ulongval () { return sizeof (omp_lock_t); }
18336 #include <stdio.h>
18337 #include <stdlib.h>
18339 main ()
18342 FILE *f = fopen ("conftest.val", "w");
18343 if (! f)
18344 exit (1);
18345 if ((sizeof (omp_lock_t)) < 0)
18347 long i = longval ();
18348 if (i != (sizeof (omp_lock_t)))
18349 exit (1);
18350 fprintf (f, "%ld\n", i);
18352 else
18354 unsigned long i = ulongval ();
18355 if (i != (sizeof (omp_lock_t)))
18356 exit (1);
18357 fprintf (f, "%lu\n", i);
18359 exit (ferror (f) || fclose (f) != 0);
18362 return 0;
18364 _ACEOF
18365 rm -f conftest$ac_exeext
18366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18367 (eval $ac_link) 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18376 OMP_LOCK_SIZE=`cat conftest.val`
18377 else
18378 echo "$as_me: program exited with status $ac_status" >&5
18379 echo "$as_me: failed program was:" >&5
18380 sed 's/^/| /' conftest.$ac_ext >&5
18382 ( exit $ac_status )
18383 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18384 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18385 { (exit 1); exit 1; }; }
18387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18390 rm -f conftest.val
18391 if test "$cross_compiling" = yes; then
18392 # Depending upon the size, compute the lo and hi bounds.
18393 cat >conftest.$ac_ext <<_ACEOF
18394 /* confdefs.h. */
18395 _ACEOF
18396 cat confdefs.h >>conftest.$ac_ext
18397 cat >>conftest.$ac_ext <<_ACEOF
18398 /* end confdefs.h. */
18401 main ()
18403 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
18404 test_array [0] = 0
18407 return 0;
18409 _ACEOF
18410 rm -f conftest.$ac_objext
18411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18412 (eval $ac_compile) 2>conftest.er1
18413 ac_status=$?
18414 grep -v '^ *+' conftest.er1 >conftest.err
18415 rm -f conftest.er1
18416 cat conftest.err >&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } &&
18419 { ac_try='test -z "$ac_c_werror_flag"
18420 || test ! -s conftest.err'
18421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18422 (eval $ac_try) 2>&5
18423 ac_status=$?
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; } &&
18426 { ac_try='test -s conftest.$ac_objext'
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; }; then
18432 ac_lo=0 ac_mid=0
18433 while :; do
18434 cat >conftest.$ac_ext <<_ACEOF
18435 /* confdefs.h. */
18436 _ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h. */
18442 main ()
18444 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18445 test_array [0] = 0
18448 return 0;
18450 _ACEOF
18451 rm -f conftest.$ac_objext
18452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18453 (eval $ac_compile) 2>conftest.er1
18454 ac_status=$?
18455 grep -v '^ *+' conftest.er1 >conftest.err
18456 rm -f conftest.er1
18457 cat conftest.err >&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
18460 { ac_try='test -z "$ac_c_werror_flag"
18461 || test ! -s conftest.err'
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; } &&
18467 { ac_try='test -s conftest.$ac_objext'
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18470 ac_status=$?
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18473 ac_hi=$ac_mid; break
18474 else
18475 echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18478 ac_lo=`expr $ac_mid + 1`
18479 if test $ac_lo -le $ac_mid; then
18480 ac_lo= ac_hi=
18481 break
18483 ac_mid=`expr 2 '*' $ac_mid + 1`
18485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18486 done
18487 else
18488 echo "$as_me: failed program was:" >&5
18489 sed 's/^/| /' conftest.$ac_ext >&5
18491 cat >conftest.$ac_ext <<_ACEOF
18492 /* confdefs.h. */
18493 _ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h. */
18499 main ()
18501 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
18502 test_array [0] = 0
18505 return 0;
18507 _ACEOF
18508 rm -f conftest.$ac_objext
18509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18510 (eval $ac_compile) 2>conftest.er1
18511 ac_status=$?
18512 grep -v '^ *+' conftest.er1 >conftest.err
18513 rm -f conftest.er1
18514 cat conftest.err >&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); } &&
18517 { ac_try='test -z "$ac_c_werror_flag"
18518 || test ! -s conftest.err'
18519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18520 (eval $ac_try) 2>&5
18521 ac_status=$?
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); }; } &&
18524 { ac_try='test -s conftest.$ac_objext'
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; }; then
18530 ac_hi=-1 ac_mid=-1
18531 while :; do
18532 cat >conftest.$ac_ext <<_ACEOF
18533 /* confdefs.h. */
18534 _ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h. */
18540 main ()
18542 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
18543 test_array [0] = 0
18546 return 0;
18548 _ACEOF
18549 rm -f conftest.$ac_objext
18550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18551 (eval $ac_compile) 2>conftest.er1
18552 ac_status=$?
18553 grep -v '^ *+' conftest.er1 >conftest.err
18554 rm -f conftest.er1
18555 cat conftest.err >&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); } &&
18558 { ac_try='test -z "$ac_c_werror_flag"
18559 || test ! -s conftest.err'
18560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18561 (eval $ac_try) 2>&5
18562 ac_status=$?
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); }; } &&
18565 { ac_try='test -s conftest.$ac_objext'
18566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567 (eval $ac_try) 2>&5
18568 ac_status=$?
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; }; then
18571 ac_lo=$ac_mid; break
18572 else
18573 echo "$as_me: failed program was:" >&5
18574 sed 's/^/| /' conftest.$ac_ext >&5
18576 ac_hi=`expr '(' $ac_mid ')' - 1`
18577 if test $ac_mid -le $ac_hi; then
18578 ac_lo= ac_hi=
18579 break
18581 ac_mid=`expr 2 '*' $ac_mid`
18583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18584 done
18585 else
18586 echo "$as_me: failed program was:" >&5
18587 sed 's/^/| /' conftest.$ac_ext >&5
18589 ac_lo= ac_hi=
18591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18594 # Binary search between lo and hi bounds.
18595 while test "x$ac_lo" != "x$ac_hi"; do
18596 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18597 cat >conftest.$ac_ext <<_ACEOF
18598 /* confdefs.h. */
18599 _ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18605 main ()
18607 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18608 test_array [0] = 0
18611 return 0;
18613 _ACEOF
18614 rm -f conftest.$ac_objext
18615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18616 (eval $ac_compile) 2>conftest.er1
18617 ac_status=$?
18618 grep -v '^ *+' conftest.er1 >conftest.err
18619 rm -f conftest.er1
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } &&
18623 { ac_try='test -z "$ac_c_werror_flag"
18624 || test ! -s conftest.err'
18625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626 (eval $ac_try) 2>&5
18627 ac_status=$?
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; } &&
18630 { ac_try='test -s conftest.$ac_objext'
18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18632 (eval $ac_try) 2>&5
18633 ac_status=$?
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; }; then
18636 ac_hi=$ac_mid
18637 else
18638 echo "$as_me: failed program was:" >&5
18639 sed 's/^/| /' conftest.$ac_ext >&5
18641 ac_lo=`expr '(' $ac_mid ')' + 1`
18643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18644 done
18645 case $ac_lo in
18646 ?*) OMP_LOCK_ALIGN=$ac_lo;;
18647 '') ;;
18648 esac
18649 else
18650 if test "$cross_compiling" = yes; then
18651 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18652 See \`config.log' for more details." >&5
18653 echo "$as_me: error: cannot run test program while cross compiling
18654 See \`config.log' for more details." >&2;}
18655 { (exit 1); exit 1; }; }
18656 else
18657 cat >conftest.$ac_ext <<_ACEOF
18658 /* confdefs.h. */
18659 _ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18664 long longval () { return __alignof (omp_lock_t); }
18665 unsigned long ulongval () { return __alignof (omp_lock_t); }
18666 #include <stdio.h>
18667 #include <stdlib.h>
18669 main ()
18672 FILE *f = fopen ("conftest.val", "w");
18673 if (! f)
18674 exit (1);
18675 if ((__alignof (omp_lock_t)) < 0)
18677 long i = longval ();
18678 if (i != (__alignof (omp_lock_t)))
18679 exit (1);
18680 fprintf (f, "%ld\n", i);
18682 else
18684 unsigned long i = ulongval ();
18685 if (i != (__alignof (omp_lock_t)))
18686 exit (1);
18687 fprintf (f, "%lu\n", i);
18689 exit (ferror (f) || fclose (f) != 0);
18692 return 0;
18694 _ACEOF
18695 rm -f conftest$ac_exeext
18696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18697 (eval $ac_link) 2>&5
18698 ac_status=$?
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702 (eval $ac_try) 2>&5
18703 ac_status=$?
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; }; then
18706 OMP_LOCK_ALIGN=`cat conftest.val`
18707 else
18708 echo "$as_me: program exited with status $ac_status" >&5
18709 echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18713 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18716 rm -f conftest.val
18717 if test "$cross_compiling" = yes; then
18718 # Depending upon the size, compute the lo and hi bounds.
18719 cat >conftest.$ac_ext <<_ACEOF
18720 /* confdefs.h. */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18727 main ()
18729 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
18730 test_array [0] = 0
18733 return 0;
18735 _ACEOF
18736 rm -f conftest.$ac_objext
18737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18738 (eval $ac_compile) 2>conftest.er1
18739 ac_status=$?
18740 grep -v '^ *+' conftest.er1 >conftest.err
18741 rm -f conftest.er1
18742 cat conftest.err >&5
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); } &&
18745 { ac_try='test -z "$ac_c_werror_flag"
18746 || test ! -s conftest.err'
18747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748 (eval $ac_try) 2>&5
18749 ac_status=$?
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; } &&
18752 { ac_try='test -s conftest.$ac_objext'
18753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18754 (eval $ac_try) 2>&5
18755 ac_status=$?
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; }; then
18758 ac_lo=0 ac_mid=0
18759 while :; do
18760 cat >conftest.$ac_ext <<_ACEOF
18761 /* confdefs.h. */
18762 _ACEOF
18763 cat confdefs.h >>conftest.$ac_ext
18764 cat >>conftest.$ac_ext <<_ACEOF
18765 /* end confdefs.h. */
18768 main ()
18770 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18771 test_array [0] = 0
18774 return 0;
18776 _ACEOF
18777 rm -f conftest.$ac_objext
18778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18779 (eval $ac_compile) 2>conftest.er1
18780 ac_status=$?
18781 grep -v '^ *+' conftest.er1 >conftest.err
18782 rm -f conftest.er1
18783 cat conftest.err >&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); } &&
18786 { ac_try='test -z "$ac_c_werror_flag"
18787 || test ! -s conftest.err'
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18790 ac_status=$?
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; } &&
18793 { ac_try='test -s conftest.$ac_objext'
18794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18795 (eval $ac_try) 2>&5
18796 ac_status=$?
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; }; then
18799 ac_hi=$ac_mid; break
18800 else
18801 echo "$as_me: failed program was:" >&5
18802 sed 's/^/| /' conftest.$ac_ext >&5
18804 ac_lo=`expr $ac_mid + 1`
18805 if test $ac_lo -le $ac_mid; then
18806 ac_lo= ac_hi=
18807 break
18809 ac_mid=`expr 2 '*' $ac_mid + 1`
18811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18812 done
18813 else
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18817 cat >conftest.$ac_ext <<_ACEOF
18818 /* confdefs.h. */
18819 _ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h. */
18825 main ()
18827 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
18828 test_array [0] = 0
18831 return 0;
18833 _ACEOF
18834 rm -f conftest.$ac_objext
18835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18836 (eval $ac_compile) 2>conftest.er1
18837 ac_status=$?
18838 grep -v '^ *+' conftest.er1 >conftest.err
18839 rm -f conftest.er1
18840 cat conftest.err >&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } &&
18843 { ac_try='test -z "$ac_c_werror_flag"
18844 || test ! -s conftest.err'
18845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846 (eval $ac_try) 2>&5
18847 ac_status=$?
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try='test -s conftest.$ac_objext'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 ac_hi=-1 ac_mid=-1
18857 while :; do
18858 cat >conftest.$ac_ext <<_ACEOF
18859 /* confdefs.h. */
18860 _ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h. */
18866 main ()
18868 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
18869 test_array [0] = 0
18872 return 0;
18874 _ACEOF
18875 rm -f conftest.$ac_objext
18876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18877 (eval $ac_compile) 2>conftest.er1
18878 ac_status=$?
18879 grep -v '^ *+' conftest.er1 >conftest.err
18880 rm -f conftest.er1
18881 cat conftest.err >&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } &&
18884 { ac_try='test -z "$ac_c_werror_flag"
18885 || test ! -s conftest.err'
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; } &&
18891 { ac_try='test -s conftest.$ac_objext'
18892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18893 (eval $ac_try) 2>&5
18894 ac_status=$?
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; }; then
18897 ac_lo=$ac_mid; break
18898 else
18899 echo "$as_me: failed program was:" >&5
18900 sed 's/^/| /' conftest.$ac_ext >&5
18902 ac_hi=`expr '(' $ac_mid ')' - 1`
18903 if test $ac_mid -le $ac_hi; then
18904 ac_lo= ac_hi=
18905 break
18907 ac_mid=`expr 2 '*' $ac_mid`
18909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18910 done
18911 else
18912 echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18915 ac_lo= ac_hi=
18917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18920 # Binary search between lo and hi bounds.
18921 while test "x$ac_lo" != "x$ac_hi"; do
18922 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18923 cat >conftest.$ac_ext <<_ACEOF
18924 /* confdefs.h. */
18925 _ACEOF
18926 cat confdefs.h >>conftest.$ac_ext
18927 cat >>conftest.$ac_ext <<_ACEOF
18928 /* end confdefs.h. */
18931 main ()
18933 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18934 test_array [0] = 0
18937 return 0;
18939 _ACEOF
18940 rm -f conftest.$ac_objext
18941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18942 (eval $ac_compile) 2>conftest.er1
18943 ac_status=$?
18944 grep -v '^ *+' conftest.er1 >conftest.err
18945 rm -f conftest.er1
18946 cat conftest.err >&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } &&
18949 { ac_try='test -z "$ac_c_werror_flag"
18950 || test ! -s conftest.err'
18951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 (eval $ac_try) 2>&5
18953 ac_status=$?
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; } &&
18956 { ac_try='test -s conftest.$ac_objext'
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; }; then
18962 ac_hi=$ac_mid
18963 else
18964 echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18967 ac_lo=`expr '(' $ac_mid ')' + 1`
18969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18970 done
18971 case $ac_lo in
18972 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
18973 '') ;;
18974 esac
18975 else
18976 if test "$cross_compiling" = yes; then
18977 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18978 See \`config.log' for more details." >&5
18979 echo "$as_me: error: cannot run test program while cross compiling
18980 See \`config.log' for more details." >&2;}
18981 { (exit 1); exit 1; }; }
18982 else
18983 cat >conftest.$ac_ext <<_ACEOF
18984 /* confdefs.h. */
18985 _ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h. */
18990 long longval () { return sizeof (omp_nest_lock_t); }
18991 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
18992 #include <stdio.h>
18993 #include <stdlib.h>
18995 main ()
18998 FILE *f = fopen ("conftest.val", "w");
18999 if (! f)
19000 exit (1);
19001 if ((sizeof (omp_nest_lock_t)) < 0)
19003 long i = longval ();
19004 if (i != (sizeof (omp_nest_lock_t)))
19005 exit (1);
19006 fprintf (f, "%ld\n", i);
19008 else
19010 unsigned long i = ulongval ();
19011 if (i != (sizeof (omp_nest_lock_t)))
19012 exit (1);
19013 fprintf (f, "%lu\n", i);
19015 exit (ferror (f) || fclose (f) != 0);
19018 return 0;
19020 _ACEOF
19021 rm -f conftest$ac_exeext
19022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19023 (eval $ac_link) 2>&5
19024 ac_status=$?
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } && { ac_try='./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 OMP_NEST_LOCK_SIZE=`cat conftest.val`
19033 else
19034 echo "$as_me: program exited with status $ac_status" >&5
19035 echo "$as_me: failed program was:" >&5
19036 sed 's/^/| /' conftest.$ac_ext >&5
19039 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19042 rm -f conftest.val
19043 if test "$cross_compiling" = yes; then
19044 # Depending upon the size, compute the lo and hi bounds.
19045 cat >conftest.$ac_ext <<_ACEOF
19046 /* confdefs.h. */
19047 _ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h. */
19053 main ()
19055 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
19056 test_array [0] = 0
19059 return 0;
19061 _ACEOF
19062 rm -f conftest.$ac_objext
19063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19064 (eval $ac_compile) 2>conftest.er1
19065 ac_status=$?
19066 grep -v '^ *+' conftest.er1 >conftest.err
19067 rm -f conftest.er1
19068 cat conftest.err >&5
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } &&
19071 { ac_try='test -z "$ac_c_werror_flag"
19072 || test ! -s conftest.err'
19073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074 (eval $ac_try) 2>&5
19075 ac_status=$?
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; } &&
19078 { ac_try='test -s conftest.$ac_objext'
19079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080 (eval $ac_try) 2>&5
19081 ac_status=$?
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; }; then
19084 ac_lo=0 ac_mid=0
19085 while :; do
19086 cat >conftest.$ac_ext <<_ACEOF
19087 /* confdefs.h. */
19088 _ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h. */
19094 main ()
19096 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19097 test_array [0] = 0
19100 return 0;
19102 _ACEOF
19103 rm -f conftest.$ac_objext
19104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19105 (eval $ac_compile) 2>conftest.er1
19106 ac_status=$?
19107 grep -v '^ *+' conftest.er1 >conftest.err
19108 rm -f conftest.er1
19109 cat conftest.err >&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } &&
19112 { ac_try='test -z "$ac_c_werror_flag"
19113 || test ! -s conftest.err'
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; } &&
19119 { ac_try='test -s conftest.$ac_objext'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 ac_hi=$ac_mid; break
19126 else
19127 echo "$as_me: failed program was:" >&5
19128 sed 's/^/| /' conftest.$ac_ext >&5
19130 ac_lo=`expr $ac_mid + 1`
19131 if test $ac_lo -le $ac_mid; then
19132 ac_lo= ac_hi=
19133 break
19135 ac_mid=`expr 2 '*' $ac_mid + 1`
19137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19138 done
19139 else
19140 echo "$as_me: failed program was:" >&5
19141 sed 's/^/| /' conftest.$ac_ext >&5
19143 cat >conftest.$ac_ext <<_ACEOF
19144 /* confdefs.h. */
19145 _ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19151 main ()
19153 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
19154 test_array [0] = 0
19157 return 0;
19159 _ACEOF
19160 rm -f conftest.$ac_objext
19161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19162 (eval $ac_compile) 2>conftest.er1
19163 ac_status=$?
19164 grep -v '^ *+' conftest.er1 >conftest.err
19165 rm -f conftest.er1
19166 cat conftest.err >&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); } &&
19169 { ac_try='test -z "$ac_c_werror_flag"
19170 || test ! -s conftest.err'
19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172 (eval $ac_try) 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; } &&
19176 { ac_try='test -s conftest.$ac_objext'
19177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; }; then
19182 ac_hi=-1 ac_mid=-1
19183 while :; do
19184 cat >conftest.$ac_ext <<_ACEOF
19185 /* confdefs.h. */
19186 _ACEOF
19187 cat confdefs.h >>conftest.$ac_ext
19188 cat >>conftest.$ac_ext <<_ACEOF
19189 /* end confdefs.h. */
19192 main ()
19194 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
19195 test_array [0] = 0
19198 return 0;
19200 _ACEOF
19201 rm -f conftest.$ac_objext
19202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19203 (eval $ac_compile) 2>conftest.er1
19204 ac_status=$?
19205 grep -v '^ *+' conftest.er1 >conftest.err
19206 rm -f conftest.er1
19207 cat conftest.err >&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } &&
19210 { ac_try='test -z "$ac_c_werror_flag"
19211 || test ! -s conftest.err'
19212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19213 (eval $ac_try) 2>&5
19214 ac_status=$?
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; } &&
19217 { ac_try='test -s conftest.$ac_objext'
19218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219 (eval $ac_try) 2>&5
19220 ac_status=$?
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); }; }; then
19223 ac_lo=$ac_mid; break
19224 else
19225 echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19228 ac_hi=`expr '(' $ac_mid ')' - 1`
19229 if test $ac_mid -le $ac_hi; then
19230 ac_lo= ac_hi=
19231 break
19233 ac_mid=`expr 2 '*' $ac_mid`
19235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19236 done
19237 else
19238 echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19241 ac_lo= ac_hi=
19243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19246 # Binary search between lo and hi bounds.
19247 while test "x$ac_lo" != "x$ac_hi"; do
19248 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19249 cat >conftest.$ac_ext <<_ACEOF
19250 /* confdefs.h. */
19251 _ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h. */
19257 main ()
19259 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19260 test_array [0] = 0
19263 return 0;
19265 _ACEOF
19266 rm -f conftest.$ac_objext
19267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19268 (eval $ac_compile) 2>conftest.er1
19269 ac_status=$?
19270 grep -v '^ *+' conftest.er1 >conftest.err
19271 rm -f conftest.er1
19272 cat conftest.err >&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); } &&
19275 { ac_try='test -z "$ac_c_werror_flag"
19276 || test ! -s conftest.err'
19277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278 (eval $ac_try) 2>&5
19279 ac_status=$?
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; } &&
19282 { ac_try='test -s conftest.$ac_objext'
19283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284 (eval $ac_try) 2>&5
19285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; }; then
19288 ac_hi=$ac_mid
19289 else
19290 echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.$ac_ext >&5
19293 ac_lo=`expr '(' $ac_mid ')' + 1`
19295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19296 done
19297 case $ac_lo in
19298 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
19299 '') ;;
19300 esac
19301 else
19302 if test "$cross_compiling" = yes; then
19303 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19304 See \`config.log' for more details." >&5
19305 echo "$as_me: error: cannot run test program while cross compiling
19306 See \`config.log' for more details." >&2;}
19307 { (exit 1); exit 1; }; }
19308 else
19309 cat >conftest.$ac_ext <<_ACEOF
19310 /* confdefs.h. */
19311 _ACEOF
19312 cat confdefs.h >>conftest.$ac_ext
19313 cat >>conftest.$ac_ext <<_ACEOF
19314 /* end confdefs.h. */
19316 long longval () { return __alignof (omp_nest_lock_t); }
19317 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
19318 #include <stdio.h>
19319 #include <stdlib.h>
19321 main ()
19324 FILE *f = fopen ("conftest.val", "w");
19325 if (! f)
19326 exit (1);
19327 if ((__alignof (omp_nest_lock_t)) < 0)
19329 long i = longval ();
19330 if (i != (__alignof (omp_nest_lock_t)))
19331 exit (1);
19332 fprintf (f, "%ld\n", i);
19334 else
19336 unsigned long i = ulongval ();
19337 if (i != (__alignof (omp_nest_lock_t)))
19338 exit (1);
19339 fprintf (f, "%lu\n", i);
19341 exit (ferror (f) || fclose (f) != 0);
19344 return 0;
19346 _ACEOF
19347 rm -f conftest$ac_exeext
19348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19349 (eval $ac_link) 2>&5
19350 ac_status=$?
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354 (eval $ac_try) 2>&5
19355 ac_status=$?
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
19358 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
19359 else
19360 echo "$as_me: program exited with status $ac_status" >&5
19361 echo "$as_me: failed program was:" >&5
19362 sed 's/^/| /' conftest.$ac_ext >&5
19365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19368 rm -f conftest.val
19370 # If the lock fits in an integer, then arrange for Fortran to use that
19371 # integer. If it doesn't, then arrange for Fortran to use a pointer.
19372 # Except that we don't have a way at present to multi-lib the installed
19373 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
19374 # actual target.
19375 OMP_LOCK_KIND=$OMP_LOCK_SIZE
19376 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
19377 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
19378 OMP_LOCK_KIND=8
19380 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
19381 OMP_NEST_LOCK_KIND=8
19390 CFLAGS="$save_CFLAGS"
19392 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
19394 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
19396 cat >confcache <<\_ACEOF
19397 # This file is a shell script that caches the results of configure
19398 # tests run on this system so they can be shared between configure
19399 # scripts and configure runs, see configure's option --config-cache.
19400 # It is not useful on other systems. If it contains results you don't
19401 # want to keep, you may remove or edit it.
19403 # config.status only pays attention to the cache file if you give it
19404 # the --recheck option to rerun configure.
19406 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19407 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19408 # following values.
19410 _ACEOF
19412 # The following way of writing the cache mishandles newlines in values,
19413 # but we know of no workaround that is simple, portable, and efficient.
19414 # So, don't put newlines in cache variables' values.
19415 # Ultrix sh set writes to stderr and can't be redirected directly,
19416 # and sets the high bit in the cache file unless we assign to the vars.
19418 (set) 2>&1 |
19419 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19420 *ac_space=\ *)
19421 # `set' does not quote correctly, so add quotes (double-quote
19422 # substitution turns \\\\ into \\, and sed turns \\ into \).
19423 sed -n \
19424 "s/'/'\\\\''/g;
19425 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19428 # `set' quotes correctly as required by POSIX, so do not add quotes.
19429 sed -n \
19430 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19432 esac;
19434 sed '
19435 t clear
19436 : clear
19437 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19438 t end
19439 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19440 : end' >>confcache
19441 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19442 if test -w $cache_file; then
19443 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19444 cat confcache >$cache_file
19445 else
19446 echo "not updating unwritable cache $cache_file"
19449 rm -f confcache
19451 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19452 # Let make expand exec_prefix.
19453 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19455 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19456 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19457 # trailing colons and then remove the whole line if VPATH becomes empty
19458 # (actually we leave an empty line to preserve line numbers).
19459 if test "x$srcdir" = x.; then
19460 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19461 s/:*\$(srcdir):*/:/;
19462 s/:*\${srcdir}:*/:/;
19463 s/:*@srcdir@:*/:/;
19464 s/^\([^=]*=[ ]*\):*/\1/;
19465 s/:*$//;
19466 s/^[^=]*=[ ]*$//;
19470 DEFS=-DHAVE_CONFIG_H
19472 ac_libobjs=
19473 ac_ltlibobjs=
19474 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19475 # 1. Remove the extension, and $U if already installed.
19476 ac_i=`echo "$ac_i" |
19477 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19478 # 2. Add them.
19479 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19480 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19481 done
19482 LIBOBJS=$ac_libobjs
19484 LTLIBOBJS=$ac_ltlibobjs
19487 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
19488 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
19489 Usually this means the macro was only invoked conditionally." >&5
19490 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
19491 Usually this means the macro was only invoked conditionally." >&2;}
19492 { (exit 1); exit 1; }; }
19494 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19495 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19496 Usually this means the macro was only invoked conditionally." >&5
19497 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19498 Usually this means the macro was only invoked conditionally." >&2;}
19499 { (exit 1); exit 1; }; }
19501 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19502 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19503 Usually this means the macro was only invoked conditionally." >&5
19504 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19505 Usually this means the macro was only invoked conditionally." >&2;}
19506 { (exit 1); exit 1; }; }
19508 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
19509 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
19510 Usually this means the macro was only invoked conditionally." >&5
19511 echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
19512 Usually this means the macro was only invoked conditionally." >&2;}
19513 { (exit 1); exit 1; }; }
19515 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19516 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19517 Usually this means the macro was only invoked conditionally." >&5
19518 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19519 Usually this means the macro was only invoked conditionally." >&2;}
19520 { (exit 1); exit 1; }; }
19522 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
19523 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19524 Usually this means the macro was only invoked conditionally." >&5
19525 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19526 Usually this means the macro was only invoked conditionally." >&2;}
19527 { (exit 1); exit 1; }; }
19529 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
19530 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
19531 Usually this means the macro was only invoked conditionally." >&5
19532 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
19533 Usually this means the macro was only invoked conditionally." >&2;}
19534 { (exit 1); exit 1; }; }
19537 : ${CONFIG_STATUS=./config.status}
19538 ac_clean_files_save=$ac_clean_files
19539 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19540 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19541 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19542 cat >$CONFIG_STATUS <<_ACEOF
19543 #! $SHELL
19544 # Generated by $as_me.
19545 # Run this file to recreate the current configuration.
19546 # Compiler output produced by configure, useful for debugging
19547 # configure, is in config.log if it exists.
19549 debug=false
19550 ac_cs_recheck=false
19551 ac_cs_silent=false
19552 SHELL=\${CONFIG_SHELL-$SHELL}
19553 _ACEOF
19555 cat >>$CONFIG_STATUS <<\_ACEOF
19556 ## --------------------- ##
19557 ## M4sh Initialization. ##
19558 ## --------------------- ##
19560 # Be Bourne compatible
19561 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19562 emulate sh
19563 NULLCMD=:
19564 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19565 # is contrary to our usage. Disable this feature.
19566 alias -g '${1+"$@"}'='"$@"'
19567 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19568 set -o posix
19570 DUALCASE=1; export DUALCASE # for MKS sh
19572 # Support unset when possible.
19573 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19574 as_unset=unset
19575 else
19576 as_unset=false
19580 # Work around bugs in pre-3.0 UWIN ksh.
19581 $as_unset ENV MAIL MAILPATH
19582 PS1='$ '
19583 PS2='> '
19584 PS4='+ '
19586 # NLS nuisances.
19587 for as_var in \
19588 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19589 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19590 LC_TELEPHONE LC_TIME
19592 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19593 eval $as_var=C; export $as_var
19594 else
19595 $as_unset $as_var
19597 done
19599 # Required to use basename.
19600 if expr a : '\(a\)' >/dev/null 2>&1; then
19601 as_expr=expr
19602 else
19603 as_expr=false
19606 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19607 as_basename=basename
19608 else
19609 as_basename=false
19613 # Name of the executable.
19614 as_me=`$as_basename "$0" ||
19615 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19616 X"$0" : 'X\(//\)$' \| \
19617 X"$0" : 'X\(/\)$' \| \
19618 . : '\(.\)' 2>/dev/null ||
19619 echo X/"$0" |
19620 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19621 /^X\/\(\/\/\)$/{ s//\1/; q; }
19622 /^X\/\(\/\).*/{ s//\1/; q; }
19623 s/.*/./; q'`
19626 # PATH needs CR, and LINENO needs CR and PATH.
19627 # Avoid depending upon Character Ranges.
19628 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19629 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19630 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19631 as_cr_digits='0123456789'
19632 as_cr_alnum=$as_cr_Letters$as_cr_digits
19634 # The user is always right.
19635 if test "${PATH_SEPARATOR+set}" != set; then
19636 echo "#! /bin/sh" >conf$$.sh
19637 echo "exit 0" >>conf$$.sh
19638 chmod +x conf$$.sh
19639 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19640 PATH_SEPARATOR=';'
19641 else
19642 PATH_SEPARATOR=:
19644 rm -f conf$$.sh
19648 as_lineno_1=$LINENO
19649 as_lineno_2=$LINENO
19650 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19651 test "x$as_lineno_1" != "x$as_lineno_2" &&
19652 test "x$as_lineno_3" = "x$as_lineno_2" || {
19653 # Find who we are. Look in the path if we contain no path at all
19654 # relative or not.
19655 case $0 in
19656 *[\\/]* ) as_myself=$0 ;;
19657 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19658 for as_dir in $PATH
19660 IFS=$as_save_IFS
19661 test -z "$as_dir" && as_dir=.
19662 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19663 done
19666 esac
19667 # We did not find ourselves, most probably we were run as `sh COMMAND'
19668 # in which case we are not to be found in the path.
19669 if test "x$as_myself" = x; then
19670 as_myself=$0
19672 if test ! -f "$as_myself"; then
19673 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19674 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19675 { (exit 1); exit 1; }; }
19677 case $CONFIG_SHELL in
19679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19680 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19682 IFS=$as_save_IFS
19683 test -z "$as_dir" && as_dir=.
19684 for as_base in sh bash ksh sh5; do
19685 case $as_dir in
19687 if ("$as_dir/$as_base" -c '
19688 as_lineno_1=$LINENO
19689 as_lineno_2=$LINENO
19690 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19691 test "x$as_lineno_1" != "x$as_lineno_2" &&
19692 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19693 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19694 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19695 CONFIG_SHELL=$as_dir/$as_base
19696 export CONFIG_SHELL
19697 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19698 fi;;
19699 esac
19700 done
19701 done
19703 esac
19705 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19706 # uniformly replaced by the line number. The first 'sed' inserts a
19707 # line-number line before each line; the second 'sed' does the real
19708 # work. The second script uses 'N' to pair each line-number line
19709 # with the numbered line, and appends trailing '-' during
19710 # substitution so that $LINENO is not a special case at line end.
19711 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19712 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19713 sed '=' <$as_myself |
19714 sed '
19716 s,$,-,
19717 : loop
19718 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19719 t loop
19720 s,-$,,
19721 s,^['$as_cr_digits']*\n,,
19722 ' >$as_me.lineno &&
19723 chmod +x $as_me.lineno ||
19724 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19725 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19726 { (exit 1); exit 1; }; }
19728 # Don't try to exec as it changes $[0], causing all sort of problems
19729 # (the dirname of $[0] is not the place where we might find the
19730 # original and so on. Autoconf is especially sensible to this).
19731 . ./$as_me.lineno
19732 # Exit status is that of the last command.
19733 exit
19737 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19738 *c*,-n*) ECHO_N= ECHO_C='
19739 ' ECHO_T=' ' ;;
19740 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19741 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19742 esac
19744 if expr a : '\(a\)' >/dev/null 2>&1; then
19745 as_expr=expr
19746 else
19747 as_expr=false
19750 rm -f conf$$ conf$$.exe conf$$.file
19751 echo >conf$$.file
19752 if ln -s conf$$.file conf$$ 2>/dev/null; then
19753 # We could just check for DJGPP; but this test a) works b) is more generic
19754 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19755 if test -f conf$$.exe; then
19756 # Don't use ln at all; we don't have any links
19757 as_ln_s='cp -p'
19758 else
19759 as_ln_s='ln -s'
19761 elif ln conf$$.file conf$$ 2>/dev/null; then
19762 as_ln_s=ln
19763 else
19764 as_ln_s='cp -p'
19766 rm -f conf$$ conf$$.exe conf$$.file
19768 if mkdir -p . 2>/dev/null; then
19769 as_mkdir_p=:
19770 else
19771 test -d ./-p && rmdir ./-p
19772 as_mkdir_p=false
19775 as_executable_p="test -f"
19777 # Sed expression to map a string onto a valid CPP name.
19778 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19780 # Sed expression to map a string onto a valid variable name.
19781 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19784 # IFS
19785 # We need space, tab and new line, in precisely that order.
19786 as_nl='
19788 IFS=" $as_nl"
19790 # CDPATH.
19791 $as_unset CDPATH
19793 exec 6>&1
19795 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19796 # report actual input values of CONFIG_FILES etc. instead of their
19797 # values after options handling. Logging --version etc. is OK.
19798 exec 5>>config.log
19800 echo
19801 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19802 ## Running $as_me. ##
19803 _ASBOX
19804 } >&5
19805 cat >&5 <<_CSEOF
19807 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
19808 generated by GNU Autoconf 2.59. Invocation command line was
19810 CONFIG_FILES = $CONFIG_FILES
19811 CONFIG_HEADERS = $CONFIG_HEADERS
19812 CONFIG_LINKS = $CONFIG_LINKS
19813 CONFIG_COMMANDS = $CONFIG_COMMANDS
19814 $ $0 $@
19816 _CSEOF
19817 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19818 echo >&5
19819 _ACEOF
19821 # Files that config.status was made for.
19822 if test -n "$ac_config_files"; then
19823 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19826 if test -n "$ac_config_headers"; then
19827 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19830 if test -n "$ac_config_links"; then
19831 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19834 if test -n "$ac_config_commands"; then
19835 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19838 cat >>$CONFIG_STATUS <<\_ACEOF
19840 ac_cs_usage="\
19841 \`$as_me' instantiates files from templates according to the
19842 current configuration.
19844 Usage: $0 [OPTIONS] [FILE]...
19846 -h, --help print this help, then exit
19847 -V, --version print version number, then exit
19848 -q, --quiet do not print progress messages
19849 -d, --debug don't remove temporary files
19850 --recheck update $as_me by reconfiguring in the same conditions
19851 --file=FILE[:TEMPLATE]
19852 instantiate the configuration file FILE
19853 --header=FILE[:TEMPLATE]
19854 instantiate the configuration header FILE
19856 Configuration files:
19857 $config_files
19859 Configuration headers:
19860 $config_headers
19862 Configuration commands:
19863 $config_commands
19865 Report bugs to <bug-autoconf@gnu.org>."
19866 _ACEOF
19868 cat >>$CONFIG_STATUS <<_ACEOF
19869 ac_cs_version="\\
19870 GNU OpenMP Runtime Library config.status 1.0
19871 configured by $0, generated by GNU Autoconf 2.59,
19872 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19874 Copyright (C) 2003 Free Software Foundation, Inc.
19875 This config.status script is free software; the Free Software Foundation
19876 gives unlimited permission to copy, distribute and modify it."
19877 srcdir=$srcdir
19878 INSTALL="$INSTALL"
19879 _ACEOF
19881 cat >>$CONFIG_STATUS <<\_ACEOF
19882 # If no file are specified by the user, then we need to provide default
19883 # value. By we need to know if files were specified by the user.
19884 ac_need_defaults=:
19885 while test $# != 0
19887 case $1 in
19888 --*=*)
19889 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19890 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19891 ac_shift=:
19894 ac_option=$1
19895 ac_optarg=$2
19896 ac_shift=shift
19898 *) # This is not an option, so the user has probably given explicit
19899 # arguments.
19900 ac_option=$1
19901 ac_need_defaults=false;;
19902 esac
19904 case $ac_option in
19905 # Handling of the options.
19906 _ACEOF
19907 cat >>$CONFIG_STATUS <<\_ACEOF
19908 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19909 ac_cs_recheck=: ;;
19910 --version | --vers* | -V )
19911 echo "$ac_cs_version"; exit 0 ;;
19912 --he | --h)
19913 # Conflict between --help and --header
19914 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19915 Try \`$0 --help' for more information." >&5
19916 echo "$as_me: error: ambiguous option: $1
19917 Try \`$0 --help' for more information." >&2;}
19918 { (exit 1); exit 1; }; };;
19919 --help | --hel | -h )
19920 echo "$ac_cs_usage"; exit 0 ;;
19921 --debug | --d* | -d )
19922 debug=: ;;
19923 --file | --fil | --fi | --f )
19924 $ac_shift
19925 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19926 ac_need_defaults=false;;
19927 --header | --heade | --head | --hea )
19928 $ac_shift
19929 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19930 ac_need_defaults=false;;
19931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19932 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19933 ac_cs_silent=: ;;
19935 # This is an error.
19936 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19937 Try \`$0 --help' for more information." >&5
19938 echo "$as_me: error: unrecognized option: $1
19939 Try \`$0 --help' for more information." >&2;}
19940 { (exit 1); exit 1; }; } ;;
19942 *) ac_config_targets="$ac_config_targets $1" ;;
19944 esac
19945 shift
19946 done
19948 ac_configure_extra_args=
19950 if $ac_cs_silent; then
19951 exec 6>/dev/null
19952 ac_configure_extra_args="$ac_configure_extra_args --silent"
19955 _ACEOF
19956 cat >>$CONFIG_STATUS <<_ACEOF
19957 if \$ac_cs_recheck; then
19958 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19959 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19962 _ACEOF
19964 cat >>$CONFIG_STATUS <<_ACEOF
19966 # INIT-COMMANDS section.
19970 srcdir="$srcdir"
19971 host="$host"
19972 target="$target"
19973 with_multisubdir="$with_multisubdir"
19974 with_multisrctop="$with_multisrctop"
19975 with_target_subdir="$with_target_subdir"
19976 ac_configure_args="${multilib_arg} ${ac_configure_args}"
19977 multi_basedir="$multi_basedir"
19978 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
19979 CC="$CC"
19980 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19983 # The HP-UX ksh and POSIX shell print the target directory to stdout
19984 # if CDPATH is set.
19985 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19987 sed_quote_subst='$sed_quote_subst'
19988 double_quote_subst='$double_quote_subst'
19989 delay_variable_subst='$delay_variable_subst'
19990 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19991 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19992 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19993 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19994 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19995 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19996 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19997 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19998 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19999 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20000 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20001 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20002 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20003 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20004 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20005 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20006 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20007 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20008 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20009 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20010 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20011 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20012 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20013 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20014 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20015 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20016 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20017 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20018 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20019 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20020 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20021 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20022 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20023 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20024 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20025 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20026 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20027 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20028 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20029 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20030 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20031 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20032 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20033 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
20034 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20035 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20036 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20037 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20038 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20039 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20040 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20041 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20042 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20043 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20044 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20045 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20046 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20047 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20048 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20049 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20050 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20051 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20052 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20053 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20054 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20055 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20056 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20057 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20058 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20059 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20060 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20061 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20062 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20063 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20064 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20065 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20066 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20067 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20068 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20069 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20070 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20071 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20072 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20073 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20074 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20075 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20076 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20077 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20078 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20079 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20080 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20081 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20082 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20083 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20084 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20085 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20086 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20087 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20088 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20089 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20090 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20091 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20092 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20093 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20094 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20095 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20096 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20097 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20098 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20099 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20100 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20101 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20102 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20103 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20104 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20105 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20106 LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
20107 old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20108 compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
20109 GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
20110 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20111 lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
20112 lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20113 lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
20114 lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
20115 archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
20116 enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
20117 export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20118 whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20119 compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
20120 old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20121 old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20122 archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20123 archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20124 module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20125 module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20126 with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20127 allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20128 no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20129 hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20130 hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20131 hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
20132 hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
20133 hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
20134 hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
20135 hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
20136 hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20137 inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
20138 link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
20139 fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20140 always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
20141 export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20142 exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20143 include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20144 prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20145 file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20146 hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
20147 predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20148 postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20149 predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20150 postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20151 compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20153 LTCC='$LTCC'
20154 LTCFLAGS='$LTCFLAGS'
20155 compiler='$compiler_DEFAULT'
20157 # Quote evaled strings.
20158 for var in SED \
20159 GREP \
20160 EGREP \
20161 FGREP \
20162 LD \
20163 NM \
20164 LN_S \
20165 lt_SP2NL \
20166 lt_NL2SP \
20167 reload_flag \
20168 deplibs_check_method \
20169 file_magic_cmd \
20170 AR \
20171 AR_FLAGS \
20172 STRIP \
20173 RANLIB \
20174 CC \
20175 CFLAGS \
20176 compiler \
20177 lt_cv_sys_global_symbol_pipe \
20178 lt_cv_sys_global_symbol_to_cdecl \
20179 lt_cv_sys_global_symbol_to_c_name_address \
20180 SHELL \
20181 ECHO \
20182 lt_prog_compiler_no_builtin_flag \
20183 lt_prog_compiler_wl \
20184 lt_prog_compiler_pic \
20185 lt_prog_compiler_static \
20186 lt_cv_prog_compiler_c_o \
20187 need_locks \
20188 shrext_cmds \
20189 export_dynamic_flag_spec \
20190 whole_archive_flag_spec \
20191 compiler_needs_object \
20192 with_gnu_ld \
20193 allow_undefined_flag \
20194 no_undefined_flag \
20195 hardcode_libdir_flag_spec \
20196 hardcode_libdir_flag_spec_ld \
20197 hardcode_libdir_separator \
20198 fix_srcfile_path \
20199 exclude_expsyms \
20200 include_expsyms \
20201 file_list_spec \
20202 variables_saved_for_relink \
20203 libname_spec \
20204 library_names_spec \
20205 soname_spec \
20206 finish_eval \
20207 old_striplib \
20208 striplib \
20209 predep_objects \
20210 postdep_objects \
20211 predeps \
20212 postdeps \
20213 compiler_lib_search_path \
20214 LD_FC \
20215 compiler_FC \
20216 lt_prog_compiler_no_builtin_flag_FC \
20217 lt_prog_compiler_wl_FC \
20218 lt_prog_compiler_pic_FC \
20219 lt_prog_compiler_static_FC \
20220 lt_cv_prog_compiler_c_o_FC \
20221 export_dynamic_flag_spec_FC \
20222 whole_archive_flag_spec_FC \
20223 compiler_needs_object_FC \
20224 with_gnu_ld_FC \
20225 allow_undefined_flag_FC \
20226 no_undefined_flag_FC \
20227 hardcode_libdir_flag_spec_FC \
20228 hardcode_libdir_flag_spec_ld_FC \
20229 hardcode_libdir_separator_FC \
20230 fix_srcfile_path_FC \
20231 exclude_expsyms_FC \
20232 include_expsyms_FC \
20233 file_list_spec_FC \
20234 predep_objects_FC \
20235 postdep_objects_FC \
20236 predeps_FC \
20237 postdeps_FC \
20238 compiler_lib_search_path_FC; do
20239 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20240 *[\\\\\\\`\\"\\\$]*)
20241 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20244 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20246 esac
20247 done
20249 # Double-quote double-evaled strings.
20250 for var in reload_cmds \
20251 old_postinstall_cmds \
20252 old_postuninstall_cmds \
20253 old_archive_cmds \
20254 extract_expsyms_cmds \
20255 old_archive_from_new_cmds \
20256 old_archive_from_expsyms_cmds \
20257 archive_cmds \
20258 archive_expsym_cmds \
20259 module_cmds \
20260 module_expsym_cmds \
20261 export_symbols_cmds \
20262 prelink_cmds \
20263 postinstall_cmds \
20264 postuninstall_cmds \
20265 finish_cmds \
20266 sys_lib_search_path_spec \
20267 sys_lib_dlsearch_path_spec \
20268 old_archive_cmds_FC \
20269 old_archive_from_new_cmds_FC \
20270 old_archive_from_expsyms_cmds_FC \
20271 archive_cmds_FC \
20272 archive_expsym_cmds_FC \
20273 module_cmds_FC \
20274 module_expsym_cmds_FC \
20275 export_symbols_cmds_FC \
20276 prelink_cmds_FC; do
20277 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20278 *[\\\\\\\`\\"\\\$]*)
20279 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20282 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20284 esac
20285 done
20287 # Fix-up fallback echo if it was mangled by the above quoting rules.
20288 case \$lt_ECHO in
20289 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20291 esac
20293 ac_aux_dir='$ac_aux_dir'
20294 xsi_shell='$xsi_shell'
20295 lt_shell_append='$lt_shell_append'
20297 # See if we are running on zsh, and set the options which allow our
20298 # commands through without removal of \ escapes INIT.
20299 if test -n "\${ZSH_VERSION+set}" ; then
20300 setopt NO_GLOB_SUBST
20304 PACKAGE='$PACKAGE'
20305 VERSION='$VERSION'
20306 TIMESTAMP='$TIMESTAMP'
20307 RM='$RM'
20308 ofile='$ofile'
20315 GCC="$GCC"
20316 CC="$CC"
20317 acx_cv_header_stdint="$acx_cv_header_stdint"
20318 acx_cv_type_int8_t="$acx_cv_type_int8_t"
20319 acx_cv_type_int16_t="$acx_cv_type_int16_t"
20320 acx_cv_type_int32_t="$acx_cv_type_int32_t"
20321 acx_cv_type_int64_t="$acx_cv_type_int64_t"
20322 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
20323 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
20324 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
20325 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20326 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20327 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
20328 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20329 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20330 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
20333 _ACEOF
20337 cat >>$CONFIG_STATUS <<\_ACEOF
20338 for ac_config_target in $ac_config_targets
20340 case "$ac_config_target" in
20341 # Handling of arguments.
20342 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
20343 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
20344 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
20345 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
20346 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20347 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20348 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
20349 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20350 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20351 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20352 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
20353 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20354 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20355 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20356 { (exit 1); exit 1; }; };;
20357 esac
20358 done
20360 # If the user did not use the arguments to specify the items to instantiate,
20361 # then the envvar interface is used. Set only those that are not.
20362 # We use the long form for the default assignment because of an extremely
20363 # bizarre bug on SunOS 4.1.3.
20364 if $ac_need_defaults; then
20365 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20366 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20367 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20370 # Have a temporary directory for convenience. Make it in the build tree
20371 # simply because there is no reason to put it here, and in addition,
20372 # creating and moving files from /tmp can sometimes cause problems.
20373 # Create a temporary directory, and hook for its removal unless debugging.
20374 $debug ||
20376 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20377 trap '{ (exit 1); exit 1; }' 1 2 13 15
20380 # Create a (secure) tmp directory for tmp files.
20383 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20384 test -n "$tmp" && test -d "$tmp"
20385 } ||
20387 tmp=./confstat$$-$RANDOM
20388 (umask 077 && mkdir $tmp)
20389 } ||
20391 echo "$me: cannot create a temporary directory in ." >&2
20392 { (exit 1); exit 1; }
20395 _ACEOF
20397 cat >>$CONFIG_STATUS <<_ACEOF
20400 # CONFIG_FILES section.
20403 # No need to generate the scripts if there are no CONFIG_FILES.
20404 # This happens for instance when ./config.status config.h
20405 if test -n "\$CONFIG_FILES"; then
20406 # Protect against being on the right side of a sed subst in config.status.
20407 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20408 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20409 s,@SHELL@,$SHELL,;t t
20410 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20411 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20412 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20413 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20414 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20415 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20416 s,@exec_prefix@,$exec_prefix,;t t
20417 s,@prefix@,$prefix,;t t
20418 s,@program_transform_name@,$program_transform_name,;t t
20419 s,@bindir@,$bindir,;t t
20420 s,@sbindir@,$sbindir,;t t
20421 s,@libexecdir@,$libexecdir,;t t
20422 s,@datadir@,$datadir,;t t
20423 s,@sysconfdir@,$sysconfdir,;t t
20424 s,@sharedstatedir@,$sharedstatedir,;t t
20425 s,@localstatedir@,$localstatedir,;t t
20426 s,@libdir@,$libdir,;t t
20427 s,@includedir@,$includedir,;t t
20428 s,@oldincludedir@,$oldincludedir,;t t
20429 s,@infodir@,$infodir,;t t
20430 s,@mandir@,$mandir,;t t
20431 s,@build_alias@,$build_alias,;t t
20432 s,@host_alias@,$host_alias,;t t
20433 s,@target_alias@,$target_alias,;t t
20434 s,@DEFS@,$DEFS,;t t
20435 s,@ECHO_C@,$ECHO_C,;t t
20436 s,@ECHO_N@,$ECHO_N,;t t
20437 s,@ECHO_T@,$ECHO_T,;t t
20438 s,@LIBS@,$LIBS,;t t
20439 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
20440 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
20441 s,@build@,$build,;t t
20442 s,@build_cpu@,$build_cpu,;t t
20443 s,@build_vendor@,$build_vendor,;t t
20444 s,@build_os@,$build_os,;t t
20445 s,@host@,$host,;t t
20446 s,@host_cpu@,$host_cpu,;t t
20447 s,@host_vendor@,$host_vendor,;t t
20448 s,@host_os@,$host_os,;t t
20449 s,@target@,$target,;t t
20450 s,@target_cpu@,$target_cpu,;t t
20451 s,@target_vendor@,$target_vendor,;t t
20452 s,@target_os@,$target_os,;t t
20453 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20454 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20455 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20456 s,@CYGPATH_W@,$CYGPATH_W,;t t
20457 s,@PACKAGE@,$PACKAGE,;t t
20458 s,@VERSION@,$VERSION,;t t
20459 s,@ACLOCAL@,$ACLOCAL,;t t
20460 s,@AUTOCONF@,$AUTOCONF,;t t
20461 s,@AUTOMAKE@,$AUTOMAKE,;t t
20462 s,@AUTOHEADER@,$AUTOHEADER,;t t
20463 s,@MAKEINFO@,$MAKEINFO,;t t
20464 s,@install_sh@,$install_sh,;t t
20465 s,@STRIP@,$STRIP,;t t
20466 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20467 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20468 s,@mkdir_p@,$mkdir_p,;t t
20469 s,@AWK@,$AWK,;t t
20470 s,@SET_MAKE@,$SET_MAKE,;t t
20471 s,@am__leading_dot@,$am__leading_dot,;t t
20472 s,@AMTAR@,$AMTAR,;t t
20473 s,@am__tar@,$am__tar,;t t
20474 s,@am__untar@,$am__untar,;t t
20475 s,@multi_basedir@,$multi_basedir,;t t
20476 s,@toolexecdir@,$toolexecdir,;t t
20477 s,@toolexeclibdir@,$toolexeclibdir,;t t
20478 s,@CC@,$CC,;t t
20479 s,@ac_ct_CC@,$ac_ct_CC,;t t
20480 s,@EXEEXT@,$EXEEXT,;t t
20481 s,@OBJEXT@,$OBJEXT,;t t
20482 s,@DEPDIR@,$DEPDIR,;t t
20483 s,@am__include@,$am__include,;t t
20484 s,@am__quote@,$am__quote,;t t
20485 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20486 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20487 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20488 s,@CCDEPMODE@,$CCDEPMODE,;t t
20489 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20490 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20491 s,@CFLAGS@,$CFLAGS,;t t
20492 s,@AR@,$AR,;t t
20493 s,@ac_ct_AR@,$ac_ct_AR,;t t
20494 s,@RANLIB@,$RANLIB,;t t
20495 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20496 s,@PERL@,$PERL,;t t
20497 s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
20498 s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
20499 s,@LIBTOOL@,$LIBTOOL,;t t
20500 s,@SED@,$SED,;t t
20501 s,@EGREP@,$EGREP,;t t
20502 s,@FGREP@,$FGREP,;t t
20503 s,@GREP@,$GREP,;t t
20504 s,@LD@,$LD,;t t
20505 s,@DUMPBIN@,$DUMPBIN,;t t
20506 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
20507 s,@NM@,$NM,;t t
20508 s,@LN_S@,$LN_S,;t t
20509 s,@lt_ECHO@,$lt_ECHO,;t t
20510 s,@CPP@,$CPP,;t t
20511 s,@CPPFLAGS@,$CPPFLAGS,;t t
20512 s,@enable_shared@,$enable_shared,;t t
20513 s,@enable_static@,$enable_static,;t t
20514 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20515 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20516 s,@MAINT@,$MAINT,;t t
20517 s,@FC@,$FC,;t t
20518 s,@FCFLAGS@,$FCFLAGS,;t t
20519 s,@LDFLAGS@,$LDFLAGS,;t t
20520 s,@ac_ct_FC@,$ac_ct_FC,;t t
20521 s,@libtool_VERSION@,$libtool_VERSION,;t t
20522 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
20523 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
20524 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
20525 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
20526 s,@config_path@,$config_path,;t t
20527 s,@XCFLAGS@,$XCFLAGS,;t t
20528 s,@XLDFLAGS@,$XLDFLAGS,;t t
20529 s,@link_gomp@,$link_gomp,;t t
20530 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
20531 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
20532 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
20533 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
20534 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
20535 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
20536 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
20537 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
20538 s,@LIBOBJS@,$LIBOBJS,;t t
20539 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20540 CEOF
20542 _ACEOF
20544 cat >>$CONFIG_STATUS <<\_ACEOF
20545 # Split the substitutions into bite-sized pieces for seds with
20546 # small command number limits, like on Digital OSF/1 and HP-UX.
20547 ac_max_sed_lines=48
20548 ac_sed_frag=1 # Number of current file.
20549 ac_beg=1 # First line for current file.
20550 ac_end=$ac_max_sed_lines # Line after last line for current file.
20551 ac_more_lines=:
20552 ac_sed_cmds=
20553 while $ac_more_lines; do
20554 if test $ac_beg -gt 1; then
20555 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20556 else
20557 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20559 if test ! -s $tmp/subs.frag; then
20560 ac_more_lines=false
20561 else
20562 # The purpose of the label and of the branching condition is to
20563 # speed up the sed processing (if there are no `@' at all, there
20564 # is no need to browse any of the substitutions).
20565 # These are the two extra sed commands mentioned above.
20566 (echo ':t
20567 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20568 if test -z "$ac_sed_cmds"; then
20569 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20570 else
20571 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20573 ac_sed_frag=`expr $ac_sed_frag + 1`
20574 ac_beg=$ac_end
20575 ac_end=`expr $ac_end + $ac_max_sed_lines`
20577 done
20578 if test -z "$ac_sed_cmds"; then
20579 ac_sed_cmds=cat
20581 fi # test -n "$CONFIG_FILES"
20583 _ACEOF
20584 cat >>$CONFIG_STATUS <<\_ACEOF
20585 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20586 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20587 case $ac_file in
20588 - | *:- | *:-:* ) # input from stdin
20589 cat >$tmp/stdin
20590 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20591 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20592 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20593 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20594 * ) ac_file_in=$ac_file.in ;;
20595 esac
20597 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20598 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20599 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20600 X"$ac_file" : 'X\(//\)[^/]' \| \
20601 X"$ac_file" : 'X\(//\)$' \| \
20602 X"$ac_file" : 'X\(/\)' \| \
20603 . : '\(.\)' 2>/dev/null ||
20604 echo X"$ac_file" |
20605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20607 /^X\(\/\/\)$/{ s//\1/; q; }
20608 /^X\(\/\).*/{ s//\1/; q; }
20609 s/.*/./; q'`
20610 { if $as_mkdir_p; then
20611 mkdir -p "$ac_dir"
20612 else
20613 as_dir="$ac_dir"
20614 as_dirs=
20615 while test ! -d "$as_dir"; do
20616 as_dirs="$as_dir $as_dirs"
20617 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20618 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20619 X"$as_dir" : 'X\(//\)[^/]' \| \
20620 X"$as_dir" : 'X\(//\)$' \| \
20621 X"$as_dir" : 'X\(/\)' \| \
20622 . : '\(.\)' 2>/dev/null ||
20623 echo X"$as_dir" |
20624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20625 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20626 /^X\(\/\/\)$/{ s//\1/; q; }
20627 /^X\(\/\).*/{ s//\1/; q; }
20628 s/.*/./; q'`
20629 done
20630 test ! -n "$as_dirs" || mkdir $as_dirs
20631 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20632 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20633 { (exit 1); exit 1; }; }; }
20635 ac_builddir=.
20637 if test "$ac_dir" != .; then
20638 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20639 # A "../" for each directory in $ac_dir_suffix.
20640 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20641 else
20642 ac_dir_suffix= ac_top_builddir=
20645 case $srcdir in
20646 .) # No --srcdir option. We are building in place.
20647 ac_srcdir=.
20648 if test -z "$ac_top_builddir"; then
20649 ac_top_srcdir=.
20650 else
20651 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20652 fi ;;
20653 [\\/]* | ?:[\\/]* ) # Absolute path.
20654 ac_srcdir=$srcdir$ac_dir_suffix;
20655 ac_top_srcdir=$srcdir ;;
20656 *) # Relative path.
20657 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20658 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20659 esac
20661 # Do not use `cd foo && pwd` to compute absolute paths, because
20662 # the directories may not exist.
20663 case `pwd` in
20664 .) ac_abs_builddir="$ac_dir";;
20666 case "$ac_dir" in
20667 .) ac_abs_builddir=`pwd`;;
20668 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20669 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20670 esac;;
20671 esac
20672 case $ac_abs_builddir in
20673 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20675 case ${ac_top_builddir}. in
20676 .) ac_abs_top_builddir=$ac_abs_builddir;;
20677 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20678 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20679 esac;;
20680 esac
20681 case $ac_abs_builddir in
20682 .) ac_abs_srcdir=$ac_srcdir;;
20684 case $ac_srcdir in
20685 .) ac_abs_srcdir=$ac_abs_builddir;;
20686 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20687 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20688 esac;;
20689 esac
20690 case $ac_abs_builddir in
20691 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20693 case $ac_top_srcdir in
20694 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20695 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20696 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20697 esac;;
20698 esac
20701 case $INSTALL in
20702 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20703 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20704 esac
20706 if test x"$ac_file" != x-; then
20707 { echo "$as_me:$LINENO: creating $ac_file" >&5
20708 echo "$as_me: creating $ac_file" >&6;}
20709 rm -f "$ac_file"
20711 # Let's still pretend it is `configure' which instantiates (i.e., don't
20712 # use $as_me), people would be surprised to read:
20713 # /* config.h. Generated by config.status. */
20714 if test x"$ac_file" = x-; then
20715 configure_input=
20716 else
20717 configure_input="$ac_file. "
20719 configure_input=$configure_input"Generated from `echo $ac_file_in |
20720 sed 's,.*/,,'` by configure."
20722 # First look for the input files in the build tree, otherwise in the
20723 # src tree.
20724 ac_file_inputs=`IFS=:
20725 for f in $ac_file_in; do
20726 case $f in
20727 -) echo $tmp/stdin ;;
20728 [\\/$]*)
20729 # Absolute (can't be DOS-style, as IFS=:)
20730 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20731 echo "$as_me: error: cannot find input file: $f" >&2;}
20732 { (exit 1); exit 1; }; }
20733 echo "$f";;
20734 *) # Relative
20735 if test -f "$f"; then
20736 # Build tree
20737 echo "$f"
20738 elif test -f "$srcdir/$f"; then
20739 # Source tree
20740 echo "$srcdir/$f"
20741 else
20742 # /dev/null tree
20743 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20744 echo "$as_me: error: cannot find input file: $f" >&2;}
20745 { (exit 1); exit 1; }; }
20746 fi;;
20747 esac
20748 done` || { (exit 1); exit 1; }
20749 _ACEOF
20750 cat >>$CONFIG_STATUS <<_ACEOF
20751 sed "$ac_vpsub
20752 $extrasub
20753 _ACEOF
20754 cat >>$CONFIG_STATUS <<\_ACEOF
20756 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20757 s,@configure_input@,$configure_input,;t t
20758 s,@srcdir@,$ac_srcdir,;t t
20759 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20760 s,@top_srcdir@,$ac_top_srcdir,;t t
20761 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20762 s,@builddir@,$ac_builddir,;t t
20763 s,@abs_builddir@,$ac_abs_builddir,;t t
20764 s,@top_builddir@,$ac_top_builddir,;t t
20765 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20766 s,@INSTALL@,$ac_INSTALL,;t t
20767 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20768 rm -f $tmp/stdin
20769 if test x"$ac_file" != x-; then
20770 mv $tmp/out $ac_file
20771 else
20772 cat $tmp/out
20773 rm -f $tmp/out
20776 done
20777 _ACEOF
20778 cat >>$CONFIG_STATUS <<\_ACEOF
20781 # CONFIG_HEADER section.
20784 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20785 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20787 # ac_d sets the value in "#define NAME VALUE" lines.
20788 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20789 ac_dB='[ ].*$,\1#\2'
20790 ac_dC=' '
20791 ac_dD=',;t'
20792 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20793 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20794 ac_uB='$,\1#\2define\3'
20795 ac_uC=' '
20796 ac_uD=',;t'
20798 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20799 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20800 case $ac_file in
20801 - | *:- | *:-:* ) # input from stdin
20802 cat >$tmp/stdin
20803 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20804 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20805 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20806 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20807 * ) ac_file_in=$ac_file.in ;;
20808 esac
20810 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20811 echo "$as_me: creating $ac_file" >&6;}
20813 # First look for the input files in the build tree, otherwise in the
20814 # src tree.
20815 ac_file_inputs=`IFS=:
20816 for f in $ac_file_in; do
20817 case $f in
20818 -) echo $tmp/stdin ;;
20819 [\\/$]*)
20820 # Absolute (can't be DOS-style, as IFS=:)
20821 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20822 echo "$as_me: error: cannot find input file: $f" >&2;}
20823 { (exit 1); exit 1; }; }
20824 # Do quote $f, to prevent DOS paths from being IFS'd.
20825 echo "$f";;
20826 *) # Relative
20827 if test -f "$f"; then
20828 # Build tree
20829 echo "$f"
20830 elif test -f "$srcdir/$f"; then
20831 # Source tree
20832 echo "$srcdir/$f"
20833 else
20834 # /dev/null tree
20835 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20836 echo "$as_me: error: cannot find input file: $f" >&2;}
20837 { (exit 1); exit 1; }; }
20838 fi;;
20839 esac
20840 done` || { (exit 1); exit 1; }
20841 # Remove the trailing spaces.
20842 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20844 _ACEOF
20846 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20847 # `conftest.undefs', that substitutes the proper values into
20848 # config.h.in to produce config.h. The first handles `#define'
20849 # templates, and the second `#undef' templates.
20850 # And first: Protect against being on the right side of a sed subst in
20851 # config.status. Protect against being in an unquoted here document
20852 # in config.status.
20853 rm -f conftest.defines conftest.undefs
20854 # Using a here document instead of a string reduces the quoting nightmare.
20855 # Putting comments in sed scripts is not portable.
20857 # `end' is used to avoid that the second main sed command (meant for
20858 # 0-ary CPP macros) applies to n-ary macro definitions.
20859 # See the Autoconf documentation for `clear'.
20860 cat >confdef2sed.sed <<\_ACEOF
20861 s/[\\&,]/\\&/g
20862 s,[\\$`],\\&,g
20863 t clear
20864 : clear
20865 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20866 t end
20867 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20868 : end
20869 _ACEOF
20870 # If some macros were called several times there might be several times
20871 # the same #defines, which is useless. Nevertheless, we may not want to
20872 # sort them, since we want the *last* AC-DEFINE to be honored.
20873 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20874 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20875 rm -f confdef2sed.sed
20877 # This sed command replaces #undef with comments. This is necessary, for
20878 # example, in the case of _POSIX_SOURCE, which is predefined and required
20879 # on some systems where configure will not decide to define it.
20880 cat >>conftest.undefs <<\_ACEOF
20881 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20882 _ACEOF
20884 # Break up conftest.defines because some shells have a limit on the size
20885 # of here documents, and old seds have small limits too (100 cmds).
20886 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20887 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20888 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20889 echo ' :' >>$CONFIG_STATUS
20890 rm -f conftest.tail
20891 while grep . conftest.defines >/dev/null
20893 # Write a limited-size here document to $tmp/defines.sed.
20894 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20895 # Speed up: don't consider the non `#define' lines.
20896 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20897 # Work around the forget-to-reset-the-flag bug.
20898 echo 't clr' >>$CONFIG_STATUS
20899 echo ': clr' >>$CONFIG_STATUS
20900 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20901 echo 'CEOF
20902 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20903 rm -f $tmp/in
20904 mv $tmp/out $tmp/in
20905 ' >>$CONFIG_STATUS
20906 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20907 rm -f conftest.defines
20908 mv conftest.tail conftest.defines
20909 done
20910 rm -f conftest.defines
20911 echo ' fi # grep' >>$CONFIG_STATUS
20912 echo >>$CONFIG_STATUS
20914 # Break up conftest.undefs because some shells have a limit on the size
20915 # of here documents, and old seds have small limits too (100 cmds).
20916 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20917 rm -f conftest.tail
20918 while grep . conftest.undefs >/dev/null
20920 # Write a limited-size here document to $tmp/undefs.sed.
20921 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20922 # Speed up: don't consider the non `#undef'
20923 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20924 # Work around the forget-to-reset-the-flag bug.
20925 echo 't clr' >>$CONFIG_STATUS
20926 echo ': clr' >>$CONFIG_STATUS
20927 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20928 echo 'CEOF
20929 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20930 rm -f $tmp/in
20931 mv $tmp/out $tmp/in
20932 ' >>$CONFIG_STATUS
20933 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20934 rm -f conftest.undefs
20935 mv conftest.tail conftest.undefs
20936 done
20937 rm -f conftest.undefs
20939 cat >>$CONFIG_STATUS <<\_ACEOF
20940 # Let's still pretend it is `configure' which instantiates (i.e., don't
20941 # use $as_me), people would be surprised to read:
20942 # /* config.h. Generated by config.status. */
20943 if test x"$ac_file" = x-; then
20944 echo "/* Generated by configure. */" >$tmp/config.h
20945 else
20946 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20948 cat $tmp/in >>$tmp/config.h
20949 rm -f $tmp/in
20950 if test x"$ac_file" != x-; then
20951 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20952 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20953 echo "$as_me: $ac_file is unchanged" >&6;}
20954 else
20955 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20956 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20957 X"$ac_file" : 'X\(//\)[^/]' \| \
20958 X"$ac_file" : 'X\(//\)$' \| \
20959 X"$ac_file" : 'X\(/\)' \| \
20960 . : '\(.\)' 2>/dev/null ||
20961 echo X"$ac_file" |
20962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20963 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20964 /^X\(\/\/\)$/{ s//\1/; q; }
20965 /^X\(\/\).*/{ s//\1/; q; }
20966 s/.*/./; q'`
20967 { if $as_mkdir_p; then
20968 mkdir -p "$ac_dir"
20969 else
20970 as_dir="$ac_dir"
20971 as_dirs=
20972 while test ! -d "$as_dir"; do
20973 as_dirs="$as_dir $as_dirs"
20974 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20975 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20976 X"$as_dir" : 'X\(//\)[^/]' \| \
20977 X"$as_dir" : 'X\(//\)$' \| \
20978 X"$as_dir" : 'X\(/\)' \| \
20979 . : '\(.\)' 2>/dev/null ||
20980 echo X"$as_dir" |
20981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20982 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20983 /^X\(\/\/\)$/{ s//\1/; q; }
20984 /^X\(\/\).*/{ s//\1/; q; }
20985 s/.*/./; q'`
20986 done
20987 test ! -n "$as_dirs" || mkdir $as_dirs
20988 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20989 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20990 { (exit 1); exit 1; }; }; }
20992 rm -f $ac_file
20993 mv $tmp/config.h $ac_file
20995 else
20996 cat $tmp/config.h
20997 rm -f $tmp/config.h
20999 # Compute $ac_file's index in $config_headers.
21000 _am_stamp_count=1
21001 for _am_header in $config_headers :; do
21002 case $_am_header in
21003 $ac_file | $ac_file:* )
21004 break ;;
21006 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21007 esac
21008 done
21009 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21010 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21011 X$ac_file : 'X\(//\)[^/]' \| \
21012 X$ac_file : 'X\(//\)$' \| \
21013 X$ac_file : 'X\(/\)' \| \
21014 . : '\(.\)' 2>/dev/null ||
21015 echo X$ac_file |
21016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21017 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21018 /^X\(\/\/\)$/{ s//\1/; q; }
21019 /^X\(\/\).*/{ s//\1/; q; }
21020 s/.*/./; q'`/stamp-h$_am_stamp_count
21021 done
21022 _ACEOF
21023 cat >>$CONFIG_STATUS <<\_ACEOF
21026 # CONFIG_COMMANDS section.
21028 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21029 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21030 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21031 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21032 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21033 X"$ac_dest" : 'X\(//\)[^/]' \| \
21034 X"$ac_dest" : 'X\(//\)$' \| \
21035 X"$ac_dest" : 'X\(/\)' \| \
21036 . : '\(.\)' 2>/dev/null ||
21037 echo X"$ac_dest" |
21038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21039 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21040 /^X\(\/\/\)$/{ s//\1/; q; }
21041 /^X\(\/\).*/{ s//\1/; q; }
21042 s/.*/./; q'`
21043 { if $as_mkdir_p; then
21044 mkdir -p "$ac_dir"
21045 else
21046 as_dir="$ac_dir"
21047 as_dirs=
21048 while test ! -d "$as_dir"; do
21049 as_dirs="$as_dir $as_dirs"
21050 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21052 X"$as_dir" : 'X\(//\)[^/]' \| \
21053 X"$as_dir" : 'X\(//\)$' \| \
21054 X"$as_dir" : 'X\(/\)' \| \
21055 . : '\(.\)' 2>/dev/null ||
21056 echo X"$as_dir" |
21057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21058 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21059 /^X\(\/\/\)$/{ s//\1/; q; }
21060 /^X\(\/\).*/{ s//\1/; q; }
21061 s/.*/./; q'`
21062 done
21063 test ! -n "$as_dirs" || mkdir $as_dirs
21064 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21065 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21066 { (exit 1); exit 1; }; }; }
21068 ac_builddir=.
21070 if test "$ac_dir" != .; then
21071 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21072 # A "../" for each directory in $ac_dir_suffix.
21073 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21074 else
21075 ac_dir_suffix= ac_top_builddir=
21078 case $srcdir in
21079 .) # No --srcdir option. We are building in place.
21080 ac_srcdir=.
21081 if test -z "$ac_top_builddir"; then
21082 ac_top_srcdir=.
21083 else
21084 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21085 fi ;;
21086 [\\/]* | ?:[\\/]* ) # Absolute path.
21087 ac_srcdir=$srcdir$ac_dir_suffix;
21088 ac_top_srcdir=$srcdir ;;
21089 *) # Relative path.
21090 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21091 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21092 esac
21094 # Do not use `cd foo && pwd` to compute absolute paths, because
21095 # the directories may not exist.
21096 case `pwd` in
21097 .) ac_abs_builddir="$ac_dir";;
21099 case "$ac_dir" in
21100 .) ac_abs_builddir=`pwd`;;
21101 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21102 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21103 esac;;
21104 esac
21105 case $ac_abs_builddir in
21106 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21108 case ${ac_top_builddir}. in
21109 .) ac_abs_top_builddir=$ac_abs_builddir;;
21110 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21111 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21112 esac;;
21113 esac
21114 case $ac_abs_builddir in
21115 .) ac_abs_srcdir=$ac_srcdir;;
21117 case $ac_srcdir in
21118 .) ac_abs_srcdir=$ac_abs_builddir;;
21119 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21120 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21121 esac;;
21122 esac
21123 case $ac_abs_builddir in
21124 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21126 case $ac_top_srcdir in
21127 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21128 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21129 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21130 esac;;
21131 esac
21134 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21135 echo "$as_me: executing $ac_dest commands" >&6;}
21136 case $ac_dest in
21137 default-1 )
21138 # Only add multilib support code if we just rebuilt the top-level
21139 # Makefile.
21140 case " $CONFIG_FILES " in
21141 *" Makefile "*)
21142 ac_file=Makefile . ${multi_basedir}/config-ml.in
21144 esac ;;
21145 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21146 # Strip MF so we end up with the name of the file.
21147 mf=`echo "$mf" | sed -e 's/:.*$//'`
21148 # Check whether this is an Automake generated Makefile or not.
21149 # We used to match only the files named `Makefile.in', but
21150 # some people rename them; so instead we look at the file content.
21151 # Grep'ing the first line is not enough: some people post-process
21152 # each Makefile.in and add a new line on top of each file to say so.
21153 # So let's grep whole file.
21154 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21155 dirpart=`(dirname "$mf") 2>/dev/null ||
21156 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21157 X"$mf" : 'X\(//\)[^/]' \| \
21158 X"$mf" : 'X\(//\)$' \| \
21159 X"$mf" : 'X\(/\)' \| \
21160 . : '\(.\)' 2>/dev/null ||
21161 echo X"$mf" |
21162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21164 /^X\(\/\/\)$/{ s//\1/; q; }
21165 /^X\(\/\).*/{ s//\1/; q; }
21166 s/.*/./; q'`
21167 else
21168 continue
21170 # Extract the definition of DEPDIR, am__include, and am__quote
21171 # from the Makefile without running `make'.
21172 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21173 test -z "$DEPDIR" && continue
21174 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21175 test -z "am__include" && continue
21176 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21177 # When using ansi2knr, U may be empty or an underscore; expand it
21178 U=`sed -n 's/^U = //p' < "$mf"`
21179 # Find all dependency output files, they are included files with
21180 # $(DEPDIR) in their names. We invoke sed twice because it is the
21181 # simplest approach to changing $(DEPDIR) to its actual value in the
21182 # expansion.
21183 for file in `sed -n "
21184 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21185 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21186 # Make sure the directory exists.
21187 test -f "$dirpart/$file" && continue
21188 fdir=`(dirname "$file") 2>/dev/null ||
21189 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21190 X"$file" : 'X\(//\)[^/]' \| \
21191 X"$file" : 'X\(//\)$' \| \
21192 X"$file" : 'X\(/\)' \| \
21193 . : '\(.\)' 2>/dev/null ||
21194 echo X"$file" |
21195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21197 /^X\(\/\/\)$/{ s//\1/; q; }
21198 /^X\(\/\).*/{ s//\1/; q; }
21199 s/.*/./; q'`
21200 { if $as_mkdir_p; then
21201 mkdir -p $dirpart/$fdir
21202 else
21203 as_dir=$dirpart/$fdir
21204 as_dirs=
21205 while test ! -d "$as_dir"; do
21206 as_dirs="$as_dir $as_dirs"
21207 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21209 X"$as_dir" : 'X\(//\)[^/]' \| \
21210 X"$as_dir" : 'X\(//\)$' \| \
21211 X"$as_dir" : 'X\(/\)' \| \
21212 . : '\(.\)' 2>/dev/null ||
21213 echo X"$as_dir" |
21214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21215 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21216 /^X\(\/\/\)$/{ s//\1/; q; }
21217 /^X\(\/\).*/{ s//\1/; q; }
21218 s/.*/./; q'`
21219 done
21220 test ! -n "$as_dirs" || mkdir $as_dirs
21221 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21222 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21223 { (exit 1); exit 1; }; }; }
21225 # echo "creating $dirpart/$file"
21226 echo '# dummy' > "$dirpart/$file"
21227 done
21228 done
21230 libtool )
21232 # See if we are running on zsh, and set the options which allow our
21233 # commands through without removal of \ escapes.
21234 if test -n "${ZSH_VERSION+set}" ; then
21235 setopt NO_GLOB_SUBST
21238 cfgfile="${ofile}T"
21239 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21240 $RM "$cfgfile"
21242 cat <<_LT_EOF >> "$cfgfile"
21243 #! $SHELL
21245 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21246 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
21247 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21248 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21250 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21251 # 2006, 2007 Free Software Foundation, Inc.
21253 # This file is part of GNU Libtool:
21254 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
21256 # This program is free software; you can redistribute it and/or modify
21257 # it under the terms of the GNU General Public License as published by
21258 # the Free Software Foundation; either version 2 of the License, or
21259 # (at your option) any later version.
21261 # This program is distributed in the hope that it will be useful, but
21262 # WITHOUT ANY WARRANTY; without even the implied warranty of
21263 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21264 # General Public License for more details.
21266 # You should have received a copy of the GNU General Public License
21267 # along with this program; if not, a copy can be downloaded from
21268 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
21269 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21270 # MA 02110-1301, USA.
21272 # As a special exception to the GNU General Public License, if you
21273 # distribute this file as part of a program that contains a
21274 # configuration script generated by Autoconf, you may include it under
21275 # the same distribution terms that you use for the rest of that program.
21278 # The names of the tagged configurations supported by this script.
21279 available_tags="FC "
21281 # ### BEGIN LIBTOOL CONFIG
21283 # Which release of libtool.m4 was used?
21284 macro_version=$macro_version
21285 macro_revision=$macro_revision
21287 # Whether or not to build shared libraries.
21288 build_libtool_libs=$enable_shared
21290 # Whether or not to build static libraries.
21291 build_old_libs=$enable_static
21293 # What type of objects to build.
21294 pic_mode=$pic_mode
21296 # Whether or not to optimize for fast installation.
21297 fast_install=$enable_fast_install
21299 # The host system.
21300 host_alias=$host_alias
21301 host=$host
21302 host_os=$host_os
21304 # The build system.
21305 build_alias=$build_alias
21306 build=$build
21307 build_os=$build_os
21309 # A sed program that does not truncate output.
21310 SED=$lt_SED
21312 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21313 Xsed="\$SED -e 1s/^X//"
21315 # A grep program that handles long lines.
21316 GREP=$lt_GREP
21318 # An ERE matcher.
21319 EGREP=$lt_EGREP
21321 # A literal string matcher.
21322 FGREP=$lt_FGREP
21324 # A BSD- or MS-compatible name lister.
21325 NM=$lt_NM
21327 # Whether we need soft or hard links.
21328 LN_S=$lt_LN_S
21330 # What is the maximum length of a command?
21331 max_cmd_len=$max_cmd_len
21333 # Object file suffix (normally "o").
21334 objext=$ac_objext
21336 # Executable file suffix (normally "").
21337 exeext=$exeext
21339 # whether the shell understands "unset".
21340 lt_unset=$lt_unset
21342 # turn spaces into newlines.
21343 SP2NL=$lt_lt_SP2NL
21345 # turn newlines into spaces.
21346 NL2SP=$lt_lt_NL2SP
21348 # How to create reloadable object files.
21349 reload_flag=$lt_reload_flag
21350 reload_cmds=$lt_reload_cmds
21352 # Method to check whether dependent libraries are shared objects.
21353 deplibs_check_method=$lt_deplibs_check_method
21355 # Command to use when deplibs_check_method == "file_magic".
21356 file_magic_cmd=$lt_file_magic_cmd
21358 # The archiver.
21359 AR=$lt_AR
21360 AR_FLAGS=$lt_AR_FLAGS
21362 # A symbol stripping program.
21363 STRIP=$lt_STRIP
21365 # Commands used to install an old-style archive.
21366 RANLIB=$lt_RANLIB
21367 old_postinstall_cmds=$lt_old_postinstall_cmds
21368 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21370 # A C compiler.
21371 LTCC=$lt_CC
21373 # LTCC compiler flags.
21374 LTCFLAGS=$lt_CFLAGS
21376 # Take the output of nm and produce a listing of raw symbols and C names.
21377 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21379 # Transform the output of nm in a proper C declaration.
21380 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21382 # Transform the output of nm in a C name address pair.
21383 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21385 # The name of the directory that contains temporary libtool files.
21386 objdir=$objdir
21388 # Shell to use when invoking shell scripts.
21389 SHELL=$lt_SHELL
21391 # An echo program that does not interpret backslashes.
21392 ECHO=$lt_ECHO
21394 # Used to examine libraries when file_magic_cmd begins with "file".
21395 MAGIC_CMD=$MAGIC_CMD
21397 # Must we lock files when doing compilation?
21398 need_locks=$lt_need_locks
21400 # Old archive suffix (normally "a").
21401 libext=$libext
21403 # Shared library suffix (normally ".so").
21404 shrext_cmds=$lt_shrext_cmds
21406 # The commands to extract the exported symbol list from a shared archive.
21407 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21409 # Variables whose values should be saved in libtool wrapper scripts and
21410 # restored at link time.
21411 variables_saved_for_relink=$lt_variables_saved_for_relink
21413 # Do we need the "lib" prefix for modules?
21414 need_lib_prefix=$need_lib_prefix
21416 # Do we need a version for libraries?
21417 need_version=$need_version
21419 # Library versioning type.
21420 version_type=$version_type
21422 # Shared library runtime path variable.
21423 runpath_var=$runpath_var
21425 # Shared library path variable.
21426 shlibpath_var=$shlibpath_var
21428 # Is shlibpath searched before the hard-coded library search path?
21429 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21431 # Format of library name prefix.
21432 libname_spec=$lt_libname_spec
21434 # List of archive names. First name is the real one, the rest are links.
21435 # The last name is the one that the linker finds with -lNAME
21436 library_names_spec=$lt_library_names_spec
21438 # The coded name of the library, if different from the real name.
21439 soname_spec=$lt_soname_spec
21441 # Command to use after installation of a shared archive.
21442 postinstall_cmds=$lt_postinstall_cmds
21444 # Command to use after uninstallation of a shared archive.
21445 postuninstall_cmds=$lt_postuninstall_cmds
21447 # Commands used to finish a libtool library installation in a directory.
21448 finish_cmds=$lt_finish_cmds
21450 # As "finish_cmds", except a single script fragment to be evaled but
21451 # not shown.
21452 finish_eval=$lt_finish_eval
21454 # Whether we should hardcode library paths into libraries.
21455 hardcode_into_libs=$hardcode_into_libs
21457 # Compile-time system search path for libraries.
21458 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21460 # Run-time system search path for libraries.
21461 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21463 # Whether dlopen is supported.
21464 dlopen_support=$enable_dlopen
21466 # Whether dlopen of programs is supported.
21467 dlopen_self=$enable_dlopen_self
21469 # Whether dlopen of statically linked programs is supported.
21470 dlopen_self_static=$enable_dlopen_self_static
21472 # Commands to strip libraries.
21473 old_striplib=$lt_old_striplib
21474 striplib=$lt_striplib
21477 # The linker used to build libraries.
21478 LD=$lt_LD
21480 # Commands used to build an old-style archive.
21481 old_archive_cmds=$lt_old_archive_cmds
21483 # A language specific compiler.
21484 CC=$lt_compiler
21486 # Is the compiler the GNU compiler?
21487 with_gcc=$GCC
21489 # Compiler flag to turn off builtin functions.
21490 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21492 # How to pass a linker flag through the compiler.
21493 wl=$lt_lt_prog_compiler_wl
21495 # Additional compiler flags for building library objects.
21496 pic_flag=$lt_lt_prog_compiler_pic
21498 # Compiler flag to prevent dynamic linking.
21499 link_static_flag=$lt_lt_prog_compiler_static
21501 # Does compiler simultaneously support -c and -o options?
21502 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21504 # Whether or not to add -lc for building shared libraries.
21505 build_libtool_need_lc=$archive_cmds_need_lc
21507 # Whether or not to disallow shared libs when runtime libs are static.
21508 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21510 # Compiler flag to allow reflexive dlopens.
21511 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21513 # Compiler flag to generate shared objects directly from archives.
21514 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21516 # Whether the compiler copes with passing no objects directly.
21517 compiler_needs_object=$lt_compiler_needs_object
21519 # Create an old-style archive from a shared archive.
21520 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21522 # Create a temporary old-style archive to link instead of a shared archive.
21523 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21525 # Commands used to build a shared archive.
21526 archive_cmds=$lt_archive_cmds
21527 archive_expsym_cmds=$lt_archive_expsym_cmds
21529 # Commands used to build a loadable module if different from building
21530 # a shared archive.
21531 module_cmds=$lt_module_cmds
21532 module_expsym_cmds=$lt_module_expsym_cmds
21534 # Whether we are building with GNU ld or not.
21535 with_gnu_ld=$lt_with_gnu_ld
21537 # Flag that allows shared libraries with undefined symbols to be built.
21538 allow_undefined_flag=$lt_allow_undefined_flag
21540 # Flag that enforces no undefined symbols.
21541 no_undefined_flag=$lt_no_undefined_flag
21543 # Flag to hardcode \$libdir into a binary during linking.
21544 # This must work even if \$libdir does not exist
21545 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21547 # If ld is used when linking, flag to hardcode \$libdir into a binary
21548 # during linking. This must work even if \$libdir does not exist.
21549 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21551 # Whether we need a single "-rpath" flag with a separated argument.
21552 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21554 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21555 # DIR into the resulting binary.
21556 hardcode_direct=$hardcode_direct
21558 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21559 # DIR into the resulting binary and the resulting library dependency is
21560 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21561 # library is relocated.
21562 hardcode_direct_absolute=$hardcode_direct_absolute
21564 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21565 # into the resulting binary.
21566 hardcode_minus_L=$hardcode_minus_L
21568 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21569 # into the resulting binary.
21570 hardcode_shlibpath_var=$hardcode_shlibpath_var
21572 # Set to "yes" if building a shared library automatically hardcodes DIR
21573 # into the library and all subsequent libraries and executables linked
21574 # against it.
21575 hardcode_automatic=$hardcode_automatic
21577 # Set to yes if linker adds runtime paths of dependent libraries
21578 # to runtime path list.
21579 inherit_rpath=$inherit_rpath
21581 # Whether libtool must link a program against all its dependency libraries.
21582 link_all_deplibs=$link_all_deplibs
21584 # Fix the shell variable \$srcfile for the compiler.
21585 fix_srcfile_path=$lt_fix_srcfile_path
21587 # Set to "yes" if exported symbols are required.
21588 always_export_symbols=$always_export_symbols
21590 # The commands to list exported symbols.
21591 export_symbols_cmds=$lt_export_symbols_cmds
21593 # Symbols that should not be listed in the preloaded symbols.
21594 exclude_expsyms=$lt_exclude_expsyms
21596 # Symbols that must always be exported.
21597 include_expsyms=$lt_include_expsyms
21599 # Commands necessary for linking programs (against libraries) with templates.
21600 prelink_cmds=$lt_prelink_cmds
21602 # Specify filename containing input files.
21603 file_list_spec=$lt_file_list_spec
21605 # How to hardcode a shared library path into an executable.
21606 hardcode_action=$hardcode_action
21608 # Dependencies to place before and after the objects being linked to
21609 # create a shared library.
21610 predep_objects=$lt_predep_objects
21611 postdep_objects=$lt_postdep_objects
21612 predeps=$lt_predeps
21613 postdeps=$lt_postdeps
21615 # The library search path used internally by the compiler when linking
21616 # a shared library.
21617 compiler_lib_search_path=$lt_compiler_lib_search_path
21619 # ### END LIBTOOL CONFIG
21621 _LT_EOF
21623 case $host_os in
21624 aix3*)
21625 cat <<\_LT_EOF >> "$cfgfile"
21626 # AIX sometimes has problems with the GCC collect2 program. For some
21627 # reason, if we set the COLLECT_NAMES environment variable, the problems
21628 # vanish in a puff of smoke.
21629 if test "X${COLLECT_NAMES+set}" != Xset; then
21630 COLLECT_NAMES=
21631 export COLLECT_NAMES
21633 _LT_EOF
21635 esac
21638 ltmain="$ac_aux_dir/ltmain.sh"
21641 # We use sed instead of cat because bash on DJGPP gets confused if
21642 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21643 # text mode, it properly converts lines to CR/LF. This bash problem
21644 # is reportedly fixed, but why not run on old versions too?
21645 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21646 || (rm -f "$cfgfile"; exit 1)
21648 case $xsi_shell in
21649 yes)
21650 cat << \_LT_EOF >> "$cfgfile"
21651 # func_dirname file append nondir_replacement
21652 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21653 # otherwise set result to NONDIR_REPLACEMENT.
21654 func_dirname ()
21656 case ${1} in
21657 */*) func_dirname_result="${1%/*}${2}" ;;
21658 * ) func_dirname_result="${3}" ;;
21659 esac
21662 # func_basename file
21663 func_basename ()
21665 func_basename_result="${1##*/}"
21668 # func_stripname prefix suffix name
21669 # strip PREFIX and SUFFIX off of NAME.
21670 # PREFIX and SUFFIX must not contain globbing or regex special
21671 # characters, hashes, percent signs, but SUFFIX may contain a leading
21672 # dot (in which case that matches only a dot).
21673 func_stripname ()
21675 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21676 # positional parameters, so assign one to ordinary parameter first.
21677 func_stripname_result=${3}
21678 func_stripname_result=${func_stripname_result#"${1}"}
21679 func_stripname_result=${func_stripname_result%"${2}"}
21682 # func_opt_split
21683 func_opt_split ()
21685 func_opt_split_opt=${1%%=*}
21686 func_opt_split_arg=${1#*=}
21689 # func_lo2o object
21690 func_lo2o ()
21692 case ${1} in
21693 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21694 *) func_lo2o_result=${1} ;;
21695 esac
21697 _LT_EOF
21699 *) # Bourne compatible functions.
21700 cat << \_LT_EOF >> "$cfgfile"
21701 # func_dirname file append nondir_replacement
21702 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21703 # otherwise set result to NONDIR_REPLACEMENT.
21704 func_dirname ()
21706 # Extract subdirectory from the argument.
21707 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21708 if test "X$func_dirname_result" = "X${1}"; then
21709 func_dirname_result="${3}"
21710 else
21711 func_dirname_result="$func_dirname_result${2}"
21715 # func_basename file
21716 func_basename ()
21718 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21721 # func_stripname prefix suffix name
21722 # strip PREFIX and SUFFIX off of NAME.
21723 # PREFIX and SUFFIX must not contain globbing or regex special
21724 # characters, hashes, percent signs, but SUFFIX may contain a leading
21725 # dot (in which case that matches only a dot).
21726 # func_strip_suffix prefix name
21727 func_stripname ()
21729 case ${2} in
21730 .*) func_stripname_result=`$ECHO "X${3}" \
21731 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21732 *) func_stripname_result=`$ECHO "X${3}" \
21733 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21734 esac
21737 # sed scripts:
21738 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21739 my_sed_long_arg='1s/^-[^=]*=//'
21741 # func_opt_split
21742 func_opt_split ()
21744 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21745 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21748 # func_lo2o object
21749 func_lo2o ()
21751 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21753 _LT_EOF
21754 esac
21756 case $lt_shell_append in
21757 yes)
21758 cat << \_LT_EOF >> "$cfgfile"
21760 # func_append var value
21761 # Append VALUE to the end of shell variable VAR.
21762 func_append ()
21764 eval "$1+=\$2"
21766 _LT_EOF
21769 cat << \_LT_EOF >> "$cfgfile"
21771 # func_append var value
21772 # Append VALUE to the end of shell variable VAR.
21773 func_append ()
21775 eval "$1=\$$1\$2"
21777 _LT_EOF
21779 esac
21782 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21783 || (rm -f "$cfgfile"; exit 1)
21785 mv -f "$cfgfile" "$ofile" ||
21786 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21787 chmod +x "$ofile"
21790 cat <<_LT_EOF >> "$ofile"
21792 # ### BEGIN LIBTOOL TAG CONFIG: FC
21794 # The linker used to build libraries.
21795 LD=$lt_LD_FC
21797 # Commands used to build an old-style archive.
21798 old_archive_cmds=$lt_old_archive_cmds_FC
21800 # A language specific compiler.
21801 CC=$lt_compiler_FC
21803 # Is the compiler the GNU compiler?
21804 with_gcc=$GCC_FC
21806 # Compiler flag to turn off builtin functions.
21807 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
21809 # How to pass a linker flag through the compiler.
21810 wl=$lt_lt_prog_compiler_wl_FC
21812 # Additional compiler flags for building library objects.
21813 pic_flag=$lt_lt_prog_compiler_pic_FC
21815 # Compiler flag to prevent dynamic linking.
21816 link_static_flag=$lt_lt_prog_compiler_static_FC
21818 # Does compiler simultaneously support -c and -o options?
21819 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
21821 # Whether or not to add -lc for building shared libraries.
21822 build_libtool_need_lc=$archive_cmds_need_lc_FC
21824 # Whether or not to disallow shared libs when runtime libs are static.
21825 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
21827 # Compiler flag to allow reflexive dlopens.
21828 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
21830 # Compiler flag to generate shared objects directly from archives.
21831 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
21833 # Whether the compiler copes with passing no objects directly.
21834 compiler_needs_object=$lt_compiler_needs_object_FC
21836 # Create an old-style archive from a shared archive.
21837 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
21839 # Create a temporary old-style archive to link instead of a shared archive.
21840 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
21842 # Commands used to build a shared archive.
21843 archive_cmds=$lt_archive_cmds_FC
21844 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
21846 # Commands used to build a loadable module if different from building
21847 # a shared archive.
21848 module_cmds=$lt_module_cmds_FC
21849 module_expsym_cmds=$lt_module_expsym_cmds_FC
21851 # Whether we are building with GNU ld or not.
21852 with_gnu_ld=$lt_with_gnu_ld_FC
21854 # Flag that allows shared libraries with undefined symbols to be built.
21855 allow_undefined_flag=$lt_allow_undefined_flag_FC
21857 # Flag that enforces no undefined symbols.
21858 no_undefined_flag=$lt_no_undefined_flag_FC
21860 # Flag to hardcode \$libdir into a binary during linking.
21861 # This must work even if \$libdir does not exist
21862 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
21864 # If ld is used when linking, flag to hardcode \$libdir into a binary
21865 # during linking. This must work even if \$libdir does not exist.
21866 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
21868 # Whether we need a single "-rpath" flag with a separated argument.
21869 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
21871 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21872 # DIR into the resulting binary.
21873 hardcode_direct=$hardcode_direct_FC
21875 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21876 # DIR into the resulting binary and the resulting library dependency is
21877 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21878 # library is relocated.
21879 hardcode_direct_absolute=$hardcode_direct_absolute_FC
21881 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21882 # into the resulting binary.
21883 hardcode_minus_L=$hardcode_minus_L_FC
21885 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21886 # into the resulting binary.
21887 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
21889 # Set to "yes" if building a shared library automatically hardcodes DIR
21890 # into the library and all subsequent libraries and executables linked
21891 # against it.
21892 hardcode_automatic=$hardcode_automatic_FC
21894 # Set to yes if linker adds runtime paths of dependent libraries
21895 # to runtime path list.
21896 inherit_rpath=$inherit_rpath_FC
21898 # Whether libtool must link a program against all its dependency libraries.
21899 link_all_deplibs=$link_all_deplibs_FC
21901 # Fix the shell variable \$srcfile for the compiler.
21902 fix_srcfile_path=$lt_fix_srcfile_path_FC
21904 # Set to "yes" if exported symbols are required.
21905 always_export_symbols=$always_export_symbols_FC
21907 # The commands to list exported symbols.
21908 export_symbols_cmds=$lt_export_symbols_cmds_FC
21910 # Symbols that should not be listed in the preloaded symbols.
21911 exclude_expsyms=$lt_exclude_expsyms_FC
21913 # Symbols that must always be exported.
21914 include_expsyms=$lt_include_expsyms_FC
21916 # Commands necessary for linking programs (against libraries) with templates.
21917 prelink_cmds=$lt_prelink_cmds_FC
21919 # Specify filename containing input files.
21920 file_list_spec=$lt_file_list_spec_FC
21922 # How to hardcode a shared library path into an executable.
21923 hardcode_action=$hardcode_action_FC
21925 # Dependencies to place before and after the objects being linked to
21926 # create a shared library.
21927 predep_objects=$lt_predep_objects_FC
21928 postdep_objects=$lt_postdep_objects_FC
21929 predeps=$lt_predeps_FC
21930 postdeps=$lt_postdeps_FC
21932 # The library search path used internally by the compiler when linking
21933 # a shared library.
21934 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
21936 # ### END LIBTOOL TAG CONFIG: FC
21937 _LT_EOF
21940 gstdint.h )
21941 if test "$GCC" = yes; then
21942 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
21943 else
21944 echo "/* generated for $CC */" > tmp-stdint.h
21947 sed 's/^ *//' >> tmp-stdint.h <<EOF
21949 #ifndef GCC_GENERATED_STDINT_H
21950 #define GCC_GENERATED_STDINT_H 1
21952 #include <sys/types.h>
21955 if test "$acx_cv_header_stdint" != stdint.h; then
21956 echo "#include <stddef.h>" >> tmp-stdint.h
21958 if test "$acx_cv_header_stdint" != stddef.h; then
21959 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
21962 sed 's/^ *//' >> tmp-stdint.h <<EOF
21963 /* glibc uses these symbols as guards to prevent redefinitions. */
21964 #ifdef __int8_t_defined
21965 #define _INT8_T
21966 #define _INT16_T
21967 #define _INT32_T
21968 #endif
21969 #ifdef __uint32_t_defined
21970 #define _UINT32_T
21971 #endif
21975 # ----------------- done header, emit basic int types -------------
21976 if test "$acx_cv_header_stdint" = stddef.h; then
21977 sed 's/^ *//' >> tmp-stdint.h <<EOF
21979 #ifndef _UINT8_T
21980 #define _UINT8_T
21981 #ifndef __uint8_t_defined
21982 #define __uint8_t_defined
21983 typedef unsigned $acx_cv_type_int8_t uint8_t;
21984 #endif
21985 #endif
21987 #ifndef _UINT16_T
21988 #define _UINT16_T
21989 #ifndef __uint16_t_defined
21990 #define __uint16_t_defined
21991 typedef unsigned $acx_cv_type_int16_t uint16_t;
21992 #endif
21993 #endif
21995 #ifndef _UINT32_T
21996 #define _UINT32_T
21997 #ifndef __uint32_t_defined
21998 #define __uint32_t_defined
21999 typedef unsigned $acx_cv_type_int32_t uint32_t;
22000 #endif
22001 #endif
22003 #ifndef _INT8_T
22004 #define _INT8_T
22005 #ifndef __int8_t_defined
22006 #define __int8_t_defined
22007 typedef $acx_cv_type_int8_t int8_t;
22008 #endif
22009 #endif
22011 #ifndef _INT16_T
22012 #define _INT16_T
22013 #ifndef __int16_t_defined
22014 #define __int16_t_defined
22015 typedef $acx_cv_type_int16_t int16_t;
22016 #endif
22017 #endif
22019 #ifndef _INT32_T
22020 #define _INT32_T
22021 #ifndef __int32_t_defined
22022 #define __int32_t_defined
22023 typedef $acx_cv_type_int32_t int32_t;
22024 #endif
22025 #endif
22027 elif test "$ac_cv_type_u_int32_t" = yes; then
22028 sed 's/^ *//' >> tmp-stdint.h <<EOF
22030 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22031 #ifndef _INT8_T
22032 #define _INT8_T
22033 #endif
22034 #ifndef _INT16_T
22035 #define _INT16_T
22036 #endif
22037 #ifndef _INT32_T
22038 #define _INT32_T
22039 #endif
22041 #ifndef _UINT8_T
22042 #define _UINT8_T
22043 #ifndef __uint8_t_defined
22044 #define __uint8_t_defined
22045 typedef u_int8_t uint8_t;
22046 #endif
22047 #endif
22049 #ifndef _UINT16_T
22050 #define _UINT16_T
22051 #ifndef __uint16_t_defined
22052 #define __uint16_t_defined
22053 typedef u_int16_t uint16_t;
22054 #endif
22055 #endif
22057 #ifndef _UINT32_T
22058 #define _UINT32_T
22059 #ifndef __uint32_t_defined
22060 #define __uint32_t_defined
22061 typedef u_int32_t uint32_t;
22062 #endif
22063 #endif
22065 else
22066 sed 's/^ *//' >> tmp-stdint.h <<EOF
22068 /* Some systems have guard macros to prevent redefinitions, define them. */
22069 #ifndef _INT8_T
22070 #define _INT8_T
22071 #endif
22072 #ifndef _INT16_T
22073 #define _INT16_T
22074 #endif
22075 #ifndef _INT32_T
22076 #define _INT32_T
22077 #endif
22078 #ifndef _UINT8_T
22079 #define _UINT8_T
22080 #endif
22081 #ifndef _UINT16_T
22082 #define _UINT16_T
22083 #endif
22084 #ifndef _UINT32_T
22085 #define _UINT32_T
22086 #endif
22090 # ------------- done basic int types, emit int64_t types ------------
22091 if test "$ac_cv_type_uint64_t" = yes; then
22092 sed 's/^ *//' >> tmp-stdint.h <<EOF
22094 /* system headers have good uint64_t and int64_t */
22095 #ifndef _INT64_T
22096 #define _INT64_T
22097 #endif
22098 #ifndef _UINT64_T
22099 #define _UINT64_T
22100 #endif
22102 elif test "$ac_cv_type_u_int64_t" = yes; then
22103 sed 's/^ *//' >> tmp-stdint.h <<EOF
22105 /* system headers have an u_int64_t (and int64_t) */
22106 #ifndef _INT64_T
22107 #define _INT64_T
22108 #endif
22109 #ifndef _UINT64_T
22110 #define _UINT64_T
22111 #ifndef __uint64_t_defined
22112 #define __uint64_t_defined
22113 typedef u_int64_t uint64_t;
22114 #endif
22115 #endif
22117 elif test -n "$acx_cv_type_int64_t"; then
22118 sed 's/^ *//' >> tmp-stdint.h <<EOF
22120 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
22121 #ifndef _INT64_T
22122 #define _INT64_T
22123 typedef $acx_cv_type_int64_t int64_t;
22124 #endif
22125 #ifndef _UINT64_T
22126 #define _UINT64_T
22127 #ifndef __uint64_t_defined
22128 #define __uint64_t_defined
22129 typedef unsigned $acx_cv_type_int64_t uint64_t;
22130 #endif
22131 #endif
22133 else
22134 sed 's/^ *//' >> tmp-stdint.h <<EOF
22136 /* some common heuristics for int64_t, using compiler-specific tests */
22137 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
22138 #ifndef _INT64_T
22139 #define _INT64_T
22140 #ifndef __int64_t_defined
22141 typedef long long int64_t;
22142 #endif
22143 #endif
22144 #ifndef _UINT64_T
22145 #define _UINT64_T
22146 typedef unsigned long long uint64_t;
22147 #endif
22149 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
22150 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
22151 does not implement __extension__. But that compiler doesn't define
22152 __GNUC_MINOR__. */
22153 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
22154 # define __extension__
22155 # endif
22157 # ifndef _INT64_T
22158 # define _INT64_T
22159 __extension__ typedef long long int64_t;
22160 # endif
22161 # ifndef _UINT64_T
22162 # define _UINT64_T
22163 __extension__ typedef unsigned long long uint64_t;
22164 # endif
22166 #elif !defined __STRICT_ANSI__
22167 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
22169 # ifndef _INT64_T
22170 # define _INT64_T
22171 typedef __int64 int64_t;
22172 # endif
22173 # ifndef _UINT64_T
22174 # define _UINT64_T
22175 typedef unsigned __int64 uint64_t;
22176 # endif
22177 # endif /* compiler */
22179 #endif /* ANSI version */
22183 # ------------- done int64_t types, emit intptr types ------------
22184 if test "$ac_cv_type_uintptr_t" != yes; then
22185 sed 's/^ *//' >> tmp-stdint.h <<EOF
22187 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
22188 #ifndef __uintptr_t_defined
22189 typedef u$acx_cv_type_intptr_t uintptr_t;
22190 #endif
22191 #ifndef __intptr_t_defined
22192 typedef $acx_cv_type_intptr_t intptr_t;
22193 #endif
22197 # ------------- done intptr types, emit int_least types ------------
22198 if test "$ac_cv_type_int_least32_t" != yes; then
22199 sed 's/^ *//' >> tmp-stdint.h <<EOF
22201 /* Define int_least types */
22202 typedef int8_t int_least8_t;
22203 typedef int16_t int_least16_t;
22204 typedef int32_t int_least32_t;
22205 #ifdef _INT64_T
22206 typedef int64_t int_least64_t;
22207 #endif
22209 typedef uint8_t uint_least8_t;
22210 typedef uint16_t uint_least16_t;
22211 typedef uint32_t uint_least32_t;
22212 #ifdef _UINT64_T
22213 typedef uint64_t uint_least64_t;
22214 #endif
22218 # ------------- done intptr types, emit int_fast types ------------
22219 if test "$ac_cv_type_int_fast32_t" != yes; then
22220 sed 's/^ *//' >> tmp-stdint.h <<EOF
22222 /* Define int_fast types. short is often slow */
22223 typedef int8_t int_fast8_t;
22224 typedef int int_fast16_t;
22225 typedef int32_t int_fast32_t;
22226 #ifdef _INT64_T
22227 typedef int64_t int_fast64_t;
22228 #endif
22230 typedef uint8_t uint_fast8_t;
22231 typedef unsigned int uint_fast16_t;
22232 typedef uint32_t uint_fast32_t;
22233 #ifdef _UINT64_T
22234 typedef uint64_t uint_fast64_t;
22235 #endif
22239 if test "$ac_cv_type_uintmax_t" != yes; then
22240 sed 's/^ *//' >> tmp-stdint.h <<EOF
22242 /* Define intmax based on what we found */
22243 #ifdef _INT64_T
22244 typedef int64_t intmax_t;
22245 #else
22246 typedef long intmax_t;
22247 #endif
22248 #ifdef _UINT64_T
22249 typedef uint64_t uintmax_t;
22250 #else
22251 typedef unsigned long uintmax_t;
22252 #endif
22256 sed 's/^ *//' >> tmp-stdint.h <<EOF
22258 #endif /* GCC_GENERATED_STDINT_H */
22261 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
22262 rm -f tmp-stdint.h
22263 else
22264 mv -f tmp-stdint.h gstdint.h
22268 esac
22269 done
22270 _ACEOF
22272 cat >>$CONFIG_STATUS <<\_ACEOF
22274 { (exit 0); exit 0; }
22275 _ACEOF
22276 chmod +x $CONFIG_STATUS
22277 ac_clean_files=$ac_clean_files_save
22280 # configure is writing to config.log, and then calls config.status.
22281 # config.status does its own redirection, appending to config.log.
22282 # Unfortunately, on DOS this fails, as config.log is still kept open
22283 # by configure, so config.status won't be able to write to it; its
22284 # output is simply discarded. So we exec the FD to /dev/null,
22285 # effectively closing config.log, so it can be properly (re)opened and
22286 # appended to by config.status. When coming back to configure, we
22287 # need to make the FD available again.
22288 if test "$no_create" != yes; then
22289 ac_cs_success=:
22290 ac_config_status_args=
22291 test "$silent" = yes &&
22292 ac_config_status_args="$ac_config_status_args --quiet"
22293 exec 5>/dev/null
22294 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22295 exec 5>>config.log
22296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22297 # would make configure fail if this is the last instruction.
22298 $ac_cs_success || { (exit 1); exit 1; }