2010-01-20 Paolo Bonzini <bonzini@gnu.org>
[official-gcc.git] / libgomp / configure
blob23625003a2333b8b8a0b53b0200e8d6a8abea636
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 # -Wall: turns on all automake warnings...
2758 # -Wno-portability: ...except this one, since GNU make is required.
2759 # -Wno-override: ... and this one, since we do want this in testsuite.
2760 am__api_version='1.11'
2762 # Find a good install program. We prefer a C program (faster),
2763 # so one script is as good as another. But avoid the broken or
2764 # incompatible versions:
2765 # SysV /etc/install, /usr/sbin/install
2766 # SunOS /usr/etc/install
2767 # IRIX /sbin/install
2768 # AIX /bin/install
2769 # AmigaOS /C/install, which installs bootblocks on floppy discs
2770 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2771 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2772 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2773 # OS/2's system install, which has a completely different semantic
2774 # ./install, which can be erroneously created by make from ./install.sh.
2775 # Reject install programs that cannot install multiple files.
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2777 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2778 if test -z "$INSTALL"; then
2779 if test "${ac_cv_path_install+set}" = set; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 # Account for people who put trailing slashes in PATH elements.
2788 case $as_dir/ in #((
2789 ./ | .// | /[cC]/* | \
2790 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2791 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2792 /usr/ucb/* ) ;;
2794 # OSF1 and SCO ODT 3.0 have their own names for install.
2795 # Don't use installbsd from OSF since it installs stuff as root
2796 # by default.
2797 for ac_prog in ginstall scoinst install; do
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2800 if test $ac_prog = install &&
2801 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2802 # AIX install. It has an incompatible calling convention.
2804 elif test $ac_prog = install &&
2805 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2806 # program-specific install script used by HP pwplus--don't use.
2808 else
2809 rm -rf conftest.one conftest.two conftest.dir
2810 echo one > conftest.one
2811 echo two > conftest.two
2812 mkdir conftest.dir
2813 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2814 test -s conftest.one && test -s conftest.two &&
2815 test -s conftest.dir/conftest.one &&
2816 test -s conftest.dir/conftest.two
2817 then
2818 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2819 break 3
2823 done
2824 done
2826 esac
2828 done
2829 IFS=$as_save_IFS
2831 rm -rf conftest.one conftest.two conftest.dir
2834 if test "${ac_cv_path_install+set}" = set; then
2835 INSTALL=$ac_cv_path_install
2836 else
2837 # As a last resort, use the slow shell script. Don't cache a
2838 # value for INSTALL within a source directory, because that will
2839 # break other packages using the cache if that directory is
2840 # removed, or if the value is a relative name.
2841 INSTALL=$ac_install_sh
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2845 $as_echo "$INSTALL" >&6; }
2847 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2848 # It thinks the first close brace ends the variable substitution.
2849 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2851 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2853 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2856 $as_echo_n "checking whether build environment is sane... " >&6; }
2857 # Just in case
2858 sleep 1
2859 echo timestamp > conftest.file
2860 # Reject unsafe characters in $srcdir or the absolute working directory
2861 # name. Accept space and tab only in the latter.
2862 am_lf='
2864 case `pwd` in
2865 *[\\\"\#\$\&\'\`$am_lf]*)
2866 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2867 esac
2868 case $srcdir in
2869 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2870 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2871 esac
2873 # Do `set' in a subshell so we don't clobber the current shell's
2874 # arguments. Must try -L first in case configure is actually a
2875 # symlink; some systems play weird games with the mod time of symlinks
2876 # (eg FreeBSD returns the mod time of the symlink's containing
2877 # directory).
2878 if (
2879 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2880 if test "$*" = "X"; then
2881 # -L didn't work.
2882 set X `ls -t "$srcdir/configure" conftest.file`
2884 rm -f conftest.file
2885 if test "$*" != "X $srcdir/configure conftest.file" \
2886 && test "$*" != "X conftest.file $srcdir/configure"; then
2888 # If neither matched, then we have a broken ls. This can happen
2889 # if, for instance, CONFIG_SHELL is bash and it inherits a
2890 # broken ls alias from the environment. This has actually
2891 # happened. Such a system could not be considered "sane".
2892 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2893 alias in your environment" "$LINENO" 5
2896 test "$2" = conftest.file
2898 then
2899 # Ok.
2901 else
2902 as_fn_error "newly created file is older than distributed files!
2903 Check your system clock" "$LINENO" 5
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2906 $as_echo "yes" >&6; }
2907 test "$program_prefix" != NONE &&
2908 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2909 # Use a double $ so make ignores it.
2910 test "$program_suffix" != NONE &&
2911 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2912 # Double any \ or $.
2913 # By default was `s,x,x', remove it if useless.
2914 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2915 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2917 # expand $ac_aux_dir to an absolute path
2918 am_aux_dir=`cd $ac_aux_dir && pwd`
2920 if test x"${MISSING+set}" != xset; then
2921 case $am_aux_dir in
2922 *\ * | *\ *)
2923 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2925 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2926 esac
2928 # Use eval to expand $SHELL
2929 if eval "$MISSING --run true"; then
2930 am_missing_run="$MISSING --run "
2931 else
2932 am_missing_run=
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2934 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2937 if test x"${install_sh}" != xset; then
2938 case $am_aux_dir in
2939 *\ * | *\ *)
2940 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2942 install_sh="\${SHELL} $am_aux_dir/install-sh"
2943 esac
2946 # Installed binaries are usually stripped using `strip' when the user
2947 # run `make install-strip'. However `strip' might not be the right
2948 # tool to use in cross-compilation environments, therefore Automake
2949 # will honor the `STRIP' environment variable to overrule this program.
2950 if test "$cross_compiling" != no; then
2951 if test -n "$ac_tool_prefix"; then
2952 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2953 set dummy ${ac_tool_prefix}strip; ac_word=$2
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if test "${ac_cv_prog_STRIP+set}" = set; then :
2957 $as_echo_n "(cached) " >&6
2958 else
2959 if test -n "$STRIP"; then
2960 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 break 2
2973 done
2974 done
2975 IFS=$as_save_IFS
2979 STRIP=$ac_cv_prog_STRIP
2980 if test -n "$STRIP"; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2982 $as_echo "$STRIP" >&6; }
2983 else
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2990 if test -z "$ac_cv_prog_STRIP"; then
2991 ac_ct_STRIP=$STRIP
2992 # Extract the first word of "strip", so it can be a program name with args.
2993 set dummy strip; ac_word=$2
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2997 $as_echo_n "(cached) " >&6
2998 else
2999 if test -n "$ac_ct_STRIP"; then
3000 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3001 else
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 for as_dir in $PATH
3005 IFS=$as_save_IFS
3006 test -z "$as_dir" && as_dir=.
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009 ac_cv_prog_ac_ct_STRIP="strip"
3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 break 2
3013 done
3014 done
3015 IFS=$as_save_IFS
3019 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3020 if test -n "$ac_ct_STRIP"; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3022 $as_echo "$ac_ct_STRIP" >&6; }
3023 else
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3028 if test "x$ac_ct_STRIP" = x; then
3029 STRIP=":"
3030 else
3031 case $cross_compiling:$ac_tool_warned in
3032 yes:)
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3035 ac_tool_warned=yes ;;
3036 esac
3037 STRIP=$ac_ct_STRIP
3039 else
3040 STRIP="$ac_cv_prog_STRIP"
3044 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3047 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3048 if test -z "$MKDIR_P"; then
3049 if test "${ac_cv_path_mkdir+set}" = set; then :
3050 $as_echo_n "(cached) " >&6
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_prog in mkdir gmkdir; do
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3060 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3061 'mkdir (GNU coreutils) '* | \
3062 'mkdir (coreutils) '* | \
3063 'mkdir (fileutils) '4.1*)
3064 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3065 break 3;;
3066 esac
3067 done
3068 done
3069 done
3070 IFS=$as_save_IFS
3074 if test "${ac_cv_path_mkdir+set}" = set; then
3075 MKDIR_P="$ac_cv_path_mkdir -p"
3076 else
3077 # As a last resort, use the slow shell script. Don't cache a
3078 # value for MKDIR_P within a source directory, because that will
3079 # break other packages using the cache if that directory is
3080 # removed, or if the value is a relative name.
3081 test -d ./--version && rmdir ./--version
3082 MKDIR_P="$ac_install_sh -d"
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3086 $as_echo "$MKDIR_P" >&6; }
3088 mkdir_p="$MKDIR_P"
3089 case $mkdir_p in
3090 [\\/$]* | ?:[\\/]*) ;;
3091 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3092 esac
3094 for ac_prog in gawk mawk nawk awk
3096 # Extract the first word of "$ac_prog", so it can be a program name with args.
3097 set dummy $ac_prog; ac_word=$2
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if test "${ac_cv_prog_AWK+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
3102 else
3103 if test -n "$AWK"; then
3104 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113 ac_cv_prog_AWK="$ac_prog"
3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 break 2
3117 done
3118 done
3119 IFS=$as_save_IFS
3123 AWK=$ac_cv_prog_AWK
3124 if test -n "$AWK"; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3126 $as_echo "$AWK" >&6; }
3127 else
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3133 test -n "$AWK" && break
3134 done
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3137 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3138 set x ${MAKE-make}
3139 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3140 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3141 $as_echo_n "(cached) " >&6
3142 else
3143 cat >conftest.make <<\_ACEOF
3144 SHELL = /bin/sh
3145 all:
3146 @echo '@@@%%%=$(MAKE)=@@@%%%'
3147 _ACEOF
3148 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3149 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3150 *@@@%%%=?*=@@@%%%*)
3151 eval ac_cv_prog_make_${ac_make}_set=yes;;
3153 eval ac_cv_prog_make_${ac_make}_set=no;;
3154 esac
3155 rm -f conftest.make
3157 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3159 $as_echo "yes" >&6; }
3160 SET_MAKE=
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3164 SET_MAKE="MAKE=${MAKE-make}"
3167 rm -rf .tst 2>/dev/null
3168 mkdir .tst 2>/dev/null
3169 if test -d .tst; then
3170 am__leading_dot=.
3171 else
3172 am__leading_dot=_
3174 rmdir .tst 2>/dev/null
3176 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3177 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3178 # is not polluted with repeated "-I."
3179 am__isrc=' -I$(srcdir)'
3180 # test to see if srcdir already configured
3181 if test -f $srcdir/config.status; then
3182 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3186 # test whether we have cygpath
3187 if test -z "$CYGPATH_W"; then
3188 if (cygpath --version) >/dev/null 2>/dev/null; then
3189 CYGPATH_W='cygpath -w'
3190 else
3191 CYGPATH_W=echo
3196 # Define the identity of the package.
3197 PACKAGE='libgomp'
3198 VERSION='1.0'
3201 cat >>confdefs.h <<_ACEOF
3202 #define PACKAGE "$PACKAGE"
3203 _ACEOF
3206 cat >>confdefs.h <<_ACEOF
3207 #define VERSION "$VERSION"
3208 _ACEOF
3210 # Some tools Automake needs.
3212 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3215 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3218 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3221 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3224 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3226 # We need awk for the "check" target. The system "awk" is bad on
3227 # some platforms.
3228 # Always define AMTAR for backward compatibility.
3230 AMTAR=${AMTAR-"${am_missing_run}tar"}
3232 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3238 # Default to --enable-multilib
3239 # Check whether --enable-multilib was given.
3240 if test "${enable_multilib+set}" = set; then :
3241 enableval=$enable_multilib; case "$enableval" in
3242 yes) multilib=yes ;;
3243 no) multilib=no ;;
3244 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3245 esac
3246 else
3247 multilib=yes
3251 # We may get other options which we leave undocumented:
3252 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3253 # See config-ml.in if you want the gory details.
3255 if test "$srcdir" = "."; then
3256 if test "$with_target_subdir" != "."; then
3257 multi_basedir="$srcdir/$with_multisrctop../.."
3258 else
3259 multi_basedir="$srcdir/$with_multisrctop.."
3261 else
3262 multi_basedir="$srcdir/.."
3266 # Even if the default multilib is not a cross compilation,
3267 # it may be that some of the other multilibs are.
3268 if test $cross_compiling = no && test $multilib = yes \
3269 && test "x${with_multisubdir}" != x ; then
3270 cross_compiling=maybe
3273 ac_config_commands="$ac_config_commands default-1"
3276 # Calculate toolexeclibdir
3277 # Also toolexecdir, though it's only used in toolexeclibdir
3278 case ${enable_version_specific_runtime_libs} in
3279 yes)
3280 # Need the gcc compiler version to know where to install libraries
3281 # and header files if --enable-version-specific-runtime-libs option
3282 # is selected.
3283 toolexecdir='$(libdir)/gcc/$(target_alias)'
3284 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3287 if test -n "$with_cross_host" &&
3288 test x"$with_cross_host" != x"no"; then
3289 # Install a library built with a cross compiler in tooldir, not libdir.
3290 toolexecdir='$(exec_prefix)/$(target_alias)'
3291 toolexeclibdir='$(toolexecdir)/lib'
3292 else
3293 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3294 toolexeclibdir='$(libdir)'
3296 multi_os_directory=`$CC -print-multi-os-directory`
3297 case $multi_os_directory in
3298 .) ;; # Avoid trailing /.
3299 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3300 esac
3302 esac
3306 # Check the compiler.
3307 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3308 # We must force CC to /not/ be precious variables; otherwise
3309 # the wrong, non-multilib-adjusted value will be used in multilibs.
3310 # As a side effect, we have to subst CFLAGS ourselves.
3314 ac_ext=c
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319 if test -n "$ac_tool_prefix"; then
3320 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3321 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if test "${ac_cv_prog_CC+set}" = set; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 if test -n "$CC"; then
3328 ac_cv_prog_CC="$CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3333 IFS=$as_save_IFS
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 break 2
3341 done
3342 done
3343 IFS=$as_save_IFS
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3351 else
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3358 if test -z "$ac_cv_prog_CC"; then
3359 ac_ct_CC=$CC
3360 # Extract the first word of "gcc", so it can be a program name with args.
3361 set dummy gcc; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3365 $as_echo_n "(cached) " >&6
3366 else
3367 if test -n "$ac_ct_CC"; then
3368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377 ac_cv_prog_ac_ct_CC="gcc"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 break 2
3381 done
3382 done
3383 IFS=$as_save_IFS
3387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3388 if test -n "$ac_ct_CC"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3390 $as_echo "$ac_ct_CC" >&6; }
3391 else
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3396 if test "x$ac_ct_CC" = x; then
3397 CC=""
3398 else
3399 case $cross_compiling:$ac_tool_warned in
3400 yes:)
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3403 ac_tool_warned=yes ;;
3404 esac
3405 CC=$ac_ct_CC
3407 else
3408 CC="$ac_cv_prog_CC"
3411 if test -z "$CC"; then
3412 if test -n "$ac_tool_prefix"; then
3413 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3414 set dummy ${ac_tool_prefix}cc; ac_word=$2
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if test "${ac_cv_prog_CC+set}" = set; then :
3418 $as_echo_n "(cached) " >&6
3419 else
3420 if test -n "$CC"; then
3421 ac_cv_prog_CC="$CC" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3426 IFS=$as_save_IFS
3427 test -z "$as_dir" && as_dir=.
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3430 ac_cv_prog_CC="${ac_tool_prefix}cc"
3431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 break 2
3434 done
3435 done
3436 IFS=$as_save_IFS
3440 CC=$ac_cv_prog_CC
3441 if test -n "$CC"; then
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443 $as_echo "$CC" >&6; }
3444 else
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3452 if test -z "$CC"; then
3453 # Extract the first word of "cc", so it can be a program name with args.
3454 set dummy cc; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if test "${ac_cv_prog_CC+set}" = set; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 if test -n "$CC"; then
3461 ac_cv_prog_CC="$CC" # Let the user override the test.
3462 else
3463 ac_prog_rejected=no
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3472 ac_prog_rejected=yes
3473 continue
3475 ac_cv_prog_CC="cc"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 break 2
3479 done
3480 done
3481 IFS=$as_save_IFS
3483 if test $ac_prog_rejected = yes; then
3484 # We found a bogon in the path, so make sure we never use it.
3485 set dummy $ac_cv_prog_CC
3486 shift
3487 if test $# != 0; then
3488 # We chose a different compiler from the bogus one.
3489 # However, it has the same basename, so the bogon will be chosen
3490 # first if we set CC to just the basename; use the full file name.
3491 shift
3492 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3497 CC=$ac_cv_prog_CC
3498 if test -n "$CC"; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500 $as_echo "$CC" >&6; }
3501 else
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3508 if test -z "$CC"; then
3509 if test -n "$ac_tool_prefix"; then
3510 for ac_prog in cl.exe
3512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if test "${ac_cv_prog_CC+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 if test -n "$CC"; then
3520 ac_cv_prog_CC="$CC" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3533 done
3534 done
3535 IFS=$as_save_IFS
3539 CC=$ac_cv_prog_CC
3540 if test -n "$CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 $as_echo "$CC" >&6; }
3543 else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3549 test -n "$CC" && break
3550 done
3552 if test -z "$CC"; then
3553 ac_ct_CC=$CC
3554 for ac_prog in cl.exe
3556 # Extract the first word of "$ac_prog", so it can be a program name with args.
3557 set dummy $ac_prog; ac_word=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3561 $as_echo_n "(cached) " >&6
3562 else
3563 if test -n "$ac_ct_CC"; then
3564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3573 ac_cv_prog_ac_ct_CC="$ac_prog"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 break 2
3577 done
3578 done
3579 IFS=$as_save_IFS
3583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3584 if test -n "$ac_ct_CC"; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3586 $as_echo "$ac_ct_CC" >&6; }
3587 else
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3593 test -n "$ac_ct_CC" && break
3594 done
3596 if test "x$ac_ct_CC" = x; then
3597 CC=""
3598 else
3599 case $cross_compiling:$ac_tool_warned in
3600 yes:)
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3603 ac_tool_warned=yes ;;
3604 esac
3605 CC=$ac_ct_CC
3612 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 as_fn_error "no acceptable C compiler found in \$PATH
3615 See \`config.log' for more details." "$LINENO" 5; }
3617 # Provide some information about the compiler.
3618 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3619 set X $ac_compile
3620 ac_compiler=$2
3621 for ac_option in --version -v -V -qversion; do
3622 { { ac_try="$ac_compiler $ac_option >&5"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3630 ac_status=$?
3631 if test -s conftest.err; then
3632 sed '10a\
3633 ... rest of stderr output deleted ...
3634 10q' conftest.err >conftest.er1
3635 cat conftest.er1 >&5
3636 rm -f conftest.er1 conftest.err
3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639 test $ac_status = 0; }
3640 done
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3646 main ()
3650 return 0;
3652 _ACEOF
3653 ac_clean_files_save=$ac_clean_files
3654 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3655 # Try to create an executable without -o first, disregard a.out.
3656 # It will help us diagnose broken compilers, and finding out an intuition
3657 # of exeext.
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3659 $as_echo_n "checking for C compiler default output file name... " >&6; }
3660 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3662 # The possible output files:
3663 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3665 ac_rmfiles=
3666 for ac_file in $ac_files
3668 case $ac_file in
3669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3670 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3671 esac
3672 done
3673 rm -f $ac_rmfiles
3675 if { { ac_try="$ac_link_default"
3676 case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679 esac
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 $as_echo "$ac_try_echo"; } >&5
3682 (eval "$ac_link_default") 2>&5
3683 ac_status=$?
3684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685 test $ac_status = 0; }; then :
3686 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3687 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3688 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3689 # so that the user can short-circuit this test for compilers unknown to
3690 # Autoconf.
3691 for ac_file in $ac_files ''
3693 test -f "$ac_file" || continue
3694 case $ac_file in
3695 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3697 [ab].out )
3698 # We found the default executable, but exeext='' is most
3699 # certainly right.
3700 break;;
3701 *.* )
3702 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3703 then :; else
3704 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3706 # We set ac_cv_exeext here because the later test for it is not
3707 # safe: cross compilers may not add the suffix if given an `-o'
3708 # argument, so we may need to know it at that point already.
3709 # Even if this section looks crufty: it has the advantage of
3710 # actually working.
3711 break;;
3713 break;;
3714 esac
3715 done
3716 test "$ac_cv_exeext" = no && ac_cv_exeext=
3718 else
3719 ac_file=''
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3722 $as_echo "$ac_file" >&6; }
3723 if test -z "$ac_file"; then :
3724 $as_echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 { as_fn_set_status 77
3730 as_fn_error "C compiler cannot create executables
3731 See \`config.log' for more details." "$LINENO" 5; }; }
3733 ac_exeext=$ac_cv_exeext
3735 # Check that the compiler produces executables we can run. If not, either
3736 # the compiler is broken, or we cross compile.
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3738 $as_echo_n "checking whether the C compiler works... " >&6; }
3739 # If not cross compiling, check that we can run a simple program.
3740 if test "$cross_compiling" != yes; then
3741 if { ac_try='./$ac_file'
3742 { { case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745 esac
3746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747 $as_echo "$ac_try_echo"; } >&5
3748 (eval "$ac_try") 2>&5
3749 ac_status=$?
3750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751 test $ac_status = 0; }; }; then
3752 cross_compiling=no
3753 else
3754 if test "$cross_compiling" = maybe; then
3755 cross_compiling=yes
3756 else
3757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3759 as_fn_error "cannot run C compiled programs.
3760 If you meant to cross compile, use \`--host'.
3761 See \`config.log' for more details." "$LINENO" 5; }
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3766 $as_echo "yes" >&6; }
3768 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3769 ac_clean_files=$ac_clean_files_save
3770 # Check that the compiler produces executables we can run. If not, either
3771 # the compiler is broken, or we cross compile.
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3773 $as_echo_n "checking whether we are cross compiling... " >&6; }
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3775 $as_echo "$cross_compiling" >&6; }
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3778 $as_echo_n "checking for suffix of executables... " >&6; }
3779 if { { ac_try="$ac_link"
3780 case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783 esac
3784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785 $as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_link") 2>&5
3787 ac_status=$?
3788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789 test $ac_status = 0; }; then :
3790 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3791 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3792 # work properly (i.e., refer to `conftest.exe'), while it won't with
3793 # `rm'.
3794 for ac_file in conftest.exe conftest conftest.*; do
3795 test -f "$ac_file" || continue
3796 case $ac_file in
3797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3798 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3799 break;;
3800 * ) break;;
3801 esac
3802 done
3803 else
3804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3806 as_fn_error "cannot compute suffix of executables: cannot compile and link
3807 See \`config.log' for more details." "$LINENO" 5; }
3809 rm -f conftest$ac_cv_exeext
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3811 $as_echo "$ac_cv_exeext" >&6; }
3813 rm -f conftest.$ac_ext
3814 EXEEXT=$ac_cv_exeext
3815 ac_exeext=$EXEEXT
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3817 $as_echo_n "checking for suffix of object files... " >&6; }
3818 if test "${ac_cv_objext+set}" = set; then :
3819 $as_echo_n "(cached) " >&6
3820 else
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3825 main ()
3829 return 0;
3831 _ACEOF
3832 rm -f conftest.o conftest.obj
3833 if { { ac_try="$ac_compile"
3834 case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3837 esac
3838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3839 $as_echo "$ac_try_echo"; } >&5
3840 (eval "$ac_compile") 2>&5
3841 ac_status=$?
3842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843 test $ac_status = 0; }; then :
3844 for ac_file in conftest.o conftest.obj conftest.*; do
3845 test -f "$ac_file" || continue;
3846 case $ac_file in
3847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3848 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3849 break;;
3850 esac
3851 done
3852 else
3853 $as_echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3858 as_fn_error "cannot compute suffix of object files: cannot compile
3859 See \`config.log' for more details." "$LINENO" 5; }
3861 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3864 $as_echo "$ac_cv_objext" >&6; }
3865 OBJEXT=$ac_cv_objext
3866 ac_objext=$OBJEXT
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3868 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3869 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3876 main ()
3878 #ifndef __GNUC__
3879 choke me
3880 #endif
3883 return 0;
3885 _ACEOF
3886 if ac_fn_c_try_compile "$LINENO"; then :
3887 ac_compiler_gnu=yes
3888 else
3889 ac_compiler_gnu=no
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3896 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3897 if test $ac_compiler_gnu = yes; then
3898 GCC=yes
3899 else
3900 GCC=
3902 ac_test_CFLAGS=${CFLAGS+set}
3903 ac_save_CFLAGS=$CFLAGS
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3905 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3906 if test "${ac_cv_prog_cc_g+set}" = set; then :
3907 $as_echo_n "(cached) " >&6
3908 else
3909 ac_save_c_werror_flag=$ac_c_werror_flag
3910 ac_c_werror_flag=yes
3911 ac_cv_prog_cc_g=no
3912 CFLAGS="-g"
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3917 main ()
3921 return 0;
3923 _ACEOF
3924 if ac_fn_c_try_compile "$LINENO"; then :
3925 ac_cv_prog_cc_g=yes
3926 else
3927 CFLAGS=""
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3932 main ()
3936 return 0;
3938 _ACEOF
3939 if ac_fn_c_try_compile "$LINENO"; then :
3941 else
3942 ac_c_werror_flag=$ac_save_c_werror_flag
3943 CFLAGS="-g"
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3948 main ()
3952 return 0;
3954 _ACEOF
3955 if ac_fn_c_try_compile "$LINENO"; then :
3956 ac_cv_prog_cc_g=yes
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 ac_c_werror_flag=$ac_save_c_werror_flag
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3966 $as_echo "$ac_cv_prog_cc_g" >&6; }
3967 if test "$ac_test_CFLAGS" = set; then
3968 CFLAGS=$ac_save_CFLAGS
3969 elif test $ac_cv_prog_cc_g = yes; then
3970 if test "$GCC" = yes; then
3971 CFLAGS="-g -O2"
3972 else
3973 CFLAGS="-g"
3975 else
3976 if test "$GCC" = yes; then
3977 CFLAGS="-O2"
3978 else
3979 CFLAGS=
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3983 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3984 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3985 $as_echo_n "(cached) " >&6
3986 else
3987 ac_cv_prog_cc_c89=no
3988 ac_save_CC=$CC
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
3991 #include <stdarg.h>
3992 #include <stdio.h>
3993 #include <sys/types.h>
3994 #include <sys/stat.h>
3995 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3996 struct buf { int x; };
3997 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3998 static char *e (p, i)
3999 char **p;
4000 int i;
4002 return p[i];
4004 static char *f (char * (*g) (char **, int), char **p, ...)
4006 char *s;
4007 va_list v;
4008 va_start (v,p);
4009 s = g (p, va_arg (v,int));
4010 va_end (v);
4011 return s;
4014 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4015 function prototypes and stuff, but not '\xHH' hex character constants.
4016 These don't provoke an error unfortunately, instead are silently treated
4017 as 'x'. The following induces an error, until -std is added to get
4018 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4019 array size at least. It's necessary to write '\x00'==0 to get something
4020 that's true only with -std. */
4021 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4023 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4024 inside strings and character constants. */
4025 #define FOO(x) 'x'
4026 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4028 int test (int i, double x);
4029 struct s1 {int (*f) (int a);};
4030 struct s2 {int (*f) (double a);};
4031 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4032 int argc;
4033 char **argv;
4035 main ()
4037 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4039 return 0;
4041 _ACEOF
4042 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4043 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4045 CC="$ac_save_CC $ac_arg"
4046 if ac_fn_c_try_compile "$LINENO"; then :
4047 ac_cv_prog_cc_c89=$ac_arg
4049 rm -f core conftest.err conftest.$ac_objext
4050 test "x$ac_cv_prog_cc_c89" != "xno" && break
4051 done
4052 rm -f conftest.$ac_ext
4053 CC=$ac_save_CC
4056 # AC_CACHE_VAL
4057 case "x$ac_cv_prog_cc_c89" in
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4060 $as_echo "none needed" >&6; } ;;
4061 xno)
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4063 $as_echo "unsupported" >&6; } ;;
4065 CC="$CC $ac_cv_prog_cc_c89"
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4067 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4068 esac
4069 if test "x$ac_cv_prog_cc_c89" != xno; then :
4073 ac_ext=c
4074 ac_cpp='$CPP $CPPFLAGS'
4075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078 DEPDIR="${am__leading_dot}deps"
4080 ac_config_commands="$ac_config_commands depfiles"
4083 am_make=${MAKE-make}
4084 cat > confinc << 'END'
4085 am__doit:
4086 @echo this is the am__doit target
4087 .PHONY: am__doit
4089 # If we don't find an include directive, just comment out the code.
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4091 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4092 am__include="#"
4093 am__quote=
4094 _am_result=none
4095 # First try GNU make style include.
4096 echo "include confinc" > confmf
4097 # Ignore all kinds of additional output from `make'.
4098 case `$am_make -s -f confmf 2> /dev/null` in #(
4099 *the\ am__doit\ target*)
4100 am__include=include
4101 am__quote=
4102 _am_result=GNU
4104 esac
4105 # Now try BSD make style include.
4106 if test "$am__include" = "#"; then
4107 echo '.include "confinc"' > confmf
4108 case `$am_make -s -f confmf 2> /dev/null` in #(
4109 *the\ am__doit\ target*)
4110 am__include=.include
4111 am__quote="\""
4112 _am_result=BSD
4114 esac
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4119 $as_echo "$_am_result" >&6; }
4120 rm -f confinc confmf
4122 # Check whether --enable-dependency-tracking was given.
4123 if test "${enable_dependency_tracking+set}" = set; then :
4124 enableval=$enable_dependency_tracking;
4127 if test "x$enable_dependency_tracking" != xno; then
4128 am_depcomp="$ac_aux_dir/depcomp"
4129 AMDEPBACKSLASH='\'
4131 if test "x$enable_dependency_tracking" != xno; then
4132 AMDEP_TRUE=
4133 AMDEP_FALSE='#'
4134 else
4135 AMDEP_TRUE='#'
4136 AMDEP_FALSE=
4141 depcc="$CC" am_compiler_list=
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4144 $as_echo_n "checking dependency style of $depcc... " >&6; }
4145 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4149 # We make a subdir and do the tests there. Otherwise we can end up
4150 # making bogus files that we don't know about and never remove. For
4151 # instance it was reported that on HP-UX the gcc test will end up
4152 # making a dummy file named `D' -- because `-MD' means `put the output
4153 # in D'.
4154 mkdir conftest.dir
4155 # Copy depcomp to subdir because otherwise we won't find it if we're
4156 # using a relative directory.
4157 cp "$am_depcomp" conftest.dir
4158 cd conftest.dir
4159 # We will build objects and dependencies in a subdirectory because
4160 # it helps to detect inapplicable dependency modes. For instance
4161 # both Tru64's cc and ICC support -MD to output dependencies as a
4162 # side effect of compilation, but ICC will put the dependencies in
4163 # the current directory while Tru64 will put them in the object
4164 # directory.
4165 mkdir sub
4167 am_cv_CC_dependencies_compiler_type=none
4168 if test "$am_compiler_list" = ""; then
4169 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4171 am__universal=false
4172 case " $depcc " in #(
4173 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4174 esac
4176 for depmode in $am_compiler_list; do
4177 # Setup a source with many dependencies, because some compilers
4178 # like to wrap large dependency lists on column 80 (with \), and
4179 # we should not choose a depcomp mode which is confused by this.
4181 # We need to recreate these files for each test, as the compiler may
4182 # overwrite some of them when testing with obscure command lines.
4183 # This happens at least with the AIX C compiler.
4184 : > sub/conftest.c
4185 for i in 1 2 3 4 5 6; do
4186 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4187 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4188 # Solaris 8's {/usr,}/bin/sh.
4189 touch sub/conftst$i.h
4190 done
4191 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4193 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4194 # mode. It turns out that the SunPro C++ compiler does not properly
4195 # handle `-M -o', and we need to detect this. Also, some Intel
4196 # versions had trouble with output in subdirs
4197 am__obj=sub/conftest.${OBJEXT-o}
4198 am__minus_obj="-o $am__obj"
4199 case $depmode in
4200 gcc)
4201 # This depmode causes a compiler race in universal mode.
4202 test "$am__universal" = false || continue
4204 nosideeffect)
4205 # after this tag, mechanisms are not by side-effect, so they'll
4206 # only be used when explicitly requested
4207 if test "x$enable_dependency_tracking" = xyes; then
4208 continue
4209 else
4210 break
4213 msvisualcpp | msvcmsys)
4214 # This compiler won't grok `-c -o', but also, the minuso test has
4215 # not run yet. These depmodes are late enough in the game, and
4216 # so weak that their functioning should not be impacted.
4217 am__obj=conftest.${OBJEXT-o}
4218 am__minus_obj=
4220 none) break ;;
4221 esac
4222 if depmode=$depmode \
4223 source=sub/conftest.c object=$am__obj \
4224 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4225 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4226 >/dev/null 2>conftest.err &&
4227 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4228 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4229 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4230 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4231 # icc doesn't choke on unknown options, it will just issue warnings
4232 # or remarks (even with -Werror). So we grep stderr for any message
4233 # that says an option was ignored or not supported.
4234 # When given -MP, icc 7.0 and 7.1 complain thusly:
4235 # icc: Command line warning: ignoring option '-M'; no argument required
4236 # The diagnosis changed in icc 8.0:
4237 # icc: Command line remark: option '-MP' not supported
4238 if (grep 'ignoring option' conftest.err ||
4239 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4240 am_cv_CC_dependencies_compiler_type=$depmode
4241 break
4244 done
4246 cd ..
4247 rm -rf conftest.dir
4248 else
4249 am_cv_CC_dependencies_compiler_type=none
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4254 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4255 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4258 test "x$enable_dependency_tracking" != xno \
4259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4260 am__fastdepCC_TRUE=
4261 am__fastdepCC_FALSE='#'
4262 else
4263 am__fastdepCC_TRUE='#'
4264 am__fastdepCC_FALSE=
4272 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4273 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4274 # in both places for now and restore CFLAGS at the end of config.
4275 save_CFLAGS="$CFLAGS"
4277 # Add -Wall -Werror if we are using GCC.
4278 if test "x$GCC" = "xyes"; then
4279 XCFLAGS="$XCFLAGS -Wall -Werror"
4282 # Find other programs we need.
4283 if test -n "$ac_tool_prefix"; then
4284 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4285 set dummy ${ac_tool_prefix}ar; ac_word=$2
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 $as_echo_n "checking for $ac_word... " >&6; }
4288 if test "${ac_cv_prog_AR+set}" = set; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 if test -n "$AR"; then
4292 ac_cv_prog_AR="$AR" # Let the user override the test.
4293 else
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4297 IFS=$as_save_IFS
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301 ac_cv_prog_AR="${ac_tool_prefix}ar"
4302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 break 2
4305 done
4306 done
4307 IFS=$as_save_IFS
4311 AR=$ac_cv_prog_AR
4312 if test -n "$AR"; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4314 $as_echo "$AR" >&6; }
4315 else
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4322 if test -z "$ac_cv_prog_AR"; then
4323 ac_ct_AR=$AR
4324 # Extract the first word of "ar", so it can be a program name with args.
4325 set dummy ar; ac_word=$2
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327 $as_echo_n "checking for $ac_word... " >&6; }
4328 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if test -n "$ac_ct_AR"; then
4332 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4333 else
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341 ac_cv_prog_ac_ct_AR="ar"
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4345 done
4346 done
4347 IFS=$as_save_IFS
4351 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4352 if test -n "$ac_ct_AR"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4354 $as_echo "$ac_ct_AR" >&6; }
4355 else
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4360 if test "x$ac_ct_AR" = x; then
4361 AR=""
4362 else
4363 case $cross_compiling:$ac_tool_warned in
4364 yes:)
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4367 ac_tool_warned=yes ;;
4368 esac
4369 AR=$ac_ct_AR
4371 else
4372 AR="$ac_cv_prog_AR"
4375 if test -n "$ac_tool_prefix"; then
4376 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4377 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379 $as_echo_n "checking for $ac_word... " >&6; }
4380 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4381 $as_echo_n "(cached) " >&6
4382 else
4383 if test -n "$RANLIB"; then
4384 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4385 else
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4393 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 break 2
4397 done
4398 done
4399 IFS=$as_save_IFS
4403 RANLIB=$ac_cv_prog_RANLIB
4404 if test -n "$RANLIB"; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4406 $as_echo "$RANLIB" >&6; }
4407 else
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409 $as_echo "no" >&6; }
4414 if test -z "$ac_cv_prog_RANLIB"; then
4415 ac_ct_RANLIB=$RANLIB
4416 # Extract the first word of "ranlib", so it can be a program name with args.
4417 set dummy ranlib; ac_word=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 if test -n "$ac_ct_RANLIB"; then
4424 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 ac_cv_prog_ac_ct_RANLIB="ranlib"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4437 done
4438 done
4439 IFS=$as_save_IFS
4443 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4444 if test -n "$ac_ct_RANLIB"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4446 $as_echo "$ac_ct_RANLIB" >&6; }
4447 else
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4452 if test "x$ac_ct_RANLIB" = x; then
4453 RANLIB="ranlib-not-found-in-path-error"
4454 else
4455 case $cross_compiling:$ac_tool_warned in
4456 yes:)
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4459 ac_tool_warned=yes ;;
4460 esac
4461 RANLIB=$ac_ct_RANLIB
4463 else
4464 RANLIB="$ac_cv_prog_RANLIB"
4467 # Extract the first word of "perl", so it can be a program name with args.
4468 set dummy perl; ac_word=$2
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470 $as_echo_n "checking for $ac_word... " >&6; }
4471 if test "${ac_cv_path_PERL+set}" = set; then :
4472 $as_echo_n "(cached) " >&6
4473 else
4474 case $PERL in
4475 [\\/]* | ?:[\\/]*)
4476 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4486 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 break 2
4490 done
4491 done
4492 IFS=$as_save_IFS
4494 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4496 esac
4498 PERL=$ac_cv_path_PERL
4499 if test -n "$PERL"; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4501 $as_echo "$PERL" >&6; }
4502 else
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 $as_echo "no" >&6; }
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4509 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4510 set x ${MAKE-make}
4511 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4512 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4513 $as_echo_n "(cached) " >&6
4514 else
4515 cat >conftest.make <<\_ACEOF
4516 SHELL = /bin/sh
4517 all:
4518 @echo '@@@%%%=$(MAKE)=@@@%%%'
4519 _ACEOF
4520 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4521 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4522 *@@@%%%=?*=@@@%%%*)
4523 eval ac_cv_prog_make_${ac_make}_set=yes;;
4525 eval ac_cv_prog_make_${ac_make}_set=no;;
4526 esac
4527 rm -f conftest.make
4529 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4531 $as_echo "yes" >&6; }
4532 SET_MAKE=
4533 else
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 $as_echo "no" >&6; }
4536 SET_MAKE="MAKE=${MAKE-make}"
4541 # See if makeinfo has been installed and is modern enough
4542 # that we can use it.
4544 # Extract the first word of "makeinfo", so it can be a program name with args.
4545 set dummy makeinfo; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 if test -n "$MAKEINFO"; then
4552 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_prog_MAKEINFO="makeinfo"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4565 done
4566 done
4567 IFS=$as_save_IFS
4571 MAKEINFO=$ac_cv_prog_MAKEINFO
4572 if test -n "$MAKEINFO"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4574 $as_echo "$MAKEINFO" >&6; }
4575 else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4581 if test -n "$MAKEINFO"; then
4582 # Found it, now check the version.
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4584 $as_echo_n "checking for modern makeinfo... " >&6; }
4585 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4588 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4589 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4591 case $ac_prog_version in
4592 '') gcc_cv_prog_makeinfo_modern=no;;
4593 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4594 *) gcc_cv_prog_makeinfo_modern=no;;
4595 esac
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4599 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4600 else
4601 gcc_cv_prog_makeinfo_modern=no
4603 if test $gcc_cv_prog_makeinfo_modern = no; then
4604 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4607 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4608 BUILD_INFO_TRUE=
4609 BUILD_INFO_FALSE='#'
4610 else
4611 BUILD_INFO_TRUE='#'
4612 BUILD_INFO_FALSE=
4617 # Configure libtool
4618 case `pwd` in
4619 *\ * | *\ *)
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4621 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4622 esac
4626 macro_version='2.2.7a'
4627 macro_revision='1.3134'
4641 ltmain="$ac_aux_dir/ltmain.sh"
4643 # Backslashify metacharacters that are still active within
4644 # double-quoted strings.
4645 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4647 # Same as above, but do not quote variable references.
4648 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4650 # Sed substitution to delay expansion of an escaped shell variable in a
4651 # double_quote_subst'ed string.
4652 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4654 # Sed substitution to delay expansion of an escaped single quote.
4655 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4657 # Sed substitution to avoid accidental globbing in evaled expressions
4658 no_glob_subst='s/\*/\\\*/g'
4660 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4661 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4662 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4665 $as_echo_n "checking how to print strings... " >&6; }
4666 # Test print first, because it will be a builtin if present.
4667 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4668 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4669 ECHO='print -r --'
4670 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4671 ECHO='printf %s\n'
4672 else
4673 # Use this function as a fallback that always works.
4674 func_fallback_echo ()
4676 eval 'cat <<_LTECHO_EOF
4678 _LTECHO_EOF'
4680 ECHO='func_fallback_echo'
4683 # func_echo_all arg...
4684 # Invoke $ECHO with all args, space-separated.
4685 func_echo_all ()
4687 $ECHO ""
4690 case "$ECHO" in
4691 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4692 $as_echo "printf" >&6; } ;;
4693 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4694 $as_echo "print -r" >&6; } ;;
4695 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4696 $as_echo "cat" >&6; } ;;
4697 esac
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4713 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4714 if test "${ac_cv_path_SED+set}" = set; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4718 for ac_i in 1 2 3 4 5 6 7; do
4719 ac_script="$ac_script$as_nl$ac_script"
4720 done
4721 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4722 { ac_script=; unset ac_script;}
4723 if test -z "$SED"; then
4724 ac_path_SED_found=false
4725 # Loop through the user's path and test for each of PROGNAME-LIST
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_prog in sed gsed; do
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4734 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4735 # Check for GNU ac_path_SED and select it if it is found.
4736 # Check for GNU $ac_path_SED
4737 case `"$ac_path_SED" --version 2>&1` in
4738 *GNU*)
4739 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4741 ac_count=0
4742 $as_echo_n 0123456789 >"conftest.in"
4743 while :
4745 cat "conftest.in" "conftest.in" >"conftest.tmp"
4746 mv "conftest.tmp" "conftest.in"
4747 cp "conftest.in" "conftest.nl"
4748 $as_echo '' >> "conftest.nl"
4749 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4750 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4751 as_fn_arith $ac_count + 1 && ac_count=$as_val
4752 if test $ac_count -gt ${ac_path_SED_max-0}; then
4753 # Best one so far, save it but keep looking for a better one
4754 ac_cv_path_SED="$ac_path_SED"
4755 ac_path_SED_max=$ac_count
4757 # 10*(2^10) chars as input seems more than enough
4758 test $ac_count -gt 10 && break
4759 done
4760 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4761 esac
4763 $ac_path_SED_found && break 3
4764 done
4765 done
4766 done
4767 IFS=$as_save_IFS
4768 if test -z "$ac_cv_path_SED"; then
4769 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4771 else
4772 ac_cv_path_SED=$SED
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4777 $as_echo "$ac_cv_path_SED" >&6; }
4778 SED="$ac_cv_path_SED"
4779 rm -f conftest.sed
4781 test -z "$SED" && SED=sed
4782 Xsed="$SED -e 1s/^X//"
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4795 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4796 if test "${ac_cv_path_GREP+set}" = set; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 if test -z "$GREP"; then
4800 ac_path_GREP_found=false
4801 # Loop through the user's path and test for each of PROGNAME-LIST
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_prog in grep ggrep; do
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4810 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4811 # Check for GNU ac_path_GREP and select it if it is found.
4812 # Check for GNU $ac_path_GREP
4813 case `"$ac_path_GREP" --version 2>&1` in
4814 *GNU*)
4815 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4817 ac_count=0
4818 $as_echo_n 0123456789 >"conftest.in"
4819 while :
4821 cat "conftest.in" "conftest.in" >"conftest.tmp"
4822 mv "conftest.tmp" "conftest.in"
4823 cp "conftest.in" "conftest.nl"
4824 $as_echo 'GREP' >> "conftest.nl"
4825 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4827 as_fn_arith $ac_count + 1 && ac_count=$as_val
4828 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4829 # Best one so far, save it but keep looking for a better one
4830 ac_cv_path_GREP="$ac_path_GREP"
4831 ac_path_GREP_max=$ac_count
4833 # 10*(2^10) chars as input seems more than enough
4834 test $ac_count -gt 10 && break
4835 done
4836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4837 esac
4839 $ac_path_GREP_found && break 3
4840 done
4841 done
4842 done
4843 IFS=$as_save_IFS
4844 if test -z "$ac_cv_path_GREP"; then
4845 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4847 else
4848 ac_cv_path_GREP=$GREP
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4853 $as_echo "$ac_cv_path_GREP" >&6; }
4854 GREP="$ac_cv_path_GREP"
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4858 $as_echo_n "checking for egrep... " >&6; }
4859 if test "${ac_cv_path_EGREP+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4863 then ac_cv_path_EGREP="$GREP -E"
4864 else
4865 if test -z "$EGREP"; then
4866 ac_path_EGREP_found=false
4867 # Loop through the user's path and test for each of PROGNAME-LIST
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_prog in egrep; do
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4876 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4877 # Check for GNU ac_path_EGREP and select it if it is found.
4878 # Check for GNU $ac_path_EGREP
4879 case `"$ac_path_EGREP" --version 2>&1` in
4880 *GNU*)
4881 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4883 ac_count=0
4884 $as_echo_n 0123456789 >"conftest.in"
4885 while :
4887 cat "conftest.in" "conftest.in" >"conftest.tmp"
4888 mv "conftest.tmp" "conftest.in"
4889 cp "conftest.in" "conftest.nl"
4890 $as_echo 'EGREP' >> "conftest.nl"
4891 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4893 as_fn_arith $ac_count + 1 && ac_count=$as_val
4894 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4895 # Best one so far, save it but keep looking for a better one
4896 ac_cv_path_EGREP="$ac_path_EGREP"
4897 ac_path_EGREP_max=$ac_count
4899 # 10*(2^10) chars as input seems more than enough
4900 test $ac_count -gt 10 && break
4901 done
4902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4903 esac
4905 $ac_path_EGREP_found && break 3
4906 done
4907 done
4908 done
4909 IFS=$as_save_IFS
4910 if test -z "$ac_cv_path_EGREP"; then
4911 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4913 else
4914 ac_cv_path_EGREP=$EGREP
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4920 $as_echo "$ac_cv_path_EGREP" >&6; }
4921 EGREP="$ac_cv_path_EGREP"
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4925 $as_echo_n "checking for fgrep... " >&6; }
4926 if test "${ac_cv_path_FGREP+set}" = set; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4930 then ac_cv_path_FGREP="$GREP -F"
4931 else
4932 if test -z "$FGREP"; then
4933 ac_path_FGREP_found=false
4934 # Loop through the user's path and test for each of PROGNAME-LIST
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_prog in fgrep; do
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4943 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4944 # Check for GNU ac_path_FGREP and select it if it is found.
4945 # Check for GNU $ac_path_FGREP
4946 case `"$ac_path_FGREP" --version 2>&1` in
4947 *GNU*)
4948 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4950 ac_count=0
4951 $as_echo_n 0123456789 >"conftest.in"
4952 while :
4954 cat "conftest.in" "conftest.in" >"conftest.tmp"
4955 mv "conftest.tmp" "conftest.in"
4956 cp "conftest.in" "conftest.nl"
4957 $as_echo 'FGREP' >> "conftest.nl"
4958 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4959 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4960 as_fn_arith $ac_count + 1 && ac_count=$as_val
4961 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4962 # Best one so far, save it but keep looking for a better one
4963 ac_cv_path_FGREP="$ac_path_FGREP"
4964 ac_path_FGREP_max=$ac_count
4966 # 10*(2^10) chars as input seems more than enough
4967 test $ac_count -gt 10 && break
4968 done
4969 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4970 esac
4972 $ac_path_FGREP_found && break 3
4973 done
4974 done
4975 done
4976 IFS=$as_save_IFS
4977 if test -z "$ac_cv_path_FGREP"; then
4978 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4980 else
4981 ac_cv_path_FGREP=$FGREP
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4987 $as_echo "$ac_cv_path_FGREP" >&6; }
4988 FGREP="$ac_cv_path_FGREP"
4991 test -z "$GREP" && GREP=grep
5011 # Check whether --with-gnu-ld was given.
5012 if test "${with_gnu_ld+set}" = set; then :
5013 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5014 else
5015 with_gnu_ld=no
5018 ac_prog=ld
5019 if test "$GCC" = yes; then
5020 # Check if gcc -print-prog-name=ld gives a path.
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5022 $as_echo_n "checking for ld used by $CC... " >&6; }
5023 case $host in
5024 *-*-mingw*)
5025 # gcc leaves a trailing carriage return which upsets mingw
5026 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5028 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5029 esac
5030 case $ac_prog in
5031 # Accept absolute paths.
5032 [\\/]* | ?:[\\/]*)
5033 re_direlt='/[^/][^/]*/\.\./'
5034 # Canonicalize the pathname of ld
5035 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5036 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5037 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5038 done
5039 test -z "$LD" && LD="$ac_prog"
5042 # If it fails, then pretend we aren't using GCC.
5043 ac_prog=ld
5046 # If it is relative, then search for the first ld in PATH.
5047 with_gnu_ld=unknown
5049 esac
5050 elif test "$with_gnu_ld" = yes; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5052 $as_echo_n "checking for GNU ld... " >&6; }
5053 else
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5055 $as_echo_n "checking for non-GNU ld... " >&6; }
5057 if test "${lt_cv_path_LD+set}" = set; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 if test -z "$LD"; then
5061 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5062 for ac_dir in $PATH; do
5063 IFS="$lt_save_ifs"
5064 test -z "$ac_dir" && ac_dir=.
5065 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5066 lt_cv_path_LD="$ac_dir/$ac_prog"
5067 # Check to see if the program is GNU ld. I'd rather use --version,
5068 # but apparently some variants of GNU ld only accept -v.
5069 # Break only if it was the GNU/non-GNU ld that we prefer.
5070 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5071 *GNU* | *'with BFD'*)
5072 test "$with_gnu_ld" != no && break
5075 test "$with_gnu_ld" != yes && break
5077 esac
5079 done
5080 IFS="$lt_save_ifs"
5081 else
5082 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5086 LD="$lt_cv_path_LD"
5087 if test -n "$LD"; then
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5089 $as_echo "$LD" >&6; }
5090 else
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5094 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5096 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5097 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5101 case `$LD -v 2>&1 </dev/null` in
5102 *GNU* | *'with BFD'*)
5103 lt_cv_prog_gnu_ld=yes
5106 lt_cv_prog_gnu_ld=no
5108 esac
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5111 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5112 with_gnu_ld=$lt_cv_prog_gnu_ld
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5123 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5124 if test "${lt_cv_path_NM+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 if test -n "$NM"; then
5128 # Let the user override the test.
5129 lt_cv_path_NM="$NM"
5130 else
5131 lt_nm_to_check="${ac_tool_prefix}nm"
5132 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5133 lt_nm_to_check="$lt_nm_to_check nm"
5135 for lt_tmp_nm in $lt_nm_to_check; do
5136 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5137 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5138 IFS="$lt_save_ifs"
5139 test -z "$ac_dir" && ac_dir=.
5140 tmp_nm="$ac_dir/$lt_tmp_nm"
5141 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5142 # Check to see if the nm accepts a BSD-compat flag.
5143 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5144 # nm: unknown option "B" ignored
5145 # Tru64's nm complains that /dev/null is an invalid object file
5146 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5147 */dev/null* | *'Invalid file or object type'*)
5148 lt_cv_path_NM="$tmp_nm -B"
5149 break
5152 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5153 */dev/null*)
5154 lt_cv_path_NM="$tmp_nm -p"
5155 break
5158 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5159 continue # so that we can try to find one that supports BSD flags
5161 esac
5163 esac
5165 done
5166 IFS="$lt_save_ifs"
5167 done
5168 : ${lt_cv_path_NM=no}
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5172 $as_echo "$lt_cv_path_NM" >&6; }
5173 if test "$lt_cv_path_NM" != "no"; then
5174 NM="$lt_cv_path_NM"
5175 else
5176 # Didn't find any BSD compatible name lister, look for dumpbin.
5177 if test -n "$DUMPBIN"; then :
5178 # Let the user override the test.
5179 else
5180 if test -n "$ac_tool_prefix"; then
5181 for ac_prog in dumpbin "link -dump"
5183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -n "$DUMPBIN"; then
5191 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5204 done
5205 done
5206 IFS=$as_save_IFS
5210 DUMPBIN=$ac_cv_prog_DUMPBIN
5211 if test -n "$DUMPBIN"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5213 $as_echo "$DUMPBIN" >&6; }
5214 else
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5220 test -n "$DUMPBIN" && break
5221 done
5223 if test -z "$DUMPBIN"; then
5224 ac_ct_DUMPBIN=$DUMPBIN
5225 for ac_prog in dumpbin "link -dump"
5227 # Extract the first word of "$ac_prog", so it can be a program name with args.
5228 set dummy $ac_prog; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 if test -n "$ac_ct_DUMPBIN"; then
5235 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5236 else
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5240 IFS=$as_save_IFS
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 break 2
5248 done
5249 done
5250 IFS=$as_save_IFS
5254 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5255 if test -n "$ac_ct_DUMPBIN"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5257 $as_echo "$ac_ct_DUMPBIN" >&6; }
5258 else
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5264 test -n "$ac_ct_DUMPBIN" && break
5265 done
5267 if test "x$ac_ct_DUMPBIN" = x; then
5268 DUMPBIN=":"
5269 else
5270 case $cross_compiling:$ac_tool_warned in
5271 yes:)
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5274 ac_tool_warned=yes ;;
5275 esac
5276 DUMPBIN=$ac_ct_DUMPBIN
5280 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5281 *COFF*)
5282 DUMPBIN="$DUMPBIN -symbols"
5285 DUMPBIN=:
5287 esac
5290 if test "$DUMPBIN" != ":"; then
5291 NM="$DUMPBIN"
5294 test -z "$NM" && NM=nm
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5302 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5303 if test "${lt_cv_nm_interface+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 lt_cv_nm_interface="BSD nm"
5307 echo "int some_variable = 0;" > conftest.$ac_ext
5308 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5309 (eval "$ac_compile" 2>conftest.err)
5310 cat conftest.err >&5
5311 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5312 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5313 cat conftest.err >&5
5314 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5315 cat conftest.out >&5
5316 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5317 lt_cv_nm_interface="MS dumpbin"
5319 rm -f conftest*
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5322 $as_echo "$lt_cv_nm_interface" >&6; }
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5325 $as_echo_n "checking whether ln -s works... " >&6; }
5326 LN_S=$as_ln_s
5327 if test "$LN_S" = "ln -s"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5329 $as_echo "yes" >&6; }
5330 else
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5332 $as_echo "no, using $LN_S" >&6; }
5335 # find the maximum length of command line arguments
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5337 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5338 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5342 teststring="ABCD"
5344 case $build_os in
5345 msdosdjgpp*)
5346 # On DJGPP, this test can blow up pretty badly due to problems in libc
5347 # (any single argument exceeding 2000 bytes causes a buffer overrun
5348 # during glob expansion). Even if it were fixed, the result of this
5349 # check would be larger than it should be.
5350 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5353 gnu*)
5354 # Under GNU Hurd, this test is not required because there is
5355 # no limit to the length of command line arguments.
5356 # Libtool will interpret -1 as no limit whatsoever
5357 lt_cv_sys_max_cmd_len=-1;
5360 cygwin* | mingw* | cegcc*)
5361 # On Win9x/ME, this test blows up -- it succeeds, but takes
5362 # about 5 minutes as the teststring grows exponentially.
5363 # Worse, since 9x/ME are not pre-emptively multitasking,
5364 # you end up with a "frozen" computer, even though with patience
5365 # the test eventually succeeds (with a max line length of 256k).
5366 # Instead, let's just punt: use the minimum linelength reported by
5367 # all of the supported platforms: 8192 (on NT/2K/XP).
5368 lt_cv_sys_max_cmd_len=8192;
5371 mint*)
5372 # On MiNT this can take a long time and run out of memory.
5373 lt_cv_sys_max_cmd_len=8192;
5376 amigaos*)
5377 # On AmigaOS with pdksh, this test takes hours, literally.
5378 # So we just punt and use a minimum line length of 8192.
5379 lt_cv_sys_max_cmd_len=8192;
5382 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5383 # This has been around since 386BSD, at least. Likely further.
5384 if test -x /sbin/sysctl; then
5385 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5386 elif test -x /usr/sbin/sysctl; then
5387 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5388 else
5389 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5391 # And add a safety zone
5392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5393 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5396 interix*)
5397 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5398 lt_cv_sys_max_cmd_len=196608
5401 osf*)
5402 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5403 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5404 # nice to cause kernel panics so lets avoid the loop below.
5405 # First set a reasonable default.
5406 lt_cv_sys_max_cmd_len=16384
5408 if test -x /sbin/sysconfig; then
5409 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5410 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5411 esac
5414 sco3.2v5*)
5415 lt_cv_sys_max_cmd_len=102400
5417 sysv5* | sco5v6* | sysv4.2uw2*)
5418 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5419 if test -n "$kargmax"; then
5420 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5421 else
5422 lt_cv_sys_max_cmd_len=32768
5426 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5427 if test -n "$lt_cv_sys_max_cmd_len"; then
5428 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5430 else
5431 # Make teststring a little bigger before we do anything with it.
5432 # a 1K string should be a reasonable start.
5433 for i in 1 2 3 4 5 6 7 8 ; do
5434 teststring=$teststring$teststring
5435 done
5436 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5437 # If test is not a shell built-in, we'll probably end up computing a
5438 # maximum length that is only half of the actual maximum length, but
5439 # we can't tell.
5440 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5441 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5442 test $i != 17 # 1/2 MB should be enough
5444 i=`expr $i + 1`
5445 teststring=$teststring$teststring
5446 done
5447 # Only check the string length outside the loop.
5448 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5449 teststring=
5450 # Add a significant safety factor because C++ compilers can tack on
5451 # massive amounts of additional arguments before passing them to the
5452 # linker. It appears as though 1/2 is a usable value.
5453 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5456 esac
5460 if test -n $lt_cv_sys_max_cmd_len ; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5462 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5463 else
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5465 $as_echo "none" >&6; }
5467 max_cmd_len=$lt_cv_sys_max_cmd_len
5474 : ${CP="cp -f"}
5475 : ${MV="mv -f"}
5476 : ${RM="rm -f"}
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5479 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5480 # Try some XSI features
5481 xsi_shell=no
5482 ( _lt_dummy="a/b/c"
5483 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5484 = c,a/b,, \
5485 && eval 'test $(( 1 + 1 )) -eq 2 \
5486 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5487 && xsi_shell=yes
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5489 $as_echo "$xsi_shell" >&6; }
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5493 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5494 lt_shell_append=no
5495 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5496 >/dev/null 2>&1 \
5497 && lt_shell_append=yes
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5499 $as_echo "$lt_shell_append" >&6; }
5502 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5503 lt_unset=unset
5504 else
5505 lt_unset=false
5512 # test EBCDIC or ASCII
5513 case `echo X|tr X '\101'` in
5514 A) # ASCII based system
5515 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5516 lt_SP2NL='tr \040 \012'
5517 lt_NL2SP='tr \015\012 \040\040'
5519 *) # EBCDIC based system
5520 lt_SP2NL='tr \100 \n'
5521 lt_NL2SP='tr \r\n \100\100'
5523 esac
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5534 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5535 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 lt_cv_ld_reload_flag='-r'
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5541 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5542 reload_flag=$lt_cv_ld_reload_flag
5543 case $reload_flag in
5544 "" | " "*) ;;
5545 *) reload_flag=" $reload_flag" ;;
5546 esac
5547 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5548 case $host_os in
5549 darwin*)
5550 if test "$GCC" = yes; then
5551 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5552 else
5553 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5556 esac
5566 if test -n "$ac_tool_prefix"; then
5567 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5568 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 if test -n "$OBJDUMP"; then
5575 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5584 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5588 done
5589 done
5590 IFS=$as_save_IFS
5594 OBJDUMP=$ac_cv_prog_OBJDUMP
5595 if test -n "$OBJDUMP"; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5597 $as_echo "$OBJDUMP" >&6; }
5598 else
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5605 if test -z "$ac_cv_prog_OBJDUMP"; then
5606 ac_ct_OBJDUMP=$OBJDUMP
5607 # Extract the first word of "objdump", so it can be a program name with args.
5608 set dummy objdump; ac_word=$2
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 $as_echo_n "checking for $ac_word... " >&6; }
5611 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 if test -n "$ac_ct_OBJDUMP"; then
5615 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5616 else
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 break 2
5628 done
5629 done
5630 IFS=$as_save_IFS
5634 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5635 if test -n "$ac_ct_OBJDUMP"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5637 $as_echo "$ac_ct_OBJDUMP" >&6; }
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5643 if test "x$ac_ct_OBJDUMP" = x; then
5644 OBJDUMP="false"
5645 else
5646 case $cross_compiling:$ac_tool_warned in
5647 yes:)
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5650 ac_tool_warned=yes ;;
5651 esac
5652 OBJDUMP=$ac_ct_OBJDUMP
5654 else
5655 OBJDUMP="$ac_cv_prog_OBJDUMP"
5658 test -z "$OBJDUMP" && OBJDUMP=objdump
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5669 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5670 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 lt_cv_file_magic_cmd='$MAGIC_CMD'
5674 lt_cv_file_magic_test_file=
5675 lt_cv_deplibs_check_method='unknown'
5676 # Need to set the preceding variable on all platforms that support
5677 # interlibrary dependencies.
5678 # 'none' -- dependencies not supported.
5679 # `unknown' -- same as none, but documents that we really don't know.
5680 # 'pass_all' -- all dependencies passed with no checks.
5681 # 'test_compile' -- check by making test program.
5682 # 'file_magic [[regex]]' -- check by looking for files in library path
5683 # which responds to the $file_magic_cmd with a given extended regex.
5684 # If you have `file' or equivalent on your system and you're not sure
5685 # whether `pass_all' will *always* work, you probably want this one.
5687 case $host_os in
5688 aix[4-9]*)
5689 lt_cv_deplibs_check_method=pass_all
5692 beos*)
5693 lt_cv_deplibs_check_method=pass_all
5696 bsdi[45]*)
5697 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5698 lt_cv_file_magic_cmd='/usr/bin/file -L'
5699 lt_cv_file_magic_test_file=/shlib/libc.so
5702 cygwin*)
5703 # func_win32_libid is a shell function defined in ltmain.sh
5704 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5705 lt_cv_file_magic_cmd='func_win32_libid'
5708 mingw* | pw32*)
5709 # Base MSYS/MinGW do not provide the 'file' command needed by
5710 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5711 # unless we find 'file', for example because we are cross-compiling.
5712 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5713 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5714 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5715 lt_cv_file_magic_cmd='func_win32_libid'
5716 else
5717 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5718 lt_cv_file_magic_cmd='$OBJDUMP -f'
5722 cegcc*)
5723 # use the weaker test based on 'objdump'. See mingw*.
5724 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5725 lt_cv_file_magic_cmd='$OBJDUMP -f'
5728 darwin* | rhapsody*)
5729 lt_cv_deplibs_check_method=pass_all
5732 freebsd* | dragonfly*)
5733 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5734 case $host_cpu in
5735 i*86 )
5736 # Not sure whether the presence of OpenBSD here was a mistake.
5737 # Let's accept both of them until this is cleared up.
5738 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5739 lt_cv_file_magic_cmd=/usr/bin/file
5740 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5742 esac
5743 else
5744 lt_cv_deplibs_check_method=pass_all
5748 gnu*)
5749 lt_cv_deplibs_check_method=pass_all
5752 haiku*)
5753 lt_cv_deplibs_check_method=pass_all
5756 hpux10.20* | hpux11*)
5757 lt_cv_file_magic_cmd=/usr/bin/file
5758 case $host_cpu in
5759 ia64*)
5760 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5761 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5763 hppa*64*)
5764 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]'
5765 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5768 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5769 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5771 esac
5774 interix[3-9]*)
5775 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5779 irix5* | irix6* | nonstopux*)
5780 case $LD in
5781 *-32|*"-32 ") libmagic=32-bit;;
5782 *-n32|*"-n32 ") libmagic=N32;;
5783 *-64|*"-64 ") libmagic=64-bit;;
5784 *) libmagic=never-match;;
5785 esac
5786 lt_cv_deplibs_check_method=pass_all
5789 # This must be Linux ELF.
5790 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5791 lt_cv_deplibs_check_method=pass_all
5794 netbsd*)
5795 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5796 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5797 else
5798 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5802 newos6*)
5803 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5804 lt_cv_file_magic_cmd=/usr/bin/file
5805 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5808 *nto* | *qnx*)
5809 lt_cv_deplibs_check_method=pass_all
5812 openbsd*)
5813 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5815 else
5816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5820 osf3* | osf4* | osf5*)
5821 lt_cv_deplibs_check_method=pass_all
5824 rdos*)
5825 lt_cv_deplibs_check_method=pass_all
5828 solaris*)
5829 lt_cv_deplibs_check_method=pass_all
5832 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5833 lt_cv_deplibs_check_method=pass_all
5836 sysv4 | sysv4.3*)
5837 case $host_vendor in
5838 motorola)
5839 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]'
5840 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5842 ncr)
5843 lt_cv_deplibs_check_method=pass_all
5845 sequent)
5846 lt_cv_file_magic_cmd='/bin/file'
5847 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5849 sni)
5850 lt_cv_file_magic_cmd='/bin/file'
5851 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5852 lt_cv_file_magic_test_file=/lib/libc.so
5854 siemens)
5855 lt_cv_deplibs_check_method=pass_all
5858 lt_cv_deplibs_check_method=pass_all
5860 esac
5863 tpf*)
5864 lt_cv_deplibs_check_method=pass_all
5866 esac
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5870 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5871 file_magic_cmd=$lt_cv_file_magic_cmd
5872 deplibs_check_method=$lt_cv_deplibs_check_method
5873 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5886 if test -n "$ac_tool_prefix"; then
5887 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5888 set dummy ${ac_tool_prefix}ar; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if test "${ac_cv_prog_AR+set}" = set; then :
5892 $as_echo_n "(cached) " >&6
5893 else
5894 if test -n "$AR"; then
5895 ac_cv_prog_AR="$AR" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904 ac_cv_prog_AR="${ac_tool_prefix}ar"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5908 done
5909 done
5910 IFS=$as_save_IFS
5914 AR=$ac_cv_prog_AR
5915 if test -n "$AR"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5917 $as_echo "$AR" >&6; }
5918 else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5925 if test -z "$ac_cv_prog_AR"; then
5926 ac_ct_AR=$AR
5927 # Extract the first word of "ar", so it can be a program name with args.
5928 set dummy ar; ac_word=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 if test -n "$ac_ct_AR"; then
5935 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5944 ac_cv_prog_ac_ct_AR="ar"
5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 break 2
5948 done
5949 done
5950 IFS=$as_save_IFS
5954 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5955 if test -n "$ac_ct_AR"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5957 $as_echo "$ac_ct_AR" >&6; }
5958 else
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5963 if test "x$ac_ct_AR" = x; then
5964 AR="false"
5965 else
5966 case $cross_compiling:$ac_tool_warned in
5967 yes:)
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5970 ac_tool_warned=yes ;;
5971 esac
5972 AR=$ac_ct_AR
5974 else
5975 AR="$ac_cv_prog_AR"
5978 test -z "$AR" && AR=ar
5979 test -z "$AR_FLAGS" && AR_FLAGS=cru
5991 if test -n "$ac_tool_prefix"; then
5992 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5993 set dummy ${ac_tool_prefix}strip; ac_word=$2
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995 $as_echo_n "checking for $ac_word... " >&6; }
5996 if test "${ac_cv_prog_STRIP+set}" = set; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 if test -n "$STRIP"; then
6000 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6001 else
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6005 IFS=$as_save_IFS
6006 test -z "$as_dir" && as_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6009 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 break 2
6013 done
6014 done
6015 IFS=$as_save_IFS
6019 STRIP=$ac_cv_prog_STRIP
6020 if test -n "$STRIP"; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6022 $as_echo "$STRIP" >&6; }
6023 else
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 $as_echo "no" >&6; }
6030 if test -z "$ac_cv_prog_STRIP"; then
6031 ac_ct_STRIP=$STRIP
6032 # Extract the first word of "strip", so it can be a program name with args.
6033 set dummy strip; ac_word=$2
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035 $as_echo_n "checking for $ac_word... " >&6; }
6036 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 if test -n "$ac_ct_STRIP"; then
6040 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6041 else
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6049 ac_cv_prog_ac_ct_STRIP="strip"
6050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 break 2
6053 done
6054 done
6055 IFS=$as_save_IFS
6059 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6060 if test -n "$ac_ct_STRIP"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6062 $as_echo "$ac_ct_STRIP" >&6; }
6063 else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6068 if test "x$ac_ct_STRIP" = x; then
6069 STRIP=":"
6070 else
6071 case $cross_compiling:$ac_tool_warned in
6072 yes:)
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6075 ac_tool_warned=yes ;;
6076 esac
6077 STRIP=$ac_ct_STRIP
6079 else
6080 STRIP="$ac_cv_prog_STRIP"
6083 test -z "$STRIP" && STRIP=:
6090 if test -n "$ac_tool_prefix"; then
6091 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6092 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094 $as_echo_n "checking for $ac_word... " >&6; }
6095 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 if test -n "$RANLIB"; then
6099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6108 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6112 done
6113 done
6114 IFS=$as_save_IFS
6118 RANLIB=$ac_cv_prog_RANLIB
6119 if test -n "$RANLIB"; then
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6121 $as_echo "$RANLIB" >&6; }
6122 else
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 $as_echo "no" >&6; }
6129 if test -z "$ac_cv_prog_RANLIB"; then
6130 ac_ct_RANLIB=$RANLIB
6131 # Extract the first word of "ranlib", so it can be a program name with args.
6132 set dummy ranlib; ac_word=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6136 $as_echo_n "(cached) " >&6
6137 else
6138 if test -n "$ac_ct_RANLIB"; then
6139 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6148 ac_cv_prog_ac_ct_RANLIB="ranlib"
6149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 break 2
6152 done
6153 done
6154 IFS=$as_save_IFS
6158 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6159 if test -n "$ac_ct_RANLIB"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6161 $as_echo "$ac_ct_RANLIB" >&6; }
6162 else
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6167 if test "x$ac_ct_RANLIB" = x; then
6168 RANLIB=":"
6169 else
6170 case $cross_compiling:$ac_tool_warned in
6171 yes:)
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6174 ac_tool_warned=yes ;;
6175 esac
6176 RANLIB=$ac_ct_RANLIB
6178 else
6179 RANLIB="$ac_cv_prog_RANLIB"
6182 test -z "$RANLIB" && RANLIB=:
6189 # Determine commands to create old-style static archives.
6190 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6191 old_postinstall_cmds='chmod 644 $oldlib'
6192 old_postuninstall_cmds=
6194 if test -n "$RANLIB"; then
6195 case $host_os in
6196 openbsd*)
6197 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6200 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6202 esac
6203 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6206 case $host_os in
6207 darwin*)
6208 lock_old_archive_extraction=yes ;;
6210 lock_old_archive_extraction=no ;;
6211 esac
6251 # If no C compiler was specified, use CC.
6252 LTCC=${LTCC-"$CC"}
6254 # If no C compiler flags were specified, use CFLAGS.
6255 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6257 # Allow CC to be a program name with arguments.
6258 compiler=$CC
6261 # Check for command to grab the raw symbol name followed by C symbol from nm.
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6263 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6264 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6268 # These are sane defaults that work on at least a few old systems.
6269 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6271 # Character class describing NM global symbol codes.
6272 symcode='[BCDEGRST]'
6274 # Regexp to match symbols that can be accessed directly from C.
6275 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6277 # Define system-specific variables.
6278 case $host_os in
6279 aix*)
6280 symcode='[BCDT]'
6282 cygwin* | mingw* | pw32* | cegcc*)
6283 symcode='[ABCDGISTW]'
6285 hpux*)
6286 if test "$host_cpu" = ia64; then
6287 symcode='[ABCDEGRST]'
6290 irix* | nonstopux*)
6291 symcode='[BCDEGRST]'
6293 osf*)
6294 symcode='[BCDEGQRST]'
6296 solaris*)
6297 symcode='[BDRT]'
6299 sco3.2v5*)
6300 symcode='[DT]'
6302 sysv4.2uw2*)
6303 symcode='[DT]'
6305 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6306 symcode='[ABDT]'
6308 sysv4)
6309 symcode='[DFNSTU]'
6311 esac
6313 # If we're using GNU nm, then use its standard symbol codes.
6314 case `$NM -V 2>&1` in
6315 *GNU* | *'with BFD'*)
6316 symcode='[ABCDGIRSTW]' ;;
6317 esac
6319 # Transform an extracted symbol line into a proper C declaration.
6320 # Some systems (esp. on ia64) link data and code symbols differently,
6321 # so use this general approach.
6322 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6324 # Transform an extracted symbol line into symbol name and symbol address
6325 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6326 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'"
6328 # Handle CRLF in mingw tool chain
6329 opt_cr=
6330 case $build_os in
6331 mingw*)
6332 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6334 esac
6336 # Try without a prefix underscore, then with it.
6337 for ac_symprfx in "" "_"; do
6339 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6340 symxfrm="\\1 $ac_symprfx\\2 \\2"
6342 # Write the raw and C identifiers.
6343 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6344 # Fake it for dumpbin and say T for any non-static function
6345 # and D for any global variable.
6346 # Also find C++ and __fastcall symbols from MSVC++,
6347 # which start with @ or ?.
6348 lt_cv_sys_global_symbol_pipe="$AWK '"\
6349 " {last_section=section; section=\$ 3};"\
6350 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6351 " \$ 0!~/External *\|/{next};"\
6352 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6353 " {if(hide[section]) next};"\
6354 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6355 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6356 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6357 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6358 " ' prfx=^$ac_symprfx"
6359 else
6360 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6363 # Check to see that the pipe works correctly.
6364 pipe_works=no
6366 rm -f conftest*
6367 cat > conftest.$ac_ext <<_LT_EOF
6368 #ifdef __cplusplus
6369 extern "C" {
6370 #endif
6371 char nm_test_var;
6372 void nm_test_func(void);
6373 void nm_test_func(void){}
6374 #ifdef __cplusplus
6376 #endif
6377 int main(){nm_test_var='a';nm_test_func();return(0);}
6378 _LT_EOF
6380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6381 (eval $ac_compile) 2>&5
6382 ac_status=$?
6383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6384 test $ac_status = 0; }; then
6385 # Now try to grab the symbols.
6386 nlist=conftest.nm
6387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6388 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6389 ac_status=$?
6390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391 test $ac_status = 0; } && test -s "$nlist"; then
6392 # Try sorting and uniquifying the output.
6393 if sort "$nlist" | uniq > "$nlist"T; then
6394 mv -f "$nlist"T "$nlist"
6395 else
6396 rm -f "$nlist"T
6399 # Make sure that we snagged all the symbols we need.
6400 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6401 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6402 cat <<_LT_EOF > conftest.$ac_ext
6403 #ifdef __cplusplus
6404 extern "C" {
6405 #endif
6407 _LT_EOF
6408 # Now generate the symbol file.
6409 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6411 cat <<_LT_EOF >> conftest.$ac_ext
6413 /* The mapping between symbol names and symbols. */
6414 const struct {
6415 const char *name;
6416 void *address;
6418 lt__PROGRAM__LTX_preloaded_symbols[] =
6420 { "@PROGRAM@", (void *) 0 },
6421 _LT_EOF
6422 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6423 cat <<\_LT_EOF >> conftest.$ac_ext
6424 {0, (void *) 0}
6427 /* This works around a problem in FreeBSD linker */
6428 #ifdef FREEBSD_WORKAROUND
6429 static const void *lt_preloaded_setup() {
6430 return lt__PROGRAM__LTX_preloaded_symbols;
6432 #endif
6434 #ifdef __cplusplus
6436 #endif
6437 _LT_EOF
6438 # Now try linking the two files.
6439 mv conftest.$ac_objext conftstm.$ac_objext
6440 lt_save_LIBS="$LIBS"
6441 lt_save_CFLAGS="$CFLAGS"
6442 LIBS="conftstm.$ac_objext"
6443 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6445 (eval $ac_link) 2>&5
6446 ac_status=$?
6447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6448 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6449 pipe_works=yes
6451 LIBS="$lt_save_LIBS"
6452 CFLAGS="$lt_save_CFLAGS"
6453 else
6454 echo "cannot find nm_test_func in $nlist" >&5
6456 else
6457 echo "cannot find nm_test_var in $nlist" >&5
6459 else
6460 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6462 else
6463 echo "$progname: failed program was:" >&5
6464 cat conftest.$ac_ext >&5
6466 rm -rf conftest* conftst*
6468 # Do not use the global_symbol_pipe unless it works.
6469 if test "$pipe_works" = yes; then
6470 break
6471 else
6472 lt_cv_sys_global_symbol_pipe=
6474 done
6478 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6479 lt_cv_sys_global_symbol_to_cdecl=
6481 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6483 $as_echo "failed" >&6; }
6484 else
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6486 $as_echo "ok" >&6; }
6511 # Check whether --enable-libtool-lock was given.
6512 if test "${enable_libtool_lock+set}" = set; then :
6513 enableval=$enable_libtool_lock;
6516 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6518 # Some flags need to be propagated to the compiler or linker for good
6519 # libtool support.
6520 case $host in
6521 ia64-*-hpux*)
6522 # Find out which ABI we are using.
6523 echo 'int i;' > conftest.$ac_ext
6524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6525 (eval $ac_compile) 2>&5
6526 ac_status=$?
6527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6528 test $ac_status = 0; }; then
6529 case `/usr/bin/file conftest.$ac_objext` in
6530 *ELF-32*)
6531 HPUX_IA64_MODE="32"
6533 *ELF-64*)
6534 HPUX_IA64_MODE="64"
6536 esac
6538 rm -rf conftest*
6540 *-*-irix6*)
6541 # Find out which ABI we are using.
6542 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6544 (eval $ac_compile) 2>&5
6545 ac_status=$?
6546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547 test $ac_status = 0; }; then
6548 if test "$lt_cv_prog_gnu_ld" = yes; then
6549 case `/usr/bin/file conftest.$ac_objext` in
6550 *32-bit*)
6551 LD="${LD-ld} -melf32bsmip"
6553 *N32*)
6554 LD="${LD-ld} -melf32bmipn32"
6556 *64-bit*)
6557 LD="${LD-ld} -melf64bmip"
6559 esac
6560 else
6561 case `/usr/bin/file conftest.$ac_objext` in
6562 *32-bit*)
6563 LD="${LD-ld} -32"
6565 *N32*)
6566 LD="${LD-ld} -n32"
6568 *64-bit*)
6569 LD="${LD-ld} -64"
6571 esac
6574 rm -rf conftest*
6577 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6578 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6579 # Find out which ABI we are using.
6580 echo 'int i;' > conftest.$ac_ext
6581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6582 (eval $ac_compile) 2>&5
6583 ac_status=$?
6584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6585 test $ac_status = 0; }; then
6586 case `/usr/bin/file conftest.o` in
6587 *32-bit*)
6588 case $host in
6589 x86_64-*kfreebsd*-gnu)
6590 LD="${LD-ld} -m elf_i386_fbsd"
6592 x86_64-*linux*)
6593 LD="${LD-ld} -m elf_i386"
6595 ppc64-*linux*|powerpc64-*linux*)
6596 LD="${LD-ld} -m elf32ppclinux"
6598 s390x-*linux*)
6599 LD="${LD-ld} -m elf_s390"
6601 sparc64-*linux*)
6602 LD="${LD-ld} -m elf32_sparc"
6604 esac
6606 *64-bit*)
6607 case $host in
6608 x86_64-*kfreebsd*-gnu)
6609 LD="${LD-ld} -m elf_x86_64_fbsd"
6611 x86_64-*linux*)
6612 LD="${LD-ld} -m elf_x86_64"
6614 ppc*-*linux*|powerpc*-*linux*)
6615 LD="${LD-ld} -m elf64ppc"
6617 s390*-*linux*|s390*-*tpf*)
6618 LD="${LD-ld} -m elf64_s390"
6620 sparc*-*linux*)
6621 LD="${LD-ld} -m elf64_sparc"
6623 esac
6625 esac
6627 rm -rf conftest*
6630 *-*-sco3.2v5*)
6631 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6632 SAVE_CFLAGS="$CFLAGS"
6633 CFLAGS="$CFLAGS -belf"
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6635 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6636 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 ac_ext=c
6640 ac_cpp='$CPP $CPPFLAGS'
6641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6649 main ()
6653 return 0;
6655 _ACEOF
6656 if ac_fn_c_try_link "$LINENO"; then :
6657 lt_cv_cc_needs_belf=yes
6658 else
6659 lt_cv_cc_needs_belf=no
6661 rm -f core conftest.err conftest.$ac_objext \
6662 conftest$ac_exeext conftest.$ac_ext
6663 ac_ext=c
6664 ac_cpp='$CPP $CPPFLAGS'
6665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6671 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6672 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6673 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6674 CFLAGS="$SAVE_CFLAGS"
6677 sparc*-*solaris*)
6678 # Find out which ABI we are using.
6679 echo 'int i;' > conftest.$ac_ext
6680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6681 (eval $ac_compile) 2>&5
6682 ac_status=$?
6683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6684 test $ac_status = 0; }; then
6685 case `/usr/bin/file conftest.o` in
6686 *64-bit*)
6687 case $lt_cv_prog_gnu_ld in
6688 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6690 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6691 LD="${LD-ld} -64"
6694 esac
6696 esac
6698 rm -rf conftest*
6700 esac
6702 need_locks="$enable_libtool_lock"
6705 case $host_os in
6706 rhapsody* | darwin*)
6707 if test -n "$ac_tool_prefix"; then
6708 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6709 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 if test -n "$DSYMUTIL"; then
6716 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6729 done
6730 done
6731 IFS=$as_save_IFS
6735 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6736 if test -n "$DSYMUTIL"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6738 $as_echo "$DSYMUTIL" >&6; }
6739 else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6746 if test -z "$ac_cv_prog_DSYMUTIL"; then
6747 ac_ct_DSYMUTIL=$DSYMUTIL
6748 # Extract the first word of "dsymutil", so it can be a program name with args.
6749 set dummy dsymutil; ac_word=$2
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 $as_echo_n "checking for $ac_word... " >&6; }
6752 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6753 $as_echo_n "(cached) " >&6
6754 else
6755 if test -n "$ac_ct_DSYMUTIL"; then
6756 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6769 done
6770 done
6771 IFS=$as_save_IFS
6775 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6776 if test -n "$ac_ct_DSYMUTIL"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6778 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6779 else
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6784 if test "x$ac_ct_DSYMUTIL" = x; then
6785 DSYMUTIL=":"
6786 else
6787 case $cross_compiling:$ac_tool_warned in
6788 yes:)
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791 ac_tool_warned=yes ;;
6792 esac
6793 DSYMUTIL=$ac_ct_DSYMUTIL
6795 else
6796 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6799 if test -n "$ac_tool_prefix"; then
6800 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6801 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6805 $as_echo_n "(cached) " >&6
6806 else
6807 if test -n "$NMEDIT"; then
6808 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6821 done
6822 done
6823 IFS=$as_save_IFS
6827 NMEDIT=$ac_cv_prog_NMEDIT
6828 if test -n "$NMEDIT"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6830 $as_echo "$NMEDIT" >&6; }
6831 else
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6838 if test -z "$ac_cv_prog_NMEDIT"; then
6839 ac_ct_NMEDIT=$NMEDIT
6840 # Extract the first word of "nmedit", so it can be a program name with args.
6841 set dummy nmedit; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 $as_echo_n "checking for $ac_word... " >&6; }
6844 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 if test -n "$ac_ct_NMEDIT"; then
6848 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6861 done
6862 done
6863 IFS=$as_save_IFS
6867 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6868 if test -n "$ac_ct_NMEDIT"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6870 $as_echo "$ac_ct_NMEDIT" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6876 if test "x$ac_ct_NMEDIT" = x; then
6877 NMEDIT=":"
6878 else
6879 case $cross_compiling:$ac_tool_warned in
6880 yes:)
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6883 ac_tool_warned=yes ;;
6884 esac
6885 NMEDIT=$ac_ct_NMEDIT
6887 else
6888 NMEDIT="$ac_cv_prog_NMEDIT"
6891 if test -n "$ac_tool_prefix"; then
6892 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6893 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if test "${ac_cv_prog_LIPO+set}" = set; then :
6897 $as_echo_n "(cached) " >&6
6898 else
6899 if test -n "$LIPO"; then
6900 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6913 done
6914 done
6915 IFS=$as_save_IFS
6919 LIPO=$ac_cv_prog_LIPO
6920 if test -n "$LIPO"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6922 $as_echo "$LIPO" >&6; }
6923 else
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6930 if test -z "$ac_cv_prog_LIPO"; then
6931 ac_ct_LIPO=$LIPO
6932 # Extract the first word of "lipo", so it can be a program name with args.
6933 set dummy lipo; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 if test -n "$ac_ct_LIPO"; then
6940 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949 ac_cv_prog_ac_ct_LIPO="lipo"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6953 done
6954 done
6955 IFS=$as_save_IFS
6959 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6960 if test -n "$ac_ct_LIPO"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6962 $as_echo "$ac_ct_LIPO" >&6; }
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6968 if test "x$ac_ct_LIPO" = x; then
6969 LIPO=":"
6970 else
6971 case $cross_compiling:$ac_tool_warned in
6972 yes:)
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975 ac_tool_warned=yes ;;
6976 esac
6977 LIPO=$ac_ct_LIPO
6979 else
6980 LIPO="$ac_cv_prog_LIPO"
6983 if test -n "$ac_tool_prefix"; then
6984 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6985 set dummy ${ac_tool_prefix}otool; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 if test -n "$OTOOL"; then
6992 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7001 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7005 done
7006 done
7007 IFS=$as_save_IFS
7011 OTOOL=$ac_cv_prog_OTOOL
7012 if test -n "$OTOOL"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7014 $as_echo "$OTOOL" >&6; }
7015 else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7022 if test -z "$ac_cv_prog_OTOOL"; then
7023 ac_ct_OTOOL=$OTOOL
7024 # Extract the first word of "otool", so it can be a program name with args.
7025 set dummy otool; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 if test -n "$ac_ct_OTOOL"; then
7032 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7041 ac_cv_prog_ac_ct_OTOOL="otool"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7045 done
7046 done
7047 IFS=$as_save_IFS
7051 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7052 if test -n "$ac_ct_OTOOL"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7054 $as_echo "$ac_ct_OTOOL" >&6; }
7055 else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7060 if test "x$ac_ct_OTOOL" = x; then
7061 OTOOL=":"
7062 else
7063 case $cross_compiling:$ac_tool_warned in
7064 yes:)
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067 ac_tool_warned=yes ;;
7068 esac
7069 OTOOL=$ac_ct_OTOOL
7071 else
7072 OTOOL="$ac_cv_prog_OTOOL"
7075 if test -n "$ac_tool_prefix"; then
7076 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7077 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 if test -n "$OTOOL64"; then
7084 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7093 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7097 done
7098 done
7099 IFS=$as_save_IFS
7103 OTOOL64=$ac_cv_prog_OTOOL64
7104 if test -n "$OTOOL64"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7106 $as_echo "$OTOOL64" >&6; }
7107 else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7114 if test -z "$ac_cv_prog_OTOOL64"; then
7115 ac_ct_OTOOL64=$OTOOL64
7116 # Extract the first word of "otool64", so it can be a program name with args.
7117 set dummy otool64; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 if test -n "$ac_ct_OTOOL64"; then
7124 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7133 ac_cv_prog_ac_ct_OTOOL64="otool64"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7137 done
7138 done
7139 IFS=$as_save_IFS
7143 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7144 if test -n "$ac_ct_OTOOL64"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7146 $as_echo "$ac_ct_OTOOL64" >&6; }
7147 else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7152 if test "x$ac_ct_OTOOL64" = x; then
7153 OTOOL64=":"
7154 else
7155 case $cross_compiling:$ac_tool_warned in
7156 yes:)
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7159 ac_tool_warned=yes ;;
7160 esac
7161 OTOOL64=$ac_ct_OTOOL64
7163 else
7164 OTOOL64="$ac_cv_prog_OTOOL64"
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7194 $as_echo_n "checking for -single_module linker flag... " >&6; }
7195 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198 lt_cv_apple_cc_single_mod=no
7199 if test -z "${LT_MULTI_MODULE}"; then
7200 # By default we will add the -single_module flag. You can override
7201 # by either setting the environment variable LT_MULTI_MODULE
7202 # non-empty at configure time, or by adding -multi_module to the
7203 # link flags.
7204 rm -rf libconftest.dylib*
7205 echo "int foo(void){return 1;}" > conftest.c
7206 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7207 -dynamiclib -Wl,-single_module conftest.c" >&5
7208 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7209 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7210 _lt_result=$?
7211 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7212 lt_cv_apple_cc_single_mod=yes
7213 else
7214 cat conftest.err >&5
7216 rm -rf libconftest.dylib*
7217 rm -f conftest.*
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7221 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7223 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7224 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 lt_cv_ld_exported_symbols_list=no
7228 save_LDFLAGS=$LDFLAGS
7229 echo "_main" > conftest.sym
7230 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7235 main ()
7239 return 0;
7241 _ACEOF
7242 if ac_fn_c_try_link "$LINENO"; then :
7243 lt_cv_ld_exported_symbols_list=yes
7244 else
7245 lt_cv_ld_exported_symbols_list=no
7247 rm -f core conftest.err conftest.$ac_objext \
7248 conftest$ac_exeext conftest.$ac_ext
7249 LDFLAGS="$save_LDFLAGS"
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7253 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7255 $as_echo_n "checking for -force_load linker flag... " >&6; }
7256 if test "${lt_cv_ld_force_load+set}" = set; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 lt_cv_ld_force_load=no
7260 cat > conftest.c << _LT_EOF
7261 int forced_loaded() { return 2;}
7262 _LT_EOF
7263 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7264 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7265 echo "$AR cru libconftest.a conftest.o" >&5
7266 $AR cru libconftest.a conftest.o 2>&5
7267 cat > conftest.c << _LT_EOF
7268 int main() { return 0;}
7269 _LT_EOF
7270 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7271 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7272 _lt_result=$?
7273 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7274 lt_cv_ld_force_load=yes
7275 else
7276 cat conftest.err >&5
7278 rm -f conftest.err libconftest.a conftest conftest.c
7279 rm -rf conftest.dSYM
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7283 $as_echo "$lt_cv_ld_force_load" >&6; }
7284 case $host_os in
7285 rhapsody* | darwin1.[012])
7286 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7287 darwin1.*)
7288 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7289 darwin*) # darwin 5.x on
7290 # if running on 10.5 or later, the deployment target defaults
7291 # to the OS version, if on x86, and 10.4, the deployment
7292 # target defaults to 10.4. Don't you love it?
7293 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7294 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7295 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7296 10.[012]*)
7297 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7298 10.*)
7299 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7300 esac
7302 esac
7303 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7304 _lt_dar_single_mod='$single_module'
7306 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7307 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7308 else
7309 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7311 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7312 _lt_dsymutil='~$DSYMUTIL $lib || :'
7313 else
7314 _lt_dsymutil=
7317 esac
7319 ac_ext=c
7320 ac_cpp='$CPP $CPPFLAGS'
7321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7325 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7326 # On Suns, sometimes $CPP names a directory.
7327 if test -n "$CPP" && test -d "$CPP"; then
7328 CPP=
7330 if test -z "$CPP"; then
7331 if test "${ac_cv_prog_CPP+set}" = set; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 # Double quotes because CPP needs to be expanded
7335 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7337 ac_preproc_ok=false
7338 for ac_c_preproc_warn_flag in '' yes
7340 # Use a header file that comes with gcc, so configuring glibc
7341 # with a fresh cross-compiler works.
7342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7343 # <limits.h> exists even on freestanding compilers.
7344 # On the NeXT, cc -E runs the code through the compiler's parser,
7345 # not just through cpp. "Syntax error" is here to catch this case.
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7348 #ifdef __STDC__
7349 # include <limits.h>
7350 #else
7351 # include <assert.h>
7352 #endif
7353 Syntax error
7354 _ACEOF
7355 if ac_fn_c_try_cpp "$LINENO"; then :
7357 else
7358 # Broken: fails on valid input.
7359 continue
7361 rm -f conftest.err conftest.$ac_ext
7363 # OK, works on sane cases. Now check whether nonexistent headers
7364 # can be detected and how.
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7367 #include <ac_nonexistent.h>
7368 _ACEOF
7369 if ac_fn_c_try_cpp "$LINENO"; then :
7370 # Broken: success on invalid input.
7371 continue
7372 else
7373 # Passes both tests.
7374 ac_preproc_ok=:
7375 break
7377 rm -f conftest.err conftest.$ac_ext
7379 done
7380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7381 rm -f conftest.err conftest.$ac_ext
7382 if $ac_preproc_ok; then :
7383 break
7386 done
7387 ac_cv_prog_CPP=$CPP
7390 CPP=$ac_cv_prog_CPP
7391 else
7392 ac_cv_prog_CPP=$CPP
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7395 $as_echo "$CPP" >&6; }
7396 ac_preproc_ok=false
7397 for ac_c_preproc_warn_flag in '' yes
7399 # Use a header file that comes with gcc, so configuring glibc
7400 # with a fresh cross-compiler works.
7401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7402 # <limits.h> exists even on freestanding compilers.
7403 # On the NeXT, cc -E runs the code through the compiler's parser,
7404 # not just through cpp. "Syntax error" is here to catch this case.
7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406 /* end confdefs.h. */
7407 #ifdef __STDC__
7408 # include <limits.h>
7409 #else
7410 # include <assert.h>
7411 #endif
7412 Syntax error
7413 _ACEOF
7414 if ac_fn_c_try_cpp "$LINENO"; then :
7416 else
7417 # Broken: fails on valid input.
7418 continue
7420 rm -f conftest.err conftest.$ac_ext
7422 # OK, works on sane cases. Now check whether nonexistent headers
7423 # can be detected and how.
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7426 #include <ac_nonexistent.h>
7427 _ACEOF
7428 if ac_fn_c_try_cpp "$LINENO"; then :
7429 # Broken: success on invalid input.
7430 continue
7431 else
7432 # Passes both tests.
7433 ac_preproc_ok=:
7434 break
7436 rm -f conftest.err conftest.$ac_ext
7438 done
7439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7440 rm -f conftest.err conftest.$ac_ext
7441 if $ac_preproc_ok; then :
7443 else
7444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7446 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7447 See \`config.log' for more details." "$LINENO" 5; }
7450 ac_ext=c
7451 ac_cpp='$CPP $CPPFLAGS'
7452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7458 $as_echo_n "checking for ANSI C header files... " >&6; }
7459 if test "${ac_cv_header_stdc+set}" = set; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7464 #include <stdlib.h>
7465 #include <stdarg.h>
7466 #include <string.h>
7467 #include <float.h>
7470 main ()
7474 return 0;
7476 _ACEOF
7477 if ac_fn_c_try_compile "$LINENO"; then :
7478 ac_cv_header_stdc=yes
7479 else
7480 ac_cv_header_stdc=no
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 if test $ac_cv_header_stdc = yes; then
7485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7488 #include <string.h>
7490 _ACEOF
7491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7492 $EGREP "memchr" >/dev/null 2>&1; then :
7494 else
7495 ac_cv_header_stdc=no
7497 rm -f conftest*
7501 if test $ac_cv_header_stdc = yes; then
7502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7505 #include <stdlib.h>
7507 _ACEOF
7508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7509 $EGREP "free" >/dev/null 2>&1; then :
7511 else
7512 ac_cv_header_stdc=no
7514 rm -f conftest*
7518 if test $ac_cv_header_stdc = yes; then
7519 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7520 if test "$cross_compiling" = yes; then :
7522 else
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525 #include <ctype.h>
7526 #include <stdlib.h>
7527 #if ((' ' & 0x0FF) == 0x020)
7528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7530 #else
7531 # define ISLOWER(c) \
7532 (('a' <= (c) && (c) <= 'i') \
7533 || ('j' <= (c) && (c) <= 'r') \
7534 || ('s' <= (c) && (c) <= 'z'))
7535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7536 #endif
7538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7540 main ()
7542 int i;
7543 for (i = 0; i < 256; i++)
7544 if (XOR (islower (i), ISLOWER (i))
7545 || toupper (i) != TOUPPER (i))
7546 return 2;
7547 return 0;
7549 _ACEOF
7550 if ac_fn_c_try_run "$LINENO"; then :
7552 else
7553 ac_cv_header_stdc=no
7555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7556 conftest.$ac_objext conftest.beam conftest.$ac_ext
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7562 $as_echo "$ac_cv_header_stdc" >&6; }
7563 if test $ac_cv_header_stdc = yes; then
7565 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7569 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7570 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7571 inttypes.h stdint.h unistd.h
7572 do :
7573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7574 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7576 eval as_val=\$$as_ac_Header
7577 if test "x$as_val" = x""yes; then :
7578 cat >>confdefs.h <<_ACEOF
7579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7580 _ACEOF
7584 done
7587 for ac_header in dlfcn.h
7588 do :
7589 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7591 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7592 cat >>confdefs.h <<_ACEOF
7593 #define HAVE_DLFCN_H 1
7594 _ACEOF
7598 done
7604 # Set options
7608 enable_dlopen=no
7611 enable_win32_dll=no
7614 # Check whether --enable-shared was given.
7615 if test "${enable_shared+set}" = set; then :
7616 enableval=$enable_shared; p=${PACKAGE-default}
7617 case $enableval in
7618 yes) enable_shared=yes ;;
7619 no) enable_shared=no ;;
7621 enable_shared=no
7622 # Look at the argument we got. We use all the common list separators.
7623 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7624 for pkg in $enableval; do
7625 IFS="$lt_save_ifs"
7626 if test "X$pkg" = "X$p"; then
7627 enable_shared=yes
7629 done
7630 IFS="$lt_save_ifs"
7632 esac
7633 else
7634 enable_shared=yes
7645 # Check whether --enable-static was given.
7646 if test "${enable_static+set}" = set; then :
7647 enableval=$enable_static; p=${PACKAGE-default}
7648 case $enableval in
7649 yes) enable_static=yes ;;
7650 no) enable_static=no ;;
7652 enable_static=no
7653 # Look at the argument we got. We use all the common list separators.
7654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7655 for pkg in $enableval; do
7656 IFS="$lt_save_ifs"
7657 if test "X$pkg" = "X$p"; then
7658 enable_static=yes
7660 done
7661 IFS="$lt_save_ifs"
7663 esac
7664 else
7665 enable_static=yes
7677 # Check whether --with-pic was given.
7678 if test "${with_pic+set}" = set; then :
7679 withval=$with_pic; pic_mode="$withval"
7680 else
7681 pic_mode=default
7685 test -z "$pic_mode" && pic_mode=default
7693 # Check whether --enable-fast-install was given.
7694 if test "${enable_fast_install+set}" = set; then :
7695 enableval=$enable_fast_install; p=${PACKAGE-default}
7696 case $enableval in
7697 yes) enable_fast_install=yes ;;
7698 no) enable_fast_install=no ;;
7700 enable_fast_install=no
7701 # Look at the argument we got. We use all the common list separators.
7702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7703 for pkg in $enableval; do
7704 IFS="$lt_save_ifs"
7705 if test "X$pkg" = "X$p"; then
7706 enable_fast_install=yes
7708 done
7709 IFS="$lt_save_ifs"
7711 esac
7712 else
7713 enable_fast_install=yes
7726 # This can be used to rebuild libtool when needed
7727 LIBTOOL_DEPS="$ltmain"
7729 # Always use our own libtool.
7730 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7757 test -z "$LN_S" && LN_S="ln -s"
7772 if test -n "${ZSH_VERSION+set}" ; then
7773 setopt NO_GLOB_SUBST
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7777 $as_echo_n "checking for objdir... " >&6; }
7778 if test "${lt_cv_objdir+set}" = set; then :
7779 $as_echo_n "(cached) " >&6
7780 else
7781 rm -f .libs 2>/dev/null
7782 mkdir .libs 2>/dev/null
7783 if test -d .libs; then
7784 lt_cv_objdir=.libs
7785 else
7786 # MS-DOS does not allow filenames that begin with a dot.
7787 lt_cv_objdir=_libs
7789 rmdir .libs 2>/dev/null
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7792 $as_echo "$lt_cv_objdir" >&6; }
7793 objdir=$lt_cv_objdir
7799 cat >>confdefs.h <<_ACEOF
7800 #define LT_OBJDIR "$lt_cv_objdir/"
7801 _ACEOF
7806 case $host_os in
7807 aix3*)
7808 # AIX sometimes has problems with the GCC collect2 program. For some
7809 # reason, if we set the COLLECT_NAMES environment variable, the problems
7810 # vanish in a puff of smoke.
7811 if test "X${COLLECT_NAMES+set}" != Xset; then
7812 COLLECT_NAMES=
7813 export COLLECT_NAMES
7816 esac
7818 # Global variables:
7819 ofile=libtool
7820 can_build_shared=yes
7822 # All known linkers require a `.a' archive for static linking (except MSVC,
7823 # which needs '.lib').
7824 libext=a
7826 with_gnu_ld="$lt_cv_prog_gnu_ld"
7828 old_CC="$CC"
7829 old_CFLAGS="$CFLAGS"
7831 # Set sane defaults for various variables
7832 test -z "$CC" && CC=cc
7833 test -z "$LTCC" && LTCC=$CC
7834 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7835 test -z "$LD" && LD=ld
7836 test -z "$ac_objext" && ac_objext=o
7838 for cc_temp in $compiler""; do
7839 case $cc_temp in
7840 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7841 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7842 \-*) ;;
7843 *) break;;
7844 esac
7845 done
7846 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7849 # Only perform the check for file, if the check method requires it
7850 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7851 case $deplibs_check_method in
7852 file_magic*)
7853 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7855 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7856 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859 case $MAGIC_CMD in
7860 [\\/*] | ?:[\\/]*)
7861 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7864 lt_save_MAGIC_CMD="$MAGIC_CMD"
7865 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7866 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7867 for ac_dir in $ac_dummy; do
7868 IFS="$lt_save_ifs"
7869 test -z "$ac_dir" && ac_dir=.
7870 if test -f $ac_dir/${ac_tool_prefix}file; then
7871 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7872 if test -n "$file_magic_test_file"; then
7873 case $deplibs_check_method in
7874 "file_magic "*)
7875 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7876 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7877 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7878 $EGREP "$file_magic_regex" > /dev/null; then
7880 else
7881 cat <<_LT_EOF 1>&2
7883 *** Warning: the command libtool uses to detect shared libraries,
7884 *** $file_magic_cmd, produces output that libtool cannot recognize.
7885 *** The result is that libtool may fail to recognize shared libraries
7886 *** as such. This will affect the creation of libtool libraries that
7887 *** depend on shared libraries, but programs linked with such libtool
7888 *** libraries will work regardless of this problem. Nevertheless, you
7889 *** may want to report the problem to your system manager and/or to
7890 *** bug-libtool@gnu.org
7892 _LT_EOF
7893 fi ;;
7894 esac
7896 break
7898 done
7899 IFS="$lt_save_ifs"
7900 MAGIC_CMD="$lt_save_MAGIC_CMD"
7902 esac
7905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7906 if test -n "$MAGIC_CMD"; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7908 $as_echo "$MAGIC_CMD" >&6; }
7909 else
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7918 if test -z "$lt_cv_path_MAGIC_CMD"; then
7919 if test -n "$ac_tool_prefix"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7921 $as_echo_n "checking for file... " >&6; }
7922 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 case $MAGIC_CMD in
7926 [\\/*] | ?:[\\/]*)
7927 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7930 lt_save_MAGIC_CMD="$MAGIC_CMD"
7931 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7932 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7933 for ac_dir in $ac_dummy; do
7934 IFS="$lt_save_ifs"
7935 test -z "$ac_dir" && ac_dir=.
7936 if test -f $ac_dir/file; then
7937 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7938 if test -n "$file_magic_test_file"; then
7939 case $deplibs_check_method in
7940 "file_magic "*)
7941 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7943 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7944 $EGREP "$file_magic_regex" > /dev/null; then
7946 else
7947 cat <<_LT_EOF 1>&2
7949 *** Warning: the command libtool uses to detect shared libraries,
7950 *** $file_magic_cmd, produces output that libtool cannot recognize.
7951 *** The result is that libtool may fail to recognize shared libraries
7952 *** as such. This will affect the creation of libtool libraries that
7953 *** depend on shared libraries, but programs linked with such libtool
7954 *** libraries will work regardless of this problem. Nevertheless, you
7955 *** may want to report the problem to your system manager and/or to
7956 *** bug-libtool@gnu.org
7958 _LT_EOF
7959 fi ;;
7960 esac
7962 break
7964 done
7965 IFS="$lt_save_ifs"
7966 MAGIC_CMD="$lt_save_MAGIC_CMD"
7968 esac
7971 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7972 if test -n "$MAGIC_CMD"; then
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7974 $as_echo "$MAGIC_CMD" >&6; }
7975 else
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977 $as_echo "no" >&6; }
7981 else
7982 MAGIC_CMD=:
7988 esac
7990 # Use C for the default configuration in the libtool script
7992 lt_save_CC="$CC"
7993 ac_ext=c
7994 ac_cpp='$CPP $CPPFLAGS'
7995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8000 # Source file extension for C test sources.
8001 ac_ext=c
8003 # Object file extension for compiled C test sources.
8004 objext=o
8005 objext=$objext
8007 # Code to be used in simple compile tests
8008 lt_simple_compile_test_code="int some_variable = 0;"
8010 # Code to be used in simple link tests
8011 lt_simple_link_test_code='int main(){return(0);}'
8019 # If no C compiler was specified, use CC.
8020 LTCC=${LTCC-"$CC"}
8022 # If no C compiler flags were specified, use CFLAGS.
8023 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8025 # Allow CC to be a program name with arguments.
8026 compiler=$CC
8028 # Save the default compiler, since it gets overwritten when the other
8029 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8030 compiler_DEFAULT=$CC
8032 # save warnings/boilerplate of simple test code
8033 ac_outfile=conftest.$ac_objext
8034 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8035 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8036 _lt_compiler_boilerplate=`cat conftest.err`
8037 $RM conftest*
8039 ac_outfile=conftest.$ac_objext
8040 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8041 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8042 _lt_linker_boilerplate=`cat conftest.err`
8043 $RM -r conftest*
8046 ## CAVEAT EMPTOR:
8047 ## There is no encapsulation within the following macros, do not change
8048 ## the running order or otherwise move them around unless you know exactly
8049 ## what you are doing...
8050 if test -n "$compiler"; then
8052 lt_prog_compiler_no_builtin_flag=
8054 if test "$GCC" = yes; then
8055 case $cc_basename in
8056 nvcc*)
8057 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8059 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8060 esac
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8063 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8064 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 lt_cv_prog_compiler_rtti_exceptions=no
8068 ac_outfile=conftest.$ac_objext
8069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8070 lt_compiler_flag="-fno-rtti -fno-exceptions"
8071 # Insert the option either (1) after the last *FLAGS variable, or
8072 # (2) before a word containing "conftest.", or (3) at the end.
8073 # Note that $ac_compile itself does not contain backslashes and begins
8074 # with a dollar sign (not a hyphen), so the echo should work correctly.
8075 # The option is referenced via a variable to avoid confusing sed.
8076 lt_compile=`echo "$ac_compile" | $SED \
8077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8079 -e 's:$: $lt_compiler_flag:'`
8080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8081 (eval "$lt_compile" 2>conftest.err)
8082 ac_status=$?
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 if (exit $ac_status) && test -s "$ac_outfile"; then
8086 # The compiler can only warn and ignore the option if not recognized
8087 # So say no if there are warnings other than the usual output.
8088 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8090 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8091 lt_cv_prog_compiler_rtti_exceptions=yes
8094 $RM conftest*
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8098 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8100 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8101 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8102 else
8113 lt_prog_compiler_wl=
8114 lt_prog_compiler_pic=
8115 lt_prog_compiler_static=
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8118 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8120 if test "$GCC" = yes; then
8121 lt_prog_compiler_wl='-Wl,'
8122 lt_prog_compiler_static='-static'
8124 case $host_os in
8125 aix*)
8126 # All AIX code is PIC.
8127 if test "$host_cpu" = ia64; then
8128 # AIX 5 now supports IA64 processor
8129 lt_prog_compiler_static='-Bstatic'
8133 amigaos*)
8134 case $host_cpu in
8135 powerpc)
8136 # see comment about AmigaOS4 .so support
8137 lt_prog_compiler_pic='-fPIC'
8139 m68k)
8140 # FIXME: we need at least 68020 code to build shared libraries, but
8141 # adding the `-m68020' flag to GCC prevents building anything better,
8142 # like `-m68040'.
8143 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8145 esac
8148 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8149 # PIC is the default for these OSes.
8152 mingw* | cygwin* | pw32* | os2* | cegcc*)
8153 # This hack is so that the source file can tell whether it is being
8154 # built for inclusion in a dll (and should export symbols for example).
8155 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8156 # (--disable-auto-import) libraries
8157 lt_prog_compiler_pic='-DDLL_EXPORT'
8160 darwin* | rhapsody*)
8161 # PIC is the default on this platform
8162 # Common symbols not allowed in MH_DYLIB files
8163 lt_prog_compiler_pic='-fno-common'
8166 haiku*)
8167 # PIC is the default for Haiku.
8168 # The "-static" flag exists, but is broken.
8169 lt_prog_compiler_static=
8172 hpux*)
8173 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8174 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8175 # sets the default TLS model and affects inlining.
8176 case $host_cpu in
8177 hppa*64*)
8178 # +Z the default
8181 lt_prog_compiler_pic='-fPIC'
8183 esac
8186 interix[3-9]*)
8187 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8188 # Instead, we relocate shared libraries at runtime.
8191 msdosdjgpp*)
8192 # Just because we use GCC doesn't mean we suddenly get shared libraries
8193 # on systems that don't support them.
8194 lt_prog_compiler_can_build_shared=no
8195 enable_shared=no
8198 *nto* | *qnx*)
8199 # QNX uses GNU C++, but need to define -shared option too, otherwise
8200 # it will coredump.
8201 lt_prog_compiler_pic='-fPIC -shared'
8204 sysv4*MP*)
8205 if test -d /usr/nec; then
8206 lt_prog_compiler_pic=-Kconform_pic
8211 lt_prog_compiler_pic='-fPIC'
8213 esac
8215 case $cc_basename in
8216 nvcc*) # Cuda Compiler Driver 2.2
8217 lt_prog_compiler_wl='-Xlinker '
8218 lt_prog_compiler_pic='-Xcompiler -fPIC'
8220 esac
8221 else
8222 # PORTME Check for flag to pass linker flags through the system compiler.
8223 case $host_os in
8224 aix*)
8225 lt_prog_compiler_wl='-Wl,'
8226 if test "$host_cpu" = ia64; then
8227 # AIX 5 now supports IA64 processor
8228 lt_prog_compiler_static='-Bstatic'
8229 else
8230 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8234 mingw* | cygwin* | pw32* | os2* | cegcc*)
8235 # This hack is so that the source file can tell whether it is being
8236 # built for inclusion in a dll (and should export symbols for example).
8237 lt_prog_compiler_pic='-DDLL_EXPORT'
8240 hpux9* | hpux10* | hpux11*)
8241 lt_prog_compiler_wl='-Wl,'
8242 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8243 # not for PA HP-UX.
8244 case $host_cpu in
8245 hppa*64*|ia64*)
8246 # +Z the default
8249 lt_prog_compiler_pic='+Z'
8251 esac
8252 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8253 lt_prog_compiler_static='${wl}-a ${wl}archive'
8256 irix5* | irix6* | nonstopux*)
8257 lt_prog_compiler_wl='-Wl,'
8258 # PIC (with -KPIC) is the default.
8259 lt_prog_compiler_static='-non_shared'
8262 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8263 case $cc_basename in
8264 # old Intel for x86_64 which still supported -KPIC.
8265 ecc*)
8266 lt_prog_compiler_wl='-Wl,'
8267 lt_prog_compiler_pic='-KPIC'
8268 lt_prog_compiler_static='-static'
8270 # icc used to be incompatible with GCC.
8271 # ICC 10 doesn't accept -KPIC any more.
8272 icc* | ifort*)
8273 lt_prog_compiler_wl='-Wl,'
8274 lt_prog_compiler_pic='-fPIC'
8275 lt_prog_compiler_static='-static'
8277 # Lahey Fortran 8.1.
8278 lf95*)
8279 lt_prog_compiler_wl='-Wl,'
8280 lt_prog_compiler_pic='--shared'
8281 lt_prog_compiler_static='--static'
8283 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8284 # Portland Group compilers (*not* the Pentium gcc compiler,
8285 # which looks to be a dead project)
8286 lt_prog_compiler_wl='-Wl,'
8287 lt_prog_compiler_pic='-fpic'
8288 lt_prog_compiler_static='-Bstatic'
8290 ccc*)
8291 lt_prog_compiler_wl='-Wl,'
8292 # All Alpha code is PIC.
8293 lt_prog_compiler_static='-non_shared'
8295 xl* | bgxl* | bgf* | mpixl*)
8296 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8297 lt_prog_compiler_wl='-Wl,'
8298 lt_prog_compiler_pic='-qpic'
8299 lt_prog_compiler_static='-qstaticlink'
8302 case `$CC -V 2>&1 | sed 5q` in
8303 *Sun\ F* | *Sun*Fortran*)
8304 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8305 lt_prog_compiler_pic='-KPIC'
8306 lt_prog_compiler_static='-Bstatic'
8307 lt_prog_compiler_wl=''
8309 *Sun\ C*)
8310 # Sun C 5.9
8311 lt_prog_compiler_pic='-KPIC'
8312 lt_prog_compiler_static='-Bstatic'
8313 lt_prog_compiler_wl='-Wl,'
8315 esac
8317 esac
8320 newsos6)
8321 lt_prog_compiler_pic='-KPIC'
8322 lt_prog_compiler_static='-Bstatic'
8325 *nto* | *qnx*)
8326 # QNX uses GNU C++, but need to define -shared option too, otherwise
8327 # it will coredump.
8328 lt_prog_compiler_pic='-fPIC -shared'
8331 osf3* | osf4* | osf5*)
8332 lt_prog_compiler_wl='-Wl,'
8333 # All OSF/1 code is PIC.
8334 lt_prog_compiler_static='-non_shared'
8337 rdos*)
8338 lt_prog_compiler_static='-non_shared'
8341 solaris*)
8342 lt_prog_compiler_pic='-KPIC'
8343 lt_prog_compiler_static='-Bstatic'
8344 case $cc_basename in
8345 f77* | f90* | f95*)
8346 lt_prog_compiler_wl='-Qoption ld ';;
8348 lt_prog_compiler_wl='-Wl,';;
8349 esac
8352 sunos4*)
8353 lt_prog_compiler_wl='-Qoption ld '
8354 lt_prog_compiler_pic='-PIC'
8355 lt_prog_compiler_static='-Bstatic'
8358 sysv4 | sysv4.2uw2* | sysv4.3*)
8359 lt_prog_compiler_wl='-Wl,'
8360 lt_prog_compiler_pic='-KPIC'
8361 lt_prog_compiler_static='-Bstatic'
8364 sysv4*MP*)
8365 if test -d /usr/nec ;then
8366 lt_prog_compiler_pic='-Kconform_pic'
8367 lt_prog_compiler_static='-Bstatic'
8371 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8372 lt_prog_compiler_wl='-Wl,'
8373 lt_prog_compiler_pic='-KPIC'
8374 lt_prog_compiler_static='-Bstatic'
8377 unicos*)
8378 lt_prog_compiler_wl='-Wl,'
8379 lt_prog_compiler_can_build_shared=no
8382 uts4*)
8383 lt_prog_compiler_pic='-pic'
8384 lt_prog_compiler_static='-Bstatic'
8388 lt_prog_compiler_can_build_shared=no
8390 esac
8393 case $host_os in
8394 # For platforms which do not support PIC, -DPIC is meaningless:
8395 *djgpp*)
8396 lt_prog_compiler_pic=
8399 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8401 esac
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8403 $as_echo "$lt_prog_compiler_pic" >&6; }
8411 # Check to make sure the PIC flag actually works.
8413 if test -n "$lt_prog_compiler_pic"; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8415 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8416 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 lt_cv_prog_compiler_pic_works=no
8420 ac_outfile=conftest.$ac_objext
8421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8422 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8423 # Insert the option either (1) after the last *FLAGS variable, or
8424 # (2) before a word containing "conftest.", or (3) at the end.
8425 # Note that $ac_compile itself does not contain backslashes and begins
8426 # with a dollar sign (not a hyphen), so the echo should work correctly.
8427 # The option is referenced via a variable to avoid confusing sed.
8428 lt_compile=`echo "$ac_compile" | $SED \
8429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8431 -e 's:$: $lt_compiler_flag:'`
8432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8433 (eval "$lt_compile" 2>conftest.err)
8434 ac_status=$?
8435 cat conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 if (exit $ac_status) && test -s "$ac_outfile"; then
8438 # The compiler can only warn and ignore the option if not recognized
8439 # So say no if there are warnings other than the usual output.
8440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8443 lt_cv_prog_compiler_pic_works=yes
8446 $RM conftest*
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8450 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8452 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8453 case $lt_prog_compiler_pic in
8454 "" | " "*) ;;
8455 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8456 esac
8457 else
8458 lt_prog_compiler_pic=
8459 lt_prog_compiler_can_build_shared=no
8470 # Check to make sure the static flag actually works.
8472 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8474 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8475 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 lt_cv_prog_compiler_static_works=no
8479 save_LDFLAGS="$LDFLAGS"
8480 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8481 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8482 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8483 # The linker can only warn and ignore the option if not recognized
8484 # So say no if there are warnings
8485 if test -s conftest.err; then
8486 # Append any errors to the config.log.
8487 cat conftest.err 1>&5
8488 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8490 if diff conftest.exp conftest.er2 >/dev/null; then
8491 lt_cv_prog_compiler_static_works=yes
8493 else
8494 lt_cv_prog_compiler_static_works=yes
8497 $RM -r conftest*
8498 LDFLAGS="$save_LDFLAGS"
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8502 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8504 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8506 else
8507 lt_prog_compiler_static=
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8517 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8518 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 lt_cv_prog_compiler_c_o=no
8522 $RM -r conftest 2>/dev/null
8523 mkdir conftest
8524 cd conftest
8525 mkdir out
8526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8528 lt_compiler_flag="-o out/conftest2.$ac_objext"
8529 # Insert the option either (1) after the last *FLAGS variable, or
8530 # (2) before a word containing "conftest.", or (3) at the end.
8531 # Note that $ac_compile itself does not contain backslashes and begins
8532 # with a dollar sign (not a hyphen), so the echo should work correctly.
8533 lt_compile=`echo "$ac_compile" | $SED \
8534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8536 -e 's:$: $lt_compiler_flag:'`
8537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8538 (eval "$lt_compile" 2>out/conftest.err)
8539 ac_status=$?
8540 cat out/conftest.err >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8543 then
8544 # The compiler can only warn and ignore the option if not recognized
8545 # So say no if there are warnings
8546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8547 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8548 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8549 lt_cv_prog_compiler_c_o=yes
8552 chmod u+w . 2>&5
8553 $RM conftest*
8554 # SGI C++ compiler will create directory out/ii_files/ for
8555 # template instantiation
8556 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8557 $RM out/* && rmdir out
8558 cd ..
8559 $RM -r conftest
8560 $RM conftest*
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8564 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8572 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8573 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8574 $as_echo_n "(cached) " >&6
8575 else
8576 lt_cv_prog_compiler_c_o=no
8577 $RM -r conftest 2>/dev/null
8578 mkdir conftest
8579 cd conftest
8580 mkdir out
8581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8583 lt_compiler_flag="-o out/conftest2.$ac_objext"
8584 # Insert the option either (1) after the last *FLAGS variable, or
8585 # (2) before a word containing "conftest.", or (3) at the end.
8586 # Note that $ac_compile itself does not contain backslashes and begins
8587 # with a dollar sign (not a hyphen), so the echo should work correctly.
8588 lt_compile=`echo "$ac_compile" | $SED \
8589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8591 -e 's:$: $lt_compiler_flag:'`
8592 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8593 (eval "$lt_compile" 2>out/conftest.err)
8594 ac_status=$?
8595 cat out/conftest.err >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8598 then
8599 # The compiler can only warn and ignore the option if not recognized
8600 # So say no if there are warnings
8601 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8602 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8603 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8604 lt_cv_prog_compiler_c_o=yes
8607 chmod u+w . 2>&5
8608 $RM conftest*
8609 # SGI C++ compiler will create directory out/ii_files/ for
8610 # template instantiation
8611 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8612 $RM out/* && rmdir out
8613 cd ..
8614 $RM -r conftest
8615 $RM conftest*
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8619 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8624 hard_links="nottested"
8625 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8626 # do not overwrite the value of need_locks provided by the user
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8628 $as_echo_n "checking if we can lock with hard links... " >&6; }
8629 hard_links=yes
8630 $RM conftest*
8631 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8632 touch conftest.a
8633 ln conftest.a conftest.b 2>&5 || hard_links=no
8634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8636 $as_echo "$hard_links" >&6; }
8637 if test "$hard_links" = no; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8639 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8640 need_locks=warn
8642 else
8643 need_locks=no
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8652 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8654 runpath_var=
8655 allow_undefined_flag=
8656 always_export_symbols=no
8657 archive_cmds=
8658 archive_expsym_cmds=
8659 compiler_needs_object=no
8660 enable_shared_with_static_runtimes=no
8661 export_dynamic_flag_spec=
8662 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8663 hardcode_automatic=no
8664 hardcode_direct=no
8665 hardcode_direct_absolute=no
8666 hardcode_libdir_flag_spec=
8667 hardcode_libdir_flag_spec_ld=
8668 hardcode_libdir_separator=
8669 hardcode_minus_L=no
8670 hardcode_shlibpath_var=unsupported
8671 inherit_rpath=no
8672 link_all_deplibs=unknown
8673 module_cmds=
8674 module_expsym_cmds=
8675 old_archive_from_new_cmds=
8676 old_archive_from_expsyms_cmds=
8677 thread_safe_flag_spec=
8678 whole_archive_flag_spec=
8679 # include_expsyms should be a list of space-separated symbols to be *always*
8680 # included in the symbol list
8681 include_expsyms=
8682 # exclude_expsyms can be an extended regexp of symbols to exclude
8683 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8684 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8685 # as well as any symbol that contains `d'.
8686 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8687 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8688 # platforms (ab)use it in PIC code, but their linkers get confused if
8689 # the symbol is explicitly referenced. Since portable code cannot
8690 # rely on this symbol name, it's probably fine to never include it in
8691 # preloaded symbol tables.
8692 # Exclude shared library initialization/finalization symbols.
8693 extract_expsyms_cmds=
8695 case $host_os in
8696 cygwin* | mingw* | pw32* | cegcc*)
8697 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8698 # When not using gcc, we currently assume that we are using
8699 # Microsoft Visual C++.
8700 if test "$GCC" != yes; then
8701 with_gnu_ld=no
8704 interix*)
8705 # we just hope/assume this is gcc and not c89 (= MSVC++)
8706 with_gnu_ld=yes
8708 openbsd*)
8709 with_gnu_ld=no
8711 esac
8713 ld_shlibs=yes
8715 # On some targets, GNU ld is compatible enough with the native linker
8716 # that we're better off using the native interface for both.
8717 lt_use_gnu_ld_interface=no
8718 if test "$with_gnu_ld" = yes; then
8719 case $host_os in
8720 aix*)
8721 # The AIX port of GNU ld has always aspired to compatibility
8722 # with the native linker. However, as the warning in the GNU ld
8723 # block says, versions before 2.19.5* couldn't really create working
8724 # shared libraries, regardless of the interface used.
8725 case `$LD -v 2>&1` in
8726 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8727 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8728 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8730 lt_use_gnu_ld_interface=yes
8732 esac
8735 lt_use_gnu_ld_interface=yes
8737 esac
8740 if test "$lt_use_gnu_ld_interface" = yes; then
8741 # If archive_cmds runs LD, not CC, wlarc should be empty
8742 wlarc='${wl}'
8744 # Set some defaults for GNU ld with shared library support. These
8745 # are reset later if shared libraries are not supported. Putting them
8746 # here allows them to be overridden if necessary.
8747 runpath_var=LD_RUN_PATH
8748 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8749 export_dynamic_flag_spec='${wl}--export-dynamic'
8750 # ancient GNU ld didn't support --whole-archive et. al.
8751 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8752 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8753 else
8754 whole_archive_flag_spec=
8756 supports_anon_versioning=no
8757 case `$LD -v 2>&1` in
8758 *GNU\ gold*) supports_anon_versioning=yes ;;
8759 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8760 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8761 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8762 *\ 2.11.*) ;; # other 2.11 versions
8763 *) supports_anon_versioning=yes ;;
8764 esac
8766 # See if GNU ld supports shared libraries.
8767 case $host_os in
8768 aix[3-9]*)
8769 # On AIX/PPC, the GNU linker is very broken
8770 if test "$host_cpu" != ia64; then
8771 ld_shlibs=no
8772 cat <<_LT_EOF 1>&2
8774 *** Warning: the GNU linker, at least up to release 2.19, is reported
8775 *** to be unable to reliably create shared libraries on AIX.
8776 *** Therefore, libtool is disabling shared libraries support. If you
8777 *** really care for shared libraries, you may want to install binutils
8778 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8779 *** You will then need to restart the configuration process.
8781 _LT_EOF
8785 amigaos*)
8786 case $host_cpu in
8787 powerpc)
8788 # see comment about AmigaOS4 .so support
8789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8790 archive_expsym_cmds=''
8792 m68k)
8793 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)'
8794 hardcode_libdir_flag_spec='-L$libdir'
8795 hardcode_minus_L=yes
8797 esac
8800 beos*)
8801 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8802 allow_undefined_flag=unsupported
8803 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8804 # support --undefined. This deserves some investigation. FIXME
8805 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8806 else
8807 ld_shlibs=no
8811 cygwin* | mingw* | pw32* | cegcc*)
8812 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8813 # as there is no search path for DLLs.
8814 hardcode_libdir_flag_spec='-L$libdir'
8815 export_dynamic_flag_spec='${wl}--export-all-symbols'
8816 allow_undefined_flag=unsupported
8817 always_export_symbols=no
8818 enable_shared_with_static_runtimes=yes
8819 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8821 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8823 # If the export-symbols file already is a .def file (1st line
8824 # is EXPORTS), use it as is; otherwise, prepend...
8825 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8826 cp $export_symbols $output_objdir/$soname.def;
8827 else
8828 echo EXPORTS > $output_objdir/$soname.def;
8829 cat $export_symbols >> $output_objdir/$soname.def;
8831 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8832 else
8833 ld_shlibs=no
8837 haiku*)
8838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8839 link_all_deplibs=yes
8842 interix[3-9]*)
8843 hardcode_direct=no
8844 hardcode_shlibpath_var=no
8845 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8846 export_dynamic_flag_spec='${wl}-E'
8847 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8848 # Instead, shared libraries are loaded at an image base (0x10000000 by
8849 # default) and relocated if they conflict, which is a slow very memory
8850 # consuming and fragmenting process. To avoid this, we pick a random,
8851 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8852 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8853 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8854 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'
8857 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8858 tmp_diet=no
8859 if test "$host_os" = linux-dietlibc; then
8860 case $cc_basename in
8861 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8862 esac
8864 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8865 && test "$tmp_diet" = no
8866 then
8867 tmp_addflag=
8868 tmp_sharedflag='-shared'
8869 case $cc_basename,$host_cpu in
8870 pgcc*) # Portland Group C compiler
8871 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'
8872 tmp_addflag=' $pic_flag'
8874 pgf77* | pgf90* | pgf95* | pgfortran*)
8875 # Portland Group f77 and f90 compilers
8876 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'
8877 tmp_addflag=' $pic_flag -Mnomain' ;;
8878 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8879 tmp_addflag=' -i_dynamic' ;;
8880 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8881 tmp_addflag=' -i_dynamic -nofor_main' ;;
8882 ifc* | ifort*) # Intel Fortran compiler
8883 tmp_addflag=' -nofor_main' ;;
8884 lf95*) # Lahey Fortran 8.1
8885 whole_archive_flag_spec=
8886 tmp_sharedflag='--shared' ;;
8887 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8888 tmp_sharedflag='-qmkshrobj'
8889 tmp_addflag= ;;
8890 nvcc*) # Cuda Compiler Driver 2.2
8891 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'
8892 compiler_needs_object=yes
8894 esac
8895 case `$CC -V 2>&1 | sed 5q` in
8896 *Sun\ C*) # Sun C 5.9
8897 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'
8898 compiler_needs_object=yes
8899 tmp_sharedflag='-G' ;;
8900 *Sun\ F*) # Sun Fortran 8.3
8901 tmp_sharedflag='-G' ;;
8902 esac
8903 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8905 if test "x$supports_anon_versioning" = xyes; then
8906 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8907 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8908 echo "local: *; };" >> $output_objdir/$libname.ver~
8909 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8912 case $cc_basename in
8913 xlf* | bgf* | bgxlf* | mpixlf*)
8914 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8915 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8916 hardcode_libdir_flag_spec=
8917 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8918 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8919 if test "x$supports_anon_versioning" = xyes; then
8920 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8921 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8922 echo "local: *; };" >> $output_objdir/$libname.ver~
8923 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8926 esac
8927 else
8928 ld_shlibs=no
8932 netbsd*)
8933 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8934 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8935 wlarc=
8936 else
8937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8938 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8942 solaris*)
8943 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8944 ld_shlibs=no
8945 cat <<_LT_EOF 1>&2
8947 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8948 *** create shared libraries on Solaris systems. Therefore, libtool
8949 *** is disabling shared libraries support. We urge you to upgrade GNU
8950 *** binutils to release 2.9.1 or newer. Another option is to modify
8951 *** your PATH or compiler configuration so that the native linker is
8952 *** used, and then restart.
8954 _LT_EOF
8955 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8957 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8958 else
8959 ld_shlibs=no
8963 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8964 case `$LD -v 2>&1` in
8965 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8966 ld_shlibs=no
8967 cat <<_LT_EOF 1>&2
8969 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8970 *** reliably create shared libraries on SCO systems. Therefore, libtool
8971 *** is disabling shared libraries support. We urge you to upgrade GNU
8972 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8973 *** your PATH or compiler configuration so that the native linker is
8974 *** used, and then restart.
8976 _LT_EOF
8979 # For security reasons, it is highly recommended that you always
8980 # use absolute paths for naming shared libraries, and exclude the
8981 # DT_RUNPATH tag from executables and libraries. But doing so
8982 # requires that you compile everything twice, which is a pain.
8983 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8984 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8987 else
8988 ld_shlibs=no
8991 esac
8994 sunos4*)
8995 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8996 wlarc=
8997 hardcode_direct=yes
8998 hardcode_shlibpath_var=no
9002 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9004 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9005 else
9006 ld_shlibs=no
9009 esac
9011 if test "$ld_shlibs" = no; then
9012 runpath_var=
9013 hardcode_libdir_flag_spec=
9014 export_dynamic_flag_spec=
9015 whole_archive_flag_spec=
9017 else
9018 # PORTME fill in a description of your system's linker (not GNU ld)
9019 case $host_os in
9020 aix3*)
9021 allow_undefined_flag=unsupported
9022 always_export_symbols=yes
9023 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'
9024 # Note: this linker hardcodes the directories in LIBPATH if there
9025 # are no directories specified by -L.
9026 hardcode_minus_L=yes
9027 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9028 # Neither direct hardcoding nor static linking is supported with a
9029 # broken collect2.
9030 hardcode_direct=unsupported
9034 aix[4-9]*)
9035 if test "$host_cpu" = ia64; then
9036 # On IA64, the linker does run time linking by default, so we don't
9037 # have to do anything special.
9038 aix_use_runtimelinking=no
9039 exp_sym_flag='-Bexport'
9040 no_entry_flag=""
9041 else
9042 # If we're using GNU nm, then we don't want the "-C" option.
9043 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9044 # Also, AIX nm treats weak defined symbols like other global
9045 # defined symbols, whereas GNU nm marks them as "W".
9046 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9047 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'
9048 else
9049 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'
9051 aix_use_runtimelinking=no
9053 # Test if we are trying to use run time linking or normal
9054 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9055 # need to do runtime linking.
9056 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9057 for ld_flag in $LDFLAGS; do
9058 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9059 aix_use_runtimelinking=yes
9060 break
9062 done
9064 esac
9066 exp_sym_flag='-bexport'
9067 no_entry_flag='-bnoentry'
9070 # When large executables or shared objects are built, AIX ld can
9071 # have problems creating the table of contents. If linking a library
9072 # or program results in "error TOC overflow" add -mminimal-toc to
9073 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9074 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9076 archive_cmds=''
9077 hardcode_direct=yes
9078 hardcode_direct_absolute=yes
9079 hardcode_libdir_separator=':'
9080 link_all_deplibs=yes
9081 file_list_spec='${wl}-f,'
9083 if test "$GCC" = yes; then
9084 case $host_os in aix4.[012]|aix4.[012].*)
9085 # We only want to do this on AIX 4.2 and lower, the check
9086 # below for broken collect2 doesn't work under 4.3+
9087 collect2name=`${CC} -print-prog-name=collect2`
9088 if test -f "$collect2name" &&
9089 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9090 then
9091 # We have reworked collect2
9093 else
9094 # We have old collect2
9095 hardcode_direct=unsupported
9096 # It fails to find uninstalled libraries when the uninstalled
9097 # path is not listed in the libpath. Setting hardcode_minus_L
9098 # to unsupported forces relinking
9099 hardcode_minus_L=yes
9100 hardcode_libdir_flag_spec='-L$libdir'
9101 hardcode_libdir_separator=
9104 esac
9105 shared_flag='-shared'
9106 if test "$aix_use_runtimelinking" = yes; then
9107 shared_flag="$shared_flag "'${wl}-G'
9109 else
9110 # not using gcc
9111 if test "$host_cpu" = ia64; then
9112 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9113 # chokes on -Wl,-G. The following line is correct:
9114 shared_flag='-G'
9115 else
9116 if test "$aix_use_runtimelinking" = yes; then
9117 shared_flag='${wl}-G'
9118 else
9119 shared_flag='${wl}-bM:SRE'
9124 export_dynamic_flag_spec='${wl}-bexpall'
9125 # It seems that -bexpall does not export symbols beginning with
9126 # underscore (_), so it is better to generate a list of symbols to export.
9127 always_export_symbols=yes
9128 if test "$aix_use_runtimelinking" = yes; then
9129 # Warning - without using the other runtime loading flags (-brtl),
9130 # -berok will link without error, but may produce a broken library.
9131 allow_undefined_flag='-berok'
9132 # Determine the default libpath from the value encoded in an
9133 # empty executable.
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9138 main ()
9142 return 0;
9144 _ACEOF
9145 if ac_fn_c_try_link "$LINENO"; then :
9147 lt_aix_libpath_sed='
9148 /Import File Strings/,/^$/ {
9149 /^0/ {
9150 s/^0 *\(.*\)$/\1/
9154 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9155 # Check for a 64-bit object if we didn't find anything.
9156 if test -z "$aix_libpath"; then
9157 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9160 rm -f core conftest.err conftest.$ac_objext \
9161 conftest$ac_exeext conftest.$ac_ext
9162 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9164 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9165 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"
9166 else
9167 if test "$host_cpu" = ia64; then
9168 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9169 allow_undefined_flag="-z nodefs"
9170 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"
9171 else
9172 # Determine the default libpath from the value encoded in an
9173 # empty executable.
9174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175 /* end confdefs.h. */
9178 main ()
9182 return 0;
9184 _ACEOF
9185 if ac_fn_c_try_link "$LINENO"; then :
9187 lt_aix_libpath_sed='
9188 /Import File Strings/,/^$/ {
9189 /^0/ {
9190 s/^0 *\(.*\)$/\1/
9194 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9195 # Check for a 64-bit object if we didn't find anything.
9196 if test -z "$aix_libpath"; then
9197 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9200 rm -f core conftest.err conftest.$ac_objext \
9201 conftest$ac_exeext conftest.$ac_ext
9202 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9204 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9205 # Warning - without using the other run time loading flags,
9206 # -berok will link without error, but may produce a broken library.
9207 no_undefined_flag=' ${wl}-bernotok'
9208 allow_undefined_flag=' ${wl}-berok'
9209 if test "$with_gnu_ld" = yes; then
9210 # We only use this code for GNU lds that support --whole-archive.
9211 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9212 else
9213 # Exported symbols can be pulled into shared objects from archives
9214 whole_archive_flag_spec='$convenience'
9216 archive_cmds_need_lc=yes
9217 # This is similar to how AIX traditionally builds its shared libraries.
9218 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'
9223 amigaos*)
9224 case $host_cpu in
9225 powerpc)
9226 # see comment about AmigaOS4 .so support
9227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9228 archive_expsym_cmds=''
9230 m68k)
9231 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)'
9232 hardcode_libdir_flag_spec='-L$libdir'
9233 hardcode_minus_L=yes
9235 esac
9238 bsdi[45]*)
9239 export_dynamic_flag_spec=-rdynamic
9242 cygwin* | mingw* | pw32* | cegcc*)
9243 # When not using gcc, we currently assume that we are using
9244 # Microsoft Visual C++.
9245 # hardcode_libdir_flag_spec is actually meaningless, as there is
9246 # no search path for DLLs.
9247 hardcode_libdir_flag_spec=' '
9248 allow_undefined_flag=unsupported
9249 # Tell ltmain to make .lib files, not .a files.
9250 libext=lib
9251 # Tell ltmain to make .dll files, not .so files.
9252 shrext_cmds=".dll"
9253 # FIXME: Setting linknames here is a bad hack.
9254 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9255 # The linker will automatically build a .lib file if we build a DLL.
9256 old_archive_from_new_cmds='true'
9257 # FIXME: Should let the user specify the lib program.
9258 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9259 fix_srcfile_path='`cygpath -w "$srcfile"`'
9260 enable_shared_with_static_runtimes=yes
9263 darwin* | rhapsody*)
9266 archive_cmds_need_lc=no
9267 hardcode_direct=no
9268 hardcode_automatic=yes
9269 hardcode_shlibpath_var=unsupported
9270 if test "$lt_cv_ld_force_load" = "yes"; then
9271 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\"`'
9272 else
9273 whole_archive_flag_spec=''
9275 link_all_deplibs=yes
9276 allow_undefined_flag="$_lt_dar_allow_undefined"
9277 case $cc_basename in
9278 ifort*) _lt_dar_can_shared=yes ;;
9279 *) _lt_dar_can_shared=$GCC ;;
9280 esac
9281 if test "$_lt_dar_can_shared" = "yes"; then
9282 output_verbose_link_cmd=func_echo_all
9283 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9284 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9285 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}"
9286 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}"
9288 else
9289 ld_shlibs=no
9294 dgux*)
9295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9296 hardcode_libdir_flag_spec='-L$libdir'
9297 hardcode_shlibpath_var=no
9300 freebsd1*)
9301 ld_shlibs=no
9304 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9305 # support. Future versions do this automatically, but an explicit c++rt0.o
9306 # does not break anything, and helps significantly (at the cost of a little
9307 # extra space).
9308 freebsd2.2*)
9309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9310 hardcode_libdir_flag_spec='-R$libdir'
9311 hardcode_direct=yes
9312 hardcode_shlibpath_var=no
9315 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9316 freebsd2*)
9317 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9318 hardcode_direct=yes
9319 hardcode_minus_L=yes
9320 hardcode_shlibpath_var=no
9323 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9324 freebsd* | dragonfly*)
9325 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9326 hardcode_libdir_flag_spec='-R$libdir'
9327 hardcode_direct=yes
9328 hardcode_shlibpath_var=no
9331 hpux9*)
9332 if test "$GCC" = yes; then
9333 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'
9334 else
9335 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'
9337 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9338 hardcode_libdir_separator=:
9339 hardcode_direct=yes
9341 # hardcode_minus_L: Not really in the search PATH,
9342 # but as the default location of the library.
9343 hardcode_minus_L=yes
9344 export_dynamic_flag_spec='${wl}-E'
9347 hpux10*)
9348 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9349 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9350 else
9351 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9353 if test "$with_gnu_ld" = no; then
9354 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9355 hardcode_libdir_flag_spec_ld='+b $libdir'
9356 hardcode_libdir_separator=:
9357 hardcode_direct=yes
9358 hardcode_direct_absolute=yes
9359 export_dynamic_flag_spec='${wl}-E'
9360 # hardcode_minus_L: Not really in the search PATH,
9361 # but as the default location of the library.
9362 hardcode_minus_L=yes
9366 hpux11*)
9367 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9368 case $host_cpu in
9369 hppa*64*)
9370 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9372 ia64*)
9373 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9376 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9378 esac
9379 else
9380 case $host_cpu in
9381 hppa*64*)
9382 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9384 ia64*)
9385 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9389 # Older versions of the 11.00 compiler do not understand -b yet
9390 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9392 $as_echo_n "checking if $CC understands -b... " >&6; }
9393 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 lt_cv_prog_compiler__b=no
9397 save_LDFLAGS="$LDFLAGS"
9398 LDFLAGS="$LDFLAGS -b"
9399 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9400 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9401 # The linker can only warn and ignore the option if not recognized
9402 # So say no if there are warnings
9403 if test -s conftest.err; then
9404 # Append any errors to the config.log.
9405 cat conftest.err 1>&5
9406 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9408 if diff conftest.exp conftest.er2 >/dev/null; then
9409 lt_cv_prog_compiler__b=yes
9411 else
9412 lt_cv_prog_compiler__b=yes
9415 $RM -r conftest*
9416 LDFLAGS="$save_LDFLAGS"
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9420 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9422 if test x"$lt_cv_prog_compiler__b" = xyes; then
9423 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9424 else
9425 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9429 esac
9431 if test "$with_gnu_ld" = no; then
9432 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9433 hardcode_libdir_separator=:
9435 case $host_cpu in
9436 hppa*64*|ia64*)
9437 hardcode_direct=no
9438 hardcode_shlibpath_var=no
9441 hardcode_direct=yes
9442 hardcode_direct_absolute=yes
9443 export_dynamic_flag_spec='${wl}-E'
9445 # hardcode_minus_L: Not really in the search PATH,
9446 # but as the default location of the library.
9447 hardcode_minus_L=yes
9449 esac
9453 irix5* | irix6* | nonstopux*)
9454 if test "$GCC" = yes; then
9455 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'
9456 # Try to use the -exported_symbol ld option, if it does not
9457 # work, assume that -exports_file does not work either and
9458 # implicitly export all symbols.
9459 save_LDFLAGS="$LDFLAGS"
9460 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9463 int foo(void) {}
9464 _ACEOF
9465 if ac_fn_c_try_link "$LINENO"; then :
9466 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'
9469 rm -f core conftest.err conftest.$ac_objext \
9470 conftest$ac_exeext conftest.$ac_ext
9471 LDFLAGS="$save_LDFLAGS"
9472 else
9473 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'
9474 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'
9476 archive_cmds_need_lc='no'
9477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9478 hardcode_libdir_separator=:
9479 inherit_rpath=yes
9480 link_all_deplibs=yes
9483 netbsd*)
9484 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9486 else
9487 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9489 hardcode_libdir_flag_spec='-R$libdir'
9490 hardcode_direct=yes
9491 hardcode_shlibpath_var=no
9494 newsos6)
9495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9496 hardcode_direct=yes
9497 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9498 hardcode_libdir_separator=:
9499 hardcode_shlibpath_var=no
9502 *nto* | *qnx*)
9505 openbsd*)
9506 if test -f /usr/libexec/ld.so; then
9507 hardcode_direct=yes
9508 hardcode_shlibpath_var=no
9509 hardcode_direct_absolute=yes
9510 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9511 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9512 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9513 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9514 export_dynamic_flag_spec='${wl}-E'
9515 else
9516 case $host_os in
9517 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9519 hardcode_libdir_flag_spec='-R$libdir'
9522 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9523 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9525 esac
9527 else
9528 ld_shlibs=no
9532 os2*)
9533 hardcode_libdir_flag_spec='-L$libdir'
9534 hardcode_minus_L=yes
9535 allow_undefined_flag=unsupported
9536 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'
9537 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9540 osf3*)
9541 if test "$GCC" = yes; then
9542 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9543 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'
9544 else
9545 allow_undefined_flag=' -expect_unresolved \*'
9546 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'
9548 archive_cmds_need_lc='no'
9549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9550 hardcode_libdir_separator=:
9553 osf4* | osf5*) # as osf3* with the addition of -msym flag
9554 if test "$GCC" = yes; then
9555 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9556 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'
9557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9558 else
9559 allow_undefined_flag=' -expect_unresolved \*'
9560 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'
9561 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~
9562 $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'
9564 # Both c and cxx compiler support -rpath directly
9565 hardcode_libdir_flag_spec='-rpath $libdir'
9567 archive_cmds_need_lc='no'
9568 hardcode_libdir_separator=:
9571 solaris*)
9572 no_undefined_flag=' -z defs'
9573 if test "$GCC" = yes; then
9574 wlarc='${wl}'
9575 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9576 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9577 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9578 else
9579 case `$CC -V 2>&1` in
9580 *"Compilers 5.0"*)
9581 wlarc=''
9582 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9583 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9584 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9587 wlarc='${wl}'
9588 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9589 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9590 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9592 esac
9594 hardcode_libdir_flag_spec='-R$libdir'
9595 hardcode_shlibpath_var=no
9596 case $host_os in
9597 solaris2.[0-5] | solaris2.[0-5].*) ;;
9599 # The compiler driver will combine and reorder linker options,
9600 # but understands `-z linker_flag'. GCC discards it without `$wl',
9601 # but is careful enough not to reorder.
9602 # Supported since Solaris 2.6 (maybe 2.5.1?)
9603 if test "$GCC" = yes; then
9604 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9605 else
9606 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9609 esac
9610 link_all_deplibs=yes
9613 sunos4*)
9614 if test "x$host_vendor" = xsequent; then
9615 # Use $CC to link under sequent, because it throws in some extra .o
9616 # files that make .init and .fini sections work.
9617 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9618 else
9619 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9621 hardcode_libdir_flag_spec='-L$libdir'
9622 hardcode_direct=yes
9623 hardcode_minus_L=yes
9624 hardcode_shlibpath_var=no
9627 sysv4)
9628 case $host_vendor in
9629 sni)
9630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9631 hardcode_direct=yes # is this really true???
9633 siemens)
9634 ## LD is ld it makes a PLAMLIB
9635 ## CC just makes a GrossModule.
9636 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9637 reload_cmds='$CC -r -o $output$reload_objs'
9638 hardcode_direct=no
9640 motorola)
9641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9642 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9644 esac
9645 runpath_var='LD_RUN_PATH'
9646 hardcode_shlibpath_var=no
9649 sysv4.3*)
9650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651 hardcode_shlibpath_var=no
9652 export_dynamic_flag_spec='-Bexport'
9655 sysv4*MP*)
9656 if test -d /usr/nec; then
9657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658 hardcode_shlibpath_var=no
9659 runpath_var=LD_RUN_PATH
9660 hardcode_runpath_var=yes
9661 ld_shlibs=yes
9665 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9666 no_undefined_flag='${wl}-z,text'
9667 archive_cmds_need_lc=no
9668 hardcode_shlibpath_var=no
9669 runpath_var='LD_RUN_PATH'
9671 if test "$GCC" = yes; then
9672 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9673 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9674 else
9675 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9676 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9680 sysv5* | sco3.2v5* | sco5v6*)
9681 # Note: We can NOT use -z defs as we might desire, because we do not
9682 # link with -lc, and that would cause any symbols used from libc to
9683 # always be unresolved, which means just about no library would
9684 # ever link correctly. If we're not using GNU ld we use -z text
9685 # though, which does catch some bad symbols but isn't as heavy-handed
9686 # as -z defs.
9687 no_undefined_flag='${wl}-z,text'
9688 allow_undefined_flag='${wl}-z,nodefs'
9689 archive_cmds_need_lc=no
9690 hardcode_shlibpath_var=no
9691 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9692 hardcode_libdir_separator=':'
9693 link_all_deplibs=yes
9694 export_dynamic_flag_spec='${wl}-Bexport'
9695 runpath_var='LD_RUN_PATH'
9697 if test "$GCC" = yes; then
9698 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700 else
9701 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9702 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 uts4*)
9707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708 hardcode_libdir_flag_spec='-L$libdir'
9709 hardcode_shlibpath_var=no
9713 ld_shlibs=no
9715 esac
9717 if test x$host_vendor = xsni; then
9718 case $host in
9719 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9720 export_dynamic_flag_spec='${wl}-Blargedynsym'
9722 esac
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9727 $as_echo "$ld_shlibs" >&6; }
9728 test "$ld_shlibs" = no && can_build_shared=no
9730 with_gnu_ld=$with_gnu_ld
9747 # Do we need to explicitly link libc?
9749 case "x$archive_cmds_need_lc" in
9750 x|xyes)
9751 # Assume -lc should be added
9752 archive_cmds_need_lc=yes
9754 if test "$enable_shared" = yes && test "$GCC" = yes; then
9755 case $archive_cmds in
9756 *'~'*)
9757 # FIXME: we may have to deal with multi-command sequences.
9759 '$CC '*)
9760 # Test whether the compiler implicitly links with -lc since on some
9761 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9762 # to ld, don't add -lc before -lgcc.
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9764 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9765 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 $RM conftest*
9769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9772 (eval $ac_compile) 2>&5
9773 ac_status=$?
9774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9775 test $ac_status = 0; } 2>conftest.err; then
9776 soname=conftest
9777 lib=conftest
9778 libobjs=conftest.$ac_objext
9779 deplibs=
9780 wl=$lt_prog_compiler_wl
9781 pic_flag=$lt_prog_compiler_pic
9782 compiler_flags=-v
9783 linker_flags=-v
9784 verstring=
9785 output_objdir=.
9786 libname=conftest
9787 lt_save_allow_undefined_flag=$allow_undefined_flag
9788 allow_undefined_flag=
9789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9790 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9791 ac_status=$?
9792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9793 test $ac_status = 0; }
9794 then
9795 lt_cv_archive_cmds_need_lc=no
9796 else
9797 lt_cv_archive_cmds_need_lc=yes
9799 allow_undefined_flag=$lt_save_allow_undefined_flag
9800 else
9801 cat conftest.err 1>&5
9803 $RM conftest*
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9807 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9808 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9810 esac
9813 esac
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9972 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9974 if test "$GCC" = yes; then
9975 case $host_os in
9976 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9977 *) lt_awk_arg="/^libraries:/" ;;
9978 esac
9979 case $host_os in
9980 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9981 *) lt_sed_strip_eq="s,=/,/,g" ;;
9982 esac
9983 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9984 case $lt_search_path_spec in
9985 *\;*)
9986 # if the path contains ";" then we assume it to be the separator
9987 # otherwise default to the standard path separator (i.e. ":") - it is
9988 # assumed that no part of a normal pathname contains ";" but that should
9989 # okay in the real world where ";" in dirpaths is itself problematic.
9990 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9993 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9995 esac
9996 # Ok, now we have the path, separated by spaces, we can step through it
9997 # and add multilib dir if necessary.
9998 lt_tmp_lt_search_path_spec=
9999 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10000 for lt_sys_path in $lt_search_path_spec; do
10001 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10002 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10003 else
10004 test -d "$lt_sys_path" && \
10005 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10007 done
10008 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10009 BEGIN {RS=" "; FS="/|\n";} {
10010 lt_foo="";
10011 lt_count=0;
10012 for (lt_i = NF; lt_i > 0; lt_i--) {
10013 if ($lt_i != "" && $lt_i != ".") {
10014 if ($lt_i == "..") {
10015 lt_count++;
10016 } else {
10017 if (lt_count == 0) {
10018 lt_foo="/" $lt_i lt_foo;
10019 } else {
10020 lt_count--;
10025 if (lt_foo != "") { lt_freq[lt_foo]++; }
10026 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10028 # AWK program above erroneously prepends '/' to C:/dos/paths
10029 # for these hosts.
10030 case $host_os in
10031 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10032 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10033 esac
10034 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10035 else
10036 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10038 library_names_spec=
10039 libname_spec='lib$name'
10040 soname_spec=
10041 shrext_cmds=".so"
10042 postinstall_cmds=
10043 postuninstall_cmds=
10044 finish_cmds=
10045 finish_eval=
10046 shlibpath_var=
10047 shlibpath_overrides_runpath=unknown
10048 version_type=none
10049 dynamic_linker="$host_os ld.so"
10050 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10051 need_lib_prefix=unknown
10052 hardcode_into_libs=no
10054 # when you set need_version to no, make sure it does not cause -set_version
10055 # flags to be left without arguments
10056 need_version=unknown
10058 case $host_os in
10059 aix3*)
10060 version_type=linux
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10062 shlibpath_var=LIBPATH
10064 # AIX 3 has no versioning support, so we append a major version to the name.
10065 soname_spec='${libname}${release}${shared_ext}$major'
10068 aix[4-9]*)
10069 version_type=linux
10070 need_lib_prefix=no
10071 need_version=no
10072 hardcode_into_libs=yes
10073 if test "$host_cpu" = ia64; then
10074 # AIX 5 supports IA64
10075 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10076 shlibpath_var=LD_LIBRARY_PATH
10077 else
10078 # With GCC up to 2.95.x, collect2 would create an import file
10079 # for dependence libraries. The import file would start with
10080 # the line `#! .'. This would cause the generated library to
10081 # depend on `.', always an invalid library. This was fixed in
10082 # development snapshots of GCC prior to 3.0.
10083 case $host_os in
10084 aix4 | aix4.[01] | aix4.[01].*)
10085 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10086 echo ' yes '
10087 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10089 else
10090 can_build_shared=no
10093 esac
10094 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10095 # soname into executable. Probably we can add versioning support to
10096 # collect2, so additional links can be useful in future.
10097 if test "$aix_use_runtimelinking" = yes; then
10098 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10099 # instead of lib<name>.a to let people know that these are not
10100 # typical AIX shared libraries.
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102 else
10103 # We preserve .a as extension for shared libraries through AIX4.2
10104 # and later when we are not doing run time linking.
10105 library_names_spec='${libname}${release}.a $libname.a'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10108 shlibpath_var=LIBPATH
10112 amigaos*)
10113 case $host_cpu in
10114 powerpc)
10115 # Since July 2007 AmigaOS4 officially supports .so libraries.
10116 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119 m68k)
10120 library_names_spec='$libname.ixlibrary $libname.a'
10121 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10122 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'
10124 esac
10127 beos*)
10128 library_names_spec='${libname}${shared_ext}'
10129 dynamic_linker="$host_os ld.so"
10130 shlibpath_var=LIBRARY_PATH
10133 bsdi[45]*)
10134 version_type=linux
10135 need_version=no
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10139 shlibpath_var=LD_LIBRARY_PATH
10140 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10141 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10142 # the default ld.so.conf also contains /usr/contrib/lib and
10143 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10144 # libtool to hard-code these into programs
10147 cygwin* | mingw* | pw32* | cegcc*)
10148 version_type=windows
10149 shrext_cmds=".dll"
10150 need_version=no
10151 need_lib_prefix=no
10153 case $GCC,$host_os in
10154 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10155 library_names_spec='$libname.dll.a'
10156 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10157 postinstall_cmds='base_file=`basename \${file}`~
10158 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10159 dldir=$destdir/`dirname \$dlpath`~
10160 test -d \$dldir || mkdir -p \$dldir~
10161 $install_prog $dir/$dlname \$dldir/$dlname~
10162 chmod a+x \$dldir/$dlname~
10163 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10164 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10166 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10167 dlpath=$dir/\$dldll~
10168 $RM \$dlpath'
10169 shlibpath_overrides_runpath=yes
10171 case $host_os in
10172 cygwin*)
10173 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10174 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10176 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10178 mingw* | cegcc*)
10179 # MinGW DLLs use traditional 'lib' prefix
10180 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10182 pw32*)
10183 # pw32 DLLs use 'pw' prefix rather than 'lib'
10184 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10186 esac
10190 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10192 esac
10193 dynamic_linker='Win32 ld.exe'
10194 # FIXME: first we should search . and the directory the executable is in
10195 shlibpath_var=PATH
10198 darwin* | rhapsody*)
10199 dynamic_linker="$host_os dyld"
10200 version_type=darwin
10201 need_lib_prefix=no
10202 need_version=no
10203 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10204 soname_spec='${libname}${release}${major}$shared_ext'
10205 shlibpath_overrides_runpath=yes
10206 shlibpath_var=DYLD_LIBRARY_PATH
10207 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10209 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10210 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10213 dgux*)
10214 version_type=linux
10215 need_lib_prefix=no
10216 need_version=no
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10218 soname_spec='${libname}${release}${shared_ext}$major'
10219 shlibpath_var=LD_LIBRARY_PATH
10222 freebsd1*)
10223 dynamic_linker=no
10226 freebsd* | dragonfly*)
10227 # DragonFly does not have aout. When/if they implement a new
10228 # versioning mechanism, adjust this.
10229 if test -x /usr/bin/objformat; then
10230 objformat=`/usr/bin/objformat`
10231 else
10232 case $host_os in
10233 freebsd[123]*) objformat=aout ;;
10234 *) objformat=elf ;;
10235 esac
10237 version_type=freebsd-$objformat
10238 case $version_type in
10239 freebsd-elf*)
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10241 need_version=no
10242 need_lib_prefix=no
10244 freebsd-*)
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10246 need_version=yes
10248 esac
10249 shlibpath_var=LD_LIBRARY_PATH
10250 case $host_os in
10251 freebsd2*)
10252 shlibpath_overrides_runpath=yes
10254 freebsd3.[01]* | freebsdelf3.[01]*)
10255 shlibpath_overrides_runpath=yes
10256 hardcode_into_libs=yes
10258 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10259 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10260 shlibpath_overrides_runpath=no
10261 hardcode_into_libs=yes
10263 *) # from 4.6 on, and DragonFly
10264 shlibpath_overrides_runpath=yes
10265 hardcode_into_libs=yes
10267 esac
10270 gnu*)
10271 version_type=linux
10272 need_lib_prefix=no
10273 need_version=no
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10275 soname_spec='${libname}${release}${shared_ext}$major'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 hardcode_into_libs=yes
10280 haiku*)
10281 version_type=linux
10282 need_lib_prefix=no
10283 need_version=no
10284 dynamic_linker="$host_os runtime_loader"
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 shlibpath_var=LIBRARY_PATH
10288 shlibpath_overrides_runpath=yes
10289 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10290 hardcode_into_libs=yes
10293 hpux9* | hpux10* | hpux11*)
10294 # Give a soname corresponding to the major version so that dld.sl refuses to
10295 # link against other versions.
10296 version_type=sunos
10297 need_lib_prefix=no
10298 need_version=no
10299 case $host_cpu in
10300 ia64*)
10301 shrext_cmds='.so'
10302 hardcode_into_libs=yes
10303 dynamic_linker="$host_os dld.so"
10304 shlibpath_var=LD_LIBRARY_PATH
10305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 if test "X$HPUX_IA64_MODE" = X32; then
10309 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10310 else
10311 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10315 hppa*64*)
10316 shrext_cmds='.sl'
10317 hardcode_into_libs=yes
10318 dynamic_linker="$host_os dld.sl"
10319 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10327 shrext_cmds='.sl'
10328 dynamic_linker="$host_os dld.sl"
10329 shlibpath_var=SHLIB_PATH
10330 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 soname_spec='${libname}${release}${shared_ext}$major'
10334 esac
10335 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10336 postinstall_cmds='chmod 555 $lib'
10337 # or fails outright, so override atomically:
10338 install_override_mode=555
10341 interix[3-9]*)
10342 version_type=linux
10343 need_lib_prefix=no
10344 need_version=no
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 shlibpath_overrides_runpath=no
10350 hardcode_into_libs=yes
10353 irix5* | irix6* | nonstopux*)
10354 case $host_os in
10355 nonstopux*) version_type=nonstopux ;;
10357 if test "$lt_cv_prog_gnu_ld" = yes; then
10358 version_type=linux
10359 else
10360 version_type=irix
10361 fi ;;
10362 esac
10363 need_lib_prefix=no
10364 need_version=no
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10367 case $host_os in
10368 irix5* | nonstopux*)
10369 libsuff= shlibsuff=
10372 case $LD in # libtool.m4 will add one of these switches to LD
10373 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10374 libsuff= shlibsuff= libmagic=32-bit;;
10375 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10376 libsuff=32 shlibsuff=N32 libmagic=N32;;
10377 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10378 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10379 *) libsuff= shlibsuff= libmagic=never-match;;
10380 esac
10382 esac
10383 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10384 shlibpath_overrides_runpath=no
10385 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10386 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10387 hardcode_into_libs=yes
10390 # No shared lib support for Linux oldld, aout, or coff.
10391 linux*oldld* | linux*aout* | linux*coff*)
10392 dynamic_linker=no
10395 # This must be Linux ELF.
10396 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10397 version_type=linux
10398 need_lib_prefix=no
10399 need_version=no
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401 soname_spec='${libname}${release}${shared_ext}$major'
10402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10403 shlibpath_var=LD_LIBRARY_PATH
10404 shlibpath_overrides_runpath=no
10406 # Some binutils ld are patched to set DT_RUNPATH
10407 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10408 $as_echo_n "(cached) " >&6
10409 else
10410 lt_cv_shlibpath_overrides_runpath=no
10411 save_LDFLAGS=$LDFLAGS
10412 save_libdir=$libdir
10413 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10414 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10419 main ()
10423 return 0;
10425 _ACEOF
10426 if ac_fn_c_try_link "$LINENO"; then :
10427 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10428 lt_cv_shlibpath_overrides_runpath=yes
10431 rm -f core conftest.err conftest.$ac_objext \
10432 conftest$ac_exeext conftest.$ac_ext
10433 LDFLAGS=$save_LDFLAGS
10434 libdir=$save_libdir
10438 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10440 # This implies no fast_install, which is unacceptable.
10441 # Some rework will be needed to allow for fast_install
10442 # before this can be enabled.
10443 hardcode_into_libs=yes
10445 # Append ld.so.conf contents to the search path
10446 if test -f /etc/ld.so.conf; then
10447 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' ' '`
10448 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10451 # We used to test for /lib/ld.so.1 and disable shared libraries on
10452 # powerpc, because MkLinux only supported shared libraries with the
10453 # GNU dynamic linker. Since this was broken with cross compilers,
10454 # most powerpc-linux boxes support dynamic linking these days and
10455 # people can always --disable-shared, the test was removed, and we
10456 # assume the GNU/Linux dynamic linker is in use.
10457 dynamic_linker='GNU/Linux ld.so'
10460 netbsd*)
10461 version_type=sunos
10462 need_lib_prefix=no
10463 need_version=no
10464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10467 dynamic_linker='NetBSD (a.out) ld.so'
10468 else
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 dynamic_linker='NetBSD ld.elf_so'
10473 shlibpath_var=LD_LIBRARY_PATH
10474 shlibpath_overrides_runpath=yes
10475 hardcode_into_libs=yes
10478 newsos6)
10479 version_type=linux
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10481 shlibpath_var=LD_LIBRARY_PATH
10482 shlibpath_overrides_runpath=yes
10485 *nto* | *qnx*)
10486 version_type=qnx
10487 need_lib_prefix=no
10488 need_version=no
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490 soname_spec='${libname}${release}${shared_ext}$major'
10491 shlibpath_var=LD_LIBRARY_PATH
10492 shlibpath_overrides_runpath=no
10493 hardcode_into_libs=yes
10494 dynamic_linker='ldqnx.so'
10497 openbsd*)
10498 version_type=sunos
10499 sys_lib_dlsearch_path_spec="/usr/lib"
10500 need_lib_prefix=no
10501 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10502 case $host_os in
10503 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10504 *) need_version=no ;;
10505 esac
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10507 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10508 shlibpath_var=LD_LIBRARY_PATH
10509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10510 case $host_os in
10511 openbsd2.[89] | openbsd2.[89].*)
10512 shlibpath_overrides_runpath=no
10515 shlibpath_overrides_runpath=yes
10517 esac
10518 else
10519 shlibpath_overrides_runpath=yes
10523 os2*)
10524 libname_spec='$name'
10525 shrext_cmds=".dll"
10526 need_lib_prefix=no
10527 library_names_spec='$libname${shared_ext} $libname.a'
10528 dynamic_linker='OS/2 ld.exe'
10529 shlibpath_var=LIBPATH
10532 osf3* | osf4* | osf5*)
10533 version_type=osf
10534 need_lib_prefix=no
10535 need_version=no
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538 shlibpath_var=LD_LIBRARY_PATH
10539 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10540 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10543 rdos*)
10544 dynamic_linker=no
10547 solaris*)
10548 version_type=linux
10549 need_lib_prefix=no
10550 need_version=no
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552 soname_spec='${libname}${release}${shared_ext}$major'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 shlibpath_overrides_runpath=yes
10555 hardcode_into_libs=yes
10556 # ldd complains unless libraries are executable
10557 postinstall_cmds='chmod +x $lib'
10560 sunos4*)
10561 version_type=sunos
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10563 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10564 shlibpath_var=LD_LIBRARY_PATH
10565 shlibpath_overrides_runpath=yes
10566 if test "$with_gnu_ld" = yes; then
10567 need_lib_prefix=no
10569 need_version=yes
10572 sysv4 | sysv4.3*)
10573 version_type=linux
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 case $host_vendor in
10578 sni)
10579 shlibpath_overrides_runpath=no
10580 need_lib_prefix=no
10581 runpath_var=LD_RUN_PATH
10583 siemens)
10584 need_lib_prefix=no
10586 motorola)
10587 need_lib_prefix=no
10588 need_version=no
10589 shlibpath_overrides_runpath=no
10590 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10592 esac
10595 sysv4*MP*)
10596 if test -d /usr/nec ;then
10597 version_type=linux
10598 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10599 soname_spec='$libname${shared_ext}.$major'
10600 shlibpath_var=LD_LIBRARY_PATH
10604 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10605 version_type=freebsd-elf
10606 need_lib_prefix=no
10607 need_version=no
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10609 soname_spec='${libname}${release}${shared_ext}$major'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 shlibpath_overrides_runpath=yes
10612 hardcode_into_libs=yes
10613 if test "$with_gnu_ld" = yes; then
10614 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10615 else
10616 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10617 case $host_os in
10618 sco3.2v5*)
10619 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10621 esac
10623 sys_lib_dlsearch_path_spec='/usr/lib'
10626 tpf*)
10627 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10628 version_type=linux
10629 need_lib_prefix=no
10630 need_version=no
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632 shlibpath_var=LD_LIBRARY_PATH
10633 shlibpath_overrides_runpath=no
10634 hardcode_into_libs=yes
10637 uts4*)
10638 version_type=linux
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640 soname_spec='${libname}${release}${shared_ext}$major'
10641 shlibpath_var=LD_LIBRARY_PATH
10645 dynamic_linker=no
10647 esac
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10649 $as_echo "$dynamic_linker" >&6; }
10650 test "$dynamic_linker" = no && can_build_shared=no
10652 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10653 if test "$GCC" = yes; then
10654 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10657 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10658 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10660 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10661 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10756 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10757 hardcode_action=
10758 if test -n "$hardcode_libdir_flag_spec" ||
10759 test -n "$runpath_var" ||
10760 test "X$hardcode_automatic" = "Xyes" ; then
10762 # We can hardcode non-existent directories.
10763 if test "$hardcode_direct" != no &&
10764 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10765 # have to relink, otherwise we might link with an installed library
10766 # when we should be linking with a yet-to-be-installed one
10767 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10768 test "$hardcode_minus_L" != no; then
10769 # Linking always hardcodes the temporary library directory.
10770 hardcode_action=relink
10771 else
10772 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10773 hardcode_action=immediate
10775 else
10776 # We cannot hardcode anything, or else we can only hardcode existing
10777 # directories.
10778 hardcode_action=unsupported
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10781 $as_echo "$hardcode_action" >&6; }
10783 if test "$hardcode_action" = relink ||
10784 test "$inherit_rpath" = yes; then
10785 # Fast installation is not supported
10786 enable_fast_install=no
10787 elif test "$shlibpath_overrides_runpath" = yes ||
10788 test "$enable_shared" = no; then
10789 # Fast installation is not necessary
10790 enable_fast_install=needless
10798 if test "x$enable_dlopen" != xyes; then
10799 enable_dlopen=unknown
10800 enable_dlopen_self=unknown
10801 enable_dlopen_self_static=unknown
10802 else
10803 lt_cv_dlopen=no
10804 lt_cv_dlopen_libs=
10806 case $host_os in
10807 beos*)
10808 lt_cv_dlopen="load_add_on"
10809 lt_cv_dlopen_libs=
10810 lt_cv_dlopen_self=yes
10813 mingw* | pw32* | cegcc*)
10814 lt_cv_dlopen="LoadLibrary"
10815 lt_cv_dlopen_libs=
10818 cygwin*)
10819 lt_cv_dlopen="dlopen"
10820 lt_cv_dlopen_libs=
10823 darwin*)
10824 # if libdl is installed we need to link against it
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10826 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10827 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10828 $as_echo_n "(cached) " >&6
10829 else
10830 ac_check_lib_save_LIBS=$LIBS
10831 LIBS="-ldl $LIBS"
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10835 /* Override any GCC internal prototype to avoid an error.
10836 Use char because int might match the return type of a GCC
10837 builtin and then its argument prototype would still apply. */
10838 #ifdef __cplusplus
10839 extern "C"
10840 #endif
10841 char dlopen ();
10843 main ()
10845 return dlopen ();
10847 return 0;
10849 _ACEOF
10850 if ac_fn_c_try_link "$LINENO"; then :
10851 ac_cv_lib_dl_dlopen=yes
10852 else
10853 ac_cv_lib_dl_dlopen=no
10855 rm -f core conftest.err conftest.$ac_objext \
10856 conftest$ac_exeext conftest.$ac_ext
10857 LIBS=$ac_check_lib_save_LIBS
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10860 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10861 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10862 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10863 else
10865 lt_cv_dlopen="dyld"
10866 lt_cv_dlopen_libs=
10867 lt_cv_dlopen_self=yes
10874 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10875 if test "x$ac_cv_func_shl_load" = x""yes; then :
10876 lt_cv_dlopen="shl_load"
10877 else
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10879 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10880 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10881 $as_echo_n "(cached) " >&6
10882 else
10883 ac_check_lib_save_LIBS=$LIBS
10884 LIBS="-ldld $LIBS"
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10888 /* Override any GCC internal prototype to avoid an error.
10889 Use char because int might match the return type of a GCC
10890 builtin and then its argument prototype would still apply. */
10891 #ifdef __cplusplus
10892 extern "C"
10893 #endif
10894 char shl_load ();
10896 main ()
10898 return shl_load ();
10900 return 0;
10902 _ACEOF
10903 if ac_fn_c_try_link "$LINENO"; then :
10904 ac_cv_lib_dld_shl_load=yes
10905 else
10906 ac_cv_lib_dld_shl_load=no
10908 rm -f core conftest.err conftest.$ac_objext \
10909 conftest$ac_exeext conftest.$ac_ext
10910 LIBS=$ac_check_lib_save_LIBS
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10913 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10914 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10915 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10916 else
10917 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10918 if test "x$ac_cv_func_dlopen" = x""yes; then :
10919 lt_cv_dlopen="dlopen"
10920 else
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10922 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10923 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10924 $as_echo_n "(cached) " >&6
10925 else
10926 ac_check_lib_save_LIBS=$LIBS
10927 LIBS="-ldl $LIBS"
10928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929 /* end confdefs.h. */
10931 /* Override any GCC internal prototype to avoid an error.
10932 Use char because int might match the return type of a GCC
10933 builtin and then its argument prototype would still apply. */
10934 #ifdef __cplusplus
10935 extern "C"
10936 #endif
10937 char dlopen ();
10939 main ()
10941 return dlopen ();
10943 return 0;
10945 _ACEOF
10946 if ac_fn_c_try_link "$LINENO"; then :
10947 ac_cv_lib_dl_dlopen=yes
10948 else
10949 ac_cv_lib_dl_dlopen=no
10951 rm -f core conftest.err conftest.$ac_objext \
10952 conftest$ac_exeext conftest.$ac_ext
10953 LIBS=$ac_check_lib_save_LIBS
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10956 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10957 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10959 else
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10961 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10962 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-lsvld $LIBS"
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10970 /* Override any GCC internal prototype to avoid an error.
10971 Use char because int might match the return type of a GCC
10972 builtin and then its argument prototype would still apply. */
10973 #ifdef __cplusplus
10974 extern "C"
10975 #endif
10976 char dlopen ();
10978 main ()
10980 return dlopen ();
10982 return 0;
10984 _ACEOF
10985 if ac_fn_c_try_link "$LINENO"; then :
10986 ac_cv_lib_svld_dlopen=yes
10987 else
10988 ac_cv_lib_svld_dlopen=no
10990 rm -f core conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
10992 LIBS=$ac_check_lib_save_LIBS
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10995 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10996 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10998 else
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11000 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11001 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11002 $as_echo_n "(cached) " >&6
11003 else
11004 ac_check_lib_save_LIBS=$LIBS
11005 LIBS="-ldld $LIBS"
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11009 /* Override any GCC internal prototype to avoid an error.
11010 Use char because int might match the return type of a GCC
11011 builtin and then its argument prototype would still apply. */
11012 #ifdef __cplusplus
11013 extern "C"
11014 #endif
11015 char dld_link ();
11017 main ()
11019 return dld_link ();
11021 return 0;
11023 _ACEOF
11024 if ac_fn_c_try_link "$LINENO"; then :
11025 ac_cv_lib_dld_dld_link=yes
11026 else
11027 ac_cv_lib_dld_dld_link=no
11029 rm -f core conftest.err conftest.$ac_objext \
11030 conftest$ac_exeext conftest.$ac_ext
11031 LIBS=$ac_check_lib_save_LIBS
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11034 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11035 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11036 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11055 esac
11057 if test "x$lt_cv_dlopen" != xno; then
11058 enable_dlopen=yes
11059 else
11060 enable_dlopen=no
11063 case $lt_cv_dlopen in
11064 dlopen)
11065 save_CPPFLAGS="$CPPFLAGS"
11066 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11068 save_LDFLAGS="$LDFLAGS"
11069 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11071 save_LIBS="$LIBS"
11072 LIBS="$lt_cv_dlopen_libs $LIBS"
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11075 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11076 if test "${lt_cv_dlopen_self+set}" = set; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11079 if test "$cross_compiling" = yes; then :
11080 lt_cv_dlopen_self=cross
11081 else
11082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11083 lt_status=$lt_dlunknown
11084 cat > conftest.$ac_ext <<_LT_EOF
11085 #line 11085 "configure"
11086 #include "confdefs.h"
11088 #if HAVE_DLFCN_H
11089 #include <dlfcn.h>
11090 #endif
11092 #include <stdio.h>
11094 #ifdef RTLD_GLOBAL
11095 # define LT_DLGLOBAL RTLD_GLOBAL
11096 #else
11097 # ifdef DL_GLOBAL
11098 # define LT_DLGLOBAL DL_GLOBAL
11099 # else
11100 # define LT_DLGLOBAL 0
11101 # endif
11102 #endif
11104 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11105 find out it does not work in some platform. */
11106 #ifndef LT_DLLAZY_OR_NOW
11107 # ifdef RTLD_LAZY
11108 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11109 # else
11110 # ifdef DL_LAZY
11111 # define LT_DLLAZY_OR_NOW DL_LAZY
11112 # else
11113 # ifdef RTLD_NOW
11114 # define LT_DLLAZY_OR_NOW RTLD_NOW
11115 # else
11116 # ifdef DL_NOW
11117 # define LT_DLLAZY_OR_NOW DL_NOW
11118 # else
11119 # define LT_DLLAZY_OR_NOW 0
11120 # endif
11121 # endif
11122 # endif
11123 # endif
11124 #endif
11126 /* When -fvisbility=hidden is used, assume the code has been annotated
11127 correspondingly for the symbols needed. */
11128 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11129 void fnord () __attribute__((visibility("default")));
11130 #endif
11132 void fnord () { int i=42; }
11133 int main ()
11135 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11136 int status = $lt_dlunknown;
11138 if (self)
11140 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11141 else
11143 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11144 else puts (dlerror ());
11146 /* dlclose (self); */
11148 else
11149 puts (dlerror ());
11151 return status;
11153 _LT_EOF
11154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11155 (eval $ac_link) 2>&5
11156 ac_status=$?
11157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11158 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11159 (./conftest; exit; ) >&5 2>/dev/null
11160 lt_status=$?
11161 case x$lt_status in
11162 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11163 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11164 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11165 esac
11166 else :
11167 # compilation failed
11168 lt_cv_dlopen_self=no
11171 rm -fr conftest*
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11176 $as_echo "$lt_cv_dlopen_self" >&6; }
11178 if test "x$lt_cv_dlopen_self" = xyes; then
11179 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11181 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11182 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11183 $as_echo_n "(cached) " >&6
11184 else
11185 if test "$cross_compiling" = yes; then :
11186 lt_cv_dlopen_self_static=cross
11187 else
11188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11189 lt_status=$lt_dlunknown
11190 cat > conftest.$ac_ext <<_LT_EOF
11191 #line 11191 "configure"
11192 #include "confdefs.h"
11194 #if HAVE_DLFCN_H
11195 #include <dlfcn.h>
11196 #endif
11198 #include <stdio.h>
11200 #ifdef RTLD_GLOBAL
11201 # define LT_DLGLOBAL RTLD_GLOBAL
11202 #else
11203 # ifdef DL_GLOBAL
11204 # define LT_DLGLOBAL DL_GLOBAL
11205 # else
11206 # define LT_DLGLOBAL 0
11207 # endif
11208 #endif
11210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11211 find out it does not work in some platform. */
11212 #ifndef LT_DLLAZY_OR_NOW
11213 # ifdef RTLD_LAZY
11214 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11215 # else
11216 # ifdef DL_LAZY
11217 # define LT_DLLAZY_OR_NOW DL_LAZY
11218 # else
11219 # ifdef RTLD_NOW
11220 # define LT_DLLAZY_OR_NOW RTLD_NOW
11221 # else
11222 # ifdef DL_NOW
11223 # define LT_DLLAZY_OR_NOW DL_NOW
11224 # else
11225 # define LT_DLLAZY_OR_NOW 0
11226 # endif
11227 # endif
11228 # endif
11229 # endif
11230 #endif
11232 /* When -fvisbility=hidden is used, assume the code has been annotated
11233 correspondingly for the symbols needed. */
11234 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11235 void fnord () __attribute__((visibility("default")));
11236 #endif
11238 void fnord () { int i=42; }
11239 int main ()
11241 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11242 int status = $lt_dlunknown;
11244 if (self)
11246 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11247 else
11249 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11250 else puts (dlerror ());
11252 /* dlclose (self); */
11254 else
11255 puts (dlerror ());
11257 return status;
11259 _LT_EOF
11260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11261 (eval $ac_link) 2>&5
11262 ac_status=$?
11263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11264 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11265 (./conftest; exit; ) >&5 2>/dev/null
11266 lt_status=$?
11267 case x$lt_status in
11268 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11269 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11270 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11271 esac
11272 else :
11273 # compilation failed
11274 lt_cv_dlopen_self_static=no
11277 rm -fr conftest*
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11282 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11285 CPPFLAGS="$save_CPPFLAGS"
11286 LDFLAGS="$save_LDFLAGS"
11287 LIBS="$save_LIBS"
11289 esac
11291 case $lt_cv_dlopen_self in
11292 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11293 *) enable_dlopen_self=unknown ;;
11294 esac
11296 case $lt_cv_dlopen_self_static in
11297 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11298 *) enable_dlopen_self_static=unknown ;;
11299 esac
11318 striplib=
11319 old_striplib=
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11321 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11322 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11323 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11324 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11326 $as_echo "yes" >&6; }
11327 else
11328 # FIXME - insert some real tests, host_os isn't really good enough
11329 case $host_os in
11330 darwin*)
11331 if test -n "$STRIP" ; then
11332 striplib="$STRIP -x"
11333 old_striplib="$STRIP -S"
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11335 $as_echo "yes" >&6; }
11336 else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; }
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 $as_echo "no" >&6; }
11345 esac
11359 # Report which library types will actually be built
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11361 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11363 $as_echo "$can_build_shared" >&6; }
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11366 $as_echo_n "checking whether to build shared libraries... " >&6; }
11367 test "$can_build_shared" = "no" && enable_shared=no
11369 # On AIX, shared libraries and static libraries use the same namespace, and
11370 # are all built from PIC.
11371 case $host_os in
11372 aix3*)
11373 test "$enable_shared" = yes && enable_static=no
11374 if test -n "$RANLIB"; then
11375 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11376 postinstall_cmds='$RANLIB $lib'
11380 aix[4-9]*)
11381 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11382 test "$enable_shared" = yes && enable_static=no
11385 esac
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11387 $as_echo "$enable_shared" >&6; }
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11390 $as_echo_n "checking whether to build static libraries... " >&6; }
11391 # Make sure either enable_shared or enable_static is yes.
11392 test "$enable_shared" = yes || enable_static=yes
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11394 $as_echo "$enable_static" >&6; }
11400 ac_ext=c
11401 ac_cpp='$CPP $CPPFLAGS'
11402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11406 CC="$lt_save_CC"
11420 ac_config_commands="$ac_config_commands libtool"
11425 # Only expand once:
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11433 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11434 # Check whether --enable-maintainer-mode was given.
11435 if test "${enable_maintainer_mode+set}" = set; then :
11436 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11437 else
11438 USE_MAINTAINER_MODE=no
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11442 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11443 if test $USE_MAINTAINER_MODE = yes; then
11444 MAINTAINER_MODE_TRUE=
11445 MAINTAINER_MODE_FALSE='#'
11446 else
11447 MAINTAINER_MODE_TRUE='#'
11448 MAINTAINER_MODE_FALSE=
11451 MAINT=$MAINTAINER_MODE_TRUE
11455 # We need gfortran to compile parts of the library
11456 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11457 #AC_PROG_FC(gfortran)
11458 case `echo $GFORTRAN` in
11459 -* | no* )
11460 FC=no ;;
11462 if test -x "$GFORTRAN"; then
11463 FC="$GFORTRAN"
11464 else
11465 FC=no
11466 fi ;;
11467 esac
11468 ac_ext=${ac_fc_srcext-f}
11469 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11470 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11471 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11472 if test -n "$ac_tool_prefix"; then
11473 for ac_prog in gfortran
11475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11478 $as_echo_n "checking for $ac_word... " >&6; }
11479 if test "${ac_cv_prog_FC+set}" = set; then :
11480 $as_echo_n "(cached) " >&6
11481 else
11482 if test -n "$FC"; then
11483 ac_cv_prog_FC="$FC" # Let the user override the test.
11484 else
11485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486 for as_dir in $PATH
11488 IFS=$as_save_IFS
11489 test -z "$as_dir" && as_dir=.
11490 for ac_exec_ext in '' $ac_executable_extensions; do
11491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11492 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11494 break 2
11496 done
11497 done
11498 IFS=$as_save_IFS
11502 FC=$ac_cv_prog_FC
11503 if test -n "$FC"; then
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11505 $as_echo "$FC" >&6; }
11506 else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508 $as_echo "no" >&6; }
11512 test -n "$FC" && break
11513 done
11515 if test -z "$FC"; then
11516 ac_ct_FC=$FC
11517 for ac_prog in gfortran
11519 # Extract the first word of "$ac_prog", so it can be a program name with args.
11520 set dummy $ac_prog; ac_word=$2
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11522 $as_echo_n "checking for $ac_word... " >&6; }
11523 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11524 $as_echo_n "(cached) " >&6
11525 else
11526 if test -n "$ac_ct_FC"; then
11527 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11528 else
11529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530 for as_dir in $PATH
11532 IFS=$as_save_IFS
11533 test -z "$as_dir" && as_dir=.
11534 for ac_exec_ext in '' $ac_executable_extensions; do
11535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11536 ac_cv_prog_ac_ct_FC="$ac_prog"
11537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11538 break 2
11540 done
11541 done
11542 IFS=$as_save_IFS
11546 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11547 if test -n "$ac_ct_FC"; then
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11549 $as_echo "$ac_ct_FC" >&6; }
11550 else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552 $as_echo "no" >&6; }
11556 test -n "$ac_ct_FC" && break
11557 done
11559 if test "x$ac_ct_FC" = x; then
11560 FC=""
11561 else
11562 case $cross_compiling:$ac_tool_warned in
11563 yes:)
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11566 ac_tool_warned=yes ;;
11567 esac
11568 FC=$ac_ct_FC
11573 # Provide some information about the compiler.
11574 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11575 set X $ac_compile
11576 ac_compiler=$2
11577 for ac_option in --version -v -V -qversion; do
11578 { { ac_try="$ac_compiler $ac_option >&5"
11579 case "(($ac_try" in
11580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581 *) ac_try_echo=$ac_try;;
11582 esac
11583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11584 $as_echo "$ac_try_echo"; } >&5
11585 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11586 ac_status=$?
11587 if test -s conftest.err; then
11588 sed '10a\
11589 ... rest of stderr output deleted ...
11590 10q' conftest.err >conftest.er1
11591 cat conftest.er1 >&5
11592 rm -f conftest.er1 conftest.err
11594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11595 test $ac_status = 0; }
11596 done
11597 rm -f a.out
11599 # If we don't use `.F' as extension, the preprocessor is not run on the
11600 # input file. (Note that this only needs to work for GNU compilers.)
11601 ac_save_ext=$ac_ext
11602 ac_ext=F
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11604 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11605 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11606 $as_echo_n "(cached) " >&6
11607 else
11608 cat > conftest.$ac_ext <<_ACEOF
11609 program main
11610 #ifndef __GNUC__
11611 choke me
11612 #endif
11615 _ACEOF
11616 if ac_fn_fc_try_compile "$LINENO"; then :
11617 ac_compiler_gnu=yes
11618 else
11619 ac_compiler_gnu=no
11621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11622 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11626 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11627 ac_ext=$ac_save_ext
11628 ac_test_FCFLAGS=${FCFLAGS+set}
11629 ac_save_FCFLAGS=$FCFLAGS
11630 FCFLAGS=
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11632 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11633 if test "${ac_cv_prog_fc_g+set}" = set; then :
11634 $as_echo_n "(cached) " >&6
11635 else
11636 FCFLAGS=-g
11637 cat > conftest.$ac_ext <<_ACEOF
11638 program main
11641 _ACEOF
11642 if ac_fn_fc_try_compile "$LINENO"; then :
11643 ac_cv_prog_fc_g=yes
11644 else
11645 ac_cv_prog_fc_g=no
11647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11651 $as_echo "$ac_cv_prog_fc_g" >&6; }
11652 if test "$ac_test_FCFLAGS" = set; then
11653 FCFLAGS=$ac_save_FCFLAGS
11654 elif test $ac_cv_prog_fc_g = yes; then
11655 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11656 FCFLAGS="-g -O2"
11657 else
11658 FCFLAGS="-g"
11660 else
11661 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11662 FCFLAGS="-O2"
11663 else
11664 FCFLAGS=
11668 ac_ext=c
11669 ac_cpp='$CPP $CPPFLAGS'
11670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11674 ac_ext=${ac_fc_srcext-f}
11675 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11676 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11677 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11680 if test -z "$FC" || test "X$FC" = "Xno"; then
11681 _lt_disable_FC=yes
11684 archive_cmds_need_lc_FC=no
11685 allow_undefined_flag_FC=
11686 always_export_symbols_FC=no
11687 archive_expsym_cmds_FC=
11688 export_dynamic_flag_spec_FC=
11689 hardcode_direct_FC=no
11690 hardcode_direct_absolute_FC=no
11691 hardcode_libdir_flag_spec_FC=
11692 hardcode_libdir_flag_spec_ld_FC=
11693 hardcode_libdir_separator_FC=
11694 hardcode_minus_L_FC=no
11695 hardcode_automatic_FC=no
11696 inherit_rpath_FC=no
11697 module_cmds_FC=
11698 module_expsym_cmds_FC=
11699 link_all_deplibs_FC=unknown
11700 old_archive_cmds_FC=$old_archive_cmds
11701 reload_flag_FC=$reload_flag
11702 reload_cmds_FC=$reload_cmds
11703 no_undefined_flag_FC=
11704 whole_archive_flag_spec_FC=
11705 enable_shared_with_static_runtimes_FC=no
11707 # Source file extension for fc test sources.
11708 ac_ext=${ac_fc_srcext-f}
11710 # Object file extension for compiled fc test sources.
11711 objext=o
11712 objext_FC=$objext
11714 # No sense in running all these tests if we already determined that
11715 # the FC compiler isn't working. Some variables (like enable_shared)
11716 # are currently assumed to apply to all compilers on this platform,
11717 # and will be corrupted by setting them based on a non-working compiler.
11718 if test "$_lt_disable_FC" != yes; then
11719 # Code to be used in simple compile tests
11720 lt_simple_compile_test_code="\
11721 subroutine t
11722 return
11726 # Code to be used in simple link tests
11727 lt_simple_link_test_code="\
11728 program t
11732 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11739 # If no C compiler was specified, use CC.
11740 LTCC=${LTCC-"$CC"}
11742 # If no C compiler flags were specified, use CFLAGS.
11743 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11745 # Allow CC to be a program name with arguments.
11746 compiler=$CC
11749 # save warnings/boilerplate of simple test code
11750 ac_outfile=conftest.$ac_objext
11751 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11752 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11753 _lt_compiler_boilerplate=`cat conftest.err`
11754 $RM conftest*
11756 ac_outfile=conftest.$ac_objext
11757 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11758 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11759 _lt_linker_boilerplate=`cat conftest.err`
11760 $RM -r conftest*
11763 # Allow CC to be a program name with arguments.
11764 lt_save_CC="$CC"
11765 lt_save_GCC=$GCC
11766 CC=${FC-"f95"}
11767 compiler=$CC
11768 GCC=$ac_cv_fc_compiler_gnu
11770 compiler_FC=$CC
11771 for cc_temp in $compiler""; do
11772 case $cc_temp in
11773 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11774 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11775 \-*) ;;
11776 *) break;;
11777 esac
11778 done
11779 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11782 if test -n "$compiler"; then
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11784 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11786 $as_echo "$can_build_shared" >&6; }
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11789 $as_echo_n "checking whether to build shared libraries... " >&6; }
11790 test "$can_build_shared" = "no" && enable_shared=no
11792 # On AIX, shared libraries and static libraries use the same namespace, and
11793 # are all built from PIC.
11794 case $host_os in
11795 aix3*)
11796 test "$enable_shared" = yes && enable_static=no
11797 if test -n "$RANLIB"; then
11798 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11799 postinstall_cmds='$RANLIB $lib'
11802 aix[4-9]*)
11803 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11804 test "$enable_shared" = yes && enable_static=no
11807 esac
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11809 $as_echo "$enable_shared" >&6; }
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11812 $as_echo_n "checking whether to build static libraries... " >&6; }
11813 # Make sure either enable_shared or enable_static is yes.
11814 test "$enable_shared" = yes || enable_static=yes
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11816 $as_echo "$enable_static" >&6; }
11818 GCC_FC="$ac_cv_fc_compiler_gnu"
11819 LD_FC="$LD"
11821 ## CAVEAT EMPTOR:
11822 ## There is no encapsulation within the following macros, do not change
11823 ## the running order or otherwise move them around unless you know exactly
11824 ## what you are doing...
11825 # Dependencies to place before and after the object being linked:
11826 predep_objects_FC=
11827 postdep_objects_FC=
11828 predeps_FC=
11829 postdeps_FC=
11830 compiler_lib_search_path_FC=
11832 cat > conftest.$ac_ext <<_LT_EOF
11833 subroutine foo
11834 implicit none
11835 integer a
11837 return
11839 _LT_EOF
11841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11842 (eval $ac_compile) 2>&5
11843 ac_status=$?
11844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11845 test $ac_status = 0; }; then
11846 # Parse the compiler output and extract the necessary
11847 # objects, libraries and library flags.
11849 # Sentinel used to keep track of whether or not we are before
11850 # the conftest object file.
11851 pre_test_object_deps_done=no
11853 for p in `eval "$output_verbose_link_cmd"`; do
11854 case $p in
11856 -L* | -R* | -l*)
11857 # Some compilers place space between "-{L,R}" and the path.
11858 # Remove the space.
11859 if test $p = "-L" ||
11860 test $p = "-R"; then
11861 prev=$p
11862 continue
11863 else
11864 prev=
11867 if test "$pre_test_object_deps_done" = no; then
11868 case $p in
11869 -L* | -R*)
11870 # Internal compiler library paths should come after those
11871 # provided the user. The postdeps already come after the
11872 # user supplied libs so there is no need to process them.
11873 if test -z "$compiler_lib_search_path_FC"; then
11874 compiler_lib_search_path_FC="${prev}${p}"
11875 else
11876 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11879 # The "-l" case would never come before the object being
11880 # linked, so don't bother handling this case.
11881 esac
11882 else
11883 if test -z "$postdeps_FC"; then
11884 postdeps_FC="${prev}${p}"
11885 else
11886 postdeps_FC="${postdeps_FC} ${prev}${p}"
11891 *.$objext)
11892 # This assumes that the test object file only shows up
11893 # once in the compiler output.
11894 if test "$p" = "conftest.$objext"; then
11895 pre_test_object_deps_done=yes
11896 continue
11899 if test "$pre_test_object_deps_done" = no; then
11900 if test -z "$predep_objects_FC"; then
11901 predep_objects_FC="$p"
11902 else
11903 predep_objects_FC="$predep_objects_FC $p"
11905 else
11906 if test -z "$postdep_objects_FC"; then
11907 postdep_objects_FC="$p"
11908 else
11909 postdep_objects_FC="$postdep_objects_FC $p"
11914 *) ;; # Ignore the rest.
11916 esac
11917 done
11919 # Clean up.
11920 rm -f a.out a.exe
11921 else
11922 echo "libtool.m4: error: problem compiling FC test program"
11925 $RM -f confest.$objext
11927 # PORTME: override above test on systems where it is broken
11930 case " $postdeps_FC " in
11931 *" -lc "*) archive_cmds_need_lc_FC=no ;;
11932 esac
11933 compiler_lib_search_dirs_FC=
11934 if test -n "${compiler_lib_search_path_FC}"; then
11935 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11968 lt_prog_compiler_wl_FC=
11969 lt_prog_compiler_pic_FC=
11970 lt_prog_compiler_static_FC=
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11973 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11975 if test "$GCC" = yes; then
11976 lt_prog_compiler_wl_FC='-Wl,'
11977 lt_prog_compiler_static_FC='-static'
11979 case $host_os in
11980 aix*)
11981 # All AIX code is PIC.
11982 if test "$host_cpu" = ia64; then
11983 # AIX 5 now supports IA64 processor
11984 lt_prog_compiler_static_FC='-Bstatic'
11988 amigaos*)
11989 case $host_cpu in
11990 powerpc)
11991 # see comment about AmigaOS4 .so support
11992 lt_prog_compiler_pic_FC='-fPIC'
11994 m68k)
11995 # FIXME: we need at least 68020 code to build shared libraries, but
11996 # adding the `-m68020' flag to GCC prevents building anything better,
11997 # like `-m68040'.
11998 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12000 esac
12003 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12004 # PIC is the default for these OSes.
12007 mingw* | cygwin* | pw32* | os2* | cegcc*)
12008 # This hack is so that the source file can tell whether it is being
12009 # built for inclusion in a dll (and should export symbols for example).
12010 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12011 # (--disable-auto-import) libraries
12012 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12015 darwin* | rhapsody*)
12016 # PIC is the default on this platform
12017 # Common symbols not allowed in MH_DYLIB files
12018 lt_prog_compiler_pic_FC='-fno-common'
12021 haiku*)
12022 # PIC is the default for Haiku.
12023 # The "-static" flag exists, but is broken.
12024 lt_prog_compiler_static_FC=
12027 hpux*)
12028 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12029 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12030 # sets the default TLS model and affects inlining.
12031 case $host_cpu in
12032 hppa*64*)
12033 # +Z the default
12036 lt_prog_compiler_pic_FC='-fPIC'
12038 esac
12041 interix[3-9]*)
12042 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12043 # Instead, we relocate shared libraries at runtime.
12046 msdosdjgpp*)
12047 # Just because we use GCC doesn't mean we suddenly get shared libraries
12048 # on systems that don't support them.
12049 lt_prog_compiler_can_build_shared_FC=no
12050 enable_shared=no
12053 *nto* | *qnx*)
12054 # QNX uses GNU C++, but need to define -shared option too, otherwise
12055 # it will coredump.
12056 lt_prog_compiler_pic_FC='-fPIC -shared'
12059 sysv4*MP*)
12060 if test -d /usr/nec; then
12061 lt_prog_compiler_pic_FC=-Kconform_pic
12066 lt_prog_compiler_pic_FC='-fPIC'
12068 esac
12070 case $cc_basename in
12071 nvcc*) # Cuda Compiler Driver 2.2
12072 lt_prog_compiler_wl_FC='-Xlinker '
12073 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12075 esac
12076 else
12077 # PORTME Check for flag to pass linker flags through the system compiler.
12078 case $host_os in
12079 aix*)
12080 lt_prog_compiler_wl_FC='-Wl,'
12081 if test "$host_cpu" = ia64; then
12082 # AIX 5 now supports IA64 processor
12083 lt_prog_compiler_static_FC='-Bstatic'
12084 else
12085 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12089 mingw* | cygwin* | pw32* | os2* | cegcc*)
12090 # This hack is so that the source file can tell whether it is being
12091 # built for inclusion in a dll (and should export symbols for example).
12092 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12095 hpux9* | hpux10* | hpux11*)
12096 lt_prog_compiler_wl_FC='-Wl,'
12097 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12098 # not for PA HP-UX.
12099 case $host_cpu in
12100 hppa*64*|ia64*)
12101 # +Z the default
12104 lt_prog_compiler_pic_FC='+Z'
12106 esac
12107 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12108 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12111 irix5* | irix6* | nonstopux*)
12112 lt_prog_compiler_wl_FC='-Wl,'
12113 # PIC (with -KPIC) is the default.
12114 lt_prog_compiler_static_FC='-non_shared'
12117 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12118 case $cc_basename in
12119 # old Intel for x86_64 which still supported -KPIC.
12120 ecc*)
12121 lt_prog_compiler_wl_FC='-Wl,'
12122 lt_prog_compiler_pic_FC='-KPIC'
12123 lt_prog_compiler_static_FC='-static'
12125 # icc used to be incompatible with GCC.
12126 # ICC 10 doesn't accept -KPIC any more.
12127 icc* | ifort*)
12128 lt_prog_compiler_wl_FC='-Wl,'
12129 lt_prog_compiler_pic_FC='-fPIC'
12130 lt_prog_compiler_static_FC='-static'
12132 # Lahey Fortran 8.1.
12133 lf95*)
12134 lt_prog_compiler_wl_FC='-Wl,'
12135 lt_prog_compiler_pic_FC='--shared'
12136 lt_prog_compiler_static_FC='--static'
12138 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12139 # Portland Group compilers (*not* the Pentium gcc compiler,
12140 # which looks to be a dead project)
12141 lt_prog_compiler_wl_FC='-Wl,'
12142 lt_prog_compiler_pic_FC='-fpic'
12143 lt_prog_compiler_static_FC='-Bstatic'
12145 ccc*)
12146 lt_prog_compiler_wl_FC='-Wl,'
12147 # All Alpha code is PIC.
12148 lt_prog_compiler_static_FC='-non_shared'
12150 xl* | bgxl* | bgf* | mpixl*)
12151 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12152 lt_prog_compiler_wl_FC='-Wl,'
12153 lt_prog_compiler_pic_FC='-qpic'
12154 lt_prog_compiler_static_FC='-qstaticlink'
12157 case `$CC -V 2>&1 | sed 5q` in
12158 *Sun\ F* | *Sun*Fortran*)
12159 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12160 lt_prog_compiler_pic_FC='-KPIC'
12161 lt_prog_compiler_static_FC='-Bstatic'
12162 lt_prog_compiler_wl_FC=''
12164 *Sun\ C*)
12165 # Sun C 5.9
12166 lt_prog_compiler_pic_FC='-KPIC'
12167 lt_prog_compiler_static_FC='-Bstatic'
12168 lt_prog_compiler_wl_FC='-Wl,'
12170 esac
12172 esac
12175 newsos6)
12176 lt_prog_compiler_pic_FC='-KPIC'
12177 lt_prog_compiler_static_FC='-Bstatic'
12180 *nto* | *qnx*)
12181 # QNX uses GNU C++, but need to define -shared option too, otherwise
12182 # it will coredump.
12183 lt_prog_compiler_pic_FC='-fPIC -shared'
12186 osf3* | osf4* | osf5*)
12187 lt_prog_compiler_wl_FC='-Wl,'
12188 # All OSF/1 code is PIC.
12189 lt_prog_compiler_static_FC='-non_shared'
12192 rdos*)
12193 lt_prog_compiler_static_FC='-non_shared'
12196 solaris*)
12197 lt_prog_compiler_pic_FC='-KPIC'
12198 lt_prog_compiler_static_FC='-Bstatic'
12199 case $cc_basename in
12200 f77* | f90* | f95*)
12201 lt_prog_compiler_wl_FC='-Qoption ld ';;
12203 lt_prog_compiler_wl_FC='-Wl,';;
12204 esac
12207 sunos4*)
12208 lt_prog_compiler_wl_FC='-Qoption ld '
12209 lt_prog_compiler_pic_FC='-PIC'
12210 lt_prog_compiler_static_FC='-Bstatic'
12213 sysv4 | sysv4.2uw2* | sysv4.3*)
12214 lt_prog_compiler_wl_FC='-Wl,'
12215 lt_prog_compiler_pic_FC='-KPIC'
12216 lt_prog_compiler_static_FC='-Bstatic'
12219 sysv4*MP*)
12220 if test -d /usr/nec ;then
12221 lt_prog_compiler_pic_FC='-Kconform_pic'
12222 lt_prog_compiler_static_FC='-Bstatic'
12226 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12227 lt_prog_compiler_wl_FC='-Wl,'
12228 lt_prog_compiler_pic_FC='-KPIC'
12229 lt_prog_compiler_static_FC='-Bstatic'
12232 unicos*)
12233 lt_prog_compiler_wl_FC='-Wl,'
12234 lt_prog_compiler_can_build_shared_FC=no
12237 uts4*)
12238 lt_prog_compiler_pic_FC='-pic'
12239 lt_prog_compiler_static_FC='-Bstatic'
12243 lt_prog_compiler_can_build_shared_FC=no
12245 esac
12248 case $host_os in
12249 # For platforms which do not support PIC, -DPIC is meaningless:
12250 *djgpp*)
12251 lt_prog_compiler_pic_FC=
12254 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12256 esac
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12258 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12263 # Check to make sure the PIC flag actually works.
12265 if test -n "$lt_prog_compiler_pic_FC"; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12267 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12268 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12269 $as_echo_n "(cached) " >&6
12270 else
12271 lt_cv_prog_compiler_pic_works_FC=no
12272 ac_outfile=conftest.$ac_objext
12273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12274 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12275 # Insert the option either (1) after the last *FLAGS variable, or
12276 # (2) before a word containing "conftest.", or (3) at the end.
12277 # Note that $ac_compile itself does not contain backslashes and begins
12278 # with a dollar sign (not a hyphen), so the echo should work correctly.
12279 # The option is referenced via a variable to avoid confusing sed.
12280 lt_compile=`echo "$ac_compile" | $SED \
12281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12283 -e 's:$: $lt_compiler_flag:'`
12284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12285 (eval "$lt_compile" 2>conftest.err)
12286 ac_status=$?
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 if (exit $ac_status) && test -s "$ac_outfile"; then
12290 # The compiler can only warn and ignore the option if not recognized
12291 # So say no if there are warnings other than the usual output.
12292 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12294 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12295 lt_cv_prog_compiler_pic_works_FC=yes
12298 $RM conftest*
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12302 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12304 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12305 case $lt_prog_compiler_pic_FC in
12306 "" | " "*) ;;
12307 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12308 esac
12309 else
12310 lt_prog_compiler_pic_FC=
12311 lt_prog_compiler_can_build_shared_FC=no
12319 # Check to make sure the static flag actually works.
12321 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12323 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12324 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 lt_cv_prog_compiler_static_works_FC=no
12328 save_LDFLAGS="$LDFLAGS"
12329 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12330 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12331 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12332 # The linker can only warn and ignore the option if not recognized
12333 # So say no if there are warnings
12334 if test -s conftest.err; then
12335 # Append any errors to the config.log.
12336 cat conftest.err 1>&5
12337 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12339 if diff conftest.exp conftest.er2 >/dev/null; then
12340 lt_cv_prog_compiler_static_works_FC=yes
12342 else
12343 lt_cv_prog_compiler_static_works_FC=yes
12346 $RM -r conftest*
12347 LDFLAGS="$save_LDFLAGS"
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12351 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12353 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12355 else
12356 lt_prog_compiler_static_FC=
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12363 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12364 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12365 $as_echo_n "(cached) " >&6
12366 else
12367 lt_cv_prog_compiler_c_o_FC=no
12368 $RM -r conftest 2>/dev/null
12369 mkdir conftest
12370 cd conftest
12371 mkdir out
12372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12374 lt_compiler_flag="-o out/conftest2.$ac_objext"
12375 # Insert the option either (1) after the last *FLAGS variable, or
12376 # (2) before a word containing "conftest.", or (3) at the end.
12377 # Note that $ac_compile itself does not contain backslashes and begins
12378 # with a dollar sign (not a hyphen), so the echo should work correctly.
12379 lt_compile=`echo "$ac_compile" | $SED \
12380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12382 -e 's:$: $lt_compiler_flag:'`
12383 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12384 (eval "$lt_compile" 2>out/conftest.err)
12385 ac_status=$?
12386 cat out/conftest.err >&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12389 then
12390 # The compiler can only warn and ignore the option if not recognized
12391 # So say no if there are warnings
12392 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12393 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12394 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12395 lt_cv_prog_compiler_c_o_FC=yes
12398 chmod u+w . 2>&5
12399 $RM conftest*
12400 # SGI C++ compiler will create directory out/ii_files/ for
12401 # template instantiation
12402 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12403 $RM out/* && rmdir out
12404 cd ..
12405 $RM -r conftest
12406 $RM conftest*
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12410 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12415 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12416 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12417 $as_echo_n "(cached) " >&6
12418 else
12419 lt_cv_prog_compiler_c_o_FC=no
12420 $RM -r conftest 2>/dev/null
12421 mkdir conftest
12422 cd conftest
12423 mkdir out
12424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12426 lt_compiler_flag="-o out/conftest2.$ac_objext"
12427 # Insert the option either (1) after the last *FLAGS variable, or
12428 # (2) before a word containing "conftest.", or (3) at the end.
12429 # Note that $ac_compile itself does not contain backslashes and begins
12430 # with a dollar sign (not a hyphen), so the echo should work correctly.
12431 lt_compile=`echo "$ac_compile" | $SED \
12432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12434 -e 's:$: $lt_compiler_flag:'`
12435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12436 (eval "$lt_compile" 2>out/conftest.err)
12437 ac_status=$?
12438 cat out/conftest.err >&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12441 then
12442 # The compiler can only warn and ignore the option if not recognized
12443 # So say no if there are warnings
12444 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12445 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12446 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12447 lt_cv_prog_compiler_c_o_FC=yes
12450 chmod u+w . 2>&5
12451 $RM conftest*
12452 # SGI C++ compiler will create directory out/ii_files/ for
12453 # template instantiation
12454 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12455 $RM out/* && rmdir out
12456 cd ..
12457 $RM -r conftest
12458 $RM conftest*
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12462 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12467 hard_links="nottested"
12468 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12469 # do not overwrite the value of need_locks provided by the user
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12471 $as_echo_n "checking if we can lock with hard links... " >&6; }
12472 hard_links=yes
12473 $RM conftest*
12474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12475 touch conftest.a
12476 ln conftest.a conftest.b 2>&5 || hard_links=no
12477 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12479 $as_echo "$hard_links" >&6; }
12480 if test "$hard_links" = no; then
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12482 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12483 need_locks=warn
12485 else
12486 need_locks=no
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12492 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12494 runpath_var=
12495 allow_undefined_flag_FC=
12496 always_export_symbols_FC=no
12497 archive_cmds_FC=
12498 archive_expsym_cmds_FC=
12499 compiler_needs_object_FC=no
12500 enable_shared_with_static_runtimes_FC=no
12501 export_dynamic_flag_spec_FC=
12502 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12503 hardcode_automatic_FC=no
12504 hardcode_direct_FC=no
12505 hardcode_direct_absolute_FC=no
12506 hardcode_libdir_flag_spec_FC=
12507 hardcode_libdir_flag_spec_ld_FC=
12508 hardcode_libdir_separator_FC=
12509 hardcode_minus_L_FC=no
12510 hardcode_shlibpath_var_FC=unsupported
12511 inherit_rpath_FC=no
12512 link_all_deplibs_FC=unknown
12513 module_cmds_FC=
12514 module_expsym_cmds_FC=
12515 old_archive_from_new_cmds_FC=
12516 old_archive_from_expsyms_cmds_FC=
12517 thread_safe_flag_spec_FC=
12518 whole_archive_flag_spec_FC=
12519 # include_expsyms should be a list of space-separated symbols to be *always*
12520 # included in the symbol list
12521 include_expsyms_FC=
12522 # exclude_expsyms can be an extended regexp of symbols to exclude
12523 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12524 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12525 # as well as any symbol that contains `d'.
12526 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12527 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12528 # platforms (ab)use it in PIC code, but their linkers get confused if
12529 # the symbol is explicitly referenced. Since portable code cannot
12530 # rely on this symbol name, it's probably fine to never include it in
12531 # preloaded symbol tables.
12532 # Exclude shared library initialization/finalization symbols.
12533 extract_expsyms_cmds=
12535 case $host_os in
12536 cygwin* | mingw* | pw32* | cegcc*)
12537 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12538 # When not using gcc, we currently assume that we are using
12539 # Microsoft Visual C++.
12540 if test "$GCC" != yes; then
12541 with_gnu_ld=no
12544 interix*)
12545 # we just hope/assume this is gcc and not c89 (= MSVC++)
12546 with_gnu_ld=yes
12548 openbsd*)
12549 with_gnu_ld=no
12551 esac
12553 ld_shlibs_FC=yes
12555 # On some targets, GNU ld is compatible enough with the native linker
12556 # that we're better off using the native interface for both.
12557 lt_use_gnu_ld_interface=no
12558 if test "$with_gnu_ld" = yes; then
12559 case $host_os in
12560 aix*)
12561 # The AIX port of GNU ld has always aspired to compatibility
12562 # with the native linker. However, as the warning in the GNU ld
12563 # block says, versions before 2.19.5* couldn't really create working
12564 # shared libraries, regardless of the interface used.
12565 case `$LD -v 2>&1` in
12566 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12567 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12568 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12570 lt_use_gnu_ld_interface=yes
12572 esac
12575 lt_use_gnu_ld_interface=yes
12577 esac
12580 if test "$lt_use_gnu_ld_interface" = yes; then
12581 # If archive_cmds runs LD, not CC, wlarc should be empty
12582 wlarc='${wl}'
12584 # Set some defaults for GNU ld with shared library support. These
12585 # are reset later if shared libraries are not supported. Putting them
12586 # here allows them to be overridden if necessary.
12587 runpath_var=LD_RUN_PATH
12588 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12589 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12590 # ancient GNU ld didn't support --whole-archive et. al.
12591 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12592 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12593 else
12594 whole_archive_flag_spec_FC=
12596 supports_anon_versioning=no
12597 case `$LD -v 2>&1` in
12598 *GNU\ gold*) supports_anon_versioning=yes ;;
12599 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12600 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12601 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12602 *\ 2.11.*) ;; # other 2.11 versions
12603 *) supports_anon_versioning=yes ;;
12604 esac
12606 # See if GNU ld supports shared libraries.
12607 case $host_os in
12608 aix[3-9]*)
12609 # On AIX/PPC, the GNU linker is very broken
12610 if test "$host_cpu" != ia64; then
12611 ld_shlibs_FC=no
12612 cat <<_LT_EOF 1>&2
12614 *** Warning: the GNU linker, at least up to release 2.19, is reported
12615 *** to be unable to reliably create shared libraries on AIX.
12616 *** Therefore, libtool is disabling shared libraries support. If you
12617 *** really care for shared libraries, you may want to install binutils
12618 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12619 *** You will then need to restart the configuration process.
12621 _LT_EOF
12625 amigaos*)
12626 case $host_cpu in
12627 powerpc)
12628 # see comment about AmigaOS4 .so support
12629 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12630 archive_expsym_cmds_FC=''
12632 m68k)
12633 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)'
12634 hardcode_libdir_flag_spec_FC='-L$libdir'
12635 hardcode_minus_L_FC=yes
12637 esac
12640 beos*)
12641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12642 allow_undefined_flag_FC=unsupported
12643 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12644 # support --undefined. This deserves some investigation. FIXME
12645 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12646 else
12647 ld_shlibs_FC=no
12651 cygwin* | mingw* | pw32* | cegcc*)
12652 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12653 # as there is no search path for DLLs.
12654 hardcode_libdir_flag_spec_FC='-L$libdir'
12655 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12656 allow_undefined_flag_FC=unsupported
12657 always_export_symbols_FC=no
12658 enable_shared_with_static_runtimes_FC=yes
12659 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12661 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12662 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12663 # If the export-symbols file already is a .def file (1st line
12664 # is EXPORTS), use it as is; otherwise, prepend...
12665 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12666 cp $export_symbols $output_objdir/$soname.def;
12667 else
12668 echo EXPORTS > $output_objdir/$soname.def;
12669 cat $export_symbols >> $output_objdir/$soname.def;
12671 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12672 else
12673 ld_shlibs_FC=no
12677 haiku*)
12678 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12679 link_all_deplibs_FC=yes
12682 interix[3-9]*)
12683 hardcode_direct_FC=no
12684 hardcode_shlibpath_var_FC=no
12685 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12686 export_dynamic_flag_spec_FC='${wl}-E'
12687 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12688 # Instead, shared libraries are loaded at an image base (0x10000000 by
12689 # default) and relocated if they conflict, which is a slow very memory
12690 # consuming and fragmenting process. To avoid this, we pick a random,
12691 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12692 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12693 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'
12694 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'
12697 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12698 tmp_diet=no
12699 if test "$host_os" = linux-dietlibc; then
12700 case $cc_basename in
12701 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12702 esac
12704 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12705 && test "$tmp_diet" = no
12706 then
12707 tmp_addflag=
12708 tmp_sharedflag='-shared'
12709 case $cc_basename,$host_cpu in
12710 pgcc*) # Portland Group C compiler
12711 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'
12712 tmp_addflag=' $pic_flag'
12714 pgf77* | pgf90* | pgf95* | pgfortran*)
12715 # Portland Group f77 and f90 compilers
12716 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'
12717 tmp_addflag=' $pic_flag -Mnomain' ;;
12718 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12719 tmp_addflag=' -i_dynamic' ;;
12720 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12721 tmp_addflag=' -i_dynamic -nofor_main' ;;
12722 ifc* | ifort*) # Intel Fortran compiler
12723 tmp_addflag=' -nofor_main' ;;
12724 lf95*) # Lahey Fortran 8.1
12725 whole_archive_flag_spec_FC=
12726 tmp_sharedflag='--shared' ;;
12727 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12728 tmp_sharedflag='-qmkshrobj'
12729 tmp_addflag= ;;
12730 nvcc*) # Cuda Compiler Driver 2.2
12731 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'
12732 compiler_needs_object_FC=yes
12734 esac
12735 case `$CC -V 2>&1 | sed 5q` in
12736 *Sun\ C*) # Sun C 5.9
12737 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'
12738 compiler_needs_object_FC=yes
12739 tmp_sharedflag='-G' ;;
12740 *Sun\ F*) # Sun Fortran 8.3
12741 tmp_sharedflag='-G' ;;
12742 esac
12743 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12745 if test "x$supports_anon_versioning" = xyes; then
12746 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12747 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12748 echo "local: *; };" >> $output_objdir/$libname.ver~
12749 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12752 case $cc_basename in
12753 xlf* | bgf* | bgxlf* | mpixlf*)
12754 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12755 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12756 hardcode_libdir_flag_spec_FC=
12757 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12758 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12759 if test "x$supports_anon_versioning" = xyes; then
12760 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12761 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12762 echo "local: *; };" >> $output_objdir/$libname.ver~
12763 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12766 esac
12767 else
12768 ld_shlibs_FC=no
12772 netbsd*)
12773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12774 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12775 wlarc=
12776 else
12777 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12778 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12782 solaris*)
12783 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12784 ld_shlibs_FC=no
12785 cat <<_LT_EOF 1>&2
12787 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12788 *** create shared libraries on Solaris systems. Therefore, libtool
12789 *** is disabling shared libraries support. We urge you to upgrade GNU
12790 *** binutils to release 2.9.1 or newer. Another option is to modify
12791 *** your PATH or compiler configuration so that the native linker is
12792 *** used, and then restart.
12794 _LT_EOF
12795 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12796 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12797 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12798 else
12799 ld_shlibs_FC=no
12803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12804 case `$LD -v 2>&1` in
12805 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12806 ld_shlibs_FC=no
12807 cat <<_LT_EOF 1>&2
12809 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12810 *** reliably create shared libraries on SCO systems. Therefore, libtool
12811 *** is disabling shared libraries support. We urge you to upgrade GNU
12812 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12813 *** your PATH or compiler configuration so that the native linker is
12814 *** used, and then restart.
12816 _LT_EOF
12819 # For security reasons, it is highly recommended that you always
12820 # use absolute paths for naming shared libraries, and exclude the
12821 # DT_RUNPATH tag from executables and libraries. But doing so
12822 # requires that you compile everything twice, which is a pain.
12823 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12824 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12825 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12826 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12827 else
12828 ld_shlibs_FC=no
12831 esac
12834 sunos4*)
12835 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12836 wlarc=
12837 hardcode_direct_FC=yes
12838 hardcode_shlibpath_var_FC=no
12842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12843 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12844 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12845 else
12846 ld_shlibs_FC=no
12849 esac
12851 if test "$ld_shlibs_FC" = no; then
12852 runpath_var=
12853 hardcode_libdir_flag_spec_FC=
12854 export_dynamic_flag_spec_FC=
12855 whole_archive_flag_spec_FC=
12857 else
12858 # PORTME fill in a description of your system's linker (not GNU ld)
12859 case $host_os in
12860 aix3*)
12861 allow_undefined_flag_FC=unsupported
12862 always_export_symbols_FC=yes
12863 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'
12864 # Note: this linker hardcodes the directories in LIBPATH if there
12865 # are no directories specified by -L.
12866 hardcode_minus_L_FC=yes
12867 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12868 # Neither direct hardcoding nor static linking is supported with a
12869 # broken collect2.
12870 hardcode_direct_FC=unsupported
12874 aix[4-9]*)
12875 if test "$host_cpu" = ia64; then
12876 # On IA64, the linker does run time linking by default, so we don't
12877 # have to do anything special.
12878 aix_use_runtimelinking=no
12879 exp_sym_flag='-Bexport'
12880 no_entry_flag=""
12881 else
12882 # If we're using GNU nm, then we don't want the "-C" option.
12883 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12884 # Also, AIX nm treats weak defined symbols like other global
12885 # defined symbols, whereas GNU nm marks them as "W".
12886 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12887 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'
12888 else
12889 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'
12891 aix_use_runtimelinking=no
12893 # Test if we are trying to use run time linking or normal
12894 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12895 # need to do runtime linking.
12896 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12897 for ld_flag in $LDFLAGS; do
12898 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12899 aix_use_runtimelinking=yes
12900 break
12902 done
12904 esac
12906 exp_sym_flag='-bexport'
12907 no_entry_flag='-bnoentry'
12910 # When large executables or shared objects are built, AIX ld can
12911 # have problems creating the table of contents. If linking a library
12912 # or program results in "error TOC overflow" add -mminimal-toc to
12913 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12914 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12916 archive_cmds_FC=''
12917 hardcode_direct_FC=yes
12918 hardcode_direct_absolute_FC=yes
12919 hardcode_libdir_separator_FC=':'
12920 link_all_deplibs_FC=yes
12921 file_list_spec_FC='${wl}-f,'
12923 if test "$GCC" = yes; then
12924 case $host_os in aix4.[012]|aix4.[012].*)
12925 # We only want to do this on AIX 4.2 and lower, the check
12926 # below for broken collect2 doesn't work under 4.3+
12927 collect2name=`${CC} -print-prog-name=collect2`
12928 if test -f "$collect2name" &&
12929 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12930 then
12931 # We have reworked collect2
12933 else
12934 # We have old collect2
12935 hardcode_direct_FC=unsupported
12936 # It fails to find uninstalled libraries when the uninstalled
12937 # path is not listed in the libpath. Setting hardcode_minus_L
12938 # to unsupported forces relinking
12939 hardcode_minus_L_FC=yes
12940 hardcode_libdir_flag_spec_FC='-L$libdir'
12941 hardcode_libdir_separator_FC=
12944 esac
12945 shared_flag='-shared'
12946 if test "$aix_use_runtimelinking" = yes; then
12947 shared_flag="$shared_flag "'${wl}-G'
12949 else
12950 # not using gcc
12951 if test "$host_cpu" = ia64; then
12952 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12953 # chokes on -Wl,-G. The following line is correct:
12954 shared_flag='-G'
12955 else
12956 if test "$aix_use_runtimelinking" = yes; then
12957 shared_flag='${wl}-G'
12958 else
12959 shared_flag='${wl}-bM:SRE'
12964 export_dynamic_flag_spec_FC='${wl}-bexpall'
12965 # It seems that -bexpall does not export symbols beginning with
12966 # underscore (_), so it is better to generate a list of symbols to export.
12967 always_export_symbols_FC=yes
12968 if test "$aix_use_runtimelinking" = yes; then
12969 # Warning - without using the other runtime loading flags (-brtl),
12970 # -berok will link without error, but may produce a broken library.
12971 allow_undefined_flag_FC='-berok'
12972 # Determine the default libpath from the value encoded in an
12973 # empty executable.
12974 cat > conftest.$ac_ext <<_ACEOF
12975 program main
12978 _ACEOF
12979 if ac_fn_fc_try_link "$LINENO"; then :
12981 lt_aix_libpath_sed='
12982 /Import File Strings/,/^$/ {
12983 /^0/ {
12984 s/^0 *\(.*\)$/\1/
12988 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12989 # Check for a 64-bit object if we didn't find anything.
12990 if test -z "$aix_libpath"; then
12991 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12994 rm -f core conftest.err conftest.$ac_objext \
12995 conftest$ac_exeext conftest.$ac_ext
12996 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12998 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
12999 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"
13000 else
13001 if test "$host_cpu" = ia64; then
13002 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13003 allow_undefined_flag_FC="-z nodefs"
13004 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"
13005 else
13006 # Determine the default libpath from the value encoded in an
13007 # empty executable.
13008 cat > conftest.$ac_ext <<_ACEOF
13009 program main
13012 _ACEOF
13013 if ac_fn_fc_try_link "$LINENO"; then :
13015 lt_aix_libpath_sed='
13016 /Import File Strings/,/^$/ {
13017 /^0/ {
13018 s/^0 *\(.*\)$/\1/
13022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13023 # Check for a 64-bit object if we didn't find anything.
13024 if test -z "$aix_libpath"; then
13025 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13028 rm -f core conftest.err conftest.$ac_objext \
13029 conftest$ac_exeext conftest.$ac_ext
13030 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13032 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13033 # Warning - without using the other run time loading flags,
13034 # -berok will link without error, but may produce a broken library.
13035 no_undefined_flag_FC=' ${wl}-bernotok'
13036 allow_undefined_flag_FC=' ${wl}-berok'
13037 if test "$with_gnu_ld" = yes; then
13038 # We only use this code for GNU lds that support --whole-archive.
13039 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13040 else
13041 # Exported symbols can be pulled into shared objects from archives
13042 whole_archive_flag_spec_FC='$convenience'
13044 archive_cmds_need_lc_FC=yes
13045 # This is similar to how AIX traditionally builds its shared libraries.
13046 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'
13051 amigaos*)
13052 case $host_cpu in
13053 powerpc)
13054 # see comment about AmigaOS4 .so support
13055 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13056 archive_expsym_cmds_FC=''
13058 m68k)
13059 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)'
13060 hardcode_libdir_flag_spec_FC='-L$libdir'
13061 hardcode_minus_L_FC=yes
13063 esac
13066 bsdi[45]*)
13067 export_dynamic_flag_spec_FC=-rdynamic
13070 cygwin* | mingw* | pw32* | cegcc*)
13071 # When not using gcc, we currently assume that we are using
13072 # Microsoft Visual C++.
13073 # hardcode_libdir_flag_spec is actually meaningless, as there is
13074 # no search path for DLLs.
13075 hardcode_libdir_flag_spec_FC=' '
13076 allow_undefined_flag_FC=unsupported
13077 # Tell ltmain to make .lib files, not .a files.
13078 libext=lib
13079 # Tell ltmain to make .dll files, not .so files.
13080 shrext_cmds=".dll"
13081 # FIXME: Setting linknames here is a bad hack.
13082 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13083 # The linker will automatically build a .lib file if we build a DLL.
13084 old_archive_from_new_cmds_FC='true'
13085 # FIXME: Should let the user specify the lib program.
13086 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13087 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13088 enable_shared_with_static_runtimes_FC=yes
13091 darwin* | rhapsody*)
13094 archive_cmds_need_lc_FC=no
13095 hardcode_direct_FC=no
13096 hardcode_automatic_FC=yes
13097 hardcode_shlibpath_var_FC=unsupported
13098 if test "$lt_cv_ld_force_load" = "yes"; then
13099 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\"`'
13100 else
13101 whole_archive_flag_spec_FC=''
13103 link_all_deplibs_FC=yes
13104 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13105 case $cc_basename in
13106 ifort*) _lt_dar_can_shared=yes ;;
13107 *) _lt_dar_can_shared=$GCC ;;
13108 esac
13109 if test "$_lt_dar_can_shared" = "yes"; then
13110 output_verbose_link_cmd=func_echo_all
13111 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}"
13112 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13113 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}"
13114 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}"
13116 else
13117 ld_shlibs_FC=no
13122 dgux*)
13123 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13124 hardcode_libdir_flag_spec_FC='-L$libdir'
13125 hardcode_shlibpath_var_FC=no
13128 freebsd1*)
13129 ld_shlibs_FC=no
13132 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13133 # support. Future versions do this automatically, but an explicit c++rt0.o
13134 # does not break anything, and helps significantly (at the cost of a little
13135 # extra space).
13136 freebsd2.2*)
13137 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13138 hardcode_libdir_flag_spec_FC='-R$libdir'
13139 hardcode_direct_FC=yes
13140 hardcode_shlibpath_var_FC=no
13143 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13144 freebsd2*)
13145 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13146 hardcode_direct_FC=yes
13147 hardcode_minus_L_FC=yes
13148 hardcode_shlibpath_var_FC=no
13151 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13152 freebsd* | dragonfly*)
13153 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13154 hardcode_libdir_flag_spec_FC='-R$libdir'
13155 hardcode_direct_FC=yes
13156 hardcode_shlibpath_var_FC=no
13159 hpux9*)
13160 if test "$GCC" = yes; then
13161 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'
13162 else
13163 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'
13165 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13166 hardcode_libdir_separator_FC=:
13167 hardcode_direct_FC=yes
13169 # hardcode_minus_L: Not really in the search PATH,
13170 # but as the default location of the library.
13171 hardcode_minus_L_FC=yes
13172 export_dynamic_flag_spec_FC='${wl}-E'
13175 hpux10*)
13176 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13177 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13178 else
13179 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13181 if test "$with_gnu_ld" = no; then
13182 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13183 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13184 hardcode_libdir_separator_FC=:
13185 hardcode_direct_FC=yes
13186 hardcode_direct_absolute_FC=yes
13187 export_dynamic_flag_spec_FC='${wl}-E'
13188 # hardcode_minus_L: Not really in the search PATH,
13189 # but as the default location of the library.
13190 hardcode_minus_L_FC=yes
13194 hpux11*)
13195 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13196 case $host_cpu in
13197 hppa*64*)
13198 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13200 ia64*)
13201 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13204 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13206 esac
13207 else
13208 case $host_cpu in
13209 hppa*64*)
13210 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13212 ia64*)
13213 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13216 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13218 esac
13220 if test "$with_gnu_ld" = no; then
13221 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13222 hardcode_libdir_separator_FC=:
13224 case $host_cpu in
13225 hppa*64*|ia64*)
13226 hardcode_direct_FC=no
13227 hardcode_shlibpath_var_FC=no
13230 hardcode_direct_FC=yes
13231 hardcode_direct_absolute_FC=yes
13232 export_dynamic_flag_spec_FC='${wl}-E'
13234 # hardcode_minus_L: Not really in the search PATH,
13235 # but as the default location of the library.
13236 hardcode_minus_L_FC=yes
13238 esac
13242 irix5* | irix6* | nonstopux*)
13243 if test "$GCC" = yes; then
13244 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'
13245 # Try to use the -exported_symbol ld option, if it does not
13246 # work, assume that -exports_file does not work either and
13247 # implicitly export all symbols.
13248 save_LDFLAGS="$LDFLAGS"
13249 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13250 cat > conftest.$ac_ext <<_ACEOF
13251 int foo(void) {}
13252 _ACEOF
13253 if ac_fn_fc_try_link "$LINENO"; then :
13254 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'
13257 rm -f core conftest.err conftest.$ac_objext \
13258 conftest$ac_exeext conftest.$ac_ext
13259 LDFLAGS="$save_LDFLAGS"
13260 else
13261 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'
13262 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'
13264 archive_cmds_need_lc_FC='no'
13265 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13266 hardcode_libdir_separator_FC=:
13267 inherit_rpath_FC=yes
13268 link_all_deplibs_FC=yes
13271 netbsd*)
13272 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13273 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13274 else
13275 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13277 hardcode_libdir_flag_spec_FC='-R$libdir'
13278 hardcode_direct_FC=yes
13279 hardcode_shlibpath_var_FC=no
13282 newsos6)
13283 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13284 hardcode_direct_FC=yes
13285 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13286 hardcode_libdir_separator_FC=:
13287 hardcode_shlibpath_var_FC=no
13290 *nto* | *qnx*)
13293 openbsd*)
13294 if test -f /usr/libexec/ld.so; then
13295 hardcode_direct_FC=yes
13296 hardcode_shlibpath_var_FC=no
13297 hardcode_direct_absolute_FC=yes
13298 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13299 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13300 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13301 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13302 export_dynamic_flag_spec_FC='${wl}-E'
13303 else
13304 case $host_os in
13305 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13306 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13307 hardcode_libdir_flag_spec_FC='-R$libdir'
13310 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13311 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13313 esac
13315 else
13316 ld_shlibs_FC=no
13320 os2*)
13321 hardcode_libdir_flag_spec_FC='-L$libdir'
13322 hardcode_minus_L_FC=yes
13323 allow_undefined_flag_FC=unsupported
13324 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'
13325 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13328 osf3*)
13329 if test "$GCC" = yes; then
13330 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13331 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'
13332 else
13333 allow_undefined_flag_FC=' -expect_unresolved \*'
13334 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'
13336 archive_cmds_need_lc_FC='no'
13337 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13338 hardcode_libdir_separator_FC=:
13341 osf4* | osf5*) # as osf3* with the addition of -msym flag
13342 if test "$GCC" = yes; then
13343 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13344 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'
13345 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13346 else
13347 allow_undefined_flag_FC=' -expect_unresolved \*'
13348 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'
13349 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~
13350 $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'
13352 # Both c and cxx compiler support -rpath directly
13353 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13355 archive_cmds_need_lc_FC='no'
13356 hardcode_libdir_separator_FC=:
13359 solaris*)
13360 no_undefined_flag_FC=' -z defs'
13361 if test "$GCC" = yes; then
13362 wlarc='${wl}'
13363 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13364 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13365 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13366 else
13367 case `$CC -V 2>&1` in
13368 *"Compilers 5.0"*)
13369 wlarc=''
13370 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13371 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13372 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13375 wlarc='${wl}'
13376 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13377 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13378 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13380 esac
13382 hardcode_libdir_flag_spec_FC='-R$libdir'
13383 hardcode_shlibpath_var_FC=no
13384 case $host_os in
13385 solaris2.[0-5] | solaris2.[0-5].*) ;;
13387 # The compiler driver will combine and reorder linker options,
13388 # but understands `-z linker_flag'. GCC discards it without `$wl',
13389 # but is careful enough not to reorder.
13390 # Supported since Solaris 2.6 (maybe 2.5.1?)
13391 if test "$GCC" = yes; then
13392 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13393 else
13394 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13397 esac
13398 link_all_deplibs_FC=yes
13401 sunos4*)
13402 if test "x$host_vendor" = xsequent; then
13403 # Use $CC to link under sequent, because it throws in some extra .o
13404 # files that make .init and .fini sections work.
13405 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13406 else
13407 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13409 hardcode_libdir_flag_spec_FC='-L$libdir'
13410 hardcode_direct_FC=yes
13411 hardcode_minus_L_FC=yes
13412 hardcode_shlibpath_var_FC=no
13415 sysv4)
13416 case $host_vendor in
13417 sni)
13418 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13419 hardcode_direct_FC=yes # is this really true???
13421 siemens)
13422 ## LD is ld it makes a PLAMLIB
13423 ## CC just makes a GrossModule.
13424 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13425 reload_cmds_FC='$CC -r -o $output$reload_objs'
13426 hardcode_direct_FC=no
13428 motorola)
13429 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13430 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13432 esac
13433 runpath_var='LD_RUN_PATH'
13434 hardcode_shlibpath_var_FC=no
13437 sysv4.3*)
13438 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13439 hardcode_shlibpath_var_FC=no
13440 export_dynamic_flag_spec_FC='-Bexport'
13443 sysv4*MP*)
13444 if test -d /usr/nec; then
13445 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13446 hardcode_shlibpath_var_FC=no
13447 runpath_var=LD_RUN_PATH
13448 hardcode_runpath_var=yes
13449 ld_shlibs_FC=yes
13453 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13454 no_undefined_flag_FC='${wl}-z,text'
13455 archive_cmds_need_lc_FC=no
13456 hardcode_shlibpath_var_FC=no
13457 runpath_var='LD_RUN_PATH'
13459 if test "$GCC" = yes; then
13460 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13461 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13462 else
13463 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13464 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13468 sysv5* | sco3.2v5* | sco5v6*)
13469 # Note: We can NOT use -z defs as we might desire, because we do not
13470 # link with -lc, and that would cause any symbols used from libc to
13471 # always be unresolved, which means just about no library would
13472 # ever link correctly. If we're not using GNU ld we use -z text
13473 # though, which does catch some bad symbols but isn't as heavy-handed
13474 # as -z defs.
13475 no_undefined_flag_FC='${wl}-z,text'
13476 allow_undefined_flag_FC='${wl}-z,nodefs'
13477 archive_cmds_need_lc_FC=no
13478 hardcode_shlibpath_var_FC=no
13479 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13480 hardcode_libdir_separator_FC=':'
13481 link_all_deplibs_FC=yes
13482 export_dynamic_flag_spec_FC='${wl}-Bexport'
13483 runpath_var='LD_RUN_PATH'
13485 if test "$GCC" = yes; then
13486 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13487 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13488 else
13489 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13490 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13494 uts4*)
13495 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13496 hardcode_libdir_flag_spec_FC='-L$libdir'
13497 hardcode_shlibpath_var_FC=no
13501 ld_shlibs_FC=no
13503 esac
13505 if test x$host_vendor = xsni; then
13506 case $host in
13507 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13508 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13510 esac
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13515 $as_echo "$ld_shlibs_FC" >&6; }
13516 test "$ld_shlibs_FC" = no && can_build_shared=no
13518 with_gnu_ld_FC=$with_gnu_ld
13526 # Do we need to explicitly link libc?
13528 case "x$archive_cmds_need_lc_FC" in
13529 x|xyes)
13530 # Assume -lc should be added
13531 archive_cmds_need_lc_FC=yes
13533 if test "$enable_shared" = yes && test "$GCC" = yes; then
13534 case $archive_cmds_FC in
13535 *'~'*)
13536 # FIXME: we may have to deal with multi-command sequences.
13538 '$CC '*)
13539 # Test whether the compiler implicitly links with -lc since on some
13540 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13541 # to ld, don't add -lc before -lgcc.
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13543 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13544 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13545 $as_echo_n "(cached) " >&6
13546 else
13547 $RM conftest*
13548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13551 (eval $ac_compile) 2>&5
13552 ac_status=$?
13553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13554 test $ac_status = 0; } 2>conftest.err; then
13555 soname=conftest
13556 lib=conftest
13557 libobjs=conftest.$ac_objext
13558 deplibs=
13559 wl=$lt_prog_compiler_wl_FC
13560 pic_flag=$lt_prog_compiler_pic_FC
13561 compiler_flags=-v
13562 linker_flags=-v
13563 verstring=
13564 output_objdir=.
13565 libname=conftest
13566 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13567 allow_undefined_flag_FC=
13568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13569 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13570 ac_status=$?
13571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13572 test $ac_status = 0; }
13573 then
13574 lt_cv_archive_cmds_need_lc_FC=no
13575 else
13576 lt_cv_archive_cmds_need_lc_FC=yes
13578 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13579 else
13580 cat conftest.err 1>&5
13582 $RM conftest*
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13586 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13587 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13589 esac
13592 esac
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13658 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13660 library_names_spec=
13661 libname_spec='lib$name'
13662 soname_spec=
13663 shrext_cmds=".so"
13664 postinstall_cmds=
13665 postuninstall_cmds=
13666 finish_cmds=
13667 finish_eval=
13668 shlibpath_var=
13669 shlibpath_overrides_runpath=unknown
13670 version_type=none
13671 dynamic_linker="$host_os ld.so"
13672 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13673 need_lib_prefix=unknown
13674 hardcode_into_libs=no
13676 # when you set need_version to no, make sure it does not cause -set_version
13677 # flags to be left without arguments
13678 need_version=unknown
13680 case $host_os in
13681 aix3*)
13682 version_type=linux
13683 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13684 shlibpath_var=LIBPATH
13686 # AIX 3 has no versioning support, so we append a major version to the name.
13687 soname_spec='${libname}${release}${shared_ext}$major'
13690 aix[4-9]*)
13691 version_type=linux
13692 need_lib_prefix=no
13693 need_version=no
13694 hardcode_into_libs=yes
13695 if test "$host_cpu" = ia64; then
13696 # AIX 5 supports IA64
13697 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13698 shlibpath_var=LD_LIBRARY_PATH
13699 else
13700 # With GCC up to 2.95.x, collect2 would create an import file
13701 # for dependence libraries. The import file would start with
13702 # the line `#! .'. This would cause the generated library to
13703 # depend on `.', always an invalid library. This was fixed in
13704 # development snapshots of GCC prior to 3.0.
13705 case $host_os in
13706 aix4 | aix4.[01] | aix4.[01].*)
13707 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13708 echo ' yes '
13709 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13711 else
13712 can_build_shared=no
13715 esac
13716 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13717 # soname into executable. Probably we can add versioning support to
13718 # collect2, so additional links can be useful in future.
13719 if test "$aix_use_runtimelinking" = yes; then
13720 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13721 # instead of lib<name>.a to let people know that these are not
13722 # typical AIX shared libraries.
13723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13724 else
13725 # We preserve .a as extension for shared libraries through AIX4.2
13726 # and later when we are not doing run time linking.
13727 library_names_spec='${libname}${release}.a $libname.a'
13728 soname_spec='${libname}${release}${shared_ext}$major'
13730 shlibpath_var=LIBPATH
13734 amigaos*)
13735 case $host_cpu in
13736 powerpc)
13737 # Since July 2007 AmigaOS4 officially supports .so libraries.
13738 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13741 m68k)
13742 library_names_spec='$libname.ixlibrary $libname.a'
13743 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13744 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'
13746 esac
13749 beos*)
13750 library_names_spec='${libname}${shared_ext}'
13751 dynamic_linker="$host_os ld.so"
13752 shlibpath_var=LIBRARY_PATH
13755 bsdi[45]*)
13756 version_type=linux
13757 need_version=no
13758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13759 soname_spec='${libname}${release}${shared_ext}$major'
13760 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13761 shlibpath_var=LD_LIBRARY_PATH
13762 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13763 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13764 # the default ld.so.conf also contains /usr/contrib/lib and
13765 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13766 # libtool to hard-code these into programs
13769 cygwin* | mingw* | pw32* | cegcc*)
13770 version_type=windows
13771 shrext_cmds=".dll"
13772 need_version=no
13773 need_lib_prefix=no
13775 case $GCC,$host_os in
13776 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13777 library_names_spec='$libname.dll.a'
13778 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13779 postinstall_cmds='base_file=`basename \${file}`~
13780 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13781 dldir=$destdir/`dirname \$dlpath`~
13782 test -d \$dldir || mkdir -p \$dldir~
13783 $install_prog $dir/$dlname \$dldir/$dlname~
13784 chmod a+x \$dldir/$dlname~
13785 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13786 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13788 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13789 dlpath=$dir/\$dldll~
13790 $RM \$dlpath'
13791 shlibpath_overrides_runpath=yes
13793 case $host_os in
13794 cygwin*)
13795 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13796 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13799 mingw* | cegcc*)
13800 # MinGW DLLs use traditional 'lib' prefix
13801 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13803 pw32*)
13804 # pw32 DLLs use 'pw' prefix rather than 'lib'
13805 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13807 esac
13811 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13813 esac
13814 dynamic_linker='Win32 ld.exe'
13815 # FIXME: first we should search . and the directory the executable is in
13816 shlibpath_var=PATH
13819 darwin* | rhapsody*)
13820 dynamic_linker="$host_os dyld"
13821 version_type=darwin
13822 need_lib_prefix=no
13823 need_version=no
13824 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13825 soname_spec='${libname}${release}${major}$shared_ext'
13826 shlibpath_overrides_runpath=yes
13827 shlibpath_var=DYLD_LIBRARY_PATH
13828 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13833 dgux*)
13834 version_type=linux
13835 need_lib_prefix=no
13836 need_version=no
13837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13838 soname_spec='${libname}${release}${shared_ext}$major'
13839 shlibpath_var=LD_LIBRARY_PATH
13842 freebsd1*)
13843 dynamic_linker=no
13846 freebsd* | dragonfly*)
13847 # DragonFly does not have aout. When/if they implement a new
13848 # versioning mechanism, adjust this.
13849 if test -x /usr/bin/objformat; then
13850 objformat=`/usr/bin/objformat`
13851 else
13852 case $host_os in
13853 freebsd[123]*) objformat=aout ;;
13854 *) objformat=elf ;;
13855 esac
13857 version_type=freebsd-$objformat
13858 case $version_type in
13859 freebsd-elf*)
13860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13861 need_version=no
13862 need_lib_prefix=no
13864 freebsd-*)
13865 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13866 need_version=yes
13868 esac
13869 shlibpath_var=LD_LIBRARY_PATH
13870 case $host_os in
13871 freebsd2*)
13872 shlibpath_overrides_runpath=yes
13874 freebsd3.[01]* | freebsdelf3.[01]*)
13875 shlibpath_overrides_runpath=yes
13876 hardcode_into_libs=yes
13878 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13879 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13880 shlibpath_overrides_runpath=no
13881 hardcode_into_libs=yes
13883 *) # from 4.6 on, and DragonFly
13884 shlibpath_overrides_runpath=yes
13885 hardcode_into_libs=yes
13887 esac
13890 gnu*)
13891 version_type=linux
13892 need_lib_prefix=no
13893 need_version=no
13894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13895 soname_spec='${libname}${release}${shared_ext}$major'
13896 shlibpath_var=LD_LIBRARY_PATH
13897 hardcode_into_libs=yes
13900 haiku*)
13901 version_type=linux
13902 need_lib_prefix=no
13903 need_version=no
13904 dynamic_linker="$host_os runtime_loader"
13905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13906 soname_spec='${libname}${release}${shared_ext}$major'
13907 shlibpath_var=LIBRARY_PATH
13908 shlibpath_overrides_runpath=yes
13909 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13910 hardcode_into_libs=yes
13913 hpux9* | hpux10* | hpux11*)
13914 # Give a soname corresponding to the major version so that dld.sl refuses to
13915 # link against other versions.
13916 version_type=sunos
13917 need_lib_prefix=no
13918 need_version=no
13919 case $host_cpu in
13920 ia64*)
13921 shrext_cmds='.so'
13922 hardcode_into_libs=yes
13923 dynamic_linker="$host_os dld.so"
13924 shlibpath_var=LD_LIBRARY_PATH
13925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13927 soname_spec='${libname}${release}${shared_ext}$major'
13928 if test "X$HPUX_IA64_MODE" = X32; then
13929 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13930 else
13931 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13935 hppa*64*)
13936 shrext_cmds='.sl'
13937 hardcode_into_libs=yes
13938 dynamic_linker="$host_os dld.sl"
13939 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13942 soname_spec='${libname}${release}${shared_ext}$major'
13943 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13947 shrext_cmds='.sl'
13948 dynamic_linker="$host_os dld.sl"
13949 shlibpath_var=SHLIB_PATH
13950 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13952 soname_spec='${libname}${release}${shared_ext}$major'
13954 esac
13955 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13956 postinstall_cmds='chmod 555 $lib'
13957 # or fails outright, so override atomically:
13958 install_override_mode=555
13961 interix[3-9]*)
13962 version_type=linux
13963 need_lib_prefix=no
13964 need_version=no
13965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13966 soname_spec='${libname}${release}${shared_ext}$major'
13967 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13968 shlibpath_var=LD_LIBRARY_PATH
13969 shlibpath_overrides_runpath=no
13970 hardcode_into_libs=yes
13973 irix5* | irix6* | nonstopux*)
13974 case $host_os in
13975 nonstopux*) version_type=nonstopux ;;
13977 if test "$lt_cv_prog_gnu_ld" = yes; then
13978 version_type=linux
13979 else
13980 version_type=irix
13981 fi ;;
13982 esac
13983 need_lib_prefix=no
13984 need_version=no
13985 soname_spec='${libname}${release}${shared_ext}$major'
13986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13987 case $host_os in
13988 irix5* | nonstopux*)
13989 libsuff= shlibsuff=
13992 case $LD in # libtool.m4 will add one of these switches to LD
13993 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13994 libsuff= shlibsuff= libmagic=32-bit;;
13995 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13996 libsuff=32 shlibsuff=N32 libmagic=N32;;
13997 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13998 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13999 *) libsuff= shlibsuff= libmagic=never-match;;
14000 esac
14002 esac
14003 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14004 shlibpath_overrides_runpath=no
14005 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14006 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14007 hardcode_into_libs=yes
14010 # No shared lib support for Linux oldld, aout, or coff.
14011 linux*oldld* | linux*aout* | linux*coff*)
14012 dynamic_linker=no
14015 # This must be Linux ELF.
14016 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14017 version_type=linux
14018 need_lib_prefix=no
14019 need_version=no
14020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14021 soname_spec='${libname}${release}${shared_ext}$major'
14022 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14023 shlibpath_var=LD_LIBRARY_PATH
14024 shlibpath_overrides_runpath=no
14026 # Some binutils ld are patched to set DT_RUNPATH
14027 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14028 $as_echo_n "(cached) " >&6
14029 else
14030 lt_cv_shlibpath_overrides_runpath=no
14031 save_LDFLAGS=$LDFLAGS
14032 save_libdir=$libdir
14033 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14034 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14035 cat > conftest.$ac_ext <<_ACEOF
14036 program main
14039 _ACEOF
14040 if ac_fn_fc_try_link "$LINENO"; then :
14041 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14042 lt_cv_shlibpath_overrides_runpath=yes
14045 rm -f core conftest.err conftest.$ac_objext \
14046 conftest$ac_exeext conftest.$ac_ext
14047 LDFLAGS=$save_LDFLAGS
14048 libdir=$save_libdir
14052 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14054 # This implies no fast_install, which is unacceptable.
14055 # Some rework will be needed to allow for fast_install
14056 # before this can be enabled.
14057 hardcode_into_libs=yes
14059 # Append ld.so.conf contents to the search path
14060 if test -f /etc/ld.so.conf; then
14061 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' ' '`
14062 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14065 # We used to test for /lib/ld.so.1 and disable shared libraries on
14066 # powerpc, because MkLinux only supported shared libraries with the
14067 # GNU dynamic linker. Since this was broken with cross compilers,
14068 # most powerpc-linux boxes support dynamic linking these days and
14069 # people can always --disable-shared, the test was removed, and we
14070 # assume the GNU/Linux dynamic linker is in use.
14071 dynamic_linker='GNU/Linux ld.so'
14074 netbsd*)
14075 version_type=sunos
14076 need_lib_prefix=no
14077 need_version=no
14078 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14081 dynamic_linker='NetBSD (a.out) ld.so'
14082 else
14083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14084 soname_spec='${libname}${release}${shared_ext}$major'
14085 dynamic_linker='NetBSD ld.elf_so'
14087 shlibpath_var=LD_LIBRARY_PATH
14088 shlibpath_overrides_runpath=yes
14089 hardcode_into_libs=yes
14092 newsos6)
14093 version_type=linux
14094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14095 shlibpath_var=LD_LIBRARY_PATH
14096 shlibpath_overrides_runpath=yes
14099 *nto* | *qnx*)
14100 version_type=qnx
14101 need_lib_prefix=no
14102 need_version=no
14103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14104 soname_spec='${libname}${release}${shared_ext}$major'
14105 shlibpath_var=LD_LIBRARY_PATH
14106 shlibpath_overrides_runpath=no
14107 hardcode_into_libs=yes
14108 dynamic_linker='ldqnx.so'
14111 openbsd*)
14112 version_type=sunos
14113 sys_lib_dlsearch_path_spec="/usr/lib"
14114 need_lib_prefix=no
14115 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14116 case $host_os in
14117 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14118 *) need_version=no ;;
14119 esac
14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14122 shlibpath_var=LD_LIBRARY_PATH
14123 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14124 case $host_os in
14125 openbsd2.[89] | openbsd2.[89].*)
14126 shlibpath_overrides_runpath=no
14129 shlibpath_overrides_runpath=yes
14131 esac
14132 else
14133 shlibpath_overrides_runpath=yes
14137 os2*)
14138 libname_spec='$name'
14139 shrext_cmds=".dll"
14140 need_lib_prefix=no
14141 library_names_spec='$libname${shared_ext} $libname.a'
14142 dynamic_linker='OS/2 ld.exe'
14143 shlibpath_var=LIBPATH
14146 osf3* | osf4* | osf5*)
14147 version_type=osf
14148 need_lib_prefix=no
14149 need_version=no
14150 soname_spec='${libname}${release}${shared_ext}$major'
14151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14152 shlibpath_var=LD_LIBRARY_PATH
14153 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14154 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14157 rdos*)
14158 dynamic_linker=no
14161 solaris*)
14162 version_type=linux
14163 need_lib_prefix=no
14164 need_version=no
14165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14166 soname_spec='${libname}${release}${shared_ext}$major'
14167 shlibpath_var=LD_LIBRARY_PATH
14168 shlibpath_overrides_runpath=yes
14169 hardcode_into_libs=yes
14170 # ldd complains unless libraries are executable
14171 postinstall_cmds='chmod +x $lib'
14174 sunos4*)
14175 version_type=sunos
14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14177 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14178 shlibpath_var=LD_LIBRARY_PATH
14179 shlibpath_overrides_runpath=yes
14180 if test "$with_gnu_ld" = yes; then
14181 need_lib_prefix=no
14183 need_version=yes
14186 sysv4 | sysv4.3*)
14187 version_type=linux
14188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14189 soname_spec='${libname}${release}${shared_ext}$major'
14190 shlibpath_var=LD_LIBRARY_PATH
14191 case $host_vendor in
14192 sni)
14193 shlibpath_overrides_runpath=no
14194 need_lib_prefix=no
14195 runpath_var=LD_RUN_PATH
14197 siemens)
14198 need_lib_prefix=no
14200 motorola)
14201 need_lib_prefix=no
14202 need_version=no
14203 shlibpath_overrides_runpath=no
14204 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14206 esac
14209 sysv4*MP*)
14210 if test -d /usr/nec ;then
14211 version_type=linux
14212 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14213 soname_spec='$libname${shared_ext}.$major'
14214 shlibpath_var=LD_LIBRARY_PATH
14218 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14219 version_type=freebsd-elf
14220 need_lib_prefix=no
14221 need_version=no
14222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14223 soname_spec='${libname}${release}${shared_ext}$major'
14224 shlibpath_var=LD_LIBRARY_PATH
14225 shlibpath_overrides_runpath=yes
14226 hardcode_into_libs=yes
14227 if test "$with_gnu_ld" = yes; then
14228 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14229 else
14230 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14231 case $host_os in
14232 sco3.2v5*)
14233 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14235 esac
14237 sys_lib_dlsearch_path_spec='/usr/lib'
14240 tpf*)
14241 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14242 version_type=linux
14243 need_lib_prefix=no
14244 need_version=no
14245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14246 shlibpath_var=LD_LIBRARY_PATH
14247 shlibpath_overrides_runpath=no
14248 hardcode_into_libs=yes
14251 uts4*)
14252 version_type=linux
14253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14254 soname_spec='${libname}${release}${shared_ext}$major'
14255 shlibpath_var=LD_LIBRARY_PATH
14259 dynamic_linker=no
14261 esac
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14263 $as_echo "$dynamic_linker" >&6; }
14264 test "$dynamic_linker" = no && can_build_shared=no
14266 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14267 if test "$GCC" = yes; then
14268 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14271 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14272 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14274 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14275 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14316 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14317 hardcode_action_FC=
14318 if test -n "$hardcode_libdir_flag_spec_FC" ||
14319 test -n "$runpath_var_FC" ||
14320 test "X$hardcode_automatic_FC" = "Xyes" ; then
14322 # We can hardcode non-existent directories.
14323 if test "$hardcode_direct_FC" != no &&
14324 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14325 # have to relink, otherwise we might link with an installed library
14326 # when we should be linking with a yet-to-be-installed one
14327 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14328 test "$hardcode_minus_L_FC" != no; then
14329 # Linking always hardcodes the temporary library directory.
14330 hardcode_action_FC=relink
14331 else
14332 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14333 hardcode_action_FC=immediate
14335 else
14336 # We cannot hardcode anything, or else we can only hardcode existing
14337 # directories.
14338 hardcode_action_FC=unsupported
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14341 $as_echo "$hardcode_action_FC" >&6; }
14343 if test "$hardcode_action_FC" = relink ||
14344 test "$inherit_rpath_FC" = yes; then
14345 # Fast installation is not supported
14346 enable_fast_install=no
14347 elif test "$shlibpath_overrides_runpath" = yes ||
14348 test "$enable_shared" = no; then
14349 # Fast installation is not necessary
14350 enable_fast_install=needless
14359 fi # test -n "$compiler"
14361 GCC=$lt_save_GCC
14362 CC="$lt_save_CC"
14363 fi # test "$_lt_disable_FC" != yes
14365 ac_ext=c
14366 ac_cpp='$CPP $CPPFLAGS'
14367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14372 FCFLAGS="$FCFLAGS -Wall"
14374 # For libtool versioning info, format is CURRENT:REVISION:AGE
14375 libtool_VERSION=1:0:0
14378 # Check header files.
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14380 $as_echo_n "checking for ANSI C header files... " >&6; }
14381 if test "${ac_cv_header_stdc+set}" = set; then :
14382 $as_echo_n "(cached) " >&6
14383 else
14384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h. */
14386 #include <stdlib.h>
14387 #include <stdarg.h>
14388 #include <string.h>
14389 #include <float.h>
14392 main ()
14396 return 0;
14398 _ACEOF
14399 if ac_fn_c_try_compile "$LINENO"; then :
14400 ac_cv_header_stdc=yes
14401 else
14402 ac_cv_header_stdc=no
14404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14406 if test $ac_cv_header_stdc = yes; then
14407 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409 /* end confdefs.h. */
14410 #include <string.h>
14412 _ACEOF
14413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14414 $EGREP "memchr" >/dev/null 2>&1; then :
14416 else
14417 ac_cv_header_stdc=no
14419 rm -f conftest*
14423 if test $ac_cv_header_stdc = yes; then
14424 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426 /* end confdefs.h. */
14427 #include <stdlib.h>
14429 _ACEOF
14430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14431 $EGREP "free" >/dev/null 2>&1; then :
14433 else
14434 ac_cv_header_stdc=no
14436 rm -f conftest*
14440 if test $ac_cv_header_stdc = yes; then
14441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14442 if test "$cross_compiling" = yes; then :
14444 else
14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446 /* end confdefs.h. */
14447 #include <ctype.h>
14448 #include <stdlib.h>
14449 #if ((' ' & 0x0FF) == 0x020)
14450 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14451 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14452 #else
14453 # define ISLOWER(c) \
14454 (('a' <= (c) && (c) <= 'i') \
14455 || ('j' <= (c) && (c) <= 'r') \
14456 || ('s' <= (c) && (c) <= 'z'))
14457 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14458 #endif
14460 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14462 main ()
14464 int i;
14465 for (i = 0; i < 256; i++)
14466 if (XOR (islower (i), ISLOWER (i))
14467 || toupper (i) != TOUPPER (i))
14468 return 2;
14469 return 0;
14471 _ACEOF
14472 if ac_fn_c_try_run "$LINENO"; then :
14474 else
14475 ac_cv_header_stdc=no
14477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14478 conftest.$ac_objext conftest.beam conftest.$ac_ext
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14484 $as_echo "$ac_cv_header_stdc" >&6; }
14485 if test $ac_cv_header_stdc = yes; then
14487 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14492 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14493 if test "${ac_cv_header_time+set}" = set; then :
14494 $as_echo_n "(cached) " >&6
14495 else
14496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14498 #include <sys/types.h>
14499 #include <sys/time.h>
14500 #include <time.h>
14503 main ()
14505 if ((struct tm *) 0)
14506 return 0;
14508 return 0;
14510 _ACEOF
14511 if ac_fn_c_try_compile "$LINENO"; then :
14512 ac_cv_header_time=yes
14513 else
14514 ac_cv_header_time=no
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14519 $as_echo "$ac_cv_header_time" >&6; }
14520 if test $ac_cv_header_time = yes; then
14522 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14527 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14528 if test "${gcc_cv_header_string+set}" = set; then :
14529 $as_echo_n "(cached) " >&6
14530 else
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14533 #include <string.h>
14534 #include <strings.h>
14536 main ()
14540 return 0;
14542 _ACEOF
14543 if ac_fn_c_try_compile "$LINENO"; then :
14544 gcc_cv_header_string=yes
14545 else
14546 gcc_cv_header_string=no
14548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14551 $as_echo "$gcc_cv_header_string" >&6; }
14552 if test $gcc_cv_header_string = yes; then
14554 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14558 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
14559 do :
14560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14561 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14562 eval as_val=\$$as_ac_Header
14563 if test "x$as_val" = x""yes; then :
14564 cat >>confdefs.h <<_ACEOF
14565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14566 _ACEOF
14570 done
14575 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14577 acx_cv_header_stdint=stddef.h
14578 acx_cv_header_stdint_kind="(already complete)"
14579 for i in stdint.h $inttype_headers; do
14580 unset ac_cv_type_uintptr_t
14581 unset ac_cv_type_uintmax_t
14582 unset ac_cv_type_int_least32_t
14583 unset ac_cv_type_int_fast32_t
14584 unset ac_cv_type_uint64_t
14585 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14586 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14587 #include <$i>
14589 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14590 acx_cv_header_stdint=$i
14591 else
14592 continue
14595 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14596 #include <$i>
14598 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14600 else
14601 acx_cv_header_stdint_kind="(mostly complete)"
14604 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14605 #include <$i>
14607 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14609 else
14610 acx_cv_header_stdint_kind="(mostly complete)"
14613 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14614 #include <$i>
14616 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14618 else
14619 acx_cv_header_stdint_kind="(mostly complete)"
14622 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14623 #include <$i>
14625 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14627 else
14628 acx_cv_header_stdint_kind="(lacks uint64_t)"
14631 break
14632 done
14633 if test "$acx_cv_header_stdint" = stddef.h; then
14634 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14635 for i in stdint.h $inttype_headers; do
14636 unset ac_cv_type_uintptr_t
14637 unset ac_cv_type_uint32_t
14638 unset ac_cv_type_uint64_t
14639 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14640 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14641 #include <$i>
14643 if test "x$ac_cv_type_uint32_t" = x""yes; then :
14644 acx_cv_header_stdint=$i
14645 else
14646 continue
14649 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14650 #include <$i>
14652 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14656 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14657 #include <$i>
14659 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14663 break
14664 done
14666 if test "$acx_cv_header_stdint" = stddef.h; then
14667 acx_cv_header_stdint_kind="(u_intXX_t style)"
14668 for i in sys/types.h $inttype_headers; do
14669 unset ac_cv_type_u_int32_t
14670 unset ac_cv_type_u_int64_t
14671 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14672 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14673 #include <$i>
14675 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14676 acx_cv_header_stdint=$i
14677 else
14678 continue
14681 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14682 #include <$i>
14684 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14688 break
14689 done
14691 if test "$acx_cv_header_stdint" = stddef.h; then
14692 acx_cv_header_stdint_kind="(using manual detection)"
14695 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14696 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14697 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14698 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14699 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14701 # ----------------- Summarize what we found so far
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14704 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14706 case `$as_basename -- gstdint.h ||
14707 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14708 Xgstdint.h : 'X\(//\)$' \| \
14709 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14710 $as_echo X/gstdint.h |
14711 sed '/^.*\/\([^/][^/]*\)\/*$/{
14712 s//\1/
14715 /^X\/\(\/\/\)$/{
14716 s//\1/
14719 /^X\/\(\/\).*/{
14720 s//\1/
14723 s/.*/./; q'` in
14724 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14725 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14726 inttypes.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 *) ;;
14729 esac
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14732 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14734 # ----------------- done included file, check C basic types --------
14736 # Lacking an uintptr_t? Test size of void *
14737 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14738 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14739 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14740 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14741 # This bug is HP SR number 8606223364.
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14743 $as_echo_n "checking size of void *... " >&6; }
14744 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14745 $as_echo_n "(cached) " >&6
14746 else
14747 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14749 else
14750 if test "$ac_cv_type_void_p" = yes; then
14751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14753 { as_fn_set_status 77
14754 as_fn_error "cannot compute sizeof (void *)
14755 See \`config.log' for more details." "$LINENO" 5; }; }
14756 else
14757 ac_cv_sizeof_void_p=0
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14763 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14767 cat >>confdefs.h <<_ACEOF
14768 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14769 _ACEOF
14772 esac
14774 # Lacking an uint64_t? Test size of long
14775 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14776 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14777 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14778 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14779 # This bug is HP SR number 8606223364.
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14781 $as_echo_n "checking size of long... " >&6; }
14782 if test "${ac_cv_sizeof_long+set}" = set; then :
14783 $as_echo_n "(cached) " >&6
14784 else
14785 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14787 else
14788 if test "$ac_cv_type_long" = yes; then
14789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14791 { as_fn_set_status 77
14792 as_fn_error "cannot compute sizeof (long)
14793 See \`config.log' for more details." "$LINENO" 5; }; }
14794 else
14795 ac_cv_sizeof_long=0
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14801 $as_echo "$ac_cv_sizeof_long" >&6; }
14805 cat >>confdefs.h <<_ACEOF
14806 #define SIZEOF_LONG $ac_cv_sizeof_long
14807 _ACEOF
14810 esac
14812 if test $acx_cv_header_stdint = stddef.h; then
14813 # Lacking a good header? Test size of everything and deduce all types.
14814 # The cast to long int works around a bug in the HP C Compiler
14815 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14816 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14817 # This bug is HP SR number 8606223364.
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14819 $as_echo_n "checking size of int... " >&6; }
14820 if test "${ac_cv_sizeof_int+set}" = set; then :
14821 $as_echo_n "(cached) " >&6
14822 else
14823 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14825 else
14826 if test "$ac_cv_type_int" = yes; then
14827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14829 { as_fn_set_status 77
14830 as_fn_error "cannot compute sizeof (int)
14831 See \`config.log' for more details." "$LINENO" 5; }; }
14832 else
14833 ac_cv_sizeof_int=0
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14839 $as_echo "$ac_cv_sizeof_int" >&6; }
14843 cat >>confdefs.h <<_ACEOF
14844 #define SIZEOF_INT $ac_cv_sizeof_int
14845 _ACEOF
14848 # The cast to long int works around a bug in the HP C Compiler
14849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14851 # This bug is HP SR number 8606223364.
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14853 $as_echo_n "checking size of short... " >&6; }
14854 if test "${ac_cv_sizeof_short+set}" = set; then :
14855 $as_echo_n "(cached) " >&6
14856 else
14857 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14859 else
14860 if test "$ac_cv_type_short" = yes; then
14861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14863 { as_fn_set_status 77
14864 as_fn_error "cannot compute sizeof (short)
14865 See \`config.log' for more details." "$LINENO" 5; }; }
14866 else
14867 ac_cv_sizeof_short=0
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14873 $as_echo "$ac_cv_sizeof_short" >&6; }
14877 cat >>confdefs.h <<_ACEOF
14878 #define SIZEOF_SHORT $ac_cv_sizeof_short
14879 _ACEOF
14882 # The cast to long int works around a bug in the HP C Compiler
14883 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14884 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14885 # This bug is HP SR number 8606223364.
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14887 $as_echo_n "checking size of char... " >&6; }
14888 if test "${ac_cv_sizeof_char+set}" = set; then :
14889 $as_echo_n "(cached) " >&6
14890 else
14891 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14893 else
14894 if test "$ac_cv_type_char" = yes; then
14895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14897 { as_fn_set_status 77
14898 as_fn_error "cannot compute sizeof (char)
14899 See \`config.log' for more details." "$LINENO" 5; }; }
14900 else
14901 ac_cv_sizeof_char=0
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14907 $as_echo "$ac_cv_sizeof_char" >&6; }
14911 cat >>confdefs.h <<_ACEOF
14912 #define SIZEOF_CHAR $ac_cv_sizeof_char
14913 _ACEOF
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
14918 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
14919 case "$ac_cv_sizeof_char" in
14920 1) acx_cv_type_int8_t=char ;;
14921 *) { as_fn_set_status please report a bug
14922 as_fn_error "no 8-bit type" "$LINENO" 5; }
14923 esac
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
14925 $as_echo "$acx_cv_type_int8_t" >&6; }
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
14928 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
14929 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14930 2:*) acx_cv_type_int16_t=int ;;
14931 *:2) acx_cv_type_int16_t=short ;;
14932 *) { as_fn_set_status please report a bug
14933 as_fn_error "no 16-bit type" "$LINENO" 5; }
14934 esac
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
14936 $as_echo "$acx_cv_type_int16_t" >&6; }
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
14939 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
14940 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14941 4:*) acx_cv_type_int32_t=int ;;
14942 *:4) acx_cv_type_int32_t=long ;;
14943 *) { as_fn_set_status please report a bug
14944 as_fn_error "no 32-bit type" "$LINENO" 5; }
14945 esac
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
14947 $as_echo "$acx_cv_type_int32_t" >&6; }
14950 # These tests are here to make the output prettier
14952 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14953 case "$ac_cv_sizeof_long" in
14954 8) acx_cv_type_int64_t=long ;;
14955 esac
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
14957 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14959 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
14962 # Now we can use the above types
14964 if test "$ac_cv_type_uintptr_t" != yes; then
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
14966 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
14967 case $ac_cv_sizeof_void_p in
14968 2) acx_cv_type_intptr_t=int16_t ;;
14969 4) acx_cv_type_intptr_t=int32_t ;;
14970 8) acx_cv_type_intptr_t=int64_t ;;
14971 *) { as_fn_set_status please report a bug
14972 as_fn_error "no equivalent for intptr_t" "$LINENO" 5; }
14973 esac
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
14975 $as_echo "$acx_cv_type_intptr_t" >&6; }
14978 # ----------------- done all checks, emit header -------------
14979 ac_config_commands="$ac_config_commands gstdint.h"
14984 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14985 # In case the pthread.h system header is not found, this test will fail.
14986 XPCFLAGS=""
14987 CFLAGS="$CFLAGS -pthread"
14988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14989 /* end confdefs.h. */
14990 #include <pthread.h>
14991 void *g(void *d) { return NULL; }
14993 main ()
14995 pthread_t t; pthread_create(&t,NULL,g,NULL);
14997 return 0;
14999 _ACEOF
15000 if ac_fn_c_try_link "$LINENO"; then :
15001 XPCFLAGS=" -Wc,-pthread"
15002 else
15003 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15005 /* end confdefs.h. */
15006 #include <pthread.h>
15007 void *g(void *d) { return NULL; }
15009 main ()
15011 pthread_t t; pthread_create(&t,NULL,g,NULL);
15013 return 0;
15015 _ACEOF
15016 if ac_fn_c_try_link "$LINENO"; then :
15018 else
15019 as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15021 rm -f core conftest.err conftest.$ac_objext \
15022 conftest$ac_exeext conftest.$ac_ext
15024 rm -f core conftest.err conftest.$ac_objext \
15025 conftest$ac_exeext conftest.$ac_ext
15027 # Check for functions needed.
15028 for ac_func in getloadavg clock_gettime strtoull
15029 do :
15030 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15031 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15032 eval as_val=\$$as_ac_var
15033 if test "x$as_val" = x""yes; then :
15034 cat >>confdefs.h <<_ACEOF
15035 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15036 _ACEOF
15039 done
15042 # Check for broken semaphore implementation on darwin.
15043 # sem_init returns: sem_init error: Function not implemented.
15044 case "$host" in
15045 *-darwin*)
15047 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15050 esac
15052 # Check whether --enable-linux-futex was given.
15053 if test "${enable_linux_futex+set}" = set; then :
15054 enableval=$enable_linux_futex;
15055 case "$enableval" in
15056 yes|no|default) ;;
15057 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15058 esac
15060 else
15061 enable_linux_futex=default
15065 case "$target" in
15066 *-linux*)
15067 case "$enable_linux_futex" in
15068 default)
15069 # If headers don't have gettid/futex syscalls definition, then
15070 # default to no, otherwise there will be compile time failures.
15071 # Otherwise, default to yes. If we don't detect we are
15072 # compiled/linked against NPTL and not cross-compiling, check
15073 # if programs are run by default against NPTL and if not, issue
15074 # a warning.
15075 enable_linux_futex=no
15076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15077 /* end confdefs.h. */
15078 #include <sys/syscall.h>
15079 int lk;
15081 main ()
15083 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15085 return 0;
15087 _ACEOF
15088 if ac_fn_c_try_link "$LINENO"; then :
15089 save_LIBS="$LIBS"
15090 LIBS="-lpthread $LIBS"
15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h. */
15093 #ifndef _GNU_SOURCE
15094 #define _GNU_SOURCE 1
15095 #endif
15096 #include <pthread.h>
15097 pthread_t th; void *status;
15099 main ()
15101 pthread_tryjoin_np (th, &status);
15103 return 0;
15105 _ACEOF
15106 if ac_fn_c_try_link "$LINENO"; then :
15107 enable_linux_futex=yes
15108 else
15109 if test x$cross_compiling = xno; then
15110 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15111 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15113 If so, please configure with --disable-linux-futex" >&5
15114 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15115 If so, please configure with --disable-linux-futex" >&2;}
15118 enable_linux_futex=yes
15120 rm -f core conftest.err conftest.$ac_objext \
15121 conftest$ac_exeext conftest.$ac_ext
15122 LIBS="$save_LIBS"
15124 rm -f core conftest.err conftest.$ac_objext \
15125 conftest$ac_exeext conftest.$ac_ext
15127 yes)
15128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129 /* end confdefs.h. */
15130 #include <sys/syscall.h>
15131 int lk;
15133 main ()
15135 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15137 return 0;
15139 _ACEOF
15140 if ac_fn_c_try_link "$LINENO"; then :
15142 else
15143 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15145 rm -f core conftest.err conftest.$ac_objext \
15146 conftest$ac_exeext conftest.$ac_ext
15148 esac
15151 enable_linux_futex=no
15153 esac
15154 if test x$enable_linux_futex = xyes; then
15159 # Check for pthread_{,attr_}[sg]etaffinity_np.
15160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h. */
15162 #define _GNU_SOURCE
15163 #include <pthread.h>
15165 main ()
15167 cpu_set_t cpuset;
15168 pthread_attr_t attr;
15169 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15170 if (CPU_ISSET (0, &cpuset))
15171 CPU_SET (1, &cpuset);
15172 else
15173 CPU_ZERO (&cpuset);
15174 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15175 pthread_attr_init (&attr);
15176 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15177 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15179 return 0;
15181 _ACEOF
15182 if ac_fn_c_try_link "$LINENO"; then :
15184 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15187 rm -f core conftest.err conftest.$ac_objext \
15188 conftest$ac_exeext conftest.$ac_ext
15190 # At least for glibc, clock_gettime is in librt. But don't pull that
15191 # in if it still doesn't give us the function we want.
15192 if test $ac_cv_func_clock_gettime = no; then
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15194 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15195 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15196 $as_echo_n "(cached) " >&6
15197 else
15198 ac_check_lib_save_LIBS=$LIBS
15199 LIBS="-lrt $LIBS"
15200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h. */
15203 /* Override any GCC internal prototype to avoid an error.
15204 Use char because int might match the return type of a GCC
15205 builtin and then its argument prototype would still apply. */
15206 #ifdef __cplusplus
15207 extern "C"
15208 #endif
15209 char clock_gettime ();
15211 main ()
15213 return clock_gettime ();
15215 return 0;
15217 _ACEOF
15218 if ac_fn_c_try_link "$LINENO"; then :
15219 ac_cv_lib_rt_clock_gettime=yes
15220 else
15221 ac_cv_lib_rt_clock_gettime=no
15223 rm -f core conftest.err conftest.$ac_objext \
15224 conftest$ac_exeext conftest.$ac_ext
15225 LIBS=$ac_check_lib_save_LIBS
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15228 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15229 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15230 LIBS="-lrt $LIBS"
15232 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15238 # See if we support thread-local storage.
15241 # Check whether --enable-tls was given.
15242 if test "${enable_tls+set}" = set; then :
15243 enableval=$enable_tls;
15244 case "$enableval" in
15245 yes|no) ;;
15246 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15247 esac
15249 else
15250 enable_tls=yes
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15255 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15256 if test "${gcc_cv_have_tls+set}" = set; then :
15257 $as_echo_n "(cached) " >&6
15258 else
15260 if test "$cross_compiling" = yes; then :
15261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262 /* end confdefs.h. */
15263 __thread int a; int b; int main() { return a = b; }
15264 _ACEOF
15265 if ac_fn_c_try_link "$LINENO"; then :
15266 chktls_save_LDFLAGS="$LDFLAGS"
15267 case $host in
15268 *-*-linux*)
15269 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15271 esac
15272 chktls_save_CFLAGS="$CFLAGS"
15273 CFLAGS="-fPIC $CFLAGS"
15274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15276 int f() { return 0; }
15277 _ACEOF
15278 if ac_fn_c_try_link "$LINENO"; then :
15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280 /* end confdefs.h. */
15281 __thread int a; int b; int f() { return a = b; }
15282 _ACEOF
15283 if ac_fn_c_try_link "$LINENO"; then :
15284 gcc_cv_have_tls=yes
15285 else
15286 gcc_cv_have_tls=no
15288 rm -f core conftest.err conftest.$ac_objext \
15289 conftest$ac_exeext conftest.$ac_ext
15290 else
15291 gcc_cv_have_tls=yes
15293 rm -f core conftest.err conftest.$ac_objext \
15294 conftest$ac_exeext conftest.$ac_ext
15295 CFLAGS="$chktls_save_CFLAGS"
15296 LDFLAGS="$chktls_save_LDFLAGS"
15297 else
15298 gcc_cv_have_tls=no
15300 rm -f core conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15304 else
15305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306 /* end confdefs.h. */
15307 __thread int a; int b; int main() { return a = b; }
15308 _ACEOF
15309 if ac_fn_c_try_run "$LINENO"; then :
15310 chktls_save_LDFLAGS="$LDFLAGS"
15311 LDFLAGS="-static $LDFLAGS"
15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h. */
15314 int main() { return 0; }
15315 _ACEOF
15316 if ac_fn_c_try_link "$LINENO"; then :
15317 if test "$cross_compiling" = yes; then :
15318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15320 as_fn_error "cannot run test program while cross compiling
15321 See \`config.log' for more details." "$LINENO" 5; }
15322 else
15323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15324 /* end confdefs.h. */
15325 __thread int a; int b; int main() { return a = b; }
15326 _ACEOF
15327 if ac_fn_c_try_run "$LINENO"; then :
15328 gcc_cv_have_tls=yes
15329 else
15330 gcc_cv_have_tls=no
15332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15333 conftest.$ac_objext conftest.beam conftest.$ac_ext
15336 else
15337 gcc_cv_have_tls=yes
15339 rm -f core conftest.err conftest.$ac_objext \
15340 conftest$ac_exeext conftest.$ac_ext
15341 LDFLAGS="$chktls_save_LDFLAGS"
15342 if test $gcc_cv_have_tls = yes; then
15343 chktls_save_CFLAGS="$CFLAGS"
15344 thread_CFLAGS=failed
15345 for flag in '' '-pthread' '-lpthread'; do
15346 CFLAGS="$flag $chktls_save_CFLAGS"
15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h. */
15349 #include <pthread.h>
15350 void *g(void *d) { return NULL; }
15352 main ()
15354 pthread_t t; pthread_create(&t,NULL,g,NULL);
15356 return 0;
15358 _ACEOF
15359 if ac_fn_c_try_link "$LINENO"; then :
15360 thread_CFLAGS="$flag"
15362 rm -f core conftest.err conftest.$ac_objext \
15363 conftest$ac_exeext conftest.$ac_ext
15364 if test "X$thread_CFLAGS" != Xfailed; then
15365 break
15367 done
15368 CFLAGS="$chktls_save_CFLAGS"
15369 if test "X$thread_CFLAGS" != Xfailed; then
15370 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15371 if test "$cross_compiling" = yes; then :
15372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15374 as_fn_error "cannot run test program while cross compiling
15375 See \`config.log' for more details." "$LINENO" 5; }
15376 else
15377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378 /* end confdefs.h. */
15379 #include <pthread.h>
15380 __thread int a;
15381 static int *a_in_other_thread;
15382 static void *
15383 thread_func (void *arg)
15385 a_in_other_thread = &a;
15386 return (void *)0;
15389 main ()
15391 pthread_t thread;
15392 void *thread_retval;
15393 int *a_in_main_thread;
15394 if (pthread_create (&thread, (pthread_attr_t *)0,
15395 thread_func, (void *)0))
15396 return 0;
15397 a_in_main_thread = &a;
15398 if (pthread_join (thread, &thread_retval))
15399 return 0;
15400 return (a_in_other_thread == a_in_main_thread);
15402 return 0;
15404 _ACEOF
15405 if ac_fn_c_try_run "$LINENO"; then :
15406 gcc_cv_have_tls=yes
15407 else
15408 gcc_cv_have_tls=no
15410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15411 conftest.$ac_objext conftest.beam conftest.$ac_ext
15414 CFLAGS="$chktls_save_CFLAGS"
15417 else
15418 gcc_cv_have_tls=no
15420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15421 conftest.$ac_objext conftest.beam conftest.$ac_ext
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15426 $as_echo "$gcc_cv_have_tls" >&6; }
15427 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15429 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15433 # See what sort of export controls are availible.
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15436 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15437 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15438 $as_echo_n "(cached) " >&6
15439 else
15441 save_CFLAGS="$CFLAGS"
15442 CFLAGS="$CFLAGS -Werror"
15443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15444 /* end confdefs.h. */
15445 void __attribute__((visibility("hidden"))) foo(void) { }
15447 main ()
15451 return 0;
15453 _ACEOF
15454 if ac_fn_c_try_compile "$LINENO"; then :
15455 libgomp_cv_have_attribute_visibility=yes
15456 else
15457 libgomp_cv_have_attribute_visibility=no
15459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15460 CFLAGS="$save_CFLAGS"
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15463 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15464 if test $libgomp_cv_have_attribute_visibility = yes; then
15466 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15471 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15472 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15473 $as_echo_n "(cached) " >&6
15474 else
15476 save_CFLAGS="$CFLAGS"
15477 CFLAGS="$CFLAGS -Werror"
15478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15479 /* end confdefs.h. */
15480 void __attribute__((dllexport)) foo(void) { }
15482 main ()
15486 return 0;
15488 _ACEOF
15489 if ac_fn_c_try_compile "$LINENO"; then :
15490 libgomp_cv_have_attribute_dllexport=yes
15491 else
15492 libgomp_cv_have_attribute_dllexport=no
15494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15495 CFLAGS="$save_CFLAGS"
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15498 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15499 if test $libgomp_cv_have_attribute_dllexport = yes; then
15501 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15506 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15507 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
15508 $as_echo_n "(cached) " >&6
15509 else
15511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15512 /* end confdefs.h. */
15514 void foo(void) { }
15515 extern void bar(void) __attribute__((alias("foo")));
15517 main ()
15519 bar();
15521 return 0;
15523 _ACEOF
15524 if ac_fn_c_try_link "$LINENO"; then :
15525 libgomp_cv_have_attribute_alias=yes
15526 else
15527 libgomp_cv_have_attribute_alias=no
15529 rm -f core conftest.err conftest.$ac_objext \
15530 conftest$ac_exeext conftest.$ac_ext
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15533 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15534 if test $libgomp_cv_have_attribute_alias = yes; then
15536 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15541 # Check whether --with-gnu-ld was given.
15542 if test "${with_gnu_ld+set}" = set; then :
15543 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15544 else
15545 with_gnu_ld=no
15548 ac_prog=ld
15549 if test "$GCC" = yes; then
15550 # Check if gcc -print-prog-name=ld gives a path.
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15552 $as_echo_n "checking for ld used by $CC... " >&6; }
15553 case $host in
15554 *-*-mingw*)
15555 # gcc leaves a trailing carriage return which upsets mingw
15556 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15558 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15559 esac
15560 case $ac_prog in
15561 # Accept absolute paths.
15562 [\\/]* | ?:[\\/]*)
15563 re_direlt='/[^/][^/]*/\.\./'
15564 # Canonicalize the pathname of ld
15565 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15566 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15567 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15568 done
15569 test -z "$LD" && LD="$ac_prog"
15572 # If it fails, then pretend we aren't using GCC.
15573 ac_prog=ld
15576 # If it is relative, then search for the first ld in PATH.
15577 with_gnu_ld=unknown
15579 esac
15580 elif test "$with_gnu_ld" = yes; then
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15582 $as_echo_n "checking for GNU ld... " >&6; }
15583 else
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15585 $as_echo_n "checking for non-GNU ld... " >&6; }
15587 if test "${lt_cv_path_LD+set}" = set; then :
15588 $as_echo_n "(cached) " >&6
15589 else
15590 if test -z "$LD"; then
15591 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15592 for ac_dir in $PATH; do
15593 IFS="$lt_save_ifs"
15594 test -z "$ac_dir" && ac_dir=.
15595 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15596 lt_cv_path_LD="$ac_dir/$ac_prog"
15597 # Check to see if the program is GNU ld. I'd rather use --version,
15598 # but apparently some variants of GNU ld only accept -v.
15599 # Break only if it was the GNU/non-GNU ld that we prefer.
15600 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15601 *GNU* | *'with BFD'*)
15602 test "$with_gnu_ld" != no && break
15605 test "$with_gnu_ld" != yes && break
15607 esac
15609 done
15610 IFS="$lt_save_ifs"
15611 else
15612 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15616 LD="$lt_cv_path_LD"
15617 if test -n "$LD"; then
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15619 $as_echo "$LD" >&6; }
15620 else
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15622 $as_echo "no" >&6; }
15624 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15626 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15627 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15628 $as_echo_n "(cached) " >&6
15629 else
15630 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15631 case `$LD -v 2>&1 </dev/null` in
15632 *GNU* | *'with BFD'*)
15633 lt_cv_prog_gnu_ld=yes
15636 lt_cv_prog_gnu_ld=no
15638 esac
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15641 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15642 with_gnu_ld=$lt_cv_prog_gnu_ld
15650 # If we're not using GNU ld, then there's no point in even trying these
15651 # tests. Check for that first. We should have already tested for gld
15652 # by now (in libtool), but require it now just to be safe...
15653 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15654 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15658 # The name set by libtool depends on the version of libtool. Shame on us
15659 # for depending on an impl detail, but c'est la vie. Older versions used
15660 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15661 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15662 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
15663 # set (hence we're using an older libtool), then set it.
15664 if test x${with_gnu_ld+set} != xset; then
15665 if test x${ac_cv_prog_gnu_ld+set} != xset; then
15666 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
15667 with_gnu_ld=no
15668 else
15669 with_gnu_ld=$ac_cv_prog_gnu_ld
15673 # Start by getting the version number. I think the libtool test already
15674 # does some of this, but throws away the result.
15675 libgomp_ld_is_gold=no
15676 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15677 libgomp_ld_is_gold=yes
15680 ldver=`$LD --version 2>/dev/null |
15681 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'`
15683 libgomp_gnu_ld_version=`echo $ldver | \
15684 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15686 # Set --gc-sections.
15687 if test "$with_gnu_ld" = "notbroken"; then
15688 # GNU ld it is! Joy and bunny rabbits!
15690 # All these tests are for C++; save the language and the compiler flags.
15691 # Need to do this so that g++ won't try to link in libstdc++
15692 ac_test_CFLAGS="${CFLAGS+set}"
15693 ac_save_CFLAGS="$CFLAGS"
15694 CFLAGS='-x c++ -Wl,--gc-sections'
15696 # Check for -Wl,--gc-sections
15697 # XXX This test is broken at the moment, as symbols required for linking
15698 # are now in libsupc++ (not built yet). In addition, this test has
15699 # cored on solaris in the past. In addition, --gc-sections doesn't
15700 # really work at the moment (keeps on discarding used sections, first
15701 # .eh_frame and now some of the glibc sections for iconv).
15702 # Bzzzzt. Thanks for playing, maybe next time.
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15704 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15705 if test "$cross_compiling" = yes; then :
15706 ac_sectionLDflags=yes
15707 else
15708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709 /* end confdefs.h. */
15711 int main(void)
15713 try { throw 1; }
15714 catch (...) { };
15715 return 0;
15718 _ACEOF
15719 if ac_fn_c_try_run "$LINENO"; then :
15720 ac_sectionLDflags=yes
15721 else
15722 ac_sectionLDflags=no
15724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15725 conftest.$ac_objext conftest.beam conftest.$ac_ext
15728 if test "$ac_test_CFLAGS" = set; then
15729 CFLAGS="$ac_save_CFLAGS"
15730 else
15731 # this is the suspicious part
15732 CFLAGS=''
15734 if test "$ac_sectionLDflags" = "yes"; then
15735 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15738 $as_echo "$ac_sectionLDflags" >&6; }
15741 # Set linker optimization flags.
15742 if test x"$with_gnu_ld" = x"yes"; then
15743 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15751 # Check whether --enable-symvers was given.
15752 if test "${enable_symvers+set}" = set; then :
15753 enableval=$enable_symvers;
15754 case "$enableval" in
15755 yes|no|gnu) ;;
15756 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
15757 esac
15759 else
15760 enable_symvers=yes
15765 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
15766 # don't know enough about $LD to do tricks...
15768 # FIXME The following test is too strict, in theory.
15769 if test $enable_shared = no ||
15770 test "x$LD" = x ||
15771 test x$libgomp_gnu_ld_version = x; then
15772 enable_symvers=no
15775 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15776 if test $enable_symvers != no; then
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15778 $as_echo_n "checking for shared libgcc... " >&6; }
15779 ac_save_CFLAGS="$CFLAGS"
15780 CFLAGS=' -lgcc_s'
15781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15782 /* end confdefs.h. */
15785 main ()
15787 return 0;
15789 return 0;
15791 _ACEOF
15792 if ac_fn_c_try_link "$LINENO"; then :
15793 libgomp_shared_libgcc=yes
15794 else
15795 libgomp_shared_libgcc=no
15797 rm -f core conftest.err conftest.$ac_objext \
15798 conftest$ac_exeext conftest.$ac_ext
15799 CFLAGS="$ac_save_CFLAGS"
15800 if test $libgomp_shared_libgcc = no; then
15801 cat > conftest.c <<EOF
15802 int main (void) { return 0; }
15804 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15805 -shared -shared-libgcc -o conftest.so \
15806 conftest.c -v 2>&1 >/dev/null \
15807 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15808 rm -f conftest.c conftest.so
15809 if test x${libgomp_libgcc_s_suffix+set} = xset; then
15810 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h. */
15815 main ()
15817 return 0;
15819 return 0;
15821 _ACEOF
15822 if ac_fn_c_try_link "$LINENO"; then :
15823 libgomp_shared_libgcc=yes
15825 rm -f core conftest.err conftest.$ac_objext \
15826 conftest$ac_exeext conftest.$ac_ext
15827 CFLAGS="$ac_save_CFLAGS"
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
15831 $as_echo "$libgomp_shared_libgcc" >&6; }
15834 # For GNU ld, we need at least this version. The format is described in
15835 # LIBGOMP_CHECK_LINKER_FEATURES above.
15836 libgomp_min_gnu_ld_version=21400
15837 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
15839 # Check to see if unspecified "yes" value can win, given results above.
15840 # Change "yes" into either "no" or a style name.
15841 if test $enable_symvers = yes; then
15842 if test $with_gnu_ld = yes &&
15843 test $libgomp_shared_libgcc = yes;
15844 then
15845 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
15846 enable_symvers=gnu
15847 elif test $libgomp_ld_is_gold = yes ; then
15848 enable_symvers=gnu
15849 else
15850 # The right tools, the right setup, but too old. Fallbacks?
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
15852 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15854 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15856 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
15858 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
15859 if test $libgomp_gnu_ld_version -ge 21200 ; then
15860 # Globbing fix is present, proper block support is not.
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15862 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15863 enable_symvers=no
15864 else
15865 # 2.11 or older.
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15867 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15868 enable_symvers=no
15871 else
15872 # just fail for now
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15874 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15876 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15878 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15880 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15881 enable_symvers=no
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
15886 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
15887 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
15888 $as_echo_n "(cached) " >&6
15889 else
15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h. */
15893 void foo (void); __asm (".symver foo, bar@SYMVER");
15895 main ()
15899 return 0;
15901 _ACEOF
15902 if ac_fn_c_try_compile "$LINENO"; then :
15903 libgomp_cv_have_as_symver_directive=yes
15904 else
15905 libgomp_cv_have_as_symver_directive=no
15907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
15910 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
15911 if test $libgomp_cv_have_as_symver_directive = yes; then
15913 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
15917 if test $enable_symvers != no; then
15918 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
15919 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
15920 else
15921 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
15922 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15926 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15929 if test $enable_symvers = gnu; then
15931 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
15935 # Get target configury.
15936 . ${srcdir}/configure.tgt
15937 CFLAGS="$save_CFLAGS $XCFLAGS"
15939 # Check for __sync_val_compare_and_swap, but only after the target has
15940 # had a chance to set XCFLAGS.
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
15943 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
15944 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
15945 $as_echo_n "(cached) " >&6
15946 else
15948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15949 /* end confdefs.h. */
15952 main ()
15954 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
15956 return 0;
15958 _ACEOF
15959 if ac_fn_c_try_link "$LINENO"; then :
15960 libgomp_cv_have_sync_builtins=yes
15961 else
15962 libgomp_cv_have_sync_builtins=no
15964 rm -f core conftest.err conftest.$ac_objext \
15965 conftest$ac_exeext conftest.$ac_ext
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
15968 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
15969 if test $libgomp_cv_have_sync_builtins = yes; then
15971 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
15975 XCFLAGS="$XCFLAGS$XPCFLAGS"
15981 # Cleanup and exit.
15982 CFLAGS="$save_CFLAGS"
15983 cat >confcache <<\_ACEOF
15984 # This file is a shell script that caches the results of configure
15985 # tests run on this system so they can be shared between configure
15986 # scripts and configure runs, see configure's option --config-cache.
15987 # It is not useful on other systems. If it contains results you don't
15988 # want to keep, you may remove or edit it.
15990 # config.status only pays attention to the cache file if you give it
15991 # the --recheck option to rerun configure.
15993 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15994 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15995 # following values.
15997 _ACEOF
15999 # The following way of writing the cache mishandles newlines in values,
16000 # but we know of no workaround that is simple, portable, and efficient.
16001 # So, we kill variables containing newlines.
16002 # Ultrix sh set writes to stderr and can't be redirected directly,
16003 # and sets the high bit in the cache file unless we assign to the vars.
16005 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16006 eval ac_val=\$$ac_var
16007 case $ac_val in #(
16008 *${as_nl}*)
16009 case $ac_var in #(
16010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16011 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16012 esac
16013 case $ac_var in #(
16014 _ | IFS | as_nl) ;; #(
16015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16016 *) { eval $ac_var=; unset $ac_var;} ;;
16017 esac ;;
16018 esac
16019 done
16021 (set) 2>&1 |
16022 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16023 *${as_nl}ac_space=\ *)
16024 # `set' does not quote correctly, so add quotes: double-quote
16025 # substitution turns \\\\ into \\, and sed turns \\ into \.
16026 sed -n \
16027 "s/'/'\\\\''/g;
16028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16029 ;; #(
16031 # `set' quotes correctly as required by POSIX, so do not add quotes.
16032 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16034 esac |
16035 sort
16037 sed '
16038 /^ac_cv_env_/b end
16039 t clear
16040 :clear
16041 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16042 t end
16043 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16044 :end' >>confcache
16045 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16046 if test -w "$cache_file"; then
16047 test "x$cache_file" != "x/dev/null" &&
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16049 $as_echo "$as_me: updating cache $cache_file" >&6;}
16050 cat confcache >$cache_file
16051 else
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16053 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16056 rm -f confcache
16058 if test ${multilib} = yes; then
16059 multilib_arg="--enable-multilib"
16060 else
16061 multilib_arg=
16064 # Set up the set of libraries that we need to link against for libgomp.
16065 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
16066 # which will force linkage against -lpthread (or equivalent for the system).
16067 # That's not 100% ideal, but about the best we can do easily.
16068 if test $enable_shared = yes; then
16069 link_gomp="-lgomp %{static: $LIBS}"
16070 else
16071 link_gomp="-lgomp $LIBS"
16075 if test "$ac_cv_fc_compiler_gnu" = yes; then
16076 USE_FORTRAN_TRUE=
16077 USE_FORTRAN_FALSE='#'
16078 else
16079 USE_FORTRAN_TRUE='#'
16080 USE_FORTRAN_FALSE=
16084 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16085 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16086 # the underscore here and update the PREREQ. If it doesn't, then we'll
16087 # need to copy this macro to our acinclude.m4.
16088 save_CFLAGS="$CFLAGS"
16089 for i in $config_path; do
16090 if test -f $srcdir/config/$i/omp-lock.h; then
16091 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16092 break
16094 done
16096 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16098 else
16099 as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16103 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16108 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16113 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16118 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16120 else
16121 as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16125 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16130 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16135 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16141 # If the lock fits in an integer, then arrange for Fortran to use that
16142 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16143 # Except that we don't have a way at present to multi-lib the installed
16144 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16145 # actual target.
16146 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16147 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16148 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16149 OMP_LOCK_KIND=8
16151 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16152 OMP_NEST_LOCK_KIND=8
16154 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16155 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16156 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16157 OMP_LOCK_25_KIND=8
16159 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16160 OMP_NEST_LOCK_25_KIND=8
16175 CFLAGS="$save_CFLAGS"
16177 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16179 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16181 cat >confcache <<\_ACEOF
16182 # This file is a shell script that caches the results of configure
16183 # tests run on this system so they can be shared between configure
16184 # scripts and configure runs, see configure's option --config-cache.
16185 # It is not useful on other systems. If it contains results you don't
16186 # want to keep, you may remove or edit it.
16188 # config.status only pays attention to the cache file if you give it
16189 # the --recheck option to rerun configure.
16191 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16192 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16193 # following values.
16195 _ACEOF
16197 # The following way of writing the cache mishandles newlines in values,
16198 # but we know of no workaround that is simple, portable, and efficient.
16199 # So, we kill variables containing newlines.
16200 # Ultrix sh set writes to stderr and can't be redirected directly,
16201 # and sets the high bit in the cache file unless we assign to the vars.
16203 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16204 eval ac_val=\$$ac_var
16205 case $ac_val in #(
16206 *${as_nl}*)
16207 case $ac_var in #(
16208 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16209 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16210 esac
16211 case $ac_var in #(
16212 _ | IFS | as_nl) ;; #(
16213 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16214 *) { eval $ac_var=; unset $ac_var;} ;;
16215 esac ;;
16216 esac
16217 done
16219 (set) 2>&1 |
16220 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16221 *${as_nl}ac_space=\ *)
16222 # `set' does not quote correctly, so add quotes: double-quote
16223 # substitution turns \\\\ into \\, and sed turns \\ into \.
16224 sed -n \
16225 "s/'/'\\\\''/g;
16226 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16227 ;; #(
16229 # `set' quotes correctly as required by POSIX, so do not add quotes.
16230 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16232 esac |
16233 sort
16235 sed '
16236 /^ac_cv_env_/b end
16237 t clear
16238 :clear
16239 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16240 t end
16241 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16242 :end' >>confcache
16243 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16244 if test -w "$cache_file"; then
16245 test "x$cache_file" != "x/dev/null" &&
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16247 $as_echo "$as_me: updating cache $cache_file" >&6;}
16248 cat confcache >$cache_file
16249 else
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16251 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16254 rm -f confcache
16256 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16257 # Let make expand exec_prefix.
16258 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16260 DEFS=-DHAVE_CONFIG_H
16262 ac_libobjs=
16263 ac_ltlibobjs=
16264 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16265 # 1. Remove the extension, and $U if already installed.
16266 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16267 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16268 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16269 # will be set to the directory where LIBOBJS objects are built.
16270 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16271 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16272 done
16273 LIBOBJS=$ac_libobjs
16275 LTLIBOBJS=$ac_ltlibobjs
16278 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16279 as_fn_error "conditional \"GENINSRC\" was never defined.
16280 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16282 if test -n "$EXEEXT"; then
16283 am__EXEEXT_TRUE=
16284 am__EXEEXT_FALSE='#'
16285 else
16286 am__EXEEXT_TRUE='#'
16287 am__EXEEXT_FALSE=
16290 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16291 as_fn_error "conditional \"AMDEP\" was never defined.
16292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16294 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16295 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16298 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16299 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16302 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16303 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16306 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16307 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16310 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16311 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16315 : ${CONFIG_STATUS=./config.status}
16316 ac_write_fail=0
16317 ac_clean_files_save=$ac_clean_files
16318 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16320 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16321 as_write_fail=0
16322 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16323 #! $SHELL
16324 # Generated by $as_me.
16325 # Run this file to recreate the current configuration.
16326 # Compiler output produced by configure, useful for debugging
16327 # configure, is in config.log if it exists.
16329 debug=false
16330 ac_cs_recheck=false
16331 ac_cs_silent=false
16333 SHELL=\${CONFIG_SHELL-$SHELL}
16334 export SHELL
16335 _ASEOF
16336 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16337 ## -------------------- ##
16338 ## M4sh Initialization. ##
16339 ## -------------------- ##
16341 # Be more Bourne compatible
16342 DUALCASE=1; export DUALCASE # for MKS sh
16343 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16344 emulate sh
16345 NULLCMD=:
16346 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16347 # is contrary to our usage. Disable this feature.
16348 alias -g '${1+"$@"}'='"$@"'
16349 setopt NO_GLOB_SUBST
16350 else
16351 case `(set -o) 2>/dev/null` in #(
16352 *posix*) :
16353 set -o posix ;; #(
16354 *) :
16356 esac
16360 as_nl='
16362 export as_nl
16363 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16364 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16365 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16366 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16367 # Prefer a ksh shell builtin over an external printf program on Solaris,
16368 # but without wasting forks for bash or zsh.
16369 if test -z "$BASH_VERSION$ZSH_VERSION" \
16370 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16371 as_echo='print -r --'
16372 as_echo_n='print -rn --'
16373 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16374 as_echo='printf %s\n'
16375 as_echo_n='printf %s'
16376 else
16377 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16378 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16379 as_echo_n='/usr/ucb/echo -n'
16380 else
16381 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16382 as_echo_n_body='eval
16383 arg=$1;
16384 case $arg in #(
16385 *"$as_nl"*)
16386 expr "X$arg" : "X\\(.*\\)$as_nl";
16387 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16388 esac;
16389 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16391 export as_echo_n_body
16392 as_echo_n='sh -c $as_echo_n_body as_echo'
16394 export as_echo_body
16395 as_echo='sh -c $as_echo_body as_echo'
16398 # The user is always right.
16399 if test "${PATH_SEPARATOR+set}" != set; then
16400 PATH_SEPARATOR=:
16401 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16402 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16403 PATH_SEPARATOR=';'
16408 # IFS
16409 # We need space, tab and new line, in precisely that order. Quoting is
16410 # there to prevent editors from complaining about space-tab.
16411 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16412 # splitting by setting IFS to empty value.)
16413 IFS=" "" $as_nl"
16415 # Find who we are. Look in the path if we contain no directory separator.
16416 case $0 in #((
16417 *[\\/]* ) as_myself=$0 ;;
16418 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16419 for as_dir in $PATH
16421 IFS=$as_save_IFS
16422 test -z "$as_dir" && as_dir=.
16423 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16424 done
16425 IFS=$as_save_IFS
16428 esac
16429 # We did not find ourselves, most probably we were run as `sh COMMAND'
16430 # in which case we are not to be found in the path.
16431 if test "x$as_myself" = x; then
16432 as_myself=$0
16434 if test ! -f "$as_myself"; then
16435 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16436 exit 1
16439 # Unset variables that we do not need and which cause bugs (e.g. in
16440 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16441 # suppresses any "Segmentation fault" message there. '((' could
16442 # trigger a bug in pdksh 5.2.14.
16443 for as_var in BASH_ENV ENV MAIL MAILPATH
16444 do eval test x\${$as_var+set} = xset \
16445 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16446 done
16447 PS1='$ '
16448 PS2='> '
16449 PS4='+ '
16451 # NLS nuisances.
16452 LC_ALL=C
16453 export LC_ALL
16454 LANGUAGE=C
16455 export LANGUAGE
16457 # CDPATH.
16458 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16461 # as_fn_error ERROR [LINENO LOG_FD]
16462 # ---------------------------------
16463 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16464 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16465 # script with status $?, using 1 if that was 0.
16466 as_fn_error ()
16468 as_status=$?; test $as_status -eq 0 && as_status=1
16469 if test "$3"; then
16470 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16471 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16473 $as_echo "$as_me: error: $1" >&2
16474 as_fn_exit $as_status
16475 } # as_fn_error
16478 # as_fn_set_status STATUS
16479 # -----------------------
16480 # Set $? to STATUS, without forking.
16481 as_fn_set_status ()
16483 return $1
16484 } # as_fn_set_status
16486 # as_fn_exit STATUS
16487 # -----------------
16488 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16489 as_fn_exit ()
16491 set +e
16492 as_fn_set_status $1
16493 exit $1
16494 } # as_fn_exit
16496 # as_fn_unset VAR
16497 # ---------------
16498 # Portably unset VAR.
16499 as_fn_unset ()
16501 { eval $1=; unset $1;}
16503 as_unset=as_fn_unset
16504 # as_fn_append VAR VALUE
16505 # ----------------------
16506 # Append the text in VALUE to the end of the definition contained in VAR. Take
16507 # advantage of any shell optimizations that allow amortized linear growth over
16508 # repeated appends, instead of the typical quadratic growth present in naive
16509 # implementations.
16510 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16511 eval 'as_fn_append ()
16513 eval $1+=\$2
16515 else
16516 as_fn_append ()
16518 eval $1=\$$1\$2
16520 fi # as_fn_append
16522 # as_fn_arith ARG...
16523 # ------------------
16524 # Perform arithmetic evaluation on the ARGs, and store the result in the
16525 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16526 # must be portable across $(()) and expr.
16527 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16528 eval 'as_fn_arith ()
16530 as_val=$(( $* ))
16532 else
16533 as_fn_arith ()
16535 as_val=`expr "$@" || test $? -eq 1`
16537 fi # as_fn_arith
16540 if expr a : '\(a\)' >/dev/null 2>&1 &&
16541 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16542 as_expr=expr
16543 else
16544 as_expr=false
16547 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16548 as_basename=basename
16549 else
16550 as_basename=false
16553 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16554 as_dirname=dirname
16555 else
16556 as_dirname=false
16559 as_me=`$as_basename -- "$0" ||
16560 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16561 X"$0" : 'X\(//\)$' \| \
16562 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16563 $as_echo X/"$0" |
16564 sed '/^.*\/\([^/][^/]*\)\/*$/{
16565 s//\1/
16568 /^X\/\(\/\/\)$/{
16569 s//\1/
16572 /^X\/\(\/\).*/{
16573 s//\1/
16576 s/.*/./; q'`
16578 # Avoid depending upon Character Ranges.
16579 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16580 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16581 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16582 as_cr_digits='0123456789'
16583 as_cr_alnum=$as_cr_Letters$as_cr_digits
16585 ECHO_C= ECHO_N= ECHO_T=
16586 case `echo -n x` in #(((((
16587 -n*)
16588 case `echo 'xy\c'` in
16589 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16590 xy) ECHO_C='\c';;
16591 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16592 ECHO_T=' ';;
16593 esac;;
16595 ECHO_N='-n';;
16596 esac
16598 rm -f conf$$ conf$$.exe conf$$.file
16599 if test -d conf$$.dir; then
16600 rm -f conf$$.dir/conf$$.file
16601 else
16602 rm -f conf$$.dir
16603 mkdir conf$$.dir 2>/dev/null
16605 if (echo >conf$$.file) 2>/dev/null; then
16606 if ln -s conf$$.file conf$$ 2>/dev/null; then
16607 as_ln_s='ln -s'
16608 # ... but there are two gotchas:
16609 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16610 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16611 # In both cases, we have to default to `cp -p'.
16612 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16613 as_ln_s='cp -p'
16614 elif ln conf$$.file conf$$ 2>/dev/null; then
16615 as_ln_s=ln
16616 else
16617 as_ln_s='cp -p'
16619 else
16620 as_ln_s='cp -p'
16622 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16623 rmdir conf$$.dir 2>/dev/null
16626 # as_fn_mkdir_p
16627 # -------------
16628 # Create "$as_dir" as a directory, including parents if necessary.
16629 as_fn_mkdir_p ()
16632 case $as_dir in #(
16633 -*) as_dir=./$as_dir;;
16634 esac
16635 test -d "$as_dir" || eval $as_mkdir_p || {
16636 as_dirs=
16637 while :; do
16638 case $as_dir in #(
16639 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16640 *) as_qdir=$as_dir;;
16641 esac
16642 as_dirs="'$as_qdir' $as_dirs"
16643 as_dir=`$as_dirname -- "$as_dir" ||
16644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16645 X"$as_dir" : 'X\(//\)[^/]' \| \
16646 X"$as_dir" : 'X\(//\)$' \| \
16647 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16648 $as_echo X"$as_dir" |
16649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16650 s//\1/
16653 /^X\(\/\/\)[^/].*/{
16654 s//\1/
16657 /^X\(\/\/\)$/{
16658 s//\1/
16661 /^X\(\/\).*/{
16662 s//\1/
16665 s/.*/./; q'`
16666 test -d "$as_dir" && break
16667 done
16668 test -z "$as_dirs" || eval "mkdir $as_dirs"
16669 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16672 } # as_fn_mkdir_p
16673 if mkdir -p . 2>/dev/null; then
16674 as_mkdir_p='mkdir -p "$as_dir"'
16675 else
16676 test -d ./-p && rmdir ./-p
16677 as_mkdir_p=false
16680 if test -x / >/dev/null 2>&1; then
16681 as_test_x='test -x'
16682 else
16683 if ls -dL / >/dev/null 2>&1; then
16684 as_ls_L_option=L
16685 else
16686 as_ls_L_option=
16688 as_test_x='
16689 eval sh -c '\''
16690 if test -d "$1"; then
16691 test -d "$1/.";
16692 else
16693 case $1 in #(
16694 -*)set "./$1";;
16695 esac;
16696 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16697 ???[sx]*):;;*)false;;esac;fi
16698 '\'' sh
16701 as_executable_p=$as_test_x
16703 # Sed expression to map a string onto a valid CPP name.
16704 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16706 # Sed expression to map a string onto a valid variable name.
16707 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16710 exec 6>&1
16711 ## ----------------------------------- ##
16712 ## Main body of $CONFIG_STATUS script. ##
16713 ## ----------------------------------- ##
16714 _ASEOF
16715 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16718 # Save the log message, to keep $0 and so on meaningful, and to
16719 # report actual input values of CONFIG_FILES etc. instead of their
16720 # values after options handling.
16721 ac_log="
16722 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
16723 generated by GNU Autoconf 2.64. Invocation command line was
16725 CONFIG_FILES = $CONFIG_FILES
16726 CONFIG_HEADERS = $CONFIG_HEADERS
16727 CONFIG_LINKS = $CONFIG_LINKS
16728 CONFIG_COMMANDS = $CONFIG_COMMANDS
16729 $ $0 $@
16731 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16734 _ACEOF
16736 case $ac_config_files in *"
16737 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16738 esac
16740 case $ac_config_headers in *"
16741 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16742 esac
16745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16746 # Files that config.status was made for.
16747 config_files="$ac_config_files"
16748 config_headers="$ac_config_headers"
16749 config_commands="$ac_config_commands"
16751 _ACEOF
16753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16754 ac_cs_usage="\
16755 \`$as_me' instantiates files and other configuration actions
16756 from templates according to the current configuration. Unless the files
16757 and actions are specified as TAGs, all are instantiated by default.
16759 Usage: $0 [OPTION]... [TAG]...
16761 -h, --help print this help, then exit
16762 -V, --version print version number and configuration settings, then exit
16763 -q, --quiet, --silent
16764 do not print progress messages
16765 -d, --debug don't remove temporary files
16766 --recheck update $as_me by reconfiguring in the same conditions
16767 --file=FILE[:TEMPLATE]
16768 instantiate the configuration file FILE
16769 --header=FILE[:TEMPLATE]
16770 instantiate the configuration header FILE
16772 Configuration files:
16773 $config_files
16775 Configuration headers:
16776 $config_headers
16778 Configuration commands:
16779 $config_commands
16781 Report bugs to the package provider.
16782 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
16783 General help using GNU software: <http://www.gnu.org/gethelp/>."
16785 _ACEOF
16786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16787 ac_cs_version="\\
16788 GNU OpenMP Runtime Library config.status 1.0
16789 configured by $0, generated by GNU Autoconf 2.64,
16790 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16792 Copyright (C) 2009 Free Software Foundation, Inc.
16793 This config.status script is free software; the Free Software Foundation
16794 gives unlimited permission to copy, distribute and modify it."
16796 ac_pwd='$ac_pwd'
16797 srcdir='$srcdir'
16798 INSTALL='$INSTALL'
16799 MKDIR_P='$MKDIR_P'
16800 AWK='$AWK'
16801 test -n "\$AWK" || AWK=awk
16802 _ACEOF
16804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16805 # The default lists apply if the user does not specify any file.
16806 ac_need_defaults=:
16807 while test $# != 0
16809 case $1 in
16810 --*=*)
16811 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16812 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16813 ac_shift=:
16816 ac_option=$1
16817 ac_optarg=$2
16818 ac_shift=shift
16820 esac
16822 case $ac_option in
16823 # Handling of the options.
16824 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16825 ac_cs_recheck=: ;;
16826 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16827 $as_echo "$ac_cs_version"; exit ;;
16828 --debug | --debu | --deb | --de | --d | -d )
16829 debug=: ;;
16830 --file | --fil | --fi | --f )
16831 $ac_shift
16832 case $ac_optarg in
16833 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16834 esac
16835 as_fn_append CONFIG_FILES " '$ac_optarg'"
16836 ac_need_defaults=false;;
16837 --header | --heade | --head | --hea )
16838 $ac_shift
16839 case $ac_optarg in
16840 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16841 esac
16842 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16843 ac_need_defaults=false;;
16844 --he | --h)
16845 # Conflict between --help and --header
16846 as_fn_error "ambiguous option: \`$1'
16847 Try \`$0 --help' for more information.";;
16848 --help | --hel | -h )
16849 $as_echo "$ac_cs_usage"; exit ;;
16850 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16851 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16852 ac_cs_silent=: ;;
16854 # This is an error.
16855 -*) as_fn_error "unrecognized option: \`$1'
16856 Try \`$0 --help' for more information." ;;
16858 *) as_fn_append ac_config_targets " $1"
16859 ac_need_defaults=false ;;
16861 esac
16862 shift
16863 done
16865 ac_configure_extra_args=
16867 if $ac_cs_silent; then
16868 exec 6>/dev/null
16869 ac_configure_extra_args="$ac_configure_extra_args --silent"
16872 _ACEOF
16873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16874 if \$ac_cs_recheck; then
16875 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16876 shift
16877 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16878 CONFIG_SHELL='$SHELL'
16879 export CONFIG_SHELL
16880 exec "\$@"
16883 _ACEOF
16884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16885 exec 5>>config.log
16887 echo
16888 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16889 ## Running $as_me. ##
16890 _ASBOX
16891 $as_echo "$ac_log"
16892 } >&5
16894 _ACEOF
16895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16897 # INIT-COMMANDS
16900 srcdir="$srcdir"
16901 host="$host"
16902 target="$target"
16903 with_multisubdir="$with_multisubdir"
16904 with_multisrctop="$with_multisrctop"
16905 with_target_subdir="$with_target_subdir"
16906 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16907 multi_basedir="$multi_basedir"
16908 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16909 CC="$CC"
16910 CXX="$CXX"
16911 GFORTRAN="$GFORTRAN"
16912 GCJ="$GCJ"
16913 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16916 # The HP-UX ksh and POSIX shell print the target directory to stdout
16917 # if CDPATH is set.
16918 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16920 sed_quote_subst='$sed_quote_subst'
16921 double_quote_subst='$double_quote_subst'
16922 delay_variable_subst='$delay_variable_subst'
16923 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16924 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16925 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16926 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16927 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16928 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16929 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16930 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16931 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16932 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16933 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16934 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16935 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16936 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16937 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16938 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16939 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16940 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16941 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16942 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16943 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16944 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16945 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16946 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16947 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16948 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16949 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16950 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16951 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16952 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16953 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16954 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16955 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16956 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16957 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16958 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16959 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16960 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16961 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16962 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16963 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16964 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16965 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16966 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16967 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16968 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16969 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16970 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16971 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"`'
16972 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16973 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16974 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16975 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16976 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16977 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16978 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16979 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16980 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16981 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16982 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16983 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16984 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16985 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16986 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16987 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16988 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16989 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16990 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16991 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16992 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16993 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16994 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16995 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16996 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16997 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16998 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16999 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17000 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17001 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17002 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17003 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17004 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17005 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17006 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17007 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17008 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17009 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17010 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17011 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17012 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17013 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17014 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17015 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17016 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17017 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17018 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17019 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17020 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17021 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17022 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17023 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17024 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17025 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17026 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17027 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17028 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17029 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17030 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17031 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17032 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17033 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17034 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17035 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17036 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17037 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17038 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17039 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17040 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17041 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17042 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17043 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17044 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17045 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17046 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17047 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17048 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17049 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17050 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17051 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17052 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17053 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17054 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17055 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17056 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17057 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17058 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17059 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17060 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17061 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17062 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17063 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17064 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17065 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17066 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17067 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17068 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17069 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17070 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17071 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17072 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17073 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17074 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17075 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17076 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17077 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17078 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17079 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17080 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17081 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17082 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17083 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17084 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17085 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17086 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17087 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17088 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17089 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17090 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17091 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17092 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17093 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17094 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17095 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17096 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17097 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17099 LTCC='$LTCC'
17100 LTCFLAGS='$LTCFLAGS'
17101 compiler='$compiler_DEFAULT'
17103 # A function that is used when there is no print builtin or printf.
17104 func_fallback_echo ()
17106 eval 'cat <<_LTECHO_EOF
17108 _LTECHO_EOF'
17111 # Quote evaled strings.
17112 for var in SHELL \
17113 ECHO \
17114 SED \
17115 GREP \
17116 EGREP \
17117 FGREP \
17118 LD \
17119 NM \
17120 LN_S \
17121 lt_SP2NL \
17122 lt_NL2SP \
17123 reload_flag \
17124 OBJDUMP \
17125 deplibs_check_method \
17126 file_magic_cmd \
17127 AR \
17128 AR_FLAGS \
17129 STRIP \
17130 RANLIB \
17131 CC \
17132 CFLAGS \
17133 compiler \
17134 lt_cv_sys_global_symbol_pipe \
17135 lt_cv_sys_global_symbol_to_cdecl \
17136 lt_cv_sys_global_symbol_to_c_name_address \
17137 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17138 lt_prog_compiler_no_builtin_flag \
17139 lt_prog_compiler_wl \
17140 lt_prog_compiler_pic \
17141 lt_prog_compiler_static \
17142 lt_cv_prog_compiler_c_o \
17143 need_locks \
17144 DSYMUTIL \
17145 NMEDIT \
17146 LIPO \
17147 OTOOL \
17148 OTOOL64 \
17149 shrext_cmds \
17150 export_dynamic_flag_spec \
17151 whole_archive_flag_spec \
17152 compiler_needs_object \
17153 with_gnu_ld \
17154 allow_undefined_flag \
17155 no_undefined_flag \
17156 hardcode_libdir_flag_spec \
17157 hardcode_libdir_flag_spec_ld \
17158 hardcode_libdir_separator \
17159 fix_srcfile_path \
17160 exclude_expsyms \
17161 include_expsyms \
17162 file_list_spec \
17163 variables_saved_for_relink \
17164 libname_spec \
17165 library_names_spec \
17166 soname_spec \
17167 install_override_mode \
17168 finish_eval \
17169 old_striplib \
17170 striplib \
17171 compiler_lib_search_dirs \
17172 predep_objects \
17173 postdep_objects \
17174 predeps \
17175 postdeps \
17176 compiler_lib_search_path \
17177 LD_FC \
17178 reload_flag_FC \
17179 compiler_FC \
17180 lt_prog_compiler_no_builtin_flag_FC \
17181 lt_prog_compiler_wl_FC \
17182 lt_prog_compiler_pic_FC \
17183 lt_prog_compiler_static_FC \
17184 lt_cv_prog_compiler_c_o_FC \
17185 export_dynamic_flag_spec_FC \
17186 whole_archive_flag_spec_FC \
17187 compiler_needs_object_FC \
17188 with_gnu_ld_FC \
17189 allow_undefined_flag_FC \
17190 no_undefined_flag_FC \
17191 hardcode_libdir_flag_spec_FC \
17192 hardcode_libdir_flag_spec_ld_FC \
17193 hardcode_libdir_separator_FC \
17194 fix_srcfile_path_FC \
17195 exclude_expsyms_FC \
17196 include_expsyms_FC \
17197 file_list_spec_FC \
17198 compiler_lib_search_dirs_FC \
17199 predep_objects_FC \
17200 postdep_objects_FC \
17201 predeps_FC \
17202 postdeps_FC \
17203 compiler_lib_search_path_FC; do
17204 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17205 *[\\\\\\\`\\"\\\$]*)
17206 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17209 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17211 esac
17212 done
17214 # Double-quote double-evaled strings.
17215 for var in reload_cmds \
17216 old_postinstall_cmds \
17217 old_postuninstall_cmds \
17218 old_archive_cmds \
17219 extract_expsyms_cmds \
17220 old_archive_from_new_cmds \
17221 old_archive_from_expsyms_cmds \
17222 archive_cmds \
17223 archive_expsym_cmds \
17224 module_cmds \
17225 module_expsym_cmds \
17226 export_symbols_cmds \
17227 prelink_cmds \
17228 postinstall_cmds \
17229 postuninstall_cmds \
17230 finish_cmds \
17231 sys_lib_search_path_spec \
17232 sys_lib_dlsearch_path_spec \
17233 reload_cmds_FC \
17234 old_archive_cmds_FC \
17235 old_archive_from_new_cmds_FC \
17236 old_archive_from_expsyms_cmds_FC \
17237 archive_cmds_FC \
17238 archive_expsym_cmds_FC \
17239 module_cmds_FC \
17240 module_expsym_cmds_FC \
17241 export_symbols_cmds_FC \
17242 prelink_cmds_FC; do
17243 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17244 *[\\\\\\\`\\"\\\$]*)
17245 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17248 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17250 esac
17251 done
17253 ac_aux_dir='$ac_aux_dir'
17254 xsi_shell='$xsi_shell'
17255 lt_shell_append='$lt_shell_append'
17257 # See if we are running on zsh, and set the options which allow our
17258 # commands through without removal of \ escapes INIT.
17259 if test -n "\${ZSH_VERSION+set}" ; then
17260 setopt NO_GLOB_SUBST
17264 PACKAGE='$PACKAGE'
17265 VERSION='$VERSION'
17266 TIMESTAMP='$TIMESTAMP'
17267 RM='$RM'
17268 ofile='$ofile'
17275 GCC="$GCC"
17276 CC="$CC"
17277 acx_cv_header_stdint="$acx_cv_header_stdint"
17278 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17279 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17280 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17281 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17282 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17283 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17284 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17285 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17286 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17287 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17288 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17289 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17290 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17293 _ACEOF
17295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17297 # Handling of arguments.
17298 for ac_config_target in $ac_config_targets
17300 case $ac_config_target in
17301 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17302 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17303 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17304 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17305 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17306 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17307 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17308 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17309 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17310 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17311 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17312 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17314 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17315 esac
17316 done
17319 # If the user did not use the arguments to specify the items to instantiate,
17320 # then the envvar interface is used. Set only those that are not.
17321 # We use the long form for the default assignment because of an extremely
17322 # bizarre bug on SunOS 4.1.3.
17323 if $ac_need_defaults; then
17324 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17325 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17326 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17329 # Have a temporary directory for convenience. Make it in the build tree
17330 # simply because there is no reason against having it here, and in addition,
17331 # creating and moving files from /tmp can sometimes cause problems.
17332 # Hook for its removal unless debugging.
17333 # Note that there is a small window in which the directory will not be cleaned:
17334 # after its creation but before its name has been assigned to `$tmp'.
17335 $debug ||
17337 tmp=
17338 trap 'exit_status=$?
17339 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17341 trap 'as_fn_exit 1' 1 2 13 15
17343 # Create a (secure) tmp directory for tmp files.
17346 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17347 test -n "$tmp" && test -d "$tmp"
17348 } ||
17350 tmp=./conf$$-$RANDOM
17351 (umask 077 && mkdir "$tmp")
17352 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17354 # Set up the scripts for CONFIG_FILES section.
17355 # No need to generate them if there are no CONFIG_FILES.
17356 # This happens for instance with `./config.status config.h'.
17357 if test -n "$CONFIG_FILES"; then
17360 ac_cr=`echo X | tr X '\015'`
17361 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17362 # But we know of no other shell where ac_cr would be empty at this
17363 # point, so we can use a bashism as a fallback.
17364 if test "x$ac_cr" = x; then
17365 eval ac_cr=\$\'\\r\'
17367 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17368 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17369 ac_cs_awk_cr='\r'
17370 else
17371 ac_cs_awk_cr=$ac_cr
17374 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17375 _ACEOF
17379 echo "cat >conf$$subs.awk <<_ACEOF" &&
17380 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17381 echo "_ACEOF"
17382 } >conf$$subs.sh ||
17383 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17384 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17385 ac_delim='%!_!# '
17386 for ac_last_try in false false false false false :; do
17387 . ./conf$$subs.sh ||
17388 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17390 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17391 if test $ac_delim_n = $ac_delim_num; then
17392 break
17393 elif $ac_last_try; then
17394 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17395 else
17396 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17398 done
17399 rm -f conf$$subs.sh
17401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17402 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17403 _ACEOF
17404 sed -n '
17406 s/^/S["/; s/!.*/"]=/
17409 s/^[^!]*!//
17410 :repl
17411 t repl
17412 s/'"$ac_delim"'$//
17413 t delim
17416 s/\(.\{148\}\).*/\1/
17417 t more1
17418 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17421 b repl
17422 :more1
17423 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17426 s/.\{148\}//
17427 t nl
17428 :delim
17430 s/\(.\{148\}\).*/\1/
17431 t more2
17432 s/["\\]/\\&/g; s/^/"/; s/$/"/
17435 :more2
17436 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17439 s/.\{148\}//
17440 t delim
17441 ' <conf$$subs.awk | sed '
17442 /^[^""]/{
17444 s/\n//
17446 ' >>$CONFIG_STATUS || ac_write_fail=1
17447 rm -f conf$$subs.awk
17448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17449 _ACAWK
17450 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17451 for (key in S) S_is_set[key] = 1
17452 FS = "\a"
17456 line = $ 0
17457 nfields = split(line, field, "@")
17458 substed = 0
17459 len = length(field[1])
17460 for (i = 2; i < nfields; i++) {
17461 key = field[i]
17462 keylen = length(key)
17463 if (S_is_set[key]) {
17464 value = S[key]
17465 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17466 len += length(value) + length(field[++i])
17467 substed = 1
17468 } else
17469 len += 1 + keylen
17472 print line
17475 _ACAWK
17476 _ACEOF
17477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17478 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17479 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17480 else
17482 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17483 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17484 _ACEOF
17486 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17487 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17488 # trailing colons and then remove the whole line if VPATH becomes empty
17489 # (actually we leave an empty line to preserve line numbers).
17490 if test "x$srcdir" = x.; then
17491 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17492 s/:*\$(srcdir):*/:/
17493 s/:*\${srcdir}:*/:/
17494 s/:*@srcdir@:*/:/
17495 s/^\([^=]*=[ ]*\):*/\1/
17496 s/:*$//
17497 s/^[^=]*=[ ]*$//
17501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17502 fi # test -n "$CONFIG_FILES"
17504 # Set up the scripts for CONFIG_HEADERS section.
17505 # No need to generate them if there are no CONFIG_HEADERS.
17506 # This happens for instance with `./config.status Makefile'.
17507 if test -n "$CONFIG_HEADERS"; then
17508 cat >"$tmp/defines.awk" <<\_ACAWK ||
17509 BEGIN {
17510 _ACEOF
17512 # Transform confdefs.h into an awk script `defines.awk', embedded as
17513 # here-document in config.status, that substitutes the proper values into
17514 # config.h.in to produce config.h.
17516 # Create a delimiter string that does not exist in confdefs.h, to ease
17517 # handling of long lines.
17518 ac_delim='%!_!# '
17519 for ac_last_try in false false :; do
17520 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17521 if test -z "$ac_t"; then
17522 break
17523 elif $ac_last_try; then
17524 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17525 else
17526 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17528 done
17530 # For the awk script, D is an array of macro values keyed by name,
17531 # likewise P contains macro parameters if any. Preserve backslash
17532 # newline sequences.
17534 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17535 sed -n '
17536 s/.\{148\}/&'"$ac_delim"'/g
17537 t rset
17538 :rset
17539 s/^[ ]*#[ ]*define[ ][ ]*/ /
17540 t def
17542 :def
17543 s/\\$//
17544 t bsnl
17545 s/["\\]/\\&/g
17546 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17547 D["\1"]=" \3"/p
17548 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17550 :bsnl
17551 s/["\\]/\\&/g
17552 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17553 D["\1"]=" \3\\\\\\n"\\/p
17554 t cont
17555 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17556 t cont
17558 :cont
17560 s/.\{148\}/&'"$ac_delim"'/g
17561 t clear
17562 :clear
17563 s/\\$//
17564 t bsnlc
17565 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17567 :bsnlc
17568 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17569 b cont
17570 ' <confdefs.h | sed '
17571 s/'"$ac_delim"'/"\\\
17572 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17575 for (key in D) D_is_set[key] = 1
17576 FS = "\a"
17578 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17579 line = \$ 0
17580 split(line, arg, " ")
17581 if (arg[1] == "#") {
17582 defundef = arg[2]
17583 mac1 = arg[3]
17584 } else {
17585 defundef = substr(arg[1], 2)
17586 mac1 = arg[2]
17588 split(mac1, mac2, "(") #)
17589 macro = mac2[1]
17590 prefix = substr(line, 1, index(line, defundef) - 1)
17591 if (D_is_set[macro]) {
17592 # Preserve the white space surrounding the "#".
17593 print prefix "define", macro P[macro] D[macro]
17594 next
17595 } else {
17596 # Replace #undef with comments. This is necessary, for example,
17597 # in the case of _POSIX_SOURCE, which is predefined and required
17598 # on some systems where configure will not decide to define it.
17599 if (defundef == "undef") {
17600 print "/*", prefix defundef, macro, "*/"
17601 next
17605 { print }
17606 _ACAWK
17607 _ACEOF
17608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17609 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17610 fi # test -n "$CONFIG_HEADERS"
17613 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17614 shift
17615 for ac_tag
17617 case $ac_tag in
17618 :[FHLC]) ac_mode=$ac_tag; continue;;
17619 esac
17620 case $ac_mode$ac_tag in
17621 :[FHL]*:*);;
17622 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17623 :[FH]-) ac_tag=-:-;;
17624 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17625 esac
17626 ac_save_IFS=$IFS
17627 IFS=:
17628 set x $ac_tag
17629 IFS=$ac_save_IFS
17630 shift
17631 ac_file=$1
17632 shift
17634 case $ac_mode in
17635 :L) ac_source=$1;;
17636 :[FH])
17637 ac_file_inputs=
17638 for ac_f
17640 case $ac_f in
17641 -) ac_f="$tmp/stdin";;
17642 *) # Look for the file first in the build tree, then in the source tree
17643 # (if the path is not absolute). The absolute path cannot be DOS-style,
17644 # because $ac_f cannot contain `:'.
17645 test -f "$ac_f" ||
17646 case $ac_f in
17647 [\\/$]*) false;;
17648 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17649 esac ||
17650 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17651 esac
17652 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17653 as_fn_append ac_file_inputs " '$ac_f'"
17654 done
17656 # Let's still pretend it is `configure' which instantiates (i.e., don't
17657 # use $as_me), people would be surprised to read:
17658 # /* config.h. Generated by config.status. */
17659 configure_input='Generated from '`
17660 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17661 `' by configure.'
17662 if test x"$ac_file" != x-; then
17663 configure_input="$ac_file. $configure_input"
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17665 $as_echo "$as_me: creating $ac_file" >&6;}
17667 # Neutralize special characters interpreted by sed in replacement strings.
17668 case $configure_input in #(
17669 *\&* | *\|* | *\\* )
17670 ac_sed_conf_input=`$as_echo "$configure_input" |
17671 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17672 *) ac_sed_conf_input=$configure_input;;
17673 esac
17675 case $ac_tag in
17676 *:-:* | *:-) cat >"$tmp/stdin" \
17677 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17678 esac
17680 esac
17682 ac_dir=`$as_dirname -- "$ac_file" ||
17683 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17684 X"$ac_file" : 'X\(//\)[^/]' \| \
17685 X"$ac_file" : 'X\(//\)$' \| \
17686 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17687 $as_echo X"$ac_file" |
17688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17689 s//\1/
17692 /^X\(\/\/\)[^/].*/{
17693 s//\1/
17696 /^X\(\/\/\)$/{
17697 s//\1/
17700 /^X\(\/\).*/{
17701 s//\1/
17704 s/.*/./; q'`
17705 as_dir="$ac_dir"; as_fn_mkdir_p
17706 ac_builddir=.
17708 case "$ac_dir" in
17709 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17711 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17712 # A ".." for each directory in $ac_dir_suffix.
17713 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17714 case $ac_top_builddir_sub in
17715 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17716 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17717 esac ;;
17718 esac
17719 ac_abs_top_builddir=$ac_pwd
17720 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17721 # for backward compatibility:
17722 ac_top_builddir=$ac_top_build_prefix
17724 case $srcdir in
17725 .) # We are building in place.
17726 ac_srcdir=.
17727 ac_top_srcdir=$ac_top_builddir_sub
17728 ac_abs_top_srcdir=$ac_pwd ;;
17729 [\\/]* | ?:[\\/]* ) # Absolute name.
17730 ac_srcdir=$srcdir$ac_dir_suffix;
17731 ac_top_srcdir=$srcdir
17732 ac_abs_top_srcdir=$srcdir ;;
17733 *) # Relative name.
17734 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17735 ac_top_srcdir=$ac_top_build_prefix$srcdir
17736 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17737 esac
17738 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17741 case $ac_mode in
17744 # CONFIG_FILE
17747 case $INSTALL in
17748 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17749 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17750 esac
17751 ac_MKDIR_P=$MKDIR_P
17752 case $MKDIR_P in
17753 [\\/$]* | ?:[\\/]* ) ;;
17754 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17755 esac
17756 _ACEOF
17758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17759 # If the template does not know about datarootdir, expand it.
17760 # FIXME: This hack should be removed a few years after 2.60.
17761 ac_datarootdir_hack=; ac_datarootdir_seen=
17762 ac_sed_dataroot='
17763 /datarootdir/ {
17767 /@datadir@/p
17768 /@docdir@/p
17769 /@infodir@/p
17770 /@localedir@/p
17771 /@mandir@/p'
17772 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17773 *datarootdir*) ac_datarootdir_seen=yes;;
17774 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17776 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17777 _ACEOF
17778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17779 ac_datarootdir_hack='
17780 s&@datadir@&$datadir&g
17781 s&@docdir@&$docdir&g
17782 s&@infodir@&$infodir&g
17783 s&@localedir@&$localedir&g
17784 s&@mandir@&$mandir&g
17785 s&\\\${datarootdir}&$datarootdir&g' ;;
17786 esac
17787 _ACEOF
17789 # Neutralize VPATH when `$srcdir' = `.'.
17790 # Shell code in configure.ac might set extrasub.
17791 # FIXME: do we really want to maintain this feature?
17792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17793 ac_sed_extra="$ac_vpsub
17794 $extrasub
17795 _ACEOF
17796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17798 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17799 s|@configure_input@|$ac_sed_conf_input|;t t
17800 s&@top_builddir@&$ac_top_builddir_sub&;t t
17801 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17802 s&@srcdir@&$ac_srcdir&;t t
17803 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17804 s&@top_srcdir@&$ac_top_srcdir&;t t
17805 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17806 s&@builddir@&$ac_builddir&;t t
17807 s&@abs_builddir@&$ac_abs_builddir&;t t
17808 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17809 s&@INSTALL@&$ac_INSTALL&;t t
17810 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17811 $ac_datarootdir_hack
17813 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17814 || as_fn_error "could not create $ac_file" "$LINENO" 5
17816 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17817 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17818 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17820 which seems to be undefined. Please make sure it is defined." >&5
17821 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17822 which seems to be undefined. Please make sure it is defined." >&2;}
17824 rm -f "$tmp/stdin"
17825 case $ac_file in
17826 -) cat "$tmp/out" && rm -f "$tmp/out";;
17827 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17828 esac \
17829 || as_fn_error "could not create $ac_file" "$LINENO" 5
17833 # CONFIG_HEADER
17835 if test x"$ac_file" != x-; then
17837 $as_echo "/* $configure_input */" \
17838 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17839 } >"$tmp/config.h" \
17840 || as_fn_error "could not create $ac_file" "$LINENO" 5
17841 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17843 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17844 else
17845 rm -f "$ac_file"
17846 mv "$tmp/config.h" "$ac_file" \
17847 || as_fn_error "could not create $ac_file" "$LINENO" 5
17849 else
17850 $as_echo "/* $configure_input */" \
17851 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17852 || as_fn_error "could not create -" "$LINENO" 5
17854 # Compute "$ac_file"'s index in $config_headers.
17855 _am_arg="$ac_file"
17856 _am_stamp_count=1
17857 for _am_header in $config_headers :; do
17858 case $_am_header in
17859 $_am_arg | $_am_arg:* )
17860 break ;;
17862 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17863 esac
17864 done
17865 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17866 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17867 X"$_am_arg" : 'X\(//\)[^/]' \| \
17868 X"$_am_arg" : 'X\(//\)$' \| \
17869 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17870 $as_echo X"$_am_arg" |
17871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17872 s//\1/
17875 /^X\(\/\/\)[^/].*/{
17876 s//\1/
17879 /^X\(\/\/\)$/{
17880 s//\1/
17883 /^X\(\/\).*/{
17884 s//\1/
17887 s/.*/./; q'`/stamp-h$_am_stamp_count
17890 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17891 $as_echo "$as_me: executing $ac_file commands" >&6;}
17893 esac
17896 case $ac_file$ac_mode in
17897 "default-1":C)
17898 # Only add multilib support code if we just rebuilt the top-level
17899 # Makefile.
17900 case " $CONFIG_FILES " in
17901 *" Makefile "*)
17902 ac_file=Makefile . ${multi_basedir}/config-ml.in
17904 esac ;;
17905 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17906 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17907 # are listed without --file. Let's play safe and only enable the eval
17908 # if we detect the quoting.
17909 case $CONFIG_FILES in
17910 *\'*) eval set x "$CONFIG_FILES" ;;
17911 *) set x $CONFIG_FILES ;;
17912 esac
17913 shift
17914 for mf
17916 # Strip MF so we end up with the name of the file.
17917 mf=`echo "$mf" | sed -e 's/:.*$//'`
17918 # Check whether this is an Automake generated Makefile or not.
17919 # We used to match only the files named `Makefile.in', but
17920 # some people rename them; so instead we look at the file content.
17921 # Grep'ing the first line is not enough: some people post-process
17922 # each Makefile.in and add a new line on top of each file to say so.
17923 # Grep'ing the whole file is not good either: AIX grep has a line
17924 # limit of 2048, but all sed's we know have understand at least 4000.
17925 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17926 dirpart=`$as_dirname -- "$mf" ||
17927 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17928 X"$mf" : 'X\(//\)[^/]' \| \
17929 X"$mf" : 'X\(//\)$' \| \
17930 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17931 $as_echo X"$mf" |
17932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17933 s//\1/
17936 /^X\(\/\/\)[^/].*/{
17937 s//\1/
17940 /^X\(\/\/\)$/{
17941 s//\1/
17944 /^X\(\/\).*/{
17945 s//\1/
17948 s/.*/./; q'`
17949 else
17950 continue
17952 # Extract the definition of DEPDIR, am__include, and am__quote
17953 # from the Makefile without running `make'.
17954 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17955 test -z "$DEPDIR" && continue
17956 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17957 test -z "am__include" && continue
17958 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17959 # When using ansi2knr, U may be empty or an underscore; expand it
17960 U=`sed -n 's/^U = //p' < "$mf"`
17961 # Find all dependency output files, they are included files with
17962 # $(DEPDIR) in their names. We invoke sed twice because it is the
17963 # simplest approach to changing $(DEPDIR) to its actual value in the
17964 # expansion.
17965 for file in `sed -n "
17966 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17967 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17968 # Make sure the directory exists.
17969 test -f "$dirpart/$file" && continue
17970 fdir=`$as_dirname -- "$file" ||
17971 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17972 X"$file" : 'X\(//\)[^/]' \| \
17973 X"$file" : 'X\(//\)$' \| \
17974 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17975 $as_echo X"$file" |
17976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17977 s//\1/
17980 /^X\(\/\/\)[^/].*/{
17981 s//\1/
17984 /^X\(\/\/\)$/{
17985 s//\1/
17988 /^X\(\/\).*/{
17989 s//\1/
17992 s/.*/./; q'`
17993 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17994 # echo "creating $dirpart/$file"
17995 echo '# dummy' > "$dirpart/$file"
17996 done
17997 done
18000 "libtool":C)
18002 # See if we are running on zsh, and set the options which allow our
18003 # commands through without removal of \ escapes.
18004 if test -n "${ZSH_VERSION+set}" ; then
18005 setopt NO_GLOB_SUBST
18008 cfgfile="${ofile}T"
18009 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18010 $RM "$cfgfile"
18012 cat <<_LT_EOF >> "$cfgfile"
18013 #! $SHELL
18015 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18016 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18017 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18018 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18020 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18021 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18022 # Written by Gordon Matzigkeit, 1996
18024 # This file is part of GNU Libtool.
18026 # GNU Libtool is free software; you can redistribute it and/or
18027 # modify it under the terms of the GNU General Public License as
18028 # published by the Free Software Foundation; either version 2 of
18029 # the License, or (at your option) any later version.
18031 # As a special exception to the GNU General Public License,
18032 # if you distribute this file as part of a program or library that
18033 # is built using GNU Libtool, you may include this file under the
18034 # same distribution terms that you use for the rest of that program.
18036 # GNU Libtool is distributed in the hope that it will be useful,
18037 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18038 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18039 # GNU General Public License for more details.
18041 # You should have received a copy of the GNU General Public License
18042 # along with GNU Libtool; see the file COPYING. If not, a copy
18043 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18044 # obtained by writing to the Free Software Foundation, Inc.,
18045 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18048 # The names of the tagged configurations supported by this script.
18049 available_tags="FC "
18051 # ### BEGIN LIBTOOL CONFIG
18053 # Which release of libtool.m4 was used?
18054 macro_version=$macro_version
18055 macro_revision=$macro_revision
18057 # Whether or not to build shared libraries.
18058 build_libtool_libs=$enable_shared
18060 # Whether or not to build static libraries.
18061 build_old_libs=$enable_static
18063 # What type of objects to build.
18064 pic_mode=$pic_mode
18066 # Whether or not to optimize for fast installation.
18067 fast_install=$enable_fast_install
18069 # Shell to use when invoking shell scripts.
18070 SHELL=$lt_SHELL
18072 # An echo program that protects backslashes.
18073 ECHO=$lt_ECHO
18075 # The host system.
18076 host_alias=$host_alias
18077 host=$host
18078 host_os=$host_os
18080 # The build system.
18081 build_alias=$build_alias
18082 build=$build
18083 build_os=$build_os
18085 # A sed program that does not truncate output.
18086 SED=$lt_SED
18088 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18089 Xsed="\$SED -e 1s/^X//"
18091 # A grep program that handles long lines.
18092 GREP=$lt_GREP
18094 # An ERE matcher.
18095 EGREP=$lt_EGREP
18097 # A literal string matcher.
18098 FGREP=$lt_FGREP
18100 # A BSD- or MS-compatible name lister.
18101 NM=$lt_NM
18103 # Whether we need soft or hard links.
18104 LN_S=$lt_LN_S
18106 # What is the maximum length of a command?
18107 max_cmd_len=$max_cmd_len
18109 # Object file suffix (normally "o").
18110 objext=$ac_objext
18112 # Executable file suffix (normally "").
18113 exeext=$exeext
18115 # whether the shell understands "unset".
18116 lt_unset=$lt_unset
18118 # turn spaces into newlines.
18119 SP2NL=$lt_lt_SP2NL
18121 # turn newlines into spaces.
18122 NL2SP=$lt_lt_NL2SP
18124 # An object symbol dumper.
18125 OBJDUMP=$lt_OBJDUMP
18127 # Method to check whether dependent libraries are shared objects.
18128 deplibs_check_method=$lt_deplibs_check_method
18130 # Command to use when deplibs_check_method == "file_magic".
18131 file_magic_cmd=$lt_file_magic_cmd
18133 # The archiver.
18134 AR=$lt_AR
18135 AR_FLAGS=$lt_AR_FLAGS
18137 # A symbol stripping program.
18138 STRIP=$lt_STRIP
18140 # Commands used to install an old-style archive.
18141 RANLIB=$lt_RANLIB
18142 old_postinstall_cmds=$lt_old_postinstall_cmds
18143 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18145 # Whether to use a lock for old archive extraction.
18146 lock_old_archive_extraction=$lock_old_archive_extraction
18148 # A C compiler.
18149 LTCC=$lt_CC
18151 # LTCC compiler flags.
18152 LTCFLAGS=$lt_CFLAGS
18154 # Take the output of nm and produce a listing of raw symbols and C names.
18155 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18157 # Transform the output of nm in a proper C declaration.
18158 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18160 # Transform the output of nm in a C name address pair.
18161 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18163 # Transform the output of nm in a C name address pair when lib prefix is needed.
18164 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18166 # The name of the directory that contains temporary libtool files.
18167 objdir=$objdir
18169 # Used to examine libraries when file_magic_cmd begins with "file".
18170 MAGIC_CMD=$MAGIC_CMD
18172 # Must we lock files when doing compilation?
18173 need_locks=$lt_need_locks
18175 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18176 DSYMUTIL=$lt_DSYMUTIL
18178 # Tool to change global to local symbols on Mac OS X.
18179 NMEDIT=$lt_NMEDIT
18181 # Tool to manipulate fat objects and archives on Mac OS X.
18182 LIPO=$lt_LIPO
18184 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18185 OTOOL=$lt_OTOOL
18187 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18188 OTOOL64=$lt_OTOOL64
18190 # Old archive suffix (normally "a").
18191 libext=$libext
18193 # Shared library suffix (normally ".so").
18194 shrext_cmds=$lt_shrext_cmds
18196 # The commands to extract the exported symbol list from a shared archive.
18197 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18199 # Variables whose values should be saved in libtool wrapper scripts and
18200 # restored at link time.
18201 variables_saved_for_relink=$lt_variables_saved_for_relink
18203 # Do we need the "lib" prefix for modules?
18204 need_lib_prefix=$need_lib_prefix
18206 # Do we need a version for libraries?
18207 need_version=$need_version
18209 # Library versioning type.
18210 version_type=$version_type
18212 # Shared library runtime path variable.
18213 runpath_var=$runpath_var
18215 # Shared library path variable.
18216 shlibpath_var=$shlibpath_var
18218 # Is shlibpath searched before the hard-coded library search path?
18219 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18221 # Format of library name prefix.
18222 libname_spec=$lt_libname_spec
18224 # List of archive names. First name is the real one, the rest are links.
18225 # The last name is the one that the linker finds with -lNAME
18226 library_names_spec=$lt_library_names_spec
18228 # The coded name of the library, if different from the real name.
18229 soname_spec=$lt_soname_spec
18231 # Permission mode override for installation of shared libraries.
18232 install_override_mode=$lt_install_override_mode
18234 # Command to use after installation of a shared archive.
18235 postinstall_cmds=$lt_postinstall_cmds
18237 # Command to use after uninstallation of a shared archive.
18238 postuninstall_cmds=$lt_postuninstall_cmds
18240 # Commands used to finish a libtool library installation in a directory.
18241 finish_cmds=$lt_finish_cmds
18243 # As "finish_cmds", except a single script fragment to be evaled but
18244 # not shown.
18245 finish_eval=$lt_finish_eval
18247 # Whether we should hardcode library paths into libraries.
18248 hardcode_into_libs=$hardcode_into_libs
18250 # Compile-time system search path for libraries.
18251 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18253 # Run-time system search path for libraries.
18254 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18256 # Whether dlopen is supported.
18257 dlopen_support=$enable_dlopen
18259 # Whether dlopen of programs is supported.
18260 dlopen_self=$enable_dlopen_self
18262 # Whether dlopen of statically linked programs is supported.
18263 dlopen_self_static=$enable_dlopen_self_static
18265 # Commands to strip libraries.
18266 old_striplib=$lt_old_striplib
18267 striplib=$lt_striplib
18270 # The linker used to build libraries.
18271 LD=$lt_LD
18273 # How to create reloadable object files.
18274 reload_flag=$lt_reload_flag
18275 reload_cmds=$lt_reload_cmds
18277 # Commands used to build an old-style archive.
18278 old_archive_cmds=$lt_old_archive_cmds
18280 # A language specific compiler.
18281 CC=$lt_compiler
18283 # Is the compiler the GNU compiler?
18284 with_gcc=$GCC
18286 # Compiler flag to turn off builtin functions.
18287 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18289 # How to pass a linker flag through the compiler.
18290 wl=$lt_lt_prog_compiler_wl
18292 # Additional compiler flags for building library objects.
18293 pic_flag=$lt_lt_prog_compiler_pic
18295 # Compiler flag to prevent dynamic linking.
18296 link_static_flag=$lt_lt_prog_compiler_static
18298 # Does compiler simultaneously support -c and -o options?
18299 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18301 # Whether or not to add -lc for building shared libraries.
18302 build_libtool_need_lc=$archive_cmds_need_lc
18304 # Whether or not to disallow shared libs when runtime libs are static.
18305 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18307 # Compiler flag to allow reflexive dlopens.
18308 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18310 # Compiler flag to generate shared objects directly from archives.
18311 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18313 # Whether the compiler copes with passing no objects directly.
18314 compiler_needs_object=$lt_compiler_needs_object
18316 # Create an old-style archive from a shared archive.
18317 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18319 # Create a temporary old-style archive to link instead of a shared archive.
18320 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18322 # Commands used to build a shared archive.
18323 archive_cmds=$lt_archive_cmds
18324 archive_expsym_cmds=$lt_archive_expsym_cmds
18326 # Commands used to build a loadable module if different from building
18327 # a shared archive.
18328 module_cmds=$lt_module_cmds
18329 module_expsym_cmds=$lt_module_expsym_cmds
18331 # Whether we are building with GNU ld or not.
18332 with_gnu_ld=$lt_with_gnu_ld
18334 # Flag that allows shared libraries with undefined symbols to be built.
18335 allow_undefined_flag=$lt_allow_undefined_flag
18337 # Flag that enforces no undefined symbols.
18338 no_undefined_flag=$lt_no_undefined_flag
18340 # Flag to hardcode \$libdir into a binary during linking.
18341 # This must work even if \$libdir does not exist
18342 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18344 # If ld is used when linking, flag to hardcode \$libdir into a binary
18345 # during linking. This must work even if \$libdir does not exist.
18346 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18348 # Whether we need a single "-rpath" flag with a separated argument.
18349 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18351 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18352 # DIR into the resulting binary.
18353 hardcode_direct=$hardcode_direct
18355 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18356 # DIR into the resulting binary and the resulting library dependency is
18357 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18358 # library is relocated.
18359 hardcode_direct_absolute=$hardcode_direct_absolute
18361 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18362 # into the resulting binary.
18363 hardcode_minus_L=$hardcode_minus_L
18365 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18366 # into the resulting binary.
18367 hardcode_shlibpath_var=$hardcode_shlibpath_var
18369 # Set to "yes" if building a shared library automatically hardcodes DIR
18370 # into the library and all subsequent libraries and executables linked
18371 # against it.
18372 hardcode_automatic=$hardcode_automatic
18374 # Set to yes if linker adds runtime paths of dependent libraries
18375 # to runtime path list.
18376 inherit_rpath=$inherit_rpath
18378 # Whether libtool must link a program against all its dependency libraries.
18379 link_all_deplibs=$link_all_deplibs
18381 # Fix the shell variable \$srcfile for the compiler.
18382 fix_srcfile_path=$lt_fix_srcfile_path
18384 # Set to "yes" if exported symbols are required.
18385 always_export_symbols=$always_export_symbols
18387 # The commands to list exported symbols.
18388 export_symbols_cmds=$lt_export_symbols_cmds
18390 # Symbols that should not be listed in the preloaded symbols.
18391 exclude_expsyms=$lt_exclude_expsyms
18393 # Symbols that must always be exported.
18394 include_expsyms=$lt_include_expsyms
18396 # Commands necessary for linking programs (against libraries) with templates.
18397 prelink_cmds=$lt_prelink_cmds
18399 # Specify filename containing input files.
18400 file_list_spec=$lt_file_list_spec
18402 # How to hardcode a shared library path into an executable.
18403 hardcode_action=$hardcode_action
18405 # The directories searched by this compiler when creating a shared library.
18406 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18408 # Dependencies to place before and after the objects being linked to
18409 # create a shared library.
18410 predep_objects=$lt_predep_objects
18411 postdep_objects=$lt_postdep_objects
18412 predeps=$lt_predeps
18413 postdeps=$lt_postdeps
18415 # The library search path used internally by the compiler when linking
18416 # a shared library.
18417 compiler_lib_search_path=$lt_compiler_lib_search_path
18419 # ### END LIBTOOL CONFIG
18421 _LT_EOF
18423 case $host_os in
18424 aix3*)
18425 cat <<\_LT_EOF >> "$cfgfile"
18426 # AIX sometimes has problems with the GCC collect2 program. For some
18427 # reason, if we set the COLLECT_NAMES environment variable, the problems
18428 # vanish in a puff of smoke.
18429 if test "X${COLLECT_NAMES+set}" != Xset; then
18430 COLLECT_NAMES=
18431 export COLLECT_NAMES
18433 _LT_EOF
18435 esac
18438 ltmain="$ac_aux_dir/ltmain.sh"
18441 # We use sed instead of cat because bash on DJGPP gets confused if
18442 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18443 # text mode, it properly converts lines to CR/LF. This bash problem
18444 # is reportedly fixed, but why not run on old versions too?
18445 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18446 || (rm -f "$cfgfile"; exit 1)
18448 case $xsi_shell in
18449 yes)
18450 cat << \_LT_EOF >> "$cfgfile"
18452 # func_dirname file append nondir_replacement
18453 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18454 # otherwise set result to NONDIR_REPLACEMENT.
18455 func_dirname ()
18457 case ${1} in
18458 */*) func_dirname_result="${1%/*}${2}" ;;
18459 * ) func_dirname_result="${3}" ;;
18460 esac
18463 # func_basename file
18464 func_basename ()
18466 func_basename_result="${1##*/}"
18469 # func_dirname_and_basename file append nondir_replacement
18470 # perform func_basename and func_dirname in a single function
18471 # call:
18472 # dirname: Compute the dirname of FILE. If nonempty,
18473 # add APPEND to the result, otherwise set result
18474 # to NONDIR_REPLACEMENT.
18475 # value returned in "$func_dirname_result"
18476 # basename: Compute filename of FILE.
18477 # value retuned in "$func_basename_result"
18478 # Implementation must be kept synchronized with func_dirname
18479 # and func_basename. For efficiency, we do not delegate to
18480 # those functions but instead duplicate the functionality here.
18481 func_dirname_and_basename ()
18483 case ${1} in
18484 */*) func_dirname_result="${1%/*}${2}" ;;
18485 * ) func_dirname_result="${3}" ;;
18486 esac
18487 func_basename_result="${1##*/}"
18490 # func_stripname prefix suffix name
18491 # strip PREFIX and SUFFIX off of NAME.
18492 # PREFIX and SUFFIX must not contain globbing or regex special
18493 # characters, hashes, percent signs, but SUFFIX may contain a leading
18494 # dot (in which case that matches only a dot).
18495 func_stripname ()
18497 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18498 # positional parameters, so assign one to ordinary parameter first.
18499 func_stripname_result=${3}
18500 func_stripname_result=${func_stripname_result#"${1}"}
18501 func_stripname_result=${func_stripname_result%"${2}"}
18504 # func_opt_split
18505 func_opt_split ()
18507 func_opt_split_opt=${1%%=*}
18508 func_opt_split_arg=${1#*=}
18511 # func_lo2o object
18512 func_lo2o ()
18514 case ${1} in
18515 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18516 *) func_lo2o_result=${1} ;;
18517 esac
18520 # func_xform libobj-or-source
18521 func_xform ()
18523 func_xform_result=${1%.*}.lo
18526 # func_arith arithmetic-term...
18527 func_arith ()
18529 func_arith_result=$(( $* ))
18532 # func_len string
18533 # STRING may not start with a hyphen.
18534 func_len ()
18536 func_len_result=${#1}
18539 _LT_EOF
18541 *) # Bourne compatible functions.
18542 cat << \_LT_EOF >> "$cfgfile"
18544 # func_dirname file append nondir_replacement
18545 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18546 # otherwise set result to NONDIR_REPLACEMENT.
18547 func_dirname ()
18549 # Extract subdirectory from the argument.
18550 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18551 if test "X$func_dirname_result" = "X${1}"; then
18552 func_dirname_result="${3}"
18553 else
18554 func_dirname_result="$func_dirname_result${2}"
18558 # func_basename file
18559 func_basename ()
18561 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18565 # func_stripname prefix suffix name
18566 # strip PREFIX and SUFFIX off of NAME.
18567 # PREFIX and SUFFIX must not contain globbing or regex special
18568 # characters, hashes, percent signs, but SUFFIX may contain a leading
18569 # dot (in which case that matches only a dot).
18570 # func_strip_suffix prefix name
18571 func_stripname ()
18573 case ${2} in
18574 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18575 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18576 esac
18579 # sed scripts:
18580 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18581 my_sed_long_arg='1s/^-[^=]*=//'
18583 # func_opt_split
18584 func_opt_split ()
18586 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18587 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18590 # func_lo2o object
18591 func_lo2o ()
18593 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18596 # func_xform libobj-or-source
18597 func_xform ()
18599 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18602 # func_arith arithmetic-term...
18603 func_arith ()
18605 func_arith_result=`expr "$@"`
18608 # func_len string
18609 # STRING may not start with a hyphen.
18610 func_len ()
18612 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18615 _LT_EOF
18616 esac
18618 case $lt_shell_append in
18619 yes)
18620 cat << \_LT_EOF >> "$cfgfile"
18622 # func_append var value
18623 # Append VALUE to the end of shell variable VAR.
18624 func_append ()
18626 eval "$1+=\$2"
18628 _LT_EOF
18631 cat << \_LT_EOF >> "$cfgfile"
18633 # func_append var value
18634 # Append VALUE to the end of shell variable VAR.
18635 func_append ()
18637 eval "$1=\$$1\$2"
18640 _LT_EOF
18642 esac
18645 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18646 || (rm -f "$cfgfile"; exit 1)
18648 mv -f "$cfgfile" "$ofile" ||
18649 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18650 chmod +x "$ofile"
18653 cat <<_LT_EOF >> "$ofile"
18655 # ### BEGIN LIBTOOL TAG CONFIG: FC
18657 # The linker used to build libraries.
18658 LD=$lt_LD_FC
18660 # How to create reloadable object files.
18661 reload_flag=$lt_reload_flag_FC
18662 reload_cmds=$lt_reload_cmds_FC
18664 # Commands used to build an old-style archive.
18665 old_archive_cmds=$lt_old_archive_cmds_FC
18667 # A language specific compiler.
18668 CC=$lt_compiler_FC
18670 # Is the compiler the GNU compiler?
18671 with_gcc=$GCC_FC
18673 # Compiler flag to turn off builtin functions.
18674 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
18676 # How to pass a linker flag through the compiler.
18677 wl=$lt_lt_prog_compiler_wl_FC
18679 # Additional compiler flags for building library objects.
18680 pic_flag=$lt_lt_prog_compiler_pic_FC
18682 # Compiler flag to prevent dynamic linking.
18683 link_static_flag=$lt_lt_prog_compiler_static_FC
18685 # Does compiler simultaneously support -c and -o options?
18686 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
18688 # Whether or not to add -lc for building shared libraries.
18689 build_libtool_need_lc=$archive_cmds_need_lc_FC
18691 # Whether or not to disallow shared libs when runtime libs are static.
18692 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
18694 # Compiler flag to allow reflexive dlopens.
18695 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
18697 # Compiler flag to generate shared objects directly from archives.
18698 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
18700 # Whether the compiler copes with passing no objects directly.
18701 compiler_needs_object=$lt_compiler_needs_object_FC
18703 # Create an old-style archive from a shared archive.
18704 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
18706 # Create a temporary old-style archive to link instead of a shared archive.
18707 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
18709 # Commands used to build a shared archive.
18710 archive_cmds=$lt_archive_cmds_FC
18711 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
18713 # Commands used to build a loadable module if different from building
18714 # a shared archive.
18715 module_cmds=$lt_module_cmds_FC
18716 module_expsym_cmds=$lt_module_expsym_cmds_FC
18718 # Whether we are building with GNU ld or not.
18719 with_gnu_ld=$lt_with_gnu_ld_FC
18721 # Flag that allows shared libraries with undefined symbols to be built.
18722 allow_undefined_flag=$lt_allow_undefined_flag_FC
18724 # Flag that enforces no undefined symbols.
18725 no_undefined_flag=$lt_no_undefined_flag_FC
18727 # Flag to hardcode \$libdir into a binary during linking.
18728 # This must work even if \$libdir does not exist
18729 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
18731 # If ld is used when linking, flag to hardcode \$libdir into a binary
18732 # during linking. This must work even if \$libdir does not exist.
18733 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
18735 # Whether we need a single "-rpath" flag with a separated argument.
18736 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
18738 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18739 # DIR into the resulting binary.
18740 hardcode_direct=$hardcode_direct_FC
18742 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18743 # DIR into the resulting binary and the resulting library dependency is
18744 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18745 # library is relocated.
18746 hardcode_direct_absolute=$hardcode_direct_absolute_FC
18748 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18749 # into the resulting binary.
18750 hardcode_minus_L=$hardcode_minus_L_FC
18752 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18753 # into the resulting binary.
18754 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
18756 # Set to "yes" if building a shared library automatically hardcodes DIR
18757 # into the library and all subsequent libraries and executables linked
18758 # against it.
18759 hardcode_automatic=$hardcode_automatic_FC
18761 # Set to yes if linker adds runtime paths of dependent libraries
18762 # to runtime path list.
18763 inherit_rpath=$inherit_rpath_FC
18765 # Whether libtool must link a program against all its dependency libraries.
18766 link_all_deplibs=$link_all_deplibs_FC
18768 # Fix the shell variable \$srcfile for the compiler.
18769 fix_srcfile_path=$lt_fix_srcfile_path_FC
18771 # Set to "yes" if exported symbols are required.
18772 always_export_symbols=$always_export_symbols_FC
18774 # The commands to list exported symbols.
18775 export_symbols_cmds=$lt_export_symbols_cmds_FC
18777 # Symbols that should not be listed in the preloaded symbols.
18778 exclude_expsyms=$lt_exclude_expsyms_FC
18780 # Symbols that must always be exported.
18781 include_expsyms=$lt_include_expsyms_FC
18783 # Commands necessary for linking programs (against libraries) with templates.
18784 prelink_cmds=$lt_prelink_cmds_FC
18786 # Specify filename containing input files.
18787 file_list_spec=$lt_file_list_spec_FC
18789 # How to hardcode a shared library path into an executable.
18790 hardcode_action=$hardcode_action_FC
18792 # The directories searched by this compiler when creating a shared library.
18793 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
18795 # Dependencies to place before and after the objects being linked to
18796 # create a shared library.
18797 predep_objects=$lt_predep_objects_FC
18798 postdep_objects=$lt_postdep_objects_FC
18799 predeps=$lt_predeps_FC
18800 postdeps=$lt_postdeps_FC
18802 # The library search path used internally by the compiler when linking
18803 # a shared library.
18804 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
18806 # ### END LIBTOOL TAG CONFIG: FC
18807 _LT_EOF
18810 "gstdint.h":C)
18811 if test "$GCC" = yes; then
18812 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18813 else
18814 echo "/* generated for $CC */" > tmp-stdint.h
18817 sed 's/^ *//' >> tmp-stdint.h <<EOF
18819 #ifndef GCC_GENERATED_STDINT_H
18820 #define GCC_GENERATED_STDINT_H 1
18822 #include <sys/types.h>
18825 if test "$acx_cv_header_stdint" != stdint.h; then
18826 echo "#include <stddef.h>" >> tmp-stdint.h
18828 if test "$acx_cv_header_stdint" != stddef.h; then
18829 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18832 sed 's/^ *//' >> tmp-stdint.h <<EOF
18833 /* glibc uses these symbols as guards to prevent redefinitions. */
18834 #ifdef __int8_t_defined
18835 #define _INT8_T
18836 #define _INT16_T
18837 #define _INT32_T
18838 #endif
18839 #ifdef __uint32_t_defined
18840 #define _UINT32_T
18841 #endif
18845 # ----------------- done header, emit basic int types -------------
18846 if test "$acx_cv_header_stdint" = stddef.h; then
18847 sed 's/^ *//' >> tmp-stdint.h <<EOF
18849 #ifndef _UINT8_T
18850 #define _UINT8_T
18851 #ifndef __uint8_t_defined
18852 #define __uint8_t_defined
18853 #ifndef uint8_t
18854 typedef unsigned $acx_cv_type_int8_t uint8_t;
18855 #endif
18856 #endif
18857 #endif
18859 #ifndef _UINT16_T
18860 #define _UINT16_T
18861 #ifndef __uint16_t_defined
18862 #define __uint16_t_defined
18863 #ifndef uint16_t
18864 typedef unsigned $acx_cv_type_int16_t uint16_t;
18865 #endif
18866 #endif
18867 #endif
18869 #ifndef _UINT32_T
18870 #define _UINT32_T
18871 #ifndef __uint32_t_defined
18872 #define __uint32_t_defined
18873 #ifndef uint32_t
18874 typedef unsigned $acx_cv_type_int32_t uint32_t;
18875 #endif
18876 #endif
18877 #endif
18879 #ifndef _INT8_T
18880 #define _INT8_T
18881 #ifndef __int8_t_defined
18882 #define __int8_t_defined
18883 #ifndef int8_t
18884 typedef $acx_cv_type_int8_t int8_t;
18885 #endif
18886 #endif
18887 #endif
18889 #ifndef _INT16_T
18890 #define _INT16_T
18891 #ifndef __int16_t_defined
18892 #define __int16_t_defined
18893 #ifndef int16_t
18894 typedef $acx_cv_type_int16_t int16_t;
18895 #endif
18896 #endif
18897 #endif
18899 #ifndef _INT32_T
18900 #define _INT32_T
18901 #ifndef __int32_t_defined
18902 #define __int32_t_defined
18903 #ifndef int32_t
18904 typedef $acx_cv_type_int32_t int32_t;
18905 #endif
18906 #endif
18907 #endif
18909 elif test "$ac_cv_type_u_int32_t" = yes; then
18910 sed 's/^ *//' >> tmp-stdint.h <<EOF
18912 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18913 #ifndef _INT8_T
18914 #define _INT8_T
18915 #endif
18916 #ifndef _INT16_T
18917 #define _INT16_T
18918 #endif
18919 #ifndef _INT32_T
18920 #define _INT32_T
18921 #endif
18923 #ifndef _UINT8_T
18924 #define _UINT8_T
18925 #ifndef __uint8_t_defined
18926 #define __uint8_t_defined
18927 #ifndef uint8_t
18928 typedef u_int8_t uint8_t;
18929 #endif
18930 #endif
18931 #endif
18933 #ifndef _UINT16_T
18934 #define _UINT16_T
18935 #ifndef __uint16_t_defined
18936 #define __uint16_t_defined
18937 #ifndef uint16_t
18938 typedef u_int16_t uint16_t;
18939 #endif
18940 #endif
18941 #endif
18943 #ifndef _UINT32_T
18944 #define _UINT32_T
18945 #ifndef __uint32_t_defined
18946 #define __uint32_t_defined
18947 #ifndef uint32_t
18948 typedef u_int32_t uint32_t;
18949 #endif
18950 #endif
18951 #endif
18953 else
18954 sed 's/^ *//' >> tmp-stdint.h <<EOF
18956 /* Some systems have guard macros to prevent redefinitions, define them. */
18957 #ifndef _INT8_T
18958 #define _INT8_T
18959 #endif
18960 #ifndef _INT16_T
18961 #define _INT16_T
18962 #endif
18963 #ifndef _INT32_T
18964 #define _INT32_T
18965 #endif
18966 #ifndef _UINT8_T
18967 #define _UINT8_T
18968 #endif
18969 #ifndef _UINT16_T
18970 #define _UINT16_T
18971 #endif
18972 #ifndef _UINT32_T
18973 #define _UINT32_T
18974 #endif
18978 # ------------- done basic int types, emit int64_t types ------------
18979 if test "$ac_cv_type_uint64_t" = yes; then
18980 sed 's/^ *//' >> tmp-stdint.h <<EOF
18982 /* system headers have good uint64_t and int64_t */
18983 #ifndef _INT64_T
18984 #define _INT64_T
18985 #endif
18986 #ifndef _UINT64_T
18987 #define _UINT64_T
18988 #endif
18990 elif test "$ac_cv_type_u_int64_t" = yes; then
18991 sed 's/^ *//' >> tmp-stdint.h <<EOF
18993 /* system headers have an u_int64_t (and int64_t) */
18994 #ifndef _INT64_T
18995 #define _INT64_T
18996 #endif
18997 #ifndef _UINT64_T
18998 #define _UINT64_T
18999 #ifndef __uint64_t_defined
19000 #define __uint64_t_defined
19001 #ifndef uint64_t
19002 typedef u_int64_t uint64_t;
19003 #endif
19004 #endif
19005 #endif
19007 elif test -n "$acx_cv_type_int64_t"; then
19008 sed 's/^ *//' >> tmp-stdint.h <<EOF
19010 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19011 #ifndef _INT64_T
19012 #define _INT64_T
19013 #ifndef int64_t
19014 typedef $acx_cv_type_int64_t int64_t;
19015 #endif
19016 #endif
19017 #ifndef _UINT64_T
19018 #define _UINT64_T
19019 #ifndef __uint64_t_defined
19020 #define __uint64_t_defined
19021 #ifndef uint64_t
19022 typedef unsigned $acx_cv_type_int64_t uint64_t;
19023 #endif
19024 #endif
19025 #endif
19027 else
19028 sed 's/^ *//' >> tmp-stdint.h <<EOF
19030 /* some common heuristics for int64_t, using compiler-specific tests */
19031 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19032 #ifndef _INT64_T
19033 #define _INT64_T
19034 #ifndef __int64_t_defined
19035 #ifndef int64_t
19036 typedef long long int64_t;
19037 #endif
19038 #endif
19039 #endif
19040 #ifndef _UINT64_T
19041 #define _UINT64_T
19042 #ifndef uint64_t
19043 typedef unsigned long long uint64_t;
19044 #endif
19045 #endif
19047 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19048 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19049 does not implement __extension__. But that compiler doesn't define
19050 __GNUC_MINOR__. */
19051 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19052 # define __extension__
19053 # endif
19055 # ifndef _INT64_T
19056 # define _INT64_T
19057 # ifndef int64_t
19058 __extension__ typedef long long int64_t;
19059 # endif
19060 # endif
19061 # ifndef _UINT64_T
19062 # define _UINT64_T
19063 # ifndef uint64_t
19064 __extension__ typedef unsigned long long uint64_t;
19065 # endif
19066 # endif
19068 #elif !defined __STRICT_ANSI__
19069 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19071 # ifndef _INT64_T
19072 # define _INT64_T
19073 # ifndef int64_t
19074 typedef __int64 int64_t;
19075 # endif
19076 # endif
19077 # ifndef _UINT64_T
19078 # define _UINT64_T
19079 # ifndef uint64_t
19080 typedef unsigned __int64 uint64_t;
19081 # endif
19082 # endif
19083 # endif /* compiler */
19085 #endif /* ANSI version */
19089 # ------------- done int64_t types, emit intptr types ------------
19090 if test "$ac_cv_type_uintptr_t" != yes; then
19091 sed 's/^ *//' >> tmp-stdint.h <<EOF
19093 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19094 #ifndef __uintptr_t_defined
19095 #ifndef uintptr_t
19096 typedef u$acx_cv_type_intptr_t uintptr_t;
19097 #endif
19098 #endif
19099 #ifndef __intptr_t_defined
19100 #ifndef intptr_t
19101 typedef $acx_cv_type_intptr_t intptr_t;
19102 #endif
19103 #endif
19107 # ------------- done intptr types, emit int_least types ------------
19108 if test "$ac_cv_type_int_least32_t" != yes; then
19109 sed 's/^ *//' >> tmp-stdint.h <<EOF
19111 /* Define int_least types */
19112 typedef int8_t int_least8_t;
19113 typedef int16_t int_least16_t;
19114 typedef int32_t int_least32_t;
19115 #ifdef _INT64_T
19116 typedef int64_t int_least64_t;
19117 #endif
19119 typedef uint8_t uint_least8_t;
19120 typedef uint16_t uint_least16_t;
19121 typedef uint32_t uint_least32_t;
19122 #ifdef _UINT64_T
19123 typedef uint64_t uint_least64_t;
19124 #endif
19128 # ------------- done intptr types, emit int_fast types ------------
19129 if test "$ac_cv_type_int_fast32_t" != yes; then
19130 sed 's/^ *//' >> tmp-stdint.h <<EOF
19132 /* Define int_fast types. short is often slow */
19133 typedef int8_t int_fast8_t;
19134 typedef int int_fast16_t;
19135 typedef int32_t int_fast32_t;
19136 #ifdef _INT64_T
19137 typedef int64_t int_fast64_t;
19138 #endif
19140 typedef uint8_t uint_fast8_t;
19141 typedef unsigned int uint_fast16_t;
19142 typedef uint32_t uint_fast32_t;
19143 #ifdef _UINT64_T
19144 typedef uint64_t uint_fast64_t;
19145 #endif
19149 if test "$ac_cv_type_uintmax_t" != yes; then
19150 sed 's/^ *//' >> tmp-stdint.h <<EOF
19152 /* Define intmax based on what we found */
19153 #ifndef intmax_t
19154 #ifdef _INT64_T
19155 typedef int64_t intmax_t;
19156 #else
19157 typedef long intmax_t;
19158 #endif
19159 #endif
19160 #ifndef uintmax_t
19161 #ifdef _UINT64_T
19162 typedef uint64_t uintmax_t;
19163 #else
19164 typedef unsigned long uintmax_t;
19165 #endif
19166 #endif
19170 sed 's/^ *//' >> tmp-stdint.h <<EOF
19172 #endif /* GCC_GENERATED_STDINT_H */
19175 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19176 rm -f tmp-stdint.h
19177 else
19178 mv -f tmp-stdint.h gstdint.h
19183 esac
19184 done # for ac_tag
19187 as_fn_exit 0
19188 _ACEOF
19189 ac_clean_files=$ac_clean_files_save
19191 test $ac_write_fail = 0 ||
19192 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19195 # configure is writing to config.log, and then calls config.status.
19196 # config.status does its own redirection, appending to config.log.
19197 # Unfortunately, on DOS this fails, as config.log is still kept open
19198 # by configure, so config.status won't be able to write to it; its
19199 # output is simply discarded. So we exec the FD to /dev/null,
19200 # effectively closing config.log, so it can be properly (re)opened and
19201 # appended to by config.status. When coming back to configure, we
19202 # need to make the FD available again.
19203 if test "$no_create" != yes; then
19204 ac_cs_success=:
19205 ac_config_status_args=
19206 test "$silent" = yes &&
19207 ac_config_status_args="$ac_config_status_args --quiet"
19208 exec 5>/dev/null
19209 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19210 exec 5>>config.log
19211 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19212 # would make configure fail if this is the last instruction.
19213 $ac_cs_success || as_fn_exit $?
19215 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19217 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}