svn merge -r 216846:217483 svn+ssh://gcc.gnu.org/svn/gcc/trunk
[official-gcc.git] / libgomp / configure
blob96ca1bd830df124675f433bdc8b801b9b4768296
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU OpenMP Runtime Library 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='GNU OpenMP Runtime Library'
558 PACKAGE_TARNAME='libgomp'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libgomp/'
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
600 enable_option_checking=no
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 OMP_NEST_LOCK_25_KIND
606 OMP_LOCK_25_KIND
607 OMP_NEST_LOCK_25_ALIGN
608 OMP_NEST_LOCK_25_SIZE
609 OMP_LOCK_25_ALIGN
610 OMP_LOCK_25_SIZE
611 OMP_NEST_LOCK_KIND
612 OMP_LOCK_KIND
613 OMP_NEST_LOCK_ALIGN
614 OMP_NEST_LOCK_SIZE
615 OMP_LOCK_ALIGN
616 OMP_LOCK_SIZE
617 USE_FORTRAN_FALSE
618 USE_FORTRAN_TRUE
619 link_gomp
620 XLDFLAGS
621 XCFLAGS
622 config_path
623 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
624 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
625 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
626 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
627 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
628 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
629 OPT_LDFLAGS
630 SECTION_LDFLAGS
631 subdirs
632 libtool_VERSION
633 ac_ct_FC
634 FCFLAGS
636 MAINT
637 MAINTAINER_MODE_FALSE
638 MAINTAINER_MODE_TRUE
639 enable_static
640 enable_shared
641 lt_host_flags
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 OBJDUMP
649 LN_S
651 ac_ct_DUMPBIN
652 DUMPBIN
654 FGREP
655 EGREP
656 GREP
658 LIBTOOL
659 BUILD_INFO_FALSE
660 BUILD_INFO_TRUE
661 PERL
662 RANLIB
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 AMDEPBACKSLASH
668 AMDEP_FALSE
669 AMDEP_TRUE
670 am__quote
671 am__include
672 DEPDIR
673 OBJEXT
674 EXEEXT
675 ac_ct_CC
676 CPPFLAGS
677 LDFLAGS
678 CFLAGS
680 toolexeclibdir
681 toolexecdir
682 multi_basedir
683 am__untar
684 am__tar
685 AMTAR
686 am__leading_dot
687 SET_MAKE
689 mkdir_p
690 MKDIR_P
691 INSTALL_STRIP_PROGRAM
692 STRIP
693 install_sh
694 MAKEINFO
695 AUTOHEADER
696 AUTOMAKE
697 AUTOCONF
698 ACLOCAL
699 VERSION
700 PACKAGE
701 CYGPATH_W
702 am__isrc
703 INSTALL_DATA
704 INSTALL_SCRIPT
705 INSTALL_PROGRAM
706 target_os
707 target_vendor
708 target_cpu
709 target
710 host_os
711 host_vendor
712 host_cpu
713 host
714 build_os
715 build_vendor
716 build_cpu
717 build
718 GENINSRC_FALSE
719 GENINSRC_TRUE
720 target_alias
721 host_alias
722 build_alias
723 LIBS
724 ECHO_T
725 ECHO_N
726 ECHO_C
727 DEFS
728 mandir
729 localedir
730 libdir
731 psdir
732 pdfdir
733 dvidir
734 htmldir
735 infodir
736 docdir
737 oldincludedir
738 includedir
739 localstatedir
740 sharedstatedir
741 sysconfdir
742 datadir
743 datarootdir
744 libexecdir
745 sbindir
746 bindir
747 program_transform_name
748 prefix
749 exec_prefix
750 PACKAGE_URL
751 PACKAGE_BUGREPORT
752 PACKAGE_STRING
753 PACKAGE_VERSION
754 PACKAGE_TARNAME
755 PACKAGE_NAME
756 PATH_SEPARATOR
757 SHELL'
758 ac_subst_files=''
759 ac_user_opts='
760 enable_option_checking
761 enable_version_specific_runtime_libs
762 enable_generated_files_in_srcdir
763 enable_multilib
764 enable_dependency_tracking
765 enable_shared
766 enable_static
767 with_pic
768 enable_fast_install
769 with_gnu_ld
770 enable_libtool_lock
771 enable_maintainer_mode
772 enable_linux_futex
773 enable_tls
774 enable_symvers
776 ac_precious_vars='build_alias
777 host_alias
778 target_alias
780 CPPFLAGS
782 FCFLAGS
783 LDFLAGS
784 LIBS'
785 ac_subdirs_all='plugin'
787 # Initialize some variables set by options.
788 ac_init_help=
789 ac_init_version=false
790 ac_unrecognized_opts=
791 ac_unrecognized_sep=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
794 cache_file=/dev/null
795 exec_prefix=NONE
796 no_create=
797 no_recursion=
798 prefix=NONE
799 program_prefix=NONE
800 program_suffix=NONE
801 program_transform_name=s,x,x,
802 silent=
803 site=
804 srcdir=
805 verbose=
806 x_includes=NONE
807 x_libraries=NONE
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
827 htmldir='${docdir}'
828 dvidir='${docdir}'
829 pdfdir='${docdir}'
830 psdir='${docdir}'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
835 ac_prev=
836 ac_dashdash=
837 for ac_option
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
842 ac_prev=
843 continue
846 case $ac_option in
847 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *) ac_optarg=yes ;;
849 esac
851 # Accept the important Cygnus configure options, so we can diagnose typos.
853 case $ac_dashdash$ac_option in
855 ac_dashdash=yes ;;
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860 bindir=$ac_optarg ;;
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
874 --config-cache | -C)
875 cache_file=config.cache ;;
877 -datadir | --datadir | --datadi | --datad)
878 ac_prev=datadir ;;
879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
880 datadir=$ac_optarg ;;
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
889 -disable-* | --disable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
898 "enable_$ac_useropt"
899 "*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
915 -enable-* | --enable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=\$ac_optarg ;;
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1119 -with-* | --with-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=\$ac_optarg ;;
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1169 -*) as_fn_error "unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information."
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1184 # FIXME: should be removed in autoconf 3.0.
1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191 esac
1192 done
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 as_fn_error "missing argument to $ac_option"
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 esac
1207 # Check all directory arguments for consistency.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1226 done
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240 If a cross compiler is detected then cross compile mode will be used." >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1242 cross_compiling=yes
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249 test "$silent" = yes && exec 6>/dev/null
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error "pwd does not report name of working directory"
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 s//\1/
1274 /^X\(\/\/\)[^/].*/{
1275 s//\1/
1278 /^X\(\/\/\)$/{
1279 s//\1/
1282 /^X\(\/\).*/{
1283 s//\1/
1286 s/.*/./; q'`
1287 srcdir=$ac_confdir
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 srcdir=..
1291 else
1292 ac_srcdir_defaulted=no
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 ac_abs_confdir=`(
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1301 pwd)`
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 srcdir=.
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1309 case $srcdir in
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 esac
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 done
1320 # Report the --help message.
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1325 cat <<_ACEOF
1326 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1333 Defaults for the options are specified in brackets.
1335 Configuration:
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 [PREFIX]
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1357 For better control, use the options below.
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1379 _ACEOF
1381 cat <<\_ACEOF
1383 Program names:
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388 System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1392 _ACEOF
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
1398 esac
1399 cat <<\_ACEOF
1401 Optional Features:
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-version-specific-runtime-libs
1406 Specify that runtime libraries should be installed
1407 in a compiler-specific directory [default=no]
1408 --enable-generated-files-in-srcdir
1409 put copies of generated files in source dir intended
1410 for creating source tarballs for users without
1411 texinfo bison or flex. [default=no]
1412 --enable-multilib build many library versions (default)
1413 --disable-dependency-tracking speeds up one-time build
1414 --enable-dependency-tracking do not reject slow dependency extractors
1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
1419 --disable-libtool-lock avoid locking (might break parallel builds)
1420 --enable-maintainer-mode enable make rules and dependencies not useful
1421 (and sometimes confusing) to the casual installer
1422 --enable-linux-futex use the Linux futex system call [default=default]
1423 --enable-tls Use thread-local storage [default=yes]
1424 --enable-symvers=STYLE enables symbol versioning of the shared library
1425 [default=yes]
1427 Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-pic try to use only PIC/non-PIC objects [default=use
1431 both]
1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1434 Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 CPP C preprocessor
1443 FC Fortran compiler command
1444 FCFLAGS Fortran compiler flags
1446 Use these variables to override the choices made by `configure' or to help
1447 it to find libraries and programs with nonstandard names/locations.
1449 Report bugs to the package provider.
1450 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1451 General help using GNU software: <http://www.gnu.org/gethelp/>.
1452 _ACEOF
1453 ac_status=$?
1456 if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459 test -d "$ac_dir" ||
1460 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461 continue
1462 ac_builddir=.
1464 case "$ac_dir" in
1465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468 # A ".." for each directory in $ac_dir_suffix.
1469 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470 case $ac_top_builddir_sub in
1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473 esac ;;
1474 esac
1475 ac_abs_top_builddir=$ac_pwd
1476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477 # for backward compatibility:
1478 ac_top_builddir=$ac_top_build_prefix
1480 case $srcdir in
1481 .) # We are building in place.
1482 ac_srcdir=.
1483 ac_top_srcdir=$ac_top_builddir_sub
1484 ac_abs_top_srcdir=$ac_pwd ;;
1485 [\\/]* | ?:[\\/]* ) # Absolute name.
1486 ac_srcdir=$srcdir$ac_dir_suffix;
1487 ac_top_srcdir=$srcdir
1488 ac_abs_top_srcdir=$srcdir ;;
1489 *) # Relative name.
1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491 ac_top_srcdir=$ac_top_build_prefix$srcdir
1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493 esac
1494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496 cd "$ac_dir" || { ac_status=$?; continue; }
1497 # Check for guested configure.
1498 if test -f "$ac_srcdir/configure.gnu"; then
1499 echo &&
1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501 elif test -f "$ac_srcdir/configure"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure" --help=recursive
1504 else
1505 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506 fi || ac_status=$?
1507 cd "$ac_pwd" || { ac_status=$?; break; }
1508 done
1511 test -n "$ac_init_help" && exit $ac_status
1512 if $ac_init_version; then
1513 cat <<\_ACEOF
1514 GNU OpenMP Runtime Library configure 1.0
1515 generated by GNU Autoconf 2.64
1517 Copyright (C) 2009 Free Software Foundation, Inc.
1518 This configure script is free software; the Free Software Foundation
1519 gives unlimited permission to copy, distribute and modify it.
1520 _ACEOF
1521 exit
1524 ## ------------------------ ##
1525 ## Autoconf initialization. ##
1526 ## ------------------------ ##
1528 # ac_fn_c_try_compile LINENO
1529 # --------------------------
1530 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531 ac_fn_c_try_compile ()
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 rm -f conftest.$ac_objext
1535 if { { ac_try="$ac_compile"
1536 case "(($ac_try" in
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1539 esac
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_compile") 2>conftest.err
1543 ac_status=$?
1544 if test -s conftest.err; then
1545 grep -v '^ *+' conftest.err >conftest.er1
1546 cat conftest.er1 >&5
1547 mv -f conftest.er1 conftest.err
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } && {
1551 test -z "$ac_c_werror_flag" ||
1552 test ! -s conftest.err
1553 } && test -s conftest.$ac_objext; then :
1554 ac_retval=0
1555 else
1556 $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.$ac_ext >&5
1559 ac_retval=1
1561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1562 return $ac_retval
1564 } # ac_fn_c_try_compile
1566 # ac_fn_c_try_link LINENO
1567 # -----------------------
1568 # Try to link conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_link ()
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext conftest$ac_exeext
1573 if { { ac_try="$ac_link"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_link") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest$ac_exeext && {
1592 test "$cross_compiling" = yes ||
1593 $as_test_x conftest$ac_exeext
1594 }; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1600 ac_retval=1
1602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1604 # interfere with the next link command; also delete a directory that is
1605 # left behind by Apple's compiler. We do this before executing the actions.
1606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608 return $ac_retval
1610 } # ac_fn_c_try_link
1612 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1613 # -------------------------------------------------------
1614 # Tests whether HEADER exists and can be compiled using the include files in
1615 # INCLUDES, setting the cache variable VAR accordingly.
1616 ac_fn_c_check_header_compile ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620 $as_echo_n "checking for $2... " >&6; }
1621 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1622 $as_echo_n "(cached) " >&6
1623 else
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1627 #include <$2>
1628 _ACEOF
1629 if ac_fn_c_try_compile "$LINENO"; then :
1630 eval "$3=yes"
1631 else
1632 eval "$3=no"
1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636 eval ac_res=\$$3
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 $as_echo "$ac_res" >&6; }
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1641 } # ac_fn_c_check_header_compile
1643 # ac_fn_c_try_cpp LINENO
1644 # ----------------------
1645 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_cpp ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_cpp conftest.$ac_ext"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } >/dev/null && {
1665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 }; then :
1668 ac_retval=0
1669 else
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1673 ac_retval=1
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676 return $ac_retval
1678 } # ac_fn_c_try_cpp
1680 # ac_fn_c_try_run LINENO
1681 # ----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683 # that executables *can* be run.
1684 ac_fn_c_try_run ()
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698 { { case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_try") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; }; }; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: program exited with status $ac_status" >&5
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1714 ac_retval=$ac_status
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 return $ac_retval
1720 } # ac_fn_c_try_run
1722 # ac_fn_c_check_func LINENO FUNC VAR
1723 # ----------------------------------
1724 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1725 ac_fn_c_check_func ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731 $as_echo_n "(cached) " >&6
1732 else
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1737 #define $2 innocuous_$2
1739 /* System header to define __stub macros and hopefully few prototypes,
1740 which can conflict with char $2 (); below.
1741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1742 <limits.h> exists even on freestanding compilers. */
1744 #ifdef __STDC__
1745 # include <limits.h>
1746 #else
1747 # include <assert.h>
1748 #endif
1750 #undef $2
1752 /* Override any GCC internal prototype to avoid an error.
1753 Use char because int might match the return type of a GCC
1754 builtin and then its argument prototype would still apply. */
1755 #ifdef __cplusplus
1756 extern "C"
1757 #endif
1758 char $2 ();
1759 /* The GNU C library defines this for functions which it implements
1760 to always fail with ENOSYS. Some functions are actually named
1761 something starting with __ and the normal name is an alias. */
1762 #if defined __stub_$2 || defined __stub___$2
1763 choke me
1764 #endif
1767 main ()
1769 return $2 ();
1771 return 0;
1773 _ACEOF
1774 if ac_fn_c_try_link "$LINENO"; then :
1775 eval "$3=yes"
1776 else
1777 eval "$3=no"
1779 rm -f core conftest.err conftest.$ac_objext \
1780 conftest$ac_exeext conftest.$ac_ext
1782 eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787 } # ac_fn_c_check_func
1789 # ac_fn_fc_try_compile LINENO
1790 # ---------------------------
1791 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_fc_try_compile ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext
1796 if { { ac_try="$ac_compile"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_compile") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_fc_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest.$ac_objext; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1820 ac_retval=1
1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823 return $ac_retval
1825 } # ac_fn_fc_try_compile
1827 # ac_fn_fc_try_link LINENO
1828 # ------------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_fc_try_link ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext conftest$ac_exeext
1834 if { { ac_try="$ac_link"
1835 case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_link") 2>conftest.err
1842 ac_status=$?
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_fc_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest$ac_exeext && {
1853 test "$cross_compiling" = yes ||
1854 $as_test_x conftest$ac_exeext
1855 }; then :
1856 ac_retval=0
1857 else
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1861 ac_retval=1
1863 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865 # interfere with the next link command; also delete a directory that is
1866 # left behind by Apple's compiler. We do this before executing the actions.
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869 return $ac_retval
1871 } # ac_fn_fc_try_link
1873 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1874 # -------------------------------------------------------
1875 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1876 # the include files in INCLUDES and setting the cache variable VAR
1877 # accordingly.
1878 ac_fn_c_check_header_mongrel ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 $as_echo_n "(cached) " >&6
1887 eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 else
1891 # Is the header compilable?
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1893 $as_echo_n "checking $2 usability... " >&6; }
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1897 #include <$2>
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900 ac_header_compiler=yes
1901 else
1902 ac_header_compiler=no
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1906 $as_echo "$ac_header_compiler" >&6; }
1908 # Is the header present?
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1910 $as_echo_n "checking $2 presence... " >&6; }
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1913 #include <$2>
1914 _ACEOF
1915 if ac_fn_c_try_cpp "$LINENO"; then :
1916 ac_header_preproc=yes
1917 else
1918 ac_header_preproc=no
1920 rm -f conftest.err conftest.$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1922 $as_echo "$ac_header_preproc" >&6; }
1924 # So? What about this header?
1925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1926 yes:no: )
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1928 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1932 no:yes:* )
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1934 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1936 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1938 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1940 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1944 esac
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1948 $as_echo_n "(cached) " >&6
1949 else
1950 eval "$3=\$ac_header_compiler"
1952 eval ac_res=\$$3
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958 } # ac_fn_c_check_header_mongrel
1960 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1961 # -------------------------------------------
1962 # Tests whether TYPE exists after having included INCLUDES, setting cache
1963 # variable VAR accordingly.
1964 ac_fn_c_check_type ()
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 $as_echo_n "(cached) " >&6
1971 else
1972 eval "$3=no"
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1977 main ()
1979 if (sizeof ($2))
1980 return 0;
1982 return 0;
1984 _ACEOF
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1990 main ()
1992 if (sizeof (($2)))
1993 return 0;
1995 return 0;
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
2000 else
2001 eval "$3=yes"
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 eval ac_res=\$$3
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012 } # ac_fn_c_check_type
2014 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2015 # --------------------------------------------
2016 # Tries to find the compile-time value of EXPR in a program that includes
2017 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2018 # computed
2019 ac_fn_c_compute_int ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 if test "$cross_compiling" = yes; then
2023 # Depending upon the size, compute the lo and hi bounds.
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2028 main ()
2030 static int test_array [1 - 2 * !(($2) >= 0)];
2031 test_array [0] = 0
2034 return 0;
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 ac_lo=0 ac_mid=0
2039 while :; do
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2044 main ()
2046 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2047 test_array [0] = 0
2050 return 0;
2052 _ACEOF
2053 if ac_fn_c_try_compile "$LINENO"; then :
2054 ac_hi=$ac_mid; break
2055 else
2056 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2057 if test $ac_lo -le $ac_mid; then
2058 ac_lo= ac_hi=
2059 break
2061 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 done
2065 else
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2070 main ()
2072 static int test_array [1 - 2 * !(($2) < 0)];
2073 test_array [0] = 0
2076 return 0;
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 ac_hi=-1 ac_mid=-1
2081 while :; do
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2086 main ()
2088 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2089 test_array [0] = 0
2092 return 0;
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096 ac_lo=$ac_mid; break
2097 else
2098 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2099 if test $ac_mid -le $ac_hi; then
2100 ac_lo= ac_hi=
2101 break
2103 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 done
2107 else
2108 ac_lo= ac_hi=
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 # Binary search between lo and hi bounds.
2114 while test "x$ac_lo" != "x$ac_hi"; do
2115 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2120 main ()
2122 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2123 test_array [0] = 0
2126 return 0;
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130 ac_hi=$ac_mid
2131 else
2132 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 done
2136 case $ac_lo in #((
2137 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2138 '') ac_retval=1 ;;
2139 esac
2140 else
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2144 static long int longval () { return $2; }
2145 static unsigned long int ulongval () { return $2; }
2146 #include <stdio.h>
2147 #include <stdlib.h>
2149 main ()
2152 FILE *f = fopen ("conftest.val", "w");
2153 if (! f)
2154 return 1;
2155 if (($2) < 0)
2157 long int i = longval ();
2158 if (i != ($2))
2159 return 1;
2160 fprintf (f, "%ld", i);
2162 else
2164 unsigned long int i = ulongval ();
2165 if (i != ($2))
2166 return 1;
2167 fprintf (f, "%lu", i);
2169 /* Do not output a trailing newline, as this causes \r\n confusion
2170 on some platforms. */
2171 return ferror (f) || fclose (f) != 0;
2174 return 0;
2176 _ACEOF
2177 if ac_fn_c_try_run "$LINENO"; then :
2178 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2179 else
2180 ac_retval=1
2182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2183 conftest.$ac_objext conftest.beam conftest.$ac_ext
2184 rm -f conftest.val
2187 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2188 return $ac_retval
2190 } # ac_fn_c_compute_int
2191 cat >config.log <<_ACEOF
2192 This file contains any messages produced by compilers while
2193 running configure, to aid debugging if configure makes a mistake.
2195 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
2196 generated by GNU Autoconf 2.64. Invocation command line was
2198 $ $0 $@
2200 _ACEOF
2201 exec 5>>config.log
2203 cat <<_ASUNAME
2204 ## --------- ##
2205 ## Platform. ##
2206 ## --------- ##
2208 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2209 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2210 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2211 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2212 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2214 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2215 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2217 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2218 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2219 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2220 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2221 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2222 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2223 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2225 _ASUNAME
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 $as_echo "PATH: $as_dir"
2233 done
2234 IFS=$as_save_IFS
2236 } >&5
2238 cat >&5 <<_ACEOF
2241 ## ----------- ##
2242 ## Core tests. ##
2243 ## ----------- ##
2245 _ACEOF
2248 # Keep a trace of the command line.
2249 # Strip out --no-create and --no-recursion so they do not pile up.
2250 # Strip out --silent because we don't want to record it for future runs.
2251 # Also quote any args containing shell meta-characters.
2252 # Make two passes to allow for proper duplicate-argument suppression.
2253 ac_configure_args=
2254 ac_configure_args0=
2255 ac_configure_args1=
2256 ac_must_keep_next=false
2257 for ac_pass in 1 2
2259 for ac_arg
2261 case $ac_arg in
2262 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2264 | -silent | --silent | --silen | --sile | --sil)
2265 continue ;;
2266 *\'*)
2267 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2268 esac
2269 case $ac_pass in
2270 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2272 as_fn_append ac_configure_args1 " '$ac_arg'"
2273 if test $ac_must_keep_next = true; then
2274 ac_must_keep_next=false # Got value, back to normal.
2275 else
2276 case $ac_arg in
2277 *=* | --config-cache | -C | -disable-* | --disable-* \
2278 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2279 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2280 | -with-* | --with-* | -without-* | --without-* | --x)
2281 case "$ac_configure_args0 " in
2282 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2283 esac
2285 -* ) ac_must_keep_next=true ;;
2286 esac
2288 as_fn_append ac_configure_args " '$ac_arg'"
2290 esac
2291 done
2292 done
2293 { ac_configure_args0=; unset ac_configure_args0;}
2294 { ac_configure_args1=; unset ac_configure_args1;}
2296 # When interrupted or exit'd, cleanup temporary files, and complete
2297 # config.log. We remove comments because anyway the quotes in there
2298 # would cause problems or look ugly.
2299 # WARNING: Use '\'' to represent an apostrophe within the trap.
2300 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2301 trap 'exit_status=$?
2302 # Save into config.log some information that might help in debugging.
2304 echo
2306 cat <<\_ASBOX
2307 ## ---------------- ##
2308 ## Cache variables. ##
2309 ## ---------------- ##
2310 _ASBOX
2311 echo
2312 # The following way of writing the cache mishandles newlines in values,
2314 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2315 eval ac_val=\$$ac_var
2316 case $ac_val in #(
2317 *${as_nl}*)
2318 case $ac_var in #(
2319 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2320 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2321 esac
2322 case $ac_var in #(
2323 _ | IFS | as_nl) ;; #(
2324 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2325 *) { eval $ac_var=; unset $ac_var;} ;;
2326 esac ;;
2327 esac
2328 done
2329 (set) 2>&1 |
2330 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2331 *${as_nl}ac_space=\ *)
2332 sed -n \
2333 "s/'\''/'\''\\\\'\'''\''/g;
2334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2335 ;; #(
2337 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2339 esac |
2340 sort
2342 echo
2344 cat <<\_ASBOX
2345 ## ----------------- ##
2346 ## Output variables. ##
2347 ## ----------------- ##
2348 _ASBOX
2349 echo
2350 for ac_var in $ac_subst_vars
2352 eval ac_val=\$$ac_var
2353 case $ac_val in
2354 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2355 esac
2356 $as_echo "$ac_var='\''$ac_val'\''"
2357 done | sort
2358 echo
2360 if test -n "$ac_subst_files"; then
2361 cat <<\_ASBOX
2362 ## ------------------- ##
2363 ## File substitutions. ##
2364 ## ------------------- ##
2365 _ASBOX
2366 echo
2367 for ac_var in $ac_subst_files
2369 eval ac_val=\$$ac_var
2370 case $ac_val in
2371 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2372 esac
2373 $as_echo "$ac_var='\''$ac_val'\''"
2374 done | sort
2375 echo
2378 if test -s confdefs.h; then
2379 cat <<\_ASBOX
2380 ## ----------- ##
2381 ## confdefs.h. ##
2382 ## ----------- ##
2383 _ASBOX
2384 echo
2385 cat confdefs.h
2386 echo
2388 test "$ac_signal" != 0 &&
2389 $as_echo "$as_me: caught signal $ac_signal"
2390 $as_echo "$as_me: exit $exit_status"
2391 } >&5
2392 rm -f core *.core core.conftest.* &&
2393 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2394 exit $exit_status
2396 for ac_signal in 1 2 13 15; do
2397 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2398 done
2399 ac_signal=0
2401 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2402 rm -f -r conftest* confdefs.h
2404 $as_echo "/* confdefs.h */" > confdefs.h
2406 # Predefined preprocessor variables.
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_NAME "$PACKAGE_NAME"
2410 _ACEOF
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2414 _ACEOF
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2418 _ACEOF
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_STRING "$PACKAGE_STRING"
2422 _ACEOF
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2426 _ACEOF
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_URL "$PACKAGE_URL"
2430 _ACEOF
2433 # Let the site file select an alternate cache file if it wants to.
2434 # Prefer an explicitly selected file to automatically selected ones.
2435 ac_site_file1=NONE
2436 ac_site_file2=NONE
2437 if test -n "$CONFIG_SITE"; then
2438 ac_site_file1=$CONFIG_SITE
2439 elif test "x$prefix" != xNONE; then
2440 ac_site_file1=$prefix/share/config.site
2441 ac_site_file2=$prefix/etc/config.site
2442 else
2443 ac_site_file1=$ac_default_prefix/share/config.site
2444 ac_site_file2=$ac_default_prefix/etc/config.site
2446 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2448 test "x$ac_site_file" = xNONE && continue
2449 if test -r "$ac_site_file"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2451 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2452 sed 's/^/| /' "$ac_site_file" >&5
2453 . "$ac_site_file"
2455 done
2457 if test -r "$cache_file"; then
2458 # Some versions of bash will fail to source /dev/null (special
2459 # files actually), so we avoid doing that.
2460 if test -f "$cache_file"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2462 $as_echo "$as_me: loading cache $cache_file" >&6;}
2463 case $cache_file in
2464 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2465 *) . "./$cache_file";;
2466 esac
2468 else
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2470 $as_echo "$as_me: creating cache $cache_file" >&6;}
2471 >$cache_file
2474 # Check that the precious variables saved in the cache have kept the same
2475 # value.
2476 ac_cache_corrupted=false
2477 for ac_var in $ac_precious_vars; do
2478 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2479 eval ac_new_set=\$ac_env_${ac_var}_set
2480 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2481 eval ac_new_val=\$ac_env_${ac_var}_value
2482 case $ac_old_set,$ac_new_set in
2483 set,)
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2485 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2486 ac_cache_corrupted=: ;;
2487 ,set)
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2489 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2490 ac_cache_corrupted=: ;;
2491 ,);;
2493 if test "x$ac_old_val" != "x$ac_new_val"; then
2494 # differences in whitespace do not lead to failure.
2495 ac_old_val_w=`echo x $ac_old_val`
2496 ac_new_val_w=`echo x $ac_new_val`
2497 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2499 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2500 ac_cache_corrupted=:
2501 else
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2503 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2504 eval $ac_var=\$ac_old_val
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2507 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2509 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2510 fi;;
2511 esac
2512 # Pass precious variables to config.status.
2513 if test "$ac_new_set" = set; then
2514 case $ac_new_val in
2515 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2516 *) ac_arg=$ac_var=$ac_new_val ;;
2517 esac
2518 case " $ac_configure_args " in
2519 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2520 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2521 esac
2523 done
2524 if $ac_cache_corrupted; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2528 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2529 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2531 ## -------------------- ##
2532 ## Main body of script. ##
2533 ## -------------------- ##
2535 ac_ext=c
2536 ac_cpp='$CPP $CPPFLAGS'
2537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545 ac_config_headers="$ac_config_headers config.h"
2548 # -------
2549 # Options
2550 # -------
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2553 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2554 # Check whether --enable-version-specific-runtime-libs was given.
2555 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2556 enableval=$enable_version_specific_runtime_libs;
2557 case "$enableval" in
2558 yes|no) ;;
2559 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2560 esac
2562 else
2563 enable_version_specific_runtime_libs=no
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2568 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2570 # We would like our source tree to be readonly. However when releases or
2571 # pre-releases are generated, the flex/bison generated files as well as the
2572 # various formats of manuals need to be included along with the rest of the
2573 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2574 # just that.
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2576 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2577 # Check whether --enable-generated-files-in-srcdir was given.
2578 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2579 enableval=$enable_generated_files_in_srcdir;
2580 case "$enableval" in
2581 yes|no) ;;
2582 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2583 esac
2585 else
2586 enable_generated_files_in_srcdir=no
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2591 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2592 if test "$enable_generated_files_in_srcdir" = yes; then
2593 GENINSRC_TRUE=
2594 GENINSRC_FALSE='#'
2595 else
2596 GENINSRC_TRUE='#'
2597 GENINSRC_FALSE=
2601 # -------
2602 # -------
2604 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2606 # You will slowly go insane if you do not grok the following fact: when
2607 # building this library, the top-level /target/ becomes the library's /host/.
2609 # configure then causes --target to default to --host, exactly like any
2610 # other package using autoconf. Therefore, 'target' and 'host' will
2611 # always be the same. This makes sense both for native and cross compilers
2612 # just think about it for a little while. :-)
2614 # Also, if this library is being configured as part of a cross compiler, the
2615 # top-level configure script will pass the "real" host as $with_cross_host.
2617 # Do not delete or change the following two lines. For why, see
2618 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2619 ac_aux_dir=
2620 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2621 for ac_t in install-sh install.sh shtool; do
2622 if test -f "$ac_dir/$ac_t"; then
2623 ac_aux_dir=$ac_dir
2624 ac_install_sh="$ac_aux_dir/$ac_t -c"
2625 break 2
2627 done
2628 done
2629 if test -z "$ac_aux_dir"; then
2630 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2633 # These three variables are undocumented and unsupported,
2634 # and are intended to be withdrawn in a future Autoconf release.
2635 # They can cause serious problems if a builder's source tree is in a directory
2636 # whose full name contains unusual characters.
2637 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2638 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2639 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2642 # Make sure we can run config.sub.
2643 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2644 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2647 $as_echo_n "checking build system type... " >&6; }
2648 if test "${ac_cv_build+set}" = set; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 ac_build_alias=$build_alias
2652 test "x$ac_build_alias" = x &&
2653 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2654 test "x$ac_build_alias" = x &&
2655 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2656 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2657 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2661 $as_echo "$ac_cv_build" >&6; }
2662 case $ac_cv_build in
2663 *-*-*) ;;
2664 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2665 esac
2666 build=$ac_cv_build
2667 ac_save_IFS=$IFS; IFS='-'
2668 set x $ac_cv_build
2669 shift
2670 build_cpu=$1
2671 build_vendor=$2
2672 shift; shift
2673 # Remember, the first character of IFS is used to create $*,
2674 # except with old shells:
2675 build_os=$*
2676 IFS=$ac_save_IFS
2677 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2681 $as_echo_n "checking host system type... " >&6; }
2682 if test "${ac_cv_host+set}" = set; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if test "x$host_alias" = x; then
2686 ac_cv_host=$ac_cv_build
2687 else
2688 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2689 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2694 $as_echo "$ac_cv_host" >&6; }
2695 case $ac_cv_host in
2696 *-*-*) ;;
2697 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2698 esac
2699 host=$ac_cv_host
2700 ac_save_IFS=$IFS; IFS='-'
2701 set x $ac_cv_host
2702 shift
2703 host_cpu=$1
2704 host_vendor=$2
2705 shift; shift
2706 # Remember, the first character of IFS is used to create $*,
2707 # except with old shells:
2708 host_os=$*
2709 IFS=$ac_save_IFS
2710 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2714 $as_echo_n "checking target system type... " >&6; }
2715 if test "${ac_cv_target+set}" = set; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 if test "x$target_alias" = x; then
2719 ac_cv_target=$ac_cv_host
2720 else
2721 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2722 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2727 $as_echo "$ac_cv_target" >&6; }
2728 case $ac_cv_target in
2729 *-*-*) ;;
2730 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2731 esac
2732 target=$ac_cv_target
2733 ac_save_IFS=$IFS; IFS='-'
2734 set x $ac_cv_target
2735 shift
2736 target_cpu=$1
2737 target_vendor=$2
2738 shift; shift
2739 # Remember, the first character of IFS is used to create $*,
2740 # except with old shells:
2741 target_os=$*
2742 IFS=$ac_save_IFS
2743 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2746 # The aliases save the names the user supplied, while $host etc.
2747 # will get canonicalized.
2748 test -n "$target_alias" &&
2749 test "$program_prefix$program_suffix$program_transform_name" = \
2750 NONENONEs,x,x, &&
2751 program_prefix=${target_alias}-
2753 target_alias=${target_alias-$host_alias}
2755 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2756 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2757 # 1.9.0: minimum required version
2758 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2759 # of other PACKAGE_* variables will, however, and there's nothing
2760 # we can do about that; they come from AC_INIT).
2761 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2762 # file in the top srcdir, etc, etc), so stop complaining.
2763 # no-dist: we don't want 'dist' and related rules.
2764 # -Wall: turns on all automake warnings...
2765 # -Wno-portability: ...except this one, since GNU make is required.
2766 # -Wno-override: ... and this one, since we do want this in testsuite.
2767 am__api_version='1.11'
2769 # Find a good install program. We prefer a C program (faster),
2770 # so one script is as good as another. But avoid the broken or
2771 # incompatible versions:
2772 # SysV /etc/install, /usr/sbin/install
2773 # SunOS /usr/etc/install
2774 # IRIX /sbin/install
2775 # AIX /bin/install
2776 # AmigaOS /C/install, which installs bootblocks on floppy discs
2777 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2778 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2779 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2780 # OS/2's system install, which has a completely different semantic
2781 # ./install, which can be erroneously created by make from ./install.sh.
2782 # Reject install programs that cannot install multiple files.
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2784 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2785 if test -z "$INSTALL"; then
2786 if test "${ac_cv_path_install+set}" = set; then :
2787 $as_echo_n "(cached) " >&6
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 # Account for people who put trailing slashes in PATH elements.
2795 case $as_dir/ in #((
2796 ./ | .// | /[cC]/* | \
2797 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2798 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2799 /usr/ucb/* ) ;;
2801 # OSF1 and SCO ODT 3.0 have their own names for install.
2802 # Don't use installbsd from OSF since it installs stuff as root
2803 # by default.
2804 for ac_prog in ginstall scoinst install; do
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2807 if test $ac_prog = install &&
2808 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2809 # AIX install. It has an incompatible calling convention.
2811 elif test $ac_prog = install &&
2812 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2813 # program-specific install script used by HP pwplus--don't use.
2815 else
2816 rm -rf conftest.one conftest.two conftest.dir
2817 echo one > conftest.one
2818 echo two > conftest.two
2819 mkdir conftest.dir
2820 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2821 test -s conftest.one && test -s conftest.two &&
2822 test -s conftest.dir/conftest.one &&
2823 test -s conftest.dir/conftest.two
2824 then
2825 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2826 break 3
2830 done
2831 done
2833 esac
2835 done
2836 IFS=$as_save_IFS
2838 rm -rf conftest.one conftest.two conftest.dir
2841 if test "${ac_cv_path_install+set}" = set; then
2842 INSTALL=$ac_cv_path_install
2843 else
2844 # As a last resort, use the slow shell script. Don't cache a
2845 # value for INSTALL within a source directory, because that will
2846 # break other packages using the cache if that directory is
2847 # removed, or if the value is a relative name.
2848 INSTALL=$ac_install_sh
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2852 $as_echo "$INSTALL" >&6; }
2854 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2855 # It thinks the first close brace ends the variable substitution.
2856 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2858 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2860 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2863 $as_echo_n "checking whether build environment is sane... " >&6; }
2864 # Just in case
2865 sleep 1
2866 echo timestamp > conftest.file
2867 # Reject unsafe characters in $srcdir or the absolute working directory
2868 # name. Accept space and tab only in the latter.
2869 am_lf='
2871 case `pwd` in
2872 *[\\\"\#\$\&\'\`$am_lf]*)
2873 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2874 esac
2875 case $srcdir in
2876 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2877 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2878 esac
2880 # Do `set' in a subshell so we don't clobber the current shell's
2881 # arguments. Must try -L first in case configure is actually a
2882 # symlink; some systems play weird games with the mod time of symlinks
2883 # (eg FreeBSD returns the mod time of the symlink's containing
2884 # directory).
2885 if (
2886 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2887 if test "$*" = "X"; then
2888 # -L didn't work.
2889 set X `ls -t "$srcdir/configure" conftest.file`
2891 rm -f conftest.file
2892 if test "$*" != "X $srcdir/configure conftest.file" \
2893 && test "$*" != "X conftest.file $srcdir/configure"; then
2895 # If neither matched, then we have a broken ls. This can happen
2896 # if, for instance, CONFIG_SHELL is bash and it inherits a
2897 # broken ls alias from the environment. This has actually
2898 # happened. Such a system could not be considered "sane".
2899 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2900 alias in your environment" "$LINENO" 5
2903 test "$2" = conftest.file
2905 then
2906 # Ok.
2908 else
2909 as_fn_error "newly created file is older than distributed files!
2910 Check your system clock" "$LINENO" 5
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2913 $as_echo "yes" >&6; }
2914 test "$program_prefix" != NONE &&
2915 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2916 # Use a double $ so make ignores it.
2917 test "$program_suffix" != NONE &&
2918 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2919 # Double any \ or $.
2920 # By default was `s,x,x', remove it if useless.
2921 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2922 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2924 # expand $ac_aux_dir to an absolute path
2925 am_aux_dir=`cd $ac_aux_dir && pwd`
2927 if test x"${MISSING+set}" != xset; then
2928 case $am_aux_dir in
2929 *\ * | *\ *)
2930 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2932 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2933 esac
2935 # Use eval to expand $SHELL
2936 if eval "$MISSING --run true"; then
2937 am_missing_run="$MISSING --run "
2938 else
2939 am_missing_run=
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2941 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2944 if test x"${install_sh}" != xset; then
2945 case $am_aux_dir in
2946 *\ * | *\ *)
2947 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2949 install_sh="\${SHELL} $am_aux_dir/install-sh"
2950 esac
2953 # Installed binaries are usually stripped using `strip' when the user
2954 # run `make install-strip'. However `strip' might not be the right
2955 # tool to use in cross-compilation environments, therefore Automake
2956 # will honor the `STRIP' environment variable to overrule this program.
2957 if test "$cross_compiling" != no; then
2958 if test -n "$ac_tool_prefix"; then
2959 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2960 set dummy ${ac_tool_prefix}strip; ac_word=$2
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if test "${ac_cv_prog_STRIP+set}" = set; then :
2964 $as_echo_n "(cached) " >&6
2965 else
2966 if test -n "$STRIP"; then
2967 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2980 done
2981 done
2982 IFS=$as_save_IFS
2986 STRIP=$ac_cv_prog_STRIP
2987 if test -n "$STRIP"; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2989 $as_echo "$STRIP" >&6; }
2990 else
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2997 if test -z "$ac_cv_prog_STRIP"; then
2998 ac_ct_STRIP=$STRIP
2999 # Extract the first word of "strip", so it can be a program name with args.
3000 set dummy strip; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3004 $as_echo_n "(cached) " >&6
3005 else
3006 if test -n "$ac_ct_STRIP"; then
3007 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3012 IFS=$as_save_IFS
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3016 ac_cv_prog_ac_ct_STRIP="strip"
3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 break 2
3020 done
3021 done
3022 IFS=$as_save_IFS
3026 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3027 if test -n "$ac_ct_STRIP"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3029 $as_echo "$ac_ct_STRIP" >&6; }
3030 else
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3035 if test "x$ac_ct_STRIP" = x; then
3036 STRIP=":"
3037 else
3038 case $cross_compiling:$ac_tool_warned in
3039 yes:)
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3042 ac_tool_warned=yes ;;
3043 esac
3044 STRIP=$ac_ct_STRIP
3046 else
3047 STRIP="$ac_cv_prog_STRIP"
3051 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3054 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3055 if test -z "$MKDIR_P"; then
3056 if test "${ac_cv_path_mkdir+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
3064 for ac_prog in mkdir gmkdir; do
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3067 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3068 'mkdir (GNU coreutils) '* | \
3069 'mkdir (coreutils) '* | \
3070 'mkdir (fileutils) '4.1*)
3071 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3072 break 3;;
3073 esac
3074 done
3075 done
3076 done
3077 IFS=$as_save_IFS
3081 if test "${ac_cv_path_mkdir+set}" = set; then
3082 MKDIR_P="$ac_cv_path_mkdir -p"
3083 else
3084 # As a last resort, use the slow shell script. Don't cache a
3085 # value for MKDIR_P within a source directory, because that will
3086 # break other packages using the cache if that directory is
3087 # removed, or if the value is a relative name.
3088 test -d ./--version && rmdir ./--version
3089 MKDIR_P="$ac_install_sh -d"
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3093 $as_echo "$MKDIR_P" >&6; }
3095 mkdir_p="$MKDIR_P"
3096 case $mkdir_p in
3097 [\\/$]* | ?:[\\/]*) ;;
3098 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3099 esac
3101 for ac_prog in gawk mawk nawk awk
3103 # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy $ac_prog; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if test "${ac_cv_prog_AWK+set}" = set; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test -n "$AWK"; then
3111 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120 ac_cv_prog_AWK="$ac_prog"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3124 done
3125 done
3126 IFS=$as_save_IFS
3130 AWK=$ac_cv_prog_AWK
3131 if test -n "$AWK"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3133 $as_echo "$AWK" >&6; }
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3140 test -n "$AWK" && break
3141 done
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3144 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3145 set x ${MAKE-make}
3146 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3147 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 cat >conftest.make <<\_ACEOF
3151 SHELL = /bin/sh
3152 all:
3153 @echo '@@@%%%=$(MAKE)=@@@%%%'
3154 _ACEOF
3155 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3156 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3157 *@@@%%%=?*=@@@%%%*)
3158 eval ac_cv_prog_make_${ac_make}_set=yes;;
3160 eval ac_cv_prog_make_${ac_make}_set=no;;
3161 esac
3162 rm -f conftest.make
3164 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3166 $as_echo "yes" >&6; }
3167 SET_MAKE=
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 SET_MAKE="MAKE=${MAKE-make}"
3174 rm -rf .tst 2>/dev/null
3175 mkdir .tst 2>/dev/null
3176 if test -d .tst; then
3177 am__leading_dot=.
3178 else
3179 am__leading_dot=_
3181 rmdir .tst 2>/dev/null
3183 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3184 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3185 # is not polluted with repeated "-I."
3186 am__isrc=' -I$(srcdir)'
3187 # test to see if srcdir already configured
3188 if test -f $srcdir/config.status; then
3189 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3193 # test whether we have cygpath
3194 if test -z "$CYGPATH_W"; then
3195 if (cygpath --version) >/dev/null 2>/dev/null; then
3196 CYGPATH_W='cygpath -w'
3197 else
3198 CYGPATH_W=echo
3203 # Define the identity of the package.
3204 PACKAGE='libgomp'
3205 VERSION='1.0'
3208 cat >>confdefs.h <<_ACEOF
3209 #define PACKAGE "$PACKAGE"
3210 _ACEOF
3213 cat >>confdefs.h <<_ACEOF
3214 #define VERSION "$VERSION"
3215 _ACEOF
3217 # Some tools Automake needs.
3219 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3222 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3225 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3228 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3231 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3233 # We need awk for the "check" target. The system "awk" is bad on
3234 # some platforms.
3235 # Always define AMTAR for backward compatibility.
3237 AMTAR=${AMTAR-"${am_missing_run}tar"}
3239 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3245 # Default to --enable-multilib
3246 # Check whether --enable-multilib was given.
3247 if test "${enable_multilib+set}" = set; then :
3248 enableval=$enable_multilib; case "$enableval" in
3249 yes) multilib=yes ;;
3250 no) multilib=no ;;
3251 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3252 esac
3253 else
3254 multilib=yes
3258 # We may get other options which we leave undocumented:
3259 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3260 # See config-ml.in if you want the gory details.
3262 if test "$srcdir" = "."; then
3263 if test "$with_target_subdir" != "."; then
3264 multi_basedir="$srcdir/$with_multisrctop../.."
3265 else
3266 multi_basedir="$srcdir/$with_multisrctop.."
3268 else
3269 multi_basedir="$srcdir/.."
3273 # Even if the default multilib is not a cross compilation,
3274 # it may be that some of the other multilibs are.
3275 if test $cross_compiling = no && test $multilib = yes \
3276 && test "x${with_multisubdir}" != x ; then
3277 cross_compiling=maybe
3280 ac_config_commands="$ac_config_commands default-1"
3283 # Calculate toolexeclibdir
3284 # Also toolexecdir, though it's only used in toolexeclibdir
3285 case ${enable_version_specific_runtime_libs} in
3286 yes)
3287 # Need the gcc compiler version to know where to install libraries
3288 # and header files if --enable-version-specific-runtime-libs option
3289 # is selected.
3290 toolexecdir='$(libdir)/gcc/$(target_alias)'
3291 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3294 if test -n "$with_cross_host" &&
3295 test x"$with_cross_host" != x"no"; then
3296 # Install a library built with a cross compiler in tooldir, not libdir.
3297 toolexecdir='$(exec_prefix)/$(target_alias)'
3298 toolexeclibdir='$(toolexecdir)/lib'
3299 else
3300 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3301 toolexeclibdir='$(libdir)'
3303 multi_os_directory=`$CC -print-multi-os-directory`
3304 case $multi_os_directory in
3305 .) ;; # Avoid trailing /.
3306 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3307 esac
3309 esac
3313 # Check the compiler.
3314 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3315 # We must force CC to /not/ be precious variables; otherwise
3316 # the wrong, non-multilib-adjusted value will be used in multilibs.
3317 # As a side effect, we have to subst CFLAGS ourselves.
3321 ac_ext=c
3322 ac_cpp='$CPP $CPPFLAGS'
3323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326 if test -n "$ac_tool_prefix"; then
3327 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3328 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if test "${ac_cv_prog_CC+set}" = set; then :
3332 $as_echo_n "(cached) " >&6
3333 else
3334 if test -n "$CC"; then
3335 ac_cv_prog_CC="$CC" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3348 done
3349 done
3350 IFS=$as_save_IFS
3354 CC=$ac_cv_prog_CC
3355 if test -n "$CC"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3365 if test -z "$ac_cv_prog_CC"; then
3366 ac_ct_CC=$CC
3367 # Extract the first word of "gcc", so it can be a program name with args.
3368 set dummy gcc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 if test -n "$ac_ct_CC"; then
3375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384 ac_cv_prog_ac_ct_CC="gcc"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 break 2
3388 done
3389 done
3390 IFS=$as_save_IFS
3394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3395 if test -n "$ac_ct_CC"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3397 $as_echo "$ac_ct_CC" >&6; }
3398 else
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3403 if test "x$ac_ct_CC" = x; then
3404 CC=""
3405 else
3406 case $cross_compiling:$ac_tool_warned in
3407 yes:)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned=yes ;;
3411 esac
3412 CC=$ac_ct_CC
3414 else
3415 CC="$ac_cv_prog_CC"
3418 if test -z "$CC"; then
3419 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}cc; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if test "${ac_cv_prog_CC+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_CC="${ac_tool_prefix}cc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3441 done
3442 done
3443 IFS=$as_save_IFS
3447 CC=$ac_cv_prog_CC
3448 if test -n "$CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 $as_echo "$CC" >&6; }
3451 else
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3459 if test -z "$CC"; then
3460 # Extract the first word of "cc", so it can be a program name with args.
3461 set dummy cc; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if test "${ac_cv_prog_CC+set}" = set; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467 if test -n "$CC"; then
3468 ac_cv_prog_CC="$CC" # Let the user override the test.
3469 else
3470 ac_prog_rejected=no
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3479 ac_prog_rejected=yes
3480 continue
3482 ac_cv_prog_CC="cc"
3483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 break 2
3486 done
3487 done
3488 IFS=$as_save_IFS
3490 if test $ac_prog_rejected = yes; then
3491 # We found a bogon in the path, so make sure we never use it.
3492 set dummy $ac_cv_prog_CC
3493 shift
3494 if test $# != 0; then
3495 # We chose a different compiler from the bogus one.
3496 # However, it has the same basename, so the bogon will be chosen
3497 # first if we set CC to just the basename; use the full file name.
3498 shift
3499 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3504 CC=$ac_cv_prog_CC
3505 if test -n "$CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 $as_echo "$CC" >&6; }
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3515 if test -z "$CC"; then
3516 if test -n "$ac_tool_prefix"; then
3517 for ac_prog in cl.exe
3519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if test "${ac_cv_prog_CC+set}" = set; then :
3524 $as_echo_n "(cached) " >&6
3525 else
3526 if test -n "$CC"; then
3527 ac_cv_prog_CC="$CC" # Let the user override the test.
3528 else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 break 2
3540 done
3541 done
3542 IFS=$as_save_IFS
3546 CC=$ac_cv_prog_CC
3547 if test -n "$CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 $as_echo "$CC" >&6; }
3550 else
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3556 test -n "$CC" && break
3557 done
3559 if test -z "$CC"; then
3560 ac_ct_CC=$CC
3561 for ac_prog in cl.exe
3563 # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy $ac_prog; ac_word=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 if test -n "$ac_ct_CC"; then
3571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3576 IFS=$as_save_IFS
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3580 ac_cv_prog_ac_ct_CC="$ac_prog"
3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 break 2
3584 done
3585 done
3586 IFS=$as_save_IFS
3590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3591 if test -n "$ac_ct_CC"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3593 $as_echo "$ac_ct_CC" >&6; }
3594 else
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3600 test -n "$ac_ct_CC" && break
3601 done
3603 if test "x$ac_ct_CC" = x; then
3604 CC=""
3605 else
3606 case $cross_compiling:$ac_tool_warned in
3607 yes:)
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3610 ac_tool_warned=yes ;;
3611 esac
3612 CC=$ac_ct_CC
3619 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error "no acceptable C compiler found in \$PATH
3622 See \`config.log' for more details." "$LINENO" 5; }
3624 # Provide some information about the compiler.
3625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3626 set X $ac_compile
3627 ac_compiler=$2
3628 for ac_option in --version -v -V -qversion; do
3629 { { ac_try="$ac_compiler $ac_option >&5"
3630 case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3637 ac_status=$?
3638 if test -s conftest.err; then
3639 sed '10a\
3640 ... rest of stderr output deleted ...
3641 10q' conftest.err >conftest.er1
3642 cat conftest.er1 >&5
3643 rm -f conftest.er1 conftest.err
3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646 test $ac_status = 0; }
3647 done
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3653 main ()
3657 return 0;
3659 _ACEOF
3660 ac_clean_files_save=$ac_clean_files
3661 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3662 # Try to create an executable without -o first, disregard a.out.
3663 # It will help us diagnose broken compilers, and finding out an intuition
3664 # of exeext.
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3666 $as_echo_n "checking for C compiler default output file name... " >&6; }
3667 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3669 # The possible output files:
3670 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3672 ac_rmfiles=
3673 for ac_file in $ac_files
3675 case $ac_file in
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3677 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3678 esac
3679 done
3680 rm -f $ac_rmfiles
3682 if { { ac_try="$ac_link_default"
3683 case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_link_default") 2>&5
3690 ac_status=$?
3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }; then :
3693 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3694 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3695 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3696 # so that the user can short-circuit this test for compilers unknown to
3697 # Autoconf.
3698 for ac_file in $ac_files ''
3700 test -f "$ac_file" || continue
3701 case $ac_file in
3702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3704 [ab].out )
3705 # We found the default executable, but exeext='' is most
3706 # certainly right.
3707 break;;
3708 *.* )
3709 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3710 then :; else
3711 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3713 # We set ac_cv_exeext here because the later test for it is not
3714 # safe: cross compilers may not add the suffix if given an `-o'
3715 # argument, so we may need to know it at that point already.
3716 # Even if this section looks crufty: it has the advantage of
3717 # actually working.
3718 break;;
3720 break;;
3721 esac
3722 done
3723 test "$ac_cv_exeext" = no && ac_cv_exeext=
3725 else
3726 ac_file=''
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3729 $as_echo "$ac_file" >&6; }
3730 if test -z "$ac_file"; then :
3731 $as_echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736 { as_fn_set_status 77
3737 as_fn_error "C compiler cannot create executables
3738 See \`config.log' for more details." "$LINENO" 5; }; }
3740 ac_exeext=$ac_cv_exeext
3742 # Check that the compiler produces executables we can run. If not, either
3743 # the compiler is broken, or we cross compile.
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3745 $as_echo_n "checking whether the C compiler works... " >&6; }
3746 # If not cross compiling, check that we can run a simple program.
3747 if test "$cross_compiling" != yes; then
3748 if { ac_try='./$ac_file'
3749 { { case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752 esac
3753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754 $as_echo "$ac_try_echo"; } >&5
3755 (eval "$ac_try") 2>&5
3756 ac_status=$?
3757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758 test $ac_status = 0; }; }; then
3759 cross_compiling=no
3760 else
3761 if test "$cross_compiling" = maybe; then
3762 cross_compiling=yes
3763 else
3764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3766 as_fn_error "cannot run C compiled programs.
3767 If you meant to cross compile, use \`--host'.
3768 See \`config.log' for more details." "$LINENO" 5; }
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3773 $as_echo "yes" >&6; }
3775 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3776 ac_clean_files=$ac_clean_files_save
3777 # Check that the compiler produces executables we can run. If not, either
3778 # the compiler is broken, or we cross compile.
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3780 $as_echo_n "checking whether we are cross compiling... " >&6; }
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3782 $as_echo "$cross_compiling" >&6; }
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3785 $as_echo_n "checking for suffix of executables... " >&6; }
3786 if { { ac_try="$ac_link"
3787 case "(($ac_try" in
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3790 esac
3791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3792 $as_echo "$ac_try_echo"; } >&5
3793 (eval "$ac_link") 2>&5
3794 ac_status=$?
3795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796 test $ac_status = 0; }; then :
3797 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3798 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3799 # work properly (i.e., refer to `conftest.exe'), while it won't with
3800 # `rm'.
3801 for ac_file in conftest.exe conftest conftest.*; do
3802 test -f "$ac_file" || continue
3803 case $ac_file in
3804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3805 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3806 break;;
3807 * ) break;;
3808 esac
3809 done
3810 else
3811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3813 as_fn_error "cannot compute suffix of executables: cannot compile and link
3814 See \`config.log' for more details." "$LINENO" 5; }
3816 rm -f conftest$ac_cv_exeext
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3818 $as_echo "$ac_cv_exeext" >&6; }
3820 rm -f conftest.$ac_ext
3821 EXEEXT=$ac_cv_exeext
3822 ac_exeext=$EXEEXT
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3824 $as_echo_n "checking for suffix of object files... " >&6; }
3825 if test "${ac_cv_objext+set}" = set; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3832 main ()
3836 return 0;
3838 _ACEOF
3839 rm -f conftest.o conftest.obj
3840 if { { ac_try="$ac_compile"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847 (eval "$ac_compile") 2>&5
3848 ac_status=$?
3849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850 test $ac_status = 0; }; then :
3851 for ac_file in conftest.o conftest.obj conftest.*; do
3852 test -f "$ac_file" || continue;
3853 case $ac_file in
3854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3855 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3856 break;;
3857 esac
3858 done
3859 else
3860 $as_echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3865 as_fn_error "cannot compute suffix of object files: cannot compile
3866 See \`config.log' for more details." "$LINENO" 5; }
3868 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3871 $as_echo "$ac_cv_objext" >&6; }
3872 OBJEXT=$ac_cv_objext
3873 ac_objext=$OBJEXT
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3875 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3876 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3883 main ()
3885 #ifndef __GNUC__
3886 choke me
3887 #endif
3890 return 0;
3892 _ACEOF
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894 ac_compiler_gnu=yes
3895 else
3896 ac_compiler_gnu=no
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3903 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3904 if test $ac_compiler_gnu = yes; then
3905 GCC=yes
3906 else
3907 GCC=
3909 ac_test_CFLAGS=${CFLAGS+set}
3910 ac_save_CFLAGS=$CFLAGS
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3912 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3913 if test "${ac_cv_prog_cc_g+set}" = set; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 ac_save_c_werror_flag=$ac_c_werror_flag
3917 ac_c_werror_flag=yes
3918 ac_cv_prog_cc_g=no
3919 CFLAGS="-g"
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3924 main ()
3928 return 0;
3930 _ACEOF
3931 if ac_fn_c_try_compile "$LINENO"; then :
3932 ac_cv_prog_cc_g=yes
3933 else
3934 CFLAGS=""
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3939 main ()
3943 return 0;
3945 _ACEOF
3946 if ac_fn_c_try_compile "$LINENO"; then :
3948 else
3949 ac_c_werror_flag=$ac_save_c_werror_flag
3950 CFLAGS="-g"
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3955 main ()
3959 return 0;
3961 _ACEOF
3962 if ac_fn_c_try_compile "$LINENO"; then :
3963 ac_cv_prog_cc_g=yes
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 ac_c_werror_flag=$ac_save_c_werror_flag
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3973 $as_echo "$ac_cv_prog_cc_g" >&6; }
3974 if test "$ac_test_CFLAGS" = set; then
3975 CFLAGS=$ac_save_CFLAGS
3976 elif test $ac_cv_prog_cc_g = yes; then
3977 if test "$GCC" = yes; then
3978 CFLAGS="-g -O2"
3979 else
3980 CFLAGS="-g"
3982 else
3983 if test "$GCC" = yes; then
3984 CFLAGS="-O2"
3985 else
3986 CFLAGS=
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3990 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3991 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 ac_cv_prog_cc_c89=no
3995 ac_save_CC=$CC
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998 #include <stdarg.h>
3999 #include <stdio.h>
4000 #include <sys/types.h>
4001 #include <sys/stat.h>
4002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4003 struct buf { int x; };
4004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4005 static char *e (p, i)
4006 char **p;
4007 int i;
4009 return p[i];
4011 static char *f (char * (*g) (char **, int), char **p, ...)
4013 char *s;
4014 va_list v;
4015 va_start (v,p);
4016 s = g (p, va_arg (v,int));
4017 va_end (v);
4018 return s;
4021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4022 function prototypes and stuff, but not '\xHH' hex character constants.
4023 These don't provoke an error unfortunately, instead are silently treated
4024 as 'x'. The following induces an error, until -std is added to get
4025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4026 array size at least. It's necessary to write '\x00'==0 to get something
4027 that's true only with -std. */
4028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4030 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4031 inside strings and character constants. */
4032 #define FOO(x) 'x'
4033 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4035 int test (int i, double x);
4036 struct s1 {int (*f) (int a);};
4037 struct s2 {int (*f) (double a);};
4038 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4039 int argc;
4040 char **argv;
4042 main ()
4044 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4046 return 0;
4048 _ACEOF
4049 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4050 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4052 CC="$ac_save_CC $ac_arg"
4053 if ac_fn_c_try_compile "$LINENO"; then :
4054 ac_cv_prog_cc_c89=$ac_arg
4056 rm -f core conftest.err conftest.$ac_objext
4057 test "x$ac_cv_prog_cc_c89" != "xno" && break
4058 done
4059 rm -f conftest.$ac_ext
4060 CC=$ac_save_CC
4063 # AC_CACHE_VAL
4064 case "x$ac_cv_prog_cc_c89" in
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4067 $as_echo "none needed" >&6; } ;;
4068 xno)
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4070 $as_echo "unsupported" >&6; } ;;
4072 CC="$CC $ac_cv_prog_cc_c89"
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4074 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4075 esac
4076 if test "x$ac_cv_prog_cc_c89" != xno; then :
4080 ac_ext=c
4081 ac_cpp='$CPP $CPPFLAGS'
4082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085 DEPDIR="${am__leading_dot}deps"
4087 ac_config_commands="$ac_config_commands depfiles"
4090 am_make=${MAKE-make}
4091 cat > confinc << 'END'
4092 am__doit:
4093 @echo this is the am__doit target
4094 .PHONY: am__doit
4096 # If we don't find an include directive, just comment out the code.
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4098 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4099 am__include="#"
4100 am__quote=
4101 _am_result=none
4102 # First try GNU make style include.
4103 echo "include confinc" > confmf
4104 # Ignore all kinds of additional output from `make'.
4105 case `$am_make -s -f confmf 2> /dev/null` in #(
4106 *the\ am__doit\ target*)
4107 am__include=include
4108 am__quote=
4109 _am_result=GNU
4111 esac
4112 # Now try BSD make style include.
4113 if test "$am__include" = "#"; then
4114 echo '.include "confinc"' > confmf
4115 case `$am_make -s -f confmf 2> /dev/null` in #(
4116 *the\ am__doit\ target*)
4117 am__include=.include
4118 am__quote="\""
4119 _am_result=BSD
4121 esac
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4126 $as_echo "$_am_result" >&6; }
4127 rm -f confinc confmf
4129 # Check whether --enable-dependency-tracking was given.
4130 if test "${enable_dependency_tracking+set}" = set; then :
4131 enableval=$enable_dependency_tracking;
4134 if test "x$enable_dependency_tracking" != xno; then
4135 am_depcomp="$ac_aux_dir/depcomp"
4136 AMDEPBACKSLASH='\'
4138 if test "x$enable_dependency_tracking" != xno; then
4139 AMDEP_TRUE=
4140 AMDEP_FALSE='#'
4141 else
4142 AMDEP_TRUE='#'
4143 AMDEP_FALSE=
4148 depcc="$CC" am_compiler_list=
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4151 $as_echo_n "checking dependency style of $depcc... " >&6; }
4152 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4156 # We make a subdir and do the tests there. Otherwise we can end up
4157 # making bogus files that we don't know about and never remove. For
4158 # instance it was reported that on HP-UX the gcc test will end up
4159 # making a dummy file named `D' -- because `-MD' means `put the output
4160 # in D'.
4161 mkdir conftest.dir
4162 # Copy depcomp to subdir because otherwise we won't find it if we're
4163 # using a relative directory.
4164 cp "$am_depcomp" conftest.dir
4165 cd conftest.dir
4166 # We will build objects and dependencies in a subdirectory because
4167 # it helps to detect inapplicable dependency modes. For instance
4168 # both Tru64's cc and ICC support -MD to output dependencies as a
4169 # side effect of compilation, but ICC will put the dependencies in
4170 # the current directory while Tru64 will put them in the object
4171 # directory.
4172 mkdir sub
4174 am_cv_CC_dependencies_compiler_type=none
4175 if test "$am_compiler_list" = ""; then
4176 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4178 am__universal=false
4179 case " $depcc " in #(
4180 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4181 esac
4183 for depmode in $am_compiler_list; do
4184 # Setup a source with many dependencies, because some compilers
4185 # like to wrap large dependency lists on column 80 (with \), and
4186 # we should not choose a depcomp mode which is confused by this.
4188 # We need to recreate these files for each test, as the compiler may
4189 # overwrite some of them when testing with obscure command lines.
4190 # This happens at least with the AIX C compiler.
4191 : > sub/conftest.c
4192 for i in 1 2 3 4 5 6; do
4193 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4194 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4195 # Solaris 8's {/usr,}/bin/sh.
4196 touch sub/conftst$i.h
4197 done
4198 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4200 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4201 # mode. It turns out that the SunPro C++ compiler does not properly
4202 # handle `-M -o', and we need to detect this. Also, some Intel
4203 # versions had trouble with output in subdirs
4204 am__obj=sub/conftest.${OBJEXT-o}
4205 am__minus_obj="-o $am__obj"
4206 case $depmode in
4207 gcc)
4208 # This depmode causes a compiler race in universal mode.
4209 test "$am__universal" = false || continue
4211 nosideeffect)
4212 # after this tag, mechanisms are not by side-effect, so they'll
4213 # only be used when explicitly requested
4214 if test "x$enable_dependency_tracking" = xyes; then
4215 continue
4216 else
4217 break
4220 msvisualcpp | msvcmsys)
4221 # This compiler won't grok `-c -o', but also, the minuso test has
4222 # not run yet. These depmodes are late enough in the game, and
4223 # so weak that their functioning should not be impacted.
4224 am__obj=conftest.${OBJEXT-o}
4225 am__minus_obj=
4227 none) break ;;
4228 esac
4229 if depmode=$depmode \
4230 source=sub/conftest.c object=$am__obj \
4231 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4232 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4233 >/dev/null 2>conftest.err &&
4234 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4235 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4236 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4237 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4238 # icc doesn't choke on unknown options, it will just issue warnings
4239 # or remarks (even with -Werror). So we grep stderr for any message
4240 # that says an option was ignored or not supported.
4241 # When given -MP, icc 7.0 and 7.1 complain thusly:
4242 # icc: Command line warning: ignoring option '-M'; no argument required
4243 # The diagnosis changed in icc 8.0:
4244 # icc: Command line remark: option '-MP' not supported
4245 if (grep 'ignoring option' conftest.err ||
4246 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4247 am_cv_CC_dependencies_compiler_type=$depmode
4248 break
4251 done
4253 cd ..
4254 rm -rf conftest.dir
4255 else
4256 am_cv_CC_dependencies_compiler_type=none
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4261 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4262 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4265 test "x$enable_dependency_tracking" != xno \
4266 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4267 am__fastdepCC_TRUE=
4268 am__fastdepCC_FALSE='#'
4269 else
4270 am__fastdepCC_TRUE='#'
4271 am__fastdepCC_FALSE=
4279 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4280 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4281 # in both places for now and restore CFLAGS at the end of config.
4282 save_CFLAGS="$CFLAGS"
4284 # Add -Wall -Werror if we are using GCC.
4285 if test "x$GCC" = "xyes"; then
4286 XCFLAGS="$XCFLAGS -Wall -Werror"
4289 # Find other programs we need.
4290 if test -n "$ac_tool_prefix"; then
4291 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4292 set dummy ${ac_tool_prefix}ar; ac_word=$2
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 $as_echo_n "checking for $ac_word... " >&6; }
4295 if test "${ac_cv_prog_AR+set}" = set; then :
4296 $as_echo_n "(cached) " >&6
4297 else
4298 if test -n "$AR"; then
4299 ac_cv_prog_AR="$AR" # Let the user override the test.
4300 else
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4308 ac_cv_prog_AR="${ac_tool_prefix}ar"
4309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 break 2
4312 done
4313 done
4314 IFS=$as_save_IFS
4318 AR=$ac_cv_prog_AR
4319 if test -n "$AR"; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4321 $as_echo "$AR" >&6; }
4322 else
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4329 if test -z "$ac_cv_prog_AR"; then
4330 ac_ct_AR=$AR
4331 # Extract the first word of "ar", so it can be a program name with args.
4332 set dummy ar; ac_word=$2
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4334 $as_echo_n "checking for $ac_word... " >&6; }
4335 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 if test -n "$ac_ct_AR"; then
4339 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4340 else
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4348 ac_cv_prog_ac_ct_AR="ar"
4349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 break 2
4352 done
4353 done
4354 IFS=$as_save_IFS
4358 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4359 if test -n "$ac_ct_AR"; then
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4361 $as_echo "$ac_ct_AR" >&6; }
4362 else
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364 $as_echo "no" >&6; }
4367 if test "x$ac_ct_AR" = x; then
4368 AR=""
4369 else
4370 case $cross_compiling:$ac_tool_warned in
4371 yes:)
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4374 ac_tool_warned=yes ;;
4375 esac
4376 AR=$ac_ct_AR
4378 else
4379 AR="$ac_cv_prog_AR"
4382 if test -n "$ac_tool_prefix"; then
4383 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4384 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386 $as_echo_n "checking for $ac_word... " >&6; }
4387 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 if test -n "$RANLIB"; then
4391 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4404 done
4405 done
4406 IFS=$as_save_IFS
4410 RANLIB=$ac_cv_prog_RANLIB
4411 if test -n "$RANLIB"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4413 $as_echo "$RANLIB" >&6; }
4414 else
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4421 if test -z "$ac_cv_prog_RANLIB"; then
4422 ac_ct_RANLIB=$RANLIB
4423 # Extract the first word of "ranlib", so it can be a program name with args.
4424 set dummy ranlib; ac_word=$2
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4426 $as_echo_n "checking for $ac_word... " >&6; }
4427 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 if test -n "$ac_ct_RANLIB"; then
4431 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_ac_ct_RANLIB="ranlib"
4441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4444 done
4445 done
4446 IFS=$as_save_IFS
4450 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4451 if test -n "$ac_ct_RANLIB"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4453 $as_echo "$ac_ct_RANLIB" >&6; }
4454 else
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4459 if test "x$ac_ct_RANLIB" = x; then
4460 RANLIB="ranlib-not-found-in-path-error"
4461 else
4462 case $cross_compiling:$ac_tool_warned in
4463 yes:)
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4466 ac_tool_warned=yes ;;
4467 esac
4468 RANLIB=$ac_ct_RANLIB
4470 else
4471 RANLIB="$ac_cv_prog_RANLIB"
4474 # Extract the first word of "perl", so it can be a program name with args.
4475 set dummy perl; ac_word=$2
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477 $as_echo_n "checking for $ac_word... " >&6; }
4478 if test "${ac_cv_path_PERL+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 case $PERL in
4482 [\\/]* | ?:[\\/]*)
4483 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4497 done
4498 done
4499 IFS=$as_save_IFS
4501 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4503 esac
4505 PERL=$ac_cv_path_PERL
4506 if test -n "$PERL"; then
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4508 $as_echo "$PERL" >&6; }
4509 else
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511 $as_echo "no" >&6; }
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4516 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4517 set x ${MAKE-make}
4518 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4519 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 cat >conftest.make <<\_ACEOF
4523 SHELL = /bin/sh
4524 all:
4525 @echo '@@@%%%=$(MAKE)=@@@%%%'
4526 _ACEOF
4527 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4528 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4529 *@@@%%%=?*=@@@%%%*)
4530 eval ac_cv_prog_make_${ac_make}_set=yes;;
4532 eval ac_cv_prog_make_${ac_make}_set=no;;
4533 esac
4534 rm -f conftest.make
4536 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4538 $as_echo "yes" >&6; }
4539 SET_MAKE=
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4543 SET_MAKE="MAKE=${MAKE-make}"
4548 # See if makeinfo has been installed and is modern enough
4549 # that we can use it.
4551 # Extract the first word of "makeinfo", so it can be a program name with args.
4552 set dummy makeinfo; ac_word=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$MAKEINFO"; then
4559 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_MAKEINFO="makeinfo"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4572 done
4573 done
4574 IFS=$as_save_IFS
4578 MAKEINFO=$ac_cv_prog_MAKEINFO
4579 if test -n "$MAKEINFO"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4581 $as_echo "$MAKEINFO" >&6; }
4582 else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4588 if test -n "$MAKEINFO"; then
4589 # Found it, now check the version.
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4591 $as_echo_n "checking for modern makeinfo... " >&6; }
4592 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4596 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4598 case $ac_prog_version in
4599 '') gcc_cv_prog_makeinfo_modern=no;;
4600 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4601 *) gcc_cv_prog_makeinfo_modern=no;;
4602 esac
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4606 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4607 else
4608 gcc_cv_prog_makeinfo_modern=no
4610 if test $gcc_cv_prog_makeinfo_modern = no; then
4611 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4614 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4615 BUILD_INFO_TRUE=
4616 BUILD_INFO_FALSE='#'
4617 else
4618 BUILD_INFO_TRUE='#'
4619 BUILD_INFO_FALSE=
4624 # Configure libtool
4625 case `pwd` in
4626 *\ * | *\ *)
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4628 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4629 esac
4633 macro_version='2.2.7a'
4634 macro_revision='1.3134'
4648 ltmain="$ac_aux_dir/ltmain.sh"
4650 # Backslashify metacharacters that are still active within
4651 # double-quoted strings.
4652 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4654 # Same as above, but do not quote variable references.
4655 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4657 # Sed substitution to delay expansion of an escaped shell variable in a
4658 # double_quote_subst'ed string.
4659 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4661 # Sed substitution to delay expansion of an escaped single quote.
4662 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4664 # Sed substitution to avoid accidental globbing in evaled expressions
4665 no_glob_subst='s/\*/\\\*/g'
4667 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4668 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4669 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4672 $as_echo_n "checking how to print strings... " >&6; }
4673 # Test print first, because it will be a builtin if present.
4674 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4675 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4676 ECHO='print -r --'
4677 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4678 ECHO='printf %s\n'
4679 else
4680 # Use this function as a fallback that always works.
4681 func_fallback_echo ()
4683 eval 'cat <<_LTECHO_EOF
4685 _LTECHO_EOF'
4687 ECHO='func_fallback_echo'
4690 # func_echo_all arg...
4691 # Invoke $ECHO with all args, space-separated.
4692 func_echo_all ()
4694 $ECHO ""
4697 case "$ECHO" in
4698 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4699 $as_echo "printf" >&6; } ;;
4700 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4701 $as_echo "print -r" >&6; } ;;
4702 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4703 $as_echo "cat" >&6; } ;;
4704 esac
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4720 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4721 if test "${ac_cv_path_SED+set}" = set; then :
4722 $as_echo_n "(cached) " >&6
4723 else
4724 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4725 for ac_i in 1 2 3 4 5 6 7; do
4726 ac_script="$ac_script$as_nl$ac_script"
4727 done
4728 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4729 { ac_script=; unset ac_script;}
4730 if test -z "$SED"; then
4731 ac_path_SED_found=false
4732 # Loop through the user's path and test for each of PROGNAME-LIST
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 for ac_prog in sed gsed; do
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4741 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4742 # Check for GNU ac_path_SED and select it if it is found.
4743 # Check for GNU $ac_path_SED
4744 case `"$ac_path_SED" --version 2>&1` in
4745 *GNU*)
4746 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4748 ac_count=0
4749 $as_echo_n 0123456789 >"conftest.in"
4750 while :
4752 cat "conftest.in" "conftest.in" >"conftest.tmp"
4753 mv "conftest.tmp" "conftest.in"
4754 cp "conftest.in" "conftest.nl"
4755 $as_echo '' >> "conftest.nl"
4756 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4757 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4758 as_fn_arith $ac_count + 1 && ac_count=$as_val
4759 if test $ac_count -gt ${ac_path_SED_max-0}; then
4760 # Best one so far, save it but keep looking for a better one
4761 ac_cv_path_SED="$ac_path_SED"
4762 ac_path_SED_max=$ac_count
4764 # 10*(2^10) chars as input seems more than enough
4765 test $ac_count -gt 10 && break
4766 done
4767 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4768 esac
4770 $ac_path_SED_found && break 3
4771 done
4772 done
4773 done
4774 IFS=$as_save_IFS
4775 if test -z "$ac_cv_path_SED"; then
4776 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4778 else
4779 ac_cv_path_SED=$SED
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4784 $as_echo "$ac_cv_path_SED" >&6; }
4785 SED="$ac_cv_path_SED"
4786 rm -f conftest.sed
4788 test -z "$SED" && SED=sed
4789 Xsed="$SED -e 1s/^X//"
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4802 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4803 if test "${ac_cv_path_GREP+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 if test -z "$GREP"; then
4807 ac_path_GREP_found=false
4808 # Loop through the user's path and test for each of PROGNAME-LIST
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4812 IFS=$as_save_IFS
4813 test -z "$as_dir" && as_dir=.
4814 for ac_prog in grep ggrep; do
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4817 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4818 # Check for GNU ac_path_GREP and select it if it is found.
4819 # Check for GNU $ac_path_GREP
4820 case `"$ac_path_GREP" --version 2>&1` in
4821 *GNU*)
4822 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4824 ac_count=0
4825 $as_echo_n 0123456789 >"conftest.in"
4826 while :
4828 cat "conftest.in" "conftest.in" >"conftest.tmp"
4829 mv "conftest.tmp" "conftest.in"
4830 cp "conftest.in" "conftest.nl"
4831 $as_echo 'GREP' >> "conftest.nl"
4832 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4833 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4834 as_fn_arith $ac_count + 1 && ac_count=$as_val
4835 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4836 # Best one so far, save it but keep looking for a better one
4837 ac_cv_path_GREP="$ac_path_GREP"
4838 ac_path_GREP_max=$ac_count
4840 # 10*(2^10) chars as input seems more than enough
4841 test $ac_count -gt 10 && break
4842 done
4843 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4844 esac
4846 $ac_path_GREP_found && break 3
4847 done
4848 done
4849 done
4850 IFS=$as_save_IFS
4851 if test -z "$ac_cv_path_GREP"; then
4852 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4854 else
4855 ac_cv_path_GREP=$GREP
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4860 $as_echo "$ac_cv_path_GREP" >&6; }
4861 GREP="$ac_cv_path_GREP"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4865 $as_echo_n "checking for egrep... " >&6; }
4866 if test "${ac_cv_path_EGREP+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4870 then ac_cv_path_EGREP="$GREP -E"
4871 else
4872 if test -z "$EGREP"; then
4873 ac_path_EGREP_found=false
4874 # Loop through the user's path and test for each of PROGNAME-LIST
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_prog in egrep; do
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4883 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4884 # Check for GNU ac_path_EGREP and select it if it is found.
4885 # Check for GNU $ac_path_EGREP
4886 case `"$ac_path_EGREP" --version 2>&1` in
4887 *GNU*)
4888 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4890 ac_count=0
4891 $as_echo_n 0123456789 >"conftest.in"
4892 while :
4894 cat "conftest.in" "conftest.in" >"conftest.tmp"
4895 mv "conftest.tmp" "conftest.in"
4896 cp "conftest.in" "conftest.nl"
4897 $as_echo 'EGREP' >> "conftest.nl"
4898 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4899 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4900 as_fn_arith $ac_count + 1 && ac_count=$as_val
4901 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4902 # Best one so far, save it but keep looking for a better one
4903 ac_cv_path_EGREP="$ac_path_EGREP"
4904 ac_path_EGREP_max=$ac_count
4906 # 10*(2^10) chars as input seems more than enough
4907 test $ac_count -gt 10 && break
4908 done
4909 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4910 esac
4912 $ac_path_EGREP_found && break 3
4913 done
4914 done
4915 done
4916 IFS=$as_save_IFS
4917 if test -z "$ac_cv_path_EGREP"; then
4918 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4920 else
4921 ac_cv_path_EGREP=$EGREP
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4927 $as_echo "$ac_cv_path_EGREP" >&6; }
4928 EGREP="$ac_cv_path_EGREP"
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4932 $as_echo_n "checking for fgrep... " >&6; }
4933 if test "${ac_cv_path_FGREP+set}" = set; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4937 then ac_cv_path_FGREP="$GREP -F"
4938 else
4939 if test -z "$FGREP"; then
4940 ac_path_FGREP_found=false
4941 # Loop through the user's path and test for each of PROGNAME-LIST
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 for ac_prog in fgrep; do
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4950 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4951 # Check for GNU ac_path_FGREP and select it if it is found.
4952 # Check for GNU $ac_path_FGREP
4953 case `"$ac_path_FGREP" --version 2>&1` in
4954 *GNU*)
4955 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4957 ac_count=0
4958 $as_echo_n 0123456789 >"conftest.in"
4959 while :
4961 cat "conftest.in" "conftest.in" >"conftest.tmp"
4962 mv "conftest.tmp" "conftest.in"
4963 cp "conftest.in" "conftest.nl"
4964 $as_echo 'FGREP' >> "conftest.nl"
4965 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4966 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4968 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4969 # Best one so far, save it but keep looking for a better one
4970 ac_cv_path_FGREP="$ac_path_FGREP"
4971 ac_path_FGREP_max=$ac_count
4973 # 10*(2^10) chars as input seems more than enough
4974 test $ac_count -gt 10 && break
4975 done
4976 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4977 esac
4979 $ac_path_FGREP_found && break 3
4980 done
4981 done
4982 done
4983 IFS=$as_save_IFS
4984 if test -z "$ac_cv_path_FGREP"; then
4985 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4987 else
4988 ac_cv_path_FGREP=$FGREP
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4994 $as_echo "$ac_cv_path_FGREP" >&6; }
4995 FGREP="$ac_cv_path_FGREP"
4998 test -z "$GREP" && GREP=grep
5018 # Check whether --with-gnu-ld was given.
5019 if test "${with_gnu_ld+set}" = set; then :
5020 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5021 else
5022 with_gnu_ld=no
5025 ac_prog=ld
5026 if test "$GCC" = yes; then
5027 # Check if gcc -print-prog-name=ld gives a path.
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5029 $as_echo_n "checking for ld used by $CC... " >&6; }
5030 case $host in
5031 *-*-mingw*)
5032 # gcc leaves a trailing carriage return which upsets mingw
5033 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5035 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5036 esac
5037 case $ac_prog in
5038 # Accept absolute paths.
5039 [\\/]* | ?:[\\/]*)
5040 re_direlt='/[^/][^/]*/\.\./'
5041 # Canonicalize the pathname of ld
5042 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5043 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5044 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5045 done
5046 test -z "$LD" && LD="$ac_prog"
5049 # If it fails, then pretend we aren't using GCC.
5050 ac_prog=ld
5053 # If it is relative, then search for the first ld in PATH.
5054 with_gnu_ld=unknown
5056 esac
5057 elif test "$with_gnu_ld" = yes; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5059 $as_echo_n "checking for GNU ld... " >&6; }
5060 else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5062 $as_echo_n "checking for non-GNU ld... " >&6; }
5064 if test "${lt_cv_path_LD+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 if test -z "$LD"; then
5068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5069 for ac_dir in $PATH; do
5070 IFS="$lt_save_ifs"
5071 test -z "$ac_dir" && ac_dir=.
5072 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5073 lt_cv_path_LD="$ac_dir/$ac_prog"
5074 # Check to see if the program is GNU ld. I'd rather use --version,
5075 # but apparently some variants of GNU ld only accept -v.
5076 # Break only if it was the GNU/non-GNU ld that we prefer.
5077 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5078 *GNU* | *'with BFD'*)
5079 test "$with_gnu_ld" != no && break
5082 test "$with_gnu_ld" != yes && break
5084 esac
5086 done
5087 IFS="$lt_save_ifs"
5088 else
5089 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5093 LD="$lt_cv_path_LD"
5094 if test -n "$LD"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5096 $as_echo "$LD" >&6; }
5097 else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5101 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5103 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5104 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5108 case `$LD -v 2>&1 </dev/null` in
5109 *GNU* | *'with BFD'*)
5110 lt_cv_prog_gnu_ld=yes
5113 lt_cv_prog_gnu_ld=no
5115 esac
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5118 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5119 with_gnu_ld=$lt_cv_prog_gnu_ld
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5130 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5131 if test "${lt_cv_path_NM+set}" = set; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 if test -n "$NM"; then
5135 # Let the user override the test.
5136 lt_cv_path_NM="$NM"
5137 else
5138 lt_nm_to_check="${ac_tool_prefix}nm"
5139 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5140 lt_nm_to_check="$lt_nm_to_check nm"
5142 for lt_tmp_nm in $lt_nm_to_check; do
5143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5144 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5145 IFS="$lt_save_ifs"
5146 test -z "$ac_dir" && ac_dir=.
5147 tmp_nm="$ac_dir/$lt_tmp_nm"
5148 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5149 # Check to see if the nm accepts a BSD-compat flag.
5150 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5151 # nm: unknown option "B" ignored
5152 # Tru64's nm complains that /dev/null is an invalid object file
5153 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5154 */dev/null* | *'Invalid file or object type'*)
5155 lt_cv_path_NM="$tmp_nm -B"
5156 break
5159 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5160 */dev/null*)
5161 lt_cv_path_NM="$tmp_nm -p"
5162 break
5165 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5166 continue # so that we can try to find one that supports BSD flags
5168 esac
5170 esac
5172 done
5173 IFS="$lt_save_ifs"
5174 done
5175 : ${lt_cv_path_NM=no}
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5179 $as_echo "$lt_cv_path_NM" >&6; }
5180 if test "$lt_cv_path_NM" != "no"; then
5181 NM="$lt_cv_path_NM"
5182 else
5183 # Didn't find any BSD compatible name lister, look for dumpbin.
5184 if test -n "$DUMPBIN"; then :
5185 # Let the user override the test.
5186 else
5187 if test -n "$ac_tool_prefix"; then
5188 for ac_prog in dumpbin "link -dump"
5190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5191 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 if test -n "$DUMPBIN"; then
5198 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5199 else
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5211 done
5212 done
5213 IFS=$as_save_IFS
5217 DUMPBIN=$ac_cv_prog_DUMPBIN
5218 if test -n "$DUMPBIN"; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5220 $as_echo "$DUMPBIN" >&6; }
5221 else
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 $as_echo "no" >&6; }
5227 test -n "$DUMPBIN" && break
5228 done
5230 if test -z "$DUMPBIN"; then
5231 ac_ct_DUMPBIN=$DUMPBIN
5232 for ac_prog in dumpbin "link -dump"
5234 # Extract the first word of "$ac_prog", so it can be a program name with args.
5235 set dummy $ac_prog; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 if test -n "$ac_ct_DUMPBIN"; then
5242 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5243 else
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5251 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5255 done
5256 done
5257 IFS=$as_save_IFS
5261 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5262 if test -n "$ac_ct_DUMPBIN"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5264 $as_echo "$ac_ct_DUMPBIN" >&6; }
5265 else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5271 test -n "$ac_ct_DUMPBIN" && break
5272 done
5274 if test "x$ac_ct_DUMPBIN" = x; then
5275 DUMPBIN=":"
5276 else
5277 case $cross_compiling:$ac_tool_warned in
5278 yes:)
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5281 ac_tool_warned=yes ;;
5282 esac
5283 DUMPBIN=$ac_ct_DUMPBIN
5287 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5288 *COFF*)
5289 DUMPBIN="$DUMPBIN -symbols"
5292 DUMPBIN=:
5294 esac
5297 if test "$DUMPBIN" != ":"; then
5298 NM="$DUMPBIN"
5301 test -z "$NM" && NM=nm
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5309 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5310 if test "${lt_cv_nm_interface+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 lt_cv_nm_interface="BSD nm"
5314 echo "int some_variable = 0;" > conftest.$ac_ext
5315 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5316 (eval "$ac_compile" 2>conftest.err)
5317 cat conftest.err >&5
5318 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5319 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5320 cat conftest.err >&5
5321 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5322 cat conftest.out >&5
5323 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5324 lt_cv_nm_interface="MS dumpbin"
5326 rm -f conftest*
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5329 $as_echo "$lt_cv_nm_interface" >&6; }
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5332 $as_echo_n "checking whether ln -s works... " >&6; }
5333 LN_S=$as_ln_s
5334 if test "$LN_S" = "ln -s"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5336 $as_echo "yes" >&6; }
5337 else
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5339 $as_echo "no, using $LN_S" >&6; }
5342 # find the maximum length of command line arguments
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5344 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5345 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5349 teststring="ABCD"
5351 case $build_os in
5352 msdosdjgpp*)
5353 # On DJGPP, this test can blow up pretty badly due to problems in libc
5354 # (any single argument exceeding 2000 bytes causes a buffer overrun
5355 # during glob expansion). Even if it were fixed, the result of this
5356 # check would be larger than it should be.
5357 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5360 gnu*)
5361 # Under GNU Hurd, this test is not required because there is
5362 # no limit to the length of command line arguments.
5363 # Libtool will interpret -1 as no limit whatsoever
5364 lt_cv_sys_max_cmd_len=-1;
5367 cygwin* | mingw* | cegcc*)
5368 # On Win9x/ME, this test blows up -- it succeeds, but takes
5369 # about 5 minutes as the teststring grows exponentially.
5370 # Worse, since 9x/ME are not pre-emptively multitasking,
5371 # you end up with a "frozen" computer, even though with patience
5372 # the test eventually succeeds (with a max line length of 256k).
5373 # Instead, let's just punt: use the minimum linelength reported by
5374 # all of the supported platforms: 8192 (on NT/2K/XP).
5375 lt_cv_sys_max_cmd_len=8192;
5378 mint*)
5379 # On MiNT this can take a long time and run out of memory.
5380 lt_cv_sys_max_cmd_len=8192;
5383 amigaos*)
5384 # On AmigaOS with pdksh, this test takes hours, literally.
5385 # So we just punt and use a minimum line length of 8192.
5386 lt_cv_sys_max_cmd_len=8192;
5389 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5390 # This has been around since 386BSD, at least. Likely further.
5391 if test -x /sbin/sysctl; then
5392 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5393 elif test -x /usr/sbin/sysctl; then
5394 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5395 else
5396 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5398 # And add a safety zone
5399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5403 interix*)
5404 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5405 lt_cv_sys_max_cmd_len=196608
5408 osf*)
5409 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5410 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5411 # nice to cause kernel panics so lets avoid the loop below.
5412 # First set a reasonable default.
5413 lt_cv_sys_max_cmd_len=16384
5415 if test -x /sbin/sysconfig; then
5416 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5417 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5418 esac
5421 sco3.2v5*)
5422 lt_cv_sys_max_cmd_len=102400
5424 sysv5* | sco5v6* | sysv4.2uw2*)
5425 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5426 if test -n "$kargmax"; then
5427 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5428 else
5429 lt_cv_sys_max_cmd_len=32768
5433 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5434 if test -n "$lt_cv_sys_max_cmd_len"; then
5435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5437 else
5438 # Make teststring a little bigger before we do anything with it.
5439 # a 1K string should be a reasonable start.
5440 for i in 1 2 3 4 5 6 7 8 ; do
5441 teststring=$teststring$teststring
5442 done
5443 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5444 # If test is not a shell built-in, we'll probably end up computing a
5445 # maximum length that is only half of the actual maximum length, but
5446 # we can't tell.
5447 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5448 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5449 test $i != 17 # 1/2 MB should be enough
5451 i=`expr $i + 1`
5452 teststring=$teststring$teststring
5453 done
5454 # Only check the string length outside the loop.
5455 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5456 teststring=
5457 # Add a significant safety factor because C++ compilers can tack on
5458 # massive amounts of additional arguments before passing them to the
5459 # linker. It appears as though 1/2 is a usable value.
5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5463 esac
5467 if test -n $lt_cv_sys_max_cmd_len ; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5469 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5470 else
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5472 $as_echo "none" >&6; }
5474 max_cmd_len=$lt_cv_sys_max_cmd_len
5481 : ${CP="cp -f"}
5482 : ${MV="mv -f"}
5483 : ${RM="rm -f"}
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5486 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5487 # Try some XSI features
5488 xsi_shell=no
5489 ( _lt_dummy="a/b/c"
5490 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5491 = c,a/b,, \
5492 && eval 'test $(( 1 + 1 )) -eq 2 \
5493 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5494 && xsi_shell=yes
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5496 $as_echo "$xsi_shell" >&6; }
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5500 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5501 lt_shell_append=no
5502 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5503 >/dev/null 2>&1 \
5504 && lt_shell_append=yes
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5506 $as_echo "$lt_shell_append" >&6; }
5509 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5510 lt_unset=unset
5511 else
5512 lt_unset=false
5519 # test EBCDIC or ASCII
5520 case `echo X|tr X '\101'` in
5521 A) # ASCII based system
5522 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5523 lt_SP2NL='tr \040 \012'
5524 lt_NL2SP='tr \015\012 \040\040'
5526 *) # EBCDIC based system
5527 lt_SP2NL='tr \100 \n'
5528 lt_NL2SP='tr \r\n \100\100'
5530 esac
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5541 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5542 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 lt_cv_ld_reload_flag='-r'
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5548 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5549 reload_flag=$lt_cv_ld_reload_flag
5550 case $reload_flag in
5551 "" | " "*) ;;
5552 *) reload_flag=" $reload_flag" ;;
5553 esac
5554 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5555 case $host_os in
5556 darwin*)
5557 if test "$GCC" = yes; then
5558 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5559 else
5560 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5563 esac
5573 if test -n "$ac_tool_prefix"; then
5574 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5575 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 if test -n "$OBJDUMP"; then
5582 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5595 done
5596 done
5597 IFS=$as_save_IFS
5601 OBJDUMP=$ac_cv_prog_OBJDUMP
5602 if test -n "$OBJDUMP"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5604 $as_echo "$OBJDUMP" >&6; }
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5612 if test -z "$ac_cv_prog_OBJDUMP"; then
5613 ac_ct_OBJDUMP=$OBJDUMP
5614 # Extract the first word of "objdump", so it can be a program name with args.
5615 set dummy objdump; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 if test -n "$ac_ct_OBJDUMP"; then
5622 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5635 done
5636 done
5637 IFS=$as_save_IFS
5641 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5642 if test -n "$ac_ct_OBJDUMP"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5644 $as_echo "$ac_ct_OBJDUMP" >&6; }
5645 else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5650 if test "x$ac_ct_OBJDUMP" = x; then
5651 OBJDUMP="false"
5652 else
5653 case $cross_compiling:$ac_tool_warned in
5654 yes:)
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5657 ac_tool_warned=yes ;;
5658 esac
5659 OBJDUMP=$ac_ct_OBJDUMP
5661 else
5662 OBJDUMP="$ac_cv_prog_OBJDUMP"
5665 test -z "$OBJDUMP" && OBJDUMP=objdump
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5676 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5677 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 lt_cv_file_magic_cmd='$MAGIC_CMD'
5681 lt_cv_file_magic_test_file=
5682 lt_cv_deplibs_check_method='unknown'
5683 # Need to set the preceding variable on all platforms that support
5684 # interlibrary dependencies.
5685 # 'none' -- dependencies not supported.
5686 # `unknown' -- same as none, but documents that we really don't know.
5687 # 'pass_all' -- all dependencies passed with no checks.
5688 # 'test_compile' -- check by making test program.
5689 # 'file_magic [[regex]]' -- check by looking for files in library path
5690 # which responds to the $file_magic_cmd with a given extended regex.
5691 # If you have `file' or equivalent on your system and you're not sure
5692 # whether `pass_all' will *always* work, you probably want this one.
5694 case $host_os in
5695 aix[4-9]*)
5696 lt_cv_deplibs_check_method=pass_all
5699 beos*)
5700 lt_cv_deplibs_check_method=pass_all
5703 bsdi[45]*)
5704 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5705 lt_cv_file_magic_cmd='/usr/bin/file -L'
5706 lt_cv_file_magic_test_file=/shlib/libc.so
5709 cygwin*)
5710 # func_win32_libid is a shell function defined in ltmain.sh
5711 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5712 lt_cv_file_magic_cmd='func_win32_libid'
5715 mingw* | pw32*)
5716 # Base MSYS/MinGW do not provide the 'file' command needed by
5717 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5718 # unless we find 'file', for example because we are cross-compiling.
5719 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5720 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5721 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5722 lt_cv_file_magic_cmd='func_win32_libid'
5723 else
5724 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5725 lt_cv_file_magic_cmd='$OBJDUMP -f'
5729 cegcc*)
5730 # use the weaker test based on 'objdump'. See mingw*.
5731 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5732 lt_cv_file_magic_cmd='$OBJDUMP -f'
5735 darwin* | rhapsody*)
5736 lt_cv_deplibs_check_method=pass_all
5739 freebsd* | dragonfly*)
5740 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5741 case $host_cpu in
5742 i*86 )
5743 # Not sure whether the presence of OpenBSD here was a mistake.
5744 # Let's accept both of them until this is cleared up.
5745 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5746 lt_cv_file_magic_cmd=/usr/bin/file
5747 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5749 esac
5750 else
5751 lt_cv_deplibs_check_method=pass_all
5755 gnu*)
5756 lt_cv_deplibs_check_method=pass_all
5759 haiku*)
5760 lt_cv_deplibs_check_method=pass_all
5763 hpux10.20* | hpux11*)
5764 lt_cv_file_magic_cmd=/usr/bin/file
5765 case $host_cpu in
5766 ia64*)
5767 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5768 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5770 hppa*64*)
5771 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5772 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5775 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5776 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5778 esac
5781 interix[3-9]*)
5782 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5783 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5786 irix5* | irix6* | nonstopux*)
5787 case $LD in
5788 *-32|*"-32 ") libmagic=32-bit;;
5789 *-n32|*"-n32 ") libmagic=N32;;
5790 *-64|*"-64 ") libmagic=64-bit;;
5791 *) libmagic=never-match;;
5792 esac
5793 lt_cv_deplibs_check_method=pass_all
5796 # This must be Linux ELF.
5797 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5798 lt_cv_deplibs_check_method=pass_all
5801 netbsd*)
5802 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5803 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5804 else
5805 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5809 newos6*)
5810 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5811 lt_cv_file_magic_cmd=/usr/bin/file
5812 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5815 *nto* | *qnx*)
5816 lt_cv_deplibs_check_method=pass_all
5819 openbsd*)
5820 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5822 else
5823 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5827 osf3* | osf4* | osf5*)
5828 lt_cv_deplibs_check_method=pass_all
5831 rdos*)
5832 lt_cv_deplibs_check_method=pass_all
5835 solaris*)
5836 lt_cv_deplibs_check_method=pass_all
5839 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5840 lt_cv_deplibs_check_method=pass_all
5843 sysv4 | sysv4.3*)
5844 case $host_vendor in
5845 motorola)
5846 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]'
5847 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5849 ncr)
5850 lt_cv_deplibs_check_method=pass_all
5852 sequent)
5853 lt_cv_file_magic_cmd='/bin/file'
5854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5856 sni)
5857 lt_cv_file_magic_cmd='/bin/file'
5858 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5859 lt_cv_file_magic_test_file=/lib/libc.so
5861 siemens)
5862 lt_cv_deplibs_check_method=pass_all
5865 lt_cv_deplibs_check_method=pass_all
5867 esac
5870 tpf*)
5871 lt_cv_deplibs_check_method=pass_all
5873 esac
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5877 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5878 file_magic_cmd=$lt_cv_file_magic_cmd
5879 deplibs_check_method=$lt_cv_deplibs_check_method
5880 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5893 if test -n "$ac_tool_prefix"; then
5894 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5895 set dummy ${ac_tool_prefix}ar; ac_word=$2
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 $as_echo_n "checking for $ac_word... " >&6; }
5898 if test "${ac_cv_prog_AR+set}" = set; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 if test -n "$AR"; then
5902 ac_cv_prog_AR="$AR" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5911 ac_cv_prog_AR="${ac_tool_prefix}ar"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5915 done
5916 done
5917 IFS=$as_save_IFS
5921 AR=$ac_cv_prog_AR
5922 if test -n "$AR"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5924 $as_echo "$AR" >&6; }
5925 else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5932 if test -z "$ac_cv_prog_AR"; then
5933 ac_ct_AR=$AR
5934 # Extract the first word of "ar", so it can be a program name with args.
5935 set dummy ar; ac_word=$2
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 if test -n "$ac_ct_AR"; then
5942 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_prog_ac_ct_AR="ar"
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5955 done
5956 done
5957 IFS=$as_save_IFS
5961 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5962 if test -n "$ac_ct_AR"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5964 $as_echo "$ac_ct_AR" >&6; }
5965 else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5970 if test "x$ac_ct_AR" = x; then
5971 AR="false"
5972 else
5973 case $cross_compiling:$ac_tool_warned in
5974 yes:)
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5977 ac_tool_warned=yes ;;
5978 esac
5979 AR=$ac_ct_AR
5981 else
5982 AR="$ac_cv_prog_AR"
5985 test -z "$AR" && AR=ar
5986 test -z "$AR_FLAGS" && AR_FLAGS=cru
5998 if test -n "$ac_tool_prefix"; then
5999 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6000 set dummy ${ac_tool_prefix}strip; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if test "${ac_cv_prog_STRIP+set}" = set; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 if test -n "$STRIP"; then
6007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6020 done
6021 done
6022 IFS=$as_save_IFS
6026 STRIP=$ac_cv_prog_STRIP
6027 if test -n "$STRIP"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6029 $as_echo "$STRIP" >&6; }
6030 else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6037 if test -z "$ac_cv_prog_STRIP"; then
6038 ac_ct_STRIP=$STRIP
6039 # Extract the first word of "strip", so it can be a program name with args.
6040 set dummy strip; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 if test -n "$ac_ct_STRIP"; then
6047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_ac_ct_STRIP="strip"
6057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6060 done
6061 done
6062 IFS=$as_save_IFS
6066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6067 if test -n "$ac_ct_STRIP"; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6069 $as_echo "$ac_ct_STRIP" >&6; }
6070 else
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }
6075 if test "x$ac_ct_STRIP" = x; then
6076 STRIP=":"
6077 else
6078 case $cross_compiling:$ac_tool_warned in
6079 yes:)
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082 ac_tool_warned=yes ;;
6083 esac
6084 STRIP=$ac_ct_STRIP
6086 else
6087 STRIP="$ac_cv_prog_STRIP"
6090 test -z "$STRIP" && STRIP=:
6097 if test -n "$ac_tool_prefix"; then
6098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 if test -n "$RANLIB"; then
6106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 break 2
6119 done
6120 done
6121 IFS=$as_save_IFS
6125 RANLIB=$ac_cv_prog_RANLIB
6126 if test -n "$RANLIB"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6128 $as_echo "$RANLIB" >&6; }
6129 else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6136 if test -z "$ac_cv_prog_RANLIB"; then
6137 ac_ct_RANLIB=$RANLIB
6138 # Extract the first word of "ranlib", so it can be a program name with args.
6139 set dummy ranlib; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 if test -n "$ac_ct_RANLIB"; then
6146 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_ac_ct_RANLIB="ranlib"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6159 done
6160 done
6161 IFS=$as_save_IFS
6165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6166 if test -n "$ac_ct_RANLIB"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6168 $as_echo "$ac_ct_RANLIB" >&6; }
6169 else
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6174 if test "x$ac_ct_RANLIB" = x; then
6175 RANLIB=":"
6176 else
6177 case $cross_compiling:$ac_tool_warned in
6178 yes:)
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181 ac_tool_warned=yes ;;
6182 esac
6183 RANLIB=$ac_ct_RANLIB
6185 else
6186 RANLIB="$ac_cv_prog_RANLIB"
6189 test -z "$RANLIB" && RANLIB=:
6196 # Determine commands to create old-style static archives.
6197 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6198 old_postinstall_cmds='chmod 644 $oldlib'
6199 old_postuninstall_cmds=
6201 if test -n "$RANLIB"; then
6202 case $host_os in
6203 openbsd*)
6204 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6207 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6209 esac
6210 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6213 case $host_os in
6214 darwin*)
6215 lock_old_archive_extraction=yes ;;
6217 lock_old_archive_extraction=no ;;
6218 esac
6258 # If no C compiler was specified, use CC.
6259 LTCC=${LTCC-"$CC"}
6261 # If no C compiler flags were specified, use CFLAGS.
6262 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6264 # Allow CC to be a program name with arguments.
6265 compiler=$CC
6268 # Check for command to grab the raw symbol name followed by C symbol from nm.
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6270 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6271 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6275 # These are sane defaults that work on at least a few old systems.
6276 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6278 # Character class describing NM global symbol codes.
6279 symcode='[BCDEGRST]'
6281 # Regexp to match symbols that can be accessed directly from C.
6282 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6284 # Define system-specific variables.
6285 case $host_os in
6286 aix*)
6287 symcode='[BCDT]'
6289 cygwin* | mingw* | pw32* | cegcc*)
6290 symcode='[ABCDGISTW]'
6292 hpux*)
6293 if test "$host_cpu" = ia64; then
6294 symcode='[ABCDEGRST]'
6297 irix* | nonstopux*)
6298 symcode='[BCDEGRST]'
6300 osf*)
6301 symcode='[BCDEGQRST]'
6303 solaris*)
6304 symcode='[BDRT]'
6306 sco3.2v5*)
6307 symcode='[DT]'
6309 sysv4.2uw2*)
6310 symcode='[DT]'
6312 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6313 symcode='[ABDT]'
6315 sysv4)
6316 symcode='[DFNSTU]'
6318 esac
6320 # If we're using GNU nm, then use its standard symbol codes.
6321 case `$NM -V 2>&1` in
6322 *GNU* | *'with BFD'*)
6323 symcode='[ABCDGIRSTW]' ;;
6324 esac
6326 # Transform an extracted symbol line into a proper C declaration.
6327 # Some systems (esp. on ia64) link data and code symbols differently,
6328 # so use this general approach.
6329 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6331 # Transform an extracted symbol line into symbol name and symbol address
6332 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6333 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6335 # Handle CRLF in mingw tool chain
6336 opt_cr=
6337 case $build_os in
6338 mingw*)
6339 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6341 esac
6343 # Try without a prefix underscore, then with it.
6344 for ac_symprfx in "" "_"; do
6346 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6347 symxfrm="\\1 $ac_symprfx\\2 \\2"
6349 # Write the raw and C identifiers.
6350 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6351 # Fake it for dumpbin and say T for any non-static function
6352 # and D for any global variable.
6353 # Also find C++ and __fastcall symbols from MSVC++,
6354 # which start with @ or ?.
6355 lt_cv_sys_global_symbol_pipe="$AWK '"\
6356 " {last_section=section; section=\$ 3};"\
6357 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6358 " \$ 0!~/External *\|/{next};"\
6359 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6360 " {if(hide[section]) next};"\
6361 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6362 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6363 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6364 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6365 " ' prfx=^$ac_symprfx"
6366 else
6367 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6370 # Check to see that the pipe works correctly.
6371 pipe_works=no
6373 rm -f conftest*
6374 cat > conftest.$ac_ext <<_LT_EOF
6375 #ifdef __cplusplus
6376 extern "C" {
6377 #endif
6378 char nm_test_var;
6379 void nm_test_func(void);
6380 void nm_test_func(void){}
6381 #ifdef __cplusplus
6383 #endif
6384 int main(){nm_test_var='a';nm_test_func();return(0);}
6385 _LT_EOF
6387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6388 (eval $ac_compile) 2>&5
6389 ac_status=$?
6390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391 test $ac_status = 0; }; then
6392 # Now try to grab the symbols.
6393 nlist=conftest.nm
6394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6395 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6396 ac_status=$?
6397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6398 test $ac_status = 0; } && test -s "$nlist"; then
6399 # Try sorting and uniquifying the output.
6400 if sort "$nlist" | uniq > "$nlist"T; then
6401 mv -f "$nlist"T "$nlist"
6402 else
6403 rm -f "$nlist"T
6406 # Make sure that we snagged all the symbols we need.
6407 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6408 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6409 cat <<_LT_EOF > conftest.$ac_ext
6410 #ifdef __cplusplus
6411 extern "C" {
6412 #endif
6414 _LT_EOF
6415 # Now generate the symbol file.
6416 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6418 cat <<_LT_EOF >> conftest.$ac_ext
6420 /* The mapping between symbol names and symbols. */
6421 const struct {
6422 const char *name;
6423 void *address;
6425 lt__PROGRAM__LTX_preloaded_symbols[] =
6427 { "@PROGRAM@", (void *) 0 },
6428 _LT_EOF
6429 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6430 cat <<\_LT_EOF >> conftest.$ac_ext
6431 {0, (void *) 0}
6434 /* This works around a problem in FreeBSD linker */
6435 #ifdef FREEBSD_WORKAROUND
6436 static const void *lt_preloaded_setup() {
6437 return lt__PROGRAM__LTX_preloaded_symbols;
6439 #endif
6441 #ifdef __cplusplus
6443 #endif
6444 _LT_EOF
6445 # Now try linking the two files.
6446 mv conftest.$ac_objext conftstm.$ac_objext
6447 lt_save_LIBS="$LIBS"
6448 lt_save_CFLAGS="$CFLAGS"
6449 LIBS="conftstm.$ac_objext"
6450 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6452 (eval $ac_link) 2>&5
6453 ac_status=$?
6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6456 pipe_works=yes
6458 LIBS="$lt_save_LIBS"
6459 CFLAGS="$lt_save_CFLAGS"
6460 else
6461 echo "cannot find nm_test_func in $nlist" >&5
6463 else
6464 echo "cannot find nm_test_var in $nlist" >&5
6466 else
6467 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6469 else
6470 echo "$progname: failed program was:" >&5
6471 cat conftest.$ac_ext >&5
6473 rm -rf conftest* conftst*
6475 # Do not use the global_symbol_pipe unless it works.
6476 if test "$pipe_works" = yes; then
6477 break
6478 else
6479 lt_cv_sys_global_symbol_pipe=
6481 done
6485 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6486 lt_cv_sys_global_symbol_to_cdecl=
6488 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6490 $as_echo "failed" >&6; }
6491 else
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6493 $as_echo "ok" >&6; }
6518 # Check whether --enable-libtool-lock was given.
6519 if test "${enable_libtool_lock+set}" = set; then :
6520 enableval=$enable_libtool_lock;
6523 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6525 # Some flags need to be propagated to the compiler or linker for good
6526 # libtool support.
6527 case $host in
6528 ia64-*-hpux*)
6529 # Find out which ABI we are using.
6530 echo 'int i;' > conftest.$ac_ext
6531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6532 (eval $ac_compile) 2>&5
6533 ac_status=$?
6534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6535 test $ac_status = 0; }; then
6536 case `/usr/bin/file conftest.$ac_objext` in
6537 *ELF-32*)
6538 HPUX_IA64_MODE="32"
6540 *ELF-64*)
6541 HPUX_IA64_MODE="64"
6543 esac
6545 rm -rf conftest*
6547 *-*-irix6*)
6548 # Find out which ABI we are using.
6549 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6551 (eval $ac_compile) 2>&5
6552 ac_status=$?
6553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6554 test $ac_status = 0; }; then
6555 if test "$lt_cv_prog_gnu_ld" = yes; then
6556 case `/usr/bin/file conftest.$ac_objext` in
6557 *32-bit*)
6558 LD="${LD-ld} -melf32bsmip"
6560 *N32*)
6561 LD="${LD-ld} -melf32bmipn32"
6563 *64-bit*)
6564 LD="${LD-ld} -melf64bmip"
6566 esac
6567 else
6568 case `/usr/bin/file conftest.$ac_objext` in
6569 *32-bit*)
6570 LD="${LD-ld} -32"
6572 *N32*)
6573 LD="${LD-ld} -n32"
6575 *64-bit*)
6576 LD="${LD-ld} -64"
6578 esac
6581 rm -rf conftest*
6584 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6585 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6586 # Find out which ABI we are using.
6587 echo 'int i;' > conftest.$ac_ext
6588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6589 (eval $ac_compile) 2>&5
6590 ac_status=$?
6591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6592 test $ac_status = 0; }; then
6593 case `/usr/bin/file conftest.o` in
6594 *32-bit*)
6595 case $host in
6596 x86_64-*kfreebsd*-gnu)
6597 LD="${LD-ld} -m elf_i386_fbsd"
6599 x86_64-*linux*)
6600 case `/usr/bin/file conftest.o` in
6601 *x86-64*)
6602 LD="${LD-ld} -m elf32_x86_64"
6605 LD="${LD-ld} -m elf_i386"
6607 esac
6609 powerpc64le-*linux*)
6610 LD="${LD-ld} -m elf32lppclinux"
6612 powerpc64-*linux*)
6613 LD="${LD-ld} -m elf32ppclinux"
6615 s390x-*linux*)
6616 LD="${LD-ld} -m elf_s390"
6618 sparc64-*linux*)
6619 LD="${LD-ld} -m elf32_sparc"
6621 esac
6623 *64-bit*)
6624 case $host in
6625 x86_64-*kfreebsd*-gnu)
6626 LD="${LD-ld} -m elf_x86_64_fbsd"
6628 x86_64-*linux*)
6629 LD="${LD-ld} -m elf_x86_64"
6631 powerpcle-*linux*)
6632 LD="${LD-ld} -m elf64lppc"
6634 powerpc-*linux*)
6635 LD="${LD-ld} -m elf64ppc"
6637 s390*-*linux*|s390*-*tpf*)
6638 LD="${LD-ld} -m elf64_s390"
6640 sparc*-*linux*)
6641 LD="${LD-ld} -m elf64_sparc"
6643 esac
6645 esac
6647 rm -rf conftest*
6650 *-*-sco3.2v5*)
6651 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6652 SAVE_CFLAGS="$CFLAGS"
6653 CFLAGS="$CFLAGS -belf"
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6655 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6656 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 ac_ext=c
6660 ac_cpp='$CPP $CPPFLAGS'
6661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6669 main ()
6673 return 0;
6675 _ACEOF
6676 if ac_fn_c_try_link "$LINENO"; then :
6677 lt_cv_cc_needs_belf=yes
6678 else
6679 lt_cv_cc_needs_belf=no
6681 rm -f core conftest.err conftest.$ac_objext \
6682 conftest$ac_exeext conftest.$ac_ext
6683 ac_ext=c
6684 ac_cpp='$CPP $CPPFLAGS'
6685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6691 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6692 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6693 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6694 CFLAGS="$SAVE_CFLAGS"
6697 sparc*-*solaris*)
6698 # Find out which ABI we are using.
6699 echo 'int i;' > conftest.$ac_ext
6700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6701 (eval $ac_compile) 2>&5
6702 ac_status=$?
6703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6704 test $ac_status = 0; }; then
6705 case `/usr/bin/file conftest.o` in
6706 *64-bit*)
6707 case $lt_cv_prog_gnu_ld in
6708 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6710 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6711 LD="${LD-ld} -64"
6714 esac
6716 esac
6718 rm -rf conftest*
6720 esac
6722 need_locks="$enable_libtool_lock"
6725 case $host_os in
6726 rhapsody* | darwin*)
6727 if test -n "$ac_tool_prefix"; then
6728 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6729 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735 if test -n "$DSYMUTIL"; then
6736 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6749 done
6750 done
6751 IFS=$as_save_IFS
6755 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6756 if test -n "$DSYMUTIL"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6758 $as_echo "$DSYMUTIL" >&6; }
6759 else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6766 if test -z "$ac_cv_prog_DSYMUTIL"; then
6767 ac_ct_DSYMUTIL=$DSYMUTIL
6768 # Extract the first word of "dsymutil", so it can be a program name with args.
6769 set dummy dsymutil; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 if test -n "$ac_ct_DSYMUTIL"; then
6776 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 break 2
6789 done
6790 done
6791 IFS=$as_save_IFS
6795 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6796 if test -n "$ac_ct_DSYMUTIL"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6798 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6799 else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6804 if test "x$ac_ct_DSYMUTIL" = x; then
6805 DSYMUTIL=":"
6806 else
6807 case $cross_compiling:$ac_tool_warned in
6808 yes:)
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6811 ac_tool_warned=yes ;;
6812 esac
6813 DSYMUTIL=$ac_ct_DSYMUTIL
6815 else
6816 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6819 if test -n "$ac_tool_prefix"; then
6820 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6821 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6825 $as_echo_n "(cached) " >&6
6826 else
6827 if test -n "$NMEDIT"; then
6828 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6829 else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 break 2
6841 done
6842 done
6843 IFS=$as_save_IFS
6847 NMEDIT=$ac_cv_prog_NMEDIT
6848 if test -n "$NMEDIT"; then
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6850 $as_echo "$NMEDIT" >&6; }
6851 else
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 $as_echo "no" >&6; }
6858 if test -z "$ac_cv_prog_NMEDIT"; then
6859 ac_ct_NMEDIT=$NMEDIT
6860 # Extract the first word of "nmedit", so it can be a program name with args.
6861 set dummy nmedit; ac_word=$2
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863 $as_echo_n "checking for $ac_word... " >&6; }
6864 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6865 $as_echo_n "(cached) " >&6
6866 else
6867 if test -n "$ac_ct_NMEDIT"; then
6868 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6869 else
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 break 2
6881 done
6882 done
6883 IFS=$as_save_IFS
6887 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6888 if test -n "$ac_ct_NMEDIT"; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6890 $as_echo "$ac_ct_NMEDIT" >&6; }
6891 else
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 $as_echo "no" >&6; }
6896 if test "x$ac_ct_NMEDIT" = x; then
6897 NMEDIT=":"
6898 else
6899 case $cross_compiling:$ac_tool_warned in
6900 yes:)
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6903 ac_tool_warned=yes ;;
6904 esac
6905 NMEDIT=$ac_ct_NMEDIT
6907 else
6908 NMEDIT="$ac_cv_prog_NMEDIT"
6911 if test -n "$ac_tool_prefix"; then
6912 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6913 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915 $as_echo_n "checking for $ac_word... " >&6; }
6916 if test "${ac_cv_prog_LIPO+set}" = set; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 if test -n "$LIPO"; then
6920 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6933 done
6934 done
6935 IFS=$as_save_IFS
6939 LIPO=$ac_cv_prog_LIPO
6940 if test -n "$LIPO"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6942 $as_echo "$LIPO" >&6; }
6943 else
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945 $as_echo "no" >&6; }
6950 if test -z "$ac_cv_prog_LIPO"; then
6951 ac_ct_LIPO=$LIPO
6952 # Extract the first word of "lipo", so it can be a program name with args.
6953 set dummy lipo; ac_word=$2
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955 $as_echo_n "checking for $ac_word... " >&6; }
6956 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6957 $as_echo_n "(cached) " >&6
6958 else
6959 if test -n "$ac_ct_LIPO"; then
6960 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6961 else
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 for as_dir in $PATH
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6969 ac_cv_prog_ac_ct_LIPO="lipo"
6970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6973 done
6974 done
6975 IFS=$as_save_IFS
6979 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6980 if test -n "$ac_ct_LIPO"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6982 $as_echo "$ac_ct_LIPO" >&6; }
6983 else
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985 $as_echo "no" >&6; }
6988 if test "x$ac_ct_LIPO" = x; then
6989 LIPO=":"
6990 else
6991 case $cross_compiling:$ac_tool_warned in
6992 yes:)
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6995 ac_tool_warned=yes ;;
6996 esac
6997 LIPO=$ac_ct_LIPO
6999 else
7000 LIPO="$ac_cv_prog_LIPO"
7003 if test -n "$ac_tool_prefix"; then
7004 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7005 set dummy ${ac_tool_prefix}otool; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 if test -n "$OTOOL"; then
7012 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7025 done
7026 done
7027 IFS=$as_save_IFS
7031 OTOOL=$ac_cv_prog_OTOOL
7032 if test -n "$OTOOL"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7034 $as_echo "$OTOOL" >&6; }
7035 else
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7042 if test -z "$ac_cv_prog_OTOOL"; then
7043 ac_ct_OTOOL=$OTOOL
7044 # Extract the first word of "otool", so it can be a program name with args.
7045 set dummy otool; ac_word=$2
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7047 $as_echo_n "checking for $ac_word... " >&6; }
7048 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7049 $as_echo_n "(cached) " >&6
7050 else
7051 if test -n "$ac_ct_OTOOL"; then
7052 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7053 else
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_prog_ac_ct_OTOOL="otool"
7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7065 done
7066 done
7067 IFS=$as_save_IFS
7071 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7072 if test -n "$ac_ct_OTOOL"; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7074 $as_echo "$ac_ct_OTOOL" >&6; }
7075 else
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077 $as_echo "no" >&6; }
7080 if test "x$ac_ct_OTOOL" = x; then
7081 OTOOL=":"
7082 else
7083 case $cross_compiling:$ac_tool_warned in
7084 yes:)
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7087 ac_tool_warned=yes ;;
7088 esac
7089 OTOOL=$ac_ct_OTOOL
7091 else
7092 OTOOL="$ac_cv_prog_OTOOL"
7095 if test -n "$ac_tool_prefix"; then
7096 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7097 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7101 $as_echo_n "(cached) " >&6
7102 else
7103 if test -n "$OTOOL64"; then
7104 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7105 else
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7113 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 break 2
7117 done
7118 done
7119 IFS=$as_save_IFS
7123 OTOOL64=$ac_cv_prog_OTOOL64
7124 if test -n "$OTOOL64"; then
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7126 $as_echo "$OTOOL64" >&6; }
7127 else
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129 $as_echo "no" >&6; }
7134 if test -z "$ac_cv_prog_OTOOL64"; then
7135 ac_ct_OTOOL64=$OTOOL64
7136 # Extract the first word of "otool64", so it can be a program name with args.
7137 set dummy otool64; ac_word=$2
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139 $as_echo_n "checking for $ac_word... " >&6; }
7140 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7141 $as_echo_n "(cached) " >&6
7142 else
7143 if test -n "$ac_ct_OTOOL64"; then
7144 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7145 else
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH
7149 IFS=$as_save_IFS
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7153 ac_cv_prog_ac_ct_OTOOL64="otool64"
7154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 break 2
7157 done
7158 done
7159 IFS=$as_save_IFS
7163 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7164 if test -n "$ac_ct_OTOOL64"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7166 $as_echo "$ac_ct_OTOOL64" >&6; }
7167 else
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169 $as_echo "no" >&6; }
7172 if test "x$ac_ct_OTOOL64" = x; then
7173 OTOOL64=":"
7174 else
7175 case $cross_compiling:$ac_tool_warned in
7176 yes:)
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7179 ac_tool_warned=yes ;;
7180 esac
7181 OTOOL64=$ac_ct_OTOOL64
7183 else
7184 OTOOL64="$ac_cv_prog_OTOOL64"
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7214 $as_echo_n "checking for -single_module linker flag... " >&6; }
7215 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7216 $as_echo_n "(cached) " >&6
7217 else
7218 lt_cv_apple_cc_single_mod=no
7219 if test -z "${LT_MULTI_MODULE}"; then
7220 # By default we will add the -single_module flag. You can override
7221 # by either setting the environment variable LT_MULTI_MODULE
7222 # non-empty at configure time, or by adding -multi_module to the
7223 # link flags.
7224 rm -rf libconftest.dylib*
7225 echo "int foo(void){return 1;}" > conftest.c
7226 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7227 -dynamiclib -Wl,-single_module conftest.c" >&5
7228 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7229 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7230 _lt_result=$?
7231 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7232 lt_cv_apple_cc_single_mod=yes
7233 else
7234 cat conftest.err >&5
7236 rm -rf libconftest.dylib*
7237 rm -f conftest.*
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7241 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7243 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7244 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7245 $as_echo_n "(cached) " >&6
7246 else
7247 lt_cv_ld_exported_symbols_list=no
7248 save_LDFLAGS=$LDFLAGS
7249 echo "_main" > conftest.sym
7250 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7255 main ()
7259 return 0;
7261 _ACEOF
7262 if ac_fn_c_try_link "$LINENO"; then :
7263 lt_cv_ld_exported_symbols_list=yes
7264 else
7265 lt_cv_ld_exported_symbols_list=no
7267 rm -f core conftest.err conftest.$ac_objext \
7268 conftest$ac_exeext conftest.$ac_ext
7269 LDFLAGS="$save_LDFLAGS"
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7273 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7275 $as_echo_n "checking for -force_load linker flag... " >&6; }
7276 if test "${lt_cv_ld_force_load+set}" = set; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 lt_cv_ld_force_load=no
7280 cat > conftest.c << _LT_EOF
7281 int forced_loaded() { return 2;}
7282 _LT_EOF
7283 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7284 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7285 echo "$AR cru libconftest.a conftest.o" >&5
7286 $AR cru libconftest.a conftest.o 2>&5
7287 cat > conftest.c << _LT_EOF
7288 int main() { return 0;}
7289 _LT_EOF
7290 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7291 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7292 _lt_result=$?
7293 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7294 lt_cv_ld_force_load=yes
7295 else
7296 cat conftest.err >&5
7298 rm -f conftest.err libconftest.a conftest conftest.c
7299 rm -rf conftest.dSYM
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7303 $as_echo "$lt_cv_ld_force_load" >&6; }
7304 case $host_os in
7305 rhapsody* | darwin1.[012])
7306 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7307 darwin1.*)
7308 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7309 darwin*) # darwin 5.x on
7310 # if running on 10.5 or later, the deployment target defaults
7311 # to the OS version, if on x86, and 10.4, the deployment
7312 # target defaults to 10.4. Don't you love it?
7313 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7314 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7315 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7316 10.[012][,.]*)
7317 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7318 10.*)
7319 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7320 esac
7322 esac
7323 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7324 _lt_dar_single_mod='$single_module'
7326 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7327 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7328 else
7329 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7331 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7332 _lt_dsymutil='~$DSYMUTIL $lib || :'
7333 else
7334 _lt_dsymutil=
7337 esac
7339 ac_ext=c
7340 ac_cpp='$CPP $CPPFLAGS'
7341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7345 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7346 # On Suns, sometimes $CPP names a directory.
7347 if test -n "$CPP" && test -d "$CPP"; then
7348 CPP=
7350 if test -z "$CPP"; then
7351 if test "${ac_cv_prog_CPP+set}" = set; then :
7352 $as_echo_n "(cached) " >&6
7353 else
7354 # Double quotes because CPP needs to be expanded
7355 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7357 ac_preproc_ok=false
7358 for ac_c_preproc_warn_flag in '' yes
7360 # Use a header file that comes with gcc, so configuring glibc
7361 # with a fresh cross-compiler works.
7362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7363 # <limits.h> exists even on freestanding compilers.
7364 # On the NeXT, cc -E runs the code through the compiler's parser,
7365 # not just through cpp. "Syntax error" is here to catch this case.
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7368 #ifdef __STDC__
7369 # include <limits.h>
7370 #else
7371 # include <assert.h>
7372 #endif
7373 Syntax error
7374 _ACEOF
7375 if ac_fn_c_try_cpp "$LINENO"; then :
7377 else
7378 # Broken: fails on valid input.
7379 continue
7381 rm -f conftest.err conftest.$ac_ext
7383 # OK, works on sane cases. Now check whether nonexistent headers
7384 # can be detected and how.
7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h. */
7387 #include <ac_nonexistent.h>
7388 _ACEOF
7389 if ac_fn_c_try_cpp "$LINENO"; then :
7390 # Broken: success on invalid input.
7391 continue
7392 else
7393 # Passes both tests.
7394 ac_preproc_ok=:
7395 break
7397 rm -f conftest.err conftest.$ac_ext
7399 done
7400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7401 rm -f conftest.err conftest.$ac_ext
7402 if $ac_preproc_ok; then :
7403 break
7406 done
7407 ac_cv_prog_CPP=$CPP
7410 CPP=$ac_cv_prog_CPP
7411 else
7412 ac_cv_prog_CPP=$CPP
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7415 $as_echo "$CPP" >&6; }
7416 ac_preproc_ok=false
7417 for ac_c_preproc_warn_flag in '' yes
7419 # Use a header file that comes with gcc, so configuring glibc
7420 # with a fresh cross-compiler works.
7421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7422 # <limits.h> exists even on freestanding compilers.
7423 # On the NeXT, cc -E runs the code through the compiler's parser,
7424 # not just through cpp. "Syntax error" is here to catch this case.
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7427 #ifdef __STDC__
7428 # include <limits.h>
7429 #else
7430 # include <assert.h>
7431 #endif
7432 Syntax error
7433 _ACEOF
7434 if ac_fn_c_try_cpp "$LINENO"; then :
7436 else
7437 # Broken: fails on valid input.
7438 continue
7440 rm -f conftest.err conftest.$ac_ext
7442 # OK, works on sane cases. Now check whether nonexistent headers
7443 # can be detected and how.
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7446 #include <ac_nonexistent.h>
7447 _ACEOF
7448 if ac_fn_c_try_cpp "$LINENO"; then :
7449 # Broken: success on invalid input.
7450 continue
7451 else
7452 # Passes both tests.
7453 ac_preproc_ok=:
7454 break
7456 rm -f conftest.err conftest.$ac_ext
7458 done
7459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7460 rm -f conftest.err conftest.$ac_ext
7461 if $ac_preproc_ok; then :
7463 else
7464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7466 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7467 See \`config.log' for more details." "$LINENO" 5; }
7470 ac_ext=c
7471 ac_cpp='$CPP $CPPFLAGS'
7472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7478 $as_echo_n "checking for ANSI C header files... " >&6; }
7479 if test "${ac_cv_header_stdc+set}" = set; then :
7480 $as_echo_n "(cached) " >&6
7481 else
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7484 #include <stdlib.h>
7485 #include <stdarg.h>
7486 #include <string.h>
7487 #include <float.h>
7490 main ()
7494 return 0;
7496 _ACEOF
7497 if ac_fn_c_try_compile "$LINENO"; then :
7498 ac_cv_header_stdc=yes
7499 else
7500 ac_cv_header_stdc=no
7502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504 if test $ac_cv_header_stdc = yes; then
7505 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7508 #include <string.h>
7510 _ACEOF
7511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7512 $EGREP "memchr" >/dev/null 2>&1; then :
7514 else
7515 ac_cv_header_stdc=no
7517 rm -f conftest*
7521 if test $ac_cv_header_stdc = yes; then
7522 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525 #include <stdlib.h>
7527 _ACEOF
7528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7529 $EGREP "free" >/dev/null 2>&1; then :
7531 else
7532 ac_cv_header_stdc=no
7534 rm -f conftest*
7538 if test $ac_cv_header_stdc = yes; then
7539 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7540 if test "$cross_compiling" = yes; then :
7542 else
7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7545 #include <ctype.h>
7546 #include <stdlib.h>
7547 #if ((' ' & 0x0FF) == 0x020)
7548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7550 #else
7551 # define ISLOWER(c) \
7552 (('a' <= (c) && (c) <= 'i') \
7553 || ('j' <= (c) && (c) <= 'r') \
7554 || ('s' <= (c) && (c) <= 'z'))
7555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7556 #endif
7558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7560 main ()
7562 int i;
7563 for (i = 0; i < 256; i++)
7564 if (XOR (islower (i), ISLOWER (i))
7565 || toupper (i) != TOUPPER (i))
7566 return 2;
7567 return 0;
7569 _ACEOF
7570 if ac_fn_c_try_run "$LINENO"; then :
7572 else
7573 ac_cv_header_stdc=no
7575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7576 conftest.$ac_objext conftest.beam conftest.$ac_ext
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7582 $as_echo "$ac_cv_header_stdc" >&6; }
7583 if test $ac_cv_header_stdc = yes; then
7585 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7589 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7590 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7591 inttypes.h stdint.h unistd.h
7592 do :
7593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7594 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7596 eval as_val=\$$as_ac_Header
7597 if test "x$as_val" = x""yes; then :
7598 cat >>confdefs.h <<_ACEOF
7599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7600 _ACEOF
7604 done
7607 for ac_header in dlfcn.h
7608 do :
7609 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7611 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7612 cat >>confdefs.h <<_ACEOF
7613 #define HAVE_DLFCN_H 1
7614 _ACEOF
7618 done
7624 # Set options
7628 enable_dlopen=no
7631 enable_win32_dll=no
7634 # Check whether --enable-shared was given.
7635 if test "${enable_shared+set}" = set; then :
7636 enableval=$enable_shared; p=${PACKAGE-default}
7637 case $enableval in
7638 yes) enable_shared=yes ;;
7639 no) enable_shared=no ;;
7641 enable_shared=no
7642 # Look at the argument we got. We use all the common list separators.
7643 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7644 for pkg in $enableval; do
7645 IFS="$lt_save_ifs"
7646 if test "X$pkg" = "X$p"; then
7647 enable_shared=yes
7649 done
7650 IFS="$lt_save_ifs"
7652 esac
7653 else
7654 enable_shared=yes
7665 # Check whether --enable-static was given.
7666 if test "${enable_static+set}" = set; then :
7667 enableval=$enable_static; p=${PACKAGE-default}
7668 case $enableval in
7669 yes) enable_static=yes ;;
7670 no) enable_static=no ;;
7672 enable_static=no
7673 # Look at the argument we got. We use all the common list separators.
7674 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7675 for pkg in $enableval; do
7676 IFS="$lt_save_ifs"
7677 if test "X$pkg" = "X$p"; then
7678 enable_static=yes
7680 done
7681 IFS="$lt_save_ifs"
7683 esac
7684 else
7685 enable_static=yes
7697 # Check whether --with-pic was given.
7698 if test "${with_pic+set}" = set; then :
7699 withval=$with_pic; pic_mode="$withval"
7700 else
7701 pic_mode=default
7705 test -z "$pic_mode" && pic_mode=default
7713 # Check whether --enable-fast-install was given.
7714 if test "${enable_fast_install+set}" = set; then :
7715 enableval=$enable_fast_install; p=${PACKAGE-default}
7716 case $enableval in
7717 yes) enable_fast_install=yes ;;
7718 no) enable_fast_install=no ;;
7720 enable_fast_install=no
7721 # Look at the argument we got. We use all the common list separators.
7722 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7723 for pkg in $enableval; do
7724 IFS="$lt_save_ifs"
7725 if test "X$pkg" = "X$p"; then
7726 enable_fast_install=yes
7728 done
7729 IFS="$lt_save_ifs"
7731 esac
7732 else
7733 enable_fast_install=yes
7746 # This can be used to rebuild libtool when needed
7747 LIBTOOL_DEPS="$ltmain"
7749 # Always use our own libtool.
7750 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7777 test -z "$LN_S" && LN_S="ln -s"
7792 if test -n "${ZSH_VERSION+set}" ; then
7793 setopt NO_GLOB_SUBST
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7797 $as_echo_n "checking for objdir... " >&6; }
7798 if test "${lt_cv_objdir+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 rm -f .libs 2>/dev/null
7802 mkdir .libs 2>/dev/null
7803 if test -d .libs; then
7804 lt_cv_objdir=.libs
7805 else
7806 # MS-DOS does not allow filenames that begin with a dot.
7807 lt_cv_objdir=_libs
7809 rmdir .libs 2>/dev/null
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7812 $as_echo "$lt_cv_objdir" >&6; }
7813 objdir=$lt_cv_objdir
7819 cat >>confdefs.h <<_ACEOF
7820 #define LT_OBJDIR "$lt_cv_objdir/"
7821 _ACEOF
7826 case $host_os in
7827 aix3*)
7828 # AIX sometimes has problems with the GCC collect2 program. For some
7829 # reason, if we set the COLLECT_NAMES environment variable, the problems
7830 # vanish in a puff of smoke.
7831 if test "X${COLLECT_NAMES+set}" != Xset; then
7832 COLLECT_NAMES=
7833 export COLLECT_NAMES
7836 esac
7838 # Global variables:
7839 ofile=libtool
7840 can_build_shared=yes
7842 # All known linkers require a `.a' archive for static linking (except MSVC,
7843 # which needs '.lib').
7844 libext=a
7846 with_gnu_ld="$lt_cv_prog_gnu_ld"
7848 old_CC="$CC"
7849 old_CFLAGS="$CFLAGS"
7851 # Set sane defaults for various variables
7852 test -z "$CC" && CC=cc
7853 test -z "$LTCC" && LTCC=$CC
7854 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7855 test -z "$LD" && LD=ld
7856 test -z "$ac_objext" && ac_objext=o
7858 for cc_temp in $compiler""; do
7859 case $cc_temp in
7860 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7861 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7862 \-*) ;;
7863 *) break;;
7864 esac
7865 done
7866 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7869 # Only perform the check for file, if the check method requires it
7870 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7871 case $deplibs_check_method in
7872 file_magic*)
7873 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7875 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7876 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7877 $as_echo_n "(cached) " >&6
7878 else
7879 case $MAGIC_CMD in
7880 [\\/*] | ?:[\\/]*)
7881 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7884 lt_save_MAGIC_CMD="$MAGIC_CMD"
7885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7886 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7887 for ac_dir in $ac_dummy; do
7888 IFS="$lt_save_ifs"
7889 test -z "$ac_dir" && ac_dir=.
7890 if test -f $ac_dir/${ac_tool_prefix}file; then
7891 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7892 if test -n "$file_magic_test_file"; then
7893 case $deplibs_check_method in
7894 "file_magic "*)
7895 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7896 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7897 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7898 $EGREP "$file_magic_regex" > /dev/null; then
7900 else
7901 cat <<_LT_EOF 1>&2
7903 *** Warning: the command libtool uses to detect shared libraries,
7904 *** $file_magic_cmd, produces output that libtool cannot recognize.
7905 *** The result is that libtool may fail to recognize shared libraries
7906 *** as such. This will affect the creation of libtool libraries that
7907 *** depend on shared libraries, but programs linked with such libtool
7908 *** libraries will work regardless of this problem. Nevertheless, you
7909 *** may want to report the problem to your system manager and/or to
7910 *** bug-libtool@gnu.org
7912 _LT_EOF
7913 fi ;;
7914 esac
7916 break
7918 done
7919 IFS="$lt_save_ifs"
7920 MAGIC_CMD="$lt_save_MAGIC_CMD"
7922 esac
7925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7926 if test -n "$MAGIC_CMD"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7928 $as_echo "$MAGIC_CMD" >&6; }
7929 else
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7938 if test -z "$lt_cv_path_MAGIC_CMD"; then
7939 if test -n "$ac_tool_prefix"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7941 $as_echo_n "checking for file... " >&6; }
7942 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 case $MAGIC_CMD in
7946 [\\/*] | ?:[\\/]*)
7947 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7950 lt_save_MAGIC_CMD="$MAGIC_CMD"
7951 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7952 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7953 for ac_dir in $ac_dummy; do
7954 IFS="$lt_save_ifs"
7955 test -z "$ac_dir" && ac_dir=.
7956 if test -f $ac_dir/file; then
7957 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7958 if test -n "$file_magic_test_file"; then
7959 case $deplibs_check_method in
7960 "file_magic "*)
7961 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7962 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7963 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7964 $EGREP "$file_magic_regex" > /dev/null; then
7966 else
7967 cat <<_LT_EOF 1>&2
7969 *** Warning: the command libtool uses to detect shared libraries,
7970 *** $file_magic_cmd, produces output that libtool cannot recognize.
7971 *** The result is that libtool may fail to recognize shared libraries
7972 *** as such. This will affect the creation of libtool libraries that
7973 *** depend on shared libraries, but programs linked with such libtool
7974 *** libraries will work regardless of this problem. Nevertheless, you
7975 *** may want to report the problem to your system manager and/or to
7976 *** bug-libtool@gnu.org
7978 _LT_EOF
7979 fi ;;
7980 esac
7982 break
7984 done
7985 IFS="$lt_save_ifs"
7986 MAGIC_CMD="$lt_save_MAGIC_CMD"
7988 esac
7991 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7992 if test -n "$MAGIC_CMD"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7994 $as_echo "$MAGIC_CMD" >&6; }
7995 else
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
8001 else
8002 MAGIC_CMD=:
8008 esac
8010 # Use C for the default configuration in the libtool script
8012 lt_save_CC="$CC"
8013 ac_ext=c
8014 ac_cpp='$CPP $CPPFLAGS'
8015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8020 # Source file extension for C test sources.
8021 ac_ext=c
8023 # Object file extension for compiled C test sources.
8024 objext=o
8025 objext=$objext
8027 # Code to be used in simple compile tests
8028 lt_simple_compile_test_code="int some_variable = 0;"
8030 # Code to be used in simple link tests
8031 lt_simple_link_test_code='int main(){return(0);}'
8039 # If no C compiler was specified, use CC.
8040 LTCC=${LTCC-"$CC"}
8042 # If no C compiler flags were specified, use CFLAGS.
8043 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8045 # Allow CC to be a program name with arguments.
8046 compiler=$CC
8048 # Save the default compiler, since it gets overwritten when the other
8049 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8050 compiler_DEFAULT=$CC
8052 # save warnings/boilerplate of simple test code
8053 ac_outfile=conftest.$ac_objext
8054 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8055 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8056 _lt_compiler_boilerplate=`cat conftest.err`
8057 $RM conftest*
8059 ac_outfile=conftest.$ac_objext
8060 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8061 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8062 _lt_linker_boilerplate=`cat conftest.err`
8063 $RM -r conftest*
8066 ## CAVEAT EMPTOR:
8067 ## There is no encapsulation within the following macros, do not change
8068 ## the running order or otherwise move them around unless you know exactly
8069 ## what you are doing...
8070 if test -n "$compiler"; then
8072 lt_prog_compiler_no_builtin_flag=
8074 if test "$GCC" = yes; then
8075 case $cc_basename in
8076 nvcc*)
8077 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8079 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8080 esac
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8083 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8084 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 lt_cv_prog_compiler_rtti_exceptions=no
8088 ac_outfile=conftest.$ac_objext
8089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8090 lt_compiler_flag="-fno-rtti -fno-exceptions"
8091 # Insert the option either (1) after the last *FLAGS variable, or
8092 # (2) before a word containing "conftest.", or (3) at the end.
8093 # Note that $ac_compile itself does not contain backslashes and begins
8094 # with a dollar sign (not a hyphen), so the echo should work correctly.
8095 # The option is referenced via a variable to avoid confusing sed.
8096 lt_compile=`echo "$ac_compile" | $SED \
8097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8099 -e 's:$: $lt_compiler_flag:'`
8100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8101 (eval "$lt_compile" 2>conftest.err)
8102 ac_status=$?
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 if (exit $ac_status) && test -s "$ac_outfile"; then
8106 # The compiler can only warn and ignore the option if not recognized
8107 # So say no if there are warnings other than the usual output.
8108 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8110 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8111 lt_cv_prog_compiler_rtti_exceptions=yes
8114 $RM conftest*
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8118 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8120 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8121 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8122 else
8133 lt_prog_compiler_wl=
8134 lt_prog_compiler_pic=
8135 lt_prog_compiler_static=
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8138 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8140 if test "$GCC" = yes; then
8141 lt_prog_compiler_wl='-Wl,'
8142 lt_prog_compiler_static='-static'
8144 case $host_os in
8145 aix*)
8146 # All AIX code is PIC.
8147 if test "$host_cpu" = ia64; then
8148 # AIX 5 now supports IA64 processor
8149 lt_prog_compiler_static='-Bstatic'
8151 lt_prog_compiler_pic='-fPIC'
8154 amigaos*)
8155 case $host_cpu in
8156 powerpc)
8157 # see comment about AmigaOS4 .so support
8158 lt_prog_compiler_pic='-fPIC'
8160 m68k)
8161 # FIXME: we need at least 68020 code to build shared libraries, but
8162 # adding the `-m68020' flag to GCC prevents building anything better,
8163 # like `-m68040'.
8164 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8166 esac
8169 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8170 # PIC is the default for these OSes.
8173 mingw* | cygwin* | pw32* | os2* | cegcc*)
8174 # This hack is so that the source file can tell whether it is being
8175 # built for inclusion in a dll (and should export symbols for example).
8176 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8177 # (--disable-auto-import) libraries
8178 lt_prog_compiler_pic='-DDLL_EXPORT'
8181 darwin* | rhapsody*)
8182 # PIC is the default on this platform
8183 # Common symbols not allowed in MH_DYLIB files
8184 lt_prog_compiler_pic='-fno-common'
8187 haiku*)
8188 # PIC is the default for Haiku.
8189 # The "-static" flag exists, but is broken.
8190 lt_prog_compiler_static=
8193 hpux*)
8194 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8195 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8196 # sets the default TLS model and affects inlining.
8197 case $host_cpu in
8198 hppa*64*)
8199 # +Z the default
8202 lt_prog_compiler_pic='-fPIC'
8204 esac
8207 interix[3-9]*)
8208 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8209 # Instead, we relocate shared libraries at runtime.
8212 msdosdjgpp*)
8213 # Just because we use GCC doesn't mean we suddenly get shared libraries
8214 # on systems that don't support them.
8215 lt_prog_compiler_can_build_shared=no
8216 enable_shared=no
8219 *nto* | *qnx*)
8220 # QNX uses GNU C++, but need to define -shared option too, otherwise
8221 # it will coredump.
8222 lt_prog_compiler_pic='-fPIC -shared'
8225 sysv4*MP*)
8226 if test -d /usr/nec; then
8227 lt_prog_compiler_pic=-Kconform_pic
8232 lt_prog_compiler_pic='-fPIC'
8234 esac
8236 case $cc_basename in
8237 nvcc*) # Cuda Compiler Driver 2.2
8238 lt_prog_compiler_wl='-Xlinker '
8239 lt_prog_compiler_pic='-Xcompiler -fPIC'
8241 esac
8242 else
8243 # PORTME Check for flag to pass linker flags through the system compiler.
8244 case $host_os in
8245 aix*)
8246 lt_prog_compiler_wl='-Wl,'
8247 if test "$host_cpu" = ia64; then
8248 # AIX 5 now supports IA64 processor
8249 lt_prog_compiler_static='-Bstatic'
8250 else
8251 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8255 mingw* | cygwin* | pw32* | os2* | cegcc*)
8256 # This hack is so that the source file can tell whether it is being
8257 # built for inclusion in a dll (and should export symbols for example).
8258 lt_prog_compiler_pic='-DDLL_EXPORT'
8261 hpux9* | hpux10* | hpux11*)
8262 lt_prog_compiler_wl='-Wl,'
8263 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8264 # not for PA HP-UX.
8265 case $host_cpu in
8266 hppa*64*|ia64*)
8267 # +Z the default
8270 lt_prog_compiler_pic='+Z'
8272 esac
8273 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8274 lt_prog_compiler_static='${wl}-a ${wl}archive'
8277 irix5* | irix6* | nonstopux*)
8278 lt_prog_compiler_wl='-Wl,'
8279 # PIC (with -KPIC) is the default.
8280 lt_prog_compiler_static='-non_shared'
8283 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8284 case $cc_basename in
8285 # old Intel for x86_64 which still supported -KPIC.
8286 ecc*)
8287 lt_prog_compiler_wl='-Wl,'
8288 lt_prog_compiler_pic='-KPIC'
8289 lt_prog_compiler_static='-static'
8291 # icc used to be incompatible with GCC.
8292 # ICC 10 doesn't accept -KPIC any more.
8293 icc* | ifort*)
8294 lt_prog_compiler_wl='-Wl,'
8295 lt_prog_compiler_pic='-fPIC'
8296 lt_prog_compiler_static='-static'
8298 # Lahey Fortran 8.1.
8299 lf95*)
8300 lt_prog_compiler_wl='-Wl,'
8301 lt_prog_compiler_pic='--shared'
8302 lt_prog_compiler_static='--static'
8304 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8305 # Portland Group compilers (*not* the Pentium gcc compiler,
8306 # which looks to be a dead project)
8307 lt_prog_compiler_wl='-Wl,'
8308 lt_prog_compiler_pic='-fpic'
8309 lt_prog_compiler_static='-Bstatic'
8311 ccc*)
8312 lt_prog_compiler_wl='-Wl,'
8313 # All Alpha code is PIC.
8314 lt_prog_compiler_static='-non_shared'
8316 xl* | bgxl* | bgf* | mpixl*)
8317 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8318 lt_prog_compiler_wl='-Wl,'
8319 lt_prog_compiler_pic='-qpic'
8320 lt_prog_compiler_static='-qstaticlink'
8323 case `$CC -V 2>&1 | sed 5q` in
8324 *Sun\ F* | *Sun*Fortran*)
8325 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8326 lt_prog_compiler_pic='-KPIC'
8327 lt_prog_compiler_static='-Bstatic'
8328 lt_prog_compiler_wl=''
8330 *Sun\ C*)
8331 # Sun C 5.9
8332 lt_prog_compiler_pic='-KPIC'
8333 lt_prog_compiler_static='-Bstatic'
8334 lt_prog_compiler_wl='-Wl,'
8336 esac
8338 esac
8341 newsos6)
8342 lt_prog_compiler_pic='-KPIC'
8343 lt_prog_compiler_static='-Bstatic'
8346 *nto* | *qnx*)
8347 # QNX uses GNU C++, but need to define -shared option too, otherwise
8348 # it will coredump.
8349 lt_prog_compiler_pic='-fPIC -shared'
8352 osf3* | osf4* | osf5*)
8353 lt_prog_compiler_wl='-Wl,'
8354 # All OSF/1 code is PIC.
8355 lt_prog_compiler_static='-non_shared'
8358 rdos*)
8359 lt_prog_compiler_static='-non_shared'
8362 solaris*)
8363 lt_prog_compiler_pic='-KPIC'
8364 lt_prog_compiler_static='-Bstatic'
8365 case $cc_basename in
8366 f77* | f90* | f95*)
8367 lt_prog_compiler_wl='-Qoption ld ';;
8369 lt_prog_compiler_wl='-Wl,';;
8370 esac
8373 sunos4*)
8374 lt_prog_compiler_wl='-Qoption ld '
8375 lt_prog_compiler_pic='-PIC'
8376 lt_prog_compiler_static='-Bstatic'
8379 sysv4 | sysv4.2uw2* | sysv4.3*)
8380 lt_prog_compiler_wl='-Wl,'
8381 lt_prog_compiler_pic='-KPIC'
8382 lt_prog_compiler_static='-Bstatic'
8385 sysv4*MP*)
8386 if test -d /usr/nec ;then
8387 lt_prog_compiler_pic='-Kconform_pic'
8388 lt_prog_compiler_static='-Bstatic'
8392 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8393 lt_prog_compiler_wl='-Wl,'
8394 lt_prog_compiler_pic='-KPIC'
8395 lt_prog_compiler_static='-Bstatic'
8398 unicos*)
8399 lt_prog_compiler_wl='-Wl,'
8400 lt_prog_compiler_can_build_shared=no
8403 uts4*)
8404 lt_prog_compiler_pic='-pic'
8405 lt_prog_compiler_static='-Bstatic'
8409 lt_prog_compiler_can_build_shared=no
8411 esac
8414 case $host_os in
8415 # For platforms which do not support PIC, -DPIC is meaningless:
8416 *djgpp*)
8417 lt_prog_compiler_pic=
8420 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8422 esac
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8424 $as_echo "$lt_prog_compiler_pic" >&6; }
8432 # Check to make sure the PIC flag actually works.
8434 if test -n "$lt_prog_compiler_pic"; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8436 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8437 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8438 $as_echo_n "(cached) " >&6
8439 else
8440 lt_cv_prog_compiler_pic_works=no
8441 ac_outfile=conftest.$ac_objext
8442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8443 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8444 # Insert the option either (1) after the last *FLAGS variable, or
8445 # (2) before a word containing "conftest.", or (3) at the end.
8446 # Note that $ac_compile itself does not contain backslashes and begins
8447 # with a dollar sign (not a hyphen), so the echo should work correctly.
8448 # The option is referenced via a variable to avoid confusing sed.
8449 lt_compile=`echo "$ac_compile" | $SED \
8450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8452 -e 's:$: $lt_compiler_flag:'`
8453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8454 (eval "$lt_compile" 2>conftest.err)
8455 ac_status=$?
8456 cat conftest.err >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 if (exit $ac_status) && test -s "$ac_outfile"; then
8459 # The compiler can only warn and ignore the option if not recognized
8460 # So say no if there are warnings other than the usual output.
8461 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8463 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8464 lt_cv_prog_compiler_pic_works=yes
8467 $RM conftest*
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8471 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8473 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8474 case $lt_prog_compiler_pic in
8475 "" | " "*) ;;
8476 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8477 esac
8478 else
8479 lt_prog_compiler_pic=
8480 lt_prog_compiler_can_build_shared=no
8491 # Check to make sure the static flag actually works.
8493 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8495 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8496 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8497 $as_echo_n "(cached) " >&6
8498 else
8499 lt_cv_prog_compiler_static_works=no
8500 save_LDFLAGS="$LDFLAGS"
8501 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8502 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8503 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8504 # The linker can only warn and ignore the option if not recognized
8505 # So say no if there are warnings
8506 if test -s conftest.err; then
8507 # Append any errors to the config.log.
8508 cat conftest.err 1>&5
8509 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8511 if diff conftest.exp conftest.er2 >/dev/null; then
8512 lt_cv_prog_compiler_static_works=yes
8514 else
8515 lt_cv_prog_compiler_static_works=yes
8518 $RM -r conftest*
8519 LDFLAGS="$save_LDFLAGS"
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8523 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8525 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8527 else
8528 lt_prog_compiler_static=
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8538 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8539 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8540 $as_echo_n "(cached) " >&6
8541 else
8542 lt_cv_prog_compiler_c_o=no
8543 $RM -r conftest 2>/dev/null
8544 mkdir conftest
8545 cd conftest
8546 mkdir out
8547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8549 lt_compiler_flag="-o out/conftest2.$ac_objext"
8550 # Insert the option either (1) after the last *FLAGS variable, or
8551 # (2) before a word containing "conftest.", or (3) at the end.
8552 # Note that $ac_compile itself does not contain backslashes and begins
8553 # with a dollar sign (not a hyphen), so the echo should work correctly.
8554 lt_compile=`echo "$ac_compile" | $SED \
8555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8557 -e 's:$: $lt_compiler_flag:'`
8558 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8559 (eval "$lt_compile" 2>out/conftest.err)
8560 ac_status=$?
8561 cat out/conftest.err >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8564 then
8565 # The compiler can only warn and ignore the option if not recognized
8566 # So say no if there are warnings
8567 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8568 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8569 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8570 lt_cv_prog_compiler_c_o=yes
8573 chmod u+w . 2>&5
8574 $RM conftest*
8575 # SGI C++ compiler will create directory out/ii_files/ for
8576 # template instantiation
8577 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8578 $RM out/* && rmdir out
8579 cd ..
8580 $RM -r conftest
8581 $RM conftest*
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8585 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8593 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8594 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8595 $as_echo_n "(cached) " >&6
8596 else
8597 lt_cv_prog_compiler_c_o=no
8598 $RM -r conftest 2>/dev/null
8599 mkdir conftest
8600 cd conftest
8601 mkdir out
8602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8604 lt_compiler_flag="-o out/conftest2.$ac_objext"
8605 # Insert the option either (1) after the last *FLAGS variable, or
8606 # (2) before a word containing "conftest.", or (3) at the end.
8607 # Note that $ac_compile itself does not contain backslashes and begins
8608 # with a dollar sign (not a hyphen), so the echo should work correctly.
8609 lt_compile=`echo "$ac_compile" | $SED \
8610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8612 -e 's:$: $lt_compiler_flag:'`
8613 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8614 (eval "$lt_compile" 2>out/conftest.err)
8615 ac_status=$?
8616 cat out/conftest.err >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8619 then
8620 # The compiler can only warn and ignore the option if not recognized
8621 # So say no if there are warnings
8622 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8623 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8624 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8625 lt_cv_prog_compiler_c_o=yes
8628 chmod u+w . 2>&5
8629 $RM conftest*
8630 # SGI C++ compiler will create directory out/ii_files/ for
8631 # template instantiation
8632 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8633 $RM out/* && rmdir out
8634 cd ..
8635 $RM -r conftest
8636 $RM conftest*
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8640 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8645 hard_links="nottested"
8646 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8647 # do not overwrite the value of need_locks provided by the user
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8649 $as_echo_n "checking if we can lock with hard links... " >&6; }
8650 hard_links=yes
8651 $RM conftest*
8652 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8653 touch conftest.a
8654 ln conftest.a conftest.b 2>&5 || hard_links=no
8655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8657 $as_echo "$hard_links" >&6; }
8658 if test "$hard_links" = no; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8660 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8661 need_locks=warn
8663 else
8664 need_locks=no
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8673 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8675 runpath_var=
8676 allow_undefined_flag=
8677 always_export_symbols=no
8678 archive_cmds=
8679 archive_expsym_cmds=
8680 compiler_needs_object=no
8681 enable_shared_with_static_runtimes=no
8682 export_dynamic_flag_spec=
8683 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8684 hardcode_automatic=no
8685 hardcode_direct=no
8686 hardcode_direct_absolute=no
8687 hardcode_libdir_flag_spec=
8688 hardcode_libdir_flag_spec_ld=
8689 hardcode_libdir_separator=
8690 hardcode_minus_L=no
8691 hardcode_shlibpath_var=unsupported
8692 inherit_rpath=no
8693 link_all_deplibs=unknown
8694 module_cmds=
8695 module_expsym_cmds=
8696 old_archive_from_new_cmds=
8697 old_archive_from_expsyms_cmds=
8698 thread_safe_flag_spec=
8699 whole_archive_flag_spec=
8700 # include_expsyms should be a list of space-separated symbols to be *always*
8701 # included in the symbol list
8702 include_expsyms=
8703 # exclude_expsyms can be an extended regexp of symbols to exclude
8704 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8705 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8706 # as well as any symbol that contains `d'.
8707 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8708 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8709 # platforms (ab)use it in PIC code, but their linkers get confused if
8710 # the symbol is explicitly referenced. Since portable code cannot
8711 # rely on this symbol name, it's probably fine to never include it in
8712 # preloaded symbol tables.
8713 # Exclude shared library initialization/finalization symbols.
8714 extract_expsyms_cmds=
8716 case $host_os in
8717 cygwin* | mingw* | pw32* | cegcc*)
8718 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8719 # When not using gcc, we currently assume that we are using
8720 # Microsoft Visual C++.
8721 if test "$GCC" != yes; then
8722 with_gnu_ld=no
8725 interix*)
8726 # we just hope/assume this is gcc and not c89 (= MSVC++)
8727 with_gnu_ld=yes
8729 openbsd*)
8730 with_gnu_ld=no
8732 esac
8734 ld_shlibs=yes
8736 # On some targets, GNU ld is compatible enough with the native linker
8737 # that we're better off using the native interface for both.
8738 lt_use_gnu_ld_interface=no
8739 if test "$with_gnu_ld" = yes; then
8740 case $host_os in
8741 aix*)
8742 # The AIX port of GNU ld has always aspired to compatibility
8743 # with the native linker. However, as the warning in the GNU ld
8744 # block says, versions before 2.19.5* couldn't really create working
8745 # shared libraries, regardless of the interface used.
8746 case `$LD -v 2>&1` in
8747 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8748 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8749 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8751 lt_use_gnu_ld_interface=yes
8753 esac
8756 lt_use_gnu_ld_interface=yes
8758 esac
8761 if test "$lt_use_gnu_ld_interface" = yes; then
8762 # If archive_cmds runs LD, not CC, wlarc should be empty
8763 wlarc='${wl}'
8765 # Set some defaults for GNU ld with shared library support. These
8766 # are reset later if shared libraries are not supported. Putting them
8767 # here allows them to be overridden if necessary.
8768 runpath_var=LD_RUN_PATH
8769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8770 export_dynamic_flag_spec='${wl}--export-dynamic'
8771 # ancient GNU ld didn't support --whole-archive et. al.
8772 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8773 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8774 else
8775 whole_archive_flag_spec=
8777 supports_anon_versioning=no
8778 case `$LD -v 2>&1` in
8779 *GNU\ gold*) supports_anon_versioning=yes ;;
8780 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8781 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8782 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8783 *\ 2.11.*) ;; # other 2.11 versions
8784 *) supports_anon_versioning=yes ;;
8785 esac
8787 # See if GNU ld supports shared libraries.
8788 case $host_os in
8789 aix[3-9]*)
8790 # On AIX/PPC, the GNU linker is very broken
8791 if test "$host_cpu" != ia64; then
8792 ld_shlibs=no
8793 cat <<_LT_EOF 1>&2
8795 *** Warning: the GNU linker, at least up to release 2.19, is reported
8796 *** to be unable to reliably create shared libraries on AIX.
8797 *** Therefore, libtool is disabling shared libraries support. If you
8798 *** really care for shared libraries, you may want to install binutils
8799 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8800 *** You will then need to restart the configuration process.
8802 _LT_EOF
8806 amigaos*)
8807 case $host_cpu in
8808 powerpc)
8809 # see comment about AmigaOS4 .so support
8810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8811 archive_expsym_cmds=''
8813 m68k)
8814 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)'
8815 hardcode_libdir_flag_spec='-L$libdir'
8816 hardcode_minus_L=yes
8818 esac
8821 beos*)
8822 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8823 allow_undefined_flag=unsupported
8824 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8825 # support --undefined. This deserves some investigation. FIXME
8826 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8827 else
8828 ld_shlibs=no
8832 cygwin* | mingw* | pw32* | cegcc*)
8833 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8834 # as there is no search path for DLLs.
8835 hardcode_libdir_flag_spec='-L$libdir'
8836 export_dynamic_flag_spec='${wl}--export-all-symbols'
8837 allow_undefined_flag=unsupported
8838 always_export_symbols=no
8839 enable_shared_with_static_runtimes=yes
8840 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8842 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8844 # If the export-symbols file already is a .def file (1st line
8845 # is EXPORTS), use it as is; otherwise, prepend...
8846 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8847 cp $export_symbols $output_objdir/$soname.def;
8848 else
8849 echo EXPORTS > $output_objdir/$soname.def;
8850 cat $export_symbols >> $output_objdir/$soname.def;
8852 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8853 else
8854 ld_shlibs=no
8858 haiku*)
8859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8860 link_all_deplibs=yes
8863 interix[3-9]*)
8864 hardcode_direct=no
8865 hardcode_shlibpath_var=no
8866 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8867 export_dynamic_flag_spec='${wl}-E'
8868 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8869 # Instead, shared libraries are loaded at an image base (0x10000000 by
8870 # default) and relocated if they conflict, which is a slow very memory
8871 # consuming and fragmenting process. To avoid this, we pick a random,
8872 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8873 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8874 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8875 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'
8878 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8879 tmp_diet=no
8880 if test "$host_os" = linux-dietlibc; then
8881 case $cc_basename in
8882 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8883 esac
8885 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8886 && test "$tmp_diet" = no
8887 then
8888 tmp_addflag=
8889 tmp_sharedflag='-shared'
8890 case $cc_basename,$host_cpu in
8891 pgcc*) # Portland Group C compiler
8892 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8893 tmp_addflag=' $pic_flag'
8895 pgf77* | pgf90* | pgf95* | pgfortran*)
8896 # Portland Group f77 and f90 compilers
8897 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8898 tmp_addflag=' $pic_flag -Mnomain' ;;
8899 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8900 tmp_addflag=' -i_dynamic' ;;
8901 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8902 tmp_addflag=' -i_dynamic -nofor_main' ;;
8903 ifc* | ifort*) # Intel Fortran compiler
8904 tmp_addflag=' -nofor_main' ;;
8905 lf95*) # Lahey Fortran 8.1
8906 whole_archive_flag_spec=
8907 tmp_sharedflag='--shared' ;;
8908 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8909 tmp_sharedflag='-qmkshrobj'
8910 tmp_addflag= ;;
8911 nvcc*) # Cuda Compiler Driver 2.2
8912 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8913 compiler_needs_object=yes
8915 esac
8916 case `$CC -V 2>&1 | sed 5q` in
8917 *Sun\ C*) # Sun C 5.9
8918 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8919 compiler_needs_object=yes
8920 tmp_sharedflag='-G' ;;
8921 *Sun\ F*) # Sun Fortran 8.3
8922 tmp_sharedflag='-G' ;;
8923 esac
8924 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8926 if test "x$supports_anon_versioning" = xyes; then
8927 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8928 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8929 echo "local: *; };" >> $output_objdir/$libname.ver~
8930 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8933 case $cc_basename in
8934 xlf* | bgf* | bgxlf* | mpixlf*)
8935 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8936 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8937 hardcode_libdir_flag_spec=
8938 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8939 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8940 if test "x$supports_anon_versioning" = xyes; then
8941 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8942 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8943 echo "local: *; };" >> $output_objdir/$libname.ver~
8944 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8947 esac
8948 else
8949 ld_shlibs=no
8953 netbsd*)
8954 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8955 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8956 wlarc=
8957 else
8958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8959 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8963 solaris*)
8964 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8965 ld_shlibs=no
8966 cat <<_LT_EOF 1>&2
8968 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8969 *** create shared libraries on Solaris systems. Therefore, libtool
8970 *** is disabling shared libraries support. We urge you to upgrade GNU
8971 *** binutils to release 2.9.1 or newer. Another option is to modify
8972 *** your PATH or compiler configuration so that the native linker is
8973 *** used, and then restart.
8975 _LT_EOF
8976 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8978 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8979 else
8980 ld_shlibs=no
8984 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8985 case `$LD -v 2>&1` in
8986 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8987 ld_shlibs=no
8988 cat <<_LT_EOF 1>&2
8990 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8991 *** reliably create shared libraries on SCO systems. Therefore, libtool
8992 *** is disabling shared libraries support. We urge you to upgrade GNU
8993 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8994 *** your PATH or compiler configuration so that the native linker is
8995 *** used, and then restart.
8997 _LT_EOF
9000 # For security reasons, it is highly recommended that you always
9001 # use absolute paths for naming shared libraries, and exclude the
9002 # DT_RUNPATH tag from executables and libraries. But doing so
9003 # requires that you compile everything twice, which is a pain.
9004 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9005 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9006 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9007 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9008 else
9009 ld_shlibs=no
9012 esac
9015 sunos4*)
9016 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9017 wlarc=
9018 hardcode_direct=yes
9019 hardcode_shlibpath_var=no
9023 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9025 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9026 else
9027 ld_shlibs=no
9030 esac
9032 if test "$ld_shlibs" = no; then
9033 runpath_var=
9034 hardcode_libdir_flag_spec=
9035 export_dynamic_flag_spec=
9036 whole_archive_flag_spec=
9038 else
9039 # PORTME fill in a description of your system's linker (not GNU ld)
9040 case $host_os in
9041 aix3*)
9042 allow_undefined_flag=unsupported
9043 always_export_symbols=yes
9044 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'
9045 # Note: this linker hardcodes the directories in LIBPATH if there
9046 # are no directories specified by -L.
9047 hardcode_minus_L=yes
9048 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9049 # Neither direct hardcoding nor static linking is supported with a
9050 # broken collect2.
9051 hardcode_direct=unsupported
9055 aix[4-9]*)
9056 if test "$host_cpu" = ia64; then
9057 # On IA64, the linker does run time linking by default, so we don't
9058 # have to do anything special.
9059 aix_use_runtimelinking=no
9060 exp_sym_flag='-Bexport'
9061 no_entry_flag=""
9062 else
9063 # If we're using GNU nm, then we don't want the "-C" option.
9064 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9065 # Also, AIX nm treats weak defined symbols like other global
9066 # defined symbols, whereas GNU nm marks them as "W".
9067 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9068 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9069 else
9070 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'
9072 aix_use_runtimelinking=no
9074 # Test if we are trying to use run time linking or normal
9075 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9076 # need to do runtime linking.
9077 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9078 for ld_flag in $LDFLAGS; do
9079 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9080 aix_use_runtimelinking=yes
9081 break
9083 done
9085 esac
9087 exp_sym_flag='-bexport'
9088 no_entry_flag='-bnoentry'
9091 # When large executables or shared objects are built, AIX ld can
9092 # have problems creating the table of contents. If linking a library
9093 # or program results in "error TOC overflow" add -mminimal-toc to
9094 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9095 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9097 archive_cmds=''
9098 hardcode_direct=yes
9099 hardcode_direct_absolute=yes
9100 hardcode_libdir_separator=':'
9101 link_all_deplibs=yes
9102 file_list_spec='${wl}-f,'
9104 if test "$GCC" = yes; then
9105 case $host_os in aix4.[012]|aix4.[012].*)
9106 # We only want to do this on AIX 4.2 and lower, the check
9107 # below for broken collect2 doesn't work under 4.3+
9108 collect2name=`${CC} -print-prog-name=collect2`
9109 if test -f "$collect2name" &&
9110 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9111 then
9112 # We have reworked collect2
9114 else
9115 # We have old collect2
9116 hardcode_direct=unsupported
9117 # It fails to find uninstalled libraries when the uninstalled
9118 # path is not listed in the libpath. Setting hardcode_minus_L
9119 # to unsupported forces relinking
9120 hardcode_minus_L=yes
9121 hardcode_libdir_flag_spec='-L$libdir'
9122 hardcode_libdir_separator=
9125 esac
9126 shared_flag='-shared'
9127 if test "$aix_use_runtimelinking" = yes; then
9128 shared_flag="$shared_flag "'${wl}-G'
9130 else
9131 # not using gcc
9132 if test "$host_cpu" = ia64; then
9133 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9134 # chokes on -Wl,-G. The following line is correct:
9135 shared_flag='-G'
9136 else
9137 if test "$aix_use_runtimelinking" = yes; then
9138 shared_flag='${wl}-G'
9139 else
9140 shared_flag='${wl}-bM:SRE'
9145 export_dynamic_flag_spec='${wl}-bexpall'
9146 # It seems that -bexpall does not export symbols beginning with
9147 # underscore (_), so it is better to generate a list of symbols to export.
9148 always_export_symbols=yes
9149 if test "$aix_use_runtimelinking" = yes; then
9150 # Warning - without using the other runtime loading flags (-brtl),
9151 # -berok will link without error, but may produce a broken library.
9152 allow_undefined_flag='-berok'
9153 # Determine the default libpath from the value encoded in an
9154 # empty executable.
9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156 /* end confdefs.h. */
9159 main ()
9163 return 0;
9165 _ACEOF
9166 if ac_fn_c_try_link "$LINENO"; then :
9168 lt_aix_libpath_sed='
9169 /Import File Strings/,/^$/ {
9170 /^0/ {
9171 s/^0 *\(.*\)$/\1/
9175 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9176 # Check for a 64-bit object if we didn't find anything.
9177 if test -z "$aix_libpath"; then
9178 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9181 rm -f core conftest.err conftest.$ac_objext \
9182 conftest$ac_exeext conftest.$ac_ext
9183 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9185 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9186 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9187 else
9188 if test "$host_cpu" = ia64; then
9189 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9190 allow_undefined_flag="-z nodefs"
9191 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"
9192 else
9193 # Determine the default libpath from the value encoded in an
9194 # empty executable.
9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9199 main ()
9203 return 0;
9205 _ACEOF
9206 if ac_fn_c_try_link "$LINENO"; then :
9208 lt_aix_libpath_sed='
9209 /Import File Strings/,/^$/ {
9210 /^0/ {
9211 s/^0 *\(.*\)$/\1/
9215 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9216 # Check for a 64-bit object if we didn't find anything.
9217 if test -z "$aix_libpath"; then
9218 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9221 rm -f core conftest.err conftest.$ac_objext \
9222 conftest$ac_exeext conftest.$ac_ext
9223 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9225 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9226 # Warning - without using the other run time loading flags,
9227 # -berok will link without error, but may produce a broken library.
9228 no_undefined_flag=' ${wl}-bernotok'
9229 allow_undefined_flag=' ${wl}-berok'
9230 if test "$with_gnu_ld" = yes; then
9231 # We only use this code for GNU lds that support --whole-archive.
9232 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9233 else
9234 # Exported symbols can be pulled into shared objects from archives
9235 whole_archive_flag_spec='$convenience'
9237 archive_cmds_need_lc=yes
9238 # This is similar to how AIX traditionally builds its shared libraries.
9239 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'
9244 amigaos*)
9245 case $host_cpu in
9246 powerpc)
9247 # see comment about AmigaOS4 .so support
9248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9249 archive_expsym_cmds=''
9251 m68k)
9252 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)'
9253 hardcode_libdir_flag_spec='-L$libdir'
9254 hardcode_minus_L=yes
9256 esac
9259 bsdi[45]*)
9260 export_dynamic_flag_spec=-rdynamic
9263 cygwin* | mingw* | pw32* | cegcc*)
9264 # When not using gcc, we currently assume that we are using
9265 # Microsoft Visual C++.
9266 # hardcode_libdir_flag_spec is actually meaningless, as there is
9267 # no search path for DLLs.
9268 hardcode_libdir_flag_spec=' '
9269 allow_undefined_flag=unsupported
9270 # Tell ltmain to make .lib files, not .a files.
9271 libext=lib
9272 # Tell ltmain to make .dll files, not .so files.
9273 shrext_cmds=".dll"
9274 # FIXME: Setting linknames here is a bad hack.
9275 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9276 # The linker will automatically build a .lib file if we build a DLL.
9277 old_archive_from_new_cmds='true'
9278 # FIXME: Should let the user specify the lib program.
9279 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9280 fix_srcfile_path='`cygpath -w "$srcfile"`'
9281 enable_shared_with_static_runtimes=yes
9284 darwin* | rhapsody*)
9287 archive_cmds_need_lc=no
9288 hardcode_direct=no
9289 hardcode_automatic=yes
9290 hardcode_shlibpath_var=unsupported
9291 if test "$lt_cv_ld_force_load" = "yes"; then
9292 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9293 else
9294 whole_archive_flag_spec=''
9296 link_all_deplibs=yes
9297 allow_undefined_flag="$_lt_dar_allow_undefined"
9298 case $cc_basename in
9299 ifort*) _lt_dar_can_shared=yes ;;
9300 *) _lt_dar_can_shared=$GCC ;;
9301 esac
9302 if test "$_lt_dar_can_shared" = "yes"; then
9303 output_verbose_link_cmd=func_echo_all
9304 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9305 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9306 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9307 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9309 else
9310 ld_shlibs=no
9315 dgux*)
9316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9317 hardcode_libdir_flag_spec='-L$libdir'
9318 hardcode_shlibpath_var=no
9321 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9322 # support. Future versions do this automatically, but an explicit c++rt0.o
9323 # does not break anything, and helps significantly (at the cost of a little
9324 # extra space).
9325 freebsd2.2*)
9326 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9327 hardcode_libdir_flag_spec='-R$libdir'
9328 hardcode_direct=yes
9329 hardcode_shlibpath_var=no
9332 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9333 freebsd2.*)
9334 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9335 hardcode_direct=yes
9336 hardcode_minus_L=yes
9337 hardcode_shlibpath_var=no
9340 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9341 freebsd* | dragonfly*)
9342 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9343 hardcode_libdir_flag_spec='-R$libdir'
9344 hardcode_direct=yes
9345 hardcode_shlibpath_var=no
9348 hpux9*)
9349 if test "$GCC" = yes; then
9350 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'
9351 else
9352 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'
9354 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9355 hardcode_libdir_separator=:
9356 hardcode_direct=yes
9358 # hardcode_minus_L: Not really in the search PATH,
9359 # but as the default location of the library.
9360 hardcode_minus_L=yes
9361 export_dynamic_flag_spec='${wl}-E'
9364 hpux10*)
9365 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9366 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9367 else
9368 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9370 if test "$with_gnu_ld" = no; then
9371 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9372 hardcode_libdir_flag_spec_ld='+b $libdir'
9373 hardcode_libdir_separator=:
9374 hardcode_direct=yes
9375 hardcode_direct_absolute=yes
9376 export_dynamic_flag_spec='${wl}-E'
9377 # hardcode_minus_L: Not really in the search PATH,
9378 # but as the default location of the library.
9379 hardcode_minus_L=yes
9383 hpux11*)
9384 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9385 case $host_cpu in
9386 hppa*64*)
9387 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9389 ia64*)
9390 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9393 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9395 esac
9396 else
9397 case $host_cpu in
9398 hppa*64*)
9399 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9401 ia64*)
9402 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9406 # Older versions of the 11.00 compiler do not understand -b yet
9407 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9409 $as_echo_n "checking if $CC understands -b... " >&6; }
9410 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9411 $as_echo_n "(cached) " >&6
9412 else
9413 lt_cv_prog_compiler__b=no
9414 save_LDFLAGS="$LDFLAGS"
9415 LDFLAGS="$LDFLAGS -b"
9416 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9417 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9418 # The linker can only warn and ignore the option if not recognized
9419 # So say no if there are warnings
9420 if test -s conftest.err; then
9421 # Append any errors to the config.log.
9422 cat conftest.err 1>&5
9423 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9424 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9425 if diff conftest.exp conftest.er2 >/dev/null; then
9426 lt_cv_prog_compiler__b=yes
9428 else
9429 lt_cv_prog_compiler__b=yes
9432 $RM -r conftest*
9433 LDFLAGS="$save_LDFLAGS"
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9437 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9439 if test x"$lt_cv_prog_compiler__b" = xyes; then
9440 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9441 else
9442 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9446 esac
9448 if test "$with_gnu_ld" = no; then
9449 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9450 hardcode_libdir_separator=:
9452 case $host_cpu in
9453 hppa*64*|ia64*)
9454 hardcode_direct=no
9455 hardcode_shlibpath_var=no
9458 hardcode_direct=yes
9459 hardcode_direct_absolute=yes
9460 export_dynamic_flag_spec='${wl}-E'
9462 # hardcode_minus_L: Not really in the search PATH,
9463 # but as the default location of the library.
9464 hardcode_minus_L=yes
9466 esac
9470 irix5* | irix6* | nonstopux*)
9471 if test "$GCC" = yes; then
9472 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9473 # Try to use the -exported_symbol ld option, if it does not
9474 # work, assume that -exports_file does not work either and
9475 # implicitly export all symbols.
9476 save_LDFLAGS="$LDFLAGS"
9477 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9480 int foo(void) {}
9481 _ACEOF
9482 if ac_fn_c_try_link "$LINENO"; then :
9483 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9486 rm -f core conftest.err conftest.$ac_objext \
9487 conftest$ac_exeext conftest.$ac_ext
9488 LDFLAGS="$save_LDFLAGS"
9489 else
9490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9491 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9493 archive_cmds_need_lc='no'
9494 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9495 hardcode_libdir_separator=:
9496 inherit_rpath=yes
9497 link_all_deplibs=yes
9500 netbsd*)
9501 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9502 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9503 else
9504 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9506 hardcode_libdir_flag_spec='-R$libdir'
9507 hardcode_direct=yes
9508 hardcode_shlibpath_var=no
9511 newsos6)
9512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9513 hardcode_direct=yes
9514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9515 hardcode_libdir_separator=:
9516 hardcode_shlibpath_var=no
9519 *nto* | *qnx*)
9522 openbsd*)
9523 if test -f /usr/libexec/ld.so; then
9524 hardcode_direct=yes
9525 hardcode_shlibpath_var=no
9526 hardcode_direct_absolute=yes
9527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9528 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9529 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9530 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9531 export_dynamic_flag_spec='${wl}-E'
9532 else
9533 case $host_os in
9534 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9535 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9536 hardcode_libdir_flag_spec='-R$libdir'
9539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9540 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9542 esac
9544 else
9545 ld_shlibs=no
9549 os2*)
9550 hardcode_libdir_flag_spec='-L$libdir'
9551 hardcode_minus_L=yes
9552 allow_undefined_flag=unsupported
9553 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'
9554 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9557 osf3*)
9558 if test "$GCC" = yes; then
9559 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9560 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9561 else
9562 allow_undefined_flag=' -expect_unresolved \*'
9563 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9565 archive_cmds_need_lc='no'
9566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9567 hardcode_libdir_separator=:
9570 osf4* | osf5*) # as osf3* with the addition of -msym flag
9571 if test "$GCC" = yes; then
9572 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9573 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9575 else
9576 allow_undefined_flag=' -expect_unresolved \*'
9577 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9578 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~
9579 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9581 # Both c and cxx compiler support -rpath directly
9582 hardcode_libdir_flag_spec='-rpath $libdir'
9584 archive_cmds_need_lc='no'
9585 hardcode_libdir_separator=:
9588 solaris*)
9589 no_undefined_flag=' -z defs'
9590 if test "$GCC" = yes; then
9591 wlarc='${wl}'
9592 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9593 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9594 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9595 else
9596 case `$CC -V 2>&1` in
9597 *"Compilers 5.0"*)
9598 wlarc=''
9599 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9600 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9601 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9604 wlarc='${wl}'
9605 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9606 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9607 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9609 esac
9611 hardcode_libdir_flag_spec='-R$libdir'
9612 hardcode_shlibpath_var=no
9613 case $host_os in
9614 solaris2.[0-5] | solaris2.[0-5].*) ;;
9616 # The compiler driver will combine and reorder linker options,
9617 # but understands `-z linker_flag'. GCC discards it without `$wl',
9618 # but is careful enough not to reorder.
9619 # Supported since Solaris 2.6 (maybe 2.5.1?)
9620 if test "$GCC" = yes; then
9621 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9622 else
9623 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9626 esac
9627 link_all_deplibs=yes
9630 sunos4*)
9631 if test "x$host_vendor" = xsequent; then
9632 # Use $CC to link under sequent, because it throws in some extra .o
9633 # files that make .init and .fini sections work.
9634 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9635 else
9636 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9638 hardcode_libdir_flag_spec='-L$libdir'
9639 hardcode_direct=yes
9640 hardcode_minus_L=yes
9641 hardcode_shlibpath_var=no
9644 sysv4)
9645 case $host_vendor in
9646 sni)
9647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9648 hardcode_direct=yes # is this really true???
9650 siemens)
9651 ## LD is ld it makes a PLAMLIB
9652 ## CC just makes a GrossModule.
9653 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9654 reload_cmds='$CC -r -o $output$reload_objs'
9655 hardcode_direct=no
9657 motorola)
9658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9659 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9661 esac
9662 runpath_var='LD_RUN_PATH'
9663 hardcode_shlibpath_var=no
9666 sysv4.3*)
9667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9668 hardcode_shlibpath_var=no
9669 export_dynamic_flag_spec='-Bexport'
9672 sysv4*MP*)
9673 if test -d /usr/nec; then
9674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675 hardcode_shlibpath_var=no
9676 runpath_var=LD_RUN_PATH
9677 hardcode_runpath_var=yes
9678 ld_shlibs=yes
9682 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9683 no_undefined_flag='${wl}-z,text'
9684 archive_cmds_need_lc=no
9685 hardcode_shlibpath_var=no
9686 runpath_var='LD_RUN_PATH'
9688 if test "$GCC" = yes; then
9689 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9690 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9691 else
9692 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9693 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697 sysv5* | sco3.2v5* | sco5v6*)
9698 # Note: We can NOT use -z defs as we might desire, because we do not
9699 # link with -lc, and that would cause any symbols used from libc to
9700 # always be unresolved, which means just about no library would
9701 # ever link correctly. If we're not using GNU ld we use -z text
9702 # though, which does catch some bad symbols but isn't as heavy-handed
9703 # as -z defs.
9704 no_undefined_flag='${wl}-z,text'
9705 allow_undefined_flag='${wl}-z,nodefs'
9706 archive_cmds_need_lc=no
9707 hardcode_shlibpath_var=no
9708 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9709 hardcode_libdir_separator=':'
9710 link_all_deplibs=yes
9711 export_dynamic_flag_spec='${wl}-Bexport'
9712 runpath_var='LD_RUN_PATH'
9714 if test "$GCC" = yes; then
9715 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9717 else
9718 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 uts4*)
9724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725 hardcode_libdir_flag_spec='-L$libdir'
9726 hardcode_shlibpath_var=no
9730 ld_shlibs=no
9732 esac
9734 if test x$host_vendor = xsni; then
9735 case $host in
9736 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9737 export_dynamic_flag_spec='${wl}-Blargedynsym'
9739 esac
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9744 $as_echo "$ld_shlibs" >&6; }
9745 test "$ld_shlibs" = no && can_build_shared=no
9747 with_gnu_ld=$with_gnu_ld
9764 # Do we need to explicitly link libc?
9766 case "x$archive_cmds_need_lc" in
9767 x|xyes)
9768 # Assume -lc should be added
9769 archive_cmds_need_lc=yes
9771 if test "$enable_shared" = yes && test "$GCC" = yes; then
9772 case $archive_cmds in
9773 *'~'*)
9774 # FIXME: we may have to deal with multi-command sequences.
9776 '$CC '*)
9777 # Test whether the compiler implicitly links with -lc since on some
9778 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9779 # to ld, don't add -lc before -lgcc.
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9781 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9782 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9783 $as_echo_n "(cached) " >&6
9784 else
9785 $RM conftest*
9786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9789 (eval $ac_compile) 2>&5
9790 ac_status=$?
9791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9792 test $ac_status = 0; } 2>conftest.err; then
9793 soname=conftest
9794 lib=conftest
9795 libobjs=conftest.$ac_objext
9796 deplibs=
9797 wl=$lt_prog_compiler_wl
9798 pic_flag=$lt_prog_compiler_pic
9799 compiler_flags=-v
9800 linker_flags=-v
9801 verstring=
9802 output_objdir=.
9803 libname=conftest
9804 lt_save_allow_undefined_flag=$allow_undefined_flag
9805 allow_undefined_flag=
9806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9807 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9808 ac_status=$?
9809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9810 test $ac_status = 0; }
9811 then
9812 lt_cv_archive_cmds_need_lc=no
9813 else
9814 lt_cv_archive_cmds_need_lc=yes
9816 allow_undefined_flag=$lt_save_allow_undefined_flag
9817 else
9818 cat conftest.err 1>&5
9820 $RM conftest*
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9824 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9825 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9827 esac
9830 esac
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9989 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9991 if test "$GCC" = yes; then
9992 case $host_os in
9993 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9994 *) lt_awk_arg="/^libraries:/" ;;
9995 esac
9996 case $host_os in
9997 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9998 *) lt_sed_strip_eq="s,=/,/,g" ;;
9999 esac
10000 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10001 case $lt_search_path_spec in
10002 *\;*)
10003 # if the path contains ";" then we assume it to be the separator
10004 # otherwise default to the standard path separator (i.e. ":") - it is
10005 # assumed that no part of a normal pathname contains ";" but that should
10006 # okay in the real world where ";" in dirpaths is itself problematic.
10007 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10010 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10012 esac
10013 # Ok, now we have the path, separated by spaces, we can step through it
10014 # and add multilib dir if necessary.
10015 lt_tmp_lt_search_path_spec=
10016 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10017 for lt_sys_path in $lt_search_path_spec; do
10018 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10019 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10020 else
10021 test -d "$lt_sys_path" && \
10022 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10024 done
10025 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10026 BEGIN {RS=" "; FS="/|\n";} {
10027 lt_foo="";
10028 lt_count=0;
10029 for (lt_i = NF; lt_i > 0; lt_i--) {
10030 if ($lt_i != "" && $lt_i != ".") {
10031 if ($lt_i == "..") {
10032 lt_count++;
10033 } else {
10034 if (lt_count == 0) {
10035 lt_foo="/" $lt_i lt_foo;
10036 } else {
10037 lt_count--;
10042 if (lt_foo != "") { lt_freq[lt_foo]++; }
10043 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10045 # AWK program above erroneously prepends '/' to C:/dos/paths
10046 # for these hosts.
10047 case $host_os in
10048 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10049 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10050 esac
10051 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10052 else
10053 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10055 library_names_spec=
10056 libname_spec='lib$name'
10057 soname_spec=
10058 shrext_cmds=".so"
10059 postinstall_cmds=
10060 postuninstall_cmds=
10061 finish_cmds=
10062 finish_eval=
10063 shlibpath_var=
10064 shlibpath_overrides_runpath=unknown
10065 version_type=none
10066 dynamic_linker="$host_os ld.so"
10067 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10068 need_lib_prefix=unknown
10069 hardcode_into_libs=no
10071 # when you set need_version to no, make sure it does not cause -set_version
10072 # flags to be left without arguments
10073 need_version=unknown
10075 case $host_os in
10076 aix3*)
10077 version_type=linux
10078 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10079 shlibpath_var=LIBPATH
10081 # AIX 3 has no versioning support, so we append a major version to the name.
10082 soname_spec='${libname}${release}${shared_ext}$major'
10085 aix[4-9]*)
10086 version_type=linux
10087 need_lib_prefix=no
10088 need_version=no
10089 hardcode_into_libs=yes
10090 if test "$host_cpu" = ia64; then
10091 # AIX 5 supports IA64
10092 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 else
10095 # With GCC up to 2.95.x, collect2 would create an import file
10096 # for dependence libraries. The import file would start with
10097 # the line `#! .'. This would cause the generated library to
10098 # depend on `.', always an invalid library. This was fixed in
10099 # development snapshots of GCC prior to 3.0.
10100 case $host_os in
10101 aix4 | aix4.[01] | aix4.[01].*)
10102 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10103 echo ' yes '
10104 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10106 else
10107 can_build_shared=no
10110 esac
10111 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10112 # soname into executable. Probably we can add versioning support to
10113 # collect2, so additional links can be useful in future.
10114 if test "$aix_use_runtimelinking" = yes; then
10115 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10116 # instead of lib<name>.a to let people know that these are not
10117 # typical AIX shared libraries.
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119 else
10120 # We preserve .a as extension for shared libraries through AIX4.2
10121 # and later when we are not doing run time linking.
10122 library_names_spec='${libname}${release}.a $libname.a'
10123 soname_spec='${libname}${release}${shared_ext}$major'
10125 shlibpath_var=LIBPATH
10129 amigaos*)
10130 case $host_cpu in
10131 powerpc)
10132 # Since July 2007 AmigaOS4 officially supports .so libraries.
10133 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10136 m68k)
10137 library_names_spec='$libname.ixlibrary $libname.a'
10138 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10139 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10141 esac
10144 beos*)
10145 library_names_spec='${libname}${shared_ext}'
10146 dynamic_linker="$host_os ld.so"
10147 shlibpath_var=LIBRARY_PATH
10150 bsdi[45]*)
10151 version_type=linux
10152 need_version=no
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10156 shlibpath_var=LD_LIBRARY_PATH
10157 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10158 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10159 # the default ld.so.conf also contains /usr/contrib/lib and
10160 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10161 # libtool to hard-code these into programs
10164 cygwin* | mingw* | pw32* | cegcc*)
10165 version_type=windows
10166 shrext_cmds=".dll"
10167 need_version=no
10168 need_lib_prefix=no
10170 case $GCC,$host_os in
10171 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10172 library_names_spec='$libname.dll.a'
10173 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10174 postinstall_cmds='base_file=`basename \${file}`~
10175 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10176 dldir=$destdir/`dirname \$dlpath`~
10177 test -d \$dldir || mkdir -p \$dldir~
10178 $install_prog $dir/$dlname \$dldir/$dlname~
10179 chmod a+x \$dldir/$dlname~
10180 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10181 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10183 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10184 dlpath=$dir/\$dldll~
10185 $RM \$dlpath'
10186 shlibpath_overrides_runpath=yes
10188 case $host_os in
10189 cygwin*)
10190 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10191 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10193 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10195 mingw* | cegcc*)
10196 # MinGW DLLs use traditional 'lib' prefix
10197 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10199 pw32*)
10200 # pw32 DLLs use 'pw' prefix rather than 'lib'
10201 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10203 esac
10207 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10209 esac
10210 dynamic_linker='Win32 ld.exe'
10211 # FIXME: first we should search . and the directory the executable is in
10212 shlibpath_var=PATH
10215 darwin* | rhapsody*)
10216 dynamic_linker="$host_os dyld"
10217 version_type=darwin
10218 need_lib_prefix=no
10219 need_version=no
10220 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10221 soname_spec='${libname}${release}${major}$shared_ext'
10222 shlibpath_overrides_runpath=yes
10223 shlibpath_var=DYLD_LIBRARY_PATH
10224 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10226 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10227 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10230 dgux*)
10231 version_type=linux
10232 need_lib_prefix=no
10233 need_version=no
10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10235 soname_spec='${libname}${release}${shared_ext}$major'
10236 shlibpath_var=LD_LIBRARY_PATH
10239 freebsd* | dragonfly*)
10240 # DragonFly does not have aout. When/if they implement a new
10241 # versioning mechanism, adjust this.
10242 if test -x /usr/bin/objformat; then
10243 objformat=`/usr/bin/objformat`
10244 else
10245 case $host_os in
10246 freebsd[23].*) objformat=aout ;;
10247 *) objformat=elf ;;
10248 esac
10250 version_type=freebsd-$objformat
10251 case $version_type in
10252 freebsd-elf*)
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10254 need_version=no
10255 need_lib_prefix=no
10257 freebsd-*)
10258 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10259 need_version=yes
10261 esac
10262 shlibpath_var=LD_LIBRARY_PATH
10263 case $host_os in
10264 freebsd2.*)
10265 shlibpath_overrides_runpath=yes
10267 freebsd3.[01]* | freebsdelf3.[01]*)
10268 shlibpath_overrides_runpath=yes
10269 hardcode_into_libs=yes
10271 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10272 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10273 shlibpath_overrides_runpath=no
10274 hardcode_into_libs=yes
10276 *) # from 4.6 on, and DragonFly
10277 shlibpath_overrides_runpath=yes
10278 hardcode_into_libs=yes
10280 esac
10283 gnu*)
10284 version_type=linux
10285 need_lib_prefix=no
10286 need_version=no
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 hardcode_into_libs=yes
10293 haiku*)
10294 version_type=linux
10295 need_lib_prefix=no
10296 need_version=no
10297 dynamic_linker="$host_os runtime_loader"
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 shlibpath_var=LIBRARY_PATH
10301 shlibpath_overrides_runpath=yes
10302 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10303 hardcode_into_libs=yes
10306 hpux9* | hpux10* | hpux11*)
10307 # Give a soname corresponding to the major version so that dld.sl refuses to
10308 # link against other versions.
10309 version_type=sunos
10310 need_lib_prefix=no
10311 need_version=no
10312 case $host_cpu in
10313 ia64*)
10314 shrext_cmds='.so'
10315 hardcode_into_libs=yes
10316 dynamic_linker="$host_os dld.so"
10317 shlibpath_var=LD_LIBRARY_PATH
10318 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10320 soname_spec='${libname}${release}${shared_ext}$major'
10321 if test "X$HPUX_IA64_MODE" = X32; then
10322 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10323 else
10324 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10328 hppa*64*)
10329 shrext_cmds='.sl'
10330 hardcode_into_libs=yes
10331 dynamic_linker="$host_os dld.sl"
10332 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10333 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335 soname_spec='${libname}${release}${shared_ext}$major'
10336 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10340 shrext_cmds='.sl'
10341 dynamic_linker="$host_os dld.sl"
10342 shlibpath_var=SHLIB_PATH
10343 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345 soname_spec='${libname}${release}${shared_ext}$major'
10347 esac
10348 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10349 postinstall_cmds='chmod 555 $lib'
10350 # or fails outright, so override atomically:
10351 install_override_mode=555
10354 interix[3-9]*)
10355 version_type=linux
10356 need_lib_prefix=no
10357 need_version=no
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10359 soname_spec='${libname}${release}${shared_ext}$major'
10360 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10361 shlibpath_var=LD_LIBRARY_PATH
10362 shlibpath_overrides_runpath=no
10363 hardcode_into_libs=yes
10366 irix5* | irix6* | nonstopux*)
10367 case $host_os in
10368 nonstopux*) version_type=nonstopux ;;
10370 if test "$lt_cv_prog_gnu_ld" = yes; then
10371 version_type=linux
10372 else
10373 version_type=irix
10374 fi ;;
10375 esac
10376 need_lib_prefix=no
10377 need_version=no
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10380 case $host_os in
10381 irix5* | nonstopux*)
10382 libsuff= shlibsuff=
10385 case $LD in # libtool.m4 will add one of these switches to LD
10386 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10387 libsuff= shlibsuff= libmagic=32-bit;;
10388 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10389 libsuff=32 shlibsuff=N32 libmagic=N32;;
10390 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10391 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10392 *) libsuff= shlibsuff= libmagic=never-match;;
10393 esac
10395 esac
10396 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10397 shlibpath_overrides_runpath=no
10398 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10399 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10400 hardcode_into_libs=yes
10403 # No shared lib support for Linux oldld, aout, or coff.
10404 linux*oldld* | linux*aout* | linux*coff*)
10405 dynamic_linker=no
10408 # This must be Linux ELF.
10409 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10410 version_type=linux
10411 need_lib_prefix=no
10412 need_version=no
10413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10414 soname_spec='${libname}${release}${shared_ext}$major'
10415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10416 shlibpath_var=LD_LIBRARY_PATH
10417 shlibpath_overrides_runpath=no
10419 # Some binutils ld are patched to set DT_RUNPATH
10420 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10421 $as_echo_n "(cached) " >&6
10422 else
10423 lt_cv_shlibpath_overrides_runpath=no
10424 save_LDFLAGS=$LDFLAGS
10425 save_libdir=$libdir
10426 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10427 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10432 main ()
10436 return 0;
10438 _ACEOF
10439 if ac_fn_c_try_link "$LINENO"; then :
10440 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10441 lt_cv_shlibpath_overrides_runpath=yes
10444 rm -f core conftest.err conftest.$ac_objext \
10445 conftest$ac_exeext conftest.$ac_ext
10446 LDFLAGS=$save_LDFLAGS
10447 libdir=$save_libdir
10451 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10453 # This implies no fast_install, which is unacceptable.
10454 # Some rework will be needed to allow for fast_install
10455 # before this can be enabled.
10456 hardcode_into_libs=yes
10458 # Append ld.so.conf contents to the search path
10459 if test -f /etc/ld.so.conf; then
10460 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10461 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10464 # We used to test for /lib/ld.so.1 and disable shared libraries on
10465 # powerpc, because MkLinux only supported shared libraries with the
10466 # GNU dynamic linker. Since this was broken with cross compilers,
10467 # most powerpc-linux boxes support dynamic linking these days and
10468 # people can always --disable-shared, the test was removed, and we
10469 # assume the GNU/Linux dynamic linker is in use.
10470 dynamic_linker='GNU/Linux ld.so'
10473 netbsd*)
10474 version_type=sunos
10475 need_lib_prefix=no
10476 need_version=no
10477 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10480 dynamic_linker='NetBSD (a.out) ld.so'
10481 else
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10483 soname_spec='${libname}${release}${shared_ext}$major'
10484 dynamic_linker='NetBSD ld.elf_so'
10486 shlibpath_var=LD_LIBRARY_PATH
10487 shlibpath_overrides_runpath=yes
10488 hardcode_into_libs=yes
10491 newsos6)
10492 version_type=linux
10493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10494 shlibpath_var=LD_LIBRARY_PATH
10495 shlibpath_overrides_runpath=yes
10498 *nto* | *qnx*)
10499 version_type=qnx
10500 need_lib_prefix=no
10501 need_version=no
10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503 soname_spec='${libname}${release}${shared_ext}$major'
10504 shlibpath_var=LD_LIBRARY_PATH
10505 shlibpath_overrides_runpath=no
10506 hardcode_into_libs=yes
10507 dynamic_linker='ldqnx.so'
10510 openbsd*)
10511 version_type=sunos
10512 sys_lib_dlsearch_path_spec="/usr/lib"
10513 need_lib_prefix=no
10514 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10515 case $host_os in
10516 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10517 *) need_version=no ;;
10518 esac
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10521 shlibpath_var=LD_LIBRARY_PATH
10522 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10523 case $host_os in
10524 openbsd2.[89] | openbsd2.[89].*)
10525 shlibpath_overrides_runpath=no
10528 shlibpath_overrides_runpath=yes
10530 esac
10531 else
10532 shlibpath_overrides_runpath=yes
10536 os2*)
10537 libname_spec='$name'
10538 shrext_cmds=".dll"
10539 need_lib_prefix=no
10540 library_names_spec='$libname${shared_ext} $libname.a'
10541 dynamic_linker='OS/2 ld.exe'
10542 shlibpath_var=LIBPATH
10545 osf3* | osf4* | osf5*)
10546 version_type=osf
10547 need_lib_prefix=no
10548 need_version=no
10549 soname_spec='${libname}${release}${shared_ext}$major'
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 shlibpath_var=LD_LIBRARY_PATH
10552 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10553 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10556 rdos*)
10557 dynamic_linker=no
10560 solaris*)
10561 version_type=linux
10562 need_lib_prefix=no
10563 need_version=no
10564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565 soname_spec='${libname}${release}${shared_ext}$major'
10566 shlibpath_var=LD_LIBRARY_PATH
10567 shlibpath_overrides_runpath=yes
10568 hardcode_into_libs=yes
10569 # ldd complains unless libraries are executable
10570 postinstall_cmds='chmod +x $lib'
10573 sunos4*)
10574 version_type=sunos
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10576 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10577 shlibpath_var=LD_LIBRARY_PATH
10578 shlibpath_overrides_runpath=yes
10579 if test "$with_gnu_ld" = yes; then
10580 need_lib_prefix=no
10582 need_version=yes
10585 sysv4 | sysv4.3*)
10586 version_type=linux
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588 soname_spec='${libname}${release}${shared_ext}$major'
10589 shlibpath_var=LD_LIBRARY_PATH
10590 case $host_vendor in
10591 sni)
10592 shlibpath_overrides_runpath=no
10593 need_lib_prefix=no
10594 runpath_var=LD_RUN_PATH
10596 siemens)
10597 need_lib_prefix=no
10599 motorola)
10600 need_lib_prefix=no
10601 need_version=no
10602 shlibpath_overrides_runpath=no
10603 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10605 esac
10608 sysv4*MP*)
10609 if test -d /usr/nec ;then
10610 version_type=linux
10611 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10612 soname_spec='$libname${shared_ext}.$major'
10613 shlibpath_var=LD_LIBRARY_PATH
10617 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10618 version_type=freebsd-elf
10619 need_lib_prefix=no
10620 need_version=no
10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10622 soname_spec='${libname}${release}${shared_ext}$major'
10623 shlibpath_var=LD_LIBRARY_PATH
10624 shlibpath_overrides_runpath=yes
10625 hardcode_into_libs=yes
10626 if test "$with_gnu_ld" = yes; then
10627 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10628 else
10629 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10630 case $host_os in
10631 sco3.2v5*)
10632 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10634 esac
10636 sys_lib_dlsearch_path_spec='/usr/lib'
10639 tpf*)
10640 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10641 version_type=linux
10642 need_lib_prefix=no
10643 need_version=no
10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645 shlibpath_var=LD_LIBRARY_PATH
10646 shlibpath_overrides_runpath=no
10647 hardcode_into_libs=yes
10650 uts4*)
10651 version_type=linux
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10653 soname_spec='${libname}${release}${shared_ext}$major'
10654 shlibpath_var=LD_LIBRARY_PATH
10658 dynamic_linker=no
10660 esac
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10662 $as_echo "$dynamic_linker" >&6; }
10663 test "$dynamic_linker" = no && can_build_shared=no
10665 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10666 if test "$GCC" = yes; then
10667 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10670 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10671 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10673 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10674 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10769 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10770 hardcode_action=
10771 if test -n "$hardcode_libdir_flag_spec" ||
10772 test -n "$runpath_var" ||
10773 test "X$hardcode_automatic" = "Xyes" ; then
10775 # We can hardcode non-existent directories.
10776 if test "$hardcode_direct" != no &&
10777 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10778 # have to relink, otherwise we might link with an installed library
10779 # when we should be linking with a yet-to-be-installed one
10780 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10781 test "$hardcode_minus_L" != no; then
10782 # Linking always hardcodes the temporary library directory.
10783 hardcode_action=relink
10784 else
10785 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10786 hardcode_action=immediate
10788 else
10789 # We cannot hardcode anything, or else we can only hardcode existing
10790 # directories.
10791 hardcode_action=unsupported
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10794 $as_echo "$hardcode_action" >&6; }
10796 if test "$hardcode_action" = relink ||
10797 test "$inherit_rpath" = yes; then
10798 # Fast installation is not supported
10799 enable_fast_install=no
10800 elif test "$shlibpath_overrides_runpath" = yes ||
10801 test "$enable_shared" = no; then
10802 # Fast installation is not necessary
10803 enable_fast_install=needless
10811 if test "x$enable_dlopen" != xyes; then
10812 enable_dlopen=unknown
10813 enable_dlopen_self=unknown
10814 enable_dlopen_self_static=unknown
10815 else
10816 lt_cv_dlopen=no
10817 lt_cv_dlopen_libs=
10819 case $host_os in
10820 beos*)
10821 lt_cv_dlopen="load_add_on"
10822 lt_cv_dlopen_libs=
10823 lt_cv_dlopen_self=yes
10826 mingw* | pw32* | cegcc*)
10827 lt_cv_dlopen="LoadLibrary"
10828 lt_cv_dlopen_libs=
10831 cygwin*)
10832 lt_cv_dlopen="dlopen"
10833 lt_cv_dlopen_libs=
10836 darwin*)
10837 # if libdl is installed we need to link against it
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10839 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10840 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10841 $as_echo_n "(cached) " >&6
10842 else
10843 ac_check_lib_save_LIBS=$LIBS
10844 LIBS="-ldl $LIBS"
10845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10846 /* end confdefs.h. */
10848 /* Override any GCC internal prototype to avoid an error.
10849 Use char because int might match the return type of a GCC
10850 builtin and then its argument prototype would still apply. */
10851 #ifdef __cplusplus
10852 extern "C"
10853 #endif
10854 char dlopen ();
10856 main ()
10858 return dlopen ();
10860 return 0;
10862 _ACEOF
10863 if ac_fn_c_try_link "$LINENO"; then :
10864 ac_cv_lib_dl_dlopen=yes
10865 else
10866 ac_cv_lib_dl_dlopen=no
10868 rm -f core conftest.err conftest.$ac_objext \
10869 conftest$ac_exeext conftest.$ac_ext
10870 LIBS=$ac_check_lib_save_LIBS
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10873 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10874 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10875 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10876 else
10878 lt_cv_dlopen="dyld"
10879 lt_cv_dlopen_libs=
10880 lt_cv_dlopen_self=yes
10887 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10888 if test "x$ac_cv_func_shl_load" = x""yes; then :
10889 lt_cv_dlopen="shl_load"
10890 else
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10892 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10893 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10894 $as_echo_n "(cached) " >&6
10895 else
10896 ac_check_lib_save_LIBS=$LIBS
10897 LIBS="-ldld $LIBS"
10898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h. */
10901 /* Override any GCC internal prototype to avoid an error.
10902 Use char because int might match the return type of a GCC
10903 builtin and then its argument prototype would still apply. */
10904 #ifdef __cplusplus
10905 extern "C"
10906 #endif
10907 char shl_load ();
10909 main ()
10911 return shl_load ();
10913 return 0;
10915 _ACEOF
10916 if ac_fn_c_try_link "$LINENO"; then :
10917 ac_cv_lib_dld_shl_load=yes
10918 else
10919 ac_cv_lib_dld_shl_load=no
10921 rm -f core conftest.err conftest.$ac_objext \
10922 conftest$ac_exeext conftest.$ac_ext
10923 LIBS=$ac_check_lib_save_LIBS
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10926 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10927 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10928 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10929 else
10930 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10931 if test "x$ac_cv_func_dlopen" = x""yes; then :
10932 lt_cv_dlopen="dlopen"
10933 else
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10935 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10936 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 ac_check_lib_save_LIBS=$LIBS
10940 LIBS="-ldl $LIBS"
10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h. */
10944 /* Override any GCC internal prototype to avoid an error.
10945 Use char because int might match the return type of a GCC
10946 builtin and then its argument prototype would still apply. */
10947 #ifdef __cplusplus
10948 extern "C"
10949 #endif
10950 char dlopen ();
10952 main ()
10954 return dlopen ();
10956 return 0;
10958 _ACEOF
10959 if ac_fn_c_try_link "$LINENO"; then :
10960 ac_cv_lib_dl_dlopen=yes
10961 else
10962 ac_cv_lib_dl_dlopen=no
10964 rm -f core conftest.err conftest.$ac_objext \
10965 conftest$ac_exeext conftest.$ac_ext
10966 LIBS=$ac_check_lib_save_LIBS
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10969 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10970 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10971 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10972 else
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10974 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10975 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10976 $as_echo_n "(cached) " >&6
10977 else
10978 ac_check_lib_save_LIBS=$LIBS
10979 LIBS="-lsvld $LIBS"
10980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h. */
10983 /* Override any GCC internal prototype to avoid an error.
10984 Use char because int might match the return type of a GCC
10985 builtin and then its argument prototype would still apply. */
10986 #ifdef __cplusplus
10987 extern "C"
10988 #endif
10989 char dlopen ();
10991 main ()
10993 return dlopen ();
10995 return 0;
10997 _ACEOF
10998 if ac_fn_c_try_link "$LINENO"; then :
10999 ac_cv_lib_svld_dlopen=yes
11000 else
11001 ac_cv_lib_svld_dlopen=no
11003 rm -f core conftest.err conftest.$ac_objext \
11004 conftest$ac_exeext conftest.$ac_ext
11005 LIBS=$ac_check_lib_save_LIBS
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11008 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11009 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11010 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11011 else
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11013 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11014 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11015 $as_echo_n "(cached) " >&6
11016 else
11017 ac_check_lib_save_LIBS=$LIBS
11018 LIBS="-ldld $LIBS"
11019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11020 /* end confdefs.h. */
11022 /* Override any GCC internal prototype to avoid an error.
11023 Use char because int might match the return type of a GCC
11024 builtin and then its argument prototype would still apply. */
11025 #ifdef __cplusplus
11026 extern "C"
11027 #endif
11028 char dld_link ();
11030 main ()
11032 return dld_link ();
11034 return 0;
11036 _ACEOF
11037 if ac_fn_c_try_link "$LINENO"; then :
11038 ac_cv_lib_dld_dld_link=yes
11039 else
11040 ac_cv_lib_dld_dld_link=no
11042 rm -f core conftest.err conftest.$ac_objext \
11043 conftest$ac_exeext conftest.$ac_ext
11044 LIBS=$ac_check_lib_save_LIBS
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11047 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11048 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11049 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11068 esac
11070 if test "x$lt_cv_dlopen" != xno; then
11071 enable_dlopen=yes
11072 else
11073 enable_dlopen=no
11076 case $lt_cv_dlopen in
11077 dlopen)
11078 save_CPPFLAGS="$CPPFLAGS"
11079 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11081 save_LDFLAGS="$LDFLAGS"
11082 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11084 save_LIBS="$LIBS"
11085 LIBS="$lt_cv_dlopen_libs $LIBS"
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11088 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11089 if test "${lt_cv_dlopen_self+set}" = set; then :
11090 $as_echo_n "(cached) " >&6
11091 else
11092 if test "$cross_compiling" = yes; then :
11093 lt_cv_dlopen_self=cross
11094 else
11095 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11096 lt_status=$lt_dlunknown
11097 cat > conftest.$ac_ext <<_LT_EOF
11098 #line 11098 "configure"
11099 #include "confdefs.h"
11101 #if HAVE_DLFCN_H
11102 #include <dlfcn.h>
11103 #endif
11105 #include <stdio.h>
11107 #ifdef RTLD_GLOBAL
11108 # define LT_DLGLOBAL RTLD_GLOBAL
11109 #else
11110 # ifdef DL_GLOBAL
11111 # define LT_DLGLOBAL DL_GLOBAL
11112 # else
11113 # define LT_DLGLOBAL 0
11114 # endif
11115 #endif
11117 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11118 find out it does not work in some platform. */
11119 #ifndef LT_DLLAZY_OR_NOW
11120 # ifdef RTLD_LAZY
11121 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11122 # else
11123 # ifdef DL_LAZY
11124 # define LT_DLLAZY_OR_NOW DL_LAZY
11125 # else
11126 # ifdef RTLD_NOW
11127 # define LT_DLLAZY_OR_NOW RTLD_NOW
11128 # else
11129 # ifdef DL_NOW
11130 # define LT_DLLAZY_OR_NOW DL_NOW
11131 # else
11132 # define LT_DLLAZY_OR_NOW 0
11133 # endif
11134 # endif
11135 # endif
11136 # endif
11137 #endif
11139 /* When -fvisbility=hidden is used, assume the code has been annotated
11140 correspondingly for the symbols needed. */
11141 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11142 void fnord () __attribute__((visibility("default")));
11143 #endif
11145 void fnord () { int i=42; }
11146 int main ()
11148 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11149 int status = $lt_dlunknown;
11151 if (self)
11153 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11154 else
11156 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11157 else puts (dlerror ());
11159 /* dlclose (self); */
11161 else
11162 puts (dlerror ());
11164 return status;
11166 _LT_EOF
11167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11168 (eval $ac_link) 2>&5
11169 ac_status=$?
11170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11171 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11172 (./conftest; exit; ) >&5 2>/dev/null
11173 lt_status=$?
11174 case x$lt_status in
11175 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11176 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11177 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11178 esac
11179 else :
11180 # compilation failed
11181 lt_cv_dlopen_self=no
11184 rm -fr conftest*
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11189 $as_echo "$lt_cv_dlopen_self" >&6; }
11191 if test "x$lt_cv_dlopen_self" = xyes; then
11192 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11194 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11195 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11196 $as_echo_n "(cached) " >&6
11197 else
11198 if test "$cross_compiling" = yes; then :
11199 lt_cv_dlopen_self_static=cross
11200 else
11201 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11202 lt_status=$lt_dlunknown
11203 cat > conftest.$ac_ext <<_LT_EOF
11204 #line 11204 "configure"
11205 #include "confdefs.h"
11207 #if HAVE_DLFCN_H
11208 #include <dlfcn.h>
11209 #endif
11211 #include <stdio.h>
11213 #ifdef RTLD_GLOBAL
11214 # define LT_DLGLOBAL RTLD_GLOBAL
11215 #else
11216 # ifdef DL_GLOBAL
11217 # define LT_DLGLOBAL DL_GLOBAL
11218 # else
11219 # define LT_DLGLOBAL 0
11220 # endif
11221 #endif
11223 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11224 find out it does not work in some platform. */
11225 #ifndef LT_DLLAZY_OR_NOW
11226 # ifdef RTLD_LAZY
11227 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11228 # else
11229 # ifdef DL_LAZY
11230 # define LT_DLLAZY_OR_NOW DL_LAZY
11231 # else
11232 # ifdef RTLD_NOW
11233 # define LT_DLLAZY_OR_NOW RTLD_NOW
11234 # else
11235 # ifdef DL_NOW
11236 # define LT_DLLAZY_OR_NOW DL_NOW
11237 # else
11238 # define LT_DLLAZY_OR_NOW 0
11239 # endif
11240 # endif
11241 # endif
11242 # endif
11243 #endif
11245 /* When -fvisbility=hidden is used, assume the code has been annotated
11246 correspondingly for the symbols needed. */
11247 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11248 void fnord () __attribute__((visibility("default")));
11249 #endif
11251 void fnord () { int i=42; }
11252 int main ()
11254 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11255 int status = $lt_dlunknown;
11257 if (self)
11259 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11260 else
11262 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11263 else puts (dlerror ());
11265 /* dlclose (self); */
11267 else
11268 puts (dlerror ());
11270 return status;
11272 _LT_EOF
11273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11274 (eval $ac_link) 2>&5
11275 ac_status=$?
11276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11277 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11278 (./conftest; exit; ) >&5 2>/dev/null
11279 lt_status=$?
11280 case x$lt_status in
11281 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11282 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11283 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11284 esac
11285 else :
11286 # compilation failed
11287 lt_cv_dlopen_self_static=no
11290 rm -fr conftest*
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11295 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11298 CPPFLAGS="$save_CPPFLAGS"
11299 LDFLAGS="$save_LDFLAGS"
11300 LIBS="$save_LIBS"
11302 esac
11304 case $lt_cv_dlopen_self in
11305 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11306 *) enable_dlopen_self=unknown ;;
11307 esac
11309 case $lt_cv_dlopen_self_static in
11310 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11311 *) enable_dlopen_self_static=unknown ;;
11312 esac
11331 striplib=
11332 old_striplib=
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11334 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11335 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11336 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11337 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11339 $as_echo "yes" >&6; }
11340 else
11341 # FIXME - insert some real tests, host_os isn't really good enough
11342 case $host_os in
11343 darwin*)
11344 if test -n "$STRIP" ; then
11345 striplib="$STRIP -x"
11346 old_striplib="$STRIP -S"
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11348 $as_echo "yes" >&6; }
11349 else
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351 $as_echo "no" >&6; }
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356 $as_echo "no" >&6; }
11358 esac
11372 # Report which library types will actually be built
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11374 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11376 $as_echo "$can_build_shared" >&6; }
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11379 $as_echo_n "checking whether to build shared libraries... " >&6; }
11380 test "$can_build_shared" = "no" && enable_shared=no
11382 # On AIX, shared libraries and static libraries use the same namespace, and
11383 # are all built from PIC.
11384 case $host_os in
11385 aix3*)
11386 test "$enable_shared" = yes && enable_static=no
11387 if test -n "$RANLIB"; then
11388 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11389 postinstall_cmds='$RANLIB $lib'
11393 aix[4-9]*)
11394 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11395 test "$enable_shared" = yes && enable_static=no
11398 esac
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11400 $as_echo "$enable_shared" >&6; }
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11403 $as_echo_n "checking whether to build static libraries... " >&6; }
11404 # Make sure either enable_shared or enable_static is yes.
11405 test "$enable_shared" = yes || enable_static=yes
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11407 $as_echo "$enable_static" >&6; }
11413 ac_ext=c
11414 ac_cpp='$CPP $CPPFLAGS'
11415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11419 CC="$lt_save_CC"
11433 ac_config_commands="$ac_config_commands libtool"
11438 # Only expand once:
11444 case $host in
11445 *-cygwin* | *-mingw*)
11446 # 'host' will be top-level target in the case of a target lib,
11447 # we must compare to with_cross_host to decide if this is a native
11448 # or cross-compiler and select where to install dlls appropriately.
11449 if test -n "$with_cross_host" &&
11450 test x"$with_cross_host" != x"no"; then
11451 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11452 else
11453 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11457 lt_host_flags=
11459 esac
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11468 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11469 # Check whether --enable-maintainer-mode was given.
11470 if test "${enable_maintainer_mode+set}" = set; then :
11471 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11472 else
11473 USE_MAINTAINER_MODE=no
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11477 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11478 if test $USE_MAINTAINER_MODE = yes; then
11479 MAINTAINER_MODE_TRUE=
11480 MAINTAINER_MODE_FALSE='#'
11481 else
11482 MAINTAINER_MODE_TRUE='#'
11483 MAINTAINER_MODE_FALSE=
11486 MAINT=$MAINTAINER_MODE_TRUE
11490 # Create a spec file, so that compile/link tests don't fail
11491 test -f libgfortran.spec || touch libgfortran.spec
11492 FCFLAGS="$FCFLAGS -L."
11494 # We need gfortran to compile parts of the library
11495 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11496 #AC_PROG_FC(gfortran)
11497 case `echo $GFORTRAN` in
11498 -* | no* )
11499 FC=no ;;
11501 set dummy $GFORTRAN; ac_word=$2
11502 if test -x "$ac_word"; then
11503 FC="$GFORTRAN"
11504 else
11505 FC=no
11506 fi ;;
11507 esac
11508 ac_ext=${ac_fc_srcext-f}
11509 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11510 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11511 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11512 if test -n "$ac_tool_prefix"; then
11513 for ac_prog in gfortran
11515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11518 $as_echo_n "checking for $ac_word... " >&6; }
11519 if test "${ac_cv_prog_FC+set}" = set; then :
11520 $as_echo_n "(cached) " >&6
11521 else
11522 if test -n "$FC"; then
11523 ac_cv_prog_FC="$FC" # Let the user override the test.
11524 else
11525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526 for as_dir in $PATH
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11532 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 break 2
11536 done
11537 done
11538 IFS=$as_save_IFS
11542 FC=$ac_cv_prog_FC
11543 if test -n "$FC"; then
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11545 $as_echo "$FC" >&6; }
11546 else
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548 $as_echo "no" >&6; }
11552 test -n "$FC" && break
11553 done
11555 if test -z "$FC"; then
11556 ac_ct_FC=$FC
11557 for ac_prog in gfortran
11559 # Extract the first word of "$ac_prog", so it can be a program name with args.
11560 set dummy $ac_prog; ac_word=$2
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11562 $as_echo_n "checking for $ac_word... " >&6; }
11563 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11564 $as_echo_n "(cached) " >&6
11565 else
11566 if test -n "$ac_ct_FC"; then
11567 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11568 else
11569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11570 for as_dir in $PATH
11572 IFS=$as_save_IFS
11573 test -z "$as_dir" && as_dir=.
11574 for ac_exec_ext in '' $ac_executable_extensions; do
11575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11576 ac_cv_prog_ac_ct_FC="$ac_prog"
11577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11578 break 2
11580 done
11581 done
11582 IFS=$as_save_IFS
11586 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11587 if test -n "$ac_ct_FC"; then
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11589 $as_echo "$ac_ct_FC" >&6; }
11590 else
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592 $as_echo "no" >&6; }
11596 test -n "$ac_ct_FC" && break
11597 done
11599 if test "x$ac_ct_FC" = x; then
11600 FC=""
11601 else
11602 case $cross_compiling:$ac_tool_warned in
11603 yes:)
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11606 ac_tool_warned=yes ;;
11607 esac
11608 FC=$ac_ct_FC
11613 # Provide some information about the compiler.
11614 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11615 set X $ac_compile
11616 ac_compiler=$2
11617 for ac_option in --version -v -V -qversion; do
11618 { { ac_try="$ac_compiler $ac_option >&5"
11619 case "(($ac_try" in
11620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621 *) ac_try_echo=$ac_try;;
11622 esac
11623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11624 $as_echo "$ac_try_echo"; } >&5
11625 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11626 ac_status=$?
11627 if test -s conftest.err; then
11628 sed '10a\
11629 ... rest of stderr output deleted ...
11630 10q' conftest.err >conftest.er1
11631 cat conftest.er1 >&5
11632 rm -f conftest.er1 conftest.err
11634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11635 test $ac_status = 0; }
11636 done
11637 rm -f a.out
11639 # If we don't use `.F' as extension, the preprocessor is not run on the
11640 # input file. (Note that this only needs to work for GNU compilers.)
11641 ac_save_ext=$ac_ext
11642 ac_ext=F
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11644 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11645 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11646 $as_echo_n "(cached) " >&6
11647 else
11648 cat > conftest.$ac_ext <<_ACEOF
11649 program main
11650 #ifndef __GNUC__
11651 choke me
11652 #endif
11655 _ACEOF
11656 if ac_fn_fc_try_compile "$LINENO"; then :
11657 ac_compiler_gnu=yes
11658 else
11659 ac_compiler_gnu=no
11661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11662 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11666 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11667 ac_ext=$ac_save_ext
11668 ac_test_FCFLAGS=${FCFLAGS+set}
11669 ac_save_FCFLAGS=$FCFLAGS
11670 FCFLAGS=
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11672 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11673 if test "${ac_cv_prog_fc_g+set}" = set; then :
11674 $as_echo_n "(cached) " >&6
11675 else
11676 FCFLAGS=-g
11677 cat > conftest.$ac_ext <<_ACEOF
11678 program main
11681 _ACEOF
11682 if ac_fn_fc_try_compile "$LINENO"; then :
11683 ac_cv_prog_fc_g=yes
11684 else
11685 ac_cv_prog_fc_g=no
11687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11691 $as_echo "$ac_cv_prog_fc_g" >&6; }
11692 if test "$ac_test_FCFLAGS" = set; then
11693 FCFLAGS=$ac_save_FCFLAGS
11694 elif test $ac_cv_prog_fc_g = yes; then
11695 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11696 FCFLAGS="-g -O2"
11697 else
11698 FCFLAGS="-g"
11700 else
11701 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11702 FCFLAGS="-O2"
11703 else
11704 FCFLAGS=
11708 ac_ext=c
11709 ac_cpp='$CPP $CPPFLAGS'
11710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11714 ac_ext=${ac_fc_srcext-f}
11715 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11716 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11717 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11720 if test -z "$FC" || test "X$FC" = "Xno"; then
11721 _lt_disable_FC=yes
11724 archive_cmds_need_lc_FC=no
11725 allow_undefined_flag_FC=
11726 always_export_symbols_FC=no
11727 archive_expsym_cmds_FC=
11728 export_dynamic_flag_spec_FC=
11729 hardcode_direct_FC=no
11730 hardcode_direct_absolute_FC=no
11731 hardcode_libdir_flag_spec_FC=
11732 hardcode_libdir_flag_spec_ld_FC=
11733 hardcode_libdir_separator_FC=
11734 hardcode_minus_L_FC=no
11735 hardcode_automatic_FC=no
11736 inherit_rpath_FC=no
11737 module_cmds_FC=
11738 module_expsym_cmds_FC=
11739 link_all_deplibs_FC=unknown
11740 old_archive_cmds_FC=$old_archive_cmds
11741 reload_flag_FC=$reload_flag
11742 reload_cmds_FC=$reload_cmds
11743 no_undefined_flag_FC=
11744 whole_archive_flag_spec_FC=
11745 enable_shared_with_static_runtimes_FC=no
11747 # Source file extension for fc test sources.
11748 ac_ext=${ac_fc_srcext-f}
11750 # Object file extension for compiled fc test sources.
11751 objext=o
11752 objext_FC=$objext
11754 # No sense in running all these tests if we already determined that
11755 # the FC compiler isn't working. Some variables (like enable_shared)
11756 # are currently assumed to apply to all compilers on this platform,
11757 # and will be corrupted by setting them based on a non-working compiler.
11758 if test "$_lt_disable_FC" != yes; then
11759 # Code to be used in simple compile tests
11760 lt_simple_compile_test_code="\
11761 subroutine t
11762 return
11766 # Code to be used in simple link tests
11767 lt_simple_link_test_code="\
11768 program t
11772 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11779 # If no C compiler was specified, use CC.
11780 LTCC=${LTCC-"$CC"}
11782 # If no C compiler flags were specified, use CFLAGS.
11783 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11785 # Allow CC to be a program name with arguments.
11786 compiler=$CC
11789 # save warnings/boilerplate of simple test code
11790 ac_outfile=conftest.$ac_objext
11791 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11792 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11793 _lt_compiler_boilerplate=`cat conftest.err`
11794 $RM conftest*
11796 ac_outfile=conftest.$ac_objext
11797 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11798 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11799 _lt_linker_boilerplate=`cat conftest.err`
11800 $RM -r conftest*
11803 # Allow CC to be a program name with arguments.
11804 lt_save_CC="$CC"
11805 lt_save_GCC=$GCC
11806 CC=${FC-"f95"}
11807 compiler=$CC
11808 GCC=$ac_cv_fc_compiler_gnu
11810 compiler_FC=$CC
11811 for cc_temp in $compiler""; do
11812 case $cc_temp in
11813 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11814 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11815 \-*) ;;
11816 *) break;;
11817 esac
11818 done
11819 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11822 if test -n "$compiler"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11824 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11826 $as_echo "$can_build_shared" >&6; }
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11829 $as_echo_n "checking whether to build shared libraries... " >&6; }
11830 test "$can_build_shared" = "no" && enable_shared=no
11832 # On AIX, shared libraries and static libraries use the same namespace, and
11833 # are all built from PIC.
11834 case $host_os in
11835 aix3*)
11836 test "$enable_shared" = yes && enable_static=no
11837 if test -n "$RANLIB"; then
11838 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11839 postinstall_cmds='$RANLIB $lib'
11842 aix[4-9]*)
11843 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11844 test "$enable_shared" = yes && enable_static=no
11847 esac
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11849 $as_echo "$enable_shared" >&6; }
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11852 $as_echo_n "checking whether to build static libraries... " >&6; }
11853 # Make sure either enable_shared or enable_static is yes.
11854 test "$enable_shared" = yes || enable_static=yes
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11856 $as_echo "$enable_static" >&6; }
11858 GCC_FC="$ac_cv_fc_compiler_gnu"
11859 LD_FC="$LD"
11861 ## CAVEAT EMPTOR:
11862 ## There is no encapsulation within the following macros, do not change
11863 ## the running order or otherwise move them around unless you know exactly
11864 ## what you are doing...
11865 # Dependencies to place before and after the object being linked:
11866 predep_objects_FC=
11867 postdep_objects_FC=
11868 predeps_FC=
11869 postdeps_FC=
11870 compiler_lib_search_path_FC=
11872 cat > conftest.$ac_ext <<_LT_EOF
11873 subroutine foo
11874 implicit none
11875 integer a
11877 return
11879 _LT_EOF
11881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11882 (eval $ac_compile) 2>&5
11883 ac_status=$?
11884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11885 test $ac_status = 0; }; then
11886 # Parse the compiler output and extract the necessary
11887 # objects, libraries and library flags.
11889 # Sentinel used to keep track of whether or not we are before
11890 # the conftest object file.
11891 pre_test_object_deps_done=no
11893 for p in `eval "$output_verbose_link_cmd"`; do
11894 case $p in
11896 -L* | -R* | -l*)
11897 # Some compilers place space between "-{L,R}" and the path.
11898 # Remove the space.
11899 if test $p = "-L" ||
11900 test $p = "-R"; then
11901 prev=$p
11902 continue
11903 else
11904 prev=
11907 if test "$pre_test_object_deps_done" = no; then
11908 case $p in
11909 -L* | -R*)
11910 # Internal compiler library paths should come after those
11911 # provided the user. The postdeps already come after the
11912 # user supplied libs so there is no need to process them.
11913 if test -z "$compiler_lib_search_path_FC"; then
11914 compiler_lib_search_path_FC="${prev}${p}"
11915 else
11916 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11919 # The "-l" case would never come before the object being
11920 # linked, so don't bother handling this case.
11921 esac
11922 else
11923 if test -z "$postdeps_FC"; then
11924 postdeps_FC="${prev}${p}"
11925 else
11926 postdeps_FC="${postdeps_FC} ${prev}${p}"
11931 *.$objext)
11932 # This assumes that the test object file only shows up
11933 # once in the compiler output.
11934 if test "$p" = "conftest.$objext"; then
11935 pre_test_object_deps_done=yes
11936 continue
11939 if test "$pre_test_object_deps_done" = no; then
11940 if test -z "$predep_objects_FC"; then
11941 predep_objects_FC="$p"
11942 else
11943 predep_objects_FC="$predep_objects_FC $p"
11945 else
11946 if test -z "$postdep_objects_FC"; then
11947 postdep_objects_FC="$p"
11948 else
11949 postdep_objects_FC="$postdep_objects_FC $p"
11954 *) ;; # Ignore the rest.
11956 esac
11957 done
11959 # Clean up.
11960 rm -f a.out a.exe
11961 else
11962 echo "libtool.m4: error: problem compiling FC test program"
11965 $RM -f confest.$objext
11967 # PORTME: override above test on systems where it is broken
11970 case " $postdeps_FC " in
11971 *" -lc "*) archive_cmds_need_lc_FC=no ;;
11972 esac
11973 compiler_lib_search_dirs_FC=
11974 if test -n "${compiler_lib_search_path_FC}"; then
11975 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12008 lt_prog_compiler_wl_FC=
12009 lt_prog_compiler_pic_FC=
12010 lt_prog_compiler_static_FC=
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12013 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12015 if test "$GCC" = yes; then
12016 lt_prog_compiler_wl_FC='-Wl,'
12017 lt_prog_compiler_static_FC='-static'
12019 case $host_os in
12020 aix*)
12021 # All AIX code is PIC.
12022 if test "$host_cpu" = ia64; then
12023 # AIX 5 now supports IA64 processor
12024 lt_prog_compiler_static_FC='-Bstatic'
12026 lt_prog_compiler_pic_FC='-fPIC'
12029 amigaos*)
12030 case $host_cpu in
12031 powerpc)
12032 # see comment about AmigaOS4 .so support
12033 lt_prog_compiler_pic_FC='-fPIC'
12035 m68k)
12036 # FIXME: we need at least 68020 code to build shared libraries, but
12037 # adding the `-m68020' flag to GCC prevents building anything better,
12038 # like `-m68040'.
12039 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12041 esac
12044 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12045 # PIC is the default for these OSes.
12048 mingw* | cygwin* | pw32* | os2* | cegcc*)
12049 # This hack is so that the source file can tell whether it is being
12050 # built for inclusion in a dll (and should export symbols for example).
12051 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12052 # (--disable-auto-import) libraries
12053 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12056 darwin* | rhapsody*)
12057 # PIC is the default on this platform
12058 # Common symbols not allowed in MH_DYLIB files
12059 lt_prog_compiler_pic_FC='-fno-common'
12062 haiku*)
12063 # PIC is the default for Haiku.
12064 # The "-static" flag exists, but is broken.
12065 lt_prog_compiler_static_FC=
12068 hpux*)
12069 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12070 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12071 # sets the default TLS model and affects inlining.
12072 case $host_cpu in
12073 hppa*64*)
12074 # +Z the default
12077 lt_prog_compiler_pic_FC='-fPIC'
12079 esac
12082 interix[3-9]*)
12083 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12084 # Instead, we relocate shared libraries at runtime.
12087 msdosdjgpp*)
12088 # Just because we use GCC doesn't mean we suddenly get shared libraries
12089 # on systems that don't support them.
12090 lt_prog_compiler_can_build_shared_FC=no
12091 enable_shared=no
12094 *nto* | *qnx*)
12095 # QNX uses GNU C++, but need to define -shared option too, otherwise
12096 # it will coredump.
12097 lt_prog_compiler_pic_FC='-fPIC -shared'
12100 sysv4*MP*)
12101 if test -d /usr/nec; then
12102 lt_prog_compiler_pic_FC=-Kconform_pic
12107 lt_prog_compiler_pic_FC='-fPIC'
12109 esac
12111 case $cc_basename in
12112 nvcc*) # Cuda Compiler Driver 2.2
12113 lt_prog_compiler_wl_FC='-Xlinker '
12114 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12116 esac
12117 else
12118 # PORTME Check for flag to pass linker flags through the system compiler.
12119 case $host_os in
12120 aix*)
12121 lt_prog_compiler_wl_FC='-Wl,'
12122 if test "$host_cpu" = ia64; then
12123 # AIX 5 now supports IA64 processor
12124 lt_prog_compiler_static_FC='-Bstatic'
12125 else
12126 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12130 mingw* | cygwin* | pw32* | os2* | cegcc*)
12131 # This hack is so that the source file can tell whether it is being
12132 # built for inclusion in a dll (and should export symbols for example).
12133 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12136 hpux9* | hpux10* | hpux11*)
12137 lt_prog_compiler_wl_FC='-Wl,'
12138 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12139 # not for PA HP-UX.
12140 case $host_cpu in
12141 hppa*64*|ia64*)
12142 # +Z the default
12145 lt_prog_compiler_pic_FC='+Z'
12147 esac
12148 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12149 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12152 irix5* | irix6* | nonstopux*)
12153 lt_prog_compiler_wl_FC='-Wl,'
12154 # PIC (with -KPIC) is the default.
12155 lt_prog_compiler_static_FC='-non_shared'
12158 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12159 case $cc_basename in
12160 # old Intel for x86_64 which still supported -KPIC.
12161 ecc*)
12162 lt_prog_compiler_wl_FC='-Wl,'
12163 lt_prog_compiler_pic_FC='-KPIC'
12164 lt_prog_compiler_static_FC='-static'
12166 # icc used to be incompatible with GCC.
12167 # ICC 10 doesn't accept -KPIC any more.
12168 icc* | ifort*)
12169 lt_prog_compiler_wl_FC='-Wl,'
12170 lt_prog_compiler_pic_FC='-fPIC'
12171 lt_prog_compiler_static_FC='-static'
12173 # Lahey Fortran 8.1.
12174 lf95*)
12175 lt_prog_compiler_wl_FC='-Wl,'
12176 lt_prog_compiler_pic_FC='--shared'
12177 lt_prog_compiler_static_FC='--static'
12179 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12180 # Portland Group compilers (*not* the Pentium gcc compiler,
12181 # which looks to be a dead project)
12182 lt_prog_compiler_wl_FC='-Wl,'
12183 lt_prog_compiler_pic_FC='-fpic'
12184 lt_prog_compiler_static_FC='-Bstatic'
12186 ccc*)
12187 lt_prog_compiler_wl_FC='-Wl,'
12188 # All Alpha code is PIC.
12189 lt_prog_compiler_static_FC='-non_shared'
12191 xl* | bgxl* | bgf* | mpixl*)
12192 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12193 lt_prog_compiler_wl_FC='-Wl,'
12194 lt_prog_compiler_pic_FC='-qpic'
12195 lt_prog_compiler_static_FC='-qstaticlink'
12198 case `$CC -V 2>&1 | sed 5q` in
12199 *Sun\ F* | *Sun*Fortran*)
12200 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12201 lt_prog_compiler_pic_FC='-KPIC'
12202 lt_prog_compiler_static_FC='-Bstatic'
12203 lt_prog_compiler_wl_FC=''
12205 *Sun\ C*)
12206 # Sun C 5.9
12207 lt_prog_compiler_pic_FC='-KPIC'
12208 lt_prog_compiler_static_FC='-Bstatic'
12209 lt_prog_compiler_wl_FC='-Wl,'
12211 esac
12213 esac
12216 newsos6)
12217 lt_prog_compiler_pic_FC='-KPIC'
12218 lt_prog_compiler_static_FC='-Bstatic'
12221 *nto* | *qnx*)
12222 # QNX uses GNU C++, but need to define -shared option too, otherwise
12223 # it will coredump.
12224 lt_prog_compiler_pic_FC='-fPIC -shared'
12227 osf3* | osf4* | osf5*)
12228 lt_prog_compiler_wl_FC='-Wl,'
12229 # All OSF/1 code is PIC.
12230 lt_prog_compiler_static_FC='-non_shared'
12233 rdos*)
12234 lt_prog_compiler_static_FC='-non_shared'
12237 solaris*)
12238 lt_prog_compiler_pic_FC='-KPIC'
12239 lt_prog_compiler_static_FC='-Bstatic'
12240 case $cc_basename in
12241 f77* | f90* | f95*)
12242 lt_prog_compiler_wl_FC='-Qoption ld ';;
12244 lt_prog_compiler_wl_FC='-Wl,';;
12245 esac
12248 sunos4*)
12249 lt_prog_compiler_wl_FC='-Qoption ld '
12250 lt_prog_compiler_pic_FC='-PIC'
12251 lt_prog_compiler_static_FC='-Bstatic'
12254 sysv4 | sysv4.2uw2* | sysv4.3*)
12255 lt_prog_compiler_wl_FC='-Wl,'
12256 lt_prog_compiler_pic_FC='-KPIC'
12257 lt_prog_compiler_static_FC='-Bstatic'
12260 sysv4*MP*)
12261 if test -d /usr/nec ;then
12262 lt_prog_compiler_pic_FC='-Kconform_pic'
12263 lt_prog_compiler_static_FC='-Bstatic'
12267 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12268 lt_prog_compiler_wl_FC='-Wl,'
12269 lt_prog_compiler_pic_FC='-KPIC'
12270 lt_prog_compiler_static_FC='-Bstatic'
12273 unicos*)
12274 lt_prog_compiler_wl_FC='-Wl,'
12275 lt_prog_compiler_can_build_shared_FC=no
12278 uts4*)
12279 lt_prog_compiler_pic_FC='-pic'
12280 lt_prog_compiler_static_FC='-Bstatic'
12284 lt_prog_compiler_can_build_shared_FC=no
12286 esac
12289 case $host_os in
12290 # For platforms which do not support PIC, -DPIC is meaningless:
12291 *djgpp*)
12292 lt_prog_compiler_pic_FC=
12295 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12297 esac
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12299 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12304 # Check to make sure the PIC flag actually works.
12306 if test -n "$lt_prog_compiler_pic_FC"; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12308 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12309 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12310 $as_echo_n "(cached) " >&6
12311 else
12312 lt_cv_prog_compiler_pic_works_FC=no
12313 ac_outfile=conftest.$ac_objext
12314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12315 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12316 # Insert the option either (1) after the last *FLAGS variable, or
12317 # (2) before a word containing "conftest.", or (3) at the end.
12318 # Note that $ac_compile itself does not contain backslashes and begins
12319 # with a dollar sign (not a hyphen), so the echo should work correctly.
12320 # The option is referenced via a variable to avoid confusing sed.
12321 lt_compile=`echo "$ac_compile" | $SED \
12322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12324 -e 's:$: $lt_compiler_flag:'`
12325 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12326 (eval "$lt_compile" 2>conftest.err)
12327 ac_status=$?
12328 cat conftest.err >&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 if (exit $ac_status) && test -s "$ac_outfile"; then
12331 # The compiler can only warn and ignore the option if not recognized
12332 # So say no if there are warnings other than the usual output.
12333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12335 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12336 lt_cv_prog_compiler_pic_works_FC=yes
12339 $RM conftest*
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12343 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12345 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12346 case $lt_prog_compiler_pic_FC in
12347 "" | " "*) ;;
12348 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12349 esac
12350 else
12351 lt_prog_compiler_pic_FC=
12352 lt_prog_compiler_can_build_shared_FC=no
12360 # Check to make sure the static flag actually works.
12362 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12364 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12365 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12368 lt_cv_prog_compiler_static_works_FC=no
12369 save_LDFLAGS="$LDFLAGS"
12370 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12371 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12372 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12373 # The linker can only warn and ignore the option if not recognized
12374 # So say no if there are warnings
12375 if test -s conftest.err; then
12376 # Append any errors to the config.log.
12377 cat conftest.err 1>&5
12378 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12379 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12380 if diff conftest.exp conftest.er2 >/dev/null; then
12381 lt_cv_prog_compiler_static_works_FC=yes
12383 else
12384 lt_cv_prog_compiler_static_works_FC=yes
12387 $RM -r conftest*
12388 LDFLAGS="$save_LDFLAGS"
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12392 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12394 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12396 else
12397 lt_prog_compiler_static_FC=
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12405 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 lt_cv_prog_compiler_c_o_FC=no
12409 $RM -r conftest 2>/dev/null
12410 mkdir conftest
12411 cd conftest
12412 mkdir out
12413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12415 lt_compiler_flag="-o out/conftest2.$ac_objext"
12416 # Insert the option either (1) after the last *FLAGS variable, or
12417 # (2) before a word containing "conftest.", or (3) at the end.
12418 # Note that $ac_compile itself does not contain backslashes and begins
12419 # with a dollar sign (not a hyphen), so the echo should work correctly.
12420 lt_compile=`echo "$ac_compile" | $SED \
12421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12423 -e 's:$: $lt_compiler_flag:'`
12424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12425 (eval "$lt_compile" 2>out/conftest.err)
12426 ac_status=$?
12427 cat out/conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12430 then
12431 # The compiler can only warn and ignore the option if not recognized
12432 # So say no if there are warnings
12433 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12436 lt_cv_prog_compiler_c_o_FC=yes
12439 chmod u+w . 2>&5
12440 $RM conftest*
12441 # SGI C++ compiler will create directory out/ii_files/ for
12442 # template instantiation
12443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12444 $RM out/* && rmdir out
12445 cd ..
12446 $RM -r conftest
12447 $RM conftest*
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12451 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12456 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12457 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 lt_cv_prog_compiler_c_o_FC=no
12461 $RM -r conftest 2>/dev/null
12462 mkdir conftest
12463 cd conftest
12464 mkdir out
12465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12467 lt_compiler_flag="-o out/conftest2.$ac_objext"
12468 # Insert the option either (1) after the last *FLAGS variable, or
12469 # (2) before a word containing "conftest.", or (3) at the end.
12470 # Note that $ac_compile itself does not contain backslashes and begins
12471 # with a dollar sign (not a hyphen), so the echo should work correctly.
12472 lt_compile=`echo "$ac_compile" | $SED \
12473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12475 -e 's:$: $lt_compiler_flag:'`
12476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12477 (eval "$lt_compile" 2>out/conftest.err)
12478 ac_status=$?
12479 cat out/conftest.err >&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12482 then
12483 # The compiler can only warn and ignore the option if not recognized
12484 # So say no if there are warnings
12485 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12486 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12487 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12488 lt_cv_prog_compiler_c_o_FC=yes
12491 chmod u+w . 2>&5
12492 $RM conftest*
12493 # SGI C++ compiler will create directory out/ii_files/ for
12494 # template instantiation
12495 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12496 $RM out/* && rmdir out
12497 cd ..
12498 $RM -r conftest
12499 $RM conftest*
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12503 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12508 hard_links="nottested"
12509 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12510 # do not overwrite the value of need_locks provided by the user
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12512 $as_echo_n "checking if we can lock with hard links... " >&6; }
12513 hard_links=yes
12514 $RM conftest*
12515 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12516 touch conftest.a
12517 ln conftest.a conftest.b 2>&5 || hard_links=no
12518 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12520 $as_echo "$hard_links" >&6; }
12521 if test "$hard_links" = no; then
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12523 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12524 need_locks=warn
12526 else
12527 need_locks=no
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12533 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12535 runpath_var=
12536 allow_undefined_flag_FC=
12537 always_export_symbols_FC=no
12538 archive_cmds_FC=
12539 archive_expsym_cmds_FC=
12540 compiler_needs_object_FC=no
12541 enable_shared_with_static_runtimes_FC=no
12542 export_dynamic_flag_spec_FC=
12543 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12544 hardcode_automatic_FC=no
12545 hardcode_direct_FC=no
12546 hardcode_direct_absolute_FC=no
12547 hardcode_libdir_flag_spec_FC=
12548 hardcode_libdir_flag_spec_ld_FC=
12549 hardcode_libdir_separator_FC=
12550 hardcode_minus_L_FC=no
12551 hardcode_shlibpath_var_FC=unsupported
12552 inherit_rpath_FC=no
12553 link_all_deplibs_FC=unknown
12554 module_cmds_FC=
12555 module_expsym_cmds_FC=
12556 old_archive_from_new_cmds_FC=
12557 old_archive_from_expsyms_cmds_FC=
12558 thread_safe_flag_spec_FC=
12559 whole_archive_flag_spec_FC=
12560 # include_expsyms should be a list of space-separated symbols to be *always*
12561 # included in the symbol list
12562 include_expsyms_FC=
12563 # exclude_expsyms can be an extended regexp of symbols to exclude
12564 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12565 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12566 # as well as any symbol that contains `d'.
12567 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12568 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12569 # platforms (ab)use it in PIC code, but their linkers get confused if
12570 # the symbol is explicitly referenced. Since portable code cannot
12571 # rely on this symbol name, it's probably fine to never include it in
12572 # preloaded symbol tables.
12573 # Exclude shared library initialization/finalization symbols.
12574 extract_expsyms_cmds=
12576 case $host_os in
12577 cygwin* | mingw* | pw32* | cegcc*)
12578 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12579 # When not using gcc, we currently assume that we are using
12580 # Microsoft Visual C++.
12581 if test "$GCC" != yes; then
12582 with_gnu_ld=no
12585 interix*)
12586 # we just hope/assume this is gcc and not c89 (= MSVC++)
12587 with_gnu_ld=yes
12589 openbsd*)
12590 with_gnu_ld=no
12592 esac
12594 ld_shlibs_FC=yes
12596 # On some targets, GNU ld is compatible enough with the native linker
12597 # that we're better off using the native interface for both.
12598 lt_use_gnu_ld_interface=no
12599 if test "$with_gnu_ld" = yes; then
12600 case $host_os in
12601 aix*)
12602 # The AIX port of GNU ld has always aspired to compatibility
12603 # with the native linker. However, as the warning in the GNU ld
12604 # block says, versions before 2.19.5* couldn't really create working
12605 # shared libraries, regardless of the interface used.
12606 case `$LD -v 2>&1` in
12607 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12608 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12609 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12611 lt_use_gnu_ld_interface=yes
12613 esac
12616 lt_use_gnu_ld_interface=yes
12618 esac
12621 if test "$lt_use_gnu_ld_interface" = yes; then
12622 # If archive_cmds runs LD, not CC, wlarc should be empty
12623 wlarc='${wl}'
12625 # Set some defaults for GNU ld with shared library support. These
12626 # are reset later if shared libraries are not supported. Putting them
12627 # here allows them to be overridden if necessary.
12628 runpath_var=LD_RUN_PATH
12629 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12630 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12631 # ancient GNU ld didn't support --whole-archive et. al.
12632 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12633 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12634 else
12635 whole_archive_flag_spec_FC=
12637 supports_anon_versioning=no
12638 case `$LD -v 2>&1` in
12639 *GNU\ gold*) supports_anon_versioning=yes ;;
12640 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12641 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12642 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12643 *\ 2.11.*) ;; # other 2.11 versions
12644 *) supports_anon_versioning=yes ;;
12645 esac
12647 # See if GNU ld supports shared libraries.
12648 case $host_os in
12649 aix[3-9]*)
12650 # On AIX/PPC, the GNU linker is very broken
12651 if test "$host_cpu" != ia64; then
12652 ld_shlibs_FC=no
12653 cat <<_LT_EOF 1>&2
12655 *** Warning: the GNU linker, at least up to release 2.19, is reported
12656 *** to be unable to reliably create shared libraries on AIX.
12657 *** Therefore, libtool is disabling shared libraries support. If you
12658 *** really care for shared libraries, you may want to install binutils
12659 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12660 *** You will then need to restart the configuration process.
12662 _LT_EOF
12666 amigaos*)
12667 case $host_cpu in
12668 powerpc)
12669 # see comment about AmigaOS4 .so support
12670 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12671 archive_expsym_cmds_FC=''
12673 m68k)
12674 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)'
12675 hardcode_libdir_flag_spec_FC='-L$libdir'
12676 hardcode_minus_L_FC=yes
12678 esac
12681 beos*)
12682 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12683 allow_undefined_flag_FC=unsupported
12684 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12685 # support --undefined. This deserves some investigation. FIXME
12686 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12687 else
12688 ld_shlibs_FC=no
12692 cygwin* | mingw* | pw32* | cegcc*)
12693 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12694 # as there is no search path for DLLs.
12695 hardcode_libdir_flag_spec_FC='-L$libdir'
12696 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12697 allow_undefined_flag_FC=unsupported
12698 always_export_symbols_FC=no
12699 enable_shared_with_static_runtimes_FC=yes
12700 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12702 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12703 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12704 # If the export-symbols file already is a .def file (1st line
12705 # is EXPORTS), use it as is; otherwise, prepend...
12706 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12707 cp $export_symbols $output_objdir/$soname.def;
12708 else
12709 echo EXPORTS > $output_objdir/$soname.def;
12710 cat $export_symbols >> $output_objdir/$soname.def;
12712 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12713 else
12714 ld_shlibs_FC=no
12718 haiku*)
12719 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12720 link_all_deplibs_FC=yes
12723 interix[3-9]*)
12724 hardcode_direct_FC=no
12725 hardcode_shlibpath_var_FC=no
12726 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12727 export_dynamic_flag_spec_FC='${wl}-E'
12728 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12729 # Instead, shared libraries are loaded at an image base (0x10000000 by
12730 # default) and relocated if they conflict, which is a slow very memory
12731 # consuming and fragmenting process. To avoid this, we pick a random,
12732 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12733 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12734 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'
12735 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'
12738 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12739 tmp_diet=no
12740 if test "$host_os" = linux-dietlibc; then
12741 case $cc_basename in
12742 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12743 esac
12745 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12746 && test "$tmp_diet" = no
12747 then
12748 tmp_addflag=
12749 tmp_sharedflag='-shared'
12750 case $cc_basename,$host_cpu in
12751 pgcc*) # Portland Group C compiler
12752 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12753 tmp_addflag=' $pic_flag'
12755 pgf77* | pgf90* | pgf95* | pgfortran*)
12756 # Portland Group f77 and f90 compilers
12757 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12758 tmp_addflag=' $pic_flag -Mnomain' ;;
12759 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12760 tmp_addflag=' -i_dynamic' ;;
12761 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12762 tmp_addflag=' -i_dynamic -nofor_main' ;;
12763 ifc* | ifort*) # Intel Fortran compiler
12764 tmp_addflag=' -nofor_main' ;;
12765 lf95*) # Lahey Fortran 8.1
12766 whole_archive_flag_spec_FC=
12767 tmp_sharedflag='--shared' ;;
12768 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12769 tmp_sharedflag='-qmkshrobj'
12770 tmp_addflag= ;;
12771 nvcc*) # Cuda Compiler Driver 2.2
12772 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12773 compiler_needs_object_FC=yes
12775 esac
12776 case `$CC -V 2>&1 | sed 5q` in
12777 *Sun\ C*) # Sun C 5.9
12778 whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12779 compiler_needs_object_FC=yes
12780 tmp_sharedflag='-G' ;;
12781 *Sun\ F*) # Sun Fortran 8.3
12782 tmp_sharedflag='-G' ;;
12783 esac
12784 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12786 if test "x$supports_anon_versioning" = xyes; then
12787 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12788 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12789 echo "local: *; };" >> $output_objdir/$libname.ver~
12790 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12793 case $cc_basename in
12794 xlf* | bgf* | bgxlf* | mpixlf*)
12795 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12796 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12797 hardcode_libdir_flag_spec_FC=
12798 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12799 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12800 if test "x$supports_anon_versioning" = xyes; then
12801 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12802 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12803 echo "local: *; };" >> $output_objdir/$libname.ver~
12804 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12807 esac
12808 else
12809 ld_shlibs_FC=no
12813 netbsd*)
12814 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12815 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12816 wlarc=
12817 else
12818 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12819 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12823 solaris*)
12824 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12825 ld_shlibs_FC=no
12826 cat <<_LT_EOF 1>&2
12828 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12829 *** create shared libraries on Solaris systems. Therefore, libtool
12830 *** is disabling shared libraries support. We urge you to upgrade GNU
12831 *** binutils to release 2.9.1 or newer. Another option is to modify
12832 *** your PATH or compiler configuration so that the native linker is
12833 *** used, and then restart.
12835 _LT_EOF
12836 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12837 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12838 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12839 else
12840 ld_shlibs_FC=no
12844 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12845 case `$LD -v 2>&1` in
12846 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12847 ld_shlibs_FC=no
12848 cat <<_LT_EOF 1>&2
12850 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12851 *** reliably create shared libraries on SCO systems. Therefore, libtool
12852 *** is disabling shared libraries support. We urge you to upgrade GNU
12853 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12854 *** your PATH or compiler configuration so that the native linker is
12855 *** used, and then restart.
12857 _LT_EOF
12860 # For security reasons, it is highly recommended that you always
12861 # use absolute paths for naming shared libraries, and exclude the
12862 # DT_RUNPATH tag from executables and libraries. But doing so
12863 # requires that you compile everything twice, which is a pain.
12864 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12865 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12866 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12867 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12868 else
12869 ld_shlibs_FC=no
12872 esac
12875 sunos4*)
12876 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12877 wlarc=
12878 hardcode_direct_FC=yes
12879 hardcode_shlibpath_var_FC=no
12883 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12884 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12885 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12886 else
12887 ld_shlibs_FC=no
12890 esac
12892 if test "$ld_shlibs_FC" = no; then
12893 runpath_var=
12894 hardcode_libdir_flag_spec_FC=
12895 export_dynamic_flag_spec_FC=
12896 whole_archive_flag_spec_FC=
12898 else
12899 # PORTME fill in a description of your system's linker (not GNU ld)
12900 case $host_os in
12901 aix3*)
12902 allow_undefined_flag_FC=unsupported
12903 always_export_symbols_FC=yes
12904 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'
12905 # Note: this linker hardcodes the directories in LIBPATH if there
12906 # are no directories specified by -L.
12907 hardcode_minus_L_FC=yes
12908 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12909 # Neither direct hardcoding nor static linking is supported with a
12910 # broken collect2.
12911 hardcode_direct_FC=unsupported
12915 aix[4-9]*)
12916 if test "$host_cpu" = ia64; then
12917 # On IA64, the linker does run time linking by default, so we don't
12918 # have to do anything special.
12919 aix_use_runtimelinking=no
12920 exp_sym_flag='-Bexport'
12921 no_entry_flag=""
12922 else
12923 # If we're using GNU nm, then we don't want the "-C" option.
12924 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12925 # Also, AIX nm treats weak defined symbols like other global
12926 # defined symbols, whereas GNU nm marks them as "W".
12927 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12928 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12929 else
12930 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'
12932 aix_use_runtimelinking=no
12934 # Test if we are trying to use run time linking or normal
12935 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12936 # need to do runtime linking.
12937 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12938 for ld_flag in $LDFLAGS; do
12939 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12940 aix_use_runtimelinking=yes
12941 break
12943 done
12945 esac
12947 exp_sym_flag='-bexport'
12948 no_entry_flag='-bnoentry'
12951 # When large executables or shared objects are built, AIX ld can
12952 # have problems creating the table of contents. If linking a library
12953 # or program results in "error TOC overflow" add -mminimal-toc to
12954 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12955 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12957 archive_cmds_FC=''
12958 hardcode_direct_FC=yes
12959 hardcode_direct_absolute_FC=yes
12960 hardcode_libdir_separator_FC=':'
12961 link_all_deplibs_FC=yes
12962 file_list_spec_FC='${wl}-f,'
12964 if test "$GCC" = yes; then
12965 case $host_os in aix4.[012]|aix4.[012].*)
12966 # We only want to do this on AIX 4.2 and lower, the check
12967 # below for broken collect2 doesn't work under 4.3+
12968 collect2name=`${CC} -print-prog-name=collect2`
12969 if test -f "$collect2name" &&
12970 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12971 then
12972 # We have reworked collect2
12974 else
12975 # We have old collect2
12976 hardcode_direct_FC=unsupported
12977 # It fails to find uninstalled libraries when the uninstalled
12978 # path is not listed in the libpath. Setting hardcode_minus_L
12979 # to unsupported forces relinking
12980 hardcode_minus_L_FC=yes
12981 hardcode_libdir_flag_spec_FC='-L$libdir'
12982 hardcode_libdir_separator_FC=
12985 esac
12986 shared_flag='-shared'
12987 if test "$aix_use_runtimelinking" = yes; then
12988 shared_flag="$shared_flag "'${wl}-G'
12990 else
12991 # not using gcc
12992 if test "$host_cpu" = ia64; then
12993 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12994 # chokes on -Wl,-G. The following line is correct:
12995 shared_flag='-G'
12996 else
12997 if test "$aix_use_runtimelinking" = yes; then
12998 shared_flag='${wl}-G'
12999 else
13000 shared_flag='${wl}-bM:SRE'
13005 export_dynamic_flag_spec_FC='${wl}-bexpall'
13006 # It seems that -bexpall does not export symbols beginning with
13007 # underscore (_), so it is better to generate a list of symbols to export.
13008 always_export_symbols_FC=yes
13009 if test "$aix_use_runtimelinking" = yes; then
13010 # Warning - without using the other runtime loading flags (-brtl),
13011 # -berok will link without error, but may produce a broken library.
13012 allow_undefined_flag_FC='-berok'
13013 # Determine the default libpath from the value encoded in an
13014 # empty executable.
13015 cat > conftest.$ac_ext <<_ACEOF
13016 program main
13019 _ACEOF
13020 if ac_fn_fc_try_link "$LINENO"; then :
13022 lt_aix_libpath_sed='
13023 /Import File Strings/,/^$/ {
13024 /^0/ {
13025 s/^0 *\(.*\)$/\1/
13029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13030 # Check for a 64-bit object if we didn't find anything.
13031 if test -z "$aix_libpath"; then
13032 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13035 rm -f core conftest.err conftest.$ac_objext \
13036 conftest$ac_exeext conftest.$ac_ext
13037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13039 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13040 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13041 else
13042 if test "$host_cpu" = ia64; then
13043 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13044 allow_undefined_flag_FC="-z nodefs"
13045 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"
13046 else
13047 # Determine the default libpath from the value encoded in an
13048 # empty executable.
13049 cat > conftest.$ac_ext <<_ACEOF
13050 program main
13053 _ACEOF
13054 if ac_fn_fc_try_link "$LINENO"; then :
13056 lt_aix_libpath_sed='
13057 /Import File Strings/,/^$/ {
13058 /^0/ {
13059 s/^0 *\(.*\)$/\1/
13063 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13064 # Check for a 64-bit object if we didn't find anything.
13065 if test -z "$aix_libpath"; then
13066 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13069 rm -f core conftest.err conftest.$ac_objext \
13070 conftest$ac_exeext conftest.$ac_ext
13071 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13073 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13074 # Warning - without using the other run time loading flags,
13075 # -berok will link without error, but may produce a broken library.
13076 no_undefined_flag_FC=' ${wl}-bernotok'
13077 allow_undefined_flag_FC=' ${wl}-berok'
13078 if test "$with_gnu_ld" = yes; then
13079 # We only use this code for GNU lds that support --whole-archive.
13080 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13081 else
13082 # Exported symbols can be pulled into shared objects from archives
13083 whole_archive_flag_spec_FC='$convenience'
13085 archive_cmds_need_lc_FC=yes
13086 # This is similar to how AIX traditionally builds its shared libraries.
13087 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'
13092 amigaos*)
13093 case $host_cpu in
13094 powerpc)
13095 # see comment about AmigaOS4 .so support
13096 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13097 archive_expsym_cmds_FC=''
13099 m68k)
13100 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)'
13101 hardcode_libdir_flag_spec_FC='-L$libdir'
13102 hardcode_minus_L_FC=yes
13104 esac
13107 bsdi[45]*)
13108 export_dynamic_flag_spec_FC=-rdynamic
13111 cygwin* | mingw* | pw32* | cegcc*)
13112 # When not using gcc, we currently assume that we are using
13113 # Microsoft Visual C++.
13114 # hardcode_libdir_flag_spec is actually meaningless, as there is
13115 # no search path for DLLs.
13116 hardcode_libdir_flag_spec_FC=' '
13117 allow_undefined_flag_FC=unsupported
13118 # Tell ltmain to make .lib files, not .a files.
13119 libext=lib
13120 # Tell ltmain to make .dll files, not .so files.
13121 shrext_cmds=".dll"
13122 # FIXME: Setting linknames here is a bad hack.
13123 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13124 # The linker will automatically build a .lib file if we build a DLL.
13125 old_archive_from_new_cmds_FC='true'
13126 # FIXME: Should let the user specify the lib program.
13127 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13128 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13129 enable_shared_with_static_runtimes_FC=yes
13132 darwin* | rhapsody*)
13135 archive_cmds_need_lc_FC=no
13136 hardcode_direct_FC=no
13137 hardcode_automatic_FC=yes
13138 hardcode_shlibpath_var_FC=unsupported
13139 if test "$lt_cv_ld_force_load" = "yes"; then
13140 whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13141 else
13142 whole_archive_flag_spec_FC=''
13144 link_all_deplibs_FC=yes
13145 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13146 case $cc_basename in
13147 ifort*) _lt_dar_can_shared=yes ;;
13148 *) _lt_dar_can_shared=$GCC ;;
13149 esac
13150 if test "$_lt_dar_can_shared" = "yes"; then
13151 output_verbose_link_cmd=func_echo_all
13152 archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13153 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13154 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13155 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${_lt_dar_export_syms}${_lt_dsymutil}"
13157 else
13158 ld_shlibs_FC=no
13163 dgux*)
13164 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13165 hardcode_libdir_flag_spec_FC='-L$libdir'
13166 hardcode_shlibpath_var_FC=no
13169 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13170 # support. Future versions do this automatically, but an explicit c++rt0.o
13171 # does not break anything, and helps significantly (at the cost of a little
13172 # extra space).
13173 freebsd2.2*)
13174 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13175 hardcode_libdir_flag_spec_FC='-R$libdir'
13176 hardcode_direct_FC=yes
13177 hardcode_shlibpath_var_FC=no
13180 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13181 freebsd2.*)
13182 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13183 hardcode_direct_FC=yes
13184 hardcode_minus_L_FC=yes
13185 hardcode_shlibpath_var_FC=no
13188 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13189 freebsd* | dragonfly*)
13190 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13191 hardcode_libdir_flag_spec_FC='-R$libdir'
13192 hardcode_direct_FC=yes
13193 hardcode_shlibpath_var_FC=no
13196 hpux9*)
13197 if test "$GCC" = yes; then
13198 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'
13199 else
13200 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'
13202 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13203 hardcode_libdir_separator_FC=:
13204 hardcode_direct_FC=yes
13206 # hardcode_minus_L: Not really in the search PATH,
13207 # but as the default location of the library.
13208 hardcode_minus_L_FC=yes
13209 export_dynamic_flag_spec_FC='${wl}-E'
13212 hpux10*)
13213 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13214 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13215 else
13216 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13218 if test "$with_gnu_ld" = no; then
13219 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13220 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13221 hardcode_libdir_separator_FC=:
13222 hardcode_direct_FC=yes
13223 hardcode_direct_absolute_FC=yes
13224 export_dynamic_flag_spec_FC='${wl}-E'
13225 # hardcode_minus_L: Not really in the search PATH,
13226 # but as the default location of the library.
13227 hardcode_minus_L_FC=yes
13231 hpux11*)
13232 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13233 case $host_cpu in
13234 hppa*64*)
13235 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13237 ia64*)
13238 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13241 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13243 esac
13244 else
13245 case $host_cpu in
13246 hppa*64*)
13247 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13249 ia64*)
13250 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13253 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13255 esac
13257 if test "$with_gnu_ld" = no; then
13258 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13259 hardcode_libdir_separator_FC=:
13261 case $host_cpu in
13262 hppa*64*|ia64*)
13263 hardcode_direct_FC=no
13264 hardcode_shlibpath_var_FC=no
13267 hardcode_direct_FC=yes
13268 hardcode_direct_absolute_FC=yes
13269 export_dynamic_flag_spec_FC='${wl}-E'
13271 # hardcode_minus_L: Not really in the search PATH,
13272 # but as the default location of the library.
13273 hardcode_minus_L_FC=yes
13275 esac
13279 irix5* | irix6* | nonstopux*)
13280 if test "$GCC" = yes; then
13281 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13282 # Try to use the -exported_symbol ld option, if it does not
13283 # work, assume that -exports_file does not work either and
13284 # implicitly export all symbols.
13285 save_LDFLAGS="$LDFLAGS"
13286 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13287 cat > conftest.$ac_ext <<_ACEOF
13288 int foo(void) {}
13289 _ACEOF
13290 if ac_fn_fc_try_link "$LINENO"; then :
13291 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
13294 rm -f core conftest.err conftest.$ac_objext \
13295 conftest$ac_exeext conftest.$ac_ext
13296 LDFLAGS="$save_LDFLAGS"
13297 else
13298 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13299 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
13301 archive_cmds_need_lc_FC='no'
13302 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13303 hardcode_libdir_separator_FC=:
13304 inherit_rpath_FC=yes
13305 link_all_deplibs_FC=yes
13308 netbsd*)
13309 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13310 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13311 else
13312 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13314 hardcode_libdir_flag_spec_FC='-R$libdir'
13315 hardcode_direct_FC=yes
13316 hardcode_shlibpath_var_FC=no
13319 newsos6)
13320 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13321 hardcode_direct_FC=yes
13322 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13323 hardcode_libdir_separator_FC=:
13324 hardcode_shlibpath_var_FC=no
13327 *nto* | *qnx*)
13330 openbsd*)
13331 if test -f /usr/libexec/ld.so; then
13332 hardcode_direct_FC=yes
13333 hardcode_shlibpath_var_FC=no
13334 hardcode_direct_absolute_FC=yes
13335 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13336 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13337 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13338 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13339 export_dynamic_flag_spec_FC='${wl}-E'
13340 else
13341 case $host_os in
13342 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13343 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13344 hardcode_libdir_flag_spec_FC='-R$libdir'
13347 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13348 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13350 esac
13352 else
13353 ld_shlibs_FC=no
13357 os2*)
13358 hardcode_libdir_flag_spec_FC='-L$libdir'
13359 hardcode_minus_L_FC=yes
13360 allow_undefined_flag_FC=unsupported
13361 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'
13362 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13365 osf3*)
13366 if test "$GCC" = yes; then
13367 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13368 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13369 else
13370 allow_undefined_flag_FC=' -expect_unresolved \*'
13371 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13373 archive_cmds_need_lc_FC='no'
13374 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13375 hardcode_libdir_separator_FC=:
13378 osf4* | osf5*) # as osf3* with the addition of -msym flag
13379 if test "$GCC" = yes; then
13380 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13381 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13382 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13383 else
13384 allow_undefined_flag_FC=' -expect_unresolved \*'
13385 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13386 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~
13387 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
13389 # Both c and cxx compiler support -rpath directly
13390 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13392 archive_cmds_need_lc_FC='no'
13393 hardcode_libdir_separator_FC=:
13396 solaris*)
13397 no_undefined_flag_FC=' -z defs'
13398 if test "$GCC" = yes; then
13399 wlarc='${wl}'
13400 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13401 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13402 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13403 else
13404 case `$CC -V 2>&1` in
13405 *"Compilers 5.0"*)
13406 wlarc=''
13407 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13408 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13409 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13412 wlarc='${wl}'
13413 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13414 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13415 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13417 esac
13419 hardcode_libdir_flag_spec_FC='-R$libdir'
13420 hardcode_shlibpath_var_FC=no
13421 case $host_os in
13422 solaris2.[0-5] | solaris2.[0-5].*) ;;
13424 # The compiler driver will combine and reorder linker options,
13425 # but understands `-z linker_flag'. GCC discards it without `$wl',
13426 # but is careful enough not to reorder.
13427 # Supported since Solaris 2.6 (maybe 2.5.1?)
13428 if test "$GCC" = yes; then
13429 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13430 else
13431 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13434 esac
13435 link_all_deplibs_FC=yes
13438 sunos4*)
13439 if test "x$host_vendor" = xsequent; then
13440 # Use $CC to link under sequent, because it throws in some extra .o
13441 # files that make .init and .fini sections work.
13442 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13443 else
13444 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13446 hardcode_libdir_flag_spec_FC='-L$libdir'
13447 hardcode_direct_FC=yes
13448 hardcode_minus_L_FC=yes
13449 hardcode_shlibpath_var_FC=no
13452 sysv4)
13453 case $host_vendor in
13454 sni)
13455 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13456 hardcode_direct_FC=yes # is this really true???
13458 siemens)
13459 ## LD is ld it makes a PLAMLIB
13460 ## CC just makes a GrossModule.
13461 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13462 reload_cmds_FC='$CC -r -o $output$reload_objs'
13463 hardcode_direct_FC=no
13465 motorola)
13466 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13467 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13469 esac
13470 runpath_var='LD_RUN_PATH'
13471 hardcode_shlibpath_var_FC=no
13474 sysv4.3*)
13475 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13476 hardcode_shlibpath_var_FC=no
13477 export_dynamic_flag_spec_FC='-Bexport'
13480 sysv4*MP*)
13481 if test -d /usr/nec; then
13482 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13483 hardcode_shlibpath_var_FC=no
13484 runpath_var=LD_RUN_PATH
13485 hardcode_runpath_var=yes
13486 ld_shlibs_FC=yes
13490 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13491 no_undefined_flag_FC='${wl}-z,text'
13492 archive_cmds_need_lc_FC=no
13493 hardcode_shlibpath_var_FC=no
13494 runpath_var='LD_RUN_PATH'
13496 if test "$GCC" = yes; then
13497 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13498 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13499 else
13500 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13501 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13505 sysv5* | sco3.2v5* | sco5v6*)
13506 # Note: We can NOT use -z defs as we might desire, because we do not
13507 # link with -lc, and that would cause any symbols used from libc to
13508 # always be unresolved, which means just about no library would
13509 # ever link correctly. If we're not using GNU ld we use -z text
13510 # though, which does catch some bad symbols but isn't as heavy-handed
13511 # as -z defs.
13512 no_undefined_flag_FC='${wl}-z,text'
13513 allow_undefined_flag_FC='${wl}-z,nodefs'
13514 archive_cmds_need_lc_FC=no
13515 hardcode_shlibpath_var_FC=no
13516 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13517 hardcode_libdir_separator_FC=':'
13518 link_all_deplibs_FC=yes
13519 export_dynamic_flag_spec_FC='${wl}-Bexport'
13520 runpath_var='LD_RUN_PATH'
13522 if test "$GCC" = yes; then
13523 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13524 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13525 else
13526 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13527 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13531 uts4*)
13532 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13533 hardcode_libdir_flag_spec_FC='-L$libdir'
13534 hardcode_shlibpath_var_FC=no
13538 ld_shlibs_FC=no
13540 esac
13542 if test x$host_vendor = xsni; then
13543 case $host in
13544 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13545 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13547 esac
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13552 $as_echo "$ld_shlibs_FC" >&6; }
13553 test "$ld_shlibs_FC" = no && can_build_shared=no
13555 with_gnu_ld_FC=$with_gnu_ld
13563 # Do we need to explicitly link libc?
13565 case "x$archive_cmds_need_lc_FC" in
13566 x|xyes)
13567 # Assume -lc should be added
13568 archive_cmds_need_lc_FC=yes
13570 if test "$enable_shared" = yes && test "$GCC" = yes; then
13571 case $archive_cmds_FC in
13572 *'~'*)
13573 # FIXME: we may have to deal with multi-command sequences.
13575 '$CC '*)
13576 # Test whether the compiler implicitly links with -lc since on some
13577 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13578 # to ld, don't add -lc before -lgcc.
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13580 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13581 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13582 $as_echo_n "(cached) " >&6
13583 else
13584 $RM conftest*
13585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13588 (eval $ac_compile) 2>&5
13589 ac_status=$?
13590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13591 test $ac_status = 0; } 2>conftest.err; then
13592 soname=conftest
13593 lib=conftest
13594 libobjs=conftest.$ac_objext
13595 deplibs=
13596 wl=$lt_prog_compiler_wl_FC
13597 pic_flag=$lt_prog_compiler_pic_FC
13598 compiler_flags=-v
13599 linker_flags=-v
13600 verstring=
13601 output_objdir=.
13602 libname=conftest
13603 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13604 allow_undefined_flag_FC=
13605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13606 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13607 ac_status=$?
13608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13609 test $ac_status = 0; }
13610 then
13611 lt_cv_archive_cmds_need_lc_FC=no
13612 else
13613 lt_cv_archive_cmds_need_lc_FC=yes
13615 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13616 else
13617 cat conftest.err 1>&5
13619 $RM conftest*
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13623 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13624 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13626 esac
13629 esac
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13695 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13697 library_names_spec=
13698 libname_spec='lib$name'
13699 soname_spec=
13700 shrext_cmds=".so"
13701 postinstall_cmds=
13702 postuninstall_cmds=
13703 finish_cmds=
13704 finish_eval=
13705 shlibpath_var=
13706 shlibpath_overrides_runpath=unknown
13707 version_type=none
13708 dynamic_linker="$host_os ld.so"
13709 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13710 need_lib_prefix=unknown
13711 hardcode_into_libs=no
13713 # when you set need_version to no, make sure it does not cause -set_version
13714 # flags to be left without arguments
13715 need_version=unknown
13717 case $host_os in
13718 aix3*)
13719 version_type=linux
13720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13721 shlibpath_var=LIBPATH
13723 # AIX 3 has no versioning support, so we append a major version to the name.
13724 soname_spec='${libname}${release}${shared_ext}$major'
13727 aix[4-9]*)
13728 version_type=linux
13729 need_lib_prefix=no
13730 need_version=no
13731 hardcode_into_libs=yes
13732 if test "$host_cpu" = ia64; then
13733 # AIX 5 supports IA64
13734 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13735 shlibpath_var=LD_LIBRARY_PATH
13736 else
13737 # With GCC up to 2.95.x, collect2 would create an import file
13738 # for dependence libraries. The import file would start with
13739 # the line `#! .'. This would cause the generated library to
13740 # depend on `.', always an invalid library. This was fixed in
13741 # development snapshots of GCC prior to 3.0.
13742 case $host_os in
13743 aix4 | aix4.[01] | aix4.[01].*)
13744 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13745 echo ' yes '
13746 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13748 else
13749 can_build_shared=no
13752 esac
13753 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13754 # soname into executable. Probably we can add versioning support to
13755 # collect2, so additional links can be useful in future.
13756 if test "$aix_use_runtimelinking" = yes; then
13757 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13758 # instead of lib<name>.a to let people know that these are not
13759 # typical AIX shared libraries.
13760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13761 else
13762 # We preserve .a as extension for shared libraries through AIX4.2
13763 # and later when we are not doing run time linking.
13764 library_names_spec='${libname}${release}.a $libname.a'
13765 soname_spec='${libname}${release}${shared_ext}$major'
13767 shlibpath_var=LIBPATH
13771 amigaos*)
13772 case $host_cpu in
13773 powerpc)
13774 # Since July 2007 AmigaOS4 officially supports .so libraries.
13775 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13778 m68k)
13779 library_names_spec='$libname.ixlibrary $libname.a'
13780 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13781 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
13783 esac
13786 beos*)
13787 library_names_spec='${libname}${shared_ext}'
13788 dynamic_linker="$host_os ld.so"
13789 shlibpath_var=LIBRARY_PATH
13792 bsdi[45]*)
13793 version_type=linux
13794 need_version=no
13795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13796 soname_spec='${libname}${release}${shared_ext}$major'
13797 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13798 shlibpath_var=LD_LIBRARY_PATH
13799 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13800 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13801 # the default ld.so.conf also contains /usr/contrib/lib and
13802 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13803 # libtool to hard-code these into programs
13806 cygwin* | mingw* | pw32* | cegcc*)
13807 version_type=windows
13808 shrext_cmds=".dll"
13809 need_version=no
13810 need_lib_prefix=no
13812 case $GCC,$host_os in
13813 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13814 library_names_spec='$libname.dll.a'
13815 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13816 postinstall_cmds='base_file=`basename \${file}`~
13817 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13818 dldir=$destdir/`dirname \$dlpath`~
13819 test -d \$dldir || mkdir -p \$dldir~
13820 $install_prog $dir/$dlname \$dldir/$dlname~
13821 chmod a+x \$dldir/$dlname~
13822 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13823 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13825 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13826 dlpath=$dir/\$dldll~
13827 $RM \$dlpath'
13828 shlibpath_overrides_runpath=yes
13830 case $host_os in
13831 cygwin*)
13832 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13833 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13836 mingw* | cegcc*)
13837 # MinGW DLLs use traditional 'lib' prefix
13838 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13840 pw32*)
13841 # pw32 DLLs use 'pw' prefix rather than 'lib'
13842 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13844 esac
13848 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13850 esac
13851 dynamic_linker='Win32 ld.exe'
13852 # FIXME: first we should search . and the directory the executable is in
13853 shlibpath_var=PATH
13856 darwin* | rhapsody*)
13857 dynamic_linker="$host_os dyld"
13858 version_type=darwin
13859 need_lib_prefix=no
13860 need_version=no
13861 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13862 soname_spec='${libname}${release}${major}$shared_ext'
13863 shlibpath_overrides_runpath=yes
13864 shlibpath_var=DYLD_LIBRARY_PATH
13865 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13867 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13870 dgux*)
13871 version_type=linux
13872 need_lib_prefix=no
13873 need_version=no
13874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13875 soname_spec='${libname}${release}${shared_ext}$major'
13876 shlibpath_var=LD_LIBRARY_PATH
13879 freebsd* | dragonfly*)
13880 # DragonFly does not have aout. When/if they implement a new
13881 # versioning mechanism, adjust this.
13882 if test -x /usr/bin/objformat; then
13883 objformat=`/usr/bin/objformat`
13884 else
13885 case $host_os in
13886 freebsd[23].*) objformat=aout ;;
13887 *) objformat=elf ;;
13888 esac
13890 version_type=freebsd-$objformat
13891 case $version_type in
13892 freebsd-elf*)
13893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13894 need_version=no
13895 need_lib_prefix=no
13897 freebsd-*)
13898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13899 need_version=yes
13901 esac
13902 shlibpath_var=LD_LIBRARY_PATH
13903 case $host_os in
13904 freebsd2.*)
13905 shlibpath_overrides_runpath=yes
13907 freebsd3.[01]* | freebsdelf3.[01]*)
13908 shlibpath_overrides_runpath=yes
13909 hardcode_into_libs=yes
13911 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13912 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13913 shlibpath_overrides_runpath=no
13914 hardcode_into_libs=yes
13916 *) # from 4.6 on, and DragonFly
13917 shlibpath_overrides_runpath=yes
13918 hardcode_into_libs=yes
13920 esac
13923 gnu*)
13924 version_type=linux
13925 need_lib_prefix=no
13926 need_version=no
13927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13928 soname_spec='${libname}${release}${shared_ext}$major'
13929 shlibpath_var=LD_LIBRARY_PATH
13930 hardcode_into_libs=yes
13933 haiku*)
13934 version_type=linux
13935 need_lib_prefix=no
13936 need_version=no
13937 dynamic_linker="$host_os runtime_loader"
13938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13939 soname_spec='${libname}${release}${shared_ext}$major'
13940 shlibpath_var=LIBRARY_PATH
13941 shlibpath_overrides_runpath=yes
13942 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13943 hardcode_into_libs=yes
13946 hpux9* | hpux10* | hpux11*)
13947 # Give a soname corresponding to the major version so that dld.sl refuses to
13948 # link against other versions.
13949 version_type=sunos
13950 need_lib_prefix=no
13951 need_version=no
13952 case $host_cpu in
13953 ia64*)
13954 shrext_cmds='.so'
13955 hardcode_into_libs=yes
13956 dynamic_linker="$host_os dld.so"
13957 shlibpath_var=LD_LIBRARY_PATH
13958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960 soname_spec='${libname}${release}${shared_ext}$major'
13961 if test "X$HPUX_IA64_MODE" = X32; then
13962 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13963 else
13964 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13968 hppa*64*)
13969 shrext_cmds='.sl'
13970 hardcode_into_libs=yes
13971 dynamic_linker="$host_os dld.sl"
13972 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13975 soname_spec='${libname}${release}${shared_ext}$major'
13976 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13977 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13980 shrext_cmds='.sl'
13981 dynamic_linker="$host_os dld.sl"
13982 shlibpath_var=SHLIB_PATH
13983 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13985 soname_spec='${libname}${release}${shared_ext}$major'
13987 esac
13988 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13989 postinstall_cmds='chmod 555 $lib'
13990 # or fails outright, so override atomically:
13991 install_override_mode=555
13994 interix[3-9]*)
13995 version_type=linux
13996 need_lib_prefix=no
13997 need_version=no
13998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13999 soname_spec='${libname}${release}${shared_ext}$major'
14000 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14001 shlibpath_var=LD_LIBRARY_PATH
14002 shlibpath_overrides_runpath=no
14003 hardcode_into_libs=yes
14006 irix5* | irix6* | nonstopux*)
14007 case $host_os in
14008 nonstopux*) version_type=nonstopux ;;
14010 if test "$lt_cv_prog_gnu_ld" = yes; then
14011 version_type=linux
14012 else
14013 version_type=irix
14014 fi ;;
14015 esac
14016 need_lib_prefix=no
14017 need_version=no
14018 soname_spec='${libname}${release}${shared_ext}$major'
14019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14020 case $host_os in
14021 irix5* | nonstopux*)
14022 libsuff= shlibsuff=
14025 case $LD in # libtool.m4 will add one of these switches to LD
14026 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14027 libsuff= shlibsuff= libmagic=32-bit;;
14028 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14029 libsuff=32 shlibsuff=N32 libmagic=N32;;
14030 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14031 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14032 *) libsuff= shlibsuff= libmagic=never-match;;
14033 esac
14035 esac
14036 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14037 shlibpath_overrides_runpath=no
14038 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14039 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14040 hardcode_into_libs=yes
14043 # No shared lib support for Linux oldld, aout, or coff.
14044 linux*oldld* | linux*aout* | linux*coff*)
14045 dynamic_linker=no
14048 # This must be Linux ELF.
14049 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14050 version_type=linux
14051 need_lib_prefix=no
14052 need_version=no
14053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14054 soname_spec='${libname}${release}${shared_ext}$major'
14055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14056 shlibpath_var=LD_LIBRARY_PATH
14057 shlibpath_overrides_runpath=no
14059 # Some binutils ld are patched to set DT_RUNPATH
14060 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14061 $as_echo_n "(cached) " >&6
14062 else
14063 lt_cv_shlibpath_overrides_runpath=no
14064 save_LDFLAGS=$LDFLAGS
14065 save_libdir=$libdir
14066 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14067 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14068 cat > conftest.$ac_ext <<_ACEOF
14069 program main
14072 _ACEOF
14073 if ac_fn_fc_try_link "$LINENO"; then :
14074 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14075 lt_cv_shlibpath_overrides_runpath=yes
14078 rm -f core conftest.err conftest.$ac_objext \
14079 conftest$ac_exeext conftest.$ac_ext
14080 LDFLAGS=$save_LDFLAGS
14081 libdir=$save_libdir
14085 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14087 # This implies no fast_install, which is unacceptable.
14088 # Some rework will be needed to allow for fast_install
14089 # before this can be enabled.
14090 hardcode_into_libs=yes
14092 # Append ld.so.conf contents to the search path
14093 if test -f /etc/ld.so.conf; then
14094 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14095 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14098 # We used to test for /lib/ld.so.1 and disable shared libraries on
14099 # powerpc, because MkLinux only supported shared libraries with the
14100 # GNU dynamic linker. Since this was broken with cross compilers,
14101 # most powerpc-linux boxes support dynamic linking these days and
14102 # people can always --disable-shared, the test was removed, and we
14103 # assume the GNU/Linux dynamic linker is in use.
14104 dynamic_linker='GNU/Linux ld.so'
14107 netbsd*)
14108 version_type=sunos
14109 need_lib_prefix=no
14110 need_version=no
14111 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14114 dynamic_linker='NetBSD (a.out) ld.so'
14115 else
14116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14117 soname_spec='${libname}${release}${shared_ext}$major'
14118 dynamic_linker='NetBSD ld.elf_so'
14120 shlibpath_var=LD_LIBRARY_PATH
14121 shlibpath_overrides_runpath=yes
14122 hardcode_into_libs=yes
14125 newsos6)
14126 version_type=linux
14127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14128 shlibpath_var=LD_LIBRARY_PATH
14129 shlibpath_overrides_runpath=yes
14132 *nto* | *qnx*)
14133 version_type=qnx
14134 need_lib_prefix=no
14135 need_version=no
14136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14137 soname_spec='${libname}${release}${shared_ext}$major'
14138 shlibpath_var=LD_LIBRARY_PATH
14139 shlibpath_overrides_runpath=no
14140 hardcode_into_libs=yes
14141 dynamic_linker='ldqnx.so'
14144 openbsd*)
14145 version_type=sunos
14146 sys_lib_dlsearch_path_spec="/usr/lib"
14147 need_lib_prefix=no
14148 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14149 case $host_os in
14150 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14151 *) need_version=no ;;
14152 esac
14153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14155 shlibpath_var=LD_LIBRARY_PATH
14156 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14157 case $host_os in
14158 openbsd2.[89] | openbsd2.[89].*)
14159 shlibpath_overrides_runpath=no
14162 shlibpath_overrides_runpath=yes
14164 esac
14165 else
14166 shlibpath_overrides_runpath=yes
14170 os2*)
14171 libname_spec='$name'
14172 shrext_cmds=".dll"
14173 need_lib_prefix=no
14174 library_names_spec='$libname${shared_ext} $libname.a'
14175 dynamic_linker='OS/2 ld.exe'
14176 shlibpath_var=LIBPATH
14179 osf3* | osf4* | osf5*)
14180 version_type=osf
14181 need_lib_prefix=no
14182 need_version=no
14183 soname_spec='${libname}${release}${shared_ext}$major'
14184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14185 shlibpath_var=LD_LIBRARY_PATH
14186 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14187 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14190 rdos*)
14191 dynamic_linker=no
14194 solaris*)
14195 version_type=linux
14196 need_lib_prefix=no
14197 need_version=no
14198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14199 soname_spec='${libname}${release}${shared_ext}$major'
14200 shlibpath_var=LD_LIBRARY_PATH
14201 shlibpath_overrides_runpath=yes
14202 hardcode_into_libs=yes
14203 # ldd complains unless libraries are executable
14204 postinstall_cmds='chmod +x $lib'
14207 sunos4*)
14208 version_type=sunos
14209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14210 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14211 shlibpath_var=LD_LIBRARY_PATH
14212 shlibpath_overrides_runpath=yes
14213 if test "$with_gnu_ld" = yes; then
14214 need_lib_prefix=no
14216 need_version=yes
14219 sysv4 | sysv4.3*)
14220 version_type=linux
14221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14222 soname_spec='${libname}${release}${shared_ext}$major'
14223 shlibpath_var=LD_LIBRARY_PATH
14224 case $host_vendor in
14225 sni)
14226 shlibpath_overrides_runpath=no
14227 need_lib_prefix=no
14228 runpath_var=LD_RUN_PATH
14230 siemens)
14231 need_lib_prefix=no
14233 motorola)
14234 need_lib_prefix=no
14235 need_version=no
14236 shlibpath_overrides_runpath=no
14237 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14239 esac
14242 sysv4*MP*)
14243 if test -d /usr/nec ;then
14244 version_type=linux
14245 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14246 soname_spec='$libname${shared_ext}.$major'
14247 shlibpath_var=LD_LIBRARY_PATH
14251 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14252 version_type=freebsd-elf
14253 need_lib_prefix=no
14254 need_version=no
14255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14256 soname_spec='${libname}${release}${shared_ext}$major'
14257 shlibpath_var=LD_LIBRARY_PATH
14258 shlibpath_overrides_runpath=yes
14259 hardcode_into_libs=yes
14260 if test "$with_gnu_ld" = yes; then
14261 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14262 else
14263 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14264 case $host_os in
14265 sco3.2v5*)
14266 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14268 esac
14270 sys_lib_dlsearch_path_spec='/usr/lib'
14273 tpf*)
14274 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14275 version_type=linux
14276 need_lib_prefix=no
14277 need_version=no
14278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14279 shlibpath_var=LD_LIBRARY_PATH
14280 shlibpath_overrides_runpath=no
14281 hardcode_into_libs=yes
14284 uts4*)
14285 version_type=linux
14286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14287 soname_spec='${libname}${release}${shared_ext}$major'
14288 shlibpath_var=LD_LIBRARY_PATH
14292 dynamic_linker=no
14294 esac
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14296 $as_echo "$dynamic_linker" >&6; }
14297 test "$dynamic_linker" = no && can_build_shared=no
14299 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14300 if test "$GCC" = yes; then
14301 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14304 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14305 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14307 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14308 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14349 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14350 hardcode_action_FC=
14351 if test -n "$hardcode_libdir_flag_spec_FC" ||
14352 test -n "$runpath_var_FC" ||
14353 test "X$hardcode_automatic_FC" = "Xyes" ; then
14355 # We can hardcode non-existent directories.
14356 if test "$hardcode_direct_FC" != no &&
14357 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14358 # have to relink, otherwise we might link with an installed library
14359 # when we should be linking with a yet-to-be-installed one
14360 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14361 test "$hardcode_minus_L_FC" != no; then
14362 # Linking always hardcodes the temporary library directory.
14363 hardcode_action_FC=relink
14364 else
14365 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14366 hardcode_action_FC=immediate
14368 else
14369 # We cannot hardcode anything, or else we can only hardcode existing
14370 # directories.
14371 hardcode_action_FC=unsupported
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14374 $as_echo "$hardcode_action_FC" >&6; }
14376 if test "$hardcode_action_FC" = relink ||
14377 test "$inherit_rpath_FC" = yes; then
14378 # Fast installation is not supported
14379 enable_fast_install=no
14380 elif test "$shlibpath_overrides_runpath" = yes ||
14381 test "$enable_shared" = no; then
14382 # Fast installation is not necessary
14383 enable_fast_install=needless
14392 fi # test -n "$compiler"
14394 GCC=$lt_save_GCC
14395 CC="$lt_save_CC"
14396 fi # test "$_lt_disable_FC" != yes
14398 ac_ext=c
14399 ac_cpp='$CPP $CPPFLAGS'
14400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14405 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14407 # For libtool versioning info, format is CURRENT:REVISION:AGE
14408 libtool_VERSION=1:0:0
14411 # Check header files.
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14413 $as_echo_n "checking for ANSI C header files... " >&6; }
14414 if test "${ac_cv_header_stdc+set}" = set; then :
14415 $as_echo_n "(cached) " >&6
14416 else
14417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h. */
14419 #include <stdlib.h>
14420 #include <stdarg.h>
14421 #include <string.h>
14422 #include <float.h>
14425 main ()
14429 return 0;
14431 _ACEOF
14432 if ac_fn_c_try_compile "$LINENO"; then :
14433 ac_cv_header_stdc=yes
14434 else
14435 ac_cv_header_stdc=no
14437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14439 if test $ac_cv_header_stdc = yes; then
14440 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442 /* end confdefs.h. */
14443 #include <string.h>
14445 _ACEOF
14446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14447 $EGREP "memchr" >/dev/null 2>&1; then :
14449 else
14450 ac_cv_header_stdc=no
14452 rm -f conftest*
14456 if test $ac_cv_header_stdc = yes; then
14457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h. */
14460 #include <stdlib.h>
14462 _ACEOF
14463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14464 $EGREP "free" >/dev/null 2>&1; then :
14466 else
14467 ac_cv_header_stdc=no
14469 rm -f conftest*
14473 if test $ac_cv_header_stdc = yes; then
14474 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14475 if test "$cross_compiling" = yes; then :
14477 else
14478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14480 #include <ctype.h>
14481 #include <stdlib.h>
14482 #if ((' ' & 0x0FF) == 0x020)
14483 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14484 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14485 #else
14486 # define ISLOWER(c) \
14487 (('a' <= (c) && (c) <= 'i') \
14488 || ('j' <= (c) && (c) <= 'r') \
14489 || ('s' <= (c) && (c) <= 'z'))
14490 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14491 #endif
14493 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14495 main ()
14497 int i;
14498 for (i = 0; i < 256; i++)
14499 if (XOR (islower (i), ISLOWER (i))
14500 || toupper (i) != TOUPPER (i))
14501 return 2;
14502 return 0;
14504 _ACEOF
14505 if ac_fn_c_try_run "$LINENO"; then :
14507 else
14508 ac_cv_header_stdc=no
14510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14511 conftest.$ac_objext conftest.beam conftest.$ac_ext
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14517 $as_echo "$ac_cv_header_stdc" >&6; }
14518 if test $ac_cv_header_stdc = yes; then
14520 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14525 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14526 if test "${ac_cv_header_time+set}" = set; then :
14527 $as_echo_n "(cached) " >&6
14528 else
14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h. */
14531 #include <sys/types.h>
14532 #include <sys/time.h>
14533 #include <time.h>
14536 main ()
14538 if ((struct tm *) 0)
14539 return 0;
14541 return 0;
14543 _ACEOF
14544 if ac_fn_c_try_compile "$LINENO"; then :
14545 ac_cv_header_time=yes
14546 else
14547 ac_cv_header_time=no
14549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14552 $as_echo "$ac_cv_header_time" >&6; }
14553 if test $ac_cv_header_time = yes; then
14555 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14560 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14561 if test "${gcc_cv_header_string+set}" = set; then :
14562 $as_echo_n "(cached) " >&6
14563 else
14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14566 #include <string.h>
14567 #include <strings.h>
14569 main ()
14573 return 0;
14575 _ACEOF
14576 if ac_fn_c_try_compile "$LINENO"; then :
14577 gcc_cv_header_string=yes
14578 else
14579 gcc_cv_header_string=no
14581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14584 $as_echo "$gcc_cv_header_string" >&6; }
14585 if test $gcc_cv_header_string = yes; then
14587 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14591 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
14592 do :
14593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14594 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14595 eval as_val=\$$as_ac_Header
14596 if test "x$as_val" = x""yes; then :
14597 cat >>confdefs.h <<_ACEOF
14598 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14599 _ACEOF
14603 done
14608 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14610 acx_cv_header_stdint=stddef.h
14611 acx_cv_header_stdint_kind="(already complete)"
14612 for i in stdint.h $inttype_headers; do
14613 unset ac_cv_type_uintptr_t
14614 unset ac_cv_type_uintmax_t
14615 unset ac_cv_type_int_least32_t
14616 unset ac_cv_type_int_fast32_t
14617 unset ac_cv_type_uint64_t
14618 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14619 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14620 #include <$i>
14622 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14623 acx_cv_header_stdint=$i
14624 else
14625 continue
14628 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14629 #include <$i>
14631 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14633 else
14634 acx_cv_header_stdint_kind="(mostly complete)"
14637 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14638 #include <$i>
14640 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14642 else
14643 acx_cv_header_stdint_kind="(mostly complete)"
14646 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14647 #include <$i>
14649 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14651 else
14652 acx_cv_header_stdint_kind="(mostly complete)"
14655 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14656 #include <$i>
14658 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14660 else
14661 acx_cv_header_stdint_kind="(lacks uint64_t)"
14664 break
14665 done
14666 if test "$acx_cv_header_stdint" = stddef.h; then
14667 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14668 for i in stdint.h $inttype_headers; do
14669 unset ac_cv_type_uintptr_t
14670 unset ac_cv_type_uint32_t
14671 unset ac_cv_type_uint64_t
14672 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14673 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14674 #include <$i>
14676 if test "x$ac_cv_type_uint32_t" = x""yes; then :
14677 acx_cv_header_stdint=$i
14678 else
14679 continue
14682 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14683 #include <$i>
14685 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14689 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14690 #include <$i>
14692 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14696 break
14697 done
14699 if test "$acx_cv_header_stdint" = stddef.h; then
14700 acx_cv_header_stdint_kind="(u_intXX_t style)"
14701 for i in sys/types.h $inttype_headers; do
14702 unset ac_cv_type_u_int32_t
14703 unset ac_cv_type_u_int64_t
14704 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14705 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14706 #include <$i>
14708 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14709 acx_cv_header_stdint=$i
14710 else
14711 continue
14714 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14715 #include <$i>
14717 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14721 break
14722 done
14724 if test "$acx_cv_header_stdint" = stddef.h; then
14725 acx_cv_header_stdint_kind="(using manual detection)"
14728 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14729 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14730 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14731 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14732 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14734 # ----------------- Summarize what we found so far
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14737 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14739 case `$as_basename -- gstdint.h ||
14740 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14741 Xgstdint.h : 'X\(//\)$' \| \
14742 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14743 $as_echo X/gstdint.h |
14744 sed '/^.*\/\([^/][^/]*\)\/*$/{
14745 s//\1/
14748 /^X\/\(\/\/\)$/{
14749 s//\1/
14752 /^X\/\(\/\).*/{
14753 s//\1/
14756 s/.*/./; q'` in
14757 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14758 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14759 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14760 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14761 *) ;;
14762 esac
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14765 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14767 # ----------------- done included file, check C basic types --------
14769 # Lacking an uintptr_t? Test size of void *
14770 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14771 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14774 # This bug is HP SR number 8606223364.
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14776 $as_echo_n "checking size of void *... " >&6; }
14777 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14778 $as_echo_n "(cached) " >&6
14779 else
14780 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14782 else
14783 if test "$ac_cv_type_void_p" = yes; then
14784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14786 { as_fn_set_status 77
14787 as_fn_error "cannot compute sizeof (void *)
14788 See \`config.log' for more details." "$LINENO" 5; }; }
14789 else
14790 ac_cv_sizeof_void_p=0
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14796 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14800 cat >>confdefs.h <<_ACEOF
14801 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14802 _ACEOF
14805 esac
14807 # Lacking an uint64_t? Test size of long
14808 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14809 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14812 # This bug is HP SR number 8606223364.
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14814 $as_echo_n "checking size of long... " >&6; }
14815 if test "${ac_cv_sizeof_long+set}" = set; then :
14816 $as_echo_n "(cached) " >&6
14817 else
14818 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14820 else
14821 if test "$ac_cv_type_long" = yes; then
14822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14824 { as_fn_set_status 77
14825 as_fn_error "cannot compute sizeof (long)
14826 See \`config.log' for more details." "$LINENO" 5; }; }
14827 else
14828 ac_cv_sizeof_long=0
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14834 $as_echo "$ac_cv_sizeof_long" >&6; }
14838 cat >>confdefs.h <<_ACEOF
14839 #define SIZEOF_LONG $ac_cv_sizeof_long
14840 _ACEOF
14843 esac
14845 if test $acx_cv_header_stdint = stddef.h; then
14846 # Lacking a good header? Test size of everything and deduce all types.
14847 # The cast to long int works around a bug in the HP C Compiler
14848 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14849 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14850 # This bug is HP SR number 8606223364.
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14852 $as_echo_n "checking size of int... " >&6; }
14853 if test "${ac_cv_sizeof_int+set}" = set; then :
14854 $as_echo_n "(cached) " >&6
14855 else
14856 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14858 else
14859 if test "$ac_cv_type_int" = yes; then
14860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14862 { as_fn_set_status 77
14863 as_fn_error "cannot compute sizeof (int)
14864 See \`config.log' for more details." "$LINENO" 5; }; }
14865 else
14866 ac_cv_sizeof_int=0
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14872 $as_echo "$ac_cv_sizeof_int" >&6; }
14876 cat >>confdefs.h <<_ACEOF
14877 #define SIZEOF_INT $ac_cv_sizeof_int
14878 _ACEOF
14881 # The cast to long int works around a bug in the HP C Compiler
14882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14884 # This bug is HP SR number 8606223364.
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14886 $as_echo_n "checking size of short... " >&6; }
14887 if test "${ac_cv_sizeof_short+set}" = set; then :
14888 $as_echo_n "(cached) " >&6
14889 else
14890 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14892 else
14893 if test "$ac_cv_type_short" = yes; then
14894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14896 { as_fn_set_status 77
14897 as_fn_error "cannot compute sizeof (short)
14898 See \`config.log' for more details." "$LINENO" 5; }; }
14899 else
14900 ac_cv_sizeof_short=0
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14906 $as_echo "$ac_cv_sizeof_short" >&6; }
14910 cat >>confdefs.h <<_ACEOF
14911 #define SIZEOF_SHORT $ac_cv_sizeof_short
14912 _ACEOF
14915 # The cast to long int works around a bug in the HP C Compiler
14916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14918 # This bug is HP SR number 8606223364.
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14920 $as_echo_n "checking size of char... " >&6; }
14921 if test "${ac_cv_sizeof_char+set}" = set; then :
14922 $as_echo_n "(cached) " >&6
14923 else
14924 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14926 else
14927 if test "$ac_cv_type_char" = yes; then
14928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14930 { as_fn_set_status 77
14931 as_fn_error "cannot compute sizeof (char)
14932 See \`config.log' for more details." "$LINENO" 5; }; }
14933 else
14934 ac_cv_sizeof_char=0
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14940 $as_echo "$ac_cv_sizeof_char" >&6; }
14944 cat >>confdefs.h <<_ACEOF
14945 #define SIZEOF_CHAR $ac_cv_sizeof_char
14946 _ACEOF
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
14951 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
14952 case "$ac_cv_sizeof_char" in
14953 1) acx_cv_type_int8_t=char ;;
14954 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
14955 esac
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
14957 $as_echo "$acx_cv_type_int8_t" >&6; }
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
14960 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
14961 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14962 2:*) acx_cv_type_int16_t=int ;;
14963 *:2) acx_cv_type_int16_t=short ;;
14964 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
14965 esac
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
14967 $as_echo "$acx_cv_type_int16_t" >&6; }
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
14970 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
14971 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14972 4:*) acx_cv_type_int32_t=int ;;
14973 *:4) acx_cv_type_int32_t=long ;;
14974 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
14975 esac
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
14977 $as_echo "$acx_cv_type_int32_t" >&6; }
14980 # These tests are here to make the output prettier
14982 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14983 case "$ac_cv_sizeof_long" in
14984 8) acx_cv_type_int64_t=long ;;
14985 esac
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
14987 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14989 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
14992 # Now we can use the above types
14994 if test "$ac_cv_type_uintptr_t" != yes; then
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
14996 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
14997 case $ac_cv_sizeof_void_p in
14998 2) acx_cv_type_intptr_t=int16_t ;;
14999 4) acx_cv_type_intptr_t=int32_t ;;
15000 8) acx_cv_type_intptr_t=int64_t ;;
15001 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15002 esac
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15004 $as_echo "$acx_cv_type_intptr_t" >&6; }
15007 # ----------------- done all checks, emit header -------------
15008 ac_config_commands="$ac_config_commands gstdint.h"
15013 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15014 # In case the pthread.h system header is not found, this test will fail.
15015 XPCFLAGS=""
15016 CFLAGS="$CFLAGS -pthread"
15017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15018 /* end confdefs.h. */
15019 #include <pthread.h>
15020 void *g(void *d) { return NULL; }
15022 main ()
15024 pthread_t t; pthread_create(&t,NULL,g,NULL);
15026 return 0;
15028 _ACEOF
15029 if ac_fn_c_try_link "$LINENO"; then :
15030 XPCFLAGS=" -Wc,-pthread"
15031 else
15032 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15034 /* end confdefs.h. */
15035 #include <pthread.h>
15036 void *g(void *d) { return NULL; }
15038 main ()
15040 pthread_t t; pthread_create(&t,NULL,g,NULL);
15042 return 0;
15044 _ACEOF
15045 if ac_fn_c_try_link "$LINENO"; then :
15047 else
15048 as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15050 rm -f core conftest.err conftest.$ac_objext \
15051 conftest$ac_exeext conftest.$ac_ext
15053 rm -f core conftest.err conftest.$ac_objext \
15054 conftest$ac_exeext conftest.$ac_ext
15056 plugin_support=yes
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15058 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15059 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15060 $as_echo_n "(cached) " >&6
15061 else
15062 ac_check_lib_save_LIBS=$LIBS
15063 LIBS="-ldl $LIBS"
15064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15065 /* end confdefs.h. */
15067 /* Override any GCC internal prototype to avoid an error.
15068 Use char because int might match the return type of a GCC
15069 builtin and then its argument prototype would still apply. */
15070 #ifdef __cplusplus
15071 extern "C"
15072 #endif
15073 char dlsym ();
15075 main ()
15077 return dlsym ();
15079 return 0;
15081 _ACEOF
15082 if ac_fn_c_try_link "$LINENO"; then :
15083 ac_cv_lib_dl_dlsym=yes
15084 else
15085 ac_cv_lib_dl_dlsym=no
15087 rm -f core conftest.err conftest.$ac_objext \
15088 conftest$ac_exeext conftest.$ac_ext
15089 LIBS=$ac_check_lib_save_LIBS
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15092 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15093 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
15094 cat >>confdefs.h <<_ACEOF
15095 #define HAVE_LIBDL 1
15096 _ACEOF
15098 LIBS="-ldl $LIBS"
15100 else
15101 plugin_support=no
15104 ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
15105 if test "x$ac_cv_header_dirent_h" = x""yes; then :
15107 else
15108 plugin_support=no
15113 if test x$plugin_support = xyes; then
15115 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15117 elif test "x$enable_accelerator" != xno; then
15118 as_fn_error "Can't have support for accelerators without support for plugins" "$LINENO" 5
15123 subdirs="$subdirs plugin"
15126 # Check for functions needed.
15127 for ac_func in getloadavg clock_gettime strtoull
15128 do :
15129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15130 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15131 eval as_val=\$$as_ac_var
15132 if test "x$as_val" = x""yes; then :
15133 cat >>confdefs.h <<_ACEOF
15134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15135 _ACEOF
15138 done
15141 # Check for broken semaphore implementation on darwin.
15142 # sem_init returns: sem_init error: Function not implemented.
15143 case "$host" in
15144 *-darwin*)
15146 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15149 esac
15151 # Check whether --enable-linux-futex was given.
15152 if test "${enable_linux_futex+set}" = set; then :
15153 enableval=$enable_linux_futex;
15154 case "$enableval" in
15155 yes|no|default) ;;
15156 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15157 esac
15159 else
15160 enable_linux_futex=default
15164 case "$target" in
15165 *-linux*)
15166 case "$enable_linux_futex" in
15167 default)
15168 # If headers don't have gettid/futex syscalls definition, then
15169 # default to no, otherwise there will be compile time failures.
15170 # Otherwise, default to yes. If we don't detect we are
15171 # compiled/linked against NPTL and not cross-compiling, check
15172 # if programs are run by default against NPTL and if not, issue
15173 # a warning.
15174 enable_linux_futex=no
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15177 #include <sys/syscall.h>
15178 int lk;
15180 main ()
15182 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15184 return 0;
15186 _ACEOF
15187 if ac_fn_c_try_link "$LINENO"; then :
15188 save_LIBS="$LIBS"
15189 LIBS="-lpthread $LIBS"
15190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191 /* end confdefs.h. */
15192 #ifndef _GNU_SOURCE
15193 #define _GNU_SOURCE 1
15194 #endif
15195 #include <pthread.h>
15196 pthread_t th; void *status;
15198 main ()
15200 pthread_tryjoin_np (th, &status);
15202 return 0;
15204 _ACEOF
15205 if ac_fn_c_try_link "$LINENO"; then :
15206 enable_linux_futex=yes
15207 else
15208 if test x$cross_compiling = xno; then
15209 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15210 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15212 If so, please configure with --disable-linux-futex" >&5
15213 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15214 If so, please configure with --disable-linux-futex" >&2;}
15217 enable_linux_futex=yes
15219 rm -f core conftest.err conftest.$ac_objext \
15220 conftest$ac_exeext conftest.$ac_ext
15221 LIBS="$save_LIBS"
15223 rm -f core conftest.err conftest.$ac_objext \
15224 conftest$ac_exeext conftest.$ac_ext
15226 yes)
15227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228 /* end confdefs.h. */
15229 #include <sys/syscall.h>
15230 int lk;
15232 main ()
15234 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15236 return 0;
15238 _ACEOF
15239 if ac_fn_c_try_link "$LINENO"; then :
15241 else
15242 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15244 rm -f core conftest.err conftest.$ac_objext \
15245 conftest$ac_exeext conftest.$ac_ext
15247 esac
15250 enable_linux_futex=no
15252 esac
15253 if test x$enable_linux_futex = xyes; then
15258 # Check for pthread_{,attr_}[sg]etaffinity_np.
15259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260 /* end confdefs.h. */
15261 #define _GNU_SOURCE
15262 #include <pthread.h>
15264 main ()
15266 cpu_set_t cpuset;
15267 pthread_attr_t attr;
15268 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15269 if (CPU_ISSET (0, &cpuset))
15270 CPU_SET (1, &cpuset);
15271 else
15272 CPU_ZERO (&cpuset);
15273 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15274 pthread_attr_init (&attr);
15275 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15276 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15278 return 0;
15280 _ACEOF
15281 if ac_fn_c_try_link "$LINENO"; then :
15283 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15286 rm -f core conftest.err conftest.$ac_objext \
15287 conftest$ac_exeext conftest.$ac_ext
15289 # At least for glibc, clock_gettime is in librt. But don't pull that
15290 # in if it still doesn't give us the function we want.
15291 if test $ac_cv_func_clock_gettime = no; then
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15293 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15294 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15295 $as_echo_n "(cached) " >&6
15296 else
15297 ac_check_lib_save_LIBS=$LIBS
15298 LIBS="-lrt $LIBS"
15299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15300 /* end confdefs.h. */
15302 /* Override any GCC internal prototype to avoid an error.
15303 Use char because int might match the return type of a GCC
15304 builtin and then its argument prototype would still apply. */
15305 #ifdef __cplusplus
15306 extern "C"
15307 #endif
15308 char clock_gettime ();
15310 main ()
15312 return clock_gettime ();
15314 return 0;
15316 _ACEOF
15317 if ac_fn_c_try_link "$LINENO"; then :
15318 ac_cv_lib_rt_clock_gettime=yes
15319 else
15320 ac_cv_lib_rt_clock_gettime=no
15322 rm -f core conftest.err conftest.$ac_objext \
15323 conftest$ac_exeext conftest.$ac_ext
15324 LIBS=$ac_check_lib_save_LIBS
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15327 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15328 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15329 LIBS="-lrt $LIBS"
15331 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15337 # See if we support thread-local storage.
15340 # Check whether --enable-tls was given.
15341 if test "${enable_tls+set}" = set; then :
15342 enableval=$enable_tls;
15343 case "$enableval" in
15344 yes|no) ;;
15345 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15346 esac
15348 else
15349 enable_tls=yes
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15354 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15355 if test "${gcc_cv_have_tls+set}" = set; then :
15356 $as_echo_n "(cached) " >&6
15357 else
15359 if test "$cross_compiling" = yes; then :
15360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361 /* end confdefs.h. */
15362 __thread int a; int b; int main() { return a = b; }
15363 _ACEOF
15364 if ac_fn_c_try_link "$LINENO"; then :
15365 chktls_save_LDFLAGS="$LDFLAGS"
15366 case $host in
15367 *-*-linux*)
15368 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15370 esac
15371 chktls_save_CFLAGS="$CFLAGS"
15372 CFLAGS="-fPIC $CFLAGS"
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15375 int f() { return 0; }
15376 _ACEOF
15377 if ac_fn_c_try_link "$LINENO"; then :
15378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h. */
15380 __thread int a; int b; int f() { return a = b; }
15381 _ACEOF
15382 if ac_fn_c_try_link "$LINENO"; then :
15383 gcc_cv_have_tls=yes
15384 else
15385 gcc_cv_have_tls=no
15387 rm -f core conftest.err conftest.$ac_objext \
15388 conftest$ac_exeext conftest.$ac_ext
15389 else
15390 gcc_cv_have_tls=yes
15392 rm -f core conftest.err conftest.$ac_objext \
15393 conftest$ac_exeext conftest.$ac_ext
15394 CFLAGS="$chktls_save_CFLAGS"
15395 LDFLAGS="$chktls_save_LDFLAGS"
15396 else
15397 gcc_cv_have_tls=no
15399 rm -f core conftest.err conftest.$ac_objext \
15400 conftest$ac_exeext conftest.$ac_ext
15403 else
15404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15405 /* end confdefs.h. */
15406 __thread int a; int b; int main() { return a = b; }
15407 _ACEOF
15408 if ac_fn_c_try_run "$LINENO"; then :
15409 chktls_save_LDFLAGS="$LDFLAGS"
15410 LDFLAGS="-static $LDFLAGS"
15411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15412 /* end confdefs.h. */
15413 int main() { return 0; }
15414 _ACEOF
15415 if ac_fn_c_try_link "$LINENO"; then :
15416 if test "$cross_compiling" = yes; then :
15417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15419 as_fn_error "cannot run test program while cross compiling
15420 See \`config.log' for more details." "$LINENO" 5; }
15421 else
15422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15423 /* end confdefs.h. */
15424 __thread int a; int b; int main() { return a = b; }
15425 _ACEOF
15426 if ac_fn_c_try_run "$LINENO"; then :
15427 gcc_cv_have_tls=yes
15428 else
15429 gcc_cv_have_tls=no
15431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15432 conftest.$ac_objext conftest.beam conftest.$ac_ext
15435 else
15436 gcc_cv_have_tls=yes
15438 rm -f core conftest.err conftest.$ac_objext \
15439 conftest$ac_exeext conftest.$ac_ext
15440 LDFLAGS="$chktls_save_LDFLAGS"
15441 if test $gcc_cv_have_tls = yes; then
15442 chktls_save_CFLAGS="$CFLAGS"
15443 thread_CFLAGS=failed
15444 for flag in '' '-pthread' '-lpthread'; do
15445 CFLAGS="$flag $chktls_save_CFLAGS"
15446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h. */
15448 #include <pthread.h>
15449 void *g(void *d) { return NULL; }
15451 main ()
15453 pthread_t t; pthread_create(&t,NULL,g,NULL);
15455 return 0;
15457 _ACEOF
15458 if ac_fn_c_try_link "$LINENO"; then :
15459 thread_CFLAGS="$flag"
15461 rm -f core conftest.err conftest.$ac_objext \
15462 conftest$ac_exeext conftest.$ac_ext
15463 if test "X$thread_CFLAGS" != Xfailed; then
15464 break
15466 done
15467 CFLAGS="$chktls_save_CFLAGS"
15468 if test "X$thread_CFLAGS" != Xfailed; then
15469 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15470 if test "$cross_compiling" = yes; then :
15471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15473 as_fn_error "cannot run test program while cross compiling
15474 See \`config.log' for more details." "$LINENO" 5; }
15475 else
15476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15477 /* end confdefs.h. */
15478 #include <pthread.h>
15479 __thread int a;
15480 static int *volatile a_in_other_thread;
15481 static void *
15482 thread_func (void *arg)
15484 a_in_other_thread = &a;
15485 return (void *)0;
15488 main ()
15490 pthread_t thread;
15491 void *thread_retval;
15492 int *volatile a_in_main_thread;
15493 a_in_main_thread = &a;
15494 if (pthread_create (&thread, (pthread_attr_t *)0,
15495 thread_func, (void *)0))
15496 return 0;
15497 if (pthread_join (thread, &thread_retval))
15498 return 0;
15499 return (a_in_other_thread == a_in_main_thread);
15501 return 0;
15503 _ACEOF
15504 if ac_fn_c_try_run "$LINENO"; then :
15505 gcc_cv_have_tls=yes
15506 else
15507 gcc_cv_have_tls=no
15509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15510 conftest.$ac_objext conftest.beam conftest.$ac_ext
15513 CFLAGS="$chktls_save_CFLAGS"
15516 else
15517 gcc_cv_have_tls=no
15519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15520 conftest.$ac_objext conftest.beam conftest.$ac_ext
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15525 $as_echo "$gcc_cv_have_tls" >&6; }
15526 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15528 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15532 # See what sort of export controls are available.
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15535 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15536 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15537 $as_echo_n "(cached) " >&6
15538 else
15540 save_CFLAGS="$CFLAGS"
15541 CFLAGS="$CFLAGS -Werror"
15542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h. */
15544 void __attribute__((visibility("hidden"))) foo(void) { }
15546 main ()
15550 return 0;
15552 _ACEOF
15553 if ac_fn_c_try_compile "$LINENO"; then :
15554 libgomp_cv_have_attribute_visibility=yes
15555 else
15556 libgomp_cv_have_attribute_visibility=no
15558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15559 CFLAGS="$save_CFLAGS"
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15562 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15563 if test $libgomp_cv_have_attribute_visibility = yes; then
15565 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15570 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15571 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15572 $as_echo_n "(cached) " >&6
15573 else
15575 save_CFLAGS="$CFLAGS"
15576 CFLAGS="$CFLAGS -Werror"
15577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15578 /* end confdefs.h. */
15579 void __attribute__((dllexport)) foo(void) { }
15581 main ()
15585 return 0;
15587 _ACEOF
15588 if ac_fn_c_try_compile "$LINENO"; then :
15589 libgomp_cv_have_attribute_dllexport=yes
15590 else
15591 libgomp_cv_have_attribute_dllexport=no
15593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15594 CFLAGS="$save_CFLAGS"
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15597 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15598 if test $libgomp_cv_have_attribute_dllexport = yes; then
15600 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15605 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15606 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
15607 $as_echo_n "(cached) " >&6
15608 else
15610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15611 /* end confdefs.h. */
15613 void foo(void) { }
15614 extern void bar(void) __attribute__((alias("foo")));
15616 main ()
15618 bar();
15620 return 0;
15622 _ACEOF
15623 if ac_fn_c_try_link "$LINENO"; then :
15624 libgomp_cv_have_attribute_alias=yes
15625 else
15626 libgomp_cv_have_attribute_alias=no
15628 rm -f core conftest.err conftest.$ac_objext \
15629 conftest$ac_exeext conftest.$ac_ext
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15632 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15633 if test $libgomp_cv_have_attribute_alias = yes; then
15635 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15640 # Check whether --with-gnu-ld was given.
15641 if test "${with_gnu_ld+set}" = set; then :
15642 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15643 else
15644 with_gnu_ld=no
15647 ac_prog=ld
15648 if test "$GCC" = yes; then
15649 # Check if gcc -print-prog-name=ld gives a path.
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15651 $as_echo_n "checking for ld used by $CC... " >&6; }
15652 case $host in
15653 *-*-mingw*)
15654 # gcc leaves a trailing carriage return which upsets mingw
15655 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15657 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15658 esac
15659 case $ac_prog in
15660 # Accept absolute paths.
15661 [\\/]* | ?:[\\/]*)
15662 re_direlt='/[^/][^/]*/\.\./'
15663 # Canonicalize the pathname of ld
15664 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15665 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15666 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15667 done
15668 test -z "$LD" && LD="$ac_prog"
15671 # If it fails, then pretend we aren't using GCC.
15672 ac_prog=ld
15675 # If it is relative, then search for the first ld in PATH.
15676 with_gnu_ld=unknown
15678 esac
15679 elif test "$with_gnu_ld" = yes; then
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15681 $as_echo_n "checking for GNU ld... " >&6; }
15682 else
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15684 $as_echo_n "checking for non-GNU ld... " >&6; }
15686 if test "${lt_cv_path_LD+set}" = set; then :
15687 $as_echo_n "(cached) " >&6
15688 else
15689 if test -z "$LD"; then
15690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15691 for ac_dir in $PATH; do
15692 IFS="$lt_save_ifs"
15693 test -z "$ac_dir" && ac_dir=.
15694 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15695 lt_cv_path_LD="$ac_dir/$ac_prog"
15696 # Check to see if the program is GNU ld. I'd rather use --version,
15697 # but apparently some variants of GNU ld only accept -v.
15698 # Break only if it was the GNU/non-GNU ld that we prefer.
15699 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15700 *GNU* | *'with BFD'*)
15701 test "$with_gnu_ld" != no && break
15704 test "$with_gnu_ld" != yes && break
15706 esac
15708 done
15709 IFS="$lt_save_ifs"
15710 else
15711 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15715 LD="$lt_cv_path_LD"
15716 if test -n "$LD"; then
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15718 $as_echo "$LD" >&6; }
15719 else
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15721 $as_echo "no" >&6; }
15723 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15725 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15726 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15727 $as_echo_n "(cached) " >&6
15728 else
15729 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15730 case `$LD -v 2>&1 </dev/null` in
15731 *GNU* | *'with BFD'*)
15732 lt_cv_prog_gnu_ld=yes
15735 lt_cv_prog_gnu_ld=no
15737 esac
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15740 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15741 with_gnu_ld=$lt_cv_prog_gnu_ld
15749 # If we're not using GNU ld, then there's no point in even trying these
15750 # tests. Check for that first. We should have already tested for gld
15751 # by now (in libtool), but require it now just to be safe...
15752 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15753 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15757 # The name set by libtool depends on the version of libtool. Shame on us
15758 # for depending on an impl detail, but c'est la vie. Older versions used
15759 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15760 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15761 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
15762 # set (hence we're using an older libtool), then set it.
15763 if test x${with_gnu_ld+set} != xset; then
15764 if test x${ac_cv_prog_gnu_ld+set} != xset; then
15765 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
15766 with_gnu_ld=no
15767 else
15768 with_gnu_ld=$ac_cv_prog_gnu_ld
15772 # Start by getting the version number. I think the libtool test already
15773 # does some of this, but throws away the result.
15774 libgomp_ld_is_gold=no
15775 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15776 libgomp_ld_is_gold=yes
15779 ldver=`$LD --version 2>/dev/null |
15780 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
15782 libgomp_gnu_ld_version=`echo $ldver | \
15783 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15785 # Set --gc-sections.
15786 if test "$with_gnu_ld" = "notbroken"; then
15787 # GNU ld it is! Joy and bunny rabbits!
15789 # All these tests are for C++; save the language and the compiler flags.
15790 # Need to do this so that g++ won't try to link in libstdc++
15791 ac_test_CFLAGS="${CFLAGS+set}"
15792 ac_save_CFLAGS="$CFLAGS"
15793 CFLAGS='-x c++ -Wl,--gc-sections'
15795 # Check for -Wl,--gc-sections
15796 # XXX This test is broken at the moment, as symbols required for linking
15797 # are now in libsupc++ (not built yet). In addition, this test has
15798 # cored on solaris in the past. In addition, --gc-sections doesn't
15799 # really work at the moment (keeps on discarding used sections, first
15800 # .eh_frame and now some of the glibc sections for iconv).
15801 # Bzzzzt. Thanks for playing, maybe next time.
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15803 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15804 if test "$cross_compiling" = yes; then :
15805 ac_sectionLDflags=yes
15806 else
15807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15808 /* end confdefs.h. */
15810 int main(void)
15812 try { throw 1; }
15813 catch (...) { };
15814 return 0;
15817 _ACEOF
15818 if ac_fn_c_try_run "$LINENO"; then :
15819 ac_sectionLDflags=yes
15820 else
15821 ac_sectionLDflags=no
15823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15824 conftest.$ac_objext conftest.beam conftest.$ac_ext
15827 if test "$ac_test_CFLAGS" = set; then
15828 CFLAGS="$ac_save_CFLAGS"
15829 else
15830 # this is the suspicious part
15831 CFLAGS=''
15833 if test "$ac_sectionLDflags" = "yes"; then
15834 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15837 $as_echo "$ac_sectionLDflags" >&6; }
15840 # Set linker optimization flags.
15841 if test x"$with_gnu_ld" = x"yes"; then
15842 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15850 # Check whether --enable-symvers was given.
15851 if test "${enable_symvers+set}" = set; then :
15852 enableval=$enable_symvers;
15853 case "$enableval" in
15854 yes|no|gnu*|sun) ;;
15855 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
15856 esac
15858 else
15859 enable_symvers=yes
15864 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
15865 # don't know enough about $LD to do tricks...
15868 # Turn a 'yes' into a suitable default.
15869 if test x$enable_symvers = xyes ; then
15870 # FIXME The following test is too strict, in theory.
15871 if test $enable_shared = no || test "x$LD" = x; then
15872 enable_symvers=no
15873 else
15874 if test $with_gnu_ld = yes ; then
15875 enable_symvers=gnu
15876 else
15877 case ${target_os} in
15878 # Sun symbol versioning exists since Solaris 2.5.
15879 solaris2.[5-9]* | solaris2.1[0-9]*)
15880 enable_symvers=sun ;;
15882 enable_symvers=no ;;
15883 esac
15888 # Check if 'sun' was requested on non-Solaris 2 platforms.
15889 if test x$enable_symvers = xsun ; then
15890 case ${target_os} in
15891 solaris2*)
15892 # All fine.
15895 # Unlikely to work.
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
15897 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
15899 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15901 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15902 enable_symvers=no
15904 esac
15907 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15908 if test $enable_symvers != no; then
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15910 $as_echo_n "checking for shared libgcc... " >&6; }
15911 ac_save_CFLAGS="$CFLAGS"
15912 CFLAGS=' -lgcc_s'
15913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h. */
15917 main ()
15919 return 0;
15921 return 0;
15923 _ACEOF
15924 if ac_fn_c_try_link "$LINENO"; then :
15925 libgomp_shared_libgcc=yes
15926 else
15927 libgomp_shared_libgcc=no
15929 rm -f core conftest.err conftest.$ac_objext \
15930 conftest$ac_exeext conftest.$ac_ext
15931 CFLAGS="$ac_save_CFLAGS"
15932 if test $libgomp_shared_libgcc = no; then
15933 cat > conftest.c <<EOF
15934 int main (void) { return 0; }
15936 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15937 -shared -shared-libgcc -o conftest.so \
15938 conftest.c -v 2>&1 >/dev/null \
15939 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15940 rm -f conftest.c conftest.so
15941 if test x${libgomp_libgcc_s_suffix+set} = xset; then
15942 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
15943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944 /* end confdefs.h. */
15947 main ()
15949 return 0;
15951 return 0;
15953 _ACEOF
15954 if ac_fn_c_try_link "$LINENO"; then :
15955 libgomp_shared_libgcc=yes
15957 rm -f core conftest.err conftest.$ac_objext \
15958 conftest$ac_exeext conftest.$ac_ext
15959 CFLAGS="$ac_save_CFLAGS"
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
15963 $as_echo "$libgomp_shared_libgcc" >&6; }
15966 # For GNU ld, we need at least this version. The format is described in
15967 # LIBGOMP_CHECK_LINKER_FEATURES above.
15968 libgomp_min_gnu_ld_version=21400
15969 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
15971 # Check to see if unspecified "yes" value can win, given results above.
15972 # Change "yes" into either "no" or a style name.
15973 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
15974 if test $with_gnu_ld = yes; then
15975 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
15976 enable_symvers=gnu
15977 elif test $libgomp_ld_is_gold = yes ; then
15978 enable_symvers=gnu
15979 else
15980 # The right tools, the right setup, but too old. Fallbacks?
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
15982 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15984 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15986 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
15988 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
15989 if test $libgomp_gnu_ld_version -ge 21200 ; then
15990 # Globbing fix is present, proper block support is not.
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15992 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15993 enable_symvers=no
15994 else
15995 # 2.11 or older.
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15997 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15998 enable_symvers=no
16001 elif test $enable_symvers = sun; then
16002 : All interesting versions of Sun ld support sun style symbol versioning.
16003 else
16004 # just fail for now
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16006 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16008 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16010 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16012 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16013 enable_symvers=no
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16018 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16019 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
16020 $as_echo_n "(cached) " >&6
16021 else
16023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024 /* end confdefs.h. */
16025 void foo (void); __asm (".symver foo, bar@SYMVER");
16027 main ()
16031 return 0;
16033 _ACEOF
16034 if ac_fn_c_try_compile "$LINENO"; then :
16035 libgomp_cv_have_as_symver_directive=yes
16036 else
16037 libgomp_cv_have_as_symver_directive=no
16039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16042 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16043 if test $libgomp_cv_have_as_symver_directive = yes; then
16045 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16049 if test $enable_symvers != no; then
16050 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16051 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16052 else
16053 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16054 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16057 if test $enable_symvers = gnu; then
16058 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16059 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16060 else
16061 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16062 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16065 if test $enable_symvers = sun; then
16066 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16067 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16068 else
16069 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16070 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16074 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16076 if test $enable_symvers != no ; then
16077 case ${target_os} in
16078 # The Solaris 2 runtime linker doesn't support the GNU extension of
16079 # binding the same symbol to different versions
16080 solaris2*)
16082 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16085 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16088 esac
16092 if test $enable_symvers = gnu; then
16094 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16098 # Get target configury.
16099 . ${srcdir}/configure.tgt
16100 CFLAGS="$save_CFLAGS $XCFLAGS"
16102 # Check for __sync_val_compare_and_swap, but only after the target has
16103 # had a chance to set XCFLAGS.
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16106 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16107 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16108 $as_echo_n "(cached) " >&6
16109 else
16111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16112 /* end confdefs.h. */
16115 main ()
16117 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16119 return 0;
16121 _ACEOF
16122 if ac_fn_c_try_link "$LINENO"; then :
16123 libgomp_cv_have_sync_builtins=yes
16124 else
16125 libgomp_cv_have_sync_builtins=no
16127 rm -f core conftest.err conftest.$ac_objext \
16128 conftest$ac_exeext conftest.$ac_ext
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16131 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16132 if test $libgomp_cv_have_sync_builtins = yes; then
16134 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16138 XCFLAGS="$XCFLAGS$XPCFLAGS"
16144 # Cleanup and exit.
16145 CFLAGS="$save_CFLAGS"
16146 cat >confcache <<\_ACEOF
16147 # This file is a shell script that caches the results of configure
16148 # tests run on this system so they can be shared between configure
16149 # scripts and configure runs, see configure's option --config-cache.
16150 # It is not useful on other systems. If it contains results you don't
16151 # want to keep, you may remove or edit it.
16153 # config.status only pays attention to the cache file if you give it
16154 # the --recheck option to rerun configure.
16156 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16157 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16158 # following values.
16160 _ACEOF
16162 # The following way of writing the cache mishandles newlines in values,
16163 # but we know of no workaround that is simple, portable, and efficient.
16164 # So, we kill variables containing newlines.
16165 # Ultrix sh set writes to stderr and can't be redirected directly,
16166 # and sets the high bit in the cache file unless we assign to the vars.
16168 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16169 eval ac_val=\$$ac_var
16170 case $ac_val in #(
16171 *${as_nl}*)
16172 case $ac_var in #(
16173 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16174 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16175 esac
16176 case $ac_var in #(
16177 _ | IFS | as_nl) ;; #(
16178 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16179 *) { eval $ac_var=; unset $ac_var;} ;;
16180 esac ;;
16181 esac
16182 done
16184 (set) 2>&1 |
16185 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16186 *${as_nl}ac_space=\ *)
16187 # `set' does not quote correctly, so add quotes: double-quote
16188 # substitution turns \\\\ into \\, and sed turns \\ into \.
16189 sed -n \
16190 "s/'/'\\\\''/g;
16191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16192 ;; #(
16194 # `set' quotes correctly as required by POSIX, so do not add quotes.
16195 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16197 esac |
16198 sort
16200 sed '
16201 /^ac_cv_env_/b end
16202 t clear
16203 :clear
16204 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16205 t end
16206 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16207 :end' >>confcache
16208 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16209 if test -w "$cache_file"; then
16210 test "x$cache_file" != "x/dev/null" &&
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16212 $as_echo "$as_me: updating cache $cache_file" >&6;}
16213 cat confcache >$cache_file
16214 else
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16216 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16219 rm -f confcache
16221 if test ${multilib} = yes; then
16222 multilib_arg="--enable-multilib"
16223 else
16224 multilib_arg=
16227 # Set up the set of libraries that we need to link against for libgomp.
16228 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16229 # which will force linkage against -lpthread (or equivalent for the system).
16230 # That's not 100% ideal, but about the best we can do easily.
16231 if test $enable_shared = yes; then
16232 link_gomp="-lgomp %{static: $LIBS}"
16233 else
16234 link_gomp="-lgomp $LIBS"
16238 if test "$ac_cv_fc_compiler_gnu" = yes; then
16239 USE_FORTRAN_TRUE=
16240 USE_FORTRAN_FALSE='#'
16241 else
16242 USE_FORTRAN_TRUE='#'
16243 USE_FORTRAN_FALSE=
16247 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16248 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16249 # the underscore here and update the PREREQ. If it doesn't, then we'll
16250 # need to copy this macro to our acinclude.m4.
16251 save_CFLAGS="$CFLAGS"
16252 for i in $config_path; do
16253 if test -f $srcdir/config/$i/omp-lock.h; then
16254 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16255 break
16257 done
16259 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16261 else
16262 as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16266 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16271 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16276 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16281 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16283 else
16284 as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16288 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16293 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16298 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16304 # If the lock fits in an integer, then arrange for Fortran to use that
16305 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16306 # Except that we don't have a way at present to multi-lib the installed
16307 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16308 # actual target.
16309 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16310 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16311 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16312 OMP_LOCK_KIND=8
16314 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16315 OMP_NEST_LOCK_KIND=8
16317 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16318 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16319 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16320 OMP_LOCK_25_KIND=8
16322 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16323 OMP_NEST_LOCK_25_KIND=8
16338 CFLAGS="$save_CFLAGS"
16340 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16342 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
16344 ac_config_files="$ac_config_files libgomp.spec"
16346 cat >confcache <<\_ACEOF
16347 # This file is a shell script that caches the results of configure
16348 # tests run on this system so they can be shared between configure
16349 # scripts and configure runs, see configure's option --config-cache.
16350 # It is not useful on other systems. If it contains results you don't
16351 # want to keep, you may remove or edit it.
16353 # config.status only pays attention to the cache file if you give it
16354 # the --recheck option to rerun configure.
16356 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16357 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16358 # following values.
16360 _ACEOF
16362 # The following way of writing the cache mishandles newlines in values,
16363 # but we know of no workaround that is simple, portable, and efficient.
16364 # So, we kill variables containing newlines.
16365 # Ultrix sh set writes to stderr and can't be redirected directly,
16366 # and sets the high bit in the cache file unless we assign to the vars.
16368 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16369 eval ac_val=\$$ac_var
16370 case $ac_val in #(
16371 *${as_nl}*)
16372 case $ac_var in #(
16373 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16374 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16375 esac
16376 case $ac_var in #(
16377 _ | IFS | as_nl) ;; #(
16378 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16379 *) { eval $ac_var=; unset $ac_var;} ;;
16380 esac ;;
16381 esac
16382 done
16384 (set) 2>&1 |
16385 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16386 *${as_nl}ac_space=\ *)
16387 # `set' does not quote correctly, so add quotes: double-quote
16388 # substitution turns \\\\ into \\, and sed turns \\ into \.
16389 sed -n \
16390 "s/'/'\\\\''/g;
16391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16392 ;; #(
16394 # `set' quotes correctly as required by POSIX, so do not add quotes.
16395 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16397 esac |
16398 sort
16400 sed '
16401 /^ac_cv_env_/b end
16402 t clear
16403 :clear
16404 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16405 t end
16406 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16407 :end' >>confcache
16408 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16409 if test -w "$cache_file"; then
16410 test "x$cache_file" != "x/dev/null" &&
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16412 $as_echo "$as_me: updating cache $cache_file" >&6;}
16413 cat confcache >$cache_file
16414 else
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16416 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16419 rm -f confcache
16421 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16422 # Let make expand exec_prefix.
16423 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16425 DEFS=-DHAVE_CONFIG_H
16427 ac_libobjs=
16428 ac_ltlibobjs=
16429 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16430 # 1. Remove the extension, and $U if already installed.
16431 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16432 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16433 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16434 # will be set to the directory where LIBOBJS objects are built.
16435 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16436 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16437 done
16438 LIBOBJS=$ac_libobjs
16440 LTLIBOBJS=$ac_ltlibobjs
16443 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16444 as_fn_error "conditional \"GENINSRC\" was never defined.
16445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16447 if test -n "$EXEEXT"; then
16448 am__EXEEXT_TRUE=
16449 am__EXEEXT_FALSE='#'
16450 else
16451 am__EXEEXT_TRUE='#'
16452 am__EXEEXT_FALSE=
16455 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16456 as_fn_error "conditional \"AMDEP\" was never defined.
16457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16459 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16460 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16463 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16464 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16467 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16468 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16471 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16472 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16475 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16476 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16479 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16480 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16483 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16484 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16488 : ${CONFIG_STATUS=./config.status}
16489 ac_write_fail=0
16490 ac_clean_files_save=$ac_clean_files
16491 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16493 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16494 as_write_fail=0
16495 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16496 #! $SHELL
16497 # Generated by $as_me.
16498 # Run this file to recreate the current configuration.
16499 # Compiler output produced by configure, useful for debugging
16500 # configure, is in config.log if it exists.
16502 debug=false
16503 ac_cs_recheck=false
16504 ac_cs_silent=false
16506 SHELL=\${CONFIG_SHELL-$SHELL}
16507 export SHELL
16508 _ASEOF
16509 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16510 ## -------------------- ##
16511 ## M4sh Initialization. ##
16512 ## -------------------- ##
16514 # Be more Bourne compatible
16515 DUALCASE=1; export DUALCASE # for MKS sh
16516 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16517 emulate sh
16518 NULLCMD=:
16519 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16520 # is contrary to our usage. Disable this feature.
16521 alias -g '${1+"$@"}'='"$@"'
16522 setopt NO_GLOB_SUBST
16523 else
16524 case `(set -o) 2>/dev/null` in #(
16525 *posix*) :
16526 set -o posix ;; #(
16527 *) :
16529 esac
16533 as_nl='
16535 export as_nl
16536 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16537 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16538 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16539 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16540 # Prefer a ksh shell builtin over an external printf program on Solaris,
16541 # but without wasting forks for bash or zsh.
16542 if test -z "$BASH_VERSION$ZSH_VERSION" \
16543 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16544 as_echo='print -r --'
16545 as_echo_n='print -rn --'
16546 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16547 as_echo='printf %s\n'
16548 as_echo_n='printf %s'
16549 else
16550 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16551 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16552 as_echo_n='/usr/ucb/echo -n'
16553 else
16554 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16555 as_echo_n_body='eval
16556 arg=$1;
16557 case $arg in #(
16558 *"$as_nl"*)
16559 expr "X$arg" : "X\\(.*\\)$as_nl";
16560 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16561 esac;
16562 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16564 export as_echo_n_body
16565 as_echo_n='sh -c $as_echo_n_body as_echo'
16567 export as_echo_body
16568 as_echo='sh -c $as_echo_body as_echo'
16571 # The user is always right.
16572 if test "${PATH_SEPARATOR+set}" != set; then
16573 PATH_SEPARATOR=:
16574 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16575 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16576 PATH_SEPARATOR=';'
16581 # IFS
16582 # We need space, tab and new line, in precisely that order. Quoting is
16583 # there to prevent editors from complaining about space-tab.
16584 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16585 # splitting by setting IFS to empty value.)
16586 IFS=" "" $as_nl"
16588 # Find who we are. Look in the path if we contain no directory separator.
16589 case $0 in #((
16590 *[\\/]* ) as_myself=$0 ;;
16591 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592 for as_dir in $PATH
16594 IFS=$as_save_IFS
16595 test -z "$as_dir" && as_dir=.
16596 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16597 done
16598 IFS=$as_save_IFS
16601 esac
16602 # We did not find ourselves, most probably we were run as `sh COMMAND'
16603 # in which case we are not to be found in the path.
16604 if test "x$as_myself" = x; then
16605 as_myself=$0
16607 if test ! -f "$as_myself"; then
16608 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16609 exit 1
16612 # Unset variables that we do not need and which cause bugs (e.g. in
16613 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16614 # suppresses any "Segmentation fault" message there. '((' could
16615 # trigger a bug in pdksh 5.2.14.
16616 for as_var in BASH_ENV ENV MAIL MAILPATH
16617 do eval test x\${$as_var+set} = xset \
16618 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16619 done
16620 PS1='$ '
16621 PS2='> '
16622 PS4='+ '
16624 # NLS nuisances.
16625 LC_ALL=C
16626 export LC_ALL
16627 LANGUAGE=C
16628 export LANGUAGE
16630 # CDPATH.
16631 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16634 # as_fn_error ERROR [LINENO LOG_FD]
16635 # ---------------------------------
16636 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16637 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16638 # script with status $?, using 1 if that was 0.
16639 as_fn_error ()
16641 as_status=$?; test $as_status -eq 0 && as_status=1
16642 if test "$3"; then
16643 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16644 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16646 $as_echo "$as_me: error: $1" >&2
16647 as_fn_exit $as_status
16648 } # as_fn_error
16651 # as_fn_set_status STATUS
16652 # -----------------------
16653 # Set $? to STATUS, without forking.
16654 as_fn_set_status ()
16656 return $1
16657 } # as_fn_set_status
16659 # as_fn_exit STATUS
16660 # -----------------
16661 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16662 as_fn_exit ()
16664 set +e
16665 as_fn_set_status $1
16666 exit $1
16667 } # as_fn_exit
16669 # as_fn_unset VAR
16670 # ---------------
16671 # Portably unset VAR.
16672 as_fn_unset ()
16674 { eval $1=; unset $1;}
16676 as_unset=as_fn_unset
16677 # as_fn_append VAR VALUE
16678 # ----------------------
16679 # Append the text in VALUE to the end of the definition contained in VAR. Take
16680 # advantage of any shell optimizations that allow amortized linear growth over
16681 # repeated appends, instead of the typical quadratic growth present in naive
16682 # implementations.
16683 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16684 eval 'as_fn_append ()
16686 eval $1+=\$2
16688 else
16689 as_fn_append ()
16691 eval $1=\$$1\$2
16693 fi # as_fn_append
16695 # as_fn_arith ARG...
16696 # ------------------
16697 # Perform arithmetic evaluation on the ARGs, and store the result in the
16698 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16699 # must be portable across $(()) and expr.
16700 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16701 eval 'as_fn_arith ()
16703 as_val=$(( $* ))
16705 else
16706 as_fn_arith ()
16708 as_val=`expr "$@" || test $? -eq 1`
16710 fi # as_fn_arith
16713 if expr a : '\(a\)' >/dev/null 2>&1 &&
16714 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16715 as_expr=expr
16716 else
16717 as_expr=false
16720 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16721 as_basename=basename
16722 else
16723 as_basename=false
16726 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16727 as_dirname=dirname
16728 else
16729 as_dirname=false
16732 as_me=`$as_basename -- "$0" ||
16733 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16734 X"$0" : 'X\(//\)$' \| \
16735 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16736 $as_echo X/"$0" |
16737 sed '/^.*\/\([^/][^/]*\)\/*$/{
16738 s//\1/
16741 /^X\/\(\/\/\)$/{
16742 s//\1/
16745 /^X\/\(\/\).*/{
16746 s//\1/
16749 s/.*/./; q'`
16751 # Avoid depending upon Character Ranges.
16752 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16753 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16754 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16755 as_cr_digits='0123456789'
16756 as_cr_alnum=$as_cr_Letters$as_cr_digits
16758 ECHO_C= ECHO_N= ECHO_T=
16759 case `echo -n x` in #(((((
16760 -n*)
16761 case `echo 'xy\c'` in
16762 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16763 xy) ECHO_C='\c';;
16764 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16765 ECHO_T=' ';;
16766 esac;;
16768 ECHO_N='-n';;
16769 esac
16771 rm -f conf$$ conf$$.exe conf$$.file
16772 if test -d conf$$.dir; then
16773 rm -f conf$$.dir/conf$$.file
16774 else
16775 rm -f conf$$.dir
16776 mkdir conf$$.dir 2>/dev/null
16778 if (echo >conf$$.file) 2>/dev/null; then
16779 if ln -s conf$$.file conf$$ 2>/dev/null; then
16780 as_ln_s='ln -s'
16781 # ... but there are two gotchas:
16782 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16783 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16784 # In both cases, we have to default to `cp -p'.
16785 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16786 as_ln_s='cp -p'
16787 elif ln conf$$.file conf$$ 2>/dev/null; then
16788 as_ln_s=ln
16789 else
16790 as_ln_s='cp -p'
16792 else
16793 as_ln_s='cp -p'
16795 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16796 rmdir conf$$.dir 2>/dev/null
16799 # as_fn_mkdir_p
16800 # -------------
16801 # Create "$as_dir" as a directory, including parents if necessary.
16802 as_fn_mkdir_p ()
16805 case $as_dir in #(
16806 -*) as_dir=./$as_dir;;
16807 esac
16808 test -d "$as_dir" || eval $as_mkdir_p || {
16809 as_dirs=
16810 while :; do
16811 case $as_dir in #(
16812 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16813 *) as_qdir=$as_dir;;
16814 esac
16815 as_dirs="'$as_qdir' $as_dirs"
16816 as_dir=`$as_dirname -- "$as_dir" ||
16817 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16818 X"$as_dir" : 'X\(//\)[^/]' \| \
16819 X"$as_dir" : 'X\(//\)$' \| \
16820 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16821 $as_echo X"$as_dir" |
16822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16823 s//\1/
16826 /^X\(\/\/\)[^/].*/{
16827 s//\1/
16830 /^X\(\/\/\)$/{
16831 s//\1/
16834 /^X\(\/\).*/{
16835 s//\1/
16838 s/.*/./; q'`
16839 test -d "$as_dir" && break
16840 done
16841 test -z "$as_dirs" || eval "mkdir $as_dirs"
16842 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16845 } # as_fn_mkdir_p
16846 if mkdir -p . 2>/dev/null; then
16847 as_mkdir_p='mkdir -p "$as_dir"'
16848 else
16849 test -d ./-p && rmdir ./-p
16850 as_mkdir_p=false
16853 if test -x / >/dev/null 2>&1; then
16854 as_test_x='test -x'
16855 else
16856 if ls -dL / >/dev/null 2>&1; then
16857 as_ls_L_option=L
16858 else
16859 as_ls_L_option=
16861 as_test_x='
16862 eval sh -c '\''
16863 if test -d "$1"; then
16864 test -d "$1/.";
16865 else
16866 case $1 in #(
16867 -*)set "./$1";;
16868 esac;
16869 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16870 ???[sx]*):;;*)false;;esac;fi
16871 '\'' sh
16874 as_executable_p=$as_test_x
16876 # Sed expression to map a string onto a valid CPP name.
16877 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16879 # Sed expression to map a string onto a valid variable name.
16880 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16883 exec 6>&1
16884 ## ----------------------------------- ##
16885 ## Main body of $CONFIG_STATUS script. ##
16886 ## ----------------------------------- ##
16887 _ASEOF
16888 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16891 # Save the log message, to keep $0 and so on meaningful, and to
16892 # report actual input values of CONFIG_FILES etc. instead of their
16893 # values after options handling.
16894 ac_log="
16895 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
16896 generated by GNU Autoconf 2.64. Invocation command line was
16898 CONFIG_FILES = $CONFIG_FILES
16899 CONFIG_HEADERS = $CONFIG_HEADERS
16900 CONFIG_LINKS = $CONFIG_LINKS
16901 CONFIG_COMMANDS = $CONFIG_COMMANDS
16902 $ $0 $@
16904 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16907 _ACEOF
16909 case $ac_config_files in *"
16910 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16911 esac
16913 case $ac_config_headers in *"
16914 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16915 esac
16918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16919 # Files that config.status was made for.
16920 config_files="$ac_config_files"
16921 config_headers="$ac_config_headers"
16922 config_commands="$ac_config_commands"
16924 _ACEOF
16926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16927 ac_cs_usage="\
16928 \`$as_me' instantiates files and other configuration actions
16929 from templates according to the current configuration. Unless the files
16930 and actions are specified as TAGs, all are instantiated by default.
16932 Usage: $0 [OPTION]... [TAG]...
16934 -h, --help print this help, then exit
16935 -V, --version print version number and configuration settings, then exit
16936 -q, --quiet, --silent
16937 do not print progress messages
16938 -d, --debug don't remove temporary files
16939 --recheck update $as_me by reconfiguring in the same conditions
16940 --file=FILE[:TEMPLATE]
16941 instantiate the configuration file FILE
16942 --header=FILE[:TEMPLATE]
16943 instantiate the configuration header FILE
16945 Configuration files:
16946 $config_files
16948 Configuration headers:
16949 $config_headers
16951 Configuration commands:
16952 $config_commands
16954 Report bugs to the package provider.
16955 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
16956 General help using GNU software: <http://www.gnu.org/gethelp/>."
16958 _ACEOF
16959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16960 ac_cs_version="\\
16961 GNU OpenMP Runtime Library config.status 1.0
16962 configured by $0, generated by GNU Autoconf 2.64,
16963 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16965 Copyright (C) 2009 Free Software Foundation, Inc.
16966 This config.status script is free software; the Free Software Foundation
16967 gives unlimited permission to copy, distribute and modify it."
16969 ac_pwd='$ac_pwd'
16970 srcdir='$srcdir'
16971 INSTALL='$INSTALL'
16972 MKDIR_P='$MKDIR_P'
16973 AWK='$AWK'
16974 test -n "\$AWK" || AWK=awk
16975 _ACEOF
16977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16978 # The default lists apply if the user does not specify any file.
16979 ac_need_defaults=:
16980 while test $# != 0
16982 case $1 in
16983 --*=*)
16984 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16985 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16986 ac_shift=:
16989 ac_option=$1
16990 ac_optarg=$2
16991 ac_shift=shift
16993 esac
16995 case $ac_option in
16996 # Handling of the options.
16997 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16998 ac_cs_recheck=: ;;
16999 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17000 $as_echo "$ac_cs_version"; exit ;;
17001 --debug | --debu | --deb | --de | --d | -d )
17002 debug=: ;;
17003 --file | --fil | --fi | --f )
17004 $ac_shift
17005 case $ac_optarg in
17006 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17007 esac
17008 as_fn_append CONFIG_FILES " '$ac_optarg'"
17009 ac_need_defaults=false;;
17010 --header | --heade | --head | --hea )
17011 $ac_shift
17012 case $ac_optarg in
17013 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17014 esac
17015 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17016 ac_need_defaults=false;;
17017 --he | --h)
17018 # Conflict between --help and --header
17019 as_fn_error "ambiguous option: \`$1'
17020 Try \`$0 --help' for more information.";;
17021 --help | --hel | -h )
17022 $as_echo "$ac_cs_usage"; exit ;;
17023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17024 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17025 ac_cs_silent=: ;;
17027 # This is an error.
17028 -*) as_fn_error "unrecognized option: \`$1'
17029 Try \`$0 --help' for more information." ;;
17031 *) as_fn_append ac_config_targets " $1"
17032 ac_need_defaults=false ;;
17034 esac
17035 shift
17036 done
17038 ac_configure_extra_args=
17040 if $ac_cs_silent; then
17041 exec 6>/dev/null
17042 ac_configure_extra_args="$ac_configure_extra_args --silent"
17045 _ACEOF
17046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17047 if \$ac_cs_recheck; then
17048 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17049 shift
17050 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17051 CONFIG_SHELL='$SHELL'
17052 export CONFIG_SHELL
17053 exec "\$@"
17056 _ACEOF
17057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17058 exec 5>>config.log
17060 echo
17061 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17062 ## Running $as_me. ##
17063 _ASBOX
17064 $as_echo "$ac_log"
17065 } >&5
17067 _ACEOF
17068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17070 # INIT-COMMANDS
17073 srcdir="$srcdir"
17074 host="$host"
17075 target="$target"
17076 with_multisubdir="$with_multisubdir"
17077 with_multisrctop="$with_multisrctop"
17078 with_target_subdir="$with_target_subdir"
17079 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17080 multi_basedir="$multi_basedir"
17081 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17082 CC="$CC"
17083 CXX="$CXX"
17084 GFORTRAN="$GFORTRAN"
17085 GCJ="$GCJ"
17086 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17089 # The HP-UX ksh and POSIX shell print the target directory to stdout
17090 # if CDPATH is set.
17091 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17093 sed_quote_subst='$sed_quote_subst'
17094 double_quote_subst='$double_quote_subst'
17095 delay_variable_subst='$delay_variable_subst'
17096 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17097 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17098 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17099 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17100 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17101 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17102 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17103 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17104 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17105 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17106 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17107 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17108 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17109 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17110 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17111 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17112 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17113 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17114 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17115 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17116 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17117 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17118 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17119 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17120 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17121 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17122 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17123 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17124 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17125 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17126 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17127 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17128 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17129 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17130 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17131 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17132 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17133 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17134 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17135 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17136 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17137 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17138 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17139 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17140 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17141 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17142 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17143 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17144 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17145 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17146 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17147 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17148 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17149 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17150 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17151 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17152 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17153 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17154 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17155 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17156 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17157 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17158 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17159 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17160 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17161 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17162 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17163 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17164 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17165 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17166 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17167 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17168 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17169 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17170 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17171 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17172 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17173 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17174 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17175 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17176 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17177 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17178 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17179 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17180 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17181 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17182 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17183 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17184 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17185 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17186 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17187 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17188 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17189 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17190 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17191 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17192 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17193 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17194 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17195 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17196 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17197 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17198 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17199 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17200 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17201 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17202 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17203 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17204 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17205 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17206 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17207 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17208 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17209 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17210 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17211 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17212 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17213 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17214 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17215 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17216 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17217 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17218 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17219 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17220 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17221 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17222 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17223 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17224 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17225 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17226 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17227 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17228 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17229 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17230 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17231 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17232 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17233 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17234 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17235 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17236 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17237 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17238 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17239 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17240 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17241 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17242 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17243 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17244 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17245 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17246 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17247 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17248 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17249 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17250 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17251 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17252 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17253 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17254 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17255 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17256 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17257 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17258 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17259 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17260 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17261 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17262 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17263 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17264 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17265 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17266 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17267 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17268 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17269 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17270 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17272 LTCC='$LTCC'
17273 LTCFLAGS='$LTCFLAGS'
17274 compiler='$compiler_DEFAULT'
17276 # A function that is used when there is no print builtin or printf.
17277 func_fallback_echo ()
17279 eval 'cat <<_LTECHO_EOF
17281 _LTECHO_EOF'
17284 # Quote evaled strings.
17285 for var in SHELL \
17286 ECHO \
17287 SED \
17288 GREP \
17289 EGREP \
17290 FGREP \
17291 LD \
17292 NM \
17293 LN_S \
17294 lt_SP2NL \
17295 lt_NL2SP \
17296 reload_flag \
17297 OBJDUMP \
17298 deplibs_check_method \
17299 file_magic_cmd \
17300 AR \
17301 AR_FLAGS \
17302 STRIP \
17303 RANLIB \
17304 CC \
17305 CFLAGS \
17306 compiler \
17307 lt_cv_sys_global_symbol_pipe \
17308 lt_cv_sys_global_symbol_to_cdecl \
17309 lt_cv_sys_global_symbol_to_c_name_address \
17310 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17311 lt_prog_compiler_no_builtin_flag \
17312 lt_prog_compiler_wl \
17313 lt_prog_compiler_pic \
17314 lt_prog_compiler_static \
17315 lt_cv_prog_compiler_c_o \
17316 need_locks \
17317 DSYMUTIL \
17318 NMEDIT \
17319 LIPO \
17320 OTOOL \
17321 OTOOL64 \
17322 shrext_cmds \
17323 export_dynamic_flag_spec \
17324 whole_archive_flag_spec \
17325 compiler_needs_object \
17326 with_gnu_ld \
17327 allow_undefined_flag \
17328 no_undefined_flag \
17329 hardcode_libdir_flag_spec \
17330 hardcode_libdir_flag_spec_ld \
17331 hardcode_libdir_separator \
17332 fix_srcfile_path \
17333 exclude_expsyms \
17334 include_expsyms \
17335 file_list_spec \
17336 variables_saved_for_relink \
17337 libname_spec \
17338 library_names_spec \
17339 soname_spec \
17340 install_override_mode \
17341 finish_eval \
17342 old_striplib \
17343 striplib \
17344 compiler_lib_search_dirs \
17345 predep_objects \
17346 postdep_objects \
17347 predeps \
17348 postdeps \
17349 compiler_lib_search_path \
17350 LD_FC \
17351 reload_flag_FC \
17352 compiler_FC \
17353 lt_prog_compiler_no_builtin_flag_FC \
17354 lt_prog_compiler_wl_FC \
17355 lt_prog_compiler_pic_FC \
17356 lt_prog_compiler_static_FC \
17357 lt_cv_prog_compiler_c_o_FC \
17358 export_dynamic_flag_spec_FC \
17359 whole_archive_flag_spec_FC \
17360 compiler_needs_object_FC \
17361 with_gnu_ld_FC \
17362 allow_undefined_flag_FC \
17363 no_undefined_flag_FC \
17364 hardcode_libdir_flag_spec_FC \
17365 hardcode_libdir_flag_spec_ld_FC \
17366 hardcode_libdir_separator_FC \
17367 fix_srcfile_path_FC \
17368 exclude_expsyms_FC \
17369 include_expsyms_FC \
17370 file_list_spec_FC \
17371 compiler_lib_search_dirs_FC \
17372 predep_objects_FC \
17373 postdep_objects_FC \
17374 predeps_FC \
17375 postdeps_FC \
17376 compiler_lib_search_path_FC; do
17377 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17378 *[\\\\\\\`\\"\\\$]*)
17379 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17382 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17384 esac
17385 done
17387 # Double-quote double-evaled strings.
17388 for var in reload_cmds \
17389 old_postinstall_cmds \
17390 old_postuninstall_cmds \
17391 old_archive_cmds \
17392 extract_expsyms_cmds \
17393 old_archive_from_new_cmds \
17394 old_archive_from_expsyms_cmds \
17395 archive_cmds \
17396 archive_expsym_cmds \
17397 module_cmds \
17398 module_expsym_cmds \
17399 export_symbols_cmds \
17400 prelink_cmds \
17401 postinstall_cmds \
17402 postuninstall_cmds \
17403 finish_cmds \
17404 sys_lib_search_path_spec \
17405 sys_lib_dlsearch_path_spec \
17406 reload_cmds_FC \
17407 old_archive_cmds_FC \
17408 old_archive_from_new_cmds_FC \
17409 old_archive_from_expsyms_cmds_FC \
17410 archive_cmds_FC \
17411 archive_expsym_cmds_FC \
17412 module_cmds_FC \
17413 module_expsym_cmds_FC \
17414 export_symbols_cmds_FC \
17415 prelink_cmds_FC; do
17416 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17417 *[\\\\\\\`\\"\\\$]*)
17418 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17421 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17423 esac
17424 done
17426 ac_aux_dir='$ac_aux_dir'
17427 xsi_shell='$xsi_shell'
17428 lt_shell_append='$lt_shell_append'
17430 # See if we are running on zsh, and set the options which allow our
17431 # commands through without removal of \ escapes INIT.
17432 if test -n "\${ZSH_VERSION+set}" ; then
17433 setopt NO_GLOB_SUBST
17437 PACKAGE='$PACKAGE'
17438 VERSION='$VERSION'
17439 TIMESTAMP='$TIMESTAMP'
17440 RM='$RM'
17441 ofile='$ofile'
17448 GCC="$GCC"
17449 CC="$CC"
17450 acx_cv_header_stdint="$acx_cv_header_stdint"
17451 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17452 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17453 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17454 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17455 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17456 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17457 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17458 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17459 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17460 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17461 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17462 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17463 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17466 _ACEOF
17468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17470 # Handling of arguments.
17471 for ac_config_target in $ac_config_targets
17473 case $ac_config_target in
17474 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17475 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17476 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17477 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17478 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17479 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17480 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17481 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17482 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17483 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17484 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17485 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17487 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17488 esac
17489 done
17492 # If the user did not use the arguments to specify the items to instantiate,
17493 # then the envvar interface is used. Set only those that are not.
17494 # We use the long form for the default assignment because of an extremely
17495 # bizarre bug on SunOS 4.1.3.
17496 if $ac_need_defaults; then
17497 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17498 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17499 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17502 # Have a temporary directory for convenience. Make it in the build tree
17503 # simply because there is no reason against having it here, and in addition,
17504 # creating and moving files from /tmp can sometimes cause problems.
17505 # Hook for its removal unless debugging.
17506 # Note that there is a small window in which the directory will not be cleaned:
17507 # after its creation but before its name has been assigned to `$tmp'.
17508 $debug ||
17510 tmp=
17511 trap 'exit_status=$?
17512 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17514 trap 'as_fn_exit 1' 1 2 13 15
17516 # Create a (secure) tmp directory for tmp files.
17519 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17520 test -n "$tmp" && test -d "$tmp"
17521 } ||
17523 tmp=./conf$$-$RANDOM
17524 (umask 077 && mkdir "$tmp")
17525 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17527 # Set up the scripts for CONFIG_FILES section.
17528 # No need to generate them if there are no CONFIG_FILES.
17529 # This happens for instance with `./config.status config.h'.
17530 if test -n "$CONFIG_FILES"; then
17533 ac_cr=`echo X | tr X '\015'`
17534 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17535 # But we know of no other shell where ac_cr would be empty at this
17536 # point, so we can use a bashism as a fallback.
17537 if test "x$ac_cr" = x; then
17538 eval ac_cr=\$\'\\r\'
17540 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17541 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17542 ac_cs_awk_cr='\r'
17543 else
17544 ac_cs_awk_cr=$ac_cr
17547 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17548 _ACEOF
17552 echo "cat >conf$$subs.awk <<_ACEOF" &&
17553 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17554 echo "_ACEOF"
17555 } >conf$$subs.sh ||
17556 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17557 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17558 ac_delim='%!_!# '
17559 for ac_last_try in false false false false false :; do
17560 . ./conf$$subs.sh ||
17561 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17563 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17564 if test $ac_delim_n = $ac_delim_num; then
17565 break
17566 elif $ac_last_try; then
17567 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17568 else
17569 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17571 done
17572 rm -f conf$$subs.sh
17574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17575 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17576 _ACEOF
17577 sed -n '
17579 s/^/S["/; s/!.*/"]=/
17582 s/^[^!]*!//
17583 :repl
17584 t repl
17585 s/'"$ac_delim"'$//
17586 t delim
17589 s/\(.\{148\}\).*/\1/
17590 t more1
17591 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17594 b repl
17595 :more1
17596 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17599 s/.\{148\}//
17600 t nl
17601 :delim
17603 s/\(.\{148\}\).*/\1/
17604 t more2
17605 s/["\\]/\\&/g; s/^/"/; s/$/"/
17608 :more2
17609 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17612 s/.\{148\}//
17613 t delim
17614 ' <conf$$subs.awk | sed '
17615 /^[^""]/{
17617 s/\n//
17619 ' >>$CONFIG_STATUS || ac_write_fail=1
17620 rm -f conf$$subs.awk
17621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17622 _ACAWK
17623 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17624 for (key in S) S_is_set[key] = 1
17625 FS = "\a"
17629 line = $ 0
17630 nfields = split(line, field, "@")
17631 substed = 0
17632 len = length(field[1])
17633 for (i = 2; i < nfields; i++) {
17634 key = field[i]
17635 keylen = length(key)
17636 if (S_is_set[key]) {
17637 value = S[key]
17638 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17639 len += length(value) + length(field[++i])
17640 substed = 1
17641 } else
17642 len += 1 + keylen
17645 print line
17648 _ACAWK
17649 _ACEOF
17650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17651 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17652 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17653 else
17655 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17656 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17657 _ACEOF
17659 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17660 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17661 # trailing colons and then remove the whole line if VPATH becomes empty
17662 # (actually we leave an empty line to preserve line numbers).
17663 if test "x$srcdir" = x.; then
17664 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17665 s/:*\$(srcdir):*/:/
17666 s/:*\${srcdir}:*/:/
17667 s/:*@srcdir@:*/:/
17668 s/^\([^=]*=[ ]*\):*/\1/
17669 s/:*$//
17670 s/^[^=]*=[ ]*$//
17674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17675 fi # test -n "$CONFIG_FILES"
17677 # Set up the scripts for CONFIG_HEADERS section.
17678 # No need to generate them if there are no CONFIG_HEADERS.
17679 # This happens for instance with `./config.status Makefile'.
17680 if test -n "$CONFIG_HEADERS"; then
17681 cat >"$tmp/defines.awk" <<\_ACAWK ||
17682 BEGIN {
17683 _ACEOF
17685 # Transform confdefs.h into an awk script `defines.awk', embedded as
17686 # here-document in config.status, that substitutes the proper values into
17687 # config.h.in to produce config.h.
17689 # Create a delimiter string that does not exist in confdefs.h, to ease
17690 # handling of long lines.
17691 ac_delim='%!_!# '
17692 for ac_last_try in false false :; do
17693 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17694 if test -z "$ac_t"; then
17695 break
17696 elif $ac_last_try; then
17697 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17698 else
17699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17701 done
17703 # For the awk script, D is an array of macro values keyed by name,
17704 # likewise P contains macro parameters if any. Preserve backslash
17705 # newline sequences.
17707 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17708 sed -n '
17709 s/.\{148\}/&'"$ac_delim"'/g
17710 t rset
17711 :rset
17712 s/^[ ]*#[ ]*define[ ][ ]*/ /
17713 t def
17715 :def
17716 s/\\$//
17717 t bsnl
17718 s/["\\]/\\&/g
17719 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17720 D["\1"]=" \3"/p
17721 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17723 :bsnl
17724 s/["\\]/\\&/g
17725 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17726 D["\1"]=" \3\\\\\\n"\\/p
17727 t cont
17728 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17729 t cont
17731 :cont
17733 s/.\{148\}/&'"$ac_delim"'/g
17734 t clear
17735 :clear
17736 s/\\$//
17737 t bsnlc
17738 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17740 :bsnlc
17741 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17742 b cont
17743 ' <confdefs.h | sed '
17744 s/'"$ac_delim"'/"\\\
17745 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17748 for (key in D) D_is_set[key] = 1
17749 FS = "\a"
17751 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17752 line = \$ 0
17753 split(line, arg, " ")
17754 if (arg[1] == "#") {
17755 defundef = arg[2]
17756 mac1 = arg[3]
17757 } else {
17758 defundef = substr(arg[1], 2)
17759 mac1 = arg[2]
17761 split(mac1, mac2, "(") #)
17762 macro = mac2[1]
17763 prefix = substr(line, 1, index(line, defundef) - 1)
17764 if (D_is_set[macro]) {
17765 # Preserve the white space surrounding the "#".
17766 print prefix "define", macro P[macro] D[macro]
17767 next
17768 } else {
17769 # Replace #undef with comments. This is necessary, for example,
17770 # in the case of _POSIX_SOURCE, which is predefined and required
17771 # on some systems where configure will not decide to define it.
17772 if (defundef == "undef") {
17773 print "/*", prefix defundef, macro, "*/"
17774 next
17778 { print }
17779 _ACAWK
17780 _ACEOF
17781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17782 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17783 fi # test -n "$CONFIG_HEADERS"
17786 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17787 shift
17788 for ac_tag
17790 case $ac_tag in
17791 :[FHLC]) ac_mode=$ac_tag; continue;;
17792 esac
17793 case $ac_mode$ac_tag in
17794 :[FHL]*:*);;
17795 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17796 :[FH]-) ac_tag=-:-;;
17797 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17798 esac
17799 ac_save_IFS=$IFS
17800 IFS=:
17801 set x $ac_tag
17802 IFS=$ac_save_IFS
17803 shift
17804 ac_file=$1
17805 shift
17807 case $ac_mode in
17808 :L) ac_source=$1;;
17809 :[FH])
17810 ac_file_inputs=
17811 for ac_f
17813 case $ac_f in
17814 -) ac_f="$tmp/stdin";;
17815 *) # Look for the file first in the build tree, then in the source tree
17816 # (if the path is not absolute). The absolute path cannot be DOS-style,
17817 # because $ac_f cannot contain `:'.
17818 test -f "$ac_f" ||
17819 case $ac_f in
17820 [\\/$]*) false;;
17821 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17822 esac ||
17823 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17824 esac
17825 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17826 as_fn_append ac_file_inputs " '$ac_f'"
17827 done
17829 # Let's still pretend it is `configure' which instantiates (i.e., don't
17830 # use $as_me), people would be surprised to read:
17831 # /* config.h. Generated by config.status. */
17832 configure_input='Generated from '`
17833 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17834 `' by configure.'
17835 if test x"$ac_file" != x-; then
17836 configure_input="$ac_file. $configure_input"
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17838 $as_echo "$as_me: creating $ac_file" >&6;}
17840 # Neutralize special characters interpreted by sed in replacement strings.
17841 case $configure_input in #(
17842 *\&* | *\|* | *\\* )
17843 ac_sed_conf_input=`$as_echo "$configure_input" |
17844 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17845 *) ac_sed_conf_input=$configure_input;;
17846 esac
17848 case $ac_tag in
17849 *:-:* | *:-) cat >"$tmp/stdin" \
17850 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17851 esac
17853 esac
17855 ac_dir=`$as_dirname -- "$ac_file" ||
17856 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17857 X"$ac_file" : 'X\(//\)[^/]' \| \
17858 X"$ac_file" : 'X\(//\)$' \| \
17859 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17860 $as_echo X"$ac_file" |
17861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17862 s//\1/
17865 /^X\(\/\/\)[^/].*/{
17866 s//\1/
17869 /^X\(\/\/\)$/{
17870 s//\1/
17873 /^X\(\/\).*/{
17874 s//\1/
17877 s/.*/./; q'`
17878 as_dir="$ac_dir"; as_fn_mkdir_p
17879 ac_builddir=.
17881 case "$ac_dir" in
17882 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17884 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17885 # A ".." for each directory in $ac_dir_suffix.
17886 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17887 case $ac_top_builddir_sub in
17888 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17889 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17890 esac ;;
17891 esac
17892 ac_abs_top_builddir=$ac_pwd
17893 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17894 # for backward compatibility:
17895 ac_top_builddir=$ac_top_build_prefix
17897 case $srcdir in
17898 .) # We are building in place.
17899 ac_srcdir=.
17900 ac_top_srcdir=$ac_top_builddir_sub
17901 ac_abs_top_srcdir=$ac_pwd ;;
17902 [\\/]* | ?:[\\/]* ) # Absolute name.
17903 ac_srcdir=$srcdir$ac_dir_suffix;
17904 ac_top_srcdir=$srcdir
17905 ac_abs_top_srcdir=$srcdir ;;
17906 *) # Relative name.
17907 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17908 ac_top_srcdir=$ac_top_build_prefix$srcdir
17909 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17910 esac
17911 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17914 case $ac_mode in
17917 # CONFIG_FILE
17920 case $INSTALL in
17921 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17922 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17923 esac
17924 ac_MKDIR_P=$MKDIR_P
17925 case $MKDIR_P in
17926 [\\/$]* | ?:[\\/]* ) ;;
17927 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17928 esac
17929 _ACEOF
17931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17932 # If the template does not know about datarootdir, expand it.
17933 # FIXME: This hack should be removed a few years after 2.60.
17934 ac_datarootdir_hack=; ac_datarootdir_seen=
17935 ac_sed_dataroot='
17936 /datarootdir/ {
17940 /@datadir@/p
17941 /@docdir@/p
17942 /@infodir@/p
17943 /@localedir@/p
17944 /@mandir@/p'
17945 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17946 *datarootdir*) ac_datarootdir_seen=yes;;
17947 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17949 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17950 _ACEOF
17951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17952 ac_datarootdir_hack='
17953 s&@datadir@&$datadir&g
17954 s&@docdir@&$docdir&g
17955 s&@infodir@&$infodir&g
17956 s&@localedir@&$localedir&g
17957 s&@mandir@&$mandir&g
17958 s&\\\${datarootdir}&$datarootdir&g' ;;
17959 esac
17960 _ACEOF
17962 # Neutralize VPATH when `$srcdir' = `.'.
17963 # Shell code in configure.ac might set extrasub.
17964 # FIXME: do we really want to maintain this feature?
17965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17966 ac_sed_extra="$ac_vpsub
17967 $extrasub
17968 _ACEOF
17969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17972 s|@configure_input@|$ac_sed_conf_input|;t t
17973 s&@top_builddir@&$ac_top_builddir_sub&;t t
17974 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17975 s&@srcdir@&$ac_srcdir&;t t
17976 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17977 s&@top_srcdir@&$ac_top_srcdir&;t t
17978 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17979 s&@builddir@&$ac_builddir&;t t
17980 s&@abs_builddir@&$ac_abs_builddir&;t t
17981 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17982 s&@INSTALL@&$ac_INSTALL&;t t
17983 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17984 $ac_datarootdir_hack
17986 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17987 || as_fn_error "could not create $ac_file" "$LINENO" 5
17989 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17990 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17991 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17993 which seems to be undefined. Please make sure it is defined." >&5
17994 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17995 which seems to be undefined. Please make sure it is defined." >&2;}
17997 rm -f "$tmp/stdin"
17998 case $ac_file in
17999 -) cat "$tmp/out" && rm -f "$tmp/out";;
18000 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18001 esac \
18002 || as_fn_error "could not create $ac_file" "$LINENO" 5
18006 # CONFIG_HEADER
18008 if test x"$ac_file" != x-; then
18010 $as_echo "/* $configure_input */" \
18011 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18012 } >"$tmp/config.h" \
18013 || as_fn_error "could not create $ac_file" "$LINENO" 5
18014 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18016 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18017 else
18018 rm -f "$ac_file"
18019 mv "$tmp/config.h" "$ac_file" \
18020 || as_fn_error "could not create $ac_file" "$LINENO" 5
18022 else
18023 $as_echo "/* $configure_input */" \
18024 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18025 || as_fn_error "could not create -" "$LINENO" 5
18027 # Compute "$ac_file"'s index in $config_headers.
18028 _am_arg="$ac_file"
18029 _am_stamp_count=1
18030 for _am_header in $config_headers :; do
18031 case $_am_header in
18032 $_am_arg | $_am_arg:* )
18033 break ;;
18035 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18036 esac
18037 done
18038 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18039 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18040 X"$_am_arg" : 'X\(//\)[^/]' \| \
18041 X"$_am_arg" : 'X\(//\)$' \| \
18042 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18043 $as_echo X"$_am_arg" |
18044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18045 s//\1/
18048 /^X\(\/\/\)[^/].*/{
18049 s//\1/
18052 /^X\(\/\/\)$/{
18053 s//\1/
18056 /^X\(\/\).*/{
18057 s//\1/
18060 s/.*/./; q'`/stamp-h$_am_stamp_count
18063 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18064 $as_echo "$as_me: executing $ac_file commands" >&6;}
18066 esac
18069 case $ac_file$ac_mode in
18070 "default-1":C)
18071 # Only add multilib support code if we just rebuilt the top-level
18072 # Makefile.
18073 case " $CONFIG_FILES " in
18074 *" Makefile "*)
18075 ac_file=Makefile . ${multi_basedir}/config-ml.in
18077 esac ;;
18078 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18079 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18080 # are listed without --file. Let's play safe and only enable the eval
18081 # if we detect the quoting.
18082 case $CONFIG_FILES in
18083 *\'*) eval set x "$CONFIG_FILES" ;;
18084 *) set x $CONFIG_FILES ;;
18085 esac
18086 shift
18087 for mf
18089 # Strip MF so we end up with the name of the file.
18090 mf=`echo "$mf" | sed -e 's/:.*$//'`
18091 # Check whether this is an Automake generated Makefile or not.
18092 # We used to match only the files named `Makefile.in', but
18093 # some people rename them; so instead we look at the file content.
18094 # Grep'ing the first line is not enough: some people post-process
18095 # each Makefile.in and add a new line on top of each file to say so.
18096 # Grep'ing the whole file is not good either: AIX grep has a line
18097 # limit of 2048, but all sed's we know have understand at least 4000.
18098 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18099 dirpart=`$as_dirname -- "$mf" ||
18100 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18101 X"$mf" : 'X\(//\)[^/]' \| \
18102 X"$mf" : 'X\(//\)$' \| \
18103 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18104 $as_echo X"$mf" |
18105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18106 s//\1/
18109 /^X\(\/\/\)[^/].*/{
18110 s//\1/
18113 /^X\(\/\/\)$/{
18114 s//\1/
18117 /^X\(\/\).*/{
18118 s//\1/
18121 s/.*/./; q'`
18122 else
18123 continue
18125 # Extract the definition of DEPDIR, am__include, and am__quote
18126 # from the Makefile without running `make'.
18127 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18128 test -z "$DEPDIR" && continue
18129 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18130 test -z "am__include" && continue
18131 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18132 # When using ansi2knr, U may be empty or an underscore; expand it
18133 U=`sed -n 's/^U = //p' < "$mf"`
18134 # Find all dependency output files, they are included files with
18135 # $(DEPDIR) in their names. We invoke sed twice because it is the
18136 # simplest approach to changing $(DEPDIR) to its actual value in the
18137 # expansion.
18138 for file in `sed -n "
18139 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18140 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18141 # Make sure the directory exists.
18142 test -f "$dirpart/$file" && continue
18143 fdir=`$as_dirname -- "$file" ||
18144 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18145 X"$file" : 'X\(//\)[^/]' \| \
18146 X"$file" : 'X\(//\)$' \| \
18147 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18148 $as_echo X"$file" |
18149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18150 s//\1/
18153 /^X\(\/\/\)[^/].*/{
18154 s//\1/
18157 /^X\(\/\/\)$/{
18158 s//\1/
18161 /^X\(\/\).*/{
18162 s//\1/
18165 s/.*/./; q'`
18166 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18167 # echo "creating $dirpart/$file"
18168 echo '# dummy' > "$dirpart/$file"
18169 done
18170 done
18173 "libtool":C)
18175 # See if we are running on zsh, and set the options which allow our
18176 # commands through without removal of \ escapes.
18177 if test -n "${ZSH_VERSION+set}" ; then
18178 setopt NO_GLOB_SUBST
18181 cfgfile="${ofile}T"
18182 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18183 $RM "$cfgfile"
18185 cat <<_LT_EOF >> "$cfgfile"
18186 #! $SHELL
18188 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18189 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18190 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18191 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18193 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18194 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18195 # Written by Gordon Matzigkeit, 1996
18197 # This file is part of GNU Libtool.
18199 # GNU Libtool is free software; you can redistribute it and/or
18200 # modify it under the terms of the GNU General Public License as
18201 # published by the Free Software Foundation; either version 2 of
18202 # the License, or (at your option) any later version.
18204 # As a special exception to the GNU General Public License,
18205 # if you distribute this file as part of a program or library that
18206 # is built using GNU Libtool, you may include this file under the
18207 # same distribution terms that you use for the rest of that program.
18209 # GNU Libtool is distributed in the hope that it will be useful,
18210 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18211 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18212 # GNU General Public License for more details.
18214 # You should have received a copy of the GNU General Public License
18215 # along with GNU Libtool; see the file COPYING. If not, a copy
18216 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18217 # obtained by writing to the Free Software Foundation, Inc.,
18218 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18221 # The names of the tagged configurations supported by this script.
18222 available_tags="FC "
18224 # ### BEGIN LIBTOOL CONFIG
18226 # Which release of libtool.m4 was used?
18227 macro_version=$macro_version
18228 macro_revision=$macro_revision
18230 # Whether or not to build shared libraries.
18231 build_libtool_libs=$enable_shared
18233 # Whether or not to build static libraries.
18234 build_old_libs=$enable_static
18236 # What type of objects to build.
18237 pic_mode=$pic_mode
18239 # Whether or not to optimize for fast installation.
18240 fast_install=$enable_fast_install
18242 # Shell to use when invoking shell scripts.
18243 SHELL=$lt_SHELL
18245 # An echo program that protects backslashes.
18246 ECHO=$lt_ECHO
18248 # The host system.
18249 host_alias=$host_alias
18250 host=$host
18251 host_os=$host_os
18253 # The build system.
18254 build_alias=$build_alias
18255 build=$build
18256 build_os=$build_os
18258 # A sed program that does not truncate output.
18259 SED=$lt_SED
18261 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18262 Xsed="\$SED -e 1s/^X//"
18264 # A grep program that handles long lines.
18265 GREP=$lt_GREP
18267 # An ERE matcher.
18268 EGREP=$lt_EGREP
18270 # A literal string matcher.
18271 FGREP=$lt_FGREP
18273 # A BSD- or MS-compatible name lister.
18274 NM=$lt_NM
18276 # Whether we need soft or hard links.
18277 LN_S=$lt_LN_S
18279 # What is the maximum length of a command?
18280 max_cmd_len=$max_cmd_len
18282 # Object file suffix (normally "o").
18283 objext=$ac_objext
18285 # Executable file suffix (normally "").
18286 exeext=$exeext
18288 # whether the shell understands "unset".
18289 lt_unset=$lt_unset
18291 # turn spaces into newlines.
18292 SP2NL=$lt_lt_SP2NL
18294 # turn newlines into spaces.
18295 NL2SP=$lt_lt_NL2SP
18297 # An object symbol dumper.
18298 OBJDUMP=$lt_OBJDUMP
18300 # Method to check whether dependent libraries are shared objects.
18301 deplibs_check_method=$lt_deplibs_check_method
18303 # Command to use when deplibs_check_method == "file_magic".
18304 file_magic_cmd=$lt_file_magic_cmd
18306 # The archiver.
18307 AR=$lt_AR
18308 AR_FLAGS=$lt_AR_FLAGS
18310 # A symbol stripping program.
18311 STRIP=$lt_STRIP
18313 # Commands used to install an old-style archive.
18314 RANLIB=$lt_RANLIB
18315 old_postinstall_cmds=$lt_old_postinstall_cmds
18316 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18318 # Whether to use a lock for old archive extraction.
18319 lock_old_archive_extraction=$lock_old_archive_extraction
18321 # A C compiler.
18322 LTCC=$lt_CC
18324 # LTCC compiler flags.
18325 LTCFLAGS=$lt_CFLAGS
18327 # Take the output of nm and produce a listing of raw symbols and C names.
18328 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18330 # Transform the output of nm in a proper C declaration.
18331 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18333 # Transform the output of nm in a C name address pair.
18334 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18336 # Transform the output of nm in a C name address pair when lib prefix is needed.
18337 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18339 # The name of the directory that contains temporary libtool files.
18340 objdir=$objdir
18342 # Used to examine libraries when file_magic_cmd begins with "file".
18343 MAGIC_CMD=$MAGIC_CMD
18345 # Must we lock files when doing compilation?
18346 need_locks=$lt_need_locks
18348 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18349 DSYMUTIL=$lt_DSYMUTIL
18351 # Tool to change global to local symbols on Mac OS X.
18352 NMEDIT=$lt_NMEDIT
18354 # Tool to manipulate fat objects and archives on Mac OS X.
18355 LIPO=$lt_LIPO
18357 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18358 OTOOL=$lt_OTOOL
18360 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18361 OTOOL64=$lt_OTOOL64
18363 # Old archive suffix (normally "a").
18364 libext=$libext
18366 # Shared library suffix (normally ".so").
18367 shrext_cmds=$lt_shrext_cmds
18369 # The commands to extract the exported symbol list from a shared archive.
18370 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18372 # Variables whose values should be saved in libtool wrapper scripts and
18373 # restored at link time.
18374 variables_saved_for_relink=$lt_variables_saved_for_relink
18376 # Do we need the "lib" prefix for modules?
18377 need_lib_prefix=$need_lib_prefix
18379 # Do we need a version for libraries?
18380 need_version=$need_version
18382 # Library versioning type.
18383 version_type=$version_type
18385 # Shared library runtime path variable.
18386 runpath_var=$runpath_var
18388 # Shared library path variable.
18389 shlibpath_var=$shlibpath_var
18391 # Is shlibpath searched before the hard-coded library search path?
18392 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18394 # Format of library name prefix.
18395 libname_spec=$lt_libname_spec
18397 # List of archive names. First name is the real one, the rest are links.
18398 # The last name is the one that the linker finds with -lNAME
18399 library_names_spec=$lt_library_names_spec
18401 # The coded name of the library, if different from the real name.
18402 soname_spec=$lt_soname_spec
18404 # Permission mode override for installation of shared libraries.
18405 install_override_mode=$lt_install_override_mode
18407 # Command to use after installation of a shared archive.
18408 postinstall_cmds=$lt_postinstall_cmds
18410 # Command to use after uninstallation of a shared archive.
18411 postuninstall_cmds=$lt_postuninstall_cmds
18413 # Commands used to finish a libtool library installation in a directory.
18414 finish_cmds=$lt_finish_cmds
18416 # As "finish_cmds", except a single script fragment to be evaled but
18417 # not shown.
18418 finish_eval=$lt_finish_eval
18420 # Whether we should hardcode library paths into libraries.
18421 hardcode_into_libs=$hardcode_into_libs
18423 # Compile-time system search path for libraries.
18424 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18426 # Run-time system search path for libraries.
18427 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18429 # Whether dlopen is supported.
18430 dlopen_support=$enable_dlopen
18432 # Whether dlopen of programs is supported.
18433 dlopen_self=$enable_dlopen_self
18435 # Whether dlopen of statically linked programs is supported.
18436 dlopen_self_static=$enable_dlopen_self_static
18438 # Commands to strip libraries.
18439 old_striplib=$lt_old_striplib
18440 striplib=$lt_striplib
18443 # The linker used to build libraries.
18444 LD=$lt_LD
18446 # How to create reloadable object files.
18447 reload_flag=$lt_reload_flag
18448 reload_cmds=$lt_reload_cmds
18450 # Commands used to build an old-style archive.
18451 old_archive_cmds=$lt_old_archive_cmds
18453 # A language specific compiler.
18454 CC=$lt_compiler
18456 # Is the compiler the GNU compiler?
18457 with_gcc=$GCC
18459 # Compiler flag to turn off builtin functions.
18460 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18462 # How to pass a linker flag through the compiler.
18463 wl=$lt_lt_prog_compiler_wl
18465 # Additional compiler flags for building library objects.
18466 pic_flag=$lt_lt_prog_compiler_pic
18468 # Compiler flag to prevent dynamic linking.
18469 link_static_flag=$lt_lt_prog_compiler_static
18471 # Does compiler simultaneously support -c and -o options?
18472 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18474 # Whether or not to add -lc for building shared libraries.
18475 build_libtool_need_lc=$archive_cmds_need_lc
18477 # Whether or not to disallow shared libs when runtime libs are static.
18478 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18480 # Compiler flag to allow reflexive dlopens.
18481 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18483 # Compiler flag to generate shared objects directly from archives.
18484 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18486 # Whether the compiler copes with passing no objects directly.
18487 compiler_needs_object=$lt_compiler_needs_object
18489 # Create an old-style archive from a shared archive.
18490 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18492 # Create a temporary old-style archive to link instead of a shared archive.
18493 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18495 # Commands used to build a shared archive.
18496 archive_cmds=$lt_archive_cmds
18497 archive_expsym_cmds=$lt_archive_expsym_cmds
18499 # Commands used to build a loadable module if different from building
18500 # a shared archive.
18501 module_cmds=$lt_module_cmds
18502 module_expsym_cmds=$lt_module_expsym_cmds
18504 # Whether we are building with GNU ld or not.
18505 with_gnu_ld=$lt_with_gnu_ld
18507 # Flag that allows shared libraries with undefined symbols to be built.
18508 allow_undefined_flag=$lt_allow_undefined_flag
18510 # Flag that enforces no undefined symbols.
18511 no_undefined_flag=$lt_no_undefined_flag
18513 # Flag to hardcode \$libdir into a binary during linking.
18514 # This must work even if \$libdir does not exist
18515 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18517 # If ld is used when linking, flag to hardcode \$libdir into a binary
18518 # during linking. This must work even if \$libdir does not exist.
18519 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18521 # Whether we need a single "-rpath" flag with a separated argument.
18522 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18524 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18525 # DIR into the resulting binary.
18526 hardcode_direct=$hardcode_direct
18528 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18529 # DIR into the resulting binary and the resulting library dependency is
18530 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18531 # library is relocated.
18532 hardcode_direct_absolute=$hardcode_direct_absolute
18534 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18535 # into the resulting binary.
18536 hardcode_minus_L=$hardcode_minus_L
18538 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18539 # into the resulting binary.
18540 hardcode_shlibpath_var=$hardcode_shlibpath_var
18542 # Set to "yes" if building a shared library automatically hardcodes DIR
18543 # into the library and all subsequent libraries and executables linked
18544 # against it.
18545 hardcode_automatic=$hardcode_automatic
18547 # Set to yes if linker adds runtime paths of dependent libraries
18548 # to runtime path list.
18549 inherit_rpath=$inherit_rpath
18551 # Whether libtool must link a program against all its dependency libraries.
18552 link_all_deplibs=$link_all_deplibs
18554 # Fix the shell variable \$srcfile for the compiler.
18555 fix_srcfile_path=$lt_fix_srcfile_path
18557 # Set to "yes" if exported symbols are required.
18558 always_export_symbols=$always_export_symbols
18560 # The commands to list exported symbols.
18561 export_symbols_cmds=$lt_export_symbols_cmds
18563 # Symbols that should not be listed in the preloaded symbols.
18564 exclude_expsyms=$lt_exclude_expsyms
18566 # Symbols that must always be exported.
18567 include_expsyms=$lt_include_expsyms
18569 # Commands necessary for linking programs (against libraries) with templates.
18570 prelink_cmds=$lt_prelink_cmds
18572 # Specify filename containing input files.
18573 file_list_spec=$lt_file_list_spec
18575 # How to hardcode a shared library path into an executable.
18576 hardcode_action=$hardcode_action
18578 # The directories searched by this compiler when creating a shared library.
18579 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18581 # Dependencies to place before and after the objects being linked to
18582 # create a shared library.
18583 predep_objects=$lt_predep_objects
18584 postdep_objects=$lt_postdep_objects
18585 predeps=$lt_predeps
18586 postdeps=$lt_postdeps
18588 # The library search path used internally by the compiler when linking
18589 # a shared library.
18590 compiler_lib_search_path=$lt_compiler_lib_search_path
18592 # ### END LIBTOOL CONFIG
18594 _LT_EOF
18596 case $host_os in
18597 aix3*)
18598 cat <<\_LT_EOF >> "$cfgfile"
18599 # AIX sometimes has problems with the GCC collect2 program. For some
18600 # reason, if we set the COLLECT_NAMES environment variable, the problems
18601 # vanish in a puff of smoke.
18602 if test "X${COLLECT_NAMES+set}" != Xset; then
18603 COLLECT_NAMES=
18604 export COLLECT_NAMES
18606 _LT_EOF
18608 esac
18611 ltmain="$ac_aux_dir/ltmain.sh"
18614 # We use sed instead of cat because bash on DJGPP gets confused if
18615 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18616 # text mode, it properly converts lines to CR/LF. This bash problem
18617 # is reportedly fixed, but why not run on old versions too?
18618 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18619 || (rm -f "$cfgfile"; exit 1)
18621 case $xsi_shell in
18622 yes)
18623 cat << \_LT_EOF >> "$cfgfile"
18625 # func_dirname file append nondir_replacement
18626 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18627 # otherwise set result to NONDIR_REPLACEMENT.
18628 func_dirname ()
18630 case ${1} in
18631 */*) func_dirname_result="${1%/*}${2}" ;;
18632 * ) func_dirname_result="${3}" ;;
18633 esac
18636 # func_basename file
18637 func_basename ()
18639 func_basename_result="${1##*/}"
18642 # func_dirname_and_basename file append nondir_replacement
18643 # perform func_basename and func_dirname in a single function
18644 # call:
18645 # dirname: Compute the dirname of FILE. If nonempty,
18646 # add APPEND to the result, otherwise set result
18647 # to NONDIR_REPLACEMENT.
18648 # value returned in "$func_dirname_result"
18649 # basename: Compute filename of FILE.
18650 # value retuned in "$func_basename_result"
18651 # Implementation must be kept synchronized with func_dirname
18652 # and func_basename. For efficiency, we do not delegate to
18653 # those functions but instead duplicate the functionality here.
18654 func_dirname_and_basename ()
18656 case ${1} in
18657 */*) func_dirname_result="${1%/*}${2}" ;;
18658 * ) func_dirname_result="${3}" ;;
18659 esac
18660 func_basename_result="${1##*/}"
18663 # func_stripname prefix suffix name
18664 # strip PREFIX and SUFFIX off of NAME.
18665 # PREFIX and SUFFIX must not contain globbing or regex special
18666 # characters, hashes, percent signs, but SUFFIX may contain a leading
18667 # dot (in which case that matches only a dot).
18668 func_stripname ()
18670 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18671 # positional parameters, so assign one to ordinary parameter first.
18672 func_stripname_result=${3}
18673 func_stripname_result=${func_stripname_result#"${1}"}
18674 func_stripname_result=${func_stripname_result%"${2}"}
18677 # func_opt_split
18678 func_opt_split ()
18680 func_opt_split_opt=${1%%=*}
18681 func_opt_split_arg=${1#*=}
18684 # func_lo2o object
18685 func_lo2o ()
18687 case ${1} in
18688 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18689 *) func_lo2o_result=${1} ;;
18690 esac
18693 # func_xform libobj-or-source
18694 func_xform ()
18696 func_xform_result=${1%.*}.lo
18699 # func_arith arithmetic-term...
18700 func_arith ()
18702 func_arith_result=$(( $* ))
18705 # func_len string
18706 # STRING may not start with a hyphen.
18707 func_len ()
18709 func_len_result=${#1}
18712 _LT_EOF
18714 *) # Bourne compatible functions.
18715 cat << \_LT_EOF >> "$cfgfile"
18717 # func_dirname file append nondir_replacement
18718 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18719 # otherwise set result to NONDIR_REPLACEMENT.
18720 func_dirname ()
18722 # Extract subdirectory from the argument.
18723 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18724 if test "X$func_dirname_result" = "X${1}"; then
18725 func_dirname_result="${3}"
18726 else
18727 func_dirname_result="$func_dirname_result${2}"
18731 # func_basename file
18732 func_basename ()
18734 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18738 # func_stripname prefix suffix name
18739 # strip PREFIX and SUFFIX off of NAME.
18740 # PREFIX and SUFFIX must not contain globbing or regex special
18741 # characters, hashes, percent signs, but SUFFIX may contain a leading
18742 # dot (in which case that matches only a dot).
18743 # func_strip_suffix prefix name
18744 func_stripname ()
18746 case ${2} in
18747 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18748 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18749 esac
18752 # sed scripts:
18753 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18754 my_sed_long_arg='1s/^-[^=]*=//'
18756 # func_opt_split
18757 func_opt_split ()
18759 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18760 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18763 # func_lo2o object
18764 func_lo2o ()
18766 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18769 # func_xform libobj-or-source
18770 func_xform ()
18772 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18775 # func_arith arithmetic-term...
18776 func_arith ()
18778 func_arith_result=`expr "$@"`
18781 # func_len string
18782 # STRING may not start with a hyphen.
18783 func_len ()
18785 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18788 _LT_EOF
18789 esac
18791 case $lt_shell_append in
18792 yes)
18793 cat << \_LT_EOF >> "$cfgfile"
18795 # func_append var value
18796 # Append VALUE to the end of shell variable VAR.
18797 func_append ()
18799 eval "$1+=\$2"
18801 _LT_EOF
18804 cat << \_LT_EOF >> "$cfgfile"
18806 # func_append var value
18807 # Append VALUE to the end of shell variable VAR.
18808 func_append ()
18810 eval "$1=\$$1\$2"
18813 _LT_EOF
18815 esac
18818 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18819 || (rm -f "$cfgfile"; exit 1)
18821 mv -f "$cfgfile" "$ofile" ||
18822 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18823 chmod +x "$ofile"
18826 cat <<_LT_EOF >> "$ofile"
18828 # ### BEGIN LIBTOOL TAG CONFIG: FC
18830 # The linker used to build libraries.
18831 LD=$lt_LD_FC
18833 # How to create reloadable object files.
18834 reload_flag=$lt_reload_flag_FC
18835 reload_cmds=$lt_reload_cmds_FC
18837 # Commands used to build an old-style archive.
18838 old_archive_cmds=$lt_old_archive_cmds_FC
18840 # A language specific compiler.
18841 CC=$lt_compiler_FC
18843 # Is the compiler the GNU compiler?
18844 with_gcc=$GCC_FC
18846 # Compiler flag to turn off builtin functions.
18847 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
18849 # How to pass a linker flag through the compiler.
18850 wl=$lt_lt_prog_compiler_wl_FC
18852 # Additional compiler flags for building library objects.
18853 pic_flag=$lt_lt_prog_compiler_pic_FC
18855 # Compiler flag to prevent dynamic linking.
18856 link_static_flag=$lt_lt_prog_compiler_static_FC
18858 # Does compiler simultaneously support -c and -o options?
18859 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
18861 # Whether or not to add -lc for building shared libraries.
18862 build_libtool_need_lc=$archive_cmds_need_lc_FC
18864 # Whether or not to disallow shared libs when runtime libs are static.
18865 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
18867 # Compiler flag to allow reflexive dlopens.
18868 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
18870 # Compiler flag to generate shared objects directly from archives.
18871 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
18873 # Whether the compiler copes with passing no objects directly.
18874 compiler_needs_object=$lt_compiler_needs_object_FC
18876 # Create an old-style archive from a shared archive.
18877 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
18879 # Create a temporary old-style archive to link instead of a shared archive.
18880 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
18882 # Commands used to build a shared archive.
18883 archive_cmds=$lt_archive_cmds_FC
18884 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
18886 # Commands used to build a loadable module if different from building
18887 # a shared archive.
18888 module_cmds=$lt_module_cmds_FC
18889 module_expsym_cmds=$lt_module_expsym_cmds_FC
18891 # Whether we are building with GNU ld or not.
18892 with_gnu_ld=$lt_with_gnu_ld_FC
18894 # Flag that allows shared libraries with undefined symbols to be built.
18895 allow_undefined_flag=$lt_allow_undefined_flag_FC
18897 # Flag that enforces no undefined symbols.
18898 no_undefined_flag=$lt_no_undefined_flag_FC
18900 # Flag to hardcode \$libdir into a binary during linking.
18901 # This must work even if \$libdir does not exist
18902 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
18904 # If ld is used when linking, flag to hardcode \$libdir into a binary
18905 # during linking. This must work even if \$libdir does not exist.
18906 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
18908 # Whether we need a single "-rpath" flag with a separated argument.
18909 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
18911 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18912 # DIR into the resulting binary.
18913 hardcode_direct=$hardcode_direct_FC
18915 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18916 # DIR into the resulting binary and the resulting library dependency is
18917 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18918 # library is relocated.
18919 hardcode_direct_absolute=$hardcode_direct_absolute_FC
18921 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18922 # into the resulting binary.
18923 hardcode_minus_L=$hardcode_minus_L_FC
18925 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18926 # into the resulting binary.
18927 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
18929 # Set to "yes" if building a shared library automatically hardcodes DIR
18930 # into the library and all subsequent libraries and executables linked
18931 # against it.
18932 hardcode_automatic=$hardcode_automatic_FC
18934 # Set to yes if linker adds runtime paths of dependent libraries
18935 # to runtime path list.
18936 inherit_rpath=$inherit_rpath_FC
18938 # Whether libtool must link a program against all its dependency libraries.
18939 link_all_deplibs=$link_all_deplibs_FC
18941 # Fix the shell variable \$srcfile for the compiler.
18942 fix_srcfile_path=$lt_fix_srcfile_path_FC
18944 # Set to "yes" if exported symbols are required.
18945 always_export_symbols=$always_export_symbols_FC
18947 # The commands to list exported symbols.
18948 export_symbols_cmds=$lt_export_symbols_cmds_FC
18950 # Symbols that should not be listed in the preloaded symbols.
18951 exclude_expsyms=$lt_exclude_expsyms_FC
18953 # Symbols that must always be exported.
18954 include_expsyms=$lt_include_expsyms_FC
18956 # Commands necessary for linking programs (against libraries) with templates.
18957 prelink_cmds=$lt_prelink_cmds_FC
18959 # Specify filename containing input files.
18960 file_list_spec=$lt_file_list_spec_FC
18962 # How to hardcode a shared library path into an executable.
18963 hardcode_action=$hardcode_action_FC
18965 # The directories searched by this compiler when creating a shared library.
18966 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
18968 # Dependencies to place before and after the objects being linked to
18969 # create a shared library.
18970 predep_objects=$lt_predep_objects_FC
18971 postdep_objects=$lt_postdep_objects_FC
18972 predeps=$lt_predeps_FC
18973 postdeps=$lt_postdeps_FC
18975 # The library search path used internally by the compiler when linking
18976 # a shared library.
18977 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
18979 # ### END LIBTOOL TAG CONFIG: FC
18980 _LT_EOF
18983 "gstdint.h":C)
18984 if test "$GCC" = yes; then
18985 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18986 else
18987 echo "/* generated for $CC */" > tmp-stdint.h
18990 sed 's/^ *//' >> tmp-stdint.h <<EOF
18992 #ifndef GCC_GENERATED_STDINT_H
18993 #define GCC_GENERATED_STDINT_H 1
18995 #include <sys/types.h>
18998 if test "$acx_cv_header_stdint" != stdint.h; then
18999 echo "#include <stddef.h>" >> tmp-stdint.h
19001 if test "$acx_cv_header_stdint" != stddef.h; then
19002 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19005 sed 's/^ *//' >> tmp-stdint.h <<EOF
19006 /* glibc uses these symbols as guards to prevent redefinitions. */
19007 #ifdef __int8_t_defined
19008 #define _INT8_T
19009 #define _INT16_T
19010 #define _INT32_T
19011 #endif
19012 #ifdef __uint32_t_defined
19013 #define _UINT32_T
19014 #endif
19018 # ----------------- done header, emit basic int types -------------
19019 if test "$acx_cv_header_stdint" = stddef.h; then
19020 sed 's/^ *//' >> tmp-stdint.h <<EOF
19022 #ifndef _UINT8_T
19023 #define _UINT8_T
19024 #ifndef __uint8_t_defined
19025 #define __uint8_t_defined
19026 #ifndef uint8_t
19027 typedef unsigned $acx_cv_type_int8_t uint8_t;
19028 #endif
19029 #endif
19030 #endif
19032 #ifndef _UINT16_T
19033 #define _UINT16_T
19034 #ifndef __uint16_t_defined
19035 #define __uint16_t_defined
19036 #ifndef uint16_t
19037 typedef unsigned $acx_cv_type_int16_t uint16_t;
19038 #endif
19039 #endif
19040 #endif
19042 #ifndef _UINT32_T
19043 #define _UINT32_T
19044 #ifndef __uint32_t_defined
19045 #define __uint32_t_defined
19046 #ifndef uint32_t
19047 typedef unsigned $acx_cv_type_int32_t uint32_t;
19048 #endif
19049 #endif
19050 #endif
19052 #ifndef _INT8_T
19053 #define _INT8_T
19054 #ifndef __int8_t_defined
19055 #define __int8_t_defined
19056 #ifndef int8_t
19057 typedef $acx_cv_type_int8_t int8_t;
19058 #endif
19059 #endif
19060 #endif
19062 #ifndef _INT16_T
19063 #define _INT16_T
19064 #ifndef __int16_t_defined
19065 #define __int16_t_defined
19066 #ifndef int16_t
19067 typedef $acx_cv_type_int16_t int16_t;
19068 #endif
19069 #endif
19070 #endif
19072 #ifndef _INT32_T
19073 #define _INT32_T
19074 #ifndef __int32_t_defined
19075 #define __int32_t_defined
19076 #ifndef int32_t
19077 typedef $acx_cv_type_int32_t int32_t;
19078 #endif
19079 #endif
19080 #endif
19082 elif test "$ac_cv_type_u_int32_t" = yes; then
19083 sed 's/^ *//' >> tmp-stdint.h <<EOF
19085 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19086 #ifndef _INT8_T
19087 #define _INT8_T
19088 #endif
19089 #ifndef _INT16_T
19090 #define _INT16_T
19091 #endif
19092 #ifndef _INT32_T
19093 #define _INT32_T
19094 #endif
19096 #ifndef _UINT8_T
19097 #define _UINT8_T
19098 #ifndef __uint8_t_defined
19099 #define __uint8_t_defined
19100 #ifndef uint8_t
19101 typedef u_int8_t uint8_t;
19102 #endif
19103 #endif
19104 #endif
19106 #ifndef _UINT16_T
19107 #define _UINT16_T
19108 #ifndef __uint16_t_defined
19109 #define __uint16_t_defined
19110 #ifndef uint16_t
19111 typedef u_int16_t uint16_t;
19112 #endif
19113 #endif
19114 #endif
19116 #ifndef _UINT32_T
19117 #define _UINT32_T
19118 #ifndef __uint32_t_defined
19119 #define __uint32_t_defined
19120 #ifndef uint32_t
19121 typedef u_int32_t uint32_t;
19122 #endif
19123 #endif
19124 #endif
19126 else
19127 sed 's/^ *//' >> tmp-stdint.h <<EOF
19129 /* Some systems have guard macros to prevent redefinitions, define them. */
19130 #ifndef _INT8_T
19131 #define _INT8_T
19132 #endif
19133 #ifndef _INT16_T
19134 #define _INT16_T
19135 #endif
19136 #ifndef _INT32_T
19137 #define _INT32_T
19138 #endif
19139 #ifndef _UINT8_T
19140 #define _UINT8_T
19141 #endif
19142 #ifndef _UINT16_T
19143 #define _UINT16_T
19144 #endif
19145 #ifndef _UINT32_T
19146 #define _UINT32_T
19147 #endif
19151 # ------------- done basic int types, emit int64_t types ------------
19152 if test "$ac_cv_type_uint64_t" = yes; then
19153 sed 's/^ *//' >> tmp-stdint.h <<EOF
19155 /* system headers have good uint64_t and int64_t */
19156 #ifndef _INT64_T
19157 #define _INT64_T
19158 #endif
19159 #ifndef _UINT64_T
19160 #define _UINT64_T
19161 #endif
19163 elif test "$ac_cv_type_u_int64_t" = yes; then
19164 sed 's/^ *//' >> tmp-stdint.h <<EOF
19166 /* system headers have an u_int64_t (and int64_t) */
19167 #ifndef _INT64_T
19168 #define _INT64_T
19169 #endif
19170 #ifndef _UINT64_T
19171 #define _UINT64_T
19172 #ifndef __uint64_t_defined
19173 #define __uint64_t_defined
19174 #ifndef uint64_t
19175 typedef u_int64_t uint64_t;
19176 #endif
19177 #endif
19178 #endif
19180 elif test -n "$acx_cv_type_int64_t"; then
19181 sed 's/^ *//' >> tmp-stdint.h <<EOF
19183 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19184 #ifndef _INT64_T
19185 #define _INT64_T
19186 #ifndef int64_t
19187 typedef $acx_cv_type_int64_t int64_t;
19188 #endif
19189 #endif
19190 #ifndef _UINT64_T
19191 #define _UINT64_T
19192 #ifndef __uint64_t_defined
19193 #define __uint64_t_defined
19194 #ifndef uint64_t
19195 typedef unsigned $acx_cv_type_int64_t uint64_t;
19196 #endif
19197 #endif
19198 #endif
19200 else
19201 sed 's/^ *//' >> tmp-stdint.h <<EOF
19203 /* some common heuristics for int64_t, using compiler-specific tests */
19204 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19205 #ifndef _INT64_T
19206 #define _INT64_T
19207 #ifndef __int64_t_defined
19208 #ifndef int64_t
19209 typedef long long int64_t;
19210 #endif
19211 #endif
19212 #endif
19213 #ifndef _UINT64_T
19214 #define _UINT64_T
19215 #ifndef uint64_t
19216 typedef unsigned long long uint64_t;
19217 #endif
19218 #endif
19220 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19221 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19222 does not implement __extension__. But that compiler doesn't define
19223 __GNUC_MINOR__. */
19224 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19225 # define __extension__
19226 # endif
19228 # ifndef _INT64_T
19229 # define _INT64_T
19230 # ifndef int64_t
19231 __extension__ typedef long long int64_t;
19232 # endif
19233 # endif
19234 # ifndef _UINT64_T
19235 # define _UINT64_T
19236 # ifndef uint64_t
19237 __extension__ typedef unsigned long long uint64_t;
19238 # endif
19239 # endif
19241 #elif !defined __STRICT_ANSI__
19242 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19244 # ifndef _INT64_T
19245 # define _INT64_T
19246 # ifndef int64_t
19247 typedef __int64 int64_t;
19248 # endif
19249 # endif
19250 # ifndef _UINT64_T
19251 # define _UINT64_T
19252 # ifndef uint64_t
19253 typedef unsigned __int64 uint64_t;
19254 # endif
19255 # endif
19256 # endif /* compiler */
19258 #endif /* ANSI version */
19262 # ------------- done int64_t types, emit intptr types ------------
19263 if test "$ac_cv_type_uintptr_t" != yes; then
19264 sed 's/^ *//' >> tmp-stdint.h <<EOF
19266 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19267 #ifndef __uintptr_t_defined
19268 #ifndef uintptr_t
19269 typedef u$acx_cv_type_intptr_t uintptr_t;
19270 #endif
19271 #endif
19272 #ifndef __intptr_t_defined
19273 #ifndef intptr_t
19274 typedef $acx_cv_type_intptr_t intptr_t;
19275 #endif
19276 #endif
19280 # ------------- done intptr types, emit int_least types ------------
19281 if test "$ac_cv_type_int_least32_t" != yes; then
19282 sed 's/^ *//' >> tmp-stdint.h <<EOF
19284 /* Define int_least types */
19285 typedef int8_t int_least8_t;
19286 typedef int16_t int_least16_t;
19287 typedef int32_t int_least32_t;
19288 #ifdef _INT64_T
19289 typedef int64_t int_least64_t;
19290 #endif
19292 typedef uint8_t uint_least8_t;
19293 typedef uint16_t uint_least16_t;
19294 typedef uint32_t uint_least32_t;
19295 #ifdef _UINT64_T
19296 typedef uint64_t uint_least64_t;
19297 #endif
19301 # ------------- done intptr types, emit int_fast types ------------
19302 if test "$ac_cv_type_int_fast32_t" != yes; then
19303 sed 's/^ *//' >> tmp-stdint.h <<EOF
19305 /* Define int_fast types. short is often slow */
19306 typedef int8_t int_fast8_t;
19307 typedef int int_fast16_t;
19308 typedef int32_t int_fast32_t;
19309 #ifdef _INT64_T
19310 typedef int64_t int_fast64_t;
19311 #endif
19313 typedef uint8_t uint_fast8_t;
19314 typedef unsigned int uint_fast16_t;
19315 typedef uint32_t uint_fast32_t;
19316 #ifdef _UINT64_T
19317 typedef uint64_t uint_fast64_t;
19318 #endif
19322 if test "$ac_cv_type_uintmax_t" != yes; then
19323 sed 's/^ *//' >> tmp-stdint.h <<EOF
19325 /* Define intmax based on what we found */
19326 #ifndef intmax_t
19327 #ifdef _INT64_T
19328 typedef int64_t intmax_t;
19329 #else
19330 typedef long intmax_t;
19331 #endif
19332 #endif
19333 #ifndef uintmax_t
19334 #ifdef _UINT64_T
19335 typedef uint64_t uintmax_t;
19336 #else
19337 typedef unsigned long uintmax_t;
19338 #endif
19339 #endif
19343 sed 's/^ *//' >> tmp-stdint.h <<EOF
19345 #endif /* GCC_GENERATED_STDINT_H */
19348 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19349 rm -f tmp-stdint.h
19350 else
19351 mv -f tmp-stdint.h gstdint.h
19356 esac
19357 done # for ac_tag
19360 as_fn_exit 0
19361 _ACEOF
19362 ac_clean_files=$ac_clean_files_save
19364 test $ac_write_fail = 0 ||
19365 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19368 # configure is writing to config.log, and then calls config.status.
19369 # config.status does its own redirection, appending to config.log.
19370 # Unfortunately, on DOS this fails, as config.log is still kept open
19371 # by configure, so config.status won't be able to write to it; its
19372 # output is simply discarded. So we exec the FD to /dev/null,
19373 # effectively closing config.log, so it can be properly (re)opened and
19374 # appended to by config.status. When coming back to configure, we
19375 # need to make the FD available again.
19376 if test "$no_create" != yes; then
19377 ac_cs_success=:
19378 ac_config_status_args=
19379 test "$silent" = yes &&
19380 ac_config_status_args="$ac_config_status_args --quiet"
19381 exec 5>/dev/null
19382 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19383 exec 5>>config.log
19384 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19385 # would make configure fail if this is the last instruction.
19386 $ac_cs_success || as_fn_exit $?
19390 # CONFIG_SUBDIRS section.
19392 if test "$no_recursion" != yes; then
19394 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19395 # so they do not pile up.
19396 ac_sub_configure_args=
19397 ac_prev=
19398 eval "set x $ac_configure_args"
19399 shift
19400 for ac_arg
19402 if test -n "$ac_prev"; then
19403 ac_prev=
19404 continue
19406 case $ac_arg in
19407 -cache-file | --cache-file | --cache-fil | --cache-fi \
19408 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19409 ac_prev=cache_file ;;
19410 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19411 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19412 | --c=*)
19414 --config-cache | -C)
19416 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19417 ac_prev=srcdir ;;
19418 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19420 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19421 ac_prev=prefix ;;
19422 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19424 --disable-option-checking)
19427 case $ac_arg in
19428 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19429 esac
19430 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19431 esac
19432 done
19434 # Always prepend --prefix to ensure using the same prefix
19435 # in subdir configurations.
19436 ac_arg="--prefix=$prefix"
19437 case $ac_arg in
19438 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19439 esac
19440 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19442 # Pass --silent
19443 if test "$silent" = yes; then
19444 ac_sub_configure_args="--silent $ac_sub_configure_args"
19447 # Always prepend --disable-option-checking to silence warnings, since
19448 # different subdirs can have different --enable and --with options.
19449 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19451 ac_popdir=`pwd`
19452 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19454 # Do not complain, so a configure script can configure whichever
19455 # parts of a large source tree are present.
19456 test -d "$srcdir/$ac_dir" || continue
19458 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19459 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19460 $as_echo "$ac_msg" >&6
19461 as_dir="$ac_dir"; as_fn_mkdir_p
19462 ac_builddir=.
19464 case "$ac_dir" in
19465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19467 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19468 # A ".." for each directory in $ac_dir_suffix.
19469 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19470 case $ac_top_builddir_sub in
19471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19473 esac ;;
19474 esac
19475 ac_abs_top_builddir=$ac_pwd
19476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19477 # for backward compatibility:
19478 ac_top_builddir=$ac_top_build_prefix
19480 case $srcdir in
19481 .) # We are building in place.
19482 ac_srcdir=.
19483 ac_top_srcdir=$ac_top_builddir_sub
19484 ac_abs_top_srcdir=$ac_pwd ;;
19485 [\\/]* | ?:[\\/]* ) # Absolute name.
19486 ac_srcdir=$srcdir$ac_dir_suffix;
19487 ac_top_srcdir=$srcdir
19488 ac_abs_top_srcdir=$srcdir ;;
19489 *) # Relative name.
19490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19491 ac_top_srcdir=$ac_top_build_prefix$srcdir
19492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19493 esac
19494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19497 cd "$ac_dir"
19499 # Check for guested configure; otherwise get Cygnus style configure.
19500 if test -f "$ac_srcdir/configure.gnu"; then
19501 ac_sub_configure=$ac_srcdir/configure.gnu
19502 elif test -f "$ac_srcdir/configure"; then
19503 ac_sub_configure=$ac_srcdir/configure
19504 elif test -f "$ac_srcdir/configure.in"; then
19505 # This should be Cygnus configure.
19506 ac_sub_configure=$ac_aux_dir/configure
19507 else
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19510 ac_sub_configure=
19513 # The recursion is here.
19514 if test -n "$ac_sub_configure"; then
19515 # Make the cache file name correct relative to the subdirectory.
19516 case $cache_file in
19517 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19518 *) # Relative name.
19519 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19520 esac
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19523 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19524 # The eval makes quoting arguments work.
19525 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19526 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19527 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19530 cd "$ac_popdir"
19531 done
19533 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19535 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}