Add -std=c99 to avx-cmpsd-1.c and avx-cmpss-1.c.
[official-gcc.git] / libgomp / configure
blob3b5b3494798d0743aa44f43377e2bebdc804f8f6
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 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 OMP_NEST_LOCK_25_KIND
605 OMP_LOCK_25_KIND
606 OMP_NEST_LOCK_25_ALIGN
607 OMP_NEST_LOCK_25_SIZE
608 OMP_LOCK_25_ALIGN
609 OMP_LOCK_25_SIZE
610 OMP_NEST_LOCK_KIND
611 OMP_LOCK_KIND
612 OMP_NEST_LOCK_ALIGN
613 OMP_NEST_LOCK_SIZE
614 OMP_LOCK_ALIGN
615 OMP_LOCK_SIZE
616 USE_FORTRAN_FALSE
617 USE_FORTRAN_TRUE
618 link_gomp
619 XLDFLAGS
620 XCFLAGS
621 config_path
622 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
623 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
624 OPT_LDFLAGS
625 SECTION_LDFLAGS
626 libtool_VERSION
627 ac_ct_FC
628 FCFLAGS
630 MAINT
631 MAINTAINER_MODE_FALSE
632 MAINTAINER_MODE_TRUE
633 enable_static
634 enable_shared
636 OTOOL64
637 OTOOL
638 LIPO
639 NMEDIT
640 DSYMUTIL
641 OBJDUMP
642 LN_S
644 ac_ct_DUMPBIN
645 DUMPBIN
647 FGREP
648 EGREP
649 GREP
651 LIBTOOL
652 BUILD_INFO_FALSE
653 BUILD_INFO_TRUE
654 PERL
655 RANLIB
657 am__fastdepCC_FALSE
658 am__fastdepCC_TRUE
659 CCDEPMODE
660 AMDEPBACKSLASH
661 AMDEP_FALSE
662 AMDEP_TRUE
663 am__quote
664 am__include
665 DEPDIR
666 OBJEXT
667 EXEEXT
668 ac_ct_CC
669 CPPFLAGS
670 LDFLAGS
671 CFLAGS
673 toolexeclibdir
674 toolexecdir
675 multi_basedir
676 am__untar
677 am__tar
678 AMTAR
679 am__leading_dot
680 SET_MAKE
682 mkdir_p
683 MKDIR_P
684 INSTALL_STRIP_PROGRAM
685 STRIP
686 install_sh
687 MAKEINFO
688 AUTOHEADER
689 AUTOMAKE
690 AUTOCONF
691 ACLOCAL
692 VERSION
693 PACKAGE
694 CYGPATH_W
695 am__isrc
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 target_os
700 target_vendor
701 target_cpu
702 target
703 host_os
704 host_vendor
705 host_cpu
706 host
707 build_os
708 build_vendor
709 build_cpu
710 build
711 GENINSRC_FALSE
712 GENINSRC_TRUE
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 enable_version_specific_runtime_libs
755 enable_generated_files_in_srcdir
756 enable_multilib
757 enable_dependency_tracking
758 enable_shared
759 enable_static
760 with_pic
761 enable_fast_install
762 with_gnu_ld
763 enable_libtool_lock
764 enable_maintainer_mode
765 enable_linux_futex
766 enable_tls
767 enable_symvers
769 ac_precious_vars='build_alias
770 host_alias
771 target_alias
773 CPPFLAGS
775 FCFLAGS
776 LDFLAGS
777 LIBS'
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir='${datarootdir}/info'
820 htmldir='${docdir}'
821 dvidir='${docdir}'
822 pdfdir='${docdir}'
823 psdir='${docdir}'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
828 ac_prev=
829 ac_dashdash=
830 for ac_option
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
835 ac_prev=
836 continue
839 case $ac_option in
840 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *) ac_optarg=yes ;;
842 esac
844 # Accept the important Cygnus configure options, so we can diagnose typos.
846 case $ac_dashdash$ac_option in
848 ac_dashdash=yes ;;
850 -bindir | --bindir | --bindi | --bind | --bin | --bi)
851 ac_prev=bindir ;;
852 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853 bindir=$ac_optarg ;;
855 -build | --build | --buil | --bui | --bu)
856 ac_prev=build_alias ;;
857 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858 build_alias=$ac_optarg ;;
860 -cache-file | --cache-file | --cache-fil | --cache-fi \
861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862 ac_prev=cache_file ;;
863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865 cache_file=$ac_optarg ;;
867 --config-cache | -C)
868 cache_file=config.cache ;;
870 -datadir | --datadir | --datadi | --datad)
871 ac_prev=datadir ;;
872 -datadir=* | --datadir=* | --datadi=* | --datad=*)
873 datadir=$ac_optarg ;;
875 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876 | --dataroo | --dataro | --datar)
877 ac_prev=datarootdir ;;
878 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880 datarootdir=$ac_optarg ;;
882 -disable-* | --disable-*)
883 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 as_fn_error "invalid feature name: $ac_useropt"
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
891 "enable_$ac_useropt"
892 "*) ;;
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
895 esac
896 eval enable_$ac_useropt=no ;;
898 -docdir | --docdir | --docdi | --doc | --do)
899 ac_prev=docdir ;;
900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901 docdir=$ac_optarg ;;
903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904 ac_prev=dvidir ;;
905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906 dvidir=$ac_optarg ;;
908 -enable-* | --enable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
917 "enable_$ac_useropt"
918 "*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=\$ac_optarg ;;
924 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926 | --exec | --exe | --ex)
927 ac_prev=exec_prefix ;;
928 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930 | --exec=* | --exe=* | --ex=*)
931 exec_prefix=$ac_optarg ;;
933 -gas | --gas | --ga | --g)
934 # Obsolete; use --with-gas.
935 with_gas=yes ;;
937 -help | --help | --hel | --he | -h)
938 ac_init_help=long ;;
939 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940 ac_init_help=recursive ;;
941 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942 ac_init_help=short ;;
944 -host | --host | --hos | --ho)
945 ac_prev=host_alias ;;
946 -host=* | --host=* | --hos=* | --ho=*)
947 host_alias=$ac_optarg ;;
949 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 ac_prev=htmldir ;;
951 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 | --ht=*)
953 htmldir=$ac_optarg ;;
955 -includedir | --includedir | --includedi | --included | --include \
956 | --includ | --inclu | --incl | --inc)
957 ac_prev=includedir ;;
958 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959 | --includ=* | --inclu=* | --incl=* | --inc=*)
960 includedir=$ac_optarg ;;
962 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 ac_prev=infodir ;;
964 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965 infodir=$ac_optarg ;;
967 -libdir | --libdir | --libdi | --libd)
968 ac_prev=libdir ;;
969 -libdir=* | --libdir=* | --libdi=* | --libd=*)
970 libdir=$ac_optarg ;;
972 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973 | --libexe | --libex | --libe)
974 ac_prev=libexecdir ;;
975 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976 | --libexe=* | --libex=* | --libe=*)
977 libexecdir=$ac_optarg ;;
979 -localedir | --localedir | --localedi | --localed | --locale)
980 ac_prev=localedir ;;
981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982 localedir=$ac_optarg ;;
984 -localstatedir | --localstatedir | --localstatedi | --localstated \
985 | --localstate | --localstat | --localsta | --localst | --locals)
986 ac_prev=localstatedir ;;
987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989 localstatedir=$ac_optarg ;;
991 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 ac_prev=mandir ;;
993 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994 mandir=$ac_optarg ;;
996 -nfp | --nfp | --nf)
997 # Obsolete; use --without-fp.
998 with_fp=no ;;
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c | -n)
1002 no_create=yes ;;
1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 no_recursion=yes ;;
1008 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010 | --oldin | --oldi | --old | --ol | --o)
1011 ac_prev=oldincludedir ;;
1012 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015 oldincludedir=$ac_optarg ;;
1017 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 ac_prev=prefix ;;
1019 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020 prefix=$ac_optarg ;;
1022 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023 | --program-pre | --program-pr | --program-p)
1024 ac_prev=program_prefix ;;
1025 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027 program_prefix=$ac_optarg ;;
1029 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030 | --program-suf | --program-su | --program-s)
1031 ac_prev=program_suffix ;;
1032 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034 program_suffix=$ac_optarg ;;
1036 -program-transform-name | --program-transform-name \
1037 | --program-transform-nam | --program-transform-na \
1038 | --program-transform-n | --program-transform- \
1039 | --program-transform | --program-transfor \
1040 | --program-transfo | --program-transf \
1041 | --program-trans | --program-tran \
1042 | --progr-tra | --program-tr | --program-t)
1043 ac_prev=program_transform_name ;;
1044 -program-transform-name=* | --program-transform-name=* \
1045 | --program-transform-nam=* | --program-transform-na=* \
1046 | --program-transform-n=* | --program-transform-=* \
1047 | --program-transform=* | --program-transfor=* \
1048 | --program-transfo=* | --program-transf=* \
1049 | --program-trans=* | --program-tran=* \
1050 | --progr-tra=* | --program-tr=* | --program-t=*)
1051 program_transform_name=$ac_optarg ;;
1053 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 ac_prev=pdfdir ;;
1055 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056 pdfdir=$ac_optarg ;;
1058 -psdir | --psdir | --psdi | --psd | --ps)
1059 ac_prev=psdir ;;
1060 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061 psdir=$ac_optarg ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 silent=yes ;;
1067 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 ac_prev=sbindir ;;
1069 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 | --sbi=* | --sb=*)
1071 sbindir=$ac_optarg ;;
1073 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075 | --sharedst | --shareds | --shared | --share | --shar \
1076 | --sha | --sh)
1077 ac_prev=sharedstatedir ;;
1078 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 | --sha=* | --sh=*)
1082 sharedstatedir=$ac_optarg ;;
1084 -site | --site | --sit)
1085 ac_prev=site ;;
1086 -site=* | --site=* | --sit=*)
1087 site=$ac_optarg ;;
1089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 ac_prev=srcdir ;;
1091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092 srcdir=$ac_optarg ;;
1094 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095 | --syscon | --sysco | --sysc | --sys | --sy)
1096 ac_prev=sysconfdir ;;
1097 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099 sysconfdir=$ac_optarg ;;
1101 -target | --target | --targe | --targ | --tar | --ta | --t)
1102 ac_prev=target_alias ;;
1103 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104 target_alias=$ac_optarg ;;
1106 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107 verbose=yes ;;
1109 -version | --version | --versio | --versi | --vers | -V)
1110 ac_init_version=: ;;
1112 -with-* | --with-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 as_fn_error "invalid package name: $ac_useropt"
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1121 "with_$ac_useropt"
1122 "*) ;;
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1125 esac
1126 eval with_$ac_useropt=\$ac_optarg ;;
1128 -without-* | --without-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error "invalid package name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1137 "with_$ac_useropt"
1138 "*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval with_$ac_useropt=no ;;
1144 --x)
1145 # Obsolete; use --with-x.
1146 with_x=yes ;;
1148 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149 | --x-incl | --x-inc | --x-in | --x-i)
1150 ac_prev=x_includes ;;
1151 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153 x_includes=$ac_optarg ;;
1155 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157 ac_prev=x_libraries ;;
1158 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160 x_libraries=$ac_optarg ;;
1162 -*) as_fn_error "unrecognized option: \`$ac_option'
1163 Try \`$0 --help' for more information."
1166 *=*)
1167 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168 # Reject names that are not valid shell variable names.
1169 case $ac_envvar in #(
1170 '' | [0-9]* | *[!_$as_cr_alnum]* )
1171 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1172 esac
1173 eval $ac_envvar=\$ac_optarg
1174 export $ac_envvar ;;
1177 # FIXME: should be removed in autoconf 3.0.
1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1184 esac
1185 done
1187 if test -n "$ac_prev"; then
1188 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189 as_fn_error "missing argument to $ac_option"
1192 if test -n "$ac_unrecognized_opts"; then
1193 case $enable_option_checking in
1194 no) ;;
1195 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197 esac
1200 # Check all directory arguments for consistency.
1201 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1206 eval ac_val=\$$ac_var
1207 # Remove trailing slashes.
1208 case $ac_val in
1209 */ )
1210 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211 eval $ac_var=\$ac_val;;
1212 esac
1213 # Be sure to have absolute directory names.
1214 case $ac_val in
1215 [\\/$]* | ?:[\\/]* ) continue;;
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 esac
1218 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1219 done
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1224 build=$build_alias
1225 host=$host_alias
1226 target=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1235 cross_compiling=yes
1239 ac_tool_prefix=
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242 test "$silent" = yes && exec 6>/dev/null
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248 as_fn_error "working directory cannot be determined"
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250 as_fn_error "pwd does not report name of working directory"
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir=`$as_dirname -- "$as_myself" ||
1258 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$as_myself" : 'X\(//\)[^/]' \| \
1260 X"$as_myself" : 'X\(//\)$' \| \
1261 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262 $as_echo X"$as_myself" |
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 s//\1/
1267 /^X\(\/\/\)[^/].*/{
1268 s//\1/
1271 /^X\(\/\/\)$/{
1272 s//\1/
1275 /^X\(\/\).*/{
1276 s//\1/
1279 s/.*/./; q'`
1280 srcdir=$ac_confdir
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 srcdir=..
1284 else
1285 ac_srcdir_defaulted=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 ac_abs_confdir=`(
1293 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1294 pwd)`
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 srcdir=.
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1302 case $srcdir in
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 esac
1305 for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 done
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1318 cat <<_ACEOF
1319 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1328 Configuration:
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 [PREFIX]
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1372 _ACEOF
1374 cat <<\_ACEOF
1376 Program names:
1377 --program-prefix=PREFIX prepend PREFIX to installed program names
1378 --program-suffix=SUFFIX append SUFFIX to installed program names
1379 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1381 System types:
1382 --build=BUILD configure for building on BUILD [guessed]
1383 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1384 --target=TARGET configure for building compilers for TARGET [HOST]
1385 _ACEOF
1388 if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
1391 esac
1392 cat <<\_ACEOF
1394 Optional Features:
1395 --disable-option-checking ignore unrecognized --enable/--with options
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-version-specific-runtime-libs
1399 Specify that runtime libraries should be installed
1400 in a compiler-specific directory [default=no]
1401 --enable-generated-files-in-srcdir
1402 put copies of generated files in source dir intended
1403 for creating source tarballs for users without
1404 texinfo bison or flex. [default=no]
1405 --enable-multilib build many library versions (default)
1406 --disable-dependency-tracking speeds up one-time build
1407 --enable-dependency-tracking do not reject slow dependency extractors
1408 --enable-shared[=PKGS] build shared libraries [default=yes]
1409 --enable-static[=PKGS] build static libraries [default=yes]
1410 --enable-fast-install[=PKGS]
1411 optimize for fast installation [default=yes]
1412 --disable-libtool-lock avoid locking (might break parallel builds)
1413 --enable-maintainer-mode enable make rules and dependencies not useful
1414 (and sometimes confusing) to the casual installer
1415 --enable-linux-futex use the Linux futex system call [default=default]
1416 --enable-tls Use thread-local storage [default=yes]
1417 --enable-symvers=STYLE enables symbol versioning of the shared library
1418 [default=yes]
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-pic try to use only PIC/non-PIC objects [default=use
1424 both]
1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1427 Some influential environment variables:
1428 CC C compiler command
1429 CFLAGS C compiler flags
1430 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1431 nonstandard directory <lib dir>
1432 LIBS libraries to pass to the linker, e.g. -l<library>
1433 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1434 you have headers in a nonstandard directory <include dir>
1435 CPP C preprocessor
1436 FC Fortran compiler command
1437 FCFLAGS Fortran compiler flags
1439 Use these variables to override the choices made by `configure' or to help
1440 it to find libraries and programs with nonstandard names/locations.
1442 Report bugs to the package provider.
1443 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1444 General help using GNU software: <http://www.gnu.org/gethelp/>.
1445 _ACEOF
1446 ac_status=$?
1449 if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452 test -d "$ac_dir" ||
1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454 continue
1455 ac_builddir=.
1457 case "$ac_dir" in
1458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461 # A ".." for each directory in $ac_dir_suffix.
1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 esac ;;
1467 esac
1468 ac_abs_top_builddir=$ac_pwd
1469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470 # for backward compatibility:
1471 ac_top_builddir=$ac_top_build_prefix
1473 case $srcdir in
1474 .) # We are building in place.
1475 ac_srcdir=.
1476 ac_top_srcdir=$ac_top_builddir_sub
1477 ac_abs_top_srcdir=$ac_pwd ;;
1478 [\\/]* | ?:[\\/]* ) # Absolute name.
1479 ac_srcdir=$srcdir$ac_dir_suffix;
1480 ac_top_srcdir=$srcdir
1481 ac_abs_top_srcdir=$srcdir ;;
1482 *) # Relative name.
1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486 esac
1487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489 cd "$ac_dir" || { ac_status=$?; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure" --help=recursive
1497 else
1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499 fi || ac_status=$?
1500 cd "$ac_pwd" || { ac_status=$?; break; }
1501 done
1504 test -n "$ac_init_help" && exit $ac_status
1505 if $ac_init_version; then
1506 cat <<\_ACEOF
1507 GNU OpenMP Runtime Library configure 1.0
1508 generated by GNU Autoconf 2.64
1510 Copyright (C) 2009 Free Software Foundation, Inc.
1511 This configure script is free software; the Free Software Foundation
1512 gives unlimited permission to copy, distribute and modify it.
1513 _ACEOF
1514 exit
1517 ## ------------------------ ##
1518 ## Autoconf initialization. ##
1519 ## ------------------------ ##
1521 # ac_fn_c_try_compile LINENO
1522 # --------------------------
1523 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_c_try_compile ()
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 rm -f conftest.$ac_objext
1528 if { { ac_try="$ac_compile"
1529 case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532 esac
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext; then :
1547 ac_retval=0
1548 else
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1552 ac_retval=1
1554 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1555 return $ac_retval
1557 } # ac_fn_c_try_compile
1559 # ac_fn_c_try_link LINENO
1560 # -----------------------
1561 # Try to link conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_link ()
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext conftest$ac_exeext
1566 if { { ac_try="$ac_link"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_link") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest$ac_exeext && {
1585 test "$cross_compiling" = yes ||
1586 $as_test_x conftest$ac_exeext
1587 }; then :
1588 ac_retval=0
1589 else
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1593 ac_retval=1
1595 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1596 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1597 # interfere with the next link command; also delete a directory that is
1598 # left behind by Apple's compiler. We do this before executing the actions.
1599 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1600 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1601 return $ac_retval
1603 } # ac_fn_c_try_link
1605 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1606 # -------------------------------------------------------
1607 # Tests whether HEADER exists and can be compiled using the include files in
1608 # INCLUDES, setting the cache variable VAR accordingly.
1609 ac_fn_c_check_header_compile ()
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613 $as_echo_n "checking for $2... " >&6; }
1614 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1615 $as_echo_n "(cached) " >&6
1616 else
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1620 #include <$2>
1621 _ACEOF
1622 if ac_fn_c_try_compile "$LINENO"; then :
1623 eval "$3=yes"
1624 else
1625 eval "$3=no"
1627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629 eval ac_res=\$$3
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 $as_echo "$ac_res" >&6; }
1632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1634 } # ac_fn_c_check_header_compile
1636 # ac_fn_c_try_cpp LINENO
1637 # ----------------------
1638 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_cpp ()
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if { { ac_try="$ac_cpp conftest.$ac_ext"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } >/dev/null && {
1658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 }; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1666 ac_retval=1
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 return $ac_retval
1671 } # ac_fn_c_try_cpp
1673 # ac_fn_c_try_run LINENO
1674 # ----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676 # that executables *can* be run.
1677 ac_fn_c_try_run ()
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>&5
1688 ac_status=$?
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691 { { case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_try") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; }; }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: program exited with status $ac_status" >&5
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1707 ac_retval=$ac_status
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711 return $ac_retval
1713 } # ac_fn_c_try_run
1715 # ac_fn_c_check_func LINENO FUNC VAR
1716 # ----------------------------------
1717 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1718 ac_fn_c_check_func ()
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1724 $as_echo_n "(cached) " >&6
1725 else
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1728 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1730 #define $2 innocuous_$2
1732 /* System header to define __stub macros and hopefully few prototypes,
1733 which can conflict with char $2 (); below.
1734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1735 <limits.h> exists even on freestanding compilers. */
1737 #ifdef __STDC__
1738 # include <limits.h>
1739 #else
1740 # include <assert.h>
1741 #endif
1743 #undef $2
1745 /* Override any GCC internal prototype to avoid an error.
1746 Use char because int might match the return type of a GCC
1747 builtin and then its argument prototype would still apply. */
1748 #ifdef __cplusplus
1749 extern "C"
1750 #endif
1751 char $2 ();
1752 /* The GNU C library defines this for functions which it implements
1753 to always fail with ENOSYS. Some functions are actually named
1754 something starting with __ and the normal name is an alias. */
1755 #if defined __stub_$2 || defined __stub___$2
1756 choke me
1757 #endif
1760 main ()
1762 return $2 ();
1764 return 0;
1766 _ACEOF
1767 if ac_fn_c_try_link "$LINENO"; then :
1768 eval "$3=yes"
1769 else
1770 eval "$3=no"
1772 rm -f core conftest.err conftest.$ac_objext \
1773 conftest$ac_exeext conftest.$ac_ext
1775 eval ac_res=\$$3
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780 } # ac_fn_c_check_func
1782 # ac_fn_fc_try_compile LINENO
1783 # ---------------------------
1784 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_fc_try_compile ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext
1789 if { { ac_try="$ac_compile"
1790 case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_compile") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_fc_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest.$ac_objext; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1813 ac_retval=1
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 return $ac_retval
1818 } # ac_fn_fc_try_compile
1820 # ac_fn_fc_try_link LINENO
1821 # ------------------------
1822 # Try to link conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_fc_try_link ()
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 rm -f conftest.$ac_objext conftest$ac_exeext
1827 if { { ac_try="$ac_link"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_link") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } && {
1843 test -z "$ac_fc_werror_flag" ||
1844 test ! -s conftest.err
1845 } && test -s conftest$ac_exeext && {
1846 test "$cross_compiling" = yes ||
1847 $as_test_x conftest$ac_exeext
1848 }; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1854 ac_retval=1
1856 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1857 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1858 # interfere with the next link command; also delete a directory that is
1859 # left behind by Apple's compiler. We do this before executing the actions.
1860 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1861 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862 return $ac_retval
1864 } # ac_fn_fc_try_link
1866 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1867 # -------------------------------------------------------
1868 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1869 # the include files in INCLUDES and setting the cache variable VAR
1870 # accordingly.
1871 ac_fn_c_check_header_mongrel ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1878 $as_echo_n "(cached) " >&6
1880 eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 else
1884 # Is the header compilable?
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1886 $as_echo_n "checking $2 usability... " >&6; }
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1890 #include <$2>
1891 _ACEOF
1892 if ac_fn_c_try_compile "$LINENO"; then :
1893 ac_header_compiler=yes
1894 else
1895 ac_header_compiler=no
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1899 $as_echo "$ac_header_compiler" >&6; }
1901 # Is the header present?
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1903 $as_echo_n "checking $2 presence... " >&6; }
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1906 #include <$2>
1907 _ACEOF
1908 if ac_fn_c_try_cpp "$LINENO"; then :
1909 ac_header_preproc=yes
1910 else
1911 ac_header_preproc=no
1913 rm -f conftest.err conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1915 $as_echo "$ac_header_preproc" >&6; }
1917 # So? What about this header?
1918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1919 yes:no: )
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1921 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1923 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1925 no:yes:* )
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1927 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1929 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1931 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1933 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1935 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937 esac
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1941 $as_echo_n "(cached) " >&6
1942 else
1943 eval "$3=\$ac_header_compiler"
1945 eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951 } # ac_fn_c_check_header_mongrel
1953 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1954 # -------------------------------------------
1955 # Tests whether TYPE exists after having included INCLUDES, setting cache
1956 # variable VAR accordingly.
1957 ac_fn_c_check_type ()
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1963 $as_echo_n "(cached) " >&6
1964 else
1965 eval "$3=no"
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1970 main ()
1972 if (sizeof ($2))
1973 return 0;
1975 return 0;
1977 _ACEOF
1978 if ac_fn_c_try_compile "$LINENO"; then :
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1983 main ()
1985 if (sizeof (($2)))
1986 return 0;
1988 return 0;
1990 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1993 else
1994 eval "$3=yes"
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2005 } # ac_fn_c_check_type
2007 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2008 # --------------------------------------------
2009 # Tries to find the compile-time value of EXPR in a program that includes
2010 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2011 # computed
2012 ac_fn_c_compute_int ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 if test "$cross_compiling" = yes; then
2016 # Depending upon the size, compute the lo and hi bounds.
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2021 main ()
2023 static int test_array [1 - 2 * !(($2) >= 0)];
2024 test_array [0] = 0
2027 return 0;
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 ac_lo=0 ac_mid=0
2032 while :; do
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2037 main ()
2039 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2040 test_array [0] = 0
2043 return 0;
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047 ac_hi=$ac_mid; break
2048 else
2049 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2050 if test $ac_lo -le $ac_mid; then
2051 ac_lo= ac_hi=
2052 break
2054 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 done
2058 else
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2063 main ()
2065 static int test_array [1 - 2 * !(($2) < 0)];
2066 test_array [0] = 0
2069 return 0;
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 ac_hi=-1 ac_mid=-1
2074 while :; do
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2079 main ()
2081 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2082 test_array [0] = 0
2085 return 0;
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_lo=$ac_mid; break
2090 else
2091 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2092 if test $ac_mid -le $ac_hi; then
2093 ac_lo= ac_hi=
2094 break
2096 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 done
2100 else
2101 ac_lo= ac_hi=
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 # Binary search between lo and hi bounds.
2107 while test "x$ac_lo" != "x$ac_hi"; do
2108 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2113 main ()
2115 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2116 test_array [0] = 0
2119 return 0;
2121 _ACEOF
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123 ac_hi=$ac_mid
2124 else
2125 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 done
2129 case $ac_lo in #((
2130 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2131 '') ac_retval=1 ;;
2132 esac
2133 else
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2137 static long int longval () { return $2; }
2138 static unsigned long int ulongval () { return $2; }
2139 #include <stdio.h>
2140 #include <stdlib.h>
2142 main ()
2145 FILE *f = fopen ("conftest.val", "w");
2146 if (! f)
2147 return 1;
2148 if (($2) < 0)
2150 long int i = longval ();
2151 if (i != ($2))
2152 return 1;
2153 fprintf (f, "%ld", i);
2155 else
2157 unsigned long int i = ulongval ();
2158 if (i != ($2))
2159 return 1;
2160 fprintf (f, "%lu", i);
2162 /* Do not output a trailing newline, as this causes \r\n confusion
2163 on some platforms. */
2164 return ferror (f) || fclose (f) != 0;
2167 return 0;
2169 _ACEOF
2170 if ac_fn_c_try_run "$LINENO"; then :
2171 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2172 else
2173 ac_retval=1
2175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2176 conftest.$ac_objext conftest.beam conftest.$ac_ext
2177 rm -f conftest.val
2180 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2181 return $ac_retval
2183 } # ac_fn_c_compute_int
2184 cat >config.log <<_ACEOF
2185 This file contains any messages produced by compilers while
2186 running configure, to aid debugging if configure makes a mistake.
2188 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
2189 generated by GNU Autoconf 2.64. Invocation command line was
2191 $ $0 $@
2193 _ACEOF
2194 exec 5>>config.log
2196 cat <<_ASUNAME
2197 ## --------- ##
2198 ## Platform. ##
2199 ## --------- ##
2201 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2202 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2203 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2204 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2205 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2207 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2208 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2210 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2211 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2212 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2213 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2214 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2215 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2216 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2218 _ASUNAME
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 for as_dir in $PATH
2223 IFS=$as_save_IFS
2224 test -z "$as_dir" && as_dir=.
2225 $as_echo "PATH: $as_dir"
2226 done
2227 IFS=$as_save_IFS
2229 } >&5
2231 cat >&5 <<_ACEOF
2234 ## ----------- ##
2235 ## Core tests. ##
2236 ## ----------- ##
2238 _ACEOF
2241 # Keep a trace of the command line.
2242 # Strip out --no-create and --no-recursion so they do not pile up.
2243 # Strip out --silent because we don't want to record it for future runs.
2244 # Also quote any args containing shell meta-characters.
2245 # Make two passes to allow for proper duplicate-argument suppression.
2246 ac_configure_args=
2247 ac_configure_args0=
2248 ac_configure_args1=
2249 ac_must_keep_next=false
2250 for ac_pass in 1 2
2252 for ac_arg
2254 case $ac_arg in
2255 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2257 | -silent | --silent | --silen | --sile | --sil)
2258 continue ;;
2259 *\'*)
2260 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2261 esac
2262 case $ac_pass in
2263 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2265 as_fn_append ac_configure_args1 " '$ac_arg'"
2266 if test $ac_must_keep_next = true; then
2267 ac_must_keep_next=false # Got value, back to normal.
2268 else
2269 case $ac_arg in
2270 *=* | --config-cache | -C | -disable-* | --disable-* \
2271 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2272 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2273 | -with-* | --with-* | -without-* | --without-* | --x)
2274 case "$ac_configure_args0 " in
2275 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2276 esac
2278 -* ) ac_must_keep_next=true ;;
2279 esac
2281 as_fn_append ac_configure_args " '$ac_arg'"
2283 esac
2284 done
2285 done
2286 { ac_configure_args0=; unset ac_configure_args0;}
2287 { ac_configure_args1=; unset ac_configure_args1;}
2289 # When interrupted or exit'd, cleanup temporary files, and complete
2290 # config.log. We remove comments because anyway the quotes in there
2291 # would cause problems or look ugly.
2292 # WARNING: Use '\'' to represent an apostrophe within the trap.
2293 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2294 trap 'exit_status=$?
2295 # Save into config.log some information that might help in debugging.
2297 echo
2299 cat <<\_ASBOX
2300 ## ---------------- ##
2301 ## Cache variables. ##
2302 ## ---------------- ##
2303 _ASBOX
2304 echo
2305 # The following way of writing the cache mishandles newlines in values,
2307 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2308 eval ac_val=\$$ac_var
2309 case $ac_val in #(
2310 *${as_nl}*)
2311 case $ac_var in #(
2312 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2313 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2314 esac
2315 case $ac_var in #(
2316 _ | IFS | as_nl) ;; #(
2317 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2318 *) { eval $ac_var=; unset $ac_var;} ;;
2319 esac ;;
2320 esac
2321 done
2322 (set) 2>&1 |
2323 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2324 *${as_nl}ac_space=\ *)
2325 sed -n \
2326 "s/'\''/'\''\\\\'\'''\''/g;
2327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2328 ;; #(
2330 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2332 esac |
2333 sort
2335 echo
2337 cat <<\_ASBOX
2338 ## ----------------- ##
2339 ## Output variables. ##
2340 ## ----------------- ##
2341 _ASBOX
2342 echo
2343 for ac_var in $ac_subst_vars
2345 eval ac_val=\$$ac_var
2346 case $ac_val in
2347 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2348 esac
2349 $as_echo "$ac_var='\''$ac_val'\''"
2350 done | sort
2351 echo
2353 if test -n "$ac_subst_files"; then
2354 cat <<\_ASBOX
2355 ## ------------------- ##
2356 ## File substitutions. ##
2357 ## ------------------- ##
2358 _ASBOX
2359 echo
2360 for ac_var in $ac_subst_files
2362 eval ac_val=\$$ac_var
2363 case $ac_val in
2364 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2365 esac
2366 $as_echo "$ac_var='\''$ac_val'\''"
2367 done | sort
2368 echo
2371 if test -s confdefs.h; then
2372 cat <<\_ASBOX
2373 ## ----------- ##
2374 ## confdefs.h. ##
2375 ## ----------- ##
2376 _ASBOX
2377 echo
2378 cat confdefs.h
2379 echo
2381 test "$ac_signal" != 0 &&
2382 $as_echo "$as_me: caught signal $ac_signal"
2383 $as_echo "$as_me: exit $exit_status"
2384 } >&5
2385 rm -f core *.core core.conftest.* &&
2386 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2387 exit $exit_status
2389 for ac_signal in 1 2 13 15; do
2390 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2391 done
2392 ac_signal=0
2394 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2395 rm -f -r conftest* confdefs.h
2397 $as_echo "/* confdefs.h */" > confdefs.h
2399 # Predefined preprocessor variables.
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_NAME "$PACKAGE_NAME"
2403 _ACEOF
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2407 _ACEOF
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2411 _ACEOF
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_STRING "$PACKAGE_STRING"
2415 _ACEOF
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2419 _ACEOF
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_URL "$PACKAGE_URL"
2423 _ACEOF
2426 # Let the site file select an alternate cache file if it wants to.
2427 # Prefer an explicitly selected file to automatically selected ones.
2428 ac_site_file1=NONE
2429 ac_site_file2=NONE
2430 if test -n "$CONFIG_SITE"; then
2431 ac_site_file1=$CONFIG_SITE
2432 elif test "x$prefix" != xNONE; then
2433 ac_site_file1=$prefix/share/config.site
2434 ac_site_file2=$prefix/etc/config.site
2435 else
2436 ac_site_file1=$ac_default_prefix/share/config.site
2437 ac_site_file2=$ac_default_prefix/etc/config.site
2439 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2441 test "x$ac_site_file" = xNONE && continue
2442 if test -r "$ac_site_file"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2444 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2445 sed 's/^/| /' "$ac_site_file" >&5
2446 . "$ac_site_file"
2448 done
2450 if test -r "$cache_file"; then
2451 # Some versions of bash will fail to source /dev/null (special
2452 # files actually), so we avoid doing that.
2453 if test -f "$cache_file"; then
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2455 $as_echo "$as_me: loading cache $cache_file" >&6;}
2456 case $cache_file in
2457 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2458 *) . "./$cache_file";;
2459 esac
2461 else
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2463 $as_echo "$as_me: creating cache $cache_file" >&6;}
2464 >$cache_file
2467 # Check that the precious variables saved in the cache have kept the same
2468 # value.
2469 ac_cache_corrupted=false
2470 for ac_var in $ac_precious_vars; do
2471 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2472 eval ac_new_set=\$ac_env_${ac_var}_set
2473 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2474 eval ac_new_val=\$ac_env_${ac_var}_value
2475 case $ac_old_set,$ac_new_set in
2476 set,)
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2478 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2479 ac_cache_corrupted=: ;;
2480 ,set)
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2482 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2483 ac_cache_corrupted=: ;;
2484 ,);;
2486 if test "x$ac_old_val" != "x$ac_new_val"; then
2487 # differences in whitespace do not lead to failure.
2488 ac_old_val_w=`echo x $ac_old_val`
2489 ac_new_val_w=`echo x $ac_new_val`
2490 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2492 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2493 ac_cache_corrupted=:
2494 else
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2496 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2497 eval $ac_var=\$ac_old_val
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2500 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2502 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2503 fi;;
2504 esac
2505 # Pass precious variables to config.status.
2506 if test "$ac_new_set" = set; then
2507 case $ac_new_val in
2508 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2509 *) ac_arg=$ac_var=$ac_new_val ;;
2510 esac
2511 case " $ac_configure_args " in
2512 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2513 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2514 esac
2516 done
2517 if $ac_cache_corrupted; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2521 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2522 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2524 ## -------------------- ##
2525 ## Main body of script. ##
2526 ## -------------------- ##
2528 ac_ext=c
2529 ac_cpp='$CPP $CPPFLAGS'
2530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538 ac_config_headers="$ac_config_headers config.h"
2541 # -------
2542 # Options
2543 # -------
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2546 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2547 # Check whether --enable-version-specific-runtime-libs was given.
2548 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2549 enableval=$enable_version_specific_runtime_libs;
2550 case "$enableval" in
2551 yes|no) ;;
2552 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2553 esac
2555 else
2556 enable_version_specific_runtime_libs=no
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2561 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2563 # We would like our source tree to be readonly. However when releases or
2564 # pre-releases are generated, the flex/bison generated files as well as the
2565 # various formats of manuals need to be included along with the rest of the
2566 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2567 # just that.
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2569 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2570 # Check whether --enable-generated-files-in-srcdir was given.
2571 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2572 enableval=$enable_generated_files_in_srcdir;
2573 case "$enableval" in
2574 yes|no) ;;
2575 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2576 esac
2578 else
2579 enable_generated_files_in_srcdir=no
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2584 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2585 if test "$enable_generated_files_in_srcdir" = yes; then
2586 GENINSRC_TRUE=
2587 GENINSRC_FALSE='#'
2588 else
2589 GENINSRC_TRUE='#'
2590 GENINSRC_FALSE=
2595 # -------
2596 # -------
2598 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2600 # You will slowly go insane if you do not grok the following fact: when
2601 # building this library, the top-level /target/ becomes the library's /host/.
2603 # configure then causes --target to default to --host, exactly like any
2604 # other package using autoconf. Therefore, 'target' and 'host' will
2605 # always be the same. This makes sense both for native and cross compilers
2606 # just think about it for a little while. :-)
2608 # Also, if this library is being configured as part of a cross compiler, the
2609 # top-level configure script will pass the "real" host as $with_cross_host.
2611 # Do not delete or change the following two lines. For why, see
2612 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2613 ac_aux_dir=
2614 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2615 for ac_t in install-sh install.sh shtool; do
2616 if test -f "$ac_dir/$ac_t"; then
2617 ac_aux_dir=$ac_dir
2618 ac_install_sh="$ac_aux_dir/$ac_t -c"
2619 break 2
2621 done
2622 done
2623 if test -z "$ac_aux_dir"; then
2624 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2627 # These three variables are undocumented and unsupported,
2628 # and are intended to be withdrawn in a future Autoconf release.
2629 # They can cause serious problems if a builder's source tree is in a directory
2630 # whose full name contains unusual characters.
2631 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2632 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2633 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2636 # Make sure we can run config.sub.
2637 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2638 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2641 $as_echo_n "checking build system type... " >&6; }
2642 if test "${ac_cv_build+set}" = set; then :
2643 $as_echo_n "(cached) " >&6
2644 else
2645 ac_build_alias=$build_alias
2646 test "x$ac_build_alias" = x &&
2647 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2648 test "x$ac_build_alias" = x &&
2649 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2650 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2651 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2655 $as_echo "$ac_cv_build" >&6; }
2656 case $ac_cv_build in
2657 *-*-*) ;;
2658 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2659 esac
2660 build=$ac_cv_build
2661 ac_save_IFS=$IFS; IFS='-'
2662 set x $ac_cv_build
2663 shift
2664 build_cpu=$1
2665 build_vendor=$2
2666 shift; shift
2667 # Remember, the first character of IFS is used to create $*,
2668 # except with old shells:
2669 build_os=$*
2670 IFS=$ac_save_IFS
2671 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2675 $as_echo_n "checking host system type... " >&6; }
2676 if test "${ac_cv_host+set}" = set; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 if test "x$host_alias" = x; then
2680 ac_cv_host=$ac_cv_build
2681 else
2682 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2683 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2688 $as_echo "$ac_cv_host" >&6; }
2689 case $ac_cv_host in
2690 *-*-*) ;;
2691 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2692 esac
2693 host=$ac_cv_host
2694 ac_save_IFS=$IFS; IFS='-'
2695 set x $ac_cv_host
2696 shift
2697 host_cpu=$1
2698 host_vendor=$2
2699 shift; shift
2700 # Remember, the first character of IFS is used to create $*,
2701 # except with old shells:
2702 host_os=$*
2703 IFS=$ac_save_IFS
2704 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2708 $as_echo_n "checking target system type... " >&6; }
2709 if test "${ac_cv_target+set}" = set; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 if test "x$target_alias" = x; then
2713 ac_cv_target=$ac_cv_host
2714 else
2715 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2716 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2721 $as_echo "$ac_cv_target" >&6; }
2722 case $ac_cv_target in
2723 *-*-*) ;;
2724 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2725 esac
2726 target=$ac_cv_target
2727 ac_save_IFS=$IFS; IFS='-'
2728 set x $ac_cv_target
2729 shift
2730 target_cpu=$1
2731 target_vendor=$2
2732 shift; shift
2733 # Remember, the first character of IFS is used to create $*,
2734 # except with old shells:
2735 target_os=$*
2736 IFS=$ac_save_IFS
2737 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2740 # The aliases save the names the user supplied, while $host etc.
2741 # will get canonicalized.
2742 test -n "$target_alias" &&
2743 test "$program_prefix$program_suffix$program_transform_name" = \
2744 NONENONEs,x,x, &&
2745 program_prefix=${target_alias}-
2747 target_alias=${target_alias-$host_alias}
2749 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2750 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2751 # 1.9.0: minimum required version
2752 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2753 # of other PACKAGE_* variables will, however, and there's nothing
2754 # we can do about that; they come from AC_INIT).
2755 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2756 # file in the top srcdir, etc, etc), so stop complaining.
2757 # no-dist: we don't want 'dist' and related rules.
2758 # -Wall: turns on all automake warnings...
2759 # -Wno-portability: ...except this one, since GNU make is required.
2760 # -Wno-override: ... and this one, since we do want this in testsuite.
2761 am__api_version='1.11'
2763 # Find a good install program. We prefer a C program (faster),
2764 # so one script is as good as another. But avoid the broken or
2765 # incompatible versions:
2766 # SysV /etc/install, /usr/sbin/install
2767 # SunOS /usr/etc/install
2768 # IRIX /sbin/install
2769 # AIX /bin/install
2770 # AmigaOS /C/install, which installs bootblocks on floppy discs
2771 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2772 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2773 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2774 # OS/2's system install, which has a completely different semantic
2775 # ./install, which can be erroneously created by make from ./install.sh.
2776 # Reject install programs that cannot install multiple files.
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2778 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2779 if test -z "$INSTALL"; then
2780 if test "${ac_cv_path_install+set}" = set; then :
2781 $as_echo_n "(cached) " >&6
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 # Account for people who put trailing slashes in PATH elements.
2789 case $as_dir/ in #((
2790 ./ | .// | /[cC]/* | \
2791 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2792 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2793 /usr/ucb/* ) ;;
2795 # OSF1 and SCO ODT 3.0 have their own names for install.
2796 # Don't use installbsd from OSF since it installs stuff as root
2797 # by default.
2798 for ac_prog in ginstall scoinst install; do
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2801 if test $ac_prog = install &&
2802 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2803 # AIX install. It has an incompatible calling convention.
2805 elif test $ac_prog = install &&
2806 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2807 # program-specific install script used by HP pwplus--don't use.
2809 else
2810 rm -rf conftest.one conftest.two conftest.dir
2811 echo one > conftest.one
2812 echo two > conftest.two
2813 mkdir conftest.dir
2814 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2815 test -s conftest.one && test -s conftest.two &&
2816 test -s conftest.dir/conftest.one &&
2817 test -s conftest.dir/conftest.two
2818 then
2819 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2820 break 3
2824 done
2825 done
2827 esac
2829 done
2830 IFS=$as_save_IFS
2832 rm -rf conftest.one conftest.two conftest.dir
2835 if test "${ac_cv_path_install+set}" = set; then
2836 INSTALL=$ac_cv_path_install
2837 else
2838 # As a last resort, use the slow shell script. Don't cache a
2839 # value for INSTALL within a source directory, because that will
2840 # break other packages using the cache if that directory is
2841 # removed, or if the value is a relative name.
2842 INSTALL=$ac_install_sh
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2846 $as_echo "$INSTALL" >&6; }
2848 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2849 # It thinks the first close brace ends the variable substitution.
2850 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2852 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2854 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2857 $as_echo_n "checking whether build environment is sane... " >&6; }
2858 # Just in case
2859 sleep 1
2860 echo timestamp > conftest.file
2861 # Reject unsafe characters in $srcdir or the absolute working directory
2862 # name. Accept space and tab only in the latter.
2863 am_lf='
2865 case `pwd` in
2866 *[\\\"\#\$\&\'\`$am_lf]*)
2867 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2868 esac
2869 case $srcdir in
2870 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2871 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2872 esac
2874 # Do `set' in a subshell so we don't clobber the current shell's
2875 # arguments. Must try -L first in case configure is actually a
2876 # symlink; some systems play weird games with the mod time of symlinks
2877 # (eg FreeBSD returns the mod time of the symlink's containing
2878 # directory).
2879 if (
2880 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2881 if test "$*" = "X"; then
2882 # -L didn't work.
2883 set X `ls -t "$srcdir/configure" conftest.file`
2885 rm -f conftest.file
2886 if test "$*" != "X $srcdir/configure conftest.file" \
2887 && test "$*" != "X conftest.file $srcdir/configure"; then
2889 # If neither matched, then we have a broken ls. This can happen
2890 # if, for instance, CONFIG_SHELL is bash and it inherits a
2891 # broken ls alias from the environment. This has actually
2892 # happened. Such a system could not be considered "sane".
2893 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2894 alias in your environment" "$LINENO" 5
2897 test "$2" = conftest.file
2899 then
2900 # Ok.
2902 else
2903 as_fn_error "newly created file is older than distributed files!
2904 Check your system clock" "$LINENO" 5
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2907 $as_echo "yes" >&6; }
2908 test "$program_prefix" != NONE &&
2909 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2910 # Use a double $ so make ignores it.
2911 test "$program_suffix" != NONE &&
2912 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2913 # Double any \ or $.
2914 # By default was `s,x,x', remove it if useless.
2915 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2916 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2918 # expand $ac_aux_dir to an absolute path
2919 am_aux_dir=`cd $ac_aux_dir && pwd`
2921 if test x"${MISSING+set}" != xset; then
2922 case $am_aux_dir in
2923 *\ * | *\ *)
2924 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2926 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2927 esac
2929 # Use eval to expand $SHELL
2930 if eval "$MISSING --run true"; then
2931 am_missing_run="$MISSING --run "
2932 else
2933 am_missing_run=
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2935 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2938 if test x"${install_sh}" != xset; then
2939 case $am_aux_dir in
2940 *\ * | *\ *)
2941 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2943 install_sh="\${SHELL} $am_aux_dir/install-sh"
2944 esac
2947 # Installed binaries are usually stripped using `strip' when the user
2948 # run `make install-strip'. However `strip' might not be the right
2949 # tool to use in cross-compilation environments, therefore Automake
2950 # will honor the `STRIP' environment variable to overrule this program.
2951 if test "$cross_compiling" != no; then
2952 if test -n "$ac_tool_prefix"; then
2953 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2954 set dummy ${ac_tool_prefix}strip; ac_word=$2
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956 $as_echo_n "checking for $ac_word... " >&6; }
2957 if test "${ac_cv_prog_STRIP+set}" = set; then :
2958 $as_echo_n "(cached) " >&6
2959 else
2960 if test -n "$STRIP"; then
2961 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2974 done
2975 done
2976 IFS=$as_save_IFS
2980 STRIP=$ac_cv_prog_STRIP
2981 if test -n "$STRIP"; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2983 $as_echo "$STRIP" >&6; }
2984 else
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 $as_echo "no" >&6; }
2991 if test -z "$ac_cv_prog_STRIP"; then
2992 ac_ct_STRIP=$STRIP
2993 # Extract the first word of "strip", so it can be a program name with args.
2994 set dummy strip; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
2999 else
3000 if test -n "$ac_ct_STRIP"; then
3001 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010 ac_cv_prog_ac_ct_STRIP="strip"
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 break 2
3014 done
3015 done
3016 IFS=$as_save_IFS
3020 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3021 if test -n "$ac_ct_STRIP"; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3023 $as_echo "$ac_ct_STRIP" >&6; }
3024 else
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3029 if test "x$ac_ct_STRIP" = x; then
3030 STRIP=":"
3031 else
3032 case $cross_compiling:$ac_tool_warned in
3033 yes:)
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3036 ac_tool_warned=yes ;;
3037 esac
3038 STRIP=$ac_ct_STRIP
3040 else
3041 STRIP="$ac_cv_prog_STRIP"
3045 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3048 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3049 if test -z "$MKDIR_P"; then
3050 if test "${ac_cv_path_mkdir+set}" = set; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
3058 for ac_prog in mkdir gmkdir; do
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3061 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3062 'mkdir (GNU coreutils) '* | \
3063 'mkdir (coreutils) '* | \
3064 'mkdir (fileutils) '4.1*)
3065 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3066 break 3;;
3067 esac
3068 done
3069 done
3070 done
3071 IFS=$as_save_IFS
3075 if test "${ac_cv_path_mkdir+set}" = set; then
3076 MKDIR_P="$ac_cv_path_mkdir -p"
3077 else
3078 # As a last resort, use the slow shell script. Don't cache a
3079 # value for MKDIR_P within a source directory, because that will
3080 # break other packages using the cache if that directory is
3081 # removed, or if the value is a relative name.
3082 test -d ./--version && rmdir ./--version
3083 MKDIR_P="$ac_install_sh -d"
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3087 $as_echo "$MKDIR_P" >&6; }
3089 mkdir_p="$MKDIR_P"
3090 case $mkdir_p in
3091 [\\/$]* | ?:[\\/]*) ;;
3092 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3093 esac
3095 for ac_prog in gawk mawk nawk awk
3097 # Extract the first word of "$ac_prog", so it can be a program name with args.
3098 set dummy $ac_prog; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if test "${ac_cv_prog_AWK+set}" = set; then :
3102 $as_echo_n "(cached) " >&6
3103 else
3104 if test -n "$AWK"; then
3105 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3114 ac_cv_prog_AWK="$ac_prog"
3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3118 done
3119 done
3120 IFS=$as_save_IFS
3124 AWK=$ac_cv_prog_AWK
3125 if test -n "$AWK"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3127 $as_echo "$AWK" >&6; }
3128 else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3134 test -n "$AWK" && break
3135 done
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3138 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3139 set x ${MAKE-make}
3140 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3141 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 cat >conftest.make <<\_ACEOF
3145 SHELL = /bin/sh
3146 all:
3147 @echo '@@@%%%=$(MAKE)=@@@%%%'
3148 _ACEOF
3149 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3150 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3151 *@@@%%%=?*=@@@%%%*)
3152 eval ac_cv_prog_make_${ac_make}_set=yes;;
3154 eval ac_cv_prog_make_${ac_make}_set=no;;
3155 esac
3156 rm -f conftest.make
3158 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3160 $as_echo "yes" >&6; }
3161 SET_MAKE=
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 SET_MAKE="MAKE=${MAKE-make}"
3168 rm -rf .tst 2>/dev/null
3169 mkdir .tst 2>/dev/null
3170 if test -d .tst; then
3171 am__leading_dot=.
3172 else
3173 am__leading_dot=_
3175 rmdir .tst 2>/dev/null
3177 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3178 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3179 # is not polluted with repeated "-I."
3180 am__isrc=' -I$(srcdir)'
3181 # test to see if srcdir already configured
3182 if test -f $srcdir/config.status; then
3183 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3187 # test whether we have cygpath
3188 if test -z "$CYGPATH_W"; then
3189 if (cygpath --version) >/dev/null 2>/dev/null; then
3190 CYGPATH_W='cygpath -w'
3191 else
3192 CYGPATH_W=echo
3197 # Define the identity of the package.
3198 PACKAGE='libgomp'
3199 VERSION='1.0'
3202 cat >>confdefs.h <<_ACEOF
3203 #define PACKAGE "$PACKAGE"
3204 _ACEOF
3207 cat >>confdefs.h <<_ACEOF
3208 #define VERSION "$VERSION"
3209 _ACEOF
3211 # Some tools Automake needs.
3213 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3216 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3219 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3222 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3225 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3227 # We need awk for the "check" target. The system "awk" is bad on
3228 # some platforms.
3229 # Always define AMTAR for backward compatibility.
3231 AMTAR=${AMTAR-"${am_missing_run}tar"}
3233 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3239 # Default to --enable-multilib
3240 # Check whether --enable-multilib was given.
3241 if test "${enable_multilib+set}" = set; then :
3242 enableval=$enable_multilib; case "$enableval" in
3243 yes) multilib=yes ;;
3244 no) multilib=no ;;
3245 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3246 esac
3247 else
3248 multilib=yes
3252 # We may get other options which we leave undocumented:
3253 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3254 # See config-ml.in if you want the gory details.
3256 if test "$srcdir" = "."; then
3257 if test "$with_target_subdir" != "."; then
3258 multi_basedir="$srcdir/$with_multisrctop../.."
3259 else
3260 multi_basedir="$srcdir/$with_multisrctop.."
3262 else
3263 multi_basedir="$srcdir/.."
3267 # Even if the default multilib is not a cross compilation,
3268 # it may be that some of the other multilibs are.
3269 if test $cross_compiling = no && test $multilib = yes \
3270 && test "x${with_multisubdir}" != x ; then
3271 cross_compiling=maybe
3274 ac_config_commands="$ac_config_commands default-1"
3277 # Calculate toolexeclibdir
3278 # Also toolexecdir, though it's only used in toolexeclibdir
3279 case ${enable_version_specific_runtime_libs} in
3280 yes)
3281 # Need the gcc compiler version to know where to install libraries
3282 # and header files if --enable-version-specific-runtime-libs option
3283 # is selected.
3284 toolexecdir='$(libdir)/gcc/$(target_alias)'
3285 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3288 if test -n "$with_cross_host" &&
3289 test x"$with_cross_host" != x"no"; then
3290 # Install a library built with a cross compiler in tooldir, not libdir.
3291 toolexecdir='$(exec_prefix)/$(target_alias)'
3292 toolexeclibdir='$(toolexecdir)/lib'
3293 else
3294 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3295 toolexeclibdir='$(libdir)'
3297 multi_os_directory=`$CC -print-multi-os-directory`
3298 case $multi_os_directory in
3299 .) ;; # Avoid trailing /.
3300 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3301 esac
3303 esac
3307 # Check the compiler.
3308 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3309 # We must force CC to /not/ be precious variables; otherwise
3310 # the wrong, non-multilib-adjusted value will be used in multilibs.
3311 # As a side effect, we have to subst CFLAGS ourselves.
3315 ac_ext=c
3316 ac_cpp='$CPP $CPPFLAGS'
3317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3320 if test -n "$ac_tool_prefix"; then
3321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3322 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324 $as_echo_n "checking for $ac_word... " >&6; }
3325 if test "${ac_cv_prog_CC+set}" = set; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 if test -n "$CC"; then
3329 ac_cv_prog_CC="$CC" # Let the user override the test.
3330 else
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3334 IFS=$as_save_IFS
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 break 2
3342 done
3343 done
3344 IFS=$as_save_IFS
3348 CC=$ac_cv_prog_CC
3349 if test -n "$CC"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351 $as_echo "$CC" >&6; }
3352 else
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3359 if test -z "$ac_cv_prog_CC"; then
3360 ac_ct_CC=$CC
3361 # Extract the first word of "gcc", so it can be a program name with args.
3362 set dummy gcc; ac_word=$2
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364 $as_echo_n "checking for $ac_word... " >&6; }
3365 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3366 $as_echo_n "(cached) " >&6
3367 else
3368 if test -n "$ac_ct_CC"; then
3369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3370 else
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3378 ac_cv_prog_ac_ct_CC="gcc"
3379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 break 2
3382 done
3383 done
3384 IFS=$as_save_IFS
3388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3389 if test -n "$ac_ct_CC"; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3391 $as_echo "$ac_ct_CC" >&6; }
3392 else
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394 $as_echo "no" >&6; }
3397 if test "x$ac_ct_CC" = x; then
3398 CC=""
3399 else
3400 case $cross_compiling:$ac_tool_warned in
3401 yes:)
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3404 ac_tool_warned=yes ;;
3405 esac
3406 CC=$ac_ct_CC
3408 else
3409 CC="$ac_cv_prog_CC"
3412 if test -z "$CC"; then
3413 if test -n "$ac_tool_prefix"; then
3414 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3415 set dummy ${ac_tool_prefix}cc; ac_word=$2
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 $as_echo_n "checking for $ac_word... " >&6; }
3418 if test "${ac_cv_prog_CC+set}" = set; then :
3419 $as_echo_n "(cached) " >&6
3420 else
3421 if test -n "$CC"; then
3422 ac_cv_prog_CC="$CC" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3431 ac_cv_prog_CC="${ac_tool_prefix}cc"
3432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3435 done
3436 done
3437 IFS=$as_save_IFS
3441 CC=$ac_cv_prog_CC
3442 if test -n "$CC"; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3444 $as_echo "$CC" >&6; }
3445 else
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3453 if test -z "$CC"; then
3454 # Extract the first word of "cc", so it can be a program name with args.
3455 set dummy cc; ac_word=$2
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 $as_echo_n "checking for $ac_word... " >&6; }
3458 if test "${ac_cv_prog_CC+set}" = set; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 if test -n "$CC"; then
3462 ac_cv_prog_CC="$CC" # Let the user override the test.
3463 else
3464 ac_prog_rejected=no
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3472 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3473 ac_prog_rejected=yes
3474 continue
3476 ac_cv_prog_CC="cc"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3480 done
3481 done
3482 IFS=$as_save_IFS
3484 if test $ac_prog_rejected = yes; then
3485 # We found a bogon in the path, so make sure we never use it.
3486 set dummy $ac_cv_prog_CC
3487 shift
3488 if test $# != 0; then
3489 # We chose a different compiler from the bogus one.
3490 # However, it has the same basename, so the bogon will be chosen
3491 # first if we set CC to just the basename; use the full file name.
3492 shift
3493 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3498 CC=$ac_cv_prog_CC
3499 if test -n "$CC"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3501 $as_echo "$CC" >&6; }
3502 else
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3509 if test -z "$CC"; then
3510 if test -n "$ac_tool_prefix"; then
3511 for ac_prog in cl.exe
3513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if test "${ac_cv_prog_CC+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 if test -n "$CC"; then
3521 ac_cv_prog_CC="$CC" # Let the user override the test.
3522 else
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3530 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3534 done
3535 done
3536 IFS=$as_save_IFS
3540 CC=$ac_cv_prog_CC
3541 if test -n "$CC"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3543 $as_echo "$CC" >&6; }
3544 else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3550 test -n "$CC" && break
3551 done
3553 if test -z "$CC"; then
3554 ac_ct_CC=$CC
3555 for ac_prog in cl.exe
3557 # Extract the first word of "$ac_prog", so it can be a program name with args.
3558 set dummy $ac_prog; ac_word=$2
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3560 $as_echo_n "checking for $ac_word... " >&6; }
3561 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3562 $as_echo_n "(cached) " >&6
3563 else
3564 if test -n "$ac_ct_CC"; then
3565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3566 else
3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 for as_dir in $PATH
3570 IFS=$as_save_IFS
3571 test -z "$as_dir" && as_dir=.
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3574 ac_cv_prog_ac_ct_CC="$ac_prog"
3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 break 2
3578 done
3579 done
3580 IFS=$as_save_IFS
3584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3585 if test -n "$ac_ct_CC"; then
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3587 $as_echo "$ac_ct_CC" >&6; }
3588 else
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590 $as_echo "no" >&6; }
3594 test -n "$ac_ct_CC" && break
3595 done
3597 if test "x$ac_ct_CC" = x; then
3598 CC=""
3599 else
3600 case $cross_compiling:$ac_tool_warned in
3601 yes:)
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3604 ac_tool_warned=yes ;;
3605 esac
3606 CC=$ac_ct_CC
3613 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3615 as_fn_error "no acceptable C compiler found in \$PATH
3616 See \`config.log' for more details." "$LINENO" 5; }
3618 # Provide some information about the compiler.
3619 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3620 set X $ac_compile
3621 ac_compiler=$2
3622 for ac_option in --version -v -V -qversion; do
3623 { { ac_try="$ac_compiler $ac_option >&5"
3624 case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3627 esac
3628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3629 $as_echo "$ac_try_echo"; } >&5
3630 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3631 ac_status=$?
3632 if test -s conftest.err; then
3633 sed '10a\
3634 ... rest of stderr output deleted ...
3635 10q' conftest.err >conftest.er1
3636 cat conftest.er1 >&5
3637 rm -f conftest.er1 conftest.err
3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 test $ac_status = 0; }
3641 done
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3647 main ()
3651 return 0;
3653 _ACEOF
3654 ac_clean_files_save=$ac_clean_files
3655 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3656 # Try to create an executable without -o first, disregard a.out.
3657 # It will help us diagnose broken compilers, and finding out an intuition
3658 # of exeext.
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3660 $as_echo_n "checking for C compiler default output file name... " >&6; }
3661 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3663 # The possible output files:
3664 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3666 ac_rmfiles=
3667 for ac_file in $ac_files
3669 case $ac_file in
3670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3671 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3672 esac
3673 done
3674 rm -f $ac_rmfiles
3676 if { { ac_try="$ac_link_default"
3677 case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683 (eval "$ac_link_default") 2>&5
3684 ac_status=$?
3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686 test $ac_status = 0; }; then :
3687 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3688 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3689 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3690 # so that the user can short-circuit this test for compilers unknown to
3691 # Autoconf.
3692 for ac_file in $ac_files ''
3694 test -f "$ac_file" || continue
3695 case $ac_file in
3696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3698 [ab].out )
3699 # We found the default executable, but exeext='' is most
3700 # certainly right.
3701 break;;
3702 *.* )
3703 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3704 then :; else
3705 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3707 # We set ac_cv_exeext here because the later test for it is not
3708 # safe: cross compilers may not add the suffix if given an `-o'
3709 # argument, so we may need to know it at that point already.
3710 # Even if this section looks crufty: it has the advantage of
3711 # actually working.
3712 break;;
3714 break;;
3715 esac
3716 done
3717 test "$ac_cv_exeext" = no && ac_cv_exeext=
3719 else
3720 ac_file=''
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3723 $as_echo "$ac_file" >&6; }
3724 if test -z "$ac_file"; then :
3725 $as_echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3730 { as_fn_set_status 77
3731 as_fn_error "C compiler cannot create executables
3732 See \`config.log' for more details." "$LINENO" 5; }; }
3734 ac_exeext=$ac_cv_exeext
3736 # Check that the compiler produces executables we can run. If not, either
3737 # the compiler is broken, or we cross compile.
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3739 $as_echo_n "checking whether the C compiler works... " >&6; }
3740 # If not cross compiling, check that we can run a simple program.
3741 if test "$cross_compiling" != yes; then
3742 if { ac_try='./$ac_file'
3743 { { case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3748 $as_echo "$ac_try_echo"; } >&5
3749 (eval "$ac_try") 2>&5
3750 ac_status=$?
3751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3752 test $ac_status = 0; }; }; then
3753 cross_compiling=no
3754 else
3755 if test "$cross_compiling" = maybe; then
3756 cross_compiling=yes
3757 else
3758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3760 as_fn_error "cannot run C compiled programs.
3761 If you meant to cross compile, use \`--host'.
3762 See \`config.log' for more details." "$LINENO" 5; }
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3767 $as_echo "yes" >&6; }
3769 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3770 ac_clean_files=$ac_clean_files_save
3771 # Check that the compiler produces executables we can run. If not, either
3772 # the compiler is broken, or we cross compile.
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3774 $as_echo_n "checking whether we are cross compiling... " >&6; }
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3776 $as_echo "$cross_compiling" >&6; }
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3779 $as_echo_n "checking for suffix of executables... " >&6; }
3780 if { { ac_try="$ac_link"
3781 case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784 esac
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_link") 2>&5
3788 ac_status=$?
3789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790 test $ac_status = 0; }; then :
3791 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3792 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3793 # work properly (i.e., refer to `conftest.exe'), while it won't with
3794 # `rm'.
3795 for ac_file in conftest.exe conftest conftest.*; do
3796 test -f "$ac_file" || continue
3797 case $ac_file in
3798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3799 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3800 break;;
3801 * ) break;;
3802 esac
3803 done
3804 else
3805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807 as_fn_error "cannot compute suffix of executables: cannot compile and link
3808 See \`config.log' for more details." "$LINENO" 5; }
3810 rm -f conftest$ac_cv_exeext
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3812 $as_echo "$ac_cv_exeext" >&6; }
3814 rm -f conftest.$ac_ext
3815 EXEEXT=$ac_cv_exeext
3816 ac_exeext=$EXEEXT
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3818 $as_echo_n "checking for suffix of object files... " >&6; }
3819 if test "${ac_cv_objext+set}" = set; then :
3820 $as_echo_n "(cached) " >&6
3821 else
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3826 main ()
3830 return 0;
3832 _ACEOF
3833 rm -f conftest.o conftest.obj
3834 if { { ac_try="$ac_compile"
3835 case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838 esac
3839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840 $as_echo "$ac_try_echo"; } >&5
3841 (eval "$ac_compile") 2>&5
3842 ac_status=$?
3843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844 test $ac_status = 0; }; then :
3845 for ac_file in conftest.o conftest.obj conftest.*; do
3846 test -f "$ac_file" || continue;
3847 case $ac_file in
3848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3849 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3850 break;;
3851 esac
3852 done
3853 else
3854 $as_echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3859 as_fn_error "cannot compute suffix of object files: cannot compile
3860 See \`config.log' for more details." "$LINENO" 5; }
3862 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3865 $as_echo "$ac_cv_objext" >&6; }
3866 OBJEXT=$ac_cv_objext
3867 ac_objext=$OBJEXT
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3869 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3870 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3871 $as_echo_n "(cached) " >&6
3872 else
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3877 main ()
3879 #ifndef __GNUC__
3880 choke me
3881 #endif
3884 return 0;
3886 _ACEOF
3887 if ac_fn_c_try_compile "$LINENO"; then :
3888 ac_compiler_gnu=yes
3889 else
3890 ac_compiler_gnu=no
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3897 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3898 if test $ac_compiler_gnu = yes; then
3899 GCC=yes
3900 else
3901 GCC=
3903 ac_test_CFLAGS=${CFLAGS+set}
3904 ac_save_CFLAGS=$CFLAGS
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3906 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3907 if test "${ac_cv_prog_cc_g+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 ac_save_c_werror_flag=$ac_c_werror_flag
3911 ac_c_werror_flag=yes
3912 ac_cv_prog_cc_g=no
3913 CFLAGS="-g"
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3918 main ()
3922 return 0;
3924 _ACEOF
3925 if ac_fn_c_try_compile "$LINENO"; then :
3926 ac_cv_prog_cc_g=yes
3927 else
3928 CFLAGS=""
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3933 main ()
3937 return 0;
3939 _ACEOF
3940 if ac_fn_c_try_compile "$LINENO"; then :
3942 else
3943 ac_c_werror_flag=$ac_save_c_werror_flag
3944 CFLAGS="-g"
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3949 main ()
3953 return 0;
3955 _ACEOF
3956 if ac_fn_c_try_compile "$LINENO"; then :
3957 ac_cv_prog_cc_g=yes
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 ac_c_werror_flag=$ac_save_c_werror_flag
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3967 $as_echo "$ac_cv_prog_cc_g" >&6; }
3968 if test "$ac_test_CFLAGS" = set; then
3969 CFLAGS=$ac_save_CFLAGS
3970 elif test $ac_cv_prog_cc_g = yes; then
3971 if test "$GCC" = yes; then
3972 CFLAGS="-g -O2"
3973 else
3974 CFLAGS="-g"
3976 else
3977 if test "$GCC" = yes; then
3978 CFLAGS="-O2"
3979 else
3980 CFLAGS=
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3984 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3985 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3986 $as_echo_n "(cached) " >&6
3987 else
3988 ac_cv_prog_cc_c89=no
3989 ac_save_CC=$CC
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3992 #include <stdarg.h>
3993 #include <stdio.h>
3994 #include <sys/types.h>
3995 #include <sys/stat.h>
3996 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3997 struct buf { int x; };
3998 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3999 static char *e (p, i)
4000 char **p;
4001 int i;
4003 return p[i];
4005 static char *f (char * (*g) (char **, int), char **p, ...)
4007 char *s;
4008 va_list v;
4009 va_start (v,p);
4010 s = g (p, va_arg (v,int));
4011 va_end (v);
4012 return s;
4015 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4016 function prototypes and stuff, but not '\xHH' hex character constants.
4017 These don't provoke an error unfortunately, instead are silently treated
4018 as 'x'. The following induces an error, until -std is added to get
4019 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4020 array size at least. It's necessary to write '\x00'==0 to get something
4021 that's true only with -std. */
4022 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4024 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4025 inside strings and character constants. */
4026 #define FOO(x) 'x'
4027 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4029 int test (int i, double x);
4030 struct s1 {int (*f) (int a);};
4031 struct s2 {int (*f) (double a);};
4032 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4033 int argc;
4034 char **argv;
4036 main ()
4038 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4040 return 0;
4042 _ACEOF
4043 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4044 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4046 CC="$ac_save_CC $ac_arg"
4047 if ac_fn_c_try_compile "$LINENO"; then :
4048 ac_cv_prog_cc_c89=$ac_arg
4050 rm -f core conftest.err conftest.$ac_objext
4051 test "x$ac_cv_prog_cc_c89" != "xno" && break
4052 done
4053 rm -f conftest.$ac_ext
4054 CC=$ac_save_CC
4057 # AC_CACHE_VAL
4058 case "x$ac_cv_prog_cc_c89" in
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4061 $as_echo "none needed" >&6; } ;;
4062 xno)
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4064 $as_echo "unsupported" >&6; } ;;
4066 CC="$CC $ac_cv_prog_cc_c89"
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4068 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4069 esac
4070 if test "x$ac_cv_prog_cc_c89" != xno; then :
4074 ac_ext=c
4075 ac_cpp='$CPP $CPPFLAGS'
4076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079 DEPDIR="${am__leading_dot}deps"
4081 ac_config_commands="$ac_config_commands depfiles"
4084 am_make=${MAKE-make}
4085 cat > confinc << 'END'
4086 am__doit:
4087 @echo this is the am__doit target
4088 .PHONY: am__doit
4090 # If we don't find an include directive, just comment out the code.
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4092 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4093 am__include="#"
4094 am__quote=
4095 _am_result=none
4096 # First try GNU make style include.
4097 echo "include confinc" > confmf
4098 # Ignore all kinds of additional output from `make'.
4099 case `$am_make -s -f confmf 2> /dev/null` in #(
4100 *the\ am__doit\ target*)
4101 am__include=include
4102 am__quote=
4103 _am_result=GNU
4105 esac
4106 # Now try BSD make style include.
4107 if test "$am__include" = "#"; then
4108 echo '.include "confinc"' > confmf
4109 case `$am_make -s -f confmf 2> /dev/null` in #(
4110 *the\ am__doit\ target*)
4111 am__include=.include
4112 am__quote="\""
4113 _am_result=BSD
4115 esac
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4120 $as_echo "$_am_result" >&6; }
4121 rm -f confinc confmf
4123 # Check whether --enable-dependency-tracking was given.
4124 if test "${enable_dependency_tracking+set}" = set; then :
4125 enableval=$enable_dependency_tracking;
4128 if test "x$enable_dependency_tracking" != xno; then
4129 am_depcomp="$ac_aux_dir/depcomp"
4130 AMDEPBACKSLASH='\'
4132 if test "x$enable_dependency_tracking" != xno; then
4133 AMDEP_TRUE=
4134 AMDEP_FALSE='#'
4135 else
4136 AMDEP_TRUE='#'
4137 AMDEP_FALSE=
4142 depcc="$CC" am_compiler_list=
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4145 $as_echo_n "checking dependency style of $depcc... " >&6; }
4146 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4150 # We make a subdir and do the tests there. Otherwise we can end up
4151 # making bogus files that we don't know about and never remove. For
4152 # instance it was reported that on HP-UX the gcc test will end up
4153 # making a dummy file named `D' -- because `-MD' means `put the output
4154 # in D'.
4155 mkdir conftest.dir
4156 # Copy depcomp to subdir because otherwise we won't find it if we're
4157 # using a relative directory.
4158 cp "$am_depcomp" conftest.dir
4159 cd conftest.dir
4160 # We will build objects and dependencies in a subdirectory because
4161 # it helps to detect inapplicable dependency modes. For instance
4162 # both Tru64's cc and ICC support -MD to output dependencies as a
4163 # side effect of compilation, but ICC will put the dependencies in
4164 # the current directory while Tru64 will put them in the object
4165 # directory.
4166 mkdir sub
4168 am_cv_CC_dependencies_compiler_type=none
4169 if test "$am_compiler_list" = ""; then
4170 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4172 am__universal=false
4173 case " $depcc " in #(
4174 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4175 esac
4177 for depmode in $am_compiler_list; do
4178 # Setup a source with many dependencies, because some compilers
4179 # like to wrap large dependency lists on column 80 (with \), and
4180 # we should not choose a depcomp mode which is confused by this.
4182 # We need to recreate these files for each test, as the compiler may
4183 # overwrite some of them when testing with obscure command lines.
4184 # This happens at least with the AIX C compiler.
4185 : > sub/conftest.c
4186 for i in 1 2 3 4 5 6; do
4187 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4188 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4189 # Solaris 8's {/usr,}/bin/sh.
4190 touch sub/conftst$i.h
4191 done
4192 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4194 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4195 # mode. It turns out that the SunPro C++ compiler does not properly
4196 # handle `-M -o', and we need to detect this. Also, some Intel
4197 # versions had trouble with output in subdirs
4198 am__obj=sub/conftest.${OBJEXT-o}
4199 am__minus_obj="-o $am__obj"
4200 case $depmode in
4201 gcc)
4202 # This depmode causes a compiler race in universal mode.
4203 test "$am__universal" = false || continue
4205 nosideeffect)
4206 # after this tag, mechanisms are not by side-effect, so they'll
4207 # only be used when explicitly requested
4208 if test "x$enable_dependency_tracking" = xyes; then
4209 continue
4210 else
4211 break
4214 msvisualcpp | msvcmsys)
4215 # This compiler won't grok `-c -o', but also, the minuso test has
4216 # not run yet. These depmodes are late enough in the game, and
4217 # so weak that their functioning should not be impacted.
4218 am__obj=conftest.${OBJEXT-o}
4219 am__minus_obj=
4221 none) break ;;
4222 esac
4223 if depmode=$depmode \
4224 source=sub/conftest.c object=$am__obj \
4225 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4226 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4227 >/dev/null 2>conftest.err &&
4228 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4229 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4230 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4231 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4232 # icc doesn't choke on unknown options, it will just issue warnings
4233 # or remarks (even with -Werror). So we grep stderr for any message
4234 # that says an option was ignored or not supported.
4235 # When given -MP, icc 7.0 and 7.1 complain thusly:
4236 # icc: Command line warning: ignoring option '-M'; no argument required
4237 # The diagnosis changed in icc 8.0:
4238 # icc: Command line remark: option '-MP' not supported
4239 if (grep 'ignoring option' conftest.err ||
4240 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4241 am_cv_CC_dependencies_compiler_type=$depmode
4242 break
4245 done
4247 cd ..
4248 rm -rf conftest.dir
4249 else
4250 am_cv_CC_dependencies_compiler_type=none
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4255 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4256 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4259 test "x$enable_dependency_tracking" != xno \
4260 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4261 am__fastdepCC_TRUE=
4262 am__fastdepCC_FALSE='#'
4263 else
4264 am__fastdepCC_TRUE='#'
4265 am__fastdepCC_FALSE=
4273 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4274 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4275 # in both places for now and restore CFLAGS at the end of config.
4276 save_CFLAGS="$CFLAGS"
4278 # Add -Wall -Werror if we are using GCC.
4279 if test "x$GCC" = "xyes"; then
4280 XCFLAGS="$XCFLAGS -Wall -Werror"
4283 # Find other programs we need.
4284 if test -n "$ac_tool_prefix"; then
4285 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4286 set dummy ${ac_tool_prefix}ar; ac_word=$2
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288 $as_echo_n "checking for $ac_word... " >&6; }
4289 if test "${ac_cv_prog_AR+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 if test -n "$AR"; then
4293 ac_cv_prog_AR="$AR" # Let the user override the test.
4294 else
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4302 ac_cv_prog_AR="${ac_tool_prefix}ar"
4303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 break 2
4306 done
4307 done
4308 IFS=$as_save_IFS
4312 AR=$ac_cv_prog_AR
4313 if test -n "$AR"; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4315 $as_echo "$AR" >&6; }
4316 else
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4323 if test -z "$ac_cv_prog_AR"; then
4324 ac_ct_AR=$AR
4325 # Extract the first word of "ar", so it can be a program name with args.
4326 set dummy ar; ac_word=$2
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328 $as_echo_n "checking for $ac_word... " >&6; }
4329 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4331 else
4332 if test -n "$ac_ct_AR"; then
4333 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4334 else
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342 ac_cv_prog_ac_ct_AR="ar"
4343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 break 2
4346 done
4347 done
4348 IFS=$as_save_IFS
4352 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4353 if test -n "$ac_ct_AR"; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4355 $as_echo "$ac_ct_AR" >&6; }
4356 else
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4361 if test "x$ac_ct_AR" = x; then
4362 AR=""
4363 else
4364 case $cross_compiling:$ac_tool_warned in
4365 yes:)
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4368 ac_tool_warned=yes ;;
4369 esac
4370 AR=$ac_ct_AR
4372 else
4373 AR="$ac_cv_prog_AR"
4376 if test -n "$ac_tool_prefix"; then
4377 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4378 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 if test -n "$RANLIB"; then
4385 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4398 done
4399 done
4400 IFS=$as_save_IFS
4404 RANLIB=$ac_cv_prog_RANLIB
4405 if test -n "$RANLIB"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4407 $as_echo "$RANLIB" >&6; }
4408 else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4415 if test -z "$ac_cv_prog_RANLIB"; then
4416 ac_ct_RANLIB=$RANLIB
4417 # Extract the first word of "ranlib", so it can be a program name with args.
4418 set dummy ranlib; ac_word=$2
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4420 $as_echo_n "checking for $ac_word... " >&6; }
4421 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4422 $as_echo_n "(cached) " >&6
4423 else
4424 if test -n "$ac_ct_RANLIB"; then
4425 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4426 else
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434 ac_cv_prog_ac_ct_RANLIB="ranlib"
4435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 break 2
4438 done
4439 done
4440 IFS=$as_save_IFS
4444 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4445 if test -n "$ac_ct_RANLIB"; then
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4447 $as_echo "$ac_ct_RANLIB" >&6; }
4448 else
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450 $as_echo "no" >&6; }
4453 if test "x$ac_ct_RANLIB" = x; then
4454 RANLIB="ranlib-not-found-in-path-error"
4455 else
4456 case $cross_compiling:$ac_tool_warned in
4457 yes:)
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4460 ac_tool_warned=yes ;;
4461 esac
4462 RANLIB=$ac_ct_RANLIB
4464 else
4465 RANLIB="$ac_cv_prog_RANLIB"
4468 # Extract the first word of "perl", so it can be a program name with args.
4469 set dummy perl; ac_word=$2
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4471 $as_echo_n "checking for $ac_word... " >&6; }
4472 if test "${ac_cv_path_PERL+set}" = set; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 case $PERL in
4476 [\\/]* | ?:[\\/]*)
4477 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4487 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4491 done
4492 done
4493 IFS=$as_save_IFS
4495 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4497 esac
4499 PERL=$ac_cv_path_PERL
4500 if test -n "$PERL"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4502 $as_echo "$PERL" >&6; }
4503 else
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505 $as_echo "no" >&6; }
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4510 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4511 set x ${MAKE-make}
4512 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4513 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 cat >conftest.make <<\_ACEOF
4517 SHELL = /bin/sh
4518 all:
4519 @echo '@@@%%%=$(MAKE)=@@@%%%'
4520 _ACEOF
4521 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4522 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4523 *@@@%%%=?*=@@@%%%*)
4524 eval ac_cv_prog_make_${ac_make}_set=yes;;
4526 eval ac_cv_prog_make_${ac_make}_set=no;;
4527 esac
4528 rm -f conftest.make
4530 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4532 $as_echo "yes" >&6; }
4533 SET_MAKE=
4534 else
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 $as_echo "no" >&6; }
4537 SET_MAKE="MAKE=${MAKE-make}"
4542 # See if makeinfo has been installed and is modern enough
4543 # that we can use it.
4545 # Extract the first word of "makeinfo", so it can be a program name with args.
4546 set dummy makeinfo; ac_word=$2
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 if test -n "$MAKEINFO"; then
4553 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4562 ac_cv_prog_MAKEINFO="makeinfo"
4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 break 2
4566 done
4567 done
4568 IFS=$as_save_IFS
4572 MAKEINFO=$ac_cv_prog_MAKEINFO
4573 if test -n "$MAKEINFO"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4575 $as_echo "$MAKEINFO" >&6; }
4576 else
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4582 if test -n "$MAKEINFO"; then
4583 # Found it, now check the version.
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4585 $as_echo_n "checking for modern makeinfo... " >&6; }
4586 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4590 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4592 case $ac_prog_version in
4593 '') gcc_cv_prog_makeinfo_modern=no;;
4594 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4595 *) gcc_cv_prog_makeinfo_modern=no;;
4596 esac
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4600 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4601 else
4602 gcc_cv_prog_makeinfo_modern=no
4604 if test $gcc_cv_prog_makeinfo_modern = no; then
4605 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4608 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4609 BUILD_INFO_TRUE=
4610 BUILD_INFO_FALSE='#'
4611 else
4612 BUILD_INFO_TRUE='#'
4613 BUILD_INFO_FALSE=
4618 # Configure libtool
4619 case `pwd` in
4620 *\ * | *\ *)
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4622 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4623 esac
4627 macro_version='2.2.7a'
4628 macro_revision='1.3134'
4642 ltmain="$ac_aux_dir/ltmain.sh"
4644 # Backslashify metacharacters that are still active within
4645 # double-quoted strings.
4646 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4648 # Same as above, but do not quote variable references.
4649 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4651 # Sed substitution to delay expansion of an escaped shell variable in a
4652 # double_quote_subst'ed string.
4653 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4655 # Sed substitution to delay expansion of an escaped single quote.
4656 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4658 # Sed substitution to avoid accidental globbing in evaled expressions
4659 no_glob_subst='s/\*/\\\*/g'
4661 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4662 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4663 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4666 $as_echo_n "checking how to print strings... " >&6; }
4667 # Test print first, because it will be a builtin if present.
4668 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4669 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4670 ECHO='print -r --'
4671 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4672 ECHO='printf %s\n'
4673 else
4674 # Use this function as a fallback that always works.
4675 func_fallback_echo ()
4677 eval 'cat <<_LTECHO_EOF
4679 _LTECHO_EOF'
4681 ECHO='func_fallback_echo'
4684 # func_echo_all arg...
4685 # Invoke $ECHO with all args, space-separated.
4686 func_echo_all ()
4688 $ECHO ""
4691 case "$ECHO" in
4692 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4693 $as_echo "printf" >&6; } ;;
4694 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4695 $as_echo "print -r" >&6; } ;;
4696 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4697 $as_echo "cat" >&6; } ;;
4698 esac
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4714 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4715 if test "${ac_cv_path_SED+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4719 for ac_i in 1 2 3 4 5 6 7; do
4720 ac_script="$ac_script$as_nl$ac_script"
4721 done
4722 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4723 { ac_script=; unset ac_script;}
4724 if test -z "$SED"; then
4725 ac_path_SED_found=false
4726 # Loop through the user's path and test for each of PROGNAME-LIST
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4730 IFS=$as_save_IFS
4731 test -z "$as_dir" && as_dir=.
4732 for ac_prog in sed gsed; do
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4735 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4736 # Check for GNU ac_path_SED and select it if it is found.
4737 # Check for GNU $ac_path_SED
4738 case `"$ac_path_SED" --version 2>&1` in
4739 *GNU*)
4740 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4742 ac_count=0
4743 $as_echo_n 0123456789 >"conftest.in"
4744 while :
4746 cat "conftest.in" "conftest.in" >"conftest.tmp"
4747 mv "conftest.tmp" "conftest.in"
4748 cp "conftest.in" "conftest.nl"
4749 $as_echo '' >> "conftest.nl"
4750 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4751 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4752 as_fn_arith $ac_count + 1 && ac_count=$as_val
4753 if test $ac_count -gt ${ac_path_SED_max-0}; then
4754 # Best one so far, save it but keep looking for a better one
4755 ac_cv_path_SED="$ac_path_SED"
4756 ac_path_SED_max=$ac_count
4758 # 10*(2^10) chars as input seems more than enough
4759 test $ac_count -gt 10 && break
4760 done
4761 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4762 esac
4764 $ac_path_SED_found && break 3
4765 done
4766 done
4767 done
4768 IFS=$as_save_IFS
4769 if test -z "$ac_cv_path_SED"; then
4770 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4772 else
4773 ac_cv_path_SED=$SED
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4778 $as_echo "$ac_cv_path_SED" >&6; }
4779 SED="$ac_cv_path_SED"
4780 rm -f conftest.sed
4782 test -z "$SED" && SED=sed
4783 Xsed="$SED -e 1s/^X//"
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4796 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4797 if test "${ac_cv_path_GREP+set}" = set; then :
4798 $as_echo_n "(cached) " >&6
4799 else
4800 if test -z "$GREP"; then
4801 ac_path_GREP_found=false
4802 # Loop through the user's path and test for each of PROGNAME-LIST
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4806 IFS=$as_save_IFS
4807 test -z "$as_dir" && as_dir=.
4808 for ac_prog in grep ggrep; do
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4811 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4812 # Check for GNU ac_path_GREP and select it if it is found.
4813 # Check for GNU $ac_path_GREP
4814 case `"$ac_path_GREP" --version 2>&1` in
4815 *GNU*)
4816 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4818 ac_count=0
4819 $as_echo_n 0123456789 >"conftest.in"
4820 while :
4822 cat "conftest.in" "conftest.in" >"conftest.tmp"
4823 mv "conftest.tmp" "conftest.in"
4824 cp "conftest.in" "conftest.nl"
4825 $as_echo 'GREP' >> "conftest.nl"
4826 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4827 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4828 as_fn_arith $ac_count + 1 && ac_count=$as_val
4829 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4830 # Best one so far, save it but keep looking for a better one
4831 ac_cv_path_GREP="$ac_path_GREP"
4832 ac_path_GREP_max=$ac_count
4834 # 10*(2^10) chars as input seems more than enough
4835 test $ac_count -gt 10 && break
4836 done
4837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4838 esac
4840 $ac_path_GREP_found && break 3
4841 done
4842 done
4843 done
4844 IFS=$as_save_IFS
4845 if test -z "$ac_cv_path_GREP"; then
4846 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4848 else
4849 ac_cv_path_GREP=$GREP
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4854 $as_echo "$ac_cv_path_GREP" >&6; }
4855 GREP="$ac_cv_path_GREP"
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4859 $as_echo_n "checking for egrep... " >&6; }
4860 if test "${ac_cv_path_EGREP+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4864 then ac_cv_path_EGREP="$GREP -E"
4865 else
4866 if test -z "$EGREP"; then
4867 ac_path_EGREP_found=false
4868 # Loop through the user's path and test for each of PROGNAME-LIST
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_prog in egrep; do
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4877 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4878 # Check for GNU ac_path_EGREP and select it if it is found.
4879 # Check for GNU $ac_path_EGREP
4880 case `"$ac_path_EGREP" --version 2>&1` in
4881 *GNU*)
4882 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4884 ac_count=0
4885 $as_echo_n 0123456789 >"conftest.in"
4886 while :
4888 cat "conftest.in" "conftest.in" >"conftest.tmp"
4889 mv "conftest.tmp" "conftest.in"
4890 cp "conftest.in" "conftest.nl"
4891 $as_echo 'EGREP' >> "conftest.nl"
4892 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4893 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4894 as_fn_arith $ac_count + 1 && ac_count=$as_val
4895 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4896 # Best one so far, save it but keep looking for a better one
4897 ac_cv_path_EGREP="$ac_path_EGREP"
4898 ac_path_EGREP_max=$ac_count
4900 # 10*(2^10) chars as input seems more than enough
4901 test $ac_count -gt 10 && break
4902 done
4903 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4904 esac
4906 $ac_path_EGREP_found && break 3
4907 done
4908 done
4909 done
4910 IFS=$as_save_IFS
4911 if test -z "$ac_cv_path_EGREP"; then
4912 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4914 else
4915 ac_cv_path_EGREP=$EGREP
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4921 $as_echo "$ac_cv_path_EGREP" >&6; }
4922 EGREP="$ac_cv_path_EGREP"
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4926 $as_echo_n "checking for fgrep... " >&6; }
4927 if test "${ac_cv_path_FGREP+set}" = set; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4931 then ac_cv_path_FGREP="$GREP -F"
4932 else
4933 if test -z "$FGREP"; then
4934 ac_path_FGREP_found=false
4935 # Loop through the user's path and test for each of PROGNAME-LIST
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_prog in fgrep; do
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4944 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4945 # Check for GNU ac_path_FGREP and select it if it is found.
4946 # Check for GNU $ac_path_FGREP
4947 case `"$ac_path_FGREP" --version 2>&1` in
4948 *GNU*)
4949 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4951 ac_count=0
4952 $as_echo_n 0123456789 >"conftest.in"
4953 while :
4955 cat "conftest.in" "conftest.in" >"conftest.tmp"
4956 mv "conftest.tmp" "conftest.in"
4957 cp "conftest.in" "conftest.nl"
4958 $as_echo 'FGREP' >> "conftest.nl"
4959 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4961 as_fn_arith $ac_count + 1 && ac_count=$as_val
4962 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4963 # Best one so far, save it but keep looking for a better one
4964 ac_cv_path_FGREP="$ac_path_FGREP"
4965 ac_path_FGREP_max=$ac_count
4967 # 10*(2^10) chars as input seems more than enough
4968 test $ac_count -gt 10 && break
4969 done
4970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4971 esac
4973 $ac_path_FGREP_found && break 3
4974 done
4975 done
4976 done
4977 IFS=$as_save_IFS
4978 if test -z "$ac_cv_path_FGREP"; then
4979 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4981 else
4982 ac_cv_path_FGREP=$FGREP
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4988 $as_echo "$ac_cv_path_FGREP" >&6; }
4989 FGREP="$ac_cv_path_FGREP"
4992 test -z "$GREP" && GREP=grep
5012 # Check whether --with-gnu-ld was given.
5013 if test "${with_gnu_ld+set}" = set; then :
5014 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5015 else
5016 with_gnu_ld=no
5019 ac_prog=ld
5020 if test "$GCC" = yes; then
5021 # Check if gcc -print-prog-name=ld gives a path.
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5023 $as_echo_n "checking for ld used by $CC... " >&6; }
5024 case $host in
5025 *-*-mingw*)
5026 # gcc leaves a trailing carriage return which upsets mingw
5027 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5029 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5030 esac
5031 case $ac_prog in
5032 # Accept absolute paths.
5033 [\\/]* | ?:[\\/]*)
5034 re_direlt='/[^/][^/]*/\.\./'
5035 # Canonicalize the pathname of ld
5036 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5037 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5038 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5039 done
5040 test -z "$LD" && LD="$ac_prog"
5043 # If it fails, then pretend we aren't using GCC.
5044 ac_prog=ld
5047 # If it is relative, then search for the first ld in PATH.
5048 with_gnu_ld=unknown
5050 esac
5051 elif test "$with_gnu_ld" = yes; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5053 $as_echo_n "checking for GNU ld... " >&6; }
5054 else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5056 $as_echo_n "checking for non-GNU ld... " >&6; }
5058 if test "${lt_cv_path_LD+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 if test -z "$LD"; then
5062 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5063 for ac_dir in $PATH; do
5064 IFS="$lt_save_ifs"
5065 test -z "$ac_dir" && ac_dir=.
5066 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5067 lt_cv_path_LD="$ac_dir/$ac_prog"
5068 # Check to see if the program is GNU ld. I'd rather use --version,
5069 # but apparently some variants of GNU ld only accept -v.
5070 # Break only if it was the GNU/non-GNU ld that we prefer.
5071 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5072 *GNU* | *'with BFD'*)
5073 test "$with_gnu_ld" != no && break
5076 test "$with_gnu_ld" != yes && break
5078 esac
5080 done
5081 IFS="$lt_save_ifs"
5082 else
5083 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5087 LD="$lt_cv_path_LD"
5088 if test -n "$LD"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5090 $as_echo "$LD" >&6; }
5091 else
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5095 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5097 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5098 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5102 case `$LD -v 2>&1 </dev/null` in
5103 *GNU* | *'with BFD'*)
5104 lt_cv_prog_gnu_ld=yes
5107 lt_cv_prog_gnu_ld=no
5109 esac
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5112 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5113 with_gnu_ld=$lt_cv_prog_gnu_ld
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5124 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5125 if test "${lt_cv_path_NM+set}" = set; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 if test -n "$NM"; then
5129 # Let the user override the test.
5130 lt_cv_path_NM="$NM"
5131 else
5132 lt_nm_to_check="${ac_tool_prefix}nm"
5133 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5134 lt_nm_to_check="$lt_nm_to_check nm"
5136 for lt_tmp_nm in $lt_nm_to_check; do
5137 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5138 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5139 IFS="$lt_save_ifs"
5140 test -z "$ac_dir" && ac_dir=.
5141 tmp_nm="$ac_dir/$lt_tmp_nm"
5142 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5143 # Check to see if the nm accepts a BSD-compat flag.
5144 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5145 # nm: unknown option "B" ignored
5146 # Tru64's nm complains that /dev/null is an invalid object file
5147 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5148 */dev/null* | *'Invalid file or object type'*)
5149 lt_cv_path_NM="$tmp_nm -B"
5150 break
5153 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5154 */dev/null*)
5155 lt_cv_path_NM="$tmp_nm -p"
5156 break
5159 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5160 continue # so that we can try to find one that supports BSD flags
5162 esac
5164 esac
5166 done
5167 IFS="$lt_save_ifs"
5168 done
5169 : ${lt_cv_path_NM=no}
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5173 $as_echo "$lt_cv_path_NM" >&6; }
5174 if test "$lt_cv_path_NM" != "no"; then
5175 NM="$lt_cv_path_NM"
5176 else
5177 # Didn't find any BSD compatible name lister, look for dumpbin.
5178 if test -n "$DUMPBIN"; then :
5179 # Let the user override the test.
5180 else
5181 if test -n "$ac_tool_prefix"; then
5182 for ac_prog in dumpbin "link -dump"
5184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 if test -n "$DUMPBIN"; then
5192 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5205 done
5206 done
5207 IFS=$as_save_IFS
5211 DUMPBIN=$ac_cv_prog_DUMPBIN
5212 if test -n "$DUMPBIN"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5214 $as_echo "$DUMPBIN" >&6; }
5215 else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5221 test -n "$DUMPBIN" && break
5222 done
5224 if test -z "$DUMPBIN"; then
5225 ac_ct_DUMPBIN=$DUMPBIN
5226 for ac_prog in dumpbin "link -dump"
5228 # Extract the first word of "$ac_prog", so it can be a program name with args.
5229 set dummy $ac_prog; ac_word=$2
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5231 $as_echo_n "checking for $ac_word... " >&6; }
5232 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 if test -n "$ac_ct_DUMPBIN"; then
5236 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5237 else
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5241 IFS=$as_save_IFS
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 break 2
5249 done
5250 done
5251 IFS=$as_save_IFS
5255 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5256 if test -n "$ac_ct_DUMPBIN"; then
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5258 $as_echo "$ac_ct_DUMPBIN" >&6; }
5259 else
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }
5265 test -n "$ac_ct_DUMPBIN" && break
5266 done
5268 if test "x$ac_ct_DUMPBIN" = x; then
5269 DUMPBIN=":"
5270 else
5271 case $cross_compiling:$ac_tool_warned in
5272 yes:)
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5275 ac_tool_warned=yes ;;
5276 esac
5277 DUMPBIN=$ac_ct_DUMPBIN
5281 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5282 *COFF*)
5283 DUMPBIN="$DUMPBIN -symbols"
5286 DUMPBIN=:
5288 esac
5291 if test "$DUMPBIN" != ":"; then
5292 NM="$DUMPBIN"
5295 test -z "$NM" && NM=nm
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5303 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5304 if test "${lt_cv_nm_interface+set}" = set; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 lt_cv_nm_interface="BSD nm"
5308 echo "int some_variable = 0;" > conftest.$ac_ext
5309 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5310 (eval "$ac_compile" 2>conftest.err)
5311 cat conftest.err >&5
5312 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5313 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5314 cat conftest.err >&5
5315 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5316 cat conftest.out >&5
5317 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5318 lt_cv_nm_interface="MS dumpbin"
5320 rm -f conftest*
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5323 $as_echo "$lt_cv_nm_interface" >&6; }
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5326 $as_echo_n "checking whether ln -s works... " >&6; }
5327 LN_S=$as_ln_s
5328 if test "$LN_S" = "ln -s"; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5330 $as_echo "yes" >&6; }
5331 else
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5333 $as_echo "no, using $LN_S" >&6; }
5336 # find the maximum length of command line arguments
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5338 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5339 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5343 teststring="ABCD"
5345 case $build_os in
5346 msdosdjgpp*)
5347 # On DJGPP, this test can blow up pretty badly due to problems in libc
5348 # (any single argument exceeding 2000 bytes causes a buffer overrun
5349 # during glob expansion). Even if it were fixed, the result of this
5350 # check would be larger than it should be.
5351 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5354 gnu*)
5355 # Under GNU Hurd, this test is not required because there is
5356 # no limit to the length of command line arguments.
5357 # Libtool will interpret -1 as no limit whatsoever
5358 lt_cv_sys_max_cmd_len=-1;
5361 cygwin* | mingw* | cegcc*)
5362 # On Win9x/ME, this test blows up -- it succeeds, but takes
5363 # about 5 minutes as the teststring grows exponentially.
5364 # Worse, since 9x/ME are not pre-emptively multitasking,
5365 # you end up with a "frozen" computer, even though with patience
5366 # the test eventually succeeds (with a max line length of 256k).
5367 # Instead, let's just punt: use the minimum linelength reported by
5368 # all of the supported platforms: 8192 (on NT/2K/XP).
5369 lt_cv_sys_max_cmd_len=8192;
5372 mint*)
5373 # On MiNT this can take a long time and run out of memory.
5374 lt_cv_sys_max_cmd_len=8192;
5377 amigaos*)
5378 # On AmigaOS with pdksh, this test takes hours, literally.
5379 # So we just punt and use a minimum line length of 8192.
5380 lt_cv_sys_max_cmd_len=8192;
5383 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5384 # This has been around since 386BSD, at least. Likely further.
5385 if test -x /sbin/sysctl; then
5386 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5387 elif test -x /usr/sbin/sysctl; then
5388 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5389 else
5390 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5392 # And add a safety zone
5393 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5397 interix*)
5398 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5399 lt_cv_sys_max_cmd_len=196608
5402 osf*)
5403 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5404 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5405 # nice to cause kernel panics so lets avoid the loop below.
5406 # First set a reasonable default.
5407 lt_cv_sys_max_cmd_len=16384
5409 if test -x /sbin/sysconfig; then
5410 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5411 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5412 esac
5415 sco3.2v5*)
5416 lt_cv_sys_max_cmd_len=102400
5418 sysv5* | sco5v6* | sysv4.2uw2*)
5419 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5420 if test -n "$kargmax"; then
5421 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5422 else
5423 lt_cv_sys_max_cmd_len=32768
5427 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5428 if test -n "$lt_cv_sys_max_cmd_len"; then
5429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5431 else
5432 # Make teststring a little bigger before we do anything with it.
5433 # a 1K string should be a reasonable start.
5434 for i in 1 2 3 4 5 6 7 8 ; do
5435 teststring=$teststring$teststring
5436 done
5437 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5438 # If test is not a shell built-in, we'll probably end up computing a
5439 # maximum length that is only half of the actual maximum length, but
5440 # we can't tell.
5441 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5442 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5443 test $i != 17 # 1/2 MB should be enough
5445 i=`expr $i + 1`
5446 teststring=$teststring$teststring
5447 done
5448 # Only check the string length outside the loop.
5449 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5450 teststring=
5451 # Add a significant safety factor because C++ compilers can tack on
5452 # massive amounts of additional arguments before passing them to the
5453 # linker. It appears as though 1/2 is a usable value.
5454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5457 esac
5461 if test -n $lt_cv_sys_max_cmd_len ; then
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5463 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5464 else
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5466 $as_echo "none" >&6; }
5468 max_cmd_len=$lt_cv_sys_max_cmd_len
5475 : ${CP="cp -f"}
5476 : ${MV="mv -f"}
5477 : ${RM="rm -f"}
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5480 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5481 # Try some XSI features
5482 xsi_shell=no
5483 ( _lt_dummy="a/b/c"
5484 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5485 = c,a/b,, \
5486 && eval 'test $(( 1 + 1 )) -eq 2 \
5487 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5488 && xsi_shell=yes
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5490 $as_echo "$xsi_shell" >&6; }
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5494 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5495 lt_shell_append=no
5496 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5497 >/dev/null 2>&1 \
5498 && lt_shell_append=yes
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5500 $as_echo "$lt_shell_append" >&6; }
5503 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5504 lt_unset=unset
5505 else
5506 lt_unset=false
5513 # test EBCDIC or ASCII
5514 case `echo X|tr X '\101'` in
5515 A) # ASCII based system
5516 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5517 lt_SP2NL='tr \040 \012'
5518 lt_NL2SP='tr \015\012 \040\040'
5520 *) # EBCDIC based system
5521 lt_SP2NL='tr \100 \n'
5522 lt_NL2SP='tr \r\n \100\100'
5524 esac
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5535 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5536 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 lt_cv_ld_reload_flag='-r'
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5542 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5543 reload_flag=$lt_cv_ld_reload_flag
5544 case $reload_flag in
5545 "" | " "*) ;;
5546 *) reload_flag=" $reload_flag" ;;
5547 esac
5548 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5549 case $host_os in
5550 darwin*)
5551 if test "$GCC" = yes; then
5552 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5553 else
5554 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5557 esac
5567 if test -n "$ac_tool_prefix"; then
5568 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5569 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 if test -n "$OBJDUMP"; then
5576 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5577 else
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5585 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 break 2
5589 done
5590 done
5591 IFS=$as_save_IFS
5595 OBJDUMP=$ac_cv_prog_OBJDUMP
5596 if test -n "$OBJDUMP"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5598 $as_echo "$OBJDUMP" >&6; }
5599 else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5606 if test -z "$ac_cv_prog_OBJDUMP"; then
5607 ac_ct_OBJDUMP=$OBJDUMP
5608 # Extract the first word of "objdump", so it can be a program name with args.
5609 set dummy objdump; ac_word=$2
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611 $as_echo_n "checking for $ac_word... " >&6; }
5612 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 if test -n "$ac_ct_OBJDUMP"; then
5616 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5617 else
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5625 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 break 2
5629 done
5630 done
5631 IFS=$as_save_IFS
5635 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5636 if test -n "$ac_ct_OBJDUMP"; then
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5638 $as_echo "$ac_ct_OBJDUMP" >&6; }
5639 else
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5644 if test "x$ac_ct_OBJDUMP" = x; then
5645 OBJDUMP="false"
5646 else
5647 case $cross_compiling:$ac_tool_warned in
5648 yes:)
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5651 ac_tool_warned=yes ;;
5652 esac
5653 OBJDUMP=$ac_ct_OBJDUMP
5655 else
5656 OBJDUMP="$ac_cv_prog_OBJDUMP"
5659 test -z "$OBJDUMP" && OBJDUMP=objdump
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5670 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5671 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5673 else
5674 lt_cv_file_magic_cmd='$MAGIC_CMD'
5675 lt_cv_file_magic_test_file=
5676 lt_cv_deplibs_check_method='unknown'
5677 # Need to set the preceding variable on all platforms that support
5678 # interlibrary dependencies.
5679 # 'none' -- dependencies not supported.
5680 # `unknown' -- same as none, but documents that we really don't know.
5681 # 'pass_all' -- all dependencies passed with no checks.
5682 # 'test_compile' -- check by making test program.
5683 # 'file_magic [[regex]]' -- check by looking for files in library path
5684 # which responds to the $file_magic_cmd with a given extended regex.
5685 # If you have `file' or equivalent on your system and you're not sure
5686 # whether `pass_all' will *always* work, you probably want this one.
5688 case $host_os in
5689 aix[4-9]*)
5690 lt_cv_deplibs_check_method=pass_all
5693 beos*)
5694 lt_cv_deplibs_check_method=pass_all
5697 bsdi[45]*)
5698 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5699 lt_cv_file_magic_cmd='/usr/bin/file -L'
5700 lt_cv_file_magic_test_file=/shlib/libc.so
5703 cygwin*)
5704 # func_win32_libid is a shell function defined in ltmain.sh
5705 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5706 lt_cv_file_magic_cmd='func_win32_libid'
5709 mingw* | pw32*)
5710 # Base MSYS/MinGW do not provide the 'file' command needed by
5711 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5712 # unless we find 'file', for example because we are cross-compiling.
5713 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5714 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5715 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5716 lt_cv_file_magic_cmd='func_win32_libid'
5717 else
5718 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5719 lt_cv_file_magic_cmd='$OBJDUMP -f'
5723 cegcc*)
5724 # use the weaker test based on 'objdump'. See mingw*.
5725 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5726 lt_cv_file_magic_cmd='$OBJDUMP -f'
5729 darwin* | rhapsody*)
5730 lt_cv_deplibs_check_method=pass_all
5733 freebsd* | dragonfly*)
5734 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5735 case $host_cpu in
5736 i*86 )
5737 # Not sure whether the presence of OpenBSD here was a mistake.
5738 # Let's accept both of them until this is cleared up.
5739 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5740 lt_cv_file_magic_cmd=/usr/bin/file
5741 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5743 esac
5744 else
5745 lt_cv_deplibs_check_method=pass_all
5749 gnu*)
5750 lt_cv_deplibs_check_method=pass_all
5753 haiku*)
5754 lt_cv_deplibs_check_method=pass_all
5757 hpux10.20* | hpux11*)
5758 lt_cv_file_magic_cmd=/usr/bin/file
5759 case $host_cpu in
5760 ia64*)
5761 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5762 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5764 hppa*64*)
5765 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]'
5766 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5769 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5770 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5772 esac
5775 interix[3-9]*)
5776 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5777 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5780 irix5* | irix6* | nonstopux*)
5781 case $LD in
5782 *-32|*"-32 ") libmagic=32-bit;;
5783 *-n32|*"-n32 ") libmagic=N32;;
5784 *-64|*"-64 ") libmagic=64-bit;;
5785 *) libmagic=never-match;;
5786 esac
5787 lt_cv_deplibs_check_method=pass_all
5790 # This must be Linux ELF.
5791 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5792 lt_cv_deplibs_check_method=pass_all
5795 netbsd*)
5796 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5798 else
5799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5803 newos6*)
5804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5805 lt_cv_file_magic_cmd=/usr/bin/file
5806 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5809 *nto* | *qnx*)
5810 lt_cv_deplibs_check_method=pass_all
5813 openbsd*)
5814 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5815 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5816 else
5817 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5821 osf3* | osf4* | osf5*)
5822 lt_cv_deplibs_check_method=pass_all
5825 rdos*)
5826 lt_cv_deplibs_check_method=pass_all
5829 solaris*)
5830 lt_cv_deplibs_check_method=pass_all
5833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5834 lt_cv_deplibs_check_method=pass_all
5837 sysv4 | sysv4.3*)
5838 case $host_vendor in
5839 motorola)
5840 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]'
5841 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5843 ncr)
5844 lt_cv_deplibs_check_method=pass_all
5846 sequent)
5847 lt_cv_file_magic_cmd='/bin/file'
5848 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5850 sni)
5851 lt_cv_file_magic_cmd='/bin/file'
5852 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5853 lt_cv_file_magic_test_file=/lib/libc.so
5855 siemens)
5856 lt_cv_deplibs_check_method=pass_all
5859 lt_cv_deplibs_check_method=pass_all
5861 esac
5864 tpf*)
5865 lt_cv_deplibs_check_method=pass_all
5867 esac
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5871 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5872 file_magic_cmd=$lt_cv_file_magic_cmd
5873 deplibs_check_method=$lt_cv_deplibs_check_method
5874 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5887 if test -n "$ac_tool_prefix"; then
5888 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5889 set dummy ${ac_tool_prefix}ar; ac_word=$2
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5891 $as_echo_n "checking for $ac_word... " >&6; }
5892 if test "${ac_cv_prog_AR+set}" = set; then :
5893 $as_echo_n "(cached) " >&6
5894 else
5895 if test -n "$AR"; then
5896 ac_cv_prog_AR="$AR" # Let the user override the test.
5897 else
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH
5901 IFS=$as_save_IFS
5902 test -z "$as_dir" && as_dir=.
5903 for ac_exec_ext in '' $ac_executable_extensions; do
5904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5905 ac_cv_prog_AR="${ac_tool_prefix}ar"
5906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 break 2
5909 done
5910 done
5911 IFS=$as_save_IFS
5915 AR=$ac_cv_prog_AR
5916 if test -n "$AR"; then
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5918 $as_echo "$AR" >&6; }
5919 else
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5921 $as_echo "no" >&6; }
5926 if test -z "$ac_cv_prog_AR"; then
5927 ac_ct_AR=$AR
5928 # Extract the first word of "ar", so it can be a program name with args.
5929 set dummy ar; ac_word=$2
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931 $as_echo_n "checking for $ac_word... " >&6; }
5932 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5934 else
5935 if test -n "$ac_ct_AR"; then
5936 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5937 else
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 for as_dir in $PATH
5941 IFS=$as_save_IFS
5942 test -z "$as_dir" && as_dir=.
5943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5945 ac_cv_prog_ac_ct_AR="ar"
5946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5947 break 2
5949 done
5950 done
5951 IFS=$as_save_IFS
5955 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5956 if test -n "$ac_ct_AR"; then
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5958 $as_echo "$ac_ct_AR" >&6; }
5959 else
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961 $as_echo "no" >&6; }
5964 if test "x$ac_ct_AR" = x; then
5965 AR="false"
5966 else
5967 case $cross_compiling:$ac_tool_warned in
5968 yes:)
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5971 ac_tool_warned=yes ;;
5972 esac
5973 AR=$ac_ct_AR
5975 else
5976 AR="$ac_cv_prog_AR"
5979 test -z "$AR" && AR=ar
5980 test -z "$AR_FLAGS" && AR_FLAGS=cru
5992 if test -n "$ac_tool_prefix"; then
5993 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5994 set dummy ${ac_tool_prefix}strip; ac_word=$2
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 $as_echo_n "checking for $ac_word... " >&6; }
5997 if test "${ac_cv_prog_STRIP+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 if test -n "$STRIP"; then
6001 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6002 else
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 for as_dir in $PATH
6006 IFS=$as_save_IFS
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6010 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 break 2
6014 done
6015 done
6016 IFS=$as_save_IFS
6020 STRIP=$ac_cv_prog_STRIP
6021 if test -n "$STRIP"; then
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6023 $as_echo "$STRIP" >&6; }
6024 else
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6026 $as_echo "no" >&6; }
6031 if test -z "$ac_cv_prog_STRIP"; then
6032 ac_ct_STRIP=$STRIP
6033 # Extract the first word of "strip", so it can be a program name with args.
6034 set dummy strip; ac_word=$2
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 $as_echo_n "checking for $ac_word... " >&6; }
6037 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 if test -n "$ac_ct_STRIP"; then
6041 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6046 IFS=$as_save_IFS
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6050 ac_cv_prog_ac_ct_STRIP="strip"
6051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 break 2
6054 done
6055 done
6056 IFS=$as_save_IFS
6060 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6061 if test -n "$ac_ct_STRIP"; then
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6063 $as_echo "$ac_ct_STRIP" >&6; }
6064 else
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 $as_echo "no" >&6; }
6069 if test "x$ac_ct_STRIP" = x; then
6070 STRIP=":"
6071 else
6072 case $cross_compiling:$ac_tool_warned in
6073 yes:)
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6076 ac_tool_warned=yes ;;
6077 esac
6078 STRIP=$ac_ct_STRIP
6080 else
6081 STRIP="$ac_cv_prog_STRIP"
6084 test -z "$STRIP" && STRIP=:
6091 if test -n "$ac_tool_prefix"; then
6092 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6093 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095 $as_echo_n "checking for $ac_word... " >&6; }
6096 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6097 $as_echo_n "(cached) " >&6
6098 else
6099 if test -n "$RANLIB"; then
6100 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6101 else
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 break 2
6113 done
6114 done
6115 IFS=$as_save_IFS
6119 RANLIB=$ac_cv_prog_RANLIB
6120 if test -n "$RANLIB"; then
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6122 $as_echo "$RANLIB" >&6; }
6123 else
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125 $as_echo "no" >&6; }
6130 if test -z "$ac_cv_prog_RANLIB"; then
6131 ac_ct_RANLIB=$RANLIB
6132 # Extract the first word of "ranlib", so it can be a program name with args.
6133 set dummy ranlib; ac_word=$2
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135 $as_echo_n "checking for $ac_word... " >&6; }
6136 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6137 $as_echo_n "(cached) " >&6
6138 else
6139 if test -n "$ac_ct_RANLIB"; then
6140 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6141 else
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6149 ac_cv_prog_ac_ct_RANLIB="ranlib"
6150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 break 2
6153 done
6154 done
6155 IFS=$as_save_IFS
6159 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6160 if test -n "$ac_ct_RANLIB"; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6162 $as_echo "$ac_ct_RANLIB" >&6; }
6163 else
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165 $as_echo "no" >&6; }
6168 if test "x$ac_ct_RANLIB" = x; then
6169 RANLIB=":"
6170 else
6171 case $cross_compiling:$ac_tool_warned in
6172 yes:)
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6175 ac_tool_warned=yes ;;
6176 esac
6177 RANLIB=$ac_ct_RANLIB
6179 else
6180 RANLIB="$ac_cv_prog_RANLIB"
6183 test -z "$RANLIB" && RANLIB=:
6190 # Determine commands to create old-style static archives.
6191 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6192 old_postinstall_cmds='chmod 644 $oldlib'
6193 old_postuninstall_cmds=
6195 if test -n "$RANLIB"; then
6196 case $host_os in
6197 openbsd*)
6198 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6201 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6203 esac
6204 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6207 case $host_os in
6208 darwin*)
6209 lock_old_archive_extraction=yes ;;
6211 lock_old_archive_extraction=no ;;
6212 esac
6252 # If no C compiler was specified, use CC.
6253 LTCC=${LTCC-"$CC"}
6255 # If no C compiler flags were specified, use CFLAGS.
6256 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6258 # Allow CC to be a program name with arguments.
6259 compiler=$CC
6262 # Check for command to grab the raw symbol name followed by C symbol from nm.
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6264 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6265 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6266 $as_echo_n "(cached) " >&6
6267 else
6269 # These are sane defaults that work on at least a few old systems.
6270 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6272 # Character class describing NM global symbol codes.
6273 symcode='[BCDEGRST]'
6275 # Regexp to match symbols that can be accessed directly from C.
6276 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6278 # Define system-specific variables.
6279 case $host_os in
6280 aix*)
6281 symcode='[BCDT]'
6283 cygwin* | mingw* | pw32* | cegcc*)
6284 symcode='[ABCDGISTW]'
6286 hpux*)
6287 if test "$host_cpu" = ia64; then
6288 symcode='[ABCDEGRST]'
6291 irix* | nonstopux*)
6292 symcode='[BCDEGRST]'
6294 osf*)
6295 symcode='[BCDEGQRST]'
6297 solaris*)
6298 symcode='[BDRT]'
6300 sco3.2v5*)
6301 symcode='[DT]'
6303 sysv4.2uw2*)
6304 symcode='[DT]'
6306 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6307 symcode='[ABDT]'
6309 sysv4)
6310 symcode='[DFNSTU]'
6312 esac
6314 # If we're using GNU nm, then use its standard symbol codes.
6315 case `$NM -V 2>&1` in
6316 *GNU* | *'with BFD'*)
6317 symcode='[ABCDGIRSTW]' ;;
6318 esac
6320 # Transform an extracted symbol line into a proper C declaration.
6321 # Some systems (esp. on ia64) link data and code symbols differently,
6322 # so use this general approach.
6323 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6325 # Transform an extracted symbol line into symbol name and symbol address
6326 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6327 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'"
6329 # Handle CRLF in mingw tool chain
6330 opt_cr=
6331 case $build_os in
6332 mingw*)
6333 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6335 esac
6337 # Try without a prefix underscore, then with it.
6338 for ac_symprfx in "" "_"; do
6340 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6341 symxfrm="\\1 $ac_symprfx\\2 \\2"
6343 # Write the raw and C identifiers.
6344 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6345 # Fake it for dumpbin and say T for any non-static function
6346 # and D for any global variable.
6347 # Also find C++ and __fastcall symbols from MSVC++,
6348 # which start with @ or ?.
6349 lt_cv_sys_global_symbol_pipe="$AWK '"\
6350 " {last_section=section; section=\$ 3};"\
6351 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6352 " \$ 0!~/External *\|/{next};"\
6353 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6354 " {if(hide[section]) next};"\
6355 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6356 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6357 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6358 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6359 " ' prfx=^$ac_symprfx"
6360 else
6361 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6364 # Check to see that the pipe works correctly.
6365 pipe_works=no
6367 rm -f conftest*
6368 cat > conftest.$ac_ext <<_LT_EOF
6369 #ifdef __cplusplus
6370 extern "C" {
6371 #endif
6372 char nm_test_var;
6373 void nm_test_func(void);
6374 void nm_test_func(void){}
6375 #ifdef __cplusplus
6377 #endif
6378 int main(){nm_test_var='a';nm_test_func();return(0);}
6379 _LT_EOF
6381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6382 (eval $ac_compile) 2>&5
6383 ac_status=$?
6384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6385 test $ac_status = 0; }; then
6386 # Now try to grab the symbols.
6387 nlist=conftest.nm
6388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6389 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6390 ac_status=$?
6391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6392 test $ac_status = 0; } && test -s "$nlist"; then
6393 # Try sorting and uniquifying the output.
6394 if sort "$nlist" | uniq > "$nlist"T; then
6395 mv -f "$nlist"T "$nlist"
6396 else
6397 rm -f "$nlist"T
6400 # Make sure that we snagged all the symbols we need.
6401 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6402 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6403 cat <<_LT_EOF > conftest.$ac_ext
6404 #ifdef __cplusplus
6405 extern "C" {
6406 #endif
6408 _LT_EOF
6409 # Now generate the symbol file.
6410 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6412 cat <<_LT_EOF >> conftest.$ac_ext
6414 /* The mapping between symbol names and symbols. */
6415 const struct {
6416 const char *name;
6417 void *address;
6419 lt__PROGRAM__LTX_preloaded_symbols[] =
6421 { "@PROGRAM@", (void *) 0 },
6422 _LT_EOF
6423 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6424 cat <<\_LT_EOF >> conftest.$ac_ext
6425 {0, (void *) 0}
6428 /* This works around a problem in FreeBSD linker */
6429 #ifdef FREEBSD_WORKAROUND
6430 static const void *lt_preloaded_setup() {
6431 return lt__PROGRAM__LTX_preloaded_symbols;
6433 #endif
6435 #ifdef __cplusplus
6437 #endif
6438 _LT_EOF
6439 # Now try linking the two files.
6440 mv conftest.$ac_objext conftstm.$ac_objext
6441 lt_save_LIBS="$LIBS"
6442 lt_save_CFLAGS="$CFLAGS"
6443 LIBS="conftstm.$ac_objext"
6444 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6446 (eval $ac_link) 2>&5
6447 ac_status=$?
6448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6449 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6450 pipe_works=yes
6452 LIBS="$lt_save_LIBS"
6453 CFLAGS="$lt_save_CFLAGS"
6454 else
6455 echo "cannot find nm_test_func in $nlist" >&5
6457 else
6458 echo "cannot find nm_test_var in $nlist" >&5
6460 else
6461 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6463 else
6464 echo "$progname: failed program was:" >&5
6465 cat conftest.$ac_ext >&5
6467 rm -rf conftest* conftst*
6469 # Do not use the global_symbol_pipe unless it works.
6470 if test "$pipe_works" = yes; then
6471 break
6472 else
6473 lt_cv_sys_global_symbol_pipe=
6475 done
6479 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6480 lt_cv_sys_global_symbol_to_cdecl=
6482 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6484 $as_echo "failed" >&6; }
6485 else
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6487 $as_echo "ok" >&6; }
6512 # Check whether --enable-libtool-lock was given.
6513 if test "${enable_libtool_lock+set}" = set; then :
6514 enableval=$enable_libtool_lock;
6517 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6519 # Some flags need to be propagated to the compiler or linker for good
6520 # libtool support.
6521 case $host in
6522 ia64-*-hpux*)
6523 # Find out which ABI we are using.
6524 echo 'int i;' > conftest.$ac_ext
6525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6526 (eval $ac_compile) 2>&5
6527 ac_status=$?
6528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6529 test $ac_status = 0; }; then
6530 case `/usr/bin/file conftest.$ac_objext` in
6531 *ELF-32*)
6532 HPUX_IA64_MODE="32"
6534 *ELF-64*)
6535 HPUX_IA64_MODE="64"
6537 esac
6539 rm -rf conftest*
6541 *-*-irix6*)
6542 # Find out which ABI we are using.
6543 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6545 (eval $ac_compile) 2>&5
6546 ac_status=$?
6547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6548 test $ac_status = 0; }; then
6549 if test "$lt_cv_prog_gnu_ld" = yes; then
6550 case `/usr/bin/file conftest.$ac_objext` in
6551 *32-bit*)
6552 LD="${LD-ld} -melf32bsmip"
6554 *N32*)
6555 LD="${LD-ld} -melf32bmipn32"
6557 *64-bit*)
6558 LD="${LD-ld} -melf64bmip"
6560 esac
6561 else
6562 case `/usr/bin/file conftest.$ac_objext` in
6563 *32-bit*)
6564 LD="${LD-ld} -32"
6566 *N32*)
6567 LD="${LD-ld} -n32"
6569 *64-bit*)
6570 LD="${LD-ld} -64"
6572 esac
6575 rm -rf conftest*
6578 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6579 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6580 # Find out which ABI we are using.
6581 echo 'int i;' > conftest.$ac_ext
6582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6583 (eval $ac_compile) 2>&5
6584 ac_status=$?
6585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6586 test $ac_status = 0; }; then
6587 case `/usr/bin/file conftest.o` in
6588 *32-bit*)
6589 case $host in
6590 x86_64-*kfreebsd*-gnu)
6591 LD="${LD-ld} -m elf_i386_fbsd"
6593 x86_64-*linux*)
6594 LD="${LD-ld} -m elf_i386"
6596 ppc64-*linux*|powerpc64-*linux*)
6597 LD="${LD-ld} -m elf32ppclinux"
6599 s390x-*linux*)
6600 LD="${LD-ld} -m elf_s390"
6602 sparc64-*linux*)
6603 LD="${LD-ld} -m elf32_sparc"
6605 esac
6607 *64-bit*)
6608 case $host in
6609 x86_64-*kfreebsd*-gnu)
6610 LD="${LD-ld} -m elf_x86_64_fbsd"
6612 x86_64-*linux*)
6613 LD="${LD-ld} -m elf_x86_64"
6615 ppc*-*linux*|powerpc*-*linux*)
6616 LD="${LD-ld} -m elf64ppc"
6618 s390*-*linux*|s390*-*tpf*)
6619 LD="${LD-ld} -m elf64_s390"
6621 sparc*-*linux*)
6622 LD="${LD-ld} -m elf64_sparc"
6624 esac
6626 esac
6628 rm -rf conftest*
6631 *-*-sco3.2v5*)
6632 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6633 SAVE_CFLAGS="$CFLAGS"
6634 CFLAGS="$CFLAGS -belf"
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6636 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6637 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 ac_ext=c
6641 ac_cpp='$CPP $CPPFLAGS'
6642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647 /* end confdefs.h. */
6650 main ()
6654 return 0;
6656 _ACEOF
6657 if ac_fn_c_try_link "$LINENO"; then :
6658 lt_cv_cc_needs_belf=yes
6659 else
6660 lt_cv_cc_needs_belf=no
6662 rm -f core conftest.err conftest.$ac_objext \
6663 conftest$ac_exeext conftest.$ac_ext
6664 ac_ext=c
6665 ac_cpp='$CPP $CPPFLAGS'
6666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6672 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6673 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6674 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6675 CFLAGS="$SAVE_CFLAGS"
6678 sparc*-*solaris*)
6679 # Find out which ABI we are using.
6680 echo 'int i;' > conftest.$ac_ext
6681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6682 (eval $ac_compile) 2>&5
6683 ac_status=$?
6684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6685 test $ac_status = 0; }; then
6686 case `/usr/bin/file conftest.o` in
6687 *64-bit*)
6688 case $lt_cv_prog_gnu_ld in
6689 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6691 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6692 LD="${LD-ld} -64"
6695 esac
6697 esac
6699 rm -rf conftest*
6701 esac
6703 need_locks="$enable_libtool_lock"
6706 case $host_os in
6707 rhapsody* | darwin*)
6708 if test -n "$ac_tool_prefix"; then
6709 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6710 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6714 $as_echo_n "(cached) " >&6
6715 else
6716 if test -n "$DSYMUTIL"; then
6717 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6718 else
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6722 IFS=$as_save_IFS
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728 break 2
6730 done
6731 done
6732 IFS=$as_save_IFS
6736 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6737 if test -n "$DSYMUTIL"; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6739 $as_echo "$DSYMUTIL" >&6; }
6740 else
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6747 if test -z "$ac_cv_prog_DSYMUTIL"; then
6748 ac_ct_DSYMUTIL=$DSYMUTIL
6749 # Extract the first word of "dsymutil", so it can be a program name with args.
6750 set dummy dsymutil; ac_word=$2
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6752 $as_echo_n "checking for $ac_word... " >&6; }
6753 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6754 $as_echo_n "(cached) " >&6
6755 else
6756 if test -n "$ac_ct_DSYMUTIL"; then
6757 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6758 else
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6762 IFS=$as_save_IFS
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6766 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6768 break 2
6770 done
6771 done
6772 IFS=$as_save_IFS
6776 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6777 if test -n "$ac_ct_DSYMUTIL"; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6779 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6780 else
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6785 if test "x$ac_ct_DSYMUTIL" = x; then
6786 DSYMUTIL=":"
6787 else
6788 case $cross_compiling:$ac_tool_warned in
6789 yes:)
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6792 ac_tool_warned=yes ;;
6793 esac
6794 DSYMUTIL=$ac_ct_DSYMUTIL
6796 else
6797 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6800 if test -n "$ac_tool_prefix"; then
6801 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6802 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 $as_echo_n "checking for $ac_word... " >&6; }
6805 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6806 $as_echo_n "(cached) " >&6
6807 else
6808 if test -n "$NMEDIT"; then
6809 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6810 else
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 for as_dir in $PATH
6814 IFS=$as_save_IFS
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6818 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 break 2
6822 done
6823 done
6824 IFS=$as_save_IFS
6828 NMEDIT=$ac_cv_prog_NMEDIT
6829 if test -n "$NMEDIT"; then
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6831 $as_echo "$NMEDIT" >&6; }
6832 else
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6839 if test -z "$ac_cv_prog_NMEDIT"; then
6840 ac_ct_NMEDIT=$NMEDIT
6841 # Extract the first word of "nmedit", so it can be a program name with args.
6842 set dummy nmedit; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 if test -n "$ac_ct_NMEDIT"; then
6849 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6850 else
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 for as_dir in $PATH
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6858 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 break 2
6862 done
6863 done
6864 IFS=$as_save_IFS
6868 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6869 if test -n "$ac_ct_NMEDIT"; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6871 $as_echo "$ac_ct_NMEDIT" >&6; }
6872 else
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6877 if test "x$ac_ct_NMEDIT" = x; then
6878 NMEDIT=":"
6879 else
6880 case $cross_compiling:$ac_tool_warned in
6881 yes:)
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884 ac_tool_warned=yes ;;
6885 esac
6886 NMEDIT=$ac_ct_NMEDIT
6888 else
6889 NMEDIT="$ac_cv_prog_NMEDIT"
6892 if test -n "$ac_tool_prefix"; then
6893 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6894 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if test "${ac_cv_prog_LIPO+set}" = set; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 if test -n "$LIPO"; then
6901 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6910 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6914 done
6915 done
6916 IFS=$as_save_IFS
6920 LIPO=$ac_cv_prog_LIPO
6921 if test -n "$LIPO"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6923 $as_echo "$LIPO" >&6; }
6924 else
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6931 if test -z "$ac_cv_prog_LIPO"; then
6932 ac_ct_LIPO=$LIPO
6933 # Extract the first word of "lipo", so it can be a program name with args.
6934 set dummy lipo; ac_word=$2
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 $as_echo_n "checking for $ac_word... " >&6; }
6937 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 if test -n "$ac_ct_LIPO"; then
6941 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6946 IFS=$as_save_IFS
6947 test -z "$as_dir" && as_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6950 ac_cv_prog_ac_ct_LIPO="lipo"
6951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 break 2
6954 done
6955 done
6956 IFS=$as_save_IFS
6960 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6961 if test -n "$ac_ct_LIPO"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6963 $as_echo "$ac_ct_LIPO" >&6; }
6964 else
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6969 if test "x$ac_ct_LIPO" = x; then
6970 LIPO=":"
6971 else
6972 case $cross_compiling:$ac_tool_warned in
6973 yes:)
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6976 ac_tool_warned=yes ;;
6977 esac
6978 LIPO=$ac_ct_LIPO
6980 else
6981 LIPO="$ac_cv_prog_LIPO"
6984 if test -n "$ac_tool_prefix"; then
6985 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6986 set dummy ${ac_tool_prefix}otool; ac_word=$2
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988 $as_echo_n "checking for $ac_word... " >&6; }
6989 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 if test -n "$OTOOL"; then
6993 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6994 else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7002 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 break 2
7006 done
7007 done
7008 IFS=$as_save_IFS
7012 OTOOL=$ac_cv_prog_OTOOL
7013 if test -n "$OTOOL"; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7015 $as_echo "$OTOOL" >&6; }
7016 else
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7023 if test -z "$ac_cv_prog_OTOOL"; then
7024 ac_ct_OTOOL=$OTOOL
7025 # Extract the first word of "otool", so it can be a program name with args.
7026 set dummy otool; ac_word=$2
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028 $as_echo_n "checking for $ac_word... " >&6; }
7029 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7030 $as_echo_n "(cached) " >&6
7031 else
7032 if test -n "$ac_ct_OTOOL"; then
7033 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7034 else
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 for as_dir in $PATH
7038 IFS=$as_save_IFS
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7042 ac_cv_prog_ac_ct_OTOOL="otool"
7043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 break 2
7046 done
7047 done
7048 IFS=$as_save_IFS
7052 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7053 if test -n "$ac_ct_OTOOL"; then
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7055 $as_echo "$ac_ct_OTOOL" >&6; }
7056 else
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058 $as_echo "no" >&6; }
7061 if test "x$ac_ct_OTOOL" = x; then
7062 OTOOL=":"
7063 else
7064 case $cross_compiling:$ac_tool_warned in
7065 yes:)
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7068 ac_tool_warned=yes ;;
7069 esac
7070 OTOOL=$ac_ct_OTOOL
7072 else
7073 OTOOL="$ac_cv_prog_OTOOL"
7076 if test -n "$ac_tool_prefix"; then
7077 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7078 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 if test -n "$OTOOL64"; then
7085 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7094 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 break 2
7098 done
7099 done
7100 IFS=$as_save_IFS
7104 OTOOL64=$ac_cv_prog_OTOOL64
7105 if test -n "$OTOOL64"; then
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7107 $as_echo "$OTOOL64" >&6; }
7108 else
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7115 if test -z "$ac_cv_prog_OTOOL64"; then
7116 ac_ct_OTOOL64=$OTOOL64
7117 # Extract the first word of "otool64", so it can be a program name with args.
7118 set dummy otool64; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124 if test -n "$ac_ct_OTOOL64"; then
7125 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134 ac_cv_prog_ac_ct_OTOOL64="otool64"
7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 break 2
7138 done
7139 done
7140 IFS=$as_save_IFS
7144 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7145 if test -n "$ac_ct_OTOOL64"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7147 $as_echo "$ac_ct_OTOOL64" >&6; }
7148 else
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7153 if test "x$ac_ct_OTOOL64" = x; then
7154 OTOOL64=":"
7155 else
7156 case $cross_compiling:$ac_tool_warned in
7157 yes:)
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7160 ac_tool_warned=yes ;;
7161 esac
7162 OTOOL64=$ac_ct_OTOOL64
7164 else
7165 OTOOL64="$ac_cv_prog_OTOOL64"
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7195 $as_echo_n "checking for -single_module linker flag... " >&6; }
7196 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 lt_cv_apple_cc_single_mod=no
7200 if test -z "${LT_MULTI_MODULE}"; then
7201 # By default we will add the -single_module flag. You can override
7202 # by either setting the environment variable LT_MULTI_MODULE
7203 # non-empty at configure time, or by adding -multi_module to the
7204 # link flags.
7205 rm -rf libconftest.dylib*
7206 echo "int foo(void){return 1;}" > conftest.c
7207 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7208 -dynamiclib -Wl,-single_module conftest.c" >&5
7209 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7210 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7211 _lt_result=$?
7212 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7213 lt_cv_apple_cc_single_mod=yes
7214 else
7215 cat conftest.err >&5
7217 rm -rf libconftest.dylib*
7218 rm -f conftest.*
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7222 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7224 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7225 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7226 $as_echo_n "(cached) " >&6
7227 else
7228 lt_cv_ld_exported_symbols_list=no
7229 save_LDFLAGS=$LDFLAGS
7230 echo "_main" > conftest.sym
7231 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7236 main ()
7240 return 0;
7242 _ACEOF
7243 if ac_fn_c_try_link "$LINENO"; then :
7244 lt_cv_ld_exported_symbols_list=yes
7245 else
7246 lt_cv_ld_exported_symbols_list=no
7248 rm -f core conftest.err conftest.$ac_objext \
7249 conftest$ac_exeext conftest.$ac_ext
7250 LDFLAGS="$save_LDFLAGS"
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7254 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7256 $as_echo_n "checking for -force_load linker flag... " >&6; }
7257 if test "${lt_cv_ld_force_load+set}" = set; then :
7258 $as_echo_n "(cached) " >&6
7259 else
7260 lt_cv_ld_force_load=no
7261 cat > conftest.c << _LT_EOF
7262 int forced_loaded() { return 2;}
7263 _LT_EOF
7264 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7265 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7266 echo "$AR cru libconftest.a conftest.o" >&5
7267 $AR cru libconftest.a conftest.o 2>&5
7268 cat > conftest.c << _LT_EOF
7269 int main() { return 0;}
7270 _LT_EOF
7271 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7272 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7273 _lt_result=$?
7274 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7275 lt_cv_ld_force_load=yes
7276 else
7277 cat conftest.err >&5
7279 rm -f conftest.err libconftest.a conftest conftest.c
7280 rm -rf conftest.dSYM
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7284 $as_echo "$lt_cv_ld_force_load" >&6; }
7285 case $host_os in
7286 rhapsody* | darwin1.[012])
7287 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7288 darwin1.*)
7289 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7290 darwin*) # darwin 5.x on
7291 # if running on 10.5 or later, the deployment target defaults
7292 # to the OS version, if on x86, and 10.4, the deployment
7293 # target defaults to 10.4. Don't you love it?
7294 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7295 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7296 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7297 10.[012]*)
7298 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7299 10.*)
7300 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7301 esac
7303 esac
7304 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7305 _lt_dar_single_mod='$single_module'
7307 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7308 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7309 else
7310 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7312 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7313 _lt_dsymutil='~$DSYMUTIL $lib || :'
7314 else
7315 _lt_dsymutil=
7318 esac
7320 ac_ext=c
7321 ac_cpp='$CPP $CPPFLAGS'
7322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7326 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7327 # On Suns, sometimes $CPP names a directory.
7328 if test -n "$CPP" && test -d "$CPP"; then
7329 CPP=
7331 if test -z "$CPP"; then
7332 if test "${ac_cv_prog_CPP+set}" = set; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 # Double quotes because CPP needs to be expanded
7336 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7338 ac_preproc_ok=false
7339 for ac_c_preproc_warn_flag in '' yes
7341 # Use a header file that comes with gcc, so configuring glibc
7342 # with a fresh cross-compiler works.
7343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7344 # <limits.h> exists even on freestanding compilers.
7345 # On the NeXT, cc -E runs the code through the compiler's parser,
7346 # not just through cpp. "Syntax error" is here to catch this case.
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h. */
7349 #ifdef __STDC__
7350 # include <limits.h>
7351 #else
7352 # include <assert.h>
7353 #endif
7354 Syntax error
7355 _ACEOF
7356 if ac_fn_c_try_cpp "$LINENO"; then :
7358 else
7359 # Broken: fails on valid input.
7360 continue
7362 rm -f conftest.err conftest.$ac_ext
7364 # OK, works on sane cases. Now check whether nonexistent headers
7365 # can be detected and how.
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7368 #include <ac_nonexistent.h>
7369 _ACEOF
7370 if ac_fn_c_try_cpp "$LINENO"; then :
7371 # Broken: success on invalid input.
7372 continue
7373 else
7374 # Passes both tests.
7375 ac_preproc_ok=:
7376 break
7378 rm -f conftest.err conftest.$ac_ext
7380 done
7381 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7382 rm -f conftest.err conftest.$ac_ext
7383 if $ac_preproc_ok; then :
7384 break
7387 done
7388 ac_cv_prog_CPP=$CPP
7391 CPP=$ac_cv_prog_CPP
7392 else
7393 ac_cv_prog_CPP=$CPP
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7396 $as_echo "$CPP" >&6; }
7397 ac_preproc_ok=false
7398 for ac_c_preproc_warn_flag in '' yes
7400 # Use a header file that comes with gcc, so configuring glibc
7401 # with a fresh cross-compiler works.
7402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7403 # <limits.h> exists even on freestanding compilers.
7404 # On the NeXT, cc -E runs the code through the compiler's parser,
7405 # not just through cpp. "Syntax error" is here to catch this case.
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7408 #ifdef __STDC__
7409 # include <limits.h>
7410 #else
7411 # include <assert.h>
7412 #endif
7413 Syntax error
7414 _ACEOF
7415 if ac_fn_c_try_cpp "$LINENO"; then :
7417 else
7418 # Broken: fails on valid input.
7419 continue
7421 rm -f conftest.err conftest.$ac_ext
7423 # OK, works on sane cases. Now check whether nonexistent headers
7424 # can be detected and how.
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7427 #include <ac_nonexistent.h>
7428 _ACEOF
7429 if ac_fn_c_try_cpp "$LINENO"; then :
7430 # Broken: success on invalid input.
7431 continue
7432 else
7433 # Passes both tests.
7434 ac_preproc_ok=:
7435 break
7437 rm -f conftest.err conftest.$ac_ext
7439 done
7440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7441 rm -f conftest.err conftest.$ac_ext
7442 if $ac_preproc_ok; then :
7444 else
7445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7447 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7448 See \`config.log' for more details." "$LINENO" 5; }
7451 ac_ext=c
7452 ac_cpp='$CPP $CPPFLAGS'
7453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7459 $as_echo_n "checking for ANSI C header files... " >&6; }
7460 if test "${ac_cv_header_stdc+set}" = set; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7465 #include <stdlib.h>
7466 #include <stdarg.h>
7467 #include <string.h>
7468 #include <float.h>
7471 main ()
7475 return 0;
7477 _ACEOF
7478 if ac_fn_c_try_compile "$LINENO"; then :
7479 ac_cv_header_stdc=yes
7480 else
7481 ac_cv_header_stdc=no
7483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485 if test $ac_cv_header_stdc = yes; then
7486 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7489 #include <string.h>
7491 _ACEOF
7492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7493 $EGREP "memchr" >/dev/null 2>&1; then :
7495 else
7496 ac_cv_header_stdc=no
7498 rm -f conftest*
7502 if test $ac_cv_header_stdc = yes; then
7503 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h. */
7506 #include <stdlib.h>
7508 _ACEOF
7509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7510 $EGREP "free" >/dev/null 2>&1; then :
7512 else
7513 ac_cv_header_stdc=no
7515 rm -f conftest*
7519 if test $ac_cv_header_stdc = yes; then
7520 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7521 if test "$cross_compiling" = yes; then :
7523 else
7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h. */
7526 #include <ctype.h>
7527 #include <stdlib.h>
7528 #if ((' ' & 0x0FF) == 0x020)
7529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7531 #else
7532 # define ISLOWER(c) \
7533 (('a' <= (c) && (c) <= 'i') \
7534 || ('j' <= (c) && (c) <= 'r') \
7535 || ('s' <= (c) && (c) <= 'z'))
7536 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7537 #endif
7539 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7541 main ()
7543 int i;
7544 for (i = 0; i < 256; i++)
7545 if (XOR (islower (i), ISLOWER (i))
7546 || toupper (i) != TOUPPER (i))
7547 return 2;
7548 return 0;
7550 _ACEOF
7551 if ac_fn_c_try_run "$LINENO"; then :
7553 else
7554 ac_cv_header_stdc=no
7556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7557 conftest.$ac_objext conftest.beam conftest.$ac_ext
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7563 $as_echo "$ac_cv_header_stdc" >&6; }
7564 if test $ac_cv_header_stdc = yes; then
7566 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7570 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7571 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7572 inttypes.h stdint.h unistd.h
7573 do :
7574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7575 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7577 eval as_val=\$$as_ac_Header
7578 if test "x$as_val" = x""yes; then :
7579 cat >>confdefs.h <<_ACEOF
7580 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7581 _ACEOF
7585 done
7588 for ac_header in dlfcn.h
7589 do :
7590 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7592 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7593 cat >>confdefs.h <<_ACEOF
7594 #define HAVE_DLFCN_H 1
7595 _ACEOF
7599 done
7605 # Set options
7609 enable_dlopen=no
7612 enable_win32_dll=no
7615 # Check whether --enable-shared was given.
7616 if test "${enable_shared+set}" = set; then :
7617 enableval=$enable_shared; p=${PACKAGE-default}
7618 case $enableval in
7619 yes) enable_shared=yes ;;
7620 no) enable_shared=no ;;
7622 enable_shared=no
7623 # Look at the argument we got. We use all the common list separators.
7624 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7625 for pkg in $enableval; do
7626 IFS="$lt_save_ifs"
7627 if test "X$pkg" = "X$p"; then
7628 enable_shared=yes
7630 done
7631 IFS="$lt_save_ifs"
7633 esac
7634 else
7635 enable_shared=yes
7646 # Check whether --enable-static was given.
7647 if test "${enable_static+set}" = set; then :
7648 enableval=$enable_static; p=${PACKAGE-default}
7649 case $enableval in
7650 yes) enable_static=yes ;;
7651 no) enable_static=no ;;
7653 enable_static=no
7654 # Look at the argument we got. We use all the common list separators.
7655 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7656 for pkg in $enableval; do
7657 IFS="$lt_save_ifs"
7658 if test "X$pkg" = "X$p"; then
7659 enable_static=yes
7661 done
7662 IFS="$lt_save_ifs"
7664 esac
7665 else
7666 enable_static=yes
7678 # Check whether --with-pic was given.
7679 if test "${with_pic+set}" = set; then :
7680 withval=$with_pic; pic_mode="$withval"
7681 else
7682 pic_mode=default
7686 test -z "$pic_mode" && pic_mode=default
7694 # Check whether --enable-fast-install was given.
7695 if test "${enable_fast_install+set}" = set; then :
7696 enableval=$enable_fast_install; p=${PACKAGE-default}
7697 case $enableval in
7698 yes) enable_fast_install=yes ;;
7699 no) enable_fast_install=no ;;
7701 enable_fast_install=no
7702 # Look at the argument we got. We use all the common list separators.
7703 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7704 for pkg in $enableval; do
7705 IFS="$lt_save_ifs"
7706 if test "X$pkg" = "X$p"; then
7707 enable_fast_install=yes
7709 done
7710 IFS="$lt_save_ifs"
7712 esac
7713 else
7714 enable_fast_install=yes
7727 # This can be used to rebuild libtool when needed
7728 LIBTOOL_DEPS="$ltmain"
7730 # Always use our own libtool.
7731 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7758 test -z "$LN_S" && LN_S="ln -s"
7773 if test -n "${ZSH_VERSION+set}" ; then
7774 setopt NO_GLOB_SUBST
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7778 $as_echo_n "checking for objdir... " >&6; }
7779 if test "${lt_cv_objdir+set}" = set; then :
7780 $as_echo_n "(cached) " >&6
7781 else
7782 rm -f .libs 2>/dev/null
7783 mkdir .libs 2>/dev/null
7784 if test -d .libs; then
7785 lt_cv_objdir=.libs
7786 else
7787 # MS-DOS does not allow filenames that begin with a dot.
7788 lt_cv_objdir=_libs
7790 rmdir .libs 2>/dev/null
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7793 $as_echo "$lt_cv_objdir" >&6; }
7794 objdir=$lt_cv_objdir
7800 cat >>confdefs.h <<_ACEOF
7801 #define LT_OBJDIR "$lt_cv_objdir/"
7802 _ACEOF
7807 case $host_os in
7808 aix3*)
7809 # AIX sometimes has problems with the GCC collect2 program. For some
7810 # reason, if we set the COLLECT_NAMES environment variable, the problems
7811 # vanish in a puff of smoke.
7812 if test "X${COLLECT_NAMES+set}" != Xset; then
7813 COLLECT_NAMES=
7814 export COLLECT_NAMES
7817 esac
7819 # Global variables:
7820 ofile=libtool
7821 can_build_shared=yes
7823 # All known linkers require a `.a' archive for static linking (except MSVC,
7824 # which needs '.lib').
7825 libext=a
7827 with_gnu_ld="$lt_cv_prog_gnu_ld"
7829 old_CC="$CC"
7830 old_CFLAGS="$CFLAGS"
7832 # Set sane defaults for various variables
7833 test -z "$CC" && CC=cc
7834 test -z "$LTCC" && LTCC=$CC
7835 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7836 test -z "$LD" && LD=ld
7837 test -z "$ac_objext" && ac_objext=o
7839 for cc_temp in $compiler""; do
7840 case $cc_temp in
7841 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7842 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7843 \-*) ;;
7844 *) break;;
7845 esac
7846 done
7847 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7850 # Only perform the check for file, if the check method requires it
7851 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7852 case $deplibs_check_method in
7853 file_magic*)
7854 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7856 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7857 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7858 $as_echo_n "(cached) " >&6
7859 else
7860 case $MAGIC_CMD in
7861 [\\/*] | ?:[\\/]*)
7862 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7865 lt_save_MAGIC_CMD="$MAGIC_CMD"
7866 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7867 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7868 for ac_dir in $ac_dummy; do
7869 IFS="$lt_save_ifs"
7870 test -z "$ac_dir" && ac_dir=.
7871 if test -f $ac_dir/${ac_tool_prefix}file; then
7872 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7873 if test -n "$file_magic_test_file"; then
7874 case $deplibs_check_method in
7875 "file_magic "*)
7876 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7877 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7878 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7879 $EGREP "$file_magic_regex" > /dev/null; then
7881 else
7882 cat <<_LT_EOF 1>&2
7884 *** Warning: the command libtool uses to detect shared libraries,
7885 *** $file_magic_cmd, produces output that libtool cannot recognize.
7886 *** The result is that libtool may fail to recognize shared libraries
7887 *** as such. This will affect the creation of libtool libraries that
7888 *** depend on shared libraries, but programs linked with such libtool
7889 *** libraries will work regardless of this problem. Nevertheless, you
7890 *** may want to report the problem to your system manager and/or to
7891 *** bug-libtool@gnu.org
7893 _LT_EOF
7894 fi ;;
7895 esac
7897 break
7899 done
7900 IFS="$lt_save_ifs"
7901 MAGIC_CMD="$lt_save_MAGIC_CMD"
7903 esac
7906 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7907 if test -n "$MAGIC_CMD"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7909 $as_echo "$MAGIC_CMD" >&6; }
7910 else
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7919 if test -z "$lt_cv_path_MAGIC_CMD"; then
7920 if test -n "$ac_tool_prefix"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7922 $as_echo_n "checking for file... " >&6; }
7923 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926 case $MAGIC_CMD in
7927 [\\/*] | ?:[\\/]*)
7928 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7931 lt_save_MAGIC_CMD="$MAGIC_CMD"
7932 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7933 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7934 for ac_dir in $ac_dummy; do
7935 IFS="$lt_save_ifs"
7936 test -z "$ac_dir" && ac_dir=.
7937 if test -f $ac_dir/file; then
7938 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7939 if test -n "$file_magic_test_file"; then
7940 case $deplibs_check_method in
7941 "file_magic "*)
7942 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7943 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7944 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7945 $EGREP "$file_magic_regex" > /dev/null; then
7947 else
7948 cat <<_LT_EOF 1>&2
7950 *** Warning: the command libtool uses to detect shared libraries,
7951 *** $file_magic_cmd, produces output that libtool cannot recognize.
7952 *** The result is that libtool may fail to recognize shared libraries
7953 *** as such. This will affect the creation of libtool libraries that
7954 *** depend on shared libraries, but programs linked with such libtool
7955 *** libraries will work regardless of this problem. Nevertheless, you
7956 *** may want to report the problem to your system manager and/or to
7957 *** bug-libtool@gnu.org
7959 _LT_EOF
7960 fi ;;
7961 esac
7963 break
7965 done
7966 IFS="$lt_save_ifs"
7967 MAGIC_CMD="$lt_save_MAGIC_CMD"
7969 esac
7972 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7973 if test -n "$MAGIC_CMD"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7975 $as_echo "$MAGIC_CMD" >&6; }
7976 else
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7982 else
7983 MAGIC_CMD=:
7989 esac
7991 # Use C for the default configuration in the libtool script
7993 lt_save_CC="$CC"
7994 ac_ext=c
7995 ac_cpp='$CPP $CPPFLAGS'
7996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8001 # Source file extension for C test sources.
8002 ac_ext=c
8004 # Object file extension for compiled C test sources.
8005 objext=o
8006 objext=$objext
8008 # Code to be used in simple compile tests
8009 lt_simple_compile_test_code="int some_variable = 0;"
8011 # Code to be used in simple link tests
8012 lt_simple_link_test_code='int main(){return(0);}'
8020 # If no C compiler was specified, use CC.
8021 LTCC=${LTCC-"$CC"}
8023 # If no C compiler flags were specified, use CFLAGS.
8024 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8026 # Allow CC to be a program name with arguments.
8027 compiler=$CC
8029 # Save the default compiler, since it gets overwritten when the other
8030 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8031 compiler_DEFAULT=$CC
8033 # save warnings/boilerplate of simple test code
8034 ac_outfile=conftest.$ac_objext
8035 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8036 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8037 _lt_compiler_boilerplate=`cat conftest.err`
8038 $RM conftest*
8040 ac_outfile=conftest.$ac_objext
8041 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8042 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8043 _lt_linker_boilerplate=`cat conftest.err`
8044 $RM -r conftest*
8047 ## CAVEAT EMPTOR:
8048 ## There is no encapsulation within the following macros, do not change
8049 ## the running order or otherwise move them around unless you know exactly
8050 ## what you are doing...
8051 if test -n "$compiler"; then
8053 lt_prog_compiler_no_builtin_flag=
8055 if test "$GCC" = yes; then
8056 case $cc_basename in
8057 nvcc*)
8058 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8060 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8061 esac
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8064 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8065 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
8067 else
8068 lt_cv_prog_compiler_rtti_exceptions=no
8069 ac_outfile=conftest.$ac_objext
8070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8071 lt_compiler_flag="-fno-rtti -fno-exceptions"
8072 # Insert the option either (1) after the last *FLAGS variable, or
8073 # (2) before a word containing "conftest.", or (3) at the end.
8074 # Note that $ac_compile itself does not contain backslashes and begins
8075 # with a dollar sign (not a hyphen), so the echo should work correctly.
8076 # The option is referenced via a variable to avoid confusing sed.
8077 lt_compile=`echo "$ac_compile" | $SED \
8078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8080 -e 's:$: $lt_compiler_flag:'`
8081 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8082 (eval "$lt_compile" 2>conftest.err)
8083 ac_status=$?
8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 if (exit $ac_status) && test -s "$ac_outfile"; then
8087 # The compiler can only warn and ignore the option if not recognized
8088 # So say no if there are warnings other than the usual output.
8089 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8091 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8092 lt_cv_prog_compiler_rtti_exceptions=yes
8095 $RM conftest*
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8099 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8101 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8102 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8103 else
8114 lt_prog_compiler_wl=
8115 lt_prog_compiler_pic=
8116 lt_prog_compiler_static=
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8119 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8121 if test "$GCC" = yes; then
8122 lt_prog_compiler_wl='-Wl,'
8123 lt_prog_compiler_static='-static'
8125 case $host_os in
8126 aix*)
8127 # All AIX code is PIC.
8128 if test "$host_cpu" = ia64; then
8129 # AIX 5 now supports IA64 processor
8130 lt_prog_compiler_static='-Bstatic'
8134 amigaos*)
8135 case $host_cpu in
8136 powerpc)
8137 # see comment about AmigaOS4 .so support
8138 lt_prog_compiler_pic='-fPIC'
8140 m68k)
8141 # FIXME: we need at least 68020 code to build shared libraries, but
8142 # adding the `-m68020' flag to GCC prevents building anything better,
8143 # like `-m68040'.
8144 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8146 esac
8149 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8150 # PIC is the default for these OSes.
8153 mingw* | cygwin* | pw32* | os2* | cegcc*)
8154 # This hack is so that the source file can tell whether it is being
8155 # built for inclusion in a dll (and should export symbols for example).
8156 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8157 # (--disable-auto-import) libraries
8158 lt_prog_compiler_pic='-DDLL_EXPORT'
8161 darwin* | rhapsody*)
8162 # PIC is the default on this platform
8163 # Common symbols not allowed in MH_DYLIB files
8164 lt_prog_compiler_pic='-fno-common'
8167 haiku*)
8168 # PIC is the default for Haiku.
8169 # The "-static" flag exists, but is broken.
8170 lt_prog_compiler_static=
8173 hpux*)
8174 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8175 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8176 # sets the default TLS model and affects inlining.
8177 case $host_cpu in
8178 hppa*64*)
8179 # +Z the default
8182 lt_prog_compiler_pic='-fPIC'
8184 esac
8187 interix[3-9]*)
8188 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8189 # Instead, we relocate shared libraries at runtime.
8192 msdosdjgpp*)
8193 # Just because we use GCC doesn't mean we suddenly get shared libraries
8194 # on systems that don't support them.
8195 lt_prog_compiler_can_build_shared=no
8196 enable_shared=no
8199 *nto* | *qnx*)
8200 # QNX uses GNU C++, but need to define -shared option too, otherwise
8201 # it will coredump.
8202 lt_prog_compiler_pic='-fPIC -shared'
8205 sysv4*MP*)
8206 if test -d /usr/nec; then
8207 lt_prog_compiler_pic=-Kconform_pic
8212 lt_prog_compiler_pic='-fPIC'
8214 esac
8216 case $cc_basename in
8217 nvcc*) # Cuda Compiler Driver 2.2
8218 lt_prog_compiler_wl='-Xlinker '
8219 lt_prog_compiler_pic='-Xcompiler -fPIC'
8221 esac
8222 else
8223 # PORTME Check for flag to pass linker flags through the system compiler.
8224 case $host_os in
8225 aix*)
8226 lt_prog_compiler_wl='-Wl,'
8227 if test "$host_cpu" = ia64; then
8228 # AIX 5 now supports IA64 processor
8229 lt_prog_compiler_static='-Bstatic'
8230 else
8231 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8235 mingw* | cygwin* | pw32* | os2* | cegcc*)
8236 # This hack is so that the source file can tell whether it is being
8237 # built for inclusion in a dll (and should export symbols for example).
8238 lt_prog_compiler_pic='-DDLL_EXPORT'
8241 hpux9* | hpux10* | hpux11*)
8242 lt_prog_compiler_wl='-Wl,'
8243 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8244 # not for PA HP-UX.
8245 case $host_cpu in
8246 hppa*64*|ia64*)
8247 # +Z the default
8250 lt_prog_compiler_pic='+Z'
8252 esac
8253 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8254 lt_prog_compiler_static='${wl}-a ${wl}archive'
8257 irix5* | irix6* | nonstopux*)
8258 lt_prog_compiler_wl='-Wl,'
8259 # PIC (with -KPIC) is the default.
8260 lt_prog_compiler_static='-non_shared'
8263 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8264 case $cc_basename in
8265 # old Intel for x86_64 which still supported -KPIC.
8266 ecc*)
8267 lt_prog_compiler_wl='-Wl,'
8268 lt_prog_compiler_pic='-KPIC'
8269 lt_prog_compiler_static='-static'
8271 # icc used to be incompatible with GCC.
8272 # ICC 10 doesn't accept -KPIC any more.
8273 icc* | ifort*)
8274 lt_prog_compiler_wl='-Wl,'
8275 lt_prog_compiler_pic='-fPIC'
8276 lt_prog_compiler_static='-static'
8278 # Lahey Fortran 8.1.
8279 lf95*)
8280 lt_prog_compiler_wl='-Wl,'
8281 lt_prog_compiler_pic='--shared'
8282 lt_prog_compiler_static='--static'
8284 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8285 # Portland Group compilers (*not* the Pentium gcc compiler,
8286 # which looks to be a dead project)
8287 lt_prog_compiler_wl='-Wl,'
8288 lt_prog_compiler_pic='-fpic'
8289 lt_prog_compiler_static='-Bstatic'
8291 ccc*)
8292 lt_prog_compiler_wl='-Wl,'
8293 # All Alpha code is PIC.
8294 lt_prog_compiler_static='-non_shared'
8296 xl* | bgxl* | bgf* | mpixl*)
8297 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8298 lt_prog_compiler_wl='-Wl,'
8299 lt_prog_compiler_pic='-qpic'
8300 lt_prog_compiler_static='-qstaticlink'
8303 case `$CC -V 2>&1 | sed 5q` in
8304 *Sun\ F* | *Sun*Fortran*)
8305 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8306 lt_prog_compiler_pic='-KPIC'
8307 lt_prog_compiler_static='-Bstatic'
8308 lt_prog_compiler_wl=''
8310 *Sun\ C*)
8311 # Sun C 5.9
8312 lt_prog_compiler_pic='-KPIC'
8313 lt_prog_compiler_static='-Bstatic'
8314 lt_prog_compiler_wl='-Wl,'
8316 esac
8318 esac
8321 newsos6)
8322 lt_prog_compiler_pic='-KPIC'
8323 lt_prog_compiler_static='-Bstatic'
8326 *nto* | *qnx*)
8327 # QNX uses GNU C++, but need to define -shared option too, otherwise
8328 # it will coredump.
8329 lt_prog_compiler_pic='-fPIC -shared'
8332 osf3* | osf4* | osf5*)
8333 lt_prog_compiler_wl='-Wl,'
8334 # All OSF/1 code is PIC.
8335 lt_prog_compiler_static='-non_shared'
8338 rdos*)
8339 lt_prog_compiler_static='-non_shared'
8342 solaris*)
8343 lt_prog_compiler_pic='-KPIC'
8344 lt_prog_compiler_static='-Bstatic'
8345 case $cc_basename in
8346 f77* | f90* | f95*)
8347 lt_prog_compiler_wl='-Qoption ld ';;
8349 lt_prog_compiler_wl='-Wl,';;
8350 esac
8353 sunos4*)
8354 lt_prog_compiler_wl='-Qoption ld '
8355 lt_prog_compiler_pic='-PIC'
8356 lt_prog_compiler_static='-Bstatic'
8359 sysv4 | sysv4.2uw2* | sysv4.3*)
8360 lt_prog_compiler_wl='-Wl,'
8361 lt_prog_compiler_pic='-KPIC'
8362 lt_prog_compiler_static='-Bstatic'
8365 sysv4*MP*)
8366 if test -d /usr/nec ;then
8367 lt_prog_compiler_pic='-Kconform_pic'
8368 lt_prog_compiler_static='-Bstatic'
8372 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8373 lt_prog_compiler_wl='-Wl,'
8374 lt_prog_compiler_pic='-KPIC'
8375 lt_prog_compiler_static='-Bstatic'
8378 unicos*)
8379 lt_prog_compiler_wl='-Wl,'
8380 lt_prog_compiler_can_build_shared=no
8383 uts4*)
8384 lt_prog_compiler_pic='-pic'
8385 lt_prog_compiler_static='-Bstatic'
8389 lt_prog_compiler_can_build_shared=no
8391 esac
8394 case $host_os in
8395 # For platforms which do not support PIC, -DPIC is meaningless:
8396 *djgpp*)
8397 lt_prog_compiler_pic=
8400 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8402 esac
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8404 $as_echo "$lt_prog_compiler_pic" >&6; }
8412 # Check to make sure the PIC flag actually works.
8414 if test -n "$lt_prog_compiler_pic"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8416 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8417 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8418 $as_echo_n "(cached) " >&6
8419 else
8420 lt_cv_prog_compiler_pic_works=no
8421 ac_outfile=conftest.$ac_objext
8422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8423 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8424 # Insert the option either (1) after the last *FLAGS variable, or
8425 # (2) before a word containing "conftest.", or (3) at the end.
8426 # Note that $ac_compile itself does not contain backslashes and begins
8427 # with a dollar sign (not a hyphen), so the echo should work correctly.
8428 # The option is referenced via a variable to avoid confusing sed.
8429 lt_compile=`echo "$ac_compile" | $SED \
8430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8432 -e 's:$: $lt_compiler_flag:'`
8433 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8434 (eval "$lt_compile" 2>conftest.err)
8435 ac_status=$?
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 if (exit $ac_status) && test -s "$ac_outfile"; then
8439 # The compiler can only warn and ignore the option if not recognized
8440 # So say no if there are warnings other than the usual output.
8441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8443 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8444 lt_cv_prog_compiler_pic_works=yes
8447 $RM conftest*
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8451 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8453 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8454 case $lt_prog_compiler_pic in
8455 "" | " "*) ;;
8456 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8457 esac
8458 else
8459 lt_prog_compiler_pic=
8460 lt_prog_compiler_can_build_shared=no
8471 # Check to make sure the static flag actually works.
8473 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8475 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8476 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8477 $as_echo_n "(cached) " >&6
8478 else
8479 lt_cv_prog_compiler_static_works=no
8480 save_LDFLAGS="$LDFLAGS"
8481 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8482 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8483 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8484 # The linker can only warn and ignore the option if not recognized
8485 # So say no if there are warnings
8486 if test -s conftest.err; then
8487 # Append any errors to the config.log.
8488 cat conftest.err 1>&5
8489 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8491 if diff conftest.exp conftest.er2 >/dev/null; then
8492 lt_cv_prog_compiler_static_works=yes
8494 else
8495 lt_cv_prog_compiler_static_works=yes
8498 $RM -r conftest*
8499 LDFLAGS="$save_LDFLAGS"
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8503 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8505 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8507 else
8508 lt_prog_compiler_static=
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8518 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8519 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 lt_cv_prog_compiler_c_o=no
8523 $RM -r conftest 2>/dev/null
8524 mkdir conftest
8525 cd conftest
8526 mkdir out
8527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8529 lt_compiler_flag="-o out/conftest2.$ac_objext"
8530 # Insert the option either (1) after the last *FLAGS variable, or
8531 # (2) before a word containing "conftest.", or (3) at the end.
8532 # Note that $ac_compile itself does not contain backslashes and begins
8533 # with a dollar sign (not a hyphen), so the echo should work correctly.
8534 lt_compile=`echo "$ac_compile" | $SED \
8535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8537 -e 's:$: $lt_compiler_flag:'`
8538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8539 (eval "$lt_compile" 2>out/conftest.err)
8540 ac_status=$?
8541 cat out/conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8544 then
8545 # The compiler can only warn and ignore the option if not recognized
8546 # So say no if there are warnings
8547 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8548 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8549 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8550 lt_cv_prog_compiler_c_o=yes
8553 chmod u+w . 2>&5
8554 $RM conftest*
8555 # SGI C++ compiler will create directory out/ii_files/ for
8556 # template instantiation
8557 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8558 $RM out/* && rmdir out
8559 cd ..
8560 $RM -r conftest
8561 $RM conftest*
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8565 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8573 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8574 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8575 $as_echo_n "(cached) " >&6
8576 else
8577 lt_cv_prog_compiler_c_o=no
8578 $RM -r conftest 2>/dev/null
8579 mkdir conftest
8580 cd conftest
8581 mkdir out
8582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8584 lt_compiler_flag="-o out/conftest2.$ac_objext"
8585 # Insert the option either (1) after the last *FLAGS variable, or
8586 # (2) before a word containing "conftest.", or (3) at the end.
8587 # Note that $ac_compile itself does not contain backslashes and begins
8588 # with a dollar sign (not a hyphen), so the echo should work correctly.
8589 lt_compile=`echo "$ac_compile" | $SED \
8590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8592 -e 's:$: $lt_compiler_flag:'`
8593 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8594 (eval "$lt_compile" 2>out/conftest.err)
8595 ac_status=$?
8596 cat out/conftest.err >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8599 then
8600 # The compiler can only warn and ignore the option if not recognized
8601 # So say no if there are warnings
8602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8603 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8604 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8605 lt_cv_prog_compiler_c_o=yes
8608 chmod u+w . 2>&5
8609 $RM conftest*
8610 # SGI C++ compiler will create directory out/ii_files/ for
8611 # template instantiation
8612 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8613 $RM out/* && rmdir out
8614 cd ..
8615 $RM -r conftest
8616 $RM conftest*
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8620 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8625 hard_links="nottested"
8626 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8627 # do not overwrite the value of need_locks provided by the user
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8629 $as_echo_n "checking if we can lock with hard links... " >&6; }
8630 hard_links=yes
8631 $RM conftest*
8632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8633 touch conftest.a
8634 ln conftest.a conftest.b 2>&5 || hard_links=no
8635 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8637 $as_echo "$hard_links" >&6; }
8638 if test "$hard_links" = no; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8640 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8641 need_locks=warn
8643 else
8644 need_locks=no
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8653 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8655 runpath_var=
8656 allow_undefined_flag=
8657 always_export_symbols=no
8658 archive_cmds=
8659 archive_expsym_cmds=
8660 compiler_needs_object=no
8661 enable_shared_with_static_runtimes=no
8662 export_dynamic_flag_spec=
8663 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8664 hardcode_automatic=no
8665 hardcode_direct=no
8666 hardcode_direct_absolute=no
8667 hardcode_libdir_flag_spec=
8668 hardcode_libdir_flag_spec_ld=
8669 hardcode_libdir_separator=
8670 hardcode_minus_L=no
8671 hardcode_shlibpath_var=unsupported
8672 inherit_rpath=no
8673 link_all_deplibs=unknown
8674 module_cmds=
8675 module_expsym_cmds=
8676 old_archive_from_new_cmds=
8677 old_archive_from_expsyms_cmds=
8678 thread_safe_flag_spec=
8679 whole_archive_flag_spec=
8680 # include_expsyms should be a list of space-separated symbols to be *always*
8681 # included in the symbol list
8682 include_expsyms=
8683 # exclude_expsyms can be an extended regexp of symbols to exclude
8684 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8685 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8686 # as well as any symbol that contains `d'.
8687 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8688 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8689 # platforms (ab)use it in PIC code, but their linkers get confused if
8690 # the symbol is explicitly referenced. Since portable code cannot
8691 # rely on this symbol name, it's probably fine to never include it in
8692 # preloaded symbol tables.
8693 # Exclude shared library initialization/finalization symbols.
8694 extract_expsyms_cmds=
8696 case $host_os in
8697 cygwin* | mingw* | pw32* | cegcc*)
8698 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8699 # When not using gcc, we currently assume that we are using
8700 # Microsoft Visual C++.
8701 if test "$GCC" != yes; then
8702 with_gnu_ld=no
8705 interix*)
8706 # we just hope/assume this is gcc and not c89 (= MSVC++)
8707 with_gnu_ld=yes
8709 openbsd*)
8710 with_gnu_ld=no
8712 esac
8714 ld_shlibs=yes
8716 # On some targets, GNU ld is compatible enough with the native linker
8717 # that we're better off using the native interface for both.
8718 lt_use_gnu_ld_interface=no
8719 if test "$with_gnu_ld" = yes; then
8720 case $host_os in
8721 aix*)
8722 # The AIX port of GNU ld has always aspired to compatibility
8723 # with the native linker. However, as the warning in the GNU ld
8724 # block says, versions before 2.19.5* couldn't really create working
8725 # shared libraries, regardless of the interface used.
8726 case `$LD -v 2>&1` in
8727 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8728 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8729 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8731 lt_use_gnu_ld_interface=yes
8733 esac
8736 lt_use_gnu_ld_interface=yes
8738 esac
8741 if test "$lt_use_gnu_ld_interface" = yes; then
8742 # If archive_cmds runs LD, not CC, wlarc should be empty
8743 wlarc='${wl}'
8745 # Set some defaults for GNU ld with shared library support. These
8746 # are reset later if shared libraries are not supported. Putting them
8747 # here allows them to be overridden if necessary.
8748 runpath_var=LD_RUN_PATH
8749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8750 export_dynamic_flag_spec='${wl}--export-dynamic'
8751 # ancient GNU ld didn't support --whole-archive et. al.
8752 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8753 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8754 else
8755 whole_archive_flag_spec=
8757 supports_anon_versioning=no
8758 case `$LD -v 2>&1` in
8759 *GNU\ gold*) supports_anon_versioning=yes ;;
8760 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8761 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8762 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8763 *\ 2.11.*) ;; # other 2.11 versions
8764 *) supports_anon_versioning=yes ;;
8765 esac
8767 # See if GNU ld supports shared libraries.
8768 case $host_os in
8769 aix[3-9]*)
8770 # On AIX/PPC, the GNU linker is very broken
8771 if test "$host_cpu" != ia64; then
8772 ld_shlibs=no
8773 cat <<_LT_EOF 1>&2
8775 *** Warning: the GNU linker, at least up to release 2.19, is reported
8776 *** to be unable to reliably create shared libraries on AIX.
8777 *** Therefore, libtool is disabling shared libraries support. If you
8778 *** really care for shared libraries, you may want to install binutils
8779 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8780 *** You will then need to restart the configuration process.
8782 _LT_EOF
8786 amigaos*)
8787 case $host_cpu in
8788 powerpc)
8789 # see comment about AmigaOS4 .so support
8790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8791 archive_expsym_cmds=''
8793 m68k)
8794 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)'
8795 hardcode_libdir_flag_spec='-L$libdir'
8796 hardcode_minus_L=yes
8798 esac
8801 beos*)
8802 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8803 allow_undefined_flag=unsupported
8804 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8805 # support --undefined. This deserves some investigation. FIXME
8806 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8807 else
8808 ld_shlibs=no
8812 cygwin* | mingw* | pw32* | cegcc*)
8813 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8814 # as there is no search path for DLLs.
8815 hardcode_libdir_flag_spec='-L$libdir'
8816 export_dynamic_flag_spec='${wl}--export-all-symbols'
8817 allow_undefined_flag=unsupported
8818 always_export_symbols=no
8819 enable_shared_with_static_runtimes=yes
8820 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8822 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8824 # If the export-symbols file already is a .def file (1st line
8825 # is EXPORTS), use it as is; otherwise, prepend...
8826 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8827 cp $export_symbols $output_objdir/$soname.def;
8828 else
8829 echo EXPORTS > $output_objdir/$soname.def;
8830 cat $export_symbols >> $output_objdir/$soname.def;
8832 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8833 else
8834 ld_shlibs=no
8838 haiku*)
8839 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8840 link_all_deplibs=yes
8843 interix[3-9]*)
8844 hardcode_direct=no
8845 hardcode_shlibpath_var=no
8846 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8847 export_dynamic_flag_spec='${wl}-E'
8848 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8849 # Instead, shared libraries are loaded at an image base (0x10000000 by
8850 # default) and relocated if they conflict, which is a slow very memory
8851 # consuming and fragmenting process. To avoid this, we pick a random,
8852 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8853 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8854 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8855 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'
8858 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8859 tmp_diet=no
8860 if test "$host_os" = linux-dietlibc; then
8861 case $cc_basename in
8862 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8863 esac
8865 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8866 && test "$tmp_diet" = no
8867 then
8868 tmp_addflag=
8869 tmp_sharedflag='-shared'
8870 case $cc_basename,$host_cpu in
8871 pgcc*) # Portland Group C compiler
8872 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'
8873 tmp_addflag=' $pic_flag'
8875 pgf77* | pgf90* | pgf95* | pgfortran*)
8876 # Portland Group f77 and f90 compilers
8877 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'
8878 tmp_addflag=' $pic_flag -Mnomain' ;;
8879 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8880 tmp_addflag=' -i_dynamic' ;;
8881 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8882 tmp_addflag=' -i_dynamic -nofor_main' ;;
8883 ifc* | ifort*) # Intel Fortran compiler
8884 tmp_addflag=' -nofor_main' ;;
8885 lf95*) # Lahey Fortran 8.1
8886 whole_archive_flag_spec=
8887 tmp_sharedflag='--shared' ;;
8888 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8889 tmp_sharedflag='-qmkshrobj'
8890 tmp_addflag= ;;
8891 nvcc*) # Cuda Compiler Driver 2.2
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 compiler_needs_object=yes
8895 esac
8896 case `$CC -V 2>&1 | sed 5q` in
8897 *Sun\ C*) # Sun C 5.9
8898 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'
8899 compiler_needs_object=yes
8900 tmp_sharedflag='-G' ;;
8901 *Sun\ F*) # Sun Fortran 8.3
8902 tmp_sharedflag='-G' ;;
8903 esac
8904 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8906 if test "x$supports_anon_versioning" = xyes; then
8907 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8908 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8909 echo "local: *; };" >> $output_objdir/$libname.ver~
8910 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8913 case $cc_basename in
8914 xlf* | bgf* | bgxlf* | mpixlf*)
8915 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8916 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8917 hardcode_libdir_flag_spec=
8918 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8919 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8920 if test "x$supports_anon_versioning" = xyes; then
8921 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8922 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8923 echo "local: *; };" >> $output_objdir/$libname.ver~
8924 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8927 esac
8928 else
8929 ld_shlibs=no
8933 netbsd*)
8934 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8935 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8936 wlarc=
8937 else
8938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8939 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8943 solaris*)
8944 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8945 ld_shlibs=no
8946 cat <<_LT_EOF 1>&2
8948 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8949 *** create shared libraries on Solaris systems. Therefore, libtool
8950 *** is disabling shared libraries support. We urge you to upgrade GNU
8951 *** binutils to release 2.9.1 or newer. Another option is to modify
8952 *** your PATH or compiler configuration so that the native linker is
8953 *** used, and then restart.
8955 _LT_EOF
8956 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8959 else
8960 ld_shlibs=no
8964 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8965 case `$LD -v 2>&1` in
8966 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8967 ld_shlibs=no
8968 cat <<_LT_EOF 1>&2
8970 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8971 *** reliably create shared libraries on SCO systems. Therefore, libtool
8972 *** is disabling shared libraries support. We urge you to upgrade GNU
8973 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8974 *** your PATH or compiler configuration so that the native linker is
8975 *** used, and then restart.
8977 _LT_EOF
8980 # For security reasons, it is highly recommended that you always
8981 # use absolute paths for naming shared libraries, and exclude the
8982 # DT_RUNPATH tag from executables and libraries. But doing so
8983 # requires that you compile everything twice, which is a pain.
8984 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8985 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8988 else
8989 ld_shlibs=no
8992 esac
8995 sunos4*)
8996 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8997 wlarc=
8998 hardcode_direct=yes
8999 hardcode_shlibpath_var=no
9003 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9006 else
9007 ld_shlibs=no
9010 esac
9012 if test "$ld_shlibs" = no; then
9013 runpath_var=
9014 hardcode_libdir_flag_spec=
9015 export_dynamic_flag_spec=
9016 whole_archive_flag_spec=
9018 else
9019 # PORTME fill in a description of your system's linker (not GNU ld)
9020 case $host_os in
9021 aix3*)
9022 allow_undefined_flag=unsupported
9023 always_export_symbols=yes
9024 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'
9025 # Note: this linker hardcodes the directories in LIBPATH if there
9026 # are no directories specified by -L.
9027 hardcode_minus_L=yes
9028 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9029 # Neither direct hardcoding nor static linking is supported with a
9030 # broken collect2.
9031 hardcode_direct=unsupported
9035 aix[4-9]*)
9036 if test "$host_cpu" = ia64; then
9037 # On IA64, the linker does run time linking by default, so we don't
9038 # have to do anything special.
9039 aix_use_runtimelinking=no
9040 exp_sym_flag='-Bexport'
9041 no_entry_flag=""
9042 else
9043 # If we're using GNU nm, then we don't want the "-C" option.
9044 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9045 # Also, AIX nm treats weak defined symbols like other global
9046 # defined symbols, whereas GNU nm marks them as "W".
9047 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9048 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'
9049 else
9050 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'
9052 aix_use_runtimelinking=no
9054 # Test if we are trying to use run time linking or normal
9055 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9056 # need to do runtime linking.
9057 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9058 for ld_flag in $LDFLAGS; do
9059 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9060 aix_use_runtimelinking=yes
9061 break
9063 done
9065 esac
9067 exp_sym_flag='-bexport'
9068 no_entry_flag='-bnoentry'
9071 # When large executables or shared objects are built, AIX ld can
9072 # have problems creating the table of contents. If linking a library
9073 # or program results in "error TOC overflow" add -mminimal-toc to
9074 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9075 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9077 archive_cmds=''
9078 hardcode_direct=yes
9079 hardcode_direct_absolute=yes
9080 hardcode_libdir_separator=':'
9081 link_all_deplibs=yes
9082 file_list_spec='${wl}-f,'
9084 if test "$GCC" = yes; then
9085 case $host_os in aix4.[012]|aix4.[012].*)
9086 # We only want to do this on AIX 4.2 and lower, the check
9087 # below for broken collect2 doesn't work under 4.3+
9088 collect2name=`${CC} -print-prog-name=collect2`
9089 if test -f "$collect2name" &&
9090 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9091 then
9092 # We have reworked collect2
9094 else
9095 # We have old collect2
9096 hardcode_direct=unsupported
9097 # It fails to find uninstalled libraries when the uninstalled
9098 # path is not listed in the libpath. Setting hardcode_minus_L
9099 # to unsupported forces relinking
9100 hardcode_minus_L=yes
9101 hardcode_libdir_flag_spec='-L$libdir'
9102 hardcode_libdir_separator=
9105 esac
9106 shared_flag='-shared'
9107 if test "$aix_use_runtimelinking" = yes; then
9108 shared_flag="$shared_flag "'${wl}-G'
9110 else
9111 # not using gcc
9112 if test "$host_cpu" = ia64; then
9113 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9114 # chokes on -Wl,-G. The following line is correct:
9115 shared_flag='-G'
9116 else
9117 if test "$aix_use_runtimelinking" = yes; then
9118 shared_flag='${wl}-G'
9119 else
9120 shared_flag='${wl}-bM:SRE'
9125 export_dynamic_flag_spec='${wl}-bexpall'
9126 # It seems that -bexpall does not export symbols beginning with
9127 # underscore (_), so it is better to generate a list of symbols to export.
9128 always_export_symbols=yes
9129 if test "$aix_use_runtimelinking" = yes; then
9130 # Warning - without using the other runtime loading flags (-brtl),
9131 # -berok will link without error, but may produce a broken library.
9132 allow_undefined_flag='-berok'
9133 # Determine the default libpath from the value encoded in an
9134 # empty executable.
9135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9136 /* end confdefs.h. */
9139 main ()
9143 return 0;
9145 _ACEOF
9146 if ac_fn_c_try_link "$LINENO"; then :
9148 lt_aix_libpath_sed='
9149 /Import File Strings/,/^$/ {
9150 /^0/ {
9151 s/^0 *\(.*\)$/\1/
9155 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9156 # Check for a 64-bit object if we didn't find anything.
9157 if test -z "$aix_libpath"; then
9158 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9161 rm -f core conftest.err conftest.$ac_objext \
9162 conftest$ac_exeext conftest.$ac_ext
9163 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9165 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9166 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"
9167 else
9168 if test "$host_cpu" = ia64; then
9169 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9170 allow_undefined_flag="-z nodefs"
9171 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"
9172 else
9173 # Determine the default libpath from the value encoded in an
9174 # empty executable.
9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176 /* end confdefs.h. */
9179 main ()
9183 return 0;
9185 _ACEOF
9186 if ac_fn_c_try_link "$LINENO"; then :
9188 lt_aix_libpath_sed='
9189 /Import File Strings/,/^$/ {
9190 /^0/ {
9191 s/^0 *\(.*\)$/\1/
9195 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9196 # Check for a 64-bit object if we didn't find anything.
9197 if test -z "$aix_libpath"; then
9198 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9201 rm -f core conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9203 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9205 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9206 # Warning - without using the other run time loading flags,
9207 # -berok will link without error, but may produce a broken library.
9208 no_undefined_flag=' ${wl}-bernotok'
9209 allow_undefined_flag=' ${wl}-berok'
9210 if test "$with_gnu_ld" = yes; then
9211 # We only use this code for GNU lds that support --whole-archive.
9212 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9213 else
9214 # Exported symbols can be pulled into shared objects from archives
9215 whole_archive_flag_spec='$convenience'
9217 archive_cmds_need_lc=yes
9218 # This is similar to how AIX traditionally builds its shared libraries.
9219 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'
9224 amigaos*)
9225 case $host_cpu in
9226 powerpc)
9227 # see comment about AmigaOS4 .so support
9228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9229 archive_expsym_cmds=''
9231 m68k)
9232 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)'
9233 hardcode_libdir_flag_spec='-L$libdir'
9234 hardcode_minus_L=yes
9236 esac
9239 bsdi[45]*)
9240 export_dynamic_flag_spec=-rdynamic
9243 cygwin* | mingw* | pw32* | cegcc*)
9244 # When not using gcc, we currently assume that we are using
9245 # Microsoft Visual C++.
9246 # hardcode_libdir_flag_spec is actually meaningless, as there is
9247 # no search path for DLLs.
9248 hardcode_libdir_flag_spec=' '
9249 allow_undefined_flag=unsupported
9250 # Tell ltmain to make .lib files, not .a files.
9251 libext=lib
9252 # Tell ltmain to make .dll files, not .so files.
9253 shrext_cmds=".dll"
9254 # FIXME: Setting linknames here is a bad hack.
9255 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9256 # The linker will automatically build a .lib file if we build a DLL.
9257 old_archive_from_new_cmds='true'
9258 # FIXME: Should let the user specify the lib program.
9259 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9260 fix_srcfile_path='`cygpath -w "$srcfile"`'
9261 enable_shared_with_static_runtimes=yes
9264 darwin* | rhapsody*)
9267 archive_cmds_need_lc=no
9268 hardcode_direct=no
9269 hardcode_automatic=yes
9270 hardcode_shlibpath_var=unsupported
9271 if test "$lt_cv_ld_force_load" = "yes"; then
9272 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\"`'
9273 else
9274 whole_archive_flag_spec=''
9276 link_all_deplibs=yes
9277 allow_undefined_flag="$_lt_dar_allow_undefined"
9278 case $cc_basename in
9279 ifort*) _lt_dar_can_shared=yes ;;
9280 *) _lt_dar_can_shared=$GCC ;;
9281 esac
9282 if test "$_lt_dar_can_shared" = "yes"; then
9283 output_verbose_link_cmd=func_echo_all
9284 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9285 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9286 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}"
9287 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}"
9289 else
9290 ld_shlibs=no
9295 dgux*)
9296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9297 hardcode_libdir_flag_spec='-L$libdir'
9298 hardcode_shlibpath_var=no
9301 freebsd1*)
9302 ld_shlibs=no
9305 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9306 # support. Future versions do this automatically, but an explicit c++rt0.o
9307 # does not break anything, and helps significantly (at the cost of a little
9308 # extra space).
9309 freebsd2.2*)
9310 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9311 hardcode_libdir_flag_spec='-R$libdir'
9312 hardcode_direct=yes
9313 hardcode_shlibpath_var=no
9316 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9317 freebsd2*)
9318 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9319 hardcode_direct=yes
9320 hardcode_minus_L=yes
9321 hardcode_shlibpath_var=no
9324 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9325 freebsd* | dragonfly*)
9326 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9327 hardcode_libdir_flag_spec='-R$libdir'
9328 hardcode_direct=yes
9329 hardcode_shlibpath_var=no
9332 hpux9*)
9333 if test "$GCC" = yes; then
9334 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'
9335 else
9336 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'
9338 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9339 hardcode_libdir_separator=:
9340 hardcode_direct=yes
9342 # hardcode_minus_L: Not really in the search PATH,
9343 # but as the default location of the library.
9344 hardcode_minus_L=yes
9345 export_dynamic_flag_spec='${wl}-E'
9348 hpux10*)
9349 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9350 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9351 else
9352 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9354 if test "$with_gnu_ld" = no; then
9355 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9356 hardcode_libdir_flag_spec_ld='+b $libdir'
9357 hardcode_libdir_separator=:
9358 hardcode_direct=yes
9359 hardcode_direct_absolute=yes
9360 export_dynamic_flag_spec='${wl}-E'
9361 # hardcode_minus_L: Not really in the search PATH,
9362 # but as the default location of the library.
9363 hardcode_minus_L=yes
9367 hpux11*)
9368 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9369 case $host_cpu in
9370 hppa*64*)
9371 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9373 ia64*)
9374 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9377 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9379 esac
9380 else
9381 case $host_cpu in
9382 hppa*64*)
9383 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9385 ia64*)
9386 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9390 # Older versions of the 11.00 compiler do not understand -b yet
9391 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9393 $as_echo_n "checking if $CC understands -b... " >&6; }
9394 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9395 $as_echo_n "(cached) " >&6
9396 else
9397 lt_cv_prog_compiler__b=no
9398 save_LDFLAGS="$LDFLAGS"
9399 LDFLAGS="$LDFLAGS -b"
9400 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9401 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9402 # The linker can only warn and ignore the option if not recognized
9403 # So say no if there are warnings
9404 if test -s conftest.err; then
9405 # Append any errors to the config.log.
9406 cat conftest.err 1>&5
9407 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9409 if diff conftest.exp conftest.er2 >/dev/null; then
9410 lt_cv_prog_compiler__b=yes
9412 else
9413 lt_cv_prog_compiler__b=yes
9416 $RM -r conftest*
9417 LDFLAGS="$save_LDFLAGS"
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9421 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9423 if test x"$lt_cv_prog_compiler__b" = xyes; then
9424 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9425 else
9426 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9430 esac
9432 if test "$with_gnu_ld" = no; then
9433 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9434 hardcode_libdir_separator=:
9436 case $host_cpu in
9437 hppa*64*|ia64*)
9438 hardcode_direct=no
9439 hardcode_shlibpath_var=no
9442 hardcode_direct=yes
9443 hardcode_direct_absolute=yes
9444 export_dynamic_flag_spec='${wl}-E'
9446 # hardcode_minus_L: Not really in the search PATH,
9447 # but as the default location of the library.
9448 hardcode_minus_L=yes
9450 esac
9454 irix5* | irix6* | nonstopux*)
9455 if test "$GCC" = yes; then
9456 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'
9457 # Try to use the -exported_symbol ld option, if it does not
9458 # work, assume that -exports_file does not work either and
9459 # implicitly export all symbols.
9460 save_LDFLAGS="$LDFLAGS"
9461 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9464 int foo(void) {}
9465 _ACEOF
9466 if ac_fn_c_try_link "$LINENO"; then :
9467 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'
9470 rm -f core conftest.err conftest.$ac_objext \
9471 conftest$ac_exeext conftest.$ac_ext
9472 LDFLAGS="$save_LDFLAGS"
9473 else
9474 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'
9475 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'
9477 archive_cmds_need_lc='no'
9478 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9479 hardcode_libdir_separator=:
9480 inherit_rpath=yes
9481 link_all_deplibs=yes
9484 netbsd*)
9485 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9487 else
9488 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9490 hardcode_libdir_flag_spec='-R$libdir'
9491 hardcode_direct=yes
9492 hardcode_shlibpath_var=no
9495 newsos6)
9496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9497 hardcode_direct=yes
9498 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9499 hardcode_libdir_separator=:
9500 hardcode_shlibpath_var=no
9503 *nto* | *qnx*)
9506 openbsd*)
9507 if test -f /usr/libexec/ld.so; then
9508 hardcode_direct=yes
9509 hardcode_shlibpath_var=no
9510 hardcode_direct_absolute=yes
9511 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9512 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9513 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9514 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9515 export_dynamic_flag_spec='${wl}-E'
9516 else
9517 case $host_os in
9518 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9519 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9520 hardcode_libdir_flag_spec='-R$libdir'
9523 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9524 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9526 esac
9528 else
9529 ld_shlibs=no
9533 os2*)
9534 hardcode_libdir_flag_spec='-L$libdir'
9535 hardcode_minus_L=yes
9536 allow_undefined_flag=unsupported
9537 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'
9538 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9541 osf3*)
9542 if test "$GCC" = yes; then
9543 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9544 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'
9545 else
9546 allow_undefined_flag=' -expect_unresolved \*'
9547 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'
9549 archive_cmds_need_lc='no'
9550 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9551 hardcode_libdir_separator=:
9554 osf4* | osf5*) # as osf3* with the addition of -msym flag
9555 if test "$GCC" = yes; then
9556 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9557 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'
9558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9559 else
9560 allow_undefined_flag=' -expect_unresolved \*'
9561 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'
9562 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~
9563 $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'
9565 # Both c and cxx compiler support -rpath directly
9566 hardcode_libdir_flag_spec='-rpath $libdir'
9568 archive_cmds_need_lc='no'
9569 hardcode_libdir_separator=:
9572 solaris*)
9573 no_undefined_flag=' -z defs'
9574 if test "$GCC" = yes; then
9575 wlarc='${wl}'
9576 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9577 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9578 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9579 else
9580 case `$CC -V 2>&1` in
9581 *"Compilers 5.0"*)
9582 wlarc=''
9583 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9584 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9585 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9588 wlarc='${wl}'
9589 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9590 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9591 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9593 esac
9595 hardcode_libdir_flag_spec='-R$libdir'
9596 hardcode_shlibpath_var=no
9597 case $host_os in
9598 solaris2.[0-5] | solaris2.[0-5].*) ;;
9600 # The compiler driver will combine and reorder linker options,
9601 # but understands `-z linker_flag'. GCC discards it without `$wl',
9602 # but is careful enough not to reorder.
9603 # Supported since Solaris 2.6 (maybe 2.5.1?)
9604 if test "$GCC" = yes; then
9605 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9606 else
9607 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9610 esac
9611 link_all_deplibs=yes
9614 sunos4*)
9615 if test "x$host_vendor" = xsequent; then
9616 # Use $CC to link under sequent, because it throws in some extra .o
9617 # files that make .init and .fini sections work.
9618 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9619 else
9620 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9622 hardcode_libdir_flag_spec='-L$libdir'
9623 hardcode_direct=yes
9624 hardcode_minus_L=yes
9625 hardcode_shlibpath_var=no
9628 sysv4)
9629 case $host_vendor in
9630 sni)
9631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9632 hardcode_direct=yes # is this really true???
9634 siemens)
9635 ## LD is ld it makes a PLAMLIB
9636 ## CC just makes a GrossModule.
9637 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9638 reload_cmds='$CC -r -o $output$reload_objs'
9639 hardcode_direct=no
9641 motorola)
9642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9643 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9645 esac
9646 runpath_var='LD_RUN_PATH'
9647 hardcode_shlibpath_var=no
9650 sysv4.3*)
9651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9652 hardcode_shlibpath_var=no
9653 export_dynamic_flag_spec='-Bexport'
9656 sysv4*MP*)
9657 if test -d /usr/nec; then
9658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9659 hardcode_shlibpath_var=no
9660 runpath_var=LD_RUN_PATH
9661 hardcode_runpath_var=yes
9662 ld_shlibs=yes
9666 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9667 no_undefined_flag='${wl}-z,text'
9668 archive_cmds_need_lc=no
9669 hardcode_shlibpath_var=no
9670 runpath_var='LD_RUN_PATH'
9672 if test "$GCC" = yes; then
9673 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9674 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9675 else
9676 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9677 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9681 sysv5* | sco3.2v5* | sco5v6*)
9682 # Note: We can NOT use -z defs as we might desire, because we do not
9683 # link with -lc, and that would cause any symbols used from libc to
9684 # always be unresolved, which means just about no library would
9685 # ever link correctly. If we're not using GNU ld we use -z text
9686 # though, which does catch some bad symbols but isn't as heavy-handed
9687 # as -z defs.
9688 no_undefined_flag='${wl}-z,text'
9689 allow_undefined_flag='${wl}-z,nodefs'
9690 archive_cmds_need_lc=no
9691 hardcode_shlibpath_var=no
9692 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9693 hardcode_libdir_separator=':'
9694 link_all_deplibs=yes
9695 export_dynamic_flag_spec='${wl}-Bexport'
9696 runpath_var='LD_RUN_PATH'
9698 if test "$GCC" = yes; then
9699 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 else
9702 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9707 uts4*)
9708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709 hardcode_libdir_flag_spec='-L$libdir'
9710 hardcode_shlibpath_var=no
9714 ld_shlibs=no
9716 esac
9718 if test x$host_vendor = xsni; then
9719 case $host in
9720 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9721 export_dynamic_flag_spec='${wl}-Blargedynsym'
9723 esac
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9728 $as_echo "$ld_shlibs" >&6; }
9729 test "$ld_shlibs" = no && can_build_shared=no
9731 with_gnu_ld=$with_gnu_ld
9748 # Do we need to explicitly link libc?
9750 case "x$archive_cmds_need_lc" in
9751 x|xyes)
9752 # Assume -lc should be added
9753 archive_cmds_need_lc=yes
9755 if test "$enable_shared" = yes && test "$GCC" = yes; then
9756 case $archive_cmds in
9757 *'~'*)
9758 # FIXME: we may have to deal with multi-command sequences.
9760 '$CC '*)
9761 # Test whether the compiler implicitly links with -lc since on some
9762 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9763 # to ld, don't add -lc before -lgcc.
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9765 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9766 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9767 $as_echo_n "(cached) " >&6
9768 else
9769 $RM conftest*
9770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9773 (eval $ac_compile) 2>&5
9774 ac_status=$?
9775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9776 test $ac_status = 0; } 2>conftest.err; then
9777 soname=conftest
9778 lib=conftest
9779 libobjs=conftest.$ac_objext
9780 deplibs=
9781 wl=$lt_prog_compiler_wl
9782 pic_flag=$lt_prog_compiler_pic
9783 compiler_flags=-v
9784 linker_flags=-v
9785 verstring=
9786 output_objdir=.
9787 libname=conftest
9788 lt_save_allow_undefined_flag=$allow_undefined_flag
9789 allow_undefined_flag=
9790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9791 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9792 ac_status=$?
9793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9794 test $ac_status = 0; }
9795 then
9796 lt_cv_archive_cmds_need_lc=no
9797 else
9798 lt_cv_archive_cmds_need_lc=yes
9800 allow_undefined_flag=$lt_save_allow_undefined_flag
9801 else
9802 cat conftest.err 1>&5
9804 $RM conftest*
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9808 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9809 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9811 esac
9814 esac
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9973 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9975 if test "$GCC" = yes; then
9976 case $host_os in
9977 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9978 *) lt_awk_arg="/^libraries:/" ;;
9979 esac
9980 case $host_os in
9981 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9982 *) lt_sed_strip_eq="s,=/,/,g" ;;
9983 esac
9984 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9985 case $lt_search_path_spec in
9986 *\;*)
9987 # if the path contains ";" then we assume it to be the separator
9988 # otherwise default to the standard path separator (i.e. ":") - it is
9989 # assumed that no part of a normal pathname contains ";" but that should
9990 # okay in the real world where ";" in dirpaths is itself problematic.
9991 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9994 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9996 esac
9997 # Ok, now we have the path, separated by spaces, we can step through it
9998 # and add multilib dir if necessary.
9999 lt_tmp_lt_search_path_spec=
10000 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10001 for lt_sys_path in $lt_search_path_spec; do
10002 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10003 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10004 else
10005 test -d "$lt_sys_path" && \
10006 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10008 done
10009 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10010 BEGIN {RS=" "; FS="/|\n";} {
10011 lt_foo="";
10012 lt_count=0;
10013 for (lt_i = NF; lt_i > 0; lt_i--) {
10014 if ($lt_i != "" && $lt_i != ".") {
10015 if ($lt_i == "..") {
10016 lt_count++;
10017 } else {
10018 if (lt_count == 0) {
10019 lt_foo="/" $lt_i lt_foo;
10020 } else {
10021 lt_count--;
10026 if (lt_foo != "") { lt_freq[lt_foo]++; }
10027 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10029 # AWK program above erroneously prepends '/' to C:/dos/paths
10030 # for these hosts.
10031 case $host_os in
10032 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10033 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10034 esac
10035 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10036 else
10037 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10039 library_names_spec=
10040 libname_spec='lib$name'
10041 soname_spec=
10042 shrext_cmds=".so"
10043 postinstall_cmds=
10044 postuninstall_cmds=
10045 finish_cmds=
10046 finish_eval=
10047 shlibpath_var=
10048 shlibpath_overrides_runpath=unknown
10049 version_type=none
10050 dynamic_linker="$host_os ld.so"
10051 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10052 need_lib_prefix=unknown
10053 hardcode_into_libs=no
10055 # when you set need_version to no, make sure it does not cause -set_version
10056 # flags to be left without arguments
10057 need_version=unknown
10059 case $host_os in
10060 aix3*)
10061 version_type=linux
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10063 shlibpath_var=LIBPATH
10065 # AIX 3 has no versioning support, so we append a major version to the name.
10066 soname_spec='${libname}${release}${shared_ext}$major'
10069 aix[4-9]*)
10070 version_type=linux
10071 need_lib_prefix=no
10072 need_version=no
10073 hardcode_into_libs=yes
10074 if test "$host_cpu" = ia64; then
10075 # AIX 5 supports IA64
10076 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10077 shlibpath_var=LD_LIBRARY_PATH
10078 else
10079 # With GCC up to 2.95.x, collect2 would create an import file
10080 # for dependence libraries. The import file would start with
10081 # the line `#! .'. This would cause the generated library to
10082 # depend on `.', always an invalid library. This was fixed in
10083 # development snapshots of GCC prior to 3.0.
10084 case $host_os in
10085 aix4 | aix4.[01] | aix4.[01].*)
10086 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10087 echo ' yes '
10088 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10090 else
10091 can_build_shared=no
10094 esac
10095 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10096 # soname into executable. Probably we can add versioning support to
10097 # collect2, so additional links can be useful in future.
10098 if test "$aix_use_runtimelinking" = yes; then
10099 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10100 # instead of lib<name>.a to let people know that these are not
10101 # typical AIX shared libraries.
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103 else
10104 # We preserve .a as extension for shared libraries through AIX4.2
10105 # and later when we are not doing run time linking.
10106 library_names_spec='${libname}${release}.a $libname.a'
10107 soname_spec='${libname}${release}${shared_ext}$major'
10109 shlibpath_var=LIBPATH
10113 amigaos*)
10114 case $host_cpu in
10115 powerpc)
10116 # Since July 2007 AmigaOS4 officially supports .so libraries.
10117 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120 m68k)
10121 library_names_spec='$libname.ixlibrary $libname.a'
10122 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10123 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'
10125 esac
10128 beos*)
10129 library_names_spec='${libname}${shared_ext}'
10130 dynamic_linker="$host_os ld.so"
10131 shlibpath_var=LIBRARY_PATH
10134 bsdi[45]*)
10135 version_type=linux
10136 need_version=no
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10138 soname_spec='${libname}${release}${shared_ext}$major'
10139 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10140 shlibpath_var=LD_LIBRARY_PATH
10141 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10142 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10143 # the default ld.so.conf also contains /usr/contrib/lib and
10144 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10145 # libtool to hard-code these into programs
10148 cygwin* | mingw* | pw32* | cegcc*)
10149 version_type=windows
10150 shrext_cmds=".dll"
10151 need_version=no
10152 need_lib_prefix=no
10154 case $GCC,$host_os in
10155 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10156 library_names_spec='$libname.dll.a'
10157 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10158 postinstall_cmds='base_file=`basename \${file}`~
10159 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10160 dldir=$destdir/`dirname \$dlpath`~
10161 test -d \$dldir || mkdir -p \$dldir~
10162 $install_prog $dir/$dlname \$dldir/$dlname~
10163 chmod a+x \$dldir/$dlname~
10164 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10165 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10167 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10168 dlpath=$dir/\$dldll~
10169 $RM \$dlpath'
10170 shlibpath_overrides_runpath=yes
10172 case $host_os in
10173 cygwin*)
10174 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10175 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10177 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10179 mingw* | cegcc*)
10180 # MinGW DLLs use traditional 'lib' prefix
10181 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10183 pw32*)
10184 # pw32 DLLs use 'pw' prefix rather than 'lib'
10185 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10187 esac
10191 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10193 esac
10194 dynamic_linker='Win32 ld.exe'
10195 # FIXME: first we should search . and the directory the executable is in
10196 shlibpath_var=PATH
10199 darwin* | rhapsody*)
10200 dynamic_linker="$host_os dyld"
10201 version_type=darwin
10202 need_lib_prefix=no
10203 need_version=no
10204 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10205 soname_spec='${libname}${release}${major}$shared_ext'
10206 shlibpath_overrides_runpath=yes
10207 shlibpath_var=DYLD_LIBRARY_PATH
10208 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10210 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10211 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10214 dgux*)
10215 version_type=linux
10216 need_lib_prefix=no
10217 need_version=no
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 shlibpath_var=LD_LIBRARY_PATH
10223 freebsd1*)
10224 dynamic_linker=no
10227 freebsd* | dragonfly*)
10228 # DragonFly does not have aout. When/if they implement a new
10229 # versioning mechanism, adjust this.
10230 if test -x /usr/bin/objformat; then
10231 objformat=`/usr/bin/objformat`
10232 else
10233 case $host_os in
10234 freebsd[123]*) objformat=aout ;;
10235 *) objformat=elf ;;
10236 esac
10238 version_type=freebsd-$objformat
10239 case $version_type in
10240 freebsd-elf*)
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10242 need_version=no
10243 need_lib_prefix=no
10245 freebsd-*)
10246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10247 need_version=yes
10249 esac
10250 shlibpath_var=LD_LIBRARY_PATH
10251 case $host_os in
10252 freebsd2*)
10253 shlibpath_overrides_runpath=yes
10255 freebsd3.[01]* | freebsdelf3.[01]*)
10256 shlibpath_overrides_runpath=yes
10257 hardcode_into_libs=yes
10259 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10260 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10261 shlibpath_overrides_runpath=no
10262 hardcode_into_libs=yes
10264 *) # from 4.6 on, and DragonFly
10265 shlibpath_overrides_runpath=yes
10266 hardcode_into_libs=yes
10268 esac
10271 gnu*)
10272 version_type=linux
10273 need_lib_prefix=no
10274 need_version=no
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 hardcode_into_libs=yes
10281 haiku*)
10282 version_type=linux
10283 need_lib_prefix=no
10284 need_version=no
10285 dynamic_linker="$host_os runtime_loader"
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10287 soname_spec='${libname}${release}${shared_ext}$major'
10288 shlibpath_var=LIBRARY_PATH
10289 shlibpath_overrides_runpath=yes
10290 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10291 hardcode_into_libs=yes
10294 hpux9* | hpux10* | hpux11*)
10295 # Give a soname corresponding to the major version so that dld.sl refuses to
10296 # link against other versions.
10297 version_type=sunos
10298 need_lib_prefix=no
10299 need_version=no
10300 case $host_cpu in
10301 ia64*)
10302 shrext_cmds='.so'
10303 hardcode_into_libs=yes
10304 dynamic_linker="$host_os dld.so"
10305 shlibpath_var=LD_LIBRARY_PATH
10306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 if test "X$HPUX_IA64_MODE" = X32; then
10310 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10311 else
10312 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10316 hppa*64*)
10317 shrext_cmds='.sl'
10318 hardcode_into_libs=yes
10319 dynamic_linker="$host_os dld.sl"
10320 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10328 shrext_cmds='.sl'
10329 dynamic_linker="$host_os dld.sl"
10330 shlibpath_var=SHLIB_PATH
10331 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10335 esac
10336 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10337 postinstall_cmds='chmod 555 $lib'
10338 # or fails outright, so override atomically:
10339 install_override_mode=555
10342 interix[3-9]*)
10343 version_type=linux
10344 need_lib_prefix=no
10345 need_version=no
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10349 shlibpath_var=LD_LIBRARY_PATH
10350 shlibpath_overrides_runpath=no
10351 hardcode_into_libs=yes
10354 irix5* | irix6* | nonstopux*)
10355 case $host_os in
10356 nonstopux*) version_type=nonstopux ;;
10358 if test "$lt_cv_prog_gnu_ld" = yes; then
10359 version_type=linux
10360 else
10361 version_type=irix
10362 fi ;;
10363 esac
10364 need_lib_prefix=no
10365 need_version=no
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10368 case $host_os in
10369 irix5* | nonstopux*)
10370 libsuff= shlibsuff=
10373 case $LD in # libtool.m4 will add one of these switches to LD
10374 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10375 libsuff= shlibsuff= libmagic=32-bit;;
10376 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10377 libsuff=32 shlibsuff=N32 libmagic=N32;;
10378 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10379 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10380 *) libsuff= shlibsuff= libmagic=never-match;;
10381 esac
10383 esac
10384 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10385 shlibpath_overrides_runpath=no
10386 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10387 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10388 hardcode_into_libs=yes
10391 # No shared lib support for Linux oldld, aout, or coff.
10392 linux*oldld* | linux*aout* | linux*coff*)
10393 dynamic_linker=no
10396 # This must be Linux ELF.
10397 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10398 version_type=linux
10399 need_lib_prefix=no
10400 need_version=no
10401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10402 soname_spec='${libname}${release}${shared_ext}$major'
10403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10404 shlibpath_var=LD_LIBRARY_PATH
10405 shlibpath_overrides_runpath=no
10407 # Some binutils ld are patched to set DT_RUNPATH
10408 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10409 $as_echo_n "(cached) " >&6
10410 else
10411 lt_cv_shlibpath_overrides_runpath=no
10412 save_LDFLAGS=$LDFLAGS
10413 save_libdir=$libdir
10414 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10415 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10420 main ()
10424 return 0;
10426 _ACEOF
10427 if ac_fn_c_try_link "$LINENO"; then :
10428 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10429 lt_cv_shlibpath_overrides_runpath=yes
10432 rm -f core conftest.err conftest.$ac_objext \
10433 conftest$ac_exeext conftest.$ac_ext
10434 LDFLAGS=$save_LDFLAGS
10435 libdir=$save_libdir
10439 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10441 # This implies no fast_install, which is unacceptable.
10442 # Some rework will be needed to allow for fast_install
10443 # before this can be enabled.
10444 hardcode_into_libs=yes
10446 # Append ld.so.conf contents to the search path
10447 if test -f /etc/ld.so.conf; then
10448 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' ' '`
10449 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10452 # We used to test for /lib/ld.so.1 and disable shared libraries on
10453 # powerpc, because MkLinux only supported shared libraries with the
10454 # GNU dynamic linker. Since this was broken with cross compilers,
10455 # most powerpc-linux boxes support dynamic linking these days and
10456 # people can always --disable-shared, the test was removed, and we
10457 # assume the GNU/Linux dynamic linker is in use.
10458 dynamic_linker='GNU/Linux ld.so'
10461 netbsd*)
10462 version_type=sunos
10463 need_lib_prefix=no
10464 need_version=no
10465 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10468 dynamic_linker='NetBSD (a.out) ld.so'
10469 else
10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10471 soname_spec='${libname}${release}${shared_ext}$major'
10472 dynamic_linker='NetBSD ld.elf_so'
10474 shlibpath_var=LD_LIBRARY_PATH
10475 shlibpath_overrides_runpath=yes
10476 hardcode_into_libs=yes
10479 newsos6)
10480 version_type=linux
10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10482 shlibpath_var=LD_LIBRARY_PATH
10483 shlibpath_overrides_runpath=yes
10486 *nto* | *qnx*)
10487 version_type=qnx
10488 need_lib_prefix=no
10489 need_version=no
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10491 soname_spec='${libname}${release}${shared_ext}$major'
10492 shlibpath_var=LD_LIBRARY_PATH
10493 shlibpath_overrides_runpath=no
10494 hardcode_into_libs=yes
10495 dynamic_linker='ldqnx.so'
10498 openbsd*)
10499 version_type=sunos
10500 sys_lib_dlsearch_path_spec="/usr/lib"
10501 need_lib_prefix=no
10502 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10503 case $host_os in
10504 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10505 *) need_version=no ;;
10506 esac
10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10509 shlibpath_var=LD_LIBRARY_PATH
10510 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10511 case $host_os in
10512 openbsd2.[89] | openbsd2.[89].*)
10513 shlibpath_overrides_runpath=no
10516 shlibpath_overrides_runpath=yes
10518 esac
10519 else
10520 shlibpath_overrides_runpath=yes
10524 os2*)
10525 libname_spec='$name'
10526 shrext_cmds=".dll"
10527 need_lib_prefix=no
10528 library_names_spec='$libname${shared_ext} $libname.a'
10529 dynamic_linker='OS/2 ld.exe'
10530 shlibpath_var=LIBPATH
10533 osf3* | osf4* | osf5*)
10534 version_type=osf
10535 need_lib_prefix=no
10536 need_version=no
10537 soname_spec='${libname}${release}${shared_ext}$major'
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10539 shlibpath_var=LD_LIBRARY_PATH
10540 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10541 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10544 rdos*)
10545 dynamic_linker=no
10548 solaris*)
10549 version_type=linux
10550 need_lib_prefix=no
10551 need_version=no
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553 soname_spec='${libname}${release}${shared_ext}$major'
10554 shlibpath_var=LD_LIBRARY_PATH
10555 shlibpath_overrides_runpath=yes
10556 hardcode_into_libs=yes
10557 # ldd complains unless libraries are executable
10558 postinstall_cmds='chmod +x $lib'
10561 sunos4*)
10562 version_type=sunos
10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10564 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10565 shlibpath_var=LD_LIBRARY_PATH
10566 shlibpath_overrides_runpath=yes
10567 if test "$with_gnu_ld" = yes; then
10568 need_lib_prefix=no
10570 need_version=yes
10573 sysv4 | sysv4.3*)
10574 version_type=linux
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10576 soname_spec='${libname}${release}${shared_ext}$major'
10577 shlibpath_var=LD_LIBRARY_PATH
10578 case $host_vendor in
10579 sni)
10580 shlibpath_overrides_runpath=no
10581 need_lib_prefix=no
10582 runpath_var=LD_RUN_PATH
10584 siemens)
10585 need_lib_prefix=no
10587 motorola)
10588 need_lib_prefix=no
10589 need_version=no
10590 shlibpath_overrides_runpath=no
10591 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10593 esac
10596 sysv4*MP*)
10597 if test -d /usr/nec ;then
10598 version_type=linux
10599 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10600 soname_spec='$libname${shared_ext}.$major'
10601 shlibpath_var=LD_LIBRARY_PATH
10605 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10606 version_type=freebsd-elf
10607 need_lib_prefix=no
10608 need_version=no
10609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10610 soname_spec='${libname}${release}${shared_ext}$major'
10611 shlibpath_var=LD_LIBRARY_PATH
10612 shlibpath_overrides_runpath=yes
10613 hardcode_into_libs=yes
10614 if test "$with_gnu_ld" = yes; then
10615 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10616 else
10617 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10618 case $host_os in
10619 sco3.2v5*)
10620 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10622 esac
10624 sys_lib_dlsearch_path_spec='/usr/lib'
10627 tpf*)
10628 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10629 version_type=linux
10630 need_lib_prefix=no
10631 need_version=no
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 shlibpath_overrides_runpath=no
10635 hardcode_into_libs=yes
10638 uts4*)
10639 version_type=linux
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10641 soname_spec='${libname}${release}${shared_ext}$major'
10642 shlibpath_var=LD_LIBRARY_PATH
10646 dynamic_linker=no
10648 esac
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10650 $as_echo "$dynamic_linker" >&6; }
10651 test "$dynamic_linker" = no && can_build_shared=no
10653 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10654 if test "$GCC" = yes; then
10655 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10658 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10659 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10661 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10662 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10757 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10758 hardcode_action=
10759 if test -n "$hardcode_libdir_flag_spec" ||
10760 test -n "$runpath_var" ||
10761 test "X$hardcode_automatic" = "Xyes" ; then
10763 # We can hardcode non-existent directories.
10764 if test "$hardcode_direct" != no &&
10765 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10766 # have to relink, otherwise we might link with an installed library
10767 # when we should be linking with a yet-to-be-installed one
10768 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10769 test "$hardcode_minus_L" != no; then
10770 # Linking always hardcodes the temporary library directory.
10771 hardcode_action=relink
10772 else
10773 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10774 hardcode_action=immediate
10776 else
10777 # We cannot hardcode anything, or else we can only hardcode existing
10778 # directories.
10779 hardcode_action=unsupported
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10782 $as_echo "$hardcode_action" >&6; }
10784 if test "$hardcode_action" = relink ||
10785 test "$inherit_rpath" = yes; then
10786 # Fast installation is not supported
10787 enable_fast_install=no
10788 elif test "$shlibpath_overrides_runpath" = yes ||
10789 test "$enable_shared" = no; then
10790 # Fast installation is not necessary
10791 enable_fast_install=needless
10799 if test "x$enable_dlopen" != xyes; then
10800 enable_dlopen=unknown
10801 enable_dlopen_self=unknown
10802 enable_dlopen_self_static=unknown
10803 else
10804 lt_cv_dlopen=no
10805 lt_cv_dlopen_libs=
10807 case $host_os in
10808 beos*)
10809 lt_cv_dlopen="load_add_on"
10810 lt_cv_dlopen_libs=
10811 lt_cv_dlopen_self=yes
10814 mingw* | pw32* | cegcc*)
10815 lt_cv_dlopen="LoadLibrary"
10816 lt_cv_dlopen_libs=
10819 cygwin*)
10820 lt_cv_dlopen="dlopen"
10821 lt_cv_dlopen_libs=
10824 darwin*)
10825 # if libdl is installed we need to link against it
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10827 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10828 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10829 $as_echo_n "(cached) " >&6
10830 else
10831 ac_check_lib_save_LIBS=$LIBS
10832 LIBS="-ldl $LIBS"
10833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h. */
10836 /* Override any GCC internal prototype to avoid an error.
10837 Use char because int might match the return type of a GCC
10838 builtin and then its argument prototype would still apply. */
10839 #ifdef __cplusplus
10840 extern "C"
10841 #endif
10842 char dlopen ();
10844 main ()
10846 return dlopen ();
10848 return 0;
10850 _ACEOF
10851 if ac_fn_c_try_link "$LINENO"; then :
10852 ac_cv_lib_dl_dlopen=yes
10853 else
10854 ac_cv_lib_dl_dlopen=no
10856 rm -f core conftest.err conftest.$ac_objext \
10857 conftest$ac_exeext conftest.$ac_ext
10858 LIBS=$ac_check_lib_save_LIBS
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10861 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10862 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10863 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10864 else
10866 lt_cv_dlopen="dyld"
10867 lt_cv_dlopen_libs=
10868 lt_cv_dlopen_self=yes
10875 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10876 if test "x$ac_cv_func_shl_load" = x""yes; then :
10877 lt_cv_dlopen="shl_load"
10878 else
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10880 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10881 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10882 $as_echo_n "(cached) " >&6
10883 else
10884 ac_check_lib_save_LIBS=$LIBS
10885 LIBS="-ldld $LIBS"
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10889 /* Override any GCC internal prototype to avoid an error.
10890 Use char because int might match the return type of a GCC
10891 builtin and then its argument prototype would still apply. */
10892 #ifdef __cplusplus
10893 extern "C"
10894 #endif
10895 char shl_load ();
10897 main ()
10899 return shl_load ();
10901 return 0;
10903 _ACEOF
10904 if ac_fn_c_try_link "$LINENO"; then :
10905 ac_cv_lib_dld_shl_load=yes
10906 else
10907 ac_cv_lib_dld_shl_load=no
10909 rm -f core conftest.err conftest.$ac_objext \
10910 conftest$ac_exeext conftest.$ac_ext
10911 LIBS=$ac_check_lib_save_LIBS
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10914 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10915 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10916 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10917 else
10918 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10919 if test "x$ac_cv_func_dlopen" = x""yes; then :
10920 lt_cv_dlopen="dlopen"
10921 else
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10923 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10924 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 ac_check_lib_save_LIBS=$LIBS
10928 LIBS="-ldl $LIBS"
10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10932 /* Override any GCC internal prototype to avoid an error.
10933 Use char because int might match the return type of a GCC
10934 builtin and then its argument prototype would still apply. */
10935 #ifdef __cplusplus
10936 extern "C"
10937 #endif
10938 char dlopen ();
10940 main ()
10942 return dlopen ();
10944 return 0;
10946 _ACEOF
10947 if ac_fn_c_try_link "$LINENO"; then :
10948 ac_cv_lib_dl_dlopen=yes
10949 else
10950 ac_cv_lib_dl_dlopen=no
10952 rm -f core conftest.err conftest.$ac_objext \
10953 conftest$ac_exeext conftest.$ac_ext
10954 LIBS=$ac_check_lib_save_LIBS
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10957 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10958 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10960 else
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10962 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10963 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10964 $as_echo_n "(cached) " >&6
10965 else
10966 ac_check_lib_save_LIBS=$LIBS
10967 LIBS="-lsvld $LIBS"
10968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10969 /* end confdefs.h. */
10971 /* Override any GCC internal prototype to avoid an error.
10972 Use char because int might match the return type of a GCC
10973 builtin and then its argument prototype would still apply. */
10974 #ifdef __cplusplus
10975 extern "C"
10976 #endif
10977 char dlopen ();
10979 main ()
10981 return dlopen ();
10983 return 0;
10985 _ACEOF
10986 if ac_fn_c_try_link "$LINENO"; then :
10987 ac_cv_lib_svld_dlopen=yes
10988 else
10989 ac_cv_lib_svld_dlopen=no
10991 rm -f core conftest.err conftest.$ac_objext \
10992 conftest$ac_exeext conftest.$ac_ext
10993 LIBS=$ac_check_lib_save_LIBS
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10996 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10997 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10998 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10999 else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11001 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11002 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11003 $as_echo_n "(cached) " >&6
11004 else
11005 ac_check_lib_save_LIBS=$LIBS
11006 LIBS="-ldld $LIBS"
11007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h. */
11010 /* Override any GCC internal prototype to avoid an error.
11011 Use char because int might match the return type of a GCC
11012 builtin and then its argument prototype would still apply. */
11013 #ifdef __cplusplus
11014 extern "C"
11015 #endif
11016 char dld_link ();
11018 main ()
11020 return dld_link ();
11022 return 0;
11024 _ACEOF
11025 if ac_fn_c_try_link "$LINENO"; then :
11026 ac_cv_lib_dld_dld_link=yes
11027 else
11028 ac_cv_lib_dld_dld_link=no
11030 rm -f core conftest.err conftest.$ac_objext \
11031 conftest$ac_exeext conftest.$ac_ext
11032 LIBS=$ac_check_lib_save_LIBS
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11035 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11036 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11037 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11056 esac
11058 if test "x$lt_cv_dlopen" != xno; then
11059 enable_dlopen=yes
11060 else
11061 enable_dlopen=no
11064 case $lt_cv_dlopen in
11065 dlopen)
11066 save_CPPFLAGS="$CPPFLAGS"
11067 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11069 save_LDFLAGS="$LDFLAGS"
11070 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11072 save_LIBS="$LIBS"
11073 LIBS="$lt_cv_dlopen_libs $LIBS"
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11076 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11077 if test "${lt_cv_dlopen_self+set}" = set; then :
11078 $as_echo_n "(cached) " >&6
11079 else
11080 if test "$cross_compiling" = yes; then :
11081 lt_cv_dlopen_self=cross
11082 else
11083 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11084 lt_status=$lt_dlunknown
11085 cat > conftest.$ac_ext <<_LT_EOF
11086 #line 11086 "configure"
11087 #include "confdefs.h"
11089 #if HAVE_DLFCN_H
11090 #include <dlfcn.h>
11091 #endif
11093 #include <stdio.h>
11095 #ifdef RTLD_GLOBAL
11096 # define LT_DLGLOBAL RTLD_GLOBAL
11097 #else
11098 # ifdef DL_GLOBAL
11099 # define LT_DLGLOBAL DL_GLOBAL
11100 # else
11101 # define LT_DLGLOBAL 0
11102 # endif
11103 #endif
11105 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11106 find out it does not work in some platform. */
11107 #ifndef LT_DLLAZY_OR_NOW
11108 # ifdef RTLD_LAZY
11109 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11110 # else
11111 # ifdef DL_LAZY
11112 # define LT_DLLAZY_OR_NOW DL_LAZY
11113 # else
11114 # ifdef RTLD_NOW
11115 # define LT_DLLAZY_OR_NOW RTLD_NOW
11116 # else
11117 # ifdef DL_NOW
11118 # define LT_DLLAZY_OR_NOW DL_NOW
11119 # else
11120 # define LT_DLLAZY_OR_NOW 0
11121 # endif
11122 # endif
11123 # endif
11124 # endif
11125 #endif
11127 /* When -fvisbility=hidden is used, assume the code has been annotated
11128 correspondingly for the symbols needed. */
11129 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11130 void fnord () __attribute__((visibility("default")));
11131 #endif
11133 void fnord () { int i=42; }
11134 int main ()
11136 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11137 int status = $lt_dlunknown;
11139 if (self)
11141 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11142 else
11144 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11145 else puts (dlerror ());
11147 /* dlclose (self); */
11149 else
11150 puts (dlerror ());
11152 return status;
11154 _LT_EOF
11155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11156 (eval $ac_link) 2>&5
11157 ac_status=$?
11158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11159 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11160 (./conftest; exit; ) >&5 2>/dev/null
11161 lt_status=$?
11162 case x$lt_status in
11163 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11164 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11165 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11166 esac
11167 else :
11168 # compilation failed
11169 lt_cv_dlopen_self=no
11172 rm -fr conftest*
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11177 $as_echo "$lt_cv_dlopen_self" >&6; }
11179 if test "x$lt_cv_dlopen_self" = xyes; then
11180 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11182 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11183 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11184 $as_echo_n "(cached) " >&6
11185 else
11186 if test "$cross_compiling" = yes; then :
11187 lt_cv_dlopen_self_static=cross
11188 else
11189 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11190 lt_status=$lt_dlunknown
11191 cat > conftest.$ac_ext <<_LT_EOF
11192 #line 11192 "configure"
11193 #include "confdefs.h"
11195 #if HAVE_DLFCN_H
11196 #include <dlfcn.h>
11197 #endif
11199 #include <stdio.h>
11201 #ifdef RTLD_GLOBAL
11202 # define LT_DLGLOBAL RTLD_GLOBAL
11203 #else
11204 # ifdef DL_GLOBAL
11205 # define LT_DLGLOBAL DL_GLOBAL
11206 # else
11207 # define LT_DLGLOBAL 0
11208 # endif
11209 #endif
11211 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11212 find out it does not work in some platform. */
11213 #ifndef LT_DLLAZY_OR_NOW
11214 # ifdef RTLD_LAZY
11215 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11216 # else
11217 # ifdef DL_LAZY
11218 # define LT_DLLAZY_OR_NOW DL_LAZY
11219 # else
11220 # ifdef RTLD_NOW
11221 # define LT_DLLAZY_OR_NOW RTLD_NOW
11222 # else
11223 # ifdef DL_NOW
11224 # define LT_DLLAZY_OR_NOW DL_NOW
11225 # else
11226 # define LT_DLLAZY_OR_NOW 0
11227 # endif
11228 # endif
11229 # endif
11230 # endif
11231 #endif
11233 /* When -fvisbility=hidden is used, assume the code has been annotated
11234 correspondingly for the symbols needed. */
11235 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11236 void fnord () __attribute__((visibility("default")));
11237 #endif
11239 void fnord () { int i=42; }
11240 int main ()
11242 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11243 int status = $lt_dlunknown;
11245 if (self)
11247 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11248 else
11250 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11251 else puts (dlerror ());
11253 /* dlclose (self); */
11255 else
11256 puts (dlerror ());
11258 return status;
11260 _LT_EOF
11261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11262 (eval $ac_link) 2>&5
11263 ac_status=$?
11264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11265 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11266 (./conftest; exit; ) >&5 2>/dev/null
11267 lt_status=$?
11268 case x$lt_status in
11269 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11270 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11271 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11272 esac
11273 else :
11274 # compilation failed
11275 lt_cv_dlopen_self_static=no
11278 rm -fr conftest*
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11283 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11286 CPPFLAGS="$save_CPPFLAGS"
11287 LDFLAGS="$save_LDFLAGS"
11288 LIBS="$save_LIBS"
11290 esac
11292 case $lt_cv_dlopen_self in
11293 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11294 *) enable_dlopen_self=unknown ;;
11295 esac
11297 case $lt_cv_dlopen_self_static in
11298 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11299 *) enable_dlopen_self_static=unknown ;;
11300 esac
11319 striplib=
11320 old_striplib=
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11322 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11323 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11324 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11325 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11327 $as_echo "yes" >&6; }
11328 else
11329 # FIXME - insert some real tests, host_os isn't really good enough
11330 case $host_os in
11331 darwin*)
11332 if test -n "$STRIP" ; then
11333 striplib="$STRIP -x"
11334 old_striplib="$STRIP -S"
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11336 $as_echo "yes" >&6; }
11337 else
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339 $as_echo "no" >&6; }
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11346 esac
11360 # Report which library types will actually be built
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11362 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11364 $as_echo "$can_build_shared" >&6; }
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11367 $as_echo_n "checking whether to build shared libraries... " >&6; }
11368 test "$can_build_shared" = "no" && enable_shared=no
11370 # On AIX, shared libraries and static libraries use the same namespace, and
11371 # are all built from PIC.
11372 case $host_os in
11373 aix3*)
11374 test "$enable_shared" = yes && enable_static=no
11375 if test -n "$RANLIB"; then
11376 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11377 postinstall_cmds='$RANLIB $lib'
11381 aix[4-9]*)
11382 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11383 test "$enable_shared" = yes && enable_static=no
11386 esac
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11388 $as_echo "$enable_shared" >&6; }
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11391 $as_echo_n "checking whether to build static libraries... " >&6; }
11392 # Make sure either enable_shared or enable_static is yes.
11393 test "$enable_shared" = yes || enable_static=yes
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11395 $as_echo "$enable_static" >&6; }
11401 ac_ext=c
11402 ac_cpp='$CPP $CPPFLAGS'
11403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11407 CC="$lt_save_CC"
11421 ac_config_commands="$ac_config_commands libtool"
11426 # Only expand once:
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11434 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11435 # Check whether --enable-maintainer-mode was given.
11436 if test "${enable_maintainer_mode+set}" = set; then :
11437 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11438 else
11439 USE_MAINTAINER_MODE=no
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11443 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11444 if test $USE_MAINTAINER_MODE = yes; then
11445 MAINTAINER_MODE_TRUE=
11446 MAINTAINER_MODE_FALSE='#'
11447 else
11448 MAINTAINER_MODE_TRUE='#'
11449 MAINTAINER_MODE_FALSE=
11452 MAINT=$MAINTAINER_MODE_TRUE
11456 # We need gfortran to compile parts of the library
11457 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11458 #AC_PROG_FC(gfortran)
11459 case `echo $GFORTRAN` in
11460 -* | no* )
11461 FC=no ;;
11463 set dummy $GFORTRAN; ac_word=$2
11464 if test -x "$ac_word"; then
11465 FC="$GFORTRAN"
11466 else
11467 FC=no
11468 fi ;;
11469 esac
11470 ac_ext=${ac_fc_srcext-f}
11471 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11472 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11473 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11474 if test -n "$ac_tool_prefix"; then
11475 for ac_prog in gfortran
11477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11478 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11480 $as_echo_n "checking for $ac_word... " >&6; }
11481 if test "${ac_cv_prog_FC+set}" = set; then :
11482 $as_echo_n "(cached) " >&6
11483 else
11484 if test -n "$FC"; then
11485 ac_cv_prog_FC="$FC" # Let the user override the test.
11486 else
11487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11488 for as_dir in $PATH
11490 IFS=$as_save_IFS
11491 test -z "$as_dir" && as_dir=.
11492 for ac_exec_ext in '' $ac_executable_extensions; do
11493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11494 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11496 break 2
11498 done
11499 done
11500 IFS=$as_save_IFS
11504 FC=$ac_cv_prog_FC
11505 if test -n "$FC"; then
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11507 $as_echo "$FC" >&6; }
11508 else
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510 $as_echo "no" >&6; }
11514 test -n "$FC" && break
11515 done
11517 if test -z "$FC"; then
11518 ac_ct_FC=$FC
11519 for ac_prog in gfortran
11521 # Extract the first word of "$ac_prog", so it can be a program name with args.
11522 set dummy $ac_prog; ac_word=$2
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524 $as_echo_n "checking for $ac_word... " >&6; }
11525 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11528 if test -n "$ac_ct_FC"; then
11529 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11530 else
11531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11532 for as_dir in $PATH
11534 IFS=$as_save_IFS
11535 test -z "$as_dir" && as_dir=.
11536 for ac_exec_ext in '' $ac_executable_extensions; do
11537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11538 ac_cv_prog_ac_ct_FC="$ac_prog"
11539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11540 break 2
11542 done
11543 done
11544 IFS=$as_save_IFS
11548 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11549 if test -n "$ac_ct_FC"; then
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11551 $as_echo "$ac_ct_FC" >&6; }
11552 else
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554 $as_echo "no" >&6; }
11558 test -n "$ac_ct_FC" && break
11559 done
11561 if test "x$ac_ct_FC" = x; then
11562 FC=""
11563 else
11564 case $cross_compiling:$ac_tool_warned in
11565 yes:)
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11568 ac_tool_warned=yes ;;
11569 esac
11570 FC=$ac_ct_FC
11575 # Provide some information about the compiler.
11576 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11577 set X $ac_compile
11578 ac_compiler=$2
11579 for ac_option in --version -v -V -qversion; do
11580 { { ac_try="$ac_compiler $ac_option >&5"
11581 case "(($ac_try" in
11582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583 *) ac_try_echo=$ac_try;;
11584 esac
11585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11586 $as_echo "$ac_try_echo"; } >&5
11587 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11588 ac_status=$?
11589 if test -s conftest.err; then
11590 sed '10a\
11591 ... rest of stderr output deleted ...
11592 10q' conftest.err >conftest.er1
11593 cat conftest.er1 >&5
11594 rm -f conftest.er1 conftest.err
11596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11597 test $ac_status = 0; }
11598 done
11599 rm -f a.out
11601 # If we don't use `.F' as extension, the preprocessor is not run on the
11602 # input file. (Note that this only needs to work for GNU compilers.)
11603 ac_save_ext=$ac_ext
11604 ac_ext=F
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11606 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11607 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11608 $as_echo_n "(cached) " >&6
11609 else
11610 cat > conftest.$ac_ext <<_ACEOF
11611 program main
11612 #ifndef __GNUC__
11613 choke me
11614 #endif
11617 _ACEOF
11618 if ac_fn_fc_try_compile "$LINENO"; then :
11619 ac_compiler_gnu=yes
11620 else
11621 ac_compiler_gnu=no
11623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11624 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11628 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11629 ac_ext=$ac_save_ext
11630 ac_test_FCFLAGS=${FCFLAGS+set}
11631 ac_save_FCFLAGS=$FCFLAGS
11632 FCFLAGS=
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11634 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11635 if test "${ac_cv_prog_fc_g+set}" = set; then :
11636 $as_echo_n "(cached) " >&6
11637 else
11638 FCFLAGS=-g
11639 cat > conftest.$ac_ext <<_ACEOF
11640 program main
11643 _ACEOF
11644 if ac_fn_fc_try_compile "$LINENO"; then :
11645 ac_cv_prog_fc_g=yes
11646 else
11647 ac_cv_prog_fc_g=no
11649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11653 $as_echo "$ac_cv_prog_fc_g" >&6; }
11654 if test "$ac_test_FCFLAGS" = set; then
11655 FCFLAGS=$ac_save_FCFLAGS
11656 elif test $ac_cv_prog_fc_g = yes; then
11657 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11658 FCFLAGS="-g -O2"
11659 else
11660 FCFLAGS="-g"
11662 else
11663 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11664 FCFLAGS="-O2"
11665 else
11666 FCFLAGS=
11670 ac_ext=c
11671 ac_cpp='$CPP $CPPFLAGS'
11672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11676 ac_ext=${ac_fc_srcext-f}
11677 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11678 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11679 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11682 if test -z "$FC" || test "X$FC" = "Xno"; then
11683 _lt_disable_FC=yes
11686 archive_cmds_need_lc_FC=no
11687 allow_undefined_flag_FC=
11688 always_export_symbols_FC=no
11689 archive_expsym_cmds_FC=
11690 export_dynamic_flag_spec_FC=
11691 hardcode_direct_FC=no
11692 hardcode_direct_absolute_FC=no
11693 hardcode_libdir_flag_spec_FC=
11694 hardcode_libdir_flag_spec_ld_FC=
11695 hardcode_libdir_separator_FC=
11696 hardcode_minus_L_FC=no
11697 hardcode_automatic_FC=no
11698 inherit_rpath_FC=no
11699 module_cmds_FC=
11700 module_expsym_cmds_FC=
11701 link_all_deplibs_FC=unknown
11702 old_archive_cmds_FC=$old_archive_cmds
11703 reload_flag_FC=$reload_flag
11704 reload_cmds_FC=$reload_cmds
11705 no_undefined_flag_FC=
11706 whole_archive_flag_spec_FC=
11707 enable_shared_with_static_runtimes_FC=no
11709 # Source file extension for fc test sources.
11710 ac_ext=${ac_fc_srcext-f}
11712 # Object file extension for compiled fc test sources.
11713 objext=o
11714 objext_FC=$objext
11716 # No sense in running all these tests if we already determined that
11717 # the FC compiler isn't working. Some variables (like enable_shared)
11718 # are currently assumed to apply to all compilers on this platform,
11719 # and will be corrupted by setting them based on a non-working compiler.
11720 if test "$_lt_disable_FC" != yes; then
11721 # Code to be used in simple compile tests
11722 lt_simple_compile_test_code="\
11723 subroutine t
11724 return
11728 # Code to be used in simple link tests
11729 lt_simple_link_test_code="\
11730 program t
11734 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11741 # If no C compiler was specified, use CC.
11742 LTCC=${LTCC-"$CC"}
11744 # If no C compiler flags were specified, use CFLAGS.
11745 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11747 # Allow CC to be a program name with arguments.
11748 compiler=$CC
11751 # save warnings/boilerplate of simple test code
11752 ac_outfile=conftest.$ac_objext
11753 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11754 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11755 _lt_compiler_boilerplate=`cat conftest.err`
11756 $RM conftest*
11758 ac_outfile=conftest.$ac_objext
11759 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11760 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11761 _lt_linker_boilerplate=`cat conftest.err`
11762 $RM -r conftest*
11765 # Allow CC to be a program name with arguments.
11766 lt_save_CC="$CC"
11767 lt_save_GCC=$GCC
11768 CC=${FC-"f95"}
11769 compiler=$CC
11770 GCC=$ac_cv_fc_compiler_gnu
11772 compiler_FC=$CC
11773 for cc_temp in $compiler""; do
11774 case $cc_temp in
11775 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11776 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11777 \-*) ;;
11778 *) break;;
11779 esac
11780 done
11781 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11784 if test -n "$compiler"; then
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11786 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11788 $as_echo "$can_build_shared" >&6; }
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11791 $as_echo_n "checking whether to build shared libraries... " >&6; }
11792 test "$can_build_shared" = "no" && enable_shared=no
11794 # On AIX, shared libraries and static libraries use the same namespace, and
11795 # are all built from PIC.
11796 case $host_os in
11797 aix3*)
11798 test "$enable_shared" = yes && enable_static=no
11799 if test -n "$RANLIB"; then
11800 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11801 postinstall_cmds='$RANLIB $lib'
11804 aix[4-9]*)
11805 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11806 test "$enable_shared" = yes && enable_static=no
11809 esac
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11811 $as_echo "$enable_shared" >&6; }
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11814 $as_echo_n "checking whether to build static libraries... " >&6; }
11815 # Make sure either enable_shared or enable_static is yes.
11816 test "$enable_shared" = yes || enable_static=yes
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11818 $as_echo "$enable_static" >&6; }
11820 GCC_FC="$ac_cv_fc_compiler_gnu"
11821 LD_FC="$LD"
11823 ## CAVEAT EMPTOR:
11824 ## There is no encapsulation within the following macros, do not change
11825 ## the running order or otherwise move them around unless you know exactly
11826 ## what you are doing...
11827 # Dependencies to place before and after the object being linked:
11828 predep_objects_FC=
11829 postdep_objects_FC=
11830 predeps_FC=
11831 postdeps_FC=
11832 compiler_lib_search_path_FC=
11834 cat > conftest.$ac_ext <<_LT_EOF
11835 subroutine foo
11836 implicit none
11837 integer a
11839 return
11841 _LT_EOF
11843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11844 (eval $ac_compile) 2>&5
11845 ac_status=$?
11846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11847 test $ac_status = 0; }; then
11848 # Parse the compiler output and extract the necessary
11849 # objects, libraries and library flags.
11851 # Sentinel used to keep track of whether or not we are before
11852 # the conftest object file.
11853 pre_test_object_deps_done=no
11855 for p in `eval "$output_verbose_link_cmd"`; do
11856 case $p in
11858 -L* | -R* | -l*)
11859 # Some compilers place space between "-{L,R}" and the path.
11860 # Remove the space.
11861 if test $p = "-L" ||
11862 test $p = "-R"; then
11863 prev=$p
11864 continue
11865 else
11866 prev=
11869 if test "$pre_test_object_deps_done" = no; then
11870 case $p in
11871 -L* | -R*)
11872 # Internal compiler library paths should come after those
11873 # provided the user. The postdeps already come after the
11874 # user supplied libs so there is no need to process them.
11875 if test -z "$compiler_lib_search_path_FC"; then
11876 compiler_lib_search_path_FC="${prev}${p}"
11877 else
11878 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11881 # The "-l" case would never come before the object being
11882 # linked, so don't bother handling this case.
11883 esac
11884 else
11885 if test -z "$postdeps_FC"; then
11886 postdeps_FC="${prev}${p}"
11887 else
11888 postdeps_FC="${postdeps_FC} ${prev}${p}"
11893 *.$objext)
11894 # This assumes that the test object file only shows up
11895 # once in the compiler output.
11896 if test "$p" = "conftest.$objext"; then
11897 pre_test_object_deps_done=yes
11898 continue
11901 if test "$pre_test_object_deps_done" = no; then
11902 if test -z "$predep_objects_FC"; then
11903 predep_objects_FC="$p"
11904 else
11905 predep_objects_FC="$predep_objects_FC $p"
11907 else
11908 if test -z "$postdep_objects_FC"; then
11909 postdep_objects_FC="$p"
11910 else
11911 postdep_objects_FC="$postdep_objects_FC $p"
11916 *) ;; # Ignore the rest.
11918 esac
11919 done
11921 # Clean up.
11922 rm -f a.out a.exe
11923 else
11924 echo "libtool.m4: error: problem compiling FC test program"
11927 $RM -f confest.$objext
11929 # PORTME: override above test on systems where it is broken
11932 case " $postdeps_FC " in
11933 *" -lc "*) archive_cmds_need_lc_FC=no ;;
11934 esac
11935 compiler_lib_search_dirs_FC=
11936 if test -n "${compiler_lib_search_path_FC}"; then
11937 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11970 lt_prog_compiler_wl_FC=
11971 lt_prog_compiler_pic_FC=
11972 lt_prog_compiler_static_FC=
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11975 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11977 if test "$GCC" = yes; then
11978 lt_prog_compiler_wl_FC='-Wl,'
11979 lt_prog_compiler_static_FC='-static'
11981 case $host_os in
11982 aix*)
11983 # All AIX code is PIC.
11984 if test "$host_cpu" = ia64; then
11985 # AIX 5 now supports IA64 processor
11986 lt_prog_compiler_static_FC='-Bstatic'
11990 amigaos*)
11991 case $host_cpu in
11992 powerpc)
11993 # see comment about AmigaOS4 .so support
11994 lt_prog_compiler_pic_FC='-fPIC'
11996 m68k)
11997 # FIXME: we need at least 68020 code to build shared libraries, but
11998 # adding the `-m68020' flag to GCC prevents building anything better,
11999 # like `-m68040'.
12000 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12002 esac
12005 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12006 # PIC is the default for these OSes.
12009 mingw* | cygwin* | pw32* | os2* | cegcc*)
12010 # This hack is so that the source file can tell whether it is being
12011 # built for inclusion in a dll (and should export symbols for example).
12012 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12013 # (--disable-auto-import) libraries
12014 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12017 darwin* | rhapsody*)
12018 # PIC is the default on this platform
12019 # Common symbols not allowed in MH_DYLIB files
12020 lt_prog_compiler_pic_FC='-fno-common'
12023 haiku*)
12024 # PIC is the default for Haiku.
12025 # The "-static" flag exists, but is broken.
12026 lt_prog_compiler_static_FC=
12029 hpux*)
12030 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12031 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12032 # sets the default TLS model and affects inlining.
12033 case $host_cpu in
12034 hppa*64*)
12035 # +Z the default
12038 lt_prog_compiler_pic_FC='-fPIC'
12040 esac
12043 interix[3-9]*)
12044 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12045 # Instead, we relocate shared libraries at runtime.
12048 msdosdjgpp*)
12049 # Just because we use GCC doesn't mean we suddenly get shared libraries
12050 # on systems that don't support them.
12051 lt_prog_compiler_can_build_shared_FC=no
12052 enable_shared=no
12055 *nto* | *qnx*)
12056 # QNX uses GNU C++, but need to define -shared option too, otherwise
12057 # it will coredump.
12058 lt_prog_compiler_pic_FC='-fPIC -shared'
12061 sysv4*MP*)
12062 if test -d /usr/nec; then
12063 lt_prog_compiler_pic_FC=-Kconform_pic
12068 lt_prog_compiler_pic_FC='-fPIC'
12070 esac
12072 case $cc_basename in
12073 nvcc*) # Cuda Compiler Driver 2.2
12074 lt_prog_compiler_wl_FC='-Xlinker '
12075 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12077 esac
12078 else
12079 # PORTME Check for flag to pass linker flags through the system compiler.
12080 case $host_os in
12081 aix*)
12082 lt_prog_compiler_wl_FC='-Wl,'
12083 if test "$host_cpu" = ia64; then
12084 # AIX 5 now supports IA64 processor
12085 lt_prog_compiler_static_FC='-Bstatic'
12086 else
12087 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12091 mingw* | cygwin* | pw32* | os2* | cegcc*)
12092 # This hack is so that the source file can tell whether it is being
12093 # built for inclusion in a dll (and should export symbols for example).
12094 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12097 hpux9* | hpux10* | hpux11*)
12098 lt_prog_compiler_wl_FC='-Wl,'
12099 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12100 # not for PA HP-UX.
12101 case $host_cpu in
12102 hppa*64*|ia64*)
12103 # +Z the default
12106 lt_prog_compiler_pic_FC='+Z'
12108 esac
12109 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12110 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12113 irix5* | irix6* | nonstopux*)
12114 lt_prog_compiler_wl_FC='-Wl,'
12115 # PIC (with -KPIC) is the default.
12116 lt_prog_compiler_static_FC='-non_shared'
12119 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12120 case $cc_basename in
12121 # old Intel for x86_64 which still supported -KPIC.
12122 ecc*)
12123 lt_prog_compiler_wl_FC='-Wl,'
12124 lt_prog_compiler_pic_FC='-KPIC'
12125 lt_prog_compiler_static_FC='-static'
12127 # icc used to be incompatible with GCC.
12128 # ICC 10 doesn't accept -KPIC any more.
12129 icc* | ifort*)
12130 lt_prog_compiler_wl_FC='-Wl,'
12131 lt_prog_compiler_pic_FC='-fPIC'
12132 lt_prog_compiler_static_FC='-static'
12134 # Lahey Fortran 8.1.
12135 lf95*)
12136 lt_prog_compiler_wl_FC='-Wl,'
12137 lt_prog_compiler_pic_FC='--shared'
12138 lt_prog_compiler_static_FC='--static'
12140 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12141 # Portland Group compilers (*not* the Pentium gcc compiler,
12142 # which looks to be a dead project)
12143 lt_prog_compiler_wl_FC='-Wl,'
12144 lt_prog_compiler_pic_FC='-fpic'
12145 lt_prog_compiler_static_FC='-Bstatic'
12147 ccc*)
12148 lt_prog_compiler_wl_FC='-Wl,'
12149 # All Alpha code is PIC.
12150 lt_prog_compiler_static_FC='-non_shared'
12152 xl* | bgxl* | bgf* | mpixl*)
12153 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12154 lt_prog_compiler_wl_FC='-Wl,'
12155 lt_prog_compiler_pic_FC='-qpic'
12156 lt_prog_compiler_static_FC='-qstaticlink'
12159 case `$CC -V 2>&1 | sed 5q` in
12160 *Sun\ F* | *Sun*Fortran*)
12161 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12162 lt_prog_compiler_pic_FC='-KPIC'
12163 lt_prog_compiler_static_FC='-Bstatic'
12164 lt_prog_compiler_wl_FC=''
12166 *Sun\ C*)
12167 # Sun C 5.9
12168 lt_prog_compiler_pic_FC='-KPIC'
12169 lt_prog_compiler_static_FC='-Bstatic'
12170 lt_prog_compiler_wl_FC='-Wl,'
12172 esac
12174 esac
12177 newsos6)
12178 lt_prog_compiler_pic_FC='-KPIC'
12179 lt_prog_compiler_static_FC='-Bstatic'
12182 *nto* | *qnx*)
12183 # QNX uses GNU C++, but need to define -shared option too, otherwise
12184 # it will coredump.
12185 lt_prog_compiler_pic_FC='-fPIC -shared'
12188 osf3* | osf4* | osf5*)
12189 lt_prog_compiler_wl_FC='-Wl,'
12190 # All OSF/1 code is PIC.
12191 lt_prog_compiler_static_FC='-non_shared'
12194 rdos*)
12195 lt_prog_compiler_static_FC='-non_shared'
12198 solaris*)
12199 lt_prog_compiler_pic_FC='-KPIC'
12200 lt_prog_compiler_static_FC='-Bstatic'
12201 case $cc_basename in
12202 f77* | f90* | f95*)
12203 lt_prog_compiler_wl_FC='-Qoption ld ';;
12205 lt_prog_compiler_wl_FC='-Wl,';;
12206 esac
12209 sunos4*)
12210 lt_prog_compiler_wl_FC='-Qoption ld '
12211 lt_prog_compiler_pic_FC='-PIC'
12212 lt_prog_compiler_static_FC='-Bstatic'
12215 sysv4 | sysv4.2uw2* | sysv4.3*)
12216 lt_prog_compiler_wl_FC='-Wl,'
12217 lt_prog_compiler_pic_FC='-KPIC'
12218 lt_prog_compiler_static_FC='-Bstatic'
12221 sysv4*MP*)
12222 if test -d /usr/nec ;then
12223 lt_prog_compiler_pic_FC='-Kconform_pic'
12224 lt_prog_compiler_static_FC='-Bstatic'
12228 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12229 lt_prog_compiler_wl_FC='-Wl,'
12230 lt_prog_compiler_pic_FC='-KPIC'
12231 lt_prog_compiler_static_FC='-Bstatic'
12234 unicos*)
12235 lt_prog_compiler_wl_FC='-Wl,'
12236 lt_prog_compiler_can_build_shared_FC=no
12239 uts4*)
12240 lt_prog_compiler_pic_FC='-pic'
12241 lt_prog_compiler_static_FC='-Bstatic'
12245 lt_prog_compiler_can_build_shared_FC=no
12247 esac
12250 case $host_os in
12251 # For platforms which do not support PIC, -DPIC is meaningless:
12252 *djgpp*)
12253 lt_prog_compiler_pic_FC=
12256 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12258 esac
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12260 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12265 # Check to make sure the PIC flag actually works.
12267 if test -n "$lt_prog_compiler_pic_FC"; then
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12269 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12270 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12271 $as_echo_n "(cached) " >&6
12272 else
12273 lt_cv_prog_compiler_pic_works_FC=no
12274 ac_outfile=conftest.$ac_objext
12275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12276 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12277 # Insert the option either (1) after the last *FLAGS variable, or
12278 # (2) before a word containing "conftest.", or (3) at the end.
12279 # Note that $ac_compile itself does not contain backslashes and begins
12280 # with a dollar sign (not a hyphen), so the echo should work correctly.
12281 # The option is referenced via a variable to avoid confusing sed.
12282 lt_compile=`echo "$ac_compile" | $SED \
12283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12285 -e 's:$: $lt_compiler_flag:'`
12286 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12287 (eval "$lt_compile" 2>conftest.err)
12288 ac_status=$?
12289 cat conftest.err >&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 if (exit $ac_status) && test -s "$ac_outfile"; then
12292 # The compiler can only warn and ignore the option if not recognized
12293 # So say no if there are warnings other than the usual output.
12294 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12296 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12297 lt_cv_prog_compiler_pic_works_FC=yes
12300 $RM conftest*
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12304 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12306 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12307 case $lt_prog_compiler_pic_FC in
12308 "" | " "*) ;;
12309 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12310 esac
12311 else
12312 lt_prog_compiler_pic_FC=
12313 lt_prog_compiler_can_build_shared_FC=no
12321 # Check to make sure the static flag actually works.
12323 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12325 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12326 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 lt_cv_prog_compiler_static_works_FC=no
12330 save_LDFLAGS="$LDFLAGS"
12331 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12332 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12333 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12334 # The linker can only warn and ignore the option if not recognized
12335 # So say no if there are warnings
12336 if test -s conftest.err; then
12337 # Append any errors to the config.log.
12338 cat conftest.err 1>&5
12339 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12341 if diff conftest.exp conftest.er2 >/dev/null; then
12342 lt_cv_prog_compiler_static_works_FC=yes
12344 else
12345 lt_cv_prog_compiler_static_works_FC=yes
12348 $RM -r conftest*
12349 LDFLAGS="$save_LDFLAGS"
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12353 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12355 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12357 else
12358 lt_prog_compiler_static_FC=
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12365 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12366 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 lt_cv_prog_compiler_c_o_FC=no
12370 $RM -r conftest 2>/dev/null
12371 mkdir conftest
12372 cd conftest
12373 mkdir out
12374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12376 lt_compiler_flag="-o out/conftest2.$ac_objext"
12377 # Insert the option either (1) after the last *FLAGS variable, or
12378 # (2) before a word containing "conftest.", or (3) at the end.
12379 # Note that $ac_compile itself does not contain backslashes and begins
12380 # with a dollar sign (not a hyphen), so the echo should work correctly.
12381 lt_compile=`echo "$ac_compile" | $SED \
12382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12384 -e 's:$: $lt_compiler_flag:'`
12385 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12386 (eval "$lt_compile" 2>out/conftest.err)
12387 ac_status=$?
12388 cat out/conftest.err >&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12391 then
12392 # The compiler can only warn and ignore the option if not recognized
12393 # So say no if there are warnings
12394 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12395 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12396 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12397 lt_cv_prog_compiler_c_o_FC=yes
12400 chmod u+w . 2>&5
12401 $RM conftest*
12402 # SGI C++ compiler will create directory out/ii_files/ for
12403 # template instantiation
12404 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12405 $RM out/* && rmdir out
12406 cd ..
12407 $RM -r conftest
12408 $RM conftest*
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12412 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12417 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12418 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12419 $as_echo_n "(cached) " >&6
12420 else
12421 lt_cv_prog_compiler_c_o_FC=no
12422 $RM -r conftest 2>/dev/null
12423 mkdir conftest
12424 cd conftest
12425 mkdir out
12426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12428 lt_compiler_flag="-o out/conftest2.$ac_objext"
12429 # Insert the option either (1) after the last *FLAGS variable, or
12430 # (2) before a word containing "conftest.", or (3) at the end.
12431 # Note that $ac_compile itself does not contain backslashes and begins
12432 # with a dollar sign (not a hyphen), so the echo should work correctly.
12433 lt_compile=`echo "$ac_compile" | $SED \
12434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12436 -e 's:$: $lt_compiler_flag:'`
12437 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12438 (eval "$lt_compile" 2>out/conftest.err)
12439 ac_status=$?
12440 cat out/conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12443 then
12444 # The compiler can only warn and ignore the option if not recognized
12445 # So say no if there are warnings
12446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12447 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12448 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12449 lt_cv_prog_compiler_c_o_FC=yes
12452 chmod u+w . 2>&5
12453 $RM conftest*
12454 # SGI C++ compiler will create directory out/ii_files/ for
12455 # template instantiation
12456 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12457 $RM out/* && rmdir out
12458 cd ..
12459 $RM -r conftest
12460 $RM conftest*
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12464 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12469 hard_links="nottested"
12470 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12471 # do not overwrite the value of need_locks provided by the user
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12473 $as_echo_n "checking if we can lock with hard links... " >&6; }
12474 hard_links=yes
12475 $RM conftest*
12476 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12477 touch conftest.a
12478 ln conftest.a conftest.b 2>&5 || hard_links=no
12479 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12481 $as_echo "$hard_links" >&6; }
12482 if test "$hard_links" = no; then
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12484 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12485 need_locks=warn
12487 else
12488 need_locks=no
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12494 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12496 runpath_var=
12497 allow_undefined_flag_FC=
12498 always_export_symbols_FC=no
12499 archive_cmds_FC=
12500 archive_expsym_cmds_FC=
12501 compiler_needs_object_FC=no
12502 enable_shared_with_static_runtimes_FC=no
12503 export_dynamic_flag_spec_FC=
12504 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12505 hardcode_automatic_FC=no
12506 hardcode_direct_FC=no
12507 hardcode_direct_absolute_FC=no
12508 hardcode_libdir_flag_spec_FC=
12509 hardcode_libdir_flag_spec_ld_FC=
12510 hardcode_libdir_separator_FC=
12511 hardcode_minus_L_FC=no
12512 hardcode_shlibpath_var_FC=unsupported
12513 inherit_rpath_FC=no
12514 link_all_deplibs_FC=unknown
12515 module_cmds_FC=
12516 module_expsym_cmds_FC=
12517 old_archive_from_new_cmds_FC=
12518 old_archive_from_expsyms_cmds_FC=
12519 thread_safe_flag_spec_FC=
12520 whole_archive_flag_spec_FC=
12521 # include_expsyms should be a list of space-separated symbols to be *always*
12522 # included in the symbol list
12523 include_expsyms_FC=
12524 # exclude_expsyms can be an extended regexp of symbols to exclude
12525 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12526 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12527 # as well as any symbol that contains `d'.
12528 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12529 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12530 # platforms (ab)use it in PIC code, but their linkers get confused if
12531 # the symbol is explicitly referenced. Since portable code cannot
12532 # rely on this symbol name, it's probably fine to never include it in
12533 # preloaded symbol tables.
12534 # Exclude shared library initialization/finalization symbols.
12535 extract_expsyms_cmds=
12537 case $host_os in
12538 cygwin* | mingw* | pw32* | cegcc*)
12539 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12540 # When not using gcc, we currently assume that we are using
12541 # Microsoft Visual C++.
12542 if test "$GCC" != yes; then
12543 with_gnu_ld=no
12546 interix*)
12547 # we just hope/assume this is gcc and not c89 (= MSVC++)
12548 with_gnu_ld=yes
12550 openbsd*)
12551 with_gnu_ld=no
12553 esac
12555 ld_shlibs_FC=yes
12557 # On some targets, GNU ld is compatible enough with the native linker
12558 # that we're better off using the native interface for both.
12559 lt_use_gnu_ld_interface=no
12560 if test "$with_gnu_ld" = yes; then
12561 case $host_os in
12562 aix*)
12563 # The AIX port of GNU ld has always aspired to compatibility
12564 # with the native linker. However, as the warning in the GNU ld
12565 # block says, versions before 2.19.5* couldn't really create working
12566 # shared libraries, regardless of the interface used.
12567 case `$LD -v 2>&1` in
12568 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12569 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12570 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12572 lt_use_gnu_ld_interface=yes
12574 esac
12577 lt_use_gnu_ld_interface=yes
12579 esac
12582 if test "$lt_use_gnu_ld_interface" = yes; then
12583 # If archive_cmds runs LD, not CC, wlarc should be empty
12584 wlarc='${wl}'
12586 # Set some defaults for GNU ld with shared library support. These
12587 # are reset later if shared libraries are not supported. Putting them
12588 # here allows them to be overridden if necessary.
12589 runpath_var=LD_RUN_PATH
12590 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12591 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12592 # ancient GNU ld didn't support --whole-archive et. al.
12593 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12594 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12595 else
12596 whole_archive_flag_spec_FC=
12598 supports_anon_versioning=no
12599 case `$LD -v 2>&1` in
12600 *GNU\ gold*) supports_anon_versioning=yes ;;
12601 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12602 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12603 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12604 *\ 2.11.*) ;; # other 2.11 versions
12605 *) supports_anon_versioning=yes ;;
12606 esac
12608 # See if GNU ld supports shared libraries.
12609 case $host_os in
12610 aix[3-9]*)
12611 # On AIX/PPC, the GNU linker is very broken
12612 if test "$host_cpu" != ia64; then
12613 ld_shlibs_FC=no
12614 cat <<_LT_EOF 1>&2
12616 *** Warning: the GNU linker, at least up to release 2.19, is reported
12617 *** to be unable to reliably create shared libraries on AIX.
12618 *** Therefore, libtool is disabling shared libraries support. If you
12619 *** really care for shared libraries, you may want to install binutils
12620 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12621 *** You will then need to restart the configuration process.
12623 _LT_EOF
12627 amigaos*)
12628 case $host_cpu in
12629 powerpc)
12630 # see comment about AmigaOS4 .so support
12631 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12632 archive_expsym_cmds_FC=''
12634 m68k)
12635 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)'
12636 hardcode_libdir_flag_spec_FC='-L$libdir'
12637 hardcode_minus_L_FC=yes
12639 esac
12642 beos*)
12643 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12644 allow_undefined_flag_FC=unsupported
12645 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12646 # support --undefined. This deserves some investigation. FIXME
12647 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12648 else
12649 ld_shlibs_FC=no
12653 cygwin* | mingw* | pw32* | cegcc*)
12654 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12655 # as there is no search path for DLLs.
12656 hardcode_libdir_flag_spec_FC='-L$libdir'
12657 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12658 allow_undefined_flag_FC=unsupported
12659 always_export_symbols_FC=no
12660 enable_shared_with_static_runtimes_FC=yes
12661 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12663 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12664 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12665 # If the export-symbols file already is a .def file (1st line
12666 # is EXPORTS), use it as is; otherwise, prepend...
12667 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12668 cp $export_symbols $output_objdir/$soname.def;
12669 else
12670 echo EXPORTS > $output_objdir/$soname.def;
12671 cat $export_symbols >> $output_objdir/$soname.def;
12673 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12674 else
12675 ld_shlibs_FC=no
12679 haiku*)
12680 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12681 link_all_deplibs_FC=yes
12684 interix[3-9]*)
12685 hardcode_direct_FC=no
12686 hardcode_shlibpath_var_FC=no
12687 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12688 export_dynamic_flag_spec_FC='${wl}-E'
12689 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12690 # Instead, shared libraries are loaded at an image base (0x10000000 by
12691 # default) and relocated if they conflict, which is a slow very memory
12692 # consuming and fragmenting process. To avoid this, we pick a random,
12693 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12694 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12695 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'
12696 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'
12699 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12700 tmp_diet=no
12701 if test "$host_os" = linux-dietlibc; then
12702 case $cc_basename in
12703 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12704 esac
12706 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12707 && test "$tmp_diet" = no
12708 then
12709 tmp_addflag=
12710 tmp_sharedflag='-shared'
12711 case $cc_basename,$host_cpu in
12712 pgcc*) # Portland Group C compiler
12713 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'
12714 tmp_addflag=' $pic_flag'
12716 pgf77* | pgf90* | pgf95* | pgfortran*)
12717 # Portland Group f77 and f90 compilers
12718 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'
12719 tmp_addflag=' $pic_flag -Mnomain' ;;
12720 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12721 tmp_addflag=' -i_dynamic' ;;
12722 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12723 tmp_addflag=' -i_dynamic -nofor_main' ;;
12724 ifc* | ifort*) # Intel Fortran compiler
12725 tmp_addflag=' -nofor_main' ;;
12726 lf95*) # Lahey Fortran 8.1
12727 whole_archive_flag_spec_FC=
12728 tmp_sharedflag='--shared' ;;
12729 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12730 tmp_sharedflag='-qmkshrobj'
12731 tmp_addflag= ;;
12732 nvcc*) # Cuda Compiler Driver 2.2
12733 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'
12734 compiler_needs_object_FC=yes
12736 esac
12737 case `$CC -V 2>&1 | sed 5q` in
12738 *Sun\ C*) # Sun C 5.9
12739 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'
12740 compiler_needs_object_FC=yes
12741 tmp_sharedflag='-G' ;;
12742 *Sun\ F*) # Sun Fortran 8.3
12743 tmp_sharedflag='-G' ;;
12744 esac
12745 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12747 if test "x$supports_anon_versioning" = xyes; then
12748 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12749 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12750 echo "local: *; };" >> $output_objdir/$libname.ver~
12751 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12754 case $cc_basename in
12755 xlf* | bgf* | bgxlf* | mpixlf*)
12756 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12757 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12758 hardcode_libdir_flag_spec_FC=
12759 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12760 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12761 if test "x$supports_anon_versioning" = xyes; then
12762 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12763 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12764 echo "local: *; };" >> $output_objdir/$libname.ver~
12765 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12768 esac
12769 else
12770 ld_shlibs_FC=no
12774 netbsd*)
12775 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12776 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12777 wlarc=
12778 else
12779 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12780 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12784 solaris*)
12785 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12786 ld_shlibs_FC=no
12787 cat <<_LT_EOF 1>&2
12789 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12790 *** create shared libraries on Solaris systems. Therefore, libtool
12791 *** is disabling shared libraries support. We urge you to upgrade GNU
12792 *** binutils to release 2.9.1 or newer. Another option is to modify
12793 *** your PATH or compiler configuration so that the native linker is
12794 *** used, and then restart.
12796 _LT_EOF
12797 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12798 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12799 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12800 else
12801 ld_shlibs_FC=no
12805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12806 case `$LD -v 2>&1` in
12807 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12808 ld_shlibs_FC=no
12809 cat <<_LT_EOF 1>&2
12811 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12812 *** reliably create shared libraries on SCO systems. Therefore, libtool
12813 *** is disabling shared libraries support. We urge you to upgrade GNU
12814 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12815 *** your PATH or compiler configuration so that the native linker is
12816 *** used, and then restart.
12818 _LT_EOF
12821 # For security reasons, it is highly recommended that you always
12822 # use absolute paths for naming shared libraries, and exclude the
12823 # DT_RUNPATH tag from executables and libraries. But doing so
12824 # requires that you compile everything twice, which is a pain.
12825 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12826 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12827 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12828 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12829 else
12830 ld_shlibs_FC=no
12833 esac
12836 sunos4*)
12837 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12838 wlarc=
12839 hardcode_direct_FC=yes
12840 hardcode_shlibpath_var_FC=no
12844 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12845 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12846 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12847 else
12848 ld_shlibs_FC=no
12851 esac
12853 if test "$ld_shlibs_FC" = no; then
12854 runpath_var=
12855 hardcode_libdir_flag_spec_FC=
12856 export_dynamic_flag_spec_FC=
12857 whole_archive_flag_spec_FC=
12859 else
12860 # PORTME fill in a description of your system's linker (not GNU ld)
12861 case $host_os in
12862 aix3*)
12863 allow_undefined_flag_FC=unsupported
12864 always_export_symbols_FC=yes
12865 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'
12866 # Note: this linker hardcodes the directories in LIBPATH if there
12867 # are no directories specified by -L.
12868 hardcode_minus_L_FC=yes
12869 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12870 # Neither direct hardcoding nor static linking is supported with a
12871 # broken collect2.
12872 hardcode_direct_FC=unsupported
12876 aix[4-9]*)
12877 if test "$host_cpu" = ia64; then
12878 # On IA64, the linker does run time linking by default, so we don't
12879 # have to do anything special.
12880 aix_use_runtimelinking=no
12881 exp_sym_flag='-Bexport'
12882 no_entry_flag=""
12883 else
12884 # If we're using GNU nm, then we don't want the "-C" option.
12885 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12886 # Also, AIX nm treats weak defined symbols like other global
12887 # defined symbols, whereas GNU nm marks them as "W".
12888 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12889 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'
12890 else
12891 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'
12893 aix_use_runtimelinking=no
12895 # Test if we are trying to use run time linking or normal
12896 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12897 # need to do runtime linking.
12898 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12899 for ld_flag in $LDFLAGS; do
12900 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12901 aix_use_runtimelinking=yes
12902 break
12904 done
12906 esac
12908 exp_sym_flag='-bexport'
12909 no_entry_flag='-bnoentry'
12912 # When large executables or shared objects are built, AIX ld can
12913 # have problems creating the table of contents. If linking a library
12914 # or program results in "error TOC overflow" add -mminimal-toc to
12915 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12916 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12918 archive_cmds_FC=''
12919 hardcode_direct_FC=yes
12920 hardcode_direct_absolute_FC=yes
12921 hardcode_libdir_separator_FC=':'
12922 link_all_deplibs_FC=yes
12923 file_list_spec_FC='${wl}-f,'
12925 if test "$GCC" = yes; then
12926 case $host_os in aix4.[012]|aix4.[012].*)
12927 # We only want to do this on AIX 4.2 and lower, the check
12928 # below for broken collect2 doesn't work under 4.3+
12929 collect2name=`${CC} -print-prog-name=collect2`
12930 if test -f "$collect2name" &&
12931 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12932 then
12933 # We have reworked collect2
12935 else
12936 # We have old collect2
12937 hardcode_direct_FC=unsupported
12938 # It fails to find uninstalled libraries when the uninstalled
12939 # path is not listed in the libpath. Setting hardcode_minus_L
12940 # to unsupported forces relinking
12941 hardcode_minus_L_FC=yes
12942 hardcode_libdir_flag_spec_FC='-L$libdir'
12943 hardcode_libdir_separator_FC=
12946 esac
12947 shared_flag='-shared'
12948 if test "$aix_use_runtimelinking" = yes; then
12949 shared_flag="$shared_flag "'${wl}-G'
12951 else
12952 # not using gcc
12953 if test "$host_cpu" = ia64; then
12954 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12955 # chokes on -Wl,-G. The following line is correct:
12956 shared_flag='-G'
12957 else
12958 if test "$aix_use_runtimelinking" = yes; then
12959 shared_flag='${wl}-G'
12960 else
12961 shared_flag='${wl}-bM:SRE'
12966 export_dynamic_flag_spec_FC='${wl}-bexpall'
12967 # It seems that -bexpall does not export symbols beginning with
12968 # underscore (_), so it is better to generate a list of symbols to export.
12969 always_export_symbols_FC=yes
12970 if test "$aix_use_runtimelinking" = yes; then
12971 # Warning - without using the other runtime loading flags (-brtl),
12972 # -berok will link without error, but may produce a broken library.
12973 allow_undefined_flag_FC='-berok'
12974 # Determine the default libpath from the value encoded in an
12975 # empty executable.
12976 cat > conftest.$ac_ext <<_ACEOF
12977 program main
12980 _ACEOF
12981 if ac_fn_fc_try_link "$LINENO"; then :
12983 lt_aix_libpath_sed='
12984 /Import File Strings/,/^$/ {
12985 /^0/ {
12986 s/^0 *\(.*\)$/\1/
12990 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12991 # Check for a 64-bit object if we didn't find anything.
12992 if test -z "$aix_libpath"; then
12993 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12996 rm -f core conftest.err conftest.$ac_objext \
12997 conftest$ac_exeext conftest.$ac_ext
12998 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13000 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13001 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"
13002 else
13003 if test "$host_cpu" = ia64; then
13004 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13005 allow_undefined_flag_FC="-z nodefs"
13006 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"
13007 else
13008 # Determine the default libpath from the value encoded in an
13009 # empty executable.
13010 cat > conftest.$ac_ext <<_ACEOF
13011 program main
13014 _ACEOF
13015 if ac_fn_fc_try_link "$LINENO"; then :
13017 lt_aix_libpath_sed='
13018 /Import File Strings/,/^$/ {
13019 /^0/ {
13020 s/^0 *\(.*\)$/\1/
13024 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13025 # Check for a 64-bit object if we didn't find anything.
13026 if test -z "$aix_libpath"; then
13027 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13030 rm -f core conftest.err conftest.$ac_objext \
13031 conftest$ac_exeext conftest.$ac_ext
13032 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13034 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13035 # Warning - without using the other run time loading flags,
13036 # -berok will link without error, but may produce a broken library.
13037 no_undefined_flag_FC=' ${wl}-bernotok'
13038 allow_undefined_flag_FC=' ${wl}-berok'
13039 if test "$with_gnu_ld" = yes; then
13040 # We only use this code for GNU lds that support --whole-archive.
13041 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13042 else
13043 # Exported symbols can be pulled into shared objects from archives
13044 whole_archive_flag_spec_FC='$convenience'
13046 archive_cmds_need_lc_FC=yes
13047 # This is similar to how AIX traditionally builds its shared libraries.
13048 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'
13053 amigaos*)
13054 case $host_cpu in
13055 powerpc)
13056 # see comment about AmigaOS4 .so support
13057 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13058 archive_expsym_cmds_FC=''
13060 m68k)
13061 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)'
13062 hardcode_libdir_flag_spec_FC='-L$libdir'
13063 hardcode_minus_L_FC=yes
13065 esac
13068 bsdi[45]*)
13069 export_dynamic_flag_spec_FC=-rdynamic
13072 cygwin* | mingw* | pw32* | cegcc*)
13073 # When not using gcc, we currently assume that we are using
13074 # Microsoft Visual C++.
13075 # hardcode_libdir_flag_spec is actually meaningless, as there is
13076 # no search path for DLLs.
13077 hardcode_libdir_flag_spec_FC=' '
13078 allow_undefined_flag_FC=unsupported
13079 # Tell ltmain to make .lib files, not .a files.
13080 libext=lib
13081 # Tell ltmain to make .dll files, not .so files.
13082 shrext_cmds=".dll"
13083 # FIXME: Setting linknames here is a bad hack.
13084 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13085 # The linker will automatically build a .lib file if we build a DLL.
13086 old_archive_from_new_cmds_FC='true'
13087 # FIXME: Should let the user specify the lib program.
13088 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13089 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13090 enable_shared_with_static_runtimes_FC=yes
13093 darwin* | rhapsody*)
13096 archive_cmds_need_lc_FC=no
13097 hardcode_direct_FC=no
13098 hardcode_automatic_FC=yes
13099 hardcode_shlibpath_var_FC=unsupported
13100 if test "$lt_cv_ld_force_load" = "yes"; then
13101 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\"`'
13102 else
13103 whole_archive_flag_spec_FC=''
13105 link_all_deplibs_FC=yes
13106 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13107 case $cc_basename in
13108 ifort*) _lt_dar_can_shared=yes ;;
13109 *) _lt_dar_can_shared=$GCC ;;
13110 esac
13111 if test "$_lt_dar_can_shared" = "yes"; then
13112 output_verbose_link_cmd=func_echo_all
13113 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}"
13114 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13115 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}"
13116 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}"
13118 else
13119 ld_shlibs_FC=no
13124 dgux*)
13125 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13126 hardcode_libdir_flag_spec_FC='-L$libdir'
13127 hardcode_shlibpath_var_FC=no
13130 freebsd1*)
13131 ld_shlibs_FC=no
13134 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13135 # support. Future versions do this automatically, but an explicit c++rt0.o
13136 # does not break anything, and helps significantly (at the cost of a little
13137 # extra space).
13138 freebsd2.2*)
13139 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13140 hardcode_libdir_flag_spec_FC='-R$libdir'
13141 hardcode_direct_FC=yes
13142 hardcode_shlibpath_var_FC=no
13145 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13146 freebsd2*)
13147 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13148 hardcode_direct_FC=yes
13149 hardcode_minus_L_FC=yes
13150 hardcode_shlibpath_var_FC=no
13153 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13154 freebsd* | dragonfly*)
13155 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13156 hardcode_libdir_flag_spec_FC='-R$libdir'
13157 hardcode_direct_FC=yes
13158 hardcode_shlibpath_var_FC=no
13161 hpux9*)
13162 if test "$GCC" = yes; then
13163 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'
13164 else
13165 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'
13167 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13168 hardcode_libdir_separator_FC=:
13169 hardcode_direct_FC=yes
13171 # hardcode_minus_L: Not really in the search PATH,
13172 # but as the default location of the library.
13173 hardcode_minus_L_FC=yes
13174 export_dynamic_flag_spec_FC='${wl}-E'
13177 hpux10*)
13178 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13179 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13180 else
13181 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13183 if test "$with_gnu_ld" = no; then
13184 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13185 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13186 hardcode_libdir_separator_FC=:
13187 hardcode_direct_FC=yes
13188 hardcode_direct_absolute_FC=yes
13189 export_dynamic_flag_spec_FC='${wl}-E'
13190 # hardcode_minus_L: Not really in the search PATH,
13191 # but as the default location of the library.
13192 hardcode_minus_L_FC=yes
13196 hpux11*)
13197 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13198 case $host_cpu in
13199 hppa*64*)
13200 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13202 ia64*)
13203 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13206 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13208 esac
13209 else
13210 case $host_cpu in
13211 hppa*64*)
13212 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13214 ia64*)
13215 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13218 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13220 esac
13222 if test "$with_gnu_ld" = no; then
13223 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13224 hardcode_libdir_separator_FC=:
13226 case $host_cpu in
13227 hppa*64*|ia64*)
13228 hardcode_direct_FC=no
13229 hardcode_shlibpath_var_FC=no
13232 hardcode_direct_FC=yes
13233 hardcode_direct_absolute_FC=yes
13234 export_dynamic_flag_spec_FC='${wl}-E'
13236 # hardcode_minus_L: Not really in the search PATH,
13237 # but as the default location of the library.
13238 hardcode_minus_L_FC=yes
13240 esac
13244 irix5* | irix6* | nonstopux*)
13245 if test "$GCC" = yes; then
13246 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'
13247 # Try to use the -exported_symbol ld option, if it does not
13248 # work, assume that -exports_file does not work either and
13249 # implicitly export all symbols.
13250 save_LDFLAGS="$LDFLAGS"
13251 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13252 cat > conftest.$ac_ext <<_ACEOF
13253 int foo(void) {}
13254 _ACEOF
13255 if ac_fn_fc_try_link "$LINENO"; then :
13256 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'
13259 rm -f core conftest.err conftest.$ac_objext \
13260 conftest$ac_exeext conftest.$ac_ext
13261 LDFLAGS="$save_LDFLAGS"
13262 else
13263 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'
13264 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'
13266 archive_cmds_need_lc_FC='no'
13267 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13268 hardcode_libdir_separator_FC=:
13269 inherit_rpath_FC=yes
13270 link_all_deplibs_FC=yes
13273 netbsd*)
13274 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13275 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13276 else
13277 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13279 hardcode_libdir_flag_spec_FC='-R$libdir'
13280 hardcode_direct_FC=yes
13281 hardcode_shlibpath_var_FC=no
13284 newsos6)
13285 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13286 hardcode_direct_FC=yes
13287 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13288 hardcode_libdir_separator_FC=:
13289 hardcode_shlibpath_var_FC=no
13292 *nto* | *qnx*)
13295 openbsd*)
13296 if test -f /usr/libexec/ld.so; then
13297 hardcode_direct_FC=yes
13298 hardcode_shlibpath_var_FC=no
13299 hardcode_direct_absolute_FC=yes
13300 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13301 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13302 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13303 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13304 export_dynamic_flag_spec_FC='${wl}-E'
13305 else
13306 case $host_os in
13307 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13308 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13309 hardcode_libdir_flag_spec_FC='-R$libdir'
13312 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13313 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13315 esac
13317 else
13318 ld_shlibs_FC=no
13322 os2*)
13323 hardcode_libdir_flag_spec_FC='-L$libdir'
13324 hardcode_minus_L_FC=yes
13325 allow_undefined_flag_FC=unsupported
13326 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'
13327 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13330 osf3*)
13331 if test "$GCC" = yes; then
13332 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13333 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'
13334 else
13335 allow_undefined_flag_FC=' -expect_unresolved \*'
13336 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'
13338 archive_cmds_need_lc_FC='no'
13339 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13340 hardcode_libdir_separator_FC=:
13343 osf4* | osf5*) # as osf3* with the addition of -msym flag
13344 if test "$GCC" = yes; then
13345 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13346 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'
13347 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13348 else
13349 allow_undefined_flag_FC=' -expect_unresolved \*'
13350 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'
13351 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~
13352 $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'
13354 # Both c and cxx compiler support -rpath directly
13355 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13357 archive_cmds_need_lc_FC='no'
13358 hardcode_libdir_separator_FC=:
13361 solaris*)
13362 no_undefined_flag_FC=' -z defs'
13363 if test "$GCC" = yes; then
13364 wlarc='${wl}'
13365 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13366 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13367 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13368 else
13369 case `$CC -V 2>&1` in
13370 *"Compilers 5.0"*)
13371 wlarc=''
13372 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13373 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13374 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13377 wlarc='${wl}'
13378 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13379 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13380 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13382 esac
13384 hardcode_libdir_flag_spec_FC='-R$libdir'
13385 hardcode_shlibpath_var_FC=no
13386 case $host_os in
13387 solaris2.[0-5] | solaris2.[0-5].*) ;;
13389 # The compiler driver will combine and reorder linker options,
13390 # but understands `-z linker_flag'. GCC discards it without `$wl',
13391 # but is careful enough not to reorder.
13392 # Supported since Solaris 2.6 (maybe 2.5.1?)
13393 if test "$GCC" = yes; then
13394 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13395 else
13396 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13399 esac
13400 link_all_deplibs_FC=yes
13403 sunos4*)
13404 if test "x$host_vendor" = xsequent; then
13405 # Use $CC to link under sequent, because it throws in some extra .o
13406 # files that make .init and .fini sections work.
13407 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13408 else
13409 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13411 hardcode_libdir_flag_spec_FC='-L$libdir'
13412 hardcode_direct_FC=yes
13413 hardcode_minus_L_FC=yes
13414 hardcode_shlibpath_var_FC=no
13417 sysv4)
13418 case $host_vendor in
13419 sni)
13420 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13421 hardcode_direct_FC=yes # is this really true???
13423 siemens)
13424 ## LD is ld it makes a PLAMLIB
13425 ## CC just makes a GrossModule.
13426 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13427 reload_cmds_FC='$CC -r -o $output$reload_objs'
13428 hardcode_direct_FC=no
13430 motorola)
13431 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13432 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13434 esac
13435 runpath_var='LD_RUN_PATH'
13436 hardcode_shlibpath_var_FC=no
13439 sysv4.3*)
13440 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13441 hardcode_shlibpath_var_FC=no
13442 export_dynamic_flag_spec_FC='-Bexport'
13445 sysv4*MP*)
13446 if test -d /usr/nec; then
13447 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13448 hardcode_shlibpath_var_FC=no
13449 runpath_var=LD_RUN_PATH
13450 hardcode_runpath_var=yes
13451 ld_shlibs_FC=yes
13455 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13456 no_undefined_flag_FC='${wl}-z,text'
13457 archive_cmds_need_lc_FC=no
13458 hardcode_shlibpath_var_FC=no
13459 runpath_var='LD_RUN_PATH'
13461 if test "$GCC" = yes; then
13462 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13463 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13464 else
13465 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13466 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13470 sysv5* | sco3.2v5* | sco5v6*)
13471 # Note: We can NOT use -z defs as we might desire, because we do not
13472 # link with -lc, and that would cause any symbols used from libc to
13473 # always be unresolved, which means just about no library would
13474 # ever link correctly. If we're not using GNU ld we use -z text
13475 # though, which does catch some bad symbols but isn't as heavy-handed
13476 # as -z defs.
13477 no_undefined_flag_FC='${wl}-z,text'
13478 allow_undefined_flag_FC='${wl}-z,nodefs'
13479 archive_cmds_need_lc_FC=no
13480 hardcode_shlibpath_var_FC=no
13481 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13482 hardcode_libdir_separator_FC=':'
13483 link_all_deplibs_FC=yes
13484 export_dynamic_flag_spec_FC='${wl}-Bexport'
13485 runpath_var='LD_RUN_PATH'
13487 if test "$GCC" = yes; then
13488 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13489 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13490 else
13491 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13492 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13496 uts4*)
13497 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13498 hardcode_libdir_flag_spec_FC='-L$libdir'
13499 hardcode_shlibpath_var_FC=no
13503 ld_shlibs_FC=no
13505 esac
13507 if test x$host_vendor = xsni; then
13508 case $host in
13509 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13510 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13512 esac
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13517 $as_echo "$ld_shlibs_FC" >&6; }
13518 test "$ld_shlibs_FC" = no && can_build_shared=no
13520 with_gnu_ld_FC=$with_gnu_ld
13528 # Do we need to explicitly link libc?
13530 case "x$archive_cmds_need_lc_FC" in
13531 x|xyes)
13532 # Assume -lc should be added
13533 archive_cmds_need_lc_FC=yes
13535 if test "$enable_shared" = yes && test "$GCC" = yes; then
13536 case $archive_cmds_FC in
13537 *'~'*)
13538 # FIXME: we may have to deal with multi-command sequences.
13540 '$CC '*)
13541 # Test whether the compiler implicitly links with -lc since on some
13542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13543 # to ld, don't add -lc before -lgcc.
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13545 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13546 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13547 $as_echo_n "(cached) " >&6
13548 else
13549 $RM conftest*
13550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13553 (eval $ac_compile) 2>&5
13554 ac_status=$?
13555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13556 test $ac_status = 0; } 2>conftest.err; then
13557 soname=conftest
13558 lib=conftest
13559 libobjs=conftest.$ac_objext
13560 deplibs=
13561 wl=$lt_prog_compiler_wl_FC
13562 pic_flag=$lt_prog_compiler_pic_FC
13563 compiler_flags=-v
13564 linker_flags=-v
13565 verstring=
13566 output_objdir=.
13567 libname=conftest
13568 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13569 allow_undefined_flag_FC=
13570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13571 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13572 ac_status=$?
13573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13574 test $ac_status = 0; }
13575 then
13576 lt_cv_archive_cmds_need_lc_FC=no
13577 else
13578 lt_cv_archive_cmds_need_lc_FC=yes
13580 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13581 else
13582 cat conftest.err 1>&5
13584 $RM conftest*
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13588 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13589 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13591 esac
13594 esac
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13660 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13662 library_names_spec=
13663 libname_spec='lib$name'
13664 soname_spec=
13665 shrext_cmds=".so"
13666 postinstall_cmds=
13667 postuninstall_cmds=
13668 finish_cmds=
13669 finish_eval=
13670 shlibpath_var=
13671 shlibpath_overrides_runpath=unknown
13672 version_type=none
13673 dynamic_linker="$host_os ld.so"
13674 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13675 need_lib_prefix=unknown
13676 hardcode_into_libs=no
13678 # when you set need_version to no, make sure it does not cause -set_version
13679 # flags to be left without arguments
13680 need_version=unknown
13682 case $host_os in
13683 aix3*)
13684 version_type=linux
13685 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13686 shlibpath_var=LIBPATH
13688 # AIX 3 has no versioning support, so we append a major version to the name.
13689 soname_spec='${libname}${release}${shared_ext}$major'
13692 aix[4-9]*)
13693 version_type=linux
13694 need_lib_prefix=no
13695 need_version=no
13696 hardcode_into_libs=yes
13697 if test "$host_cpu" = ia64; then
13698 # AIX 5 supports IA64
13699 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13700 shlibpath_var=LD_LIBRARY_PATH
13701 else
13702 # With GCC up to 2.95.x, collect2 would create an import file
13703 # for dependence libraries. The import file would start with
13704 # the line `#! .'. This would cause the generated library to
13705 # depend on `.', always an invalid library. This was fixed in
13706 # development snapshots of GCC prior to 3.0.
13707 case $host_os in
13708 aix4 | aix4.[01] | aix4.[01].*)
13709 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13710 echo ' yes '
13711 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13713 else
13714 can_build_shared=no
13717 esac
13718 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13719 # soname into executable. Probably we can add versioning support to
13720 # collect2, so additional links can be useful in future.
13721 if test "$aix_use_runtimelinking" = yes; then
13722 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13723 # instead of lib<name>.a to let people know that these are not
13724 # typical AIX shared libraries.
13725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13726 else
13727 # We preserve .a as extension for shared libraries through AIX4.2
13728 # and later when we are not doing run time linking.
13729 library_names_spec='${libname}${release}.a $libname.a'
13730 soname_spec='${libname}${release}${shared_ext}$major'
13732 shlibpath_var=LIBPATH
13736 amigaos*)
13737 case $host_cpu in
13738 powerpc)
13739 # Since July 2007 AmigaOS4 officially supports .so libraries.
13740 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13743 m68k)
13744 library_names_spec='$libname.ixlibrary $libname.a'
13745 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13746 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'
13748 esac
13751 beos*)
13752 library_names_spec='${libname}${shared_ext}'
13753 dynamic_linker="$host_os ld.so"
13754 shlibpath_var=LIBRARY_PATH
13757 bsdi[45]*)
13758 version_type=linux
13759 need_version=no
13760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13761 soname_spec='${libname}${release}${shared_ext}$major'
13762 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13763 shlibpath_var=LD_LIBRARY_PATH
13764 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13765 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13766 # the default ld.so.conf also contains /usr/contrib/lib and
13767 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13768 # libtool to hard-code these into programs
13771 cygwin* | mingw* | pw32* | cegcc*)
13772 version_type=windows
13773 shrext_cmds=".dll"
13774 need_version=no
13775 need_lib_prefix=no
13777 case $GCC,$host_os in
13778 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13779 library_names_spec='$libname.dll.a'
13780 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13781 postinstall_cmds='base_file=`basename \${file}`~
13782 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13783 dldir=$destdir/`dirname \$dlpath`~
13784 test -d \$dldir || mkdir -p \$dldir~
13785 $install_prog $dir/$dlname \$dldir/$dlname~
13786 chmod a+x \$dldir/$dlname~
13787 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13788 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13790 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13791 dlpath=$dir/\$dldll~
13792 $RM \$dlpath'
13793 shlibpath_overrides_runpath=yes
13795 case $host_os in
13796 cygwin*)
13797 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13798 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13801 mingw* | cegcc*)
13802 # MinGW DLLs use traditional 'lib' prefix
13803 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13805 pw32*)
13806 # pw32 DLLs use 'pw' prefix rather than 'lib'
13807 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13809 esac
13813 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13815 esac
13816 dynamic_linker='Win32 ld.exe'
13817 # FIXME: first we should search . and the directory the executable is in
13818 shlibpath_var=PATH
13821 darwin* | rhapsody*)
13822 dynamic_linker="$host_os dyld"
13823 version_type=darwin
13824 need_lib_prefix=no
13825 need_version=no
13826 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13827 soname_spec='${libname}${release}${major}$shared_ext'
13828 shlibpath_overrides_runpath=yes
13829 shlibpath_var=DYLD_LIBRARY_PATH
13830 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13832 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13835 dgux*)
13836 version_type=linux
13837 need_lib_prefix=no
13838 need_version=no
13839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13840 soname_spec='${libname}${release}${shared_ext}$major'
13841 shlibpath_var=LD_LIBRARY_PATH
13844 freebsd1*)
13845 dynamic_linker=no
13848 freebsd* | dragonfly*)
13849 # DragonFly does not have aout. When/if they implement a new
13850 # versioning mechanism, adjust this.
13851 if test -x /usr/bin/objformat; then
13852 objformat=`/usr/bin/objformat`
13853 else
13854 case $host_os in
13855 freebsd[123]*) objformat=aout ;;
13856 *) objformat=elf ;;
13857 esac
13859 version_type=freebsd-$objformat
13860 case $version_type in
13861 freebsd-elf*)
13862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13863 need_version=no
13864 need_lib_prefix=no
13866 freebsd-*)
13867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13868 need_version=yes
13870 esac
13871 shlibpath_var=LD_LIBRARY_PATH
13872 case $host_os in
13873 freebsd2*)
13874 shlibpath_overrides_runpath=yes
13876 freebsd3.[01]* | freebsdelf3.[01]*)
13877 shlibpath_overrides_runpath=yes
13878 hardcode_into_libs=yes
13880 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13881 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13882 shlibpath_overrides_runpath=no
13883 hardcode_into_libs=yes
13885 *) # from 4.6 on, and DragonFly
13886 shlibpath_overrides_runpath=yes
13887 hardcode_into_libs=yes
13889 esac
13892 gnu*)
13893 version_type=linux
13894 need_lib_prefix=no
13895 need_version=no
13896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13897 soname_spec='${libname}${release}${shared_ext}$major'
13898 shlibpath_var=LD_LIBRARY_PATH
13899 hardcode_into_libs=yes
13902 haiku*)
13903 version_type=linux
13904 need_lib_prefix=no
13905 need_version=no
13906 dynamic_linker="$host_os runtime_loader"
13907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13908 soname_spec='${libname}${release}${shared_ext}$major'
13909 shlibpath_var=LIBRARY_PATH
13910 shlibpath_overrides_runpath=yes
13911 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13912 hardcode_into_libs=yes
13915 hpux9* | hpux10* | hpux11*)
13916 # Give a soname corresponding to the major version so that dld.sl refuses to
13917 # link against other versions.
13918 version_type=sunos
13919 need_lib_prefix=no
13920 need_version=no
13921 case $host_cpu in
13922 ia64*)
13923 shrext_cmds='.so'
13924 hardcode_into_libs=yes
13925 dynamic_linker="$host_os dld.so"
13926 shlibpath_var=LD_LIBRARY_PATH
13927 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13929 soname_spec='${libname}${release}${shared_ext}$major'
13930 if test "X$HPUX_IA64_MODE" = X32; then
13931 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13932 else
13933 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13935 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13937 hppa*64*)
13938 shrext_cmds='.sl'
13939 hardcode_into_libs=yes
13940 dynamic_linker="$host_os dld.sl"
13941 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13942 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13944 soname_spec='${libname}${release}${shared_ext}$major'
13945 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13949 shrext_cmds='.sl'
13950 dynamic_linker="$host_os dld.sl"
13951 shlibpath_var=SHLIB_PATH
13952 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13954 soname_spec='${libname}${release}${shared_ext}$major'
13956 esac
13957 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13958 postinstall_cmds='chmod 555 $lib'
13959 # or fails outright, so override atomically:
13960 install_override_mode=555
13963 interix[3-9]*)
13964 version_type=linux
13965 need_lib_prefix=no
13966 need_version=no
13967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13968 soname_spec='${libname}${release}${shared_ext}$major'
13969 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13970 shlibpath_var=LD_LIBRARY_PATH
13971 shlibpath_overrides_runpath=no
13972 hardcode_into_libs=yes
13975 irix5* | irix6* | nonstopux*)
13976 case $host_os in
13977 nonstopux*) version_type=nonstopux ;;
13979 if test "$lt_cv_prog_gnu_ld" = yes; then
13980 version_type=linux
13981 else
13982 version_type=irix
13983 fi ;;
13984 esac
13985 need_lib_prefix=no
13986 need_version=no
13987 soname_spec='${libname}${release}${shared_ext}$major'
13988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13989 case $host_os in
13990 irix5* | nonstopux*)
13991 libsuff= shlibsuff=
13994 case $LD in # libtool.m4 will add one of these switches to LD
13995 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13996 libsuff= shlibsuff= libmagic=32-bit;;
13997 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13998 libsuff=32 shlibsuff=N32 libmagic=N32;;
13999 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14000 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14001 *) libsuff= shlibsuff= libmagic=never-match;;
14002 esac
14004 esac
14005 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14006 shlibpath_overrides_runpath=no
14007 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14008 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14009 hardcode_into_libs=yes
14012 # No shared lib support for Linux oldld, aout, or coff.
14013 linux*oldld* | linux*aout* | linux*coff*)
14014 dynamic_linker=no
14017 # This must be Linux ELF.
14018 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14019 version_type=linux
14020 need_lib_prefix=no
14021 need_version=no
14022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14023 soname_spec='${libname}${release}${shared_ext}$major'
14024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14025 shlibpath_var=LD_LIBRARY_PATH
14026 shlibpath_overrides_runpath=no
14028 # Some binutils ld are patched to set DT_RUNPATH
14029 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14030 $as_echo_n "(cached) " >&6
14031 else
14032 lt_cv_shlibpath_overrides_runpath=no
14033 save_LDFLAGS=$LDFLAGS
14034 save_libdir=$libdir
14035 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14036 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14037 cat > conftest.$ac_ext <<_ACEOF
14038 program main
14041 _ACEOF
14042 if ac_fn_fc_try_link "$LINENO"; then :
14043 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14044 lt_cv_shlibpath_overrides_runpath=yes
14047 rm -f core conftest.err conftest.$ac_objext \
14048 conftest$ac_exeext conftest.$ac_ext
14049 LDFLAGS=$save_LDFLAGS
14050 libdir=$save_libdir
14054 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14056 # This implies no fast_install, which is unacceptable.
14057 # Some rework will be needed to allow for fast_install
14058 # before this can be enabled.
14059 hardcode_into_libs=yes
14061 # Append ld.so.conf contents to the search path
14062 if test -f /etc/ld.so.conf; then
14063 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' ' '`
14064 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14067 # We used to test for /lib/ld.so.1 and disable shared libraries on
14068 # powerpc, because MkLinux only supported shared libraries with the
14069 # GNU dynamic linker. Since this was broken with cross compilers,
14070 # most powerpc-linux boxes support dynamic linking these days and
14071 # people can always --disable-shared, the test was removed, and we
14072 # assume the GNU/Linux dynamic linker is in use.
14073 dynamic_linker='GNU/Linux ld.so'
14076 netbsd*)
14077 version_type=sunos
14078 need_lib_prefix=no
14079 need_version=no
14080 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14083 dynamic_linker='NetBSD (a.out) ld.so'
14084 else
14085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14086 soname_spec='${libname}${release}${shared_ext}$major'
14087 dynamic_linker='NetBSD ld.elf_so'
14089 shlibpath_var=LD_LIBRARY_PATH
14090 shlibpath_overrides_runpath=yes
14091 hardcode_into_libs=yes
14094 newsos6)
14095 version_type=linux
14096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14097 shlibpath_var=LD_LIBRARY_PATH
14098 shlibpath_overrides_runpath=yes
14101 *nto* | *qnx*)
14102 version_type=qnx
14103 need_lib_prefix=no
14104 need_version=no
14105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14106 soname_spec='${libname}${release}${shared_ext}$major'
14107 shlibpath_var=LD_LIBRARY_PATH
14108 shlibpath_overrides_runpath=no
14109 hardcode_into_libs=yes
14110 dynamic_linker='ldqnx.so'
14113 openbsd*)
14114 version_type=sunos
14115 sys_lib_dlsearch_path_spec="/usr/lib"
14116 need_lib_prefix=no
14117 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14118 case $host_os in
14119 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14120 *) need_version=no ;;
14121 esac
14122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14124 shlibpath_var=LD_LIBRARY_PATH
14125 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14126 case $host_os in
14127 openbsd2.[89] | openbsd2.[89].*)
14128 shlibpath_overrides_runpath=no
14131 shlibpath_overrides_runpath=yes
14133 esac
14134 else
14135 shlibpath_overrides_runpath=yes
14139 os2*)
14140 libname_spec='$name'
14141 shrext_cmds=".dll"
14142 need_lib_prefix=no
14143 library_names_spec='$libname${shared_ext} $libname.a'
14144 dynamic_linker='OS/2 ld.exe'
14145 shlibpath_var=LIBPATH
14148 osf3* | osf4* | osf5*)
14149 version_type=osf
14150 need_lib_prefix=no
14151 need_version=no
14152 soname_spec='${libname}${release}${shared_ext}$major'
14153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14154 shlibpath_var=LD_LIBRARY_PATH
14155 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14156 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14159 rdos*)
14160 dynamic_linker=no
14163 solaris*)
14164 version_type=linux
14165 need_lib_prefix=no
14166 need_version=no
14167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14168 soname_spec='${libname}${release}${shared_ext}$major'
14169 shlibpath_var=LD_LIBRARY_PATH
14170 shlibpath_overrides_runpath=yes
14171 hardcode_into_libs=yes
14172 # ldd complains unless libraries are executable
14173 postinstall_cmds='chmod +x $lib'
14176 sunos4*)
14177 version_type=sunos
14178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14179 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14180 shlibpath_var=LD_LIBRARY_PATH
14181 shlibpath_overrides_runpath=yes
14182 if test "$with_gnu_ld" = yes; then
14183 need_lib_prefix=no
14185 need_version=yes
14188 sysv4 | sysv4.3*)
14189 version_type=linux
14190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14191 soname_spec='${libname}${release}${shared_ext}$major'
14192 shlibpath_var=LD_LIBRARY_PATH
14193 case $host_vendor in
14194 sni)
14195 shlibpath_overrides_runpath=no
14196 need_lib_prefix=no
14197 runpath_var=LD_RUN_PATH
14199 siemens)
14200 need_lib_prefix=no
14202 motorola)
14203 need_lib_prefix=no
14204 need_version=no
14205 shlibpath_overrides_runpath=no
14206 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14208 esac
14211 sysv4*MP*)
14212 if test -d /usr/nec ;then
14213 version_type=linux
14214 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14215 soname_spec='$libname${shared_ext}.$major'
14216 shlibpath_var=LD_LIBRARY_PATH
14220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14221 version_type=freebsd-elf
14222 need_lib_prefix=no
14223 need_version=no
14224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14225 soname_spec='${libname}${release}${shared_ext}$major'
14226 shlibpath_var=LD_LIBRARY_PATH
14227 shlibpath_overrides_runpath=yes
14228 hardcode_into_libs=yes
14229 if test "$with_gnu_ld" = yes; then
14230 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14231 else
14232 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14233 case $host_os in
14234 sco3.2v5*)
14235 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14237 esac
14239 sys_lib_dlsearch_path_spec='/usr/lib'
14242 tpf*)
14243 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14244 version_type=linux
14245 need_lib_prefix=no
14246 need_version=no
14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14248 shlibpath_var=LD_LIBRARY_PATH
14249 shlibpath_overrides_runpath=no
14250 hardcode_into_libs=yes
14253 uts4*)
14254 version_type=linux
14255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14256 soname_spec='${libname}${release}${shared_ext}$major'
14257 shlibpath_var=LD_LIBRARY_PATH
14261 dynamic_linker=no
14263 esac
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14265 $as_echo "$dynamic_linker" >&6; }
14266 test "$dynamic_linker" = no && can_build_shared=no
14268 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14269 if test "$GCC" = yes; then
14270 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14273 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14274 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14276 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14277 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14318 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14319 hardcode_action_FC=
14320 if test -n "$hardcode_libdir_flag_spec_FC" ||
14321 test -n "$runpath_var_FC" ||
14322 test "X$hardcode_automatic_FC" = "Xyes" ; then
14324 # We can hardcode non-existent directories.
14325 if test "$hardcode_direct_FC" != no &&
14326 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14327 # have to relink, otherwise we might link with an installed library
14328 # when we should be linking with a yet-to-be-installed one
14329 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14330 test "$hardcode_minus_L_FC" != no; then
14331 # Linking always hardcodes the temporary library directory.
14332 hardcode_action_FC=relink
14333 else
14334 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14335 hardcode_action_FC=immediate
14337 else
14338 # We cannot hardcode anything, or else we can only hardcode existing
14339 # directories.
14340 hardcode_action_FC=unsupported
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14343 $as_echo "$hardcode_action_FC" >&6; }
14345 if test "$hardcode_action_FC" = relink ||
14346 test "$inherit_rpath_FC" = yes; then
14347 # Fast installation is not supported
14348 enable_fast_install=no
14349 elif test "$shlibpath_overrides_runpath" = yes ||
14350 test "$enable_shared" = no; then
14351 # Fast installation is not necessary
14352 enable_fast_install=needless
14361 fi # test -n "$compiler"
14363 GCC=$lt_save_GCC
14364 CC="$lt_save_CC"
14365 fi # test "$_lt_disable_FC" != yes
14367 ac_ext=c
14368 ac_cpp='$CPP $CPPFLAGS'
14369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14374 FCFLAGS="$FCFLAGS -Wall"
14376 # For libtool versioning info, format is CURRENT:REVISION:AGE
14377 libtool_VERSION=1:0:0
14380 # Check header files.
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14382 $as_echo_n "checking for ANSI C header files... " >&6; }
14383 if test "${ac_cv_header_stdc+set}" = set; then :
14384 $as_echo_n "(cached) " >&6
14385 else
14386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14388 #include <stdlib.h>
14389 #include <stdarg.h>
14390 #include <string.h>
14391 #include <float.h>
14394 main ()
14398 return 0;
14400 _ACEOF
14401 if ac_fn_c_try_compile "$LINENO"; then :
14402 ac_cv_header_stdc=yes
14403 else
14404 ac_cv_header_stdc=no
14406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14408 if test $ac_cv_header_stdc = yes; then
14409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14412 #include <string.h>
14414 _ACEOF
14415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14416 $EGREP "memchr" >/dev/null 2>&1; then :
14418 else
14419 ac_cv_header_stdc=no
14421 rm -f conftest*
14425 if test $ac_cv_header_stdc = yes; then
14426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14428 /* end confdefs.h. */
14429 #include <stdlib.h>
14431 _ACEOF
14432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14433 $EGREP "free" >/dev/null 2>&1; then :
14435 else
14436 ac_cv_header_stdc=no
14438 rm -f conftest*
14442 if test $ac_cv_header_stdc = yes; then
14443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14444 if test "$cross_compiling" = yes; then :
14446 else
14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h. */
14449 #include <ctype.h>
14450 #include <stdlib.h>
14451 #if ((' ' & 0x0FF) == 0x020)
14452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14454 #else
14455 # define ISLOWER(c) \
14456 (('a' <= (c) && (c) <= 'i') \
14457 || ('j' <= (c) && (c) <= 'r') \
14458 || ('s' <= (c) && (c) <= 'z'))
14459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14460 #endif
14462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14464 main ()
14466 int i;
14467 for (i = 0; i < 256; i++)
14468 if (XOR (islower (i), ISLOWER (i))
14469 || toupper (i) != TOUPPER (i))
14470 return 2;
14471 return 0;
14473 _ACEOF
14474 if ac_fn_c_try_run "$LINENO"; then :
14476 else
14477 ac_cv_header_stdc=no
14479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14480 conftest.$ac_objext conftest.beam conftest.$ac_ext
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14486 $as_echo "$ac_cv_header_stdc" >&6; }
14487 if test $ac_cv_header_stdc = yes; then
14489 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14494 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14495 if test "${ac_cv_header_time+set}" = set; then :
14496 $as_echo_n "(cached) " >&6
14497 else
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14500 #include <sys/types.h>
14501 #include <sys/time.h>
14502 #include <time.h>
14505 main ()
14507 if ((struct tm *) 0)
14508 return 0;
14510 return 0;
14512 _ACEOF
14513 if ac_fn_c_try_compile "$LINENO"; then :
14514 ac_cv_header_time=yes
14515 else
14516 ac_cv_header_time=no
14518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14521 $as_echo "$ac_cv_header_time" >&6; }
14522 if test $ac_cv_header_time = yes; then
14524 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14529 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14530 if test "${gcc_cv_header_string+set}" = set; then :
14531 $as_echo_n "(cached) " >&6
14532 else
14533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14534 /* end confdefs.h. */
14535 #include <string.h>
14536 #include <strings.h>
14538 main ()
14542 return 0;
14544 _ACEOF
14545 if ac_fn_c_try_compile "$LINENO"; then :
14546 gcc_cv_header_string=yes
14547 else
14548 gcc_cv_header_string=no
14550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14553 $as_echo "$gcc_cv_header_string" >&6; }
14554 if test $gcc_cv_header_string = yes; then
14556 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14560 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
14561 do :
14562 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14563 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14564 eval as_val=\$$as_ac_Header
14565 if test "x$as_val" = x""yes; then :
14566 cat >>confdefs.h <<_ACEOF
14567 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14568 _ACEOF
14572 done
14577 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14579 acx_cv_header_stdint=stddef.h
14580 acx_cv_header_stdint_kind="(already complete)"
14581 for i in stdint.h $inttype_headers; do
14582 unset ac_cv_type_uintptr_t
14583 unset ac_cv_type_uintmax_t
14584 unset ac_cv_type_int_least32_t
14585 unset ac_cv_type_int_fast32_t
14586 unset ac_cv_type_uint64_t
14587 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14588 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14589 #include <$i>
14591 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14592 acx_cv_header_stdint=$i
14593 else
14594 continue
14597 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14598 #include <$i>
14600 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14602 else
14603 acx_cv_header_stdint_kind="(mostly complete)"
14606 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14607 #include <$i>
14609 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14611 else
14612 acx_cv_header_stdint_kind="(mostly complete)"
14615 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14616 #include <$i>
14618 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14620 else
14621 acx_cv_header_stdint_kind="(mostly complete)"
14624 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14625 #include <$i>
14627 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14629 else
14630 acx_cv_header_stdint_kind="(lacks uint64_t)"
14633 break
14634 done
14635 if test "$acx_cv_header_stdint" = stddef.h; then
14636 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14637 for i in stdint.h $inttype_headers; do
14638 unset ac_cv_type_uintptr_t
14639 unset ac_cv_type_uint32_t
14640 unset ac_cv_type_uint64_t
14641 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14642 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14643 #include <$i>
14645 if test "x$ac_cv_type_uint32_t" = x""yes; then :
14646 acx_cv_header_stdint=$i
14647 else
14648 continue
14651 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14652 #include <$i>
14654 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14658 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14659 #include <$i>
14661 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14665 break
14666 done
14668 if test "$acx_cv_header_stdint" = stddef.h; then
14669 acx_cv_header_stdint_kind="(u_intXX_t style)"
14670 for i in sys/types.h $inttype_headers; do
14671 unset ac_cv_type_u_int32_t
14672 unset ac_cv_type_u_int64_t
14673 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14674 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14675 #include <$i>
14677 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14678 acx_cv_header_stdint=$i
14679 else
14680 continue
14683 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14684 #include <$i>
14686 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14690 break
14691 done
14693 if test "$acx_cv_header_stdint" = stddef.h; then
14694 acx_cv_header_stdint_kind="(using manual detection)"
14697 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14698 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14699 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14700 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14701 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14703 # ----------------- Summarize what we found so far
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14706 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14708 case `$as_basename -- gstdint.h ||
14709 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14710 Xgstdint.h : 'X\(//\)$' \| \
14711 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14712 $as_echo X/gstdint.h |
14713 sed '/^.*\/\([^/][^/]*\)\/*$/{
14714 s//\1/
14717 /^X\/\(\/\/\)$/{
14718 s//\1/
14721 /^X\/\(\/\).*/{
14722 s//\1/
14725 s/.*/./; q'` in
14726 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14727 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14728 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14729 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14730 *) ;;
14731 esac
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14734 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14736 # ----------------- done included file, check C basic types --------
14738 # Lacking an uintptr_t? Test size of void *
14739 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14740 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14741 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14742 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14743 # This bug is HP SR number 8606223364.
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14745 $as_echo_n "checking size of void *... " >&6; }
14746 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14747 $as_echo_n "(cached) " >&6
14748 else
14749 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14751 else
14752 if test "$ac_cv_type_void_p" = yes; then
14753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14755 { as_fn_set_status 77
14756 as_fn_error "cannot compute sizeof (void *)
14757 See \`config.log' for more details." "$LINENO" 5; }; }
14758 else
14759 ac_cv_sizeof_void_p=0
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14765 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14769 cat >>confdefs.h <<_ACEOF
14770 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14771 _ACEOF
14774 esac
14776 # Lacking an uint64_t? Test size of long
14777 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14778 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14779 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14780 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14781 # This bug is HP SR number 8606223364.
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14783 $as_echo_n "checking size of long... " >&6; }
14784 if test "${ac_cv_sizeof_long+set}" = set; then :
14785 $as_echo_n "(cached) " >&6
14786 else
14787 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14789 else
14790 if test "$ac_cv_type_long" = yes; then
14791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14793 { as_fn_set_status 77
14794 as_fn_error "cannot compute sizeof (long)
14795 See \`config.log' for more details." "$LINENO" 5; }; }
14796 else
14797 ac_cv_sizeof_long=0
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14803 $as_echo "$ac_cv_sizeof_long" >&6; }
14807 cat >>confdefs.h <<_ACEOF
14808 #define SIZEOF_LONG $ac_cv_sizeof_long
14809 _ACEOF
14812 esac
14814 if test $acx_cv_header_stdint = stddef.h; then
14815 # Lacking a good header? Test size of everything and deduce all types.
14816 # The cast to long int works around a bug in the HP C Compiler
14817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14819 # This bug is HP SR number 8606223364.
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14821 $as_echo_n "checking size of int... " >&6; }
14822 if test "${ac_cv_sizeof_int+set}" = set; then :
14823 $as_echo_n "(cached) " >&6
14824 else
14825 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14827 else
14828 if test "$ac_cv_type_int" = yes; then
14829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14831 { as_fn_set_status 77
14832 as_fn_error "cannot compute sizeof (int)
14833 See \`config.log' for more details." "$LINENO" 5; }; }
14834 else
14835 ac_cv_sizeof_int=0
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14841 $as_echo "$ac_cv_sizeof_int" >&6; }
14845 cat >>confdefs.h <<_ACEOF
14846 #define SIZEOF_INT $ac_cv_sizeof_int
14847 _ACEOF
14850 # The cast to long int works around a bug in the HP C Compiler
14851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14853 # This bug is HP SR number 8606223364.
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14855 $as_echo_n "checking size of short... " >&6; }
14856 if test "${ac_cv_sizeof_short+set}" = set; then :
14857 $as_echo_n "(cached) " >&6
14858 else
14859 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14861 else
14862 if test "$ac_cv_type_short" = yes; then
14863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14865 { as_fn_set_status 77
14866 as_fn_error "cannot compute sizeof (short)
14867 See \`config.log' for more details." "$LINENO" 5; }; }
14868 else
14869 ac_cv_sizeof_short=0
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14875 $as_echo "$ac_cv_sizeof_short" >&6; }
14879 cat >>confdefs.h <<_ACEOF
14880 #define SIZEOF_SHORT $ac_cv_sizeof_short
14881 _ACEOF
14884 # The cast to long int works around a bug in the HP C Compiler
14885 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14886 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14887 # This bug is HP SR number 8606223364.
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14889 $as_echo_n "checking size of char... " >&6; }
14890 if test "${ac_cv_sizeof_char+set}" = set; then :
14891 $as_echo_n "(cached) " >&6
14892 else
14893 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14895 else
14896 if test "$ac_cv_type_char" = yes; then
14897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14899 { as_fn_set_status 77
14900 as_fn_error "cannot compute sizeof (char)
14901 See \`config.log' for more details." "$LINENO" 5; }; }
14902 else
14903 ac_cv_sizeof_char=0
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14909 $as_echo "$ac_cv_sizeof_char" >&6; }
14913 cat >>confdefs.h <<_ACEOF
14914 #define SIZEOF_CHAR $ac_cv_sizeof_char
14915 _ACEOF
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
14920 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
14921 case "$ac_cv_sizeof_char" in
14922 1) acx_cv_type_int8_t=char ;;
14923 *) { as_fn_set_status please report a bug
14924 as_fn_error "no 8-bit type" "$LINENO" 5; }
14925 esac
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
14927 $as_echo "$acx_cv_type_int8_t" >&6; }
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
14930 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
14931 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14932 2:*) acx_cv_type_int16_t=int ;;
14933 *:2) acx_cv_type_int16_t=short ;;
14934 *) { as_fn_set_status please report a bug
14935 as_fn_error "no 16-bit type" "$LINENO" 5; }
14936 esac
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
14938 $as_echo "$acx_cv_type_int16_t" >&6; }
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
14941 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
14942 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14943 4:*) acx_cv_type_int32_t=int ;;
14944 *:4) acx_cv_type_int32_t=long ;;
14945 *) { as_fn_set_status please report a bug
14946 as_fn_error "no 32-bit type" "$LINENO" 5; }
14947 esac
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
14949 $as_echo "$acx_cv_type_int32_t" >&6; }
14952 # These tests are here to make the output prettier
14954 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14955 case "$ac_cv_sizeof_long" in
14956 8) acx_cv_type_int64_t=long ;;
14957 esac
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
14959 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14961 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
14964 # Now we can use the above types
14966 if test "$ac_cv_type_uintptr_t" != yes; then
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
14968 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
14969 case $ac_cv_sizeof_void_p in
14970 2) acx_cv_type_intptr_t=int16_t ;;
14971 4) acx_cv_type_intptr_t=int32_t ;;
14972 8) acx_cv_type_intptr_t=int64_t ;;
14973 *) { as_fn_set_status please report a bug
14974 as_fn_error "no equivalent for intptr_t" "$LINENO" 5; }
14975 esac
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
14977 $as_echo "$acx_cv_type_intptr_t" >&6; }
14980 # ----------------- done all checks, emit header -------------
14981 ac_config_commands="$ac_config_commands gstdint.h"
14986 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14987 # In case the pthread.h system header is not found, this test will fail.
14988 XPCFLAGS=""
14989 CFLAGS="$CFLAGS -pthread"
14990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991 /* end confdefs.h. */
14992 #include <pthread.h>
14993 void *g(void *d) { return NULL; }
14995 main ()
14997 pthread_t t; pthread_create(&t,NULL,g,NULL);
14999 return 0;
15001 _ACEOF
15002 if ac_fn_c_try_link "$LINENO"; then :
15003 XPCFLAGS=" -Wc,-pthread"
15004 else
15005 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15007 /* end confdefs.h. */
15008 #include <pthread.h>
15009 void *g(void *d) { return NULL; }
15011 main ()
15013 pthread_t t; pthread_create(&t,NULL,g,NULL);
15015 return 0;
15017 _ACEOF
15018 if ac_fn_c_try_link "$LINENO"; then :
15020 else
15021 as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15023 rm -f core conftest.err conftest.$ac_objext \
15024 conftest$ac_exeext conftest.$ac_ext
15026 rm -f core conftest.err conftest.$ac_objext \
15027 conftest$ac_exeext conftest.$ac_ext
15029 # Check for functions needed.
15030 for ac_func in getloadavg clock_gettime strtoull
15031 do :
15032 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15033 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15034 eval as_val=\$$as_ac_var
15035 if test "x$as_val" = x""yes; then :
15036 cat >>confdefs.h <<_ACEOF
15037 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15038 _ACEOF
15041 done
15044 # Check for broken semaphore implementation on darwin.
15045 # sem_init returns: sem_init error: Function not implemented.
15046 case "$host" in
15047 *-darwin*)
15049 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15052 esac
15054 # Check whether --enable-linux-futex was given.
15055 if test "${enable_linux_futex+set}" = set; then :
15056 enableval=$enable_linux_futex;
15057 case "$enableval" in
15058 yes|no|default) ;;
15059 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15060 esac
15062 else
15063 enable_linux_futex=default
15067 case "$target" in
15068 *-linux*)
15069 case "$enable_linux_futex" in
15070 default)
15071 # If headers don't have gettid/futex syscalls definition, then
15072 # default to no, otherwise there will be compile time failures.
15073 # Otherwise, default to yes. If we don't detect we are
15074 # compiled/linked against NPTL and not cross-compiling, check
15075 # if programs are run by default against NPTL and if not, issue
15076 # a warning.
15077 enable_linux_futex=no
15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h. */
15080 #include <sys/syscall.h>
15081 int lk;
15083 main ()
15085 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15087 return 0;
15089 _ACEOF
15090 if ac_fn_c_try_link "$LINENO"; then :
15091 save_LIBS="$LIBS"
15092 LIBS="-lpthread $LIBS"
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h. */
15095 #ifndef _GNU_SOURCE
15096 #define _GNU_SOURCE 1
15097 #endif
15098 #include <pthread.h>
15099 pthread_t th; void *status;
15101 main ()
15103 pthread_tryjoin_np (th, &status);
15105 return 0;
15107 _ACEOF
15108 if ac_fn_c_try_link "$LINENO"; then :
15109 enable_linux_futex=yes
15110 else
15111 if test x$cross_compiling = xno; then
15112 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15113 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15115 If so, please configure with --disable-linux-futex" >&5
15116 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15117 If so, please configure with --disable-linux-futex" >&2;}
15120 enable_linux_futex=yes
15122 rm -f core conftest.err conftest.$ac_objext \
15123 conftest$ac_exeext conftest.$ac_ext
15124 LIBS="$save_LIBS"
15126 rm -f core conftest.err conftest.$ac_objext \
15127 conftest$ac_exeext conftest.$ac_ext
15129 yes)
15130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15131 /* end confdefs.h. */
15132 #include <sys/syscall.h>
15133 int lk;
15135 main ()
15137 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15139 return 0;
15141 _ACEOF
15142 if ac_fn_c_try_link "$LINENO"; then :
15144 else
15145 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15147 rm -f core conftest.err conftest.$ac_objext \
15148 conftest$ac_exeext conftest.$ac_ext
15150 esac
15153 enable_linux_futex=no
15155 esac
15156 if test x$enable_linux_futex = xyes; then
15161 # Check for pthread_{,attr_}[sg]etaffinity_np.
15162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163 /* end confdefs.h. */
15164 #define _GNU_SOURCE
15165 #include <pthread.h>
15167 main ()
15169 cpu_set_t cpuset;
15170 pthread_attr_t attr;
15171 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15172 if (CPU_ISSET (0, &cpuset))
15173 CPU_SET (1, &cpuset);
15174 else
15175 CPU_ZERO (&cpuset);
15176 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15177 pthread_attr_init (&attr);
15178 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15179 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15181 return 0;
15183 _ACEOF
15184 if ac_fn_c_try_link "$LINENO"; then :
15186 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15189 rm -f core conftest.err conftest.$ac_objext \
15190 conftest$ac_exeext conftest.$ac_ext
15192 # At least for glibc, clock_gettime is in librt. But don't pull that
15193 # in if it still doesn't give us the function we want.
15194 if test $ac_cv_func_clock_gettime = no; then
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15196 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15197 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15198 $as_echo_n "(cached) " >&6
15199 else
15200 ac_check_lib_save_LIBS=$LIBS
15201 LIBS="-lrt $LIBS"
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15205 /* Override any GCC internal prototype to avoid an error.
15206 Use char because int might match the return type of a GCC
15207 builtin and then its argument prototype would still apply. */
15208 #ifdef __cplusplus
15209 extern "C"
15210 #endif
15211 char clock_gettime ();
15213 main ()
15215 return clock_gettime ();
15217 return 0;
15219 _ACEOF
15220 if ac_fn_c_try_link "$LINENO"; then :
15221 ac_cv_lib_rt_clock_gettime=yes
15222 else
15223 ac_cv_lib_rt_clock_gettime=no
15225 rm -f core conftest.err conftest.$ac_objext \
15226 conftest$ac_exeext conftest.$ac_ext
15227 LIBS=$ac_check_lib_save_LIBS
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15230 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15231 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15232 LIBS="-lrt $LIBS"
15234 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15240 # See if we support thread-local storage.
15243 # Check whether --enable-tls was given.
15244 if test "${enable_tls+set}" = set; then :
15245 enableval=$enable_tls;
15246 case "$enableval" in
15247 yes|no) ;;
15248 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15249 esac
15251 else
15252 enable_tls=yes
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15257 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15258 if test "${gcc_cv_have_tls+set}" = set; then :
15259 $as_echo_n "(cached) " >&6
15260 else
15262 if test "$cross_compiling" = yes; then :
15263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15264 /* end confdefs.h. */
15265 __thread int a; int b; int main() { return a = b; }
15266 _ACEOF
15267 if ac_fn_c_try_link "$LINENO"; then :
15268 chktls_save_LDFLAGS="$LDFLAGS"
15269 case $host in
15270 *-*-linux*)
15271 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15273 esac
15274 chktls_save_CFLAGS="$CFLAGS"
15275 CFLAGS="-fPIC $CFLAGS"
15276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277 /* end confdefs.h. */
15278 int f() { return 0; }
15279 _ACEOF
15280 if ac_fn_c_try_link "$LINENO"; then :
15281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h. */
15283 __thread int a; int b; int f() { return a = b; }
15284 _ACEOF
15285 if ac_fn_c_try_link "$LINENO"; then :
15286 gcc_cv_have_tls=yes
15287 else
15288 gcc_cv_have_tls=no
15290 rm -f core conftest.err conftest.$ac_objext \
15291 conftest$ac_exeext conftest.$ac_ext
15292 else
15293 gcc_cv_have_tls=yes
15295 rm -f core conftest.err conftest.$ac_objext \
15296 conftest$ac_exeext conftest.$ac_ext
15297 CFLAGS="$chktls_save_CFLAGS"
15298 LDFLAGS="$chktls_save_LDFLAGS"
15299 else
15300 gcc_cv_have_tls=no
15302 rm -f core conftest.err conftest.$ac_objext \
15303 conftest$ac_exeext conftest.$ac_ext
15306 else
15307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15308 /* end confdefs.h. */
15309 __thread int a; int b; int main() { return a = b; }
15310 _ACEOF
15311 if ac_fn_c_try_run "$LINENO"; then :
15312 chktls_save_LDFLAGS="$LDFLAGS"
15313 LDFLAGS="-static $LDFLAGS"
15314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15315 /* end confdefs.h. */
15316 int main() { return 0; }
15317 _ACEOF
15318 if ac_fn_c_try_link "$LINENO"; then :
15319 if test "$cross_compiling" = yes; then :
15320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15322 as_fn_error "cannot run test program while cross compiling
15323 See \`config.log' for more details." "$LINENO" 5; }
15324 else
15325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15326 /* end confdefs.h. */
15327 __thread int a; int b; int main() { return a = b; }
15328 _ACEOF
15329 if ac_fn_c_try_run "$LINENO"; then :
15330 gcc_cv_have_tls=yes
15331 else
15332 gcc_cv_have_tls=no
15334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15335 conftest.$ac_objext conftest.beam conftest.$ac_ext
15338 else
15339 gcc_cv_have_tls=yes
15341 rm -f core conftest.err conftest.$ac_objext \
15342 conftest$ac_exeext conftest.$ac_ext
15343 LDFLAGS="$chktls_save_LDFLAGS"
15344 if test $gcc_cv_have_tls = yes; then
15345 chktls_save_CFLAGS="$CFLAGS"
15346 thread_CFLAGS=failed
15347 for flag in '' '-pthread' '-lpthread'; do
15348 CFLAGS="$flag $chktls_save_CFLAGS"
15349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15350 /* end confdefs.h. */
15351 #include <pthread.h>
15352 void *g(void *d) { return NULL; }
15354 main ()
15356 pthread_t t; pthread_create(&t,NULL,g,NULL);
15358 return 0;
15360 _ACEOF
15361 if ac_fn_c_try_link "$LINENO"; then :
15362 thread_CFLAGS="$flag"
15364 rm -f core conftest.err conftest.$ac_objext \
15365 conftest$ac_exeext conftest.$ac_ext
15366 if test "X$thread_CFLAGS" != Xfailed; then
15367 break
15369 done
15370 CFLAGS="$chktls_save_CFLAGS"
15371 if test "X$thread_CFLAGS" != Xfailed; then
15372 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15373 if test "$cross_compiling" = yes; then :
15374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15376 as_fn_error "cannot run test program while cross compiling
15377 See \`config.log' for more details." "$LINENO" 5; }
15378 else
15379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15380 /* end confdefs.h. */
15381 #include <pthread.h>
15382 __thread int a;
15383 static int *a_in_other_thread;
15384 static void *
15385 thread_func (void *arg)
15387 a_in_other_thread = &a;
15388 return (void *)0;
15391 main ()
15393 pthread_t thread;
15394 void *thread_retval;
15395 int *a_in_main_thread;
15396 if (pthread_create (&thread, (pthread_attr_t *)0,
15397 thread_func, (void *)0))
15398 return 0;
15399 a_in_main_thread = &a;
15400 if (pthread_join (thread, &thread_retval))
15401 return 0;
15402 return (a_in_other_thread == a_in_main_thread);
15404 return 0;
15406 _ACEOF
15407 if ac_fn_c_try_run "$LINENO"; then :
15408 gcc_cv_have_tls=yes
15409 else
15410 gcc_cv_have_tls=no
15412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15413 conftest.$ac_objext conftest.beam conftest.$ac_ext
15416 CFLAGS="$chktls_save_CFLAGS"
15419 else
15420 gcc_cv_have_tls=no
15422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15423 conftest.$ac_objext conftest.beam conftest.$ac_ext
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15428 $as_echo "$gcc_cv_have_tls" >&6; }
15429 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15431 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15435 # See what sort of export controls are availible.
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15438 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15439 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15440 $as_echo_n "(cached) " >&6
15441 else
15443 save_CFLAGS="$CFLAGS"
15444 CFLAGS="$CFLAGS -Werror"
15445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15446 /* end confdefs.h. */
15447 void __attribute__((visibility("hidden"))) foo(void) { }
15449 main ()
15453 return 0;
15455 _ACEOF
15456 if ac_fn_c_try_compile "$LINENO"; then :
15457 libgomp_cv_have_attribute_visibility=yes
15458 else
15459 libgomp_cv_have_attribute_visibility=no
15461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15462 CFLAGS="$save_CFLAGS"
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15465 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15466 if test $libgomp_cv_have_attribute_visibility = yes; then
15468 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15473 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15474 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15475 $as_echo_n "(cached) " >&6
15476 else
15478 save_CFLAGS="$CFLAGS"
15479 CFLAGS="$CFLAGS -Werror"
15480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481 /* end confdefs.h. */
15482 void __attribute__((dllexport)) foo(void) { }
15484 main ()
15488 return 0;
15490 _ACEOF
15491 if ac_fn_c_try_compile "$LINENO"; then :
15492 libgomp_cv_have_attribute_dllexport=yes
15493 else
15494 libgomp_cv_have_attribute_dllexport=no
15496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15497 CFLAGS="$save_CFLAGS"
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15500 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15501 if test $libgomp_cv_have_attribute_dllexport = yes; then
15503 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15508 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15509 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
15510 $as_echo_n "(cached) " >&6
15511 else
15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h. */
15516 void foo(void) { }
15517 extern void bar(void) __attribute__((alias("foo")));
15519 main ()
15521 bar();
15523 return 0;
15525 _ACEOF
15526 if ac_fn_c_try_link "$LINENO"; then :
15527 libgomp_cv_have_attribute_alias=yes
15528 else
15529 libgomp_cv_have_attribute_alias=no
15531 rm -f core conftest.err conftest.$ac_objext \
15532 conftest$ac_exeext conftest.$ac_ext
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15535 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15536 if test $libgomp_cv_have_attribute_alias = yes; then
15538 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15543 # Check whether --with-gnu-ld was given.
15544 if test "${with_gnu_ld+set}" = set; then :
15545 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15546 else
15547 with_gnu_ld=no
15550 ac_prog=ld
15551 if test "$GCC" = yes; then
15552 # Check if gcc -print-prog-name=ld gives a path.
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15554 $as_echo_n "checking for ld used by $CC... " >&6; }
15555 case $host in
15556 *-*-mingw*)
15557 # gcc leaves a trailing carriage return which upsets mingw
15558 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15560 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15561 esac
15562 case $ac_prog in
15563 # Accept absolute paths.
15564 [\\/]* | ?:[\\/]*)
15565 re_direlt='/[^/][^/]*/\.\./'
15566 # Canonicalize the pathname of ld
15567 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15568 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15569 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15570 done
15571 test -z "$LD" && LD="$ac_prog"
15574 # If it fails, then pretend we aren't using GCC.
15575 ac_prog=ld
15578 # If it is relative, then search for the first ld in PATH.
15579 with_gnu_ld=unknown
15581 esac
15582 elif test "$with_gnu_ld" = yes; then
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15584 $as_echo_n "checking for GNU ld... " >&6; }
15585 else
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15587 $as_echo_n "checking for non-GNU ld... " >&6; }
15589 if test "${lt_cv_path_LD+set}" = set; then :
15590 $as_echo_n "(cached) " >&6
15591 else
15592 if test -z "$LD"; then
15593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15594 for ac_dir in $PATH; do
15595 IFS="$lt_save_ifs"
15596 test -z "$ac_dir" && ac_dir=.
15597 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15598 lt_cv_path_LD="$ac_dir/$ac_prog"
15599 # Check to see if the program is GNU ld. I'd rather use --version,
15600 # but apparently some variants of GNU ld only accept -v.
15601 # Break only if it was the GNU/non-GNU ld that we prefer.
15602 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15603 *GNU* | *'with BFD'*)
15604 test "$with_gnu_ld" != no && break
15607 test "$with_gnu_ld" != yes && break
15609 esac
15611 done
15612 IFS="$lt_save_ifs"
15613 else
15614 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15618 LD="$lt_cv_path_LD"
15619 if test -n "$LD"; then
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15621 $as_echo "$LD" >&6; }
15622 else
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15624 $as_echo "no" >&6; }
15626 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15628 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15629 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15630 $as_echo_n "(cached) " >&6
15631 else
15632 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15633 case `$LD -v 2>&1 </dev/null` in
15634 *GNU* | *'with BFD'*)
15635 lt_cv_prog_gnu_ld=yes
15638 lt_cv_prog_gnu_ld=no
15640 esac
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15643 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15644 with_gnu_ld=$lt_cv_prog_gnu_ld
15652 # If we're not using GNU ld, then there's no point in even trying these
15653 # tests. Check for that first. We should have already tested for gld
15654 # by now (in libtool), but require it now just to be safe...
15655 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15656 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15660 # The name set by libtool depends on the version of libtool. Shame on us
15661 # for depending on an impl detail, but c'est la vie. Older versions used
15662 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15663 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15664 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
15665 # set (hence we're using an older libtool), then set it.
15666 if test x${with_gnu_ld+set} != xset; then
15667 if test x${ac_cv_prog_gnu_ld+set} != xset; then
15668 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
15669 with_gnu_ld=no
15670 else
15671 with_gnu_ld=$ac_cv_prog_gnu_ld
15675 # Start by getting the version number. I think the libtool test already
15676 # does some of this, but throws away the result.
15677 libgomp_ld_is_gold=no
15678 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15679 libgomp_ld_is_gold=yes
15682 ldver=`$LD --version 2>/dev/null |
15683 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'`
15685 libgomp_gnu_ld_version=`echo $ldver | \
15686 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15688 # Set --gc-sections.
15689 if test "$with_gnu_ld" = "notbroken"; then
15690 # GNU ld it is! Joy and bunny rabbits!
15692 # All these tests are for C++; save the language and the compiler flags.
15693 # Need to do this so that g++ won't try to link in libstdc++
15694 ac_test_CFLAGS="${CFLAGS+set}"
15695 ac_save_CFLAGS="$CFLAGS"
15696 CFLAGS='-x c++ -Wl,--gc-sections'
15698 # Check for -Wl,--gc-sections
15699 # XXX This test is broken at the moment, as symbols required for linking
15700 # are now in libsupc++ (not built yet). In addition, this test has
15701 # cored on solaris in the past. In addition, --gc-sections doesn't
15702 # really work at the moment (keeps on discarding used sections, first
15703 # .eh_frame and now some of the glibc sections for iconv).
15704 # Bzzzzt. Thanks for playing, maybe next time.
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15706 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15707 if test "$cross_compiling" = yes; then :
15708 ac_sectionLDflags=yes
15709 else
15710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h. */
15713 int main(void)
15715 try { throw 1; }
15716 catch (...) { };
15717 return 0;
15720 _ACEOF
15721 if ac_fn_c_try_run "$LINENO"; then :
15722 ac_sectionLDflags=yes
15723 else
15724 ac_sectionLDflags=no
15726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15727 conftest.$ac_objext conftest.beam conftest.$ac_ext
15730 if test "$ac_test_CFLAGS" = set; then
15731 CFLAGS="$ac_save_CFLAGS"
15732 else
15733 # this is the suspicious part
15734 CFLAGS=''
15736 if test "$ac_sectionLDflags" = "yes"; then
15737 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15740 $as_echo "$ac_sectionLDflags" >&6; }
15743 # Set linker optimization flags.
15744 if test x"$with_gnu_ld" = x"yes"; then
15745 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15753 # Check whether --enable-symvers was given.
15754 if test "${enable_symvers+set}" = set; then :
15755 enableval=$enable_symvers;
15756 case "$enableval" in
15757 yes|no|gnu) ;;
15758 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
15759 esac
15761 else
15762 enable_symvers=yes
15767 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
15768 # don't know enough about $LD to do tricks...
15770 # FIXME The following test is too strict, in theory.
15771 if test $enable_shared = no ||
15772 test "x$LD" = x ||
15773 test x$libgomp_gnu_ld_version = x; then
15774 enable_symvers=no
15777 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15778 if test $enable_symvers != no; then
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15780 $as_echo_n "checking for shared libgcc... " >&6; }
15781 ac_save_CFLAGS="$CFLAGS"
15782 CFLAGS=' -lgcc_s'
15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784 /* end confdefs.h. */
15787 main ()
15789 return 0;
15791 return 0;
15793 _ACEOF
15794 if ac_fn_c_try_link "$LINENO"; then :
15795 libgomp_shared_libgcc=yes
15796 else
15797 libgomp_shared_libgcc=no
15799 rm -f core conftest.err conftest.$ac_objext \
15800 conftest$ac_exeext conftest.$ac_ext
15801 CFLAGS="$ac_save_CFLAGS"
15802 if test $libgomp_shared_libgcc = no; then
15803 cat > conftest.c <<EOF
15804 int main (void) { return 0; }
15806 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15807 -shared -shared-libgcc -o conftest.so \
15808 conftest.c -v 2>&1 >/dev/null \
15809 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15810 rm -f conftest.c conftest.so
15811 if test x${libgomp_libgcc_s_suffix+set} = xset; then
15812 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
15813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15814 /* end confdefs.h. */
15817 main ()
15819 return 0;
15821 return 0;
15823 _ACEOF
15824 if ac_fn_c_try_link "$LINENO"; then :
15825 libgomp_shared_libgcc=yes
15827 rm -f core conftest.err conftest.$ac_objext \
15828 conftest$ac_exeext conftest.$ac_ext
15829 CFLAGS="$ac_save_CFLAGS"
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
15833 $as_echo "$libgomp_shared_libgcc" >&6; }
15836 # For GNU ld, we need at least this version. The format is described in
15837 # LIBGOMP_CHECK_LINKER_FEATURES above.
15838 libgomp_min_gnu_ld_version=21400
15839 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
15841 # Check to see if unspecified "yes" value can win, given results above.
15842 # Change "yes" into either "no" or a style name.
15843 if test $enable_symvers = yes; then
15844 if test $with_gnu_ld = yes &&
15845 test $libgomp_shared_libgcc = yes;
15846 then
15847 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
15848 enable_symvers=gnu
15849 elif test $libgomp_ld_is_gold = yes ; then
15850 enable_symvers=gnu
15851 else
15852 # The right tools, the right setup, but too old. Fallbacks?
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
15854 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15856 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15858 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
15860 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
15861 if test $libgomp_gnu_ld_version -ge 21200 ; then
15862 # Globbing fix is present, proper block support is not.
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15864 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15865 enable_symvers=no
15866 else
15867 # 2.11 or older.
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15869 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15870 enable_symvers=no
15873 else
15874 # just fail for now
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15876 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15878 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15880 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15882 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15883 enable_symvers=no
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
15888 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
15889 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
15890 $as_echo_n "(cached) " >&6
15891 else
15893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894 /* end confdefs.h. */
15895 void foo (void); __asm (".symver foo, bar@SYMVER");
15897 main ()
15901 return 0;
15903 _ACEOF
15904 if ac_fn_c_try_compile "$LINENO"; then :
15905 libgomp_cv_have_as_symver_directive=yes
15906 else
15907 libgomp_cv_have_as_symver_directive=no
15909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
15912 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
15913 if test $libgomp_cv_have_as_symver_directive = yes; then
15915 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
15919 if test $enable_symvers != no; then
15920 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
15921 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
15922 else
15923 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
15924 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15928 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15931 if test $enable_symvers = gnu; then
15933 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
15937 # Get target configury.
15938 . ${srcdir}/configure.tgt
15939 CFLAGS="$save_CFLAGS $XCFLAGS"
15941 # Check for __sync_val_compare_and_swap, but only after the target has
15942 # had a chance to set XCFLAGS.
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
15945 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
15946 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
15947 $as_echo_n "(cached) " >&6
15948 else
15950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951 /* end confdefs.h. */
15954 main ()
15956 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
15958 return 0;
15960 _ACEOF
15961 if ac_fn_c_try_link "$LINENO"; then :
15962 libgomp_cv_have_sync_builtins=yes
15963 else
15964 libgomp_cv_have_sync_builtins=no
15966 rm -f core conftest.err conftest.$ac_objext \
15967 conftest$ac_exeext conftest.$ac_ext
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
15970 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
15971 if test $libgomp_cv_have_sync_builtins = yes; then
15973 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
15977 XCFLAGS="$XCFLAGS$XPCFLAGS"
15983 # Cleanup and exit.
15984 CFLAGS="$save_CFLAGS"
15985 cat >confcache <<\_ACEOF
15986 # This file is a shell script that caches the results of configure
15987 # tests run on this system so they can be shared between configure
15988 # scripts and configure runs, see configure's option --config-cache.
15989 # It is not useful on other systems. If it contains results you don't
15990 # want to keep, you may remove or edit it.
15992 # config.status only pays attention to the cache file if you give it
15993 # the --recheck option to rerun configure.
15995 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15996 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15997 # following values.
15999 _ACEOF
16001 # The following way of writing the cache mishandles newlines in values,
16002 # but we know of no workaround that is simple, portable, and efficient.
16003 # So, we kill variables containing newlines.
16004 # Ultrix sh set writes to stderr and can't be redirected directly,
16005 # and sets the high bit in the cache file unless we assign to the vars.
16007 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16008 eval ac_val=\$$ac_var
16009 case $ac_val in #(
16010 *${as_nl}*)
16011 case $ac_var in #(
16012 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16013 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16014 esac
16015 case $ac_var in #(
16016 _ | IFS | as_nl) ;; #(
16017 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16018 *) { eval $ac_var=; unset $ac_var;} ;;
16019 esac ;;
16020 esac
16021 done
16023 (set) 2>&1 |
16024 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16025 *${as_nl}ac_space=\ *)
16026 # `set' does not quote correctly, so add quotes: double-quote
16027 # substitution turns \\\\ into \\, and sed turns \\ into \.
16028 sed -n \
16029 "s/'/'\\\\''/g;
16030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16031 ;; #(
16033 # `set' quotes correctly as required by POSIX, so do not add quotes.
16034 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16036 esac |
16037 sort
16039 sed '
16040 /^ac_cv_env_/b end
16041 t clear
16042 :clear
16043 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16044 t end
16045 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16046 :end' >>confcache
16047 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16048 if test -w "$cache_file"; then
16049 test "x$cache_file" != "x/dev/null" &&
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16051 $as_echo "$as_me: updating cache $cache_file" >&6;}
16052 cat confcache >$cache_file
16053 else
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16055 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16058 rm -f confcache
16060 if test ${multilib} = yes; then
16061 multilib_arg="--enable-multilib"
16062 else
16063 multilib_arg=
16066 # Set up the set of libraries that we need to link against for libgomp.
16067 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
16068 # which will force linkage against -lpthread (or equivalent for the system).
16069 # That's not 100% ideal, but about the best we can do easily.
16070 if test $enable_shared = yes; then
16071 link_gomp="-lgomp %{static: $LIBS}"
16072 else
16073 link_gomp="-lgomp $LIBS"
16077 if test "$ac_cv_fc_compiler_gnu" = yes; then
16078 USE_FORTRAN_TRUE=
16079 USE_FORTRAN_FALSE='#'
16080 else
16081 USE_FORTRAN_TRUE='#'
16082 USE_FORTRAN_FALSE=
16086 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16087 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16088 # the underscore here and update the PREREQ. If it doesn't, then we'll
16089 # need to copy this macro to our acinclude.m4.
16090 save_CFLAGS="$CFLAGS"
16091 for i in $config_path; do
16092 if test -f $srcdir/config/$i/omp-lock.h; then
16093 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16094 break
16096 done
16098 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16100 else
16101 as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16105 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16110 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16115 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16120 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16122 else
16123 as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16127 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16132 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16137 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16143 # If the lock fits in an integer, then arrange for Fortran to use that
16144 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16145 # Except that we don't have a way at present to multi-lib the installed
16146 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16147 # actual target.
16148 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16149 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16150 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16151 OMP_LOCK_KIND=8
16153 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16154 OMP_NEST_LOCK_KIND=8
16156 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16157 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16158 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16159 OMP_LOCK_25_KIND=8
16161 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16162 OMP_NEST_LOCK_25_KIND=8
16177 CFLAGS="$save_CFLAGS"
16179 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16181 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16183 cat >confcache <<\_ACEOF
16184 # This file is a shell script that caches the results of configure
16185 # tests run on this system so they can be shared between configure
16186 # scripts and configure runs, see configure's option --config-cache.
16187 # It is not useful on other systems. If it contains results you don't
16188 # want to keep, you may remove or edit it.
16190 # config.status only pays attention to the cache file if you give it
16191 # the --recheck option to rerun configure.
16193 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16194 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16195 # following values.
16197 _ACEOF
16199 # The following way of writing the cache mishandles newlines in values,
16200 # but we know of no workaround that is simple, portable, and efficient.
16201 # So, we kill variables containing newlines.
16202 # Ultrix sh set writes to stderr and can't be redirected directly,
16203 # and sets the high bit in the cache file unless we assign to the vars.
16205 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16206 eval ac_val=\$$ac_var
16207 case $ac_val in #(
16208 *${as_nl}*)
16209 case $ac_var in #(
16210 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16211 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16212 esac
16213 case $ac_var in #(
16214 _ | IFS | as_nl) ;; #(
16215 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16216 *) { eval $ac_var=; unset $ac_var;} ;;
16217 esac ;;
16218 esac
16219 done
16221 (set) 2>&1 |
16222 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16223 *${as_nl}ac_space=\ *)
16224 # `set' does not quote correctly, so add quotes: double-quote
16225 # substitution turns \\\\ into \\, and sed turns \\ into \.
16226 sed -n \
16227 "s/'/'\\\\''/g;
16228 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16229 ;; #(
16231 # `set' quotes correctly as required by POSIX, so do not add quotes.
16232 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16234 esac |
16235 sort
16237 sed '
16238 /^ac_cv_env_/b end
16239 t clear
16240 :clear
16241 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16242 t end
16243 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16244 :end' >>confcache
16245 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16246 if test -w "$cache_file"; then
16247 test "x$cache_file" != "x/dev/null" &&
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16249 $as_echo "$as_me: updating cache $cache_file" >&6;}
16250 cat confcache >$cache_file
16251 else
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16253 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16256 rm -f confcache
16258 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16259 # Let make expand exec_prefix.
16260 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16262 DEFS=-DHAVE_CONFIG_H
16264 ac_libobjs=
16265 ac_ltlibobjs=
16266 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16267 # 1. Remove the extension, and $U if already installed.
16268 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16269 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16270 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16271 # will be set to the directory where LIBOBJS objects are built.
16272 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16273 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16274 done
16275 LIBOBJS=$ac_libobjs
16277 LTLIBOBJS=$ac_ltlibobjs
16280 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16281 as_fn_error "conditional \"GENINSRC\" was never defined.
16282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16284 if test -n "$EXEEXT"; then
16285 am__EXEEXT_TRUE=
16286 am__EXEEXT_FALSE='#'
16287 else
16288 am__EXEEXT_TRUE='#'
16289 am__EXEEXT_FALSE=
16292 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16293 as_fn_error "conditional \"AMDEP\" was never defined.
16294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16296 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16297 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16300 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16301 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16304 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16305 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16308 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16309 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16312 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16313 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16317 : ${CONFIG_STATUS=./config.status}
16318 ac_write_fail=0
16319 ac_clean_files_save=$ac_clean_files
16320 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16322 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16323 as_write_fail=0
16324 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16325 #! $SHELL
16326 # Generated by $as_me.
16327 # Run this file to recreate the current configuration.
16328 # Compiler output produced by configure, useful for debugging
16329 # configure, is in config.log if it exists.
16331 debug=false
16332 ac_cs_recheck=false
16333 ac_cs_silent=false
16335 SHELL=\${CONFIG_SHELL-$SHELL}
16336 export SHELL
16337 _ASEOF
16338 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16339 ## -------------------- ##
16340 ## M4sh Initialization. ##
16341 ## -------------------- ##
16343 # Be more Bourne compatible
16344 DUALCASE=1; export DUALCASE # for MKS sh
16345 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16346 emulate sh
16347 NULLCMD=:
16348 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16349 # is contrary to our usage. Disable this feature.
16350 alias -g '${1+"$@"}'='"$@"'
16351 setopt NO_GLOB_SUBST
16352 else
16353 case `(set -o) 2>/dev/null` in #(
16354 *posix*) :
16355 set -o posix ;; #(
16356 *) :
16358 esac
16362 as_nl='
16364 export as_nl
16365 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16366 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16367 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16368 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16369 # Prefer a ksh shell builtin over an external printf program on Solaris,
16370 # but without wasting forks for bash or zsh.
16371 if test -z "$BASH_VERSION$ZSH_VERSION" \
16372 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16373 as_echo='print -r --'
16374 as_echo_n='print -rn --'
16375 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16376 as_echo='printf %s\n'
16377 as_echo_n='printf %s'
16378 else
16379 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16380 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16381 as_echo_n='/usr/ucb/echo -n'
16382 else
16383 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16384 as_echo_n_body='eval
16385 arg=$1;
16386 case $arg in #(
16387 *"$as_nl"*)
16388 expr "X$arg" : "X\\(.*\\)$as_nl";
16389 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16390 esac;
16391 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16393 export as_echo_n_body
16394 as_echo_n='sh -c $as_echo_n_body as_echo'
16396 export as_echo_body
16397 as_echo='sh -c $as_echo_body as_echo'
16400 # The user is always right.
16401 if test "${PATH_SEPARATOR+set}" != set; then
16402 PATH_SEPARATOR=:
16403 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16404 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16405 PATH_SEPARATOR=';'
16410 # IFS
16411 # We need space, tab and new line, in precisely that order. Quoting is
16412 # there to prevent editors from complaining about space-tab.
16413 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16414 # splitting by setting IFS to empty value.)
16415 IFS=" "" $as_nl"
16417 # Find who we are. Look in the path if we contain no directory separator.
16418 case $0 in #((
16419 *[\\/]* ) as_myself=$0 ;;
16420 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16421 for as_dir in $PATH
16423 IFS=$as_save_IFS
16424 test -z "$as_dir" && as_dir=.
16425 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16426 done
16427 IFS=$as_save_IFS
16430 esac
16431 # We did not find ourselves, most probably we were run as `sh COMMAND'
16432 # in which case we are not to be found in the path.
16433 if test "x$as_myself" = x; then
16434 as_myself=$0
16436 if test ! -f "$as_myself"; then
16437 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16438 exit 1
16441 # Unset variables that we do not need and which cause bugs (e.g. in
16442 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16443 # suppresses any "Segmentation fault" message there. '((' could
16444 # trigger a bug in pdksh 5.2.14.
16445 for as_var in BASH_ENV ENV MAIL MAILPATH
16446 do eval test x\${$as_var+set} = xset \
16447 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16448 done
16449 PS1='$ '
16450 PS2='> '
16451 PS4='+ '
16453 # NLS nuisances.
16454 LC_ALL=C
16455 export LC_ALL
16456 LANGUAGE=C
16457 export LANGUAGE
16459 # CDPATH.
16460 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16463 # as_fn_error ERROR [LINENO LOG_FD]
16464 # ---------------------------------
16465 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16466 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16467 # script with status $?, using 1 if that was 0.
16468 as_fn_error ()
16470 as_status=$?; test $as_status -eq 0 && as_status=1
16471 if test "$3"; then
16472 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16473 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16475 $as_echo "$as_me: error: $1" >&2
16476 as_fn_exit $as_status
16477 } # as_fn_error
16480 # as_fn_set_status STATUS
16481 # -----------------------
16482 # Set $? to STATUS, without forking.
16483 as_fn_set_status ()
16485 return $1
16486 } # as_fn_set_status
16488 # as_fn_exit STATUS
16489 # -----------------
16490 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16491 as_fn_exit ()
16493 set +e
16494 as_fn_set_status $1
16495 exit $1
16496 } # as_fn_exit
16498 # as_fn_unset VAR
16499 # ---------------
16500 # Portably unset VAR.
16501 as_fn_unset ()
16503 { eval $1=; unset $1;}
16505 as_unset=as_fn_unset
16506 # as_fn_append VAR VALUE
16507 # ----------------------
16508 # Append the text in VALUE to the end of the definition contained in VAR. Take
16509 # advantage of any shell optimizations that allow amortized linear growth over
16510 # repeated appends, instead of the typical quadratic growth present in naive
16511 # implementations.
16512 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16513 eval 'as_fn_append ()
16515 eval $1+=\$2
16517 else
16518 as_fn_append ()
16520 eval $1=\$$1\$2
16522 fi # as_fn_append
16524 # as_fn_arith ARG...
16525 # ------------------
16526 # Perform arithmetic evaluation on the ARGs, and store the result in the
16527 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16528 # must be portable across $(()) and expr.
16529 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16530 eval 'as_fn_arith ()
16532 as_val=$(( $* ))
16534 else
16535 as_fn_arith ()
16537 as_val=`expr "$@" || test $? -eq 1`
16539 fi # as_fn_arith
16542 if expr a : '\(a\)' >/dev/null 2>&1 &&
16543 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16544 as_expr=expr
16545 else
16546 as_expr=false
16549 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16550 as_basename=basename
16551 else
16552 as_basename=false
16555 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16556 as_dirname=dirname
16557 else
16558 as_dirname=false
16561 as_me=`$as_basename -- "$0" ||
16562 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16563 X"$0" : 'X\(//\)$' \| \
16564 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16565 $as_echo X/"$0" |
16566 sed '/^.*\/\([^/][^/]*\)\/*$/{
16567 s//\1/
16570 /^X\/\(\/\/\)$/{
16571 s//\1/
16574 /^X\/\(\/\).*/{
16575 s//\1/
16578 s/.*/./; q'`
16580 # Avoid depending upon Character Ranges.
16581 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16582 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16583 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16584 as_cr_digits='0123456789'
16585 as_cr_alnum=$as_cr_Letters$as_cr_digits
16587 ECHO_C= ECHO_N= ECHO_T=
16588 case `echo -n x` in #(((((
16589 -n*)
16590 case `echo 'xy\c'` in
16591 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16592 xy) ECHO_C='\c';;
16593 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16594 ECHO_T=' ';;
16595 esac;;
16597 ECHO_N='-n';;
16598 esac
16600 rm -f conf$$ conf$$.exe conf$$.file
16601 if test -d conf$$.dir; then
16602 rm -f conf$$.dir/conf$$.file
16603 else
16604 rm -f conf$$.dir
16605 mkdir conf$$.dir 2>/dev/null
16607 if (echo >conf$$.file) 2>/dev/null; then
16608 if ln -s conf$$.file conf$$ 2>/dev/null; then
16609 as_ln_s='ln -s'
16610 # ... but there are two gotchas:
16611 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16612 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16613 # In both cases, we have to default to `cp -p'.
16614 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16615 as_ln_s='cp -p'
16616 elif ln conf$$.file conf$$ 2>/dev/null; then
16617 as_ln_s=ln
16618 else
16619 as_ln_s='cp -p'
16621 else
16622 as_ln_s='cp -p'
16624 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16625 rmdir conf$$.dir 2>/dev/null
16628 # as_fn_mkdir_p
16629 # -------------
16630 # Create "$as_dir" as a directory, including parents if necessary.
16631 as_fn_mkdir_p ()
16634 case $as_dir in #(
16635 -*) as_dir=./$as_dir;;
16636 esac
16637 test -d "$as_dir" || eval $as_mkdir_p || {
16638 as_dirs=
16639 while :; do
16640 case $as_dir in #(
16641 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16642 *) as_qdir=$as_dir;;
16643 esac
16644 as_dirs="'$as_qdir' $as_dirs"
16645 as_dir=`$as_dirname -- "$as_dir" ||
16646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16647 X"$as_dir" : 'X\(//\)[^/]' \| \
16648 X"$as_dir" : 'X\(//\)$' \| \
16649 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16650 $as_echo X"$as_dir" |
16651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16652 s//\1/
16655 /^X\(\/\/\)[^/].*/{
16656 s//\1/
16659 /^X\(\/\/\)$/{
16660 s//\1/
16663 /^X\(\/\).*/{
16664 s//\1/
16667 s/.*/./; q'`
16668 test -d "$as_dir" && break
16669 done
16670 test -z "$as_dirs" || eval "mkdir $as_dirs"
16671 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16674 } # as_fn_mkdir_p
16675 if mkdir -p . 2>/dev/null; then
16676 as_mkdir_p='mkdir -p "$as_dir"'
16677 else
16678 test -d ./-p && rmdir ./-p
16679 as_mkdir_p=false
16682 if test -x / >/dev/null 2>&1; then
16683 as_test_x='test -x'
16684 else
16685 if ls -dL / >/dev/null 2>&1; then
16686 as_ls_L_option=L
16687 else
16688 as_ls_L_option=
16690 as_test_x='
16691 eval sh -c '\''
16692 if test -d "$1"; then
16693 test -d "$1/.";
16694 else
16695 case $1 in #(
16696 -*)set "./$1";;
16697 esac;
16698 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16699 ???[sx]*):;;*)false;;esac;fi
16700 '\'' sh
16703 as_executable_p=$as_test_x
16705 # Sed expression to map a string onto a valid CPP name.
16706 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16708 # Sed expression to map a string onto a valid variable name.
16709 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16712 exec 6>&1
16713 ## ----------------------------------- ##
16714 ## Main body of $CONFIG_STATUS script. ##
16715 ## ----------------------------------- ##
16716 _ASEOF
16717 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16720 # Save the log message, to keep $0 and so on meaningful, and to
16721 # report actual input values of CONFIG_FILES etc. instead of their
16722 # values after options handling.
16723 ac_log="
16724 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
16725 generated by GNU Autoconf 2.64. Invocation command line was
16727 CONFIG_FILES = $CONFIG_FILES
16728 CONFIG_HEADERS = $CONFIG_HEADERS
16729 CONFIG_LINKS = $CONFIG_LINKS
16730 CONFIG_COMMANDS = $CONFIG_COMMANDS
16731 $ $0 $@
16733 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16736 _ACEOF
16738 case $ac_config_files in *"
16739 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16740 esac
16742 case $ac_config_headers in *"
16743 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16744 esac
16747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16748 # Files that config.status was made for.
16749 config_files="$ac_config_files"
16750 config_headers="$ac_config_headers"
16751 config_commands="$ac_config_commands"
16753 _ACEOF
16755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16756 ac_cs_usage="\
16757 \`$as_me' instantiates files and other configuration actions
16758 from templates according to the current configuration. Unless the files
16759 and actions are specified as TAGs, all are instantiated by default.
16761 Usage: $0 [OPTION]... [TAG]...
16763 -h, --help print this help, then exit
16764 -V, --version print version number and configuration settings, then exit
16765 -q, --quiet, --silent
16766 do not print progress messages
16767 -d, --debug don't remove temporary files
16768 --recheck update $as_me by reconfiguring in the same conditions
16769 --file=FILE[:TEMPLATE]
16770 instantiate the configuration file FILE
16771 --header=FILE[:TEMPLATE]
16772 instantiate the configuration header FILE
16774 Configuration files:
16775 $config_files
16777 Configuration headers:
16778 $config_headers
16780 Configuration commands:
16781 $config_commands
16783 Report bugs to the package provider.
16784 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
16785 General help using GNU software: <http://www.gnu.org/gethelp/>."
16787 _ACEOF
16788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16789 ac_cs_version="\\
16790 GNU OpenMP Runtime Library config.status 1.0
16791 configured by $0, generated by GNU Autoconf 2.64,
16792 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16794 Copyright (C) 2009 Free Software Foundation, Inc.
16795 This config.status script is free software; the Free Software Foundation
16796 gives unlimited permission to copy, distribute and modify it."
16798 ac_pwd='$ac_pwd'
16799 srcdir='$srcdir'
16800 INSTALL='$INSTALL'
16801 MKDIR_P='$MKDIR_P'
16802 AWK='$AWK'
16803 test -n "\$AWK" || AWK=awk
16804 _ACEOF
16806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16807 # The default lists apply if the user does not specify any file.
16808 ac_need_defaults=:
16809 while test $# != 0
16811 case $1 in
16812 --*=*)
16813 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16814 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16815 ac_shift=:
16818 ac_option=$1
16819 ac_optarg=$2
16820 ac_shift=shift
16822 esac
16824 case $ac_option in
16825 # Handling of the options.
16826 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16827 ac_cs_recheck=: ;;
16828 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16829 $as_echo "$ac_cs_version"; exit ;;
16830 --debug | --debu | --deb | --de | --d | -d )
16831 debug=: ;;
16832 --file | --fil | --fi | --f )
16833 $ac_shift
16834 case $ac_optarg in
16835 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16836 esac
16837 as_fn_append CONFIG_FILES " '$ac_optarg'"
16838 ac_need_defaults=false;;
16839 --header | --heade | --head | --hea )
16840 $ac_shift
16841 case $ac_optarg in
16842 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16843 esac
16844 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16845 ac_need_defaults=false;;
16846 --he | --h)
16847 # Conflict between --help and --header
16848 as_fn_error "ambiguous option: \`$1'
16849 Try \`$0 --help' for more information.";;
16850 --help | --hel | -h )
16851 $as_echo "$ac_cs_usage"; exit ;;
16852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16853 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16854 ac_cs_silent=: ;;
16856 # This is an error.
16857 -*) as_fn_error "unrecognized option: \`$1'
16858 Try \`$0 --help' for more information." ;;
16860 *) as_fn_append ac_config_targets " $1"
16861 ac_need_defaults=false ;;
16863 esac
16864 shift
16865 done
16867 ac_configure_extra_args=
16869 if $ac_cs_silent; then
16870 exec 6>/dev/null
16871 ac_configure_extra_args="$ac_configure_extra_args --silent"
16874 _ACEOF
16875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16876 if \$ac_cs_recheck; then
16877 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16878 shift
16879 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16880 CONFIG_SHELL='$SHELL'
16881 export CONFIG_SHELL
16882 exec "\$@"
16885 _ACEOF
16886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16887 exec 5>>config.log
16889 echo
16890 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16891 ## Running $as_me. ##
16892 _ASBOX
16893 $as_echo "$ac_log"
16894 } >&5
16896 _ACEOF
16897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16899 # INIT-COMMANDS
16902 srcdir="$srcdir"
16903 host="$host"
16904 target="$target"
16905 with_multisubdir="$with_multisubdir"
16906 with_multisrctop="$with_multisrctop"
16907 with_target_subdir="$with_target_subdir"
16908 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16909 multi_basedir="$multi_basedir"
16910 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16911 CC="$CC"
16912 CXX="$CXX"
16913 GFORTRAN="$GFORTRAN"
16914 GCJ="$GCJ"
16915 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16918 # The HP-UX ksh and POSIX shell print the target directory to stdout
16919 # if CDPATH is set.
16920 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16922 sed_quote_subst='$sed_quote_subst'
16923 double_quote_subst='$double_quote_subst'
16924 delay_variable_subst='$delay_variable_subst'
16925 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16926 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16927 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16928 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16929 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16930 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16931 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16932 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16933 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16934 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16935 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16936 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16937 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16938 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16939 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16940 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16941 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16942 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16943 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16944 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16945 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16946 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16947 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16948 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16949 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16950 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16951 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16952 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16953 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16954 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16955 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16956 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16957 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16958 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16959 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16960 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16961 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16962 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16963 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16964 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16965 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16966 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16967 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16968 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16969 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16970 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16971 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16972 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16973 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"`'
16974 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16975 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16976 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16977 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16978 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16979 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16980 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16981 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16982 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16983 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16984 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16985 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16986 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16987 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16988 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16989 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16990 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16991 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16992 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16993 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16994 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16995 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16996 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16997 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16998 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16999 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17000 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17001 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17002 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17003 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17004 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17005 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17006 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17007 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17008 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17009 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17010 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17011 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17012 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17013 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17014 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17015 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17016 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17017 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17018 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17019 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17020 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17021 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17022 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17023 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17024 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17025 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17026 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17027 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17028 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17029 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17030 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17031 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17032 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17033 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17034 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17035 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17036 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17037 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17038 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17039 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17040 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17041 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17042 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17043 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17044 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17045 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17046 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17047 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17048 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17049 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17050 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17051 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17052 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17053 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17054 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17055 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17056 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17057 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17058 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17059 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17060 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17061 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17062 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17063 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17064 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17065 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17066 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17067 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17068 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17069 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17070 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17071 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17072 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17073 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17074 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17075 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17076 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17077 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17078 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17079 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17080 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17081 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17082 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17083 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17084 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17085 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17086 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17087 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17088 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17089 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17090 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17091 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17092 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17093 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17094 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17095 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17096 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17097 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17098 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17099 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17101 LTCC='$LTCC'
17102 LTCFLAGS='$LTCFLAGS'
17103 compiler='$compiler_DEFAULT'
17105 # A function that is used when there is no print builtin or printf.
17106 func_fallback_echo ()
17108 eval 'cat <<_LTECHO_EOF
17110 _LTECHO_EOF'
17113 # Quote evaled strings.
17114 for var in SHELL \
17115 ECHO \
17116 SED \
17117 GREP \
17118 EGREP \
17119 FGREP \
17120 LD \
17121 NM \
17122 LN_S \
17123 lt_SP2NL \
17124 lt_NL2SP \
17125 reload_flag \
17126 OBJDUMP \
17127 deplibs_check_method \
17128 file_magic_cmd \
17129 AR \
17130 AR_FLAGS \
17131 STRIP \
17132 RANLIB \
17133 CC \
17134 CFLAGS \
17135 compiler \
17136 lt_cv_sys_global_symbol_pipe \
17137 lt_cv_sys_global_symbol_to_cdecl \
17138 lt_cv_sys_global_symbol_to_c_name_address \
17139 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17140 lt_prog_compiler_no_builtin_flag \
17141 lt_prog_compiler_wl \
17142 lt_prog_compiler_pic \
17143 lt_prog_compiler_static \
17144 lt_cv_prog_compiler_c_o \
17145 need_locks \
17146 DSYMUTIL \
17147 NMEDIT \
17148 LIPO \
17149 OTOOL \
17150 OTOOL64 \
17151 shrext_cmds \
17152 export_dynamic_flag_spec \
17153 whole_archive_flag_spec \
17154 compiler_needs_object \
17155 with_gnu_ld \
17156 allow_undefined_flag \
17157 no_undefined_flag \
17158 hardcode_libdir_flag_spec \
17159 hardcode_libdir_flag_spec_ld \
17160 hardcode_libdir_separator \
17161 fix_srcfile_path \
17162 exclude_expsyms \
17163 include_expsyms \
17164 file_list_spec \
17165 variables_saved_for_relink \
17166 libname_spec \
17167 library_names_spec \
17168 soname_spec \
17169 install_override_mode \
17170 finish_eval \
17171 old_striplib \
17172 striplib \
17173 compiler_lib_search_dirs \
17174 predep_objects \
17175 postdep_objects \
17176 predeps \
17177 postdeps \
17178 compiler_lib_search_path \
17179 LD_FC \
17180 reload_flag_FC \
17181 compiler_FC \
17182 lt_prog_compiler_no_builtin_flag_FC \
17183 lt_prog_compiler_wl_FC \
17184 lt_prog_compiler_pic_FC \
17185 lt_prog_compiler_static_FC \
17186 lt_cv_prog_compiler_c_o_FC \
17187 export_dynamic_flag_spec_FC \
17188 whole_archive_flag_spec_FC \
17189 compiler_needs_object_FC \
17190 with_gnu_ld_FC \
17191 allow_undefined_flag_FC \
17192 no_undefined_flag_FC \
17193 hardcode_libdir_flag_spec_FC \
17194 hardcode_libdir_flag_spec_ld_FC \
17195 hardcode_libdir_separator_FC \
17196 fix_srcfile_path_FC \
17197 exclude_expsyms_FC \
17198 include_expsyms_FC \
17199 file_list_spec_FC \
17200 compiler_lib_search_dirs_FC \
17201 predep_objects_FC \
17202 postdep_objects_FC \
17203 predeps_FC \
17204 postdeps_FC \
17205 compiler_lib_search_path_FC; do
17206 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17207 *[\\\\\\\`\\"\\\$]*)
17208 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17211 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17213 esac
17214 done
17216 # Double-quote double-evaled strings.
17217 for var in reload_cmds \
17218 old_postinstall_cmds \
17219 old_postuninstall_cmds \
17220 old_archive_cmds \
17221 extract_expsyms_cmds \
17222 old_archive_from_new_cmds \
17223 old_archive_from_expsyms_cmds \
17224 archive_cmds \
17225 archive_expsym_cmds \
17226 module_cmds \
17227 module_expsym_cmds \
17228 export_symbols_cmds \
17229 prelink_cmds \
17230 postinstall_cmds \
17231 postuninstall_cmds \
17232 finish_cmds \
17233 sys_lib_search_path_spec \
17234 sys_lib_dlsearch_path_spec \
17235 reload_cmds_FC \
17236 old_archive_cmds_FC \
17237 old_archive_from_new_cmds_FC \
17238 old_archive_from_expsyms_cmds_FC \
17239 archive_cmds_FC \
17240 archive_expsym_cmds_FC \
17241 module_cmds_FC \
17242 module_expsym_cmds_FC \
17243 export_symbols_cmds_FC \
17244 prelink_cmds_FC; do
17245 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17246 *[\\\\\\\`\\"\\\$]*)
17247 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17250 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17252 esac
17253 done
17255 ac_aux_dir='$ac_aux_dir'
17256 xsi_shell='$xsi_shell'
17257 lt_shell_append='$lt_shell_append'
17259 # See if we are running on zsh, and set the options which allow our
17260 # commands through without removal of \ escapes INIT.
17261 if test -n "\${ZSH_VERSION+set}" ; then
17262 setopt NO_GLOB_SUBST
17266 PACKAGE='$PACKAGE'
17267 VERSION='$VERSION'
17268 TIMESTAMP='$TIMESTAMP'
17269 RM='$RM'
17270 ofile='$ofile'
17277 GCC="$GCC"
17278 CC="$CC"
17279 acx_cv_header_stdint="$acx_cv_header_stdint"
17280 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17281 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17282 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17283 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17284 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17285 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17286 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17287 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17288 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17289 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17290 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17291 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17292 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17295 _ACEOF
17297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17299 # Handling of arguments.
17300 for ac_config_target in $ac_config_targets
17302 case $ac_config_target in
17303 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17304 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17305 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17306 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17307 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17308 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17309 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17310 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17311 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17312 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17313 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17314 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17316 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17317 esac
17318 done
17321 # If the user did not use the arguments to specify the items to instantiate,
17322 # then the envvar interface is used. Set only those that are not.
17323 # We use the long form for the default assignment because of an extremely
17324 # bizarre bug on SunOS 4.1.3.
17325 if $ac_need_defaults; then
17326 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17327 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17328 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17331 # Have a temporary directory for convenience. Make it in the build tree
17332 # simply because there is no reason against having it here, and in addition,
17333 # creating and moving files from /tmp can sometimes cause problems.
17334 # Hook for its removal unless debugging.
17335 # Note that there is a small window in which the directory will not be cleaned:
17336 # after its creation but before its name has been assigned to `$tmp'.
17337 $debug ||
17339 tmp=
17340 trap 'exit_status=$?
17341 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17343 trap 'as_fn_exit 1' 1 2 13 15
17345 # Create a (secure) tmp directory for tmp files.
17348 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17349 test -n "$tmp" && test -d "$tmp"
17350 } ||
17352 tmp=./conf$$-$RANDOM
17353 (umask 077 && mkdir "$tmp")
17354 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17356 # Set up the scripts for CONFIG_FILES section.
17357 # No need to generate them if there are no CONFIG_FILES.
17358 # This happens for instance with `./config.status config.h'.
17359 if test -n "$CONFIG_FILES"; then
17362 ac_cr=`echo X | tr X '\015'`
17363 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17364 # But we know of no other shell where ac_cr would be empty at this
17365 # point, so we can use a bashism as a fallback.
17366 if test "x$ac_cr" = x; then
17367 eval ac_cr=\$\'\\r\'
17369 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17370 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17371 ac_cs_awk_cr='\r'
17372 else
17373 ac_cs_awk_cr=$ac_cr
17376 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17377 _ACEOF
17381 echo "cat >conf$$subs.awk <<_ACEOF" &&
17382 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17383 echo "_ACEOF"
17384 } >conf$$subs.sh ||
17385 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17386 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17387 ac_delim='%!_!# '
17388 for ac_last_try in false false false false false :; do
17389 . ./conf$$subs.sh ||
17390 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17392 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17393 if test $ac_delim_n = $ac_delim_num; then
17394 break
17395 elif $ac_last_try; then
17396 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17397 else
17398 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17400 done
17401 rm -f conf$$subs.sh
17403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17404 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17405 _ACEOF
17406 sed -n '
17408 s/^/S["/; s/!.*/"]=/
17411 s/^[^!]*!//
17412 :repl
17413 t repl
17414 s/'"$ac_delim"'$//
17415 t delim
17418 s/\(.\{148\}\).*/\1/
17419 t more1
17420 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17423 b repl
17424 :more1
17425 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17428 s/.\{148\}//
17429 t nl
17430 :delim
17432 s/\(.\{148\}\).*/\1/
17433 t more2
17434 s/["\\]/\\&/g; s/^/"/; s/$/"/
17437 :more2
17438 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17441 s/.\{148\}//
17442 t delim
17443 ' <conf$$subs.awk | sed '
17444 /^[^""]/{
17446 s/\n//
17448 ' >>$CONFIG_STATUS || ac_write_fail=1
17449 rm -f conf$$subs.awk
17450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17451 _ACAWK
17452 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17453 for (key in S) S_is_set[key] = 1
17454 FS = "\a"
17458 line = $ 0
17459 nfields = split(line, field, "@")
17460 substed = 0
17461 len = length(field[1])
17462 for (i = 2; i < nfields; i++) {
17463 key = field[i]
17464 keylen = length(key)
17465 if (S_is_set[key]) {
17466 value = S[key]
17467 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17468 len += length(value) + length(field[++i])
17469 substed = 1
17470 } else
17471 len += 1 + keylen
17474 print line
17477 _ACAWK
17478 _ACEOF
17479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17480 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17481 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17482 else
17484 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17485 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17486 _ACEOF
17488 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17489 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17490 # trailing colons and then remove the whole line if VPATH becomes empty
17491 # (actually we leave an empty line to preserve line numbers).
17492 if test "x$srcdir" = x.; then
17493 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17494 s/:*\$(srcdir):*/:/
17495 s/:*\${srcdir}:*/:/
17496 s/:*@srcdir@:*/:/
17497 s/^\([^=]*=[ ]*\):*/\1/
17498 s/:*$//
17499 s/^[^=]*=[ ]*$//
17503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17504 fi # test -n "$CONFIG_FILES"
17506 # Set up the scripts for CONFIG_HEADERS section.
17507 # No need to generate them if there are no CONFIG_HEADERS.
17508 # This happens for instance with `./config.status Makefile'.
17509 if test -n "$CONFIG_HEADERS"; then
17510 cat >"$tmp/defines.awk" <<\_ACAWK ||
17511 BEGIN {
17512 _ACEOF
17514 # Transform confdefs.h into an awk script `defines.awk', embedded as
17515 # here-document in config.status, that substitutes the proper values into
17516 # config.h.in to produce config.h.
17518 # Create a delimiter string that does not exist in confdefs.h, to ease
17519 # handling of long lines.
17520 ac_delim='%!_!# '
17521 for ac_last_try in false false :; do
17522 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17523 if test -z "$ac_t"; then
17524 break
17525 elif $ac_last_try; then
17526 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17527 else
17528 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17530 done
17532 # For the awk script, D is an array of macro values keyed by name,
17533 # likewise P contains macro parameters if any. Preserve backslash
17534 # newline sequences.
17536 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17537 sed -n '
17538 s/.\{148\}/&'"$ac_delim"'/g
17539 t rset
17540 :rset
17541 s/^[ ]*#[ ]*define[ ][ ]*/ /
17542 t def
17544 :def
17545 s/\\$//
17546 t bsnl
17547 s/["\\]/\\&/g
17548 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17549 D["\1"]=" \3"/p
17550 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17552 :bsnl
17553 s/["\\]/\\&/g
17554 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17555 D["\1"]=" \3\\\\\\n"\\/p
17556 t cont
17557 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17558 t cont
17560 :cont
17562 s/.\{148\}/&'"$ac_delim"'/g
17563 t clear
17564 :clear
17565 s/\\$//
17566 t bsnlc
17567 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17569 :bsnlc
17570 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17571 b cont
17572 ' <confdefs.h | sed '
17573 s/'"$ac_delim"'/"\\\
17574 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17577 for (key in D) D_is_set[key] = 1
17578 FS = "\a"
17580 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17581 line = \$ 0
17582 split(line, arg, " ")
17583 if (arg[1] == "#") {
17584 defundef = arg[2]
17585 mac1 = arg[3]
17586 } else {
17587 defundef = substr(arg[1], 2)
17588 mac1 = arg[2]
17590 split(mac1, mac2, "(") #)
17591 macro = mac2[1]
17592 prefix = substr(line, 1, index(line, defundef) - 1)
17593 if (D_is_set[macro]) {
17594 # Preserve the white space surrounding the "#".
17595 print prefix "define", macro P[macro] D[macro]
17596 next
17597 } else {
17598 # Replace #undef with comments. This is necessary, for example,
17599 # in the case of _POSIX_SOURCE, which is predefined and required
17600 # on some systems where configure will not decide to define it.
17601 if (defundef == "undef") {
17602 print "/*", prefix defundef, macro, "*/"
17603 next
17607 { print }
17608 _ACAWK
17609 _ACEOF
17610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17611 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17612 fi # test -n "$CONFIG_HEADERS"
17615 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17616 shift
17617 for ac_tag
17619 case $ac_tag in
17620 :[FHLC]) ac_mode=$ac_tag; continue;;
17621 esac
17622 case $ac_mode$ac_tag in
17623 :[FHL]*:*);;
17624 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17625 :[FH]-) ac_tag=-:-;;
17626 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17627 esac
17628 ac_save_IFS=$IFS
17629 IFS=:
17630 set x $ac_tag
17631 IFS=$ac_save_IFS
17632 shift
17633 ac_file=$1
17634 shift
17636 case $ac_mode in
17637 :L) ac_source=$1;;
17638 :[FH])
17639 ac_file_inputs=
17640 for ac_f
17642 case $ac_f in
17643 -) ac_f="$tmp/stdin";;
17644 *) # Look for the file first in the build tree, then in the source tree
17645 # (if the path is not absolute). The absolute path cannot be DOS-style,
17646 # because $ac_f cannot contain `:'.
17647 test -f "$ac_f" ||
17648 case $ac_f in
17649 [\\/$]*) false;;
17650 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17651 esac ||
17652 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17653 esac
17654 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17655 as_fn_append ac_file_inputs " '$ac_f'"
17656 done
17658 # Let's still pretend it is `configure' which instantiates (i.e., don't
17659 # use $as_me), people would be surprised to read:
17660 # /* config.h. Generated by config.status. */
17661 configure_input='Generated from '`
17662 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17663 `' by configure.'
17664 if test x"$ac_file" != x-; then
17665 configure_input="$ac_file. $configure_input"
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17667 $as_echo "$as_me: creating $ac_file" >&6;}
17669 # Neutralize special characters interpreted by sed in replacement strings.
17670 case $configure_input in #(
17671 *\&* | *\|* | *\\* )
17672 ac_sed_conf_input=`$as_echo "$configure_input" |
17673 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17674 *) ac_sed_conf_input=$configure_input;;
17675 esac
17677 case $ac_tag in
17678 *:-:* | *:-) cat >"$tmp/stdin" \
17679 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17680 esac
17682 esac
17684 ac_dir=`$as_dirname -- "$ac_file" ||
17685 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17686 X"$ac_file" : 'X\(//\)[^/]' \| \
17687 X"$ac_file" : 'X\(//\)$' \| \
17688 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17689 $as_echo X"$ac_file" |
17690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17691 s//\1/
17694 /^X\(\/\/\)[^/].*/{
17695 s//\1/
17698 /^X\(\/\/\)$/{
17699 s//\1/
17702 /^X\(\/\).*/{
17703 s//\1/
17706 s/.*/./; q'`
17707 as_dir="$ac_dir"; as_fn_mkdir_p
17708 ac_builddir=.
17710 case "$ac_dir" in
17711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17714 # A ".." for each directory in $ac_dir_suffix.
17715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17716 case $ac_top_builddir_sub in
17717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17719 esac ;;
17720 esac
17721 ac_abs_top_builddir=$ac_pwd
17722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17723 # for backward compatibility:
17724 ac_top_builddir=$ac_top_build_prefix
17726 case $srcdir in
17727 .) # We are building in place.
17728 ac_srcdir=.
17729 ac_top_srcdir=$ac_top_builddir_sub
17730 ac_abs_top_srcdir=$ac_pwd ;;
17731 [\\/]* | ?:[\\/]* ) # Absolute name.
17732 ac_srcdir=$srcdir$ac_dir_suffix;
17733 ac_top_srcdir=$srcdir
17734 ac_abs_top_srcdir=$srcdir ;;
17735 *) # Relative name.
17736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17737 ac_top_srcdir=$ac_top_build_prefix$srcdir
17738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17739 esac
17740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17743 case $ac_mode in
17746 # CONFIG_FILE
17749 case $INSTALL in
17750 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17751 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17752 esac
17753 ac_MKDIR_P=$MKDIR_P
17754 case $MKDIR_P in
17755 [\\/$]* | ?:[\\/]* ) ;;
17756 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17757 esac
17758 _ACEOF
17760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17761 # If the template does not know about datarootdir, expand it.
17762 # FIXME: This hack should be removed a few years after 2.60.
17763 ac_datarootdir_hack=; ac_datarootdir_seen=
17764 ac_sed_dataroot='
17765 /datarootdir/ {
17769 /@datadir@/p
17770 /@docdir@/p
17771 /@infodir@/p
17772 /@localedir@/p
17773 /@mandir@/p'
17774 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17775 *datarootdir*) ac_datarootdir_seen=yes;;
17776 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17778 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17779 _ACEOF
17780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17781 ac_datarootdir_hack='
17782 s&@datadir@&$datadir&g
17783 s&@docdir@&$docdir&g
17784 s&@infodir@&$infodir&g
17785 s&@localedir@&$localedir&g
17786 s&@mandir@&$mandir&g
17787 s&\\\${datarootdir}&$datarootdir&g' ;;
17788 esac
17789 _ACEOF
17791 # Neutralize VPATH when `$srcdir' = `.'.
17792 # Shell code in configure.ac might set extrasub.
17793 # FIXME: do we really want to maintain this feature?
17794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17795 ac_sed_extra="$ac_vpsub
17796 $extrasub
17797 _ACEOF
17798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17801 s|@configure_input@|$ac_sed_conf_input|;t t
17802 s&@top_builddir@&$ac_top_builddir_sub&;t t
17803 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17804 s&@srcdir@&$ac_srcdir&;t t
17805 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17806 s&@top_srcdir@&$ac_top_srcdir&;t t
17807 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17808 s&@builddir@&$ac_builddir&;t t
17809 s&@abs_builddir@&$ac_abs_builddir&;t t
17810 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17811 s&@INSTALL@&$ac_INSTALL&;t t
17812 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17813 $ac_datarootdir_hack
17815 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17816 || as_fn_error "could not create $ac_file" "$LINENO" 5
17818 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17819 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17820 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17822 which seems to be undefined. Please make sure it is defined." >&5
17823 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17824 which seems to be undefined. Please make sure it is defined." >&2;}
17826 rm -f "$tmp/stdin"
17827 case $ac_file in
17828 -) cat "$tmp/out" && rm -f "$tmp/out";;
17829 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17830 esac \
17831 || as_fn_error "could not create $ac_file" "$LINENO" 5
17835 # CONFIG_HEADER
17837 if test x"$ac_file" != x-; then
17839 $as_echo "/* $configure_input */" \
17840 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17841 } >"$tmp/config.h" \
17842 || as_fn_error "could not create $ac_file" "$LINENO" 5
17843 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17845 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17846 else
17847 rm -f "$ac_file"
17848 mv "$tmp/config.h" "$ac_file" \
17849 || as_fn_error "could not create $ac_file" "$LINENO" 5
17851 else
17852 $as_echo "/* $configure_input */" \
17853 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17854 || as_fn_error "could not create -" "$LINENO" 5
17856 # Compute "$ac_file"'s index in $config_headers.
17857 _am_arg="$ac_file"
17858 _am_stamp_count=1
17859 for _am_header in $config_headers :; do
17860 case $_am_header in
17861 $_am_arg | $_am_arg:* )
17862 break ;;
17864 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17865 esac
17866 done
17867 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17868 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17869 X"$_am_arg" : 'X\(//\)[^/]' \| \
17870 X"$_am_arg" : 'X\(//\)$' \| \
17871 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17872 $as_echo X"$_am_arg" |
17873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17874 s//\1/
17877 /^X\(\/\/\)[^/].*/{
17878 s//\1/
17881 /^X\(\/\/\)$/{
17882 s//\1/
17885 /^X\(\/\).*/{
17886 s//\1/
17889 s/.*/./; q'`/stamp-h$_am_stamp_count
17892 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17893 $as_echo "$as_me: executing $ac_file commands" >&6;}
17895 esac
17898 case $ac_file$ac_mode in
17899 "default-1":C)
17900 # Only add multilib support code if we just rebuilt the top-level
17901 # Makefile.
17902 case " $CONFIG_FILES " in
17903 *" Makefile "*)
17904 ac_file=Makefile . ${multi_basedir}/config-ml.in
17906 esac ;;
17907 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17908 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17909 # are listed without --file. Let's play safe and only enable the eval
17910 # if we detect the quoting.
17911 case $CONFIG_FILES in
17912 *\'*) eval set x "$CONFIG_FILES" ;;
17913 *) set x $CONFIG_FILES ;;
17914 esac
17915 shift
17916 for mf
17918 # Strip MF so we end up with the name of the file.
17919 mf=`echo "$mf" | sed -e 's/:.*$//'`
17920 # Check whether this is an Automake generated Makefile or not.
17921 # We used to match only the files named `Makefile.in', but
17922 # some people rename them; so instead we look at the file content.
17923 # Grep'ing the first line is not enough: some people post-process
17924 # each Makefile.in and add a new line on top of each file to say so.
17925 # Grep'ing the whole file is not good either: AIX grep has a line
17926 # limit of 2048, but all sed's we know have understand at least 4000.
17927 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17928 dirpart=`$as_dirname -- "$mf" ||
17929 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17930 X"$mf" : 'X\(//\)[^/]' \| \
17931 X"$mf" : 'X\(//\)$' \| \
17932 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17933 $as_echo X"$mf" |
17934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17935 s//\1/
17938 /^X\(\/\/\)[^/].*/{
17939 s//\1/
17942 /^X\(\/\/\)$/{
17943 s//\1/
17946 /^X\(\/\).*/{
17947 s//\1/
17950 s/.*/./; q'`
17951 else
17952 continue
17954 # Extract the definition of DEPDIR, am__include, and am__quote
17955 # from the Makefile without running `make'.
17956 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17957 test -z "$DEPDIR" && continue
17958 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17959 test -z "am__include" && continue
17960 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17961 # When using ansi2knr, U may be empty or an underscore; expand it
17962 U=`sed -n 's/^U = //p' < "$mf"`
17963 # Find all dependency output files, they are included files with
17964 # $(DEPDIR) in their names. We invoke sed twice because it is the
17965 # simplest approach to changing $(DEPDIR) to its actual value in the
17966 # expansion.
17967 for file in `sed -n "
17968 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17969 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17970 # Make sure the directory exists.
17971 test -f "$dirpart/$file" && continue
17972 fdir=`$as_dirname -- "$file" ||
17973 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17974 X"$file" : 'X\(//\)[^/]' \| \
17975 X"$file" : 'X\(//\)$' \| \
17976 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17977 $as_echo X"$file" |
17978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17979 s//\1/
17982 /^X\(\/\/\)[^/].*/{
17983 s//\1/
17986 /^X\(\/\/\)$/{
17987 s//\1/
17990 /^X\(\/\).*/{
17991 s//\1/
17994 s/.*/./; q'`
17995 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17996 # echo "creating $dirpart/$file"
17997 echo '# dummy' > "$dirpart/$file"
17998 done
17999 done
18002 "libtool":C)
18004 # See if we are running on zsh, and set the options which allow our
18005 # commands through without removal of \ escapes.
18006 if test -n "${ZSH_VERSION+set}" ; then
18007 setopt NO_GLOB_SUBST
18010 cfgfile="${ofile}T"
18011 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18012 $RM "$cfgfile"
18014 cat <<_LT_EOF >> "$cfgfile"
18015 #! $SHELL
18017 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18018 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18019 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18020 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18022 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18023 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18024 # Written by Gordon Matzigkeit, 1996
18026 # This file is part of GNU Libtool.
18028 # GNU Libtool is free software; you can redistribute it and/or
18029 # modify it under the terms of the GNU General Public License as
18030 # published by the Free Software Foundation; either version 2 of
18031 # the License, or (at your option) any later version.
18033 # As a special exception to the GNU General Public License,
18034 # if you distribute this file as part of a program or library that
18035 # is built using GNU Libtool, you may include this file under the
18036 # same distribution terms that you use for the rest of that program.
18038 # GNU Libtool is distributed in the hope that it will be useful,
18039 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18040 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18041 # GNU General Public License for more details.
18043 # You should have received a copy of the GNU General Public License
18044 # along with GNU Libtool; see the file COPYING. If not, a copy
18045 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18046 # obtained by writing to the Free Software Foundation, Inc.,
18047 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18050 # The names of the tagged configurations supported by this script.
18051 available_tags="FC "
18053 # ### BEGIN LIBTOOL CONFIG
18055 # Which release of libtool.m4 was used?
18056 macro_version=$macro_version
18057 macro_revision=$macro_revision
18059 # Whether or not to build shared libraries.
18060 build_libtool_libs=$enable_shared
18062 # Whether or not to build static libraries.
18063 build_old_libs=$enable_static
18065 # What type of objects to build.
18066 pic_mode=$pic_mode
18068 # Whether or not to optimize for fast installation.
18069 fast_install=$enable_fast_install
18071 # Shell to use when invoking shell scripts.
18072 SHELL=$lt_SHELL
18074 # An echo program that protects backslashes.
18075 ECHO=$lt_ECHO
18077 # The host system.
18078 host_alias=$host_alias
18079 host=$host
18080 host_os=$host_os
18082 # The build system.
18083 build_alias=$build_alias
18084 build=$build
18085 build_os=$build_os
18087 # A sed program that does not truncate output.
18088 SED=$lt_SED
18090 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18091 Xsed="\$SED -e 1s/^X//"
18093 # A grep program that handles long lines.
18094 GREP=$lt_GREP
18096 # An ERE matcher.
18097 EGREP=$lt_EGREP
18099 # A literal string matcher.
18100 FGREP=$lt_FGREP
18102 # A BSD- or MS-compatible name lister.
18103 NM=$lt_NM
18105 # Whether we need soft or hard links.
18106 LN_S=$lt_LN_S
18108 # What is the maximum length of a command?
18109 max_cmd_len=$max_cmd_len
18111 # Object file suffix (normally "o").
18112 objext=$ac_objext
18114 # Executable file suffix (normally "").
18115 exeext=$exeext
18117 # whether the shell understands "unset".
18118 lt_unset=$lt_unset
18120 # turn spaces into newlines.
18121 SP2NL=$lt_lt_SP2NL
18123 # turn newlines into spaces.
18124 NL2SP=$lt_lt_NL2SP
18126 # An object symbol dumper.
18127 OBJDUMP=$lt_OBJDUMP
18129 # Method to check whether dependent libraries are shared objects.
18130 deplibs_check_method=$lt_deplibs_check_method
18132 # Command to use when deplibs_check_method == "file_magic".
18133 file_magic_cmd=$lt_file_magic_cmd
18135 # The archiver.
18136 AR=$lt_AR
18137 AR_FLAGS=$lt_AR_FLAGS
18139 # A symbol stripping program.
18140 STRIP=$lt_STRIP
18142 # Commands used to install an old-style archive.
18143 RANLIB=$lt_RANLIB
18144 old_postinstall_cmds=$lt_old_postinstall_cmds
18145 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18147 # Whether to use a lock for old archive extraction.
18148 lock_old_archive_extraction=$lock_old_archive_extraction
18150 # A C compiler.
18151 LTCC=$lt_CC
18153 # LTCC compiler flags.
18154 LTCFLAGS=$lt_CFLAGS
18156 # Take the output of nm and produce a listing of raw symbols and C names.
18157 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18159 # Transform the output of nm in a proper C declaration.
18160 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18162 # Transform the output of nm in a C name address pair.
18163 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18165 # Transform the output of nm in a C name address pair when lib prefix is needed.
18166 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18168 # The name of the directory that contains temporary libtool files.
18169 objdir=$objdir
18171 # Used to examine libraries when file_magic_cmd begins with "file".
18172 MAGIC_CMD=$MAGIC_CMD
18174 # Must we lock files when doing compilation?
18175 need_locks=$lt_need_locks
18177 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18178 DSYMUTIL=$lt_DSYMUTIL
18180 # Tool to change global to local symbols on Mac OS X.
18181 NMEDIT=$lt_NMEDIT
18183 # Tool to manipulate fat objects and archives on Mac OS X.
18184 LIPO=$lt_LIPO
18186 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18187 OTOOL=$lt_OTOOL
18189 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18190 OTOOL64=$lt_OTOOL64
18192 # Old archive suffix (normally "a").
18193 libext=$libext
18195 # Shared library suffix (normally ".so").
18196 shrext_cmds=$lt_shrext_cmds
18198 # The commands to extract the exported symbol list from a shared archive.
18199 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18201 # Variables whose values should be saved in libtool wrapper scripts and
18202 # restored at link time.
18203 variables_saved_for_relink=$lt_variables_saved_for_relink
18205 # Do we need the "lib" prefix for modules?
18206 need_lib_prefix=$need_lib_prefix
18208 # Do we need a version for libraries?
18209 need_version=$need_version
18211 # Library versioning type.
18212 version_type=$version_type
18214 # Shared library runtime path variable.
18215 runpath_var=$runpath_var
18217 # Shared library path variable.
18218 shlibpath_var=$shlibpath_var
18220 # Is shlibpath searched before the hard-coded library search path?
18221 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18223 # Format of library name prefix.
18224 libname_spec=$lt_libname_spec
18226 # List of archive names. First name is the real one, the rest are links.
18227 # The last name is the one that the linker finds with -lNAME
18228 library_names_spec=$lt_library_names_spec
18230 # The coded name of the library, if different from the real name.
18231 soname_spec=$lt_soname_spec
18233 # Permission mode override for installation of shared libraries.
18234 install_override_mode=$lt_install_override_mode
18236 # Command to use after installation of a shared archive.
18237 postinstall_cmds=$lt_postinstall_cmds
18239 # Command to use after uninstallation of a shared archive.
18240 postuninstall_cmds=$lt_postuninstall_cmds
18242 # Commands used to finish a libtool library installation in a directory.
18243 finish_cmds=$lt_finish_cmds
18245 # As "finish_cmds", except a single script fragment to be evaled but
18246 # not shown.
18247 finish_eval=$lt_finish_eval
18249 # Whether we should hardcode library paths into libraries.
18250 hardcode_into_libs=$hardcode_into_libs
18252 # Compile-time system search path for libraries.
18253 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18255 # Run-time system search path for libraries.
18256 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18258 # Whether dlopen is supported.
18259 dlopen_support=$enable_dlopen
18261 # Whether dlopen of programs is supported.
18262 dlopen_self=$enable_dlopen_self
18264 # Whether dlopen of statically linked programs is supported.
18265 dlopen_self_static=$enable_dlopen_self_static
18267 # Commands to strip libraries.
18268 old_striplib=$lt_old_striplib
18269 striplib=$lt_striplib
18272 # The linker used to build libraries.
18273 LD=$lt_LD
18275 # How to create reloadable object files.
18276 reload_flag=$lt_reload_flag
18277 reload_cmds=$lt_reload_cmds
18279 # Commands used to build an old-style archive.
18280 old_archive_cmds=$lt_old_archive_cmds
18282 # A language specific compiler.
18283 CC=$lt_compiler
18285 # Is the compiler the GNU compiler?
18286 with_gcc=$GCC
18288 # Compiler flag to turn off builtin functions.
18289 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18291 # How to pass a linker flag through the compiler.
18292 wl=$lt_lt_prog_compiler_wl
18294 # Additional compiler flags for building library objects.
18295 pic_flag=$lt_lt_prog_compiler_pic
18297 # Compiler flag to prevent dynamic linking.
18298 link_static_flag=$lt_lt_prog_compiler_static
18300 # Does compiler simultaneously support -c and -o options?
18301 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18303 # Whether or not to add -lc for building shared libraries.
18304 build_libtool_need_lc=$archive_cmds_need_lc
18306 # Whether or not to disallow shared libs when runtime libs are static.
18307 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18309 # Compiler flag to allow reflexive dlopens.
18310 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18312 # Compiler flag to generate shared objects directly from archives.
18313 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18315 # Whether the compiler copes with passing no objects directly.
18316 compiler_needs_object=$lt_compiler_needs_object
18318 # Create an old-style archive from a shared archive.
18319 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18321 # Create a temporary old-style archive to link instead of a shared archive.
18322 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18324 # Commands used to build a shared archive.
18325 archive_cmds=$lt_archive_cmds
18326 archive_expsym_cmds=$lt_archive_expsym_cmds
18328 # Commands used to build a loadable module if different from building
18329 # a shared archive.
18330 module_cmds=$lt_module_cmds
18331 module_expsym_cmds=$lt_module_expsym_cmds
18333 # Whether we are building with GNU ld or not.
18334 with_gnu_ld=$lt_with_gnu_ld
18336 # Flag that allows shared libraries with undefined symbols to be built.
18337 allow_undefined_flag=$lt_allow_undefined_flag
18339 # Flag that enforces no undefined symbols.
18340 no_undefined_flag=$lt_no_undefined_flag
18342 # Flag to hardcode \$libdir into a binary during linking.
18343 # This must work even if \$libdir does not exist
18344 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18346 # If ld is used when linking, flag to hardcode \$libdir into a binary
18347 # during linking. This must work even if \$libdir does not exist.
18348 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18350 # Whether we need a single "-rpath" flag with a separated argument.
18351 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18353 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18354 # DIR into the resulting binary.
18355 hardcode_direct=$hardcode_direct
18357 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18358 # DIR into the resulting binary and the resulting library dependency is
18359 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18360 # library is relocated.
18361 hardcode_direct_absolute=$hardcode_direct_absolute
18363 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18364 # into the resulting binary.
18365 hardcode_minus_L=$hardcode_minus_L
18367 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18368 # into the resulting binary.
18369 hardcode_shlibpath_var=$hardcode_shlibpath_var
18371 # Set to "yes" if building a shared library automatically hardcodes DIR
18372 # into the library and all subsequent libraries and executables linked
18373 # against it.
18374 hardcode_automatic=$hardcode_automatic
18376 # Set to yes if linker adds runtime paths of dependent libraries
18377 # to runtime path list.
18378 inherit_rpath=$inherit_rpath
18380 # Whether libtool must link a program against all its dependency libraries.
18381 link_all_deplibs=$link_all_deplibs
18383 # Fix the shell variable \$srcfile for the compiler.
18384 fix_srcfile_path=$lt_fix_srcfile_path
18386 # Set to "yes" if exported symbols are required.
18387 always_export_symbols=$always_export_symbols
18389 # The commands to list exported symbols.
18390 export_symbols_cmds=$lt_export_symbols_cmds
18392 # Symbols that should not be listed in the preloaded symbols.
18393 exclude_expsyms=$lt_exclude_expsyms
18395 # Symbols that must always be exported.
18396 include_expsyms=$lt_include_expsyms
18398 # Commands necessary for linking programs (against libraries) with templates.
18399 prelink_cmds=$lt_prelink_cmds
18401 # Specify filename containing input files.
18402 file_list_spec=$lt_file_list_spec
18404 # How to hardcode a shared library path into an executable.
18405 hardcode_action=$hardcode_action
18407 # The directories searched by this compiler when creating a shared library.
18408 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18410 # Dependencies to place before and after the objects being linked to
18411 # create a shared library.
18412 predep_objects=$lt_predep_objects
18413 postdep_objects=$lt_postdep_objects
18414 predeps=$lt_predeps
18415 postdeps=$lt_postdeps
18417 # The library search path used internally by the compiler when linking
18418 # a shared library.
18419 compiler_lib_search_path=$lt_compiler_lib_search_path
18421 # ### END LIBTOOL CONFIG
18423 _LT_EOF
18425 case $host_os in
18426 aix3*)
18427 cat <<\_LT_EOF >> "$cfgfile"
18428 # AIX sometimes has problems with the GCC collect2 program. For some
18429 # reason, if we set the COLLECT_NAMES environment variable, the problems
18430 # vanish in a puff of smoke.
18431 if test "X${COLLECT_NAMES+set}" != Xset; then
18432 COLLECT_NAMES=
18433 export COLLECT_NAMES
18435 _LT_EOF
18437 esac
18440 ltmain="$ac_aux_dir/ltmain.sh"
18443 # We use sed instead of cat because bash on DJGPP gets confused if
18444 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18445 # text mode, it properly converts lines to CR/LF. This bash problem
18446 # is reportedly fixed, but why not run on old versions too?
18447 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18448 || (rm -f "$cfgfile"; exit 1)
18450 case $xsi_shell in
18451 yes)
18452 cat << \_LT_EOF >> "$cfgfile"
18454 # func_dirname file append nondir_replacement
18455 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18456 # otherwise set result to NONDIR_REPLACEMENT.
18457 func_dirname ()
18459 case ${1} in
18460 */*) func_dirname_result="${1%/*}${2}" ;;
18461 * ) func_dirname_result="${3}" ;;
18462 esac
18465 # func_basename file
18466 func_basename ()
18468 func_basename_result="${1##*/}"
18471 # func_dirname_and_basename file append nondir_replacement
18472 # perform func_basename and func_dirname in a single function
18473 # call:
18474 # dirname: Compute the dirname of FILE. If nonempty,
18475 # add APPEND to the result, otherwise set result
18476 # to NONDIR_REPLACEMENT.
18477 # value returned in "$func_dirname_result"
18478 # basename: Compute filename of FILE.
18479 # value retuned in "$func_basename_result"
18480 # Implementation must be kept synchronized with func_dirname
18481 # and func_basename. For efficiency, we do not delegate to
18482 # those functions but instead duplicate the functionality here.
18483 func_dirname_and_basename ()
18485 case ${1} in
18486 */*) func_dirname_result="${1%/*}${2}" ;;
18487 * ) func_dirname_result="${3}" ;;
18488 esac
18489 func_basename_result="${1##*/}"
18492 # func_stripname prefix suffix name
18493 # strip PREFIX and SUFFIX off of NAME.
18494 # PREFIX and SUFFIX must not contain globbing or regex special
18495 # characters, hashes, percent signs, but SUFFIX may contain a leading
18496 # dot (in which case that matches only a dot).
18497 func_stripname ()
18499 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18500 # positional parameters, so assign one to ordinary parameter first.
18501 func_stripname_result=${3}
18502 func_stripname_result=${func_stripname_result#"${1}"}
18503 func_stripname_result=${func_stripname_result%"${2}"}
18506 # func_opt_split
18507 func_opt_split ()
18509 func_opt_split_opt=${1%%=*}
18510 func_opt_split_arg=${1#*=}
18513 # func_lo2o object
18514 func_lo2o ()
18516 case ${1} in
18517 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18518 *) func_lo2o_result=${1} ;;
18519 esac
18522 # func_xform libobj-or-source
18523 func_xform ()
18525 func_xform_result=${1%.*}.lo
18528 # func_arith arithmetic-term...
18529 func_arith ()
18531 func_arith_result=$(( $* ))
18534 # func_len string
18535 # STRING may not start with a hyphen.
18536 func_len ()
18538 func_len_result=${#1}
18541 _LT_EOF
18543 *) # Bourne compatible functions.
18544 cat << \_LT_EOF >> "$cfgfile"
18546 # func_dirname file append nondir_replacement
18547 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18548 # otherwise set result to NONDIR_REPLACEMENT.
18549 func_dirname ()
18551 # Extract subdirectory from the argument.
18552 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18553 if test "X$func_dirname_result" = "X${1}"; then
18554 func_dirname_result="${3}"
18555 else
18556 func_dirname_result="$func_dirname_result${2}"
18560 # func_basename file
18561 func_basename ()
18563 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18567 # func_stripname prefix suffix name
18568 # strip PREFIX and SUFFIX off of NAME.
18569 # PREFIX and SUFFIX must not contain globbing or regex special
18570 # characters, hashes, percent signs, but SUFFIX may contain a leading
18571 # dot (in which case that matches only a dot).
18572 # func_strip_suffix prefix name
18573 func_stripname ()
18575 case ${2} in
18576 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18577 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18578 esac
18581 # sed scripts:
18582 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18583 my_sed_long_arg='1s/^-[^=]*=//'
18585 # func_opt_split
18586 func_opt_split ()
18588 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18589 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18592 # func_lo2o object
18593 func_lo2o ()
18595 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18598 # func_xform libobj-or-source
18599 func_xform ()
18601 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18604 # func_arith arithmetic-term...
18605 func_arith ()
18607 func_arith_result=`expr "$@"`
18610 # func_len string
18611 # STRING may not start with a hyphen.
18612 func_len ()
18614 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18617 _LT_EOF
18618 esac
18620 case $lt_shell_append in
18621 yes)
18622 cat << \_LT_EOF >> "$cfgfile"
18624 # func_append var value
18625 # Append VALUE to the end of shell variable VAR.
18626 func_append ()
18628 eval "$1+=\$2"
18630 _LT_EOF
18633 cat << \_LT_EOF >> "$cfgfile"
18635 # func_append var value
18636 # Append VALUE to the end of shell variable VAR.
18637 func_append ()
18639 eval "$1=\$$1\$2"
18642 _LT_EOF
18644 esac
18647 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18648 || (rm -f "$cfgfile"; exit 1)
18650 mv -f "$cfgfile" "$ofile" ||
18651 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18652 chmod +x "$ofile"
18655 cat <<_LT_EOF >> "$ofile"
18657 # ### BEGIN LIBTOOL TAG CONFIG: FC
18659 # The linker used to build libraries.
18660 LD=$lt_LD_FC
18662 # How to create reloadable object files.
18663 reload_flag=$lt_reload_flag_FC
18664 reload_cmds=$lt_reload_cmds_FC
18666 # Commands used to build an old-style archive.
18667 old_archive_cmds=$lt_old_archive_cmds_FC
18669 # A language specific compiler.
18670 CC=$lt_compiler_FC
18672 # Is the compiler the GNU compiler?
18673 with_gcc=$GCC_FC
18675 # Compiler flag to turn off builtin functions.
18676 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
18678 # How to pass a linker flag through the compiler.
18679 wl=$lt_lt_prog_compiler_wl_FC
18681 # Additional compiler flags for building library objects.
18682 pic_flag=$lt_lt_prog_compiler_pic_FC
18684 # Compiler flag to prevent dynamic linking.
18685 link_static_flag=$lt_lt_prog_compiler_static_FC
18687 # Does compiler simultaneously support -c and -o options?
18688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
18690 # Whether or not to add -lc for building shared libraries.
18691 build_libtool_need_lc=$archive_cmds_need_lc_FC
18693 # Whether or not to disallow shared libs when runtime libs are static.
18694 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
18696 # Compiler flag to allow reflexive dlopens.
18697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
18699 # Compiler flag to generate shared objects directly from archives.
18700 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
18702 # Whether the compiler copes with passing no objects directly.
18703 compiler_needs_object=$lt_compiler_needs_object_FC
18705 # Create an old-style archive from a shared archive.
18706 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
18708 # Create a temporary old-style archive to link instead of a shared archive.
18709 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
18711 # Commands used to build a shared archive.
18712 archive_cmds=$lt_archive_cmds_FC
18713 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
18715 # Commands used to build a loadable module if different from building
18716 # a shared archive.
18717 module_cmds=$lt_module_cmds_FC
18718 module_expsym_cmds=$lt_module_expsym_cmds_FC
18720 # Whether we are building with GNU ld or not.
18721 with_gnu_ld=$lt_with_gnu_ld_FC
18723 # Flag that allows shared libraries with undefined symbols to be built.
18724 allow_undefined_flag=$lt_allow_undefined_flag_FC
18726 # Flag that enforces no undefined symbols.
18727 no_undefined_flag=$lt_no_undefined_flag_FC
18729 # Flag to hardcode \$libdir into a binary during linking.
18730 # This must work even if \$libdir does not exist
18731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
18733 # If ld is used when linking, flag to hardcode \$libdir into a binary
18734 # during linking. This must work even if \$libdir does not exist.
18735 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
18737 # Whether we need a single "-rpath" flag with a separated argument.
18738 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
18740 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18741 # DIR into the resulting binary.
18742 hardcode_direct=$hardcode_direct_FC
18744 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18745 # DIR into the resulting binary and the resulting library dependency is
18746 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18747 # library is relocated.
18748 hardcode_direct_absolute=$hardcode_direct_absolute_FC
18750 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18751 # into the resulting binary.
18752 hardcode_minus_L=$hardcode_minus_L_FC
18754 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18755 # into the resulting binary.
18756 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
18758 # Set to "yes" if building a shared library automatically hardcodes DIR
18759 # into the library and all subsequent libraries and executables linked
18760 # against it.
18761 hardcode_automatic=$hardcode_automatic_FC
18763 # Set to yes if linker adds runtime paths of dependent libraries
18764 # to runtime path list.
18765 inherit_rpath=$inherit_rpath_FC
18767 # Whether libtool must link a program against all its dependency libraries.
18768 link_all_deplibs=$link_all_deplibs_FC
18770 # Fix the shell variable \$srcfile for the compiler.
18771 fix_srcfile_path=$lt_fix_srcfile_path_FC
18773 # Set to "yes" if exported symbols are required.
18774 always_export_symbols=$always_export_symbols_FC
18776 # The commands to list exported symbols.
18777 export_symbols_cmds=$lt_export_symbols_cmds_FC
18779 # Symbols that should not be listed in the preloaded symbols.
18780 exclude_expsyms=$lt_exclude_expsyms_FC
18782 # Symbols that must always be exported.
18783 include_expsyms=$lt_include_expsyms_FC
18785 # Commands necessary for linking programs (against libraries) with templates.
18786 prelink_cmds=$lt_prelink_cmds_FC
18788 # Specify filename containing input files.
18789 file_list_spec=$lt_file_list_spec_FC
18791 # How to hardcode a shared library path into an executable.
18792 hardcode_action=$hardcode_action_FC
18794 # The directories searched by this compiler when creating a shared library.
18795 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
18797 # Dependencies to place before and after the objects being linked to
18798 # create a shared library.
18799 predep_objects=$lt_predep_objects_FC
18800 postdep_objects=$lt_postdep_objects_FC
18801 predeps=$lt_predeps_FC
18802 postdeps=$lt_postdeps_FC
18804 # The library search path used internally by the compiler when linking
18805 # a shared library.
18806 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
18808 # ### END LIBTOOL TAG CONFIG: FC
18809 _LT_EOF
18812 "gstdint.h":C)
18813 if test "$GCC" = yes; then
18814 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18815 else
18816 echo "/* generated for $CC */" > tmp-stdint.h
18819 sed 's/^ *//' >> tmp-stdint.h <<EOF
18821 #ifndef GCC_GENERATED_STDINT_H
18822 #define GCC_GENERATED_STDINT_H 1
18824 #include <sys/types.h>
18827 if test "$acx_cv_header_stdint" != stdint.h; then
18828 echo "#include <stddef.h>" >> tmp-stdint.h
18830 if test "$acx_cv_header_stdint" != stddef.h; then
18831 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18834 sed 's/^ *//' >> tmp-stdint.h <<EOF
18835 /* glibc uses these symbols as guards to prevent redefinitions. */
18836 #ifdef __int8_t_defined
18837 #define _INT8_T
18838 #define _INT16_T
18839 #define _INT32_T
18840 #endif
18841 #ifdef __uint32_t_defined
18842 #define _UINT32_T
18843 #endif
18847 # ----------------- done header, emit basic int types -------------
18848 if test "$acx_cv_header_stdint" = stddef.h; then
18849 sed 's/^ *//' >> tmp-stdint.h <<EOF
18851 #ifndef _UINT8_T
18852 #define _UINT8_T
18853 #ifndef __uint8_t_defined
18854 #define __uint8_t_defined
18855 #ifndef uint8_t
18856 typedef unsigned $acx_cv_type_int8_t uint8_t;
18857 #endif
18858 #endif
18859 #endif
18861 #ifndef _UINT16_T
18862 #define _UINT16_T
18863 #ifndef __uint16_t_defined
18864 #define __uint16_t_defined
18865 #ifndef uint16_t
18866 typedef unsigned $acx_cv_type_int16_t uint16_t;
18867 #endif
18868 #endif
18869 #endif
18871 #ifndef _UINT32_T
18872 #define _UINT32_T
18873 #ifndef __uint32_t_defined
18874 #define __uint32_t_defined
18875 #ifndef uint32_t
18876 typedef unsigned $acx_cv_type_int32_t uint32_t;
18877 #endif
18878 #endif
18879 #endif
18881 #ifndef _INT8_T
18882 #define _INT8_T
18883 #ifndef __int8_t_defined
18884 #define __int8_t_defined
18885 #ifndef int8_t
18886 typedef $acx_cv_type_int8_t int8_t;
18887 #endif
18888 #endif
18889 #endif
18891 #ifndef _INT16_T
18892 #define _INT16_T
18893 #ifndef __int16_t_defined
18894 #define __int16_t_defined
18895 #ifndef int16_t
18896 typedef $acx_cv_type_int16_t int16_t;
18897 #endif
18898 #endif
18899 #endif
18901 #ifndef _INT32_T
18902 #define _INT32_T
18903 #ifndef __int32_t_defined
18904 #define __int32_t_defined
18905 #ifndef int32_t
18906 typedef $acx_cv_type_int32_t int32_t;
18907 #endif
18908 #endif
18909 #endif
18911 elif test "$ac_cv_type_u_int32_t" = yes; then
18912 sed 's/^ *//' >> tmp-stdint.h <<EOF
18914 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18915 #ifndef _INT8_T
18916 #define _INT8_T
18917 #endif
18918 #ifndef _INT16_T
18919 #define _INT16_T
18920 #endif
18921 #ifndef _INT32_T
18922 #define _INT32_T
18923 #endif
18925 #ifndef _UINT8_T
18926 #define _UINT8_T
18927 #ifndef __uint8_t_defined
18928 #define __uint8_t_defined
18929 #ifndef uint8_t
18930 typedef u_int8_t uint8_t;
18931 #endif
18932 #endif
18933 #endif
18935 #ifndef _UINT16_T
18936 #define _UINT16_T
18937 #ifndef __uint16_t_defined
18938 #define __uint16_t_defined
18939 #ifndef uint16_t
18940 typedef u_int16_t uint16_t;
18941 #endif
18942 #endif
18943 #endif
18945 #ifndef _UINT32_T
18946 #define _UINT32_T
18947 #ifndef __uint32_t_defined
18948 #define __uint32_t_defined
18949 #ifndef uint32_t
18950 typedef u_int32_t uint32_t;
18951 #endif
18952 #endif
18953 #endif
18955 else
18956 sed 's/^ *//' >> tmp-stdint.h <<EOF
18958 /* Some systems have guard macros to prevent redefinitions, define them. */
18959 #ifndef _INT8_T
18960 #define _INT8_T
18961 #endif
18962 #ifndef _INT16_T
18963 #define _INT16_T
18964 #endif
18965 #ifndef _INT32_T
18966 #define _INT32_T
18967 #endif
18968 #ifndef _UINT8_T
18969 #define _UINT8_T
18970 #endif
18971 #ifndef _UINT16_T
18972 #define _UINT16_T
18973 #endif
18974 #ifndef _UINT32_T
18975 #define _UINT32_T
18976 #endif
18980 # ------------- done basic int types, emit int64_t types ------------
18981 if test "$ac_cv_type_uint64_t" = yes; then
18982 sed 's/^ *//' >> tmp-stdint.h <<EOF
18984 /* system headers have good uint64_t and int64_t */
18985 #ifndef _INT64_T
18986 #define _INT64_T
18987 #endif
18988 #ifndef _UINT64_T
18989 #define _UINT64_T
18990 #endif
18992 elif test "$ac_cv_type_u_int64_t" = yes; then
18993 sed 's/^ *//' >> tmp-stdint.h <<EOF
18995 /* system headers have an u_int64_t (and int64_t) */
18996 #ifndef _INT64_T
18997 #define _INT64_T
18998 #endif
18999 #ifndef _UINT64_T
19000 #define _UINT64_T
19001 #ifndef __uint64_t_defined
19002 #define __uint64_t_defined
19003 #ifndef uint64_t
19004 typedef u_int64_t uint64_t;
19005 #endif
19006 #endif
19007 #endif
19009 elif test -n "$acx_cv_type_int64_t"; then
19010 sed 's/^ *//' >> tmp-stdint.h <<EOF
19012 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19013 #ifndef _INT64_T
19014 #define _INT64_T
19015 #ifndef int64_t
19016 typedef $acx_cv_type_int64_t int64_t;
19017 #endif
19018 #endif
19019 #ifndef _UINT64_T
19020 #define _UINT64_T
19021 #ifndef __uint64_t_defined
19022 #define __uint64_t_defined
19023 #ifndef uint64_t
19024 typedef unsigned $acx_cv_type_int64_t uint64_t;
19025 #endif
19026 #endif
19027 #endif
19029 else
19030 sed 's/^ *//' >> tmp-stdint.h <<EOF
19032 /* some common heuristics for int64_t, using compiler-specific tests */
19033 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19034 #ifndef _INT64_T
19035 #define _INT64_T
19036 #ifndef __int64_t_defined
19037 #ifndef int64_t
19038 typedef long long int64_t;
19039 #endif
19040 #endif
19041 #endif
19042 #ifndef _UINT64_T
19043 #define _UINT64_T
19044 #ifndef uint64_t
19045 typedef unsigned long long uint64_t;
19046 #endif
19047 #endif
19049 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19050 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19051 does not implement __extension__. But that compiler doesn't define
19052 __GNUC_MINOR__. */
19053 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19054 # define __extension__
19055 # endif
19057 # ifndef _INT64_T
19058 # define _INT64_T
19059 # ifndef int64_t
19060 __extension__ typedef long long int64_t;
19061 # endif
19062 # endif
19063 # ifndef _UINT64_T
19064 # define _UINT64_T
19065 # ifndef uint64_t
19066 __extension__ typedef unsigned long long uint64_t;
19067 # endif
19068 # endif
19070 #elif !defined __STRICT_ANSI__
19071 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19073 # ifndef _INT64_T
19074 # define _INT64_T
19075 # ifndef int64_t
19076 typedef __int64 int64_t;
19077 # endif
19078 # endif
19079 # ifndef _UINT64_T
19080 # define _UINT64_T
19081 # ifndef uint64_t
19082 typedef unsigned __int64 uint64_t;
19083 # endif
19084 # endif
19085 # endif /* compiler */
19087 #endif /* ANSI version */
19091 # ------------- done int64_t types, emit intptr types ------------
19092 if test "$ac_cv_type_uintptr_t" != yes; then
19093 sed 's/^ *//' >> tmp-stdint.h <<EOF
19095 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19096 #ifndef __uintptr_t_defined
19097 #ifndef uintptr_t
19098 typedef u$acx_cv_type_intptr_t uintptr_t;
19099 #endif
19100 #endif
19101 #ifndef __intptr_t_defined
19102 #ifndef intptr_t
19103 typedef $acx_cv_type_intptr_t intptr_t;
19104 #endif
19105 #endif
19109 # ------------- done intptr types, emit int_least types ------------
19110 if test "$ac_cv_type_int_least32_t" != yes; then
19111 sed 's/^ *//' >> tmp-stdint.h <<EOF
19113 /* Define int_least types */
19114 typedef int8_t int_least8_t;
19115 typedef int16_t int_least16_t;
19116 typedef int32_t int_least32_t;
19117 #ifdef _INT64_T
19118 typedef int64_t int_least64_t;
19119 #endif
19121 typedef uint8_t uint_least8_t;
19122 typedef uint16_t uint_least16_t;
19123 typedef uint32_t uint_least32_t;
19124 #ifdef _UINT64_T
19125 typedef uint64_t uint_least64_t;
19126 #endif
19130 # ------------- done intptr types, emit int_fast types ------------
19131 if test "$ac_cv_type_int_fast32_t" != yes; then
19132 sed 's/^ *//' >> tmp-stdint.h <<EOF
19134 /* Define int_fast types. short is often slow */
19135 typedef int8_t int_fast8_t;
19136 typedef int int_fast16_t;
19137 typedef int32_t int_fast32_t;
19138 #ifdef _INT64_T
19139 typedef int64_t int_fast64_t;
19140 #endif
19142 typedef uint8_t uint_fast8_t;
19143 typedef unsigned int uint_fast16_t;
19144 typedef uint32_t uint_fast32_t;
19145 #ifdef _UINT64_T
19146 typedef uint64_t uint_fast64_t;
19147 #endif
19151 if test "$ac_cv_type_uintmax_t" != yes; then
19152 sed 's/^ *//' >> tmp-stdint.h <<EOF
19154 /* Define intmax based on what we found */
19155 #ifndef intmax_t
19156 #ifdef _INT64_T
19157 typedef int64_t intmax_t;
19158 #else
19159 typedef long intmax_t;
19160 #endif
19161 #endif
19162 #ifndef uintmax_t
19163 #ifdef _UINT64_T
19164 typedef uint64_t uintmax_t;
19165 #else
19166 typedef unsigned long uintmax_t;
19167 #endif
19168 #endif
19172 sed 's/^ *//' >> tmp-stdint.h <<EOF
19174 #endif /* GCC_GENERATED_STDINT_H */
19177 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19178 rm -f tmp-stdint.h
19179 else
19180 mv -f tmp-stdint.h gstdint.h
19185 esac
19186 done # for ac_tag
19189 as_fn_exit 0
19190 _ACEOF
19191 ac_clean_files=$ac_clean_files_save
19193 test $ac_write_fail = 0 ||
19194 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19197 # configure is writing to config.log, and then calls config.status.
19198 # config.status does its own redirection, appending to config.log.
19199 # Unfortunately, on DOS this fails, as config.log is still kept open
19200 # by configure, so config.status won't be able to write to it; its
19201 # output is simply discarded. So we exec the FD to /dev/null,
19202 # effectively closing config.log, so it can be properly (re)opened and
19203 # appended to by config.status. When coming back to configure, we
19204 # need to make the FD available again.
19205 if test "$no_create" != yes; then
19206 ac_cs_success=:
19207 ac_config_status_args=
19208 test "$silent" = yes &&
19209 ac_config_status_args="$ac_config_status_args --quiet"
19210 exec 5>/dev/null
19211 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19212 exec 5>>config.log
19213 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19214 # would make configure fail if this is the last instruction.
19215 $ac_cs_success || as_fn_exit $?
19217 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19219 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}