2008-04-16 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / libgomp / configure
blob05cb83fb7ecf8abe88e49745e40a348efdfe34b7
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-generated-files-in-srcdir
1007 put copies of generated files in source dir intended
1008 for creating source tarballs for users without
1009 texinfo bison or flex. [default=no]
1010 --enable-multilib build many library versions (default)
1011 --disable-dependency-tracking speeds up one-time build
1012 --enable-dependency-tracking do not reject slow dependency extractors
1013 --enable-shared[=PKGS]
1014 build shared libraries [default=yes]
1015 --enable-static[=PKGS]
1016 build static libraries [default=yes]
1017 --enable-fast-install[=PKGS]
1018 optimize for fast installation [default=yes]
1019 --disable-libtool-lock avoid locking (might break parallel builds)
1020 --enable-maintainer-mode enable make rules and dependencies not useful
1021 (and sometimes confusing) to the casual installer
1022 --enable-linux-futex use the Linux futex system call
1023 [default=default]
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 # We would like our source tree to be readonly. However when releases or
1522 # pre-releases are generated, the flex/bison generated files as well as the
1523 # various formats of manuals need to be included along with the rest of the
1524 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1525 # just that.
1526 echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1527 echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1528 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1529 if test "${enable_generated_files_in_srcdir+set}" = set; then
1530 enableval="$enable_generated_files_in_srcdir"
1532 case "$enableval" in
1533 yes|no) ;;
1534 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1535 echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1536 { (exit 1); exit 1; }; } ;;
1537 esac
1539 else
1540 enable_generated_files_in_srcdir=no
1543 echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1544 echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1547 if test "$enable_generated_files_in_srcdir" = yes; then
1548 GENINSRC_TRUE=
1549 GENINSRC_FALSE='#'
1550 else
1551 GENINSRC_TRUE='#'
1552 GENINSRC_FALSE=
1557 # -------
1558 # -------
1560 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1562 # You will slowly go insane if you do not grok the following fact: when
1563 # building this library, the top-level /target/ becomes the library's /host/.
1565 # configure then causes --target to default to --host, exactly like any
1566 # other package using autoconf. Therefore, 'target' and 'host' will
1567 # always be the same. This makes sense both for native and cross compilers
1568 # just think about it for a little while. :-)
1570 # Also, if this library is being configured as part of a cross compiler, the
1571 # top-level configure script will pass the "real" host as $with_cross_host.
1573 # Do not delete or change the following two lines. For why, see
1574 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1575 ac_aux_dir=
1576 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1577 if test -f $ac_dir/install-sh; then
1578 ac_aux_dir=$ac_dir
1579 ac_install_sh="$ac_aux_dir/install-sh -c"
1580 break
1581 elif test -f $ac_dir/install.sh; then
1582 ac_aux_dir=$ac_dir
1583 ac_install_sh="$ac_aux_dir/install.sh -c"
1584 break
1585 elif test -f $ac_dir/shtool; then
1586 ac_aux_dir=$ac_dir
1587 ac_install_sh="$ac_aux_dir/shtool install -c"
1588 break
1590 done
1591 if test -z "$ac_aux_dir"; then
1592 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1593 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1594 { (exit 1); exit 1; }; }
1596 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1597 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1598 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1600 # Make sure we can run config.sub.
1601 $ac_config_sub sun4 >/dev/null 2>&1 ||
1602 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1603 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1604 { (exit 1); exit 1; }; }
1606 echo "$as_me:$LINENO: checking build system type" >&5
1607 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1608 if test "${ac_cv_build+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611 ac_cv_build_alias=$build_alias
1612 test -z "$ac_cv_build_alias" &&
1613 ac_cv_build_alias=`$ac_config_guess`
1614 test -z "$ac_cv_build_alias" &&
1615 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1616 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1617 { (exit 1); exit 1; }; }
1618 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1619 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1620 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1621 { (exit 1); exit 1; }; }
1624 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1625 echo "${ECHO_T}$ac_cv_build" >&6
1626 build=$ac_cv_build
1627 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1632 echo "$as_me:$LINENO: checking host system type" >&5
1633 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1634 if test "${ac_cv_host+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637 ac_cv_host_alias=$host_alias
1638 test -z "$ac_cv_host_alias" &&
1639 ac_cv_host_alias=$ac_cv_build_alias
1640 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1641 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1642 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1643 { (exit 1); exit 1; }; }
1646 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1647 echo "${ECHO_T}$ac_cv_host" >&6
1648 host=$ac_cv_host
1649 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1650 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1651 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1654 echo "$as_me:$LINENO: checking target system type" >&5
1655 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1656 if test "${ac_cv_target+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659 ac_cv_target_alias=$target_alias
1660 test "x$ac_cv_target_alias" = "x" &&
1661 ac_cv_target_alias=$ac_cv_host_alias
1662 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1663 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1664 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1665 { (exit 1); exit 1; }; }
1668 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1669 echo "${ECHO_T}$ac_cv_target" >&6
1670 target=$ac_cv_target
1671 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1672 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1673 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1676 # The aliases save the names the user supplied, while $host etc.
1677 # will get canonicalized.
1678 test -n "$target_alias" &&
1679 test "$program_prefix$program_suffix$program_transform_name" = \
1680 NONENONEs,x,x, &&
1681 program_prefix=${target_alias}-
1682 target_alias=${target_alias-$host_alias}
1684 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1685 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1686 # 1.9.0: minimum required version
1687 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1688 # of other PACKAGE_* variables will, however, and there's nothing
1689 # we can do about that; they come from AC_INIT).
1690 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1691 # file in the top srcdir, etc, etc), so stop complaining.
1692 # -Wall: turns on all automake warnings...
1693 # -Wno-portability: ...except this one, since GNU make is required.
1694 # -Wno-override: ... and this one, since we do want this in testsuite.
1695 am__api_version="1.9"
1696 # Find a good install program. We prefer a C program (faster),
1697 # so one script is as good as another. But avoid the broken or
1698 # incompatible versions:
1699 # SysV /etc/install, /usr/sbin/install
1700 # SunOS /usr/etc/install
1701 # IRIX /sbin/install
1702 # AIX /bin/install
1703 # AmigaOS /C/install, which installs bootblocks on floppy discs
1704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1707 # OS/2's system install, which has a completely different semantic
1708 # ./install, which can be erroneously created by make from ./install.sh.
1709 # Reject install programs that cannot install multiple files.
1710 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1711 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1712 if test -z "$INSTALL"; then
1713 if test "${ac_cv_path_install+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 else
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 for as_dir in $PATH
1719 IFS=$as_save_IFS
1720 test -z "$as_dir" && as_dir=.
1721 # Account for people who put trailing slashes in PATH elements.
1722 case $as_dir/ in
1723 ./ | .// | /cC/* | \
1724 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1725 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1726 /usr/ucb/* ) ;;
1728 # OSF1 and SCO ODT 3.0 have their own names for install.
1729 # Don't use installbsd from OSF since it installs stuff as root
1730 # by default.
1731 for ac_prog in ginstall scoinst install; do
1732 for ac_exec_ext in '' $ac_executable_extensions; do
1733 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1734 if test $ac_prog = install &&
1735 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1736 # AIX install. It has an incompatible calling convention.
1738 elif test $ac_prog = install &&
1739 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1740 # program-specific install script used by HP pwplus--don't use.
1742 else
1743 rm -rf conftest.one conftest.two conftest.dir
1744 echo one > conftest.one
1745 echo two > conftest.two
1746 mkdir conftest.dir
1747 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1748 test -s conftest.one && test -s conftest.two &&
1749 test -s conftest.dir/conftest.one &&
1750 test -s conftest.dir/conftest.two
1751 then
1752 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1753 break 3
1757 done
1758 done
1760 esac
1761 done
1763 rm -rf conftest.one conftest.two conftest.dir
1766 if test "${ac_cv_path_install+set}" = set; then
1767 INSTALL=$ac_cv_path_install
1768 else
1769 # As a last resort, use the slow shell script. Don't cache a
1770 # value for INSTALL within a source directory, because that will
1771 # break other packages using the cache if that directory is
1772 # removed, or if the value is a relative name.
1773 INSTALL=$ac_install_sh
1776 echo "$as_me:$LINENO: result: $INSTALL" >&5
1777 echo "${ECHO_T}$INSTALL" >&6
1779 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1780 # It thinks the first close brace ends the variable substitution.
1781 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1783 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1785 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1787 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1788 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1789 # Just in case
1790 sleep 1
1791 echo timestamp > conftest.file
1792 # Do `set' in a subshell so we don't clobber the current shell's
1793 # arguments. Must try -L first in case configure is actually a
1794 # symlink; some systems play weird games with the mod time of symlinks
1795 # (eg FreeBSD returns the mod time of the symlink's containing
1796 # directory).
1797 if (
1798 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1799 if test "$*" = "X"; then
1800 # -L didn't work.
1801 set X `ls -t $srcdir/configure conftest.file`
1803 rm -f conftest.file
1804 if test "$*" != "X $srcdir/configure conftest.file" \
1805 && test "$*" != "X conftest.file $srcdir/configure"; then
1807 # If neither matched, then we have a broken ls. This can happen
1808 # if, for instance, CONFIG_SHELL is bash and it inherits a
1809 # broken ls alias from the environment. This has actually
1810 # happened. Such a system could not be considered "sane".
1811 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1812 alias in your environment" >&5
1813 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1814 alias in your environment" >&2;}
1815 { (exit 1); exit 1; }; }
1818 test "$2" = conftest.file
1820 then
1821 # Ok.
1823 else
1824 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1825 Check your system clock" >&5
1826 echo "$as_me: error: newly created file is older than distributed files!
1827 Check your system clock" >&2;}
1828 { (exit 1); exit 1; }; }
1830 echo "$as_me:$LINENO: result: yes" >&5
1831 echo "${ECHO_T}yes" >&6
1832 test "$program_prefix" != NONE &&
1833 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1834 # Use a double $ so make ignores it.
1835 test "$program_suffix" != NONE &&
1836 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1837 # Double any \ or $. echo might interpret backslashes.
1838 # By default was `s,x,x', remove it if useless.
1839 cat <<\_ACEOF >conftest.sed
1840 s/[\\$]/&&/g;s/;s,x,x,$//
1841 _ACEOF
1842 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1843 rm conftest.sed
1845 # expand $ac_aux_dir to an absolute path
1846 am_aux_dir=`cd $ac_aux_dir && pwd`
1848 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1849 # Use eval to expand $SHELL
1850 if eval "$MISSING --run true"; then
1851 am_missing_run="$MISSING --run "
1852 else
1853 am_missing_run=
1854 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1855 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1858 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1859 # We used to keeping the `.' as first argument, in order to
1860 # allow $(mkdir_p) to be used without argument. As in
1861 # $(mkdir_p) $(somedir)
1862 # where $(somedir) is conditionally defined. However this is wrong
1863 # for two reasons:
1864 # 1. if the package is installed by a user who cannot write `.'
1865 # make install will fail,
1866 # 2. the above comment should most certainly read
1867 # $(mkdir_p) $(DESTDIR)$(somedir)
1868 # so it does not work when $(somedir) is undefined and
1869 # $(DESTDIR) is not.
1870 # To support the latter case, we have to write
1871 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1872 # so the `.' trick is pointless.
1873 mkdir_p='mkdir -p --'
1874 else
1875 # On NextStep and OpenStep, the `mkdir' command does not
1876 # recognize any option. It will interpret all options as
1877 # directories to create, and then abort because `.' already
1878 # exists.
1879 for d in ./-p ./--version;
1881 test -d $d && rmdir $d
1882 done
1883 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1884 if test -f "$ac_aux_dir/mkinstalldirs"; then
1885 mkdir_p='$(mkinstalldirs)'
1886 else
1887 mkdir_p='$(install_sh) -d'
1891 for ac_prog in gawk mawk nawk awk
1893 # Extract the first word of "$ac_prog", so it can be a program name with args.
1894 set dummy $ac_prog; ac_word=$2
1895 echo "$as_me:$LINENO: checking for $ac_word" >&5
1896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1897 if test "${ac_cv_prog_AWK+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 else
1900 if test -n "$AWK"; then
1901 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1902 else
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
1908 for ac_exec_ext in '' $ac_executable_extensions; do
1909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910 ac_cv_prog_AWK="$ac_prog"
1911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 break 2
1914 done
1915 done
1919 AWK=$ac_cv_prog_AWK
1920 if test -n "$AWK"; then
1921 echo "$as_me:$LINENO: result: $AWK" >&5
1922 echo "${ECHO_T}$AWK" >&6
1923 else
1924 echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6
1928 test -n "$AWK" && break
1929 done
1931 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1932 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1933 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1934 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937 cat >conftest.make <<\_ACEOF
1938 all:
1939 @echo 'ac_maketemp="$(MAKE)"'
1940 _ACEOF
1941 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1942 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1943 if test -n "$ac_maketemp"; then
1944 eval ac_cv_prog_make_${ac_make}_set=yes
1945 else
1946 eval ac_cv_prog_make_${ac_make}_set=no
1948 rm -f conftest.make
1950 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1951 echo "$as_me:$LINENO: result: yes" >&5
1952 echo "${ECHO_T}yes" >&6
1953 SET_MAKE=
1954 else
1955 echo "$as_me:$LINENO: result: no" >&5
1956 echo "${ECHO_T}no" >&6
1957 SET_MAKE="MAKE=${MAKE-make}"
1960 rm -rf .tst 2>/dev/null
1961 mkdir .tst 2>/dev/null
1962 if test -d .tst; then
1963 am__leading_dot=.
1964 else
1965 am__leading_dot=_
1967 rmdir .tst 2>/dev/null
1969 # test to see if srcdir already configured
1970 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1971 test -f $srcdir/config.status; then
1972 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1973 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1974 { (exit 1); exit 1; }; }
1977 # test whether we have cygpath
1978 if test -z "$CYGPATH_W"; then
1979 if (cygpath --version) >/dev/null 2>/dev/null; then
1980 CYGPATH_W='cygpath -w'
1981 else
1982 CYGPATH_W=echo
1987 # Define the identity of the package.
1988 PACKAGE='libgomp'
1989 VERSION='1.0'
1992 cat >>confdefs.h <<_ACEOF
1993 #define PACKAGE "$PACKAGE"
1994 _ACEOF
1997 cat >>confdefs.h <<_ACEOF
1998 #define VERSION "$VERSION"
1999 _ACEOF
2001 # Some tools Automake needs.
2003 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2006 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2009 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2012 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2015 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2017 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2019 # Installed binaries are usually stripped using `strip' when the user
2020 # run `make install-strip'. However `strip' might not be the right
2021 # tool to use in cross-compilation environments, therefore Automake
2022 # will honor the `STRIP' environment variable to overrule this program.
2023 if test "$cross_compiling" != no; then
2024 if test -n "$ac_tool_prefix"; then
2025 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2026 set dummy ${ac_tool_prefix}strip; ac_word=$2
2027 echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029 if test "${ac_cv_prog_STRIP+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032 if test -n "$STRIP"; then
2033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2034 else
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 break 2
2046 done
2047 done
2051 STRIP=$ac_cv_prog_STRIP
2052 if test -n "$STRIP"; then
2053 echo "$as_me:$LINENO: result: $STRIP" >&5
2054 echo "${ECHO_T}$STRIP" >&6
2055 else
2056 echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2061 if test -z "$ac_cv_prog_STRIP"; then
2062 ac_ct_STRIP=$STRIP
2063 # Extract the first word of "strip", so it can be a program name with args.
2064 set dummy strip; ac_word=$2
2065 echo "$as_me:$LINENO: checking for $ac_word" >&5
2066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 else
2070 if test -n "$ac_ct_STRIP"; then
2071 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2072 else
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2076 IFS=$as_save_IFS
2077 test -z "$as_dir" && as_dir=.
2078 for ac_exec_ext in '' $ac_executable_extensions; do
2079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080 ac_cv_prog_ac_ct_STRIP="strip"
2081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 break 2
2084 done
2085 done
2087 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2090 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2091 if test -n "$ac_ct_STRIP"; then
2092 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2093 echo "${ECHO_T}$ac_ct_STRIP" >&6
2094 else
2095 echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6
2099 STRIP=$ac_ct_STRIP
2100 else
2101 STRIP="$ac_cv_prog_STRIP"
2105 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2107 # We need awk for the "check" target. The system "awk" is bad on
2108 # some platforms.
2109 # Always define AMTAR for backward compatibility.
2111 AMTAR=${AMTAR-"${am_missing_run}tar"}
2113 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2119 # Default to --enable-multilib
2120 # Check whether --enable-multilib or --disable-multilib was given.
2121 if test "${enable_multilib+set}" = set; then
2122 enableval="$enable_multilib"
2123 case "$enableval" in
2124 yes) multilib=yes ;;
2125 no) multilib=no ;;
2126 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2127 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2128 { (exit 1); exit 1; }; } ;;
2129 esac
2130 else
2131 multilib=yes
2134 # We may get other options which we leave undocumented:
2135 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2136 # See config-ml.in if you want the gory details.
2138 if test "$srcdir" = "."; then
2139 if test "$with_target_subdir" != "."; then
2140 multi_basedir="$srcdir/$with_multisrctop../.."
2141 else
2142 multi_basedir="$srcdir/$with_multisrctop.."
2144 else
2145 multi_basedir="$srcdir/.."
2149 # Even if the default multilib is not a cross compilation,
2150 # it may be that some of the other multilibs are.
2151 if test $cross_compiling = no && test $multilib = yes \
2152 && test "x${with_multisubdir}" != x ; then
2153 cross_compiling=maybe
2156 ac_config_commands="$ac_config_commands default-1"
2159 # Calculate toolexeclibdir
2160 # Also toolexecdir, though it's only used in toolexeclibdir
2161 case ${enable_version_specific_runtime_libs} in
2162 yes)
2163 # Need the gcc compiler version to know where to install libraries
2164 # and header files if --enable-version-specific-runtime-libs option
2165 # is selected.
2166 toolexecdir='$(libdir)/gcc/$(target_alias)'
2167 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2170 if test -n "$with_cross_host" &&
2171 test x"$with_cross_host" != x"no"; then
2172 # Install a library built with a cross compiler in tooldir, not libdir.
2173 toolexecdir='$(exec_prefix)/$(target_alias)'
2174 toolexeclibdir='$(toolexecdir)/lib'
2175 else
2176 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2177 toolexeclibdir='$(libdir)'
2179 multi_os_directory=`$CC -print-multi-os-directory`
2180 case $multi_os_directory in
2181 .) ;; # Avoid trailing /.
2182 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2183 esac
2185 esac
2189 # Check the compiler.
2190 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2191 # We must force CC to /not/ be precious variables; otherwise
2192 # the wrong, non-multilib-adjusted value will be used in multilibs.
2193 # As a side effect, we have to subst CFLAGS ourselves.
2197 ac_ext=c
2198 ac_cpp='$CPP $CPPFLAGS'
2199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2202 if test -n "$ac_tool_prefix"; then
2203 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2204 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2205 echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2207 if test "${ac_cv_prog_CC+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210 if test -n "$CC"; then
2211 ac_cv_prog_CC="$CC" # Let the user override the test.
2212 else
2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 for as_dir in $PATH
2216 IFS=$as_save_IFS
2217 test -z "$as_dir" && as_dir=.
2218 for ac_exec_ext in '' $ac_executable_extensions; do
2219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2220 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222 break 2
2224 done
2225 done
2229 CC=$ac_cv_prog_CC
2230 if test -n "$CC"; then
2231 echo "$as_me:$LINENO: result: $CC" >&5
2232 echo "${ECHO_T}$CC" >&6
2233 else
2234 echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6
2239 if test -z "$ac_cv_prog_CC"; then
2240 ac_ct_CC=$CC
2241 # Extract the first word of "gcc", so it can be a program name with args.
2242 set dummy gcc; ac_word=$2
2243 echo "$as_me:$LINENO: checking for $ac_word" >&5
2244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 else
2248 if test -n "$ac_ct_CC"; then
2249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2250 else
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2258 ac_cv_prog_ac_ct_CC="gcc"
2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 break 2
2262 done
2263 done
2267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2268 if test -n "$ac_ct_CC"; then
2269 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2270 echo "${ECHO_T}$ac_ct_CC" >&6
2271 else
2272 echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6
2276 CC=$ac_ct_CC
2277 else
2278 CC="$ac_cv_prog_CC"
2281 if test -z "$CC"; then
2282 if test -n "$ac_tool_prefix"; then
2283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}cc; ac_word=$2
2285 echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 if test -n "$CC"; then
2291 ac_cv_prog_CC="$CC" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300 ac_cv_prog_CC="${ac_tool_prefix}cc"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2304 done
2305 done
2309 CC=$ac_cv_prog_CC
2310 if test -n "$CC"; then
2311 echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6
2313 else
2314 echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2319 if test -z "$ac_cv_prog_CC"; then
2320 ac_ct_CC=$CC
2321 # Extract the first word of "cc", so it can be a program name with args.
2322 set dummy cc; ac_word=$2
2323 echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328 if test -n "$ac_ct_CC"; then
2329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2330 else
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2334 IFS=$as_save_IFS
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2338 ac_cv_prog_ac_ct_CC="cc"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340 break 2
2342 done
2343 done
2347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2348 if test -n "$ac_ct_CC"; then
2349 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2350 echo "${ECHO_T}$ac_ct_CC" >&6
2351 else
2352 echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6
2356 CC=$ac_ct_CC
2357 else
2358 CC="$ac_cv_prog_CC"
2362 if test -z "$CC"; then
2363 # Extract the first word of "cc", so it can be a program name with args.
2364 set dummy cc; ac_word=$2
2365 echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367 if test "${ac_cv_prog_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 if test -n "$CC"; then
2371 ac_cv_prog_CC="$CC" # Let the user override the test.
2372 else
2373 ac_prog_rejected=no
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2381 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2382 ac_prog_rejected=yes
2383 continue
2385 ac_cv_prog_CC="cc"
2386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 break 2
2389 done
2390 done
2392 if test $ac_prog_rejected = yes; then
2393 # We found a bogon in the path, so make sure we never use it.
2394 set dummy $ac_cv_prog_CC
2395 shift
2396 if test $# != 0; then
2397 # We chose a different compiler from the bogus one.
2398 # However, it has the same basename, so the bogon will be chosen
2399 # first if we set CC to just the basename; use the full file name.
2400 shift
2401 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2406 CC=$ac_cv_prog_CC
2407 if test -n "$CC"; then
2408 echo "$as_me:$LINENO: result: $CC" >&5
2409 echo "${ECHO_T}$CC" >&6
2410 else
2411 echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6
2416 if test -z "$CC"; then
2417 if test -n "$ac_tool_prefix"; then
2418 for ac_prog in cl
2420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2422 echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2424 if test "${ac_cv_prog_CC+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427 if test -n "$CC"; then
2428 ac_cv_prog_CC="$CC" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2437 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 break 2
2441 done
2442 done
2446 CC=$ac_cv_prog_CC
2447 if test -n "$CC"; then
2448 echo "$as_me:$LINENO: result: $CC" >&5
2449 echo "${ECHO_T}$CC" >&6
2450 else
2451 echo "$as_me:$LINENO: result: no" >&5
2452 echo "${ECHO_T}no" >&6
2455 test -n "$CC" && break
2456 done
2458 if test -z "$CC"; then
2459 ac_ct_CC=$CC
2460 for ac_prog in cl
2462 # Extract the first word of "$ac_prog", so it can be a program name with args.
2463 set dummy $ac_prog; ac_word=$2
2464 echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469 if test -n "$ac_ct_CC"; then
2470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479 ac_cv_prog_ac_ct_CC="$ac_prog"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2483 done
2484 done
2488 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2489 if test -n "$ac_ct_CC"; then
2490 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2491 echo "${ECHO_T}$ac_ct_CC" >&6
2492 else
2493 echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6
2497 test -n "$ac_ct_CC" && break
2498 done
2500 CC=$ac_ct_CC
2506 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2507 See \`config.log' for more details." >&5
2508 echo "$as_me: error: no acceptable C compiler found in \$PATH
2509 See \`config.log' for more details." >&2;}
2510 { (exit 1); exit 1; }; }
2512 # Provide some information about the compiler.
2513 echo "$as_me:$LINENO:" \
2514 "checking for C compiler version" >&5
2515 ac_compiler=`set X $ac_compile; echo $2`
2516 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2517 (eval $ac_compiler --version </dev/null >&5) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }
2521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2522 (eval $ac_compiler -v </dev/null >&5) 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }
2526 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2527 (eval $ac_compiler -V </dev/null >&5) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }
2532 cat >conftest.$ac_ext <<_ACEOF
2533 /* confdefs.h. */
2534 _ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2540 main ()
2544 return 0;
2546 _ACEOF
2547 ac_clean_files_save=$ac_clean_files
2548 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2549 # Try to create an executable without -o first, disregard a.out.
2550 # It will help us diagnose broken compilers, and finding out an intuition
2551 # of exeext.
2552 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2553 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2554 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2555 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2556 (eval $ac_link_default) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; then
2560 # Find the output, starting from the most likely. This scheme is
2561 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2562 # resort.
2564 # Be careful to initialize this variable, since it used to be cached.
2565 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2566 ac_cv_exeext=
2567 # b.out is created by i960 compilers.
2568 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2570 test -f "$ac_file" || continue
2571 case $ac_file in
2572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2574 conftest.$ac_ext )
2575 # This is the source file.
2577 [ab].out )
2578 # We found the default executable, but exeext='' is most
2579 # certainly right.
2580 break;;
2581 *.* )
2582 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2583 # FIXME: I believe we export ac_cv_exeext for Libtool,
2584 # but it would be cool to find out if it's true. Does anybody
2585 # maintain Libtool? --akim.
2586 export ac_cv_exeext
2587 break;;
2589 break;;
2590 esac
2591 done
2592 else
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2596 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2597 See \`config.log' for more details." >&5
2598 echo "$as_me: error: C compiler cannot create executables
2599 See \`config.log' for more details." >&2;}
2600 { (exit 77); exit 77; }; }
2603 ac_exeext=$ac_cv_exeext
2604 echo "$as_me:$LINENO: result: $ac_file" >&5
2605 echo "${ECHO_T}$ac_file" >&6
2607 # Check the compiler produces executables we can run. If not, either
2608 # the compiler is broken, or we cross compile.
2609 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2610 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2611 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2612 # If not cross compiling, check that we can run a simple program.
2613 if test "$cross_compiling" != yes; then
2614 if { ac_try='./$ac_file'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 cross_compiling=no
2621 else
2622 if test "$cross_compiling" = maybe; then
2623 cross_compiling=yes
2624 else
2625 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2626 If you meant to cross compile, use \`--host'.
2627 See \`config.log' for more details." >&5
2628 echo "$as_me: error: cannot run C compiled programs.
2629 If you meant to cross compile, use \`--host'.
2630 See \`config.log' for more details." >&2;}
2631 { (exit 1); exit 1; }; }
2635 echo "$as_me:$LINENO: result: yes" >&5
2636 echo "${ECHO_T}yes" >&6
2638 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2639 ac_clean_files=$ac_clean_files_save
2640 # Check the compiler produces executables we can run. If not, either
2641 # the compiler is broken, or we cross compile.
2642 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2643 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2644 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2645 echo "${ECHO_T}$cross_compiling" >&6
2647 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2648 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2650 (eval $ac_link) 2>&5
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; then
2654 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2655 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2656 # work properly (i.e., refer to `conftest.exe'), while it won't with
2657 # `rm'.
2658 for ac_file in conftest.exe conftest conftest.*; do
2659 test -f "$ac_file" || continue
2660 case $ac_file in
2661 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2662 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2663 export ac_cv_exeext
2664 break;;
2665 * ) break;;
2666 esac
2667 done
2668 else
2669 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2670 See \`config.log' for more details." >&5
2671 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2672 See \`config.log' for more details." >&2;}
2673 { (exit 1); exit 1; }; }
2676 rm -f conftest$ac_cv_exeext
2677 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2678 echo "${ECHO_T}$ac_cv_exeext" >&6
2680 rm -f conftest.$ac_ext
2681 EXEEXT=$ac_cv_exeext
2682 ac_exeext=$EXEEXT
2683 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2684 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2685 if test "${ac_cv_objext+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 else
2688 cat >conftest.$ac_ext <<_ACEOF
2689 /* confdefs.h. */
2690 _ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2696 main ()
2700 return 0;
2702 _ACEOF
2703 rm -f conftest.o conftest.obj
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; then
2709 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2710 case $ac_file in
2711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2712 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2713 break;;
2714 esac
2715 done
2716 else
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2720 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2721 See \`config.log' for more details." >&5
2722 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2723 See \`config.log' for more details." >&2;}
2724 { (exit 1); exit 1; }; }
2727 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2729 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2730 echo "${ECHO_T}$ac_cv_objext" >&6
2731 OBJEXT=$ac_cv_objext
2732 ac_objext=$OBJEXT
2733 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2734 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2735 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738 cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h. */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2746 main ()
2748 #ifndef __GNUC__
2749 choke me
2750 #endif
2753 return 0;
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>conftest.er1
2759 ac_status=$?
2760 grep -v '^ *+' conftest.er1 >conftest.err
2761 rm -f conftest.er1
2762 cat conftest.err >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -z "$ac_c_werror_flag"
2766 || test ! -s conftest.err'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; } &&
2772 { ac_try='test -s conftest.$ac_objext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 ac_compiler_gnu=yes
2779 else
2780 echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2783 ac_compiler_gnu=no
2785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2789 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2790 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2791 GCC=`test $ac_compiler_gnu = yes && echo yes`
2792 ac_test_CFLAGS=${CFLAGS+set}
2793 ac_save_CFLAGS=$CFLAGS
2794 CFLAGS="-g"
2795 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2796 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2797 if test "${ac_cv_prog_cc_g+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 else
2800 cat >conftest.$ac_ext <<_ACEOF
2801 /* confdefs.h. */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2808 main ()
2812 return 0;
2814 _ACEOF
2815 rm -f conftest.$ac_objext
2816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817 (eval $ac_compile) 2>conftest.er1
2818 ac_status=$?
2819 grep -v '^ *+' conftest.er1 >conftest.err
2820 rm -f conftest.er1
2821 cat conftest.err >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } &&
2824 { ac_try='test -z "$ac_c_werror_flag"
2825 || test ! -s conftest.err'
2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827 (eval $ac_try) 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; } &&
2831 { ac_try='test -s conftest.$ac_objext'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; }; then
2837 ac_cv_prog_cc_g=yes
2838 else
2839 echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2842 ac_cv_prog_cc_g=no
2844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2847 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2848 if test "$ac_test_CFLAGS" = set; then
2849 CFLAGS=$ac_save_CFLAGS
2850 elif test $ac_cv_prog_cc_g = yes; then
2851 if test "$GCC" = yes; then
2852 CFLAGS="-g -O2"
2853 else
2854 CFLAGS="-g"
2856 else
2857 if test "$GCC" = yes; then
2858 CFLAGS="-O2"
2859 else
2860 CFLAGS=
2863 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2864 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2865 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 else
2868 ac_cv_prog_cc_stdc=no
2869 ac_save_CC=$CC
2870 cat >conftest.$ac_ext <<_ACEOF
2871 /* confdefs.h. */
2872 _ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2876 #include <stdarg.h>
2877 #include <stdio.h>
2878 #include <sys/types.h>
2879 #include <sys/stat.h>
2880 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2881 struct buf { int x; };
2882 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2883 static char *e (p, i)
2884 char **p;
2885 int i;
2887 return p[i];
2889 static char *f (char * (*g) (char **, int), char **p, ...)
2891 char *s;
2892 va_list v;
2893 va_start (v,p);
2894 s = g (p, va_arg (v,int));
2895 va_end (v);
2896 return s;
2899 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2900 function prototypes and stuff, but not '\xHH' hex character constants.
2901 These don't provoke an error unfortunately, instead are silently treated
2902 as 'x'. The following induces an error, until -std1 is added to get
2903 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2904 array size at least. It's necessary to write '\x00'==0 to get something
2905 that's true only with -std1. */
2906 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2908 int test (int i, double x);
2909 struct s1 {int (*f) (int a);};
2910 struct s2 {int (*f) (double a);};
2911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2912 int argc;
2913 char **argv;
2915 main ()
2917 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2919 return 0;
2921 _ACEOF
2922 # Don't try gcc -ansi; that turns off useful extensions and
2923 # breaks some systems' header files.
2924 # AIX -qlanglvl=ansi
2925 # Ultrix and OSF/1 -std1
2926 # HP-UX 10.20 and later -Ae
2927 # HP-UX older versions -Aa -D_HPUX_SOURCE
2928 # SVR4 -Xc -D__EXTENSIONS__
2929 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2931 CC="$ac_save_CC $ac_arg"
2932 rm -f conftest.$ac_objext
2933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2934 (eval $ac_compile) 2>conftest.er1
2935 ac_status=$?
2936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -z "$ac_c_werror_flag"
2942 || test ! -s conftest.err'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 (eval $ac_try) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; } &&
2948 { ac_try='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 (eval $ac_try) 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2954 ac_cv_prog_cc_stdc=$ac_arg
2955 break
2956 else
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2961 rm -f conftest.err conftest.$ac_objext
2962 done
2963 rm -f conftest.$ac_ext conftest.$ac_objext
2964 CC=$ac_save_CC
2968 case "x$ac_cv_prog_cc_stdc" in
2969 x|xno)
2970 echo "$as_me:$LINENO: result: none needed" >&5
2971 echo "${ECHO_T}none needed" >&6 ;;
2973 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2974 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2975 CC="$CC $ac_cv_prog_cc_stdc" ;;
2976 esac
2978 # Some people use a C++ compiler to compile C. Since we use `exit',
2979 # in C++ we need to declare it. In case someone uses the same compiler
2980 # for both compiling C and C++ we need to have the C++ compiler decide
2981 # the declaration of exit, since it's the most demanding environment.
2982 cat >conftest.$ac_ext <<_ACEOF
2983 #ifndef __cplusplus
2984 choke me
2985 #endif
2986 _ACEOF
2987 rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>conftest.er1
2990 ac_status=$?
2991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -z "$ac_c_werror_flag"
2997 || test ! -s conftest.err'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999 (eval $ac_try) 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; } &&
3003 { ac_try='test -s conftest.$ac_objext'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005 (eval $ac_try) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; }; then
3009 for ac_declaration in \
3010 '' \
3011 'extern "C" void std::exit (int) throw (); using std::exit;' \
3012 'extern "C" void std::exit (int); using std::exit;' \
3013 'extern "C" void exit (int) throw ();' \
3014 'extern "C" void exit (int);' \
3015 'void exit (int);'
3017 cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h. */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3023 $ac_declaration
3024 #include <stdlib.h>
3026 main ()
3028 exit (42);
3030 return 0;
3032 _ACEOF
3033 rm -f conftest.$ac_objext
3034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3035 (eval $ac_compile) 2>conftest.er1
3036 ac_status=$?
3037 grep -v '^ *+' conftest.er1 >conftest.err
3038 rm -f conftest.er1
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } &&
3042 { ac_try='test -z "$ac_c_werror_flag"
3043 || test ! -s conftest.err'
3044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045 (eval $ac_try) 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051 (eval $ac_try) 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3056 else
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3060 continue
3062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3063 cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h. */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3069 $ac_declaration
3071 main ()
3073 exit (42);
3075 return 0;
3077 _ACEOF
3078 rm -f conftest.$ac_objext
3079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3080 (eval $ac_compile) 2>conftest.er1
3081 ac_status=$?
3082 grep -v '^ *+' conftest.er1 >conftest.err
3083 rm -f conftest.er1
3084 cat conftest.err >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } &&
3087 { ac_try='test -z "$ac_c_werror_flag"
3088 || test ! -s conftest.err'
3089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090 (eval $ac_try) 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 (eval $ac_try) 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3100 break
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3107 done
3108 rm -f conftest*
3109 if test -n "$ac_declaration"; then
3110 echo '#ifdef __cplusplus' >>confdefs.h
3111 echo $ac_declaration >>confdefs.h
3112 echo '#endif' >>confdefs.h
3115 else
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3121 ac_ext=c
3122 ac_cpp='$CPP $CPPFLAGS'
3123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126 DEPDIR="${am__leading_dot}deps"
3128 ac_config_commands="$ac_config_commands depfiles"
3131 am_make=${MAKE-make}
3132 cat > confinc << 'END'
3133 am__doit:
3134 @echo done
3135 .PHONY: am__doit
3137 # If we don't find an include directive, just comment out the code.
3138 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3139 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3140 am__include="#"
3141 am__quote=
3142 _am_result=none
3143 # First try GNU make style include.
3144 echo "include confinc" > confmf
3145 # We grep out `Entering directory' and `Leaving directory'
3146 # messages which can occur if `w' ends up in MAKEFLAGS.
3147 # In particular we don't look at `^make:' because GNU make might
3148 # be invoked under some other name (usually "gmake"), in which
3149 # case it prints its new name instead of `make'.
3150 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3151 am__include=include
3152 am__quote=
3153 _am_result=GNU
3155 # Now try BSD make style include.
3156 if test "$am__include" = "#"; then
3157 echo '.include "confinc"' > confmf
3158 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3159 am__include=.include
3160 am__quote="\""
3161 _am_result=BSD
3166 echo "$as_me:$LINENO: result: $_am_result" >&5
3167 echo "${ECHO_T}$_am_result" >&6
3168 rm -f confinc confmf
3170 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3171 if test "${enable_dependency_tracking+set}" = set; then
3172 enableval="$enable_dependency_tracking"
3175 if test "x$enable_dependency_tracking" != xno; then
3176 am_depcomp="$ac_aux_dir/depcomp"
3177 AMDEPBACKSLASH='\'
3181 if test "x$enable_dependency_tracking" != xno; then
3182 AMDEP_TRUE=
3183 AMDEP_FALSE='#'
3184 else
3185 AMDEP_TRUE='#'
3186 AMDEP_FALSE=
3192 depcc="$CC" am_compiler_list=
3194 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3195 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3196 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3200 # We make a subdir and do the tests there. Otherwise we can end up
3201 # making bogus files that we don't know about and never remove. For
3202 # instance it was reported that on HP-UX the gcc test will end up
3203 # making a dummy file named `D' -- because `-MD' means `put the output
3204 # in D'.
3205 mkdir conftest.dir
3206 # Copy depcomp to subdir because otherwise we won't find it if we're
3207 # using a relative directory.
3208 cp "$am_depcomp" conftest.dir
3209 cd conftest.dir
3210 # We will build objects and dependencies in a subdirectory because
3211 # it helps to detect inapplicable dependency modes. For instance
3212 # both Tru64's cc and ICC support -MD to output dependencies as a
3213 # side effect of compilation, but ICC will put the dependencies in
3214 # the current directory while Tru64 will put them in the object
3215 # directory.
3216 mkdir sub
3218 am_cv_CC_dependencies_compiler_type=none
3219 if test "$am_compiler_list" = ""; then
3220 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3222 for depmode in $am_compiler_list; do
3223 # Setup a source with many dependencies, because some compilers
3224 # like to wrap large dependency lists on column 80 (with \), and
3225 # we should not choose a depcomp mode which is confused by this.
3227 # We need to recreate these files for each test, as the compiler may
3228 # overwrite some of them when testing with obscure command lines.
3229 # This happens at least with the AIX C compiler.
3230 : > sub/conftest.c
3231 for i in 1 2 3 4 5 6; do
3232 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3233 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3234 # Solaris 8's {/usr,}/bin/sh.
3235 touch sub/conftst$i.h
3236 done
3237 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3239 case $depmode in
3240 nosideeffect)
3241 # after this tag, mechanisms are not by side-effect, so they'll
3242 # only be used when explicitly requested
3243 if test "x$enable_dependency_tracking" = xyes; then
3244 continue
3245 else
3246 break
3249 none) break ;;
3250 esac
3251 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3252 # mode. It turns out that the SunPro C++ compiler does not properly
3253 # handle `-M -o', and we need to detect this.
3254 if depmode=$depmode \
3255 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3256 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3257 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3258 >/dev/null 2>conftest.err &&
3259 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3260 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3261 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3262 # icc doesn't choke on unknown options, it will just issue warnings
3263 # or remarks (even with -Werror). So we grep stderr for any message
3264 # that says an option was ignored or not supported.
3265 # When given -MP, icc 7.0 and 7.1 complain thusly:
3266 # icc: Command line warning: ignoring option '-M'; no argument required
3267 # The diagnosis changed in icc 8.0:
3268 # icc: Command line remark: option '-MP' not supported
3269 if (grep 'ignoring option' conftest.err ||
3270 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3271 am_cv_CC_dependencies_compiler_type=$depmode
3272 break
3275 done
3277 cd ..
3278 rm -rf conftest.dir
3279 else
3280 am_cv_CC_dependencies_compiler_type=none
3284 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3285 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3286 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3291 test "x$enable_dependency_tracking" != xno \
3292 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3293 am__fastdepCC_TRUE=
3294 am__fastdepCC_FALSE='#'
3295 else
3296 am__fastdepCC_TRUE='#'
3297 am__fastdepCC_FALSE=
3305 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3306 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
3307 # in both places for now and restore CFLAGS at the end of config.
3308 save_CFLAGS="$CFLAGS"
3310 # Add -Wall -Werror if we are using GCC.
3311 if test "x$GCC" = "xyes"; then
3312 XCFLAGS="$XCFLAGS -Wall -Werror"
3315 # Find other programs we need.
3316 if test -n "$ac_tool_prefix"; then
3317 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3318 set dummy ${ac_tool_prefix}ar; ac_word=$2
3319 echo "$as_me:$LINENO: checking for $ac_word" >&5
3320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3321 if test "${ac_cv_prog_AR+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324 if test -n "$AR"; then
3325 ac_cv_prog_AR="$AR" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_AR="${ac_tool_prefix}ar"
3335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3338 done
3339 done
3343 AR=$ac_cv_prog_AR
3344 if test -n "$AR"; then
3345 echo "$as_me:$LINENO: result: $AR" >&5
3346 echo "${ECHO_T}$AR" >&6
3347 else
3348 echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6
3353 if test -z "$ac_cv_prog_AR"; then
3354 ac_ct_AR=$AR
3355 # Extract the first word of "ar", so it can be a program name with args.
3356 set dummy ar; ac_word=$2
3357 echo "$as_me:$LINENO: checking for $ac_word" >&5
3358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362 if test -n "$ac_ct_AR"; then
3363 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_ac_ct_AR="ar"
3373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3376 done
3377 done
3381 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3382 if test -n "$ac_ct_AR"; then
3383 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3384 echo "${ECHO_T}$ac_ct_AR" >&6
3385 else
3386 echo "$as_me:$LINENO: result: no" >&5
3387 echo "${ECHO_T}no" >&6
3390 AR=$ac_ct_AR
3391 else
3392 AR="$ac_cv_prog_AR"
3395 if test -n "$ac_tool_prefix"; then
3396 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3397 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3398 echo "$as_me:$LINENO: checking for $ac_word" >&5
3399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3400 if test "${ac_cv_prog_RANLIB+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403 if test -n "$RANLIB"; then
3404 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3409 IFS=$as_save_IFS
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 break 2
3417 done
3418 done
3422 RANLIB=$ac_cv_prog_RANLIB
3423 if test -n "$RANLIB"; then
3424 echo "$as_me:$LINENO: result: $RANLIB" >&5
3425 echo "${ECHO_T}$RANLIB" >&6
3426 else
3427 echo "$as_me:$LINENO: result: no" >&5
3428 echo "${ECHO_T}no" >&6
3432 if test -z "$ac_cv_prog_RANLIB"; then
3433 ac_ct_RANLIB=$RANLIB
3434 # Extract the first word of "ranlib", so it can be a program name with args.
3435 set dummy ranlib; ac_word=$2
3436 echo "$as_me:$LINENO: checking for $ac_word" >&5
3437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3438 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441 if test -n "$ac_ct_RANLIB"; then
3442 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3443 else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451 ac_cv_prog_ac_ct_RANLIB="ranlib"
3452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 break 2
3455 done
3456 done
3458 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3461 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3462 if test -n "$ac_ct_RANLIB"; then
3463 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3464 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3465 else
3466 echo "$as_me:$LINENO: result: no" >&5
3467 echo "${ECHO_T}no" >&6
3470 RANLIB=$ac_ct_RANLIB
3471 else
3472 RANLIB="$ac_cv_prog_RANLIB"
3475 # Extract the first word of "perl", so it can be a program name with args.
3476 set dummy perl; ac_word=$2
3477 echo "$as_me:$LINENO: checking for $ac_word" >&5
3478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3479 if test "${ac_cv_path_PERL+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3482 case $PERL in
3483 [\\/]* | ?:[\\/]*)
3484 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 break 2
3498 done
3499 done
3501 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3503 esac
3505 PERL=$ac_cv_path_PERL
3507 if test -n "$PERL"; then
3508 echo "$as_me:$LINENO: result: $PERL" >&5
3509 echo "${ECHO_T}$PERL" >&6
3510 else
3511 echo "$as_me:$LINENO: result: no" >&5
3512 echo "${ECHO_T}no" >&6
3515 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3516 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3517 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3518 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 else
3521 cat >conftest.make <<\_ACEOF
3522 all:
3523 @echo 'ac_maketemp="$(MAKE)"'
3524 _ACEOF
3525 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3526 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3527 if test -n "$ac_maketemp"; then
3528 eval ac_cv_prog_make_${ac_make}_set=yes
3529 else
3530 eval ac_cv_prog_make_${ac_make}_set=no
3532 rm -f conftest.make
3534 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3535 echo "$as_me:$LINENO: result: yes" >&5
3536 echo "${ECHO_T}yes" >&6
3537 SET_MAKE=
3538 else
3539 echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3541 SET_MAKE="MAKE=${MAKE-make}"
3544 # Find a good install program. We prefer a C program (faster),
3545 # so one script is as good as another. But avoid the broken or
3546 # incompatible versions:
3547 # SysV /etc/install, /usr/sbin/install
3548 # SunOS /usr/etc/install
3549 # IRIX /sbin/install
3550 # AIX /bin/install
3551 # AmigaOS /C/install, which installs bootblocks on floppy discs
3552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3555 # OS/2's system install, which has a completely different semantic
3556 # ./install, which can be erroneously created by make from ./install.sh.
3557 # Reject install programs that cannot install multiple files.
3558 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3559 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3560 if test -z "$INSTALL"; then
3561 if test "${ac_cv_path_install+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 # Account for people who put trailing slashes in PATH elements.
3570 case $as_dir/ in
3571 ./ | .// | /cC/* | \
3572 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3573 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3574 /usr/ucb/* ) ;;
3576 # OSF1 and SCO ODT 3.0 have their own names for install.
3577 # Don't use installbsd from OSF since it installs stuff as root
3578 # by default.
3579 for ac_prog in ginstall scoinst install; do
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3582 if test $ac_prog = install &&
3583 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3584 # AIX install. It has an incompatible calling convention.
3586 elif test $ac_prog = install &&
3587 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3588 # program-specific install script used by HP pwplus--don't use.
3590 else
3591 rm -rf conftest.one conftest.two conftest.dir
3592 echo one > conftest.one
3593 echo two > conftest.two
3594 mkdir conftest.dir
3595 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3596 test -s conftest.one && test -s conftest.two &&
3597 test -s conftest.dir/conftest.one &&
3598 test -s conftest.dir/conftest.two
3599 then
3600 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3601 break 3
3605 done
3606 done
3608 esac
3609 done
3611 rm -rf conftest.one conftest.two conftest.dir
3614 if test "${ac_cv_path_install+set}" = set; then
3615 INSTALL=$ac_cv_path_install
3616 else
3617 # As a last resort, use the slow shell script. Don't cache a
3618 # value for INSTALL within a source directory, because that will
3619 # break other packages using the cache if that directory is
3620 # removed, or if the value is a relative name.
3621 INSTALL=$ac_install_sh
3624 echo "$as_me:$LINENO: result: $INSTALL" >&5
3625 echo "${ECHO_T}$INSTALL" >&6
3627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3628 # It thinks the first close brace ends the variable substitution.
3629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3636 # See if makeinfo has been installed and is modern enough
3637 # that we can use it.
3639 # Extract the first word of "makeinfo", so it can be a program name with args.
3640 set dummy makeinfo; ac_word=$2
3641 echo "$as_me:$LINENO: checking for $ac_word" >&5
3642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3643 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 else
3646 if test -n "$MAKEINFO"; then
3647 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3648 else
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $PATH
3652 IFS=$as_save_IFS
3653 test -z "$as_dir" && as_dir=.
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3656 ac_cv_prog_MAKEINFO="makeinfo"
3657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 break 2
3660 done
3661 done
3665 MAKEINFO=$ac_cv_prog_MAKEINFO
3666 if test -n "$MAKEINFO"; then
3667 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3668 echo "${ECHO_T}$MAKEINFO" >&6
3669 else
3670 echo "$as_me:$LINENO: result: no" >&5
3671 echo "${ECHO_T}no" >&6
3674 if test -n "$MAKEINFO"; then
3675 # Found it, now check the version.
3676 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3677 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3678 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3682 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3684 case $ac_prog_version in
3685 '') gcc_cv_prog_makeinfo_modern=no;;
3686 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3687 *) gcc_cv_prog_makeinfo_modern=no;;
3688 esac
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 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4360 if test -n $lt_cv_sys_max_cmd_len; then
4361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4362 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4363 else
4364 # Make teststring a little bigger before we do anything with it.
4365 # a 1K string should be a reasonable start.
4366 for i in 1 2 3 4 5 6 7 8 ; do
4367 teststring=$teststring$teststring
4368 done
4369 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4370 # If test is not a shell built-in, we'll probably end up computing a
4371 # maximum length that is only half of the actual maximum length, but
4372 # we can't tell.
4373 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4374 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4375 test $i != 17 # 1/2 MB should be enough
4377 i=`expr $i + 1`
4378 teststring=$teststring$teststring
4379 done
4380 # Only check the string length outside the loop.
4381 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4382 teststring=
4383 # Add a significant safety factor because C++ compilers can tack on
4384 # massive amounts of additional arguments before passing them to the
4385 # linker. It appears as though 1/2 is a usable value.
4386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4389 esac
4393 if test -n $lt_cv_sys_max_cmd_len ; then
4394 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4395 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4396 else
4397 echo "$as_me:$LINENO: result: none" >&5
4398 echo "${ECHO_T}none" >&6
4400 max_cmd_len=$lt_cv_sys_max_cmd_len
4408 : ${CP="cp -f"}
4409 : ${MV="mv -f"}
4410 : ${RM="rm -f"}
4412 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4413 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4414 # Try some XSI features
4415 xsi_shell=no
4416 ( _lt_dummy="a/b/c"
4417 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4418 = c,a/b,, ) >/dev/null 2>&1 \
4419 && xsi_shell=yes
4420 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4421 echo "${ECHO_T}$xsi_shell" >&6
4424 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4425 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4426 lt_shell_append=no
4427 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4428 >/dev/null 2>&1 \
4429 && lt_shell_append=yes
4430 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4431 echo "${ECHO_T}$lt_shell_append" >&6
4434 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4435 lt_unset=unset
4436 else
4437 lt_unset=false
4444 # test EBCDIC or ASCII
4445 case `echo X|tr X '\101'` in
4446 A) # ASCII based system
4447 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4448 lt_SP2NL='tr \040 \012'
4449 lt_NL2SP='tr \015\012 \040\040'
4451 *) # EBCDIC based system
4452 lt_SP2NL='tr \100 \n'
4453 lt_NL2SP='tr \r\n \100\100'
4455 esac
4465 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4466 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4467 if test "${lt_cv_ld_reload_flag+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470 lt_cv_ld_reload_flag='-r'
4472 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4473 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4474 reload_flag=$lt_cv_ld_reload_flag
4475 case $reload_flag in
4476 "" | " "*) ;;
4477 *) reload_flag=" $reload_flag" ;;
4478 esac
4479 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4480 case $host_os in
4481 darwin*)
4482 if test "$GCC" = yes; then
4483 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4484 else
4485 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4488 esac
4499 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4500 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4501 if test "${lt_cv_deplibs_check_method+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504 lt_cv_file_magic_cmd='$MAGIC_CMD'
4505 lt_cv_file_magic_test_file=
4506 lt_cv_deplibs_check_method='unknown'
4507 # Need to set the preceding variable on all platforms that support
4508 # interlibrary dependencies.
4509 # 'none' -- dependencies not supported.
4510 # `unknown' -- same as none, but documents that we really don't know.
4511 # 'pass_all' -- all dependencies passed with no checks.
4512 # 'test_compile' -- check by making test program.
4513 # 'file_magic [[regex]]' -- check by looking for files in library path
4514 # which responds to the $file_magic_cmd with a given extended regex.
4515 # If you have `file' or equivalent on your system and you're not sure
4516 # whether `pass_all' will *always* work, you probably want this one.
4518 case $host_os in
4519 aix[4-9]*)
4520 lt_cv_deplibs_check_method=pass_all
4523 beos*)
4524 lt_cv_deplibs_check_method=pass_all
4527 bsdi[45]*)
4528 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4529 lt_cv_file_magic_cmd='/usr/bin/file -L'
4530 lt_cv_file_magic_test_file=/shlib/libc.so
4533 cygwin*)
4534 # func_win32_libid is a shell function defined in ltmain.sh
4535 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4536 lt_cv_file_magic_cmd='func_win32_libid'
4539 mingw* | pw32*)
4540 # Base MSYS/MinGW do not provide the 'file' command needed by
4541 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4542 # unless we find 'file', for example because we are cross-compiling.
4543 if ( file / ) >/dev/null 2>&1; then
4544 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4545 lt_cv_file_magic_cmd='func_win32_libid'
4546 else
4547 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4548 lt_cv_file_magic_cmd='$OBJDUMP -f'
4552 darwin* | rhapsody*)
4553 lt_cv_deplibs_check_method=pass_all
4556 freebsd* | dragonfly*)
4557 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4558 case $host_cpu in
4559 i*86 )
4560 # Not sure whether the presence of OpenBSD here was a mistake.
4561 # Let's accept both of them until this is cleared up.
4562 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4563 lt_cv_file_magic_cmd=/usr/bin/file
4564 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4566 esac
4567 else
4568 lt_cv_deplibs_check_method=pass_all
4572 gnu*)
4573 lt_cv_deplibs_check_method=pass_all
4576 hpux10.20* | hpux11*)
4577 lt_cv_file_magic_cmd=/usr/bin/file
4578 case $host_cpu in
4579 ia64*)
4580 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4581 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4583 hppa*64*)
4584 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]'
4585 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4588 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4589 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4591 esac
4594 interix[3-9]*)
4595 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4599 irix5* | irix6* | nonstopux*)
4600 case $LD in
4601 *-32|*"-32 ") libmagic=32-bit;;
4602 *-n32|*"-n32 ") libmagic=N32;;
4603 *-64|*"-64 ") libmagic=64-bit;;
4604 *) libmagic=never-match;;
4605 esac
4606 lt_cv_deplibs_check_method=pass_all
4609 # This must be Linux ELF.
4610 linux* | k*bsd*-gnu)
4611 lt_cv_deplibs_check_method=pass_all
4614 netbsd*)
4615 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4616 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4617 else
4618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4622 newos6*)
4623 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4624 lt_cv_file_magic_cmd=/usr/bin/file
4625 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4628 *nto* | *qnx*)
4629 lt_cv_deplibs_check_method=pass_all
4632 openbsd*)
4633 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4635 else
4636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4640 osf3* | osf4* | osf5*)
4641 lt_cv_deplibs_check_method=pass_all
4644 rdos*)
4645 lt_cv_deplibs_check_method=pass_all
4648 solaris*)
4649 lt_cv_deplibs_check_method=pass_all
4652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4653 lt_cv_deplibs_check_method=pass_all
4656 sysv4 | sysv4.3*)
4657 case $host_vendor in
4658 motorola)
4659 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]'
4660 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4662 ncr)
4663 lt_cv_deplibs_check_method=pass_all
4665 sequent)
4666 lt_cv_file_magic_cmd='/bin/file'
4667 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4669 sni)
4670 lt_cv_file_magic_cmd='/bin/file'
4671 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4672 lt_cv_file_magic_test_file=/lib/libc.so
4674 siemens)
4675 lt_cv_deplibs_check_method=pass_all
4678 lt_cv_deplibs_check_method=pass_all
4680 esac
4683 tpf*)
4684 lt_cv_deplibs_check_method=pass_all
4686 esac
4689 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4690 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4691 file_magic_cmd=$lt_cv_file_magic_cmd
4692 deplibs_check_method=$lt_cv_deplibs_check_method
4693 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4706 if test -n "$ac_tool_prefix"; then
4707 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4708 set dummy ${ac_tool_prefix}ar; ac_word=$2
4709 echo "$as_me:$LINENO: checking for $ac_word" >&5
4710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4711 if test "${ac_cv_prog_AR+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714 if test -n "$AR"; then
4715 ac_cv_prog_AR="$AR" # Let the user override the test.
4716 else
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4724 ac_cv_prog_AR="${ac_tool_prefix}ar"
4725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 break 2
4728 done
4729 done
4733 AR=$ac_cv_prog_AR
4734 if test -n "$AR"; then
4735 echo "$as_me:$LINENO: result: $AR" >&5
4736 echo "${ECHO_T}$AR" >&6
4737 else
4738 echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6
4743 if test -z "$ac_cv_prog_AR"; then
4744 ac_ct_AR=$AR
4745 # Extract the first word of "ar", so it can be a program name with args.
4746 set dummy ar; ac_word=$2
4747 echo "$as_me:$LINENO: checking for $ac_word" >&5
4748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4749 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752 if test -n "$ac_ct_AR"; then
4753 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4754 else
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4762 ac_cv_prog_ac_ct_AR="ar"
4763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 break 2
4766 done
4767 done
4769 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4772 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4773 if test -n "$ac_ct_AR"; then
4774 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4775 echo "${ECHO_T}$ac_ct_AR" >&6
4776 else
4777 echo "$as_me:$LINENO: result: no" >&5
4778 echo "${ECHO_T}no" >&6
4781 AR=$ac_ct_AR
4782 else
4783 AR="$ac_cv_prog_AR"
4786 test -z "$AR" && AR=ar
4787 test -z "$AR_FLAGS" && AR_FLAGS=cru
4799 if test -n "$ac_tool_prefix"; then
4800 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4801 set dummy ${ac_tool_prefix}strip; ac_word=$2
4802 echo "$as_me:$LINENO: checking for $ac_word" >&5
4803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4804 if test "${ac_cv_prog_STRIP+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807 if test -n "$STRIP"; then
4808 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4809 else
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH
4813 IFS=$as_save_IFS
4814 test -z "$as_dir" && as_dir=.
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4817 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4819 break 2
4821 done
4822 done
4826 STRIP=$ac_cv_prog_STRIP
4827 if test -n "$STRIP"; then
4828 echo "$as_me:$LINENO: result: $STRIP" >&5
4829 echo "${ECHO_T}$STRIP" >&6
4830 else
4831 echo "$as_me:$LINENO: result: no" >&5
4832 echo "${ECHO_T}no" >&6
4836 if test -z "$ac_cv_prog_STRIP"; then
4837 ac_ct_STRIP=$STRIP
4838 # Extract the first word of "strip", so it can be a program name with args.
4839 set dummy strip; ac_word=$2
4840 echo "$as_me:$LINENO: checking for $ac_word" >&5
4841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4842 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845 if test -n "$ac_ct_STRIP"; then
4846 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4847 else
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4851 IFS=$as_save_IFS
4852 test -z "$as_dir" && as_dir=.
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4855 ac_cv_prog_ac_ct_STRIP="strip"
4856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 break 2
4859 done
4860 done
4862 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4865 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4866 if test -n "$ac_ct_STRIP"; then
4867 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4868 echo "${ECHO_T}$ac_ct_STRIP" >&6
4869 else
4870 echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6
4874 STRIP=$ac_ct_STRIP
4875 else
4876 STRIP="$ac_cv_prog_STRIP"
4879 test -z "$STRIP" && STRIP=:
4886 if test -n "$ac_tool_prefix"; then
4887 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4888 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4889 echo "$as_me:$LINENO: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4891 if test "${ac_cv_prog_RANLIB+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894 if test -n "$RANLIB"; then
4895 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4896 else
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4904 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 break 2
4908 done
4909 done
4913 RANLIB=$ac_cv_prog_RANLIB
4914 if test -n "$RANLIB"; then
4915 echo "$as_me:$LINENO: result: $RANLIB" >&5
4916 echo "${ECHO_T}$RANLIB" >&6
4917 else
4918 echo "$as_me:$LINENO: result: no" >&5
4919 echo "${ECHO_T}no" >&6
4923 if test -z "$ac_cv_prog_RANLIB"; then
4924 ac_ct_RANLIB=$RANLIB
4925 # Extract the first word of "ranlib", so it can be a program name with args.
4926 set dummy ranlib; ac_word=$2
4927 echo "$as_me:$LINENO: checking for $ac_word" >&5
4928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4929 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932 if test -n "$ac_ct_RANLIB"; then
4933 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4942 ac_cv_prog_ac_ct_RANLIB="ranlib"
4943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 break 2
4946 done
4947 done
4949 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4952 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4953 if test -n "$ac_ct_RANLIB"; then
4954 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4955 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4956 else
4957 echo "$as_me:$LINENO: result: no" >&5
4958 echo "${ECHO_T}no" >&6
4961 RANLIB=$ac_ct_RANLIB
4962 else
4963 RANLIB="$ac_cv_prog_RANLIB"
4966 test -z "$RANLIB" && RANLIB=:
4973 # Determine commands to create old-style static archives.
4974 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4975 old_postinstall_cmds='chmod 644 $oldlib'
4976 old_postuninstall_cmds=
4978 if test -n "$RANLIB"; then
4979 case $host_os in
4980 openbsd*)
4981 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4984 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4986 esac
4987 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5023 # If no C compiler was specified, use CC.
5024 LTCC=${LTCC-"$CC"}
5026 # If no C compiler flags were specified, use CFLAGS.
5027 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5029 # Allow CC to be a program name with arguments.
5030 compiler=$CC
5033 # Check for command to grab the raw symbol name followed by C symbol from nm.
5034 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5035 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5036 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5040 # These are sane defaults that work on at least a few old systems.
5041 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5043 # Character class describing NM global symbol codes.
5044 symcode='[BCDEGRST]'
5046 # Regexp to match symbols that can be accessed directly from C.
5047 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5049 # Define system-specific variables.
5050 case $host_os in
5051 aix*)
5052 symcode='[BCDT]'
5054 cygwin* | mingw* | pw32*)
5055 symcode='[ABCDGISTW]'
5057 hpux*)
5058 if test "$host_cpu" = ia64; then
5059 symcode='[ABCDEGRST]'
5062 irix* | nonstopux*)
5063 symcode='[BCDEGRST]'
5065 osf*)
5066 symcode='[BCDEGQRST]'
5068 solaris*)
5069 symcode='[BDRT]'
5071 sco3.2v5*)
5072 symcode='[DT]'
5074 sysv4.2uw2*)
5075 symcode='[DT]'
5077 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5078 symcode='[ABDT]'
5080 sysv4)
5081 symcode='[DFNSTU]'
5083 esac
5085 # If we're using GNU nm, then use its standard symbol codes.
5086 case `$NM -V 2>&1` in
5087 *GNU* | *'with BFD'*)
5088 symcode='[ABCDGIRSTW]' ;;
5089 esac
5091 # Transform an extracted symbol line into a proper C declaration.
5092 # Some systems (esp. on ia64) link data and code symbols differently,
5093 # so use this general approach.
5094 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5096 # Transform an extracted symbol line into symbol name and symbol address
5097 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5099 # Handle CRLF in mingw tool chain
5100 opt_cr=
5101 case $build_os in
5102 mingw*)
5103 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5105 esac
5107 # Try without a prefix underscore, then with it.
5108 for ac_symprfx in "" "_"; do
5110 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5111 symxfrm="\\1 $ac_symprfx\\2 \\2"
5113 # Write the raw and C identifiers.
5114 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5115 # Fake it for dumpbin and say T for any non-static function
5116 # and D for any global variable.
5117 # Also find C++ and __fastcall symbols from MSVC++,
5118 # which start with @ or ?.
5119 lt_cv_sys_global_symbol_pipe="$AWK '"\
5120 " {last_section=section; section=\$ 3};"\
5121 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5122 " \$ 0!~/External *\|/{next};"\
5123 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5124 " {if(hide[section]) next};"\
5125 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5126 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5127 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5128 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5129 " ' prfx=^$ac_symprfx"
5130 else
5131 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5134 # Check to see that the pipe works correctly.
5135 pipe_works=no
5137 rm -f conftest*
5138 cat > conftest.$ac_ext <<_LT_EOF
5139 #ifdef __cplusplus
5140 extern "C" {
5141 #endif
5142 char nm_test_var;
5143 void nm_test_func(void);
5144 void nm_test_func(void){}
5145 #ifdef __cplusplus
5147 #endif
5148 int main(){nm_test_var='a';nm_test_func();return(0);}
5149 _LT_EOF
5151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5152 (eval $ac_compile) 2>&5
5153 ac_status=$?
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); }; then
5156 # Now try to grab the symbols.
5157 nlist=conftest.nm
5158 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5159 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5160 ac_status=$?
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } && test -s "$nlist"; then
5163 # Try sorting and uniquifying the output.
5164 if sort "$nlist" | uniq > "$nlist"T; then
5165 mv -f "$nlist"T "$nlist"
5166 else
5167 rm -f "$nlist"T
5170 # Make sure that we snagged all the symbols we need.
5171 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5172 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5173 cat <<_LT_EOF > conftest.$ac_ext
5174 #ifdef __cplusplus
5175 extern "C" {
5176 #endif
5178 _LT_EOF
5179 # Now generate the symbol file.
5180 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5182 cat <<_LT_EOF >> conftest.$ac_ext
5184 /* The mapping between symbol names and symbols. */
5185 const struct {
5186 const char *name;
5187 void *address;
5189 lt__PROGRAM__LTX_preloaded_symbols[] =
5191 { "@PROGRAM@", (void *) 0 },
5192 _LT_EOF
5193 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5194 cat <<\_LT_EOF >> conftest.$ac_ext
5195 {0, (void *) 0}
5198 /* This works around a problem in FreeBSD linker */
5199 #ifdef FREEBSD_WORKAROUND
5200 static const void *lt_preloaded_setup() {
5201 return lt__PROGRAM__LTX_preloaded_symbols;
5203 #endif
5205 #ifdef __cplusplus
5207 #endif
5208 _LT_EOF
5209 # Now try linking the two files.
5210 mv conftest.$ac_objext conftstm.$ac_objext
5211 lt_save_LIBS="$LIBS"
5212 lt_save_CFLAGS="$CFLAGS"
5213 LIBS="conftstm.$ac_objext"
5214 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5216 (eval $ac_link) 2>&5
5217 ac_status=$?
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5220 pipe_works=yes
5222 LIBS="$lt_save_LIBS"
5223 CFLAGS="$lt_save_CFLAGS"
5224 else
5225 echo "cannot find nm_test_func in $nlist" >&5
5227 else
5228 echo "cannot find nm_test_var in $nlist" >&5
5230 else
5231 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5233 else
5234 echo "$progname: failed program was:" >&5
5235 cat conftest.$ac_ext >&5
5237 rm -f conftest* conftst*
5239 # Do not use the global_symbol_pipe unless it works.
5240 if test "$pipe_works" = yes; then
5241 break
5242 else
5243 lt_cv_sys_global_symbol_pipe=
5245 done
5249 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5250 lt_cv_sys_global_symbol_to_cdecl=
5252 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5253 echo "$as_me:$LINENO: result: failed" >&5
5254 echo "${ECHO_T}failed" >&6
5255 else
5256 echo "$as_me:$LINENO: result: ok" >&5
5257 echo "${ECHO_T}ok" >&6
5277 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5278 if test "${enable_libtool_lock+set}" = set; then
5279 enableval="$enable_libtool_lock"
5282 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5284 # Some flags need to be propagated to the compiler or linker for good
5285 # libtool support.
5286 case $host in
5287 ia64-*-hpux*)
5288 # Find out which ABI we are using.
5289 echo 'int i;' > conftest.$ac_ext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5291 (eval $ac_compile) 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; then
5295 case `/usr/bin/file conftest.$ac_objext` in
5296 *ELF-32*)
5297 HPUX_IA64_MODE="32"
5299 *ELF-64*)
5300 HPUX_IA64_MODE="64"
5302 esac
5304 rm -rf conftest*
5306 *-*-irix6*)
5307 # Find out which ABI we are using.
5308 echo '#line 5308 "configure"' > conftest.$ac_ext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310 (eval $ac_compile) 2>&5
5311 ac_status=$?
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; then
5314 if test "$lt_cv_prog_gnu_ld" = yes; then
5315 case `/usr/bin/file conftest.$ac_objext` in
5316 *32-bit*)
5317 LD="${LD-ld} -melf32bsmip"
5319 *N32*)
5320 LD="${LD-ld} -melf32bmipn32"
5322 *64-bit*)
5323 LD="${LD-ld} -melf64bmip"
5325 esac
5326 else
5327 case `/usr/bin/file conftest.$ac_objext` in
5328 *32-bit*)
5329 LD="${LD-ld} -32"
5331 *N32*)
5332 LD="${LD-ld} -n32"
5334 *64-bit*)
5335 LD="${LD-ld} -64"
5337 esac
5340 rm -rf conftest*
5343 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5344 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5345 # Find out which ABI we are using.
5346 echo 'int i;' > conftest.$ac_ext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5348 (eval $ac_compile) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; then
5352 case `/usr/bin/file conftest.o` in
5353 *32-bit*)
5354 case $host in
5355 x86_64-*kfreebsd*-gnu)
5356 LD="${LD-ld} -m elf_i386_fbsd"
5358 x86_64-*linux*)
5359 LD="${LD-ld} -m elf_i386"
5361 ppc64-*linux*|powerpc64-*linux*)
5362 LD="${LD-ld} -m elf32ppclinux"
5364 s390x-*linux*)
5365 LD="${LD-ld} -m elf_s390"
5367 sparc64-*linux*)
5368 LD="${LD-ld} -m elf32_sparc"
5370 esac
5372 *64-bit*)
5373 case $host in
5374 x86_64-*kfreebsd*-gnu)
5375 LD="${LD-ld} -m elf_x86_64_fbsd"
5377 x86_64-*linux*)
5378 LD="${LD-ld} -m elf_x86_64"
5380 ppc*-*linux*|powerpc*-*linux*)
5381 LD="${LD-ld} -m elf64ppc"
5383 s390*-*linux*|s390*-*tpf*)
5384 LD="${LD-ld} -m elf64_s390"
5386 sparc*-*linux*)
5387 LD="${LD-ld} -m elf64_sparc"
5389 esac
5391 esac
5393 rm -rf conftest*
5396 *-*-sco3.2v5*)
5397 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5398 SAVE_CFLAGS="$CFLAGS"
5399 CFLAGS="$CFLAGS -belf"
5400 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5401 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5402 if test "${lt_cv_cc_needs_belf+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405 ac_ext=c
5406 ac_cpp='$CPP $CPPFLAGS'
5407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5411 cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h. */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5419 main ()
5423 return 0;
5425 _ACEOF
5426 rm -f conftest.$ac_objext conftest$ac_exeext
5427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5428 (eval $ac_link) 2>conftest.er1
5429 ac_status=$?
5430 grep -v '^ *+' conftest.er1 >conftest.err
5431 rm -f conftest.er1
5432 cat conftest.err >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } &&
5435 { ac_try='test -z "$ac_c_werror_flag"
5436 || test ! -s conftest.err'
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); }; } &&
5442 { ac_try='test -s conftest$ac_exeext'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444 (eval $ac_try) 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5448 lt_cv_cc_needs_belf=yes
5449 else
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5453 lt_cv_cc_needs_belf=no
5455 rm -f conftest.err conftest.$ac_objext \
5456 conftest$ac_exeext conftest.$ac_ext
5457 ac_ext=c
5458 ac_cpp='$CPP $CPPFLAGS'
5459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5464 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5465 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5466 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5467 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5468 CFLAGS="$SAVE_CFLAGS"
5471 sparc*-*solaris*)
5472 # Find out which ABI we are using.
5473 echo 'int i;' > conftest.$ac_ext
5474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5475 (eval $ac_compile) 2>&5
5476 ac_status=$?
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; then
5479 case `/usr/bin/file conftest.o` in
5480 *64-bit*)
5481 case $lt_cv_prog_gnu_ld in
5482 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5483 *) LD="${LD-ld} -64" ;;
5484 esac
5486 esac
5488 rm -rf conftest*
5490 esac
5492 need_locks="$enable_libtool_lock"
5494 ac_ext=c
5495 ac_cpp='$CPP $CPPFLAGS'
5496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5499 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5500 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5501 # On Suns, sometimes $CPP names a directory.
5502 if test -n "$CPP" && test -d "$CPP"; then
5503 CPP=
5505 if test -z "$CPP"; then
5506 if test "${ac_cv_prog_CPP+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509 # Double quotes because CPP needs to be expanded
5510 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5512 ac_preproc_ok=false
5513 for ac_c_preproc_warn_flag in '' yes
5515 # Use a header file that comes with gcc, so configuring glibc
5516 # with a fresh cross-compiler works.
5517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5518 # <limits.h> exists even on freestanding compilers.
5519 # On the NeXT, cc -E runs the code through the compiler's parser,
5520 # not just through cpp. "Syntax error" is here to catch this case.
5521 cat >conftest.$ac_ext <<_ACEOF
5522 /* confdefs.h. */
5523 _ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5527 #ifdef __STDC__
5528 # include <limits.h>
5529 #else
5530 # include <assert.h>
5531 #endif
5532 Syntax error
5533 _ACEOF
5534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5536 ac_status=$?
5537 grep -v '^ *+' conftest.er1 >conftest.err
5538 rm -f conftest.er1
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } >/dev/null; then
5542 if test -s conftest.err; then
5543 ac_cpp_err=$ac_c_preproc_warn_flag
5544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5545 else
5546 ac_cpp_err=
5548 else
5549 ac_cpp_err=yes
5551 if test -z "$ac_cpp_err"; then
5553 else
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5557 # Broken: fails on valid input.
5558 continue
5560 rm -f conftest.err conftest.$ac_ext
5562 # OK, works on sane cases. Now check whether non-existent headers
5563 # can be detected and how.
5564 cat >conftest.$ac_ext <<_ACEOF
5565 /* confdefs.h. */
5566 _ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5570 #include <ac_nonexistent.h>
5571 _ACEOF
5572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5574 ac_status=$?
5575 grep -v '^ *+' conftest.er1 >conftest.err
5576 rm -f conftest.er1
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } >/dev/null; then
5580 if test -s conftest.err; then
5581 ac_cpp_err=$ac_c_preproc_warn_flag
5582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5583 else
5584 ac_cpp_err=
5586 else
5587 ac_cpp_err=yes
5589 if test -z "$ac_cpp_err"; then
5590 # Broken: success on invalid input.
5591 continue
5592 else
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5596 # Passes both tests.
5597 ac_preproc_ok=:
5598 break
5600 rm -f conftest.err conftest.$ac_ext
5602 done
5603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5604 rm -f conftest.err conftest.$ac_ext
5605 if $ac_preproc_ok; then
5606 break
5609 done
5610 ac_cv_prog_CPP=$CPP
5613 CPP=$ac_cv_prog_CPP
5614 else
5615 ac_cv_prog_CPP=$CPP
5617 echo "$as_me:$LINENO: result: $CPP" >&5
5618 echo "${ECHO_T}$CPP" >&6
5619 ac_preproc_ok=false
5620 for ac_c_preproc_warn_flag in '' yes
5622 # Use a header file that comes with gcc, so configuring glibc
5623 # with a fresh cross-compiler works.
5624 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5625 # <limits.h> exists even on freestanding compilers.
5626 # On the NeXT, cc -E runs the code through the compiler's parser,
5627 # not just through cpp. "Syntax error" is here to catch this case.
5628 cat >conftest.$ac_ext <<_ACEOF
5629 /* confdefs.h. */
5630 _ACEOF
5631 cat confdefs.h >>conftest.$ac_ext
5632 cat >>conftest.$ac_ext <<_ACEOF
5633 /* end confdefs.h. */
5634 #ifdef __STDC__
5635 # include <limits.h>
5636 #else
5637 # include <assert.h>
5638 #endif
5639 Syntax error
5640 _ACEOF
5641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5643 ac_status=$?
5644 grep -v '^ *+' conftest.er1 >conftest.err
5645 rm -f conftest.er1
5646 cat conftest.err >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } >/dev/null; then
5649 if test -s conftest.err; then
5650 ac_cpp_err=$ac_c_preproc_warn_flag
5651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5652 else
5653 ac_cpp_err=
5655 else
5656 ac_cpp_err=yes
5658 if test -z "$ac_cpp_err"; then
5660 else
5661 echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.$ac_ext >&5
5664 # Broken: fails on valid input.
5665 continue
5667 rm -f conftest.err conftest.$ac_ext
5669 # OK, works on sane cases. Now check whether non-existent headers
5670 # can be detected and how.
5671 cat >conftest.$ac_ext <<_ACEOF
5672 /* confdefs.h. */
5673 _ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5677 #include <ac_nonexistent.h>
5678 _ACEOF
5679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5681 ac_status=$?
5682 grep -v '^ *+' conftest.er1 >conftest.err
5683 rm -f conftest.er1
5684 cat conftest.err >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } >/dev/null; then
5687 if test -s conftest.err; then
5688 ac_cpp_err=$ac_c_preproc_warn_flag
5689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5690 else
5691 ac_cpp_err=
5693 else
5694 ac_cpp_err=yes
5696 if test -z "$ac_cpp_err"; then
5697 # Broken: success on invalid input.
5698 continue
5699 else
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5703 # Passes both tests.
5704 ac_preproc_ok=:
5705 break
5707 rm -f conftest.err conftest.$ac_ext
5709 done
5710 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5711 rm -f conftest.err conftest.$ac_ext
5712 if $ac_preproc_ok; then
5714 else
5715 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5716 See \`config.log' for more details." >&5
5717 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5718 See \`config.log' for more details." >&2;}
5719 { (exit 1); exit 1; }; }
5722 ac_ext=c
5723 ac_cpp='$CPP $CPPFLAGS'
5724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5729 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5730 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5731 if test "${ac_cv_header_stdc+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h. */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740 #include <stdlib.h>
5741 #include <stdarg.h>
5742 #include <string.h>
5743 #include <float.h>
5746 main ()
5750 return 0;
5752 _ACEOF
5753 rm -f conftest.$ac_objext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -z "$ac_c_werror_flag"
5763 || test ! -s conftest.err'
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); }; } &&
5769 { ac_try='test -s conftest.$ac_objext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 (eval $ac_try) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 ac_cv_header_stdc=yes
5776 else
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5780 ac_cv_header_stdc=no
5782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5784 if test $ac_cv_header_stdc = yes; then
5785 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5786 cat >conftest.$ac_ext <<_ACEOF
5787 /* confdefs.h. */
5788 _ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h. */
5792 #include <string.h>
5794 _ACEOF
5795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5796 $EGREP "memchr" >/dev/null 2>&1; then
5798 else
5799 ac_cv_header_stdc=no
5801 rm -f conftest*
5805 if test $ac_cv_header_stdc = yes; then
5806 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5807 cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h. */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5813 #include <stdlib.h>
5815 _ACEOF
5816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5817 $EGREP "free" >/dev/null 2>&1; then
5819 else
5820 ac_cv_header_stdc=no
5822 rm -f conftest*
5826 if test $ac_cv_header_stdc = yes; then
5827 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5828 if test "$cross_compiling" = yes; then
5830 else
5831 cat >conftest.$ac_ext <<_ACEOF
5832 /* confdefs.h. */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5837 #include <ctype.h>
5838 #if ((' ' & 0x0FF) == 0x020)
5839 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5840 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5841 #else
5842 # define ISLOWER(c) \
5843 (('a' <= (c) && (c) <= 'i') \
5844 || ('j' <= (c) && (c) <= 'r') \
5845 || ('s' <= (c) && (c) <= 'z'))
5846 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5847 #endif
5849 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5851 main ()
5853 int i;
5854 for (i = 0; i < 256; i++)
5855 if (XOR (islower (i), ISLOWER (i))
5856 || toupper (i) != TOUPPER (i))
5857 exit(2);
5858 exit (0);
5860 _ACEOF
5861 rm -f conftest$ac_exeext
5862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5863 (eval $ac_link) 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 (eval $ac_try) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; }; then
5873 else
5874 echo "$as_me: program exited with status $ac_status" >&5
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5878 ( exit $ac_status )
5879 ac_cv_header_stdc=no
5881 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5885 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5886 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5887 if test $ac_cv_header_stdc = yes; then
5889 cat >>confdefs.h <<\_ACEOF
5890 #define STDC_HEADERS 1
5891 _ACEOF
5895 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5905 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5906 inttypes.h stdint.h unistd.h
5908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5909 echo "$as_me:$LINENO: checking for $ac_header" >&5
5910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914 cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h. */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 $ac_includes_default
5922 #include <$ac_header>
5923 _ACEOF
5924 rm -f conftest.$ac_objext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5926 (eval $ac_compile) 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } &&
5933 { ac_try='test -z "$ac_c_werror_flag"
5934 || test ! -s conftest.err'
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); }; } &&
5940 { ac_try='test -s conftest.$ac_objext'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 (eval $ac_try) 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
5946 eval "$as_ac_Header=yes"
5947 else
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5951 eval "$as_ac_Header=no"
5953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5958 cat >>confdefs.h <<_ACEOF
5959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5960 _ACEOF
5964 done
5968 for ac_header in dlfcn.h
5970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5971 echo "$as_me:$LINENO: checking for $ac_header" >&5
5972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976 cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h. */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 $ac_includes_default
5984 #include <$ac_header>
5985 _ACEOF
5986 rm -f conftest.$ac_objext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5988 (eval $ac_compile) 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try='test -z "$ac_c_werror_flag"
5996 || test ! -s conftest.err'
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); }; } &&
6002 { ac_try='test -s conftest.$ac_objext'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 (eval $ac_try) 2>&5
6005 ac_status=$?
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6008 eval "$as_ac_Header=yes"
6009 else
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6013 eval "$as_ac_Header=no"
6015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6020 cat >>confdefs.h <<_ACEOF
6021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6022 _ACEOF
6026 done
6030 # This can be used to rebuild libtool when needed
6031 LIBTOOL_DEPS="$ltmain"
6033 # Always use our own libtool.
6034 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6060 test -z "$LN_S" && LN_S="ln -s"
6075 if test -n "${ZSH_VERSION+set}" ; then
6076 setopt NO_GLOB_SUBST
6079 echo "$as_me:$LINENO: checking for objdir" >&5
6080 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6081 if test "${lt_cv_objdir+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084 rm -f .libs 2>/dev/null
6085 mkdir .libs 2>/dev/null
6086 if test -d .libs; then
6087 lt_cv_objdir=.libs
6088 else
6089 # MS-DOS does not allow filenames that begin with a dot.
6090 lt_cv_objdir=_libs
6092 rmdir .libs 2>/dev/null
6094 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6095 echo "${ECHO_T}$lt_cv_objdir" >&6
6096 objdir=$lt_cv_objdir
6102 cat >>confdefs.h <<_ACEOF
6103 #define LT_OBJDIR "$lt_cv_objdir/"
6104 _ACEOF
6122 case $host_os in
6123 aix3*)
6124 # AIX sometimes has problems with the GCC collect2 program. For some
6125 # reason, if we set the COLLECT_NAMES environment variable, the problems
6126 # vanish in a puff of smoke.
6127 if test "X${COLLECT_NAMES+set}" != Xset; then
6128 COLLECT_NAMES=
6129 export COLLECT_NAMES
6132 esac
6134 # Sed substitution that helps us do robust quoting. It backslashifies
6135 # metacharacters that are still active within double-quoted strings.
6136 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6138 # Same as above, but do not quote variable references.
6139 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6141 # Sed substitution to delay expansion of an escaped shell variable in a
6142 # double_quote_subst'ed string.
6143 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6145 # Sed substitution to delay expansion of an escaped single quote.
6146 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6148 # Sed substitution to avoid accidental globbing in evaled expressions
6149 no_glob_subst='s/\*/\\\*/g'
6151 # Global variables:
6152 ofile=libtool
6153 can_build_shared=yes
6155 # All known linkers require a `.a' archive for static linking (except MSVC,
6156 # which needs '.lib').
6157 libext=a
6159 with_gnu_ld="$lt_cv_prog_gnu_ld"
6161 old_CC="$CC"
6162 old_CFLAGS="$CFLAGS"
6164 # Set sane defaults for various variables
6165 test -z "$CC" && CC=cc
6166 test -z "$LTCC" && LTCC=$CC
6167 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6168 test -z "$LD" && LD=ld
6169 test -z "$ac_objext" && ac_objext=o
6171 for cc_temp in $compiler""; do
6172 case $cc_temp in
6173 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6174 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6175 \-*) ;;
6176 *) break;;
6177 esac
6178 done
6179 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6182 # Only perform the check for file, if the check method requires it
6183 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6184 case $deplibs_check_method in
6185 file_magic*)
6186 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6187 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6188 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6189 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192 case $MAGIC_CMD in
6193 [\\/*] | ?:[\\/]*)
6194 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6197 lt_save_MAGIC_CMD="$MAGIC_CMD"
6198 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6199 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6200 for ac_dir in $ac_dummy; do
6201 IFS="$lt_save_ifs"
6202 test -z "$ac_dir" && ac_dir=.
6203 if test -f $ac_dir/${ac_tool_prefix}file; then
6204 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6205 if test -n "$file_magic_test_file"; then
6206 case $deplibs_check_method in
6207 "file_magic "*)
6208 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6209 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6210 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6211 $EGREP "$file_magic_regex" > /dev/null; then
6213 else
6214 cat <<_LT_EOF 1>&2
6216 *** Warning: the command libtool uses to detect shared libraries,
6217 *** $file_magic_cmd, produces output that libtool cannot recognize.
6218 *** The result is that libtool may fail to recognize shared libraries
6219 *** as such. This will affect the creation of libtool libraries that
6220 *** depend on shared libraries, but programs linked with such libtool
6221 *** libraries will work regardless of this problem. Nevertheless, you
6222 *** may want to report the problem to your system manager and/or to
6223 *** bug-libtool@gnu.org
6225 _LT_EOF
6226 fi ;;
6227 esac
6229 break
6231 done
6232 IFS="$lt_save_ifs"
6233 MAGIC_CMD="$lt_save_MAGIC_CMD"
6235 esac
6238 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6239 if test -n "$MAGIC_CMD"; then
6240 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6241 echo "${ECHO_T}$MAGIC_CMD" >&6
6242 else
6243 echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6
6251 if test -z "$lt_cv_path_MAGIC_CMD"; then
6252 if test -n "$ac_tool_prefix"; then
6253 echo "$as_me:$LINENO: checking for file" >&5
6254 echo $ECHO_N "checking for file... $ECHO_C" >&6
6255 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258 case $MAGIC_CMD in
6259 [\\/*] | ?:[\\/]*)
6260 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6263 lt_save_MAGIC_CMD="$MAGIC_CMD"
6264 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6265 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6266 for ac_dir in $ac_dummy; do
6267 IFS="$lt_save_ifs"
6268 test -z "$ac_dir" && ac_dir=.
6269 if test -f $ac_dir/file; then
6270 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6271 if test -n "$file_magic_test_file"; then
6272 case $deplibs_check_method in
6273 "file_magic "*)
6274 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6275 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6276 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6277 $EGREP "$file_magic_regex" > /dev/null; then
6279 else
6280 cat <<_LT_EOF 1>&2
6282 *** Warning: the command libtool uses to detect shared libraries,
6283 *** $file_magic_cmd, produces output that libtool cannot recognize.
6284 *** The result is that libtool may fail to recognize shared libraries
6285 *** as such. This will affect the creation of libtool libraries that
6286 *** depend on shared libraries, but programs linked with such libtool
6287 *** libraries will work regardless of this problem. Nevertheless, you
6288 *** may want to report the problem to your system manager and/or to
6289 *** bug-libtool@gnu.org
6291 _LT_EOF
6292 fi ;;
6293 esac
6295 break
6297 done
6298 IFS="$lt_save_ifs"
6299 MAGIC_CMD="$lt_save_MAGIC_CMD"
6301 esac
6304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6305 if test -n "$MAGIC_CMD"; then
6306 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6307 echo "${ECHO_T}$MAGIC_CMD" >&6
6308 else
6309 echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6
6314 else
6315 MAGIC_CMD=:
6321 esac
6323 # Use C for the default configuration in the libtool script
6325 lt_save_CC="$CC"
6326 ac_ext=c
6327 ac_cpp='$CPP $CPPFLAGS'
6328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6333 # Source file extension for C test sources.
6334 ac_ext=c
6336 # Object file extension for compiled C test sources.
6337 objext=o
6338 objext=$objext
6340 # Code to be used in simple compile tests
6341 lt_simple_compile_test_code="int some_variable = 0;"
6343 # Code to be used in simple link tests
6344 lt_simple_link_test_code='int main(){return(0);}'
6352 # If no C compiler was specified, use CC.
6353 LTCC=${LTCC-"$CC"}
6355 # If no C compiler flags were specified, use CFLAGS.
6356 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6358 # Allow CC to be a program name with arguments.
6359 compiler=$CC
6361 # Save the default compiler, since it gets overwritten when the other
6362 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6363 compiler_DEFAULT=$CC
6365 # save warnings/boilerplate of simple test code
6366 ac_outfile=conftest.$ac_objext
6367 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6368 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6369 _lt_compiler_boilerplate=`cat conftest.err`
6370 $RM conftest*
6372 ac_outfile=conftest.$ac_objext
6373 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6374 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6375 _lt_linker_boilerplate=`cat conftest.err`
6376 $RM conftest*
6379 ## CAVEAT EMPTOR:
6380 ## There is no encapsulation within the following macros, do not change
6381 ## the running order or otherwise move them around unless you know exactly
6382 ## what you are doing...
6383 if test -n "$compiler"; then
6385 lt_prog_compiler_no_builtin_flag=
6387 if test "$GCC" = yes; then
6388 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6390 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6391 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6392 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395 lt_cv_prog_compiler_rtti_exceptions=no
6396 ac_outfile=conftest.$ac_objext
6397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6398 lt_compiler_flag="-fno-rtti -fno-exceptions"
6399 # Insert the option either (1) after the last *FLAGS variable, or
6400 # (2) before a word containing "conftest.", or (3) at the end.
6401 # Note that $ac_compile itself does not contain backslashes and begins
6402 # with a dollar sign (not a hyphen), so the echo should work correctly.
6403 # The option is referenced via a variable to avoid confusing sed.
6404 lt_compile=`echo "$ac_compile" | $SED \
6405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6407 -e 's:$: $lt_compiler_flag:'`
6408 (eval echo "\"\$as_me:6408: $lt_compile\"" >&5)
6409 (eval "$lt_compile" 2>conftest.err)
6410 ac_status=$?
6411 cat conftest.err >&5
6412 echo "$as_me:6412: \$? = $ac_status" >&5
6413 if (exit $ac_status) && test -s "$ac_outfile"; then
6414 # The compiler can only warn and ignore the option if not recognized
6415 # So say no if there are warnings other than the usual output.
6416 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6418 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6419 lt_cv_prog_compiler_rtti_exceptions=yes
6422 $RM conftest*
6425 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6426 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6428 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6429 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6430 else
6441 lt_prog_compiler_wl=
6442 lt_prog_compiler_pic=
6443 lt_prog_compiler_static=
6445 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6446 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6448 if test "$GCC" = yes; then
6449 lt_prog_compiler_wl='-Wl,'
6450 lt_prog_compiler_static='-static'
6452 case $host_os in
6453 aix*)
6454 # All AIX code is PIC.
6455 if test "$host_cpu" = ia64; then
6456 # AIX 5 now supports IA64 processor
6457 lt_prog_compiler_static='-Bstatic'
6461 amigaos*)
6462 if test "$host_cpu" = m68k; then
6463 # FIXME: we need at least 68020 code to build shared libraries, but
6464 # adding the `-m68020' flag to GCC prevents building anything better,
6465 # like `-m68040'.
6466 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6470 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6471 # PIC is the default for these OSes.
6474 mingw* | cygwin* | pw32* | os2*)
6475 # This hack is so that the source file can tell whether it is being
6476 # built for inclusion in a dll (and should export symbols for example).
6477 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6478 # (--disable-auto-import) libraries
6479 lt_prog_compiler_pic='-DDLL_EXPORT'
6482 darwin* | rhapsody*)
6483 # PIC is the default on this platform
6484 # Common symbols not allowed in MH_DYLIB files
6485 lt_prog_compiler_pic='-fno-common'
6488 hpux*)
6489 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6490 # not for PA HP-UX.
6491 case $host_cpu in
6492 hppa*64*|ia64*)
6493 # +Z the default
6496 lt_prog_compiler_pic='-fPIC'
6498 esac
6501 interix[3-9]*)
6502 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6503 # Instead, we relocate shared libraries at runtime.
6506 msdosdjgpp*)
6507 # Just because we use GCC doesn't mean we suddenly get shared libraries
6508 # on systems that don't support them.
6509 lt_prog_compiler_can_build_shared=no
6510 enable_shared=no
6513 *nto* | *qnx*)
6514 # QNX uses GNU C++, but need to define -shared option too, otherwise
6515 # it will coredump.
6516 lt_prog_compiler_pic='-fPIC -shared'
6519 sysv4*MP*)
6520 if test -d /usr/nec; then
6521 lt_prog_compiler_pic=-Kconform_pic
6526 lt_prog_compiler_pic='-fPIC'
6528 esac
6529 else
6530 # PORTME Check for flag to pass linker flags through the system compiler.
6531 case $host_os in
6532 aix*)
6533 lt_prog_compiler_wl='-Wl,'
6534 if test "$host_cpu" = ia64; then
6535 # AIX 5 now supports IA64 processor
6536 lt_prog_compiler_static='-Bstatic'
6537 else
6538 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6541 darwin*)
6542 # PIC is the default on this platform
6543 # Common symbols not allowed in MH_DYLIB files
6544 case $cc_basename in
6545 xlc*)
6546 lt_prog_compiler_pic='-qnocommon'
6547 lt_prog_compiler_wl='-Wl,'
6549 esac
6552 mingw* | cygwin* | pw32* | os2*)
6553 # This hack is so that the source file can tell whether it is being
6554 # built for inclusion in a dll (and should export symbols for example).
6555 lt_prog_compiler_pic='-DDLL_EXPORT'
6558 hpux9* | hpux10* | hpux11*)
6559 lt_prog_compiler_wl='-Wl,'
6560 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6561 # not for PA HP-UX.
6562 case $host_cpu in
6563 hppa*64*|ia64*)
6564 # +Z the default
6567 lt_prog_compiler_pic='+Z'
6569 esac
6570 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6571 lt_prog_compiler_static='${wl}-a ${wl}archive'
6574 irix5* | irix6* | nonstopux*)
6575 lt_prog_compiler_wl='-Wl,'
6576 # PIC (with -KPIC) is the default.
6577 lt_prog_compiler_static='-non_shared'
6580 linux* | k*bsd*-gnu)
6581 case $cc_basename in
6582 icc* | ecc*)
6583 lt_prog_compiler_wl='-Wl,'
6584 lt_prog_compiler_pic='-KPIC'
6585 lt_prog_compiler_static='-static'
6587 pgcc* | pgf77* | pgf90* | pgf95*)
6588 # Portland Group compilers (*not* the Pentium gcc compiler,
6589 # which looks to be a dead project)
6590 lt_prog_compiler_wl='-Wl,'
6591 lt_prog_compiler_pic='-fpic'
6592 lt_prog_compiler_static='-Bstatic'
6594 ccc*)
6595 lt_prog_compiler_wl='-Wl,'
6596 # All Alpha code is PIC.
6597 lt_prog_compiler_static='-non_shared'
6600 case `$CC -V 2>&1 | sed 5q` in
6601 *Sun\ C*)
6602 # Sun C 5.9
6603 lt_prog_compiler_pic='-KPIC'
6604 lt_prog_compiler_static='-Bstatic'
6605 lt_prog_compiler_wl='-Wl,'
6607 *Sun\ F*)
6608 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6609 lt_prog_compiler_pic='-KPIC'
6610 lt_prog_compiler_static='-Bstatic'
6611 lt_prog_compiler_wl=''
6613 esac
6615 esac
6618 newsos6)
6619 lt_prog_compiler_pic='-KPIC'
6620 lt_prog_compiler_static='-Bstatic'
6623 *nto* | *qnx*)
6624 # QNX uses GNU C++, but need to define -shared option too, otherwise
6625 # it will coredump.
6626 lt_prog_compiler_pic='-fPIC -shared'
6629 osf3* | osf4* | osf5*)
6630 lt_prog_compiler_wl='-Wl,'
6631 # All OSF/1 code is PIC.
6632 lt_prog_compiler_static='-non_shared'
6635 rdos*)
6636 lt_prog_compiler_static='-non_shared'
6639 solaris*)
6640 lt_prog_compiler_pic='-KPIC'
6641 lt_prog_compiler_static='-Bstatic'
6642 case $cc_basename in
6643 f77* | f90* | f95*)
6644 lt_prog_compiler_wl='-Qoption ld ';;
6646 lt_prog_compiler_wl='-Wl,';;
6647 esac
6650 sunos4*)
6651 lt_prog_compiler_wl='-Qoption ld '
6652 lt_prog_compiler_pic='-PIC'
6653 lt_prog_compiler_static='-Bstatic'
6656 sysv4 | sysv4.2uw2* | sysv4.3*)
6657 lt_prog_compiler_wl='-Wl,'
6658 lt_prog_compiler_pic='-KPIC'
6659 lt_prog_compiler_static='-Bstatic'
6662 sysv4*MP*)
6663 if test -d /usr/nec ;then
6664 lt_prog_compiler_pic='-Kconform_pic'
6665 lt_prog_compiler_static='-Bstatic'
6669 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6670 lt_prog_compiler_wl='-Wl,'
6671 lt_prog_compiler_pic='-KPIC'
6672 lt_prog_compiler_static='-Bstatic'
6675 unicos*)
6676 lt_prog_compiler_wl='-Wl,'
6677 lt_prog_compiler_can_build_shared=no
6680 uts4*)
6681 lt_prog_compiler_pic='-pic'
6682 lt_prog_compiler_static='-Bstatic'
6686 lt_prog_compiler_can_build_shared=no
6688 esac
6691 case $host_os in
6692 # For platforms which do not support PIC, -DPIC is meaningless:
6693 *djgpp*)
6694 lt_prog_compiler_pic=
6697 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6699 esac
6700 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6701 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6709 # Check to make sure the PIC flag actually works.
6711 if test -n "$lt_prog_compiler_pic"; then
6712 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6713 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6714 if test "${lt_prog_compiler_pic_works+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717 lt_prog_compiler_pic_works=no
6718 ac_outfile=conftest.$ac_objext
6719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6720 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6721 # Insert the option either (1) after the last *FLAGS variable, or
6722 # (2) before a word containing "conftest.", or (3) at the end.
6723 # Note that $ac_compile itself does not contain backslashes and begins
6724 # with a dollar sign (not a hyphen), so the echo should work correctly.
6725 # The option is referenced via a variable to avoid confusing sed.
6726 lt_compile=`echo "$ac_compile" | $SED \
6727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6729 -e 's:$: $lt_compiler_flag:'`
6730 (eval echo "\"\$as_me:6730: $lt_compile\"" >&5)
6731 (eval "$lt_compile" 2>conftest.err)
6732 ac_status=$?
6733 cat conftest.err >&5
6734 echo "$as_me:6734: \$? = $ac_status" >&5
6735 if (exit $ac_status) && test -s "$ac_outfile"; then
6736 # The compiler can only warn and ignore the option if not recognized
6737 # So say no if there are warnings other than the usual output.
6738 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6740 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6741 lt_prog_compiler_pic_works=yes
6744 $RM conftest*
6747 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6748 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6750 if test x"$lt_prog_compiler_pic_works" = xyes; then
6751 case $lt_prog_compiler_pic in
6752 "" | " "*) ;;
6753 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6754 esac
6755 else
6756 lt_prog_compiler_pic=
6757 lt_prog_compiler_can_build_shared=no
6768 # Check to make sure the static flag actually works.
6770 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6771 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6772 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6773 if test "${lt_prog_compiler_static_works+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776 lt_prog_compiler_static_works=no
6777 save_LDFLAGS="$LDFLAGS"
6778 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6779 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6780 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6781 # The linker can only warn and ignore the option if not recognized
6782 # So say no if there are warnings
6783 if test -s conftest.err; then
6784 # Append any errors to the config.log.
6785 cat conftest.err 1>&5
6786 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6788 if diff conftest.exp conftest.er2 >/dev/null; then
6789 lt_prog_compiler_static_works=yes
6791 else
6792 lt_prog_compiler_static_works=yes
6795 $RM conftest*
6796 LDFLAGS="$save_LDFLAGS"
6799 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6800 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6802 if test x"$lt_prog_compiler_static_works" = xyes; then
6804 else
6805 lt_prog_compiler_static=
6814 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6815 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6816 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819 lt_cv_prog_compiler_c_o=no
6820 $RM -r conftest 2>/dev/null
6821 mkdir conftest
6822 cd conftest
6823 mkdir out
6824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6826 lt_compiler_flag="-o out/conftest2.$ac_objext"
6827 # Insert the option either (1) after the last *FLAGS variable, or
6828 # (2) before a word containing "conftest.", or (3) at the end.
6829 # Note that $ac_compile itself does not contain backslashes and begins
6830 # with a dollar sign (not a hyphen), so the echo should work correctly.
6831 lt_compile=`echo "$ac_compile" | $SED \
6832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6834 -e 's:$: $lt_compiler_flag:'`
6835 (eval echo "\"\$as_me:6835: $lt_compile\"" >&5)
6836 (eval "$lt_compile" 2>out/conftest.err)
6837 ac_status=$?
6838 cat out/conftest.err >&5
6839 echo "$as_me:6839: \$? = $ac_status" >&5
6840 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6841 then
6842 # The compiler can only warn and ignore the option if not recognized
6843 # So say no if there are warnings
6844 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6845 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6846 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6847 lt_cv_prog_compiler_c_o=yes
6850 chmod u+w . 2>&5
6851 $RM conftest*
6852 # SGI C++ compiler will create directory out/ii_files/ for
6853 # template instantiation
6854 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6855 $RM out/* && rmdir out
6856 cd ..
6857 $RM -r conftest
6858 $RM conftest*
6861 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6862 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6869 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6871 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 else
6874 lt_cv_prog_compiler_c_o=no
6875 $RM -r conftest 2>/dev/null
6876 mkdir conftest
6877 cd conftest
6878 mkdir out
6879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6881 lt_compiler_flag="-o out/conftest2.$ac_objext"
6882 # Insert the option either (1) after the last *FLAGS variable, or
6883 # (2) before a word containing "conftest.", or (3) at the end.
6884 # Note that $ac_compile itself does not contain backslashes and begins
6885 # with a dollar sign (not a hyphen), so the echo should work correctly.
6886 lt_compile=`echo "$ac_compile" | $SED \
6887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6889 -e 's:$: $lt_compiler_flag:'`
6890 (eval echo "\"\$as_me:6890: $lt_compile\"" >&5)
6891 (eval "$lt_compile" 2>out/conftest.err)
6892 ac_status=$?
6893 cat out/conftest.err >&5
6894 echo "$as_me:6894: \$? = $ac_status" >&5
6895 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6896 then
6897 # The compiler can only warn and ignore the option if not recognized
6898 # So say no if there are warnings
6899 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6900 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6901 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6902 lt_cv_prog_compiler_c_o=yes
6905 chmod u+w . 2>&5
6906 $RM conftest*
6907 # SGI C++ compiler will create directory out/ii_files/ for
6908 # template instantiation
6909 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6910 $RM out/* && rmdir out
6911 cd ..
6912 $RM -r conftest
6913 $RM conftest*
6916 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6917 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6922 hard_links="nottested"
6923 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6924 # do not overwrite the value of need_locks provided by the user
6925 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6926 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6927 hard_links=yes
6928 $RM conftest*
6929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6930 touch conftest.a
6931 ln conftest.a conftest.b 2>&5 || hard_links=no
6932 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6933 echo "$as_me:$LINENO: result: $hard_links" >&5
6934 echo "${ECHO_T}$hard_links" >&6
6935 if test "$hard_links" = no; then
6936 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6937 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6938 need_locks=warn
6940 else
6941 need_locks=no
6949 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6950 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6952 runpath_var=
6953 allow_undefined_flag=
6954 always_export_symbols=no
6955 archive_cmds=
6956 archive_expsym_cmds=
6957 compiler_needs_object=no
6958 enable_shared_with_static_runtimes=no
6959 export_dynamic_flag_spec=
6960 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6961 hardcode_automatic=no
6962 hardcode_direct=no
6963 hardcode_direct_absolute=no
6964 hardcode_libdir_flag_spec=
6965 hardcode_libdir_flag_spec_ld=
6966 hardcode_libdir_separator=
6967 hardcode_minus_L=no
6968 hardcode_shlibpath_var=unsupported
6969 inherit_rpath=no
6970 link_all_deplibs=unknown
6971 module_cmds=
6972 module_expsym_cmds=
6973 old_archive_from_new_cmds=
6974 old_archive_from_expsyms_cmds=
6975 thread_safe_flag_spec=
6976 whole_archive_flag_spec=
6977 # include_expsyms should be a list of space-separated symbols to be *always*
6978 # included in the symbol list
6979 include_expsyms=
6980 # exclude_expsyms can be an extended regexp of symbols to exclude
6981 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6982 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6983 # as well as any symbol that contains `d'.
6984 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6985 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6986 # platforms (ab)use it in PIC code, but their linkers get confused if
6987 # the symbol is explicitly referenced. Since portable code cannot
6988 # rely on this symbol name, it's probably fine to never include it in
6989 # preloaded symbol tables.
6990 extract_expsyms_cmds=
6992 case $host_os in
6993 cygwin* | mingw* | pw32*)
6994 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6995 # When not using gcc, we currently assume that we are using
6996 # Microsoft Visual C++.
6997 if test "$GCC" != yes; then
6998 with_gnu_ld=no
7001 interix*)
7002 # we just hope/assume this is gcc and not c89 (= MSVC++)
7003 with_gnu_ld=yes
7005 openbsd*)
7006 with_gnu_ld=no
7008 esac
7010 ld_shlibs=yes
7011 if test "$with_gnu_ld" = yes; then
7012 # If archive_cmds runs LD, not CC, wlarc should be empty
7013 wlarc='${wl}'
7015 # Set some defaults for GNU ld with shared library support. These
7016 # are reset later if shared libraries are not supported. Putting them
7017 # here allows them to be overridden if necessary.
7018 runpath_var=LD_RUN_PATH
7019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7020 export_dynamic_flag_spec='${wl}--export-dynamic'
7021 # ancient GNU ld didn't support --whole-archive et. al.
7022 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7023 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7024 else
7025 whole_archive_flag_spec=
7027 supports_anon_versioning=no
7028 case `$LD -v 2>&1` in
7029 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7030 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7031 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7032 *\ 2.11.*) ;; # other 2.11 versions
7033 *) supports_anon_versioning=yes ;;
7034 esac
7036 # See if GNU ld supports shared libraries.
7037 case $host_os in
7038 aix[3-9]*)
7039 # On AIX/PPC, the GNU linker is very broken
7040 if test "$host_cpu" != ia64; then
7041 ld_shlibs=no
7042 cat <<_LT_EOF 1>&2
7044 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7045 *** to be unable to reliably create shared libraries on AIX.
7046 *** Therefore, libtool is disabling shared libraries support. If you
7047 *** really care for shared libraries, you may want to modify your PATH
7048 *** so that a non-GNU linker is found, and then restart.
7050 _LT_EOF
7054 amigaos*)
7055 if test "$host_cpu" = m68k; then
7056 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)'
7057 hardcode_libdir_flag_spec='-L$libdir'
7058 hardcode_minus_L=yes
7061 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7062 # that the semantics of dynamic libraries on AmigaOS, at least up
7063 # to version 4, is to share data among multiple programs linked
7064 # with the same dynamic library. Since this doesn't match the
7065 # behavior of shared libraries on other platforms, we can't use
7066 # them.
7067 ld_shlibs=no
7070 beos*)
7071 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7072 allow_undefined_flag=unsupported
7073 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7074 # support --undefined. This deserves some investigation. FIXME
7075 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7076 else
7077 ld_shlibs=no
7081 cygwin* | mingw* | pw32*)
7082 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7083 # as there is no search path for DLLs.
7084 hardcode_libdir_flag_spec='-L$libdir'
7085 allow_undefined_flag=unsupported
7086 always_export_symbols=no
7087 enable_shared_with_static_runtimes=yes
7088 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7090 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7092 # If the export-symbols file already is a .def file (1st line
7093 # is EXPORTS), use it as is; otherwise, prepend...
7094 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7095 cp $export_symbols $output_objdir/$soname.def;
7096 else
7097 echo EXPORTS > $output_objdir/$soname.def;
7098 cat $export_symbols >> $output_objdir/$soname.def;
7100 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7101 else
7102 ld_shlibs=no
7106 interix[3-9]*)
7107 hardcode_direct=no
7108 hardcode_shlibpath_var=no
7109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7110 export_dynamic_flag_spec='${wl}-E'
7111 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7112 # Instead, shared libraries are loaded at an image base (0x10000000 by
7113 # default) and relocated if they conflict, which is a slow very memory
7114 # consuming and fragmenting process. To avoid this, we pick a random,
7115 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7116 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7117 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7118 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'
7121 gnu* | linux* | tpf* | k*bsd*-gnu)
7122 tmp_diet=no
7123 if test "$host_os" = linux-dietlibc; then
7124 case $cc_basename in
7125 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7126 esac
7128 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7129 && test "$tmp_diet" = no
7130 then
7131 tmp_addflag=
7132 case $cc_basename,$host_cpu in
7133 pgcc*) # Portland Group C compiler
7134 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'
7135 tmp_addflag=' $pic_flag'
7137 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7138 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'
7139 tmp_addflag=' $pic_flag -Mnomain' ;;
7140 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7141 tmp_addflag=' -i_dynamic' ;;
7142 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7143 tmp_addflag=' -i_dynamic -nofor_main' ;;
7144 ifc* | ifort*) # Intel Fortran compiler
7145 tmp_addflag=' -nofor_main' ;;
7146 esac
7147 case `$CC -V 2>&1 | sed 5q` in
7148 *Sun\ C*) # Sun C 5.9
7149 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'
7150 compiler_needs_object=yes
7151 tmp_sharedflag='-G' ;;
7152 *Sun\ F*) # Sun Fortran 8.3
7153 tmp_sharedflag='-G' ;;
7155 tmp_sharedflag='-shared' ;;
7156 esac
7157 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7159 if test "x$supports_anon_versioning" = xyes; then
7160 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7161 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7162 echo "local: *; };" >> $output_objdir/$libname.ver~
7163 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7165 else
7166 ld_shlibs=no
7170 netbsd*)
7171 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7172 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7173 wlarc=
7174 else
7175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7176 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7180 solaris*)
7181 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7182 ld_shlibs=no
7183 cat <<_LT_EOF 1>&2
7185 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7186 *** create shared libraries on Solaris systems. Therefore, libtool
7187 *** is disabling shared libraries support. We urge you to upgrade GNU
7188 *** binutils to release 2.9.1 or newer. Another option is to modify
7189 *** your PATH or compiler configuration so that the native linker is
7190 *** used, and then restart.
7192 _LT_EOF
7193 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7195 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7196 else
7197 ld_shlibs=no
7201 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7202 case `$LD -v 2>&1` in
7203 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7204 ld_shlibs=no
7205 cat <<_LT_EOF 1>&2
7207 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7208 *** reliably create shared libraries on SCO systems. Therefore, libtool
7209 *** is disabling shared libraries support. We urge you to upgrade GNU
7210 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7211 *** your PATH or compiler configuration so that the native linker is
7212 *** used, and then restart.
7214 _LT_EOF
7217 # For security reasons, it is highly recommended that you always
7218 # use absolute paths for naming shared libraries, and exclude the
7219 # DT_RUNPATH tag from executables and libraries. But doing so
7220 # requires that you compile everything twice, which is a pain.
7221 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7222 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7224 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7225 else
7226 ld_shlibs=no
7229 esac
7232 sunos4*)
7233 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7234 wlarc=
7235 hardcode_direct=yes
7236 hardcode_shlibpath_var=no
7240 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7242 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7243 else
7244 ld_shlibs=no
7247 esac
7249 if test "$ld_shlibs" = no; then
7250 runpath_var=
7251 hardcode_libdir_flag_spec=
7252 export_dynamic_flag_spec=
7253 whole_archive_flag_spec=
7255 else
7256 # PORTME fill in a description of your system's linker (not GNU ld)
7257 case $host_os in
7258 aix3*)
7259 allow_undefined_flag=unsupported
7260 always_export_symbols=yes
7261 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'
7262 # Note: this linker hardcodes the directories in LIBPATH if there
7263 # are no directories specified by -L.
7264 hardcode_minus_L=yes
7265 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7266 # Neither direct hardcoding nor static linking is supported with a
7267 # broken collect2.
7268 hardcode_direct=unsupported
7272 aix[4-9]*)
7273 if test "$host_cpu" = ia64; then
7274 # On IA64, the linker does run time linking by default, so we don't
7275 # have to do anything special.
7276 aix_use_runtimelinking=no
7277 exp_sym_flag='-Bexport'
7278 no_entry_flag=""
7279 else
7280 # If we're using GNU nm, then we don't want the "-C" option.
7281 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7282 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7283 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'
7284 else
7285 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'
7287 aix_use_runtimelinking=no
7289 # Test if we are trying to use run time linking or normal
7290 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7291 # need to do runtime linking.
7292 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7293 for ld_flag in $LDFLAGS; do
7294 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7295 aix_use_runtimelinking=yes
7296 break
7298 done
7300 esac
7302 exp_sym_flag='-bexport'
7303 no_entry_flag='-bnoentry'
7306 # When large executables or shared objects are built, AIX ld can
7307 # have problems creating the table of contents. If linking a library
7308 # or program results in "error TOC overflow" add -mminimal-toc to
7309 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7310 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7312 archive_cmds=''
7313 hardcode_direct=yes
7314 hardcode_direct_absolute=yes
7315 hardcode_libdir_separator=':'
7316 link_all_deplibs=yes
7317 file_list_spec='${wl}-f,'
7319 if test "$GCC" = yes; then
7320 case $host_os in aix4.[012]|aix4.[012].*)
7321 # We only want to do this on AIX 4.2 and lower, the check
7322 # below for broken collect2 doesn't work under 4.3+
7323 collect2name=`${CC} -print-prog-name=collect2`
7324 if test -f "$collect2name" &&
7325 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7326 then
7327 # We have reworked collect2
7329 else
7330 # We have old collect2
7331 hardcode_direct=unsupported
7332 # It fails to find uninstalled libraries when the uninstalled
7333 # path is not listed in the libpath. Setting hardcode_minus_L
7334 # to unsupported forces relinking
7335 hardcode_minus_L=yes
7336 hardcode_libdir_flag_spec='-L$libdir'
7337 hardcode_libdir_separator=
7340 esac
7341 shared_flag='-shared'
7342 if test "$aix_use_runtimelinking" = yes; then
7343 shared_flag="$shared_flag "'${wl}-G'
7345 else
7346 # not using gcc
7347 if test "$host_cpu" = ia64; then
7348 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7349 # chokes on -Wl,-G. The following line is correct:
7350 shared_flag='-G'
7351 else
7352 if test "$aix_use_runtimelinking" = yes; then
7353 shared_flag='${wl}-G'
7354 else
7355 shared_flag='${wl}-bM:SRE'
7360 # It seems that -bexpall does not export symbols beginning with
7361 # underscore (_), so it is better to generate a list of symbols to export.
7362 always_export_symbols=yes
7363 if test "$aix_use_runtimelinking" = yes; then
7364 # Warning - without using the other runtime loading flags (-brtl),
7365 # -berok will link without error, but may produce a broken library.
7366 allow_undefined_flag='-berok'
7367 # Determine the default libpath from the value encoded in an
7368 # empty executable.
7369 cat >conftest.$ac_ext <<_ACEOF
7370 /* confdefs.h. */
7371 _ACEOF
7372 cat confdefs.h >>conftest.$ac_ext
7373 cat >>conftest.$ac_ext <<_ACEOF
7374 /* end confdefs.h. */
7377 main ()
7381 return 0;
7383 _ACEOF
7384 rm -f conftest.$ac_objext conftest$ac_exeext
7385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7386 (eval $ac_link) 2>conftest.er1
7387 ac_status=$?
7388 grep -v '^ *+' conftest.er1 >conftest.err
7389 rm -f conftest.er1
7390 cat conftest.err >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } &&
7393 { ac_try='test -z "$ac_c_werror_flag"
7394 || test ! -s conftest.err'
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); }; } &&
7400 { ac_try='test -s conftest$ac_exeext'
7401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7402 (eval $ac_try) 2>&5
7403 ac_status=$?
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); }; }; then
7407 lt_aix_libpath_sed='
7408 /Import File Strings/,/^$/ {
7409 /^0/ {
7410 s/^0 *\(.*\)$/\1/
7414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7415 # Check for a 64-bit object if we didn't find anything.
7416 if test -z "$aix_libpath"; then
7417 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7419 else
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7424 rm -f conftest.err conftest.$ac_objext \
7425 conftest$ac_exeext conftest.$ac_ext
7426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7428 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7429 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"
7430 else
7431 if test "$host_cpu" = ia64; then
7432 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7433 allow_undefined_flag="-z nodefs"
7434 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"
7435 else
7436 # Determine the default libpath from the value encoded in an
7437 # empty executable.
7438 cat >conftest.$ac_ext <<_ACEOF
7439 /* confdefs.h. */
7440 _ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7446 main ()
7450 return 0;
7452 _ACEOF
7453 rm -f conftest.$ac_objext conftest$ac_exeext
7454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7455 (eval $ac_link) 2>conftest.er1
7456 ac_status=$?
7457 grep -v '^ *+' conftest.er1 >conftest.err
7458 rm -f conftest.er1
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } &&
7462 { ac_try='test -z "$ac_c_werror_flag"
7463 || test ! -s conftest.err'
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); }; } &&
7469 { ac_try='test -s conftest$ac_exeext'
7470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 (eval $ac_try) 2>&5
7472 ac_status=$?
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; }; then
7476 lt_aix_libpath_sed='
7477 /Import File Strings/,/^$/ {
7478 /^0/ {
7479 s/^0 *\(.*\)$/\1/
7483 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7484 # Check for a 64-bit object if we didn't find anything.
7485 if test -z "$aix_libpath"; then
7486 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7488 else
7489 echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7493 rm -f conftest.err conftest.$ac_objext \
7494 conftest$ac_exeext conftest.$ac_ext
7495 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7497 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7498 # Warning - without using the other run time loading flags,
7499 # -berok will link without error, but may produce a broken library.
7500 no_undefined_flag=' ${wl}-bernotok'
7501 allow_undefined_flag=' ${wl}-berok'
7502 # Exported symbols can be pulled into shared objects from archives
7503 whole_archive_flag_spec='$convenience'
7504 archive_cmds_need_lc=yes
7505 # This is similar to how AIX traditionally builds its shared libraries.
7506 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'
7511 amigaos*)
7512 if test "$host_cpu" = m68k; then
7513 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)'
7514 hardcode_libdir_flag_spec='-L$libdir'
7515 hardcode_minus_L=yes
7517 # see comment about different semantics on the GNU ld section
7518 ld_shlibs=no
7521 bsdi[45]*)
7522 export_dynamic_flag_spec=-rdynamic
7525 cygwin* | mingw* | pw32*)
7526 # When not using gcc, we currently assume that we are using
7527 # Microsoft Visual C++.
7528 # hardcode_libdir_flag_spec is actually meaningless, as there is
7529 # no search path for DLLs.
7530 hardcode_libdir_flag_spec=' '
7531 allow_undefined_flag=unsupported
7532 # Tell ltmain to make .lib files, not .a files.
7533 libext=lib
7534 # Tell ltmain to make .dll files, not .so files.
7535 shrext_cmds=".dll"
7536 # FIXME: Setting linknames here is a bad hack.
7537 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7538 # The linker will automatically build a .lib file if we build a DLL.
7539 old_archive_from_new_cmds='true'
7540 # FIXME: Should let the user specify the lib program.
7541 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7542 fix_srcfile_path='`cygpath -w "$srcfile"`'
7543 enable_shared_with_static_runtimes=yes
7546 darwin* | rhapsody*)
7547 case $host_os in
7548 rhapsody* | darwin1.[012])
7549 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7551 *) # Darwin 1.3 on
7552 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7553 10.[012])
7554 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7556 10.*)
7557 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7559 esac
7561 esac
7562 archive_cmds_need_lc=no
7563 hardcode_direct=no
7564 hardcode_automatic=yes
7565 hardcode_shlibpath_var=unsupported
7566 whole_archive_flag_spec=''
7567 link_all_deplibs=yes
7568 if test "$GCC" = yes ; then
7569 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7571 else
7572 lt_cv_apple_cc_single_mod=no
7573 if test -z "${LT_MULTI_MODULE}"; then
7574 # By default we will add the -single_module flag. You can override
7575 # by either setting the environment variable LT_MULTI_MODULE
7576 # non-empty at configure time, or by adding -multi-module to the
7577 # link flags.
7578 echo "int foo(void){return 1;}" > conftest.c
7579 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7580 -dynamiclib ${wl}-single_module conftest.c
7581 if test -f libconftest.dylib; then
7582 lt_cv_apple_cc_single_mod=yes
7583 rm libconftest.dylib
7585 rm conftest.$ac_ext
7589 output_verbose_link_cmd=echo
7590 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7591 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7592 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}'
7593 else
7594 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7595 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}'
7597 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7598 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}'
7599 else
7600 case $cc_basename in
7601 xlc*)
7602 output_verbose_link_cmd=echo
7603 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7604 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7605 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7606 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}'
7607 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}'
7610 ld_shlibs=no
7612 esac
7616 dgux*)
7617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7618 hardcode_libdir_flag_spec='-L$libdir'
7619 hardcode_shlibpath_var=no
7622 freebsd1*)
7623 ld_shlibs=no
7626 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7627 # support. Future versions do this automatically, but an explicit c++rt0.o
7628 # does not break anything, and helps significantly (at the cost of a little
7629 # extra space).
7630 freebsd2.2*)
7631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7632 hardcode_libdir_flag_spec='-R$libdir'
7633 hardcode_direct=yes
7634 hardcode_shlibpath_var=no
7637 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7638 freebsd2*)
7639 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7640 hardcode_direct=yes
7641 hardcode_minus_L=yes
7642 hardcode_shlibpath_var=no
7645 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7646 freebsd* | dragonfly*)
7647 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7648 hardcode_libdir_flag_spec='-R$libdir'
7649 hardcode_direct=yes
7650 hardcode_shlibpath_var=no
7653 hpux9*)
7654 if test "$GCC" = yes; then
7655 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'
7656 else
7657 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'
7659 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7660 hardcode_libdir_separator=:
7661 hardcode_direct=yes
7663 # hardcode_minus_L: Not really in the search PATH,
7664 # but as the default location of the library.
7665 hardcode_minus_L=yes
7666 export_dynamic_flag_spec='${wl}-E'
7669 hpux10*)
7670 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7671 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7672 else
7673 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7675 if test "$with_gnu_ld" = no; then
7676 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7677 hardcode_libdir_flag_spec_ld='+b $libdir'
7678 hardcode_libdir_separator=:
7679 hardcode_direct=yes
7680 hardcode_direct_absolute=yes
7681 export_dynamic_flag_spec='${wl}-E'
7682 # hardcode_minus_L: Not really in the search PATH,
7683 # but as the default location of the library.
7684 hardcode_minus_L=yes
7688 hpux11*)
7689 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7690 case $host_cpu in
7691 hppa*64*)
7692 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7694 ia64*)
7695 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7698 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7700 esac
7701 else
7702 case $host_cpu in
7703 hppa*64*)
7704 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7706 ia64*)
7707 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7710 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7712 esac
7714 if test "$with_gnu_ld" = no; then
7715 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7716 hardcode_libdir_separator=:
7718 case $host_cpu in
7719 hppa*64*|ia64*)
7720 hardcode_direct=no
7721 hardcode_shlibpath_var=no
7724 hardcode_direct=yes
7725 hardcode_direct_absolute=yes
7726 export_dynamic_flag_spec='${wl}-E'
7728 # hardcode_minus_L: Not really in the search PATH,
7729 # but as the default location of the library.
7730 hardcode_minus_L=yes
7732 esac
7736 irix5* | irix6* | nonstopux*)
7737 if test "$GCC" = yes; then
7738 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'
7739 # Try to use the -exported_symbol ld option, if it does not
7740 # work, assume that -exports_file does not work either and
7741 # implicitly export all symbols.
7742 save_LDFLAGS="$LDFLAGS"
7743 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7744 cat >conftest.$ac_ext <<_ACEOF
7745 int foo(void) {}
7746 _ACEOF
7747 rm -f conftest.$ac_objext conftest$ac_exeext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7749 (eval $ac_link) 2>conftest.er1
7750 ac_status=$?
7751 grep -v '^ *+' conftest.er1 >conftest.err
7752 rm -f conftest.er1
7753 cat conftest.err >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } &&
7756 { ac_try='test -z "$ac_c_werror_flag"
7757 || test ! -s conftest.err'
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); }; } &&
7763 { ac_try='test -s conftest$ac_exeext'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 (eval $ac_try) 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7769 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'
7771 else
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7776 rm -f conftest.err conftest.$ac_objext \
7777 conftest$ac_exeext conftest.$ac_ext
7778 LDFLAGS="$save_LDFLAGS"
7779 else
7780 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'
7781 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'
7783 archive_cmds_need_lc='no'
7784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7785 hardcode_libdir_separator=:
7786 inherit_rpath=yes
7787 link_all_deplibs=yes
7790 netbsd*)
7791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7793 else
7794 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7796 hardcode_libdir_flag_spec='-R$libdir'
7797 hardcode_direct=yes
7798 hardcode_shlibpath_var=no
7801 newsos6)
7802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7803 hardcode_direct=yes
7804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7805 hardcode_libdir_separator=:
7806 hardcode_shlibpath_var=no
7809 *nto* | *qnx*)
7812 openbsd*)
7813 hardcode_direct=yes
7814 hardcode_shlibpath_var=no
7815 hardcode_direct_absolute=yes
7816 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7817 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7818 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7819 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7820 export_dynamic_flag_spec='${wl}-E'
7821 else
7822 case $host_os in
7823 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7825 hardcode_libdir_flag_spec='-R$libdir'
7828 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7831 esac
7835 os2*)
7836 hardcode_libdir_flag_spec='-L$libdir'
7837 hardcode_minus_L=yes
7838 allow_undefined_flag=unsupported
7839 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'
7840 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7843 osf3*)
7844 if test "$GCC" = yes; then
7845 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7846 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'
7847 else
7848 allow_undefined_flag=' -expect_unresolved \*'
7849 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'
7851 archive_cmds_need_lc='no'
7852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7853 hardcode_libdir_separator=:
7856 osf4* | osf5*) # as osf3* with the addition of -msym flag
7857 if test "$GCC" = yes; then
7858 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7859 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'
7860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7861 else
7862 allow_undefined_flag=' -expect_unresolved \*'
7863 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'
7864 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~
7865 $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'
7867 # Both c and cxx compiler support -rpath directly
7868 hardcode_libdir_flag_spec='-rpath $libdir'
7870 archive_cmds_need_lc='no'
7871 hardcode_libdir_separator=:
7874 solaris*)
7875 no_undefined_flag=' -z defs'
7876 if test "$GCC" = yes; then
7877 wlarc='${wl}'
7878 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7880 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7881 else
7882 case `$CC -V 2>&1` in
7883 *"Compilers 5.0"*)
7884 wlarc=''
7885 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7887 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7890 wlarc='${wl}'
7891 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7892 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7893 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7895 esac
7897 hardcode_libdir_flag_spec='-R$libdir'
7898 hardcode_shlibpath_var=no
7899 case $host_os in
7900 solaris2.[0-5] | solaris2.[0-5].*) ;;
7902 # The compiler driver will combine and reorder linker options,
7903 # but understands `-z linker_flag'. GCC discards it without `$wl',
7904 # but is careful enough not to reorder.
7905 # Supported since Solaris 2.6 (maybe 2.5.1?)
7906 if test "$GCC" = yes; then
7907 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7908 else
7909 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7912 esac
7913 link_all_deplibs=yes
7916 sunos4*)
7917 if test "x$host_vendor" = xsequent; then
7918 # Use $CC to link under sequent, because it throws in some extra .o
7919 # files that make .init and .fini sections work.
7920 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7921 else
7922 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7924 hardcode_libdir_flag_spec='-L$libdir'
7925 hardcode_direct=yes
7926 hardcode_minus_L=yes
7927 hardcode_shlibpath_var=no
7930 sysv4)
7931 case $host_vendor in
7932 sni)
7933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7934 hardcode_direct=yes # is this really true???
7936 siemens)
7937 ## LD is ld it makes a PLAMLIB
7938 ## CC just makes a GrossModule.
7939 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7940 reload_cmds='$CC -r -o $output$reload_objs'
7941 hardcode_direct=no
7943 motorola)
7944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7945 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7947 esac
7948 runpath_var='LD_RUN_PATH'
7949 hardcode_shlibpath_var=no
7952 sysv4.3*)
7953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7954 hardcode_shlibpath_var=no
7955 export_dynamic_flag_spec='-Bexport'
7958 sysv4*MP*)
7959 if test -d /usr/nec; then
7960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7961 hardcode_shlibpath_var=no
7962 runpath_var=LD_RUN_PATH
7963 hardcode_runpath_var=yes
7964 ld_shlibs=yes
7968 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7969 no_undefined_flag='${wl}-z,text'
7970 archive_cmds_need_lc=no
7971 hardcode_shlibpath_var=no
7972 runpath_var='LD_RUN_PATH'
7974 if test "$GCC" = yes; then
7975 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7976 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7977 else
7978 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7979 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7983 sysv5* | sco3.2v5* | sco5v6*)
7984 # Note: We can NOT use -z defs as we might desire, because we do not
7985 # link with -lc, and that would cause any symbols used from libc to
7986 # always be unresolved, which means just about no library would
7987 # ever link correctly. If we're not using GNU ld we use -z text
7988 # though, which does catch some bad symbols but isn't as heavy-handed
7989 # as -z defs.
7990 no_undefined_flag='${wl}-z,text'
7991 allow_undefined_flag='${wl}-z,nodefs'
7992 archive_cmds_need_lc=no
7993 hardcode_shlibpath_var=no
7994 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7995 hardcode_libdir_separator=':'
7996 link_all_deplibs=yes
7997 export_dynamic_flag_spec='${wl}-Bexport'
7998 runpath_var='LD_RUN_PATH'
8000 if test "$GCC" = yes; then
8001 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8002 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8003 else
8004 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8005 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8009 uts4*)
8010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8011 hardcode_libdir_flag_spec='-L$libdir'
8012 hardcode_shlibpath_var=no
8016 ld_shlibs=no
8018 esac
8020 if test x$host_vendor = xsni; then
8021 case $host in
8022 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8023 export_dynamic_flag_spec='${wl}-Blargedynsym'
8025 esac
8029 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8030 echo "${ECHO_T}$ld_shlibs" >&6
8031 test "$ld_shlibs" = no && can_build_shared=no
8033 with_gnu_ld=$with_gnu_ld
8050 # Do we need to explicitly link libc?
8052 case "x$archive_cmds_need_lc" in
8053 x|xyes)
8054 # Assume -lc should be added
8055 archive_cmds_need_lc=yes
8057 if test "$enable_shared" = yes && test "$GCC" = yes; then
8058 case $archive_cmds in
8059 *'~'*)
8060 # FIXME: we may have to deal with multi-command sequences.
8062 '$CC '*)
8063 # Test whether the compiler implicitly links with -lc since on some
8064 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8065 # to ld, don't add -lc before -lgcc.
8066 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8067 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8068 $RM conftest*
8069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8072 (eval $ac_compile) 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } 2>conftest.err; then
8076 soname=conftest
8077 lib=conftest
8078 libobjs=conftest.$ac_objext
8079 deplibs=
8080 wl=$lt_prog_compiler_wl
8081 pic_flag=$lt_prog_compiler_pic
8082 compiler_flags=-v
8083 linker_flags=-v
8084 verstring=
8085 output_objdir=.
8086 libname=conftest
8087 lt_save_allow_undefined_flag=$allow_undefined_flag
8088 allow_undefined_flag=
8089 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8090 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8091 ac_status=$?
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }
8094 then
8095 archive_cmds_need_lc=no
8096 else
8097 archive_cmds_need_lc=yes
8099 allow_undefined_flag=$lt_save_allow_undefined_flag
8100 else
8101 cat conftest.err 1>&5
8103 $RM conftest*
8104 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8105 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8107 esac
8110 esac
8268 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8269 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8270 withGCC=$GCC
8271 if test "$withGCC" = yes; then
8272 case $host_os in
8273 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8274 *) lt_awk_arg="/^libraries:/" ;;
8275 esac
8276 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8277 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8278 # if the path contains ";" then we assume it to be the separator
8279 # otherwise default to the standard path separator (i.e. ":") - it is
8280 # assumed that no part of a normal pathname contains ";" but that should
8281 # okay in the real world where ";" in dirpaths is itself problematic.
8282 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8283 else
8284 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8286 # Ok, now we have the path, separated by spaces, we can step through it
8287 # and add multilib dir if necessary.
8288 lt_tmp_lt_search_path_spec=
8289 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8290 for lt_sys_path in $lt_search_path_spec; do
8291 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8292 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8293 else
8294 test -d "$lt_sys_path" && \
8295 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8297 done
8298 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8299 BEGIN {RS=" "; FS="/|\n";} {
8300 lt_foo="";
8301 lt_count=0;
8302 for (lt_i = NF; lt_i > 0; lt_i--) {
8303 if ($lt_i != "" && $lt_i != ".") {
8304 if ($lt_i == "..") {
8305 lt_count++;
8306 } else {
8307 if (lt_count == 0) {
8308 lt_foo="/" $lt_i lt_foo;
8309 } else {
8310 lt_count--;
8315 if (lt_foo != "") { lt_freq[lt_foo]++; }
8316 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8318 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8319 else
8320 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8322 library_names_spec=
8323 libname_spec='lib$name'
8324 soname_spec=
8325 shrext_cmds=".so"
8326 postinstall_cmds=
8327 postuninstall_cmds=
8328 finish_cmds=
8329 finish_eval=
8330 shlibpath_var=
8331 shlibpath_overrides_runpath=unknown
8332 version_type=none
8333 dynamic_linker="$host_os ld.so"
8334 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8335 need_lib_prefix=unknown
8336 hardcode_into_libs=no
8338 # when you set need_version to no, make sure it does not cause -set_version
8339 # flags to be left without arguments
8340 need_version=unknown
8342 case $host_os in
8343 aix3*)
8344 version_type=linux
8345 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8346 shlibpath_var=LIBPATH
8348 # AIX 3 has no versioning support, so we append a major version to the name.
8349 soname_spec='${libname}${release}${shared_ext}$major'
8352 aix[4-9]*)
8353 version_type=linux
8354 need_lib_prefix=no
8355 need_version=no
8356 hardcode_into_libs=yes
8357 if test "$host_cpu" = ia64; then
8358 # AIX 5 supports IA64
8359 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8360 shlibpath_var=LD_LIBRARY_PATH
8361 else
8362 # With GCC up to 2.95.x, collect2 would create an import file
8363 # for dependence libraries. The import file would start with
8364 # the line `#! .'. This would cause the generated library to
8365 # depend on `.', always an invalid library. This was fixed in
8366 # development snapshots of GCC prior to 3.0.
8367 case $host_os in
8368 aix4 | aix4.[01] | aix4.[01].*)
8369 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8370 echo ' yes '
8371 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8373 else
8374 can_build_shared=no
8377 esac
8378 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8379 # soname into executable. Probably we can add versioning support to
8380 # collect2, so additional links can be useful in future.
8381 if test "$aix_use_runtimelinking" = yes; then
8382 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8383 # instead of lib<name>.a to let people know that these are not
8384 # typical AIX shared libraries.
8385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8386 else
8387 # We preserve .a as extension for shared libraries through AIX4.2
8388 # and later when we are not doing run time linking.
8389 library_names_spec='${libname}${release}.a $libname.a'
8390 soname_spec='${libname}${release}${shared_ext}$major'
8392 shlibpath_var=LIBPATH
8396 amigaos*)
8397 if test "$host_cpu" = m68k; then
8398 library_names_spec='$libname.ixlibrary $libname.a'
8399 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8400 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'
8401 else
8402 dynamic_linker=no
8406 beos*)
8407 library_names_spec='${libname}${shared_ext}'
8408 dynamic_linker="$host_os ld.so"
8409 shlibpath_var=LIBRARY_PATH
8412 bsdi[45]*)
8413 version_type=linux
8414 need_version=no
8415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8416 soname_spec='${libname}${release}${shared_ext}$major'
8417 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8418 shlibpath_var=LD_LIBRARY_PATH
8419 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8420 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8421 # the default ld.so.conf also contains /usr/contrib/lib and
8422 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8423 # libtool to hard-code these into programs
8426 cygwin* | mingw* | pw32*)
8427 version_type=windows
8428 shrext_cmds=".dll"
8429 need_version=no
8430 need_lib_prefix=no
8432 case $withGCC,$host_os in
8433 yes,cygwin* | yes,mingw* | yes,pw32*)
8434 library_names_spec='$libname.dll.a'
8435 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8436 postinstall_cmds='base_file=`basename \${file}`~
8437 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8438 dldir=$destdir/`dirname \$dlpath`~
8439 test -d \$dldir || mkdir -p \$dldir~
8440 $install_prog $dir/$dlname \$dldir/$dlname~
8441 chmod a+x \$dldir/$dlname~
8442 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8443 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8445 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8446 dlpath=$dir/\$dldll~
8447 $RM \$dlpath'
8448 shlibpath_overrides_runpath=yes
8450 case $host_os in
8451 cygwin*)
8452 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8453 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8454 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8456 mingw*)
8457 # MinGW DLLs use traditional 'lib' prefix
8458 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8459 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8460 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8461 # It is most probably a Windows format PATH printed by
8462 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8463 # path with ; separators, and with drive letters. We can handle the
8464 # drive letters (cygwin fileutils understands them), so leave them,
8465 # especially as we might pass files found there to a mingw objdump,
8466 # which wouldn't understand a cygwinified path. Ahh.
8467 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8468 else
8469 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8472 pw32*)
8473 # pw32 DLLs use 'pw' prefix rather than 'lib'
8474 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8476 esac
8480 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8482 esac
8483 dynamic_linker='Win32 ld.exe'
8484 # FIXME: first we should search . and the directory the executable is in
8485 shlibpath_var=PATH
8488 darwin* | rhapsody*)
8489 dynamic_linker="$host_os dyld"
8490 version_type=darwin
8491 need_lib_prefix=no
8492 need_version=no
8493 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8494 soname_spec='${libname}${release}${major}$shared_ext'
8495 shlibpath_overrides_runpath=yes
8496 shlibpath_var=DYLD_LIBRARY_PATH
8497 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8499 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8500 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8503 dgux*)
8504 version_type=linux
8505 need_lib_prefix=no
8506 need_version=no
8507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8508 soname_spec='${libname}${release}${shared_ext}$major'
8509 shlibpath_var=LD_LIBRARY_PATH
8512 freebsd1*)
8513 dynamic_linker=no
8516 freebsd* | dragonfly*)
8517 # DragonFly does not have aout. When/if they implement a new
8518 # versioning mechanism, adjust this.
8519 if test -x /usr/bin/objformat; then
8520 objformat=`/usr/bin/objformat`
8521 else
8522 case $host_os in
8523 freebsd[123]*) objformat=aout ;;
8524 *) objformat=elf ;;
8525 esac
8527 version_type=freebsd-$objformat
8528 case $version_type in
8529 freebsd-elf*)
8530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8531 need_version=no
8532 need_lib_prefix=no
8534 freebsd-*)
8535 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8536 need_version=yes
8538 esac
8539 shlibpath_var=LD_LIBRARY_PATH
8540 case $host_os in
8541 freebsd2*)
8542 shlibpath_overrides_runpath=yes
8544 freebsd3.[01]* | freebsdelf3.[01]*)
8545 shlibpath_overrides_runpath=yes
8546 hardcode_into_libs=yes
8548 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8549 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8550 shlibpath_overrides_runpath=no
8551 hardcode_into_libs=yes
8553 *) # from 4.6 on, and DragonFly
8554 shlibpath_overrides_runpath=yes
8555 hardcode_into_libs=yes
8557 esac
8560 gnu*)
8561 version_type=linux
8562 need_lib_prefix=no
8563 need_version=no
8564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8565 soname_spec='${libname}${release}${shared_ext}$major'
8566 shlibpath_var=LD_LIBRARY_PATH
8567 hardcode_into_libs=yes
8570 hpux9* | hpux10* | hpux11*)
8571 # Give a soname corresponding to the major version so that dld.sl refuses to
8572 # link against other versions.
8573 version_type=sunos
8574 need_lib_prefix=no
8575 need_version=no
8576 case $host_cpu in
8577 ia64*)
8578 shrext_cmds='.so'
8579 hardcode_into_libs=yes
8580 dynamic_linker="$host_os dld.so"
8581 shlibpath_var=LD_LIBRARY_PATH
8582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8584 soname_spec='${libname}${release}${shared_ext}$major'
8585 if test "X$HPUX_IA64_MODE" = X32; then
8586 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8587 else
8588 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8592 hppa*64*)
8593 shrext_cmds='.sl'
8594 hardcode_into_libs=yes
8595 dynamic_linker="$host_os dld.sl"
8596 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8599 soname_spec='${libname}${release}${shared_ext}$major'
8600 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8604 shrext_cmds='.sl'
8605 dynamic_linker="$host_os dld.sl"
8606 shlibpath_var=SHLIB_PATH
8607 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8609 soname_spec='${libname}${release}${shared_ext}$major'
8611 esac
8612 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8613 postinstall_cmds='chmod 555 $lib'
8616 interix[3-9]*)
8617 version_type=linux
8618 need_lib_prefix=no
8619 need_version=no
8620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8621 soname_spec='${libname}${release}${shared_ext}$major'
8622 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8623 shlibpath_var=LD_LIBRARY_PATH
8624 shlibpath_overrides_runpath=no
8625 hardcode_into_libs=yes
8628 irix5* | irix6* | nonstopux*)
8629 case $host_os in
8630 nonstopux*) version_type=nonstopux ;;
8632 if test "$lt_cv_prog_gnu_ld" = yes; then
8633 version_type=linux
8634 else
8635 version_type=irix
8636 fi ;;
8637 esac
8638 need_lib_prefix=no
8639 need_version=no
8640 soname_spec='${libname}${release}${shared_ext}$major'
8641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8642 case $host_os in
8643 irix5* | nonstopux*)
8644 libsuff= shlibsuff=
8647 case $LD in # libtool.m4 will add one of these switches to LD
8648 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8649 libsuff= shlibsuff= libmagic=32-bit;;
8650 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8651 libsuff=32 shlibsuff=N32 libmagic=N32;;
8652 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8653 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8654 *) libsuff= shlibsuff= libmagic=never-match;;
8655 esac
8657 esac
8658 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8659 shlibpath_overrides_runpath=no
8660 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8661 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8662 hardcode_into_libs=yes
8665 # No shared lib support for Linux oldld, aout, or coff.
8666 linux*oldld* | linux*aout* | linux*coff*)
8667 dynamic_linker=no
8670 # This must be Linux ELF.
8671 linux* | k*bsd*-gnu)
8672 version_type=linux
8673 need_lib_prefix=no
8674 need_version=no
8675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8676 soname_spec='${libname}${release}${shared_ext}$major'
8677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8678 shlibpath_var=LD_LIBRARY_PATH
8679 shlibpath_overrides_runpath=no
8680 # Some binutils ld are patched to set DT_RUNPATH
8681 save_LDFLAGS=$LDFLAGS
8682 save_libdir=$libdir
8683 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8684 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8685 cat >conftest.$ac_ext <<_ACEOF
8686 /* confdefs.h. */
8687 _ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h. */
8693 main ()
8697 return 0;
8699 _ACEOF
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8702 (eval $ac_link) 2>conftest.er1
8703 ac_status=$?
8704 grep -v '^ *+' conftest.er1 >conftest.err
8705 rm -f conftest.er1
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try='test -z "$ac_c_werror_flag"
8710 || test ! -s conftest.err'
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); }; } &&
8716 { ac_try='test -s conftest$ac_exeext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 (eval $ac_try) 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8723 shlibpath_overrides_runpath=yes
8726 else
8727 echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8731 rm -f conftest.err conftest.$ac_objext \
8732 conftest$ac_exeext conftest.$ac_ext
8733 LDFLAGS=$save_LDFLAGS
8734 libdir=$save_libdir
8736 # This implies no fast_install, which is unacceptable.
8737 # Some rework will be needed to allow for fast_install
8738 # before this can be enabled.
8739 hardcode_into_libs=yes
8741 # Append ld.so.conf contents to the search path
8742 if test -f /etc/ld.so.conf; then
8743 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' ' '`
8744 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8747 # We used to test for /lib/ld.so.1 and disable shared libraries on
8748 # powerpc, because MkLinux only supported shared libraries with the
8749 # GNU dynamic linker. Since this was broken with cross compilers,
8750 # most powerpc-linux boxes support dynamic linking these days and
8751 # people can always --disable-shared, the test was removed, and we
8752 # assume the GNU/Linux dynamic linker is in use.
8753 dynamic_linker='GNU/Linux ld.so'
8756 netbsd*)
8757 version_type=sunos
8758 need_lib_prefix=no
8759 need_version=no
8760 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8763 dynamic_linker='NetBSD (a.out) ld.so'
8764 else
8765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8766 soname_spec='${libname}${release}${shared_ext}$major'
8767 dynamic_linker='NetBSD ld.elf_so'
8769 shlibpath_var=LD_LIBRARY_PATH
8770 shlibpath_overrides_runpath=yes
8771 hardcode_into_libs=yes
8774 newsos6)
8775 version_type=linux
8776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8777 shlibpath_var=LD_LIBRARY_PATH
8778 shlibpath_overrides_runpath=yes
8781 *nto* | *qnx*)
8782 version_type=qnx
8783 need_lib_prefix=no
8784 need_version=no
8785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8786 soname_spec='${libname}${release}${shared_ext}$major'
8787 shlibpath_var=LD_LIBRARY_PATH
8788 shlibpath_overrides_runpath=no
8789 hardcode_into_libs=yes
8790 dynamic_linker='ldqnx.so'
8793 openbsd*)
8794 version_type=sunos
8795 sys_lib_dlsearch_path_spec="/usr/lib"
8796 need_lib_prefix=no
8797 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8798 case $host_os in
8799 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8800 *) need_version=no ;;
8801 esac
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8804 shlibpath_var=LD_LIBRARY_PATH
8805 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8806 case $host_os in
8807 openbsd2.[89] | openbsd2.[89].*)
8808 shlibpath_overrides_runpath=no
8811 shlibpath_overrides_runpath=yes
8813 esac
8814 else
8815 shlibpath_overrides_runpath=yes
8819 os2*)
8820 libname_spec='$name'
8821 shrext_cmds=".dll"
8822 need_lib_prefix=no
8823 library_names_spec='$libname${shared_ext} $libname.a'
8824 dynamic_linker='OS/2 ld.exe'
8825 shlibpath_var=LIBPATH
8828 osf3* | osf4* | osf5*)
8829 version_type=osf
8830 need_lib_prefix=no
8831 need_version=no
8832 soname_spec='${libname}${release}${shared_ext}$major'
8833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8834 shlibpath_var=LD_LIBRARY_PATH
8835 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8836 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8839 rdos*)
8840 dynamic_linker=no
8843 solaris*)
8844 version_type=linux
8845 need_lib_prefix=no
8846 need_version=no
8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848 soname_spec='${libname}${release}${shared_ext}$major'
8849 shlibpath_var=LD_LIBRARY_PATH
8850 shlibpath_overrides_runpath=yes
8851 hardcode_into_libs=yes
8852 # ldd complains unless libraries are executable
8853 postinstall_cmds='chmod +x $lib'
8856 sunos4*)
8857 version_type=sunos
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8859 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8860 shlibpath_var=LD_LIBRARY_PATH
8861 shlibpath_overrides_runpath=yes
8862 if test "$with_gnu_ld" = yes; then
8863 need_lib_prefix=no
8865 need_version=yes
8868 sysv4 | sysv4.3*)
8869 version_type=linux
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8871 soname_spec='${libname}${release}${shared_ext}$major'
8872 shlibpath_var=LD_LIBRARY_PATH
8873 case $host_vendor in
8874 sni)
8875 shlibpath_overrides_runpath=no
8876 need_lib_prefix=no
8877 runpath_var=LD_RUN_PATH
8879 siemens)
8880 need_lib_prefix=no
8882 motorola)
8883 need_lib_prefix=no
8884 need_version=no
8885 shlibpath_overrides_runpath=no
8886 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8888 esac
8891 sysv4*MP*)
8892 if test -d /usr/nec ;then
8893 version_type=linux
8894 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8895 soname_spec='$libname${shared_ext}.$major'
8896 shlibpath_var=LD_LIBRARY_PATH
8900 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8901 version_type=freebsd-elf
8902 need_lib_prefix=no
8903 need_version=no
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 shlibpath_var=LD_LIBRARY_PATH
8907 shlibpath_overrides_runpath=yes
8908 hardcode_into_libs=yes
8909 if test "$with_gnu_ld" = yes; then
8910 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8911 else
8912 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8913 case $host_os in
8914 sco3.2v5*)
8915 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8917 esac
8919 sys_lib_dlsearch_path_spec='/usr/lib'
8922 tpf*)
8923 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8924 version_type=linux
8925 need_lib_prefix=no
8926 need_version=no
8927 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8928 shlibpath_var=LD_LIBRARY_PATH
8929 shlibpath_overrides_runpath=no
8930 hardcode_into_libs=yes
8933 uts4*)
8934 version_type=linux
8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936 soname_spec='${libname}${release}${shared_ext}$major'
8937 shlibpath_var=LD_LIBRARY_PATH
8941 dynamic_linker=no
8943 esac
8944 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8945 echo "${ECHO_T}$dynamic_linker" >&6
8946 test "$dynamic_linker" = no && can_build_shared=no
8948 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8949 if test "$GCC" = yes; then
8950 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9039 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9040 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9041 hardcode_action=
9042 if test -n "$hardcode_libdir_flag_spec" ||
9043 test -n "$runpath_var" ||
9044 test "X$hardcode_automatic" = "Xyes" ; then
9046 # We can hardcode non-existent directories.
9047 if test "$hardcode_direct" != no &&
9048 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9049 # have to relink, otherwise we might link with an installed library
9050 # when we should be linking with a yet-to-be-installed one
9051 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9052 test "$hardcode_minus_L" != no; then
9053 # Linking always hardcodes the temporary library directory.
9054 hardcode_action=relink
9055 else
9056 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9057 hardcode_action=immediate
9059 else
9060 # We cannot hardcode anything, or else we can only hardcode existing
9061 # directories.
9062 hardcode_action=unsupported
9064 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9065 echo "${ECHO_T}$hardcode_action" >&6
9067 if test "$hardcode_action" = relink ||
9068 test "$inherit_rpath" = yes; then
9069 # Fast installation is not supported
9070 enable_fast_install=no
9071 elif test "$shlibpath_overrides_runpath" = yes ||
9072 test "$enable_shared" = no; then
9073 # Fast installation is not necessary
9074 enable_fast_install=needless
9082 if test "x$enable_dlopen" != xyes; then
9083 enable_dlopen=unknown
9084 enable_dlopen_self=unknown
9085 enable_dlopen_self_static=unknown
9086 else
9087 lt_cv_dlopen=no
9088 lt_cv_dlopen_libs=
9090 case $host_os in
9091 beos*)
9092 lt_cv_dlopen="load_add_on"
9093 lt_cv_dlopen_libs=
9094 lt_cv_dlopen_self=yes
9097 mingw* | pw32*)
9098 lt_cv_dlopen="LoadLibrary"
9099 lt_cv_dlopen_libs=
9102 cygwin*)
9103 lt_cv_dlopen="dlopen"
9104 lt_cv_dlopen_libs=
9107 darwin*)
9108 # if libdl is installed we need to link against it
9109 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9110 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9111 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 else
9114 ac_check_lib_save_LIBS=$LIBS
9115 LIBS="-ldl $LIBS"
9116 cat >conftest.$ac_ext <<_ACEOF
9117 /* confdefs.h. */
9118 _ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9123 /* Override any gcc2 internal prototype to avoid an error. */
9124 #ifdef __cplusplus
9125 extern "C"
9126 #endif
9127 /* We use char because int might match the return type of a gcc2
9128 builtin and then its argument prototype would still apply. */
9129 char dlopen ();
9131 main ()
9133 dlopen ();
9135 return 0;
9137 _ACEOF
9138 rm -f conftest.$ac_objext conftest$ac_exeext
9139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9140 (eval $ac_link) 2>conftest.er1
9141 ac_status=$?
9142 grep -v '^ *+' conftest.er1 >conftest.err
9143 rm -f conftest.er1
9144 cat conftest.err >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); } &&
9147 { ac_try='test -z "$ac_c_werror_flag"
9148 || test ! -s conftest.err'
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); }; } &&
9154 { ac_try='test -s conftest$ac_exeext'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 (eval $ac_try) 2>&5
9157 ac_status=$?
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; }; then
9160 ac_cv_lib_dl_dlopen=yes
9161 else
9162 echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.$ac_ext >&5
9165 ac_cv_lib_dl_dlopen=no
9167 rm -f conftest.err conftest.$ac_objext \
9168 conftest$ac_exeext conftest.$ac_ext
9169 LIBS=$ac_check_lib_save_LIBS
9171 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9172 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9173 if test $ac_cv_lib_dl_dlopen = yes; then
9174 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9175 else
9177 lt_cv_dlopen="dyld"
9178 lt_cv_dlopen_libs=
9179 lt_cv_dlopen_self=yes
9186 echo "$as_me:$LINENO: checking for shl_load" >&5
9187 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9188 if test "${ac_cv_func_shl_load+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 else
9191 cat >conftest.$ac_ext <<_ACEOF
9192 /* confdefs.h. */
9193 _ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9199 #define shl_load innocuous_shl_load
9201 /* System header to define __stub macros and hopefully few prototypes,
9202 which can conflict with char shl_load (); below.
9203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9204 <limits.h> exists even on freestanding compilers. */
9206 #ifdef __STDC__
9207 # include <limits.h>
9208 #else
9209 # include <assert.h>
9210 #endif
9212 #undef shl_load
9214 /* Override any gcc2 internal prototype to avoid an error. */
9215 #ifdef __cplusplus
9216 extern "C"
9218 #endif
9219 /* We use char because int might match the return type of a gcc2
9220 builtin and then its argument prototype would still apply. */
9221 char shl_load ();
9222 /* The GNU C library defines this for functions which it implements
9223 to always fail with ENOSYS. Some functions are actually named
9224 something starting with __ and the normal name is an alias. */
9225 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9226 choke me
9227 #else
9228 char (*f) () = shl_load;
9229 #endif
9230 #ifdef __cplusplus
9232 #endif
9235 main ()
9237 return f != shl_load;
9239 return 0;
9241 _ACEOF
9242 rm -f conftest.$ac_objext conftest$ac_exeext
9243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9244 (eval $ac_link) 2>conftest.er1
9245 ac_status=$?
9246 grep -v '^ *+' conftest.er1 >conftest.err
9247 rm -f conftest.er1
9248 cat conftest.err >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } &&
9251 { ac_try='test -z "$ac_c_werror_flag"
9252 || test ! -s conftest.err'
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); }; } &&
9258 { ac_try='test -s conftest$ac_exeext'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 (eval $ac_try) 2>&5
9261 ac_status=$?
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; }; then
9264 ac_cv_func_shl_load=yes
9265 else
9266 echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.$ac_ext >&5
9269 ac_cv_func_shl_load=no
9271 rm -f conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
9274 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9275 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9276 if test $ac_cv_func_shl_load = yes; then
9277 lt_cv_dlopen="shl_load"
9278 else
9279 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9280 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9281 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 else
9284 ac_check_lib_save_LIBS=$LIBS
9285 LIBS="-ldld $LIBS"
9286 cat >conftest.$ac_ext <<_ACEOF
9287 /* confdefs.h. */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h. */
9293 /* Override any gcc2 internal prototype to avoid an error. */
9294 #ifdef __cplusplus
9295 extern "C"
9296 #endif
9297 /* We use char because int might match the return type of a gcc2
9298 builtin and then its argument prototype would still apply. */
9299 char shl_load ();
9301 main ()
9303 shl_load ();
9305 return 0;
9307 _ACEOF
9308 rm -f conftest.$ac_objext conftest$ac_exeext
9309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9310 (eval $ac_link) 2>conftest.er1
9311 ac_status=$?
9312 grep -v '^ *+' conftest.er1 >conftest.err
9313 rm -f conftest.er1
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } &&
9317 { ac_try='test -z "$ac_c_werror_flag"
9318 || test ! -s conftest.err'
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); }; } &&
9324 { ac_try='test -s conftest$ac_exeext'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 (eval $ac_try) 2>&5
9327 ac_status=$?
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; }; then
9330 ac_cv_lib_dld_shl_load=yes
9331 else
9332 echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9335 ac_cv_lib_dld_shl_load=no
9337 rm -f conftest.err conftest.$ac_objext \
9338 conftest$ac_exeext conftest.$ac_ext
9339 LIBS=$ac_check_lib_save_LIBS
9341 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9342 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9343 if test $ac_cv_lib_dld_shl_load = yes; then
9344 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9345 else
9346 echo "$as_me:$LINENO: checking for dlopen" >&5
9347 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9348 if test "${ac_cv_func_dlopen+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351 cat >conftest.$ac_ext <<_ACEOF
9352 /* confdefs.h. */
9353 _ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h. */
9357 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9359 #define dlopen innocuous_dlopen
9361 /* System header to define __stub macros and hopefully few prototypes,
9362 which can conflict with char dlopen (); below.
9363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9364 <limits.h> exists even on freestanding compilers. */
9366 #ifdef __STDC__
9367 # include <limits.h>
9368 #else
9369 # include <assert.h>
9370 #endif
9372 #undef dlopen
9374 /* Override any gcc2 internal prototype to avoid an error. */
9375 #ifdef __cplusplus
9376 extern "C"
9378 #endif
9379 /* We use char because int might match the return type of a gcc2
9380 builtin and then its argument prototype would still apply. */
9381 char dlopen ();
9382 /* The GNU C library defines this for functions which it implements
9383 to always fail with ENOSYS. Some functions are actually named
9384 something starting with __ and the normal name is an alias. */
9385 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9386 choke me
9387 #else
9388 char (*f) () = dlopen;
9389 #endif
9390 #ifdef __cplusplus
9392 #endif
9395 main ()
9397 return f != dlopen;
9399 return 0;
9401 _ACEOF
9402 rm -f conftest.$ac_objext conftest$ac_exeext
9403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404 (eval $ac_link) 2>conftest.er1
9405 ac_status=$?
9406 grep -v '^ *+' conftest.er1 >conftest.err
9407 rm -f conftest.er1
9408 cat conftest.err >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } &&
9411 { ac_try='test -z "$ac_c_werror_flag"
9412 || test ! -s conftest.err'
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); }; } &&
9418 { ac_try='test -s conftest$ac_exeext'
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 (eval $ac_try) 2>&5
9421 ac_status=$?
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; }; then
9424 ac_cv_func_dlopen=yes
9425 else
9426 echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9429 ac_cv_func_dlopen=no
9431 rm -f conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9434 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9435 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9436 if test $ac_cv_func_dlopen = yes; then
9437 lt_cv_dlopen="dlopen"
9438 else
9439 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9440 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9441 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444 ac_check_lib_save_LIBS=$LIBS
9445 LIBS="-ldl $LIBS"
9446 cat >conftest.$ac_ext <<_ACEOF
9447 /* confdefs.h. */
9448 _ACEOF
9449 cat confdefs.h >>conftest.$ac_ext
9450 cat >>conftest.$ac_ext <<_ACEOF
9451 /* end confdefs.h. */
9453 /* Override any gcc2 internal prototype to avoid an error. */
9454 #ifdef __cplusplus
9455 extern "C"
9456 #endif
9457 /* We use char because int might match the return type of a gcc2
9458 builtin and then its argument prototype would still apply. */
9459 char dlopen ();
9461 main ()
9463 dlopen ();
9465 return 0;
9467 _ACEOF
9468 rm -f conftest.$ac_objext conftest$ac_exeext
9469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9470 (eval $ac_link) 2>conftest.er1
9471 ac_status=$?
9472 grep -v '^ *+' conftest.er1 >conftest.err
9473 rm -f conftest.er1
9474 cat conftest.err >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } &&
9477 { ac_try='test -z "$ac_c_werror_flag"
9478 || test ! -s conftest.err'
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); }; } &&
9484 { ac_try='test -s conftest$ac_exeext'
9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486 (eval $ac_try) 2>&5
9487 ac_status=$?
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; }; then
9490 ac_cv_lib_dl_dlopen=yes
9491 else
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9495 ac_cv_lib_dl_dlopen=no
9497 rm -f conftest.err conftest.$ac_objext \
9498 conftest$ac_exeext conftest.$ac_ext
9499 LIBS=$ac_check_lib_save_LIBS
9501 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9502 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9503 if test $ac_cv_lib_dl_dlopen = yes; then
9504 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9505 else
9506 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9507 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9508 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511 ac_check_lib_save_LIBS=$LIBS
9512 LIBS="-lsvld $LIBS"
9513 cat >conftest.$ac_ext <<_ACEOF
9514 /* confdefs.h. */
9515 _ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h. */
9520 /* Override any gcc2 internal prototype to avoid an error. */
9521 #ifdef __cplusplus
9522 extern "C"
9523 #endif
9524 /* We use char because int might match the return type of a gcc2
9525 builtin and then its argument prototype would still apply. */
9526 char dlopen ();
9528 main ()
9530 dlopen ();
9532 return 0;
9534 _ACEOF
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9537 (eval $ac_link) 2>conftest.er1
9538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } &&
9544 { ac_try='test -z "$ac_c_werror_flag"
9545 || test ! -s conftest.err'
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); }; } &&
9551 { ac_try='test -s conftest$ac_exeext'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 (eval $ac_try) 2>&5
9554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; }; then
9557 ac_cv_lib_svld_dlopen=yes
9558 else
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9562 ac_cv_lib_svld_dlopen=no
9564 rm -f conftest.err conftest.$ac_objext \
9565 conftest$ac_exeext conftest.$ac_ext
9566 LIBS=$ac_check_lib_save_LIBS
9568 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9569 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9570 if test $ac_cv_lib_svld_dlopen = yes; then
9571 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9572 else
9573 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9574 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9575 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 else
9578 ac_check_lib_save_LIBS=$LIBS
9579 LIBS="-ldld $LIBS"
9580 cat >conftest.$ac_ext <<_ACEOF
9581 /* confdefs.h. */
9582 _ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9587 /* Override any gcc2 internal prototype to avoid an error. */
9588 #ifdef __cplusplus
9589 extern "C"
9590 #endif
9591 /* We use char because int might match the return type of a gcc2
9592 builtin and then its argument prototype would still apply. */
9593 char dld_link ();
9595 main ()
9597 dld_link ();
9599 return 0;
9601 _ACEOF
9602 rm -f conftest.$ac_objext conftest$ac_exeext
9603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9604 (eval $ac_link) 2>conftest.er1
9605 ac_status=$?
9606 grep -v '^ *+' conftest.er1 >conftest.err
9607 rm -f conftest.er1
9608 cat conftest.err >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } &&
9611 { ac_try='test -z "$ac_c_werror_flag"
9612 || test ! -s conftest.err'
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); }; } &&
9618 { ac_try='test -s conftest$ac_exeext'
9619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 (eval $ac_try) 2>&5
9621 ac_status=$?
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; }; then
9624 ac_cv_lib_dld_dld_link=yes
9625 else
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 ac_cv_lib_dld_dld_link=no
9631 rm -f conftest.err conftest.$ac_objext \
9632 conftest$ac_exeext conftest.$ac_ext
9633 LIBS=$ac_check_lib_save_LIBS
9635 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9636 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9637 if test $ac_cv_lib_dld_dld_link = yes; then
9638 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9657 esac
9659 if test "x$lt_cv_dlopen" != xno; then
9660 enable_dlopen=yes
9661 else
9662 enable_dlopen=no
9665 case $lt_cv_dlopen in
9666 dlopen)
9667 save_CPPFLAGS="$CPPFLAGS"
9668 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9670 save_LDFLAGS="$LDFLAGS"
9671 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9673 save_LIBS="$LIBS"
9674 LIBS="$lt_cv_dlopen_libs $LIBS"
9676 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9677 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9678 if test "${lt_cv_dlopen_self+set}" = set; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 else
9681 if test "$cross_compiling" = yes; then :
9682 lt_cv_dlopen_self=cross
9683 else
9684 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9685 lt_status=$lt_dlunknown
9686 cat > conftest.$ac_ext <<_LT_EOF
9687 #line 9687 "configure"
9688 #include "confdefs.h"
9690 #if HAVE_DLFCN_H
9691 #include <dlfcn.h>
9692 #endif
9694 #include <stdio.h>
9696 #ifdef RTLD_GLOBAL
9697 # define LT_DLGLOBAL RTLD_GLOBAL
9698 #else
9699 # ifdef DL_GLOBAL
9700 # define LT_DLGLOBAL DL_GLOBAL
9701 # else
9702 # define LT_DLGLOBAL 0
9703 # endif
9704 #endif
9706 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9707 find out it does not work in some platform. */
9708 #ifndef LT_DLLAZY_OR_NOW
9709 # ifdef RTLD_LAZY
9710 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9711 # else
9712 # ifdef DL_LAZY
9713 # define LT_DLLAZY_OR_NOW DL_LAZY
9714 # else
9715 # ifdef RTLD_NOW
9716 # define LT_DLLAZY_OR_NOW RTLD_NOW
9717 # else
9718 # ifdef DL_NOW
9719 # define LT_DLLAZY_OR_NOW DL_NOW
9720 # else
9721 # define LT_DLLAZY_OR_NOW 0
9722 # endif
9723 # endif
9724 # endif
9725 # endif
9726 #endif
9728 #ifdef __cplusplus
9729 extern "C" void exit (int);
9730 #endif
9732 void fnord() { int i=42;}
9733 int main ()
9735 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9736 int status = $lt_dlunknown;
9738 if (self)
9740 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9741 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9742 /* dlclose (self); */
9744 else
9745 puts (dlerror ());
9747 exit (status);
9749 _LT_EOF
9750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9751 (eval $ac_link) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9755 (./conftest; exit; ) >&5 2>/dev/null
9756 lt_status=$?
9757 case x$lt_status in
9758 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9759 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9760 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9761 esac
9762 else :
9763 # compilation failed
9764 lt_cv_dlopen_self=no
9767 rm -fr conftest*
9771 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9772 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9774 if test "x$lt_cv_dlopen_self" = xyes; then
9775 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9776 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9777 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9778 if test "${lt_cv_dlopen_self_static+set}" = set; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9780 else
9781 if test "$cross_compiling" = yes; then :
9782 lt_cv_dlopen_self_static=cross
9783 else
9784 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9785 lt_status=$lt_dlunknown
9786 cat > conftest.$ac_ext <<_LT_EOF
9787 #line 9787 "configure"
9788 #include "confdefs.h"
9790 #if HAVE_DLFCN_H
9791 #include <dlfcn.h>
9792 #endif
9794 #include <stdio.h>
9796 #ifdef RTLD_GLOBAL
9797 # define LT_DLGLOBAL RTLD_GLOBAL
9798 #else
9799 # ifdef DL_GLOBAL
9800 # define LT_DLGLOBAL DL_GLOBAL
9801 # else
9802 # define LT_DLGLOBAL 0
9803 # endif
9804 #endif
9806 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9807 find out it does not work in some platform. */
9808 #ifndef LT_DLLAZY_OR_NOW
9809 # ifdef RTLD_LAZY
9810 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9811 # else
9812 # ifdef DL_LAZY
9813 # define LT_DLLAZY_OR_NOW DL_LAZY
9814 # else
9815 # ifdef RTLD_NOW
9816 # define LT_DLLAZY_OR_NOW RTLD_NOW
9817 # else
9818 # ifdef DL_NOW
9819 # define LT_DLLAZY_OR_NOW DL_NOW
9820 # else
9821 # define LT_DLLAZY_OR_NOW 0
9822 # endif
9823 # endif
9824 # endif
9825 # endif
9826 #endif
9828 #ifdef __cplusplus
9829 extern "C" void exit (int);
9830 #endif
9832 void fnord() { int i=42;}
9833 int main ()
9835 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9836 int status = $lt_dlunknown;
9838 if (self)
9840 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9841 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9842 /* dlclose (self); */
9844 else
9845 puts (dlerror ());
9847 exit (status);
9849 _LT_EOF
9850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851 (eval $ac_link) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9855 (./conftest; exit; ) >&5 2>/dev/null
9856 lt_status=$?
9857 case x$lt_status in
9858 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9859 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9860 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9861 esac
9862 else :
9863 # compilation failed
9864 lt_cv_dlopen_self_static=no
9867 rm -fr conftest*
9871 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9872 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9875 CPPFLAGS="$save_CPPFLAGS"
9876 LDFLAGS="$save_LDFLAGS"
9877 LIBS="$save_LIBS"
9879 esac
9881 case $lt_cv_dlopen_self in
9882 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9883 *) enable_dlopen_self=unknown ;;
9884 esac
9886 case $lt_cv_dlopen_self_static in
9887 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9888 *) enable_dlopen_self_static=unknown ;;
9889 esac
9908 striplib=
9909 old_striplib=
9910 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9911 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9912 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9913 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9914 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9915 echo "$as_me:$LINENO: result: yes" >&5
9916 echo "${ECHO_T}yes" >&6
9917 else
9918 # FIXME - insert some real tests, host_os isn't really good enough
9919 case $host_os in
9920 darwin*)
9921 if test -n "$STRIP" ; then
9922 striplib="$STRIP -x"
9923 old_striplib="$STRIP -S"
9924 echo "$as_me:$LINENO: result: yes" >&5
9925 echo "${ECHO_T}yes" >&6
9926 else
9927 echo "$as_me:$LINENO: result: no" >&5
9928 echo "${ECHO_T}no" >&6
9932 echo "$as_me:$LINENO: result: no" >&5
9933 echo "${ECHO_T}no" >&6
9935 esac
9949 # Report which library types will actually be built
9950 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9951 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9952 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9953 echo "${ECHO_T}$can_build_shared" >&6
9955 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9956 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9957 test "$can_build_shared" = "no" && enable_shared=no
9959 # On AIX, shared libraries and static libraries use the same namespace, and
9960 # are all built from PIC.
9961 case $host_os in
9962 aix3*)
9963 test "$enable_shared" = yes && enable_static=no
9964 if test -n "$RANLIB"; then
9965 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9966 postinstall_cmds='$RANLIB $lib'
9970 aix[4-9]*)
9971 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9972 test "$enable_shared" = yes && enable_static=no
9975 esac
9976 echo "$as_me:$LINENO: result: $enable_shared" >&5
9977 echo "${ECHO_T}$enable_shared" >&6
9979 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9980 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9981 # Make sure either enable_shared or enable_static is yes.
9982 test "$enable_shared" = yes || enable_static=yes
9983 echo "$as_me:$LINENO: result: $enable_static" >&5
9984 echo "${ECHO_T}$enable_static" >&6
9990 ac_ext=c
9991 ac_cpp='$CPP $CPPFLAGS'
9992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9996 CC="$lt_save_CC"
10010 ac_config_commands="$ac_config_commands libtool"
10015 # Only expand once:
10021 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10022 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10023 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10024 if test "${enable_maintainer_mode+set}" = set; then
10025 enableval="$enable_maintainer_mode"
10026 USE_MAINTAINER_MODE=$enableval
10027 else
10028 USE_MAINTAINER_MODE=no
10030 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10031 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10034 if test $USE_MAINTAINER_MODE = yes; then
10035 MAINTAINER_MODE_TRUE=
10036 MAINTAINER_MODE_FALSE='#'
10037 else
10038 MAINTAINER_MODE_TRUE='#'
10039 MAINTAINER_MODE_FALSE=
10042 MAINT=$MAINTAINER_MODE_TRUE
10046 # We need gfortran to compile parts of the library
10047 # We can't use AC_PROG_FC because it expects a fully working gfortran.
10048 #AC_PROG_FC(gfortran)
10049 FC="$GFORTRAN"
10050 ac_ext=${FC_SRCEXT-f}
10051 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10052 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10053 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10054 if test -n "$ac_tool_prefix"; then
10055 for ac_prog in gfortran
10057 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10058 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10059 echo "$as_me:$LINENO: checking for $ac_word" >&5
10060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10061 if test "${ac_cv_prog_FC+set}" = set; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 else
10064 if test -n "$FC"; then
10065 ac_cv_prog_FC="$FC" # Let the user override the test.
10066 else
10067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10068 for as_dir in $PATH
10070 IFS=$as_save_IFS
10071 test -z "$as_dir" && as_dir=.
10072 for ac_exec_ext in '' $ac_executable_extensions; do
10073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10074 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10076 break 2
10078 done
10079 done
10083 FC=$ac_cv_prog_FC
10084 if test -n "$FC"; then
10085 echo "$as_me:$LINENO: result: $FC" >&5
10086 echo "${ECHO_T}$FC" >&6
10087 else
10088 echo "$as_me:$LINENO: result: no" >&5
10089 echo "${ECHO_T}no" >&6
10092 test -n "$FC" && break
10093 done
10095 if test -z "$FC"; then
10096 ac_ct_FC=$FC
10097 for ac_prog in gfortran
10099 # Extract the first word of "$ac_prog", so it can be a program name with args.
10100 set dummy $ac_prog; ac_word=$2
10101 echo "$as_me:$LINENO: checking for $ac_word" >&5
10102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10103 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 else
10106 if test -n "$ac_ct_FC"; then
10107 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10108 else
10109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10110 for as_dir in $PATH
10112 IFS=$as_save_IFS
10113 test -z "$as_dir" && as_dir=.
10114 for ac_exec_ext in '' $ac_executable_extensions; do
10115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10116 ac_cv_prog_ac_ct_FC="$ac_prog"
10117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10118 break 2
10120 done
10121 done
10125 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10126 if test -n "$ac_ct_FC"; then
10127 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10128 echo "${ECHO_T}$ac_ct_FC" >&6
10129 else
10130 echo "$as_me:$LINENO: result: no" >&5
10131 echo "${ECHO_T}no" >&6
10134 test -n "$ac_ct_FC" && break
10135 done
10137 FC=$ac_ct_FC
10141 # Provide some information about the compiler.
10142 echo "$as_me:10142:" \
10143 "checking for Fortran compiler version" >&5
10144 ac_compiler=`set X $ac_compile; echo $2`
10145 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10146 (eval $ac_compiler --version </dev/null >&5) 2>&5
10147 ac_status=$?
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }
10150 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10151 (eval $ac_compiler -v </dev/null >&5) 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }
10155 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10156 (eval $ac_compiler -V </dev/null >&5) 2>&5
10157 ac_status=$?
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }
10160 rm -f a.out
10162 # If we don't use `.F' as extension, the preprocessor is not run on the
10163 # input file. (Note that this only needs to work for GNU compilers.)
10164 ac_save_ext=$ac_ext
10165 ac_ext=F
10166 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10167 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10168 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 else
10171 cat >conftest.$ac_ext <<_ACEOF
10172 program main
10173 #ifndef __GNUC__
10174 choke me
10175 #endif
10178 _ACEOF
10179 rm -f conftest.$ac_objext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10181 (eval $ac_compile) 2>conftest.er1
10182 ac_status=$?
10183 grep -v '^ *+' conftest.er1 >conftest.err
10184 rm -f conftest.er1
10185 cat conftest.err >&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } &&
10188 { ac_try='test -z "$ac_fc_werror_flag"
10189 || test ! -s conftest.err'
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); }; } &&
10195 { ac_try='test -s conftest.$ac_objext'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; }; then
10201 ac_compiler_gnu=yes
10202 else
10203 echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10206 ac_compiler_gnu=no
10208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10209 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10212 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10213 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10214 ac_ext=$ac_save_ext
10215 ac_test_FFLAGS=${FCFLAGS+set}
10216 ac_save_FFLAGS=$FCFLAGS
10217 FCFLAGS=
10218 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10219 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10220 if test "${ac_cv_prog_fc_g+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223 FCFLAGS=-g
10224 cat >conftest.$ac_ext <<_ACEOF
10225 program main
10228 _ACEOF
10229 rm -f conftest.$ac_objext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10231 (eval $ac_compile) 2>conftest.er1
10232 ac_status=$?
10233 grep -v '^ *+' conftest.er1 >conftest.err
10234 rm -f conftest.er1
10235 cat conftest.err >&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
10238 { ac_try='test -z "$ac_fc_werror_flag"
10239 || test ! -s conftest.err'
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); }; } &&
10245 { ac_try='test -s conftest.$ac_objext'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 ac_cv_prog_fc_g=yes
10252 else
10253 echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10256 ac_cv_prog_fc_g=no
10258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10261 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10262 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10263 if test "$ac_test_FFLAGS" = set; then
10264 FCFLAGS=$ac_save_FFLAGS
10265 elif test $ac_cv_prog_fc_g = yes; then
10266 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10267 FCFLAGS="-g -O2"
10268 else
10269 FCFLAGS="-g"
10271 else
10272 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10273 FCFLAGS="-O2"
10274 else
10275 FCFLAGS=
10279 ac_ext=c
10280 ac_cpp='$CPP $CPPFLAGS'
10281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10286 ac_ext=${FC_SRCEXT-f}
10287 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10288 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10289 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10290 if test -n "$ac_tool_prefix"; then
10291 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10295 echo "$as_me:$LINENO: checking for $ac_word" >&5
10296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10297 if test "${ac_cv_prog_FC+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300 if test -n "$FC"; then
10301 ac_cv_prog_FC="$FC" # Let the user override the test.
10302 else
10303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10304 for as_dir in $PATH
10306 IFS=$as_save_IFS
10307 test -z "$as_dir" && as_dir=.
10308 for ac_exec_ext in '' $ac_executable_extensions; do
10309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10310 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10312 break 2
10314 done
10315 done
10319 FC=$ac_cv_prog_FC
10320 if test -n "$FC"; then
10321 echo "$as_me:$LINENO: result: $FC" >&5
10322 echo "${ECHO_T}$FC" >&6
10323 else
10324 echo "$as_me:$LINENO: result: no" >&5
10325 echo "${ECHO_T}no" >&6
10328 test -n "$FC" && break
10329 done
10331 if test -z "$FC"; then
10332 ac_ct_FC=$FC
10333 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10335 # Extract the first word of "$ac_prog", so it can be a program name with args.
10336 set dummy $ac_prog; ac_word=$2
10337 echo "$as_me:$LINENO: checking for $ac_word" >&5
10338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10339 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 else
10342 if test -n "$ac_ct_FC"; then
10343 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10344 else
10345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10346 for as_dir in $PATH
10348 IFS=$as_save_IFS
10349 test -z "$as_dir" && as_dir=.
10350 for ac_exec_ext in '' $ac_executable_extensions; do
10351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10352 ac_cv_prog_ac_ct_FC="$ac_prog"
10353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10354 break 2
10356 done
10357 done
10361 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10362 if test -n "$ac_ct_FC"; then
10363 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10364 echo "${ECHO_T}$ac_ct_FC" >&6
10365 else
10366 echo "$as_me:$LINENO: result: no" >&5
10367 echo "${ECHO_T}no" >&6
10370 test -n "$ac_ct_FC" && break
10371 done
10373 FC=$ac_ct_FC
10377 # Provide some information about the compiler.
10378 echo "$as_me:10378:" \
10379 "checking for Fortran compiler version" >&5
10380 ac_compiler=`set X $ac_compile; echo $2`
10381 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10382 (eval $ac_compiler --version </dev/null >&5) 2>&5
10383 ac_status=$?
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }
10386 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10387 (eval $ac_compiler -v </dev/null >&5) 2>&5
10388 ac_status=$?
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }
10391 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10392 (eval $ac_compiler -V </dev/null >&5) 2>&5
10393 ac_status=$?
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }
10396 rm -f a.out
10398 # If we don't use `.F' as extension, the preprocessor is not run on the
10399 # input file. (Note that this only needs to work for GNU compilers.)
10400 ac_save_ext=$ac_ext
10401 ac_ext=F
10402 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10403 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10404 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10406 else
10407 cat >conftest.$ac_ext <<_ACEOF
10408 program main
10409 #ifndef __GNUC__
10410 choke me
10411 #endif
10414 _ACEOF
10415 rm -f conftest.$ac_objext
10416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10417 (eval $ac_compile) 2>conftest.er1
10418 ac_status=$?
10419 grep -v '^ *+' conftest.er1 >conftest.err
10420 rm -f conftest.er1
10421 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } &&
10424 { ac_try='test -z "$ac_fc_werror_flag"
10425 || test ! -s conftest.err'
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); }; } &&
10431 { ac_try='test -s conftest.$ac_objext'
10432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433 (eval $ac_try) 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; }; then
10437 ac_compiler_gnu=yes
10438 else
10439 echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10442 ac_compiler_gnu=no
10444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10445 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10448 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10449 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10450 ac_ext=$ac_save_ext
10451 ac_test_FFLAGS=${FCFLAGS+set}
10452 ac_save_FFLAGS=$FCFLAGS
10453 FCFLAGS=
10454 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10455 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10456 if test "${ac_cv_prog_fc_g+set}" = set; then
10457 echo $ECHO_N "(cached) $ECHO_C" >&6
10458 else
10459 FCFLAGS=-g
10460 cat >conftest.$ac_ext <<_ACEOF
10461 program main
10464 _ACEOF
10465 rm -f conftest.$ac_objext
10466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10467 (eval $ac_compile) 2>conftest.er1
10468 ac_status=$?
10469 grep -v '^ *+' conftest.er1 >conftest.err
10470 rm -f conftest.er1
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } &&
10474 { ac_try='test -z "$ac_fc_werror_flag"
10475 || test ! -s conftest.err'
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); }; } &&
10481 { ac_try='test -s conftest.$ac_objext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10484 ac_status=$?
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 ac_cv_prog_fc_g=yes
10488 else
10489 echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10492 ac_cv_prog_fc_g=no
10494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10497 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10498 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10499 if test "$ac_test_FFLAGS" = set; then
10500 FCFLAGS=$ac_save_FFLAGS
10501 elif test $ac_cv_prog_fc_g = yes; then
10502 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10503 FCFLAGS="-g -O2"
10504 else
10505 FCFLAGS="-g"
10507 else
10508 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10509 FCFLAGS="-O2"
10510 else
10511 FCFLAGS=
10515 ac_ext=c
10516 ac_cpp='$CPP $CPPFLAGS'
10517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10521 if test -z "$FC" || test "X$FC" = "Xno"; then
10522 _lt_disable_FC=yes
10527 ac_ext=${FC_SRCEXT-f}
10528 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10529 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10530 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10533 archive_cmds_need_lc_FC=no
10534 allow_undefined_flag_FC=
10535 always_export_symbols_FC=no
10536 archive_expsym_cmds_FC=
10537 export_dynamic_flag_spec_FC=
10538 hardcode_direct_FC=no
10539 hardcode_direct_absolute_FC=no
10540 hardcode_libdir_flag_spec_FC=
10541 hardcode_libdir_flag_spec_ld_FC=
10542 hardcode_libdir_separator_FC=
10543 hardcode_minus_L_FC=no
10544 hardcode_automatic_FC=no
10545 inherit_rpath_FC=no
10546 module_cmds_FC=
10547 module_expsym_cmds_FC=
10548 link_all_deplibs_FC=unknown
10549 old_archive_cmds_FC=$old_archive_cmds
10550 no_undefined_flag_FC=
10551 whole_archive_flag_spec_FC=
10552 enable_shared_with_static_runtimes_FC=no
10554 # Source file extension for fc test sources.
10555 ac_ext=${ac_fc_srcext-f}
10557 # Object file extension for compiled fc test sources.
10558 objext=o
10559 objext_FC=$objext
10561 # No sense in running all these tests if we already determined that
10562 # the FC compiler isn't working. Some variables (like enable_shared)
10563 # are currently assumed to apply to all compilers on this platform,
10564 # and will be corrupted by setting them based on a non-working compiler.
10565 if test "$_lt_disable_FC" != yes; then
10566 # Code to be used in simple compile tests
10567 lt_simple_compile_test_code="\
10568 subroutine t
10569 return
10573 # Code to be used in simple link tests
10574 lt_simple_link_test_code="\
10575 program t
10579 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10586 # If no C compiler was specified, use CC.
10587 LTCC=${LTCC-"$CC"}
10589 # If no C compiler flags were specified, use CFLAGS.
10590 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10592 # Allow CC to be a program name with arguments.
10593 compiler=$CC
10596 # save warnings/boilerplate of simple test code
10597 ac_outfile=conftest.$ac_objext
10598 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10599 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10600 _lt_compiler_boilerplate=`cat conftest.err`
10601 $RM conftest*
10603 ac_outfile=conftest.$ac_objext
10604 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10605 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10606 _lt_linker_boilerplate=`cat conftest.err`
10607 $RM conftest*
10610 # Allow CC to be a program name with arguments.
10611 lt_save_CC="$CC"
10612 CC=${FC-"f95"}
10613 compiler=$CC
10614 compiler_FC=$CC
10615 for cc_temp in $compiler""; do
10616 case $cc_temp in
10617 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10618 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10619 \-*) ;;
10620 *) break;;
10621 esac
10622 done
10623 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10626 if test -n "$compiler"; then
10627 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10628 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10629 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10630 echo "${ECHO_T}$can_build_shared" >&6
10632 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10633 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10634 test "$can_build_shared" = "no" && enable_shared=no
10636 # On AIX, shared libraries and static libraries use the same namespace, and
10637 # are all built from PIC.
10638 case $host_os in
10639 aix3*)
10640 test "$enable_shared" = yes && enable_static=no
10641 if test -n "$RANLIB"; then
10642 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10643 postinstall_cmds='$RANLIB $lib'
10646 aix[4-9]*)
10647 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10648 test "$enable_shared" = yes && enable_static=no
10651 esac
10652 echo "$as_me:$LINENO: result: $enable_shared" >&5
10653 echo "${ECHO_T}$enable_shared" >&6
10655 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10656 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10657 # Make sure either enable_shared or enable_static is yes.
10658 test "$enable_shared" = yes || enable_static=yes
10659 echo "$as_me:$LINENO: result: $enable_static" >&5
10660 echo "${ECHO_T}$enable_static" >&6
10662 GCC_FC="$ac_cv_fc_compiler_gnu"
10663 LD_FC="$LD"
10665 ## CAVEAT EMPTOR:
10666 ## There is no encapsulation within the following macros, do not change
10667 ## the running order or otherwise move them around unless you know exactly
10668 ## what you are doing...
10669 # Dependencies to place before and after the object being linked:
10670 predep_objects_FC=
10671 postdep_objects_FC=
10672 predeps_FC=
10673 postdeps_FC=
10674 compiler_lib_search_path_FC=
10676 cat > conftest.$ac_ext <<_LT_EOF
10677 subroutine foo
10678 implicit none
10679 integer a
10681 return
10683 _LT_EOF
10685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10686 (eval $ac_compile) 2>&5
10687 ac_status=$?
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; then
10690 # Parse the compiler output and extract the necessary
10691 # objects, libraries and library flags.
10693 # Sentinel used to keep track of whether or not we are before
10694 # the conftest object file.
10695 pre_test_object_deps_done=no
10697 # The `*' in the case matches for architectures that use `case' in
10698 # $output_verbose_cmd can trigger glob expansion during the loop
10699 # eval without this substitution.
10700 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10702 for p in `eval $output_verbose_link_cmd`; do
10703 case $p in
10705 -L* | -R* | -l*)
10706 # Some compilers place space between "-{L,R}" and the path.
10707 # Remove the space.
10708 if test $p = "-L" ||
10709 test $p = "-R"; then
10710 prev=$p
10711 continue
10712 else
10713 prev=
10716 if test "$pre_test_object_deps_done" = no; then
10717 case $p in
10718 -L* | -R*)
10719 # Internal compiler library paths should come after those
10720 # provided the user. The postdeps already come after the
10721 # user supplied libs so there is no need to process them.
10722 if test -z "$compiler_lib_search_path_FC"; then
10723 compiler_lib_search_path_FC="${prev}${p}"
10724 else
10725 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
10728 # The "-l" case would never come before the object being
10729 # linked, so don't bother handling this case.
10730 esac
10731 else
10732 if test -z "$postdeps_FC"; then
10733 postdeps_FC="${prev}${p}"
10734 else
10735 postdeps_FC="${postdeps_FC} ${prev}${p}"
10740 *.$objext)
10741 # This assumes that the test object file only shows up
10742 # once in the compiler output.
10743 if test "$p" = "conftest.$objext"; then
10744 pre_test_object_deps_done=yes
10745 continue
10748 if test "$pre_test_object_deps_done" = no; then
10749 if test -z "$predep_objects_FC"; then
10750 predep_objects_FC="$p"
10751 else
10752 predep_objects_FC="$predep_objects_FC $p"
10754 else
10755 if test -z "$postdep_objects_FC"; then
10756 postdep_objects_FC="$p"
10757 else
10758 postdep_objects_FC="$postdep_objects_FC $p"
10763 *) ;; # Ignore the rest.
10765 esac
10766 done
10768 # Clean up.
10769 rm -f a.out a.exe
10770 else
10771 echo "libtool.m4: error: problem compiling FC test program"
10774 $RM -f confest.$objext
10776 # PORTME: override above test on systems where it is broken
10779 case " $postdeps_FC " in
10780 *" -lc "*) archive_cmds_need_lc_FC=no ;;
10781 esac
10808 lt_prog_compiler_wl_FC=
10809 lt_prog_compiler_pic_FC=
10810 lt_prog_compiler_static_FC=
10812 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10813 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10815 if test "$GCC" = yes; then
10816 lt_prog_compiler_wl_FC='-Wl,'
10817 lt_prog_compiler_static_FC='-static'
10819 case $host_os in
10820 aix*)
10821 # All AIX code is PIC.
10822 if test "$host_cpu" = ia64; then
10823 # AIX 5 now supports IA64 processor
10824 lt_prog_compiler_static_FC='-Bstatic'
10828 amigaos*)
10829 if test "$host_cpu" = m68k; then
10830 # FIXME: we need at least 68020 code to build shared libraries, but
10831 # adding the `-m68020' flag to GCC prevents building anything better,
10832 # like `-m68040'.
10833 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
10837 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10838 # PIC is the default for these OSes.
10841 mingw* | cygwin* | pw32* | os2*)
10842 # This hack is so that the source file can tell whether it is being
10843 # built for inclusion in a dll (and should export symbols for example).
10844 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10845 # (--disable-auto-import) libraries
10846 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10849 darwin* | rhapsody*)
10850 # PIC is the default on this platform
10851 # Common symbols not allowed in MH_DYLIB files
10852 lt_prog_compiler_pic_FC='-fno-common'
10855 hpux*)
10856 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10857 # not for PA HP-UX.
10858 case $host_cpu in
10859 hppa*64*|ia64*)
10860 # +Z the default
10863 lt_prog_compiler_pic_FC='-fPIC'
10865 esac
10868 interix[3-9]*)
10869 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10870 # Instead, we relocate shared libraries at runtime.
10873 msdosdjgpp*)
10874 # Just because we use GCC doesn't mean we suddenly get shared libraries
10875 # on systems that don't support them.
10876 lt_prog_compiler_can_build_shared_FC=no
10877 enable_shared=no
10880 *nto* | *qnx*)
10881 # QNX uses GNU C++, but need to define -shared option too, otherwise
10882 # it will coredump.
10883 lt_prog_compiler_pic_FC='-fPIC -shared'
10886 sysv4*MP*)
10887 if test -d /usr/nec; then
10888 lt_prog_compiler_pic_FC=-Kconform_pic
10893 lt_prog_compiler_pic_FC='-fPIC'
10895 esac
10896 else
10897 # PORTME Check for flag to pass linker flags through the system compiler.
10898 case $host_os in
10899 aix*)
10900 lt_prog_compiler_wl_FC='-Wl,'
10901 if test "$host_cpu" = ia64; then
10902 # AIX 5 now supports IA64 processor
10903 lt_prog_compiler_static_FC='-Bstatic'
10904 else
10905 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
10908 darwin*)
10909 # PIC is the default on this platform
10910 # Common symbols not allowed in MH_DYLIB files
10911 case $cc_basename in
10912 xlc*)
10913 lt_prog_compiler_pic_FC='-qnocommon'
10914 lt_prog_compiler_wl_FC='-Wl,'
10916 esac
10919 mingw* | cygwin* | pw32* | os2*)
10920 # This hack is so that the source file can tell whether it is being
10921 # built for inclusion in a dll (and should export symbols for example).
10922 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10925 hpux9* | hpux10* | hpux11*)
10926 lt_prog_compiler_wl_FC='-Wl,'
10927 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10928 # not for PA HP-UX.
10929 case $host_cpu in
10930 hppa*64*|ia64*)
10931 # +Z the default
10934 lt_prog_compiler_pic_FC='+Z'
10936 esac
10937 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10938 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
10941 irix5* | irix6* | nonstopux*)
10942 lt_prog_compiler_wl_FC='-Wl,'
10943 # PIC (with -KPIC) is the default.
10944 lt_prog_compiler_static_FC='-non_shared'
10947 linux* | k*bsd*-gnu)
10948 case $cc_basename in
10949 icc* | ecc*)
10950 lt_prog_compiler_wl_FC='-Wl,'
10951 lt_prog_compiler_pic_FC='-KPIC'
10952 lt_prog_compiler_static_FC='-static'
10954 pgcc* | pgf77* | pgf90* | pgf95*)
10955 # Portland Group compilers (*not* the Pentium gcc compiler,
10956 # which looks to be a dead project)
10957 lt_prog_compiler_wl_FC='-Wl,'
10958 lt_prog_compiler_pic_FC='-fpic'
10959 lt_prog_compiler_static_FC='-Bstatic'
10961 ccc*)
10962 lt_prog_compiler_wl_FC='-Wl,'
10963 # All Alpha code is PIC.
10964 lt_prog_compiler_static_FC='-non_shared'
10967 case `$CC -V 2>&1 | sed 5q` in
10968 *Sun\ C*)
10969 # Sun C 5.9
10970 lt_prog_compiler_pic_FC='-KPIC'
10971 lt_prog_compiler_static_FC='-Bstatic'
10972 lt_prog_compiler_wl_FC='-Wl,'
10974 *Sun\ F*)
10975 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10976 lt_prog_compiler_pic_FC='-KPIC'
10977 lt_prog_compiler_static_FC='-Bstatic'
10978 lt_prog_compiler_wl_FC=''
10980 esac
10982 esac
10985 newsos6)
10986 lt_prog_compiler_pic_FC='-KPIC'
10987 lt_prog_compiler_static_FC='-Bstatic'
10990 *nto* | *qnx*)
10991 # QNX uses GNU C++, but need to define -shared option too, otherwise
10992 # it will coredump.
10993 lt_prog_compiler_pic_FC='-fPIC -shared'
10996 osf3* | osf4* | osf5*)
10997 lt_prog_compiler_wl_FC='-Wl,'
10998 # All OSF/1 code is PIC.
10999 lt_prog_compiler_static_FC='-non_shared'
11002 rdos*)
11003 lt_prog_compiler_static_FC='-non_shared'
11006 solaris*)
11007 lt_prog_compiler_pic_FC='-KPIC'
11008 lt_prog_compiler_static_FC='-Bstatic'
11009 case $cc_basename in
11010 f77* | f90* | f95*)
11011 lt_prog_compiler_wl_FC='-Qoption ld ';;
11013 lt_prog_compiler_wl_FC='-Wl,';;
11014 esac
11017 sunos4*)
11018 lt_prog_compiler_wl_FC='-Qoption ld '
11019 lt_prog_compiler_pic_FC='-PIC'
11020 lt_prog_compiler_static_FC='-Bstatic'
11023 sysv4 | sysv4.2uw2* | sysv4.3*)
11024 lt_prog_compiler_wl_FC='-Wl,'
11025 lt_prog_compiler_pic_FC='-KPIC'
11026 lt_prog_compiler_static_FC='-Bstatic'
11029 sysv4*MP*)
11030 if test -d /usr/nec ;then
11031 lt_prog_compiler_pic_FC='-Kconform_pic'
11032 lt_prog_compiler_static_FC='-Bstatic'
11036 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11037 lt_prog_compiler_wl_FC='-Wl,'
11038 lt_prog_compiler_pic_FC='-KPIC'
11039 lt_prog_compiler_static_FC='-Bstatic'
11042 unicos*)
11043 lt_prog_compiler_wl_FC='-Wl,'
11044 lt_prog_compiler_can_build_shared_FC=no
11047 uts4*)
11048 lt_prog_compiler_pic_FC='-pic'
11049 lt_prog_compiler_static_FC='-Bstatic'
11053 lt_prog_compiler_can_build_shared_FC=no
11055 esac
11058 case $host_os in
11059 # For platforms which do not support PIC, -DPIC is meaningless:
11060 *djgpp*)
11061 lt_prog_compiler_pic_FC=
11064 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11066 esac
11067 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11068 echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
11073 # Check to make sure the PIC flag actually works.
11075 if test -n "$lt_prog_compiler_pic_FC"; then
11076 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11077 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
11078 if test "${lt_prog_compiler_pic_works_FC+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11080 else
11081 lt_prog_compiler_pic_works_FC=no
11082 ac_outfile=conftest.$ac_objext
11083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11084 lt_compiler_flag="$lt_prog_compiler_pic_FC"
11085 # Insert the option either (1) after the last *FLAGS variable, or
11086 # (2) before a word containing "conftest.", or (3) at the end.
11087 # Note that $ac_compile itself does not contain backslashes and begins
11088 # with a dollar sign (not a hyphen), so the echo should work correctly.
11089 # The option is referenced via a variable to avoid confusing sed.
11090 lt_compile=`echo "$ac_compile" | $SED \
11091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11093 -e 's:$: $lt_compiler_flag:'`
11094 (eval echo "\"\$as_me:11094: $lt_compile\"" >&5)
11095 (eval "$lt_compile" 2>conftest.err)
11096 ac_status=$?
11097 cat conftest.err >&5
11098 echo "$as_me:11098: \$? = $ac_status" >&5
11099 if (exit $ac_status) && test -s "$ac_outfile"; then
11100 # The compiler can only warn and ignore the option if not recognized
11101 # So say no if there are warnings other than the usual output.
11102 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11103 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11104 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11105 lt_prog_compiler_pic_works_FC=yes
11108 $RM conftest*
11111 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_FC" >&5
11112 echo "${ECHO_T}$lt_prog_compiler_pic_works_FC" >&6
11114 if test x"$lt_prog_compiler_pic_works_FC" = xyes; then
11115 case $lt_prog_compiler_pic_FC in
11116 "" | " "*) ;;
11117 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11118 esac
11119 else
11120 lt_prog_compiler_pic_FC=
11121 lt_prog_compiler_can_build_shared_FC=no
11129 # Check to make sure the static flag actually works.
11131 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
11132 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11133 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11134 if test "${lt_prog_compiler_static_works_FC+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 else
11137 lt_prog_compiler_static_works_FC=no
11138 save_LDFLAGS="$LDFLAGS"
11139 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11140 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11141 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11142 # The linker can only warn and ignore the option if not recognized
11143 # So say no if there are warnings
11144 if test -s conftest.err; then
11145 # Append any errors to the config.log.
11146 cat conftest.err 1>&5
11147 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11149 if diff conftest.exp conftest.er2 >/dev/null; then
11150 lt_prog_compiler_static_works_FC=yes
11152 else
11153 lt_prog_compiler_static_works_FC=yes
11156 $RM conftest*
11157 LDFLAGS="$save_LDFLAGS"
11160 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_FC" >&5
11161 echo "${ECHO_T}$lt_prog_compiler_static_works_FC" >&6
11163 if test x"$lt_prog_compiler_static_works_FC" = xyes; then
11165 else
11166 lt_prog_compiler_static_FC=
11172 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11173 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11174 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 else
11177 lt_cv_prog_compiler_c_o_FC=no
11178 $RM -r conftest 2>/dev/null
11179 mkdir conftest
11180 cd conftest
11181 mkdir out
11182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11184 lt_compiler_flag="-o out/conftest2.$ac_objext"
11185 # Insert the option either (1) after the last *FLAGS variable, or
11186 # (2) before a word containing "conftest.", or (3) at the end.
11187 # Note that $ac_compile itself does not contain backslashes and begins
11188 # with a dollar sign (not a hyphen), so the echo should work correctly.
11189 lt_compile=`echo "$ac_compile" | $SED \
11190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11192 -e 's:$: $lt_compiler_flag:'`
11193 (eval echo "\"\$as_me:11193: $lt_compile\"" >&5)
11194 (eval "$lt_compile" 2>out/conftest.err)
11195 ac_status=$?
11196 cat out/conftest.err >&5
11197 echo "$as_me:11197: \$? = $ac_status" >&5
11198 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11199 then
11200 # The compiler can only warn and ignore the option if not recognized
11201 # So say no if there are warnings
11202 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11203 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11204 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11205 lt_cv_prog_compiler_c_o_FC=yes
11208 chmod u+w . 2>&5
11209 $RM conftest*
11210 # SGI C++ compiler will create directory out/ii_files/ for
11211 # template instantiation
11212 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11213 $RM out/* && rmdir out
11214 cd ..
11215 $RM -r conftest
11216 $RM conftest*
11219 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11220 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11224 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11225 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11226 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 else
11229 lt_cv_prog_compiler_c_o_FC=no
11230 $RM -r conftest 2>/dev/null
11231 mkdir conftest
11232 cd conftest
11233 mkdir out
11234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11236 lt_compiler_flag="-o out/conftest2.$ac_objext"
11237 # Insert the option either (1) after the last *FLAGS variable, or
11238 # (2) before a word containing "conftest.", or (3) at the end.
11239 # Note that $ac_compile itself does not contain backslashes and begins
11240 # with a dollar sign (not a hyphen), so the echo should work correctly.
11241 lt_compile=`echo "$ac_compile" | $SED \
11242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11244 -e 's:$: $lt_compiler_flag:'`
11245 (eval echo "\"\$as_me:11245: $lt_compile\"" >&5)
11246 (eval "$lt_compile" 2>out/conftest.err)
11247 ac_status=$?
11248 cat out/conftest.err >&5
11249 echo "$as_me:11249: \$? = $ac_status" >&5
11250 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11251 then
11252 # The compiler can only warn and ignore the option if not recognized
11253 # So say no if there are warnings
11254 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11255 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11256 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11257 lt_cv_prog_compiler_c_o_FC=yes
11260 chmod u+w . 2>&5
11261 $RM conftest*
11262 # SGI C++ compiler will create directory out/ii_files/ for
11263 # template instantiation
11264 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11265 $RM out/* && rmdir out
11266 cd ..
11267 $RM -r conftest
11268 $RM conftest*
11271 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11272 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11277 hard_links="nottested"
11278 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
11279 # do not overwrite the value of need_locks provided by the user
11280 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11281 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11282 hard_links=yes
11283 $RM conftest*
11284 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11285 touch conftest.a
11286 ln conftest.a conftest.b 2>&5 || hard_links=no
11287 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11288 echo "$as_me:$LINENO: result: $hard_links" >&5
11289 echo "${ECHO_T}$hard_links" >&6
11290 if test "$hard_links" = no; then
11291 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11292 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11293 need_locks=warn
11295 else
11296 need_locks=no
11301 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11302 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11304 runpath_var=
11305 allow_undefined_flag_FC=
11306 always_export_symbols_FC=no
11307 archive_cmds_FC=
11308 archive_expsym_cmds_FC=
11309 compiler_needs_object_FC=no
11310 enable_shared_with_static_runtimes_FC=no
11311 export_dynamic_flag_spec_FC=
11312 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11313 hardcode_automatic_FC=no
11314 hardcode_direct_FC=no
11315 hardcode_direct_absolute_FC=no
11316 hardcode_libdir_flag_spec_FC=
11317 hardcode_libdir_flag_spec_ld_FC=
11318 hardcode_libdir_separator_FC=
11319 hardcode_minus_L_FC=no
11320 hardcode_shlibpath_var_FC=unsupported
11321 inherit_rpath_FC=no
11322 link_all_deplibs_FC=unknown
11323 module_cmds_FC=
11324 module_expsym_cmds_FC=
11325 old_archive_from_new_cmds_FC=
11326 old_archive_from_expsyms_cmds_FC=
11327 thread_safe_flag_spec_FC=
11328 whole_archive_flag_spec_FC=
11329 # include_expsyms should be a list of space-separated symbols to be *always*
11330 # included in the symbol list
11331 include_expsyms_FC=
11332 # exclude_expsyms can be an extended regexp of symbols to exclude
11333 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11334 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11335 # as well as any symbol that contains `d'.
11336 exclude_expsyms_FC="_GLOBAL_OFFSET_TABLE_"
11337 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11338 # platforms (ab)use it in PIC code, but their linkers get confused if
11339 # the symbol is explicitly referenced. Since portable code cannot
11340 # rely on this symbol name, it's probably fine to never include it in
11341 # preloaded symbol tables.
11342 extract_expsyms_cmds=
11344 case $host_os in
11345 cygwin* | mingw* | pw32*)
11346 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11347 # When not using gcc, we currently assume that we are using
11348 # Microsoft Visual C++.
11349 if test "$GCC" != yes; then
11350 with_gnu_ld=no
11353 interix*)
11354 # we just hope/assume this is gcc and not c89 (= MSVC++)
11355 with_gnu_ld=yes
11357 openbsd*)
11358 with_gnu_ld=no
11360 esac
11362 ld_shlibs_FC=yes
11363 if test "$with_gnu_ld" = yes; then
11364 # If archive_cmds runs LD, not CC, wlarc should be empty
11365 wlarc='${wl}'
11367 # Set some defaults for GNU ld with shared library support. These
11368 # are reset later if shared libraries are not supported. Putting them
11369 # here allows them to be overridden if necessary.
11370 runpath_var=LD_RUN_PATH
11371 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11372 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
11373 # ancient GNU ld didn't support --whole-archive et. al.
11374 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11375 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11376 else
11377 whole_archive_flag_spec_FC=
11379 supports_anon_versioning=no
11380 case `$LD -v 2>&1` in
11381 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11382 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11383 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11384 *\ 2.11.*) ;; # other 2.11 versions
11385 *) supports_anon_versioning=yes ;;
11386 esac
11388 # See if GNU ld supports shared libraries.
11389 case $host_os in
11390 aix[3-9]*)
11391 # On AIX/PPC, the GNU linker is very broken
11392 if test "$host_cpu" != ia64; then
11393 ld_shlibs_FC=no
11394 cat <<_LT_EOF 1>&2
11396 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11397 *** to be unable to reliably create shared libraries on AIX.
11398 *** Therefore, libtool is disabling shared libraries support. If you
11399 *** really care for shared libraries, you may want to modify your PATH
11400 *** so that a non-GNU linker is found, and then restart.
11402 _LT_EOF
11406 amigaos*)
11407 if test "$host_cpu" = m68k; then
11408 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)'
11409 hardcode_libdir_flag_spec_FC='-L$libdir'
11410 hardcode_minus_L_FC=yes
11413 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11414 # that the semantics of dynamic libraries on AmigaOS, at least up
11415 # to version 4, is to share data among multiple programs linked
11416 # with the same dynamic library. Since this doesn't match the
11417 # behavior of shared libraries on other platforms, we can't use
11418 # them.
11419 ld_shlibs_FC=no
11422 beos*)
11423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11424 allow_undefined_flag_FC=unsupported
11425 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11426 # support --undefined. This deserves some investigation. FIXME
11427 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11428 else
11429 ld_shlibs_FC=no
11433 cygwin* | mingw* | pw32*)
11434 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
11435 # as there is no search path for DLLs.
11436 hardcode_libdir_flag_spec_FC='-L$libdir'
11437 allow_undefined_flag_FC=unsupported
11438 always_export_symbols_FC=no
11439 enable_shared_with_static_runtimes_FC=yes
11440 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11442 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11443 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11444 # If the export-symbols file already is a .def file (1st line
11445 # is EXPORTS), use it as is; otherwise, prepend...
11446 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11447 cp $export_symbols $output_objdir/$soname.def;
11448 else
11449 echo EXPORTS > $output_objdir/$soname.def;
11450 cat $export_symbols >> $output_objdir/$soname.def;
11452 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11453 else
11454 ld_shlibs_FC=no
11458 interix[3-9]*)
11459 hardcode_direct_FC=no
11460 hardcode_shlibpath_var_FC=no
11461 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
11462 export_dynamic_flag_spec_FC='${wl}-E'
11463 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11464 # Instead, shared libraries are loaded at an image base (0x10000000 by
11465 # default) and relocated if they conflict, which is a slow very memory
11466 # consuming and fragmenting process. To avoid this, we pick a random,
11467 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11468 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11469 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'
11470 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'
11473 gnu* | linux* | tpf* | k*bsd*-gnu)
11474 tmp_diet=no
11475 if test "$host_os" = linux-dietlibc; then
11476 case $cc_basename in
11477 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11478 esac
11480 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11481 && test "$tmp_diet" = no
11482 then
11483 tmp_addflag=
11484 case $cc_basename,$host_cpu in
11485 pgcc*) # Portland Group C compiler
11486 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'
11487 tmp_addflag=' $pic_flag'
11489 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11490 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'
11491 tmp_addflag=' $pic_flag -Mnomain' ;;
11492 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11493 tmp_addflag=' -i_dynamic' ;;
11494 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11495 tmp_addflag=' -i_dynamic -nofor_main' ;;
11496 ifc* | ifort*) # Intel Fortran compiler
11497 tmp_addflag=' -nofor_main' ;;
11498 esac
11499 case `$CC -V 2>&1 | sed 5q` in
11500 *Sun\ C*) # Sun C 5.9
11501 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'
11502 compiler_needs_object_FC=yes
11503 tmp_sharedflag='-G' ;;
11504 *Sun\ F*) # Sun Fortran 8.3
11505 tmp_sharedflag='-G' ;;
11507 tmp_sharedflag='-shared' ;;
11508 esac
11509 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11511 if test "x$supports_anon_versioning" = xyes; then
11512 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
11513 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11514 echo "local: *; };" >> $output_objdir/$libname.ver~
11515 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11517 else
11518 ld_shlibs_FC=no
11522 netbsd*)
11523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11524 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11525 wlarc=
11526 else
11527 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11528 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11532 solaris*)
11533 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11534 ld_shlibs_FC=no
11535 cat <<_LT_EOF 1>&2
11537 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11538 *** create shared libraries on Solaris systems. Therefore, libtool
11539 *** is disabling shared libraries support. We urge you to upgrade GNU
11540 *** binutils to release 2.9.1 or newer. Another option is to modify
11541 *** your PATH or compiler configuration so that the native linker is
11542 *** used, and then restart.
11544 _LT_EOF
11545 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11546 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11547 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11548 else
11549 ld_shlibs_FC=no
11553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11554 case `$LD -v 2>&1` in
11555 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11556 ld_shlibs_FC=no
11557 cat <<_LT_EOF 1>&2
11559 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11560 *** reliably create shared libraries on SCO systems. Therefore, libtool
11561 *** is disabling shared libraries support. We urge you to upgrade GNU
11562 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11563 *** your PATH or compiler configuration so that the native linker is
11564 *** used, and then restart.
11566 _LT_EOF
11569 # For security reasons, it is highly recommended that you always
11570 # use absolute paths for naming shared libraries, and exclude the
11571 # DT_RUNPATH tag from executables and libraries. But doing so
11572 # requires that you compile everything twice, which is a pain.
11573 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11574 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11575 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11576 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11577 else
11578 ld_shlibs_FC=no
11581 esac
11584 sunos4*)
11585 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11586 wlarc=
11587 hardcode_direct_FC=yes
11588 hardcode_shlibpath_var_FC=no
11592 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11593 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11594 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11595 else
11596 ld_shlibs_FC=no
11599 esac
11601 if test "$ld_shlibs_FC" = no; then
11602 runpath_var=
11603 hardcode_libdir_flag_spec_FC=
11604 export_dynamic_flag_spec_FC=
11605 whole_archive_flag_spec_FC=
11607 else
11608 # PORTME fill in a description of your system's linker (not GNU ld)
11609 case $host_os in
11610 aix3*)
11611 allow_undefined_flag_FC=unsupported
11612 always_export_symbols_FC=yes
11613 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'
11614 # Note: this linker hardcodes the directories in LIBPATH if there
11615 # are no directories specified by -L.
11616 hardcode_minus_L_FC=yes
11617 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11618 # Neither direct hardcoding nor static linking is supported with a
11619 # broken collect2.
11620 hardcode_direct_FC=unsupported
11624 aix[4-9]*)
11625 if test "$host_cpu" = ia64; then
11626 # On IA64, the linker does run time linking by default, so we don't
11627 # have to do anything special.
11628 aix_use_runtimelinking=no
11629 exp_sym_flag='-Bexport'
11630 no_entry_flag=""
11631 else
11632 # If we're using GNU nm, then we don't want the "-C" option.
11633 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11634 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11635 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'
11636 else
11637 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'
11639 aix_use_runtimelinking=no
11641 # Test if we are trying to use run time linking or normal
11642 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11643 # need to do runtime linking.
11644 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11645 for ld_flag in $LDFLAGS; do
11646 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11647 aix_use_runtimelinking=yes
11648 break
11650 done
11652 esac
11654 exp_sym_flag='-bexport'
11655 no_entry_flag='-bnoentry'
11658 # When large executables or shared objects are built, AIX ld can
11659 # have problems creating the table of contents. If linking a library
11660 # or program results in "error TOC overflow" add -mminimal-toc to
11661 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11662 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11664 archive_cmds_FC=''
11665 hardcode_direct_FC=yes
11666 hardcode_direct_absolute_FC=yes
11667 hardcode_libdir_separator_FC=':'
11668 link_all_deplibs_FC=yes
11669 file_list_spec_FC='${wl}-f,'
11671 if test "$GCC" = yes; then
11672 case $host_os in aix4.[012]|aix4.[012].*)
11673 # We only want to do this on AIX 4.2 and lower, the check
11674 # below for broken collect2 doesn't work under 4.3+
11675 collect2name=`${CC} -print-prog-name=collect2`
11676 if test -f "$collect2name" &&
11677 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11678 then
11679 # We have reworked collect2
11681 else
11682 # We have old collect2
11683 hardcode_direct_FC=unsupported
11684 # It fails to find uninstalled libraries when the uninstalled
11685 # path is not listed in the libpath. Setting hardcode_minus_L
11686 # to unsupported forces relinking
11687 hardcode_minus_L_FC=yes
11688 hardcode_libdir_flag_spec_FC='-L$libdir'
11689 hardcode_libdir_separator_FC=
11692 esac
11693 shared_flag='-shared'
11694 if test "$aix_use_runtimelinking" = yes; then
11695 shared_flag="$shared_flag "'${wl}-G'
11697 else
11698 # not using gcc
11699 if test "$host_cpu" = ia64; then
11700 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11701 # chokes on -Wl,-G. The following line is correct:
11702 shared_flag='-G'
11703 else
11704 if test "$aix_use_runtimelinking" = yes; then
11705 shared_flag='${wl}-G'
11706 else
11707 shared_flag='${wl}-bM:SRE'
11712 # It seems that -bexpall does not export symbols beginning with
11713 # underscore (_), so it is better to generate a list of symbols to export.
11714 always_export_symbols_FC=yes
11715 if test "$aix_use_runtimelinking" = yes; then
11716 # Warning - without using the other runtime loading flags (-brtl),
11717 # -berok will link without error, but may produce a broken library.
11718 allow_undefined_flag_FC='-berok'
11719 # Determine the default libpath from the value encoded in an
11720 # empty executable.
11721 cat >conftest.$ac_ext <<_ACEOF
11722 program main
11725 _ACEOF
11726 rm -f conftest.$ac_objext conftest$ac_exeext
11727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11728 (eval $ac_link) 2>conftest.er1
11729 ac_status=$?
11730 grep -v '^ *+' conftest.er1 >conftest.err
11731 rm -f conftest.er1
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } &&
11735 { ac_try='test -z "$ac_fc_werror_flag"
11736 || test ! -s conftest.err'
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); }; } &&
11742 { ac_try='test -s conftest$ac_exeext'
11743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; }; then
11749 lt_aix_libpath_sed='
11750 /Import File Strings/,/^$/ {
11751 /^0/ {
11752 s/^0 *\(.*\)$/\1/
11756 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11757 # Check for a 64-bit object if we didn't find anything.
11758 if test -z "$aix_libpath"; then
11759 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11761 else
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11766 rm -f conftest.err conftest.$ac_objext \
11767 conftest$ac_exeext conftest.$ac_ext
11768 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11770 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11771 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"
11772 else
11773 if test "$host_cpu" = ia64; then
11774 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
11775 allow_undefined_flag_FC="-z nodefs"
11776 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"
11777 else
11778 # Determine the default libpath from the value encoded in an
11779 # empty executable.
11780 cat >conftest.$ac_ext <<_ACEOF
11781 program main
11784 _ACEOF
11785 rm -f conftest.$ac_objext conftest$ac_exeext
11786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11787 (eval $ac_link) 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } &&
11794 { ac_try='test -z "$ac_fc_werror_flag"
11795 || test ! -s conftest.err'
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); }; } &&
11801 { ac_try='test -s conftest$ac_exeext'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
11808 lt_aix_libpath_sed='
11809 /Import File Strings/,/^$/ {
11810 /^0/ {
11811 s/^0 *\(.*\)$/\1/
11815 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11816 # Check for a 64-bit object if we didn't find anything.
11817 if test -z "$aix_libpath"; then
11818 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11820 else
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11825 rm -f conftest.err conftest.$ac_objext \
11826 conftest$ac_exeext conftest.$ac_ext
11827 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11829 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11830 # Warning - without using the other run time loading flags,
11831 # -berok will link without error, but may produce a broken library.
11832 no_undefined_flag_FC=' ${wl}-bernotok'
11833 allow_undefined_flag_FC=' ${wl}-berok'
11834 # Exported symbols can be pulled into shared objects from archives
11835 whole_archive_flag_spec_FC='$convenience'
11836 archive_cmds_need_lc_FC=yes
11837 # This is similar to how AIX traditionally builds its shared libraries.
11838 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'
11843 amigaos*)
11844 if test "$host_cpu" = m68k; then
11845 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)'
11846 hardcode_libdir_flag_spec_FC='-L$libdir'
11847 hardcode_minus_L_FC=yes
11849 # see comment about different semantics on the GNU ld section
11850 ld_shlibs_FC=no
11853 bsdi[45]*)
11854 export_dynamic_flag_spec_FC=-rdynamic
11857 cygwin* | mingw* | pw32*)
11858 # When not using gcc, we currently assume that we are using
11859 # Microsoft Visual C++.
11860 # hardcode_libdir_flag_spec is actually meaningless, as there is
11861 # no search path for DLLs.
11862 hardcode_libdir_flag_spec_FC=' '
11863 allow_undefined_flag_FC=unsupported
11864 # Tell ltmain to make .lib files, not .a files.
11865 libext=lib
11866 # Tell ltmain to make .dll files, not .so files.
11867 shrext_cmds=".dll"
11868 # FIXME: Setting linknames here is a bad hack.
11869 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11870 # The linker will automatically build a .lib file if we build a DLL.
11871 old_archive_from_new_cmds_FC='true'
11872 # FIXME: Should let the user specify the lib program.
11873 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
11874 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
11875 enable_shared_with_static_runtimes_FC=yes
11878 darwin* | rhapsody*)
11879 case $host_os in
11880 rhapsody* | darwin1.[012])
11881 allow_undefined_flag_FC='${wl}-undefined ${wl}suppress'
11883 *) # Darwin 1.3 on
11884 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11885 10.[012])
11886 allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11888 10.*)
11889 allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup'
11891 esac
11893 esac
11894 archive_cmds_need_lc_FC=no
11895 hardcode_direct_FC=no
11896 hardcode_automatic_FC=yes
11897 hardcode_shlibpath_var_FC=unsupported
11898 whole_archive_flag_spec_FC=''
11899 link_all_deplibs_FC=yes
11900 if test "$GCC" = yes ; then
11901 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11903 else
11904 lt_cv_apple_cc_single_mod=no
11905 if test -z "${LT_MULTI_MODULE}"; then
11906 # By default we will add the -single_module flag. You can override
11907 # by either setting the environment variable LT_MULTI_MODULE
11908 # non-empty at configure time, or by adding -multi-module to the
11909 # link flags.
11910 echo "int foo(void){return 1;}" > conftest.c
11911 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11912 -dynamiclib ${wl}-single_module conftest.c
11913 if test -f libconftest.dylib; then
11914 lt_cv_apple_cc_single_mod=yes
11915 rm libconftest.dylib
11917 rm conftest.$ac_ext
11921 output_verbose_link_cmd=echo
11922 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11923 archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11924 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}'
11925 else
11926 archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11927 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}'
11929 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11930 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}'
11931 else
11932 case $cc_basename in
11933 xlc*)
11934 output_verbose_link_cmd=echo
11935 archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
11936 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11937 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11938 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}'
11939 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}'
11942 ld_shlibs_FC=no
11944 esac
11948 dgux*)
11949 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11950 hardcode_libdir_flag_spec_FC='-L$libdir'
11951 hardcode_shlibpath_var_FC=no
11954 freebsd1*)
11955 ld_shlibs_FC=no
11958 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11959 # support. Future versions do this automatically, but an explicit c++rt0.o
11960 # does not break anything, and helps significantly (at the cost of a little
11961 # extra space).
11962 freebsd2.2*)
11963 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11964 hardcode_libdir_flag_spec_FC='-R$libdir'
11965 hardcode_direct_FC=yes
11966 hardcode_shlibpath_var_FC=no
11969 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11970 freebsd2*)
11971 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11972 hardcode_direct_FC=yes
11973 hardcode_minus_L_FC=yes
11974 hardcode_shlibpath_var_FC=no
11977 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11978 freebsd* | dragonfly*)
11979 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11980 hardcode_libdir_flag_spec_FC='-R$libdir'
11981 hardcode_direct_FC=yes
11982 hardcode_shlibpath_var_FC=no
11985 hpux9*)
11986 if test "$GCC" = yes; then
11987 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'
11988 else
11989 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'
11991 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
11992 hardcode_libdir_separator_FC=:
11993 hardcode_direct_FC=yes
11995 # hardcode_minus_L: Not really in the search PATH,
11996 # but as the default location of the library.
11997 hardcode_minus_L_FC=yes
11998 export_dynamic_flag_spec_FC='${wl}-E'
12001 hpux10*)
12002 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12003 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12004 else
12005 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12007 if test "$with_gnu_ld" = no; then
12008 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12009 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
12010 hardcode_libdir_separator_FC=:
12011 hardcode_direct_FC=yes
12012 hardcode_direct_absolute_FC=yes
12013 export_dynamic_flag_spec_FC='${wl}-E'
12014 # hardcode_minus_L: Not really in the search PATH,
12015 # but as the default location of the library.
12016 hardcode_minus_L_FC=yes
12020 hpux11*)
12021 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12022 case $host_cpu in
12023 hppa*64*)
12024 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12026 ia64*)
12027 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12030 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12032 esac
12033 else
12034 case $host_cpu in
12035 hppa*64*)
12036 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12038 ia64*)
12039 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12042 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12044 esac
12046 if test "$with_gnu_ld" = no; then
12047 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12048 hardcode_libdir_separator_FC=:
12050 case $host_cpu in
12051 hppa*64*|ia64*)
12052 hardcode_direct_FC=no
12053 hardcode_shlibpath_var_FC=no
12056 hardcode_direct_FC=yes
12057 hardcode_direct_absolute_FC=yes
12058 export_dynamic_flag_spec_FC='${wl}-E'
12060 # hardcode_minus_L: Not really in the search PATH,
12061 # but as the default location of the library.
12062 hardcode_minus_L_FC=yes
12064 esac
12068 irix5* | irix6* | nonstopux*)
12069 if test "$GCC" = yes; then
12070 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'
12071 # Try to use the -exported_symbol ld option, if it does not
12072 # work, assume that -exports_file does not work either and
12073 # implicitly export all symbols.
12074 save_LDFLAGS="$LDFLAGS"
12075 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12076 cat >conftest.$ac_ext <<_ACEOF
12077 int foo(void) {}
12078 _ACEOF
12079 rm -f conftest.$ac_objext conftest$ac_exeext
12080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12081 (eval $ac_link) 2>conftest.er1
12082 ac_status=$?
12083 grep -v '^ *+' conftest.er1 >conftest.err
12084 rm -f conftest.er1
12085 cat conftest.err >&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } &&
12088 { ac_try='test -z "$ac_fc_werror_flag"
12089 || test ! -s conftest.err'
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); }; } &&
12095 { ac_try='test -s conftest$ac_exeext'
12096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12098 ac_status=$?
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; }; then
12101 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'
12103 else
12104 echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12108 rm -f conftest.err conftest.$ac_objext \
12109 conftest$ac_exeext conftest.$ac_ext
12110 LDFLAGS="$save_LDFLAGS"
12111 else
12112 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'
12113 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'
12115 archive_cmds_need_lc_FC='no'
12116 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12117 hardcode_libdir_separator_FC=:
12118 inherit_rpath_FC=yes
12119 link_all_deplibs_FC=yes
12122 netbsd*)
12123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12124 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12125 else
12126 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12128 hardcode_libdir_flag_spec_FC='-R$libdir'
12129 hardcode_direct_FC=yes
12130 hardcode_shlibpath_var_FC=no
12133 newsos6)
12134 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12135 hardcode_direct_FC=yes
12136 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12137 hardcode_libdir_separator_FC=:
12138 hardcode_shlibpath_var_FC=no
12141 *nto* | *qnx*)
12144 openbsd*)
12145 hardcode_direct_FC=yes
12146 hardcode_shlibpath_var_FC=no
12147 hardcode_direct_absolute_FC=yes
12148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12149 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12150 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12151 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12152 export_dynamic_flag_spec_FC='${wl}-E'
12153 else
12154 case $host_os in
12155 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12156 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12157 hardcode_libdir_flag_spec_FC='-R$libdir'
12160 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12161 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12163 esac
12167 os2*)
12168 hardcode_libdir_flag_spec_FC='-L$libdir'
12169 hardcode_minus_L_FC=yes
12170 allow_undefined_flag_FC=unsupported
12171 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'
12172 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12175 osf3*)
12176 if test "$GCC" = yes; then
12177 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12178 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'
12179 else
12180 allow_undefined_flag_FC=' -expect_unresolved \*'
12181 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'
12183 archive_cmds_need_lc_FC='no'
12184 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12185 hardcode_libdir_separator_FC=:
12188 osf4* | osf5*) # as osf3* with the addition of -msym flag
12189 if test "$GCC" = yes; then
12190 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12191 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'
12192 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12193 else
12194 allow_undefined_flag_FC=' -expect_unresolved \*'
12195 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'
12196 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~
12197 $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'
12199 # Both c and cxx compiler support -rpath directly
12200 hardcode_libdir_flag_spec_FC='-rpath $libdir'
12202 archive_cmds_need_lc_FC='no'
12203 hardcode_libdir_separator_FC=:
12206 solaris*)
12207 no_undefined_flag_FC=' -z defs'
12208 if test "$GCC" = yes; then
12209 wlarc='${wl}'
12210 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12211 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12212 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12213 else
12214 case `$CC -V 2>&1` in
12215 *"Compilers 5.0"*)
12216 wlarc=''
12217 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12218 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12219 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12222 wlarc='${wl}'
12223 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12224 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12225 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12227 esac
12229 hardcode_libdir_flag_spec_FC='-R$libdir'
12230 hardcode_shlibpath_var_FC=no
12231 case $host_os in
12232 solaris2.[0-5] | solaris2.[0-5].*) ;;
12234 # The compiler driver will combine and reorder linker options,
12235 # but understands `-z linker_flag'. GCC discards it without `$wl',
12236 # but is careful enough not to reorder.
12237 # Supported since Solaris 2.6 (maybe 2.5.1?)
12238 if test "$GCC" = yes; then
12239 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12240 else
12241 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12244 esac
12245 link_all_deplibs_FC=yes
12248 sunos4*)
12249 if test "x$host_vendor" = xsequent; then
12250 # Use $CC to link under sequent, because it throws in some extra .o
12251 # files that make .init and .fini sections work.
12252 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12253 else
12254 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12256 hardcode_libdir_flag_spec_FC='-L$libdir'
12257 hardcode_direct_FC=yes
12258 hardcode_minus_L_FC=yes
12259 hardcode_shlibpath_var_FC=no
12262 sysv4)
12263 case $host_vendor in
12264 sni)
12265 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12266 hardcode_direct_FC=yes # is this really true???
12268 siemens)
12269 ## LD is ld it makes a PLAMLIB
12270 ## CC just makes a GrossModule.
12271 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12272 reload_cmds_FC='$CC -r -o $output$reload_objs'
12273 hardcode_direct_FC=no
12275 motorola)
12276 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12277 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
12279 esac
12280 runpath_var='LD_RUN_PATH'
12281 hardcode_shlibpath_var_FC=no
12284 sysv4.3*)
12285 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12286 hardcode_shlibpath_var_FC=no
12287 export_dynamic_flag_spec_FC='-Bexport'
12290 sysv4*MP*)
12291 if test -d /usr/nec; then
12292 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12293 hardcode_shlibpath_var_FC=no
12294 runpath_var=LD_RUN_PATH
12295 hardcode_runpath_var=yes
12296 ld_shlibs_FC=yes
12300 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12301 no_undefined_flag_FC='${wl}-z,text'
12302 archive_cmds_need_lc_FC=no
12303 hardcode_shlibpath_var_FC=no
12304 runpath_var='LD_RUN_PATH'
12306 if test "$GCC" = yes; then
12307 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12308 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12309 else
12310 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12311 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12315 sysv5* | sco3.2v5* | sco5v6*)
12316 # Note: We can NOT use -z defs as we might desire, because we do not
12317 # link with -lc, and that would cause any symbols used from libc to
12318 # always be unresolved, which means just about no library would
12319 # ever link correctly. If we're not using GNU ld we use -z text
12320 # though, which does catch some bad symbols but isn't as heavy-handed
12321 # as -z defs.
12322 no_undefined_flag_FC='${wl}-z,text'
12323 allow_undefined_flag_FC='${wl}-z,nodefs'
12324 archive_cmds_need_lc_FC=no
12325 hardcode_shlibpath_var_FC=no
12326 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
12327 hardcode_libdir_separator_FC=':'
12328 link_all_deplibs_FC=yes
12329 export_dynamic_flag_spec_FC='${wl}-Bexport'
12330 runpath_var='LD_RUN_PATH'
12332 if test "$GCC" = yes; then
12333 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12334 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12335 else
12336 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12337 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12341 uts4*)
12342 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12343 hardcode_libdir_flag_spec_FC='-L$libdir'
12344 hardcode_shlibpath_var_FC=no
12348 ld_shlibs_FC=no
12350 esac
12352 if test x$host_vendor = xsni; then
12353 case $host in
12354 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12355 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
12357 esac
12361 echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
12362 echo "${ECHO_T}$ld_shlibs_FC" >&6
12363 test "$ld_shlibs_FC" = no && can_build_shared=no
12365 with_gnu_ld_FC=$with_gnu_ld
12373 # Do we need to explicitly link libc?
12375 case "x$archive_cmds_need_lc_FC" in
12376 x|xyes)
12377 # Assume -lc should be added
12378 archive_cmds_need_lc_FC=yes
12380 if test "$enable_shared" = yes && test "$GCC" = yes; then
12381 case $archive_cmds_FC in
12382 *'~'*)
12383 # FIXME: we may have to deal with multi-command sequences.
12385 '$CC '*)
12386 # Test whether the compiler implicitly links with -lc since on some
12387 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12388 # to ld, don't add -lc before -lgcc.
12389 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12390 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12391 $RM conftest*
12392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12395 (eval $ac_compile) 2>&5
12396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } 2>conftest.err; then
12399 soname=conftest
12400 lib=conftest
12401 libobjs=conftest.$ac_objext
12402 deplibs=
12403 wl=$lt_prog_compiler_wl_FC
12404 pic_flag=$lt_prog_compiler_pic_FC
12405 compiler_flags=-v
12406 linker_flags=-v
12407 verstring=
12408 output_objdir=.
12409 libname=conftest
12410 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
12411 allow_undefined_flag_FC=
12412 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12413 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12414 ac_status=$?
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }
12417 then
12418 archive_cmds_need_lc_FC=no
12419 else
12420 archive_cmds_need_lc_FC=yes
12422 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
12423 else
12424 cat conftest.err 1>&5
12426 $RM conftest*
12427 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
12428 echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6
12430 esac
12433 esac
12498 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12499 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12500 withGCC=$ac_cv_fc_compiler_gnu
12501 library_names_spec=
12502 libname_spec='lib$name'
12503 soname_spec=
12504 shrext_cmds=".so"
12505 postinstall_cmds=
12506 postuninstall_cmds=
12507 finish_cmds=
12508 finish_eval=
12509 shlibpath_var=
12510 shlibpath_overrides_runpath=unknown
12511 version_type=none
12512 dynamic_linker="$host_os ld.so"
12513 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12514 need_lib_prefix=unknown
12515 hardcode_into_libs=no
12517 # when you set need_version to no, make sure it does not cause -set_version
12518 # flags to be left without arguments
12519 need_version=unknown
12521 case $host_os in
12522 aix3*)
12523 version_type=linux
12524 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12525 shlibpath_var=LIBPATH
12527 # AIX 3 has no versioning support, so we append a major version to the name.
12528 soname_spec='${libname}${release}${shared_ext}$major'
12531 aix[4-9]*)
12532 version_type=linux
12533 need_lib_prefix=no
12534 need_version=no
12535 hardcode_into_libs=yes
12536 if test "$host_cpu" = ia64; then
12537 # AIX 5 supports IA64
12538 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12539 shlibpath_var=LD_LIBRARY_PATH
12540 else
12541 # With GCC up to 2.95.x, collect2 would create an import file
12542 # for dependence libraries. The import file would start with
12543 # the line `#! .'. This would cause the generated library to
12544 # depend on `.', always an invalid library. This was fixed in
12545 # development snapshots of GCC prior to 3.0.
12546 case $host_os in
12547 aix4 | aix4.[01] | aix4.[01].*)
12548 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12549 echo ' yes '
12550 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12552 else
12553 can_build_shared=no
12556 esac
12557 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12558 # soname into executable. Probably we can add versioning support to
12559 # collect2, so additional links can be useful in future.
12560 if test "$aix_use_runtimelinking" = yes; then
12561 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12562 # instead of lib<name>.a to let people know that these are not
12563 # typical AIX shared libraries.
12564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12565 else
12566 # We preserve .a as extension for shared libraries through AIX4.2
12567 # and later when we are not doing run time linking.
12568 library_names_spec='${libname}${release}.a $libname.a'
12569 soname_spec='${libname}${release}${shared_ext}$major'
12571 shlibpath_var=LIBPATH
12575 amigaos*)
12576 if test "$host_cpu" = m68k; then
12577 library_names_spec='$libname.ixlibrary $libname.a'
12578 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12579 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'
12580 else
12581 dynamic_linker=no
12585 beos*)
12586 library_names_spec='${libname}${shared_ext}'
12587 dynamic_linker="$host_os ld.so"
12588 shlibpath_var=LIBRARY_PATH
12591 bsdi[45]*)
12592 version_type=linux
12593 need_version=no
12594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12595 soname_spec='${libname}${release}${shared_ext}$major'
12596 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12597 shlibpath_var=LD_LIBRARY_PATH
12598 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12599 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12600 # the default ld.so.conf also contains /usr/contrib/lib and
12601 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12602 # libtool to hard-code these into programs
12605 cygwin* | mingw* | pw32*)
12606 version_type=windows
12607 shrext_cmds=".dll"
12608 need_version=no
12609 need_lib_prefix=no
12611 case $withGCC,$host_os in
12612 yes,cygwin* | yes,mingw* | yes,pw32*)
12613 library_names_spec='$libname.dll.a'
12614 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12615 postinstall_cmds='base_file=`basename \${file}`~
12616 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12617 dldir=$destdir/`dirname \$dlpath`~
12618 test -d \$dldir || mkdir -p \$dldir~
12619 $install_prog $dir/$dlname \$dldir/$dlname~
12620 chmod a+x \$dldir/$dlname~
12621 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12622 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12624 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12625 dlpath=$dir/\$dldll~
12626 $RM \$dlpath'
12627 shlibpath_overrides_runpath=yes
12629 case $host_os in
12630 cygwin*)
12631 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12632 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12633 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12635 mingw*)
12636 # MinGW DLLs use traditional 'lib' prefix
12637 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12638 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12639 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12640 # It is most probably a Windows format PATH printed by
12641 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12642 # path with ; separators, and with drive letters. We can handle the
12643 # drive letters (cygwin fileutils understands them), so leave them,
12644 # especially as we might pass files found there to a mingw objdump,
12645 # which wouldn't understand a cygwinified path. Ahh.
12646 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12647 else
12648 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12651 pw32*)
12652 # pw32 DLLs use 'pw' prefix rather than 'lib'
12653 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12655 esac
12659 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12661 esac
12662 dynamic_linker='Win32 ld.exe'
12663 # FIXME: first we should search . and the directory the executable is in
12664 shlibpath_var=PATH
12667 darwin* | rhapsody*)
12668 dynamic_linker="$host_os dyld"
12669 version_type=darwin
12670 need_lib_prefix=no
12671 need_version=no
12672 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12673 soname_spec='${libname}${release}${major}$shared_ext'
12674 shlibpath_overrides_runpath=yes
12675 shlibpath_var=DYLD_LIBRARY_PATH
12676 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12678 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12681 dgux*)
12682 version_type=linux
12683 need_lib_prefix=no
12684 need_version=no
12685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12686 soname_spec='${libname}${release}${shared_ext}$major'
12687 shlibpath_var=LD_LIBRARY_PATH
12690 freebsd1*)
12691 dynamic_linker=no
12694 freebsd* | dragonfly*)
12695 # DragonFly does not have aout. When/if they implement a new
12696 # versioning mechanism, adjust this.
12697 if test -x /usr/bin/objformat; then
12698 objformat=`/usr/bin/objformat`
12699 else
12700 case $host_os in
12701 freebsd[123]*) objformat=aout ;;
12702 *) objformat=elf ;;
12703 esac
12705 version_type=freebsd-$objformat
12706 case $version_type in
12707 freebsd-elf*)
12708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12709 need_version=no
12710 need_lib_prefix=no
12712 freebsd-*)
12713 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12714 need_version=yes
12716 esac
12717 shlibpath_var=LD_LIBRARY_PATH
12718 case $host_os in
12719 freebsd2*)
12720 shlibpath_overrides_runpath=yes
12722 freebsd3.[01]* | freebsdelf3.[01]*)
12723 shlibpath_overrides_runpath=yes
12724 hardcode_into_libs=yes
12726 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12727 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12728 shlibpath_overrides_runpath=no
12729 hardcode_into_libs=yes
12731 *) # from 4.6 on, and DragonFly
12732 shlibpath_overrides_runpath=yes
12733 hardcode_into_libs=yes
12735 esac
12738 gnu*)
12739 version_type=linux
12740 need_lib_prefix=no
12741 need_version=no
12742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12743 soname_spec='${libname}${release}${shared_ext}$major'
12744 shlibpath_var=LD_LIBRARY_PATH
12745 hardcode_into_libs=yes
12748 hpux9* | hpux10* | hpux11*)
12749 # Give a soname corresponding to the major version so that dld.sl refuses to
12750 # link against other versions.
12751 version_type=sunos
12752 need_lib_prefix=no
12753 need_version=no
12754 case $host_cpu in
12755 ia64*)
12756 shrext_cmds='.so'
12757 hardcode_into_libs=yes
12758 dynamic_linker="$host_os dld.so"
12759 shlibpath_var=LD_LIBRARY_PATH
12760 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12762 soname_spec='${libname}${release}${shared_ext}$major'
12763 if test "X$HPUX_IA64_MODE" = X32; then
12764 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12765 else
12766 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12768 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12770 hppa*64*)
12771 shrext_cmds='.sl'
12772 hardcode_into_libs=yes
12773 dynamic_linker="$host_os dld.sl"
12774 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12775 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12777 soname_spec='${libname}${release}${shared_ext}$major'
12778 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12782 shrext_cmds='.sl'
12783 dynamic_linker="$host_os dld.sl"
12784 shlibpath_var=SHLIB_PATH
12785 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12787 soname_spec='${libname}${release}${shared_ext}$major'
12789 esac
12790 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12791 postinstall_cmds='chmod 555 $lib'
12794 interix[3-9]*)
12795 version_type=linux
12796 need_lib_prefix=no
12797 need_version=no
12798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12799 soname_spec='${libname}${release}${shared_ext}$major'
12800 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12801 shlibpath_var=LD_LIBRARY_PATH
12802 shlibpath_overrides_runpath=no
12803 hardcode_into_libs=yes
12806 irix5* | irix6* | nonstopux*)
12807 case $host_os in
12808 nonstopux*) version_type=nonstopux ;;
12810 if test "$lt_cv_prog_gnu_ld" = yes; then
12811 version_type=linux
12812 else
12813 version_type=irix
12814 fi ;;
12815 esac
12816 need_lib_prefix=no
12817 need_version=no
12818 soname_spec='${libname}${release}${shared_ext}$major'
12819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12820 case $host_os in
12821 irix5* | nonstopux*)
12822 libsuff= shlibsuff=
12825 case $LD in # libtool.m4 will add one of these switches to LD
12826 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12827 libsuff= shlibsuff= libmagic=32-bit;;
12828 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12829 libsuff=32 shlibsuff=N32 libmagic=N32;;
12830 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12831 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12832 *) libsuff= shlibsuff= libmagic=never-match;;
12833 esac
12835 esac
12836 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12837 shlibpath_overrides_runpath=no
12838 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12839 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12840 hardcode_into_libs=yes
12843 # No shared lib support for Linux oldld, aout, or coff.
12844 linux*oldld* | linux*aout* | linux*coff*)
12845 dynamic_linker=no
12848 # This must be Linux ELF.
12849 linux* | k*bsd*-gnu)
12850 version_type=linux
12851 need_lib_prefix=no
12852 need_version=no
12853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12854 soname_spec='${libname}${release}${shared_ext}$major'
12855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12856 shlibpath_var=LD_LIBRARY_PATH
12857 shlibpath_overrides_runpath=no
12858 # Some binutils ld are patched to set DT_RUNPATH
12859 save_LDFLAGS=$LDFLAGS
12860 save_libdir=$libdir
12861 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
12862 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
12863 cat >conftest.$ac_ext <<_ACEOF
12864 program main
12867 _ACEOF
12868 rm -f conftest.$ac_objext conftest$ac_exeext
12869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12870 (eval $ac_link) 2>conftest.er1
12871 ac_status=$?
12872 grep -v '^ *+' conftest.er1 >conftest.err
12873 rm -f conftest.er1
12874 cat conftest.err >&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); } &&
12877 { ac_try='test -z "$ac_fc_werror_flag"
12878 || test ! -s conftest.err'
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); }; } &&
12884 { ac_try='test -s conftest$ac_exeext'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; }; then
12890 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
12891 shlibpath_overrides_runpath=yes
12894 else
12895 echo "$as_me: failed program was:" >&5
12896 sed 's/^/| /' conftest.$ac_ext >&5
12899 rm -f conftest.err conftest.$ac_objext \
12900 conftest$ac_exeext conftest.$ac_ext
12901 LDFLAGS=$save_LDFLAGS
12902 libdir=$save_libdir
12904 # This implies no fast_install, which is unacceptable.
12905 # Some rework will be needed to allow for fast_install
12906 # before this can be enabled.
12907 hardcode_into_libs=yes
12909 # Append ld.so.conf contents to the search path
12910 if test -f /etc/ld.so.conf; then
12911 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' ' '`
12912 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12915 # We used to test for /lib/ld.so.1 and disable shared libraries on
12916 # powerpc, because MkLinux only supported shared libraries with the
12917 # GNU dynamic linker. Since this was broken with cross compilers,
12918 # most powerpc-linux boxes support dynamic linking these days and
12919 # people can always --disable-shared, the test was removed, and we
12920 # assume the GNU/Linux dynamic linker is in use.
12921 dynamic_linker='GNU/Linux ld.so'
12924 netbsd*)
12925 version_type=sunos
12926 need_lib_prefix=no
12927 need_version=no
12928 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12931 dynamic_linker='NetBSD (a.out) ld.so'
12932 else
12933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12934 soname_spec='${libname}${release}${shared_ext}$major'
12935 dynamic_linker='NetBSD ld.elf_so'
12937 shlibpath_var=LD_LIBRARY_PATH
12938 shlibpath_overrides_runpath=yes
12939 hardcode_into_libs=yes
12942 newsos6)
12943 version_type=linux
12944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12945 shlibpath_var=LD_LIBRARY_PATH
12946 shlibpath_overrides_runpath=yes
12949 *nto* | *qnx*)
12950 version_type=qnx
12951 need_lib_prefix=no
12952 need_version=no
12953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12954 soname_spec='${libname}${release}${shared_ext}$major'
12955 shlibpath_var=LD_LIBRARY_PATH
12956 shlibpath_overrides_runpath=no
12957 hardcode_into_libs=yes
12958 dynamic_linker='ldqnx.so'
12961 openbsd*)
12962 version_type=sunos
12963 sys_lib_dlsearch_path_spec="/usr/lib"
12964 need_lib_prefix=no
12965 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12966 case $host_os in
12967 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12968 *) need_version=no ;;
12969 esac
12970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12972 shlibpath_var=LD_LIBRARY_PATH
12973 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12974 case $host_os in
12975 openbsd2.[89] | openbsd2.[89].*)
12976 shlibpath_overrides_runpath=no
12979 shlibpath_overrides_runpath=yes
12981 esac
12982 else
12983 shlibpath_overrides_runpath=yes
12987 os2*)
12988 libname_spec='$name'
12989 shrext_cmds=".dll"
12990 need_lib_prefix=no
12991 library_names_spec='$libname${shared_ext} $libname.a'
12992 dynamic_linker='OS/2 ld.exe'
12993 shlibpath_var=LIBPATH
12996 osf3* | osf4* | osf5*)
12997 version_type=osf
12998 need_lib_prefix=no
12999 need_version=no
13000 soname_spec='${libname}${release}${shared_ext}$major'
13001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13002 shlibpath_var=LD_LIBRARY_PATH
13003 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13004 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13007 rdos*)
13008 dynamic_linker=no
13011 solaris*)
13012 version_type=linux
13013 need_lib_prefix=no
13014 need_version=no
13015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13016 soname_spec='${libname}${release}${shared_ext}$major'
13017 shlibpath_var=LD_LIBRARY_PATH
13018 shlibpath_overrides_runpath=yes
13019 hardcode_into_libs=yes
13020 # ldd complains unless libraries are executable
13021 postinstall_cmds='chmod +x $lib'
13024 sunos4*)
13025 version_type=sunos
13026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13027 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13028 shlibpath_var=LD_LIBRARY_PATH
13029 shlibpath_overrides_runpath=yes
13030 if test "$with_gnu_ld" = yes; then
13031 need_lib_prefix=no
13033 need_version=yes
13036 sysv4 | sysv4.3*)
13037 version_type=linux
13038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13039 soname_spec='${libname}${release}${shared_ext}$major'
13040 shlibpath_var=LD_LIBRARY_PATH
13041 case $host_vendor in
13042 sni)
13043 shlibpath_overrides_runpath=no
13044 need_lib_prefix=no
13045 runpath_var=LD_RUN_PATH
13047 siemens)
13048 need_lib_prefix=no
13050 motorola)
13051 need_lib_prefix=no
13052 need_version=no
13053 shlibpath_overrides_runpath=no
13054 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13056 esac
13059 sysv4*MP*)
13060 if test -d /usr/nec ;then
13061 version_type=linux
13062 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13063 soname_spec='$libname${shared_ext}.$major'
13064 shlibpath_var=LD_LIBRARY_PATH
13068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13069 version_type=freebsd-elf
13070 need_lib_prefix=no
13071 need_version=no
13072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13073 soname_spec='${libname}${release}${shared_ext}$major'
13074 shlibpath_var=LD_LIBRARY_PATH
13075 shlibpath_overrides_runpath=yes
13076 hardcode_into_libs=yes
13077 if test "$with_gnu_ld" = yes; then
13078 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13079 else
13080 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13081 case $host_os in
13082 sco3.2v5*)
13083 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13085 esac
13087 sys_lib_dlsearch_path_spec='/usr/lib'
13090 tpf*)
13091 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13092 version_type=linux
13093 need_lib_prefix=no
13094 need_version=no
13095 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13096 shlibpath_var=LD_LIBRARY_PATH
13097 shlibpath_overrides_runpath=no
13098 hardcode_into_libs=yes
13101 uts4*)
13102 version_type=linux
13103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13104 soname_spec='${libname}${release}${shared_ext}$major'
13105 shlibpath_var=LD_LIBRARY_PATH
13109 dynamic_linker=no
13111 esac
13112 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13113 echo "${ECHO_T}$dynamic_linker" >&6
13114 test "$dynamic_linker" = no && can_build_shared=no
13116 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13117 if test "$GCC" = yes; then
13118 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13156 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13157 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13158 hardcode_action_FC=
13159 if test -n "$hardcode_libdir_flag_spec_FC" ||
13160 test -n "$runpath_var_FC" ||
13161 test "X$hardcode_automatic_FC" = "Xyes" ; then
13163 # We can hardcode non-existent directories.
13164 if test "$hardcode_direct_FC" != no &&
13165 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13166 # have to relink, otherwise we might link with an installed library
13167 # when we should be linking with a yet-to-be-installed one
13168 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13169 test "$hardcode_minus_L_FC" != no; then
13170 # Linking always hardcodes the temporary library directory.
13171 hardcode_action_FC=relink
13172 else
13173 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13174 hardcode_action_FC=immediate
13176 else
13177 # We cannot hardcode anything, or else we can only hardcode existing
13178 # directories.
13179 hardcode_action_FC=unsupported
13181 echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13182 echo "${ECHO_T}$hardcode_action_FC" >&6
13184 if test "$hardcode_action_FC" = relink ||
13185 test "$inherit_rpath_FC" = yes; then
13186 # Fast installation is not supported
13187 enable_fast_install=no
13188 elif test "$shlibpath_overrides_runpath" = yes ||
13189 test "$enable_shared" = no; then
13190 # Fast installation is not necessary
13191 enable_fast_install=needless
13200 fi # test -n "$compiler"
13202 CC="$lt_save_CC"
13203 fi # test "$_lt_disable_FC" != yes
13205 ac_ext=c
13206 ac_cpp='$CPP $CPPFLAGS'
13207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13212 FCFLAGS="$FCFLAGS -Wall"
13214 # For libtool versioning info, format is CURRENT:REVISION:AGE
13215 libtool_VERSION=1:0:0
13218 # Check header files.
13219 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13220 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13221 if test "${ac_cv_header_stdc+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 else
13224 cat >conftest.$ac_ext <<_ACEOF
13225 /* confdefs.h. */
13226 _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13230 #include <stdlib.h>
13231 #include <stdarg.h>
13232 #include <string.h>
13233 #include <float.h>
13236 main ()
13240 return 0;
13242 _ACEOF
13243 rm -f conftest.$ac_objext
13244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13245 (eval $ac_compile) 2>conftest.er1
13246 ac_status=$?
13247 grep -v '^ *+' conftest.er1 >conftest.err
13248 rm -f conftest.er1
13249 cat conftest.err >&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } &&
13252 { ac_try='test -z "$ac_c_werror_flag"
13253 || test ! -s conftest.err'
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); }; } &&
13259 { ac_try='test -s conftest.$ac_objext'
13260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13261 (eval $ac_try) 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
13265 ac_cv_header_stdc=yes
13266 else
13267 echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13270 ac_cv_header_stdc=no
13272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13274 if test $ac_cv_header_stdc = yes; then
13275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13276 cat >conftest.$ac_ext <<_ACEOF
13277 /* confdefs.h. */
13278 _ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13282 #include <string.h>
13284 _ACEOF
13285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13286 $EGREP "memchr" >/dev/null 2>&1; then
13288 else
13289 ac_cv_header_stdc=no
13291 rm -f conftest*
13295 if test $ac_cv_header_stdc = yes; then
13296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13297 cat >conftest.$ac_ext <<_ACEOF
13298 /* confdefs.h. */
13299 _ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h. */
13303 #include <stdlib.h>
13305 _ACEOF
13306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13307 $EGREP "free" >/dev/null 2>&1; then
13309 else
13310 ac_cv_header_stdc=no
13312 rm -f conftest*
13316 if test $ac_cv_header_stdc = yes; then
13317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13318 if test "$cross_compiling" = yes; then
13320 else
13321 cat >conftest.$ac_ext <<_ACEOF
13322 /* confdefs.h. */
13323 _ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h. */
13327 #include <ctype.h>
13328 #if ((' ' & 0x0FF) == 0x020)
13329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13331 #else
13332 # define ISLOWER(c) \
13333 (('a' <= (c) && (c) <= 'i') \
13334 || ('j' <= (c) && (c) <= 'r') \
13335 || ('s' <= (c) && (c) <= 'z'))
13336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13337 #endif
13339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13341 main ()
13343 int i;
13344 for (i = 0; i < 256; i++)
13345 if (XOR (islower (i), ISLOWER (i))
13346 || toupper (i) != TOUPPER (i))
13347 exit(2);
13348 exit (0);
13350 _ACEOF
13351 rm -f conftest$ac_exeext
13352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13353 (eval $ac_link) 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13359 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
13363 else
13364 echo "$as_me: program exited with status $ac_status" >&5
13365 echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13368 ( exit $ac_status )
13369 ac_cv_header_stdc=no
13371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13375 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13376 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13377 if test $ac_cv_header_stdc = yes; then
13379 cat >>confdefs.h <<\_ACEOF
13380 #define STDC_HEADERS 1
13381 _ACEOF
13385 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13386 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13387 if test "${ac_cv_header_time+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 else
13390 cat >conftest.$ac_ext <<_ACEOF
13391 /* confdefs.h. */
13392 _ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h. */
13396 #include <sys/types.h>
13397 #include <sys/time.h>
13398 #include <time.h>
13401 main ()
13403 if ((struct tm *) 0)
13404 return 0;
13406 return 0;
13408 _ACEOF
13409 rm -f conftest.$ac_objext
13410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13411 (eval $ac_compile) 2>conftest.er1
13412 ac_status=$?
13413 grep -v '^ *+' conftest.er1 >conftest.err
13414 rm -f conftest.er1
13415 cat conftest.err >&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } &&
13418 { ac_try='test -z "$ac_c_werror_flag"
13419 || test ! -s conftest.err'
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); }; } &&
13425 { ac_try='test -s conftest.$ac_objext'
13426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13427 (eval $ac_try) 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; }; then
13431 ac_cv_header_time=yes
13432 else
13433 echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13436 ac_cv_header_time=no
13438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13440 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13441 echo "${ECHO_T}$ac_cv_header_time" >&6
13442 if test $ac_cv_header_time = yes; then
13444 cat >>confdefs.h <<\_ACEOF
13445 #define TIME_WITH_SYS_TIME 1
13446 _ACEOF
13450 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
13451 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
13452 if test "${gcc_cv_header_string+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13454 else
13455 cat >conftest.$ac_ext <<_ACEOF
13456 /* confdefs.h. */
13457 _ACEOF
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h. */
13461 #include <string.h>
13462 #include <strings.h>
13464 main ()
13468 return 0;
13470 _ACEOF
13471 rm -f conftest.$ac_objext
13472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13473 (eval $ac_compile) 2>conftest.er1
13474 ac_status=$?
13475 grep -v '^ *+' conftest.er1 >conftest.err
13476 rm -f conftest.er1
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } &&
13480 { ac_try='test -z "$ac_c_werror_flag"
13481 || test ! -s conftest.err'
13482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483 (eval $ac_try) 2>&5
13484 ac_status=$?
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; } &&
13487 { ac_try='test -s conftest.$ac_objext'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; }; then
13493 gcc_cv_header_string=yes
13494 else
13495 echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13498 gcc_cv_header_string=no
13500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13502 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
13503 echo "${ECHO_T}$gcc_cv_header_string" >&6
13504 if test $gcc_cv_header_string = yes; then
13506 cat >>confdefs.h <<\_ACEOF
13507 #define STRING_WITH_STRINGS 1
13508 _ACEOF
13516 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
13518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13520 echo "$as_me:$LINENO: checking for $ac_header" >&5
13521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13527 else
13528 # Is the header compilable?
13529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13531 cat >conftest.$ac_ext <<_ACEOF
13532 /* confdefs.h. */
13533 _ACEOF
13534 cat confdefs.h >>conftest.$ac_ext
13535 cat >>conftest.$ac_ext <<_ACEOF
13536 /* end confdefs.h. */
13537 $ac_includes_default
13538 #include <$ac_header>
13539 _ACEOF
13540 rm -f conftest.$ac_objext
13541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13542 (eval $ac_compile) 2>conftest.er1
13543 ac_status=$?
13544 grep -v '^ *+' conftest.er1 >conftest.err
13545 rm -f conftest.er1
13546 cat conftest.err >&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } &&
13549 { ac_try='test -z "$ac_c_werror_flag"
13550 || test ! -s conftest.err'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; } &&
13556 { ac_try='test -s conftest.$ac_objext'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13559 ac_status=$?
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13562 ac_header_compiler=yes
13563 else
13564 echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13567 ac_header_compiler=no
13569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13571 echo "${ECHO_T}$ac_header_compiler" >&6
13573 # Is the header present?
13574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13576 cat >conftest.$ac_ext <<_ACEOF
13577 /* confdefs.h. */
13578 _ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13582 #include <$ac_header>
13583 _ACEOF
13584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13586 ac_status=$?
13587 grep -v '^ *+' conftest.er1 >conftest.err
13588 rm -f conftest.er1
13589 cat conftest.err >&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } >/dev/null; then
13592 if test -s conftest.err; then
13593 ac_cpp_err=$ac_c_preproc_warn_flag
13594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13595 else
13596 ac_cpp_err=
13598 else
13599 ac_cpp_err=yes
13601 if test -z "$ac_cpp_err"; then
13602 ac_header_preproc=yes
13603 else
13604 echo "$as_me: failed program was:" >&5
13605 sed 's/^/| /' conftest.$ac_ext >&5
13607 ac_header_preproc=no
13609 rm -f conftest.err conftest.$ac_ext
13610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13611 echo "${ECHO_T}$ac_header_preproc" >&6
13613 # So? What about this header?
13614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13615 yes:no: )
13616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13620 ac_header_preproc=yes
13622 no:yes:* )
13623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13636 cat <<\_ASBOX
13637 ## ----------------------------------------------------- ##
13638 ## Report this to the GNU OpenMP Runtime Library lists. ##
13639 ## ----------------------------------------------------- ##
13640 _ASBOX
13642 sed "s/^/$as_me: WARNING: /" >&2
13644 esac
13645 echo "$as_me:$LINENO: checking for $ac_header" >&5
13646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13648 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 else
13650 eval "$as_ac_Header=\$ac_header_preproc"
13652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13657 cat >>confdefs.h <<_ACEOF
13658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13659 _ACEOF
13663 done
13668 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13670 acx_cv_header_stdint=stddef.h
13671 acx_cv_header_stdint_kind="(already complete)"
13672 for i in stdint.h $inttype_headers; do
13673 unset ac_cv_type_uintptr_t
13674 unset ac_cv_type_uintmax_t
13675 unset ac_cv_type_int_least32_t
13676 unset ac_cv_type_int_fast32_t
13677 unset ac_cv_type_uint64_t
13678 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13679 echo "$as_me:$LINENO: checking for uintmax_t" >&5
13680 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13681 if test "${ac_cv_type_uintmax_t+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13683 else
13684 cat >conftest.$ac_ext <<_ACEOF
13685 /* confdefs.h. */
13686 _ACEOF
13687 cat confdefs.h >>conftest.$ac_ext
13688 cat >>conftest.$ac_ext <<_ACEOF
13689 /* end confdefs.h. */
13690 #include <sys/types.h>
13691 #include <$i>
13694 main ()
13696 if ((uintmax_t *) 0)
13697 return 0;
13698 if (sizeof (uintmax_t))
13699 return 0;
13701 return 0;
13703 _ACEOF
13704 rm -f conftest.$ac_objext
13705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13706 (eval $ac_compile) 2>conftest.er1
13707 ac_status=$?
13708 grep -v '^ *+' conftest.er1 >conftest.err
13709 rm -f conftest.er1
13710 cat conftest.err >&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } &&
13713 { ac_try='test -z "$ac_c_werror_flag"
13714 || test ! -s conftest.err'
13715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716 (eval $ac_try) 2>&5
13717 ac_status=$?
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }; } &&
13720 { ac_try='test -s conftest.$ac_objext'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13726 ac_cv_type_uintmax_t=yes
13727 else
13728 echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13731 ac_cv_type_uintmax_t=no
13733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13735 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13736 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13737 if test $ac_cv_type_uintmax_t = yes; then
13738 acx_cv_header_stdint=$i
13739 else
13740 continue
13743 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13744 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13745 if test "${ac_cv_type_uintptr_t+set}" = set; then
13746 echo $ECHO_N "(cached) $ECHO_C" >&6
13747 else
13748 cat >conftest.$ac_ext <<_ACEOF
13749 /* confdefs.h. */
13750 _ACEOF
13751 cat confdefs.h >>conftest.$ac_ext
13752 cat >>conftest.$ac_ext <<_ACEOF
13753 /* end confdefs.h. */
13754 #include <sys/types.h>
13755 #include <$i>
13758 main ()
13760 if ((uintptr_t *) 0)
13761 return 0;
13762 if (sizeof (uintptr_t))
13763 return 0;
13765 return 0;
13767 _ACEOF
13768 rm -f conftest.$ac_objext
13769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13770 (eval $ac_compile) 2>conftest.er1
13771 ac_status=$?
13772 grep -v '^ *+' conftest.er1 >conftest.err
13773 rm -f conftest.er1
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
13777 { ac_try='test -z "$ac_c_werror_flag"
13778 || test ! -s conftest.err'
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13781 ac_status=$?
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; } &&
13784 { ac_try='test -s conftest.$ac_objext'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; }; then
13790 ac_cv_type_uintptr_t=yes
13791 else
13792 echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13795 ac_cv_type_uintptr_t=no
13797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13799 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13800 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13801 if test $ac_cv_type_uintptr_t = yes; then
13803 else
13804 acx_cv_header_stdint_kind="(mostly complete)"
13807 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13808 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13809 if test "${ac_cv_type_int_least32_t+set}" = set; then
13810 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 else
13812 cat >conftest.$ac_ext <<_ACEOF
13813 /* confdefs.h. */
13814 _ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h. */
13818 #include <sys/types.h>
13819 #include <$i>
13822 main ()
13824 if ((int_least32_t *) 0)
13825 return 0;
13826 if (sizeof (int_least32_t))
13827 return 0;
13829 return 0;
13831 _ACEOF
13832 rm -f conftest.$ac_objext
13833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13834 (eval $ac_compile) 2>conftest.er1
13835 ac_status=$?
13836 grep -v '^ *+' conftest.er1 >conftest.err
13837 rm -f conftest.er1
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } &&
13841 { ac_try='test -z "$ac_c_werror_flag"
13842 || test ! -s conftest.err'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13845 ac_status=$?
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; } &&
13848 { ac_try='test -s conftest.$ac_objext'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854 ac_cv_type_int_least32_t=yes
13855 else
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13859 ac_cv_type_int_least32_t=no
13861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13863 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13864 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13865 if test $ac_cv_type_int_least32_t = yes; then
13867 else
13868 acx_cv_header_stdint_kind="(mostly complete)"
13871 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13872 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13873 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13875 else
13876 cat >conftest.$ac_ext <<_ACEOF
13877 /* confdefs.h. */
13878 _ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13882 #include <sys/types.h>
13883 #include <$i>
13886 main ()
13888 if ((int_fast32_t *) 0)
13889 return 0;
13890 if (sizeof (int_fast32_t))
13891 return 0;
13893 return 0;
13895 _ACEOF
13896 rm -f conftest.$ac_objext
13897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13898 (eval $ac_compile) 2>conftest.er1
13899 ac_status=$?
13900 grep -v '^ *+' conftest.er1 >conftest.err
13901 rm -f conftest.er1
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
13905 { ac_try='test -z "$ac_c_werror_flag"
13906 || test ! -s conftest.err'
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; } &&
13912 { ac_try='test -s conftest.$ac_objext'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13915 ac_status=$?
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; }; then
13918 ac_cv_type_int_fast32_t=yes
13919 else
13920 echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13923 ac_cv_type_int_fast32_t=no
13925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13927 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13928 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13929 if test $ac_cv_type_int_fast32_t = yes; then
13931 else
13932 acx_cv_header_stdint_kind="(mostly complete)"
13935 echo "$as_me:$LINENO: checking for uint64_t" >&5
13936 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13937 if test "${ac_cv_type_uint64_t+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13939 else
13940 cat >conftest.$ac_ext <<_ACEOF
13941 /* confdefs.h. */
13942 _ACEOF
13943 cat confdefs.h >>conftest.$ac_ext
13944 cat >>conftest.$ac_ext <<_ACEOF
13945 /* end confdefs.h. */
13946 #include <sys/types.h>
13947 #include <$i>
13950 main ()
13952 if ((uint64_t *) 0)
13953 return 0;
13954 if (sizeof (uint64_t))
13955 return 0;
13957 return 0;
13959 _ACEOF
13960 rm -f conftest.$ac_objext
13961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13962 (eval $ac_compile) 2>conftest.er1
13963 ac_status=$?
13964 grep -v '^ *+' conftest.er1 >conftest.err
13965 rm -f conftest.er1
13966 cat conftest.err >&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } &&
13969 { ac_try='test -z "$ac_c_werror_flag"
13970 || test ! -s conftest.err'
13971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972 (eval $ac_try) 2>&5
13973 ac_status=$?
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; } &&
13976 { ac_try='test -s conftest.$ac_objext'
13977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13978 (eval $ac_try) 2>&5
13979 ac_status=$?
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; }; then
13982 ac_cv_type_uint64_t=yes
13983 else
13984 echo "$as_me: failed program was:" >&5
13985 sed 's/^/| /' conftest.$ac_ext >&5
13987 ac_cv_type_uint64_t=no
13989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13991 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13992 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13993 if test $ac_cv_type_uint64_t = yes; then
13995 else
13996 acx_cv_header_stdint_kind="(lacks uint64_t)"
13999 break
14000 done
14001 if test "$acx_cv_header_stdint" = stddef.h; then
14002 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14003 for i in stdint.h $inttype_headers; do
14004 unset ac_cv_type_uintptr_t
14005 unset ac_cv_type_uint32_t
14006 unset ac_cv_type_uint64_t
14007 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14008 echo "$as_me:$LINENO: checking for uint32_t" >&5
14009 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14010 if test "${ac_cv_type_uint32_t+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 else
14013 cat >conftest.$ac_ext <<_ACEOF
14014 /* confdefs.h. */
14015 _ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h. */
14019 #include <sys/types.h>
14020 #include <$i>
14023 main ()
14025 if ((uint32_t *) 0)
14026 return 0;
14027 if (sizeof (uint32_t))
14028 return 0;
14030 return 0;
14032 _ACEOF
14033 rm -f conftest.$ac_objext
14034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14035 (eval $ac_compile) 2>conftest.er1
14036 ac_status=$?
14037 grep -v '^ *+' conftest.er1 >conftest.err
14038 rm -f conftest.er1
14039 cat conftest.err >&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } &&
14042 { ac_try='test -z "$ac_c_werror_flag"
14043 || test ! -s conftest.err'
14044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045 (eval $ac_try) 2>&5
14046 ac_status=$?
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); }; } &&
14049 { ac_try='test -s conftest.$ac_objext'
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14052 ac_status=$?
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; }; then
14055 ac_cv_type_uint32_t=yes
14056 else
14057 echo "$as_me: failed program was:" >&5
14058 sed 's/^/| /' conftest.$ac_ext >&5
14060 ac_cv_type_uint32_t=no
14062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14064 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14065 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14066 if test $ac_cv_type_uint32_t = yes; then
14067 acx_cv_header_stdint=$i
14068 else
14069 continue
14072 echo "$as_me:$LINENO: checking for uint64_t" >&5
14073 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14074 if test "${ac_cv_type_uint64_t+set}" = set; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 else
14077 cat >conftest.$ac_ext <<_ACEOF
14078 /* confdefs.h. */
14079 _ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h. */
14083 #include <sys/types.h>
14084 #include <$i>
14087 main ()
14089 if ((uint64_t *) 0)
14090 return 0;
14091 if (sizeof (uint64_t))
14092 return 0;
14094 return 0;
14096 _ACEOF
14097 rm -f conftest.$ac_objext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14099 (eval $ac_compile) 2>conftest.er1
14100 ac_status=$?
14101 grep -v '^ *+' conftest.er1 >conftest.err
14102 rm -f conftest.er1
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try='test -z "$ac_c_werror_flag"
14107 || test ! -s conftest.err'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; } &&
14113 { ac_try='test -s conftest.$ac_objext'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14116 ac_status=$?
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14119 ac_cv_type_uint64_t=yes
14120 else
14121 echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14124 ac_cv_type_uint64_t=no
14126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14128 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14129 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14131 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14132 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14133 if test "${ac_cv_type_uintptr_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 ((uintptr_t *) 0)
14149 return 0;
14150 if (sizeof (uintptr_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_uintptr_t=yes
14179 else
14180 echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14183 ac_cv_type_uintptr_t=no
14185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14187 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14188 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14190 break
14191 done
14193 if test "$acx_cv_header_stdint" = stddef.h; then
14194 acx_cv_header_stdint_kind="(u_intXX_t style)"
14195 for i in sys/types.h $inttype_headers; do
14196 unset ac_cv_type_u_int32_t
14197 unset ac_cv_type_u_int64_t
14198 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14199 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14200 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14201 if test "${ac_cv_type_u_int32_t+set}" = set; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14203 else
14204 cat >conftest.$ac_ext <<_ACEOF
14205 /* confdefs.h. */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14210 #include <sys/types.h>
14211 #include <$i>
14214 main ()
14216 if ((u_int32_t *) 0)
14217 return 0;
14218 if (sizeof (u_int32_t))
14219 return 0;
14221 return 0;
14223 _ACEOF
14224 rm -f conftest.$ac_objext
14225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14226 (eval $ac_compile) 2>conftest.er1
14227 ac_status=$?
14228 grep -v '^ *+' conftest.er1 >conftest.err
14229 rm -f conftest.er1
14230 cat conftest.err >&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } &&
14233 { ac_try='test -z "$ac_c_werror_flag"
14234 || test ! -s conftest.err'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; } &&
14240 { ac_try='test -s conftest.$ac_objext'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; }; then
14246 ac_cv_type_u_int32_t=yes
14247 else
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14251 ac_cv_type_u_int32_t=no
14253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14255 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14256 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14257 if test $ac_cv_type_u_int32_t = yes; then
14258 acx_cv_header_stdint=$i
14259 else
14260 continue
14263 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14264 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14265 if test "${ac_cv_type_u_int64_t+set}" = set; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14267 else
14268 cat >conftest.$ac_ext <<_ACEOF
14269 /* confdefs.h. */
14270 _ACEOF
14271 cat confdefs.h >>conftest.$ac_ext
14272 cat >>conftest.$ac_ext <<_ACEOF
14273 /* end confdefs.h. */
14274 #include <sys/types.h>
14275 #include <$i>
14278 main ()
14280 if ((u_int64_t *) 0)
14281 return 0;
14282 if (sizeof (u_int64_t))
14283 return 0;
14285 return 0;
14287 _ACEOF
14288 rm -f conftest.$ac_objext
14289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14290 (eval $ac_compile) 2>conftest.er1
14291 ac_status=$?
14292 grep -v '^ *+' conftest.er1 >conftest.err
14293 rm -f conftest.er1
14294 cat conftest.err >&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
14297 { ac_try='test -z "$ac_c_werror_flag"
14298 || test ! -s conftest.err'
14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14301 ac_status=$?
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; } &&
14304 { ac_try='test -s conftest.$ac_objext'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14307 ac_status=$?
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }; then
14310 ac_cv_type_u_int64_t=yes
14311 else
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14315 ac_cv_type_u_int64_t=no
14317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14319 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14320 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14322 break
14323 done
14325 if test "$acx_cv_header_stdint" = stddef.h; then
14326 acx_cv_header_stdint_kind="(using manual detection)"
14329 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14330 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14331 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14332 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14333 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14335 # ----------------- Summarize what we found so far
14337 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
14338 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
14340 case `$as_basename gstdint.h ||
14341 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14342 Xgstdint.h : 'X\(//\)$' \| \
14343 Xgstdint.h : 'X\(/\)$' \| \
14344 . : '\(.\)' 2>/dev/null ||
14345 echo X/gstdint.h |
14346 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14347 /^X\/\(\/\/\)$/{ s//\1/; q; }
14348 /^X\/\(\/\).*/{ s//\1/; q; }
14349 s/.*/./; q'` in
14350 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14351 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14352 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14353 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14354 *) ;;
14355 esac
14357 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14358 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14360 # ----------------- done included file, check C basic types --------
14362 # Lacking an uintptr_t? Test size of void *
14363 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14364 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14365 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14366 if test "${ac_cv_type_void_p+set}" = set; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 else
14369 cat >conftest.$ac_ext <<_ACEOF
14370 /* confdefs.h. */
14371 _ACEOF
14372 cat confdefs.h >>conftest.$ac_ext
14373 cat >>conftest.$ac_ext <<_ACEOF
14374 /* end confdefs.h. */
14375 $ac_includes_default
14377 main ()
14379 if ((void * *) 0)
14380 return 0;
14381 if (sizeof (void *))
14382 return 0;
14384 return 0;
14386 _ACEOF
14387 rm -f conftest.$ac_objext
14388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14389 (eval $ac_compile) 2>conftest.er1
14390 ac_status=$?
14391 grep -v '^ *+' conftest.er1 >conftest.err
14392 rm -f conftest.er1
14393 cat conftest.err >&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); } &&
14396 { ac_try='test -z "$ac_c_werror_flag"
14397 || test ! -s conftest.err'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; } &&
14403 { ac_try='test -s conftest.$ac_objext'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14406 ac_status=$?
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14409 ac_cv_type_void_p=yes
14410 else
14411 echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14414 ac_cv_type_void_p=no
14416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14418 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14419 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14421 echo "$as_me:$LINENO: checking size of void *" >&5
14422 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14423 if test "${ac_cv_sizeof_void_p+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14425 else
14426 if test "$ac_cv_type_void_p" = yes; then
14427 # The cast to unsigned long works around a bug in the HP C Compiler
14428 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14429 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14430 # This bug is HP SR number 8606223364.
14431 if test "$cross_compiling" = yes; then
14432 # Depending upon the size, compute the lo and hi bounds.
14433 cat >conftest.$ac_ext <<_ACEOF
14434 /* confdefs.h. */
14435 _ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14439 $ac_includes_default
14441 main ()
14443 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14444 test_array [0] = 0
14447 return 0;
14449 _ACEOF
14450 rm -f conftest.$ac_objext
14451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14452 (eval $ac_compile) 2>conftest.er1
14453 ac_status=$?
14454 grep -v '^ *+' conftest.er1 >conftest.err
14455 rm -f conftest.er1
14456 cat conftest.err >&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } &&
14459 { ac_try='test -z "$ac_c_werror_flag"
14460 || test ! -s conftest.err'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; } &&
14466 { ac_try='test -s conftest.$ac_objext'
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 ac_lo=0 ac_mid=0
14473 while :; do
14474 cat >conftest.$ac_ext <<_ACEOF
14475 /* confdefs.h. */
14476 _ACEOF
14477 cat confdefs.h >>conftest.$ac_ext
14478 cat >>conftest.$ac_ext <<_ACEOF
14479 /* end confdefs.h. */
14480 $ac_includes_default
14482 main ()
14484 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14485 test_array [0] = 0
14488 return 0;
14490 _ACEOF
14491 rm -f conftest.$ac_objext
14492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14493 (eval $ac_compile) 2>conftest.er1
14494 ac_status=$?
14495 grep -v '^ *+' conftest.er1 >conftest.err
14496 rm -f conftest.er1
14497 cat conftest.err >&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } &&
14500 { ac_try='test -z "$ac_c_werror_flag"
14501 || test ! -s conftest.err'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14504 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; } &&
14507 { ac_try='test -s conftest.$ac_objext'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
14513 ac_hi=$ac_mid; break
14514 else
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14518 ac_lo=`expr $ac_mid + 1`
14519 if test $ac_lo -le $ac_mid; then
14520 ac_lo= ac_hi=
14521 break
14523 ac_mid=`expr 2 '*' $ac_mid + 1`
14525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14526 done
14527 else
14528 echo "$as_me: failed program was:" >&5
14529 sed 's/^/| /' conftest.$ac_ext >&5
14531 cat >conftest.$ac_ext <<_ACEOF
14532 /* confdefs.h. */
14533 _ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14537 $ac_includes_default
14539 main ()
14541 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14542 test_array [0] = 0
14545 return 0;
14547 _ACEOF
14548 rm -f conftest.$ac_objext
14549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14550 (eval $ac_compile) 2>conftest.er1
14551 ac_status=$?
14552 grep -v '^ *+' conftest.er1 >conftest.err
14553 rm -f conftest.er1
14554 cat conftest.err >&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } &&
14557 { ac_try='test -z "$ac_c_werror_flag"
14558 || test ! -s conftest.err'
14559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560 (eval $ac_try) 2>&5
14561 ac_status=$?
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; } &&
14564 { ac_try='test -s conftest.$ac_objext'
14565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566 (eval $ac_try) 2>&5
14567 ac_status=$?
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
14570 ac_hi=-1 ac_mid=-1
14571 while :; do
14572 cat >conftest.$ac_ext <<_ACEOF
14573 /* confdefs.h. */
14574 _ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h. */
14578 $ac_includes_default
14580 main ()
14582 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14583 test_array [0] = 0
14586 return 0;
14588 _ACEOF
14589 rm -f conftest.$ac_objext
14590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14591 (eval $ac_compile) 2>conftest.er1
14592 ac_status=$?
14593 grep -v '^ *+' conftest.er1 >conftest.err
14594 rm -f conftest.er1
14595 cat conftest.err >&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); } &&
14598 { ac_try='test -z "$ac_c_werror_flag"
14599 || test ! -s conftest.err'
14600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601 (eval $ac_try) 2>&5
14602 ac_status=$?
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); }; } &&
14605 { ac_try='test -s conftest.$ac_objext'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14608 ac_status=$?
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
14611 ac_lo=$ac_mid; break
14612 else
14613 echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14616 ac_hi=`expr '(' $ac_mid ')' - 1`
14617 if test $ac_mid -le $ac_hi; then
14618 ac_lo= ac_hi=
14619 break
14621 ac_mid=`expr 2 '*' $ac_mid`
14623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14624 done
14625 else
14626 echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.$ac_ext >&5
14629 ac_lo= ac_hi=
14631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14634 # Binary search between lo and hi bounds.
14635 while test "x$ac_lo" != "x$ac_hi"; do
14636 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14637 cat >conftest.$ac_ext <<_ACEOF
14638 /* confdefs.h. */
14639 _ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h. */
14643 $ac_includes_default
14645 main ()
14647 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14648 test_array [0] = 0
14651 return 0;
14653 _ACEOF
14654 rm -f conftest.$ac_objext
14655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14656 (eval $ac_compile) 2>conftest.er1
14657 ac_status=$?
14658 grep -v '^ *+' conftest.er1 >conftest.err
14659 rm -f conftest.er1
14660 cat conftest.err >&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } &&
14663 { ac_try='test -z "$ac_c_werror_flag"
14664 || test ! -s conftest.err'
14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666 (eval $ac_try) 2>&5
14667 ac_status=$?
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; } &&
14670 { ac_try='test -s conftest.$ac_objext'
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; }; then
14676 ac_hi=$ac_mid
14677 else
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14681 ac_lo=`expr '(' $ac_mid ')' + 1`
14683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14684 done
14685 case $ac_lo in
14686 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14687 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14688 See \`config.log' for more details." >&5
14689 echo "$as_me: error: cannot compute sizeof (void *), 77
14690 See \`config.log' for more details." >&2;}
14691 { (exit 1); exit 1; }; } ;;
14692 esac
14693 else
14694 if test "$cross_compiling" = yes; then
14695 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14696 See \`config.log' for more details." >&5
14697 echo "$as_me: error: cannot run test program while cross compiling
14698 See \`config.log' for more details." >&2;}
14699 { (exit 1); exit 1; }; }
14700 else
14701 cat >conftest.$ac_ext <<_ACEOF
14702 /* confdefs.h. */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14707 $ac_includes_default
14708 long longval () { return (long) (sizeof (void *)); }
14709 unsigned long ulongval () { return (long) (sizeof (void *)); }
14710 #include <stdio.h>
14711 #include <stdlib.h>
14713 main ()
14716 FILE *f = fopen ("conftest.val", "w");
14717 if (! f)
14718 exit (1);
14719 if (((long) (sizeof (void *))) < 0)
14721 long i = longval ();
14722 if (i != ((long) (sizeof (void *))))
14723 exit (1);
14724 fprintf (f, "%ld\n", i);
14726 else
14728 unsigned long i = ulongval ();
14729 if (i != ((long) (sizeof (void *))))
14730 exit (1);
14731 fprintf (f, "%lu\n", i);
14733 exit (ferror (f) || fclose (f) != 0);
14736 return 0;
14738 _ACEOF
14739 rm -f conftest$ac_exeext
14740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14741 (eval $ac_link) 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746 (eval $ac_try) 2>&5
14747 ac_status=$?
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; }; then
14750 ac_cv_sizeof_void_p=`cat conftest.val`
14751 else
14752 echo "$as_me: program exited with status $ac_status" >&5
14753 echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14756 ( exit $ac_status )
14757 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14758 See \`config.log' for more details." >&5
14759 echo "$as_me: error: cannot compute sizeof (void *), 77
14760 See \`config.log' for more details." >&2;}
14761 { (exit 1); exit 1; }; }
14763 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14766 rm -f conftest.val
14767 else
14768 ac_cv_sizeof_void_p=0
14771 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14772 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14773 cat >>confdefs.h <<_ACEOF
14774 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14775 _ACEOF
14778 esac
14780 # Lacking an uint64_t? Test size of long
14781 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14782 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14783 echo $ECHO_N "checking for long... $ECHO_C" >&6
14784 if test "${ac_cv_type_long+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787 cat >conftest.$ac_ext <<_ACEOF
14788 /* confdefs.h. */
14789 _ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14793 $ac_includes_default
14795 main ()
14797 if ((long *) 0)
14798 return 0;
14799 if (sizeof (long))
14800 return 0;
14802 return 0;
14804 _ACEOF
14805 rm -f conftest.$ac_objext
14806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14807 (eval $ac_compile) 2>conftest.er1
14808 ac_status=$?
14809 grep -v '^ *+' conftest.er1 >conftest.err
14810 rm -f conftest.er1
14811 cat conftest.err >&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } &&
14814 { ac_try='test -z "$ac_c_werror_flag"
14815 || test ! -s conftest.err'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14818 ac_status=$?
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; } &&
14821 { ac_try='test -s conftest.$ac_objext'
14822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
14824 ac_status=$?
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; }; then
14827 ac_cv_type_long=yes
14828 else
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 ac_cv_type_long=no
14834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14836 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14837 echo "${ECHO_T}$ac_cv_type_long" >&6
14839 echo "$as_me:$LINENO: checking size of long" >&5
14840 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14841 if test "${ac_cv_sizeof_long+set}" = set; then
14842 echo $ECHO_N "(cached) $ECHO_C" >&6
14843 else
14844 if test "$ac_cv_type_long" = yes; then
14845 # The cast to unsigned long works around a bug in the HP C Compiler
14846 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14847 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14848 # This bug is HP SR number 8606223364.
14849 if test "$cross_compiling" = yes; then
14850 # Depending upon the size, compute the lo and hi bounds.
14851 cat >conftest.$ac_ext <<_ACEOF
14852 /* confdefs.h. */
14853 _ACEOF
14854 cat confdefs.h >>conftest.$ac_ext
14855 cat >>conftest.$ac_ext <<_ACEOF
14856 /* end confdefs.h. */
14857 $ac_includes_default
14859 main ()
14861 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14862 test_array [0] = 0
14865 return 0;
14867 _ACEOF
14868 rm -f conftest.$ac_objext
14869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14870 (eval $ac_compile) 2>conftest.er1
14871 ac_status=$?
14872 grep -v '^ *+' conftest.er1 >conftest.err
14873 rm -f conftest.er1
14874 cat conftest.err >&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } &&
14877 { ac_try='test -z "$ac_c_werror_flag"
14878 || test ! -s conftest.err'
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; } &&
14884 { ac_try='test -s conftest.$ac_objext'
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14887 ac_status=$?
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }; then
14890 ac_lo=0 ac_mid=0
14891 while :; do
14892 cat >conftest.$ac_ext <<_ACEOF
14893 /* confdefs.h. */
14894 _ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h. */
14898 $ac_includes_default
14900 main ()
14902 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14903 test_array [0] = 0
14906 return 0;
14908 _ACEOF
14909 rm -f conftest.$ac_objext
14910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14911 (eval $ac_compile) 2>conftest.er1
14912 ac_status=$?
14913 grep -v '^ *+' conftest.er1 >conftest.err
14914 rm -f conftest.er1
14915 cat conftest.err >&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); } &&
14918 { ac_try='test -z "$ac_c_werror_flag"
14919 || test ! -s conftest.err'
14920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14921 (eval $ac_try) 2>&5
14922 ac_status=$?
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); }; } &&
14925 { ac_try='test -s conftest.$ac_objext'
14926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14927 (eval $ac_try) 2>&5
14928 ac_status=$?
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); }; }; then
14931 ac_hi=$ac_mid; break
14932 else
14933 echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.$ac_ext >&5
14936 ac_lo=`expr $ac_mid + 1`
14937 if test $ac_lo -le $ac_mid; then
14938 ac_lo= ac_hi=
14939 break
14941 ac_mid=`expr 2 '*' $ac_mid + 1`
14943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14944 done
14945 else
14946 echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14949 cat >conftest.$ac_ext <<_ACEOF
14950 /* confdefs.h. */
14951 _ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h. */
14955 $ac_includes_default
14957 main ()
14959 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14960 test_array [0] = 0
14963 return 0;
14965 _ACEOF
14966 rm -f conftest.$ac_objext
14967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14968 (eval $ac_compile) 2>conftest.er1
14969 ac_status=$?
14970 grep -v '^ *+' conftest.er1 >conftest.err
14971 rm -f conftest.er1
14972 cat conftest.err >&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); } &&
14975 { ac_try='test -z "$ac_c_werror_flag"
14976 || test ! -s conftest.err'
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; } &&
14982 { ac_try='test -s conftest.$ac_objext'
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; }; then
14988 ac_hi=-1 ac_mid=-1
14989 while :; do
14990 cat >conftest.$ac_ext <<_ACEOF
14991 /* confdefs.h. */
14992 _ACEOF
14993 cat confdefs.h >>conftest.$ac_ext
14994 cat >>conftest.$ac_ext <<_ACEOF
14995 /* end confdefs.h. */
14996 $ac_includes_default
14998 main ()
15000 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15001 test_array [0] = 0
15004 return 0;
15006 _ACEOF
15007 rm -f conftest.$ac_objext
15008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15009 (eval $ac_compile) 2>conftest.er1
15010 ac_status=$?
15011 grep -v '^ *+' conftest.er1 >conftest.err
15012 rm -f conftest.er1
15013 cat conftest.err >&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } &&
15016 { ac_try='test -z "$ac_c_werror_flag"
15017 || test ! -s conftest.err'
15018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019 (eval $ac_try) 2>&5
15020 ac_status=$?
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; } &&
15023 { ac_try='test -s conftest.$ac_objext'
15024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025 (eval $ac_try) 2>&5
15026 ac_status=$?
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); }; }; then
15029 ac_lo=$ac_mid; break
15030 else
15031 echo "$as_me: failed program was:" >&5
15032 sed 's/^/| /' conftest.$ac_ext >&5
15034 ac_hi=`expr '(' $ac_mid ')' - 1`
15035 if test $ac_mid -le $ac_hi; then
15036 ac_lo= ac_hi=
15037 break
15039 ac_mid=`expr 2 '*' $ac_mid`
15041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15042 done
15043 else
15044 echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15047 ac_lo= ac_hi=
15049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15052 # Binary search between lo and hi bounds.
15053 while test "x$ac_lo" != "x$ac_hi"; do
15054 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15055 cat >conftest.$ac_ext <<_ACEOF
15056 /* confdefs.h. */
15057 _ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h. */
15061 $ac_includes_default
15063 main ()
15065 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15066 test_array [0] = 0
15069 return 0;
15071 _ACEOF
15072 rm -f conftest.$ac_objext
15073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15074 (eval $ac_compile) 2>conftest.er1
15075 ac_status=$?
15076 grep -v '^ *+' conftest.er1 >conftest.err
15077 rm -f conftest.er1
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } &&
15081 { ac_try='test -z "$ac_c_werror_flag"
15082 || test ! -s conftest.err'
15083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084 (eval $ac_try) 2>&5
15085 ac_status=$?
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; } &&
15088 { ac_try='test -s conftest.$ac_objext'
15089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090 (eval $ac_try) 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; }; then
15094 ac_hi=$ac_mid
15095 else
15096 echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15099 ac_lo=`expr '(' $ac_mid ')' + 1`
15101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15102 done
15103 case $ac_lo in
15104 ?*) ac_cv_sizeof_long=$ac_lo;;
15105 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15106 See \`config.log' for more details." >&5
15107 echo "$as_me: error: cannot compute sizeof (long), 77
15108 See \`config.log' for more details." >&2;}
15109 { (exit 1); exit 1; }; } ;;
15110 esac
15111 else
15112 if test "$cross_compiling" = yes; then
15113 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15114 See \`config.log' for more details." >&5
15115 echo "$as_me: error: cannot run test program while cross compiling
15116 See \`config.log' for more details." >&2;}
15117 { (exit 1); exit 1; }; }
15118 else
15119 cat >conftest.$ac_ext <<_ACEOF
15120 /* confdefs.h. */
15121 _ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15125 $ac_includes_default
15126 long longval () { return (long) (sizeof (long)); }
15127 unsigned long ulongval () { return (long) (sizeof (long)); }
15128 #include <stdio.h>
15129 #include <stdlib.h>
15131 main ()
15134 FILE *f = fopen ("conftest.val", "w");
15135 if (! f)
15136 exit (1);
15137 if (((long) (sizeof (long))) < 0)
15139 long i = longval ();
15140 if (i != ((long) (sizeof (long))))
15141 exit (1);
15142 fprintf (f, "%ld\n", i);
15144 else
15146 unsigned long i = ulongval ();
15147 if (i != ((long) (sizeof (long))))
15148 exit (1);
15149 fprintf (f, "%lu\n", i);
15151 exit (ferror (f) || fclose (f) != 0);
15154 return 0;
15156 _ACEOF
15157 rm -f conftest$ac_exeext
15158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15159 (eval $ac_link) 2>&5
15160 ac_status=$?
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15165 ac_status=$?
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; }; then
15168 ac_cv_sizeof_long=`cat conftest.val`
15169 else
15170 echo "$as_me: program exited with status $ac_status" >&5
15171 echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15174 ( exit $ac_status )
15175 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15176 See \`config.log' for more details." >&5
15177 echo "$as_me: error: cannot compute sizeof (long), 77
15178 See \`config.log' for more details." >&2;}
15179 { (exit 1); exit 1; }; }
15181 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15184 rm -f conftest.val
15185 else
15186 ac_cv_sizeof_long=0
15189 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15190 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15191 cat >>confdefs.h <<_ACEOF
15192 #define SIZEOF_LONG $ac_cv_sizeof_long
15193 _ACEOF
15196 esac
15198 if test $acx_cv_header_stdint = stddef.h; then
15199 # Lacking a good header? Test size of everything and deduce all types.
15200 echo "$as_me:$LINENO: checking for int" >&5
15201 echo $ECHO_N "checking for int... $ECHO_C" >&6
15202 if test "${ac_cv_type_int+set}" = set; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 else
15205 cat >conftest.$ac_ext <<_ACEOF
15206 /* confdefs.h. */
15207 _ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h. */
15211 $ac_includes_default
15213 main ()
15215 if ((int *) 0)
15216 return 0;
15217 if (sizeof (int))
15218 return 0;
15220 return 0;
15222 _ACEOF
15223 rm -f conftest.$ac_objext
15224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15225 (eval $ac_compile) 2>conftest.er1
15226 ac_status=$?
15227 grep -v '^ *+' conftest.er1 >conftest.err
15228 rm -f conftest.er1
15229 cat conftest.err >&5
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } &&
15232 { ac_try='test -z "$ac_c_werror_flag"
15233 || test ! -s conftest.err'
15234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15235 (eval $ac_try) 2>&5
15236 ac_status=$?
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; } &&
15239 { ac_try='test -s conftest.$ac_objext'
15240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241 (eval $ac_try) 2>&5
15242 ac_status=$?
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15245 ac_cv_type_int=yes
15246 else
15247 echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15250 ac_cv_type_int=no
15252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15254 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15255 echo "${ECHO_T}$ac_cv_type_int" >&6
15257 echo "$as_me:$LINENO: checking size of int" >&5
15258 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15259 if test "${ac_cv_sizeof_int+set}" = set; then
15260 echo $ECHO_N "(cached) $ECHO_C" >&6
15261 else
15262 if test "$ac_cv_type_int" = yes; then
15263 # The cast to unsigned long works around a bug in the HP C Compiler
15264 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15265 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15266 # This bug is HP SR number 8606223364.
15267 if test "$cross_compiling" = yes; then
15268 # Depending upon the size, compute the lo and hi bounds.
15269 cat >conftest.$ac_ext <<_ACEOF
15270 /* confdefs.h. */
15271 _ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h. */
15275 $ac_includes_default
15277 main ()
15279 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15280 test_array [0] = 0
15283 return 0;
15285 _ACEOF
15286 rm -f conftest.$ac_objext
15287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15288 (eval $ac_compile) 2>conftest.er1
15289 ac_status=$?
15290 grep -v '^ *+' conftest.er1 >conftest.err
15291 rm -f conftest.er1
15292 cat conftest.err >&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } &&
15295 { ac_try='test -z "$ac_c_werror_flag"
15296 || test ! -s conftest.err'
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; } &&
15302 { ac_try='test -s conftest.$ac_objext'
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15305 ac_status=$?
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15308 ac_lo=0 ac_mid=0
15309 while :; do
15310 cat >conftest.$ac_ext <<_ACEOF
15311 /* confdefs.h. */
15312 _ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h. */
15316 $ac_includes_default
15318 main ()
15320 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15321 test_array [0] = 0
15324 return 0;
15326 _ACEOF
15327 rm -f conftest.$ac_objext
15328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15329 (eval $ac_compile) 2>conftest.er1
15330 ac_status=$?
15331 grep -v '^ *+' conftest.er1 >conftest.err
15332 rm -f conftest.er1
15333 cat conftest.err >&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } &&
15336 { ac_try='test -z "$ac_c_werror_flag"
15337 || test ! -s conftest.err'
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; } &&
15343 { ac_try='test -s conftest.$ac_objext'
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15346 ac_status=$?
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; }; then
15349 ac_hi=$ac_mid; break
15350 else
15351 echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15354 ac_lo=`expr $ac_mid + 1`
15355 if test $ac_lo -le $ac_mid; then
15356 ac_lo= ac_hi=
15357 break
15359 ac_mid=`expr 2 '*' $ac_mid + 1`
15361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15362 done
15363 else
15364 echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15367 cat >conftest.$ac_ext <<_ACEOF
15368 /* confdefs.h. */
15369 _ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h. */
15373 $ac_includes_default
15375 main ()
15377 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15378 test_array [0] = 0
15381 return 0;
15383 _ACEOF
15384 rm -f conftest.$ac_objext
15385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15386 (eval $ac_compile) 2>conftest.er1
15387 ac_status=$?
15388 grep -v '^ *+' conftest.er1 >conftest.err
15389 rm -f conftest.er1
15390 cat conftest.err >&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } &&
15393 { ac_try='test -z "$ac_c_werror_flag"
15394 || test ! -s conftest.err'
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; } &&
15400 { ac_try='test -s conftest.$ac_objext'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15403 ac_status=$?
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }; then
15406 ac_hi=-1 ac_mid=-1
15407 while :; do
15408 cat >conftest.$ac_ext <<_ACEOF
15409 /* confdefs.h. */
15410 _ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15414 $ac_includes_default
15416 main ()
15418 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15419 test_array [0] = 0
15422 return 0;
15424 _ACEOF
15425 rm -f conftest.$ac_objext
15426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15427 (eval $ac_compile) 2>conftest.er1
15428 ac_status=$?
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } &&
15434 { ac_try='test -z "$ac_c_werror_flag"
15435 || test ! -s conftest.err'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; } &&
15441 { ac_try='test -s conftest.$ac_objext'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15447 ac_lo=$ac_mid; break
15448 else
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15452 ac_hi=`expr '(' $ac_mid ')' - 1`
15453 if test $ac_mid -le $ac_hi; then
15454 ac_lo= ac_hi=
15455 break
15457 ac_mid=`expr 2 '*' $ac_mid`
15459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15460 done
15461 else
15462 echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15465 ac_lo= ac_hi=
15467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15470 # Binary search between lo and hi bounds.
15471 while test "x$ac_lo" != "x$ac_hi"; do
15472 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15473 cat >conftest.$ac_ext <<_ACEOF
15474 /* confdefs.h. */
15475 _ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h. */
15479 $ac_includes_default
15481 main ()
15483 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15484 test_array [0] = 0
15487 return 0;
15489 _ACEOF
15490 rm -f conftest.$ac_objext
15491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15492 (eval $ac_compile) 2>conftest.er1
15493 ac_status=$?
15494 grep -v '^ *+' conftest.er1 >conftest.err
15495 rm -f conftest.er1
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } &&
15499 { ac_try='test -z "$ac_c_werror_flag"
15500 || test ! -s conftest.err'
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15503 ac_status=$?
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; } &&
15506 { ac_try='test -s conftest.$ac_objext'
15507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508 (eval $ac_try) 2>&5
15509 ac_status=$?
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; }; then
15512 ac_hi=$ac_mid
15513 else
15514 echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.$ac_ext >&5
15517 ac_lo=`expr '(' $ac_mid ')' + 1`
15519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15520 done
15521 case $ac_lo in
15522 ?*) ac_cv_sizeof_int=$ac_lo;;
15523 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15524 See \`config.log' for more details." >&5
15525 echo "$as_me: error: cannot compute sizeof (int), 77
15526 See \`config.log' for more details." >&2;}
15527 { (exit 1); exit 1; }; } ;;
15528 esac
15529 else
15530 if test "$cross_compiling" = yes; then
15531 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15532 See \`config.log' for more details." >&5
15533 echo "$as_me: error: cannot run test program while cross compiling
15534 See \`config.log' for more details." >&2;}
15535 { (exit 1); exit 1; }; }
15536 else
15537 cat >conftest.$ac_ext <<_ACEOF
15538 /* confdefs.h. */
15539 _ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h. */
15543 $ac_includes_default
15544 long longval () { return (long) (sizeof (int)); }
15545 unsigned long ulongval () { return (long) (sizeof (int)); }
15546 #include <stdio.h>
15547 #include <stdlib.h>
15549 main ()
15552 FILE *f = fopen ("conftest.val", "w");
15553 if (! f)
15554 exit (1);
15555 if (((long) (sizeof (int))) < 0)
15557 long i = longval ();
15558 if (i != ((long) (sizeof (int))))
15559 exit (1);
15560 fprintf (f, "%ld\n", i);
15562 else
15564 unsigned long i = ulongval ();
15565 if (i != ((long) (sizeof (int))))
15566 exit (1);
15567 fprintf (f, "%lu\n", i);
15569 exit (ferror (f) || fclose (f) != 0);
15572 return 0;
15574 _ACEOF
15575 rm -f conftest$ac_exeext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15577 (eval $ac_link) 2>&5
15578 ac_status=$?
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582 (eval $ac_try) 2>&5
15583 ac_status=$?
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); }; }; then
15586 ac_cv_sizeof_int=`cat conftest.val`
15587 else
15588 echo "$as_me: program exited with status $ac_status" >&5
15589 echo "$as_me: failed program was:" >&5
15590 sed 's/^/| /' conftest.$ac_ext >&5
15592 ( exit $ac_status )
15593 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15594 See \`config.log' for more details." >&5
15595 echo "$as_me: error: cannot compute sizeof (int), 77
15596 See \`config.log' for more details." >&2;}
15597 { (exit 1); exit 1; }; }
15599 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15602 rm -f conftest.val
15603 else
15604 ac_cv_sizeof_int=0
15607 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15608 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15609 cat >>confdefs.h <<_ACEOF
15610 #define SIZEOF_INT $ac_cv_sizeof_int
15611 _ACEOF
15614 echo "$as_me:$LINENO: checking for short" >&5
15615 echo $ECHO_N "checking for short... $ECHO_C" >&6
15616 if test "${ac_cv_type_short+set}" = set; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15618 else
15619 cat >conftest.$ac_ext <<_ACEOF
15620 /* confdefs.h. */
15621 _ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h. */
15625 $ac_includes_default
15627 main ()
15629 if ((short *) 0)
15630 return 0;
15631 if (sizeof (short))
15632 return 0;
15634 return 0;
15636 _ACEOF
15637 rm -f conftest.$ac_objext
15638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15639 (eval $ac_compile) 2>conftest.er1
15640 ac_status=$?
15641 grep -v '^ *+' conftest.er1 >conftest.err
15642 rm -f conftest.er1
15643 cat conftest.err >&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } &&
15646 { ac_try='test -z "$ac_c_werror_flag"
15647 || test ! -s conftest.err'
15648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15649 (eval $ac_try) 2>&5
15650 ac_status=$?
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; } &&
15653 { ac_try='test -s conftest.$ac_objext'
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15656 ac_status=$?
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; }; then
15659 ac_cv_type_short=yes
15660 else
15661 echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15664 ac_cv_type_short=no
15666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15668 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15669 echo "${ECHO_T}$ac_cv_type_short" >&6
15671 echo "$as_me:$LINENO: checking size of short" >&5
15672 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15673 if test "${ac_cv_sizeof_short+set}" = set; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15675 else
15676 if test "$ac_cv_type_short" = yes; then
15677 # The cast to unsigned long works around a bug in the HP C Compiler
15678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15680 # This bug is HP SR number 8606223364.
15681 if test "$cross_compiling" = yes; then
15682 # Depending upon the size, compute the lo and hi bounds.
15683 cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h. */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h. */
15689 $ac_includes_default
15691 main ()
15693 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15694 test_array [0] = 0
15697 return 0;
15699 _ACEOF
15700 rm -f conftest.$ac_objext
15701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15702 (eval $ac_compile) 2>conftest.er1
15703 ac_status=$?
15704 grep -v '^ *+' conftest.er1 >conftest.err
15705 rm -f conftest.er1
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try='test -z "$ac_c_werror_flag"
15710 || test ! -s conftest.err'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15713 ac_status=$?
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; } &&
15716 { ac_try='test -s conftest.$ac_objext'
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 ac_lo=0 ac_mid=0
15723 while :; do
15724 cat >conftest.$ac_ext <<_ACEOF
15725 /* confdefs.h. */
15726 _ACEOF
15727 cat confdefs.h >>conftest.$ac_ext
15728 cat >>conftest.$ac_ext <<_ACEOF
15729 /* end confdefs.h. */
15730 $ac_includes_default
15732 main ()
15734 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15735 test_array [0] = 0
15738 return 0;
15740 _ACEOF
15741 rm -f conftest.$ac_objext
15742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15743 (eval $ac_compile) 2>conftest.er1
15744 ac_status=$?
15745 grep -v '^ *+' conftest.er1 >conftest.err
15746 rm -f conftest.er1
15747 cat conftest.err >&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } &&
15750 { ac_try='test -z "$ac_c_werror_flag"
15751 || test ! -s conftest.err'
15752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753 (eval $ac_try) 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; } &&
15757 { ac_try='test -s conftest.$ac_objext'
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15760 ac_status=$?
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; }; then
15763 ac_hi=$ac_mid; break
15764 else
15765 echo "$as_me: failed program was:" >&5
15766 sed 's/^/| /' conftest.$ac_ext >&5
15768 ac_lo=`expr $ac_mid + 1`
15769 if test $ac_lo -le $ac_mid; then
15770 ac_lo= ac_hi=
15771 break
15773 ac_mid=`expr 2 '*' $ac_mid + 1`
15775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15776 done
15777 else
15778 echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15781 cat >conftest.$ac_ext <<_ACEOF
15782 /* confdefs.h. */
15783 _ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15787 $ac_includes_default
15789 main ()
15791 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15792 test_array [0] = 0
15795 return 0;
15797 _ACEOF
15798 rm -f conftest.$ac_objext
15799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15800 (eval $ac_compile) 2>conftest.er1
15801 ac_status=$?
15802 grep -v '^ *+' conftest.er1 >conftest.err
15803 rm -f conftest.er1
15804 cat conftest.err >&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); } &&
15807 { ac_try='test -z "$ac_c_werror_flag"
15808 || test ! -s conftest.err'
15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15811 ac_status=$?
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; } &&
15814 { ac_try='test -s conftest.$ac_objext'
15815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816 (eval $ac_try) 2>&5
15817 ac_status=$?
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); }; }; then
15820 ac_hi=-1 ac_mid=-1
15821 while :; do
15822 cat >conftest.$ac_ext <<_ACEOF
15823 /* confdefs.h. */
15824 _ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h. */
15828 $ac_includes_default
15830 main ()
15832 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15833 test_array [0] = 0
15836 return 0;
15838 _ACEOF
15839 rm -f conftest.$ac_objext
15840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15841 (eval $ac_compile) 2>conftest.er1
15842 ac_status=$?
15843 grep -v '^ *+' conftest.er1 >conftest.err
15844 rm -f conftest.er1
15845 cat conftest.err >&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); } &&
15848 { ac_try='test -z "$ac_c_werror_flag"
15849 || test ! -s conftest.err'
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; } &&
15855 { ac_try='test -s conftest.$ac_objext'
15856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857 (eval $ac_try) 2>&5
15858 ac_status=$?
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; }; then
15861 ac_lo=$ac_mid; break
15862 else
15863 echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15866 ac_hi=`expr '(' $ac_mid ')' - 1`
15867 if test $ac_mid -le $ac_hi; then
15868 ac_lo= ac_hi=
15869 break
15871 ac_mid=`expr 2 '*' $ac_mid`
15873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15874 done
15875 else
15876 echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15879 ac_lo= ac_hi=
15881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15884 # Binary search between lo and hi bounds.
15885 while test "x$ac_lo" != "x$ac_hi"; do
15886 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15887 cat >conftest.$ac_ext <<_ACEOF
15888 /* confdefs.h. */
15889 _ACEOF
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h. */
15893 $ac_includes_default
15895 main ()
15897 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15898 test_array [0] = 0
15901 return 0;
15903 _ACEOF
15904 rm -f conftest.$ac_objext
15905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15906 (eval $ac_compile) 2>conftest.er1
15907 ac_status=$?
15908 grep -v '^ *+' conftest.er1 >conftest.err
15909 rm -f conftest.er1
15910 cat conftest.err >&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } &&
15913 { ac_try='test -z "$ac_c_werror_flag"
15914 || test ! -s conftest.err'
15915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916 (eval $ac_try) 2>&5
15917 ac_status=$?
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; } &&
15920 { ac_try='test -s conftest.$ac_objext'
15921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922 (eval $ac_try) 2>&5
15923 ac_status=$?
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); }; }; then
15926 ac_hi=$ac_mid
15927 else
15928 echo "$as_me: failed program was:" >&5
15929 sed 's/^/| /' conftest.$ac_ext >&5
15931 ac_lo=`expr '(' $ac_mid ')' + 1`
15933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15934 done
15935 case $ac_lo in
15936 ?*) ac_cv_sizeof_short=$ac_lo;;
15937 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15938 See \`config.log' for more details." >&5
15939 echo "$as_me: error: cannot compute sizeof (short), 77
15940 See \`config.log' for more details." >&2;}
15941 { (exit 1); exit 1; }; } ;;
15942 esac
15943 else
15944 if test "$cross_compiling" = yes; then
15945 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15946 See \`config.log' for more details." >&5
15947 echo "$as_me: error: cannot run test program while cross compiling
15948 See \`config.log' for more details." >&2;}
15949 { (exit 1); exit 1; }; }
15950 else
15951 cat >conftest.$ac_ext <<_ACEOF
15952 /* confdefs.h. */
15953 _ACEOF
15954 cat confdefs.h >>conftest.$ac_ext
15955 cat >>conftest.$ac_ext <<_ACEOF
15956 /* end confdefs.h. */
15957 $ac_includes_default
15958 long longval () { return (long) (sizeof (short)); }
15959 unsigned long ulongval () { return (long) (sizeof (short)); }
15960 #include <stdio.h>
15961 #include <stdlib.h>
15963 main ()
15966 FILE *f = fopen ("conftest.val", "w");
15967 if (! f)
15968 exit (1);
15969 if (((long) (sizeof (short))) < 0)
15971 long i = longval ();
15972 if (i != ((long) (sizeof (short))))
15973 exit (1);
15974 fprintf (f, "%ld\n", i);
15976 else
15978 unsigned long i = ulongval ();
15979 if (i != ((long) (sizeof (short))))
15980 exit (1);
15981 fprintf (f, "%lu\n", i);
15983 exit (ferror (f) || fclose (f) != 0);
15986 return 0;
15988 _ACEOF
15989 rm -f conftest$ac_exeext
15990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15991 (eval $ac_link) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15997 ac_status=$?
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; }; then
16000 ac_cv_sizeof_short=`cat conftest.val`
16001 else
16002 echo "$as_me: program exited with status $ac_status" >&5
16003 echo "$as_me: failed program was:" >&5
16004 sed 's/^/| /' conftest.$ac_ext >&5
16006 ( exit $ac_status )
16007 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16008 See \`config.log' for more details." >&5
16009 echo "$as_me: error: cannot compute sizeof (short), 77
16010 See \`config.log' for more details." >&2;}
16011 { (exit 1); exit 1; }; }
16013 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16016 rm -f conftest.val
16017 else
16018 ac_cv_sizeof_short=0
16021 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16022 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16023 cat >>confdefs.h <<_ACEOF
16024 #define SIZEOF_SHORT $ac_cv_sizeof_short
16025 _ACEOF
16028 echo "$as_me:$LINENO: checking for char" >&5
16029 echo $ECHO_N "checking for char... $ECHO_C" >&6
16030 if test "${ac_cv_type_char+set}" = set; then
16031 echo $ECHO_N "(cached) $ECHO_C" >&6
16032 else
16033 cat >conftest.$ac_ext <<_ACEOF
16034 /* confdefs.h. */
16035 _ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h. */
16039 $ac_includes_default
16041 main ()
16043 if ((char *) 0)
16044 return 0;
16045 if (sizeof (char))
16046 return 0;
16048 return 0;
16050 _ACEOF
16051 rm -f conftest.$ac_objext
16052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16053 (eval $ac_compile) 2>conftest.er1
16054 ac_status=$?
16055 grep -v '^ *+' conftest.er1 >conftest.err
16056 rm -f conftest.er1
16057 cat conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } &&
16060 { ac_try='test -z "$ac_c_werror_flag"
16061 || test ! -s conftest.err'
16062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16064 ac_status=$?
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; } &&
16067 { ac_try='test -s conftest.$ac_objext'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16070 ac_status=$?
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
16073 ac_cv_type_char=yes
16074 else
16075 echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16078 ac_cv_type_char=no
16080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16082 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16083 echo "${ECHO_T}$ac_cv_type_char" >&6
16085 echo "$as_me:$LINENO: checking size of char" >&5
16086 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16087 if test "${ac_cv_sizeof_char+set}" = set; then
16088 echo $ECHO_N "(cached) $ECHO_C" >&6
16089 else
16090 if test "$ac_cv_type_char" = yes; then
16091 # The cast to unsigned long works around a bug in the HP C Compiler
16092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16094 # This bug is HP SR number 8606223364.
16095 if test "$cross_compiling" = yes; then
16096 # Depending upon the size, compute the lo and hi bounds.
16097 cat >conftest.$ac_ext <<_ACEOF
16098 /* confdefs.h. */
16099 _ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16103 $ac_includes_default
16105 main ()
16107 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16108 test_array [0] = 0
16111 return 0;
16113 _ACEOF
16114 rm -f conftest.$ac_objext
16115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16116 (eval $ac_compile) 2>conftest.er1
16117 ac_status=$?
16118 grep -v '^ *+' conftest.er1 >conftest.err
16119 rm -f conftest.er1
16120 cat conftest.err >&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } &&
16123 { ac_try='test -z "$ac_c_werror_flag"
16124 || test ! -s conftest.err'
16125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126 (eval $ac_try) 2>&5
16127 ac_status=$?
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; } &&
16130 { ac_try='test -s conftest.$ac_objext'
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16133 ac_status=$?
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; }; then
16136 ac_lo=0 ac_mid=0
16137 while :; do
16138 cat >conftest.$ac_ext <<_ACEOF
16139 /* confdefs.h. */
16140 _ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h. */
16144 $ac_includes_default
16146 main ()
16148 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16149 test_array [0] = 0
16152 return 0;
16154 _ACEOF
16155 rm -f conftest.$ac_objext
16156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16157 (eval $ac_compile) 2>conftest.er1
16158 ac_status=$?
16159 grep -v '^ *+' conftest.er1 >conftest.err
16160 rm -f conftest.er1
16161 cat conftest.err >&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); } &&
16164 { ac_try='test -z "$ac_c_werror_flag"
16165 || test ! -s conftest.err'
16166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167 (eval $ac_try) 2>&5
16168 ac_status=$?
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; } &&
16171 { ac_try='test -s conftest.$ac_objext'
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; }; then
16177 ac_hi=$ac_mid; break
16178 else
16179 echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.$ac_ext >&5
16182 ac_lo=`expr $ac_mid + 1`
16183 if test $ac_lo -le $ac_mid; then
16184 ac_lo= ac_hi=
16185 break
16187 ac_mid=`expr 2 '*' $ac_mid + 1`
16189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16190 done
16191 else
16192 echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16195 cat >conftest.$ac_ext <<_ACEOF
16196 /* confdefs.h. */
16197 _ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16201 $ac_includes_default
16203 main ()
16205 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16206 test_array [0] = 0
16209 return 0;
16211 _ACEOF
16212 rm -f conftest.$ac_objext
16213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16214 (eval $ac_compile) 2>conftest.er1
16215 ac_status=$?
16216 grep -v '^ *+' conftest.er1 >conftest.err
16217 rm -f conftest.er1
16218 cat conftest.err >&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } &&
16221 { ac_try='test -z "$ac_c_werror_flag"
16222 || test ! -s conftest.err'
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; } &&
16228 { ac_try='test -s conftest.$ac_objext'
16229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230 (eval $ac_try) 2>&5
16231 ac_status=$?
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; }; then
16234 ac_hi=-1 ac_mid=-1
16235 while :; do
16236 cat >conftest.$ac_ext <<_ACEOF
16237 /* confdefs.h. */
16238 _ACEOF
16239 cat confdefs.h >>conftest.$ac_ext
16240 cat >>conftest.$ac_ext <<_ACEOF
16241 /* end confdefs.h. */
16242 $ac_includes_default
16244 main ()
16246 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16247 test_array [0] = 0
16250 return 0;
16252 _ACEOF
16253 rm -f conftest.$ac_objext
16254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16255 (eval $ac_compile) 2>conftest.er1
16256 ac_status=$?
16257 grep -v '^ *+' conftest.er1 >conftest.err
16258 rm -f conftest.er1
16259 cat conftest.err >&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } &&
16262 { ac_try='test -z "$ac_c_werror_flag"
16263 || test ! -s conftest.err'
16264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16266 ac_status=$?
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; } &&
16269 { ac_try='test -s conftest.$ac_objext'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 ac_lo=$ac_mid; break
16276 else
16277 echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16280 ac_hi=`expr '(' $ac_mid ')' - 1`
16281 if test $ac_mid -le $ac_hi; then
16282 ac_lo= ac_hi=
16283 break
16285 ac_mid=`expr 2 '*' $ac_mid`
16287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16288 done
16289 else
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16293 ac_lo= ac_hi=
16295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16298 # Binary search between lo and hi bounds.
16299 while test "x$ac_lo" != "x$ac_hi"; do
16300 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16301 cat >conftest.$ac_ext <<_ACEOF
16302 /* confdefs.h. */
16303 _ACEOF
16304 cat confdefs.h >>conftest.$ac_ext
16305 cat >>conftest.$ac_ext <<_ACEOF
16306 /* end confdefs.h. */
16307 $ac_includes_default
16309 main ()
16311 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16312 test_array [0] = 0
16315 return 0;
16317 _ACEOF
16318 rm -f conftest.$ac_objext
16319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16320 (eval $ac_compile) 2>conftest.er1
16321 ac_status=$?
16322 grep -v '^ *+' conftest.er1 >conftest.err
16323 rm -f conftest.er1
16324 cat conftest.err >&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } &&
16327 { ac_try='test -z "$ac_c_werror_flag"
16328 || test ! -s conftest.err'
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; } &&
16334 { ac_try='test -s conftest.$ac_objext'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16337 ac_status=$?
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; }; then
16340 ac_hi=$ac_mid
16341 else
16342 echo "$as_me: failed program was:" >&5
16343 sed 's/^/| /' conftest.$ac_ext >&5
16345 ac_lo=`expr '(' $ac_mid ')' + 1`
16347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16348 done
16349 case $ac_lo in
16350 ?*) ac_cv_sizeof_char=$ac_lo;;
16351 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16352 See \`config.log' for more details." >&5
16353 echo "$as_me: error: cannot compute sizeof (char), 77
16354 See \`config.log' for more details." >&2;}
16355 { (exit 1); exit 1; }; } ;;
16356 esac
16357 else
16358 if test "$cross_compiling" = yes; then
16359 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16360 See \`config.log' for more details." >&5
16361 echo "$as_me: error: cannot run test program while cross compiling
16362 See \`config.log' for more details." >&2;}
16363 { (exit 1); exit 1; }; }
16364 else
16365 cat >conftest.$ac_ext <<_ACEOF
16366 /* confdefs.h. */
16367 _ACEOF
16368 cat confdefs.h >>conftest.$ac_ext
16369 cat >>conftest.$ac_ext <<_ACEOF
16370 /* end confdefs.h. */
16371 $ac_includes_default
16372 long longval () { return (long) (sizeof (char)); }
16373 unsigned long ulongval () { return (long) (sizeof (char)); }
16374 #include <stdio.h>
16375 #include <stdlib.h>
16377 main ()
16380 FILE *f = fopen ("conftest.val", "w");
16381 if (! f)
16382 exit (1);
16383 if (((long) (sizeof (char))) < 0)
16385 long i = longval ();
16386 if (i != ((long) (sizeof (char))))
16387 exit (1);
16388 fprintf (f, "%ld\n", i);
16390 else
16392 unsigned long i = ulongval ();
16393 if (i != ((long) (sizeof (char))))
16394 exit (1);
16395 fprintf (f, "%lu\n", i);
16397 exit (ferror (f) || fclose (f) != 0);
16400 return 0;
16402 _ACEOF
16403 rm -f conftest$ac_exeext
16404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16405 (eval $ac_link) 2>&5
16406 ac_status=$?
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410 (eval $ac_try) 2>&5
16411 ac_status=$?
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; }; then
16414 ac_cv_sizeof_char=`cat conftest.val`
16415 else
16416 echo "$as_me: program exited with status $ac_status" >&5
16417 echo "$as_me: failed program was:" >&5
16418 sed 's/^/| /' conftest.$ac_ext >&5
16420 ( exit $ac_status )
16421 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16422 See \`config.log' for more details." >&5
16423 echo "$as_me: error: cannot compute sizeof (char), 77
16424 See \`config.log' for more details." >&2;}
16425 { (exit 1); exit 1; }; }
16427 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16430 rm -f conftest.val
16431 else
16432 ac_cv_sizeof_char=0
16435 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16436 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16437 cat >>confdefs.h <<_ACEOF
16438 #define SIZEOF_CHAR $ac_cv_sizeof_char
16439 _ACEOF
16443 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16444 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
16445 case "$ac_cv_sizeof_char" in
16446 1) acx_cv_type_int8_t=char ;;
16447 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16448 echo "$as_me: error: no 8-bit type" >&2;}
16449 { (exit please report a bug); exit please report a bug; }; }
16450 esac
16451 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16452 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
16454 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16455 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
16456 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16457 2:*) acx_cv_type_int16_t=int ;;
16458 *:2) acx_cv_type_int16_t=short ;;
16459 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16460 echo "$as_me: error: no 16-bit type" >&2;}
16461 { (exit please report a bug); exit please report a bug; }; }
16462 esac
16463 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16464 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16466 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16467 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16468 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16469 4:*) acx_cv_type_int32_t=int ;;
16470 *:4) acx_cv_type_int32_t=long ;;
16471 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16472 echo "$as_me: error: no 32-bit type" >&2;}
16473 { (exit please report a bug); exit please report a bug; }; }
16474 esac
16475 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16476 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16479 # These tests are here to make the output prettier
16481 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16482 case "$ac_cv_sizeof_long" in
16483 8) acx_cv_type_int64_t=long ;;
16484 esac
16485 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16486 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16487 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16488 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16491 # Now we can use the above types
16493 if test "$ac_cv_type_uintptr_t" != yes; then
16494 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16495 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16496 case $ac_cv_sizeof_void_p in
16497 2) acx_cv_type_intptr_t=int16_t ;;
16498 4) acx_cv_type_intptr_t=int32_t ;;
16499 8) acx_cv_type_intptr_t=int64_t ;;
16500 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16501 echo "$as_me: error: no equivalent for intptr_t" >&2;}
16502 { (exit please report a bug); exit please report a bug; }; }
16503 esac
16504 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16505 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16508 # ----------------- done all checks, emit header -------------
16509 ac_config_commands="$ac_config_commands gstdint.h"
16514 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16515 # In case the pthread.h system header is not found, this test will fail.
16516 XPCFLAGS=""
16517 CFLAGS="$CFLAGS -pthread"
16518 cat >conftest.$ac_ext <<_ACEOF
16519 /* confdefs.h. */
16520 _ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 #include <pthread.h>
16525 void *g(void *d) { return NULL; }
16527 main ()
16529 pthread_t t; pthread_create(&t,NULL,g,NULL);
16531 return 0;
16533 _ACEOF
16534 rm -f conftest.$ac_objext conftest$ac_exeext
16535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16536 (eval $ac_link) 2>conftest.er1
16537 ac_status=$?
16538 grep -v '^ *+' conftest.er1 >conftest.err
16539 rm -f conftest.er1
16540 cat conftest.err >&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } &&
16543 { ac_try='test -z "$ac_c_werror_flag"
16544 || test ! -s conftest.err'
16545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546 (eval $ac_try) 2>&5
16547 ac_status=$?
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; } &&
16550 { ac_try='test -s conftest$ac_exeext'
16551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16552 (eval $ac_try) 2>&5
16553 ac_status=$?
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; }; then
16556 XPCFLAGS=" -Wc,-pthread"
16557 else
16558 echo "$as_me: failed program was:" >&5
16559 sed 's/^/| /' conftest.$ac_ext >&5
16561 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16562 cat >conftest.$ac_ext <<_ACEOF
16563 /* confdefs.h. */
16564 _ACEOF
16565 cat confdefs.h >>conftest.$ac_ext
16566 cat >>conftest.$ac_ext <<_ACEOF
16567 /* end confdefs.h. */
16568 #include <pthread.h>
16569 void *g(void *d) { return NULL; }
16571 main ()
16573 pthread_t t; pthread_create(&t,NULL,g,NULL);
16575 return 0;
16577 _ACEOF
16578 rm -f conftest.$ac_objext conftest$ac_exeext
16579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16580 (eval $ac_link) 2>conftest.er1
16581 ac_status=$?
16582 grep -v '^ *+' conftest.er1 >conftest.err
16583 rm -f conftest.er1
16584 cat conftest.err >&5
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); } &&
16587 { ac_try='test -z "$ac_c_werror_flag"
16588 || test ! -s conftest.err'
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16591 ac_status=$?
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; } &&
16594 { ac_try='test -s conftest$ac_exeext'
16595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596 (eval $ac_try) 2>&5
16597 ac_status=$?
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; }; then
16601 else
16602 echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16605 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
16606 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
16607 { (exit 1); exit 1; }; }
16609 rm -f conftest.err conftest.$ac_objext \
16610 conftest$ac_exeext conftest.$ac_ext
16612 rm -f conftest.err conftest.$ac_objext \
16613 conftest$ac_exeext conftest.$ac_ext
16615 # Check for functions needed.
16618 for ac_func in getloadavg clock_gettime
16620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16621 echo "$as_me:$LINENO: checking for $ac_func" >&5
16622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16623 if eval "test \"\${$as_ac_var+set}\" = set"; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16625 else
16626 cat >conftest.$ac_ext <<_ACEOF
16627 /* confdefs.h. */
16628 _ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h. */
16632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16634 #define $ac_func innocuous_$ac_func
16636 /* System header to define __stub macros and hopefully few prototypes,
16637 which can conflict with char $ac_func (); below.
16638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16639 <limits.h> exists even on freestanding compilers. */
16641 #ifdef __STDC__
16642 # include <limits.h>
16643 #else
16644 # include <assert.h>
16645 #endif
16647 #undef $ac_func
16649 /* Override any gcc2 internal prototype to avoid an error. */
16650 #ifdef __cplusplus
16651 extern "C"
16653 #endif
16654 /* We use char because int might match the return type of a gcc2
16655 builtin and then its argument prototype would still apply. */
16656 char $ac_func ();
16657 /* The GNU C library defines this for functions which it implements
16658 to always fail with ENOSYS. Some functions are actually named
16659 something starting with __ and the normal name is an alias. */
16660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16661 choke me
16662 #else
16663 char (*f) () = $ac_func;
16664 #endif
16665 #ifdef __cplusplus
16667 #endif
16670 main ()
16672 return f != $ac_func;
16674 return 0;
16676 _ACEOF
16677 rm -f conftest.$ac_objext conftest$ac_exeext
16678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16679 (eval $ac_link) 2>conftest.er1
16680 ac_status=$?
16681 grep -v '^ *+' conftest.er1 >conftest.err
16682 rm -f conftest.er1
16683 cat conftest.err >&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); } &&
16686 { ac_try='test -z "$ac_c_werror_flag"
16687 || test ! -s conftest.err'
16688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16689 (eval $ac_try) 2>&5
16690 ac_status=$?
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); }; } &&
16693 { ac_try='test -s conftest$ac_exeext'
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16696 ac_status=$?
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; }; then
16699 eval "$as_ac_var=yes"
16700 else
16701 echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16704 eval "$as_ac_var=no"
16706 rm -f conftest.err conftest.$ac_objext \
16707 conftest$ac_exeext conftest.$ac_ext
16709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16711 if test `eval echo '${'$as_ac_var'}'` = yes; then
16712 cat >>confdefs.h <<_ACEOF
16713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16714 _ACEOF
16717 done
16720 # Check for broken semaphore implementation on darwin.
16721 # sem_init returns: sem_init error: Function not implemented.
16722 case "$host" in
16723 *-darwin*)
16725 cat >>confdefs.h <<\_ACEOF
16726 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16727 _ACEOF
16730 esac
16732 # Check whether --enable-linux-futex or --disable-linux-futex was given.
16733 if test "${enable_linux_futex+set}" = set; then
16734 enableval="$enable_linux_futex"
16736 case "$enableval" in
16737 yes|no|default) ;;
16738 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
16739 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
16740 { (exit 1); exit 1; }; } ;;
16741 esac
16743 else
16744 enable_linux_futex=default
16747 case "$target" in
16748 *-linux*)
16749 case "$enable_linux_futex" in
16750 default)
16751 # If headers don't have gettid/futex syscalls definition, then
16752 # default to no, otherwise there will be compile time failures.
16753 # Otherwise, default to yes. If we don't detect we are
16754 # compiled/linked against NPTL and not cross-compiling, check
16755 # if programs are run by default against NPTL and if not, issue
16756 # a warning.
16757 enable_linux_futex=no
16758 cat >conftest.$ac_ext <<_ACEOF
16759 /* confdefs.h. */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16764 #include <sys/syscall.h>
16765 int lk;
16767 main ()
16769 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16771 return 0;
16773 _ACEOF
16774 rm -f conftest.$ac_objext conftest$ac_exeext
16775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16776 (eval $ac_link) 2>conftest.er1
16777 ac_status=$?
16778 grep -v '^ *+' conftest.er1 >conftest.err
16779 rm -f conftest.er1
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } &&
16783 { ac_try='test -z "$ac_c_werror_flag"
16784 || test ! -s conftest.err'
16785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16786 (eval $ac_try) 2>&5
16787 ac_status=$?
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; } &&
16790 { ac_try='test -s conftest$ac_exeext'
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16793 ac_status=$?
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; }; then
16796 save_LIBS="$LIBS"
16797 LIBS="-lpthread $LIBS"
16798 cat >conftest.$ac_ext <<_ACEOF
16799 /* confdefs.h. */
16800 _ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16804 #ifndef _GNU_SOURCE
16805 #define _GNU_SOURCE 1
16806 #endif
16807 #include <pthread.h>
16808 pthread_t th; void *status;
16810 main ()
16812 pthread_tryjoin_np (th, &status);
16814 return 0;
16816 _ACEOF
16817 rm -f conftest.$ac_objext conftest$ac_exeext
16818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16819 (eval $ac_link) 2>conftest.er1
16820 ac_status=$?
16821 grep -v '^ *+' conftest.er1 >conftest.err
16822 rm -f conftest.er1
16823 cat conftest.err >&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); } &&
16826 { ac_try='test -z "$ac_c_werror_flag"
16827 || test ! -s conftest.err'
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try='test -s conftest$ac_exeext'
16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835 (eval $ac_try) 2>&5
16836 ac_status=$?
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
16839 enable_linux_futex=yes
16840 else
16841 echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16844 if test x$cross_compiling = xno; then
16845 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16846 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16847 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
16848 If so, please configure with --disable-linux-futex" >&5
16849 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16850 If so, please configure with --disable-linux-futex" >&2;}
16853 enable_linux_futex=yes
16855 rm -f conftest.err conftest.$ac_objext \
16856 conftest$ac_exeext conftest.$ac_ext
16857 LIBS="$save_LIBS"
16858 else
16859 echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16863 rm -f conftest.err conftest.$ac_objext \
16864 conftest$ac_exeext conftest.$ac_ext
16866 yes)
16867 cat >conftest.$ac_ext <<_ACEOF
16868 /* confdefs.h. */
16869 _ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h. */
16873 #include <sys/syscall.h>
16874 int lk;
16876 main ()
16878 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16880 return 0;
16882 _ACEOF
16883 rm -f conftest.$ac_objext conftest$ac_exeext
16884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16885 (eval $ac_link) 2>conftest.er1
16886 ac_status=$?
16887 grep -v '^ *+' conftest.er1 >conftest.err
16888 rm -f conftest.er1
16889 cat conftest.err >&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } &&
16892 { ac_try='test -z "$ac_c_werror_flag"
16893 || test ! -s conftest.err'
16894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895 (eval $ac_try) 2>&5
16896 ac_status=$?
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; } &&
16899 { ac_try='test -s conftest$ac_exeext'
16900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16901 (eval $ac_try) 2>&5
16902 ac_status=$?
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); }; }; then
16906 else
16907 echo "$as_me: failed program was:" >&5
16908 sed 's/^/| /' conftest.$ac_ext >&5
16910 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
16911 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
16912 { (exit 1); exit 1; }; }
16914 rm -f conftest.err conftest.$ac_objext \
16915 conftest$ac_exeext conftest.$ac_ext
16917 esac
16920 enable_linux_futex=no
16922 esac
16923 if test x$enable_linux_futex = xyes; then
16928 # Check for pthread_{,attr_}[sg]etaffinity_np.
16929 cat >conftest.$ac_ext <<_ACEOF
16930 /* confdefs.h. */
16931 _ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h. */
16935 #define _GNU_SOURCE
16936 #include <pthread.h>
16938 main ()
16940 cpu_set_t cpuset;
16941 pthread_attr_t attr;
16942 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16943 if (CPU_ISSET (0, &cpuset))
16944 CPU_SET (1, &cpuset);
16945 else
16946 CPU_ZERO (&cpuset);
16947 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16948 pthread_attr_init (&attr);
16949 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16950 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16952 return 0;
16954 _ACEOF
16955 rm -f conftest.$ac_objext conftest$ac_exeext
16956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16957 (eval $ac_link) 2>conftest.er1
16958 ac_status=$?
16959 grep -v '^ *+' conftest.er1 >conftest.err
16960 rm -f conftest.er1
16961 cat conftest.err >&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } &&
16964 { ac_try='test -z "$ac_c_werror_flag"
16965 || test ! -s conftest.err'
16966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16967 (eval $ac_try) 2>&5
16968 ac_status=$?
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); }; } &&
16971 { ac_try='test -s conftest$ac_exeext'
16972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973 (eval $ac_try) 2>&5
16974 ac_status=$?
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; }; then
16978 cat >>confdefs.h <<\_ACEOF
16979 #define HAVE_PTHREAD_AFFINITY_NP 1
16980 _ACEOF
16982 else
16983 echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.$ac_ext >&5
16987 rm -f conftest.err conftest.$ac_objext \
16988 conftest$ac_exeext conftest.$ac_ext
16990 # At least for glibc, clock_gettime is in librt. But don't pull that
16991 # in if it still doesn't give us the function we want.
16992 if test $ac_cv_func_clock_gettime = no; then
16993 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
16994 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
16995 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
16996 echo $ECHO_N "(cached) $ECHO_C" >&6
16997 else
16998 ac_check_lib_save_LIBS=$LIBS
16999 LIBS="-lrt $LIBS"
17000 cat >conftest.$ac_ext <<_ACEOF
17001 /* confdefs.h. */
17002 _ACEOF
17003 cat confdefs.h >>conftest.$ac_ext
17004 cat >>conftest.$ac_ext <<_ACEOF
17005 /* end confdefs.h. */
17007 /* Override any gcc2 internal prototype to avoid an error. */
17008 #ifdef __cplusplus
17009 extern "C"
17010 #endif
17011 /* We use char because int might match the return type of a gcc2
17012 builtin and then its argument prototype would still apply. */
17013 char clock_gettime ();
17015 main ()
17017 clock_gettime ();
17019 return 0;
17021 _ACEOF
17022 rm -f conftest.$ac_objext conftest$ac_exeext
17023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17024 (eval $ac_link) 2>conftest.er1
17025 ac_status=$?
17026 grep -v '^ *+' conftest.er1 >conftest.err
17027 rm -f conftest.er1
17028 cat conftest.err >&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); } &&
17031 { ac_try='test -z "$ac_c_werror_flag"
17032 || test ! -s conftest.err'
17033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034 (eval $ac_try) 2>&5
17035 ac_status=$?
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; } &&
17038 { ac_try='test -s conftest$ac_exeext'
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; }; then
17044 ac_cv_lib_rt_clock_gettime=yes
17045 else
17046 echo "$as_me: failed program was:" >&5
17047 sed 's/^/| /' conftest.$ac_ext >&5
17049 ac_cv_lib_rt_clock_gettime=no
17051 rm -f conftest.err conftest.$ac_objext \
17052 conftest$ac_exeext conftest.$ac_ext
17053 LIBS=$ac_check_lib_save_LIBS
17055 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
17056 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
17057 if test $ac_cv_lib_rt_clock_gettime = yes; then
17058 LIBS="-lrt $LIBS"
17060 cat >>confdefs.h <<\_ACEOF
17061 #define HAVE_CLOCK_GETTIME 1
17062 _ACEOF
17068 # See if we support thread-local storage.
17070 # Check whether --enable-tls or --disable-tls was given.
17071 if test "${enable_tls+set}" = set; then
17072 enableval="$enable_tls"
17074 case "$enableval" in
17075 yes|no) ;;
17076 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
17077 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
17078 { (exit 1); exit 1; }; } ;;
17079 esac
17081 else
17082 enable_tls=yes
17085 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
17086 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
17087 if test "${gcc_cv_have_tls+set}" = set; then
17088 echo $ECHO_N "(cached) $ECHO_C" >&6
17089 else
17091 if test "$cross_compiling" = yes; then
17092 cat >conftest.$ac_ext <<_ACEOF
17093 __thread int a; int b; int main() { return a = b; }
17094 _ACEOF
17095 rm -f conftest.$ac_objext conftest$ac_exeext
17096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17097 (eval $ac_link) 2>conftest.er1
17098 ac_status=$?
17099 grep -v '^ *+' conftest.er1 >conftest.err
17100 rm -f conftest.er1
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } &&
17104 { ac_try='test -z "$ac_c_werror_flag"
17105 || test ! -s conftest.err'
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; } &&
17111 { ac_try='test -s conftest$ac_exeext'
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17114 ac_status=$?
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 gcc_cv_have_tls=yes
17118 else
17119 echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17122 gcc_cv_have_tls=no
17124 rm -f conftest.err conftest.$ac_objext \
17125 conftest$ac_exeext conftest.$ac_ext
17128 else
17129 cat >conftest.$ac_ext <<_ACEOF
17130 __thread int a; int b; int main() { return a = b; }
17131 _ACEOF
17132 rm -f conftest$ac_exeext
17133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17134 (eval $ac_link) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139 (eval $ac_try) 2>&5
17140 ac_status=$?
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; }; then
17143 chktls_save_LDFLAGS="$LDFLAGS"
17144 LDFLAGS="-static $LDFLAGS"
17145 cat >conftest.$ac_ext <<_ACEOF
17146 int main() { return 0; }
17147 _ACEOF
17148 rm -f conftest.$ac_objext conftest$ac_exeext
17149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17150 (eval $ac_link) 2>conftest.er1
17151 ac_status=$?
17152 grep -v '^ *+' conftest.er1 >conftest.err
17153 rm -f conftest.er1
17154 cat conftest.err >&5
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); } &&
17157 { ac_try='test -z "$ac_c_werror_flag"
17158 || test ! -s conftest.err'
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; } &&
17164 { ac_try='test -s conftest$ac_exeext'
17165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166 (eval $ac_try) 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; }; then
17170 if test "$cross_compiling" = yes; then
17171 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17172 See \`config.log' for more details." >&5
17173 echo "$as_me: error: cannot run test program while cross compiling
17174 See \`config.log' for more details." >&2;}
17175 { (exit 1); exit 1; }; }
17176 else
17177 cat >conftest.$ac_ext <<_ACEOF
17178 __thread int a; int b; int main() { return a = b; }
17179 _ACEOF
17180 rm -f conftest$ac_exeext
17181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17182 (eval $ac_link) 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187 (eval $ac_try) 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; }; then
17191 gcc_cv_have_tls=yes
17192 else
17193 echo "$as_me: program exited with status $ac_status" >&5
17194 echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17197 ( exit $ac_status )
17198 gcc_cv_have_tls=no
17200 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17202 else
17203 echo "$as_me: failed program was:" >&5
17204 sed 's/^/| /' conftest.$ac_ext >&5
17206 gcc_cv_have_tls=yes
17208 rm -f conftest.err conftest.$ac_objext \
17209 conftest$ac_exeext conftest.$ac_ext
17210 LDFLAGS="$chktls_save_LDFLAGS"
17211 if test $gcc_cv_have_tls = yes; then
17212 chktls_save_CFLAGS="$CFLAGS"
17213 thread_CFLAGS=failed
17214 for flag in '' '-pthread' '-lpthread'; do
17215 CFLAGS="$flag $chktls_save_CFLAGS"
17216 cat >conftest.$ac_ext <<_ACEOF
17217 /* confdefs.h. */
17218 _ACEOF
17219 cat confdefs.h >>conftest.$ac_ext
17220 cat >>conftest.$ac_ext <<_ACEOF
17221 /* end confdefs.h. */
17222 #include <pthread.h>
17223 void *g(void *d) { return NULL; }
17225 main ()
17227 pthread_t t; pthread_create(&t,NULL,g,NULL);
17229 return 0;
17231 _ACEOF
17232 rm -f conftest.$ac_objext conftest$ac_exeext
17233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17234 (eval $ac_link) 2>conftest.er1
17235 ac_status=$?
17236 grep -v '^ *+' conftest.er1 >conftest.err
17237 rm -f conftest.er1
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } &&
17241 { ac_try='test -z "$ac_c_werror_flag"
17242 || test ! -s conftest.err'
17243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17244 (eval $ac_try) 2>&5
17245 ac_status=$?
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); }; } &&
17248 { ac_try='test -s conftest$ac_exeext'
17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250 (eval $ac_try) 2>&5
17251 ac_status=$?
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; }; then
17254 thread_CFLAGS="$flag"
17255 else
17256 echo "$as_me: failed program was:" >&5
17257 sed 's/^/| /' conftest.$ac_ext >&5
17260 rm -f conftest.err conftest.$ac_objext \
17261 conftest$ac_exeext conftest.$ac_ext
17262 if test "X$thread_CFLAGS" != Xfailed; then
17263 break
17265 done
17266 CFLAGS="$chktls_save_CFLAGS"
17267 if test "X$thread_CFLAGS" != Xfailed; then
17268 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17269 if test "$cross_compiling" = yes; then
17270 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17271 See \`config.log' for more details." >&5
17272 echo "$as_me: error: cannot run test program while cross compiling
17273 See \`config.log' for more details." >&2;}
17274 { (exit 1); exit 1; }; }
17275 else
17276 cat >conftest.$ac_ext <<_ACEOF
17277 /* confdefs.h. */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17282 #include <pthread.h>
17283 __thread int a;
17284 static int *a_in_other_thread;
17285 static void *
17286 thread_func (void *arg)
17288 a_in_other_thread = &a;
17289 return (void *)0;
17292 main ()
17294 pthread_t thread;
17295 void *thread_retval;
17296 int *a_in_main_thread;
17297 if (pthread_create (&thread, (pthread_attr_t *)0,
17298 thread_func, (void *)0))
17299 return 0;
17300 a_in_main_thread = &a;
17301 if (pthread_join (thread, &thread_retval))
17302 return 0;
17303 return (a_in_other_thread == a_in_main_thread);
17305 return 0;
17307 _ACEOF
17308 rm -f conftest$ac_exeext
17309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17310 (eval $ac_link) 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17316 ac_status=$?
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; }; then
17319 gcc_cv_have_tls=yes
17320 else
17321 echo "$as_me: program exited with status $ac_status" >&5
17322 echo "$as_me: failed program was:" >&5
17323 sed 's/^/| /' conftest.$ac_ext >&5
17325 ( exit $ac_status )
17326 gcc_cv_have_tls=no
17328 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17330 CFLAGS="$chktls_save_CFLAGS"
17333 else
17334 echo "$as_me: program exited with status $ac_status" >&5
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17338 ( exit $ac_status )
17339 gcc_cv_have_tls=no
17341 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17344 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
17345 echo "${ECHO_T}$gcc_cv_have_tls" >&6
17346 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
17348 cat >>confdefs.h <<\_ACEOF
17349 #define HAVE_TLS 1
17350 _ACEOF
17354 # See what sort of export controls are availible.
17356 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
17357 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
17358 if test "${have_attribute_visibility+set}" = set; then
17359 echo $ECHO_N "(cached) $ECHO_C" >&6
17360 else
17362 save_CFLAGS="$CFLAGS"
17363 CFLAGS="$CFLAGS -Werror"
17364 cat >conftest.$ac_ext <<_ACEOF
17365 /* confdefs.h. */
17366 _ACEOF
17367 cat confdefs.h >>conftest.$ac_ext
17368 cat >>conftest.$ac_ext <<_ACEOF
17369 /* end confdefs.h. */
17370 void __attribute__((visibility("hidden"))) foo(void) { }
17372 main ()
17376 return 0;
17378 _ACEOF
17379 rm -f conftest.$ac_objext
17380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17381 (eval $ac_compile) 2>conftest.er1
17382 ac_status=$?
17383 grep -v '^ *+' conftest.er1 >conftest.err
17384 rm -f conftest.er1
17385 cat conftest.err >&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); } &&
17388 { ac_try='test -z "$ac_c_werror_flag"
17389 || test ! -s conftest.err'
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; } &&
17395 { ac_try='test -s conftest.$ac_objext'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; }; then
17401 have_attribute_visibility=yes
17402 else
17403 echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17406 have_attribute_visibility=no
17408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17409 CFLAGS="$save_CFLAGS"
17411 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
17412 echo "${ECHO_T}$have_attribute_visibility" >&6
17413 if test $have_attribute_visibility = yes; then
17415 cat >>confdefs.h <<\_ACEOF
17416 #define HAVE_ATTRIBUTE_VISIBILITY 1
17417 _ACEOF
17421 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
17422 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
17423 if test "${have_attribute_dllexport+set}" = set; then
17424 echo $ECHO_N "(cached) $ECHO_C" >&6
17425 else
17427 save_CFLAGS="$CFLAGS"
17428 CFLAGS="$CFLAGS -Werror"
17429 cat >conftest.$ac_ext <<_ACEOF
17430 /* confdefs.h. */
17431 _ACEOF
17432 cat confdefs.h >>conftest.$ac_ext
17433 cat >>conftest.$ac_ext <<_ACEOF
17434 /* end confdefs.h. */
17435 void __attribute__((dllexport)) foo(void) { }
17437 main ()
17441 return 0;
17443 _ACEOF
17444 rm -f conftest.$ac_objext
17445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17446 (eval $ac_compile) 2>conftest.er1
17447 ac_status=$?
17448 grep -v '^ *+' conftest.er1 >conftest.err
17449 rm -f conftest.er1
17450 cat conftest.err >&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } &&
17453 { ac_try='test -z "$ac_c_werror_flag"
17454 || test ! -s conftest.err'
17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456 (eval $ac_try) 2>&5
17457 ac_status=$?
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; } &&
17460 { ac_try='test -s conftest.$ac_objext'
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17463 ac_status=$?
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; }; then
17466 have_attribute_dllexport=yes
17467 else
17468 echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17471 have_attribute_dllexport=no
17473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17474 CFLAGS="$save_CFLAGS"
17476 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
17477 echo "${ECHO_T}$have_attribute_dllexport" >&6
17478 if test $have_attribute_dllexport = yes; then
17480 cat >>confdefs.h <<\_ACEOF
17481 #define HAVE_ATTRIBUTE_DLLEXPORT 1
17482 _ACEOF
17486 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
17487 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
17488 if test "${have_attribute_alias+set}" = set; then
17489 echo $ECHO_N "(cached) $ECHO_C" >&6
17490 else
17492 cat >conftest.$ac_ext <<_ACEOF
17493 /* confdefs.h. */
17494 _ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17499 void foo(void) { }
17500 extern void bar(void) __attribute__((alias("foo")));
17502 main ()
17504 bar();
17506 return 0;
17508 _ACEOF
17509 rm -f conftest.$ac_objext conftest$ac_exeext
17510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17511 (eval $ac_link) 2>conftest.er1
17512 ac_status=$?
17513 grep -v '^ *+' conftest.er1 >conftest.err
17514 rm -f conftest.er1
17515 cat conftest.err >&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } &&
17518 { ac_try='test -z "$ac_c_werror_flag"
17519 || test ! -s conftest.err'
17520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17521 (eval $ac_try) 2>&5
17522 ac_status=$?
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); }; } &&
17525 { ac_try='test -s conftest$ac_exeext'
17526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17527 (eval $ac_try) 2>&5
17528 ac_status=$?
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); }; }; then
17531 have_attribute_alias=yes
17532 else
17533 echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17536 have_attribute_alias=no
17538 rm -f conftest.err conftest.$ac_objext \
17539 conftest$ac_exeext conftest.$ac_ext
17541 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
17542 echo "${ECHO_T}$have_attribute_alias" >&6
17543 if test $have_attribute_alias = yes; then
17545 cat >>confdefs.h <<\_ACEOF
17546 #define HAVE_ATTRIBUTE_ALIAS 1
17547 _ACEOF
17552 # Check whether --with-gnu-ld or --without-gnu-ld was given.
17553 if test "${with_gnu_ld+set}" = set; then
17554 withval="$with_gnu_ld"
17555 test "$withval" = no || with_gnu_ld=yes
17556 else
17557 with_gnu_ld=no
17559 ac_prog=ld
17560 if test "$GCC" = yes; then
17561 # Check if gcc -print-prog-name=ld gives a path.
17562 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17563 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17564 case $host in
17565 *-*-mingw*)
17566 # gcc leaves a trailing carriage return which upsets mingw
17567 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17569 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17570 esac
17571 case $ac_prog in
17572 # Accept absolute paths.
17573 [\\/]* | ?:[\\/]*)
17574 re_direlt='/[^/][^/]*/\.\./'
17575 # Canonicalize the pathname of ld
17576 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17577 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17578 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17579 done
17580 test -z "$LD" && LD="$ac_prog"
17583 # If it fails, then pretend we aren't using GCC.
17584 ac_prog=ld
17587 # If it is relative, then search for the first ld in PATH.
17588 with_gnu_ld=unknown
17590 esac
17591 elif test "$with_gnu_ld" = yes; then
17592 echo "$as_me:$LINENO: checking for GNU ld" >&5
17593 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17594 else
17595 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17596 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17598 if test "${lt_cv_path_LD+set}" = set; then
17599 echo $ECHO_N "(cached) $ECHO_C" >&6
17600 else
17601 if test -z "$LD"; then
17602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17603 for ac_dir in $PATH; do
17604 IFS="$lt_save_ifs"
17605 test -z "$ac_dir" && ac_dir=.
17606 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17607 lt_cv_path_LD="$ac_dir/$ac_prog"
17608 # Check to see if the program is GNU ld. I'd rather use --version,
17609 # but apparently some variants of GNU ld only accept -v.
17610 # Break only if it was the GNU/non-GNU ld that we prefer.
17611 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17612 *GNU* | *'with BFD'*)
17613 test "$with_gnu_ld" != no && break
17616 test "$with_gnu_ld" != yes && break
17618 esac
17620 done
17621 IFS="$lt_save_ifs"
17622 else
17623 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17627 LD="$lt_cv_path_LD"
17628 if test -n "$LD"; then
17629 echo "$as_me:$LINENO: result: $LD" >&5
17630 echo "${ECHO_T}$LD" >&6
17631 else
17632 echo "$as_me:$LINENO: result: no" >&5
17633 echo "${ECHO_T}no" >&6
17635 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17636 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17637 { (exit 1); exit 1; }; }
17638 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17639 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17640 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17641 echo $ECHO_N "(cached) $ECHO_C" >&6
17642 else
17643 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17644 case `$LD -v 2>&1 </dev/null` in
17645 *GNU* | *'with BFD'*)
17646 lt_cv_prog_gnu_ld=yes
17649 lt_cv_prog_gnu_ld=no
17651 esac
17653 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17654 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17655 with_gnu_ld=$lt_cv_prog_gnu_ld
17663 # If we're not using GNU ld, then there's no point in even trying these
17664 # tests. Check for that first. We should have already tested for gld
17665 # by now (in libtool), but require it now just to be safe...
17666 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17667 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17671 # The name set by libtool depends on the version of libtool. Shame on us
17672 # for depending on an impl detail, but c'est la vie. Older versions used
17673 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17674 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17675 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17676 # set (hence we're using an older libtool), then set it.
17677 if test x${with_gnu_ld+set} != xset; then
17678 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17679 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17680 with_gnu_ld=no
17681 else
17682 with_gnu_ld=$ac_cv_prog_gnu_ld
17686 # Start by getting the version number. I think the libtool test already
17687 # does some of this, but throws away the result.
17689 ldver=`$LD --version 2>/dev/null | head -1 | \
17690 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
17692 libgomp_gnu_ld_version=`echo $ldver | \
17693 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17695 # Set --gc-sections.
17696 if test "$with_gnu_ld" = "notbroken"; then
17697 # GNU ld it is! Joy and bunny rabbits!
17699 # All these tests are for C++; save the language and the compiler flags.
17700 # Need to do this so that g++ won't try to link in libstdc++
17701 ac_test_CFLAGS="${CFLAGS+set}"
17702 ac_save_CFLAGS="$CFLAGS"
17703 CFLAGS='-x c++ -Wl,--gc-sections'
17705 # Check for -Wl,--gc-sections
17706 # XXX This test is broken at the moment, as symbols required for linking
17707 # are now in libsupc++ (not built yet). In addition, this test has
17708 # cored on solaris in the past. In addition, --gc-sections doesn't
17709 # really work at the moment (keeps on discarding used sections, first
17710 # .eh_frame and now some of the glibc sections for iconv).
17711 # Bzzzzt. Thanks for playing, maybe next time.
17712 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
17713 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
17714 if test "$cross_compiling" = yes; then
17715 ac_sectionLDflags=yes
17716 else
17717 cat >conftest.$ac_ext <<_ACEOF
17718 /* confdefs.h. */
17719 _ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h. */
17724 int main(void)
17726 try { throw 1; }
17727 catch (...) { };
17728 return 0;
17731 _ACEOF
17732 rm -f conftest$ac_exeext
17733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17734 (eval $ac_link) 2>&5
17735 ac_status=$?
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739 (eval $ac_try) 2>&5
17740 ac_status=$?
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; }; then
17743 ac_sectionLDflags=yes
17744 else
17745 echo "$as_me: program exited with status $ac_status" >&5
17746 echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.$ac_ext >&5
17749 ( exit $ac_status )
17750 ac_sectionLDflags=no
17752 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17754 if test "$ac_test_CFLAGS" = set; then
17755 CFLAGS="$ac_save_CFLAGS"
17756 else
17757 # this is the suspicious part
17758 CFLAGS=''
17760 if test "$ac_sectionLDflags" = "yes"; then
17761 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17763 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
17764 echo "${ECHO_T}$ac_sectionLDflags" >&6
17767 # Set linker optimization flags.
17768 if test x"$with_gnu_ld" = x"yes"; then
17769 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17777 # Check whether --enable-symvers or --disable-symvers was given.
17778 if test "${enable_symvers+set}" = set; then
17779 enableval="$enable_symvers"
17781 case "$enableval" in
17782 yes|no|gnu) ;;
17783 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
17784 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
17785 { (exit 1); exit 1; }; } ;;
17786 esac
17788 else
17789 enable_symvers=yes
17793 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
17794 # don't know enough about $LD to do tricks...
17796 # FIXME The following test is too strict, in theory.
17797 if test $enable_shared = no ||
17798 test "x$LD" = x ||
17799 test x$libgomp_gnu_ld_version = x; then
17800 enable_symvers=no
17803 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17804 if test $enable_symvers != no; then
17805 echo "$as_me:$LINENO: checking for shared libgcc" >&5
17806 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
17807 ac_save_CFLAGS="$CFLAGS"
17808 CFLAGS=' -lgcc_s'
17809 cat >conftest.$ac_ext <<_ACEOF
17810 /* confdefs.h. */
17811 _ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h. */
17817 main ()
17819 return 0;
17821 return 0;
17823 _ACEOF
17824 rm -f conftest.$ac_objext conftest$ac_exeext
17825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17826 (eval $ac_link) 2>conftest.er1
17827 ac_status=$?
17828 grep -v '^ *+' conftest.er1 >conftest.err
17829 rm -f conftest.er1
17830 cat conftest.err >&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } &&
17833 { ac_try='test -z "$ac_c_werror_flag"
17834 || test ! -s conftest.err'
17835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17836 (eval $ac_try) 2>&5
17837 ac_status=$?
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; } &&
17840 { ac_try='test -s conftest$ac_exeext'
17841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17842 (eval $ac_try) 2>&5
17843 ac_status=$?
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); }; }; then
17846 libgomp_shared_libgcc=yes
17847 else
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17851 libgomp_shared_libgcc=no
17853 rm -f conftest.err conftest.$ac_objext \
17854 conftest$ac_exeext conftest.$ac_ext
17855 CFLAGS="$ac_save_CFLAGS"
17856 if test $libgomp_shared_libgcc = no; then
17857 cat > conftest.c <<EOF
17858 int main (void) { return 0; }
17860 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17861 -shared -shared-libgcc -o conftest.so \
17862 conftest.c -v 2>&1 >/dev/null \
17863 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17864 rm -f conftest.c conftest.so
17865 if test x${libgomp_libgcc_s_suffix+set} = xset; then
17866 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
17867 cat >conftest.$ac_ext <<_ACEOF
17868 /* confdefs.h. */
17869 _ACEOF
17870 cat confdefs.h >>conftest.$ac_ext
17871 cat >>conftest.$ac_ext <<_ACEOF
17872 /* end confdefs.h. */
17875 main ()
17877 return 0;
17879 return 0;
17881 _ACEOF
17882 rm -f conftest.$ac_objext conftest$ac_exeext
17883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17884 (eval $ac_link) 2>conftest.er1
17885 ac_status=$?
17886 grep -v '^ *+' conftest.er1 >conftest.err
17887 rm -f conftest.er1
17888 cat conftest.err >&5
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); } &&
17891 { ac_try='test -z "$ac_c_werror_flag"
17892 || test ! -s conftest.err'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; } &&
17898 { ac_try='test -s conftest$ac_exeext'
17899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17901 ac_status=$?
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }; }; then
17904 libgomp_shared_libgcc=yes
17905 else
17906 echo "$as_me: failed program was:" >&5
17907 sed 's/^/| /' conftest.$ac_ext >&5
17910 rm -f conftest.err conftest.$ac_objext \
17911 conftest$ac_exeext conftest.$ac_ext
17912 CFLAGS="$ac_save_CFLAGS"
17915 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
17916 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
17919 # For GNU ld, we need at least this version. The format is described in
17920 # LIBGOMP_CHECK_LINKER_FEATURES above.
17921 libgomp_min_gnu_ld_version=21400
17922 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
17924 # Check to see if unspecified "yes" value can win, given results above.
17925 # Change "yes" into either "no" or a style name.
17926 if test $enable_symvers = yes; then
17927 if test $with_gnu_ld = yes &&
17928 test $libgomp_shared_libgcc = yes;
17929 then
17930 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
17931 enable_symvers=gnu
17932 else
17933 # The right tools, the right setup, but too old. Fallbacks?
17934 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
17935 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
17936 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
17937 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17938 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
17939 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17940 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
17941 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
17942 if test $libgomp_gnu_ld_version -ge 21200 ; then
17943 # Globbing fix is present, proper block support is not.
17944 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17945 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17946 enable_symvers=no
17947 else
17948 # 2.11 or older.
17949 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17950 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17951 enable_symvers=no
17954 else
17955 # just fail for now
17956 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
17957 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17958 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
17959 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17960 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
17961 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17962 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17963 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17964 enable_symvers=no
17970 if test $enable_symvers != no; then
17971 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
17972 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
17973 else
17974 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
17975 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
17978 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
17979 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17982 # Get target configury.
17983 . ${srcdir}/configure.tgt
17984 CFLAGS="$save_CFLAGS $XCFLAGS"
17986 # Check for __sync_val_compare_and_swap, but only after the target has
17987 # had a chance to set XCFLAGS.
17989 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
17990 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
17991 if test "${have_sync_builtins+set}" = set; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
17993 else
17995 cat >conftest.$ac_ext <<_ACEOF
17996 /* confdefs.h. */
17997 _ACEOF
17998 cat confdefs.h >>conftest.$ac_ext
17999 cat >>conftest.$ac_ext <<_ACEOF
18000 /* end confdefs.h. */
18003 main ()
18005 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
18007 return 0;
18009 _ACEOF
18010 rm -f conftest.$ac_objext conftest$ac_exeext
18011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18012 (eval $ac_link) 2>conftest.er1
18013 ac_status=$?
18014 grep -v '^ *+' conftest.er1 >conftest.err
18015 rm -f conftest.er1
18016 cat conftest.err >&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); } &&
18019 { ac_try='test -z "$ac_c_werror_flag"
18020 || test ! -s conftest.err'
18021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022 (eval $ac_try) 2>&5
18023 ac_status=$?
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; } &&
18026 { ac_try='test -s conftest$ac_exeext'
18027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028 (eval $ac_try) 2>&5
18029 ac_status=$?
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; }; then
18032 have_sync_builtins=yes
18033 else
18034 echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18037 have_sync_builtins=no
18039 rm -f conftest.err conftest.$ac_objext \
18040 conftest$ac_exeext conftest.$ac_ext
18042 echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
18043 echo "${ECHO_T}$have_sync_builtins" >&6
18044 if test $have_sync_builtins = yes; then
18046 cat >>confdefs.h <<\_ACEOF
18047 #define HAVE_SYNC_BUILTINS 1
18048 _ACEOF
18052 XCFLAGS="$XCFLAGS$XPCFLAGS"
18058 # Cleanup and exit.
18059 CFLAGS="$save_CFLAGS"
18060 cat >confcache <<\_ACEOF
18061 # This file is a shell script that caches the results of configure
18062 # tests run on this system so they can be shared between configure
18063 # scripts and configure runs, see configure's option --config-cache.
18064 # It is not useful on other systems. If it contains results you don't
18065 # want to keep, you may remove or edit it.
18067 # config.status only pays attention to the cache file if you give it
18068 # the --recheck option to rerun configure.
18070 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18071 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18072 # following values.
18074 _ACEOF
18076 # The following way of writing the cache mishandles newlines in values,
18077 # but we know of no workaround that is simple, portable, and efficient.
18078 # So, don't put newlines in cache variables' values.
18079 # Ultrix sh set writes to stderr and can't be redirected directly,
18080 # and sets the high bit in the cache file unless we assign to the vars.
18082 (set) 2>&1 |
18083 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18084 *ac_space=\ *)
18085 # `set' does not quote correctly, so add quotes (double-quote
18086 # substitution turns \\\\ into \\, and sed turns \\ into \).
18087 sed -n \
18088 "s/'/'\\\\''/g;
18089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18092 # `set' quotes correctly as required by POSIX, so do not add quotes.
18093 sed -n \
18094 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18096 esac;
18098 sed '
18099 t clear
18100 : clear
18101 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18102 t end
18103 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18104 : end' >>confcache
18105 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18106 if test -w $cache_file; then
18107 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18108 cat confcache >$cache_file
18109 else
18110 echo "not updating unwritable cache $cache_file"
18113 rm -f confcache
18115 if test ${multilib} = yes; then
18116 multilib_arg="--enable-multilib"
18117 else
18118 multilib_arg=
18121 # Set up the set of libraries that we need to link against for libgomp.
18122 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
18123 # which will force linkage against -lpthread (or equivalent for the system).
18124 # That's not 100% ideal, but about the best we can do easily.
18125 if test $enable_shared = yes; then
18126 link_gomp="-lgomp %{static: $LIBS}"
18127 else
18128 link_gomp="-lgomp $LIBS"
18134 if test "$ac_cv_fc_compiler_gnu" = yes; then
18135 USE_FORTRAN_TRUE=
18136 USE_FORTRAN_FALSE='#'
18137 else
18138 USE_FORTRAN_TRUE='#'
18139 USE_FORTRAN_FALSE=
18143 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
18144 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
18145 # the underscore here and update the PREREQ. If it doesn't, then we'll
18146 # need to copy this macro to our acinclude.m4.
18147 save_CFLAGS="$CFLAGS"
18148 for i in $config_path; do
18149 if test -f $srcdir/config/$i/omp-lock.h; then
18150 CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
18151 break
18153 done
18155 if test "$cross_compiling" = yes; then
18156 # Depending upon the size, compute the lo and hi bounds.
18157 cat >conftest.$ac_ext <<_ACEOF
18158 /* confdefs.h. */
18159 _ACEOF
18160 cat confdefs.h >>conftest.$ac_ext
18161 cat >>conftest.$ac_ext <<_ACEOF
18162 /* end confdefs.h. */
18165 main ()
18167 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
18168 test_array [0] = 0
18171 return 0;
18173 _ACEOF
18174 rm -f conftest.$ac_objext
18175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18176 (eval $ac_compile) 2>conftest.er1
18177 ac_status=$?
18178 grep -v '^ *+' conftest.er1 >conftest.err
18179 rm -f conftest.er1
18180 cat conftest.err >&5
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); } &&
18183 { ac_try='test -z "$ac_c_werror_flag"
18184 || test ! -s conftest.err'
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; } &&
18190 { ac_try='test -s conftest.$ac_objext'
18191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18192 (eval $ac_try) 2>&5
18193 ac_status=$?
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; }; then
18196 ac_lo=0 ac_mid=0
18197 while :; do
18198 cat >conftest.$ac_ext <<_ACEOF
18199 /* confdefs.h. */
18200 _ACEOF
18201 cat confdefs.h >>conftest.$ac_ext
18202 cat >>conftest.$ac_ext <<_ACEOF
18203 /* end confdefs.h. */
18206 main ()
18208 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18209 test_array [0] = 0
18212 return 0;
18214 _ACEOF
18215 rm -f conftest.$ac_objext
18216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18217 (eval $ac_compile) 2>conftest.er1
18218 ac_status=$?
18219 grep -v '^ *+' conftest.er1 >conftest.err
18220 rm -f conftest.er1
18221 cat conftest.err >&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } &&
18224 { ac_try='test -z "$ac_c_werror_flag"
18225 || test ! -s conftest.err'
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; } &&
18231 { ac_try='test -s conftest.$ac_objext'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18234 ac_status=$?
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; }; then
18237 ac_hi=$ac_mid; break
18238 else
18239 echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18242 ac_lo=`expr $ac_mid + 1`
18243 if test $ac_lo -le $ac_mid; then
18244 ac_lo= ac_hi=
18245 break
18247 ac_mid=`expr 2 '*' $ac_mid + 1`
18249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18250 done
18251 else
18252 echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18255 cat >conftest.$ac_ext <<_ACEOF
18256 /* confdefs.h. */
18257 _ACEOF
18258 cat confdefs.h >>conftest.$ac_ext
18259 cat >>conftest.$ac_ext <<_ACEOF
18260 /* end confdefs.h. */
18263 main ()
18265 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
18266 test_array [0] = 0
18269 return 0;
18271 _ACEOF
18272 rm -f conftest.$ac_objext
18273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18274 (eval $ac_compile) 2>conftest.er1
18275 ac_status=$?
18276 grep -v '^ *+' conftest.er1 >conftest.err
18277 rm -f conftest.er1
18278 cat conftest.err >&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } &&
18281 { ac_try='test -z "$ac_c_werror_flag"
18282 || test ! -s conftest.err'
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18285 ac_status=$?
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; } &&
18288 { ac_try='test -s conftest.$ac_objext'
18289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290 (eval $ac_try) 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; }; then
18294 ac_hi=-1 ac_mid=-1
18295 while :; do
18296 cat >conftest.$ac_ext <<_ACEOF
18297 /* confdefs.h. */
18298 _ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18304 main ()
18306 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
18307 test_array [0] = 0
18310 return 0;
18312 _ACEOF
18313 rm -f conftest.$ac_objext
18314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18315 (eval $ac_compile) 2>conftest.er1
18316 ac_status=$?
18317 grep -v '^ *+' conftest.er1 >conftest.err
18318 rm -f conftest.er1
18319 cat conftest.err >&5
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); } &&
18322 { ac_try='test -z "$ac_c_werror_flag"
18323 || test ! -s conftest.err'
18324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325 (eval $ac_try) 2>&5
18326 ac_status=$?
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }; } &&
18329 { ac_try='test -s conftest.$ac_objext'
18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331 (eval $ac_try) 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; }; then
18335 ac_lo=$ac_mid; break
18336 else
18337 echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18340 ac_hi=`expr '(' $ac_mid ')' - 1`
18341 if test $ac_mid -le $ac_hi; then
18342 ac_lo= ac_hi=
18343 break
18345 ac_mid=`expr 2 '*' $ac_mid`
18347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18348 done
18349 else
18350 echo "$as_me: failed program was:" >&5
18351 sed 's/^/| /' conftest.$ac_ext >&5
18353 ac_lo= ac_hi=
18355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18358 # Binary search between lo and hi bounds.
18359 while test "x$ac_lo" != "x$ac_hi"; do
18360 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18361 cat >conftest.$ac_ext <<_ACEOF
18362 /* confdefs.h. */
18363 _ACEOF
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h. */
18369 main ()
18371 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18372 test_array [0] = 0
18375 return 0;
18377 _ACEOF
18378 rm -f conftest.$ac_objext
18379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18380 (eval $ac_compile) 2>conftest.er1
18381 ac_status=$?
18382 grep -v '^ *+' conftest.er1 >conftest.err
18383 rm -f conftest.er1
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } &&
18387 { ac_try='test -z "$ac_c_werror_flag"
18388 || test ! -s conftest.err'
18389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390 (eval $ac_try) 2>&5
18391 ac_status=$?
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); }; } &&
18394 { ac_try='test -s conftest.$ac_objext'
18395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18396 (eval $ac_try) 2>&5
18397 ac_status=$?
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); }; }; then
18400 ac_hi=$ac_mid
18401 else
18402 echo "$as_me: failed program was:" >&5
18403 sed 's/^/| /' conftest.$ac_ext >&5
18405 ac_lo=`expr '(' $ac_mid ')' + 1`
18407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18408 done
18409 case $ac_lo in
18410 ?*) OMP_LOCK_SIZE=$ac_lo;;
18411 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18412 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18413 { (exit 1); exit 1; }; } ;;
18414 esac
18415 else
18416 if test "$cross_compiling" = yes; then
18417 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18418 See \`config.log' for more details." >&5
18419 echo "$as_me: error: cannot run test program while cross compiling
18420 See \`config.log' for more details." >&2;}
18421 { (exit 1); exit 1; }; }
18422 else
18423 cat >conftest.$ac_ext <<_ACEOF
18424 /* confdefs.h. */
18425 _ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h. */
18430 long longval () { return sizeof (omp_lock_t); }
18431 unsigned long ulongval () { return sizeof (omp_lock_t); }
18432 #include <stdio.h>
18433 #include <stdlib.h>
18435 main ()
18438 FILE *f = fopen ("conftest.val", "w");
18439 if (! f)
18440 exit (1);
18441 if ((sizeof (omp_lock_t)) < 0)
18443 long i = longval ();
18444 if (i != (sizeof (omp_lock_t)))
18445 exit (1);
18446 fprintf (f, "%ld\n", i);
18448 else
18450 unsigned long i = ulongval ();
18451 if (i != (sizeof (omp_lock_t)))
18452 exit (1);
18453 fprintf (f, "%lu\n", i);
18455 exit (ferror (f) || fclose (f) != 0);
18458 return 0;
18460 _ACEOF
18461 rm -f conftest$ac_exeext
18462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18463 (eval $ac_link) 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468 (eval $ac_try) 2>&5
18469 ac_status=$?
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472 OMP_LOCK_SIZE=`cat conftest.val`
18473 else
18474 echo "$as_me: program exited with status $ac_status" >&5
18475 echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18478 ( exit $ac_status )
18479 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18480 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18481 { (exit 1); exit 1; }; }
18483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18486 rm -f conftest.val
18487 if test "$cross_compiling" = yes; then
18488 # Depending upon the size, compute the lo and hi bounds.
18489 cat >conftest.$ac_ext <<_ACEOF
18490 /* confdefs.h. */
18491 _ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h. */
18497 main ()
18499 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
18500 test_array [0] = 0
18503 return 0;
18505 _ACEOF
18506 rm -f conftest.$ac_objext
18507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18508 (eval $ac_compile) 2>conftest.er1
18509 ac_status=$?
18510 grep -v '^ *+' conftest.er1 >conftest.err
18511 rm -f conftest.er1
18512 cat conftest.err >&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } &&
18515 { ac_try='test -z "$ac_c_werror_flag"
18516 || test ! -s conftest.err'
18517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18518 (eval $ac_try) 2>&5
18519 ac_status=$?
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; } &&
18522 { ac_try='test -s conftest.$ac_objext'
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; }; then
18528 ac_lo=0 ac_mid=0
18529 while :; do
18530 cat >conftest.$ac_ext <<_ACEOF
18531 /* confdefs.h. */
18532 _ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h. */
18538 main ()
18540 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18541 test_array [0] = 0
18544 return 0;
18546 _ACEOF
18547 rm -f conftest.$ac_objext
18548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18549 (eval $ac_compile) 2>conftest.er1
18550 ac_status=$?
18551 grep -v '^ *+' conftest.er1 >conftest.err
18552 rm -f conftest.er1
18553 cat conftest.err >&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); } &&
18556 { ac_try='test -z "$ac_c_werror_flag"
18557 || test ! -s conftest.err'
18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18560 ac_status=$?
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; } &&
18563 { ac_try='test -s conftest.$ac_objext'
18564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18565 (eval $ac_try) 2>&5
18566 ac_status=$?
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); }; }; then
18569 ac_hi=$ac_mid; break
18570 else
18571 echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18574 ac_lo=`expr $ac_mid + 1`
18575 if test $ac_lo -le $ac_mid; then
18576 ac_lo= ac_hi=
18577 break
18579 ac_mid=`expr 2 '*' $ac_mid + 1`
18581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18582 done
18583 else
18584 echo "$as_me: failed program was:" >&5
18585 sed 's/^/| /' conftest.$ac_ext >&5
18587 cat >conftest.$ac_ext <<_ACEOF
18588 /* confdefs.h. */
18589 _ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h. */
18595 main ()
18597 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
18598 test_array [0] = 0
18601 return 0;
18603 _ACEOF
18604 rm -f conftest.$ac_objext
18605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18606 (eval $ac_compile) 2>conftest.er1
18607 ac_status=$?
18608 grep -v '^ *+' conftest.er1 >conftest.err
18609 rm -f conftest.er1
18610 cat conftest.err >&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); } &&
18613 { ac_try='test -z "$ac_c_werror_flag"
18614 || test ! -s conftest.err'
18615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18616 (eval $ac_try) 2>&5
18617 ac_status=$?
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; } &&
18620 { ac_try='test -s conftest.$ac_objext'
18621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18622 (eval $ac_try) 2>&5
18623 ac_status=$?
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; }; then
18626 ac_hi=-1 ac_mid=-1
18627 while :; do
18628 cat >conftest.$ac_ext <<_ACEOF
18629 /* confdefs.h. */
18630 _ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h. */
18636 main ()
18638 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
18639 test_array [0] = 0
18642 return 0;
18644 _ACEOF
18645 rm -f conftest.$ac_objext
18646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18647 (eval $ac_compile) 2>conftest.er1
18648 ac_status=$?
18649 grep -v '^ *+' conftest.er1 >conftest.err
18650 rm -f conftest.er1
18651 cat conftest.err >&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } &&
18654 { ac_try='test -z "$ac_c_werror_flag"
18655 || test ! -s conftest.err'
18656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657 (eval $ac_try) 2>&5
18658 ac_status=$?
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; } &&
18661 { ac_try='test -s conftest.$ac_objext'
18662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; }; then
18667 ac_lo=$ac_mid; break
18668 else
18669 echo "$as_me: failed program was:" >&5
18670 sed 's/^/| /' conftest.$ac_ext >&5
18672 ac_hi=`expr '(' $ac_mid ')' - 1`
18673 if test $ac_mid -le $ac_hi; then
18674 ac_lo= ac_hi=
18675 break
18677 ac_mid=`expr 2 '*' $ac_mid`
18679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18680 done
18681 else
18682 echo "$as_me: failed program was:" >&5
18683 sed 's/^/| /' conftest.$ac_ext >&5
18685 ac_lo= ac_hi=
18687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18690 # Binary search between lo and hi bounds.
18691 while test "x$ac_lo" != "x$ac_hi"; do
18692 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18693 cat >conftest.$ac_ext <<_ACEOF
18694 /* confdefs.h. */
18695 _ACEOF
18696 cat confdefs.h >>conftest.$ac_ext
18697 cat >>conftest.$ac_ext <<_ACEOF
18698 /* end confdefs.h. */
18701 main ()
18703 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18704 test_array [0] = 0
18707 return 0;
18709 _ACEOF
18710 rm -f conftest.$ac_objext
18711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18712 (eval $ac_compile) 2>conftest.er1
18713 ac_status=$?
18714 grep -v '^ *+' conftest.er1 >conftest.err
18715 rm -f conftest.er1
18716 cat conftest.err >&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } &&
18719 { ac_try='test -z "$ac_c_werror_flag"
18720 || test ! -s conftest.err'
18721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722 (eval $ac_try) 2>&5
18723 ac_status=$?
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; } &&
18726 { ac_try='test -s conftest.$ac_objext'
18727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728 (eval $ac_try) 2>&5
18729 ac_status=$?
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; }; then
18732 ac_hi=$ac_mid
18733 else
18734 echo "$as_me: failed program was:" >&5
18735 sed 's/^/| /' conftest.$ac_ext >&5
18737 ac_lo=`expr '(' $ac_mid ')' + 1`
18739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18740 done
18741 case $ac_lo in
18742 ?*) OMP_LOCK_ALIGN=$ac_lo;;
18743 '') ;;
18744 esac
18745 else
18746 if test "$cross_compiling" = yes; then
18747 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18748 See \`config.log' for more details." >&5
18749 echo "$as_me: error: cannot run test program while cross compiling
18750 See \`config.log' for more details." >&2;}
18751 { (exit 1); exit 1; }; }
18752 else
18753 cat >conftest.$ac_ext <<_ACEOF
18754 /* confdefs.h. */
18755 _ACEOF
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h. */
18760 long longval () { return __alignof (omp_lock_t); }
18761 unsigned long ulongval () { return __alignof (omp_lock_t); }
18762 #include <stdio.h>
18763 #include <stdlib.h>
18765 main ()
18768 FILE *f = fopen ("conftest.val", "w");
18769 if (! f)
18770 exit (1);
18771 if ((__alignof (omp_lock_t)) < 0)
18773 long i = longval ();
18774 if (i != (__alignof (omp_lock_t)))
18775 exit (1);
18776 fprintf (f, "%ld\n", i);
18778 else
18780 unsigned long i = ulongval ();
18781 if (i != (__alignof (omp_lock_t)))
18782 exit (1);
18783 fprintf (f, "%lu\n", i);
18785 exit (ferror (f) || fclose (f) != 0);
18788 return 0;
18790 _ACEOF
18791 rm -f conftest$ac_exeext
18792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18793 (eval $ac_link) 2>&5
18794 ac_status=$?
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 OMP_LOCK_ALIGN=`cat conftest.val`
18803 else
18804 echo "$as_me: program exited with status $ac_status" >&5
18805 echo "$as_me: failed program was:" >&5
18806 sed 's/^/| /' conftest.$ac_ext >&5
18809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18812 rm -f conftest.val
18813 if test "$cross_compiling" = yes; then
18814 # Depending upon the size, compute the lo and hi bounds.
18815 cat >conftest.$ac_ext <<_ACEOF
18816 /* confdefs.h. */
18817 _ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18823 main ()
18825 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
18826 test_array [0] = 0
18829 return 0;
18831 _ACEOF
18832 rm -f conftest.$ac_objext
18833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18834 (eval $ac_compile) 2>conftest.er1
18835 ac_status=$?
18836 grep -v '^ *+' conftest.er1 >conftest.err
18837 rm -f conftest.er1
18838 cat conftest.err >&5
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); } &&
18841 { ac_try='test -z "$ac_c_werror_flag"
18842 || test ! -s conftest.err'
18843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18844 (eval $ac_try) 2>&5
18845 ac_status=$?
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); }; } &&
18848 { ac_try='test -s conftest.$ac_objext'
18849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18850 (eval $ac_try) 2>&5
18851 ac_status=$?
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); }; }; then
18854 ac_lo=0 ac_mid=0
18855 while :; do
18856 cat >conftest.$ac_ext <<_ACEOF
18857 /* confdefs.h. */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18864 main ()
18866 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18867 test_array [0] = 0
18870 return 0;
18872 _ACEOF
18873 rm -f conftest.$ac_objext
18874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18875 (eval $ac_compile) 2>conftest.er1
18876 ac_status=$?
18877 grep -v '^ *+' conftest.er1 >conftest.err
18878 rm -f conftest.er1
18879 cat conftest.err >&5
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); } &&
18882 { ac_try='test -z "$ac_c_werror_flag"
18883 || test ! -s conftest.err'
18884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885 (eval $ac_try) 2>&5
18886 ac_status=$?
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; } &&
18889 { ac_try='test -s conftest.$ac_objext'
18890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18891 (eval $ac_try) 2>&5
18892 ac_status=$?
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; }; then
18895 ac_hi=$ac_mid; break
18896 else
18897 echo "$as_me: failed program was:" >&5
18898 sed 's/^/| /' conftest.$ac_ext >&5
18900 ac_lo=`expr $ac_mid + 1`
18901 if test $ac_lo -le $ac_mid; then
18902 ac_lo= ac_hi=
18903 break
18905 ac_mid=`expr 2 '*' $ac_mid + 1`
18907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18908 done
18909 else
18910 echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18913 cat >conftest.$ac_ext <<_ACEOF
18914 /* confdefs.h. */
18915 _ACEOF
18916 cat confdefs.h >>conftest.$ac_ext
18917 cat >>conftest.$ac_ext <<_ACEOF
18918 /* end confdefs.h. */
18921 main ()
18923 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
18924 test_array [0] = 0
18927 return 0;
18929 _ACEOF
18930 rm -f conftest.$ac_objext
18931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18932 (eval $ac_compile) 2>conftest.er1
18933 ac_status=$?
18934 grep -v '^ *+' conftest.er1 >conftest.err
18935 rm -f conftest.er1
18936 cat conftest.err >&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); } &&
18939 { ac_try='test -z "$ac_c_werror_flag"
18940 || test ! -s conftest.err'
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18943 ac_status=$?
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; } &&
18946 { ac_try='test -s conftest.$ac_objext'
18947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18948 (eval $ac_try) 2>&5
18949 ac_status=$?
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); }; }; then
18952 ac_hi=-1 ac_mid=-1
18953 while :; do
18954 cat >conftest.$ac_ext <<_ACEOF
18955 /* confdefs.h. */
18956 _ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h. */
18962 main ()
18964 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
18965 test_array [0] = 0
18968 return 0;
18970 _ACEOF
18971 rm -f conftest.$ac_objext
18972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18973 (eval $ac_compile) 2>conftest.er1
18974 ac_status=$?
18975 grep -v '^ *+' conftest.er1 >conftest.err
18976 rm -f conftest.er1
18977 cat conftest.err >&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } &&
18980 { ac_try='test -z "$ac_c_werror_flag"
18981 || test ! -s conftest.err'
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18984 ac_status=$?
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; } &&
18987 { ac_try='test -s conftest.$ac_objext'
18988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989 (eval $ac_try) 2>&5
18990 ac_status=$?
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; }; then
18993 ac_lo=$ac_mid; break
18994 else
18995 echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18998 ac_hi=`expr '(' $ac_mid ')' - 1`
18999 if test $ac_mid -le $ac_hi; then
19000 ac_lo= ac_hi=
19001 break
19003 ac_mid=`expr 2 '*' $ac_mid`
19005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19006 done
19007 else
19008 echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19011 ac_lo= ac_hi=
19013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19016 # Binary search between lo and hi bounds.
19017 while test "x$ac_lo" != "x$ac_hi"; do
19018 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19019 cat >conftest.$ac_ext <<_ACEOF
19020 /* confdefs.h. */
19021 _ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h. */
19027 main ()
19029 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
19030 test_array [0] = 0
19033 return 0;
19035 _ACEOF
19036 rm -f conftest.$ac_objext
19037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19038 (eval $ac_compile) 2>conftest.er1
19039 ac_status=$?
19040 grep -v '^ *+' conftest.er1 >conftest.err
19041 rm -f conftest.er1
19042 cat conftest.err >&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } &&
19045 { ac_try='test -z "$ac_c_werror_flag"
19046 || test ! -s conftest.err'
19047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048 (eval $ac_try) 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; } &&
19052 { ac_try='test -s conftest.$ac_objext'
19053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054 (eval $ac_try) 2>&5
19055 ac_status=$?
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; }; then
19058 ac_hi=$ac_mid
19059 else
19060 echo "$as_me: failed program was:" >&5
19061 sed 's/^/| /' conftest.$ac_ext >&5
19063 ac_lo=`expr '(' $ac_mid ')' + 1`
19065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19066 done
19067 case $ac_lo in
19068 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
19069 '') ;;
19070 esac
19071 else
19072 if test "$cross_compiling" = yes; then
19073 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19074 See \`config.log' for more details." >&5
19075 echo "$as_me: error: cannot run test program while cross compiling
19076 See \`config.log' for more details." >&2;}
19077 { (exit 1); exit 1; }; }
19078 else
19079 cat >conftest.$ac_ext <<_ACEOF
19080 /* confdefs.h. */
19081 _ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h. */
19086 long longval () { return sizeof (omp_nest_lock_t); }
19087 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
19088 #include <stdio.h>
19089 #include <stdlib.h>
19091 main ()
19094 FILE *f = fopen ("conftest.val", "w");
19095 if (! f)
19096 exit (1);
19097 if ((sizeof (omp_nest_lock_t)) < 0)
19099 long i = longval ();
19100 if (i != (sizeof (omp_nest_lock_t)))
19101 exit (1);
19102 fprintf (f, "%ld\n", i);
19104 else
19106 unsigned long i = ulongval ();
19107 if (i != (sizeof (omp_nest_lock_t)))
19108 exit (1);
19109 fprintf (f, "%lu\n", i);
19111 exit (ferror (f) || fclose (f) != 0);
19114 return 0;
19116 _ACEOF
19117 rm -f conftest$ac_exeext
19118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19119 (eval $ac_link) 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124 (eval $ac_try) 2>&5
19125 ac_status=$?
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; }; then
19128 OMP_NEST_LOCK_SIZE=`cat conftest.val`
19129 else
19130 echo "$as_me: program exited with status $ac_status" >&5
19131 echo "$as_me: failed program was:" >&5
19132 sed 's/^/| /' conftest.$ac_ext >&5
19135 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19138 rm -f conftest.val
19139 if test "$cross_compiling" = yes; then
19140 # Depending upon the size, compute the lo and hi bounds.
19141 cat >conftest.$ac_ext <<_ACEOF
19142 /* confdefs.h. */
19143 _ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h. */
19149 main ()
19151 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
19152 test_array [0] = 0
19155 return 0;
19157 _ACEOF
19158 rm -f conftest.$ac_objext
19159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19160 (eval $ac_compile) 2>conftest.er1
19161 ac_status=$?
19162 grep -v '^ *+' conftest.er1 >conftest.err
19163 rm -f conftest.er1
19164 cat conftest.err >&5
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); } &&
19167 { ac_try='test -z "$ac_c_werror_flag"
19168 || test ! -s conftest.err'
19169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170 (eval $ac_try) 2>&5
19171 ac_status=$?
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; } &&
19174 { ac_try='test -s conftest.$ac_objext'
19175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176 (eval $ac_try) 2>&5
19177 ac_status=$?
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); }; }; then
19180 ac_lo=0 ac_mid=0
19181 while :; do
19182 cat >conftest.$ac_ext <<_ACEOF
19183 /* confdefs.h. */
19184 _ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19190 main ()
19192 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19193 test_array [0] = 0
19196 return 0;
19198 _ACEOF
19199 rm -f conftest.$ac_objext
19200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19201 (eval $ac_compile) 2>conftest.er1
19202 ac_status=$?
19203 grep -v '^ *+' conftest.er1 >conftest.err
19204 rm -f conftest.er1
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } &&
19208 { ac_try='test -z "$ac_c_werror_flag"
19209 || test ! -s conftest.err'
19210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19212 ac_status=$?
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; } &&
19215 { ac_try='test -s conftest.$ac_objext'
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; }; then
19221 ac_hi=$ac_mid; break
19222 else
19223 echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19226 ac_lo=`expr $ac_mid + 1`
19227 if test $ac_lo -le $ac_mid; then
19228 ac_lo= ac_hi=
19229 break
19231 ac_mid=`expr 2 '*' $ac_mid + 1`
19233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19234 done
19235 else
19236 echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19239 cat >conftest.$ac_ext <<_ACEOF
19240 /* confdefs.h. */
19241 _ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19247 main ()
19249 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
19250 test_array [0] = 0
19253 return 0;
19255 _ACEOF
19256 rm -f conftest.$ac_objext
19257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19258 (eval $ac_compile) 2>conftest.er1
19259 ac_status=$?
19260 grep -v '^ *+' conftest.er1 >conftest.err
19261 rm -f conftest.er1
19262 cat conftest.err >&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } &&
19265 { ac_try='test -z "$ac_c_werror_flag"
19266 || test ! -s conftest.err'
19267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268 (eval $ac_try) 2>&5
19269 ac_status=$?
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; } &&
19272 { ac_try='test -s conftest.$ac_objext'
19273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19274 (eval $ac_try) 2>&5
19275 ac_status=$?
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; }; then
19278 ac_hi=-1 ac_mid=-1
19279 while :; do
19280 cat >conftest.$ac_ext <<_ACEOF
19281 /* confdefs.h. */
19282 _ACEOF
19283 cat confdefs.h >>conftest.$ac_ext
19284 cat >>conftest.$ac_ext <<_ACEOF
19285 /* end confdefs.h. */
19288 main ()
19290 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
19291 test_array [0] = 0
19294 return 0;
19296 _ACEOF
19297 rm -f conftest.$ac_objext
19298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19299 (eval $ac_compile) 2>conftest.er1
19300 ac_status=$?
19301 grep -v '^ *+' conftest.er1 >conftest.err
19302 rm -f conftest.er1
19303 cat conftest.err >&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); } &&
19306 { ac_try='test -z "$ac_c_werror_flag"
19307 || test ! -s conftest.err'
19308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309 (eval $ac_try) 2>&5
19310 ac_status=$?
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; } &&
19313 { ac_try='test -s conftest.$ac_objext'
19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315 (eval $ac_try) 2>&5
19316 ac_status=$?
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; }; then
19319 ac_lo=$ac_mid; break
19320 else
19321 echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19324 ac_hi=`expr '(' $ac_mid ')' - 1`
19325 if test $ac_mid -le $ac_hi; then
19326 ac_lo= ac_hi=
19327 break
19329 ac_mid=`expr 2 '*' $ac_mid`
19331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19332 done
19333 else
19334 echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19337 ac_lo= ac_hi=
19339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19342 # Binary search between lo and hi bounds.
19343 while test "x$ac_lo" != "x$ac_hi"; do
19344 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19345 cat >conftest.$ac_ext <<_ACEOF
19346 /* confdefs.h. */
19347 _ACEOF
19348 cat confdefs.h >>conftest.$ac_ext
19349 cat >>conftest.$ac_ext <<_ACEOF
19350 /* end confdefs.h. */
19353 main ()
19355 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19356 test_array [0] = 0
19359 return 0;
19361 _ACEOF
19362 rm -f conftest.$ac_objext
19363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19364 (eval $ac_compile) 2>conftest.er1
19365 ac_status=$?
19366 grep -v '^ *+' conftest.er1 >conftest.err
19367 rm -f conftest.er1
19368 cat conftest.err >&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } &&
19371 { ac_try='test -z "$ac_c_werror_flag"
19372 || test ! -s conftest.err'
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; } &&
19378 { ac_try='test -s conftest.$ac_objext'
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19381 ac_status=$?
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; }; then
19384 ac_hi=$ac_mid
19385 else
19386 echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19389 ac_lo=`expr '(' $ac_mid ')' + 1`
19391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19392 done
19393 case $ac_lo in
19394 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
19395 '') ;;
19396 esac
19397 else
19398 if test "$cross_compiling" = yes; then
19399 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19400 See \`config.log' for more details." >&5
19401 echo "$as_me: error: cannot run test program while cross compiling
19402 See \`config.log' for more details." >&2;}
19403 { (exit 1); exit 1; }; }
19404 else
19405 cat >conftest.$ac_ext <<_ACEOF
19406 /* confdefs.h. */
19407 _ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h. */
19412 long longval () { return __alignof (omp_nest_lock_t); }
19413 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
19414 #include <stdio.h>
19415 #include <stdlib.h>
19417 main ()
19420 FILE *f = fopen ("conftest.val", "w");
19421 if (! f)
19422 exit (1);
19423 if ((__alignof (omp_nest_lock_t)) < 0)
19425 long i = longval ();
19426 if (i != (__alignof (omp_nest_lock_t)))
19427 exit (1);
19428 fprintf (f, "%ld\n", i);
19430 else
19432 unsigned long i = ulongval ();
19433 if (i != (__alignof (omp_nest_lock_t)))
19434 exit (1);
19435 fprintf (f, "%lu\n", i);
19437 exit (ferror (f) || fclose (f) != 0);
19440 return 0;
19442 _ACEOF
19443 rm -f conftest$ac_exeext
19444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19445 (eval $ac_link) 2>&5
19446 ac_status=$?
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; }; then
19454 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
19455 else
19456 echo "$as_me: program exited with status $ac_status" >&5
19457 echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.$ac_ext >&5
19461 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19464 rm -f conftest.val
19466 # If the lock fits in an integer, then arrange for Fortran to use that
19467 # integer. If it doesn't, then arrange for Fortran to use a pointer.
19468 # Except that we don't have a way at present to multi-lib the installed
19469 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
19470 # actual target.
19471 OMP_LOCK_KIND=$OMP_LOCK_SIZE
19472 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
19473 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
19474 OMP_LOCK_KIND=8
19476 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
19477 OMP_NEST_LOCK_KIND=8
19486 CFLAGS="$save_CFLAGS"
19488 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
19490 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
19492 cat >confcache <<\_ACEOF
19493 # This file is a shell script that caches the results of configure
19494 # tests run on this system so they can be shared between configure
19495 # scripts and configure runs, see configure's option --config-cache.
19496 # It is not useful on other systems. If it contains results you don't
19497 # want to keep, you may remove or edit it.
19499 # config.status only pays attention to the cache file if you give it
19500 # the --recheck option to rerun configure.
19502 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19503 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19504 # following values.
19506 _ACEOF
19508 # The following way of writing the cache mishandles newlines in values,
19509 # but we know of no workaround that is simple, portable, and efficient.
19510 # So, don't put newlines in cache variables' values.
19511 # Ultrix sh set writes to stderr and can't be redirected directly,
19512 # and sets the high bit in the cache file unless we assign to the vars.
19514 (set) 2>&1 |
19515 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19516 *ac_space=\ *)
19517 # `set' does not quote correctly, so add quotes (double-quote
19518 # substitution turns \\\\ into \\, and sed turns \\ into \).
19519 sed -n \
19520 "s/'/'\\\\''/g;
19521 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19524 # `set' quotes correctly as required by POSIX, so do not add quotes.
19525 sed -n \
19526 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19528 esac;
19530 sed '
19531 t clear
19532 : clear
19533 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19534 t end
19535 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19536 : end' >>confcache
19537 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19538 if test -w $cache_file; then
19539 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19540 cat confcache >$cache_file
19541 else
19542 echo "not updating unwritable cache $cache_file"
19545 rm -f confcache
19547 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19548 # Let make expand exec_prefix.
19549 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19551 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19552 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19553 # trailing colons and then remove the whole line if VPATH becomes empty
19554 # (actually we leave an empty line to preserve line numbers).
19555 if test "x$srcdir" = x.; then
19556 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19557 s/:*\$(srcdir):*/:/;
19558 s/:*\${srcdir}:*/:/;
19559 s/:*@srcdir@:*/:/;
19560 s/^\([^=]*=[ ]*\):*/\1/;
19561 s/:*$//;
19562 s/^[^=]*=[ ]*$//;
19566 DEFS=-DHAVE_CONFIG_H
19568 ac_libobjs=
19569 ac_ltlibobjs=
19570 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19571 # 1. Remove the extension, and $U if already installed.
19572 ac_i=`echo "$ac_i" |
19573 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19574 # 2. Add them.
19575 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19576 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19577 done
19578 LIBOBJS=$ac_libobjs
19580 LTLIBOBJS=$ac_ltlibobjs
19583 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
19584 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
19585 Usually this means the macro was only invoked conditionally." >&5
19586 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
19587 Usually this means the macro was only invoked conditionally." >&2;}
19588 { (exit 1); exit 1; }; }
19590 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19591 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19592 Usually this means the macro was only invoked conditionally." >&5
19593 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19594 Usually this means the macro was only invoked conditionally." >&2;}
19595 { (exit 1); exit 1; }; }
19597 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19598 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19599 Usually this means the macro was only invoked conditionally." >&5
19600 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19601 Usually this means the macro was only invoked conditionally." >&2;}
19602 { (exit 1); exit 1; }; }
19604 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
19605 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
19606 Usually this means the macro was only invoked conditionally." >&5
19607 echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
19608 Usually this means the macro was only invoked conditionally." >&2;}
19609 { (exit 1); exit 1; }; }
19611 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19612 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19613 Usually this means the macro was only invoked conditionally." >&5
19614 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19615 Usually this means the macro was only invoked conditionally." >&2;}
19616 { (exit 1); exit 1; }; }
19618 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
19619 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19620 Usually this means the macro was only invoked conditionally." >&5
19621 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19622 Usually this means the macro was only invoked conditionally." >&2;}
19623 { (exit 1); exit 1; }; }
19625 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
19626 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
19627 Usually this means the macro was only invoked conditionally." >&5
19628 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
19629 Usually this means the macro was only invoked conditionally." >&2;}
19630 { (exit 1); exit 1; }; }
19633 : ${CONFIG_STATUS=./config.status}
19634 ac_clean_files_save=$ac_clean_files
19635 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19636 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19637 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19638 cat >$CONFIG_STATUS <<_ACEOF
19639 #! $SHELL
19640 # Generated by $as_me.
19641 # Run this file to recreate the current configuration.
19642 # Compiler output produced by configure, useful for debugging
19643 # configure, is in config.log if it exists.
19645 debug=false
19646 ac_cs_recheck=false
19647 ac_cs_silent=false
19648 SHELL=\${CONFIG_SHELL-$SHELL}
19649 _ACEOF
19651 cat >>$CONFIG_STATUS <<\_ACEOF
19652 ## --------------------- ##
19653 ## M4sh Initialization. ##
19654 ## --------------------- ##
19656 # Be Bourne compatible
19657 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19658 emulate sh
19659 NULLCMD=:
19660 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19661 # is contrary to our usage. Disable this feature.
19662 alias -g '${1+"$@"}'='"$@"'
19663 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19664 set -o posix
19666 DUALCASE=1; export DUALCASE # for MKS sh
19668 # Support unset when possible.
19669 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19670 as_unset=unset
19671 else
19672 as_unset=false
19676 # Work around bugs in pre-3.0 UWIN ksh.
19677 $as_unset ENV MAIL MAILPATH
19678 PS1='$ '
19679 PS2='> '
19680 PS4='+ '
19682 # NLS nuisances.
19683 for as_var in \
19684 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19685 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19686 LC_TELEPHONE LC_TIME
19688 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19689 eval $as_var=C; export $as_var
19690 else
19691 $as_unset $as_var
19693 done
19695 # Required to use basename.
19696 if expr a : '\(a\)' >/dev/null 2>&1; then
19697 as_expr=expr
19698 else
19699 as_expr=false
19702 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19703 as_basename=basename
19704 else
19705 as_basename=false
19709 # Name of the executable.
19710 as_me=`$as_basename "$0" ||
19711 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19712 X"$0" : 'X\(//\)$' \| \
19713 X"$0" : 'X\(/\)$' \| \
19714 . : '\(.\)' 2>/dev/null ||
19715 echo X/"$0" |
19716 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19717 /^X\/\(\/\/\)$/{ s//\1/; q; }
19718 /^X\/\(\/\).*/{ s//\1/; q; }
19719 s/.*/./; q'`
19722 # PATH needs CR, and LINENO needs CR and PATH.
19723 # Avoid depending upon Character Ranges.
19724 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19725 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19726 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19727 as_cr_digits='0123456789'
19728 as_cr_alnum=$as_cr_Letters$as_cr_digits
19730 # The user is always right.
19731 if test "${PATH_SEPARATOR+set}" != set; then
19732 echo "#! /bin/sh" >conf$$.sh
19733 echo "exit 0" >>conf$$.sh
19734 chmod +x conf$$.sh
19735 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19736 PATH_SEPARATOR=';'
19737 else
19738 PATH_SEPARATOR=:
19740 rm -f conf$$.sh
19744 as_lineno_1=$LINENO
19745 as_lineno_2=$LINENO
19746 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19747 test "x$as_lineno_1" != "x$as_lineno_2" &&
19748 test "x$as_lineno_3" = "x$as_lineno_2" || {
19749 # Find who we are. Look in the path if we contain no path at all
19750 # relative or not.
19751 case $0 in
19752 *[\\/]* ) as_myself=$0 ;;
19753 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19754 for as_dir in $PATH
19756 IFS=$as_save_IFS
19757 test -z "$as_dir" && as_dir=.
19758 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19759 done
19762 esac
19763 # We did not find ourselves, most probably we were run as `sh COMMAND'
19764 # in which case we are not to be found in the path.
19765 if test "x$as_myself" = x; then
19766 as_myself=$0
19768 if test ! -f "$as_myself"; then
19769 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19770 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19771 { (exit 1); exit 1; }; }
19773 case $CONFIG_SHELL in
19775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19776 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19778 IFS=$as_save_IFS
19779 test -z "$as_dir" && as_dir=.
19780 for as_base in sh bash ksh sh5; do
19781 case $as_dir in
19783 if ("$as_dir/$as_base" -c '
19784 as_lineno_1=$LINENO
19785 as_lineno_2=$LINENO
19786 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19787 test "x$as_lineno_1" != "x$as_lineno_2" &&
19788 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19789 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19790 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19791 CONFIG_SHELL=$as_dir/$as_base
19792 export CONFIG_SHELL
19793 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19794 fi;;
19795 esac
19796 done
19797 done
19799 esac
19801 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19802 # uniformly replaced by the line number. The first 'sed' inserts a
19803 # line-number line before each line; the second 'sed' does the real
19804 # work. The second script uses 'N' to pair each line-number line
19805 # with the numbered line, and appends trailing '-' during
19806 # substitution so that $LINENO is not a special case at line end.
19807 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19808 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19809 sed '=' <$as_myself |
19810 sed '
19812 s,$,-,
19813 : loop
19814 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19815 t loop
19816 s,-$,,
19817 s,^['$as_cr_digits']*\n,,
19818 ' >$as_me.lineno &&
19819 chmod +x $as_me.lineno ||
19820 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19821 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19822 { (exit 1); exit 1; }; }
19824 # Don't try to exec as it changes $[0], causing all sort of problems
19825 # (the dirname of $[0] is not the place where we might find the
19826 # original and so on. Autoconf is especially sensible to this).
19827 . ./$as_me.lineno
19828 # Exit status is that of the last command.
19829 exit
19833 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19834 *c*,-n*) ECHO_N= ECHO_C='
19835 ' ECHO_T=' ' ;;
19836 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19837 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19838 esac
19840 if expr a : '\(a\)' >/dev/null 2>&1; then
19841 as_expr=expr
19842 else
19843 as_expr=false
19846 rm -f conf$$ conf$$.exe conf$$.file
19847 echo >conf$$.file
19848 if ln -s conf$$.file conf$$ 2>/dev/null; then
19849 # We could just check for DJGPP; but this test a) works b) is more generic
19850 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19851 if test -f conf$$.exe; then
19852 # Don't use ln at all; we don't have any links
19853 as_ln_s='cp -p'
19854 else
19855 as_ln_s='ln -s'
19857 elif ln conf$$.file conf$$ 2>/dev/null; then
19858 as_ln_s=ln
19859 else
19860 as_ln_s='cp -p'
19862 rm -f conf$$ conf$$.exe conf$$.file
19864 if mkdir -p . 2>/dev/null; then
19865 as_mkdir_p=:
19866 else
19867 test -d ./-p && rmdir ./-p
19868 as_mkdir_p=false
19871 as_executable_p="test -f"
19873 # Sed expression to map a string onto a valid CPP name.
19874 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19876 # Sed expression to map a string onto a valid variable name.
19877 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19880 # IFS
19881 # We need space, tab and new line, in precisely that order.
19882 as_nl='
19884 IFS=" $as_nl"
19886 # CDPATH.
19887 $as_unset CDPATH
19889 exec 6>&1
19891 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19892 # report actual input values of CONFIG_FILES etc. instead of their
19893 # values after options handling. Logging --version etc. is OK.
19894 exec 5>>config.log
19896 echo
19897 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19898 ## Running $as_me. ##
19899 _ASBOX
19900 } >&5
19901 cat >&5 <<_CSEOF
19903 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
19904 generated by GNU Autoconf 2.59. Invocation command line was
19906 CONFIG_FILES = $CONFIG_FILES
19907 CONFIG_HEADERS = $CONFIG_HEADERS
19908 CONFIG_LINKS = $CONFIG_LINKS
19909 CONFIG_COMMANDS = $CONFIG_COMMANDS
19910 $ $0 $@
19912 _CSEOF
19913 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19914 echo >&5
19915 _ACEOF
19917 # Files that config.status was made for.
19918 if test -n "$ac_config_files"; then
19919 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19922 if test -n "$ac_config_headers"; then
19923 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19926 if test -n "$ac_config_links"; then
19927 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19930 if test -n "$ac_config_commands"; then
19931 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19934 cat >>$CONFIG_STATUS <<\_ACEOF
19936 ac_cs_usage="\
19937 \`$as_me' instantiates files from templates according to the
19938 current configuration.
19940 Usage: $0 [OPTIONS] [FILE]...
19942 -h, --help print this help, then exit
19943 -V, --version print version number, then exit
19944 -q, --quiet do not print progress messages
19945 -d, --debug don't remove temporary files
19946 --recheck update $as_me by reconfiguring in the same conditions
19947 --file=FILE[:TEMPLATE]
19948 instantiate the configuration file FILE
19949 --header=FILE[:TEMPLATE]
19950 instantiate the configuration header FILE
19952 Configuration files:
19953 $config_files
19955 Configuration headers:
19956 $config_headers
19958 Configuration commands:
19959 $config_commands
19961 Report bugs to <bug-autoconf@gnu.org>."
19962 _ACEOF
19964 cat >>$CONFIG_STATUS <<_ACEOF
19965 ac_cs_version="\\
19966 GNU OpenMP Runtime Library config.status 1.0
19967 configured by $0, generated by GNU Autoconf 2.59,
19968 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19970 Copyright (C) 2003 Free Software Foundation, Inc.
19971 This config.status script is free software; the Free Software Foundation
19972 gives unlimited permission to copy, distribute and modify it."
19973 srcdir=$srcdir
19974 INSTALL="$INSTALL"
19975 _ACEOF
19977 cat >>$CONFIG_STATUS <<\_ACEOF
19978 # If no file are specified by the user, then we need to provide default
19979 # value. By we need to know if files were specified by the user.
19980 ac_need_defaults=:
19981 while test $# != 0
19983 case $1 in
19984 --*=*)
19985 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19986 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19987 ac_shift=:
19990 ac_option=$1
19991 ac_optarg=$2
19992 ac_shift=shift
19994 *) # This is not an option, so the user has probably given explicit
19995 # arguments.
19996 ac_option=$1
19997 ac_need_defaults=false;;
19998 esac
20000 case $ac_option in
20001 # Handling of the options.
20002 _ACEOF
20003 cat >>$CONFIG_STATUS <<\_ACEOF
20004 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20005 ac_cs_recheck=: ;;
20006 --version | --vers* | -V )
20007 echo "$ac_cs_version"; exit 0 ;;
20008 --he | --h)
20009 # Conflict between --help and --header
20010 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20011 Try \`$0 --help' for more information." >&5
20012 echo "$as_me: error: ambiguous option: $1
20013 Try \`$0 --help' for more information." >&2;}
20014 { (exit 1); exit 1; }; };;
20015 --help | --hel | -h )
20016 echo "$ac_cs_usage"; exit 0 ;;
20017 --debug | --d* | -d )
20018 debug=: ;;
20019 --file | --fil | --fi | --f )
20020 $ac_shift
20021 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20022 ac_need_defaults=false;;
20023 --header | --heade | --head | --hea )
20024 $ac_shift
20025 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20026 ac_need_defaults=false;;
20027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20028 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20029 ac_cs_silent=: ;;
20031 # This is an error.
20032 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20033 Try \`$0 --help' for more information." >&5
20034 echo "$as_me: error: unrecognized option: $1
20035 Try \`$0 --help' for more information." >&2;}
20036 { (exit 1); exit 1; }; } ;;
20038 *) ac_config_targets="$ac_config_targets $1" ;;
20040 esac
20041 shift
20042 done
20044 ac_configure_extra_args=
20046 if $ac_cs_silent; then
20047 exec 6>/dev/null
20048 ac_configure_extra_args="$ac_configure_extra_args --silent"
20051 _ACEOF
20052 cat >>$CONFIG_STATUS <<_ACEOF
20053 if \$ac_cs_recheck; then
20054 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20055 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20058 _ACEOF
20060 cat >>$CONFIG_STATUS <<_ACEOF
20062 # INIT-COMMANDS section.
20066 srcdir="$srcdir"
20067 host="$host"
20068 target="$target"
20069 with_multisubdir="$with_multisubdir"
20070 with_multisrctop="$with_multisrctop"
20071 with_target_subdir="$with_target_subdir"
20072 ac_configure_args="${multilib_arg} ${ac_configure_args}"
20073 multi_basedir="$multi_basedir"
20074 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
20075 CC="$CC"
20076 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20079 # The HP-UX ksh and POSIX shell print the target directory to stdout
20080 # if CDPATH is set.
20081 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20083 sed_quote_subst='$sed_quote_subst'
20084 double_quote_subst='$double_quote_subst'
20085 delay_variable_subst='$delay_variable_subst'
20086 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20087 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20088 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20089 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20090 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20091 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20092 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20093 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20094 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20095 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20096 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20097 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20098 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20099 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20100 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20101 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20102 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20103 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20104 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20105 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20106 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20107 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20108 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20109 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20110 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20111 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20112 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20113 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20114 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20115 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20116 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20117 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20118 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20119 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20120 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20121 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20122 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20123 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20124 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20125 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20126 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20127 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20128 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20129 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"`'
20130 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20131 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20132 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20133 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20134 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20135 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20136 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20137 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20138 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20139 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20140 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20141 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20142 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20143 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20144 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20145 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20146 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20147 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20148 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20149 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20150 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20151 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20152 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20153 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20154 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20155 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20156 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20157 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20158 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20159 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20160 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20161 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20162 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20163 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20164 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20165 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20166 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20167 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20168 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20169 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20170 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20171 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20172 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20173 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20174 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20175 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20176 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20177 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20178 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20179 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20180 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20181 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20182 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20183 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20184 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20185 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20186 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20187 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20188 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20189 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20190 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20191 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20192 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20193 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20194 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20195 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20196 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20197 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20198 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20199 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20200 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20201 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20202 LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
20203 old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20204 compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
20205 GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
20206 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20207 lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
20208 lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20209 lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
20210 lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
20211 archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
20212 enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
20213 export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20214 whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20215 compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
20216 old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20217 old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20218 archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20219 archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20220 module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20221 module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20222 with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20223 allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20224 no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20225 hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20226 hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20227 hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
20228 hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
20229 hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
20230 hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
20231 hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
20232 hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20233 inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
20234 link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
20235 fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20236 always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
20237 export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20238 exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20239 include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20240 prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20241 file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20242 hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
20243 predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20244 postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20245 predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20246 postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20247 compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20249 LTCC='$LTCC'
20250 LTCFLAGS='$LTCFLAGS'
20251 compiler='$compiler_DEFAULT'
20253 # Quote evaled strings.
20254 for var in SED \
20255 GREP \
20256 EGREP \
20257 FGREP \
20258 LD \
20259 NM \
20260 LN_S \
20261 lt_SP2NL \
20262 lt_NL2SP \
20263 reload_flag \
20264 deplibs_check_method \
20265 file_magic_cmd \
20266 AR \
20267 AR_FLAGS \
20268 STRIP \
20269 RANLIB \
20270 CC \
20271 CFLAGS \
20272 compiler \
20273 lt_cv_sys_global_symbol_pipe \
20274 lt_cv_sys_global_symbol_to_cdecl \
20275 lt_cv_sys_global_symbol_to_c_name_address \
20276 SHELL \
20277 ECHO \
20278 lt_prog_compiler_no_builtin_flag \
20279 lt_prog_compiler_wl \
20280 lt_prog_compiler_pic \
20281 lt_prog_compiler_static \
20282 lt_cv_prog_compiler_c_o \
20283 need_locks \
20284 shrext_cmds \
20285 export_dynamic_flag_spec \
20286 whole_archive_flag_spec \
20287 compiler_needs_object \
20288 with_gnu_ld \
20289 allow_undefined_flag \
20290 no_undefined_flag \
20291 hardcode_libdir_flag_spec \
20292 hardcode_libdir_flag_spec_ld \
20293 hardcode_libdir_separator \
20294 fix_srcfile_path \
20295 exclude_expsyms \
20296 include_expsyms \
20297 file_list_spec \
20298 variables_saved_for_relink \
20299 libname_spec \
20300 library_names_spec \
20301 soname_spec \
20302 finish_eval \
20303 old_striplib \
20304 striplib \
20305 predep_objects \
20306 postdep_objects \
20307 predeps \
20308 postdeps \
20309 compiler_lib_search_path \
20310 LD_FC \
20311 compiler_FC \
20312 lt_prog_compiler_no_builtin_flag_FC \
20313 lt_prog_compiler_wl_FC \
20314 lt_prog_compiler_pic_FC \
20315 lt_prog_compiler_static_FC \
20316 lt_cv_prog_compiler_c_o_FC \
20317 export_dynamic_flag_spec_FC \
20318 whole_archive_flag_spec_FC \
20319 compiler_needs_object_FC \
20320 with_gnu_ld_FC \
20321 allow_undefined_flag_FC \
20322 no_undefined_flag_FC \
20323 hardcode_libdir_flag_spec_FC \
20324 hardcode_libdir_flag_spec_ld_FC \
20325 hardcode_libdir_separator_FC \
20326 fix_srcfile_path_FC \
20327 exclude_expsyms_FC \
20328 include_expsyms_FC \
20329 file_list_spec_FC \
20330 predep_objects_FC \
20331 postdep_objects_FC \
20332 predeps_FC \
20333 postdeps_FC \
20334 compiler_lib_search_path_FC; do
20335 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20336 *[\\\\\\\`\\"\\\$]*)
20337 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20340 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20342 esac
20343 done
20345 # Double-quote double-evaled strings.
20346 for var in reload_cmds \
20347 old_postinstall_cmds \
20348 old_postuninstall_cmds \
20349 old_archive_cmds \
20350 extract_expsyms_cmds \
20351 old_archive_from_new_cmds \
20352 old_archive_from_expsyms_cmds \
20353 archive_cmds \
20354 archive_expsym_cmds \
20355 module_cmds \
20356 module_expsym_cmds \
20357 export_symbols_cmds \
20358 prelink_cmds \
20359 postinstall_cmds \
20360 postuninstall_cmds \
20361 finish_cmds \
20362 sys_lib_search_path_spec \
20363 sys_lib_dlsearch_path_spec \
20364 old_archive_cmds_FC \
20365 old_archive_from_new_cmds_FC \
20366 old_archive_from_expsyms_cmds_FC \
20367 archive_cmds_FC \
20368 archive_expsym_cmds_FC \
20369 module_cmds_FC \
20370 module_expsym_cmds_FC \
20371 export_symbols_cmds_FC \
20372 prelink_cmds_FC; do
20373 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20374 *[\\\\\\\`\\"\\\$]*)
20375 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20378 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20380 esac
20381 done
20383 # Fix-up fallback echo if it was mangled by the above quoting rules.
20384 case \$lt_ECHO in
20385 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20387 esac
20389 ac_aux_dir='$ac_aux_dir'
20390 xsi_shell='$xsi_shell'
20391 lt_shell_append='$lt_shell_append'
20393 # See if we are running on zsh, and set the options which allow our
20394 # commands through without removal of \ escapes INIT.
20395 if test -n "\${ZSH_VERSION+set}" ; then
20396 setopt NO_GLOB_SUBST
20400 PACKAGE='$PACKAGE'
20401 VERSION='$VERSION'
20402 TIMESTAMP='$TIMESTAMP'
20403 RM='$RM'
20404 ofile='$ofile'
20411 GCC="$GCC"
20412 CC="$CC"
20413 acx_cv_header_stdint="$acx_cv_header_stdint"
20414 acx_cv_type_int8_t="$acx_cv_type_int8_t"
20415 acx_cv_type_int16_t="$acx_cv_type_int16_t"
20416 acx_cv_type_int32_t="$acx_cv_type_int32_t"
20417 acx_cv_type_int64_t="$acx_cv_type_int64_t"
20418 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
20419 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
20420 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
20421 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20422 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20423 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
20424 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20425 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20426 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
20429 _ACEOF
20433 cat >>$CONFIG_STATUS <<\_ACEOF
20434 for ac_config_target in $ac_config_targets
20436 case "$ac_config_target" in
20437 # Handling of arguments.
20438 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
20439 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
20440 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
20441 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
20442 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20443 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20444 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
20445 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20446 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20447 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20448 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
20449 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20450 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20451 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20452 { (exit 1); exit 1; }; };;
20453 esac
20454 done
20456 # If the user did not use the arguments to specify the items to instantiate,
20457 # then the envvar interface is used. Set only those that are not.
20458 # We use the long form for the default assignment because of an extremely
20459 # bizarre bug on SunOS 4.1.3.
20460 if $ac_need_defaults; then
20461 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20462 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20463 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20466 # Have a temporary directory for convenience. Make it in the build tree
20467 # simply because there is no reason to put it here, and in addition,
20468 # creating and moving files from /tmp can sometimes cause problems.
20469 # Create a temporary directory, and hook for its removal unless debugging.
20470 $debug ||
20472 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20473 trap '{ (exit 1); exit 1; }' 1 2 13 15
20476 # Create a (secure) tmp directory for tmp files.
20479 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20480 test -n "$tmp" && test -d "$tmp"
20481 } ||
20483 tmp=./confstat$$-$RANDOM
20484 (umask 077 && mkdir $tmp)
20485 } ||
20487 echo "$me: cannot create a temporary directory in ." >&2
20488 { (exit 1); exit 1; }
20491 _ACEOF
20493 cat >>$CONFIG_STATUS <<_ACEOF
20496 # CONFIG_FILES section.
20499 # No need to generate the scripts if there are no CONFIG_FILES.
20500 # This happens for instance when ./config.status config.h
20501 if test -n "\$CONFIG_FILES"; then
20502 # Protect against being on the right side of a sed subst in config.status.
20503 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20504 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20505 s,@SHELL@,$SHELL,;t t
20506 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20507 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20508 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20509 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20510 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20511 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20512 s,@exec_prefix@,$exec_prefix,;t t
20513 s,@prefix@,$prefix,;t t
20514 s,@program_transform_name@,$program_transform_name,;t t
20515 s,@bindir@,$bindir,;t t
20516 s,@sbindir@,$sbindir,;t t
20517 s,@libexecdir@,$libexecdir,;t t
20518 s,@datadir@,$datadir,;t t
20519 s,@sysconfdir@,$sysconfdir,;t t
20520 s,@sharedstatedir@,$sharedstatedir,;t t
20521 s,@localstatedir@,$localstatedir,;t t
20522 s,@libdir@,$libdir,;t t
20523 s,@includedir@,$includedir,;t t
20524 s,@oldincludedir@,$oldincludedir,;t t
20525 s,@infodir@,$infodir,;t t
20526 s,@mandir@,$mandir,;t t
20527 s,@build_alias@,$build_alias,;t t
20528 s,@host_alias@,$host_alias,;t t
20529 s,@target_alias@,$target_alias,;t t
20530 s,@DEFS@,$DEFS,;t t
20531 s,@ECHO_C@,$ECHO_C,;t t
20532 s,@ECHO_N@,$ECHO_N,;t t
20533 s,@ECHO_T@,$ECHO_T,;t t
20534 s,@LIBS@,$LIBS,;t t
20535 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
20536 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
20537 s,@build@,$build,;t t
20538 s,@build_cpu@,$build_cpu,;t t
20539 s,@build_vendor@,$build_vendor,;t t
20540 s,@build_os@,$build_os,;t t
20541 s,@host@,$host,;t t
20542 s,@host_cpu@,$host_cpu,;t t
20543 s,@host_vendor@,$host_vendor,;t t
20544 s,@host_os@,$host_os,;t t
20545 s,@target@,$target,;t t
20546 s,@target_cpu@,$target_cpu,;t t
20547 s,@target_vendor@,$target_vendor,;t t
20548 s,@target_os@,$target_os,;t t
20549 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20550 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20551 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20552 s,@CYGPATH_W@,$CYGPATH_W,;t t
20553 s,@PACKAGE@,$PACKAGE,;t t
20554 s,@VERSION@,$VERSION,;t t
20555 s,@ACLOCAL@,$ACLOCAL,;t t
20556 s,@AUTOCONF@,$AUTOCONF,;t t
20557 s,@AUTOMAKE@,$AUTOMAKE,;t t
20558 s,@AUTOHEADER@,$AUTOHEADER,;t t
20559 s,@MAKEINFO@,$MAKEINFO,;t t
20560 s,@install_sh@,$install_sh,;t t
20561 s,@STRIP@,$STRIP,;t t
20562 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20563 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20564 s,@mkdir_p@,$mkdir_p,;t t
20565 s,@AWK@,$AWK,;t t
20566 s,@SET_MAKE@,$SET_MAKE,;t t
20567 s,@am__leading_dot@,$am__leading_dot,;t t
20568 s,@AMTAR@,$AMTAR,;t t
20569 s,@am__tar@,$am__tar,;t t
20570 s,@am__untar@,$am__untar,;t t
20571 s,@multi_basedir@,$multi_basedir,;t t
20572 s,@toolexecdir@,$toolexecdir,;t t
20573 s,@toolexeclibdir@,$toolexeclibdir,;t t
20574 s,@CC@,$CC,;t t
20575 s,@ac_ct_CC@,$ac_ct_CC,;t t
20576 s,@EXEEXT@,$EXEEXT,;t t
20577 s,@OBJEXT@,$OBJEXT,;t t
20578 s,@DEPDIR@,$DEPDIR,;t t
20579 s,@am__include@,$am__include,;t t
20580 s,@am__quote@,$am__quote,;t t
20581 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20582 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20583 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20584 s,@CCDEPMODE@,$CCDEPMODE,;t t
20585 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20586 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20587 s,@CFLAGS@,$CFLAGS,;t t
20588 s,@AR@,$AR,;t t
20589 s,@ac_ct_AR@,$ac_ct_AR,;t t
20590 s,@RANLIB@,$RANLIB,;t t
20591 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20592 s,@PERL@,$PERL,;t t
20593 s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
20594 s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
20595 s,@LIBTOOL@,$LIBTOOL,;t t
20596 s,@SED@,$SED,;t t
20597 s,@EGREP@,$EGREP,;t t
20598 s,@FGREP@,$FGREP,;t t
20599 s,@GREP@,$GREP,;t t
20600 s,@LD@,$LD,;t t
20601 s,@DUMPBIN@,$DUMPBIN,;t t
20602 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
20603 s,@NM@,$NM,;t t
20604 s,@LN_S@,$LN_S,;t t
20605 s,@lt_ECHO@,$lt_ECHO,;t t
20606 s,@CPP@,$CPP,;t t
20607 s,@CPPFLAGS@,$CPPFLAGS,;t t
20608 s,@enable_shared@,$enable_shared,;t t
20609 s,@enable_static@,$enable_static,;t t
20610 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20611 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20612 s,@MAINT@,$MAINT,;t t
20613 s,@FC@,$FC,;t t
20614 s,@FCFLAGS@,$FCFLAGS,;t t
20615 s,@LDFLAGS@,$LDFLAGS,;t t
20616 s,@ac_ct_FC@,$ac_ct_FC,;t t
20617 s,@libtool_VERSION@,$libtool_VERSION,;t t
20618 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
20619 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
20620 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
20621 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
20622 s,@config_path@,$config_path,;t t
20623 s,@XCFLAGS@,$XCFLAGS,;t t
20624 s,@XLDFLAGS@,$XLDFLAGS,;t t
20625 s,@link_gomp@,$link_gomp,;t t
20626 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
20627 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
20628 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
20629 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
20630 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
20631 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
20632 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
20633 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
20634 s,@LIBOBJS@,$LIBOBJS,;t t
20635 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20636 CEOF
20638 _ACEOF
20640 cat >>$CONFIG_STATUS <<\_ACEOF
20641 # Split the substitutions into bite-sized pieces for seds with
20642 # small command number limits, like on Digital OSF/1 and HP-UX.
20643 ac_max_sed_lines=48
20644 ac_sed_frag=1 # Number of current file.
20645 ac_beg=1 # First line for current file.
20646 ac_end=$ac_max_sed_lines # Line after last line for current file.
20647 ac_more_lines=:
20648 ac_sed_cmds=
20649 while $ac_more_lines; do
20650 if test $ac_beg -gt 1; then
20651 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20652 else
20653 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20655 if test ! -s $tmp/subs.frag; then
20656 ac_more_lines=false
20657 else
20658 # The purpose of the label and of the branching condition is to
20659 # speed up the sed processing (if there are no `@' at all, there
20660 # is no need to browse any of the substitutions).
20661 # These are the two extra sed commands mentioned above.
20662 (echo ':t
20663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20664 if test -z "$ac_sed_cmds"; then
20665 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20666 else
20667 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20669 ac_sed_frag=`expr $ac_sed_frag + 1`
20670 ac_beg=$ac_end
20671 ac_end=`expr $ac_end + $ac_max_sed_lines`
20673 done
20674 if test -z "$ac_sed_cmds"; then
20675 ac_sed_cmds=cat
20677 fi # test -n "$CONFIG_FILES"
20679 _ACEOF
20680 cat >>$CONFIG_STATUS <<\_ACEOF
20681 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20682 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20683 case $ac_file in
20684 - | *:- | *:-:* ) # input from stdin
20685 cat >$tmp/stdin
20686 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20687 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20688 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20689 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20690 * ) ac_file_in=$ac_file.in ;;
20691 esac
20693 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20694 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20696 X"$ac_file" : 'X\(//\)[^/]' \| \
20697 X"$ac_file" : 'X\(//\)$' \| \
20698 X"$ac_file" : 'X\(/\)' \| \
20699 . : '\(.\)' 2>/dev/null ||
20700 echo X"$ac_file" |
20701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20703 /^X\(\/\/\)$/{ s//\1/; q; }
20704 /^X\(\/\).*/{ s//\1/; q; }
20705 s/.*/./; q'`
20706 { if $as_mkdir_p; then
20707 mkdir -p "$ac_dir"
20708 else
20709 as_dir="$ac_dir"
20710 as_dirs=
20711 while test ! -d "$as_dir"; do
20712 as_dirs="$as_dir $as_dirs"
20713 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20715 X"$as_dir" : 'X\(//\)[^/]' \| \
20716 X"$as_dir" : 'X\(//\)$' \| \
20717 X"$as_dir" : 'X\(/\)' \| \
20718 . : '\(.\)' 2>/dev/null ||
20719 echo X"$as_dir" |
20720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20722 /^X\(\/\/\)$/{ s//\1/; q; }
20723 /^X\(\/\).*/{ s//\1/; q; }
20724 s/.*/./; q'`
20725 done
20726 test ! -n "$as_dirs" || mkdir $as_dirs
20727 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20728 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20729 { (exit 1); exit 1; }; }; }
20731 ac_builddir=.
20733 if test "$ac_dir" != .; then
20734 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20735 # A "../" for each directory in $ac_dir_suffix.
20736 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20737 else
20738 ac_dir_suffix= ac_top_builddir=
20741 case $srcdir in
20742 .) # No --srcdir option. We are building in place.
20743 ac_srcdir=.
20744 if test -z "$ac_top_builddir"; then
20745 ac_top_srcdir=.
20746 else
20747 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20748 fi ;;
20749 [\\/]* | ?:[\\/]* ) # Absolute path.
20750 ac_srcdir=$srcdir$ac_dir_suffix;
20751 ac_top_srcdir=$srcdir ;;
20752 *) # Relative path.
20753 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20754 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20755 esac
20757 # Do not use `cd foo && pwd` to compute absolute paths, because
20758 # the directories may not exist.
20759 case `pwd` in
20760 .) ac_abs_builddir="$ac_dir";;
20762 case "$ac_dir" in
20763 .) ac_abs_builddir=`pwd`;;
20764 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20765 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20766 esac;;
20767 esac
20768 case $ac_abs_builddir in
20769 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20771 case ${ac_top_builddir}. in
20772 .) ac_abs_top_builddir=$ac_abs_builddir;;
20773 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20774 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20775 esac;;
20776 esac
20777 case $ac_abs_builddir in
20778 .) ac_abs_srcdir=$ac_srcdir;;
20780 case $ac_srcdir in
20781 .) ac_abs_srcdir=$ac_abs_builddir;;
20782 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20783 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20784 esac;;
20785 esac
20786 case $ac_abs_builddir in
20787 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20789 case $ac_top_srcdir in
20790 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20791 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20792 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20793 esac;;
20794 esac
20797 case $INSTALL in
20798 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20799 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20800 esac
20802 if test x"$ac_file" != x-; then
20803 { echo "$as_me:$LINENO: creating $ac_file" >&5
20804 echo "$as_me: creating $ac_file" >&6;}
20805 rm -f "$ac_file"
20807 # Let's still pretend it is `configure' which instantiates (i.e., don't
20808 # use $as_me), people would be surprised to read:
20809 # /* config.h. Generated by config.status. */
20810 if test x"$ac_file" = x-; then
20811 configure_input=
20812 else
20813 configure_input="$ac_file. "
20815 configure_input=$configure_input"Generated from `echo $ac_file_in |
20816 sed 's,.*/,,'` by configure."
20818 # First look for the input files in the build tree, otherwise in the
20819 # src tree.
20820 ac_file_inputs=`IFS=:
20821 for f in $ac_file_in; do
20822 case $f in
20823 -) echo $tmp/stdin ;;
20824 [\\/$]*)
20825 # Absolute (can't be DOS-style, as IFS=:)
20826 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20827 echo "$as_me: error: cannot find input file: $f" >&2;}
20828 { (exit 1); exit 1; }; }
20829 echo "$f";;
20830 *) # Relative
20831 if test -f "$f"; then
20832 # Build tree
20833 echo "$f"
20834 elif test -f "$srcdir/$f"; then
20835 # Source tree
20836 echo "$srcdir/$f"
20837 else
20838 # /dev/null tree
20839 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20840 echo "$as_me: error: cannot find input file: $f" >&2;}
20841 { (exit 1); exit 1; }; }
20842 fi;;
20843 esac
20844 done` || { (exit 1); exit 1; }
20845 _ACEOF
20846 cat >>$CONFIG_STATUS <<_ACEOF
20847 sed "$ac_vpsub
20848 $extrasub
20849 _ACEOF
20850 cat >>$CONFIG_STATUS <<\_ACEOF
20852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20853 s,@configure_input@,$configure_input,;t t
20854 s,@srcdir@,$ac_srcdir,;t t
20855 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20856 s,@top_srcdir@,$ac_top_srcdir,;t t
20857 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20858 s,@builddir@,$ac_builddir,;t t
20859 s,@abs_builddir@,$ac_abs_builddir,;t t
20860 s,@top_builddir@,$ac_top_builddir,;t t
20861 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20862 s,@INSTALL@,$ac_INSTALL,;t t
20863 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20864 rm -f $tmp/stdin
20865 if test x"$ac_file" != x-; then
20866 mv $tmp/out $ac_file
20867 else
20868 cat $tmp/out
20869 rm -f $tmp/out
20872 done
20873 _ACEOF
20874 cat >>$CONFIG_STATUS <<\_ACEOF
20877 # CONFIG_HEADER section.
20880 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20881 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20883 # ac_d sets the value in "#define NAME VALUE" lines.
20884 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20885 ac_dB='[ ].*$,\1#\2'
20886 ac_dC=' '
20887 ac_dD=',;t'
20888 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20889 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20890 ac_uB='$,\1#\2define\3'
20891 ac_uC=' '
20892 ac_uD=',;t'
20894 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20895 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20896 case $ac_file in
20897 - | *:- | *:-:* ) # input from stdin
20898 cat >$tmp/stdin
20899 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20900 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20901 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20902 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20903 * ) ac_file_in=$ac_file.in ;;
20904 esac
20906 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20907 echo "$as_me: creating $ac_file" >&6;}
20909 # First look for the input files in the build tree, otherwise in the
20910 # src tree.
20911 ac_file_inputs=`IFS=:
20912 for f in $ac_file_in; do
20913 case $f in
20914 -) echo $tmp/stdin ;;
20915 [\\/$]*)
20916 # Absolute (can't be DOS-style, as IFS=:)
20917 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20918 echo "$as_me: error: cannot find input file: $f" >&2;}
20919 { (exit 1); exit 1; }; }
20920 # Do quote $f, to prevent DOS paths from being IFS'd.
20921 echo "$f";;
20922 *) # Relative
20923 if test -f "$f"; then
20924 # Build tree
20925 echo "$f"
20926 elif test -f "$srcdir/$f"; then
20927 # Source tree
20928 echo "$srcdir/$f"
20929 else
20930 # /dev/null tree
20931 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20932 echo "$as_me: error: cannot find input file: $f" >&2;}
20933 { (exit 1); exit 1; }; }
20934 fi;;
20935 esac
20936 done` || { (exit 1); exit 1; }
20937 # Remove the trailing spaces.
20938 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20940 _ACEOF
20942 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20943 # `conftest.undefs', that substitutes the proper values into
20944 # config.h.in to produce config.h. The first handles `#define'
20945 # templates, and the second `#undef' templates.
20946 # And first: Protect against being on the right side of a sed subst in
20947 # config.status. Protect against being in an unquoted here document
20948 # in config.status.
20949 rm -f conftest.defines conftest.undefs
20950 # Using a here document instead of a string reduces the quoting nightmare.
20951 # Putting comments in sed scripts is not portable.
20953 # `end' is used to avoid that the second main sed command (meant for
20954 # 0-ary CPP macros) applies to n-ary macro definitions.
20955 # See the Autoconf documentation for `clear'.
20956 cat >confdef2sed.sed <<\_ACEOF
20957 s/[\\&,]/\\&/g
20958 s,[\\$`],\\&,g
20959 t clear
20960 : clear
20961 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20962 t end
20963 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20964 : end
20965 _ACEOF
20966 # If some macros were called several times there might be several times
20967 # the same #defines, which is useless. Nevertheless, we may not want to
20968 # sort them, since we want the *last* AC-DEFINE to be honored.
20969 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20970 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20971 rm -f confdef2sed.sed
20973 # This sed command replaces #undef with comments. This is necessary, for
20974 # example, in the case of _POSIX_SOURCE, which is predefined and required
20975 # on some systems where configure will not decide to define it.
20976 cat >>conftest.undefs <<\_ACEOF
20977 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20978 _ACEOF
20980 # Break up conftest.defines because some shells have a limit on the size
20981 # of here documents, and old seds have small limits too (100 cmds).
20982 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20983 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20984 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20985 echo ' :' >>$CONFIG_STATUS
20986 rm -f conftest.tail
20987 while grep . conftest.defines >/dev/null
20989 # Write a limited-size here document to $tmp/defines.sed.
20990 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20991 # Speed up: don't consider the non `#define' lines.
20992 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20993 # Work around the forget-to-reset-the-flag bug.
20994 echo 't clr' >>$CONFIG_STATUS
20995 echo ': clr' >>$CONFIG_STATUS
20996 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20997 echo 'CEOF
20998 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20999 rm -f $tmp/in
21000 mv $tmp/out $tmp/in
21001 ' >>$CONFIG_STATUS
21002 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21003 rm -f conftest.defines
21004 mv conftest.tail conftest.defines
21005 done
21006 rm -f conftest.defines
21007 echo ' fi # grep' >>$CONFIG_STATUS
21008 echo >>$CONFIG_STATUS
21010 # Break up conftest.undefs because some shells have a limit on the size
21011 # of here documents, and old seds have small limits too (100 cmds).
21012 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21013 rm -f conftest.tail
21014 while grep . conftest.undefs >/dev/null
21016 # Write a limited-size here document to $tmp/undefs.sed.
21017 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21018 # Speed up: don't consider the non `#undef'
21019 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21020 # Work around the forget-to-reset-the-flag bug.
21021 echo 't clr' >>$CONFIG_STATUS
21022 echo ': clr' >>$CONFIG_STATUS
21023 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21024 echo 'CEOF
21025 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21026 rm -f $tmp/in
21027 mv $tmp/out $tmp/in
21028 ' >>$CONFIG_STATUS
21029 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21030 rm -f conftest.undefs
21031 mv conftest.tail conftest.undefs
21032 done
21033 rm -f conftest.undefs
21035 cat >>$CONFIG_STATUS <<\_ACEOF
21036 # Let's still pretend it is `configure' which instantiates (i.e., don't
21037 # use $as_me), people would be surprised to read:
21038 # /* config.h. Generated by config.status. */
21039 if test x"$ac_file" = x-; then
21040 echo "/* Generated by configure. */" >$tmp/config.h
21041 else
21042 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21044 cat $tmp/in >>$tmp/config.h
21045 rm -f $tmp/in
21046 if test x"$ac_file" != x-; then
21047 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21048 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21049 echo "$as_me: $ac_file is unchanged" >&6;}
21050 else
21051 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21052 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21053 X"$ac_file" : 'X\(//\)[^/]' \| \
21054 X"$ac_file" : 'X\(//\)$' \| \
21055 X"$ac_file" : 'X\(/\)' \| \
21056 . : '\(.\)' 2>/dev/null ||
21057 echo X"$ac_file" |
21058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21060 /^X\(\/\/\)$/{ s//\1/; q; }
21061 /^X\(\/\).*/{ s//\1/; q; }
21062 s/.*/./; q'`
21063 { if $as_mkdir_p; then
21064 mkdir -p "$ac_dir"
21065 else
21066 as_dir="$ac_dir"
21067 as_dirs=
21068 while test ! -d "$as_dir"; do
21069 as_dirs="$as_dir $as_dirs"
21070 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21072 X"$as_dir" : 'X\(//\)[^/]' \| \
21073 X"$as_dir" : 'X\(//\)$' \| \
21074 X"$as_dir" : 'X\(/\)' \| \
21075 . : '\(.\)' 2>/dev/null ||
21076 echo X"$as_dir" |
21077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21079 /^X\(\/\/\)$/{ s//\1/; q; }
21080 /^X\(\/\).*/{ s//\1/; q; }
21081 s/.*/./; q'`
21082 done
21083 test ! -n "$as_dirs" || mkdir $as_dirs
21084 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21085 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21086 { (exit 1); exit 1; }; }; }
21088 rm -f $ac_file
21089 mv $tmp/config.h $ac_file
21091 else
21092 cat $tmp/config.h
21093 rm -f $tmp/config.h
21095 # Compute $ac_file's index in $config_headers.
21096 _am_stamp_count=1
21097 for _am_header in $config_headers :; do
21098 case $_am_header in
21099 $ac_file | $ac_file:* )
21100 break ;;
21102 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21103 esac
21104 done
21105 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21106 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21107 X$ac_file : 'X\(//\)[^/]' \| \
21108 X$ac_file : 'X\(//\)$' \| \
21109 X$ac_file : 'X\(/\)' \| \
21110 . : '\(.\)' 2>/dev/null ||
21111 echo X$ac_file |
21112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21114 /^X\(\/\/\)$/{ s//\1/; q; }
21115 /^X\(\/\).*/{ s//\1/; q; }
21116 s/.*/./; q'`/stamp-h$_am_stamp_count
21117 done
21118 _ACEOF
21119 cat >>$CONFIG_STATUS <<\_ACEOF
21122 # CONFIG_COMMANDS section.
21124 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21125 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21126 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21127 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21128 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21129 X"$ac_dest" : 'X\(//\)[^/]' \| \
21130 X"$ac_dest" : 'X\(//\)$' \| \
21131 X"$ac_dest" : 'X\(/\)' \| \
21132 . : '\(.\)' 2>/dev/null ||
21133 echo X"$ac_dest" |
21134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21136 /^X\(\/\/\)$/{ s//\1/; q; }
21137 /^X\(\/\).*/{ s//\1/; q; }
21138 s/.*/./; q'`
21139 { if $as_mkdir_p; then
21140 mkdir -p "$ac_dir"
21141 else
21142 as_dir="$ac_dir"
21143 as_dirs=
21144 while test ! -d "$as_dir"; do
21145 as_dirs="$as_dir $as_dirs"
21146 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21147 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21148 X"$as_dir" : 'X\(//\)[^/]' \| \
21149 X"$as_dir" : 'X\(//\)$' \| \
21150 X"$as_dir" : 'X\(/\)' \| \
21151 . : '\(.\)' 2>/dev/null ||
21152 echo X"$as_dir" |
21153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21154 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21155 /^X\(\/\/\)$/{ s//\1/; q; }
21156 /^X\(\/\).*/{ s//\1/; q; }
21157 s/.*/./; q'`
21158 done
21159 test ! -n "$as_dirs" || mkdir $as_dirs
21160 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21161 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21162 { (exit 1); exit 1; }; }; }
21164 ac_builddir=.
21166 if test "$ac_dir" != .; then
21167 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21168 # A "../" for each directory in $ac_dir_suffix.
21169 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21170 else
21171 ac_dir_suffix= ac_top_builddir=
21174 case $srcdir in
21175 .) # No --srcdir option. We are building in place.
21176 ac_srcdir=.
21177 if test -z "$ac_top_builddir"; then
21178 ac_top_srcdir=.
21179 else
21180 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21181 fi ;;
21182 [\\/]* | ?:[\\/]* ) # Absolute path.
21183 ac_srcdir=$srcdir$ac_dir_suffix;
21184 ac_top_srcdir=$srcdir ;;
21185 *) # Relative path.
21186 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21187 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21188 esac
21190 # Do not use `cd foo && pwd` to compute absolute paths, because
21191 # the directories may not exist.
21192 case `pwd` in
21193 .) ac_abs_builddir="$ac_dir";;
21195 case "$ac_dir" in
21196 .) ac_abs_builddir=`pwd`;;
21197 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21198 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21199 esac;;
21200 esac
21201 case $ac_abs_builddir in
21202 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21204 case ${ac_top_builddir}. in
21205 .) ac_abs_top_builddir=$ac_abs_builddir;;
21206 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21207 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21208 esac;;
21209 esac
21210 case $ac_abs_builddir in
21211 .) ac_abs_srcdir=$ac_srcdir;;
21213 case $ac_srcdir in
21214 .) ac_abs_srcdir=$ac_abs_builddir;;
21215 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21216 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21217 esac;;
21218 esac
21219 case $ac_abs_builddir in
21220 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21222 case $ac_top_srcdir in
21223 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21224 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21225 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21226 esac;;
21227 esac
21230 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21231 echo "$as_me: executing $ac_dest commands" >&6;}
21232 case $ac_dest in
21233 default-1 )
21234 # Only add multilib support code if we just rebuilt the top-level
21235 # Makefile.
21236 case " $CONFIG_FILES " in
21237 *" Makefile "*)
21238 ac_file=Makefile . ${multi_basedir}/config-ml.in
21240 esac ;;
21241 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21242 # Strip MF so we end up with the name of the file.
21243 mf=`echo "$mf" | sed -e 's/:.*$//'`
21244 # Check whether this is an Automake generated Makefile or not.
21245 # We used to match only the files named `Makefile.in', but
21246 # some people rename them; so instead we look at the file content.
21247 # Grep'ing the first line is not enough: some people post-process
21248 # each Makefile.in and add a new line on top of each file to say so.
21249 # So let's grep whole file.
21250 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21251 dirpart=`(dirname "$mf") 2>/dev/null ||
21252 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21253 X"$mf" : 'X\(//\)[^/]' \| \
21254 X"$mf" : 'X\(//\)$' \| \
21255 X"$mf" : 'X\(/\)' \| \
21256 . : '\(.\)' 2>/dev/null ||
21257 echo X"$mf" |
21258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21259 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21260 /^X\(\/\/\)$/{ s//\1/; q; }
21261 /^X\(\/\).*/{ s//\1/; q; }
21262 s/.*/./; q'`
21263 else
21264 continue
21266 # Extract the definition of DEPDIR, am__include, and am__quote
21267 # from the Makefile without running `make'.
21268 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21269 test -z "$DEPDIR" && continue
21270 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21271 test -z "am__include" && continue
21272 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21273 # When using ansi2knr, U may be empty or an underscore; expand it
21274 U=`sed -n 's/^U = //p' < "$mf"`
21275 # Find all dependency output files, they are included files with
21276 # $(DEPDIR) in their names. We invoke sed twice because it is the
21277 # simplest approach to changing $(DEPDIR) to its actual value in the
21278 # expansion.
21279 for file in `sed -n "
21280 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21281 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21282 # Make sure the directory exists.
21283 test -f "$dirpart/$file" && continue
21284 fdir=`(dirname "$file") 2>/dev/null ||
21285 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21286 X"$file" : 'X\(//\)[^/]' \| \
21287 X"$file" : 'X\(//\)$' \| \
21288 X"$file" : 'X\(/\)' \| \
21289 . : '\(.\)' 2>/dev/null ||
21290 echo X"$file" |
21291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21292 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21293 /^X\(\/\/\)$/{ s//\1/; q; }
21294 /^X\(\/\).*/{ s//\1/; q; }
21295 s/.*/./; q'`
21296 { if $as_mkdir_p; then
21297 mkdir -p $dirpart/$fdir
21298 else
21299 as_dir=$dirpart/$fdir
21300 as_dirs=
21301 while test ! -d "$as_dir"; do
21302 as_dirs="$as_dir $as_dirs"
21303 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21305 X"$as_dir" : 'X\(//\)[^/]' \| \
21306 X"$as_dir" : 'X\(//\)$' \| \
21307 X"$as_dir" : 'X\(/\)' \| \
21308 . : '\(.\)' 2>/dev/null ||
21309 echo X"$as_dir" |
21310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21311 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21312 /^X\(\/\/\)$/{ s//\1/; q; }
21313 /^X\(\/\).*/{ s//\1/; q; }
21314 s/.*/./; q'`
21315 done
21316 test ! -n "$as_dirs" || mkdir $as_dirs
21317 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21318 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21319 { (exit 1); exit 1; }; }; }
21321 # echo "creating $dirpart/$file"
21322 echo '# dummy' > "$dirpart/$file"
21323 done
21324 done
21326 libtool )
21328 # See if we are running on zsh, and set the options which allow our
21329 # commands through without removal of \ escapes.
21330 if test -n "${ZSH_VERSION+set}" ; then
21331 setopt NO_GLOB_SUBST
21334 cfgfile="${ofile}T"
21335 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21336 $RM "$cfgfile"
21338 cat <<_LT_EOF >> "$cfgfile"
21339 #! $SHELL
21341 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21342 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
21343 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21344 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21346 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21347 # 2006, 2007 Free Software Foundation, Inc.
21349 # This file is part of GNU Libtool:
21350 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
21352 # This program is free software; you can redistribute it and/or modify
21353 # it under the terms of the GNU General Public License as published by
21354 # the Free Software Foundation; either version 2 of the License, or
21355 # (at your option) any later version.
21357 # This program is distributed in the hope that it will be useful, but
21358 # WITHOUT ANY WARRANTY; without even the implied warranty of
21359 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21360 # General Public License for more details.
21362 # You should have received a copy of the GNU General Public License
21363 # along with this program; if not, a copy can be downloaded from
21364 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
21365 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21366 # MA 02110-1301, USA.
21368 # As a special exception to the GNU General Public License, if you
21369 # distribute this file as part of a program that contains a
21370 # configuration script generated by Autoconf, you may include it under
21371 # the same distribution terms that you use for the rest of that program.
21374 # The names of the tagged configurations supported by this script.
21375 available_tags="FC "
21377 # ### BEGIN LIBTOOL CONFIG
21379 # Which release of libtool.m4 was used?
21380 macro_version=$macro_version
21381 macro_revision=$macro_revision
21383 # Whether or not to build shared libraries.
21384 build_libtool_libs=$enable_shared
21386 # Whether or not to build static libraries.
21387 build_old_libs=$enable_static
21389 # What type of objects to build.
21390 pic_mode=$pic_mode
21392 # Whether or not to optimize for fast installation.
21393 fast_install=$enable_fast_install
21395 # The host system.
21396 host_alias=$host_alias
21397 host=$host
21398 host_os=$host_os
21400 # The build system.
21401 build_alias=$build_alias
21402 build=$build
21403 build_os=$build_os
21405 # A sed program that does not truncate output.
21406 SED=$lt_SED
21408 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21409 Xsed="\$SED -e 1s/^X//"
21411 # A grep program that handles long lines.
21412 GREP=$lt_GREP
21414 # An ERE matcher.
21415 EGREP=$lt_EGREP
21417 # A literal string matcher.
21418 FGREP=$lt_FGREP
21420 # A BSD- or MS-compatible name lister.
21421 NM=$lt_NM
21423 # Whether we need soft or hard links.
21424 LN_S=$lt_LN_S
21426 # What is the maximum length of a command?
21427 max_cmd_len=$max_cmd_len
21429 # Object file suffix (normally "o").
21430 objext=$ac_objext
21432 # Executable file suffix (normally "").
21433 exeext=$exeext
21435 # whether the shell understands "unset".
21436 lt_unset=$lt_unset
21438 # turn spaces into newlines.
21439 SP2NL=$lt_lt_SP2NL
21441 # turn newlines into spaces.
21442 NL2SP=$lt_lt_NL2SP
21444 # How to create reloadable object files.
21445 reload_flag=$lt_reload_flag
21446 reload_cmds=$lt_reload_cmds
21448 # Method to check whether dependent libraries are shared objects.
21449 deplibs_check_method=$lt_deplibs_check_method
21451 # Command to use when deplibs_check_method == "file_magic".
21452 file_magic_cmd=$lt_file_magic_cmd
21454 # The archiver.
21455 AR=$lt_AR
21456 AR_FLAGS=$lt_AR_FLAGS
21458 # A symbol stripping program.
21459 STRIP=$lt_STRIP
21461 # Commands used to install an old-style archive.
21462 RANLIB=$lt_RANLIB
21463 old_postinstall_cmds=$lt_old_postinstall_cmds
21464 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21466 # A C compiler.
21467 LTCC=$lt_CC
21469 # LTCC compiler flags.
21470 LTCFLAGS=$lt_CFLAGS
21472 # Take the output of nm and produce a listing of raw symbols and C names.
21473 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21475 # Transform the output of nm in a proper C declaration.
21476 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21478 # Transform the output of nm in a C name address pair.
21479 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21481 # The name of the directory that contains temporary libtool files.
21482 objdir=$objdir
21484 # Shell to use when invoking shell scripts.
21485 SHELL=$lt_SHELL
21487 # An echo program that does not interpret backslashes.
21488 ECHO=$lt_ECHO
21490 # Used to examine libraries when file_magic_cmd begins with "file".
21491 MAGIC_CMD=$MAGIC_CMD
21493 # Must we lock files when doing compilation?
21494 need_locks=$lt_need_locks
21496 # Old archive suffix (normally "a").
21497 libext=$libext
21499 # Shared library suffix (normally ".so").
21500 shrext_cmds=$lt_shrext_cmds
21502 # The commands to extract the exported symbol list from a shared archive.
21503 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21505 # Variables whose values should be saved in libtool wrapper scripts and
21506 # restored at link time.
21507 variables_saved_for_relink=$lt_variables_saved_for_relink
21509 # Do we need the "lib" prefix for modules?
21510 need_lib_prefix=$need_lib_prefix
21512 # Do we need a version for libraries?
21513 need_version=$need_version
21515 # Library versioning type.
21516 version_type=$version_type
21518 # Shared library runtime path variable.
21519 runpath_var=$runpath_var
21521 # Shared library path variable.
21522 shlibpath_var=$shlibpath_var
21524 # Is shlibpath searched before the hard-coded library search path?
21525 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21527 # Format of library name prefix.
21528 libname_spec=$lt_libname_spec
21530 # List of archive names. First name is the real one, the rest are links.
21531 # The last name is the one that the linker finds with -lNAME
21532 library_names_spec=$lt_library_names_spec
21534 # The coded name of the library, if different from the real name.
21535 soname_spec=$lt_soname_spec
21537 # Command to use after installation of a shared archive.
21538 postinstall_cmds=$lt_postinstall_cmds
21540 # Command to use after uninstallation of a shared archive.
21541 postuninstall_cmds=$lt_postuninstall_cmds
21543 # Commands used to finish a libtool library installation in a directory.
21544 finish_cmds=$lt_finish_cmds
21546 # As "finish_cmds", except a single script fragment to be evaled but
21547 # not shown.
21548 finish_eval=$lt_finish_eval
21550 # Whether we should hardcode library paths into libraries.
21551 hardcode_into_libs=$hardcode_into_libs
21553 # Compile-time system search path for libraries.
21554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21556 # Run-time system search path for libraries.
21557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21559 # Whether dlopen is supported.
21560 dlopen_support=$enable_dlopen
21562 # Whether dlopen of programs is supported.
21563 dlopen_self=$enable_dlopen_self
21565 # Whether dlopen of statically linked programs is supported.
21566 dlopen_self_static=$enable_dlopen_self_static
21568 # Commands to strip libraries.
21569 old_striplib=$lt_old_striplib
21570 striplib=$lt_striplib
21573 # The linker used to build libraries.
21574 LD=$lt_LD
21576 # Commands used to build an old-style archive.
21577 old_archive_cmds=$lt_old_archive_cmds
21579 # A language specific compiler.
21580 CC=$lt_compiler
21582 # Is the compiler the GNU compiler?
21583 with_gcc=$GCC
21585 # Compiler flag to turn off builtin functions.
21586 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21588 # How to pass a linker flag through the compiler.
21589 wl=$lt_lt_prog_compiler_wl
21591 # Additional compiler flags for building library objects.
21592 pic_flag=$lt_lt_prog_compiler_pic
21594 # Compiler flag to prevent dynamic linking.
21595 link_static_flag=$lt_lt_prog_compiler_static
21597 # Does compiler simultaneously support -c and -o options?
21598 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21600 # Whether or not to add -lc for building shared libraries.
21601 build_libtool_need_lc=$archive_cmds_need_lc
21603 # Whether or not to disallow shared libs when runtime libs are static.
21604 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21606 # Compiler flag to allow reflexive dlopens.
21607 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21609 # Compiler flag to generate shared objects directly from archives.
21610 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21612 # Whether the compiler copes with passing no objects directly.
21613 compiler_needs_object=$lt_compiler_needs_object
21615 # Create an old-style archive from a shared archive.
21616 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21618 # Create a temporary old-style archive to link instead of a shared archive.
21619 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21621 # Commands used to build a shared archive.
21622 archive_cmds=$lt_archive_cmds
21623 archive_expsym_cmds=$lt_archive_expsym_cmds
21625 # Commands used to build a loadable module if different from building
21626 # a shared archive.
21627 module_cmds=$lt_module_cmds
21628 module_expsym_cmds=$lt_module_expsym_cmds
21630 # Whether we are building with GNU ld or not.
21631 with_gnu_ld=$lt_with_gnu_ld
21633 # Flag that allows shared libraries with undefined symbols to be built.
21634 allow_undefined_flag=$lt_allow_undefined_flag
21636 # Flag that enforces no undefined symbols.
21637 no_undefined_flag=$lt_no_undefined_flag
21639 # Flag to hardcode \$libdir into a binary during linking.
21640 # This must work even if \$libdir does not exist
21641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21643 # If ld is used when linking, flag to hardcode \$libdir into a binary
21644 # during linking. This must work even if \$libdir does not exist.
21645 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21647 # Whether we need a single "-rpath" flag with a separated argument.
21648 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21650 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21651 # DIR into the resulting binary.
21652 hardcode_direct=$hardcode_direct
21654 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21655 # DIR into the resulting binary and the resulting library dependency is
21656 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21657 # library is relocated.
21658 hardcode_direct_absolute=$hardcode_direct_absolute
21660 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21661 # into the resulting binary.
21662 hardcode_minus_L=$hardcode_minus_L
21664 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21665 # into the resulting binary.
21666 hardcode_shlibpath_var=$hardcode_shlibpath_var
21668 # Set to "yes" if building a shared library automatically hardcodes DIR
21669 # into the library and all subsequent libraries and executables linked
21670 # against it.
21671 hardcode_automatic=$hardcode_automatic
21673 # Set to yes if linker adds runtime paths of dependent libraries
21674 # to runtime path list.
21675 inherit_rpath=$inherit_rpath
21677 # Whether libtool must link a program against all its dependency libraries.
21678 link_all_deplibs=$link_all_deplibs
21680 # Fix the shell variable \$srcfile for the compiler.
21681 fix_srcfile_path=$lt_fix_srcfile_path
21683 # Set to "yes" if exported symbols are required.
21684 always_export_symbols=$always_export_symbols
21686 # The commands to list exported symbols.
21687 export_symbols_cmds=$lt_export_symbols_cmds
21689 # Symbols that should not be listed in the preloaded symbols.
21690 exclude_expsyms=$lt_exclude_expsyms
21692 # Symbols that must always be exported.
21693 include_expsyms=$lt_include_expsyms
21695 # Commands necessary for linking programs (against libraries) with templates.
21696 prelink_cmds=$lt_prelink_cmds
21698 # Specify filename containing input files.
21699 file_list_spec=$lt_file_list_spec
21701 # How to hardcode a shared library path into an executable.
21702 hardcode_action=$hardcode_action
21704 # Dependencies to place before and after the objects being linked to
21705 # create a shared library.
21706 predep_objects=$lt_predep_objects
21707 postdep_objects=$lt_postdep_objects
21708 predeps=$lt_predeps
21709 postdeps=$lt_postdeps
21711 # The library search path used internally by the compiler when linking
21712 # a shared library.
21713 compiler_lib_search_path=$lt_compiler_lib_search_path
21715 # ### END LIBTOOL CONFIG
21717 _LT_EOF
21719 case $host_os in
21720 aix3*)
21721 cat <<\_LT_EOF >> "$cfgfile"
21722 # AIX sometimes has problems with the GCC collect2 program. For some
21723 # reason, if we set the COLLECT_NAMES environment variable, the problems
21724 # vanish in a puff of smoke.
21725 if test "X${COLLECT_NAMES+set}" != Xset; then
21726 COLLECT_NAMES=
21727 export COLLECT_NAMES
21729 _LT_EOF
21731 esac
21734 ltmain="$ac_aux_dir/ltmain.sh"
21737 # We use sed instead of cat because bash on DJGPP gets confused if
21738 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21739 # text mode, it properly converts lines to CR/LF. This bash problem
21740 # is reportedly fixed, but why not run on old versions too?
21741 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21742 || (rm -f "$cfgfile"; exit 1)
21744 case $xsi_shell in
21745 yes)
21746 cat << \_LT_EOF >> "$cfgfile"
21747 # func_dirname file append nondir_replacement
21748 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21749 # otherwise set result to NONDIR_REPLACEMENT.
21750 func_dirname ()
21752 case ${1} in
21753 */*) func_dirname_result="${1%/*}${2}" ;;
21754 * ) func_dirname_result="${3}" ;;
21755 esac
21758 # func_basename file
21759 func_basename ()
21761 func_basename_result="${1##*/}"
21764 # func_stripname prefix suffix name
21765 # strip PREFIX and SUFFIX off of NAME.
21766 # PREFIX and SUFFIX must not contain globbing or regex special
21767 # characters, hashes, percent signs, but SUFFIX may contain a leading
21768 # dot (in which case that matches only a dot).
21769 func_stripname ()
21771 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21772 # positional parameters, so assign one to ordinary parameter first.
21773 func_stripname_result=${3}
21774 func_stripname_result=${func_stripname_result#"${1}"}
21775 func_stripname_result=${func_stripname_result%"${2}"}
21778 # func_opt_split
21779 func_opt_split ()
21781 func_opt_split_opt=${1%%=*}
21782 func_opt_split_arg=${1#*=}
21785 # func_lo2o object
21786 func_lo2o ()
21788 case ${1} in
21789 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21790 *) func_lo2o_result=${1} ;;
21791 esac
21793 _LT_EOF
21795 *) # Bourne compatible functions.
21796 cat << \_LT_EOF >> "$cfgfile"
21797 # func_dirname file append nondir_replacement
21798 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21799 # otherwise set result to NONDIR_REPLACEMENT.
21800 func_dirname ()
21802 # Extract subdirectory from the argument.
21803 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21804 if test "X$func_dirname_result" = "X${1}"; then
21805 func_dirname_result="${3}"
21806 else
21807 func_dirname_result="$func_dirname_result${2}"
21811 # func_basename file
21812 func_basename ()
21814 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21817 # func_stripname prefix suffix name
21818 # strip PREFIX and SUFFIX off of NAME.
21819 # PREFIX and SUFFIX must not contain globbing or regex special
21820 # characters, hashes, percent signs, but SUFFIX may contain a leading
21821 # dot (in which case that matches only a dot).
21822 # func_strip_suffix prefix name
21823 func_stripname ()
21825 case ${2} in
21826 .*) func_stripname_result=`$ECHO "X${3}" \
21827 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21828 *) func_stripname_result=`$ECHO "X${3}" \
21829 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21830 esac
21833 # sed scripts:
21834 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21835 my_sed_long_arg='1s/^-[^=]*=//'
21837 # func_opt_split
21838 func_opt_split ()
21840 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21841 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21844 # func_lo2o object
21845 func_lo2o ()
21847 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21849 _LT_EOF
21850 esac
21852 case $lt_shell_append in
21853 yes)
21854 cat << \_LT_EOF >> "$cfgfile"
21856 # func_append var value
21857 # Append VALUE to the end of shell variable VAR.
21858 func_append ()
21860 eval "$1+=\$2"
21862 _LT_EOF
21865 cat << \_LT_EOF >> "$cfgfile"
21867 # func_append var value
21868 # Append VALUE to the end of shell variable VAR.
21869 func_append ()
21871 eval "$1=\$$1\$2"
21873 _LT_EOF
21875 esac
21878 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21879 || (rm -f "$cfgfile"; exit 1)
21881 mv -f "$cfgfile" "$ofile" ||
21882 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21883 chmod +x "$ofile"
21886 cat <<_LT_EOF >> "$ofile"
21888 # ### BEGIN LIBTOOL TAG CONFIG: FC
21890 # The linker used to build libraries.
21891 LD=$lt_LD_FC
21893 # Commands used to build an old-style archive.
21894 old_archive_cmds=$lt_old_archive_cmds_FC
21896 # A language specific compiler.
21897 CC=$lt_compiler_FC
21899 # Is the compiler the GNU compiler?
21900 with_gcc=$GCC_FC
21902 # Compiler flag to turn off builtin functions.
21903 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
21905 # How to pass a linker flag through the compiler.
21906 wl=$lt_lt_prog_compiler_wl_FC
21908 # Additional compiler flags for building library objects.
21909 pic_flag=$lt_lt_prog_compiler_pic_FC
21911 # Compiler flag to prevent dynamic linking.
21912 link_static_flag=$lt_lt_prog_compiler_static_FC
21914 # Does compiler simultaneously support -c and -o options?
21915 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
21917 # Whether or not to add -lc for building shared libraries.
21918 build_libtool_need_lc=$archive_cmds_need_lc_FC
21920 # Whether or not to disallow shared libs when runtime libs are static.
21921 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
21923 # Compiler flag to allow reflexive dlopens.
21924 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
21926 # Compiler flag to generate shared objects directly from archives.
21927 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
21929 # Whether the compiler copes with passing no objects directly.
21930 compiler_needs_object=$lt_compiler_needs_object_FC
21932 # Create an old-style archive from a shared archive.
21933 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
21935 # Create a temporary old-style archive to link instead of a shared archive.
21936 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
21938 # Commands used to build a shared archive.
21939 archive_cmds=$lt_archive_cmds_FC
21940 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
21942 # Commands used to build a loadable module if different from building
21943 # a shared archive.
21944 module_cmds=$lt_module_cmds_FC
21945 module_expsym_cmds=$lt_module_expsym_cmds_FC
21947 # Whether we are building with GNU ld or not.
21948 with_gnu_ld=$lt_with_gnu_ld_FC
21950 # Flag that allows shared libraries with undefined symbols to be built.
21951 allow_undefined_flag=$lt_allow_undefined_flag_FC
21953 # Flag that enforces no undefined symbols.
21954 no_undefined_flag=$lt_no_undefined_flag_FC
21956 # Flag to hardcode \$libdir into a binary during linking.
21957 # This must work even if \$libdir does not exist
21958 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
21960 # If ld is used when linking, flag to hardcode \$libdir into a binary
21961 # during linking. This must work even if \$libdir does not exist.
21962 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
21964 # Whether we need a single "-rpath" flag with a separated argument.
21965 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
21967 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21968 # DIR into the resulting binary.
21969 hardcode_direct=$hardcode_direct_FC
21971 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21972 # DIR into the resulting binary and the resulting library dependency is
21973 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21974 # library is relocated.
21975 hardcode_direct_absolute=$hardcode_direct_absolute_FC
21977 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21978 # into the resulting binary.
21979 hardcode_minus_L=$hardcode_minus_L_FC
21981 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21982 # into the resulting binary.
21983 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
21985 # Set to "yes" if building a shared library automatically hardcodes DIR
21986 # into the library and all subsequent libraries and executables linked
21987 # against it.
21988 hardcode_automatic=$hardcode_automatic_FC
21990 # Set to yes if linker adds runtime paths of dependent libraries
21991 # to runtime path list.
21992 inherit_rpath=$inherit_rpath_FC
21994 # Whether libtool must link a program against all its dependency libraries.
21995 link_all_deplibs=$link_all_deplibs_FC
21997 # Fix the shell variable \$srcfile for the compiler.
21998 fix_srcfile_path=$lt_fix_srcfile_path_FC
22000 # Set to "yes" if exported symbols are required.
22001 always_export_symbols=$always_export_symbols_FC
22003 # The commands to list exported symbols.
22004 export_symbols_cmds=$lt_export_symbols_cmds_FC
22006 # Symbols that should not be listed in the preloaded symbols.
22007 exclude_expsyms=$lt_exclude_expsyms_FC
22009 # Symbols that must always be exported.
22010 include_expsyms=$lt_include_expsyms_FC
22012 # Commands necessary for linking programs (against libraries) with templates.
22013 prelink_cmds=$lt_prelink_cmds_FC
22015 # Specify filename containing input files.
22016 file_list_spec=$lt_file_list_spec_FC
22018 # How to hardcode a shared library path into an executable.
22019 hardcode_action=$hardcode_action_FC
22021 # Dependencies to place before and after the objects being linked to
22022 # create a shared library.
22023 predep_objects=$lt_predep_objects_FC
22024 postdep_objects=$lt_postdep_objects_FC
22025 predeps=$lt_predeps_FC
22026 postdeps=$lt_postdeps_FC
22028 # The library search path used internally by the compiler when linking
22029 # a shared library.
22030 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
22032 # ### END LIBTOOL TAG CONFIG: FC
22033 _LT_EOF
22036 gstdint.h )
22037 if test "$GCC" = yes; then
22038 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
22039 else
22040 echo "/* generated for $CC */" > tmp-stdint.h
22043 sed 's/^ *//' >> tmp-stdint.h <<EOF
22045 #ifndef GCC_GENERATED_STDINT_H
22046 #define GCC_GENERATED_STDINT_H 1
22048 #include <sys/types.h>
22051 if test "$acx_cv_header_stdint" != stdint.h; then
22052 echo "#include <stddef.h>" >> tmp-stdint.h
22054 if test "$acx_cv_header_stdint" != stddef.h; then
22055 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
22058 sed 's/^ *//' >> tmp-stdint.h <<EOF
22059 /* glibc uses these symbols as guards to prevent redefinitions. */
22060 #ifdef __int8_t_defined
22061 #define _INT8_T
22062 #define _INT16_T
22063 #define _INT32_T
22064 #endif
22065 #ifdef __uint32_t_defined
22066 #define _UINT32_T
22067 #endif
22071 # ----------------- done header, emit basic int types -------------
22072 if test "$acx_cv_header_stdint" = stddef.h; then
22073 sed 's/^ *//' >> tmp-stdint.h <<EOF
22075 #ifndef _UINT8_T
22076 #define _UINT8_T
22077 #ifndef __uint8_t_defined
22078 #define __uint8_t_defined
22079 typedef unsigned $acx_cv_type_int8_t uint8_t;
22080 #endif
22081 #endif
22083 #ifndef _UINT16_T
22084 #define _UINT16_T
22085 #ifndef __uint16_t_defined
22086 #define __uint16_t_defined
22087 typedef unsigned $acx_cv_type_int16_t uint16_t;
22088 #endif
22089 #endif
22091 #ifndef _UINT32_T
22092 #define _UINT32_T
22093 #ifndef __uint32_t_defined
22094 #define __uint32_t_defined
22095 typedef unsigned $acx_cv_type_int32_t uint32_t;
22096 #endif
22097 #endif
22099 #ifndef _INT8_T
22100 #define _INT8_T
22101 #ifndef __int8_t_defined
22102 #define __int8_t_defined
22103 typedef $acx_cv_type_int8_t int8_t;
22104 #endif
22105 #endif
22107 #ifndef _INT16_T
22108 #define _INT16_T
22109 #ifndef __int16_t_defined
22110 #define __int16_t_defined
22111 typedef $acx_cv_type_int16_t int16_t;
22112 #endif
22113 #endif
22115 #ifndef _INT32_T
22116 #define _INT32_T
22117 #ifndef __int32_t_defined
22118 #define __int32_t_defined
22119 typedef $acx_cv_type_int32_t int32_t;
22120 #endif
22121 #endif
22123 elif test "$ac_cv_type_u_int32_t" = yes; then
22124 sed 's/^ *//' >> tmp-stdint.h <<EOF
22126 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22127 #ifndef _INT8_T
22128 #define _INT8_T
22129 #endif
22130 #ifndef _INT16_T
22131 #define _INT16_T
22132 #endif
22133 #ifndef _INT32_T
22134 #define _INT32_T
22135 #endif
22137 #ifndef _UINT8_T
22138 #define _UINT8_T
22139 #ifndef __uint8_t_defined
22140 #define __uint8_t_defined
22141 typedef u_int8_t uint8_t;
22142 #endif
22143 #endif
22145 #ifndef _UINT16_T
22146 #define _UINT16_T
22147 #ifndef __uint16_t_defined
22148 #define __uint16_t_defined
22149 typedef u_int16_t uint16_t;
22150 #endif
22151 #endif
22153 #ifndef _UINT32_T
22154 #define _UINT32_T
22155 #ifndef __uint32_t_defined
22156 #define __uint32_t_defined
22157 typedef u_int32_t uint32_t;
22158 #endif
22159 #endif
22161 else
22162 sed 's/^ *//' >> tmp-stdint.h <<EOF
22164 /* Some systems have guard macros to prevent redefinitions, define them. */
22165 #ifndef _INT8_T
22166 #define _INT8_T
22167 #endif
22168 #ifndef _INT16_T
22169 #define _INT16_T
22170 #endif
22171 #ifndef _INT32_T
22172 #define _INT32_T
22173 #endif
22174 #ifndef _UINT8_T
22175 #define _UINT8_T
22176 #endif
22177 #ifndef _UINT16_T
22178 #define _UINT16_T
22179 #endif
22180 #ifndef _UINT32_T
22181 #define _UINT32_T
22182 #endif
22186 # ------------- done basic int types, emit int64_t types ------------
22187 if test "$ac_cv_type_uint64_t" = yes; then
22188 sed 's/^ *//' >> tmp-stdint.h <<EOF
22190 /* system headers have good uint64_t and int64_t */
22191 #ifndef _INT64_T
22192 #define _INT64_T
22193 #endif
22194 #ifndef _UINT64_T
22195 #define _UINT64_T
22196 #endif
22198 elif test "$ac_cv_type_u_int64_t" = yes; then
22199 sed 's/^ *//' >> tmp-stdint.h <<EOF
22201 /* system headers have an u_int64_t (and int64_t) */
22202 #ifndef _INT64_T
22203 #define _INT64_T
22204 #endif
22205 #ifndef _UINT64_T
22206 #define _UINT64_T
22207 #ifndef __uint64_t_defined
22208 #define __uint64_t_defined
22209 typedef u_int64_t uint64_t;
22210 #endif
22211 #endif
22213 elif test -n "$acx_cv_type_int64_t"; then
22214 sed 's/^ *//' >> tmp-stdint.h <<EOF
22216 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
22217 #ifndef _INT64_T
22218 #define _INT64_T
22219 typedef $acx_cv_type_int64_t int64_t;
22220 #endif
22221 #ifndef _UINT64_T
22222 #define _UINT64_T
22223 #ifndef __uint64_t_defined
22224 #define __uint64_t_defined
22225 typedef unsigned $acx_cv_type_int64_t uint64_t;
22226 #endif
22227 #endif
22229 else
22230 sed 's/^ *//' >> tmp-stdint.h <<EOF
22232 /* some common heuristics for int64_t, using compiler-specific tests */
22233 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
22234 #ifndef _INT64_T
22235 #define _INT64_T
22236 #ifndef __int64_t_defined
22237 typedef long long int64_t;
22238 #endif
22239 #endif
22240 #ifndef _UINT64_T
22241 #define _UINT64_T
22242 typedef unsigned long long uint64_t;
22243 #endif
22245 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
22246 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
22247 does not implement __extension__. But that compiler doesn't define
22248 __GNUC_MINOR__. */
22249 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
22250 # define __extension__
22251 # endif
22253 # ifndef _INT64_T
22254 # define _INT64_T
22255 __extension__ typedef long long int64_t;
22256 # endif
22257 # ifndef _UINT64_T
22258 # define _UINT64_T
22259 __extension__ typedef unsigned long long uint64_t;
22260 # endif
22262 #elif !defined __STRICT_ANSI__
22263 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
22265 # ifndef _INT64_T
22266 # define _INT64_T
22267 typedef __int64 int64_t;
22268 # endif
22269 # ifndef _UINT64_T
22270 # define _UINT64_T
22271 typedef unsigned __int64 uint64_t;
22272 # endif
22273 # endif /* compiler */
22275 #endif /* ANSI version */
22279 # ------------- done int64_t types, emit intptr types ------------
22280 if test "$ac_cv_type_uintptr_t" != yes; then
22281 sed 's/^ *//' >> tmp-stdint.h <<EOF
22283 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
22284 #ifndef __uintptr_t_defined
22285 typedef u$acx_cv_type_intptr_t uintptr_t;
22286 #endif
22287 #ifndef __intptr_t_defined
22288 typedef $acx_cv_type_intptr_t intptr_t;
22289 #endif
22293 # ------------- done intptr types, emit int_least types ------------
22294 if test "$ac_cv_type_int_least32_t" != yes; then
22295 sed 's/^ *//' >> tmp-stdint.h <<EOF
22297 /* Define int_least types */
22298 typedef int8_t int_least8_t;
22299 typedef int16_t int_least16_t;
22300 typedef int32_t int_least32_t;
22301 #ifdef _INT64_T
22302 typedef int64_t int_least64_t;
22303 #endif
22305 typedef uint8_t uint_least8_t;
22306 typedef uint16_t uint_least16_t;
22307 typedef uint32_t uint_least32_t;
22308 #ifdef _UINT64_T
22309 typedef uint64_t uint_least64_t;
22310 #endif
22314 # ------------- done intptr types, emit int_fast types ------------
22315 if test "$ac_cv_type_int_fast32_t" != yes; then
22316 sed 's/^ *//' >> tmp-stdint.h <<EOF
22318 /* Define int_fast types. short is often slow */
22319 typedef int8_t int_fast8_t;
22320 typedef int int_fast16_t;
22321 typedef int32_t int_fast32_t;
22322 #ifdef _INT64_T
22323 typedef int64_t int_fast64_t;
22324 #endif
22326 typedef uint8_t uint_fast8_t;
22327 typedef unsigned int uint_fast16_t;
22328 typedef uint32_t uint_fast32_t;
22329 #ifdef _UINT64_T
22330 typedef uint64_t uint_fast64_t;
22331 #endif
22335 if test "$ac_cv_type_uintmax_t" != yes; then
22336 sed 's/^ *//' >> tmp-stdint.h <<EOF
22338 /* Define intmax based on what we found */
22339 #ifdef _INT64_T
22340 typedef int64_t intmax_t;
22341 #else
22342 typedef long intmax_t;
22343 #endif
22344 #ifdef _UINT64_T
22345 typedef uint64_t uintmax_t;
22346 #else
22347 typedef unsigned long uintmax_t;
22348 #endif
22352 sed 's/^ *//' >> tmp-stdint.h <<EOF
22354 #endif /* GCC_GENERATED_STDINT_H */
22357 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
22358 rm -f tmp-stdint.h
22359 else
22360 mv -f tmp-stdint.h gstdint.h
22364 esac
22365 done
22366 _ACEOF
22368 cat >>$CONFIG_STATUS <<\_ACEOF
22370 { (exit 0); exit 0; }
22371 _ACEOF
22372 chmod +x $CONFIG_STATUS
22373 ac_clean_files=$ac_clean_files_save
22376 # configure is writing to config.log, and then calls config.status.
22377 # config.status does its own redirection, appending to config.log.
22378 # Unfortunately, on DOS this fails, as config.log is still kept open
22379 # by configure, so config.status won't be able to write to it; its
22380 # output is simply discarded. So we exec the FD to /dev/null,
22381 # effectively closing config.log, so it can be properly (re)opened and
22382 # appended to by config.status. When coming back to configure, we
22383 # need to make the FD available again.
22384 if test "$no_create" != yes; then
22385 ac_cs_success=:
22386 ac_config_status_args=
22387 test "$silent" = yes &&
22388 ac_config_status_args="$ac_config_status_args --quiet"
22389 exec 5>/dev/null
22390 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22391 exec 5>>config.log
22392 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22393 # would make configure fail if this is the last instruction.
22394 $ac_cs_success || { (exit 1); exit 1; }