Update ChangeLog and version files for release
[official-gcc.git] / libgomp / configure
blob8d03eb6cddce92e57e0b755a6cdce8a599ade488
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Offloading and Multi Processing 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 Offloading and Multi Processing Runtime Library'
558 PACKAGE_TARNAME='libgomp'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU Offloading and Multi Processing 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_SUN_FALSE
623 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
624 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
625 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
626 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
627 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
628 OPT_LDFLAGS
629 SECTION_LDFLAGS
630 PLUGIN_HSA_FALSE
631 PLUGIN_HSA_TRUE
632 PLUGIN_NVPTX_FALSE
633 PLUGIN_NVPTX_TRUE
634 offload_additional_lib_paths
635 offload_additional_options
636 PLUGIN_HSA_LIBS
637 PLUGIN_HSA_LDFLAGS
638 PLUGIN_HSA_CPPFLAGS
639 PLUGIN_HSA
640 HSA_KMT_LIB
641 HSA_RUNTIME_LIB
642 HSA_RUNTIME_INCLUDE
643 PLUGIN_NVPTX_LIBS
644 PLUGIN_NVPTX_LDFLAGS
645 PLUGIN_NVPTX_CPPFLAGS
646 PLUGIN_NVPTX
647 CUDA_DRIVER_LIB
648 CUDA_DRIVER_INCLUDE
649 offload_targets
650 libtool_VERSION
651 ac_ct_FC
652 FCFLAGS
654 MAINT
655 MAINTAINER_MODE_FALSE
656 MAINTAINER_MODE_TRUE
657 enable_static
658 enable_shared
659 lt_host_flags
661 OTOOL64
662 OTOOL
663 LIPO
664 NMEDIT
665 DSYMUTIL
666 OBJDUMP
667 LN_S
669 ac_ct_DUMPBIN
670 DUMPBIN
672 FGREP
673 EGREP
674 GREP
676 LIBTOOL
677 BUILD_INFO_FALSE
678 BUILD_INFO_TRUE
679 PERL
680 RANLIB
682 am__fastdepCC_FALSE
683 am__fastdepCC_TRUE
684 CCDEPMODE
685 am__nodep
686 AMDEPBACKSLASH
687 AMDEP_FALSE
688 AMDEP_TRUE
689 am__quote
690 am__include
691 DEPDIR
692 OBJEXT
693 EXEEXT
694 ac_ct_CC
695 CPPFLAGS
696 LDFLAGS
697 CFLAGS
699 toolexeclibdir
700 toolexecdir
701 multi_basedir
702 am__untar
703 am__tar
704 AMTAR
705 am__leading_dot
706 SET_MAKE
708 mkdir_p
709 MKDIR_P
710 INSTALL_STRIP_PROGRAM
711 STRIP
712 install_sh
713 MAKEINFO
714 AUTOHEADER
715 AUTOMAKE
716 AUTOCONF
717 ACLOCAL
718 VERSION
719 PACKAGE
720 CYGPATH_W
721 am__isrc
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 target_os
726 target_vendor
727 target_cpu
728 target
729 host_os
730 host_vendor
731 host_cpu
732 host
733 build_os
734 build_vendor
735 build_cpu
736 build
737 GENINSRC_FALSE
738 GENINSRC_TRUE
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL'
777 ac_subst_files=''
778 ac_user_opts='
779 enable_option_checking
780 enable_version_specific_runtime_libs
781 enable_generated_files_in_srcdir
782 enable_multilib
783 enable_dependency_tracking
784 enable_shared
785 enable_static
786 with_pic
787 enable_fast_install
788 with_gnu_ld
789 enable_libtool_lock
790 enable_maintainer_mode
791 with_cuda_driver
792 with_cuda_driver_include
793 with_cuda_driver_lib
794 with_hsa_runtime
795 with_hsa_runtime_include
796 with_hsa_runtime_lib
797 with_hsa_kmt_lib
798 enable_linux_futex
799 enable_tls
800 enable_symvers
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
806 CPPFLAGS
808 FCFLAGS
809 LDFLAGS
810 LIBS'
813 # Initialize some variables set by options.
814 ac_init_help=
815 ac_init_version=false
816 ac_unrecognized_opts=
817 ac_unrecognized_sep=
818 # The variables have the same names as the options, with
819 # dashes changed to underlines.
820 cache_file=/dev/null
821 exec_prefix=NONE
822 no_create=
823 no_recursion=
824 prefix=NONE
825 program_prefix=NONE
826 program_suffix=NONE
827 program_transform_name=s,x,x,
828 silent=
829 site=
830 srcdir=
831 verbose=
832 x_includes=NONE
833 x_libraries=NONE
835 # Installation directory options.
836 # These are left unexpanded so users can "make install exec_prefix=/foo"
837 # and all the variables that are supposed to be based on exec_prefix
838 # by default will actually change.
839 # Use braces instead of parens because sh, perl, etc. also accept them.
840 # (The list follows the same order as the GNU Coding Standards.)
841 bindir='${exec_prefix}/bin'
842 sbindir='${exec_prefix}/sbin'
843 libexecdir='${exec_prefix}/libexec'
844 datarootdir='${prefix}/share'
845 datadir='${datarootdir}'
846 sysconfdir='${prefix}/etc'
847 sharedstatedir='${prefix}/com'
848 localstatedir='${prefix}/var'
849 includedir='${prefix}/include'
850 oldincludedir='/usr/include'
851 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852 infodir='${datarootdir}/info'
853 htmldir='${docdir}'
854 dvidir='${docdir}'
855 pdfdir='${docdir}'
856 psdir='${docdir}'
857 libdir='${exec_prefix}/lib'
858 localedir='${datarootdir}/locale'
859 mandir='${datarootdir}/man'
861 ac_prev=
862 ac_dashdash=
863 for ac_option
865 # If the previous option needs an argument, assign it.
866 if test -n "$ac_prev"; then
867 eval $ac_prev=\$ac_option
868 ac_prev=
869 continue
872 case $ac_option in
873 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874 *) ac_optarg=yes ;;
875 esac
877 # Accept the important Cygnus configure options, so we can diagnose typos.
879 case $ac_dashdash$ac_option in
881 ac_dashdash=yes ;;
883 -bindir | --bindir | --bindi | --bind | --bin | --bi)
884 ac_prev=bindir ;;
885 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886 bindir=$ac_optarg ;;
888 -build | --build | --buil | --bui | --bu)
889 ac_prev=build_alias ;;
890 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891 build_alias=$ac_optarg ;;
893 -cache-file | --cache-file | --cache-fil | --cache-fi \
894 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895 ac_prev=cache_file ;;
896 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898 cache_file=$ac_optarg ;;
900 --config-cache | -C)
901 cache_file=config.cache ;;
903 -datadir | --datadir | --datadi | --datad)
904 ac_prev=datadir ;;
905 -datadir=* | --datadir=* | --datadi=* | --datad=*)
906 datadir=$ac_optarg ;;
908 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909 | --dataroo | --dataro | --datar)
910 ac_prev=datarootdir ;;
911 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913 datarootdir=$ac_optarg ;;
915 -disable-* | --disable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=no ;;
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
941 -enable-* | --enable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=\$ac_optarg ;;
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
968 with_gas=yes ;;
970 -help | --help | --hel | --he | -h)
971 ac_init_help=long ;;
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983 ac_prev=htmldir ;;
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985 | --ht=*)
986 htmldir=$ac_optarg ;;
988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
996 ac_prev=infodir ;;
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
1000 -libdir | --libdir | --libdi | --libd)
1001 ac_prev=libdir ;;
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1017 -localstatedir | --localstatedir | --localstatedi | --localstated \
1018 | --localstate | --localstat | --localsta | --localst | --locals)
1019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022 localstatedir=$ac_optarg ;;
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025 ac_prev=mandir ;;
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1031 with_fp=no ;;
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1035 no_create=yes ;;
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 no_recursion=yes ;;
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051 ac_prev=prefix ;;
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087 ac_prev=pdfdir ;;
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1091 -psdir | --psdir | --psdi | --psd | --ps)
1092 ac_prev=psdir ;;
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 psdir=$ac_optarg ;;
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1098 silent=yes ;;
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101 ac_prev=sbindir ;;
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103 | --sbi=* | --sb=*)
1104 sbindir=$ac_optarg ;;
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1109 | --sha | --sh)
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114 | --sha=* | --sh=*)
1115 sharedstatedir=$ac_optarg ;;
1117 -site | --site | --sit)
1118 ac_prev=site ;;
1119 -site=* | --site=* | --sit=*)
1120 site=$ac_optarg ;;
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123 ac_prev=srcdir ;;
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 verbose=yes ;;
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1145 -with-* | --with-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=\$ac_optarg ;;
1161 -without-* | --without-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=no ;;
1177 --x)
1178 # Obsolete; use --with-x.
1179 with_x=yes ;;
1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182 | --x-incl | --x-inc | --x-in | --x-i)
1183 ac_prev=x_includes ;;
1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186 x_includes=$ac_optarg ;;
1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190 ac_prev=x_libraries ;;
1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193 x_libraries=$ac_optarg ;;
1195 -*) as_fn_error "unrecognized option: \`$ac_option'
1196 Try \`$0 --help' for more information."
1199 *=*)
1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201 # Reject names that are not valid shell variable names.
1202 case $ac_envvar in #(
1203 '' | [0-9]* | *[!_$as_cr_alnum]* )
1204 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1205 esac
1206 eval $ac_envvar=\$ac_optarg
1207 export $ac_envvar ;;
1210 # FIXME: should be removed in autoconf 3.0.
1211 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1214 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1217 esac
1218 done
1220 if test -n "$ac_prev"; then
1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222 as_fn_error "missing argument to $ac_option"
1225 if test -n "$ac_unrecognized_opts"; then
1226 case $enable_option_checking in
1227 no) ;;
1228 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1229 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230 esac
1233 # Check all directory arguments for consistency.
1234 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235 datadir sysconfdir sharedstatedir localstatedir includedir \
1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237 libdir localedir mandir
1239 eval ac_val=\$$ac_var
1240 # Remove trailing slashes.
1241 case $ac_val in
1242 */ )
1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244 eval $ac_var=\$ac_val;;
1245 esac
1246 # Be sure to have absolute directory names.
1247 case $ac_val in
1248 [\\/$]* | ?:[\\/]* ) continue;;
1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250 esac
1251 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1252 done
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1257 build=$build_alias
1258 host=$host_alias
1259 target=$target_alias
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263 if test "x$build_alias" = x; then
1264 cross_compiling=maybe
1265 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1266 If a cross compiler is detected then cross compile mode will be used." >&2
1267 elif test "x$build_alias" != "x$host_alias"; then
1268 cross_compiling=yes
1272 ac_tool_prefix=
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275 test "$silent" = yes && exec 6>/dev/null
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281 as_fn_error "working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 as_fn_error "pwd does not report name of working directory"
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 $as_echo X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 s//\1/
1300 /^X\(\/\/\)[^/].*/{
1301 s//\1/
1304 /^X\(\/\/\)$/{
1305 s//\1/
1308 /^X\(\/\).*/{
1309 s//\1/
1312 s/.*/./; q'`
1313 srcdir=$ac_confdir
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 srcdir=..
1317 else
1318 ac_srcdir_defaulted=no
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325 ac_abs_confdir=`(
1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1327 pwd)`
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 srcdir=.
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1335 case $srcdir in
1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 esac
1338 for ac_var in $ac_precious_vars; do
1339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_${ac_var}_value=\$${ac_var}
1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343 done
1346 # Report the --help message.
1348 if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1351 cat <<_ACEOF
1352 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE. See below for descriptions of some of the useful variables.
1359 Defaults for the options are specified in brackets.
1361 Configuration:
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
1366 -q, --quiet, --silent do not print \`checking...' messages
1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for \`--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372 Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
1374 [$ac_default_prefix]
1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 [PREFIX]
1378 By default, \`make install' will install all the files in
1379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381 for instance \`--prefix=\$HOME'.
1383 For better control, use the options below.
1385 Fine tuning of the installation directories:
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1405 _ACEOF
1407 cat <<\_ACEOF
1409 Program names:
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1414 System types:
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 --target=TARGET configure for building compilers for TARGET [HOST]
1418 _ACEOF
1421 if test -n "$ac_init_help"; then
1422 case $ac_init_help in
1423 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1424 esac
1425 cat <<\_ACEOF
1427 Optional Features:
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --enable-version-specific-runtime-libs
1432 Specify that runtime libraries should be installed
1433 in a compiler-specific directory [default=no]
1434 --enable-generated-files-in-srcdir
1435 put copies of generated files in source dir intended
1436 for creating source tarballs for users without
1437 texinfo bison or flex. [default=no]
1438 --enable-multilib build many library versions (default)
1439 --disable-dependency-tracking speeds up one-time build
1440 --enable-dependency-tracking do not reject slow dependency extractors
1441 --enable-shared[=PKGS] build shared libraries [default=yes]
1442 --enable-static[=PKGS] build static libraries [default=yes]
1443 --enable-fast-install[=PKGS]
1444 optimize for fast installation [default=yes]
1445 --disable-libtool-lock avoid locking (might break parallel builds)
1446 --enable-maintainer-mode enable make rules and dependencies not useful
1447 (and sometimes confusing) to the casual installer
1448 --enable-linux-futex use the Linux futex system call [default=default]
1449 --enable-tls Use thread-local storage [default=yes]
1450 --enable-symvers=STYLE enables symbol versioning of the shared library
1451 [default=yes]
1453 Optional Packages:
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1456 --with-pic try to use only PIC/non-PIC objects [default=use
1457 both]
1458 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1459 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1460 package. Equivalent to
1461 --with-cuda-driver-include=PATH/include plus
1462 --with-cuda-driver-lib=PATH/lib
1463 --with-cuda-driver-include=PATH
1464 specify directory for installed CUDA driver include
1465 files
1466 --with-cuda-driver-lib=PATH
1467 specify directory for the installed CUDA driver
1468 library
1469 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1470 package. Equivalent to
1471 --with-hsa-runtime-include=PATH/include plus
1472 --with-hsa-runtime-lib=PATH/lib
1473 --with-hsa-runtime-include=PATH
1474 specify directory for installed HSA run-time include
1475 files
1476 --with-hsa-runtime-lib=PATH
1477 specify directory for the installed HSA run-time
1478 library
1479 --with-hsa-kmt-lib=PATH specify directory for installed HSA KMT library.
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 LIBS libraries to pass to the linker, e.g. -l<library>
1487 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
1489 CPP C preprocessor
1490 FC Fortran compiler command
1491 FCFLAGS Fortran compiler flags
1493 Use these variables to override the choices made by `configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1496 Report bugs to the package provider.
1497 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1498 General help using GNU software: <http://www.gnu.org/gethelp/>.
1499 _ACEOF
1500 ac_status=$?
1503 if test "$ac_init_help" = "recursive"; then
1504 # If there are subdirs, report their specific --help.
1505 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506 test -d "$ac_dir" ||
1507 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1508 continue
1509 ac_builddir=.
1511 case "$ac_dir" in
1512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1515 # A ".." for each directory in $ac_dir_suffix.
1516 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1517 case $ac_top_builddir_sub in
1518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520 esac ;;
1521 esac
1522 ac_abs_top_builddir=$ac_pwd
1523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524 # for backward compatibility:
1525 ac_top_builddir=$ac_top_build_prefix
1527 case $srcdir in
1528 .) # We are building in place.
1529 ac_srcdir=.
1530 ac_top_srcdir=$ac_top_builddir_sub
1531 ac_abs_top_srcdir=$ac_pwd ;;
1532 [\\/]* | ?:[\\/]* ) # Absolute name.
1533 ac_srcdir=$srcdir$ac_dir_suffix;
1534 ac_top_srcdir=$srcdir
1535 ac_abs_top_srcdir=$srcdir ;;
1536 *) # Relative name.
1537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538 ac_top_srcdir=$ac_top_build_prefix$srcdir
1539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540 esac
1541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543 cd "$ac_dir" || { ac_status=$?; continue; }
1544 # Check for guested configure.
1545 if test -f "$ac_srcdir/configure.gnu"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548 elif test -f "$ac_srcdir/configure"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure" --help=recursive
1551 else
1552 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553 fi || ac_status=$?
1554 cd "$ac_pwd" || { ac_status=$?; break; }
1555 done
1558 test -n "$ac_init_help" && exit $ac_status
1559 if $ac_init_version; then
1560 cat <<\_ACEOF
1561 GNU Offloading and Multi Processing Runtime Library configure 1.0
1562 generated by GNU Autoconf 2.64
1564 Copyright (C) 2009 Free Software Foundation, Inc.
1565 This configure script is free software; the Free Software Foundation
1566 gives unlimited permission to copy, distribute and modify it.
1567 _ACEOF
1568 exit
1571 ## ------------------------ ##
1572 ## Autoconf initialization. ##
1573 ## ------------------------ ##
1575 # ac_fn_c_try_compile LINENO
1576 # --------------------------
1577 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_compile ()
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext
1582 if { { ac_try="$ac_compile"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_compile") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest.$ac_objext; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1606 ac_retval=1
1608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1609 return $ac_retval
1611 } # ac_fn_c_try_compile
1613 # ac_fn_c_try_link LINENO
1614 # -----------------------
1615 # Try to link conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_link ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext conftest$ac_exeext
1620 if { { ac_try="$ac_link"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_link") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest$ac_exeext && {
1639 test "$cross_compiling" = yes ||
1640 $as_test_x conftest$ac_exeext
1641 }; then :
1642 ac_retval=0
1643 else
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1647 ac_retval=1
1649 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1650 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1651 # interfere with the next link command; also delete a directory that is
1652 # left behind by Apple's compiler. We do this before executing the actions.
1653 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1654 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655 return $ac_retval
1657 } # ac_fn_c_try_link
1659 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1660 # -------------------------------------------------------
1661 # Tests whether HEADER exists and can be compiled using the include files in
1662 # INCLUDES, setting the cache variable VAR accordingly.
1663 ac_fn_c_check_header_compile ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1667 $as_echo_n "checking for $2... " >&6; }
1668 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1669 $as_echo_n "(cached) " >&6
1670 else
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1674 #include <$2>
1675 _ACEOF
1676 if ac_fn_c_try_compile "$LINENO"; then :
1677 eval "$3=yes"
1678 else
1679 eval "$3=no"
1681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 eval ac_res=\$$3
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685 $as_echo "$ac_res" >&6; }
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688 } # ac_fn_c_check_header_compile
1690 # ac_fn_c_try_cpp LINENO
1691 # ----------------------
1692 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_cpp ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_cpp conftest.$ac_ext"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } >/dev/null && {
1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 }; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1720 ac_retval=1
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 return $ac_retval
1725 } # ac_fn_c_try_cpp
1727 # ac_fn_c_try_run LINENO
1728 # ----------------------
1729 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1730 # that executables *can* be run.
1731 ac_fn_c_try_run ()
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { { ac_try="$ac_link"
1735 case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_link") 2>&5
1742 ac_status=$?
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1745 { { case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_try") 2>&5
1752 ac_status=$?
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; }; }; then :
1755 ac_retval=0
1756 else
1757 $as_echo "$as_me: program exited with status $ac_status" >&5
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1761 ac_retval=$ac_status
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 return $ac_retval
1767 } # ac_fn_c_try_run
1769 # ac_fn_c_check_func LINENO FUNC VAR
1770 # ----------------------------------
1771 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1772 ac_fn_c_check_func ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1778 $as_echo_n "(cached) " >&6
1779 else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1784 #define $2 innocuous_$2
1786 /* System header to define __stub macros and hopefully few prototypes,
1787 which can conflict with char $2 (); below.
1788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1789 <limits.h> exists even on freestanding compilers. */
1791 #ifdef __STDC__
1792 # include <limits.h>
1793 #else
1794 # include <assert.h>
1795 #endif
1797 #undef $2
1799 /* Override any GCC internal prototype to avoid an error.
1800 Use char because int might match the return type of a GCC
1801 builtin and then its argument prototype would still apply. */
1802 #ifdef __cplusplus
1803 extern "C"
1804 #endif
1805 char $2 ();
1806 /* The GNU C library defines this for functions which it implements
1807 to always fail with ENOSYS. Some functions are actually named
1808 something starting with __ and the normal name is an alias. */
1809 #if defined __stub_$2 || defined __stub___$2
1810 choke me
1811 #endif
1814 main ()
1816 return $2 ();
1818 return 0;
1820 _ACEOF
1821 if ac_fn_c_try_link "$LINENO"; then :
1822 eval "$3=yes"
1823 else
1824 eval "$3=no"
1826 rm -f core conftest.err conftest.$ac_objext \
1827 conftest$ac_exeext conftest.$ac_ext
1829 eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 } # ac_fn_c_check_func
1836 # ac_fn_fc_try_compile LINENO
1837 # ---------------------------
1838 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_fc_try_compile ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext
1843 if { { ac_try="$ac_compile"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_compile") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_fc_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest.$ac_objext; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 ac_retval=1
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 return $ac_retval
1872 } # ac_fn_fc_try_compile
1874 # ac_fn_fc_try_link LINENO
1875 # ------------------------
1876 # Try to link conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_fc_try_link ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext conftest$ac_exeext
1881 if { { ac_try="$ac_link"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_link") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_fc_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest$ac_exeext && {
1900 test "$cross_compiling" = yes ||
1901 $as_test_x conftest$ac_exeext
1902 }; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1908 ac_retval=1
1910 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1911 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1912 # interfere with the next link command; also delete a directory that is
1913 # left behind by Apple's compiler. We do this before executing the actions.
1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916 return $ac_retval
1918 } # ac_fn_fc_try_link
1920 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1921 # -------------------------------------------------------
1922 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1923 # the include files in INCLUDES and setting the cache variable VAR
1924 # accordingly.
1925 ac_fn_c_check_header_mongrel ()
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1932 $as_echo_n "(cached) " >&6
1934 eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 else
1938 # Is the header compilable?
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1940 $as_echo_n "checking $2 usability... " >&6; }
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1944 #include <$2>
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"; then :
1947 ac_header_compiler=yes
1948 else
1949 ac_header_compiler=no
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1953 $as_echo "$ac_header_compiler" >&6; }
1955 # Is the header present?
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1957 $as_echo_n "checking $2 presence... " >&6; }
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 #include <$2>
1961 _ACEOF
1962 if ac_fn_c_try_cpp "$LINENO"; then :
1963 ac_header_preproc=yes
1964 else
1965 ac_header_preproc=no
1967 rm -f conftest.err conftest.$ac_ext
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1969 $as_echo "$ac_header_preproc" >&6; }
1971 # So? What about this header?
1972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1973 yes:no: )
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1975 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1977 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979 no:yes:* )
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1981 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1983 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1985 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1987 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1989 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991 esac
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1995 $as_echo_n "(cached) " >&6
1996 else
1997 eval "$3=\$ac_header_compiler"
1999 eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $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_header_mongrel
2007 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2008 # -------------------------------------------
2009 # Tests whether TYPE exists after having included INCLUDES, setting cache
2010 # variable VAR accordingly.
2011 ac_fn_c_check_type ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2017 $as_echo_n "(cached) " >&6
2018 else
2019 eval "$3=no"
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2024 main ()
2026 if (sizeof ($2))
2027 return 0;
2029 return 0;
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2037 main ()
2039 if (sizeof (($2)))
2040 return 0;
2042 return 0;
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"; then :
2047 else
2048 eval "$3=yes"
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 eval ac_res=\$$3
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2059 } # ac_fn_c_check_type
2061 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2062 # --------------------------------------------
2063 # Tries to find the compile-time value of EXPR in a program that includes
2064 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2065 # computed
2066 ac_fn_c_compute_int ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 if test "$cross_compiling" = yes; then
2070 # Depending upon the size, compute the lo and hi bounds.
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2075 main ()
2077 static int test_array [1 - 2 * !(($2) >= 0)];
2078 test_array [0] = 0
2081 return 0;
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085 ac_lo=0 ac_mid=0
2086 while :; do
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2091 main ()
2093 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2094 test_array [0] = 0
2097 return 0;
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 ac_hi=$ac_mid; break
2102 else
2103 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2104 if test $ac_lo -le $ac_mid; then
2105 ac_lo= ac_hi=
2106 break
2108 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 done
2112 else
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2117 main ()
2119 static int test_array [1 - 2 * !(($2) < 0)];
2120 test_array [0] = 0
2123 return 0;
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127 ac_hi=-1 ac_mid=-1
2128 while :; do
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2133 main ()
2135 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2136 test_array [0] = 0
2139 return 0;
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143 ac_lo=$ac_mid; break
2144 else
2145 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2146 if test $ac_mid -le $ac_hi; then
2147 ac_lo= ac_hi=
2148 break
2150 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 done
2154 else
2155 ac_lo= ac_hi=
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 # Binary search between lo and hi bounds.
2161 while test "x$ac_lo" != "x$ac_hi"; do
2162 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2167 main ()
2169 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2170 test_array [0] = 0
2173 return 0;
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177 ac_hi=$ac_mid
2178 else
2179 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 done
2183 case $ac_lo in #((
2184 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2185 '') ac_retval=1 ;;
2186 esac
2187 else
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2191 static long int longval () { return $2; }
2192 static unsigned long int ulongval () { return $2; }
2193 #include <stdio.h>
2194 #include <stdlib.h>
2196 main ()
2199 FILE *f = fopen ("conftest.val", "w");
2200 if (! f)
2201 return 1;
2202 if (($2) < 0)
2204 long int i = longval ();
2205 if (i != ($2))
2206 return 1;
2207 fprintf (f, "%ld", i);
2209 else
2211 unsigned long int i = ulongval ();
2212 if (i != ($2))
2213 return 1;
2214 fprintf (f, "%lu", i);
2216 /* Do not output a trailing newline, as this causes \r\n confusion
2217 on some platforms. */
2218 return ferror (f) || fclose (f) != 0;
2221 return 0;
2223 _ACEOF
2224 if ac_fn_c_try_run "$LINENO"; then :
2225 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2226 else
2227 ac_retval=1
2229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2230 conftest.$ac_objext conftest.beam conftest.$ac_ext
2231 rm -f conftest.val
2234 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2235 return $ac_retval
2237 } # ac_fn_c_compute_int
2238 cat >config.log <<_ACEOF
2239 This file contains any messages produced by compilers while
2240 running configure, to aid debugging if configure makes a mistake.
2242 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2243 generated by GNU Autoconf 2.64. Invocation command line was
2245 $ $0 $@
2247 _ACEOF
2248 exec 5>>config.log
2250 cat <<_ASUNAME
2251 ## --------- ##
2252 ## Platform. ##
2253 ## --------- ##
2255 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2256 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2257 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2258 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2259 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2261 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2262 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2264 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2265 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2266 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2267 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2268 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2269 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2270 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2272 _ASUNAME
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 for as_dir in $PATH
2277 IFS=$as_save_IFS
2278 test -z "$as_dir" && as_dir=.
2279 $as_echo "PATH: $as_dir"
2280 done
2281 IFS=$as_save_IFS
2283 } >&5
2285 cat >&5 <<_ACEOF
2288 ## ----------- ##
2289 ## Core tests. ##
2290 ## ----------- ##
2292 _ACEOF
2295 # Keep a trace of the command line.
2296 # Strip out --no-create and --no-recursion so they do not pile up.
2297 # Strip out --silent because we don't want to record it for future runs.
2298 # Also quote any args containing shell meta-characters.
2299 # Make two passes to allow for proper duplicate-argument suppression.
2300 ac_configure_args=
2301 ac_configure_args0=
2302 ac_configure_args1=
2303 ac_must_keep_next=false
2304 for ac_pass in 1 2
2306 for ac_arg
2308 case $ac_arg in
2309 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2311 | -silent | --silent | --silen | --sile | --sil)
2312 continue ;;
2313 *\'*)
2314 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2315 esac
2316 case $ac_pass in
2317 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2319 as_fn_append ac_configure_args1 " '$ac_arg'"
2320 if test $ac_must_keep_next = true; then
2321 ac_must_keep_next=false # Got value, back to normal.
2322 else
2323 case $ac_arg in
2324 *=* | --config-cache | -C | -disable-* | --disable-* \
2325 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2326 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2327 | -with-* | --with-* | -without-* | --without-* | --x)
2328 case "$ac_configure_args0 " in
2329 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2330 esac
2332 -* ) ac_must_keep_next=true ;;
2333 esac
2335 as_fn_append ac_configure_args " '$ac_arg'"
2337 esac
2338 done
2339 done
2340 { ac_configure_args0=; unset ac_configure_args0;}
2341 { ac_configure_args1=; unset ac_configure_args1;}
2343 # When interrupted or exit'd, cleanup temporary files, and complete
2344 # config.log. We remove comments because anyway the quotes in there
2345 # would cause problems or look ugly.
2346 # WARNING: Use '\'' to represent an apostrophe within the trap.
2347 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2348 trap 'exit_status=$?
2349 # Save into config.log some information that might help in debugging.
2351 echo
2353 cat <<\_ASBOX
2354 ## ---------------- ##
2355 ## Cache variables. ##
2356 ## ---------------- ##
2357 _ASBOX
2358 echo
2359 # The following way of writing the cache mishandles newlines in values,
2361 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2362 eval ac_val=\$$ac_var
2363 case $ac_val in #(
2364 *${as_nl}*)
2365 case $ac_var in #(
2366 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2367 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2368 esac
2369 case $ac_var in #(
2370 _ | IFS | as_nl) ;; #(
2371 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2372 *) { eval $ac_var=; unset $ac_var;} ;;
2373 esac ;;
2374 esac
2375 done
2376 (set) 2>&1 |
2377 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2378 *${as_nl}ac_space=\ *)
2379 sed -n \
2380 "s/'\''/'\''\\\\'\'''\''/g;
2381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2382 ;; #(
2384 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2386 esac |
2387 sort
2389 echo
2391 cat <<\_ASBOX
2392 ## ----------------- ##
2393 ## Output variables. ##
2394 ## ----------------- ##
2395 _ASBOX
2396 echo
2397 for ac_var in $ac_subst_vars
2399 eval ac_val=\$$ac_var
2400 case $ac_val in
2401 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2402 esac
2403 $as_echo "$ac_var='\''$ac_val'\''"
2404 done | sort
2405 echo
2407 if test -n "$ac_subst_files"; then
2408 cat <<\_ASBOX
2409 ## ------------------- ##
2410 ## File substitutions. ##
2411 ## ------------------- ##
2412 _ASBOX
2413 echo
2414 for ac_var in $ac_subst_files
2416 eval ac_val=\$$ac_var
2417 case $ac_val in
2418 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419 esac
2420 $as_echo "$ac_var='\''$ac_val'\''"
2421 done | sort
2422 echo
2425 if test -s confdefs.h; then
2426 cat <<\_ASBOX
2427 ## ----------- ##
2428 ## confdefs.h. ##
2429 ## ----------- ##
2430 _ASBOX
2431 echo
2432 cat confdefs.h
2433 echo
2435 test "$ac_signal" != 0 &&
2436 $as_echo "$as_me: caught signal $ac_signal"
2437 $as_echo "$as_me: exit $exit_status"
2438 } >&5
2439 rm -f core *.core core.conftest.* &&
2440 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2441 exit $exit_status
2443 for ac_signal in 1 2 13 15; do
2444 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2445 done
2446 ac_signal=0
2448 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2449 rm -f -r conftest* confdefs.h
2451 $as_echo "/* confdefs.h */" > confdefs.h
2453 # Predefined preprocessor variables.
2455 cat >>confdefs.h <<_ACEOF
2456 #define PACKAGE_NAME "$PACKAGE_NAME"
2457 _ACEOF
2459 cat >>confdefs.h <<_ACEOF
2460 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2461 _ACEOF
2463 cat >>confdefs.h <<_ACEOF
2464 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2465 _ACEOF
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_STRING "$PACKAGE_STRING"
2469 _ACEOF
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2473 _ACEOF
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_URL "$PACKAGE_URL"
2477 _ACEOF
2480 # Let the site file select an alternate cache file if it wants to.
2481 # Prefer an explicitly selected file to automatically selected ones.
2482 ac_site_file1=NONE
2483 ac_site_file2=NONE
2484 if test -n "$CONFIG_SITE"; then
2485 ac_site_file1=$CONFIG_SITE
2486 elif test "x$prefix" != xNONE; then
2487 ac_site_file1=$prefix/share/config.site
2488 ac_site_file2=$prefix/etc/config.site
2489 else
2490 ac_site_file1=$ac_default_prefix/share/config.site
2491 ac_site_file2=$ac_default_prefix/etc/config.site
2493 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2495 test "x$ac_site_file" = xNONE && continue
2496 if test -r "$ac_site_file"; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2498 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2499 sed 's/^/| /' "$ac_site_file" >&5
2500 . "$ac_site_file"
2502 done
2504 if test -r "$cache_file"; then
2505 # Some versions of bash will fail to source /dev/null (special
2506 # files actually), so we avoid doing that.
2507 if test -f "$cache_file"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2509 $as_echo "$as_me: loading cache $cache_file" >&6;}
2510 case $cache_file in
2511 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2512 *) . "./$cache_file";;
2513 esac
2515 else
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2517 $as_echo "$as_me: creating cache $cache_file" >&6;}
2518 >$cache_file
2521 # Check that the precious variables saved in the cache have kept the same
2522 # value.
2523 ac_cache_corrupted=false
2524 for ac_var in $ac_precious_vars; do
2525 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2526 eval ac_new_set=\$ac_env_${ac_var}_set
2527 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2528 eval ac_new_val=\$ac_env_${ac_var}_value
2529 case $ac_old_set,$ac_new_set in
2530 set,)
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2532 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2533 ac_cache_corrupted=: ;;
2534 ,set)
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2536 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2537 ac_cache_corrupted=: ;;
2538 ,);;
2540 if test "x$ac_old_val" != "x$ac_new_val"; then
2541 # differences in whitespace do not lead to failure.
2542 ac_old_val_w=`echo x $ac_old_val`
2543 ac_new_val_w=`echo x $ac_new_val`
2544 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2546 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2547 ac_cache_corrupted=:
2548 else
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2550 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2551 eval $ac_var=\$ac_old_val
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2554 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2556 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2557 fi;;
2558 esac
2559 # Pass precious variables to config.status.
2560 if test "$ac_new_set" = set; then
2561 case $ac_new_val in
2562 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2563 *) ac_arg=$ac_var=$ac_new_val ;;
2564 esac
2565 case " $ac_configure_args " in
2566 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2567 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2568 esac
2570 done
2571 if $ac_cache_corrupted; then
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2575 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2576 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2578 ## -------------------- ##
2579 ## Main body of script. ##
2580 ## -------------------- ##
2582 ac_ext=c
2583 ac_cpp='$CPP $CPPFLAGS'
2584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592 ac_config_headers="$ac_config_headers config.h"
2595 # -------
2596 # Options
2597 # -------
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2600 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2601 # Check whether --enable-version-specific-runtime-libs was given.
2602 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2603 enableval=$enable_version_specific_runtime_libs;
2604 case "$enableval" in
2605 yes|no) ;;
2606 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2607 esac
2609 else
2610 enable_version_specific_runtime_libs=no
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2615 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2617 # We would like our source tree to be readonly. However when releases or
2618 # pre-releases are generated, the flex/bison generated files as well as the
2619 # various formats of manuals need to be included along with the rest of the
2620 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2621 # just that.
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2623 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2624 # Check whether --enable-generated-files-in-srcdir was given.
2625 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2626 enableval=$enable_generated_files_in_srcdir;
2627 case "$enableval" in
2628 yes|no) ;;
2629 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2630 esac
2632 else
2633 enable_generated_files_in_srcdir=no
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2638 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2639 if test "$enable_generated_files_in_srcdir" = yes; then
2640 GENINSRC_TRUE=
2641 GENINSRC_FALSE='#'
2642 else
2643 GENINSRC_TRUE='#'
2644 GENINSRC_FALSE=
2649 # -------
2650 # -------
2652 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2654 # You will slowly go insane if you do not grok the following fact: when
2655 # building this library, the top-level /target/ becomes the library's /host/.
2657 # configure then causes --target to default to --host, exactly like any
2658 # other package using autoconf. Therefore, 'target' and 'host' will
2659 # always be the same. This makes sense both for native and cross compilers
2660 # just think about it for a little while. :-)
2662 # Also, if this library is being configured as part of a cross compiler, the
2663 # top-level configure script will pass the "real" host as $with_cross_host.
2665 # Do not delete or change the following two lines. For why, see
2666 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2667 ac_aux_dir=
2668 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2669 for ac_t in install-sh install.sh shtool; do
2670 if test -f "$ac_dir/$ac_t"; then
2671 ac_aux_dir=$ac_dir
2672 ac_install_sh="$ac_aux_dir/$ac_t -c"
2673 break 2
2675 done
2676 done
2677 if test -z "$ac_aux_dir"; then
2678 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2681 # These three variables are undocumented and unsupported,
2682 # and are intended to be withdrawn in a future Autoconf release.
2683 # They can cause serious problems if a builder's source tree is in a directory
2684 # whose full name contains unusual characters.
2685 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2686 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2687 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2690 # Make sure we can run config.sub.
2691 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2692 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2695 $as_echo_n "checking build system type... " >&6; }
2696 if test "${ac_cv_build+set}" = set; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2699 ac_build_alias=$build_alias
2700 test "x$ac_build_alias" = x &&
2701 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2702 test "x$ac_build_alias" = x &&
2703 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2704 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2705 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2709 $as_echo "$ac_cv_build" >&6; }
2710 case $ac_cv_build in
2711 *-*-*) ;;
2712 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2713 esac
2714 build=$ac_cv_build
2715 ac_save_IFS=$IFS; IFS='-'
2716 set x $ac_cv_build
2717 shift
2718 build_cpu=$1
2719 build_vendor=$2
2720 shift; shift
2721 # Remember, the first character of IFS is used to create $*,
2722 # except with old shells:
2723 build_os=$*
2724 IFS=$ac_save_IFS
2725 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2729 $as_echo_n "checking host system type... " >&6; }
2730 if test "${ac_cv_host+set}" = set; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 if test "x$host_alias" = x; then
2734 ac_cv_host=$ac_cv_build
2735 else
2736 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2737 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2742 $as_echo "$ac_cv_host" >&6; }
2743 case $ac_cv_host in
2744 *-*-*) ;;
2745 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2746 esac
2747 host=$ac_cv_host
2748 ac_save_IFS=$IFS; IFS='-'
2749 set x $ac_cv_host
2750 shift
2751 host_cpu=$1
2752 host_vendor=$2
2753 shift; shift
2754 # Remember, the first character of IFS is used to create $*,
2755 # except with old shells:
2756 host_os=$*
2757 IFS=$ac_save_IFS
2758 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2762 $as_echo_n "checking target system type... " >&6; }
2763 if test "${ac_cv_target+set}" = set; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 if test "x$target_alias" = x; then
2767 ac_cv_target=$ac_cv_host
2768 else
2769 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2770 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2775 $as_echo "$ac_cv_target" >&6; }
2776 case $ac_cv_target in
2777 *-*-*) ;;
2778 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2779 esac
2780 target=$ac_cv_target
2781 ac_save_IFS=$IFS; IFS='-'
2782 set x $ac_cv_target
2783 shift
2784 target_cpu=$1
2785 target_vendor=$2
2786 shift; shift
2787 # Remember, the first character of IFS is used to create $*,
2788 # except with old shells:
2789 target_os=$*
2790 IFS=$ac_save_IFS
2791 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2794 # The aliases save the names the user supplied, while $host etc.
2795 # will get canonicalized.
2796 test -n "$target_alias" &&
2797 test "$program_prefix$program_suffix$program_transform_name" = \
2798 NONENONEs,x,x, &&
2799 program_prefix=${target_alias}-
2801 target_alias=${target_alias-$host_alias}
2803 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2804 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2805 # 1.9.0: minimum required version
2806 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2807 # of other PACKAGE_* variables will, however, and there's nothing
2808 # we can do about that; they come from AC_INIT).
2809 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2810 # file in the top srcdir, etc, etc), so stop complaining.
2811 # no-dist: we don't want 'dist' and related rules.
2812 # -Wall: turns on all automake warnings...
2813 # -Wno-portability: ...except this one, since GNU make is required.
2814 # -Wno-override: ... and this one, since we do want this in testsuite.
2815 am__api_version='1.11'
2817 # Find a good install program. We prefer a C program (faster),
2818 # so one script is as good as another. But avoid the broken or
2819 # incompatible versions:
2820 # SysV /etc/install, /usr/sbin/install
2821 # SunOS /usr/etc/install
2822 # IRIX /sbin/install
2823 # AIX /bin/install
2824 # AmigaOS /C/install, which installs bootblocks on floppy discs
2825 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2826 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2827 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2828 # OS/2's system install, which has a completely different semantic
2829 # ./install, which can be erroneously created by make from ./install.sh.
2830 # Reject install programs that cannot install multiple files.
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2832 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2833 if test -z "$INSTALL"; then
2834 if test "${ac_cv_path_install+set}" = set; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 # Account for people who put trailing slashes in PATH elements.
2843 case $as_dir/ in #((
2844 ./ | .// | /[cC]/* | \
2845 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2846 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2847 /usr/ucb/* ) ;;
2849 # OSF1 and SCO ODT 3.0 have their own names for install.
2850 # Don't use installbsd from OSF since it installs stuff as root
2851 # by default.
2852 for ac_prog in ginstall scoinst install; do
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2855 if test $ac_prog = install &&
2856 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2857 # AIX install. It has an incompatible calling convention.
2859 elif test $ac_prog = install &&
2860 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2861 # program-specific install script used by HP pwplus--don't use.
2863 else
2864 rm -rf conftest.one conftest.two conftest.dir
2865 echo one > conftest.one
2866 echo two > conftest.two
2867 mkdir conftest.dir
2868 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2869 test -s conftest.one && test -s conftest.two &&
2870 test -s conftest.dir/conftest.one &&
2871 test -s conftest.dir/conftest.two
2872 then
2873 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2874 break 3
2878 done
2879 done
2881 esac
2883 done
2884 IFS=$as_save_IFS
2886 rm -rf conftest.one conftest.two conftest.dir
2889 if test "${ac_cv_path_install+set}" = set; then
2890 INSTALL=$ac_cv_path_install
2891 else
2892 # As a last resort, use the slow shell script. Don't cache a
2893 # value for INSTALL within a source directory, because that will
2894 # break other packages using the cache if that directory is
2895 # removed, or if the value is a relative name.
2896 INSTALL=$ac_install_sh
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2900 $as_echo "$INSTALL" >&6; }
2902 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2903 # It thinks the first close brace ends the variable substitution.
2904 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2906 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2908 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2911 $as_echo_n "checking whether build environment is sane... " >&6; }
2912 # Just in case
2913 sleep 1
2914 echo timestamp > conftest.file
2915 # Reject unsafe characters in $srcdir or the absolute working directory
2916 # name. Accept space and tab only in the latter.
2917 am_lf='
2919 case `pwd` in
2920 *[\\\"\#\$\&\'\`$am_lf]*)
2921 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2922 esac
2923 case $srcdir in
2924 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2925 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2926 esac
2928 # Do `set' in a subshell so we don't clobber the current shell's
2929 # arguments. Must try -L first in case configure is actually a
2930 # symlink; some systems play weird games with the mod time of symlinks
2931 # (eg FreeBSD returns the mod time of the symlink's containing
2932 # directory).
2933 if (
2934 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2935 if test "$*" = "X"; then
2936 # -L didn't work.
2937 set X `ls -t "$srcdir/configure" conftest.file`
2939 rm -f conftest.file
2940 if test "$*" != "X $srcdir/configure conftest.file" \
2941 && test "$*" != "X conftest.file $srcdir/configure"; then
2943 # If neither matched, then we have a broken ls. This can happen
2944 # if, for instance, CONFIG_SHELL is bash and it inherits a
2945 # broken ls alias from the environment. This has actually
2946 # happened. Such a system could not be considered "sane".
2947 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2948 alias in your environment" "$LINENO" 5
2951 test "$2" = conftest.file
2953 then
2954 # Ok.
2956 else
2957 as_fn_error "newly created file is older than distributed files!
2958 Check your system clock" "$LINENO" 5
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2961 $as_echo "yes" >&6; }
2962 test "$program_prefix" != NONE &&
2963 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2964 # Use a double $ so make ignores it.
2965 test "$program_suffix" != NONE &&
2966 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2967 # Double any \ or $.
2968 # By default was `s,x,x', remove it if useless.
2969 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2970 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2972 # expand $ac_aux_dir to an absolute path
2973 am_aux_dir=`cd $ac_aux_dir && pwd`
2975 if test x"${MISSING+set}" != xset; then
2976 case $am_aux_dir in
2977 *\ * | *\ *)
2978 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2980 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2981 esac
2983 # Use eval to expand $SHELL
2984 if eval "$MISSING --run true"; then
2985 am_missing_run="$MISSING --run "
2986 else
2987 am_missing_run=
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2989 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2992 if test x"${install_sh}" != xset; then
2993 case $am_aux_dir in
2994 *\ * | *\ *)
2995 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2997 install_sh="\${SHELL} $am_aux_dir/install-sh"
2998 esac
3001 # Installed binaries are usually stripped using `strip' when the user
3002 # run `make install-strip'. However `strip' might not be the right
3003 # tool to use in cross-compilation environments, therefore Automake
3004 # will honor the `STRIP' environment variable to overrule this program.
3005 if test "$cross_compiling" != no; then
3006 if test -n "$ac_tool_prefix"; then
3007 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3008 set dummy ${ac_tool_prefix}strip; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if test "${ac_cv_prog_STRIP+set}" = set; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 if test -n "$STRIP"; then
3015 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3028 done
3029 done
3030 IFS=$as_save_IFS
3034 STRIP=$ac_cv_prog_STRIP
3035 if test -n "$STRIP"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3037 $as_echo "$STRIP" >&6; }
3038 else
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3045 if test -z "$ac_cv_prog_STRIP"; then
3046 ac_ct_STRIP=$STRIP
3047 # Extract the first word of "strip", so it can be a program name with args.
3048 set dummy strip; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3052 $as_echo_n "(cached) " >&6
3053 else
3054 if test -n "$ac_ct_STRIP"; then
3055 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064 ac_cv_prog_ac_ct_STRIP="strip"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 break 2
3068 done
3069 done
3070 IFS=$as_save_IFS
3074 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3075 if test -n "$ac_ct_STRIP"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3077 $as_echo "$ac_ct_STRIP" >&6; }
3078 else
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3083 if test "x$ac_ct_STRIP" = x; then
3084 STRIP=":"
3085 else
3086 case $cross_compiling:$ac_tool_warned in
3087 yes:)
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3090 ac_tool_warned=yes ;;
3091 esac
3092 STRIP=$ac_ct_STRIP
3094 else
3095 STRIP="$ac_cv_prog_STRIP"
3099 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3102 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3103 if test -z "$MKDIR_P"; then
3104 if test "${ac_cv_path_mkdir+set}" = set; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_prog in mkdir gmkdir; do
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3115 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3116 'mkdir (GNU coreutils) '* | \
3117 'mkdir (coreutils) '* | \
3118 'mkdir (fileutils) '4.1*)
3119 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3120 break 3;;
3121 esac
3122 done
3123 done
3124 done
3125 IFS=$as_save_IFS
3129 if test "${ac_cv_path_mkdir+set}" = set; then
3130 MKDIR_P="$ac_cv_path_mkdir -p"
3131 else
3132 # As a last resort, use the slow shell script. Don't cache a
3133 # value for MKDIR_P within a source directory, because that will
3134 # break other packages using the cache if that directory is
3135 # removed, or if the value is a relative name.
3136 test -d ./--version && rmdir ./--version
3137 MKDIR_P="$ac_install_sh -d"
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3141 $as_echo "$MKDIR_P" >&6; }
3143 mkdir_p="$MKDIR_P"
3144 case $mkdir_p in
3145 [\\/$]* | ?:[\\/]*) ;;
3146 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3147 esac
3149 for ac_prog in gawk mawk nawk awk
3151 # Extract the first word of "$ac_prog", so it can be a program name with args.
3152 set dummy $ac_prog; ac_word=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if test "${ac_cv_prog_AWK+set}" = set; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 if test -n "$AWK"; then
3159 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3168 ac_cv_prog_AWK="$ac_prog"
3169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 break 2
3172 done
3173 done
3174 IFS=$as_save_IFS
3178 AWK=$ac_cv_prog_AWK
3179 if test -n "$AWK"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3181 $as_echo "$AWK" >&6; }
3182 else
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3188 test -n "$AWK" && break
3189 done
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3192 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3193 set x ${MAKE-make}
3194 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3195 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3196 $as_echo_n "(cached) " >&6
3197 else
3198 cat >conftest.make <<\_ACEOF
3199 SHELL = /bin/sh
3200 all:
3201 @echo '@@@%%%=$(MAKE)=@@@%%%'
3202 _ACEOF
3203 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3204 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3205 *@@@%%%=?*=@@@%%%*)
3206 eval ac_cv_prog_make_${ac_make}_set=yes;;
3208 eval ac_cv_prog_make_${ac_make}_set=no;;
3209 esac
3210 rm -f conftest.make
3212 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3214 $as_echo "yes" >&6; }
3215 SET_MAKE=
3216 else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 SET_MAKE="MAKE=${MAKE-make}"
3222 rm -rf .tst 2>/dev/null
3223 mkdir .tst 2>/dev/null
3224 if test -d .tst; then
3225 am__leading_dot=.
3226 else
3227 am__leading_dot=_
3229 rmdir .tst 2>/dev/null
3231 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3232 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3233 # is not polluted with repeated "-I."
3234 am__isrc=' -I$(srcdir)'
3235 # test to see if srcdir already configured
3236 if test -f $srcdir/config.status; then
3237 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3241 # test whether we have cygpath
3242 if test -z "$CYGPATH_W"; then
3243 if (cygpath --version) >/dev/null 2>/dev/null; then
3244 CYGPATH_W='cygpath -w'
3245 else
3246 CYGPATH_W=echo
3251 # Define the identity of the package.
3252 PACKAGE='libgomp'
3253 VERSION='1.0'
3256 cat >>confdefs.h <<_ACEOF
3257 #define PACKAGE "$PACKAGE"
3258 _ACEOF
3261 cat >>confdefs.h <<_ACEOF
3262 #define VERSION "$VERSION"
3263 _ACEOF
3265 # Some tools Automake needs.
3267 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3270 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3273 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3276 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3279 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3281 # We need awk for the "check" target. The system "awk" is bad on
3282 # some platforms.
3283 # Always define AMTAR for backward compatibility. Yes, it's still used
3284 # in the wild :-( We should find a proper way to deprecate it ...
3285 AMTAR='$${TAR-tar}'
3287 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3293 # Default to --enable-multilib
3294 # Check whether --enable-multilib was given.
3295 if test "${enable_multilib+set}" = set; then :
3296 enableval=$enable_multilib; case "$enableval" in
3297 yes) multilib=yes ;;
3298 no) multilib=no ;;
3299 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3300 esac
3301 else
3302 multilib=yes
3306 # We may get other options which we leave undocumented:
3307 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3308 # See config-ml.in if you want the gory details.
3310 if test "$srcdir" = "."; then
3311 if test "$with_target_subdir" != "."; then
3312 multi_basedir="$srcdir/$with_multisrctop../.."
3313 else
3314 multi_basedir="$srcdir/$with_multisrctop.."
3316 else
3317 multi_basedir="$srcdir/.."
3321 # Even if the default multilib is not a cross compilation,
3322 # it may be that some of the other multilibs are.
3323 if test $cross_compiling = no && test $multilib = yes \
3324 && test "x${with_multisubdir}" != x ; then
3325 cross_compiling=maybe
3328 ac_config_commands="$ac_config_commands default-1"
3331 # Calculate toolexeclibdir
3332 # Also toolexecdir, though it's only used in toolexeclibdir
3333 case ${enable_version_specific_runtime_libs} in
3334 yes)
3335 # Need the gcc compiler version to know where to install libraries
3336 # and header files if --enable-version-specific-runtime-libs option
3337 # is selected.
3338 toolexecdir='$(libdir)/gcc/$(target_alias)'
3339 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3342 if test -n "$with_cross_host" &&
3343 test x"$with_cross_host" != x"no"; then
3344 # Install a library built with a cross compiler in tooldir, not libdir.
3345 toolexecdir='$(exec_prefix)/$(target_alias)'
3346 toolexeclibdir='$(toolexecdir)/lib'
3347 else
3348 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3349 toolexeclibdir='$(libdir)'
3351 multi_os_directory=`$CC -print-multi-os-directory`
3352 case $multi_os_directory in
3353 .) ;; # Avoid trailing /.
3354 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3355 esac
3357 esac
3361 # Check the compiler.
3362 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3363 # We must force CC to /not/ be precious variables; otherwise
3364 # the wrong, non-multilib-adjusted value will be used in multilibs.
3365 # As a side effect, we have to subst CFLAGS ourselves.
3369 ac_ext=c
3370 ac_cpp='$CPP $CPPFLAGS'
3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374 if test -n "$ac_tool_prefix"; then
3375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3376 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if test "${ac_cv_prog_CC+set}" = set; then :
3380 $as_echo_n "(cached) " >&6
3381 else
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC="$CC" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3396 done
3397 done
3398 IFS=$as_save_IFS
3402 CC=$ac_cv_prog_CC
3403 if test -n "$CC"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405 $as_echo "$CC" >&6; }
3406 else
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3413 if test -z "$ac_cv_prog_CC"; then
3414 ac_ct_CC=$CC
3415 # Extract the first word of "gcc", so it can be a program name with args.
3416 set dummy gcc; ac_word=$2
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 $as_echo_n "checking for $ac_word... " >&6; }
3419 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 if test -n "$ac_ct_CC"; then
3423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3424 else
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH
3428 IFS=$as_save_IFS
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3432 ac_cv_prog_ac_ct_CC="gcc"
3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 break 2
3436 done
3437 done
3438 IFS=$as_save_IFS
3442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3443 if test -n "$ac_ct_CC"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3445 $as_echo "$ac_ct_CC" >&6; }
3446 else
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 $as_echo "no" >&6; }
3451 if test "x$ac_ct_CC" = x; then
3452 CC=""
3453 else
3454 case $cross_compiling:$ac_tool_warned in
3455 yes:)
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3458 ac_tool_warned=yes ;;
3459 esac
3460 CC=$ac_ct_CC
3462 else
3463 CC="$ac_cv_prog_CC"
3466 if test -z "$CC"; then
3467 if test -n "$ac_tool_prefix"; then
3468 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3469 set dummy ${ac_tool_prefix}cc; ac_word=$2
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if test "${ac_cv_prog_CC+set}" = set; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 if test -n "$CC"; then
3476 ac_cv_prog_CC="$CC" # Let the user override the test.
3477 else
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3481 IFS=$as_save_IFS
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3485 ac_cv_prog_CC="${ac_tool_prefix}cc"
3486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 break 2
3489 done
3490 done
3491 IFS=$as_save_IFS
3495 CC=$ac_cv_prog_CC
3496 if test -n "$CC"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498 $as_echo "$CC" >&6; }
3499 else
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3507 if test -z "$CC"; then
3508 # Extract the first word of "cc", so it can be a program name with args.
3509 set dummy cc; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if test "${ac_cv_prog_CC+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 if test -n "$CC"; then
3516 ac_cv_prog_CC="$CC" # Let the user override the test.
3517 else
3518 ac_prog_rejected=no
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3527 ac_prog_rejected=yes
3528 continue
3530 ac_cv_prog_CC="cc"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3534 done
3535 done
3536 IFS=$as_save_IFS
3538 if test $ac_prog_rejected = yes; then
3539 # We found a bogon in the path, so make sure we never use it.
3540 set dummy $ac_cv_prog_CC
3541 shift
3542 if test $# != 0; then
3543 # We chose a different compiler from the bogus one.
3544 # However, it has the same basename, so the bogon will be chosen
3545 # first if we set CC to just the basename; use the full file name.
3546 shift
3547 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3552 CC=$ac_cv_prog_CC
3553 if test -n "$CC"; then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555 $as_echo "$CC" >&6; }
3556 else
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3563 if test -z "$CC"; then
3564 if test -n "$ac_tool_prefix"; then
3565 for ac_prog in cl.exe
3567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570 $as_echo_n "checking for $ac_word... " >&6; }
3571 if test "${ac_cv_prog_CC+set}" = set; then :
3572 $as_echo_n "(cached) " >&6
3573 else
3574 if test -n "$CC"; then
3575 ac_cv_prog_CC="$CC" # Let the user override the test.
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 break 2
3588 done
3589 done
3590 IFS=$as_save_IFS
3594 CC=$ac_cv_prog_CC
3595 if test -n "$CC"; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3597 $as_echo "$CC" >&6; }
3598 else
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3604 test -n "$CC" && break
3605 done
3607 if test -z "$CC"; then
3608 ac_ct_CC=$CC
3609 for ac_prog in cl.exe
3611 # Extract the first word of "$ac_prog", so it can be a program name with args.
3612 set dummy $ac_prog; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 if test -n "$ac_ct_CC"; then
3619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628 ac_cv_prog_ac_ct_CC="$ac_prog"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 break 2
3632 done
3633 done
3634 IFS=$as_save_IFS
3638 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3639 if test -n "$ac_ct_CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3641 $as_echo "$ac_ct_CC" >&6; }
3642 else
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3648 test -n "$ac_ct_CC" && break
3649 done
3651 if test "x$ac_ct_CC" = x; then
3652 CC=""
3653 else
3654 case $cross_compiling:$ac_tool_warned in
3655 yes:)
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658 ac_tool_warned=yes ;;
3659 esac
3660 CC=$ac_ct_CC
3667 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669 as_fn_error "no acceptable C compiler found in \$PATH
3670 See \`config.log' for more details." "$LINENO" 5; }
3672 # Provide some information about the compiler.
3673 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3674 set X $ac_compile
3675 ac_compiler=$2
3676 for ac_option in --version -v -V -qversion; do
3677 { { ac_try="$ac_compiler $ac_option >&5"
3678 case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681 esac
3682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683 $as_echo "$ac_try_echo"; } >&5
3684 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3685 ac_status=$?
3686 if test -s conftest.err; then
3687 sed '10a\
3688 ... rest of stderr output deleted ...
3689 10q' conftest.err >conftest.er1
3690 cat conftest.er1 >&5
3691 rm -f conftest.er1 conftest.err
3693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694 test $ac_status = 0; }
3695 done
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3701 main ()
3705 return 0;
3707 _ACEOF
3708 ac_clean_files_save=$ac_clean_files
3709 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3710 # Try to create an executable without -o first, disregard a.out.
3711 # It will help us diagnose broken compilers, and finding out an intuition
3712 # of exeext.
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3714 $as_echo_n "checking for C compiler default output file name... " >&6; }
3715 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3717 # The possible output files:
3718 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3720 ac_rmfiles=
3721 for ac_file in $ac_files
3723 case $ac_file in
3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3725 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3726 esac
3727 done
3728 rm -f $ac_rmfiles
3730 if { { ac_try="$ac_link_default"
3731 case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3734 esac
3735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3736 $as_echo "$ac_try_echo"; } >&5
3737 (eval "$ac_link_default") 2>&5
3738 ac_status=$?
3739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740 test $ac_status = 0; }; then :
3741 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3742 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3743 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3744 # so that the user can short-circuit this test for compilers unknown to
3745 # Autoconf.
3746 for ac_file in $ac_files ''
3748 test -f "$ac_file" || continue
3749 case $ac_file in
3750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3752 [ab].out )
3753 # We found the default executable, but exeext='' is most
3754 # certainly right.
3755 break;;
3756 *.* )
3757 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3758 then :; else
3759 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3761 # We set ac_cv_exeext here because the later test for it is not
3762 # safe: cross compilers may not add the suffix if given an `-o'
3763 # argument, so we may need to know it at that point already.
3764 # Even if this section looks crufty: it has the advantage of
3765 # actually working.
3766 break;;
3768 break;;
3769 esac
3770 done
3771 test "$ac_cv_exeext" = no && ac_cv_exeext=
3773 else
3774 ac_file=''
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3777 $as_echo "$ac_file" >&6; }
3778 if test -z "$ac_file"; then :
3779 $as_echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3784 { as_fn_set_status 77
3785 as_fn_error "C compiler cannot create executables
3786 See \`config.log' for more details." "$LINENO" 5; }; }
3788 ac_exeext=$ac_cv_exeext
3790 # Check that the compiler produces executables we can run. If not, either
3791 # the compiler is broken, or we cross compile.
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3793 $as_echo_n "checking whether the C compiler works... " >&6; }
3794 # If not cross compiling, check that we can run a simple program.
3795 if test "$cross_compiling" != yes; then
3796 if { ac_try='./$ac_file'
3797 { { case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_try") 2>&5
3804 ac_status=$?
3805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806 test $ac_status = 0; }; }; then
3807 cross_compiling=no
3808 else
3809 if test "$cross_compiling" = maybe; then
3810 cross_compiling=yes
3811 else
3812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814 as_fn_error "cannot run C compiled programs.
3815 If you meant to cross compile, use \`--host'.
3816 See \`config.log' for more details." "$LINENO" 5; }
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3821 $as_echo "yes" >&6; }
3823 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3824 ac_clean_files=$ac_clean_files_save
3825 # Check that the compiler produces executables we can run. If not, either
3826 # the compiler is broken, or we cross compile.
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3828 $as_echo_n "checking whether we are cross compiling... " >&6; }
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3830 $as_echo "$cross_compiling" >&6; }
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3833 $as_echo_n "checking for suffix of executables... " >&6; }
3834 if { { ac_try="$ac_link"
3835 case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838 esac
3839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840 $as_echo "$ac_try_echo"; } >&5
3841 (eval "$ac_link") 2>&5
3842 ac_status=$?
3843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844 test $ac_status = 0; }; then :
3845 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3846 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3847 # work properly (i.e., refer to `conftest.exe'), while it won't with
3848 # `rm'.
3849 for ac_file in conftest.exe conftest conftest.*; do
3850 test -f "$ac_file" || continue
3851 case $ac_file in
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3853 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3854 break;;
3855 * ) break;;
3856 esac
3857 done
3858 else
3859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861 as_fn_error "cannot compute suffix of executables: cannot compile and link
3862 See \`config.log' for more details." "$LINENO" 5; }
3864 rm -f conftest$ac_cv_exeext
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3866 $as_echo "$ac_cv_exeext" >&6; }
3868 rm -f conftest.$ac_ext
3869 EXEEXT=$ac_cv_exeext
3870 ac_exeext=$EXEEXT
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3872 $as_echo_n "checking for suffix of object files... " >&6; }
3873 if test "${ac_cv_objext+set}" = set; then :
3874 $as_echo_n "(cached) " >&6
3875 else
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3880 main ()
3884 return 0;
3886 _ACEOF
3887 rm -f conftest.o conftest.obj
3888 if { { ac_try="$ac_compile"
3889 case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3892 esac
3893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894 $as_echo "$ac_try_echo"; } >&5
3895 (eval "$ac_compile") 2>&5
3896 ac_status=$?
3897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898 test $ac_status = 0; }; then :
3899 for ac_file in conftest.o conftest.obj conftest.*; do
3900 test -f "$ac_file" || continue;
3901 case $ac_file in
3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3903 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3904 break;;
3905 esac
3906 done
3907 else
3908 $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3913 as_fn_error "cannot compute suffix of object files: cannot compile
3914 See \`config.log' for more details." "$LINENO" 5; }
3916 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3919 $as_echo "$ac_cv_objext" >&6; }
3920 OBJEXT=$ac_cv_objext
3921 ac_objext=$OBJEXT
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3923 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3924 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3925 $as_echo_n "(cached) " >&6
3926 else
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3931 main ()
3933 #ifndef __GNUC__
3934 choke me
3935 #endif
3938 return 0;
3940 _ACEOF
3941 if ac_fn_c_try_compile "$LINENO"; then :
3942 ac_compiler_gnu=yes
3943 else
3944 ac_compiler_gnu=no
3946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3951 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3952 if test $ac_compiler_gnu = yes; then
3953 GCC=yes
3954 else
3955 GCC=
3957 ac_test_CFLAGS=${CFLAGS+set}
3958 ac_save_CFLAGS=$CFLAGS
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3960 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3961 if test "${ac_cv_prog_cc_g+set}" = set; then :
3962 $as_echo_n "(cached) " >&6
3963 else
3964 ac_save_c_werror_flag=$ac_c_werror_flag
3965 ac_c_werror_flag=yes
3966 ac_cv_prog_cc_g=no
3967 CFLAGS="-g"
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3972 main ()
3976 return 0;
3978 _ACEOF
3979 if ac_fn_c_try_compile "$LINENO"; then :
3980 ac_cv_prog_cc_g=yes
3981 else
3982 CFLAGS=""
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3987 main ()
3991 return 0;
3993 _ACEOF
3994 if ac_fn_c_try_compile "$LINENO"; then :
3996 else
3997 ac_c_werror_flag=$ac_save_c_werror_flag
3998 CFLAGS="-g"
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4003 main ()
4007 return 0;
4009 _ACEOF
4010 if ac_fn_c_try_compile "$LINENO"; then :
4011 ac_cv_prog_cc_g=yes
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 ac_c_werror_flag=$ac_save_c_werror_flag
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4021 $as_echo "$ac_cv_prog_cc_g" >&6; }
4022 if test "$ac_test_CFLAGS" = set; then
4023 CFLAGS=$ac_save_CFLAGS
4024 elif test $ac_cv_prog_cc_g = yes; then
4025 if test "$GCC" = yes; then
4026 CFLAGS="-g -O2"
4027 else
4028 CFLAGS="-g"
4030 else
4031 if test "$GCC" = yes; then
4032 CFLAGS="-O2"
4033 else
4034 CFLAGS=
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4038 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4039 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4040 $as_echo_n "(cached) " >&6
4041 else
4042 ac_cv_prog_cc_c89=no
4043 ac_save_CC=$CC
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046 #include <stdarg.h>
4047 #include <stdio.h>
4048 #include <sys/types.h>
4049 #include <sys/stat.h>
4050 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4051 struct buf { int x; };
4052 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4053 static char *e (p, i)
4054 char **p;
4055 int i;
4057 return p[i];
4059 static char *f (char * (*g) (char **, int), char **p, ...)
4061 char *s;
4062 va_list v;
4063 va_start (v,p);
4064 s = g (p, va_arg (v,int));
4065 va_end (v);
4066 return s;
4069 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4070 function prototypes and stuff, but not '\xHH' hex character constants.
4071 These don't provoke an error unfortunately, instead are silently treated
4072 as 'x'. The following induces an error, until -std is added to get
4073 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4074 array size at least. It's necessary to write '\x00'==0 to get something
4075 that's true only with -std. */
4076 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4078 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4079 inside strings and character constants. */
4080 #define FOO(x) 'x'
4081 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4083 int test (int i, double x);
4084 struct s1 {int (*f) (int a);};
4085 struct s2 {int (*f) (double a);};
4086 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4087 int argc;
4088 char **argv;
4090 main ()
4092 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4094 return 0;
4096 _ACEOF
4097 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4098 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4100 CC="$ac_save_CC $ac_arg"
4101 if ac_fn_c_try_compile "$LINENO"; then :
4102 ac_cv_prog_cc_c89=$ac_arg
4104 rm -f core conftest.err conftest.$ac_objext
4105 test "x$ac_cv_prog_cc_c89" != "xno" && break
4106 done
4107 rm -f conftest.$ac_ext
4108 CC=$ac_save_CC
4111 # AC_CACHE_VAL
4112 case "x$ac_cv_prog_cc_c89" in
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4115 $as_echo "none needed" >&6; } ;;
4116 xno)
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4118 $as_echo "unsupported" >&6; } ;;
4120 CC="$CC $ac_cv_prog_cc_c89"
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4122 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4123 esac
4124 if test "x$ac_cv_prog_cc_c89" != xno; then :
4128 ac_ext=c
4129 ac_cpp='$CPP $CPPFLAGS'
4130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133 DEPDIR="${am__leading_dot}deps"
4135 ac_config_commands="$ac_config_commands depfiles"
4138 am_make=${MAKE-make}
4139 cat > confinc << 'END'
4140 am__doit:
4141 @echo this is the am__doit target
4142 .PHONY: am__doit
4144 # If we don't find an include directive, just comment out the code.
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4146 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4147 am__include="#"
4148 am__quote=
4149 _am_result=none
4150 # First try GNU make style include.
4151 echo "include confinc" > confmf
4152 # Ignore all kinds of additional output from `make'.
4153 case `$am_make -s -f confmf 2> /dev/null` in #(
4154 *the\ am__doit\ target*)
4155 am__include=include
4156 am__quote=
4157 _am_result=GNU
4159 esac
4160 # Now try BSD make style include.
4161 if test "$am__include" = "#"; then
4162 echo '.include "confinc"' > confmf
4163 case `$am_make -s -f confmf 2> /dev/null` in #(
4164 *the\ am__doit\ target*)
4165 am__include=.include
4166 am__quote="\""
4167 _am_result=BSD
4169 esac
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4174 $as_echo "$_am_result" >&6; }
4175 rm -f confinc confmf
4177 # Check whether --enable-dependency-tracking was given.
4178 if test "${enable_dependency_tracking+set}" = set; then :
4179 enableval=$enable_dependency_tracking;
4182 if test "x$enable_dependency_tracking" != xno; then
4183 am_depcomp="$ac_aux_dir/depcomp"
4184 AMDEPBACKSLASH='\'
4185 am__nodep='_no'
4187 if test "x$enable_dependency_tracking" != xno; then
4188 AMDEP_TRUE=
4189 AMDEP_FALSE='#'
4190 else
4191 AMDEP_TRUE='#'
4192 AMDEP_FALSE=
4197 depcc="$CC" am_compiler_list=
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4200 $as_echo_n "checking dependency style of $depcc... " >&6; }
4201 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4202 $as_echo_n "(cached) " >&6
4203 else
4204 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4205 # We make a subdir and do the tests there. Otherwise we can end up
4206 # making bogus files that we don't know about and never remove. For
4207 # instance it was reported that on HP-UX the gcc test will end up
4208 # making a dummy file named `D' -- because `-MD' means `put the output
4209 # in D'.
4210 rm -rf conftest.dir
4211 mkdir conftest.dir
4212 # Copy depcomp to subdir because otherwise we won't find it if we're
4213 # using a relative directory.
4214 cp "$am_depcomp" conftest.dir
4215 cd conftest.dir
4216 # We will build objects and dependencies in a subdirectory because
4217 # it helps to detect inapplicable dependency modes. For instance
4218 # both Tru64's cc and ICC support -MD to output dependencies as a
4219 # side effect of compilation, but ICC will put the dependencies in
4220 # the current directory while Tru64 will put them in the object
4221 # directory.
4222 mkdir sub
4224 am_cv_CC_dependencies_compiler_type=none
4225 if test "$am_compiler_list" = ""; then
4226 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4228 am__universal=false
4229 case " $depcc " in #(
4230 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4231 esac
4233 for depmode in $am_compiler_list; do
4234 # Setup a source with many dependencies, because some compilers
4235 # like to wrap large dependency lists on column 80 (with \), and
4236 # we should not choose a depcomp mode which is confused by this.
4238 # We need to recreate these files for each test, as the compiler may
4239 # overwrite some of them when testing with obscure command lines.
4240 # This happens at least with the AIX C compiler.
4241 : > sub/conftest.c
4242 for i in 1 2 3 4 5 6; do
4243 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4244 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4245 # Solaris 8's {/usr,}/bin/sh.
4246 touch sub/conftst$i.h
4247 done
4248 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4250 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4251 # mode. It turns out that the SunPro C++ compiler does not properly
4252 # handle `-M -o', and we need to detect this. Also, some Intel
4253 # versions had trouble with output in subdirs
4254 am__obj=sub/conftest.${OBJEXT-o}
4255 am__minus_obj="-o $am__obj"
4256 case $depmode in
4257 gcc)
4258 # This depmode causes a compiler race in universal mode.
4259 test "$am__universal" = false || continue
4261 nosideeffect)
4262 # after this tag, mechanisms are not by side-effect, so they'll
4263 # only be used when explicitly requested
4264 if test "x$enable_dependency_tracking" = xyes; then
4265 continue
4266 else
4267 break
4270 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4271 # This compiler won't grok `-c -o', but also, the minuso test has
4272 # not run yet. These depmodes are late enough in the game, and
4273 # so weak that their functioning should not be impacted.
4274 am__obj=conftest.${OBJEXT-o}
4275 am__minus_obj=
4277 none) break ;;
4278 esac
4279 if depmode=$depmode \
4280 source=sub/conftest.c object=$am__obj \
4281 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4282 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4283 >/dev/null 2>conftest.err &&
4284 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4285 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4286 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4287 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4288 # icc doesn't choke on unknown options, it will just issue warnings
4289 # or remarks (even with -Werror). So we grep stderr for any message
4290 # that says an option was ignored or not supported.
4291 # When given -MP, icc 7.0 and 7.1 complain thusly:
4292 # icc: Command line warning: ignoring option '-M'; no argument required
4293 # The diagnosis changed in icc 8.0:
4294 # icc: Command line remark: option '-MP' not supported
4295 if (grep 'ignoring option' conftest.err ||
4296 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4297 am_cv_CC_dependencies_compiler_type=$depmode
4298 break
4301 done
4303 cd ..
4304 rm -rf conftest.dir
4305 else
4306 am_cv_CC_dependencies_compiler_type=none
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4311 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4312 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4315 test "x$enable_dependency_tracking" != xno \
4316 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4317 am__fastdepCC_TRUE=
4318 am__fastdepCC_FALSE='#'
4319 else
4320 am__fastdepCC_TRUE='#'
4321 am__fastdepCC_FALSE=
4329 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4330 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4331 # in both places for now and restore CFLAGS at the end of config.
4332 save_CFLAGS="$CFLAGS"
4334 # Add -Wall -Werror if we are using GCC.
4335 if test "x$GCC" = "xyes"; then
4336 XCFLAGS="$XCFLAGS -Wall -Werror"
4339 # Find other programs we need.
4340 if test -n "$ac_tool_prefix"; then
4341 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4342 set dummy ${ac_tool_prefix}ar; ac_word=$2
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4344 $as_echo_n "checking for $ac_word... " >&6; }
4345 if test "${ac_cv_prog_AR+set}" = set; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 if test -n "$AR"; then
4349 ac_cv_prog_AR="$AR" # Let the user override the test.
4350 else
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4358 ac_cv_prog_AR="${ac_tool_prefix}ar"
4359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 break 2
4362 done
4363 done
4364 IFS=$as_save_IFS
4368 AR=$ac_cv_prog_AR
4369 if test -n "$AR"; then
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4371 $as_echo "$AR" >&6; }
4372 else
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374 $as_echo "no" >&6; }
4379 if test -z "$ac_cv_prog_AR"; then
4380 ac_ct_AR=$AR
4381 # Extract the first word of "ar", so it can be a program name with args.
4382 set dummy ar; ac_word=$2
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4384 $as_echo_n "checking for $ac_word... " >&6; }
4385 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4386 $as_echo_n "(cached) " >&6
4387 else
4388 if test -n "$ac_ct_AR"; then
4389 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4390 else
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4398 ac_cv_prog_ac_ct_AR="ar"
4399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 break 2
4402 done
4403 done
4404 IFS=$as_save_IFS
4408 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4409 if test -n "$ac_ct_AR"; then
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4411 $as_echo "$ac_ct_AR" >&6; }
4412 else
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414 $as_echo "no" >&6; }
4417 if test "x$ac_ct_AR" = x; then
4418 AR=""
4419 else
4420 case $cross_compiling:$ac_tool_warned in
4421 yes:)
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4424 ac_tool_warned=yes ;;
4425 esac
4426 AR=$ac_ct_AR
4428 else
4429 AR="$ac_cv_prog_AR"
4432 if test -n "$ac_tool_prefix"; then
4433 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4434 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436 $as_echo_n "checking for $ac_word... " >&6; }
4437 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 if test -n "$RANLIB"; then
4441 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4442 else
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4450 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4454 done
4455 done
4456 IFS=$as_save_IFS
4460 RANLIB=$ac_cv_prog_RANLIB
4461 if test -n "$RANLIB"; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4463 $as_echo "$RANLIB" >&6; }
4464 else
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466 $as_echo "no" >&6; }
4471 if test -z "$ac_cv_prog_RANLIB"; then
4472 ac_ct_RANLIB=$RANLIB
4473 # Extract the first word of "ranlib", so it can be a program name with args.
4474 set dummy ranlib; ac_word=$2
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4476 $as_echo_n "checking for $ac_word... " >&6; }
4477 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 if test -n "$ac_ct_RANLIB"; then
4481 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4482 else
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490 ac_cv_prog_ac_ct_RANLIB="ranlib"
4491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 break 2
4494 done
4495 done
4496 IFS=$as_save_IFS
4500 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4501 if test -n "$ac_ct_RANLIB"; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4503 $as_echo "$ac_ct_RANLIB" >&6; }
4504 else
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506 $as_echo "no" >&6; }
4509 if test "x$ac_ct_RANLIB" = x; then
4510 RANLIB="ranlib-not-found-in-path-error"
4511 else
4512 case $cross_compiling:$ac_tool_warned in
4513 yes:)
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4516 ac_tool_warned=yes ;;
4517 esac
4518 RANLIB=$ac_ct_RANLIB
4520 else
4521 RANLIB="$ac_cv_prog_RANLIB"
4524 # Extract the first word of "perl", so it can be a program name with args.
4525 set dummy perl; ac_word=$2
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4527 $as_echo_n "checking for $ac_word... " >&6; }
4528 if test "${ac_cv_path_PERL+set}" = set; then :
4529 $as_echo_n "(cached) " >&6
4530 else
4531 case $PERL in
4532 [\\/]* | ?:[\\/]*)
4533 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4547 done
4548 done
4549 IFS=$as_save_IFS
4551 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4553 esac
4555 PERL=$ac_cv_path_PERL
4556 if test -n "$PERL"; then
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4558 $as_echo "$PERL" >&6; }
4559 else
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561 $as_echo "no" >&6; }
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4566 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4567 set x ${MAKE-make}
4568 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4569 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 cat >conftest.make <<\_ACEOF
4573 SHELL = /bin/sh
4574 all:
4575 @echo '@@@%%%=$(MAKE)=@@@%%%'
4576 _ACEOF
4577 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4578 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4579 *@@@%%%=?*=@@@%%%*)
4580 eval ac_cv_prog_make_${ac_make}_set=yes;;
4582 eval ac_cv_prog_make_${ac_make}_set=no;;
4583 esac
4584 rm -f conftest.make
4586 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4588 $as_echo "yes" >&6; }
4589 SET_MAKE=
4590 else
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 $as_echo "no" >&6; }
4593 SET_MAKE="MAKE=${MAKE-make}"
4598 # See if makeinfo has been installed and is modern enough
4599 # that we can use it.
4601 # Extract the first word of "makeinfo", so it can be a program name with args.
4602 set dummy makeinfo; ac_word=$2
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4606 $as_echo_n "(cached) " >&6
4607 else
4608 if test -n "$MAKEINFO"; then
4609 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_MAKEINFO="makeinfo"
4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4622 done
4623 done
4624 IFS=$as_save_IFS
4628 MAKEINFO=$ac_cv_prog_MAKEINFO
4629 if test -n "$MAKEINFO"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4631 $as_echo "$MAKEINFO" >&6; }
4632 else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4638 if test -n "$MAKEINFO"; then
4639 # Found it, now check the version.
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4641 $as_echo_n "checking for modern makeinfo... " >&6; }
4642 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4646 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4648 case $ac_prog_version in
4649 '') gcc_cv_prog_makeinfo_modern=no;;
4650 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4651 *) gcc_cv_prog_makeinfo_modern=no;;
4652 esac
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4656 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4657 else
4658 gcc_cv_prog_makeinfo_modern=no
4660 if test $gcc_cv_prog_makeinfo_modern = no; then
4661 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4664 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4665 BUILD_INFO_TRUE=
4666 BUILD_INFO_FALSE='#'
4667 else
4668 BUILD_INFO_TRUE='#'
4669 BUILD_INFO_FALSE=
4674 # Configure libtool
4675 case `pwd` in
4676 *\ * | *\ *)
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4678 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4679 esac
4683 macro_version='2.2.7a'
4684 macro_revision='1.3134'
4698 ltmain="$ac_aux_dir/ltmain.sh"
4700 # Backslashify metacharacters that are still active within
4701 # double-quoted strings.
4702 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4704 # Same as above, but do not quote variable references.
4705 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4707 # Sed substitution to delay expansion of an escaped shell variable in a
4708 # double_quote_subst'ed string.
4709 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4711 # Sed substitution to delay expansion of an escaped single quote.
4712 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4714 # Sed substitution to avoid accidental globbing in evaled expressions
4715 no_glob_subst='s/\*/\\\*/g'
4717 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4718 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4719 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4722 $as_echo_n "checking how to print strings... " >&6; }
4723 # Test print first, because it will be a builtin if present.
4724 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4725 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4726 ECHO='print -r --'
4727 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4728 ECHO='printf %s\n'
4729 else
4730 # Use this function as a fallback that always works.
4731 func_fallback_echo ()
4733 eval 'cat <<_LTECHO_EOF
4735 _LTECHO_EOF'
4737 ECHO='func_fallback_echo'
4740 # func_echo_all arg...
4741 # Invoke $ECHO with all args, space-separated.
4742 func_echo_all ()
4744 $ECHO ""
4747 case "$ECHO" in
4748 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4749 $as_echo "printf" >&6; } ;;
4750 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4751 $as_echo "print -r" >&6; } ;;
4752 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4753 $as_echo "cat" >&6; } ;;
4754 esac
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4770 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4771 if test "${ac_cv_path_SED+set}" = set; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4775 for ac_i in 1 2 3 4 5 6 7; do
4776 ac_script="$ac_script$as_nl$ac_script"
4777 done
4778 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4779 { ac_script=; unset ac_script;}
4780 if test -z "$SED"; then
4781 ac_path_SED_found=false
4782 # Loop through the user's path and test for each of PROGNAME-LIST
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4786 IFS=$as_save_IFS
4787 test -z "$as_dir" && as_dir=.
4788 for ac_prog in sed gsed; do
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4791 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4792 # Check for GNU ac_path_SED and select it if it is found.
4793 # Check for GNU $ac_path_SED
4794 case `"$ac_path_SED" --version 2>&1` in
4795 *GNU*)
4796 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4798 ac_count=0
4799 $as_echo_n 0123456789 >"conftest.in"
4800 while :
4802 cat "conftest.in" "conftest.in" >"conftest.tmp"
4803 mv "conftest.tmp" "conftest.in"
4804 cp "conftest.in" "conftest.nl"
4805 $as_echo '' >> "conftest.nl"
4806 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4807 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4808 as_fn_arith $ac_count + 1 && ac_count=$as_val
4809 if test $ac_count -gt ${ac_path_SED_max-0}; then
4810 # Best one so far, save it but keep looking for a better one
4811 ac_cv_path_SED="$ac_path_SED"
4812 ac_path_SED_max=$ac_count
4814 # 10*(2^10) chars as input seems more than enough
4815 test $ac_count -gt 10 && break
4816 done
4817 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4818 esac
4820 $ac_path_SED_found && break 3
4821 done
4822 done
4823 done
4824 IFS=$as_save_IFS
4825 if test -z "$ac_cv_path_SED"; then
4826 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4828 else
4829 ac_cv_path_SED=$SED
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4834 $as_echo "$ac_cv_path_SED" >&6; }
4835 SED="$ac_cv_path_SED"
4836 rm -f conftest.sed
4838 test -z "$SED" && SED=sed
4839 Xsed="$SED -e 1s/^X//"
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4852 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4853 if test "${ac_cv_path_GREP+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if test -z "$GREP"; then
4857 ac_path_GREP_found=false
4858 # Loop through the user's path and test for each of PROGNAME-LIST
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_prog in grep ggrep; do
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4867 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4868 # Check for GNU ac_path_GREP and select it if it is found.
4869 # Check for GNU $ac_path_GREP
4870 case `"$ac_path_GREP" --version 2>&1` in
4871 *GNU*)
4872 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4874 ac_count=0
4875 $as_echo_n 0123456789 >"conftest.in"
4876 while :
4878 cat "conftest.in" "conftest.in" >"conftest.tmp"
4879 mv "conftest.tmp" "conftest.in"
4880 cp "conftest.in" "conftest.nl"
4881 $as_echo 'GREP' >> "conftest.nl"
4882 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4883 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4884 as_fn_arith $ac_count + 1 && ac_count=$as_val
4885 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4886 # Best one so far, save it but keep looking for a better one
4887 ac_cv_path_GREP="$ac_path_GREP"
4888 ac_path_GREP_max=$ac_count
4890 # 10*(2^10) chars as input seems more than enough
4891 test $ac_count -gt 10 && break
4892 done
4893 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4894 esac
4896 $ac_path_GREP_found && break 3
4897 done
4898 done
4899 done
4900 IFS=$as_save_IFS
4901 if test -z "$ac_cv_path_GREP"; then
4902 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4904 else
4905 ac_cv_path_GREP=$GREP
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4910 $as_echo "$ac_cv_path_GREP" >&6; }
4911 GREP="$ac_cv_path_GREP"
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4915 $as_echo_n "checking for egrep... " >&6; }
4916 if test "${ac_cv_path_EGREP+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4920 then ac_cv_path_EGREP="$GREP -E"
4921 else
4922 if test -z "$EGREP"; then
4923 ac_path_EGREP_found=false
4924 # Loop through the user's path and test for each of PROGNAME-LIST
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_prog in egrep; do
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4933 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4934 # Check for GNU ac_path_EGREP and select it if it is found.
4935 # Check for GNU $ac_path_EGREP
4936 case `"$ac_path_EGREP" --version 2>&1` in
4937 *GNU*)
4938 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4940 ac_count=0
4941 $as_echo_n 0123456789 >"conftest.in"
4942 while :
4944 cat "conftest.in" "conftest.in" >"conftest.tmp"
4945 mv "conftest.tmp" "conftest.in"
4946 cp "conftest.in" "conftest.nl"
4947 $as_echo 'EGREP' >> "conftest.nl"
4948 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4949 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4950 as_fn_arith $ac_count + 1 && ac_count=$as_val
4951 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4952 # Best one so far, save it but keep looking for a better one
4953 ac_cv_path_EGREP="$ac_path_EGREP"
4954 ac_path_EGREP_max=$ac_count
4956 # 10*(2^10) chars as input seems more than enough
4957 test $ac_count -gt 10 && break
4958 done
4959 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4960 esac
4962 $ac_path_EGREP_found && break 3
4963 done
4964 done
4965 done
4966 IFS=$as_save_IFS
4967 if test -z "$ac_cv_path_EGREP"; then
4968 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4970 else
4971 ac_cv_path_EGREP=$EGREP
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4977 $as_echo "$ac_cv_path_EGREP" >&6; }
4978 EGREP="$ac_cv_path_EGREP"
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4982 $as_echo_n "checking for fgrep... " >&6; }
4983 if test "${ac_cv_path_FGREP+set}" = set; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4987 then ac_cv_path_FGREP="$GREP -F"
4988 else
4989 if test -z "$FGREP"; then
4990 ac_path_FGREP_found=false
4991 # Loop through the user's path and test for each of PROGNAME-LIST
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_prog in fgrep; do
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5000 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5001 # Check for GNU ac_path_FGREP and select it if it is found.
5002 # Check for GNU $ac_path_FGREP
5003 case `"$ac_path_FGREP" --version 2>&1` in
5004 *GNU*)
5005 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5007 ac_count=0
5008 $as_echo_n 0123456789 >"conftest.in"
5009 while :
5011 cat "conftest.in" "conftest.in" >"conftest.tmp"
5012 mv "conftest.tmp" "conftest.in"
5013 cp "conftest.in" "conftest.nl"
5014 $as_echo 'FGREP' >> "conftest.nl"
5015 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5017 as_fn_arith $ac_count + 1 && ac_count=$as_val
5018 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5019 # Best one so far, save it but keep looking for a better one
5020 ac_cv_path_FGREP="$ac_path_FGREP"
5021 ac_path_FGREP_max=$ac_count
5023 # 10*(2^10) chars as input seems more than enough
5024 test $ac_count -gt 10 && break
5025 done
5026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5027 esac
5029 $ac_path_FGREP_found && break 3
5030 done
5031 done
5032 done
5033 IFS=$as_save_IFS
5034 if test -z "$ac_cv_path_FGREP"; then
5035 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5037 else
5038 ac_cv_path_FGREP=$FGREP
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5044 $as_echo "$ac_cv_path_FGREP" >&6; }
5045 FGREP="$ac_cv_path_FGREP"
5048 test -z "$GREP" && GREP=grep
5068 # Check whether --with-gnu-ld was given.
5069 if test "${with_gnu_ld+set}" = set; then :
5070 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5071 else
5072 with_gnu_ld=no
5075 ac_prog=ld
5076 if test "$GCC" = yes; then
5077 # Check if gcc -print-prog-name=ld gives a path.
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5079 $as_echo_n "checking for ld used by $CC... " >&6; }
5080 case $host in
5081 *-*-mingw*)
5082 # gcc leaves a trailing carriage return which upsets mingw
5083 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5085 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5086 esac
5087 case $ac_prog in
5088 # Accept absolute paths.
5089 [\\/]* | ?:[\\/]*)
5090 re_direlt='/[^/][^/]*/\.\./'
5091 # Canonicalize the pathname of ld
5092 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5093 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5094 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5095 done
5096 test -z "$LD" && LD="$ac_prog"
5099 # If it fails, then pretend we aren't using GCC.
5100 ac_prog=ld
5103 # If it is relative, then search for the first ld in PATH.
5104 with_gnu_ld=unknown
5106 esac
5107 elif test "$with_gnu_ld" = yes; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5109 $as_echo_n "checking for GNU ld... " >&6; }
5110 else
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5112 $as_echo_n "checking for non-GNU ld... " >&6; }
5114 if test "${lt_cv_path_LD+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 if test -z "$LD"; then
5118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5119 for ac_dir in $PATH; do
5120 IFS="$lt_save_ifs"
5121 test -z "$ac_dir" && ac_dir=.
5122 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5123 lt_cv_path_LD="$ac_dir/$ac_prog"
5124 # Check to see if the program is GNU ld. I'd rather use --version,
5125 # but apparently some variants of GNU ld only accept -v.
5126 # Break only if it was the GNU/non-GNU ld that we prefer.
5127 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5128 *GNU* | *'with BFD'*)
5129 test "$with_gnu_ld" != no && break
5132 test "$with_gnu_ld" != yes && break
5134 esac
5136 done
5137 IFS="$lt_save_ifs"
5138 else
5139 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5143 LD="$lt_cv_path_LD"
5144 if test -n "$LD"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5146 $as_echo "$LD" >&6; }
5147 else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5151 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5153 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5154 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5158 case `$LD -v 2>&1 </dev/null` in
5159 *GNU* | *'with BFD'*)
5160 lt_cv_prog_gnu_ld=yes
5163 lt_cv_prog_gnu_ld=no
5165 esac
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5168 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5169 with_gnu_ld=$lt_cv_prog_gnu_ld
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5180 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5181 if test "${lt_cv_path_NM+set}" = set; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 if test -n "$NM"; then
5185 # Let the user override the test.
5186 lt_cv_path_NM="$NM"
5187 else
5188 lt_nm_to_check="${ac_tool_prefix}nm"
5189 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5190 lt_nm_to_check="$lt_nm_to_check nm"
5192 for lt_tmp_nm in $lt_nm_to_check; do
5193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5194 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5195 IFS="$lt_save_ifs"
5196 test -z "$ac_dir" && ac_dir=.
5197 tmp_nm="$ac_dir/$lt_tmp_nm"
5198 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5199 # Check to see if the nm accepts a BSD-compat flag.
5200 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5201 # nm: unknown option "B" ignored
5202 # Tru64's nm complains that /dev/null is an invalid object file
5203 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5204 */dev/null* | *'Invalid file or object type'*)
5205 lt_cv_path_NM="$tmp_nm -B"
5206 break
5209 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5210 */dev/null*)
5211 lt_cv_path_NM="$tmp_nm -p"
5212 break
5215 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5216 continue # so that we can try to find one that supports BSD flags
5218 esac
5220 esac
5222 done
5223 IFS="$lt_save_ifs"
5224 done
5225 : ${lt_cv_path_NM=no}
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5229 $as_echo "$lt_cv_path_NM" >&6; }
5230 if test "$lt_cv_path_NM" != "no"; then
5231 NM="$lt_cv_path_NM"
5232 else
5233 # Didn't find any BSD compatible name lister, look for dumpbin.
5234 if test -n "$DUMPBIN"; then :
5235 # Let the user override the test.
5236 else
5237 if test -n "$ac_tool_prefix"; then
5238 for ac_prog in dumpbin "link -dump"
5240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5241 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 if test -n "$DUMPBIN"; then
5248 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5257 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5261 done
5262 done
5263 IFS=$as_save_IFS
5267 DUMPBIN=$ac_cv_prog_DUMPBIN
5268 if test -n "$DUMPBIN"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5270 $as_echo "$DUMPBIN" >&6; }
5271 else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5277 test -n "$DUMPBIN" && break
5278 done
5280 if test -z "$DUMPBIN"; then
5281 ac_ct_DUMPBIN=$DUMPBIN
5282 for ac_prog in dumpbin "link -dump"
5284 # Extract the first word of "$ac_prog", so it can be a program name with args.
5285 set dummy $ac_prog; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 if test -n "$ac_ct_DUMPBIN"; then
5292 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5293 else
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5305 done
5306 done
5307 IFS=$as_save_IFS
5311 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5312 if test -n "$ac_ct_DUMPBIN"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5314 $as_echo "$ac_ct_DUMPBIN" >&6; }
5315 else
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5321 test -n "$ac_ct_DUMPBIN" && break
5322 done
5324 if test "x$ac_ct_DUMPBIN" = x; then
5325 DUMPBIN=":"
5326 else
5327 case $cross_compiling:$ac_tool_warned in
5328 yes:)
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5331 ac_tool_warned=yes ;;
5332 esac
5333 DUMPBIN=$ac_ct_DUMPBIN
5337 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5338 *COFF*)
5339 DUMPBIN="$DUMPBIN -symbols"
5342 DUMPBIN=:
5344 esac
5347 if test "$DUMPBIN" != ":"; then
5348 NM="$DUMPBIN"
5351 test -z "$NM" && NM=nm
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5359 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5360 if test "${lt_cv_nm_interface+set}" = set; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 lt_cv_nm_interface="BSD nm"
5364 echo "int some_variable = 0;" > conftest.$ac_ext
5365 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5366 (eval "$ac_compile" 2>conftest.err)
5367 cat conftest.err >&5
5368 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5369 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5370 cat conftest.err >&5
5371 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5372 cat conftest.out >&5
5373 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5374 lt_cv_nm_interface="MS dumpbin"
5376 rm -f conftest*
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5379 $as_echo "$lt_cv_nm_interface" >&6; }
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5382 $as_echo_n "checking whether ln -s works... " >&6; }
5383 LN_S=$as_ln_s
5384 if test "$LN_S" = "ln -s"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5386 $as_echo "yes" >&6; }
5387 else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5389 $as_echo "no, using $LN_S" >&6; }
5392 # find the maximum length of command line arguments
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5394 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5395 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5399 teststring="ABCD"
5401 case $build_os in
5402 msdosdjgpp*)
5403 # On DJGPP, this test can blow up pretty badly due to problems in libc
5404 # (any single argument exceeding 2000 bytes causes a buffer overrun
5405 # during glob expansion). Even if it were fixed, the result of this
5406 # check would be larger than it should be.
5407 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5410 gnu*)
5411 # Under GNU Hurd, this test is not required because there is
5412 # no limit to the length of command line arguments.
5413 # Libtool will interpret -1 as no limit whatsoever
5414 lt_cv_sys_max_cmd_len=-1;
5417 cygwin* | mingw* | cegcc*)
5418 # On Win9x/ME, this test blows up -- it succeeds, but takes
5419 # about 5 minutes as the teststring grows exponentially.
5420 # Worse, since 9x/ME are not pre-emptively multitasking,
5421 # you end up with a "frozen" computer, even though with patience
5422 # the test eventually succeeds (with a max line length of 256k).
5423 # Instead, let's just punt: use the minimum linelength reported by
5424 # all of the supported platforms: 8192 (on NT/2K/XP).
5425 lt_cv_sys_max_cmd_len=8192;
5428 mint*)
5429 # On MiNT this can take a long time and run out of memory.
5430 lt_cv_sys_max_cmd_len=8192;
5433 amigaos*)
5434 # On AmigaOS with pdksh, this test takes hours, literally.
5435 # So we just punt and use a minimum line length of 8192.
5436 lt_cv_sys_max_cmd_len=8192;
5439 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5440 # This has been around since 386BSD, at least. Likely further.
5441 if test -x /sbin/sysctl; then
5442 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5443 elif test -x /usr/sbin/sysctl; then
5444 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5445 else
5446 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5448 # And add a safety zone
5449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5453 interix*)
5454 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5455 lt_cv_sys_max_cmd_len=196608
5458 osf*)
5459 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5460 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5461 # nice to cause kernel panics so lets avoid the loop below.
5462 # First set a reasonable default.
5463 lt_cv_sys_max_cmd_len=16384
5465 if test -x /sbin/sysconfig; then
5466 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5467 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5468 esac
5471 sco3.2v5*)
5472 lt_cv_sys_max_cmd_len=102400
5474 sysv5* | sco5v6* | sysv4.2uw2*)
5475 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5476 if test -n "$kargmax"; then
5477 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5478 else
5479 lt_cv_sys_max_cmd_len=32768
5483 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5484 if test -n "$lt_cv_sys_max_cmd_len"; then
5485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5486 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5487 else
5488 # Make teststring a little bigger before we do anything with it.
5489 # a 1K string should be a reasonable start.
5490 for i in 1 2 3 4 5 6 7 8 ; do
5491 teststring=$teststring$teststring
5492 done
5493 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5494 # If test is not a shell built-in, we'll probably end up computing a
5495 # maximum length that is only half of the actual maximum length, but
5496 # we can't tell.
5497 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5498 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5499 test $i != 17 # 1/2 MB should be enough
5501 i=`expr $i + 1`
5502 teststring=$teststring$teststring
5503 done
5504 # Only check the string length outside the loop.
5505 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5506 teststring=
5507 # Add a significant safety factor because C++ compilers can tack on
5508 # massive amounts of additional arguments before passing them to the
5509 # linker. It appears as though 1/2 is a usable value.
5510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5513 esac
5517 if test -n $lt_cv_sys_max_cmd_len ; then
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5519 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5520 else
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5522 $as_echo "none" >&6; }
5524 max_cmd_len=$lt_cv_sys_max_cmd_len
5531 : ${CP="cp -f"}
5532 : ${MV="mv -f"}
5533 : ${RM="rm -f"}
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5536 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5537 # Try some XSI features
5538 xsi_shell=no
5539 ( _lt_dummy="a/b/c"
5540 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5541 = c,a/b,, \
5542 && eval 'test $(( 1 + 1 )) -eq 2 \
5543 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5544 && xsi_shell=yes
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5546 $as_echo "$xsi_shell" >&6; }
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5550 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5551 lt_shell_append=no
5552 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5553 >/dev/null 2>&1 \
5554 && lt_shell_append=yes
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5556 $as_echo "$lt_shell_append" >&6; }
5559 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5560 lt_unset=unset
5561 else
5562 lt_unset=false
5569 # test EBCDIC or ASCII
5570 case `echo X|tr X '\101'` in
5571 A) # ASCII based system
5572 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5573 lt_SP2NL='tr \040 \012'
5574 lt_NL2SP='tr \015\012 \040\040'
5576 *) # EBCDIC based system
5577 lt_SP2NL='tr \100 \n'
5578 lt_NL2SP='tr \r\n \100\100'
5580 esac
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5591 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5592 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 lt_cv_ld_reload_flag='-r'
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5598 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5599 reload_flag=$lt_cv_ld_reload_flag
5600 case $reload_flag in
5601 "" | " "*) ;;
5602 *) reload_flag=" $reload_flag" ;;
5603 esac
5604 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5605 case $host_os in
5606 darwin*)
5607 if test "$GCC" = yes; then
5608 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5609 else
5610 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5613 esac
5623 if test -n "$ac_tool_prefix"; then
5624 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5625 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5627 $as_echo_n "checking for $ac_word... " >&6; }
5628 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5631 if test -n "$OBJDUMP"; then
5632 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5633 else
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH
5637 IFS=$as_save_IFS
5638 test -z "$as_dir" && as_dir=.
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5641 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 break 2
5645 done
5646 done
5647 IFS=$as_save_IFS
5651 OBJDUMP=$ac_cv_prog_OBJDUMP
5652 if test -n "$OBJDUMP"; then
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5654 $as_echo "$OBJDUMP" >&6; }
5655 else
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657 $as_echo "no" >&6; }
5662 if test -z "$ac_cv_prog_OBJDUMP"; then
5663 ac_ct_OBJDUMP=$OBJDUMP
5664 # Extract the first word of "objdump", so it can be a program name with args.
5665 set dummy objdump; ac_word=$2
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667 $as_echo_n "checking for $ac_word... " >&6; }
5668 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671 if test -n "$ac_ct_OBJDUMP"; then
5672 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5673 else
5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 for as_dir in $PATH
5677 IFS=$as_save_IFS
5678 test -z "$as_dir" && as_dir=.
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5681 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 break 2
5685 done
5686 done
5687 IFS=$as_save_IFS
5691 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5692 if test -n "$ac_ct_OBJDUMP"; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5694 $as_echo "$ac_ct_OBJDUMP" >&6; }
5695 else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5700 if test "x$ac_ct_OBJDUMP" = x; then
5701 OBJDUMP="false"
5702 else
5703 case $cross_compiling:$ac_tool_warned in
5704 yes:)
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5707 ac_tool_warned=yes ;;
5708 esac
5709 OBJDUMP=$ac_ct_OBJDUMP
5711 else
5712 OBJDUMP="$ac_cv_prog_OBJDUMP"
5715 test -z "$OBJDUMP" && OBJDUMP=objdump
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5726 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5727 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 lt_cv_file_magic_cmd='$MAGIC_CMD'
5731 lt_cv_file_magic_test_file=
5732 lt_cv_deplibs_check_method='unknown'
5733 # Need to set the preceding variable on all platforms that support
5734 # interlibrary dependencies.
5735 # 'none' -- dependencies not supported.
5736 # `unknown' -- same as none, but documents that we really don't know.
5737 # 'pass_all' -- all dependencies passed with no checks.
5738 # 'test_compile' -- check by making test program.
5739 # 'file_magic [[regex]]' -- check by looking for files in library path
5740 # which responds to the $file_magic_cmd with a given extended regex.
5741 # If you have `file' or equivalent on your system and you're not sure
5742 # whether `pass_all' will *always* work, you probably want this one.
5744 case $host_os in
5745 aix[4-9]*)
5746 lt_cv_deplibs_check_method=pass_all
5749 beos*)
5750 lt_cv_deplibs_check_method=pass_all
5753 bsdi[45]*)
5754 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5755 lt_cv_file_magic_cmd='/usr/bin/file -L'
5756 lt_cv_file_magic_test_file=/shlib/libc.so
5759 cygwin*)
5760 # func_win32_libid is a shell function defined in ltmain.sh
5761 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5762 lt_cv_file_magic_cmd='func_win32_libid'
5765 mingw* | pw32*)
5766 # Base MSYS/MinGW do not provide the 'file' command needed by
5767 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5768 # unless we find 'file', for example because we are cross-compiling.
5769 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5770 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5771 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5772 lt_cv_file_magic_cmd='func_win32_libid'
5773 else
5774 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5775 lt_cv_file_magic_cmd='$OBJDUMP -f'
5779 cegcc*)
5780 # use the weaker test based on 'objdump'. See mingw*.
5781 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5782 lt_cv_file_magic_cmd='$OBJDUMP -f'
5785 darwin* | rhapsody*)
5786 lt_cv_deplibs_check_method=pass_all
5789 freebsd* | dragonfly*)
5790 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5791 case $host_cpu in
5792 i*86 )
5793 # Not sure whether the presence of OpenBSD here was a mistake.
5794 # Let's accept both of them until this is cleared up.
5795 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5796 lt_cv_file_magic_cmd=/usr/bin/file
5797 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5799 esac
5800 else
5801 lt_cv_deplibs_check_method=pass_all
5805 gnu*)
5806 lt_cv_deplibs_check_method=pass_all
5809 haiku*)
5810 lt_cv_deplibs_check_method=pass_all
5813 hpux10.20* | hpux11*)
5814 lt_cv_file_magic_cmd=/usr/bin/file
5815 case $host_cpu in
5816 ia64*)
5817 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5818 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5820 hppa*64*)
5821 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]'
5822 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5825 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5826 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5828 esac
5831 interix[3-9]*)
5832 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5833 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5836 irix5* | irix6* | nonstopux*)
5837 case $LD in
5838 *-32|*"-32 ") libmagic=32-bit;;
5839 *-n32|*"-n32 ") libmagic=N32;;
5840 *-64|*"-64 ") libmagic=64-bit;;
5841 *) libmagic=never-match;;
5842 esac
5843 lt_cv_deplibs_check_method=pass_all
5846 # This must be Linux ELF.
5847 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5848 lt_cv_deplibs_check_method=pass_all
5851 netbsd*)
5852 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5853 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5854 else
5855 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5859 newos6*)
5860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5861 lt_cv_file_magic_cmd=/usr/bin/file
5862 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5865 *nto* | *qnx*)
5866 lt_cv_deplibs_check_method=pass_all
5869 openbsd*)
5870 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5871 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5872 else
5873 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5877 osf3* | osf4* | osf5*)
5878 lt_cv_deplibs_check_method=pass_all
5881 rdos*)
5882 lt_cv_deplibs_check_method=pass_all
5885 solaris*)
5886 lt_cv_deplibs_check_method=pass_all
5889 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5890 lt_cv_deplibs_check_method=pass_all
5893 sysv4 | sysv4.3*)
5894 case $host_vendor in
5895 motorola)
5896 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]'
5897 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5899 ncr)
5900 lt_cv_deplibs_check_method=pass_all
5902 sequent)
5903 lt_cv_file_magic_cmd='/bin/file'
5904 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5906 sni)
5907 lt_cv_file_magic_cmd='/bin/file'
5908 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5909 lt_cv_file_magic_test_file=/lib/libc.so
5911 siemens)
5912 lt_cv_deplibs_check_method=pass_all
5915 lt_cv_deplibs_check_method=pass_all
5917 esac
5920 tpf*)
5921 lt_cv_deplibs_check_method=pass_all
5923 esac
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5927 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5928 file_magic_cmd=$lt_cv_file_magic_cmd
5929 deplibs_check_method=$lt_cv_deplibs_check_method
5930 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5943 if test -n "$ac_tool_prefix"; then
5944 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5945 set dummy ${ac_tool_prefix}ar; ac_word=$2
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947 $as_echo_n "checking for $ac_word... " >&6; }
5948 if test "${ac_cv_prog_AR+set}" = set; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 if test -n "$AR"; then
5952 ac_cv_prog_AR="$AR" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5961 ac_cv_prog_AR="${ac_tool_prefix}ar"
5962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 break 2
5965 done
5966 done
5967 IFS=$as_save_IFS
5971 AR=$ac_cv_prog_AR
5972 if test -n "$AR"; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5974 $as_echo "$AR" >&6; }
5975 else
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977 $as_echo "no" >&6; }
5982 if test -z "$ac_cv_prog_AR"; then
5983 ac_ct_AR=$AR
5984 # Extract the first word of "ar", so it can be a program name with args.
5985 set dummy ar; ac_word=$2
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 if test -n "$ac_ct_AR"; then
5992 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5993 else
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_prog_ac_ct_AR="ar"
6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 break 2
6005 done
6006 done
6007 IFS=$as_save_IFS
6011 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6012 if test -n "$ac_ct_AR"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6014 $as_echo "$ac_ct_AR" >&6; }
6015 else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 $as_echo "no" >&6; }
6020 if test "x$ac_ct_AR" = x; then
6021 AR="false"
6022 else
6023 case $cross_compiling:$ac_tool_warned in
6024 yes:)
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6027 ac_tool_warned=yes ;;
6028 esac
6029 AR=$ac_ct_AR
6031 else
6032 AR="$ac_cv_prog_AR"
6035 test -z "$AR" && AR=ar
6036 test -z "$AR_FLAGS" && AR_FLAGS=cru
6048 if test -n "$ac_tool_prefix"; then
6049 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6050 set dummy ${ac_tool_prefix}strip; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if test "${ac_cv_prog_STRIP+set}" = set; then :
6054 $as_echo_n "(cached) " >&6
6055 else
6056 if test -n "$STRIP"; then
6057 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6070 done
6071 done
6072 IFS=$as_save_IFS
6076 STRIP=$ac_cv_prog_STRIP
6077 if test -n "$STRIP"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6079 $as_echo "$STRIP" >&6; }
6080 else
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6087 if test -z "$ac_cv_prog_STRIP"; then
6088 ac_ct_STRIP=$STRIP
6089 # Extract the first word of "strip", so it can be a program name with args.
6090 set dummy strip; ac_word=$2
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6092 $as_echo_n "checking for $ac_word... " >&6; }
6093 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6094 $as_echo_n "(cached) " >&6
6095 else
6096 if test -n "$ac_ct_STRIP"; then
6097 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6098 else
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_prog_ac_ct_STRIP="strip"
6107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 break 2
6110 done
6111 done
6112 IFS=$as_save_IFS
6116 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6117 if test -n "$ac_ct_STRIP"; then
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6119 $as_echo "$ac_ct_STRIP" >&6; }
6120 else
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6122 $as_echo "no" >&6; }
6125 if test "x$ac_ct_STRIP" = x; then
6126 STRIP=":"
6127 else
6128 case $cross_compiling:$ac_tool_warned in
6129 yes:)
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6132 ac_tool_warned=yes ;;
6133 esac
6134 STRIP=$ac_ct_STRIP
6136 else
6137 STRIP="$ac_cv_prog_STRIP"
6140 test -z "$STRIP" && STRIP=:
6147 if test -n "$ac_tool_prefix"; then
6148 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6149 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6153 $as_echo_n "(cached) " >&6
6154 else
6155 if test -n "$RANLIB"; then
6156 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6157 else
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 break 2
6169 done
6170 done
6171 IFS=$as_save_IFS
6175 RANLIB=$ac_cv_prog_RANLIB
6176 if test -n "$RANLIB"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6178 $as_echo "$RANLIB" >&6; }
6179 else
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }
6186 if test -z "$ac_cv_prog_RANLIB"; then
6187 ac_ct_RANLIB=$RANLIB
6188 # Extract the first word of "ranlib", so it can be a program name with args.
6189 set dummy ranlib; ac_word=$2
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191 $as_echo_n "checking for $ac_word... " >&6; }
6192 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6193 $as_echo_n "(cached) " >&6
6194 else
6195 if test -n "$ac_ct_RANLIB"; then
6196 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6197 else
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6205 ac_cv_prog_ac_ct_RANLIB="ranlib"
6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6209 done
6210 done
6211 IFS=$as_save_IFS
6215 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6216 if test -n "$ac_ct_RANLIB"; then
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6218 $as_echo "$ac_ct_RANLIB" >&6; }
6219 else
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221 $as_echo "no" >&6; }
6224 if test "x$ac_ct_RANLIB" = x; then
6225 RANLIB=":"
6226 else
6227 case $cross_compiling:$ac_tool_warned in
6228 yes:)
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6231 ac_tool_warned=yes ;;
6232 esac
6233 RANLIB=$ac_ct_RANLIB
6235 else
6236 RANLIB="$ac_cv_prog_RANLIB"
6239 test -z "$RANLIB" && RANLIB=:
6246 # Determine commands to create old-style static archives.
6247 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6248 old_postinstall_cmds='chmod 644 $oldlib'
6249 old_postuninstall_cmds=
6251 if test -n "$RANLIB"; then
6252 case $host_os in
6253 openbsd*)
6254 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6257 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6259 esac
6260 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6263 case $host_os in
6264 darwin*)
6265 lock_old_archive_extraction=yes ;;
6267 lock_old_archive_extraction=no ;;
6268 esac
6308 # If no C compiler was specified, use CC.
6309 LTCC=${LTCC-"$CC"}
6311 # If no C compiler flags were specified, use CFLAGS.
6312 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6314 # Allow CC to be a program name with arguments.
6315 compiler=$CC
6318 # Check for command to grab the raw symbol name followed by C symbol from nm.
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6320 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6321 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6322 $as_echo_n "(cached) " >&6
6323 else
6325 # These are sane defaults that work on at least a few old systems.
6326 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6328 # Character class describing NM global symbol codes.
6329 symcode='[BCDEGRST]'
6331 # Regexp to match symbols that can be accessed directly from C.
6332 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6334 # Define system-specific variables.
6335 case $host_os in
6336 aix*)
6337 symcode='[BCDT]'
6339 cygwin* | mingw* | pw32* | cegcc*)
6340 symcode='[ABCDGISTW]'
6342 hpux*)
6343 if test "$host_cpu" = ia64; then
6344 symcode='[ABCDEGRST]'
6347 irix* | nonstopux*)
6348 symcode='[BCDEGRST]'
6350 osf*)
6351 symcode='[BCDEGQRST]'
6353 solaris*)
6354 symcode='[BDRT]'
6356 sco3.2v5*)
6357 symcode='[DT]'
6359 sysv4.2uw2*)
6360 symcode='[DT]'
6362 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6363 symcode='[ABDT]'
6365 sysv4)
6366 symcode='[DFNSTU]'
6368 esac
6370 # If we're using GNU nm, then use its standard symbol codes.
6371 case `$NM -V 2>&1` in
6372 *GNU* | *'with BFD'*)
6373 symcode='[ABCDGIRSTW]' ;;
6374 esac
6376 # Transform an extracted symbol line into a proper C declaration.
6377 # Some systems (esp. on ia64) link data and code symbols differently,
6378 # so use this general approach.
6379 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6381 # Transform an extracted symbol line into symbol name and symbol address
6382 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6383 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'"
6385 # Handle CRLF in mingw tool chain
6386 opt_cr=
6387 case $build_os in
6388 mingw*)
6389 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6391 esac
6393 # Try without a prefix underscore, then with it.
6394 for ac_symprfx in "" "_"; do
6396 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6397 symxfrm="\\1 $ac_symprfx\\2 \\2"
6399 # Write the raw and C identifiers.
6400 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6401 # Fake it for dumpbin and say T for any non-static function
6402 # and D for any global variable.
6403 # Also find C++ and __fastcall symbols from MSVC++,
6404 # which start with @ or ?.
6405 lt_cv_sys_global_symbol_pipe="$AWK '"\
6406 " {last_section=section; section=\$ 3};"\
6407 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6408 " \$ 0!~/External *\|/{next};"\
6409 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6410 " {if(hide[section]) next};"\
6411 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6412 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6413 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6414 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6415 " ' prfx=^$ac_symprfx"
6416 else
6417 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6420 # Check to see that the pipe works correctly.
6421 pipe_works=no
6423 rm -f conftest*
6424 cat > conftest.$ac_ext <<_LT_EOF
6425 #ifdef __cplusplus
6426 extern "C" {
6427 #endif
6428 char nm_test_var;
6429 void nm_test_func(void);
6430 void nm_test_func(void){}
6431 #ifdef __cplusplus
6433 #endif
6434 int main(){nm_test_var='a';nm_test_func();return(0);}
6435 _LT_EOF
6437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6438 (eval $ac_compile) 2>&5
6439 ac_status=$?
6440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6441 test $ac_status = 0; }; then
6442 # Now try to grab the symbols.
6443 nlist=conftest.nm
6444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6445 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6446 ac_status=$?
6447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6448 test $ac_status = 0; } && test -s "$nlist"; then
6449 # Try sorting and uniquifying the output.
6450 if sort "$nlist" | uniq > "$nlist"T; then
6451 mv -f "$nlist"T "$nlist"
6452 else
6453 rm -f "$nlist"T
6456 # Make sure that we snagged all the symbols we need.
6457 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6458 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6459 cat <<_LT_EOF > conftest.$ac_ext
6460 #ifdef __cplusplus
6461 extern "C" {
6462 #endif
6464 _LT_EOF
6465 # Now generate the symbol file.
6466 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6468 cat <<_LT_EOF >> conftest.$ac_ext
6470 /* The mapping between symbol names and symbols. */
6471 const struct {
6472 const char *name;
6473 void *address;
6475 lt__PROGRAM__LTX_preloaded_symbols[] =
6477 { "@PROGRAM@", (void *) 0 },
6478 _LT_EOF
6479 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6480 cat <<\_LT_EOF >> conftest.$ac_ext
6481 {0, (void *) 0}
6484 /* This works around a problem in FreeBSD linker */
6485 #ifdef FREEBSD_WORKAROUND
6486 static const void *lt_preloaded_setup() {
6487 return lt__PROGRAM__LTX_preloaded_symbols;
6489 #endif
6491 #ifdef __cplusplus
6493 #endif
6494 _LT_EOF
6495 # Now try linking the two files.
6496 mv conftest.$ac_objext conftstm.$ac_objext
6497 lt_save_LIBS="$LIBS"
6498 lt_save_CFLAGS="$CFLAGS"
6499 LIBS="conftstm.$ac_objext"
6500 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6502 (eval $ac_link) 2>&5
6503 ac_status=$?
6504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6505 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6506 pipe_works=yes
6508 LIBS="$lt_save_LIBS"
6509 CFLAGS="$lt_save_CFLAGS"
6510 else
6511 echo "cannot find nm_test_func in $nlist" >&5
6513 else
6514 echo "cannot find nm_test_var in $nlist" >&5
6516 else
6517 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6519 else
6520 echo "$progname: failed program was:" >&5
6521 cat conftest.$ac_ext >&5
6523 rm -rf conftest* conftst*
6525 # Do not use the global_symbol_pipe unless it works.
6526 if test "$pipe_works" = yes; then
6527 break
6528 else
6529 lt_cv_sys_global_symbol_pipe=
6531 done
6535 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6536 lt_cv_sys_global_symbol_to_cdecl=
6538 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6540 $as_echo "failed" >&6; }
6541 else
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6543 $as_echo "ok" >&6; }
6568 # Check whether --enable-libtool-lock was given.
6569 if test "${enable_libtool_lock+set}" = set; then :
6570 enableval=$enable_libtool_lock;
6573 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6575 # Some flags need to be propagated to the compiler or linker for good
6576 # libtool support.
6577 case $host in
6578 ia64-*-hpux*)
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.$ac_objext` in
6587 *ELF-32*)
6588 HPUX_IA64_MODE="32"
6590 *ELF-64*)
6591 HPUX_IA64_MODE="64"
6593 esac
6595 rm -rf conftest*
6597 *-*-irix6*)
6598 # Find out which ABI we are using.
6599 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6601 (eval $ac_compile) 2>&5
6602 ac_status=$?
6603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6604 test $ac_status = 0; }; then
6605 if test "$lt_cv_prog_gnu_ld" = yes; then
6606 case `/usr/bin/file conftest.$ac_objext` in
6607 *32-bit*)
6608 LD="${LD-ld} -melf32bsmip"
6610 *N32*)
6611 LD="${LD-ld} -melf32bmipn32"
6613 *64-bit*)
6614 LD="${LD-ld} -melf64bmip"
6616 esac
6617 else
6618 case `/usr/bin/file conftest.$ac_objext` in
6619 *32-bit*)
6620 LD="${LD-ld} -32"
6622 *N32*)
6623 LD="${LD-ld} -n32"
6625 *64-bit*)
6626 LD="${LD-ld} -64"
6628 esac
6631 rm -rf conftest*
6634 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6635 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6636 # Find out which ABI we are using.
6637 echo 'int i;' > conftest.$ac_ext
6638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6639 (eval $ac_compile) 2>&5
6640 ac_status=$?
6641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6642 test $ac_status = 0; }; then
6643 case `/usr/bin/file conftest.o` in
6644 *32-bit*)
6645 case $host in
6646 x86_64-*kfreebsd*-gnu)
6647 LD="${LD-ld} -m elf_i386_fbsd"
6649 x86_64-*linux*)
6650 case `/usr/bin/file conftest.o` in
6651 *x86-64*)
6652 LD="${LD-ld} -m elf32_x86_64"
6655 LD="${LD-ld} -m elf_i386"
6657 esac
6659 powerpc64le-*linux*)
6660 LD="${LD-ld} -m elf32lppclinux"
6662 powerpc64-*linux*)
6663 LD="${LD-ld} -m elf32ppclinux"
6665 s390x-*linux*)
6666 LD="${LD-ld} -m elf_s390"
6668 sparc64-*linux*)
6669 LD="${LD-ld} -m elf32_sparc"
6671 esac
6673 *64-bit*)
6674 case $host in
6675 x86_64-*kfreebsd*-gnu)
6676 LD="${LD-ld} -m elf_x86_64_fbsd"
6678 x86_64-*linux*)
6679 LD="${LD-ld} -m elf_x86_64"
6681 powerpcle-*linux*)
6682 LD="${LD-ld} -m elf64lppc"
6684 powerpc-*linux*)
6685 LD="${LD-ld} -m elf64ppc"
6687 s390*-*linux*|s390*-*tpf*)
6688 LD="${LD-ld} -m elf64_s390"
6690 sparc*-*linux*)
6691 LD="${LD-ld} -m elf64_sparc"
6693 esac
6695 esac
6697 rm -rf conftest*
6700 *-*-sco3.2v5*)
6701 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6702 SAVE_CFLAGS="$CFLAGS"
6703 CFLAGS="$CFLAGS -belf"
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6705 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6706 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6707 $as_echo_n "(cached) " >&6
6708 else
6709 ac_ext=c
6710 ac_cpp='$CPP $CPPFLAGS'
6711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h. */
6719 main ()
6723 return 0;
6725 _ACEOF
6726 if ac_fn_c_try_link "$LINENO"; then :
6727 lt_cv_cc_needs_belf=yes
6728 else
6729 lt_cv_cc_needs_belf=no
6731 rm -f core conftest.err conftest.$ac_objext \
6732 conftest$ac_exeext conftest.$ac_ext
6733 ac_ext=c
6734 ac_cpp='$CPP $CPPFLAGS'
6735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6741 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6742 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6743 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6744 CFLAGS="$SAVE_CFLAGS"
6747 sparc*-*solaris*)
6748 # Find out which ABI we are using.
6749 echo 'int i;' > conftest.$ac_ext
6750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6751 (eval $ac_compile) 2>&5
6752 ac_status=$?
6753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6754 test $ac_status = 0; }; then
6755 case `/usr/bin/file conftest.o` in
6756 *64-bit*)
6757 case $lt_cv_prog_gnu_ld in
6758 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6760 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6761 LD="${LD-ld} -64"
6764 esac
6766 esac
6768 rm -rf conftest*
6770 esac
6772 need_locks="$enable_libtool_lock"
6775 case $host_os in
6776 rhapsody* | darwin*)
6777 if test -n "$ac_tool_prefix"; then
6778 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6779 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781 $as_echo_n "checking for $ac_word... " >&6; }
6782 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6783 $as_echo_n "(cached) " >&6
6784 else
6785 if test -n "$DSYMUTIL"; then
6786 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6787 else
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 for as_dir in $PATH
6791 IFS=$as_save_IFS
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6795 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 break 2
6799 done
6800 done
6801 IFS=$as_save_IFS
6805 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6806 if test -n "$DSYMUTIL"; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6808 $as_echo "$DSYMUTIL" >&6; }
6809 else
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 $as_echo "no" >&6; }
6816 if test -z "$ac_cv_prog_DSYMUTIL"; then
6817 ac_ct_DSYMUTIL=$DSYMUTIL
6818 # Extract the first word of "dsymutil", so it can be a program name with args.
6819 set dummy dsymutil; ac_word=$2
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821 $as_echo_n "checking for $ac_word... " >&6; }
6822 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825 if test -n "$ac_ct_DSYMUTIL"; then
6826 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6827 else
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6835 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6839 done
6840 done
6841 IFS=$as_save_IFS
6845 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6846 if test -n "$ac_ct_DSYMUTIL"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6848 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6849 else
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851 $as_echo "no" >&6; }
6854 if test "x$ac_ct_DSYMUTIL" = x; then
6855 DSYMUTIL=":"
6856 else
6857 case $cross_compiling:$ac_tool_warned in
6858 yes:)
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6861 ac_tool_warned=yes ;;
6862 esac
6863 DSYMUTIL=$ac_ct_DSYMUTIL
6865 else
6866 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6869 if test -n "$ac_tool_prefix"; then
6870 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6871 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 $as_echo_n "checking for $ac_word... " >&6; }
6874 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 if test -n "$NMEDIT"; then
6878 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6887 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6891 done
6892 done
6893 IFS=$as_save_IFS
6897 NMEDIT=$ac_cv_prog_NMEDIT
6898 if test -n "$NMEDIT"; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6900 $as_echo "$NMEDIT" >&6; }
6901 else
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6908 if test -z "$ac_cv_prog_NMEDIT"; then
6909 ac_ct_NMEDIT=$NMEDIT
6910 # Extract the first word of "nmedit", so it can be a program name with args.
6911 set dummy nmedit; ac_word=$2
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6915 $as_echo_n "(cached) " >&6
6916 else
6917 if test -n "$ac_ct_NMEDIT"; then
6918 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6919 else
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 break 2
6931 done
6932 done
6933 IFS=$as_save_IFS
6937 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6938 if test -n "$ac_ct_NMEDIT"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6940 $as_echo "$ac_ct_NMEDIT" >&6; }
6941 else
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6946 if test "x$ac_ct_NMEDIT" = x; then
6947 NMEDIT=":"
6948 else
6949 case $cross_compiling:$ac_tool_warned in
6950 yes:)
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6953 ac_tool_warned=yes ;;
6954 esac
6955 NMEDIT=$ac_ct_NMEDIT
6957 else
6958 NMEDIT="$ac_cv_prog_NMEDIT"
6961 if test -n "$ac_tool_prefix"; then
6962 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6963 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965 $as_echo_n "checking for $ac_word... " >&6; }
6966 if test "${ac_cv_prog_LIPO+set}" = set; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 if test -n "$LIPO"; then
6970 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6971 else
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 break 2
6983 done
6984 done
6985 IFS=$as_save_IFS
6989 LIPO=$ac_cv_prog_LIPO
6990 if test -n "$LIPO"; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6992 $as_echo "$LIPO" >&6; }
6993 else
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
7000 if test -z "$ac_cv_prog_LIPO"; then
7001 ac_ct_LIPO=$LIPO
7002 # Extract the first word of "lipo", so it can be a program name with args.
7003 set dummy lipo; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 if test -n "$ac_ct_LIPO"; then
7010 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7011 else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_prog_ac_ct_LIPO="lipo"
7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7023 done
7024 done
7025 IFS=$as_save_IFS
7029 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7030 if test -n "$ac_ct_LIPO"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7032 $as_echo "$ac_ct_LIPO" >&6; }
7033 else
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7038 if test "x$ac_ct_LIPO" = x; then
7039 LIPO=":"
7040 else
7041 case $cross_compiling:$ac_tool_warned in
7042 yes:)
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7045 ac_tool_warned=yes ;;
7046 esac
7047 LIPO=$ac_ct_LIPO
7049 else
7050 LIPO="$ac_cv_prog_LIPO"
7053 if test -n "$ac_tool_prefix"; then
7054 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7055 set dummy ${ac_tool_prefix}otool; ac_word=$2
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 $as_echo_n "checking for $ac_word... " >&6; }
7058 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7059 $as_echo_n "(cached) " >&6
7060 else
7061 if test -n "$OTOOL"; then
7062 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7063 else
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7075 done
7076 done
7077 IFS=$as_save_IFS
7081 OTOOL=$ac_cv_prog_OTOOL
7082 if test -n "$OTOOL"; then
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7084 $as_echo "$OTOOL" >&6; }
7085 else
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087 $as_echo "no" >&6; }
7092 if test -z "$ac_cv_prog_OTOOL"; then
7093 ac_ct_OTOOL=$OTOOL
7094 # Extract the first word of "otool", so it can be a program name with args.
7095 set dummy otool; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 if test -n "$ac_ct_OTOOL"; then
7102 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_ac_ct_OTOOL="otool"
7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7115 done
7116 done
7117 IFS=$as_save_IFS
7121 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7122 if test -n "$ac_ct_OTOOL"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7124 $as_echo "$ac_ct_OTOOL" >&6; }
7125 else
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7130 if test "x$ac_ct_OTOOL" = x; then
7131 OTOOL=":"
7132 else
7133 case $cross_compiling:$ac_tool_warned in
7134 yes:)
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7137 ac_tool_warned=yes ;;
7138 esac
7139 OTOOL=$ac_ct_OTOOL
7141 else
7142 OTOOL="$ac_cv_prog_OTOOL"
7145 if test -n "$ac_tool_prefix"; then
7146 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7147 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 $as_echo_n "checking for $ac_word... " >&6; }
7150 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 if test -n "$OTOOL64"; then
7154 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7155 else
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7167 done
7168 done
7169 IFS=$as_save_IFS
7173 OTOOL64=$ac_cv_prog_OTOOL64
7174 if test -n "$OTOOL64"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7176 $as_echo "$OTOOL64" >&6; }
7177 else
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7184 if test -z "$ac_cv_prog_OTOOL64"; then
7185 ac_ct_OTOOL64=$OTOOL64
7186 # Extract the first word of "otool64", so it can be a program name with args.
7187 set dummy otool64; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7191 $as_echo_n "(cached) " >&6
7192 else
7193 if test -n "$ac_ct_OTOOL64"; then
7194 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_prog_ac_ct_OTOOL64="otool64"
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7207 done
7208 done
7209 IFS=$as_save_IFS
7213 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7214 if test -n "$ac_ct_OTOOL64"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7216 $as_echo "$ac_ct_OTOOL64" >&6; }
7217 else
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7222 if test "x$ac_ct_OTOOL64" = x; then
7223 OTOOL64=":"
7224 else
7225 case $cross_compiling:$ac_tool_warned in
7226 yes:)
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7229 ac_tool_warned=yes ;;
7230 esac
7231 OTOOL64=$ac_ct_OTOOL64
7233 else
7234 OTOOL64="$ac_cv_prog_OTOOL64"
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7264 $as_echo_n "checking for -single_module linker flag... " >&6; }
7265 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7266 $as_echo_n "(cached) " >&6
7267 else
7268 lt_cv_apple_cc_single_mod=no
7269 if test -z "${LT_MULTI_MODULE}"; then
7270 # By default we will add the -single_module flag. You can override
7271 # by either setting the environment variable LT_MULTI_MODULE
7272 # non-empty at configure time, or by adding -multi_module to the
7273 # link flags.
7274 rm -rf libconftest.dylib*
7275 echo "int foo(void){return 1;}" > conftest.c
7276 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7277 -dynamiclib -Wl,-single_module conftest.c" >&5
7278 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7279 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7280 _lt_result=$?
7281 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7282 lt_cv_apple_cc_single_mod=yes
7283 else
7284 cat conftest.err >&5
7286 rm -rf libconftest.dylib*
7287 rm -f conftest.*
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7291 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7293 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7294 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7295 $as_echo_n "(cached) " >&6
7296 else
7297 lt_cv_ld_exported_symbols_list=no
7298 save_LDFLAGS=$LDFLAGS
7299 echo "_main" > conftest.sym
7300 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7305 main ()
7309 return 0;
7311 _ACEOF
7312 if ac_fn_c_try_link "$LINENO"; then :
7313 lt_cv_ld_exported_symbols_list=yes
7314 else
7315 lt_cv_ld_exported_symbols_list=no
7317 rm -f core conftest.err conftest.$ac_objext \
7318 conftest$ac_exeext conftest.$ac_ext
7319 LDFLAGS="$save_LDFLAGS"
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7323 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7325 $as_echo_n "checking for -force_load linker flag... " >&6; }
7326 if test "${lt_cv_ld_force_load+set}" = set; then :
7327 $as_echo_n "(cached) " >&6
7328 else
7329 lt_cv_ld_force_load=no
7330 cat > conftest.c << _LT_EOF
7331 int forced_loaded() { return 2;}
7332 _LT_EOF
7333 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7334 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7335 echo "$AR cru libconftest.a conftest.o" >&5
7336 $AR cru libconftest.a conftest.o 2>&5
7337 cat > conftest.c << _LT_EOF
7338 int main() { return 0;}
7339 _LT_EOF
7340 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7341 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7342 _lt_result=$?
7343 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7344 lt_cv_ld_force_load=yes
7345 else
7346 cat conftest.err >&5
7348 rm -f conftest.err libconftest.a conftest conftest.c
7349 rm -rf conftest.dSYM
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7353 $as_echo "$lt_cv_ld_force_load" >&6; }
7354 case $host_os in
7355 rhapsody* | darwin1.[012])
7356 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7357 darwin1.*)
7358 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7359 darwin*) # darwin 5.x on
7360 # if running on 10.5 or later, the deployment target defaults
7361 # to the OS version, if on x86, and 10.4, the deployment
7362 # target defaults to 10.4. Don't you love it?
7363 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7364 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7365 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7366 10.[012][,.]*)
7367 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7368 10.*)
7369 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7370 esac
7372 esac
7373 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7374 _lt_dar_single_mod='$single_module'
7376 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7377 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7378 else
7379 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7381 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7382 _lt_dsymutil='~$DSYMUTIL $lib || :'
7383 else
7384 _lt_dsymutil=
7387 esac
7389 ac_ext=c
7390 ac_cpp='$CPP $CPPFLAGS'
7391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7395 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7396 # On Suns, sometimes $CPP names a directory.
7397 if test -n "$CPP" && test -d "$CPP"; then
7398 CPP=
7400 if test -z "$CPP"; then
7401 if test "${ac_cv_prog_CPP+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 # Double quotes because CPP needs to be expanded
7405 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7407 ac_preproc_ok=false
7408 for ac_c_preproc_warn_flag in '' yes
7410 # Use a header file that comes with gcc, so configuring glibc
7411 # with a fresh cross-compiler works.
7412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7413 # <limits.h> exists even on freestanding compilers.
7414 # On the NeXT, cc -E runs the code through the compiler's parser,
7415 # not just through cpp. "Syntax error" is here to catch this case.
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7418 #ifdef __STDC__
7419 # include <limits.h>
7420 #else
7421 # include <assert.h>
7422 #endif
7423 Syntax error
7424 _ACEOF
7425 if ac_fn_c_try_cpp "$LINENO"; then :
7427 else
7428 # Broken: fails on valid input.
7429 continue
7431 rm -f conftest.err conftest.$ac_ext
7433 # OK, works on sane cases. Now check whether nonexistent headers
7434 # can be detected and how.
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7437 #include <ac_nonexistent.h>
7438 _ACEOF
7439 if ac_fn_c_try_cpp "$LINENO"; then :
7440 # Broken: success on invalid input.
7441 continue
7442 else
7443 # Passes both tests.
7444 ac_preproc_ok=:
7445 break
7447 rm -f conftest.err conftest.$ac_ext
7449 done
7450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7451 rm -f conftest.err conftest.$ac_ext
7452 if $ac_preproc_ok; then :
7453 break
7456 done
7457 ac_cv_prog_CPP=$CPP
7460 CPP=$ac_cv_prog_CPP
7461 else
7462 ac_cv_prog_CPP=$CPP
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7465 $as_echo "$CPP" >&6; }
7466 ac_preproc_ok=false
7467 for ac_c_preproc_warn_flag in '' yes
7469 # Use a header file that comes with gcc, so configuring glibc
7470 # with a fresh cross-compiler works.
7471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7472 # <limits.h> exists even on freestanding compilers.
7473 # On the NeXT, cc -E runs the code through the compiler's parser,
7474 # not just through cpp. "Syntax error" is here to catch this case.
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7477 #ifdef __STDC__
7478 # include <limits.h>
7479 #else
7480 # include <assert.h>
7481 #endif
7482 Syntax error
7483 _ACEOF
7484 if ac_fn_c_try_cpp "$LINENO"; then :
7486 else
7487 # Broken: fails on valid input.
7488 continue
7490 rm -f conftest.err conftest.$ac_ext
7492 # OK, works on sane cases. Now check whether nonexistent headers
7493 # can be detected and how.
7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h. */
7496 #include <ac_nonexistent.h>
7497 _ACEOF
7498 if ac_fn_c_try_cpp "$LINENO"; then :
7499 # Broken: success on invalid input.
7500 continue
7501 else
7502 # Passes both tests.
7503 ac_preproc_ok=:
7504 break
7506 rm -f conftest.err conftest.$ac_ext
7508 done
7509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7510 rm -f conftest.err conftest.$ac_ext
7511 if $ac_preproc_ok; then :
7513 else
7514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7516 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7517 See \`config.log' for more details." "$LINENO" 5; }
7520 ac_ext=c
7521 ac_cpp='$CPP $CPPFLAGS'
7522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7528 $as_echo_n "checking for ANSI C header files... " >&6; }
7529 if test "${ac_cv_header_stdc+set}" = set; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7534 #include <stdlib.h>
7535 #include <stdarg.h>
7536 #include <string.h>
7537 #include <float.h>
7540 main ()
7544 return 0;
7546 _ACEOF
7547 if ac_fn_c_try_compile "$LINENO"; then :
7548 ac_cv_header_stdc=yes
7549 else
7550 ac_cv_header_stdc=no
7552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7554 if test $ac_cv_header_stdc = yes; then
7555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7558 #include <string.h>
7560 _ACEOF
7561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7562 $EGREP "memchr" >/dev/null 2>&1; then :
7564 else
7565 ac_cv_header_stdc=no
7567 rm -f conftest*
7571 if test $ac_cv_header_stdc = yes; then
7572 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7575 #include <stdlib.h>
7577 _ACEOF
7578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7579 $EGREP "free" >/dev/null 2>&1; then :
7581 else
7582 ac_cv_header_stdc=no
7584 rm -f conftest*
7588 if test $ac_cv_header_stdc = yes; then
7589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7590 if test "$cross_compiling" = yes; then :
7592 else
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7595 #include <ctype.h>
7596 #include <stdlib.h>
7597 #if ((' ' & 0x0FF) == 0x020)
7598 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7599 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7600 #else
7601 # define ISLOWER(c) \
7602 (('a' <= (c) && (c) <= 'i') \
7603 || ('j' <= (c) && (c) <= 'r') \
7604 || ('s' <= (c) && (c) <= 'z'))
7605 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7606 #endif
7608 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7610 main ()
7612 int i;
7613 for (i = 0; i < 256; i++)
7614 if (XOR (islower (i), ISLOWER (i))
7615 || toupper (i) != TOUPPER (i))
7616 return 2;
7617 return 0;
7619 _ACEOF
7620 if ac_fn_c_try_run "$LINENO"; then :
7622 else
7623 ac_cv_header_stdc=no
7625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7626 conftest.$ac_objext conftest.beam conftest.$ac_ext
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7632 $as_echo "$ac_cv_header_stdc" >&6; }
7633 if test $ac_cv_header_stdc = yes; then
7635 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7639 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7640 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7641 inttypes.h stdint.h unistd.h
7642 do :
7643 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7644 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7646 eval as_val=\$$as_ac_Header
7647 if test "x$as_val" = x""yes; then :
7648 cat >>confdefs.h <<_ACEOF
7649 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7650 _ACEOF
7654 done
7657 for ac_header in dlfcn.h
7658 do :
7659 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7661 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7662 cat >>confdefs.h <<_ACEOF
7663 #define HAVE_DLFCN_H 1
7664 _ACEOF
7668 done
7674 # Set options
7678 enable_dlopen=no
7681 enable_win32_dll=no
7684 # Check whether --enable-shared was given.
7685 if test "${enable_shared+set}" = set; then :
7686 enableval=$enable_shared; p=${PACKAGE-default}
7687 case $enableval in
7688 yes) enable_shared=yes ;;
7689 no) enable_shared=no ;;
7691 enable_shared=no
7692 # Look at the argument we got. We use all the common list separators.
7693 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7694 for pkg in $enableval; do
7695 IFS="$lt_save_ifs"
7696 if test "X$pkg" = "X$p"; then
7697 enable_shared=yes
7699 done
7700 IFS="$lt_save_ifs"
7702 esac
7703 else
7704 enable_shared=yes
7715 # Check whether --enable-static was given.
7716 if test "${enable_static+set}" = set; then :
7717 enableval=$enable_static; p=${PACKAGE-default}
7718 case $enableval in
7719 yes) enable_static=yes ;;
7720 no) enable_static=no ;;
7722 enable_static=no
7723 # Look at the argument we got. We use all the common list separators.
7724 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7725 for pkg in $enableval; do
7726 IFS="$lt_save_ifs"
7727 if test "X$pkg" = "X$p"; then
7728 enable_static=yes
7730 done
7731 IFS="$lt_save_ifs"
7733 esac
7734 else
7735 enable_static=yes
7747 # Check whether --with-pic was given.
7748 if test "${with_pic+set}" = set; then :
7749 withval=$with_pic; pic_mode="$withval"
7750 else
7751 pic_mode=default
7755 test -z "$pic_mode" && pic_mode=default
7763 # Check whether --enable-fast-install was given.
7764 if test "${enable_fast_install+set}" = set; then :
7765 enableval=$enable_fast_install; p=${PACKAGE-default}
7766 case $enableval in
7767 yes) enable_fast_install=yes ;;
7768 no) enable_fast_install=no ;;
7770 enable_fast_install=no
7771 # Look at the argument we got. We use all the common list separators.
7772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7773 for pkg in $enableval; do
7774 IFS="$lt_save_ifs"
7775 if test "X$pkg" = "X$p"; then
7776 enable_fast_install=yes
7778 done
7779 IFS="$lt_save_ifs"
7781 esac
7782 else
7783 enable_fast_install=yes
7796 # This can be used to rebuild libtool when needed
7797 LIBTOOL_DEPS="$ltmain"
7799 # Always use our own libtool.
7800 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7827 test -z "$LN_S" && LN_S="ln -s"
7842 if test -n "${ZSH_VERSION+set}" ; then
7843 setopt NO_GLOB_SUBST
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7847 $as_echo_n "checking for objdir... " >&6; }
7848 if test "${lt_cv_objdir+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 rm -f .libs 2>/dev/null
7852 mkdir .libs 2>/dev/null
7853 if test -d .libs; then
7854 lt_cv_objdir=.libs
7855 else
7856 # MS-DOS does not allow filenames that begin with a dot.
7857 lt_cv_objdir=_libs
7859 rmdir .libs 2>/dev/null
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7862 $as_echo "$lt_cv_objdir" >&6; }
7863 objdir=$lt_cv_objdir
7869 cat >>confdefs.h <<_ACEOF
7870 #define LT_OBJDIR "$lt_cv_objdir/"
7871 _ACEOF
7876 case $host_os in
7877 aix3*)
7878 # AIX sometimes has problems with the GCC collect2 program. For some
7879 # reason, if we set the COLLECT_NAMES environment variable, the problems
7880 # vanish in a puff of smoke.
7881 if test "X${COLLECT_NAMES+set}" != Xset; then
7882 COLLECT_NAMES=
7883 export COLLECT_NAMES
7886 esac
7888 # Global variables:
7889 ofile=libtool
7890 can_build_shared=yes
7892 # All known linkers require a `.a' archive for static linking (except MSVC,
7893 # which needs '.lib').
7894 libext=a
7896 with_gnu_ld="$lt_cv_prog_gnu_ld"
7898 old_CC="$CC"
7899 old_CFLAGS="$CFLAGS"
7901 # Set sane defaults for various variables
7902 test -z "$CC" && CC=cc
7903 test -z "$LTCC" && LTCC=$CC
7904 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7905 test -z "$LD" && LD=ld
7906 test -z "$ac_objext" && ac_objext=o
7908 for cc_temp in $compiler""; do
7909 case $cc_temp in
7910 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7911 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7912 \-*) ;;
7913 *) break;;
7914 esac
7915 done
7916 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7919 # Only perform the check for file, if the check method requires it
7920 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7921 case $deplibs_check_method in
7922 file_magic*)
7923 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7925 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7926 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 case $MAGIC_CMD in
7930 [\\/*] | ?:[\\/]*)
7931 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7934 lt_save_MAGIC_CMD="$MAGIC_CMD"
7935 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7936 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7937 for ac_dir in $ac_dummy; do
7938 IFS="$lt_save_ifs"
7939 test -z "$ac_dir" && ac_dir=.
7940 if test -f $ac_dir/${ac_tool_prefix}file; then
7941 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7942 if test -n "$file_magic_test_file"; then
7943 case $deplibs_check_method in
7944 "file_magic "*)
7945 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7946 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7947 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7948 $EGREP "$file_magic_regex" > /dev/null; then
7950 else
7951 cat <<_LT_EOF 1>&2
7953 *** Warning: the command libtool uses to detect shared libraries,
7954 *** $file_magic_cmd, produces output that libtool cannot recognize.
7955 *** The result is that libtool may fail to recognize shared libraries
7956 *** as such. This will affect the creation of libtool libraries that
7957 *** depend on shared libraries, but programs linked with such libtool
7958 *** libraries will work regardless of this problem. Nevertheless, you
7959 *** may want to report the problem to your system manager and/or to
7960 *** bug-libtool@gnu.org
7962 _LT_EOF
7963 fi ;;
7964 esac
7966 break
7968 done
7969 IFS="$lt_save_ifs"
7970 MAGIC_CMD="$lt_save_MAGIC_CMD"
7972 esac
7975 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7976 if test -n "$MAGIC_CMD"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7978 $as_echo "$MAGIC_CMD" >&6; }
7979 else
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7988 if test -z "$lt_cv_path_MAGIC_CMD"; then
7989 if test -n "$ac_tool_prefix"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7991 $as_echo_n "checking for file... " >&6; }
7992 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 case $MAGIC_CMD in
7996 [\\/*] | ?:[\\/]*)
7997 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8000 lt_save_MAGIC_CMD="$MAGIC_CMD"
8001 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8002 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8003 for ac_dir in $ac_dummy; do
8004 IFS="$lt_save_ifs"
8005 test -z "$ac_dir" && ac_dir=.
8006 if test -f $ac_dir/file; then
8007 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8008 if test -n "$file_magic_test_file"; then
8009 case $deplibs_check_method in
8010 "file_magic "*)
8011 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8012 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8013 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8014 $EGREP "$file_magic_regex" > /dev/null; then
8016 else
8017 cat <<_LT_EOF 1>&2
8019 *** Warning: the command libtool uses to detect shared libraries,
8020 *** $file_magic_cmd, produces output that libtool cannot recognize.
8021 *** The result is that libtool may fail to recognize shared libraries
8022 *** as such. This will affect the creation of libtool libraries that
8023 *** depend on shared libraries, but programs linked with such libtool
8024 *** libraries will work regardless of this problem. Nevertheless, you
8025 *** may want to report the problem to your system manager and/or to
8026 *** bug-libtool@gnu.org
8028 _LT_EOF
8029 fi ;;
8030 esac
8032 break
8034 done
8035 IFS="$lt_save_ifs"
8036 MAGIC_CMD="$lt_save_MAGIC_CMD"
8038 esac
8041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8042 if test -n "$MAGIC_CMD"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8044 $as_echo "$MAGIC_CMD" >&6; }
8045 else
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8051 else
8052 MAGIC_CMD=:
8058 esac
8060 # Use C for the default configuration in the libtool script
8062 lt_save_CC="$CC"
8063 ac_ext=c
8064 ac_cpp='$CPP $CPPFLAGS'
8065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8070 # Source file extension for C test sources.
8071 ac_ext=c
8073 # Object file extension for compiled C test sources.
8074 objext=o
8075 objext=$objext
8077 # Code to be used in simple compile tests
8078 lt_simple_compile_test_code="int some_variable = 0;"
8080 # Code to be used in simple link tests
8081 lt_simple_link_test_code='int main(){return(0);}'
8089 # If no C compiler was specified, use CC.
8090 LTCC=${LTCC-"$CC"}
8092 # If no C compiler flags were specified, use CFLAGS.
8093 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8095 # Allow CC to be a program name with arguments.
8096 compiler=$CC
8098 # Save the default compiler, since it gets overwritten when the other
8099 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8100 compiler_DEFAULT=$CC
8102 # save warnings/boilerplate of simple test code
8103 ac_outfile=conftest.$ac_objext
8104 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8105 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8106 _lt_compiler_boilerplate=`cat conftest.err`
8107 $RM conftest*
8109 ac_outfile=conftest.$ac_objext
8110 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8111 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8112 _lt_linker_boilerplate=`cat conftest.err`
8113 $RM -r conftest*
8116 ## CAVEAT EMPTOR:
8117 ## There is no encapsulation within the following macros, do not change
8118 ## the running order or otherwise move them around unless you know exactly
8119 ## what you are doing...
8120 if test -n "$compiler"; then
8122 lt_prog_compiler_no_builtin_flag=
8124 if test "$GCC" = yes; then
8125 case $cc_basename in
8126 nvcc*)
8127 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8129 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8130 esac
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8133 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8134 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 lt_cv_prog_compiler_rtti_exceptions=no
8138 ac_outfile=conftest.$ac_objext
8139 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8140 lt_compiler_flag="-fno-rtti -fno-exceptions"
8141 # Insert the option either (1) after the last *FLAGS variable, or
8142 # (2) before a word containing "conftest.", or (3) at the end.
8143 # Note that $ac_compile itself does not contain backslashes and begins
8144 # with a dollar sign (not a hyphen), so the echo should work correctly.
8145 # The option is referenced via a variable to avoid confusing sed.
8146 lt_compile=`echo "$ac_compile" | $SED \
8147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8149 -e 's:$: $lt_compiler_flag:'`
8150 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8151 (eval "$lt_compile" 2>conftest.err)
8152 ac_status=$?
8153 cat conftest.err >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 if (exit $ac_status) && test -s "$ac_outfile"; then
8156 # The compiler can only warn and ignore the option if not recognized
8157 # So say no if there are warnings other than the usual output.
8158 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8159 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8160 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8161 lt_cv_prog_compiler_rtti_exceptions=yes
8164 $RM conftest*
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8168 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8170 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8171 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8172 else
8183 lt_prog_compiler_wl=
8184 lt_prog_compiler_pic=
8185 lt_prog_compiler_static=
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8188 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8190 if test "$GCC" = yes; then
8191 lt_prog_compiler_wl='-Wl,'
8192 lt_prog_compiler_static='-static'
8194 case $host_os in
8195 aix*)
8196 # All AIX code is PIC.
8197 if test "$host_cpu" = ia64; then
8198 # AIX 5 now supports IA64 processor
8199 lt_prog_compiler_static='-Bstatic'
8201 lt_prog_compiler_pic='-fPIC'
8204 amigaos*)
8205 case $host_cpu in
8206 powerpc)
8207 # see comment about AmigaOS4 .so support
8208 lt_prog_compiler_pic='-fPIC'
8210 m68k)
8211 # FIXME: we need at least 68020 code to build shared libraries, but
8212 # adding the `-m68020' flag to GCC prevents building anything better,
8213 # like `-m68040'.
8214 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8216 esac
8219 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8220 # PIC is the default for these OSes.
8223 mingw* | cygwin* | pw32* | os2* | cegcc*)
8224 # This hack is so that the source file can tell whether it is being
8225 # built for inclusion in a dll (and should export symbols for example).
8226 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8227 # (--disable-auto-import) libraries
8228 lt_prog_compiler_pic='-DDLL_EXPORT'
8231 darwin* | rhapsody*)
8232 # PIC is the default on this platform
8233 # Common symbols not allowed in MH_DYLIB files
8234 lt_prog_compiler_pic='-fno-common'
8237 haiku*)
8238 # PIC is the default for Haiku.
8239 # The "-static" flag exists, but is broken.
8240 lt_prog_compiler_static=
8243 hpux*)
8244 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8245 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8246 # sets the default TLS model and affects inlining.
8247 case $host_cpu in
8248 hppa*64*)
8249 # +Z the default
8252 lt_prog_compiler_pic='-fPIC'
8254 esac
8257 interix[3-9]*)
8258 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8259 # Instead, we relocate shared libraries at runtime.
8262 msdosdjgpp*)
8263 # Just because we use GCC doesn't mean we suddenly get shared libraries
8264 # on systems that don't support them.
8265 lt_prog_compiler_can_build_shared=no
8266 enable_shared=no
8269 *nto* | *qnx*)
8270 # QNX uses GNU C++, but need to define -shared option too, otherwise
8271 # it will coredump.
8272 lt_prog_compiler_pic='-fPIC -shared'
8275 sysv4*MP*)
8276 if test -d /usr/nec; then
8277 lt_prog_compiler_pic=-Kconform_pic
8282 lt_prog_compiler_pic='-fPIC'
8284 esac
8286 case $cc_basename in
8287 nvcc*) # Cuda Compiler Driver 2.2
8288 lt_prog_compiler_wl='-Xlinker '
8289 lt_prog_compiler_pic='-Xcompiler -fPIC'
8291 esac
8292 else
8293 # PORTME Check for flag to pass linker flags through the system compiler.
8294 case $host_os in
8295 aix*)
8296 lt_prog_compiler_wl='-Wl,'
8297 if test "$host_cpu" = ia64; then
8298 # AIX 5 now supports IA64 processor
8299 lt_prog_compiler_static='-Bstatic'
8300 else
8301 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8305 mingw* | cygwin* | pw32* | os2* | cegcc*)
8306 # This hack is so that the source file can tell whether it is being
8307 # built for inclusion in a dll (and should export symbols for example).
8308 lt_prog_compiler_pic='-DDLL_EXPORT'
8311 hpux9* | hpux10* | hpux11*)
8312 lt_prog_compiler_wl='-Wl,'
8313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8314 # not for PA HP-UX.
8315 case $host_cpu in
8316 hppa*64*|ia64*)
8317 # +Z the default
8320 lt_prog_compiler_pic='+Z'
8322 esac
8323 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8324 lt_prog_compiler_static='${wl}-a ${wl}archive'
8327 irix5* | irix6* | nonstopux*)
8328 lt_prog_compiler_wl='-Wl,'
8329 # PIC (with -KPIC) is the default.
8330 lt_prog_compiler_static='-non_shared'
8333 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8334 case $cc_basename in
8335 # old Intel for x86_64 which still supported -KPIC.
8336 ecc*)
8337 lt_prog_compiler_wl='-Wl,'
8338 lt_prog_compiler_pic='-KPIC'
8339 lt_prog_compiler_static='-static'
8341 # icc used to be incompatible with GCC.
8342 # ICC 10 doesn't accept -KPIC any more.
8343 icc* | ifort*)
8344 lt_prog_compiler_wl='-Wl,'
8345 lt_prog_compiler_pic='-fPIC'
8346 lt_prog_compiler_static='-static'
8348 # Lahey Fortran 8.1.
8349 lf95*)
8350 lt_prog_compiler_wl='-Wl,'
8351 lt_prog_compiler_pic='--shared'
8352 lt_prog_compiler_static='--static'
8354 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8355 # Portland Group compilers (*not* the Pentium gcc compiler,
8356 # which looks to be a dead project)
8357 lt_prog_compiler_wl='-Wl,'
8358 lt_prog_compiler_pic='-fpic'
8359 lt_prog_compiler_static='-Bstatic'
8361 ccc*)
8362 lt_prog_compiler_wl='-Wl,'
8363 # All Alpha code is PIC.
8364 lt_prog_compiler_static='-non_shared'
8366 xl* | bgxl* | bgf* | mpixl*)
8367 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8368 lt_prog_compiler_wl='-Wl,'
8369 lt_prog_compiler_pic='-qpic'
8370 lt_prog_compiler_static='-qstaticlink'
8373 case `$CC -V 2>&1 | sed 5q` in
8374 *Sun\ F* | *Sun*Fortran*)
8375 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8376 lt_prog_compiler_pic='-KPIC'
8377 lt_prog_compiler_static='-Bstatic'
8378 lt_prog_compiler_wl=''
8380 *Sun\ C*)
8381 # Sun C 5.9
8382 lt_prog_compiler_pic='-KPIC'
8383 lt_prog_compiler_static='-Bstatic'
8384 lt_prog_compiler_wl='-Wl,'
8386 esac
8388 esac
8391 newsos6)
8392 lt_prog_compiler_pic='-KPIC'
8393 lt_prog_compiler_static='-Bstatic'
8396 *nto* | *qnx*)
8397 # QNX uses GNU C++, but need to define -shared option too, otherwise
8398 # it will coredump.
8399 lt_prog_compiler_pic='-fPIC -shared'
8402 osf3* | osf4* | osf5*)
8403 lt_prog_compiler_wl='-Wl,'
8404 # All OSF/1 code is PIC.
8405 lt_prog_compiler_static='-non_shared'
8408 rdos*)
8409 lt_prog_compiler_static='-non_shared'
8412 solaris*)
8413 lt_prog_compiler_pic='-KPIC'
8414 lt_prog_compiler_static='-Bstatic'
8415 case $cc_basename in
8416 f77* | f90* | f95*)
8417 lt_prog_compiler_wl='-Qoption ld ';;
8419 lt_prog_compiler_wl='-Wl,';;
8420 esac
8423 sunos4*)
8424 lt_prog_compiler_wl='-Qoption ld '
8425 lt_prog_compiler_pic='-PIC'
8426 lt_prog_compiler_static='-Bstatic'
8429 sysv4 | sysv4.2uw2* | sysv4.3*)
8430 lt_prog_compiler_wl='-Wl,'
8431 lt_prog_compiler_pic='-KPIC'
8432 lt_prog_compiler_static='-Bstatic'
8435 sysv4*MP*)
8436 if test -d /usr/nec ;then
8437 lt_prog_compiler_pic='-Kconform_pic'
8438 lt_prog_compiler_static='-Bstatic'
8442 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8443 lt_prog_compiler_wl='-Wl,'
8444 lt_prog_compiler_pic='-KPIC'
8445 lt_prog_compiler_static='-Bstatic'
8448 unicos*)
8449 lt_prog_compiler_wl='-Wl,'
8450 lt_prog_compiler_can_build_shared=no
8453 uts4*)
8454 lt_prog_compiler_pic='-pic'
8455 lt_prog_compiler_static='-Bstatic'
8459 lt_prog_compiler_can_build_shared=no
8461 esac
8464 case $host_os in
8465 # For platforms which do not support PIC, -DPIC is meaningless:
8466 *djgpp*)
8467 lt_prog_compiler_pic=
8470 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8472 esac
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8474 $as_echo "$lt_prog_compiler_pic" >&6; }
8482 # Check to make sure the PIC flag actually works.
8484 if test -n "$lt_prog_compiler_pic"; then
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8486 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8487 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 lt_cv_prog_compiler_pic_works=no
8491 ac_outfile=conftest.$ac_objext
8492 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8493 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8494 # Insert the option either (1) after the last *FLAGS variable, or
8495 # (2) before a word containing "conftest.", or (3) at the end.
8496 # Note that $ac_compile itself does not contain backslashes and begins
8497 # with a dollar sign (not a hyphen), so the echo should work correctly.
8498 # The option is referenced via a variable to avoid confusing sed.
8499 lt_compile=`echo "$ac_compile" | $SED \
8500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8502 -e 's:$: $lt_compiler_flag:'`
8503 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8504 (eval "$lt_compile" 2>conftest.err)
8505 ac_status=$?
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 if (exit $ac_status) && test -s "$ac_outfile"; then
8509 # The compiler can only warn and ignore the option if not recognized
8510 # So say no if there are warnings other than the usual output.
8511 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8513 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8514 lt_cv_prog_compiler_pic_works=yes
8517 $RM conftest*
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8521 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8523 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8524 case $lt_prog_compiler_pic in
8525 "" | " "*) ;;
8526 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8527 esac
8528 else
8529 lt_prog_compiler_pic=
8530 lt_prog_compiler_can_build_shared=no
8541 # Check to make sure the static flag actually works.
8543 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8545 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8546 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8547 $as_echo_n "(cached) " >&6
8548 else
8549 lt_cv_prog_compiler_static_works=no
8550 save_LDFLAGS="$LDFLAGS"
8551 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8552 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8553 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8554 # The linker can only warn and ignore the option if not recognized
8555 # So say no if there are warnings
8556 if test -s conftest.err; then
8557 # Append any errors to the config.log.
8558 cat conftest.err 1>&5
8559 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8560 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8561 if diff conftest.exp conftest.er2 >/dev/null; then
8562 lt_cv_prog_compiler_static_works=yes
8564 else
8565 lt_cv_prog_compiler_static_works=yes
8568 $RM -r conftest*
8569 LDFLAGS="$save_LDFLAGS"
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8573 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8575 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8577 else
8578 lt_prog_compiler_static=
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8588 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8589 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8590 $as_echo_n "(cached) " >&6
8591 else
8592 lt_cv_prog_compiler_c_o=no
8593 $RM -r conftest 2>/dev/null
8594 mkdir conftest
8595 cd conftest
8596 mkdir out
8597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8599 lt_compiler_flag="-o out/conftest2.$ac_objext"
8600 # Insert the option either (1) after the last *FLAGS variable, or
8601 # (2) before a word containing "conftest.", or (3) at the end.
8602 # Note that $ac_compile itself does not contain backslashes and begins
8603 # with a dollar sign (not a hyphen), so the echo should work correctly.
8604 lt_compile=`echo "$ac_compile" | $SED \
8605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8607 -e 's:$: $lt_compiler_flag:'`
8608 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8609 (eval "$lt_compile" 2>out/conftest.err)
8610 ac_status=$?
8611 cat out/conftest.err >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8614 then
8615 # The compiler can only warn and ignore the option if not recognized
8616 # So say no if there are warnings
8617 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8618 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8619 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8620 lt_cv_prog_compiler_c_o=yes
8623 chmod u+w . 2>&5
8624 $RM conftest*
8625 # SGI C++ compiler will create directory out/ii_files/ for
8626 # template instantiation
8627 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8628 $RM out/* && rmdir out
8629 cd ..
8630 $RM -r conftest
8631 $RM conftest*
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8635 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8643 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8644 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 lt_cv_prog_compiler_c_o=no
8648 $RM -r conftest 2>/dev/null
8649 mkdir conftest
8650 cd conftest
8651 mkdir out
8652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8654 lt_compiler_flag="-o out/conftest2.$ac_objext"
8655 # Insert the option either (1) after the last *FLAGS variable, or
8656 # (2) before a word containing "conftest.", or (3) at the end.
8657 # Note that $ac_compile itself does not contain backslashes and begins
8658 # with a dollar sign (not a hyphen), so the echo should work correctly.
8659 lt_compile=`echo "$ac_compile" | $SED \
8660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8662 -e 's:$: $lt_compiler_flag:'`
8663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8664 (eval "$lt_compile" 2>out/conftest.err)
8665 ac_status=$?
8666 cat out/conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8669 then
8670 # The compiler can only warn and ignore the option if not recognized
8671 # So say no if there are warnings
8672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8673 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8674 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8675 lt_cv_prog_compiler_c_o=yes
8678 chmod u+w . 2>&5
8679 $RM conftest*
8680 # SGI C++ compiler will create directory out/ii_files/ for
8681 # template instantiation
8682 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8683 $RM out/* && rmdir out
8684 cd ..
8685 $RM -r conftest
8686 $RM conftest*
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8690 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8695 hard_links="nottested"
8696 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8697 # do not overwrite the value of need_locks provided by the user
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8699 $as_echo_n "checking if we can lock with hard links... " >&6; }
8700 hard_links=yes
8701 $RM conftest*
8702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8703 touch conftest.a
8704 ln conftest.a conftest.b 2>&5 || hard_links=no
8705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8707 $as_echo "$hard_links" >&6; }
8708 if test "$hard_links" = no; then
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8710 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8711 need_locks=warn
8713 else
8714 need_locks=no
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8723 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8725 runpath_var=
8726 allow_undefined_flag=
8727 always_export_symbols=no
8728 archive_cmds=
8729 archive_expsym_cmds=
8730 compiler_needs_object=no
8731 enable_shared_with_static_runtimes=no
8732 export_dynamic_flag_spec=
8733 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8734 hardcode_automatic=no
8735 hardcode_direct=no
8736 hardcode_direct_absolute=no
8737 hardcode_libdir_flag_spec=
8738 hardcode_libdir_flag_spec_ld=
8739 hardcode_libdir_separator=
8740 hardcode_minus_L=no
8741 hardcode_shlibpath_var=unsupported
8742 inherit_rpath=no
8743 link_all_deplibs=unknown
8744 module_cmds=
8745 module_expsym_cmds=
8746 old_archive_from_new_cmds=
8747 old_archive_from_expsyms_cmds=
8748 thread_safe_flag_spec=
8749 whole_archive_flag_spec=
8750 # include_expsyms should be a list of space-separated symbols to be *always*
8751 # included in the symbol list
8752 include_expsyms=
8753 # exclude_expsyms can be an extended regexp of symbols to exclude
8754 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8755 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8756 # as well as any symbol that contains `d'.
8757 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8758 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8759 # platforms (ab)use it in PIC code, but their linkers get confused if
8760 # the symbol is explicitly referenced. Since portable code cannot
8761 # rely on this symbol name, it's probably fine to never include it in
8762 # preloaded symbol tables.
8763 # Exclude shared library initialization/finalization symbols.
8764 extract_expsyms_cmds=
8766 case $host_os in
8767 cygwin* | mingw* | pw32* | cegcc*)
8768 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8769 # When not using gcc, we currently assume that we are using
8770 # Microsoft Visual C++.
8771 if test "$GCC" != yes; then
8772 with_gnu_ld=no
8775 interix*)
8776 # we just hope/assume this is gcc and not c89 (= MSVC++)
8777 with_gnu_ld=yes
8779 openbsd*)
8780 with_gnu_ld=no
8782 esac
8784 ld_shlibs=yes
8786 # On some targets, GNU ld is compatible enough with the native linker
8787 # that we're better off using the native interface for both.
8788 lt_use_gnu_ld_interface=no
8789 if test "$with_gnu_ld" = yes; then
8790 case $host_os in
8791 aix*)
8792 # The AIX port of GNU ld has always aspired to compatibility
8793 # with the native linker. However, as the warning in the GNU ld
8794 # block says, versions before 2.19.5* couldn't really create working
8795 # shared libraries, regardless of the interface used.
8796 case `$LD -v 2>&1` in
8797 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8798 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8799 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8801 lt_use_gnu_ld_interface=yes
8803 esac
8806 lt_use_gnu_ld_interface=yes
8808 esac
8811 if test "$lt_use_gnu_ld_interface" = yes; then
8812 # If archive_cmds runs LD, not CC, wlarc should be empty
8813 wlarc='${wl}'
8815 # Set some defaults for GNU ld with shared library support. These
8816 # are reset later if shared libraries are not supported. Putting them
8817 # here allows them to be overridden if necessary.
8818 runpath_var=LD_RUN_PATH
8819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8820 export_dynamic_flag_spec='${wl}--export-dynamic'
8821 # ancient GNU ld didn't support --whole-archive et. al.
8822 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8823 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8824 else
8825 whole_archive_flag_spec=
8827 supports_anon_versioning=no
8828 case `$LD -v 2>&1` in
8829 *GNU\ gold*) supports_anon_versioning=yes ;;
8830 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8831 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8832 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8833 *\ 2.11.*) ;; # other 2.11 versions
8834 *) supports_anon_versioning=yes ;;
8835 esac
8837 # See if GNU ld supports shared libraries.
8838 case $host_os in
8839 aix[3-9]*)
8840 # On AIX/PPC, the GNU linker is very broken
8841 if test "$host_cpu" != ia64; then
8842 ld_shlibs=no
8843 cat <<_LT_EOF 1>&2
8845 *** Warning: the GNU linker, at least up to release 2.19, is reported
8846 *** to be unable to reliably create shared libraries on AIX.
8847 *** Therefore, libtool is disabling shared libraries support. If you
8848 *** really care for shared libraries, you may want to install binutils
8849 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8850 *** You will then need to restart the configuration process.
8852 _LT_EOF
8856 amigaos*)
8857 case $host_cpu in
8858 powerpc)
8859 # see comment about AmigaOS4 .so support
8860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8861 archive_expsym_cmds=''
8863 m68k)
8864 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)'
8865 hardcode_libdir_flag_spec='-L$libdir'
8866 hardcode_minus_L=yes
8868 esac
8871 beos*)
8872 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8873 allow_undefined_flag=unsupported
8874 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8875 # support --undefined. This deserves some investigation. FIXME
8876 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8877 else
8878 ld_shlibs=no
8882 cygwin* | mingw* | pw32* | cegcc*)
8883 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8884 # as there is no search path for DLLs.
8885 hardcode_libdir_flag_spec='-L$libdir'
8886 export_dynamic_flag_spec='${wl}--export-all-symbols'
8887 allow_undefined_flag=unsupported
8888 always_export_symbols=no
8889 enable_shared_with_static_runtimes=yes
8890 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8892 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8894 # If the export-symbols file already is a .def file (1st line
8895 # is EXPORTS), use it as is; otherwise, prepend...
8896 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8897 cp $export_symbols $output_objdir/$soname.def;
8898 else
8899 echo EXPORTS > $output_objdir/$soname.def;
8900 cat $export_symbols >> $output_objdir/$soname.def;
8902 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8903 else
8904 ld_shlibs=no
8908 haiku*)
8909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8910 link_all_deplibs=yes
8913 interix[3-9]*)
8914 hardcode_direct=no
8915 hardcode_shlibpath_var=no
8916 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8917 export_dynamic_flag_spec='${wl}-E'
8918 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8919 # Instead, shared libraries are loaded at an image base (0x10000000 by
8920 # default) and relocated if they conflict, which is a slow very memory
8921 # consuming and fragmenting process. To avoid this, we pick a random,
8922 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8923 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8924 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8925 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'
8928 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8929 tmp_diet=no
8930 if test "$host_os" = linux-dietlibc; then
8931 case $cc_basename in
8932 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8933 esac
8935 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8936 && test "$tmp_diet" = no
8937 then
8938 tmp_addflag=' $pic_flag'
8939 tmp_sharedflag='-shared'
8940 case $cc_basename,$host_cpu in
8941 pgcc*) # Portland Group C compiler
8942 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'
8943 tmp_addflag=' $pic_flag'
8945 pgf77* | pgf90* | pgf95* | pgfortran*)
8946 # Portland Group f77 and f90 compilers
8947 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'
8948 tmp_addflag=' $pic_flag -Mnomain' ;;
8949 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8950 tmp_addflag=' -i_dynamic' ;;
8951 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8952 tmp_addflag=' -i_dynamic -nofor_main' ;;
8953 ifc* | ifort*) # Intel Fortran compiler
8954 tmp_addflag=' -nofor_main' ;;
8955 lf95*) # Lahey Fortran 8.1
8956 whole_archive_flag_spec=
8957 tmp_sharedflag='--shared' ;;
8958 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8959 tmp_sharedflag='-qmkshrobj'
8960 tmp_addflag= ;;
8961 nvcc*) # Cuda Compiler Driver 2.2
8962 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'
8963 compiler_needs_object=yes
8965 esac
8966 case `$CC -V 2>&1 | sed 5q` in
8967 *Sun\ C*) # Sun C 5.9
8968 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'
8969 compiler_needs_object=yes
8970 tmp_sharedflag='-G' ;;
8971 *Sun\ F*) # Sun Fortran 8.3
8972 tmp_sharedflag='-G' ;;
8973 esac
8974 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8976 if test "x$supports_anon_versioning" = xyes; then
8977 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8978 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8979 echo "local: *; };" >> $output_objdir/$libname.ver~
8980 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8983 case $cc_basename in
8984 xlf* | bgf* | bgxlf* | mpixlf*)
8985 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8986 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8987 hardcode_libdir_flag_spec=
8988 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8989 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8990 if test "x$supports_anon_versioning" = xyes; then
8991 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8992 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8993 echo "local: *; };" >> $output_objdir/$libname.ver~
8994 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8997 esac
8998 else
8999 ld_shlibs=no
9003 netbsd*)
9004 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9005 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9006 wlarc=
9007 else
9008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9009 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9013 solaris*)
9014 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9015 ld_shlibs=no
9016 cat <<_LT_EOF 1>&2
9018 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9019 *** create shared libraries on Solaris systems. Therefore, libtool
9020 *** is disabling shared libraries support. We urge you to upgrade GNU
9021 *** binutils to release 2.9.1 or newer. Another option is to modify
9022 *** your PATH or compiler configuration so that the native linker is
9023 *** used, and then restart.
9025 _LT_EOF
9026 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9028 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9029 else
9030 ld_shlibs=no
9034 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9035 case `$LD -v 2>&1` in
9036 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9037 ld_shlibs=no
9038 cat <<_LT_EOF 1>&2
9040 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9041 *** reliably create shared libraries on SCO systems. Therefore, libtool
9042 *** is disabling shared libraries support. We urge you to upgrade GNU
9043 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9044 *** your PATH or compiler configuration so that the native linker is
9045 *** used, and then restart.
9047 _LT_EOF
9050 # For security reasons, it is highly recommended that you always
9051 # use absolute paths for naming shared libraries, and exclude the
9052 # DT_RUNPATH tag from executables and libraries. But doing so
9053 # requires that you compile everything twice, which is a pain.
9054 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9055 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9057 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9058 else
9059 ld_shlibs=no
9062 esac
9065 sunos4*)
9066 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9067 wlarc=
9068 hardcode_direct=yes
9069 hardcode_shlibpath_var=no
9073 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076 else
9077 ld_shlibs=no
9080 esac
9082 if test "$ld_shlibs" = no; then
9083 runpath_var=
9084 hardcode_libdir_flag_spec=
9085 export_dynamic_flag_spec=
9086 whole_archive_flag_spec=
9088 else
9089 # PORTME fill in a description of your system's linker (not GNU ld)
9090 case $host_os in
9091 aix3*)
9092 allow_undefined_flag=unsupported
9093 always_export_symbols=yes
9094 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'
9095 # Note: this linker hardcodes the directories in LIBPATH if there
9096 # are no directories specified by -L.
9097 hardcode_minus_L=yes
9098 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9099 # Neither direct hardcoding nor static linking is supported with a
9100 # broken collect2.
9101 hardcode_direct=unsupported
9105 aix[4-9]*)
9106 if test "$host_cpu" = ia64; then
9107 # On IA64, the linker does run time linking by default, so we don't
9108 # have to do anything special.
9109 aix_use_runtimelinking=no
9110 exp_sym_flag='-Bexport'
9111 no_entry_flag=""
9112 else
9113 # If we're using GNU nm, then we don't want the "-C" option.
9114 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9115 # Also, AIX nm treats weak defined symbols like other global
9116 # defined symbols, whereas GNU nm marks them as "W".
9117 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9118 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'
9119 else
9120 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9122 aix_use_runtimelinking=no
9124 # Test if we are trying to use run time linking or normal
9125 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9126 # need to do runtime linking.
9127 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9128 for ld_flag in $LDFLAGS; do
9129 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9130 aix_use_runtimelinking=yes
9131 break
9133 done
9135 esac
9137 exp_sym_flag='-bexport'
9138 no_entry_flag='-bnoentry'
9141 # When large executables or shared objects are built, AIX ld can
9142 # have problems creating the table of contents. If linking a library
9143 # or program results in "error TOC overflow" add -mminimal-toc to
9144 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9145 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9147 archive_cmds=''
9148 hardcode_direct=yes
9149 hardcode_direct_absolute=yes
9150 hardcode_libdir_separator=':'
9151 link_all_deplibs=yes
9152 file_list_spec='${wl}-f,'
9154 if test "$GCC" = yes; then
9155 case $host_os in aix4.[012]|aix4.[012].*)
9156 # We only want to do this on AIX 4.2 and lower, the check
9157 # below for broken collect2 doesn't work under 4.3+
9158 collect2name=`${CC} -print-prog-name=collect2`
9159 if test -f "$collect2name" &&
9160 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9161 then
9162 # We have reworked collect2
9164 else
9165 # We have old collect2
9166 hardcode_direct=unsupported
9167 # It fails to find uninstalled libraries when the uninstalled
9168 # path is not listed in the libpath. Setting hardcode_minus_L
9169 # to unsupported forces relinking
9170 hardcode_minus_L=yes
9171 hardcode_libdir_flag_spec='-L$libdir'
9172 hardcode_libdir_separator=
9175 esac
9176 shared_flag='-shared'
9177 if test "$aix_use_runtimelinking" = yes; then
9178 shared_flag="$shared_flag "'${wl}-G'
9180 else
9181 # not using gcc
9182 if test "$host_cpu" = ia64; then
9183 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9184 # chokes on -Wl,-G. The following line is correct:
9185 shared_flag='-G'
9186 else
9187 if test "$aix_use_runtimelinking" = yes; then
9188 shared_flag='${wl}-G'
9189 else
9190 shared_flag='${wl}-bM:SRE'
9195 export_dynamic_flag_spec='${wl}-bexpall'
9196 # It seems that -bexpall does not export symbols beginning with
9197 # underscore (_), so it is better to generate a list of symbols to export.
9198 always_export_symbols=yes
9199 if test "$aix_use_runtimelinking" = yes; then
9200 # Warning - without using the other runtime loading flags (-brtl),
9201 # -berok will link without error, but may produce a broken library.
9202 allow_undefined_flag='-berok'
9203 # Determine the default libpath from the value encoded in an
9204 # empty executable.
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9209 main ()
9213 return 0;
9215 _ACEOF
9216 if ac_fn_c_try_link "$LINENO"; then :
9218 lt_aix_libpath_sed='
9219 /Import File Strings/,/^$/ {
9220 /^0/ {
9221 s/^0 *\(.*\)$/\1/
9225 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9226 # Check for a 64-bit object if we didn't find anything.
9227 if test -z "$aix_libpath"; then
9228 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9231 rm -f core conftest.err conftest.$ac_objext \
9232 conftest$ac_exeext conftest.$ac_ext
9233 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9235 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9236 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"
9237 else
9238 if test "$host_cpu" = ia64; then
9239 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9240 allow_undefined_flag="-z nodefs"
9241 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"
9242 else
9243 # Determine the default libpath from the value encoded in an
9244 # empty executable.
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9249 main ()
9253 return 0;
9255 _ACEOF
9256 if ac_fn_c_try_link "$LINENO"; then :
9258 lt_aix_libpath_sed='
9259 /Import File Strings/,/^$/ {
9260 /^0/ {
9261 s/^0 *\(.*\)$/\1/
9265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9266 # Check for a 64-bit object if we didn't find anything.
9267 if test -z "$aix_libpath"; then
9268 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9271 rm -f core conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
9273 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9275 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9276 # Warning - without using the other run time loading flags,
9277 # -berok will link without error, but may produce a broken library.
9278 no_undefined_flag=' ${wl}-bernotok'
9279 allow_undefined_flag=' ${wl}-berok'
9280 if test "$with_gnu_ld" = yes; then
9281 # We only use this code for GNU lds that support --whole-archive.
9282 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9283 else
9284 # Exported symbols can be pulled into shared objects from archives
9285 whole_archive_flag_spec='$convenience'
9287 archive_cmds_need_lc=yes
9288 # This is similar to how AIX traditionally builds its shared libraries.
9289 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'
9294 amigaos*)
9295 case $host_cpu in
9296 powerpc)
9297 # see comment about AmigaOS4 .so support
9298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299 archive_expsym_cmds=''
9301 m68k)
9302 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)'
9303 hardcode_libdir_flag_spec='-L$libdir'
9304 hardcode_minus_L=yes
9306 esac
9309 bsdi[45]*)
9310 export_dynamic_flag_spec=-rdynamic
9313 cygwin* | mingw* | pw32* | cegcc*)
9314 # When not using gcc, we currently assume that we are using
9315 # Microsoft Visual C++.
9316 # hardcode_libdir_flag_spec is actually meaningless, as there is
9317 # no search path for DLLs.
9318 hardcode_libdir_flag_spec=' '
9319 allow_undefined_flag=unsupported
9320 # Tell ltmain to make .lib files, not .a files.
9321 libext=lib
9322 # Tell ltmain to make .dll files, not .so files.
9323 shrext_cmds=".dll"
9324 # FIXME: Setting linknames here is a bad hack.
9325 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9326 # The linker will automatically build a .lib file if we build a DLL.
9327 old_archive_from_new_cmds='true'
9328 # FIXME: Should let the user specify the lib program.
9329 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9330 fix_srcfile_path='`cygpath -w "$srcfile"`'
9331 enable_shared_with_static_runtimes=yes
9334 darwin* | rhapsody*)
9337 archive_cmds_need_lc=no
9338 hardcode_direct=no
9339 hardcode_automatic=yes
9340 hardcode_shlibpath_var=unsupported
9341 if test "$lt_cv_ld_force_load" = "yes"; then
9342 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\"`'
9343 else
9344 whole_archive_flag_spec=''
9346 link_all_deplibs=yes
9347 allow_undefined_flag="$_lt_dar_allow_undefined"
9348 case $cc_basename in
9349 ifort*) _lt_dar_can_shared=yes ;;
9350 *) _lt_dar_can_shared=$GCC ;;
9351 esac
9352 if test "$_lt_dar_can_shared" = "yes"; then
9353 output_verbose_link_cmd=func_echo_all
9354 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9355 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9356 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}"
9357 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}"
9359 else
9360 ld_shlibs=no
9365 dgux*)
9366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9367 hardcode_libdir_flag_spec='-L$libdir'
9368 hardcode_shlibpath_var=no
9371 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9372 # support. Future versions do this automatically, but an explicit c++rt0.o
9373 # does not break anything, and helps significantly (at the cost of a little
9374 # extra space).
9375 freebsd2.2*)
9376 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9377 hardcode_libdir_flag_spec='-R$libdir'
9378 hardcode_direct=yes
9379 hardcode_shlibpath_var=no
9382 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9383 freebsd2.*)
9384 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9385 hardcode_direct=yes
9386 hardcode_minus_L=yes
9387 hardcode_shlibpath_var=no
9390 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9391 freebsd* | dragonfly*)
9392 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9393 hardcode_libdir_flag_spec='-R$libdir'
9394 hardcode_direct=yes
9395 hardcode_shlibpath_var=no
9398 hpux9*)
9399 if test "$GCC" = yes; then
9400 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'
9401 else
9402 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'
9404 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9405 hardcode_libdir_separator=:
9406 hardcode_direct=yes
9408 # hardcode_minus_L: Not really in the search PATH,
9409 # but as the default location of the library.
9410 hardcode_minus_L=yes
9411 export_dynamic_flag_spec='${wl}-E'
9414 hpux10*)
9415 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9416 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9417 else
9418 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9420 if test "$with_gnu_ld" = no; then
9421 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9422 hardcode_libdir_flag_spec_ld='+b $libdir'
9423 hardcode_libdir_separator=:
9424 hardcode_direct=yes
9425 hardcode_direct_absolute=yes
9426 export_dynamic_flag_spec='${wl}-E'
9427 # hardcode_minus_L: Not really in the search PATH,
9428 # but as the default location of the library.
9429 hardcode_minus_L=yes
9433 hpux11*)
9434 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9435 case $host_cpu in
9436 hppa*64*)
9437 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9439 ia64*)
9440 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9443 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9445 esac
9446 else
9447 case $host_cpu in
9448 hppa*64*)
9449 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9451 ia64*)
9452 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9456 # Older versions of the 11.00 compiler do not understand -b yet
9457 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9459 $as_echo_n "checking if $CC understands -b... " >&6; }
9460 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9461 $as_echo_n "(cached) " >&6
9462 else
9463 lt_cv_prog_compiler__b=no
9464 save_LDFLAGS="$LDFLAGS"
9465 LDFLAGS="$LDFLAGS -b"
9466 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9467 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9468 # The linker can only warn and ignore the option if not recognized
9469 # So say no if there are warnings
9470 if test -s conftest.err; then
9471 # Append any errors to the config.log.
9472 cat conftest.err 1>&5
9473 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9475 if diff conftest.exp conftest.er2 >/dev/null; then
9476 lt_cv_prog_compiler__b=yes
9478 else
9479 lt_cv_prog_compiler__b=yes
9482 $RM -r conftest*
9483 LDFLAGS="$save_LDFLAGS"
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9487 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9489 if test x"$lt_cv_prog_compiler__b" = xyes; then
9490 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9491 else
9492 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9496 esac
9498 if test "$with_gnu_ld" = no; then
9499 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9500 hardcode_libdir_separator=:
9502 case $host_cpu in
9503 hppa*64*|ia64*)
9504 hardcode_direct=no
9505 hardcode_shlibpath_var=no
9508 hardcode_direct=yes
9509 hardcode_direct_absolute=yes
9510 export_dynamic_flag_spec='${wl}-E'
9512 # hardcode_minus_L: Not really in the search PATH,
9513 # but as the default location of the library.
9514 hardcode_minus_L=yes
9516 esac
9520 irix5* | irix6* | nonstopux*)
9521 if test "$GCC" = yes; then
9522 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'
9523 # Try to use the -exported_symbol ld option, if it does not
9524 # work, assume that -exports_file does not work either and
9525 # implicitly export all symbols.
9526 save_LDFLAGS="$LDFLAGS"
9527 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9530 int foo(void) {}
9531 _ACEOF
9532 if ac_fn_c_try_link "$LINENO"; then :
9533 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'
9536 rm -f core conftest.err conftest.$ac_objext \
9537 conftest$ac_exeext conftest.$ac_ext
9538 LDFLAGS="$save_LDFLAGS"
9539 else
9540 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'
9541 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'
9543 archive_cmds_need_lc='no'
9544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9545 hardcode_libdir_separator=:
9546 inherit_rpath=yes
9547 link_all_deplibs=yes
9550 netbsd*)
9551 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9553 else
9554 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9556 hardcode_libdir_flag_spec='-R$libdir'
9557 hardcode_direct=yes
9558 hardcode_shlibpath_var=no
9561 newsos6)
9562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9563 hardcode_direct=yes
9564 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9565 hardcode_libdir_separator=:
9566 hardcode_shlibpath_var=no
9569 *nto* | *qnx*)
9572 openbsd*)
9573 if test -f /usr/libexec/ld.so; then
9574 hardcode_direct=yes
9575 hardcode_shlibpath_var=no
9576 hardcode_direct_absolute=yes
9577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9579 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9580 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9581 export_dynamic_flag_spec='${wl}-E'
9582 else
9583 case $host_os in
9584 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9586 hardcode_libdir_flag_spec='-R$libdir'
9589 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9590 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9592 esac
9594 else
9595 ld_shlibs=no
9599 os2*)
9600 hardcode_libdir_flag_spec='-L$libdir'
9601 hardcode_minus_L=yes
9602 allow_undefined_flag=unsupported
9603 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'
9604 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9607 osf3*)
9608 if test "$GCC" = yes; then
9609 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9610 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'
9611 else
9612 allow_undefined_flag=' -expect_unresolved \*'
9613 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'
9615 archive_cmds_need_lc='no'
9616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9617 hardcode_libdir_separator=:
9620 osf4* | osf5*) # as osf3* with the addition of -msym flag
9621 if test "$GCC" = yes; then
9622 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9623 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'
9624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9625 else
9626 allow_undefined_flag=' -expect_unresolved \*'
9627 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'
9628 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~
9629 $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'
9631 # Both c and cxx compiler support -rpath directly
9632 hardcode_libdir_flag_spec='-rpath $libdir'
9634 archive_cmds_need_lc='no'
9635 hardcode_libdir_separator=:
9638 solaris*)
9639 no_undefined_flag=' -z defs'
9640 if test "$GCC" = yes; then
9641 wlarc='${wl}'
9642 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9644 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9645 else
9646 case `$CC -V 2>&1` in
9647 *"Compilers 5.0"*)
9648 wlarc=''
9649 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9651 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9654 wlarc='${wl}'
9655 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9656 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9657 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9659 esac
9661 hardcode_libdir_flag_spec='-R$libdir'
9662 hardcode_shlibpath_var=no
9663 case $host_os in
9664 solaris2.[0-5] | solaris2.[0-5].*) ;;
9666 # The compiler driver will combine and reorder linker options,
9667 # but understands `-z linker_flag'. GCC discards it without `$wl',
9668 # but is careful enough not to reorder.
9669 # Supported since Solaris 2.6 (maybe 2.5.1?)
9670 if test "$GCC" = yes; then
9671 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9672 else
9673 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9676 esac
9677 link_all_deplibs=yes
9680 sunos4*)
9681 if test "x$host_vendor" = xsequent; then
9682 # Use $CC to link under sequent, because it throws in some extra .o
9683 # files that make .init and .fini sections work.
9684 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9685 else
9686 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9688 hardcode_libdir_flag_spec='-L$libdir'
9689 hardcode_direct=yes
9690 hardcode_minus_L=yes
9691 hardcode_shlibpath_var=no
9694 sysv4)
9695 case $host_vendor in
9696 sni)
9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_direct=yes # is this really true???
9700 siemens)
9701 ## LD is ld it makes a PLAMLIB
9702 ## CC just makes a GrossModule.
9703 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9704 reload_cmds='$CC -r -o $output$reload_objs'
9705 hardcode_direct=no
9707 motorola)
9708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9711 esac
9712 runpath_var='LD_RUN_PATH'
9713 hardcode_shlibpath_var=no
9716 sysv4.3*)
9717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9718 hardcode_shlibpath_var=no
9719 export_dynamic_flag_spec='-Bexport'
9722 sysv4*MP*)
9723 if test -d /usr/nec; then
9724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725 hardcode_shlibpath_var=no
9726 runpath_var=LD_RUN_PATH
9727 hardcode_runpath_var=yes
9728 ld_shlibs=yes
9732 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9733 no_undefined_flag='${wl}-z,text'
9734 archive_cmds_need_lc=no
9735 hardcode_shlibpath_var=no
9736 runpath_var='LD_RUN_PATH'
9738 if test "$GCC" = yes; then
9739 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9740 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9741 else
9742 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9747 sysv5* | sco3.2v5* | sco5v6*)
9748 # Note: We can NOT use -z defs as we might desire, because we do not
9749 # link with -lc, and that would cause any symbols used from libc to
9750 # always be unresolved, which means just about no library would
9751 # ever link correctly. If we're not using GNU ld we use -z text
9752 # though, which does catch some bad symbols but isn't as heavy-handed
9753 # as -z defs.
9754 no_undefined_flag='${wl}-z,text'
9755 allow_undefined_flag='${wl}-z,nodefs'
9756 archive_cmds_need_lc=no
9757 hardcode_shlibpath_var=no
9758 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9759 hardcode_libdir_separator=':'
9760 link_all_deplibs=yes
9761 export_dynamic_flag_spec='${wl}-Bexport'
9762 runpath_var='LD_RUN_PATH'
9764 if test "$GCC" = yes; then
9765 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9766 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9767 else
9768 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9773 uts4*)
9774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9775 hardcode_libdir_flag_spec='-L$libdir'
9776 hardcode_shlibpath_var=no
9780 ld_shlibs=no
9782 esac
9784 if test x$host_vendor = xsni; then
9785 case $host in
9786 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9787 export_dynamic_flag_spec='${wl}-Blargedynsym'
9789 esac
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9794 $as_echo "$ld_shlibs" >&6; }
9795 test "$ld_shlibs" = no && can_build_shared=no
9797 with_gnu_ld=$with_gnu_ld
9814 # Do we need to explicitly link libc?
9816 case "x$archive_cmds_need_lc" in
9817 x|xyes)
9818 # Assume -lc should be added
9819 archive_cmds_need_lc=yes
9821 if test "$enable_shared" = yes && test "$GCC" = yes; then
9822 case $archive_cmds in
9823 *'~'*)
9824 # FIXME: we may have to deal with multi-command sequences.
9826 '$CC '*)
9827 # Test whether the compiler implicitly links with -lc since on some
9828 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9829 # to ld, don't add -lc before -lgcc.
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9831 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9832 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9833 $as_echo_n "(cached) " >&6
9834 else
9835 $RM conftest*
9836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9839 (eval $ac_compile) 2>&5
9840 ac_status=$?
9841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9842 test $ac_status = 0; } 2>conftest.err; then
9843 soname=conftest
9844 lib=conftest
9845 libobjs=conftest.$ac_objext
9846 deplibs=
9847 wl=$lt_prog_compiler_wl
9848 pic_flag=$lt_prog_compiler_pic
9849 compiler_flags=-v
9850 linker_flags=-v
9851 verstring=
9852 output_objdir=.
9853 libname=conftest
9854 lt_save_allow_undefined_flag=$allow_undefined_flag
9855 allow_undefined_flag=
9856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9857 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9858 ac_status=$?
9859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9860 test $ac_status = 0; }
9861 then
9862 lt_cv_archive_cmds_need_lc=no
9863 else
9864 lt_cv_archive_cmds_need_lc=yes
9866 allow_undefined_flag=$lt_save_allow_undefined_flag
9867 else
9868 cat conftest.err 1>&5
9870 $RM conftest*
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9874 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9875 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9877 esac
9880 esac
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10039 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10041 if test "$GCC" = yes; then
10042 case $host_os in
10043 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10044 *) lt_awk_arg="/^libraries:/" ;;
10045 esac
10046 case $host_os in
10047 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10048 *) lt_sed_strip_eq="s,=/,/,g" ;;
10049 esac
10050 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10051 case $lt_search_path_spec in
10052 *\;*)
10053 # if the path contains ";" then we assume it to be the separator
10054 # otherwise default to the standard path separator (i.e. ":") - it is
10055 # assumed that no part of a normal pathname contains ";" but that should
10056 # okay in the real world where ";" in dirpaths is itself problematic.
10057 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10060 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10062 esac
10063 # Ok, now we have the path, separated by spaces, we can step through it
10064 # and add multilib dir if necessary.
10065 lt_tmp_lt_search_path_spec=
10066 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10067 for lt_sys_path in $lt_search_path_spec; do
10068 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10069 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10070 else
10071 test -d "$lt_sys_path" && \
10072 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10074 done
10075 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10076 BEGIN {RS=" "; FS="/|\n";} {
10077 lt_foo="";
10078 lt_count=0;
10079 for (lt_i = NF; lt_i > 0; lt_i--) {
10080 if ($lt_i != "" && $lt_i != ".") {
10081 if ($lt_i == "..") {
10082 lt_count++;
10083 } else {
10084 if (lt_count == 0) {
10085 lt_foo="/" $lt_i lt_foo;
10086 } else {
10087 lt_count--;
10092 if (lt_foo != "") { lt_freq[lt_foo]++; }
10093 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10095 # AWK program above erroneously prepends '/' to C:/dos/paths
10096 # for these hosts.
10097 case $host_os in
10098 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10099 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10100 esac
10101 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10102 else
10103 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10105 library_names_spec=
10106 libname_spec='lib$name'
10107 soname_spec=
10108 shrext_cmds=".so"
10109 postinstall_cmds=
10110 postuninstall_cmds=
10111 finish_cmds=
10112 finish_eval=
10113 shlibpath_var=
10114 shlibpath_overrides_runpath=unknown
10115 version_type=none
10116 dynamic_linker="$host_os ld.so"
10117 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10118 need_lib_prefix=unknown
10119 hardcode_into_libs=no
10121 # when you set need_version to no, make sure it does not cause -set_version
10122 # flags to be left without arguments
10123 need_version=unknown
10125 case $host_os in
10126 aix3*)
10127 version_type=linux
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10129 shlibpath_var=LIBPATH
10131 # AIX 3 has no versioning support, so we append a major version to the name.
10132 soname_spec='${libname}${release}${shared_ext}$major'
10135 aix[4-9]*)
10136 version_type=linux
10137 need_lib_prefix=no
10138 need_version=no
10139 hardcode_into_libs=yes
10140 if test "$host_cpu" = ia64; then
10141 # AIX 5 supports IA64
10142 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10143 shlibpath_var=LD_LIBRARY_PATH
10144 else
10145 # With GCC up to 2.95.x, collect2 would create an import file
10146 # for dependence libraries. The import file would start with
10147 # the line `#! .'. This would cause the generated library to
10148 # depend on `.', always an invalid library. This was fixed in
10149 # development snapshots of GCC prior to 3.0.
10150 case $host_os in
10151 aix4 | aix4.[01] | aix4.[01].*)
10152 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10153 echo ' yes '
10154 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10156 else
10157 can_build_shared=no
10160 esac
10161 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10162 # soname into executable. Probably we can add versioning support to
10163 # collect2, so additional links can be useful in future.
10164 if test "$aix_use_runtimelinking" = yes; then
10165 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10166 # instead of lib<name>.a to let people know that these are not
10167 # typical AIX shared libraries.
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169 else
10170 # We preserve .a as extension for shared libraries through AIX4.2
10171 # and later when we are not doing run time linking.
10172 library_names_spec='${libname}${release}.a $libname.a'
10173 soname_spec='${libname}${release}${shared_ext}$major'
10175 shlibpath_var=LIBPATH
10179 amigaos*)
10180 case $host_cpu in
10181 powerpc)
10182 # Since July 2007 AmigaOS4 officially supports .so libraries.
10183 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186 m68k)
10187 library_names_spec='$libname.ixlibrary $libname.a'
10188 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10189 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'
10191 esac
10194 beos*)
10195 library_names_spec='${libname}${shared_ext}'
10196 dynamic_linker="$host_os ld.so"
10197 shlibpath_var=LIBRARY_PATH
10200 bsdi[45]*)
10201 version_type=linux
10202 need_version=no
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10204 soname_spec='${libname}${release}${shared_ext}$major'
10205 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10206 shlibpath_var=LD_LIBRARY_PATH
10207 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10208 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10209 # the default ld.so.conf also contains /usr/contrib/lib and
10210 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10211 # libtool to hard-code these into programs
10214 cygwin* | mingw* | pw32* | cegcc*)
10215 version_type=windows
10216 shrext_cmds=".dll"
10217 need_version=no
10218 need_lib_prefix=no
10220 case $GCC,$host_os in
10221 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10222 library_names_spec='$libname.dll.a'
10223 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10224 postinstall_cmds='base_file=`basename \${file}`~
10225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10226 dldir=$destdir/`dirname \$dlpath`~
10227 test -d \$dldir || mkdir -p \$dldir~
10228 $install_prog $dir/$dlname \$dldir/$dlname~
10229 chmod a+x \$dldir/$dlname~
10230 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10231 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10233 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10234 dlpath=$dir/\$dldll~
10235 $RM \$dlpath'
10236 shlibpath_overrides_runpath=yes
10238 case $host_os in
10239 cygwin*)
10240 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10241 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10243 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10245 mingw* | cegcc*)
10246 # MinGW DLLs use traditional 'lib' prefix
10247 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10249 pw32*)
10250 # pw32 DLLs use 'pw' prefix rather than 'lib'
10251 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10253 esac
10257 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10259 esac
10260 dynamic_linker='Win32 ld.exe'
10261 # FIXME: first we should search . and the directory the executable is in
10262 shlibpath_var=PATH
10265 darwin* | rhapsody*)
10266 dynamic_linker="$host_os dyld"
10267 version_type=darwin
10268 need_lib_prefix=no
10269 need_version=no
10270 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10271 soname_spec='${libname}${release}${major}$shared_ext'
10272 shlibpath_overrides_runpath=yes
10273 shlibpath_var=DYLD_LIBRARY_PATH
10274 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10276 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10277 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10280 dgux*)
10281 version_type=linux
10282 need_lib_prefix=no
10283 need_version=no
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 shlibpath_var=LD_LIBRARY_PATH
10289 freebsd* | dragonfly*)
10290 # DragonFly does not have aout. When/if they implement a new
10291 # versioning mechanism, adjust this.
10292 if test -x /usr/bin/objformat; then
10293 objformat=`/usr/bin/objformat`
10294 else
10295 case $host_os in
10296 freebsd[23].*) objformat=aout ;;
10297 *) objformat=elf ;;
10298 esac
10300 version_type=freebsd-$objformat
10301 case $version_type in
10302 freebsd-elf*)
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10304 need_version=no
10305 need_lib_prefix=no
10307 freebsd-*)
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10309 need_version=yes
10311 esac
10312 shlibpath_var=LD_LIBRARY_PATH
10313 case $host_os in
10314 freebsd2.*)
10315 shlibpath_overrides_runpath=yes
10317 freebsd3.[01]* | freebsdelf3.[01]*)
10318 shlibpath_overrides_runpath=yes
10319 hardcode_into_libs=yes
10321 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10322 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10323 shlibpath_overrides_runpath=no
10324 hardcode_into_libs=yes
10326 *) # from 4.6 on, and DragonFly
10327 shlibpath_overrides_runpath=yes
10328 hardcode_into_libs=yes
10330 esac
10333 gnu*)
10334 version_type=linux
10335 need_lib_prefix=no
10336 need_version=no
10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10338 soname_spec='${libname}${release}${shared_ext}$major'
10339 shlibpath_var=LD_LIBRARY_PATH
10340 hardcode_into_libs=yes
10343 haiku*)
10344 version_type=linux
10345 need_lib_prefix=no
10346 need_version=no
10347 dynamic_linker="$host_os runtime_loader"
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10349 soname_spec='${libname}${release}${shared_ext}$major'
10350 shlibpath_var=LIBRARY_PATH
10351 shlibpath_overrides_runpath=yes
10352 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10353 hardcode_into_libs=yes
10356 hpux9* | hpux10* | hpux11*)
10357 # Give a soname corresponding to the major version so that dld.sl refuses to
10358 # link against other versions.
10359 version_type=sunos
10360 need_lib_prefix=no
10361 need_version=no
10362 case $host_cpu in
10363 ia64*)
10364 shrext_cmds='.so'
10365 hardcode_into_libs=yes
10366 dynamic_linker="$host_os dld.so"
10367 shlibpath_var=LD_LIBRARY_PATH
10368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 if test "X$HPUX_IA64_MODE" = X32; then
10372 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10373 else
10374 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10378 hppa*64*)
10379 shrext_cmds='.sl'
10380 hardcode_into_libs=yes
10381 dynamic_linker="$host_os dld.sl"
10382 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10383 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10387 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10390 shrext_cmds='.sl'
10391 dynamic_linker="$host_os dld.sl"
10392 shlibpath_var=SHLIB_PATH
10393 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395 soname_spec='${libname}${release}${shared_ext}$major'
10397 esac
10398 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10399 postinstall_cmds='chmod 555 $lib'
10400 # or fails outright, so override atomically:
10401 install_override_mode=555
10404 interix[3-9]*)
10405 version_type=linux
10406 need_lib_prefix=no
10407 need_version=no
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10411 shlibpath_var=LD_LIBRARY_PATH
10412 shlibpath_overrides_runpath=no
10413 hardcode_into_libs=yes
10416 irix5* | irix6* | nonstopux*)
10417 case $host_os in
10418 nonstopux*) version_type=nonstopux ;;
10420 if test "$lt_cv_prog_gnu_ld" = yes; then
10421 version_type=linux
10422 else
10423 version_type=irix
10424 fi ;;
10425 esac
10426 need_lib_prefix=no
10427 need_version=no
10428 soname_spec='${libname}${release}${shared_ext}$major'
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10430 case $host_os in
10431 irix5* | nonstopux*)
10432 libsuff= shlibsuff=
10435 case $LD in # libtool.m4 will add one of these switches to LD
10436 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10437 libsuff= shlibsuff= libmagic=32-bit;;
10438 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10439 libsuff=32 shlibsuff=N32 libmagic=N32;;
10440 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10441 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10442 *) libsuff= shlibsuff= libmagic=never-match;;
10443 esac
10445 esac
10446 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10447 shlibpath_overrides_runpath=no
10448 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10449 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10450 hardcode_into_libs=yes
10453 # No shared lib support for Linux oldld, aout, or coff.
10454 linux*oldld* | linux*aout* | linux*coff*)
10455 dynamic_linker=no
10458 # This must be Linux ELF.
10459 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10460 version_type=linux
10461 need_lib_prefix=no
10462 need_version=no
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=no
10469 # Some binutils ld are patched to set DT_RUNPATH
10470 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10471 $as_echo_n "(cached) " >&6
10472 else
10473 lt_cv_shlibpath_overrides_runpath=no
10474 save_LDFLAGS=$LDFLAGS
10475 save_libdir=$libdir
10476 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10477 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10479 /* end confdefs.h. */
10482 main ()
10486 return 0;
10488 _ACEOF
10489 if ac_fn_c_try_link "$LINENO"; then :
10490 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10491 lt_cv_shlibpath_overrides_runpath=yes
10494 rm -f core conftest.err conftest.$ac_objext \
10495 conftest$ac_exeext conftest.$ac_ext
10496 LDFLAGS=$save_LDFLAGS
10497 libdir=$save_libdir
10501 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10503 # This implies no fast_install, which is unacceptable.
10504 # Some rework will be needed to allow for fast_install
10505 # before this can be enabled.
10506 hardcode_into_libs=yes
10508 # Append ld.so.conf contents to the search path
10509 if test -f /etc/ld.so.conf; then
10510 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' ' '`
10511 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10514 # We used to test for /lib/ld.so.1 and disable shared libraries on
10515 # powerpc, because MkLinux only supported shared libraries with the
10516 # GNU dynamic linker. Since this was broken with cross compilers,
10517 # most powerpc-linux boxes support dynamic linking these days and
10518 # people can always --disable-shared, the test was removed, and we
10519 # assume the GNU/Linux dynamic linker is in use.
10520 dynamic_linker='GNU/Linux ld.so'
10523 netbsd*)
10524 version_type=sunos
10525 need_lib_prefix=no
10526 need_version=no
10527 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10530 dynamic_linker='NetBSD (a.out) ld.so'
10531 else
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10533 soname_spec='${libname}${release}${shared_ext}$major'
10534 dynamic_linker='NetBSD ld.elf_so'
10536 shlibpath_var=LD_LIBRARY_PATH
10537 shlibpath_overrides_runpath=yes
10538 hardcode_into_libs=yes
10541 newsos6)
10542 version_type=linux
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 shlibpath_overrides_runpath=yes
10548 *nto* | *qnx*)
10549 version_type=qnx
10550 need_lib_prefix=no
10551 need_version=no
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553 soname_spec='${libname}${release}${shared_ext}$major'
10554 shlibpath_var=LD_LIBRARY_PATH
10555 shlibpath_overrides_runpath=no
10556 hardcode_into_libs=yes
10557 dynamic_linker='ldqnx.so'
10560 openbsd*)
10561 version_type=sunos
10562 sys_lib_dlsearch_path_spec="/usr/lib"
10563 need_lib_prefix=no
10564 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10565 case $host_os in
10566 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10567 *) need_version=no ;;
10568 esac
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10573 case $host_os in
10574 openbsd2.[89] | openbsd2.[89].*)
10575 shlibpath_overrides_runpath=no
10578 shlibpath_overrides_runpath=yes
10580 esac
10581 else
10582 shlibpath_overrides_runpath=yes
10586 os2*)
10587 libname_spec='$name'
10588 shrext_cmds=".dll"
10589 need_lib_prefix=no
10590 library_names_spec='$libname${shared_ext} $libname.a'
10591 dynamic_linker='OS/2 ld.exe'
10592 shlibpath_var=LIBPATH
10595 osf3* | osf4* | osf5*)
10596 version_type=osf
10597 need_lib_prefix=no
10598 need_version=no
10599 soname_spec='${libname}${release}${shared_ext}$major'
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10601 shlibpath_var=LD_LIBRARY_PATH
10602 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10603 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10606 rdos*)
10607 dynamic_linker=no
10610 solaris*)
10611 version_type=linux
10612 need_lib_prefix=no
10613 need_version=no
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 soname_spec='${libname}${release}${shared_ext}$major'
10616 shlibpath_var=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath=yes
10618 hardcode_into_libs=yes
10619 # ldd complains unless libraries are executable
10620 postinstall_cmds='chmod +x $lib'
10623 sunos4*)
10624 version_type=sunos
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10626 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10627 shlibpath_var=LD_LIBRARY_PATH
10628 shlibpath_overrides_runpath=yes
10629 if test "$with_gnu_ld" = yes; then
10630 need_lib_prefix=no
10632 need_version=yes
10635 sysv4 | sysv4.3*)
10636 version_type=linux
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 case $host_vendor in
10641 sni)
10642 shlibpath_overrides_runpath=no
10643 need_lib_prefix=no
10644 runpath_var=LD_RUN_PATH
10646 siemens)
10647 need_lib_prefix=no
10649 motorola)
10650 need_lib_prefix=no
10651 need_version=no
10652 shlibpath_overrides_runpath=no
10653 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10655 esac
10658 sysv4*MP*)
10659 if test -d /usr/nec ;then
10660 version_type=linux
10661 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10662 soname_spec='$libname${shared_ext}.$major'
10663 shlibpath_var=LD_LIBRARY_PATH
10667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10668 version_type=freebsd-elf
10669 need_lib_prefix=no
10670 need_version=no
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10672 soname_spec='${libname}${release}${shared_ext}$major'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 shlibpath_overrides_runpath=yes
10675 hardcode_into_libs=yes
10676 if test "$with_gnu_ld" = yes; then
10677 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10678 else
10679 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10680 case $host_os in
10681 sco3.2v5*)
10682 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10684 esac
10686 sys_lib_dlsearch_path_spec='/usr/lib'
10689 tpf*)
10690 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10691 version_type=linux
10692 need_lib_prefix=no
10693 need_version=no
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10695 shlibpath_var=LD_LIBRARY_PATH
10696 shlibpath_overrides_runpath=no
10697 hardcode_into_libs=yes
10700 uts4*)
10701 version_type=linux
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 shlibpath_var=LD_LIBRARY_PATH
10708 dynamic_linker=no
10710 esac
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10712 $as_echo "$dynamic_linker" >&6; }
10713 test "$dynamic_linker" = no && can_build_shared=no
10715 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10716 if test "$GCC" = yes; then
10717 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10720 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10721 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10723 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10724 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10819 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10820 hardcode_action=
10821 if test -n "$hardcode_libdir_flag_spec" ||
10822 test -n "$runpath_var" ||
10823 test "X$hardcode_automatic" = "Xyes" ; then
10825 # We can hardcode non-existent directories.
10826 if test "$hardcode_direct" != no &&
10827 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10828 # have to relink, otherwise we might link with an installed library
10829 # when we should be linking with a yet-to-be-installed one
10830 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10831 test "$hardcode_minus_L" != no; then
10832 # Linking always hardcodes the temporary library directory.
10833 hardcode_action=relink
10834 else
10835 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10836 hardcode_action=immediate
10838 else
10839 # We cannot hardcode anything, or else we can only hardcode existing
10840 # directories.
10841 hardcode_action=unsupported
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10844 $as_echo "$hardcode_action" >&6; }
10846 if test "$hardcode_action" = relink ||
10847 test "$inherit_rpath" = yes; then
10848 # Fast installation is not supported
10849 enable_fast_install=no
10850 elif test "$shlibpath_overrides_runpath" = yes ||
10851 test "$enable_shared" = no; then
10852 # Fast installation is not necessary
10853 enable_fast_install=needless
10861 if test "x$enable_dlopen" != xyes; then
10862 enable_dlopen=unknown
10863 enable_dlopen_self=unknown
10864 enable_dlopen_self_static=unknown
10865 else
10866 lt_cv_dlopen=no
10867 lt_cv_dlopen_libs=
10869 case $host_os in
10870 beos*)
10871 lt_cv_dlopen="load_add_on"
10872 lt_cv_dlopen_libs=
10873 lt_cv_dlopen_self=yes
10876 mingw* | pw32* | cegcc*)
10877 lt_cv_dlopen="LoadLibrary"
10878 lt_cv_dlopen_libs=
10881 cygwin*)
10882 lt_cv_dlopen="dlopen"
10883 lt_cv_dlopen_libs=
10886 darwin*)
10887 # if libdl is installed we need to link against it
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10889 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10890 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 ac_check_lib_save_LIBS=$LIBS
10894 LIBS="-ldl $LIBS"
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10898 /* Override any GCC internal prototype to avoid an error.
10899 Use char because int might match the return type of a GCC
10900 builtin and then its argument prototype would still apply. */
10901 #ifdef __cplusplus
10902 extern "C"
10903 #endif
10904 char dlopen ();
10906 main ()
10908 return dlopen ();
10910 return 0;
10912 _ACEOF
10913 if ac_fn_c_try_link "$LINENO"; then :
10914 ac_cv_lib_dl_dlopen=yes
10915 else
10916 ac_cv_lib_dl_dlopen=no
10918 rm -f core conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10920 LIBS=$ac_check_lib_save_LIBS
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10923 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10924 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10925 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10926 else
10928 lt_cv_dlopen="dyld"
10929 lt_cv_dlopen_libs=
10930 lt_cv_dlopen_self=yes
10937 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10938 if test "x$ac_cv_func_shl_load" = x""yes; then :
10939 lt_cv_dlopen="shl_load"
10940 else
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10942 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10943 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 ac_check_lib_save_LIBS=$LIBS
10947 LIBS="-ldld $LIBS"
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10951 /* Override any GCC internal prototype to avoid an error.
10952 Use char because int might match the return type of a GCC
10953 builtin and then its argument prototype would still apply. */
10954 #ifdef __cplusplus
10955 extern "C"
10956 #endif
10957 char shl_load ();
10959 main ()
10961 return shl_load ();
10963 return 0;
10965 _ACEOF
10966 if ac_fn_c_try_link "$LINENO"; then :
10967 ac_cv_lib_dld_shl_load=yes
10968 else
10969 ac_cv_lib_dld_shl_load=no
10971 rm -f core conftest.err conftest.$ac_objext \
10972 conftest$ac_exeext conftest.$ac_ext
10973 LIBS=$ac_check_lib_save_LIBS
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10976 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10977 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10978 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10979 else
10980 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10981 if test "x$ac_cv_func_dlopen" = x""yes; then :
10982 lt_cv_dlopen="dlopen"
10983 else
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10985 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10986 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 ac_check_lib_save_LIBS=$LIBS
10990 LIBS="-ldl $LIBS"
10991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10994 /* Override any GCC internal prototype to avoid an error.
10995 Use char because int might match the return type of a GCC
10996 builtin and then its argument prototype would still apply. */
10997 #ifdef __cplusplus
10998 extern "C"
10999 #endif
11000 char dlopen ();
11002 main ()
11004 return dlopen ();
11006 return 0;
11008 _ACEOF
11009 if ac_fn_c_try_link "$LINENO"; then :
11010 ac_cv_lib_dl_dlopen=yes
11011 else
11012 ac_cv_lib_dl_dlopen=no
11014 rm -f core conftest.err conftest.$ac_objext \
11015 conftest$ac_exeext conftest.$ac_ext
11016 LIBS=$ac_check_lib_save_LIBS
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11019 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11020 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11022 else
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11024 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11025 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 ac_check_lib_save_LIBS=$LIBS
11029 LIBS="-lsvld $LIBS"
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11033 /* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11036 #ifdef __cplusplus
11037 extern "C"
11038 #endif
11039 char dlopen ();
11041 main ()
11043 return dlopen ();
11045 return 0;
11047 _ACEOF
11048 if ac_fn_c_try_link "$LINENO"; then :
11049 ac_cv_lib_svld_dlopen=yes
11050 else
11051 ac_cv_lib_svld_dlopen=no
11053 rm -f core conftest.err conftest.$ac_objext \
11054 conftest$ac_exeext conftest.$ac_ext
11055 LIBS=$ac_check_lib_save_LIBS
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11058 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11059 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11061 else
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11063 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11064 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11065 $as_echo_n "(cached) " >&6
11066 else
11067 ac_check_lib_save_LIBS=$LIBS
11068 LIBS="-ldld $LIBS"
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11072 /* Override any GCC internal prototype to avoid an error.
11073 Use char because int might match the return type of a GCC
11074 builtin and then its argument prototype would still apply. */
11075 #ifdef __cplusplus
11076 extern "C"
11077 #endif
11078 char dld_link ();
11080 main ()
11082 return dld_link ();
11084 return 0;
11086 _ACEOF
11087 if ac_fn_c_try_link "$LINENO"; then :
11088 ac_cv_lib_dld_dld_link=yes
11089 else
11090 ac_cv_lib_dld_dld_link=no
11092 rm -f core conftest.err conftest.$ac_objext \
11093 conftest$ac_exeext conftest.$ac_ext
11094 LIBS=$ac_check_lib_save_LIBS
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11097 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11098 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11099 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11118 esac
11120 if test "x$lt_cv_dlopen" != xno; then
11121 enable_dlopen=yes
11122 else
11123 enable_dlopen=no
11126 case $lt_cv_dlopen in
11127 dlopen)
11128 save_CPPFLAGS="$CPPFLAGS"
11129 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11131 save_LDFLAGS="$LDFLAGS"
11132 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11134 save_LIBS="$LIBS"
11135 LIBS="$lt_cv_dlopen_libs $LIBS"
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11138 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11139 if test "${lt_cv_dlopen_self+set}" = set; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 if test "$cross_compiling" = yes; then :
11143 lt_cv_dlopen_self=cross
11144 else
11145 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11146 lt_status=$lt_dlunknown
11147 cat > conftest.$ac_ext <<_LT_EOF
11148 #line 11148 "configure"
11149 #include "confdefs.h"
11151 #if HAVE_DLFCN_H
11152 #include <dlfcn.h>
11153 #endif
11155 #include <stdio.h>
11157 #ifdef RTLD_GLOBAL
11158 # define LT_DLGLOBAL RTLD_GLOBAL
11159 #else
11160 # ifdef DL_GLOBAL
11161 # define LT_DLGLOBAL DL_GLOBAL
11162 # else
11163 # define LT_DLGLOBAL 0
11164 # endif
11165 #endif
11167 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11168 find out it does not work in some platform. */
11169 #ifndef LT_DLLAZY_OR_NOW
11170 # ifdef RTLD_LAZY
11171 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11172 # else
11173 # ifdef DL_LAZY
11174 # define LT_DLLAZY_OR_NOW DL_LAZY
11175 # else
11176 # ifdef RTLD_NOW
11177 # define LT_DLLAZY_OR_NOW RTLD_NOW
11178 # else
11179 # ifdef DL_NOW
11180 # define LT_DLLAZY_OR_NOW DL_NOW
11181 # else
11182 # define LT_DLLAZY_OR_NOW 0
11183 # endif
11184 # endif
11185 # endif
11186 # endif
11187 #endif
11189 /* When -fvisbility=hidden is used, assume the code has been annotated
11190 correspondingly for the symbols needed. */
11191 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11192 void fnord () __attribute__((visibility("default")));
11193 #endif
11195 void fnord () { int i=42; }
11196 int main ()
11198 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11199 int status = $lt_dlunknown;
11201 if (self)
11203 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11204 else
11206 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11207 else puts (dlerror ());
11209 /* dlclose (self); */
11211 else
11212 puts (dlerror ());
11214 return status;
11216 _LT_EOF
11217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11218 (eval $ac_link) 2>&5
11219 ac_status=$?
11220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11221 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11222 (./conftest; exit; ) >&5 2>/dev/null
11223 lt_status=$?
11224 case x$lt_status in
11225 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11226 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11227 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11228 esac
11229 else :
11230 # compilation failed
11231 lt_cv_dlopen_self=no
11234 rm -fr conftest*
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11239 $as_echo "$lt_cv_dlopen_self" >&6; }
11241 if test "x$lt_cv_dlopen_self" = xyes; then
11242 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11244 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11245 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11246 $as_echo_n "(cached) " >&6
11247 else
11248 if test "$cross_compiling" = yes; then :
11249 lt_cv_dlopen_self_static=cross
11250 else
11251 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11252 lt_status=$lt_dlunknown
11253 cat > conftest.$ac_ext <<_LT_EOF
11254 #line 11254 "configure"
11255 #include "confdefs.h"
11257 #if HAVE_DLFCN_H
11258 #include <dlfcn.h>
11259 #endif
11261 #include <stdio.h>
11263 #ifdef RTLD_GLOBAL
11264 # define LT_DLGLOBAL RTLD_GLOBAL
11265 #else
11266 # ifdef DL_GLOBAL
11267 # define LT_DLGLOBAL DL_GLOBAL
11268 # else
11269 # define LT_DLGLOBAL 0
11270 # endif
11271 #endif
11273 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11274 find out it does not work in some platform. */
11275 #ifndef LT_DLLAZY_OR_NOW
11276 # ifdef RTLD_LAZY
11277 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11278 # else
11279 # ifdef DL_LAZY
11280 # define LT_DLLAZY_OR_NOW DL_LAZY
11281 # else
11282 # ifdef RTLD_NOW
11283 # define LT_DLLAZY_OR_NOW RTLD_NOW
11284 # else
11285 # ifdef DL_NOW
11286 # define LT_DLLAZY_OR_NOW DL_NOW
11287 # else
11288 # define LT_DLLAZY_OR_NOW 0
11289 # endif
11290 # endif
11291 # endif
11292 # endif
11293 #endif
11295 /* When -fvisbility=hidden is used, assume the code has been annotated
11296 correspondingly for the symbols needed. */
11297 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11298 void fnord () __attribute__((visibility("default")));
11299 #endif
11301 void fnord () { int i=42; }
11302 int main ()
11304 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11305 int status = $lt_dlunknown;
11307 if (self)
11309 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11310 else
11312 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11313 else puts (dlerror ());
11315 /* dlclose (self); */
11317 else
11318 puts (dlerror ());
11320 return status;
11322 _LT_EOF
11323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11324 (eval $ac_link) 2>&5
11325 ac_status=$?
11326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11327 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11328 (./conftest; exit; ) >&5 2>/dev/null
11329 lt_status=$?
11330 case x$lt_status in
11331 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11332 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11333 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11334 esac
11335 else :
11336 # compilation failed
11337 lt_cv_dlopen_self_static=no
11340 rm -fr conftest*
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11345 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11348 CPPFLAGS="$save_CPPFLAGS"
11349 LDFLAGS="$save_LDFLAGS"
11350 LIBS="$save_LIBS"
11352 esac
11354 case $lt_cv_dlopen_self in
11355 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11356 *) enable_dlopen_self=unknown ;;
11357 esac
11359 case $lt_cv_dlopen_self_static in
11360 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11361 *) enable_dlopen_self_static=unknown ;;
11362 esac
11381 striplib=
11382 old_striplib=
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11384 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11385 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11386 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11387 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11389 $as_echo "yes" >&6; }
11390 else
11391 # FIXME - insert some real tests, host_os isn't really good enough
11392 case $host_os in
11393 darwin*)
11394 if test -n "$STRIP" ; then
11395 striplib="$STRIP -x"
11396 old_striplib="$STRIP -S"
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11398 $as_echo "yes" >&6; }
11399 else
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401 $as_echo "no" >&6; }
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11408 esac
11422 # Report which library types will actually be built
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11424 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11426 $as_echo "$can_build_shared" >&6; }
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11429 $as_echo_n "checking whether to build shared libraries... " >&6; }
11430 test "$can_build_shared" = "no" && enable_shared=no
11432 # On AIX, shared libraries and static libraries use the same namespace, and
11433 # are all built from PIC.
11434 case $host_os in
11435 aix3*)
11436 test "$enable_shared" = yes && enable_static=no
11437 if test -n "$RANLIB"; then
11438 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11439 postinstall_cmds='$RANLIB $lib'
11443 aix[4-9]*)
11444 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11445 test "$enable_shared" = yes && enable_static=no
11448 esac
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11450 $as_echo "$enable_shared" >&6; }
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11453 $as_echo_n "checking whether to build static libraries... " >&6; }
11454 # Make sure either enable_shared or enable_static is yes.
11455 test "$enable_shared" = yes || enable_static=yes
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11457 $as_echo "$enable_static" >&6; }
11463 ac_ext=c
11464 ac_cpp='$CPP $CPPFLAGS'
11465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11469 CC="$lt_save_CC"
11483 ac_config_commands="$ac_config_commands libtool"
11488 # Only expand once:
11494 case $host in
11495 *-cygwin* | *-mingw*)
11496 # 'host' will be top-level target in the case of a target lib,
11497 # we must compare to with_cross_host to decide if this is a native
11498 # or cross-compiler and select where to install dlls appropriately.
11499 if test -n "$with_cross_host" &&
11500 test x"$with_cross_host" != x"no"; then
11501 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11502 else
11503 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11507 lt_host_flags=
11509 esac
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11518 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11519 # Check whether --enable-maintainer-mode was given.
11520 if test "${enable_maintainer_mode+set}" = set; then :
11521 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11522 else
11523 USE_MAINTAINER_MODE=no
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11527 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11528 if test $USE_MAINTAINER_MODE = yes; then
11529 MAINTAINER_MODE_TRUE=
11530 MAINTAINER_MODE_FALSE='#'
11531 else
11532 MAINTAINER_MODE_TRUE='#'
11533 MAINTAINER_MODE_FALSE=
11536 MAINT=$MAINTAINER_MODE_TRUE
11540 # Create a spec file, so that compile/link tests don't fail
11541 test -f libgfortran.spec || touch libgfortran.spec
11542 FCFLAGS="$FCFLAGS -L."
11544 # We need gfortran to compile parts of the library
11545 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11546 #AC_PROG_FC(gfortran)
11547 case `echo $GFORTRAN` in
11548 -* | no* )
11549 FC=no ;;
11551 set dummy $GFORTRAN; ac_word=$2
11552 if test -x "$ac_word"; then
11553 FC="$GFORTRAN"
11554 else
11555 FC=no
11556 fi ;;
11557 esac
11558 ac_ext=${ac_fc_srcext-f}
11559 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11560 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11561 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11562 if test -n "$ac_tool_prefix"; then
11563 for ac_prog in gfortran
11565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568 $as_echo_n "checking for $ac_word... " >&6; }
11569 if test "${ac_cv_prog_FC+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 if test -n "$FC"; then
11573 ac_cv_prog_FC="$FC" # Let the user override the test.
11574 else
11575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576 for as_dir in $PATH
11578 IFS=$as_save_IFS
11579 test -z "$as_dir" && as_dir=.
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11582 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11584 break 2
11586 done
11587 done
11588 IFS=$as_save_IFS
11592 FC=$ac_cv_prog_FC
11593 if test -n "$FC"; then
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11595 $as_echo "$FC" >&6; }
11596 else
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
11602 test -n "$FC" && break
11603 done
11605 if test -z "$FC"; then
11606 ac_ct_FC=$FC
11607 for ac_prog in gfortran
11609 # Extract the first word of "$ac_prog", so it can be a program name with args.
11610 set dummy $ac_prog; ac_word=$2
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11612 $as_echo_n "checking for $ac_word... " >&6; }
11613 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 if test -n "$ac_ct_FC"; then
11617 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11618 else
11619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620 for as_dir in $PATH
11622 IFS=$as_save_IFS
11623 test -z "$as_dir" && as_dir=.
11624 for ac_exec_ext in '' $ac_executable_extensions; do
11625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11626 ac_cv_prog_ac_ct_FC="$ac_prog"
11627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11628 break 2
11630 done
11631 done
11632 IFS=$as_save_IFS
11636 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11637 if test -n "$ac_ct_FC"; then
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11639 $as_echo "$ac_ct_FC" >&6; }
11640 else
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11646 test -n "$ac_ct_FC" && break
11647 done
11649 if test "x$ac_ct_FC" = x; then
11650 FC=""
11651 else
11652 case $cross_compiling:$ac_tool_warned in
11653 yes:)
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11656 ac_tool_warned=yes ;;
11657 esac
11658 FC=$ac_ct_FC
11663 # Provide some information about the compiler.
11664 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11665 set X $ac_compile
11666 ac_compiler=$2
11667 for ac_option in --version -v -V -qversion; do
11668 { { ac_try="$ac_compiler $ac_option >&5"
11669 case "(($ac_try" in
11670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671 *) ac_try_echo=$ac_try;;
11672 esac
11673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11674 $as_echo "$ac_try_echo"; } >&5
11675 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11676 ac_status=$?
11677 if test -s conftest.err; then
11678 sed '10a\
11679 ... rest of stderr output deleted ...
11680 10q' conftest.err >conftest.er1
11681 cat conftest.er1 >&5
11682 rm -f conftest.er1 conftest.err
11684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11685 test $ac_status = 0; }
11686 done
11687 rm -f a.out
11689 # If we don't use `.F' as extension, the preprocessor is not run on the
11690 # input file. (Note that this only needs to work for GNU compilers.)
11691 ac_save_ext=$ac_ext
11692 ac_ext=F
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11694 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11695 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11696 $as_echo_n "(cached) " >&6
11697 else
11698 cat > conftest.$ac_ext <<_ACEOF
11699 program main
11700 #ifndef __GNUC__
11701 choke me
11702 #endif
11705 _ACEOF
11706 if ac_fn_fc_try_compile "$LINENO"; then :
11707 ac_compiler_gnu=yes
11708 else
11709 ac_compiler_gnu=no
11711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11716 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11717 ac_ext=$ac_save_ext
11718 ac_test_FCFLAGS=${FCFLAGS+set}
11719 ac_save_FCFLAGS=$FCFLAGS
11720 FCFLAGS=
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11722 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11723 if test "${ac_cv_prog_fc_g+set}" = set; then :
11724 $as_echo_n "(cached) " >&6
11725 else
11726 FCFLAGS=-g
11727 cat > conftest.$ac_ext <<_ACEOF
11728 program main
11731 _ACEOF
11732 if ac_fn_fc_try_compile "$LINENO"; then :
11733 ac_cv_prog_fc_g=yes
11734 else
11735 ac_cv_prog_fc_g=no
11737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11741 $as_echo "$ac_cv_prog_fc_g" >&6; }
11742 if test "$ac_test_FCFLAGS" = set; then
11743 FCFLAGS=$ac_save_FCFLAGS
11744 elif test $ac_cv_prog_fc_g = yes; then
11745 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11746 FCFLAGS="-g -O2"
11747 else
11748 FCFLAGS="-g"
11750 else
11751 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11752 FCFLAGS="-O2"
11753 else
11754 FCFLAGS=
11758 ac_ext=c
11759 ac_cpp='$CPP $CPPFLAGS'
11760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11764 ac_ext=${ac_fc_srcext-f}
11765 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11766 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11767 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11770 if test -z "$FC" || test "X$FC" = "Xno"; then
11771 _lt_disable_FC=yes
11774 archive_cmds_need_lc_FC=no
11775 allow_undefined_flag_FC=
11776 always_export_symbols_FC=no
11777 archive_expsym_cmds_FC=
11778 export_dynamic_flag_spec_FC=
11779 hardcode_direct_FC=no
11780 hardcode_direct_absolute_FC=no
11781 hardcode_libdir_flag_spec_FC=
11782 hardcode_libdir_flag_spec_ld_FC=
11783 hardcode_libdir_separator_FC=
11784 hardcode_minus_L_FC=no
11785 hardcode_automatic_FC=no
11786 inherit_rpath_FC=no
11787 module_cmds_FC=
11788 module_expsym_cmds_FC=
11789 link_all_deplibs_FC=unknown
11790 old_archive_cmds_FC=$old_archive_cmds
11791 reload_flag_FC=$reload_flag
11792 reload_cmds_FC=$reload_cmds
11793 no_undefined_flag_FC=
11794 whole_archive_flag_spec_FC=
11795 enable_shared_with_static_runtimes_FC=no
11797 # Source file extension for fc test sources.
11798 ac_ext=${ac_fc_srcext-f}
11800 # Object file extension for compiled fc test sources.
11801 objext=o
11802 objext_FC=$objext
11804 # No sense in running all these tests if we already determined that
11805 # the FC compiler isn't working. Some variables (like enable_shared)
11806 # are currently assumed to apply to all compilers on this platform,
11807 # and will be corrupted by setting them based on a non-working compiler.
11808 if test "$_lt_disable_FC" != yes; then
11809 # Code to be used in simple compile tests
11810 lt_simple_compile_test_code="\
11811 subroutine t
11812 return
11816 # Code to be used in simple link tests
11817 lt_simple_link_test_code="\
11818 program t
11822 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11829 # If no C compiler was specified, use CC.
11830 LTCC=${LTCC-"$CC"}
11832 # If no C compiler flags were specified, use CFLAGS.
11833 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11835 # Allow CC to be a program name with arguments.
11836 compiler=$CC
11839 # save warnings/boilerplate of simple test code
11840 ac_outfile=conftest.$ac_objext
11841 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11842 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11843 _lt_compiler_boilerplate=`cat conftest.err`
11844 $RM conftest*
11846 ac_outfile=conftest.$ac_objext
11847 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11848 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11849 _lt_linker_boilerplate=`cat conftest.err`
11850 $RM -r conftest*
11853 # Allow CC to be a program name with arguments.
11854 lt_save_CC="$CC"
11855 lt_save_GCC=$GCC
11856 CC=${FC-"f95"}
11857 compiler=$CC
11858 GCC=$ac_cv_fc_compiler_gnu
11860 compiler_FC=$CC
11861 for cc_temp in $compiler""; do
11862 case $cc_temp in
11863 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11864 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11865 \-*) ;;
11866 *) break;;
11867 esac
11868 done
11869 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11872 if test -n "$compiler"; then
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11874 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11876 $as_echo "$can_build_shared" >&6; }
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11879 $as_echo_n "checking whether to build shared libraries... " >&6; }
11880 test "$can_build_shared" = "no" && enable_shared=no
11882 # On AIX, shared libraries and static libraries use the same namespace, and
11883 # are all built from PIC.
11884 case $host_os in
11885 aix3*)
11886 test "$enable_shared" = yes && enable_static=no
11887 if test -n "$RANLIB"; then
11888 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11889 postinstall_cmds='$RANLIB $lib'
11892 aix[4-9]*)
11893 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11894 test "$enable_shared" = yes && enable_static=no
11897 esac
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11899 $as_echo "$enable_shared" >&6; }
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11902 $as_echo_n "checking whether to build static libraries... " >&6; }
11903 # Make sure either enable_shared or enable_static is yes.
11904 test "$enable_shared" = yes || enable_static=yes
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11906 $as_echo "$enable_static" >&6; }
11908 GCC_FC="$ac_cv_fc_compiler_gnu"
11909 LD_FC="$LD"
11911 ## CAVEAT EMPTOR:
11912 ## There is no encapsulation within the following macros, do not change
11913 ## the running order or otherwise move them around unless you know exactly
11914 ## what you are doing...
11915 # Dependencies to place before and after the object being linked:
11916 predep_objects_FC=
11917 postdep_objects_FC=
11918 predeps_FC=
11919 postdeps_FC=
11920 compiler_lib_search_path_FC=
11922 cat > conftest.$ac_ext <<_LT_EOF
11923 subroutine foo
11924 implicit none
11925 integer a
11927 return
11929 _LT_EOF
11931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11932 (eval $ac_compile) 2>&5
11933 ac_status=$?
11934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11935 test $ac_status = 0; }; then
11936 # Parse the compiler output and extract the necessary
11937 # objects, libraries and library flags.
11939 # Sentinel used to keep track of whether or not we are before
11940 # the conftest object file.
11941 pre_test_object_deps_done=no
11943 for p in `eval "$output_verbose_link_cmd"`; do
11944 case $p in
11946 -L* | -R* | -l*)
11947 # Some compilers place space between "-{L,R}" and the path.
11948 # Remove the space.
11949 if test $p = "-L" ||
11950 test $p = "-R"; then
11951 prev=$p
11952 continue
11953 else
11954 prev=
11957 if test "$pre_test_object_deps_done" = no; then
11958 case $p in
11959 -L* | -R*)
11960 # Internal compiler library paths should come after those
11961 # provided the user. The postdeps already come after the
11962 # user supplied libs so there is no need to process them.
11963 if test -z "$compiler_lib_search_path_FC"; then
11964 compiler_lib_search_path_FC="${prev}${p}"
11965 else
11966 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11969 # The "-l" case would never come before the object being
11970 # linked, so don't bother handling this case.
11971 esac
11972 else
11973 if test -z "$postdeps_FC"; then
11974 postdeps_FC="${prev}${p}"
11975 else
11976 postdeps_FC="${postdeps_FC} ${prev}${p}"
11981 *.$objext)
11982 # This assumes that the test object file only shows up
11983 # once in the compiler output.
11984 if test "$p" = "conftest.$objext"; then
11985 pre_test_object_deps_done=yes
11986 continue
11989 if test "$pre_test_object_deps_done" = no; then
11990 if test -z "$predep_objects_FC"; then
11991 predep_objects_FC="$p"
11992 else
11993 predep_objects_FC="$predep_objects_FC $p"
11995 else
11996 if test -z "$postdep_objects_FC"; then
11997 postdep_objects_FC="$p"
11998 else
11999 postdep_objects_FC="$postdep_objects_FC $p"
12004 *) ;; # Ignore the rest.
12006 esac
12007 done
12009 # Clean up.
12010 rm -f a.out a.exe
12011 else
12012 echo "libtool.m4: error: problem compiling FC test program"
12015 $RM -f confest.$objext
12017 # PORTME: override above test on systems where it is broken
12020 case " $postdeps_FC " in
12021 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12022 esac
12023 compiler_lib_search_dirs_FC=
12024 if test -n "${compiler_lib_search_path_FC}"; then
12025 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12058 lt_prog_compiler_wl_FC=
12059 lt_prog_compiler_pic_FC=
12060 lt_prog_compiler_static_FC=
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12063 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12065 if test "$GCC" = yes; then
12066 lt_prog_compiler_wl_FC='-Wl,'
12067 lt_prog_compiler_static_FC='-static'
12069 case $host_os in
12070 aix*)
12071 # All AIX code is PIC.
12072 if test "$host_cpu" = ia64; then
12073 # AIX 5 now supports IA64 processor
12074 lt_prog_compiler_static_FC='-Bstatic'
12076 lt_prog_compiler_pic_FC='-fPIC'
12079 amigaos*)
12080 case $host_cpu in
12081 powerpc)
12082 # see comment about AmigaOS4 .so support
12083 lt_prog_compiler_pic_FC='-fPIC'
12085 m68k)
12086 # FIXME: we need at least 68020 code to build shared libraries, but
12087 # adding the `-m68020' flag to GCC prevents building anything better,
12088 # like `-m68040'.
12089 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12091 esac
12094 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12095 # PIC is the default for these OSes.
12098 mingw* | cygwin* | pw32* | os2* | cegcc*)
12099 # This hack is so that the source file can tell whether it is being
12100 # built for inclusion in a dll (and should export symbols for example).
12101 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12102 # (--disable-auto-import) libraries
12103 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12106 darwin* | rhapsody*)
12107 # PIC is the default on this platform
12108 # Common symbols not allowed in MH_DYLIB files
12109 lt_prog_compiler_pic_FC='-fno-common'
12112 haiku*)
12113 # PIC is the default for Haiku.
12114 # The "-static" flag exists, but is broken.
12115 lt_prog_compiler_static_FC=
12118 hpux*)
12119 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12120 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12121 # sets the default TLS model and affects inlining.
12122 case $host_cpu in
12123 hppa*64*)
12124 # +Z the default
12127 lt_prog_compiler_pic_FC='-fPIC'
12129 esac
12132 interix[3-9]*)
12133 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12134 # Instead, we relocate shared libraries at runtime.
12137 msdosdjgpp*)
12138 # Just because we use GCC doesn't mean we suddenly get shared libraries
12139 # on systems that don't support them.
12140 lt_prog_compiler_can_build_shared_FC=no
12141 enable_shared=no
12144 *nto* | *qnx*)
12145 # QNX uses GNU C++, but need to define -shared option too, otherwise
12146 # it will coredump.
12147 lt_prog_compiler_pic_FC='-fPIC -shared'
12150 sysv4*MP*)
12151 if test -d /usr/nec; then
12152 lt_prog_compiler_pic_FC=-Kconform_pic
12157 lt_prog_compiler_pic_FC='-fPIC'
12159 esac
12161 case $cc_basename in
12162 nvcc*) # Cuda Compiler Driver 2.2
12163 lt_prog_compiler_wl_FC='-Xlinker '
12164 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12166 esac
12167 else
12168 # PORTME Check for flag to pass linker flags through the system compiler.
12169 case $host_os in
12170 aix*)
12171 lt_prog_compiler_wl_FC='-Wl,'
12172 if test "$host_cpu" = ia64; then
12173 # AIX 5 now supports IA64 processor
12174 lt_prog_compiler_static_FC='-Bstatic'
12175 else
12176 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12180 mingw* | cygwin* | pw32* | os2* | cegcc*)
12181 # This hack is so that the source file can tell whether it is being
12182 # built for inclusion in a dll (and should export symbols for example).
12183 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12186 hpux9* | hpux10* | hpux11*)
12187 lt_prog_compiler_wl_FC='-Wl,'
12188 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12189 # not for PA HP-UX.
12190 case $host_cpu in
12191 hppa*64*|ia64*)
12192 # +Z the default
12195 lt_prog_compiler_pic_FC='+Z'
12197 esac
12198 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12199 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12202 irix5* | irix6* | nonstopux*)
12203 lt_prog_compiler_wl_FC='-Wl,'
12204 # PIC (with -KPIC) is the default.
12205 lt_prog_compiler_static_FC='-non_shared'
12208 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12209 case $cc_basename in
12210 # old Intel for x86_64 which still supported -KPIC.
12211 ecc*)
12212 lt_prog_compiler_wl_FC='-Wl,'
12213 lt_prog_compiler_pic_FC='-KPIC'
12214 lt_prog_compiler_static_FC='-static'
12216 # icc used to be incompatible with GCC.
12217 # ICC 10 doesn't accept -KPIC any more.
12218 icc* | ifort*)
12219 lt_prog_compiler_wl_FC='-Wl,'
12220 lt_prog_compiler_pic_FC='-fPIC'
12221 lt_prog_compiler_static_FC='-static'
12223 # Lahey Fortran 8.1.
12224 lf95*)
12225 lt_prog_compiler_wl_FC='-Wl,'
12226 lt_prog_compiler_pic_FC='--shared'
12227 lt_prog_compiler_static_FC='--static'
12229 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12230 # Portland Group compilers (*not* the Pentium gcc compiler,
12231 # which looks to be a dead project)
12232 lt_prog_compiler_wl_FC='-Wl,'
12233 lt_prog_compiler_pic_FC='-fpic'
12234 lt_prog_compiler_static_FC='-Bstatic'
12236 ccc*)
12237 lt_prog_compiler_wl_FC='-Wl,'
12238 # All Alpha code is PIC.
12239 lt_prog_compiler_static_FC='-non_shared'
12241 xl* | bgxl* | bgf* | mpixl*)
12242 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12243 lt_prog_compiler_wl_FC='-Wl,'
12244 lt_prog_compiler_pic_FC='-qpic'
12245 lt_prog_compiler_static_FC='-qstaticlink'
12248 case `$CC -V 2>&1 | sed 5q` in
12249 *Sun\ F* | *Sun*Fortran*)
12250 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12251 lt_prog_compiler_pic_FC='-KPIC'
12252 lt_prog_compiler_static_FC='-Bstatic'
12253 lt_prog_compiler_wl_FC=''
12255 *Sun\ C*)
12256 # Sun C 5.9
12257 lt_prog_compiler_pic_FC='-KPIC'
12258 lt_prog_compiler_static_FC='-Bstatic'
12259 lt_prog_compiler_wl_FC='-Wl,'
12261 esac
12263 esac
12266 newsos6)
12267 lt_prog_compiler_pic_FC='-KPIC'
12268 lt_prog_compiler_static_FC='-Bstatic'
12271 *nto* | *qnx*)
12272 # QNX uses GNU C++, but need to define -shared option too, otherwise
12273 # it will coredump.
12274 lt_prog_compiler_pic_FC='-fPIC -shared'
12277 osf3* | osf4* | osf5*)
12278 lt_prog_compiler_wl_FC='-Wl,'
12279 # All OSF/1 code is PIC.
12280 lt_prog_compiler_static_FC='-non_shared'
12283 rdos*)
12284 lt_prog_compiler_static_FC='-non_shared'
12287 solaris*)
12288 lt_prog_compiler_pic_FC='-KPIC'
12289 lt_prog_compiler_static_FC='-Bstatic'
12290 case $cc_basename in
12291 f77* | f90* | f95*)
12292 lt_prog_compiler_wl_FC='-Qoption ld ';;
12294 lt_prog_compiler_wl_FC='-Wl,';;
12295 esac
12298 sunos4*)
12299 lt_prog_compiler_wl_FC='-Qoption ld '
12300 lt_prog_compiler_pic_FC='-PIC'
12301 lt_prog_compiler_static_FC='-Bstatic'
12304 sysv4 | sysv4.2uw2* | sysv4.3*)
12305 lt_prog_compiler_wl_FC='-Wl,'
12306 lt_prog_compiler_pic_FC='-KPIC'
12307 lt_prog_compiler_static_FC='-Bstatic'
12310 sysv4*MP*)
12311 if test -d /usr/nec ;then
12312 lt_prog_compiler_pic_FC='-Kconform_pic'
12313 lt_prog_compiler_static_FC='-Bstatic'
12317 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12318 lt_prog_compiler_wl_FC='-Wl,'
12319 lt_prog_compiler_pic_FC='-KPIC'
12320 lt_prog_compiler_static_FC='-Bstatic'
12323 unicos*)
12324 lt_prog_compiler_wl_FC='-Wl,'
12325 lt_prog_compiler_can_build_shared_FC=no
12328 uts4*)
12329 lt_prog_compiler_pic_FC='-pic'
12330 lt_prog_compiler_static_FC='-Bstatic'
12334 lt_prog_compiler_can_build_shared_FC=no
12336 esac
12339 case $host_os in
12340 # For platforms which do not support PIC, -DPIC is meaningless:
12341 *djgpp*)
12342 lt_prog_compiler_pic_FC=
12345 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12347 esac
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12349 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12354 # Check to make sure the PIC flag actually works.
12356 if test -n "$lt_prog_compiler_pic_FC"; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12358 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12359 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12362 lt_cv_prog_compiler_pic_works_FC=no
12363 ac_outfile=conftest.$ac_objext
12364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12365 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12366 # Insert the option either (1) after the last *FLAGS variable, or
12367 # (2) before a word containing "conftest.", or (3) at the end.
12368 # Note that $ac_compile itself does not contain backslashes and begins
12369 # with a dollar sign (not a hyphen), so the echo should work correctly.
12370 # The option is referenced via a variable to avoid confusing sed.
12371 lt_compile=`echo "$ac_compile" | $SED \
12372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12374 -e 's:$: $lt_compiler_flag:'`
12375 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12376 (eval "$lt_compile" 2>conftest.err)
12377 ac_status=$?
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 if (exit $ac_status) && test -s "$ac_outfile"; then
12381 # The compiler can only warn and ignore the option if not recognized
12382 # So say no if there are warnings other than the usual output.
12383 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12385 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12386 lt_cv_prog_compiler_pic_works_FC=yes
12389 $RM conftest*
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12393 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12395 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12396 case $lt_prog_compiler_pic_FC in
12397 "" | " "*) ;;
12398 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12399 esac
12400 else
12401 lt_prog_compiler_pic_FC=
12402 lt_prog_compiler_can_build_shared_FC=no
12410 # Check to make sure the static flag actually works.
12412 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12414 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12415 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 lt_cv_prog_compiler_static_works_FC=no
12419 save_LDFLAGS="$LDFLAGS"
12420 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12421 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12422 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12423 # The linker can only warn and ignore the option if not recognized
12424 # So say no if there are warnings
12425 if test -s conftest.err; then
12426 # Append any errors to the config.log.
12427 cat conftest.err 1>&5
12428 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12430 if diff conftest.exp conftest.er2 >/dev/null; then
12431 lt_cv_prog_compiler_static_works_FC=yes
12433 else
12434 lt_cv_prog_compiler_static_works_FC=yes
12437 $RM -r conftest*
12438 LDFLAGS="$save_LDFLAGS"
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12442 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12444 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12446 else
12447 lt_prog_compiler_static_FC=
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12454 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12455 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12456 $as_echo_n "(cached) " >&6
12457 else
12458 lt_cv_prog_compiler_c_o_FC=no
12459 $RM -r conftest 2>/dev/null
12460 mkdir conftest
12461 cd conftest
12462 mkdir out
12463 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12465 lt_compiler_flag="-o out/conftest2.$ac_objext"
12466 # Insert the option either (1) after the last *FLAGS variable, or
12467 # (2) before a word containing "conftest.", or (3) at the end.
12468 # Note that $ac_compile itself does not contain backslashes and begins
12469 # with a dollar sign (not a hyphen), so the echo should work correctly.
12470 lt_compile=`echo "$ac_compile" | $SED \
12471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12473 -e 's:$: $lt_compiler_flag:'`
12474 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12475 (eval "$lt_compile" 2>out/conftest.err)
12476 ac_status=$?
12477 cat out/conftest.err >&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12480 then
12481 # The compiler can only warn and ignore the option if not recognized
12482 # So say no if there are warnings
12483 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12484 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12485 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12486 lt_cv_prog_compiler_c_o_FC=yes
12489 chmod u+w . 2>&5
12490 $RM conftest*
12491 # SGI C++ compiler will create directory out/ii_files/ for
12492 # template instantiation
12493 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12494 $RM out/* && rmdir out
12495 cd ..
12496 $RM -r conftest
12497 $RM conftest*
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12501 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12506 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12507 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12508 $as_echo_n "(cached) " >&6
12509 else
12510 lt_cv_prog_compiler_c_o_FC=no
12511 $RM -r conftest 2>/dev/null
12512 mkdir conftest
12513 cd conftest
12514 mkdir out
12515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12517 lt_compiler_flag="-o out/conftest2.$ac_objext"
12518 # Insert the option either (1) after the last *FLAGS variable, or
12519 # (2) before a word containing "conftest.", or (3) at the end.
12520 # Note that $ac_compile itself does not contain backslashes and begins
12521 # with a dollar sign (not a hyphen), so the echo should work correctly.
12522 lt_compile=`echo "$ac_compile" | $SED \
12523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12525 -e 's:$: $lt_compiler_flag:'`
12526 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12527 (eval "$lt_compile" 2>out/conftest.err)
12528 ac_status=$?
12529 cat out/conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12532 then
12533 # The compiler can only warn and ignore the option if not recognized
12534 # So say no if there are warnings
12535 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12536 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12537 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12538 lt_cv_prog_compiler_c_o_FC=yes
12541 chmod u+w . 2>&5
12542 $RM conftest*
12543 # SGI C++ compiler will create directory out/ii_files/ for
12544 # template instantiation
12545 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12546 $RM out/* && rmdir out
12547 cd ..
12548 $RM -r conftest
12549 $RM conftest*
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12553 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12558 hard_links="nottested"
12559 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12560 # do not overwrite the value of need_locks provided by the user
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12562 $as_echo_n "checking if we can lock with hard links... " >&6; }
12563 hard_links=yes
12564 $RM conftest*
12565 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12566 touch conftest.a
12567 ln conftest.a conftest.b 2>&5 || hard_links=no
12568 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12570 $as_echo "$hard_links" >&6; }
12571 if test "$hard_links" = no; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12573 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12574 need_locks=warn
12576 else
12577 need_locks=no
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12583 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12585 runpath_var=
12586 allow_undefined_flag_FC=
12587 always_export_symbols_FC=no
12588 archive_cmds_FC=
12589 archive_expsym_cmds_FC=
12590 compiler_needs_object_FC=no
12591 enable_shared_with_static_runtimes_FC=no
12592 export_dynamic_flag_spec_FC=
12593 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12594 hardcode_automatic_FC=no
12595 hardcode_direct_FC=no
12596 hardcode_direct_absolute_FC=no
12597 hardcode_libdir_flag_spec_FC=
12598 hardcode_libdir_flag_spec_ld_FC=
12599 hardcode_libdir_separator_FC=
12600 hardcode_minus_L_FC=no
12601 hardcode_shlibpath_var_FC=unsupported
12602 inherit_rpath_FC=no
12603 link_all_deplibs_FC=unknown
12604 module_cmds_FC=
12605 module_expsym_cmds_FC=
12606 old_archive_from_new_cmds_FC=
12607 old_archive_from_expsyms_cmds_FC=
12608 thread_safe_flag_spec_FC=
12609 whole_archive_flag_spec_FC=
12610 # include_expsyms should be a list of space-separated symbols to be *always*
12611 # included in the symbol list
12612 include_expsyms_FC=
12613 # exclude_expsyms can be an extended regexp of symbols to exclude
12614 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12615 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12616 # as well as any symbol that contains `d'.
12617 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12618 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12619 # platforms (ab)use it in PIC code, but their linkers get confused if
12620 # the symbol is explicitly referenced. Since portable code cannot
12621 # rely on this symbol name, it's probably fine to never include it in
12622 # preloaded symbol tables.
12623 # Exclude shared library initialization/finalization symbols.
12624 extract_expsyms_cmds=
12626 case $host_os in
12627 cygwin* | mingw* | pw32* | cegcc*)
12628 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12629 # When not using gcc, we currently assume that we are using
12630 # Microsoft Visual C++.
12631 if test "$GCC" != yes; then
12632 with_gnu_ld=no
12635 interix*)
12636 # we just hope/assume this is gcc and not c89 (= MSVC++)
12637 with_gnu_ld=yes
12639 openbsd*)
12640 with_gnu_ld=no
12642 esac
12644 ld_shlibs_FC=yes
12646 # On some targets, GNU ld is compatible enough with the native linker
12647 # that we're better off using the native interface for both.
12648 lt_use_gnu_ld_interface=no
12649 if test "$with_gnu_ld" = yes; then
12650 case $host_os in
12651 aix*)
12652 # The AIX port of GNU ld has always aspired to compatibility
12653 # with the native linker. However, as the warning in the GNU ld
12654 # block says, versions before 2.19.5* couldn't really create working
12655 # shared libraries, regardless of the interface used.
12656 case `$LD -v 2>&1` in
12657 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12658 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12659 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12661 lt_use_gnu_ld_interface=yes
12663 esac
12666 lt_use_gnu_ld_interface=yes
12668 esac
12671 if test "$lt_use_gnu_ld_interface" = yes; then
12672 # If archive_cmds runs LD, not CC, wlarc should be empty
12673 wlarc='${wl}'
12675 # Set some defaults for GNU ld with shared library support. These
12676 # are reset later if shared libraries are not supported. Putting them
12677 # here allows them to be overridden if necessary.
12678 runpath_var=LD_RUN_PATH
12679 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12680 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12681 # ancient GNU ld didn't support --whole-archive et. al.
12682 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12683 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12684 else
12685 whole_archive_flag_spec_FC=
12687 supports_anon_versioning=no
12688 case `$LD -v 2>&1` in
12689 *GNU\ gold*) supports_anon_versioning=yes ;;
12690 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12691 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12692 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12693 *\ 2.11.*) ;; # other 2.11 versions
12694 *) supports_anon_versioning=yes ;;
12695 esac
12697 # See if GNU ld supports shared libraries.
12698 case $host_os in
12699 aix[3-9]*)
12700 # On AIX/PPC, the GNU linker is very broken
12701 if test "$host_cpu" != ia64; then
12702 ld_shlibs_FC=no
12703 cat <<_LT_EOF 1>&2
12705 *** Warning: the GNU linker, at least up to release 2.19, is reported
12706 *** to be unable to reliably create shared libraries on AIX.
12707 *** Therefore, libtool is disabling shared libraries support. If you
12708 *** really care for shared libraries, you may want to install binutils
12709 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12710 *** You will then need to restart the configuration process.
12712 _LT_EOF
12716 amigaos*)
12717 case $host_cpu in
12718 powerpc)
12719 # see comment about AmigaOS4 .so support
12720 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12721 archive_expsym_cmds_FC=''
12723 m68k)
12724 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)'
12725 hardcode_libdir_flag_spec_FC='-L$libdir'
12726 hardcode_minus_L_FC=yes
12728 esac
12731 beos*)
12732 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12733 allow_undefined_flag_FC=unsupported
12734 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12735 # support --undefined. This deserves some investigation. FIXME
12736 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12737 else
12738 ld_shlibs_FC=no
12742 cygwin* | mingw* | pw32* | cegcc*)
12743 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12744 # as there is no search path for DLLs.
12745 hardcode_libdir_flag_spec_FC='-L$libdir'
12746 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12747 allow_undefined_flag_FC=unsupported
12748 always_export_symbols_FC=no
12749 enable_shared_with_static_runtimes_FC=yes
12750 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12752 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12753 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12754 # If the export-symbols file already is a .def file (1st line
12755 # is EXPORTS), use it as is; otherwise, prepend...
12756 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12757 cp $export_symbols $output_objdir/$soname.def;
12758 else
12759 echo EXPORTS > $output_objdir/$soname.def;
12760 cat $export_symbols >> $output_objdir/$soname.def;
12762 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12763 else
12764 ld_shlibs_FC=no
12768 haiku*)
12769 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12770 link_all_deplibs_FC=yes
12773 interix[3-9]*)
12774 hardcode_direct_FC=no
12775 hardcode_shlibpath_var_FC=no
12776 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12777 export_dynamic_flag_spec_FC='${wl}-E'
12778 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12779 # Instead, shared libraries are loaded at an image base (0x10000000 by
12780 # default) and relocated if they conflict, which is a slow very memory
12781 # consuming and fragmenting process. To avoid this, we pick a random,
12782 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12783 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12784 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'
12785 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'
12788 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12789 tmp_diet=no
12790 if test "$host_os" = linux-dietlibc; then
12791 case $cc_basename in
12792 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12793 esac
12795 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12796 && test "$tmp_diet" = no
12797 then
12798 tmp_addflag=' $pic_flag'
12799 tmp_sharedflag='-shared'
12800 case $cc_basename,$host_cpu in
12801 pgcc*) # Portland Group C compiler
12802 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'
12803 tmp_addflag=' $pic_flag'
12805 pgf77* | pgf90* | pgf95* | pgfortran*)
12806 # Portland Group f77 and f90 compilers
12807 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'
12808 tmp_addflag=' $pic_flag -Mnomain' ;;
12809 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12810 tmp_addflag=' -i_dynamic' ;;
12811 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12812 tmp_addflag=' -i_dynamic -nofor_main' ;;
12813 ifc* | ifort*) # Intel Fortran compiler
12814 tmp_addflag=' -nofor_main' ;;
12815 lf95*) # Lahey Fortran 8.1
12816 whole_archive_flag_spec_FC=
12817 tmp_sharedflag='--shared' ;;
12818 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12819 tmp_sharedflag='-qmkshrobj'
12820 tmp_addflag= ;;
12821 nvcc*) # Cuda Compiler Driver 2.2
12822 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'
12823 compiler_needs_object_FC=yes
12825 esac
12826 case `$CC -V 2>&1 | sed 5q` in
12827 *Sun\ C*) # Sun C 5.9
12828 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'
12829 compiler_needs_object_FC=yes
12830 tmp_sharedflag='-G' ;;
12831 *Sun\ F*) # Sun Fortran 8.3
12832 tmp_sharedflag='-G' ;;
12833 esac
12834 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12836 if test "x$supports_anon_versioning" = xyes; then
12837 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12838 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12839 echo "local: *; };" >> $output_objdir/$libname.ver~
12840 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12843 case $cc_basename in
12844 xlf* | bgf* | bgxlf* | mpixlf*)
12845 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12846 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12847 hardcode_libdir_flag_spec_FC=
12848 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12849 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12850 if test "x$supports_anon_versioning" = xyes; then
12851 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12852 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12853 echo "local: *; };" >> $output_objdir/$libname.ver~
12854 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12857 esac
12858 else
12859 ld_shlibs_FC=no
12863 netbsd*)
12864 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12865 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12866 wlarc=
12867 else
12868 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12869 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12873 solaris*)
12874 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12875 ld_shlibs_FC=no
12876 cat <<_LT_EOF 1>&2
12878 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12879 *** create shared libraries on Solaris systems. Therefore, libtool
12880 *** is disabling shared libraries support. We urge you to upgrade GNU
12881 *** binutils to release 2.9.1 or newer. Another option is to modify
12882 *** your PATH or compiler configuration so that the native linker is
12883 *** used, and then restart.
12885 _LT_EOF
12886 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12887 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12888 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12889 else
12890 ld_shlibs_FC=no
12894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12895 case `$LD -v 2>&1` in
12896 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12897 ld_shlibs_FC=no
12898 cat <<_LT_EOF 1>&2
12900 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12901 *** reliably create shared libraries on SCO systems. Therefore, libtool
12902 *** is disabling shared libraries support. We urge you to upgrade GNU
12903 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12904 *** your PATH or compiler configuration so that the native linker is
12905 *** used, and then restart.
12907 _LT_EOF
12910 # For security reasons, it is highly recommended that you always
12911 # use absolute paths for naming shared libraries, and exclude the
12912 # DT_RUNPATH tag from executables and libraries. But doing so
12913 # requires that you compile everything twice, which is a pain.
12914 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12915 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12916 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12917 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12918 else
12919 ld_shlibs_FC=no
12922 esac
12925 sunos4*)
12926 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12927 wlarc=
12928 hardcode_direct_FC=yes
12929 hardcode_shlibpath_var_FC=no
12933 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12934 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12935 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12936 else
12937 ld_shlibs_FC=no
12940 esac
12942 if test "$ld_shlibs_FC" = no; then
12943 runpath_var=
12944 hardcode_libdir_flag_spec_FC=
12945 export_dynamic_flag_spec_FC=
12946 whole_archive_flag_spec_FC=
12948 else
12949 # PORTME fill in a description of your system's linker (not GNU ld)
12950 case $host_os in
12951 aix3*)
12952 allow_undefined_flag_FC=unsupported
12953 always_export_symbols_FC=yes
12954 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'
12955 # Note: this linker hardcodes the directories in LIBPATH if there
12956 # are no directories specified by -L.
12957 hardcode_minus_L_FC=yes
12958 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12959 # Neither direct hardcoding nor static linking is supported with a
12960 # broken collect2.
12961 hardcode_direct_FC=unsupported
12965 aix[4-9]*)
12966 if test "$host_cpu" = ia64; then
12967 # On IA64, the linker does run time linking by default, so we don't
12968 # have to do anything special.
12969 aix_use_runtimelinking=no
12970 exp_sym_flag='-Bexport'
12971 no_entry_flag=""
12972 else
12973 # If we're using GNU nm, then we don't want the "-C" option.
12974 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12975 # Also, AIX nm treats weak defined symbols like other global
12976 # defined symbols, whereas GNU nm marks them as "W".
12977 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12978 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'
12979 else
12980 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12982 aix_use_runtimelinking=no
12984 # Test if we are trying to use run time linking or normal
12985 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12986 # need to do runtime linking.
12987 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12988 for ld_flag in $LDFLAGS; do
12989 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12990 aix_use_runtimelinking=yes
12991 break
12993 done
12995 esac
12997 exp_sym_flag='-bexport'
12998 no_entry_flag='-bnoentry'
13001 # When large executables or shared objects are built, AIX ld can
13002 # have problems creating the table of contents. If linking a library
13003 # or program results in "error TOC overflow" add -mminimal-toc to
13004 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13005 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13007 archive_cmds_FC=''
13008 hardcode_direct_FC=yes
13009 hardcode_direct_absolute_FC=yes
13010 hardcode_libdir_separator_FC=':'
13011 link_all_deplibs_FC=yes
13012 file_list_spec_FC='${wl}-f,'
13014 if test "$GCC" = yes; then
13015 case $host_os in aix4.[012]|aix4.[012].*)
13016 # We only want to do this on AIX 4.2 and lower, the check
13017 # below for broken collect2 doesn't work under 4.3+
13018 collect2name=`${CC} -print-prog-name=collect2`
13019 if test -f "$collect2name" &&
13020 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13021 then
13022 # We have reworked collect2
13024 else
13025 # We have old collect2
13026 hardcode_direct_FC=unsupported
13027 # It fails to find uninstalled libraries when the uninstalled
13028 # path is not listed in the libpath. Setting hardcode_minus_L
13029 # to unsupported forces relinking
13030 hardcode_minus_L_FC=yes
13031 hardcode_libdir_flag_spec_FC='-L$libdir'
13032 hardcode_libdir_separator_FC=
13035 esac
13036 shared_flag='-shared'
13037 if test "$aix_use_runtimelinking" = yes; then
13038 shared_flag="$shared_flag "'${wl}-G'
13040 else
13041 # not using gcc
13042 if test "$host_cpu" = ia64; then
13043 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13044 # chokes on -Wl,-G. The following line is correct:
13045 shared_flag='-G'
13046 else
13047 if test "$aix_use_runtimelinking" = yes; then
13048 shared_flag='${wl}-G'
13049 else
13050 shared_flag='${wl}-bM:SRE'
13055 export_dynamic_flag_spec_FC='${wl}-bexpall'
13056 # It seems that -bexpall does not export symbols beginning with
13057 # underscore (_), so it is better to generate a list of symbols to export.
13058 always_export_symbols_FC=yes
13059 if test "$aix_use_runtimelinking" = yes; then
13060 # Warning - without using the other runtime loading flags (-brtl),
13061 # -berok will link without error, but may produce a broken library.
13062 allow_undefined_flag_FC='-berok'
13063 # Determine the default libpath from the value encoded in an
13064 # empty executable.
13065 cat > conftest.$ac_ext <<_ACEOF
13066 program main
13069 _ACEOF
13070 if ac_fn_fc_try_link "$LINENO"; then :
13072 lt_aix_libpath_sed='
13073 /Import File Strings/,/^$/ {
13074 /^0/ {
13075 s/^0 *\(.*\)$/\1/
13079 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13080 # Check for a 64-bit object if we didn't find anything.
13081 if test -z "$aix_libpath"; then
13082 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13085 rm -f core conftest.err conftest.$ac_objext \
13086 conftest$ac_exeext conftest.$ac_ext
13087 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13089 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13090 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"
13091 else
13092 if test "$host_cpu" = ia64; then
13093 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13094 allow_undefined_flag_FC="-z nodefs"
13095 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"
13096 else
13097 # Determine the default libpath from the value encoded in an
13098 # empty executable.
13099 cat > conftest.$ac_ext <<_ACEOF
13100 program main
13103 _ACEOF
13104 if ac_fn_fc_try_link "$LINENO"; then :
13106 lt_aix_libpath_sed='
13107 /Import File Strings/,/^$/ {
13108 /^0/ {
13109 s/^0 *\(.*\)$/\1/
13113 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13114 # Check for a 64-bit object if we didn't find anything.
13115 if test -z "$aix_libpath"; then
13116 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13119 rm -f core conftest.err conftest.$ac_objext \
13120 conftest$ac_exeext conftest.$ac_ext
13121 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13123 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13124 # Warning - without using the other run time loading flags,
13125 # -berok will link without error, but may produce a broken library.
13126 no_undefined_flag_FC=' ${wl}-bernotok'
13127 allow_undefined_flag_FC=' ${wl}-berok'
13128 if test "$with_gnu_ld" = yes; then
13129 # We only use this code for GNU lds that support --whole-archive.
13130 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13131 else
13132 # Exported symbols can be pulled into shared objects from archives
13133 whole_archive_flag_spec_FC='$convenience'
13135 archive_cmds_need_lc_FC=yes
13136 # This is similar to how AIX traditionally builds its shared libraries.
13137 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'
13142 amigaos*)
13143 case $host_cpu in
13144 powerpc)
13145 # see comment about AmigaOS4 .so support
13146 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13147 archive_expsym_cmds_FC=''
13149 m68k)
13150 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)'
13151 hardcode_libdir_flag_spec_FC='-L$libdir'
13152 hardcode_minus_L_FC=yes
13154 esac
13157 bsdi[45]*)
13158 export_dynamic_flag_spec_FC=-rdynamic
13161 cygwin* | mingw* | pw32* | cegcc*)
13162 # When not using gcc, we currently assume that we are using
13163 # Microsoft Visual C++.
13164 # hardcode_libdir_flag_spec is actually meaningless, as there is
13165 # no search path for DLLs.
13166 hardcode_libdir_flag_spec_FC=' '
13167 allow_undefined_flag_FC=unsupported
13168 # Tell ltmain to make .lib files, not .a files.
13169 libext=lib
13170 # Tell ltmain to make .dll files, not .so files.
13171 shrext_cmds=".dll"
13172 # FIXME: Setting linknames here is a bad hack.
13173 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13174 # The linker will automatically build a .lib file if we build a DLL.
13175 old_archive_from_new_cmds_FC='true'
13176 # FIXME: Should let the user specify the lib program.
13177 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13178 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13179 enable_shared_with_static_runtimes_FC=yes
13182 darwin* | rhapsody*)
13185 archive_cmds_need_lc_FC=no
13186 hardcode_direct_FC=no
13187 hardcode_automatic_FC=yes
13188 hardcode_shlibpath_var_FC=unsupported
13189 if test "$lt_cv_ld_force_load" = "yes"; then
13190 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\"`'
13191 else
13192 whole_archive_flag_spec_FC=''
13194 link_all_deplibs_FC=yes
13195 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13196 case $cc_basename in
13197 ifort*) _lt_dar_can_shared=yes ;;
13198 *) _lt_dar_can_shared=$GCC ;;
13199 esac
13200 if test "$_lt_dar_can_shared" = "yes"; then
13201 output_verbose_link_cmd=func_echo_all
13202 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}"
13203 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13204 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}"
13205 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}"
13207 else
13208 ld_shlibs_FC=no
13213 dgux*)
13214 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13215 hardcode_libdir_flag_spec_FC='-L$libdir'
13216 hardcode_shlibpath_var_FC=no
13219 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13220 # support. Future versions do this automatically, but an explicit c++rt0.o
13221 # does not break anything, and helps significantly (at the cost of a little
13222 # extra space).
13223 freebsd2.2*)
13224 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13225 hardcode_libdir_flag_spec_FC='-R$libdir'
13226 hardcode_direct_FC=yes
13227 hardcode_shlibpath_var_FC=no
13230 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13231 freebsd2.*)
13232 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13233 hardcode_direct_FC=yes
13234 hardcode_minus_L_FC=yes
13235 hardcode_shlibpath_var_FC=no
13238 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13239 freebsd* | dragonfly*)
13240 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13241 hardcode_libdir_flag_spec_FC='-R$libdir'
13242 hardcode_direct_FC=yes
13243 hardcode_shlibpath_var_FC=no
13246 hpux9*)
13247 if test "$GCC" = yes; then
13248 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'
13249 else
13250 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'
13252 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13253 hardcode_libdir_separator_FC=:
13254 hardcode_direct_FC=yes
13256 # hardcode_minus_L: Not really in the search PATH,
13257 # but as the default location of the library.
13258 hardcode_minus_L_FC=yes
13259 export_dynamic_flag_spec_FC='${wl}-E'
13262 hpux10*)
13263 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13264 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13265 else
13266 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13268 if test "$with_gnu_ld" = no; then
13269 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13270 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13271 hardcode_libdir_separator_FC=:
13272 hardcode_direct_FC=yes
13273 hardcode_direct_absolute_FC=yes
13274 export_dynamic_flag_spec_FC='${wl}-E'
13275 # hardcode_minus_L: Not really in the search PATH,
13276 # but as the default location of the library.
13277 hardcode_minus_L_FC=yes
13281 hpux11*)
13282 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13283 case $host_cpu in
13284 hppa*64*)
13285 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13287 ia64*)
13288 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13291 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13293 esac
13294 else
13295 case $host_cpu in
13296 hppa*64*)
13297 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13299 ia64*)
13300 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13303 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13305 esac
13307 if test "$with_gnu_ld" = no; then
13308 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13309 hardcode_libdir_separator_FC=:
13311 case $host_cpu in
13312 hppa*64*|ia64*)
13313 hardcode_direct_FC=no
13314 hardcode_shlibpath_var_FC=no
13317 hardcode_direct_FC=yes
13318 hardcode_direct_absolute_FC=yes
13319 export_dynamic_flag_spec_FC='${wl}-E'
13321 # hardcode_minus_L: Not really in the search PATH,
13322 # but as the default location of the library.
13323 hardcode_minus_L_FC=yes
13325 esac
13329 irix5* | irix6* | nonstopux*)
13330 if test "$GCC" = yes; then
13331 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'
13332 # Try to use the -exported_symbol ld option, if it does not
13333 # work, assume that -exports_file does not work either and
13334 # implicitly export all symbols.
13335 save_LDFLAGS="$LDFLAGS"
13336 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13337 cat > conftest.$ac_ext <<_ACEOF
13338 int foo(void) {}
13339 _ACEOF
13340 if ac_fn_fc_try_link "$LINENO"; then :
13341 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'
13344 rm -f core conftest.err conftest.$ac_objext \
13345 conftest$ac_exeext conftest.$ac_ext
13346 LDFLAGS="$save_LDFLAGS"
13347 else
13348 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'
13349 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'
13351 archive_cmds_need_lc_FC='no'
13352 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13353 hardcode_libdir_separator_FC=:
13354 inherit_rpath_FC=yes
13355 link_all_deplibs_FC=yes
13358 netbsd*)
13359 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13360 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13361 else
13362 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13364 hardcode_libdir_flag_spec_FC='-R$libdir'
13365 hardcode_direct_FC=yes
13366 hardcode_shlibpath_var_FC=no
13369 newsos6)
13370 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13371 hardcode_direct_FC=yes
13372 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13373 hardcode_libdir_separator_FC=:
13374 hardcode_shlibpath_var_FC=no
13377 *nto* | *qnx*)
13380 openbsd*)
13381 if test -f /usr/libexec/ld.so; then
13382 hardcode_direct_FC=yes
13383 hardcode_shlibpath_var_FC=no
13384 hardcode_direct_absolute_FC=yes
13385 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13386 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13387 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13388 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13389 export_dynamic_flag_spec_FC='${wl}-E'
13390 else
13391 case $host_os in
13392 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13393 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13394 hardcode_libdir_flag_spec_FC='-R$libdir'
13397 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13398 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13400 esac
13402 else
13403 ld_shlibs_FC=no
13407 os2*)
13408 hardcode_libdir_flag_spec_FC='-L$libdir'
13409 hardcode_minus_L_FC=yes
13410 allow_undefined_flag_FC=unsupported
13411 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'
13412 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13415 osf3*)
13416 if test "$GCC" = yes; then
13417 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13418 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'
13419 else
13420 allow_undefined_flag_FC=' -expect_unresolved \*'
13421 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'
13423 archive_cmds_need_lc_FC='no'
13424 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13425 hardcode_libdir_separator_FC=:
13428 osf4* | osf5*) # as osf3* with the addition of -msym flag
13429 if test "$GCC" = yes; then
13430 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13431 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'
13432 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13433 else
13434 allow_undefined_flag_FC=' -expect_unresolved \*'
13435 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'
13436 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~
13437 $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'
13439 # Both c and cxx compiler support -rpath directly
13440 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13442 archive_cmds_need_lc_FC='no'
13443 hardcode_libdir_separator_FC=:
13446 solaris*)
13447 no_undefined_flag_FC=' -z defs'
13448 if test "$GCC" = yes; then
13449 wlarc='${wl}'
13450 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13451 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13452 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13453 else
13454 case `$CC -V 2>&1` in
13455 *"Compilers 5.0"*)
13456 wlarc=''
13457 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13458 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13459 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13462 wlarc='${wl}'
13463 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13464 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13465 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13467 esac
13469 hardcode_libdir_flag_spec_FC='-R$libdir'
13470 hardcode_shlibpath_var_FC=no
13471 case $host_os in
13472 solaris2.[0-5] | solaris2.[0-5].*) ;;
13474 # The compiler driver will combine and reorder linker options,
13475 # but understands `-z linker_flag'. GCC discards it without `$wl',
13476 # but is careful enough not to reorder.
13477 # Supported since Solaris 2.6 (maybe 2.5.1?)
13478 if test "$GCC" = yes; then
13479 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13480 else
13481 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13484 esac
13485 link_all_deplibs_FC=yes
13488 sunos4*)
13489 if test "x$host_vendor" = xsequent; then
13490 # Use $CC to link under sequent, because it throws in some extra .o
13491 # files that make .init and .fini sections work.
13492 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13493 else
13494 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13496 hardcode_libdir_flag_spec_FC='-L$libdir'
13497 hardcode_direct_FC=yes
13498 hardcode_minus_L_FC=yes
13499 hardcode_shlibpath_var_FC=no
13502 sysv4)
13503 case $host_vendor in
13504 sni)
13505 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13506 hardcode_direct_FC=yes # is this really true???
13508 siemens)
13509 ## LD is ld it makes a PLAMLIB
13510 ## CC just makes a GrossModule.
13511 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13512 reload_cmds_FC='$CC -r -o $output$reload_objs'
13513 hardcode_direct_FC=no
13515 motorola)
13516 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13517 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13519 esac
13520 runpath_var='LD_RUN_PATH'
13521 hardcode_shlibpath_var_FC=no
13524 sysv4.3*)
13525 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13526 hardcode_shlibpath_var_FC=no
13527 export_dynamic_flag_spec_FC='-Bexport'
13530 sysv4*MP*)
13531 if test -d /usr/nec; then
13532 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13533 hardcode_shlibpath_var_FC=no
13534 runpath_var=LD_RUN_PATH
13535 hardcode_runpath_var=yes
13536 ld_shlibs_FC=yes
13540 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13541 no_undefined_flag_FC='${wl}-z,text'
13542 archive_cmds_need_lc_FC=no
13543 hardcode_shlibpath_var_FC=no
13544 runpath_var='LD_RUN_PATH'
13546 if test "$GCC" = yes; then
13547 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13548 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13549 else
13550 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13551 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13555 sysv5* | sco3.2v5* | sco5v6*)
13556 # Note: We can NOT use -z defs as we might desire, because we do not
13557 # link with -lc, and that would cause any symbols used from libc to
13558 # always be unresolved, which means just about no library would
13559 # ever link correctly. If we're not using GNU ld we use -z text
13560 # though, which does catch some bad symbols but isn't as heavy-handed
13561 # as -z defs.
13562 no_undefined_flag_FC='${wl}-z,text'
13563 allow_undefined_flag_FC='${wl}-z,nodefs'
13564 archive_cmds_need_lc_FC=no
13565 hardcode_shlibpath_var_FC=no
13566 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13567 hardcode_libdir_separator_FC=':'
13568 link_all_deplibs_FC=yes
13569 export_dynamic_flag_spec_FC='${wl}-Bexport'
13570 runpath_var='LD_RUN_PATH'
13572 if test "$GCC" = yes; then
13573 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13574 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13575 else
13576 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13577 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13581 uts4*)
13582 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13583 hardcode_libdir_flag_spec_FC='-L$libdir'
13584 hardcode_shlibpath_var_FC=no
13588 ld_shlibs_FC=no
13590 esac
13592 if test x$host_vendor = xsni; then
13593 case $host in
13594 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13595 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13597 esac
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13602 $as_echo "$ld_shlibs_FC" >&6; }
13603 test "$ld_shlibs_FC" = no && can_build_shared=no
13605 with_gnu_ld_FC=$with_gnu_ld
13613 # Do we need to explicitly link libc?
13615 case "x$archive_cmds_need_lc_FC" in
13616 x|xyes)
13617 # Assume -lc should be added
13618 archive_cmds_need_lc_FC=yes
13620 if test "$enable_shared" = yes && test "$GCC" = yes; then
13621 case $archive_cmds_FC in
13622 *'~'*)
13623 # FIXME: we may have to deal with multi-command sequences.
13625 '$CC '*)
13626 # Test whether the compiler implicitly links with -lc since on some
13627 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13628 # to ld, don't add -lc before -lgcc.
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13630 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13631 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13632 $as_echo_n "(cached) " >&6
13633 else
13634 $RM conftest*
13635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13638 (eval $ac_compile) 2>&5
13639 ac_status=$?
13640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13641 test $ac_status = 0; } 2>conftest.err; then
13642 soname=conftest
13643 lib=conftest
13644 libobjs=conftest.$ac_objext
13645 deplibs=
13646 wl=$lt_prog_compiler_wl_FC
13647 pic_flag=$lt_prog_compiler_pic_FC
13648 compiler_flags=-v
13649 linker_flags=-v
13650 verstring=
13651 output_objdir=.
13652 libname=conftest
13653 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13654 allow_undefined_flag_FC=
13655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13656 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13657 ac_status=$?
13658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13659 test $ac_status = 0; }
13660 then
13661 lt_cv_archive_cmds_need_lc_FC=no
13662 else
13663 lt_cv_archive_cmds_need_lc_FC=yes
13665 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13666 else
13667 cat conftest.err 1>&5
13669 $RM conftest*
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13673 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13674 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13676 esac
13679 esac
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13745 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13747 library_names_spec=
13748 libname_spec='lib$name'
13749 soname_spec=
13750 shrext_cmds=".so"
13751 postinstall_cmds=
13752 postuninstall_cmds=
13753 finish_cmds=
13754 finish_eval=
13755 shlibpath_var=
13756 shlibpath_overrides_runpath=unknown
13757 version_type=none
13758 dynamic_linker="$host_os ld.so"
13759 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13760 need_lib_prefix=unknown
13761 hardcode_into_libs=no
13763 # when you set need_version to no, make sure it does not cause -set_version
13764 # flags to be left without arguments
13765 need_version=unknown
13767 case $host_os in
13768 aix3*)
13769 version_type=linux
13770 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13771 shlibpath_var=LIBPATH
13773 # AIX 3 has no versioning support, so we append a major version to the name.
13774 soname_spec='${libname}${release}${shared_ext}$major'
13777 aix[4-9]*)
13778 version_type=linux
13779 need_lib_prefix=no
13780 need_version=no
13781 hardcode_into_libs=yes
13782 if test "$host_cpu" = ia64; then
13783 # AIX 5 supports IA64
13784 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13785 shlibpath_var=LD_LIBRARY_PATH
13786 else
13787 # With GCC up to 2.95.x, collect2 would create an import file
13788 # for dependence libraries. The import file would start with
13789 # the line `#! .'. This would cause the generated library to
13790 # depend on `.', always an invalid library. This was fixed in
13791 # development snapshots of GCC prior to 3.0.
13792 case $host_os in
13793 aix4 | aix4.[01] | aix4.[01].*)
13794 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13795 echo ' yes '
13796 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13798 else
13799 can_build_shared=no
13802 esac
13803 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13804 # soname into executable. Probably we can add versioning support to
13805 # collect2, so additional links can be useful in future.
13806 if test "$aix_use_runtimelinking" = yes; then
13807 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13808 # instead of lib<name>.a to let people know that these are not
13809 # typical AIX shared libraries.
13810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13811 else
13812 # We preserve .a as extension for shared libraries through AIX4.2
13813 # and later when we are not doing run time linking.
13814 library_names_spec='${libname}${release}.a $libname.a'
13815 soname_spec='${libname}${release}${shared_ext}$major'
13817 shlibpath_var=LIBPATH
13821 amigaos*)
13822 case $host_cpu in
13823 powerpc)
13824 # Since July 2007 AmigaOS4 officially supports .so libraries.
13825 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13828 m68k)
13829 library_names_spec='$libname.ixlibrary $libname.a'
13830 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13831 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'
13833 esac
13836 beos*)
13837 library_names_spec='${libname}${shared_ext}'
13838 dynamic_linker="$host_os ld.so"
13839 shlibpath_var=LIBRARY_PATH
13842 bsdi[45]*)
13843 version_type=linux
13844 need_version=no
13845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13846 soname_spec='${libname}${release}${shared_ext}$major'
13847 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13848 shlibpath_var=LD_LIBRARY_PATH
13849 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13850 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13851 # the default ld.so.conf also contains /usr/contrib/lib and
13852 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13853 # libtool to hard-code these into programs
13856 cygwin* | mingw* | pw32* | cegcc*)
13857 version_type=windows
13858 shrext_cmds=".dll"
13859 need_version=no
13860 need_lib_prefix=no
13862 case $GCC,$host_os in
13863 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13864 library_names_spec='$libname.dll.a'
13865 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13866 postinstall_cmds='base_file=`basename \${file}`~
13867 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13868 dldir=$destdir/`dirname \$dlpath`~
13869 test -d \$dldir || mkdir -p \$dldir~
13870 $install_prog $dir/$dlname \$dldir/$dlname~
13871 chmod a+x \$dldir/$dlname~
13872 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13873 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13876 dlpath=$dir/\$dldll~
13877 $RM \$dlpath'
13878 shlibpath_overrides_runpath=yes
13880 case $host_os in
13881 cygwin*)
13882 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13883 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13886 mingw* | cegcc*)
13887 # MinGW DLLs use traditional 'lib' prefix
13888 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13890 pw32*)
13891 # pw32 DLLs use 'pw' prefix rather than 'lib'
13892 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13894 esac
13898 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13900 esac
13901 dynamic_linker='Win32 ld.exe'
13902 # FIXME: first we should search . and the directory the executable is in
13903 shlibpath_var=PATH
13906 darwin* | rhapsody*)
13907 dynamic_linker="$host_os dyld"
13908 version_type=darwin
13909 need_lib_prefix=no
13910 need_version=no
13911 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13912 soname_spec='${libname}${release}${major}$shared_ext'
13913 shlibpath_overrides_runpath=yes
13914 shlibpath_var=DYLD_LIBRARY_PATH
13915 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13917 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13920 dgux*)
13921 version_type=linux
13922 need_lib_prefix=no
13923 need_version=no
13924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13925 soname_spec='${libname}${release}${shared_ext}$major'
13926 shlibpath_var=LD_LIBRARY_PATH
13929 freebsd* | dragonfly*)
13930 # DragonFly does not have aout. When/if they implement a new
13931 # versioning mechanism, adjust this.
13932 if test -x /usr/bin/objformat; then
13933 objformat=`/usr/bin/objformat`
13934 else
13935 case $host_os in
13936 freebsd[23].*) objformat=aout ;;
13937 *) objformat=elf ;;
13938 esac
13940 version_type=freebsd-$objformat
13941 case $version_type in
13942 freebsd-elf*)
13943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13944 need_version=no
13945 need_lib_prefix=no
13947 freebsd-*)
13948 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13949 need_version=yes
13951 esac
13952 shlibpath_var=LD_LIBRARY_PATH
13953 case $host_os in
13954 freebsd2.*)
13955 shlibpath_overrides_runpath=yes
13957 freebsd3.[01]* | freebsdelf3.[01]*)
13958 shlibpath_overrides_runpath=yes
13959 hardcode_into_libs=yes
13961 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13962 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13963 shlibpath_overrides_runpath=no
13964 hardcode_into_libs=yes
13966 *) # from 4.6 on, and DragonFly
13967 shlibpath_overrides_runpath=yes
13968 hardcode_into_libs=yes
13970 esac
13973 gnu*)
13974 version_type=linux
13975 need_lib_prefix=no
13976 need_version=no
13977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13978 soname_spec='${libname}${release}${shared_ext}$major'
13979 shlibpath_var=LD_LIBRARY_PATH
13980 hardcode_into_libs=yes
13983 haiku*)
13984 version_type=linux
13985 need_lib_prefix=no
13986 need_version=no
13987 dynamic_linker="$host_os runtime_loader"
13988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13989 soname_spec='${libname}${release}${shared_ext}$major'
13990 shlibpath_var=LIBRARY_PATH
13991 shlibpath_overrides_runpath=yes
13992 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13993 hardcode_into_libs=yes
13996 hpux9* | hpux10* | hpux11*)
13997 # Give a soname corresponding to the major version so that dld.sl refuses to
13998 # link against other versions.
13999 version_type=sunos
14000 need_lib_prefix=no
14001 need_version=no
14002 case $host_cpu in
14003 ia64*)
14004 shrext_cmds='.so'
14005 hardcode_into_libs=yes
14006 dynamic_linker="$host_os dld.so"
14007 shlibpath_var=LD_LIBRARY_PATH
14008 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14010 soname_spec='${libname}${release}${shared_ext}$major'
14011 if test "X$HPUX_IA64_MODE" = X32; then
14012 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14013 else
14014 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14018 hppa*64*)
14019 shrext_cmds='.sl'
14020 hardcode_into_libs=yes
14021 dynamic_linker="$host_os dld.sl"
14022 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025 soname_spec='${libname}${release}${shared_ext}$major'
14026 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14030 shrext_cmds='.sl'
14031 dynamic_linker="$host_os dld.sl"
14032 shlibpath_var=SHLIB_PATH
14033 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14035 soname_spec='${libname}${release}${shared_ext}$major'
14037 esac
14038 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14039 postinstall_cmds='chmod 555 $lib'
14040 # or fails outright, so override atomically:
14041 install_override_mode=555
14044 interix[3-9]*)
14045 version_type=linux
14046 need_lib_prefix=no
14047 need_version=no
14048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14049 soname_spec='${libname}${release}${shared_ext}$major'
14050 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14051 shlibpath_var=LD_LIBRARY_PATH
14052 shlibpath_overrides_runpath=no
14053 hardcode_into_libs=yes
14056 irix5* | irix6* | nonstopux*)
14057 case $host_os in
14058 nonstopux*) version_type=nonstopux ;;
14060 if test "$lt_cv_prog_gnu_ld" = yes; then
14061 version_type=linux
14062 else
14063 version_type=irix
14064 fi ;;
14065 esac
14066 need_lib_prefix=no
14067 need_version=no
14068 soname_spec='${libname}${release}${shared_ext}$major'
14069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14070 case $host_os in
14071 irix5* | nonstopux*)
14072 libsuff= shlibsuff=
14075 case $LD in # libtool.m4 will add one of these switches to LD
14076 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14077 libsuff= shlibsuff= libmagic=32-bit;;
14078 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14079 libsuff=32 shlibsuff=N32 libmagic=N32;;
14080 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14081 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14082 *) libsuff= shlibsuff= libmagic=never-match;;
14083 esac
14085 esac
14086 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14087 shlibpath_overrides_runpath=no
14088 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14089 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14090 hardcode_into_libs=yes
14093 # No shared lib support for Linux oldld, aout, or coff.
14094 linux*oldld* | linux*aout* | linux*coff*)
14095 dynamic_linker=no
14098 # This must be Linux ELF.
14099 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14100 version_type=linux
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14106 shlibpath_var=LD_LIBRARY_PATH
14107 shlibpath_overrides_runpath=no
14109 # Some binutils ld are patched to set DT_RUNPATH
14110 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14111 $as_echo_n "(cached) " >&6
14112 else
14113 lt_cv_shlibpath_overrides_runpath=no
14114 save_LDFLAGS=$LDFLAGS
14115 save_libdir=$libdir
14116 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14117 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14118 cat > conftest.$ac_ext <<_ACEOF
14119 program main
14122 _ACEOF
14123 if ac_fn_fc_try_link "$LINENO"; then :
14124 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14125 lt_cv_shlibpath_overrides_runpath=yes
14128 rm -f core conftest.err conftest.$ac_objext \
14129 conftest$ac_exeext conftest.$ac_ext
14130 LDFLAGS=$save_LDFLAGS
14131 libdir=$save_libdir
14135 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14137 # This implies no fast_install, which is unacceptable.
14138 # Some rework will be needed to allow for fast_install
14139 # before this can be enabled.
14140 hardcode_into_libs=yes
14142 # Append ld.so.conf contents to the search path
14143 if test -f /etc/ld.so.conf; then
14144 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' ' '`
14145 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14148 # We used to test for /lib/ld.so.1 and disable shared libraries on
14149 # powerpc, because MkLinux only supported shared libraries with the
14150 # GNU dynamic linker. Since this was broken with cross compilers,
14151 # most powerpc-linux boxes support dynamic linking these days and
14152 # people can always --disable-shared, the test was removed, and we
14153 # assume the GNU/Linux dynamic linker is in use.
14154 dynamic_linker='GNU/Linux ld.so'
14157 netbsd*)
14158 version_type=sunos
14159 need_lib_prefix=no
14160 need_version=no
14161 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14164 dynamic_linker='NetBSD (a.out) ld.so'
14165 else
14166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14167 soname_spec='${libname}${release}${shared_ext}$major'
14168 dynamic_linker='NetBSD ld.elf_so'
14170 shlibpath_var=LD_LIBRARY_PATH
14171 shlibpath_overrides_runpath=yes
14172 hardcode_into_libs=yes
14175 newsos6)
14176 version_type=linux
14177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14178 shlibpath_var=LD_LIBRARY_PATH
14179 shlibpath_overrides_runpath=yes
14182 *nto* | *qnx*)
14183 version_type=qnx
14184 need_lib_prefix=no
14185 need_version=no
14186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187 soname_spec='${libname}${release}${shared_ext}$major'
14188 shlibpath_var=LD_LIBRARY_PATH
14189 shlibpath_overrides_runpath=no
14190 hardcode_into_libs=yes
14191 dynamic_linker='ldqnx.so'
14194 openbsd*)
14195 version_type=sunos
14196 sys_lib_dlsearch_path_spec="/usr/lib"
14197 need_lib_prefix=no
14198 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14199 case $host_os in
14200 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14201 *) need_version=no ;;
14202 esac
14203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14205 shlibpath_var=LD_LIBRARY_PATH
14206 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14207 case $host_os in
14208 openbsd2.[89] | openbsd2.[89].*)
14209 shlibpath_overrides_runpath=no
14212 shlibpath_overrides_runpath=yes
14214 esac
14215 else
14216 shlibpath_overrides_runpath=yes
14220 os2*)
14221 libname_spec='$name'
14222 shrext_cmds=".dll"
14223 need_lib_prefix=no
14224 library_names_spec='$libname${shared_ext} $libname.a'
14225 dynamic_linker='OS/2 ld.exe'
14226 shlibpath_var=LIBPATH
14229 osf3* | osf4* | osf5*)
14230 version_type=osf
14231 need_lib_prefix=no
14232 need_version=no
14233 soname_spec='${libname}${release}${shared_ext}$major'
14234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14235 shlibpath_var=LD_LIBRARY_PATH
14236 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14237 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14240 rdos*)
14241 dynamic_linker=no
14244 solaris*)
14245 version_type=linux
14246 need_lib_prefix=no
14247 need_version=no
14248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14249 soname_spec='${libname}${release}${shared_ext}$major'
14250 shlibpath_var=LD_LIBRARY_PATH
14251 shlibpath_overrides_runpath=yes
14252 hardcode_into_libs=yes
14253 # ldd complains unless libraries are executable
14254 postinstall_cmds='chmod +x $lib'
14257 sunos4*)
14258 version_type=sunos
14259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14260 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14261 shlibpath_var=LD_LIBRARY_PATH
14262 shlibpath_overrides_runpath=yes
14263 if test "$with_gnu_ld" = yes; then
14264 need_lib_prefix=no
14266 need_version=yes
14269 sysv4 | sysv4.3*)
14270 version_type=linux
14271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14272 soname_spec='${libname}${release}${shared_ext}$major'
14273 shlibpath_var=LD_LIBRARY_PATH
14274 case $host_vendor in
14275 sni)
14276 shlibpath_overrides_runpath=no
14277 need_lib_prefix=no
14278 runpath_var=LD_RUN_PATH
14280 siemens)
14281 need_lib_prefix=no
14283 motorola)
14284 need_lib_prefix=no
14285 need_version=no
14286 shlibpath_overrides_runpath=no
14287 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14289 esac
14292 sysv4*MP*)
14293 if test -d /usr/nec ;then
14294 version_type=linux
14295 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14296 soname_spec='$libname${shared_ext}.$major'
14297 shlibpath_var=LD_LIBRARY_PATH
14301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14302 version_type=freebsd-elf
14303 need_lib_prefix=no
14304 need_version=no
14305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14306 soname_spec='${libname}${release}${shared_ext}$major'
14307 shlibpath_var=LD_LIBRARY_PATH
14308 shlibpath_overrides_runpath=yes
14309 hardcode_into_libs=yes
14310 if test "$with_gnu_ld" = yes; then
14311 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14312 else
14313 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14314 case $host_os in
14315 sco3.2v5*)
14316 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14318 esac
14320 sys_lib_dlsearch_path_spec='/usr/lib'
14323 tpf*)
14324 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14325 version_type=linux
14326 need_lib_prefix=no
14327 need_version=no
14328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14329 shlibpath_var=LD_LIBRARY_PATH
14330 shlibpath_overrides_runpath=no
14331 hardcode_into_libs=yes
14334 uts4*)
14335 version_type=linux
14336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14337 soname_spec='${libname}${release}${shared_ext}$major'
14338 shlibpath_var=LD_LIBRARY_PATH
14342 dynamic_linker=no
14344 esac
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14346 $as_echo "$dynamic_linker" >&6; }
14347 test "$dynamic_linker" = no && can_build_shared=no
14349 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14350 if test "$GCC" = yes; then
14351 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14354 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14355 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14357 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14358 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14399 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14400 hardcode_action_FC=
14401 if test -n "$hardcode_libdir_flag_spec_FC" ||
14402 test -n "$runpath_var_FC" ||
14403 test "X$hardcode_automatic_FC" = "Xyes" ; then
14405 # We can hardcode non-existent directories.
14406 if test "$hardcode_direct_FC" != no &&
14407 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14408 # have to relink, otherwise we might link with an installed library
14409 # when we should be linking with a yet-to-be-installed one
14410 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14411 test "$hardcode_minus_L_FC" != no; then
14412 # Linking always hardcodes the temporary library directory.
14413 hardcode_action_FC=relink
14414 else
14415 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14416 hardcode_action_FC=immediate
14418 else
14419 # We cannot hardcode anything, or else we can only hardcode existing
14420 # directories.
14421 hardcode_action_FC=unsupported
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14424 $as_echo "$hardcode_action_FC" >&6; }
14426 if test "$hardcode_action_FC" = relink ||
14427 test "$inherit_rpath_FC" = yes; then
14428 # Fast installation is not supported
14429 enable_fast_install=no
14430 elif test "$shlibpath_overrides_runpath" = yes ||
14431 test "$enable_shared" = no; then
14432 # Fast installation is not necessary
14433 enable_fast_install=needless
14442 fi # test -n "$compiler"
14444 GCC=$lt_save_GCC
14445 CC="$lt_save_CC"
14446 fi # test "$_lt_disable_FC" != yes
14448 ac_ext=c
14449 ac_cpp='$CPP $CPPFLAGS'
14450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14455 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14457 # For libtool versioning info, format is CURRENT:REVISION:AGE
14458 libtool_VERSION=1:0:0
14461 # Check header files.
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14463 $as_echo_n "checking for ANSI C header files... " >&6; }
14464 if test "${ac_cv_header_stdc+set}" = set; then :
14465 $as_echo_n "(cached) " >&6
14466 else
14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h. */
14469 #include <stdlib.h>
14470 #include <stdarg.h>
14471 #include <string.h>
14472 #include <float.h>
14475 main ()
14479 return 0;
14481 _ACEOF
14482 if ac_fn_c_try_compile "$LINENO"; then :
14483 ac_cv_header_stdc=yes
14484 else
14485 ac_cv_header_stdc=no
14487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14489 if test $ac_cv_header_stdc = yes; then
14490 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492 /* end confdefs.h. */
14493 #include <string.h>
14495 _ACEOF
14496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14497 $EGREP "memchr" >/dev/null 2>&1; then :
14499 else
14500 ac_cv_header_stdc=no
14502 rm -f conftest*
14506 if test $ac_cv_header_stdc = yes; then
14507 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14510 #include <stdlib.h>
14512 _ACEOF
14513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14514 $EGREP "free" >/dev/null 2>&1; then :
14516 else
14517 ac_cv_header_stdc=no
14519 rm -f conftest*
14523 if test $ac_cv_header_stdc = yes; then
14524 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14525 if test "$cross_compiling" = yes; then :
14527 else
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h. */
14530 #include <ctype.h>
14531 #include <stdlib.h>
14532 #if ((' ' & 0x0FF) == 0x020)
14533 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14534 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14535 #else
14536 # define ISLOWER(c) \
14537 (('a' <= (c) && (c) <= 'i') \
14538 || ('j' <= (c) && (c) <= 'r') \
14539 || ('s' <= (c) && (c) <= 'z'))
14540 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14541 #endif
14543 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14545 main ()
14547 int i;
14548 for (i = 0; i < 256; i++)
14549 if (XOR (islower (i), ISLOWER (i))
14550 || toupper (i) != TOUPPER (i))
14551 return 2;
14552 return 0;
14554 _ACEOF
14555 if ac_fn_c_try_run "$LINENO"; then :
14557 else
14558 ac_cv_header_stdc=no
14560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14561 conftest.$ac_objext conftest.beam conftest.$ac_ext
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14567 $as_echo "$ac_cv_header_stdc" >&6; }
14568 if test $ac_cv_header_stdc = yes; then
14570 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14575 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14576 if test "${ac_cv_header_time+set}" = set; then :
14577 $as_echo_n "(cached) " >&6
14578 else
14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h. */
14581 #include <sys/types.h>
14582 #include <sys/time.h>
14583 #include <time.h>
14586 main ()
14588 if ((struct tm *) 0)
14589 return 0;
14591 return 0;
14593 _ACEOF
14594 if ac_fn_c_try_compile "$LINENO"; then :
14595 ac_cv_header_time=yes
14596 else
14597 ac_cv_header_time=no
14599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14602 $as_echo "$ac_cv_header_time" >&6; }
14603 if test $ac_cv_header_time = yes; then
14605 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14610 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14611 if test "${gcc_cv_header_string+set}" = set; then :
14612 $as_echo_n "(cached) " >&6
14613 else
14614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615 /* end confdefs.h. */
14616 #include <string.h>
14617 #include <strings.h>
14619 main ()
14623 return 0;
14625 _ACEOF
14626 if ac_fn_c_try_compile "$LINENO"; then :
14627 gcc_cv_header_string=yes
14628 else
14629 gcc_cv_header_string=no
14631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14634 $as_echo "$gcc_cv_header_string" >&6; }
14635 if test $gcc_cv_header_string = yes; then
14637 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14641 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14642 do :
14643 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14644 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14645 eval as_val=\$$as_ac_Header
14646 if test "x$as_val" = x""yes; then :
14647 cat >>confdefs.h <<_ACEOF
14648 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14649 _ACEOF
14653 done
14658 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14660 acx_cv_header_stdint=stddef.h
14661 acx_cv_header_stdint_kind="(already complete)"
14662 for i in stdint.h $inttype_headers; do
14663 unset ac_cv_type_uintptr_t
14664 unset ac_cv_type_uintmax_t
14665 unset ac_cv_type_int_least32_t
14666 unset ac_cv_type_int_fast32_t
14667 unset ac_cv_type_uint64_t
14668 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14669 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14670 #include <$i>
14672 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14673 acx_cv_header_stdint=$i
14674 else
14675 continue
14678 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14679 #include <$i>
14681 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14683 else
14684 acx_cv_header_stdint_kind="(mostly complete)"
14687 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14688 #include <$i>
14690 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14692 else
14693 acx_cv_header_stdint_kind="(mostly complete)"
14696 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14697 #include <$i>
14699 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14701 else
14702 acx_cv_header_stdint_kind="(mostly complete)"
14705 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14706 #include <$i>
14708 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14710 else
14711 acx_cv_header_stdint_kind="(lacks uint64_t)"
14714 break
14715 done
14716 if test "$acx_cv_header_stdint" = stddef.h; then
14717 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14718 for i in stdint.h $inttype_headers; do
14719 unset ac_cv_type_uintptr_t
14720 unset ac_cv_type_uint32_t
14721 unset ac_cv_type_uint64_t
14722 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14723 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14724 #include <$i>
14726 if test "x$ac_cv_type_uint32_t" = x""yes; then :
14727 acx_cv_header_stdint=$i
14728 else
14729 continue
14732 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14733 #include <$i>
14735 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14739 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14740 #include <$i>
14742 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14746 break
14747 done
14749 if test "$acx_cv_header_stdint" = stddef.h; then
14750 acx_cv_header_stdint_kind="(u_intXX_t style)"
14751 for i in sys/types.h $inttype_headers; do
14752 unset ac_cv_type_u_int32_t
14753 unset ac_cv_type_u_int64_t
14754 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14755 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14756 #include <$i>
14758 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14759 acx_cv_header_stdint=$i
14760 else
14761 continue
14764 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14765 #include <$i>
14767 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14771 break
14772 done
14774 if test "$acx_cv_header_stdint" = stddef.h; then
14775 acx_cv_header_stdint_kind="(using manual detection)"
14778 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14779 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14780 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14781 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14782 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14784 # ----------------- Summarize what we found so far
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14787 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14789 case `$as_basename -- gstdint.h ||
14790 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14791 Xgstdint.h : 'X\(//\)$' \| \
14792 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14793 $as_echo X/gstdint.h |
14794 sed '/^.*\/\([^/][^/]*\)\/*$/{
14795 s//\1/
14798 /^X\/\(\/\/\)$/{
14799 s//\1/
14802 /^X\/\(\/\).*/{
14803 s//\1/
14806 s/.*/./; q'` in
14807 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14808 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14809 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14810 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14811 *) ;;
14812 esac
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14815 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14817 # ----------------- done included file, check C basic types --------
14819 # Lacking an uintptr_t? Test size of void *
14820 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14821 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14824 # This bug is HP SR number 8606223364.
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14826 $as_echo_n "checking size of void *... " >&6; }
14827 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14828 $as_echo_n "(cached) " >&6
14829 else
14830 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14832 else
14833 if test "$ac_cv_type_void_p" = yes; then
14834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14836 { as_fn_set_status 77
14837 as_fn_error "cannot compute sizeof (void *)
14838 See \`config.log' for more details." "$LINENO" 5; }; }
14839 else
14840 ac_cv_sizeof_void_p=0
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14846 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14850 cat >>confdefs.h <<_ACEOF
14851 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14852 _ACEOF
14855 esac
14857 # Lacking an uint64_t? Test size of long
14858 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14859 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14860 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14861 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14862 # This bug is HP SR number 8606223364.
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14864 $as_echo_n "checking size of long... " >&6; }
14865 if test "${ac_cv_sizeof_long+set}" = set; then :
14866 $as_echo_n "(cached) " >&6
14867 else
14868 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14870 else
14871 if test "$ac_cv_type_long" = yes; then
14872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14874 { as_fn_set_status 77
14875 as_fn_error "cannot compute sizeof (long)
14876 See \`config.log' for more details." "$LINENO" 5; }; }
14877 else
14878 ac_cv_sizeof_long=0
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14884 $as_echo "$ac_cv_sizeof_long" >&6; }
14888 cat >>confdefs.h <<_ACEOF
14889 #define SIZEOF_LONG $ac_cv_sizeof_long
14890 _ACEOF
14893 esac
14895 if test $acx_cv_header_stdint = stddef.h; then
14896 # Lacking a good header? Test size of everything and deduce all types.
14897 # The cast to long int works around a bug in the HP C Compiler
14898 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14899 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14900 # This bug is HP SR number 8606223364.
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14902 $as_echo_n "checking size of int... " >&6; }
14903 if test "${ac_cv_sizeof_int+set}" = set; then :
14904 $as_echo_n "(cached) " >&6
14905 else
14906 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14908 else
14909 if test "$ac_cv_type_int" = yes; then
14910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14912 { as_fn_set_status 77
14913 as_fn_error "cannot compute sizeof (int)
14914 See \`config.log' for more details." "$LINENO" 5; }; }
14915 else
14916 ac_cv_sizeof_int=0
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14922 $as_echo "$ac_cv_sizeof_int" >&6; }
14926 cat >>confdefs.h <<_ACEOF
14927 #define SIZEOF_INT $ac_cv_sizeof_int
14928 _ACEOF
14931 # The cast to long int works around a bug in the HP C Compiler
14932 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14933 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14934 # This bug is HP SR number 8606223364.
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14936 $as_echo_n "checking size of short... " >&6; }
14937 if test "${ac_cv_sizeof_short+set}" = set; then :
14938 $as_echo_n "(cached) " >&6
14939 else
14940 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14942 else
14943 if test "$ac_cv_type_short" = yes; then
14944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14946 { as_fn_set_status 77
14947 as_fn_error "cannot compute sizeof (short)
14948 See \`config.log' for more details." "$LINENO" 5; }; }
14949 else
14950 ac_cv_sizeof_short=0
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14956 $as_echo "$ac_cv_sizeof_short" >&6; }
14960 cat >>confdefs.h <<_ACEOF
14961 #define SIZEOF_SHORT $ac_cv_sizeof_short
14962 _ACEOF
14965 # The cast to long int works around a bug in the HP C Compiler
14966 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14967 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14968 # This bug is HP SR number 8606223364.
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14970 $as_echo_n "checking size of char... " >&6; }
14971 if test "${ac_cv_sizeof_char+set}" = set; then :
14972 $as_echo_n "(cached) " >&6
14973 else
14974 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14976 else
14977 if test "$ac_cv_type_char" = yes; then
14978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14980 { as_fn_set_status 77
14981 as_fn_error "cannot compute sizeof (char)
14982 See \`config.log' for more details." "$LINENO" 5; }; }
14983 else
14984 ac_cv_sizeof_char=0
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14990 $as_echo "$ac_cv_sizeof_char" >&6; }
14994 cat >>confdefs.h <<_ACEOF
14995 #define SIZEOF_CHAR $ac_cv_sizeof_char
14996 _ACEOF
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15001 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15002 case "$ac_cv_sizeof_char" in
15003 1) acx_cv_type_int8_t=char ;;
15004 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15005 esac
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15007 $as_echo "$acx_cv_type_int8_t" >&6; }
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15010 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15011 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15012 2:*) acx_cv_type_int16_t=int ;;
15013 *:2) acx_cv_type_int16_t=short ;;
15014 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15015 esac
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15017 $as_echo "$acx_cv_type_int16_t" >&6; }
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15020 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15021 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15022 4:*) acx_cv_type_int32_t=int ;;
15023 *:4) acx_cv_type_int32_t=long ;;
15024 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15025 esac
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15027 $as_echo "$acx_cv_type_int32_t" >&6; }
15030 # These tests are here to make the output prettier
15032 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15033 case "$ac_cv_sizeof_long" in
15034 8) acx_cv_type_int64_t=long ;;
15035 esac
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15037 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15039 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15042 # Now we can use the above types
15044 if test "$ac_cv_type_uintptr_t" != yes; then
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15046 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15047 case $ac_cv_sizeof_void_p in
15048 2) acx_cv_type_intptr_t=int16_t ;;
15049 4) acx_cv_type_intptr_t=int32_t ;;
15050 8) acx_cv_type_intptr_t=int64_t ;;
15051 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15052 esac
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15054 $as_echo "$acx_cv_type_intptr_t" >&6; }
15057 # ----------------- done all checks, emit header -------------
15058 ac_config_commands="$ac_config_commands gstdint.h"
15063 XPCFLAGS=""
15064 case "$host" in
15065 *-*-rtems*)
15066 # RTEMS supports Pthreads, but the library is not available at GCC build time.
15068 nvptx*-*-*)
15069 # NVPTX does not support Pthreads, has its own code replacement.
15072 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15073 # In case the pthread.h system header is not found, this test will fail.
15074 CFLAGS="$CFLAGS -pthread"
15075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076 /* end confdefs.h. */
15077 #include <pthread.h>
15078 void *g(void *d) { return NULL; }
15080 main ()
15082 pthread_t t; pthread_create(&t,NULL,g,NULL);
15084 return 0;
15086 _ACEOF
15087 if ac_fn_c_try_link "$LINENO"; then :
15088 XPCFLAGS=" -Wc,-pthread"
15089 else
15090 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h. */
15093 #include <pthread.h>
15094 void *g(void *d) { return NULL; }
15096 main ()
15098 pthread_t t; pthread_create(&t,NULL,g,NULL);
15100 return 0;
15102 _ACEOF
15103 if ac_fn_c_try_link "$LINENO"; then :
15105 else
15106 as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15108 rm -f core conftest.err conftest.$ac_objext \
15109 conftest$ac_exeext conftest.$ac_ext
15111 rm -f core conftest.err conftest.$ac_objext \
15112 conftest$ac_exeext conftest.$ac_ext
15113 esac
15115 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15117 # Copyright (C) 2014-2016 Free Software Foundation, Inc.
15119 # Contributed by Mentor Embedded.
15121 # This file is part of the GNU Offloading and Multi Processing Library
15122 # (libgomp).
15124 # Libgomp is free software; you can redistribute it and/or modify it
15125 # under the terms of the GNU General Public License as published by
15126 # the Free Software Foundation; either version 3, or (at your option)
15127 # any later version.
15129 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15130 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15131 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15132 # more details.
15134 # Under Section 7 of GPL version 3, you are granted additional
15135 # permissions described in the GCC Runtime Library Exception, version
15136 # 3.1, as published by the Free Software Foundation.
15138 # You should have received a copy of the GNU General Public License and
15139 # a copy of the GCC Runtime Library Exception along with this program;
15140 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15141 # <http://www.gnu.org/licenses/>.
15143 offload_targets=
15145 plugin_support=yes
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15147 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15148 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15149 $as_echo_n "(cached) " >&6
15150 else
15151 ac_check_lib_save_LIBS=$LIBS
15152 LIBS="-ldl $LIBS"
15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154 /* end confdefs.h. */
15156 /* Override any GCC internal prototype to avoid an error.
15157 Use char because int might match the return type of a GCC
15158 builtin and then its argument prototype would still apply. */
15159 #ifdef __cplusplus
15160 extern "C"
15161 #endif
15162 char dlsym ();
15164 main ()
15166 return dlsym ();
15168 return 0;
15170 _ACEOF
15171 if ac_fn_c_try_link "$LINENO"; then :
15172 ac_cv_lib_dl_dlsym=yes
15173 else
15174 ac_cv_lib_dl_dlsym=no
15176 rm -f core conftest.err conftest.$ac_objext \
15177 conftest$ac_exeext conftest.$ac_ext
15178 LIBS=$ac_check_lib_save_LIBS
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15181 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15182 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
15183 cat >>confdefs.h <<_ACEOF
15184 #define HAVE_LIBDL 1
15185 _ACEOF
15187 LIBS="-ldl $LIBS"
15189 else
15190 plugin_support=no
15193 if test x"$plugin_support" = xyes; then
15195 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15197 elif test "x${enable_offload_targets-no}" != xno; then
15198 as_fn_error "Can't support offloading without support for plugins" "$LINENO" 5
15201 # Look for the CUDA driver package.
15202 CUDA_DRIVER_INCLUDE=
15203 CUDA_DRIVER_LIB=
15206 CUDA_DRIVER_CPPFLAGS=
15207 CUDA_DRIVER_LDFLAGS=
15209 # Check whether --with-cuda-driver was given.
15210 if test "${with_cuda_driver+set}" = set; then :
15211 withval=$with_cuda_driver;
15215 # Check whether --with-cuda-driver-include was given.
15216 if test "${with_cuda_driver_include+set}" = set; then :
15217 withval=$with_cuda_driver_include;
15221 # Check whether --with-cuda-driver-lib was given.
15222 if test "${with_cuda_driver_lib+set}" = set; then :
15223 withval=$with_cuda_driver_lib;
15226 if test "x$with_cuda_driver" != x; then
15227 CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15228 CUDA_DRIVER_LIB=$with_cuda_driver/lib
15230 if test "x$with_cuda_driver_include" != x; then
15231 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15233 if test "x$with_cuda_driver_lib" != x; then
15234 CUDA_DRIVER_LIB=$with_cuda_driver_lib
15236 if test "x$CUDA_DRIVER_INCLUDE" != x; then
15237 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15239 if test "x$CUDA_DRIVER_LIB" != x; then
15240 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15243 PLUGIN_NVPTX=0
15244 PLUGIN_NVPTX_CPPFLAGS=
15245 PLUGIN_NVPTX_LDFLAGS=
15246 PLUGIN_NVPTX_LIBS=
15252 # Look for HSA run-time, its includes and libraries
15254 HSA_RUNTIME_INCLUDE=
15255 HSA_RUNTIME_LIB=
15258 HSA_RUNTIME_CPPFLAGS=
15259 HSA_RUNTIME_LDFLAGS=
15262 # Check whether --with-hsa-runtime was given.
15263 if test "${with_hsa_runtime+set}" = set; then :
15264 withval=$with_hsa_runtime;
15268 # Check whether --with-hsa-runtime-include was given.
15269 if test "${with_hsa_runtime_include+set}" = set; then :
15270 withval=$with_hsa_runtime_include;
15274 # Check whether --with-hsa-runtime-lib was given.
15275 if test "${with_hsa_runtime_lib+set}" = set; then :
15276 withval=$with_hsa_runtime_lib;
15279 if test "x$with_hsa_runtime" != x; then
15280 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15281 HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15283 if test "x$with_hsa_runtime_include" != x; then
15284 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15286 if test "x$with_hsa_runtime_lib" != x; then
15287 HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15289 if test "x$HSA_RUNTIME_INCLUDE" != x; then
15290 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15292 if test "x$HSA_RUNTIME_LIB" != x; then
15293 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15296 HSA_KMT_LIB=
15298 HSA_KMT_LDFLAGS=
15300 # Check whether --with-hsa-kmt-lib was given.
15301 if test "${with_hsa_kmt_lib+set}" = set; then :
15302 withval=$with_hsa_kmt_lib;
15305 if test "x$with_hsa_kmt_lib" != x; then
15306 HSA_KMT_LIB=$with_hsa_kmt_lib
15308 if test "x$HSA_KMT_LIB" != x; then
15309 HSA_KMT_LDFLAGS=-L$HSA_KMT_LIB
15312 PLUGIN_HSA=0
15313 PLUGIN_HSA_CPPFLAGS=
15314 PLUGIN_HSA_LDFLAGS=
15315 PLUGIN_HSA_LIBS=
15323 # Get offload targets and path to install tree of offloading compiler.
15324 offload_additional_options=
15325 offload_additional_lib_paths=
15328 if test x"$enable_offload_targets" != x; then
15329 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15330 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15331 tgt=`echo $tgt | sed 's/=.*//'`
15332 tgt_name=
15333 case $tgt in
15334 *-intelmic-* | *-intelmicemul-*)
15335 tgt_name=intelmic
15337 nvptx*)
15338 tgt_name=nvptx
15339 PLUGIN_NVPTX=$tgt
15340 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15341 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15342 PLUGIN_NVPTX_LIBS='-lcuda'
15344 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15345 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15346 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15347 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15348 PLUGIN_NVPTX_save_LIBS=$LIBS
15349 LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15351 /* end confdefs.h. */
15352 #include "cuda.h"
15354 main ()
15356 CUresult r = cuCtxPushCurrent (NULL);
15358 return 0;
15360 _ACEOF
15361 if ac_fn_c_try_link "$LINENO"; then :
15362 PLUGIN_NVPTX=1
15364 rm -f core conftest.err conftest.$ac_objext \
15365 conftest$ac_exeext conftest.$ac_ext
15366 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15367 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15368 LIBS=$PLUGIN_NVPTX_save_LIBS
15369 case $PLUGIN_NVPTX in
15370 nvptx*)
15371 PLUGIN_NVPTX=0
15372 as_fn_error "CUDA driver package required for nvptx support" "$LINENO" 5
15374 esac
15376 hsa*)
15377 case "${target}" in
15378 x86_64-*-*)
15379 case " ${CC} ${CFLAGS} " in
15380 *" -m32 "*)
15381 PLUGIN_HSA=0
15384 tgt_name=hsa
15385 PLUGIN_HSA=$tgt
15386 PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15387 PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS $HSA_KMT_LDFLAGS"
15388 PLUGIN_HSA_LIBS="-lhsa-runtime64 -lhsakmt"
15390 PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS
15391 CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15392 PLUGIN_HSA_save_LDFLAGS=$LDFLAGS
15393 LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15394 PLUGIN_HSA_save_LIBS=$LIBS
15395 LIBS="$PLUGIN_HSA_LIBS $LIBS"
15397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15398 /* end confdefs.h. */
15399 #include "hsa.h"
15401 main ()
15403 hsa_status_t status = hsa_init ()
15405 return 0;
15407 _ACEOF
15408 if ac_fn_c_try_link "$LINENO"; then :
15409 PLUGIN_HSA=1
15411 rm -f core conftest.err conftest.$ac_objext \
15412 conftest$ac_exeext conftest.$ac_ext
15413 CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS
15414 LDFLAGS=$PLUGIN_HSA_save_LDFLAGS
15415 LIBS=$PLUGIN_HSA_save_LIBS
15416 case $PLUGIN_HSA in
15417 hsa*)
15418 HSA_PLUGIN=0
15419 as_fn_error "HSA run-time package required for HSA support" "$LINENO" 5
15421 esac
15423 esac
15425 *-*-*)
15426 PLUGIN_HSA=0
15428 esac
15431 as_fn_error "unknown offload target specified" "$LINENO" 5
15433 esac
15434 if test x"$tgt_name" = x; then
15435 # Don't configure libgomp for this offloading target if we don't build
15436 # the corresponding plugin.
15437 continue
15438 elif test x"$offload_targets" = x; then
15439 offload_targets=$tgt_name
15440 else
15441 offload_targets=$offload_targets,$tgt_name
15443 if test "$tgt_name" = hsa; then
15444 # Offloading compilation is all handled by the target compiler.
15446 elif test x"$tgt_dir" != x; then
15447 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15448 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15449 else
15450 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15451 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15453 done
15456 cat >>confdefs.h <<_ACEOF
15457 #define OFFLOAD_TARGETS "$offload_targets"
15458 _ACEOF
15460 if test $PLUGIN_NVPTX = 1; then
15461 PLUGIN_NVPTX_TRUE=
15462 PLUGIN_NVPTX_FALSE='#'
15463 else
15464 PLUGIN_NVPTX_TRUE='#'
15465 PLUGIN_NVPTX_FALSE=
15469 cat >>confdefs.h <<_ACEOF
15470 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15471 _ACEOF
15473 if test $PLUGIN_HSA = 1; then
15474 PLUGIN_HSA_TRUE=
15475 PLUGIN_HSA_FALSE='#'
15476 else
15477 PLUGIN_HSA_TRUE='#'
15478 PLUGIN_HSA_FALSE=
15482 cat >>confdefs.h <<_ACEOF
15483 #define PLUGIN_HSA $PLUGIN_HSA
15484 _ACEOF
15488 # Check for functions needed.
15489 for ac_func in getloadavg clock_gettime strtoull
15490 do :
15491 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15492 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15493 eval as_val=\$$as_ac_var
15494 if test "x$as_val" = x""yes; then :
15495 cat >>confdefs.h <<_ACEOF
15496 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15497 _ACEOF
15500 done
15503 # Check for broken semaphore implementation on darwin.
15504 # sem_init returns: sem_init error: Function not implemented.
15505 case "$host" in
15506 *-darwin*)
15508 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15511 esac
15513 # RTEMS specific checks
15514 case "$host" in
15515 *-*-rtems*)
15516 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15518 if test "x$ac_cv_type_struct__Mutex_Control" = x""yes; then :
15520 cat >>confdefs.h <<_ACEOF
15521 #define HAVE_STRUCT__MUTEX_CONTROL 1
15522 _ACEOF
15528 esac
15530 # Check whether --enable-linux-futex was given.
15531 if test "${enable_linux_futex+set}" = set; then :
15532 enableval=$enable_linux_futex;
15533 case "$enableval" in
15534 yes|no|default) ;;
15535 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15536 esac
15538 else
15539 enable_linux_futex=default
15543 case "$target" in
15544 *-linux*)
15545 case "$enable_linux_futex" in
15546 default)
15547 # If headers don't have gettid/futex syscalls definition, then
15548 # default to no, otherwise there will be compile time failures.
15549 # Otherwise, default to yes. If we don't detect we are
15550 # compiled/linked against NPTL and not cross-compiling, check
15551 # if programs are run by default against NPTL and if not, issue
15552 # a warning.
15553 enable_linux_futex=no
15554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15555 /* end confdefs.h. */
15556 #include <sys/syscall.h>
15557 int lk;
15559 main ()
15561 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15563 return 0;
15565 _ACEOF
15566 if ac_fn_c_try_link "$LINENO"; then :
15567 save_LIBS="$LIBS"
15568 LIBS="-lpthread $LIBS"
15569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15570 /* end confdefs.h. */
15571 #ifndef _GNU_SOURCE
15572 #define _GNU_SOURCE 1
15573 #endif
15574 #include <pthread.h>
15575 pthread_t th; void *status;
15577 main ()
15579 pthread_tryjoin_np (th, &status);
15581 return 0;
15583 _ACEOF
15584 if ac_fn_c_try_link "$LINENO"; then :
15585 enable_linux_futex=yes
15586 else
15587 if test x$cross_compiling = xno; then
15588 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15589 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15591 If so, please configure with --disable-linux-futex" >&5
15592 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15593 If so, please configure with --disable-linux-futex" >&2;}
15596 enable_linux_futex=yes
15598 rm -f core conftest.err conftest.$ac_objext \
15599 conftest$ac_exeext conftest.$ac_ext
15600 LIBS="$save_LIBS"
15602 rm -f core conftest.err conftest.$ac_objext \
15603 conftest$ac_exeext conftest.$ac_ext
15605 yes)
15606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15607 /* end confdefs.h. */
15608 #include <sys/syscall.h>
15609 int lk;
15611 main ()
15613 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15615 return 0;
15617 _ACEOF
15618 if ac_fn_c_try_link "$LINENO"; then :
15620 else
15621 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15623 rm -f core conftest.err conftest.$ac_objext \
15624 conftest$ac_exeext conftest.$ac_ext
15626 esac
15629 enable_linux_futex=no
15631 esac
15632 if test x$enable_linux_futex = xyes; then
15637 # Check for pthread_{,attr_}[sg]etaffinity_np.
15638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639 /* end confdefs.h. */
15640 #define _GNU_SOURCE
15641 #include <pthread.h>
15643 main ()
15645 cpu_set_t cpuset;
15646 pthread_attr_t attr;
15647 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15648 if (CPU_ISSET (0, &cpuset))
15649 CPU_SET (1, &cpuset);
15650 else
15651 CPU_ZERO (&cpuset);
15652 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15653 pthread_attr_init (&attr);
15654 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15655 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15657 return 0;
15659 _ACEOF
15660 if ac_fn_c_try_link "$LINENO"; then :
15662 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15665 rm -f core conftest.err conftest.$ac_objext \
15666 conftest$ac_exeext conftest.$ac_ext
15668 # At least for glibc, clock_gettime is in librt. But don't pull that
15669 # in if it still doesn't give us the function we want.
15670 if test $ac_cv_func_clock_gettime = no; then
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15672 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15673 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15674 $as_echo_n "(cached) " >&6
15675 else
15676 ac_check_lib_save_LIBS=$LIBS
15677 LIBS="-lrt $LIBS"
15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15681 /* Override any GCC internal prototype to avoid an error.
15682 Use char because int might match the return type of a GCC
15683 builtin and then its argument prototype would still apply. */
15684 #ifdef __cplusplus
15685 extern "C"
15686 #endif
15687 char clock_gettime ();
15689 main ()
15691 return clock_gettime ();
15693 return 0;
15695 _ACEOF
15696 if ac_fn_c_try_link "$LINENO"; then :
15697 ac_cv_lib_rt_clock_gettime=yes
15698 else
15699 ac_cv_lib_rt_clock_gettime=no
15701 rm -f core conftest.err conftest.$ac_objext \
15702 conftest$ac_exeext conftest.$ac_ext
15703 LIBS=$ac_check_lib_save_LIBS
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15706 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15707 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15708 LIBS="-lrt $LIBS"
15710 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15716 # See if we support thread-local storage.
15719 # Check whether --enable-tls was given.
15720 if test "${enable_tls+set}" = set; then :
15721 enableval=$enable_tls;
15722 case "$enableval" in
15723 yes|no) ;;
15724 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15725 esac
15727 else
15728 enable_tls=yes
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15733 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15734 if test "${gcc_cv_have_tls+set}" = set; then :
15735 $as_echo_n "(cached) " >&6
15736 else
15738 if test "$cross_compiling" = yes; then :
15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15741 __thread int a; int b; int main() { return a = b; }
15742 _ACEOF
15743 if ac_fn_c_try_link "$LINENO"; then :
15744 chktls_save_LDFLAGS="$LDFLAGS"
15745 case $host in
15746 *-*-linux*)
15747 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15749 esac
15750 chktls_save_CFLAGS="$CFLAGS"
15751 CFLAGS="-fPIC $CFLAGS"
15752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15753 /* end confdefs.h. */
15754 int f() { return 0; }
15755 _ACEOF
15756 if ac_fn_c_try_link "$LINENO"; then :
15757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15758 /* end confdefs.h. */
15759 __thread int a; int b; int f() { return a = b; }
15760 _ACEOF
15761 if ac_fn_c_try_link "$LINENO"; then :
15762 gcc_cv_have_tls=yes
15763 else
15764 gcc_cv_have_tls=no
15766 rm -f core conftest.err conftest.$ac_objext \
15767 conftest$ac_exeext conftest.$ac_ext
15768 else
15769 gcc_cv_have_tls=yes
15771 rm -f core conftest.err conftest.$ac_objext \
15772 conftest$ac_exeext conftest.$ac_ext
15773 CFLAGS="$chktls_save_CFLAGS"
15774 LDFLAGS="$chktls_save_LDFLAGS"
15775 else
15776 gcc_cv_have_tls=no
15778 rm -f core conftest.err conftest.$ac_objext \
15779 conftest$ac_exeext conftest.$ac_ext
15782 else
15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784 /* end confdefs.h. */
15785 __thread int a; int b; int main() { return a = b; }
15786 _ACEOF
15787 if ac_fn_c_try_run "$LINENO"; then :
15788 chktls_save_LDFLAGS="$LDFLAGS"
15789 LDFLAGS="-static $LDFLAGS"
15790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791 /* end confdefs.h. */
15792 int main() { return 0; }
15793 _ACEOF
15794 if ac_fn_c_try_link "$LINENO"; then :
15795 if test "$cross_compiling" = yes; then :
15796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15798 as_fn_error "cannot run test program while cross compiling
15799 See \`config.log' for more details." "$LINENO" 5; }
15800 else
15801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15802 /* end confdefs.h. */
15803 __thread int a; int b; int main() { return a = b; }
15804 _ACEOF
15805 if ac_fn_c_try_run "$LINENO"; then :
15806 gcc_cv_have_tls=yes
15807 else
15808 gcc_cv_have_tls=no
15810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15811 conftest.$ac_objext conftest.beam conftest.$ac_ext
15814 else
15815 gcc_cv_have_tls=yes
15817 rm -f core conftest.err conftest.$ac_objext \
15818 conftest$ac_exeext conftest.$ac_ext
15819 LDFLAGS="$chktls_save_LDFLAGS"
15820 if test $gcc_cv_have_tls = yes; then
15821 chktls_save_CFLAGS="$CFLAGS"
15822 thread_CFLAGS=failed
15823 for flag in '' '-pthread' '-lpthread'; do
15824 CFLAGS="$flag $chktls_save_CFLAGS"
15825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15826 /* end confdefs.h. */
15827 #include <pthread.h>
15828 void *g(void *d) { return NULL; }
15830 main ()
15832 pthread_t t; pthread_create(&t,NULL,g,NULL);
15834 return 0;
15836 _ACEOF
15837 if ac_fn_c_try_link "$LINENO"; then :
15838 thread_CFLAGS="$flag"
15840 rm -f core conftest.err conftest.$ac_objext \
15841 conftest$ac_exeext conftest.$ac_ext
15842 if test "X$thread_CFLAGS" != Xfailed; then
15843 break
15845 done
15846 CFLAGS="$chktls_save_CFLAGS"
15847 if test "X$thread_CFLAGS" != Xfailed; then
15848 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15849 if test "$cross_compiling" = yes; then :
15850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15852 as_fn_error "cannot run test program while cross compiling
15853 See \`config.log' for more details." "$LINENO" 5; }
15854 else
15855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15856 /* end confdefs.h. */
15857 #include <pthread.h>
15858 __thread int a;
15859 static int *volatile a_in_other_thread;
15860 static void *
15861 thread_func (void *arg)
15863 a_in_other_thread = &a;
15864 return (void *)0;
15867 main ()
15869 pthread_t thread;
15870 void *thread_retval;
15871 int *volatile a_in_main_thread;
15872 a_in_main_thread = &a;
15873 if (pthread_create (&thread, (pthread_attr_t *)0,
15874 thread_func, (void *)0))
15875 return 0;
15876 if (pthread_join (thread, &thread_retval))
15877 return 0;
15878 return (a_in_other_thread == a_in_main_thread);
15880 return 0;
15882 _ACEOF
15883 if ac_fn_c_try_run "$LINENO"; then :
15884 gcc_cv_have_tls=yes
15885 else
15886 gcc_cv_have_tls=no
15888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15889 conftest.$ac_objext conftest.beam conftest.$ac_ext
15892 CFLAGS="$chktls_save_CFLAGS"
15895 else
15896 gcc_cv_have_tls=no
15898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15899 conftest.$ac_objext conftest.beam conftest.$ac_ext
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15904 $as_echo "$gcc_cv_have_tls" >&6; }
15905 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15907 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15911 # See if we have emulated thread-local storage.
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15914 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15915 if test "${gcc_cv_use_emutls+set}" = set; then :
15916 $as_echo_n "(cached) " >&6
15917 else
15919 gcc_cv_use_emutls=no
15920 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15921 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15923 (eval $ac_try) 2>&5
15924 ac_status=$?
15925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15926 test $ac_status = 0; }; }; then
15927 if grep __emutls_get_address conftest.s > /dev/null; then
15928 gcc_cv_use_emutls=yes
15931 rm -f conftest.*
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15935 $as_echo "$gcc_cv_use_emutls" >&6; }
15936 if test "$gcc_cv_use_emutls" = "yes" ; then
15938 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
15942 # See what sort of export controls are available.
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15945 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15946 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15947 $as_echo_n "(cached) " >&6
15948 else
15950 save_CFLAGS="$CFLAGS"
15951 CFLAGS="$CFLAGS -Werror"
15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h. */
15954 void __attribute__((visibility("hidden"))) foo(void) { }
15956 main ()
15960 return 0;
15962 _ACEOF
15963 if ac_fn_c_try_compile "$LINENO"; then :
15964 libgomp_cv_have_attribute_visibility=yes
15965 else
15966 libgomp_cv_have_attribute_visibility=no
15968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15969 CFLAGS="$save_CFLAGS"
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15972 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15973 if test $libgomp_cv_have_attribute_visibility = yes; then
15975 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15980 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15981 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15982 $as_echo_n "(cached) " >&6
15983 else
15985 save_CFLAGS="$CFLAGS"
15986 CFLAGS="$CFLAGS -Werror"
15987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h. */
15989 void __attribute__((dllexport)) foo(void) { }
15991 main ()
15995 return 0;
15997 _ACEOF
15998 if ac_fn_c_try_compile "$LINENO"; then :
15999 libgomp_cv_have_attribute_dllexport=yes
16000 else
16001 libgomp_cv_have_attribute_dllexport=no
16003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16004 CFLAGS="$save_CFLAGS"
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16007 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16008 if test $libgomp_cv_have_attribute_dllexport = yes; then
16010 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16015 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16016 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
16017 $as_echo_n "(cached) " >&6
16018 else
16020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h. */
16023 void foo(void) { }
16024 extern void bar(void) __attribute__((alias("foo")));
16026 main ()
16028 bar();
16030 return 0;
16032 _ACEOF
16033 if ac_fn_c_try_link "$LINENO"; then :
16034 libgomp_cv_have_attribute_alias=yes
16035 else
16036 libgomp_cv_have_attribute_alias=no
16038 rm -f core conftest.err conftest.$ac_objext \
16039 conftest$ac_exeext conftest.$ac_ext
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16042 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16043 if test $libgomp_cv_have_attribute_alias = yes; then
16045 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16050 # Check whether --with-gnu-ld was given.
16051 if test "${with_gnu_ld+set}" = set; then :
16052 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16053 else
16054 with_gnu_ld=no
16057 ac_prog=ld
16058 if test "$GCC" = yes; then
16059 # Check if gcc -print-prog-name=ld gives a path.
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16061 $as_echo_n "checking for ld used by $CC... " >&6; }
16062 case $host in
16063 *-*-mingw*)
16064 # gcc leaves a trailing carriage return which upsets mingw
16065 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16067 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16068 esac
16069 case $ac_prog in
16070 # Accept absolute paths.
16071 [\\/]* | ?:[\\/]*)
16072 re_direlt='/[^/][^/]*/\.\./'
16073 # Canonicalize the pathname of ld
16074 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16075 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16076 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16077 done
16078 test -z "$LD" && LD="$ac_prog"
16081 # If it fails, then pretend we aren't using GCC.
16082 ac_prog=ld
16085 # If it is relative, then search for the first ld in PATH.
16086 with_gnu_ld=unknown
16088 esac
16089 elif test "$with_gnu_ld" = yes; then
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16091 $as_echo_n "checking for GNU ld... " >&6; }
16092 else
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16094 $as_echo_n "checking for non-GNU ld... " >&6; }
16096 if test "${lt_cv_path_LD+set}" = set; then :
16097 $as_echo_n "(cached) " >&6
16098 else
16099 if test -z "$LD"; then
16100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16101 for ac_dir in $PATH; do
16102 IFS="$lt_save_ifs"
16103 test -z "$ac_dir" && ac_dir=.
16104 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16105 lt_cv_path_LD="$ac_dir/$ac_prog"
16106 # Check to see if the program is GNU ld. I'd rather use --version,
16107 # but apparently some variants of GNU ld only accept -v.
16108 # Break only if it was the GNU/non-GNU ld that we prefer.
16109 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16110 *GNU* | *'with BFD'*)
16111 test "$with_gnu_ld" != no && break
16114 test "$with_gnu_ld" != yes && break
16116 esac
16118 done
16119 IFS="$lt_save_ifs"
16120 else
16121 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16125 LD="$lt_cv_path_LD"
16126 if test -n "$LD"; then
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16128 $as_echo "$LD" >&6; }
16129 else
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16131 $as_echo "no" >&6; }
16133 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16135 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16136 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16137 $as_echo_n "(cached) " >&6
16138 else
16139 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16140 case `$LD -v 2>&1 </dev/null` in
16141 *GNU* | *'with BFD'*)
16142 lt_cv_prog_gnu_ld=yes
16145 lt_cv_prog_gnu_ld=no
16147 esac
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16150 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16151 with_gnu_ld=$lt_cv_prog_gnu_ld
16159 # If we're not using GNU ld, then there's no point in even trying these
16160 # tests. Check for that first. We should have already tested for gld
16161 # by now (in libtool), but require it now just to be safe...
16162 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16163 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16167 # The name set by libtool depends on the version of libtool. Shame on us
16168 # for depending on an impl detail, but c'est la vie. Older versions used
16169 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16170 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16171 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16172 # set (hence we're using an older libtool), then set it.
16173 if test x${with_gnu_ld+set} != xset; then
16174 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16175 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16176 with_gnu_ld=no
16177 else
16178 with_gnu_ld=$ac_cv_prog_gnu_ld
16182 # Start by getting the version number. I think the libtool test already
16183 # does some of this, but throws away the result.
16184 libgomp_ld_is_gold=no
16185 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16186 libgomp_ld_is_gold=yes
16189 ldver=`$LD --version 2>/dev/null |
16190 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'`
16192 libgomp_gnu_ld_version=`echo $ldver | \
16193 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16195 # Set --gc-sections.
16196 if test "$with_gnu_ld" = "notbroken"; then
16197 # GNU ld it is! Joy and bunny rabbits!
16199 # All these tests are for C++; save the language and the compiler flags.
16200 # Need to do this so that g++ won't try to link in libstdc++
16201 ac_test_CFLAGS="${CFLAGS+set}"
16202 ac_save_CFLAGS="$CFLAGS"
16203 CFLAGS='-x c++ -Wl,--gc-sections'
16205 # Check for -Wl,--gc-sections
16206 # XXX This test is broken at the moment, as symbols required for linking
16207 # are now in libsupc++ (not built yet). In addition, this test has
16208 # cored on solaris in the past. In addition, --gc-sections doesn't
16209 # really work at the moment (keeps on discarding used sections, first
16210 # .eh_frame and now some of the glibc sections for iconv).
16211 # Bzzzzt. Thanks for playing, maybe next time.
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16213 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16214 if test "$cross_compiling" = yes; then :
16215 ac_sectionLDflags=yes
16216 else
16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218 /* end confdefs.h. */
16220 int main(void)
16222 try { throw 1; }
16223 catch (...) { };
16224 return 0;
16227 _ACEOF
16228 if ac_fn_c_try_run "$LINENO"; then :
16229 ac_sectionLDflags=yes
16230 else
16231 ac_sectionLDflags=no
16233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16234 conftest.$ac_objext conftest.beam conftest.$ac_ext
16237 if test "$ac_test_CFLAGS" = set; then
16238 CFLAGS="$ac_save_CFLAGS"
16239 else
16240 # this is the suspicious part
16241 CFLAGS=''
16243 if test "$ac_sectionLDflags" = "yes"; then
16244 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16247 $as_echo "$ac_sectionLDflags" >&6; }
16250 # Set linker optimization flags.
16251 if test x"$with_gnu_ld" = x"yes"; then
16252 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16260 # Check whether --enable-symvers was given.
16261 if test "${enable_symvers+set}" = set; then :
16262 enableval=$enable_symvers;
16263 case "$enableval" in
16264 yes|no|gnu*|sun) ;;
16265 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16266 esac
16268 else
16269 enable_symvers=yes
16274 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16275 # don't know enough about $LD to do tricks...
16278 # Turn a 'yes' into a suitable default.
16279 if test x$enable_symvers = xyes ; then
16280 # FIXME The following test is too strict, in theory.
16281 if test $enable_shared = no || test "x$LD" = x; then
16282 enable_symvers=no
16283 else
16284 if test $with_gnu_ld = yes ; then
16285 enable_symvers=gnu
16286 else
16287 case ${target_os} in
16288 # Sun symbol versioning exists since Solaris 2.5.
16289 solaris2.[5-9]* | solaris2.1[0-9]*)
16290 enable_symvers=sun ;;
16292 enable_symvers=no ;;
16293 esac
16298 # Check if 'sun' was requested on non-Solaris 2 platforms.
16299 if test x$enable_symvers = xsun ; then
16300 case ${target_os} in
16301 solaris2*)
16302 # All fine.
16305 # Unlikely to work.
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16307 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16309 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16311 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16312 enable_symvers=no
16314 esac
16317 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16318 if test $enable_symvers != no; then
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16320 $as_echo_n "checking for shared libgcc... " >&6; }
16321 ac_save_CFLAGS="$CFLAGS"
16322 CFLAGS=' -lgcc_s'
16323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324 /* end confdefs.h. */
16327 main ()
16329 return 0;
16331 return 0;
16333 _ACEOF
16334 if ac_fn_c_try_link "$LINENO"; then :
16335 libgomp_shared_libgcc=yes
16336 else
16337 libgomp_shared_libgcc=no
16339 rm -f core conftest.err conftest.$ac_objext \
16340 conftest$ac_exeext conftest.$ac_ext
16341 CFLAGS="$ac_save_CFLAGS"
16342 if test $libgomp_shared_libgcc = no; then
16343 cat > conftest.c <<EOF
16344 int main (void) { return 0; }
16346 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16347 -shared -shared-libgcc -o conftest.so \
16348 conftest.c -v 2>&1 >/dev/null \
16349 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16350 rm -f conftest.c conftest.so
16351 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16352 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354 /* end confdefs.h. */
16357 main ()
16359 return 0;
16361 return 0;
16363 _ACEOF
16364 if ac_fn_c_try_link "$LINENO"; then :
16365 libgomp_shared_libgcc=yes
16367 rm -f core conftest.err conftest.$ac_objext \
16368 conftest$ac_exeext conftest.$ac_ext
16369 CFLAGS="$ac_save_CFLAGS"
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16373 $as_echo "$libgomp_shared_libgcc" >&6; }
16376 # For GNU ld, we need at least this version. The format is described in
16377 # LIBGOMP_CHECK_LINKER_FEATURES above.
16378 libgomp_min_gnu_ld_version=21400
16379 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16381 # Check to see if unspecified "yes" value can win, given results above.
16382 # Change "yes" into either "no" or a style name.
16383 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16384 if test $with_gnu_ld = yes; then
16385 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16386 enable_symvers=gnu
16387 elif test $libgomp_ld_is_gold = yes ; then
16388 enable_symvers=gnu
16389 else
16390 # The right tools, the right setup, but too old. Fallbacks?
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16392 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16394 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16396 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16398 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16399 if test $libgomp_gnu_ld_version -ge 21200 ; then
16400 # Globbing fix is present, proper block support is not.
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16402 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16403 enable_symvers=no
16404 else
16405 # 2.11 or older.
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16407 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16408 enable_symvers=no
16411 elif test $enable_symvers = sun; then
16412 : All interesting versions of Sun ld support sun style symbol versioning.
16413 else
16414 # just fail for now
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16416 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16418 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16420 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16422 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16423 enable_symvers=no
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16428 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16429 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
16430 $as_echo_n "(cached) " >&6
16431 else
16433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16434 /* end confdefs.h. */
16435 void foo (void); __asm (".symver foo, bar@SYMVER");
16437 main ()
16441 return 0;
16443 _ACEOF
16444 if ac_fn_c_try_compile "$LINENO"; then :
16445 libgomp_cv_have_as_symver_directive=yes
16446 else
16447 libgomp_cv_have_as_symver_directive=no
16449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16452 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16453 if test $libgomp_cv_have_as_symver_directive = yes; then
16455 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16459 if test $enable_symvers != no; then
16460 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16461 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16462 else
16463 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16464 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16467 if test $enable_symvers = gnu; then
16468 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16469 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16470 else
16471 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16472 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16475 if test $enable_symvers = sun; then
16476 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16477 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16478 else
16479 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16480 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16484 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16486 if test $enable_symvers != no ; then
16487 case ${target_os} in
16488 # The Solaris 2 runtime linker doesn't support the GNU extension of
16489 # binding the same symbol to different versions
16490 solaris2*)
16492 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16495 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16498 esac
16502 if test $enable_symvers = gnu; then
16504 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16508 # Get target configury.
16509 . ${srcdir}/configure.tgt
16510 CFLAGS="$save_CFLAGS $XCFLAGS"
16512 # Check for __sync_val_compare_and_swap, but only after the target has
16513 # had a chance to set XCFLAGS.
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16516 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16517 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16518 $as_echo_n "(cached) " >&6
16519 else
16521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h. */
16525 main ()
16527 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16529 return 0;
16531 _ACEOF
16532 if ac_fn_c_try_link "$LINENO"; then :
16533 libgomp_cv_have_sync_builtins=yes
16534 else
16535 libgomp_cv_have_sync_builtins=no
16537 rm -f core conftest.err conftest.$ac_objext \
16538 conftest$ac_exeext conftest.$ac_ext
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16541 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16542 if test $libgomp_cv_have_sync_builtins = yes; then
16544 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16548 XCFLAGS="$XCFLAGS$XPCFLAGS"
16554 # Cleanup and exit.
16555 CFLAGS="$save_CFLAGS"
16556 cat >confcache <<\_ACEOF
16557 # This file is a shell script that caches the results of configure
16558 # tests run on this system so they can be shared between configure
16559 # scripts and configure runs, see configure's option --config-cache.
16560 # It is not useful on other systems. If it contains results you don't
16561 # want to keep, you may remove or edit it.
16563 # config.status only pays attention to the cache file if you give it
16564 # the --recheck option to rerun configure.
16566 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16567 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16568 # following values.
16570 _ACEOF
16572 # The following way of writing the cache mishandles newlines in values,
16573 # but we know of no workaround that is simple, portable, and efficient.
16574 # So, we kill variables containing newlines.
16575 # Ultrix sh set writes to stderr and can't be redirected directly,
16576 # and sets the high bit in the cache file unless we assign to the vars.
16578 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16579 eval ac_val=\$$ac_var
16580 case $ac_val in #(
16581 *${as_nl}*)
16582 case $ac_var in #(
16583 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16584 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16585 esac
16586 case $ac_var in #(
16587 _ | IFS | as_nl) ;; #(
16588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16589 *) { eval $ac_var=; unset $ac_var;} ;;
16590 esac ;;
16591 esac
16592 done
16594 (set) 2>&1 |
16595 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16596 *${as_nl}ac_space=\ *)
16597 # `set' does not quote correctly, so add quotes: double-quote
16598 # substitution turns \\\\ into \\, and sed turns \\ into \.
16599 sed -n \
16600 "s/'/'\\\\''/g;
16601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16602 ;; #(
16604 # `set' quotes correctly as required by POSIX, so do not add quotes.
16605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16607 esac |
16608 sort
16610 sed '
16611 /^ac_cv_env_/b end
16612 t clear
16613 :clear
16614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16615 t end
16616 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16617 :end' >>confcache
16618 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16619 if test -w "$cache_file"; then
16620 test "x$cache_file" != "x/dev/null" &&
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16622 $as_echo "$as_me: updating cache $cache_file" >&6;}
16623 cat confcache >$cache_file
16624 else
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16626 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16629 rm -f confcache
16631 if test ${multilib} = yes; then
16632 multilib_arg="--enable-multilib"
16633 else
16634 multilib_arg=
16637 # Set up the set of libraries that we need to link against for libgomp.
16638 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16639 # which will force linkage against -lpthread (or equivalent for the system).
16640 # That's not 100% ideal, but about the best we can do easily.
16641 if test $enable_shared = yes; then
16642 link_gomp="-lgomp %{static: $LIBS}"
16643 else
16644 link_gomp="-lgomp $LIBS"
16648 if test "$ac_cv_fc_compiler_gnu" = yes; then
16649 USE_FORTRAN_TRUE=
16650 USE_FORTRAN_FALSE='#'
16651 else
16652 USE_FORTRAN_TRUE='#'
16653 USE_FORTRAN_FALSE=
16657 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16658 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16659 # the underscore here and update the PREREQ. If it doesn't, then we'll
16660 # need to copy this macro to our acinclude.m4.
16661 save_CFLAGS="$CFLAGS"
16662 for i in $config_path; do
16663 if test -f $srcdir/config/$i/omp-lock.h; then
16664 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16665 break
16667 done
16669 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16671 else
16672 as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16676 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16681 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16686 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16691 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16693 else
16694 as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16698 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16703 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16708 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16714 # If the lock fits in an integer, then arrange for Fortran to use that
16715 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16716 # Except that we don't have a way at present to multi-lib the installed
16717 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16718 # actual target.
16719 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16720 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16721 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16722 OMP_LOCK_KIND=8
16724 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16725 OMP_NEST_LOCK_KIND=8
16727 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16728 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16729 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16730 OMP_LOCK_25_KIND=8
16732 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16733 OMP_NEST_LOCK_25_KIND=8
16748 CFLAGS="$save_CFLAGS"
16750 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16752 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16754 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16756 cat >confcache <<\_ACEOF
16757 # This file is a shell script that caches the results of configure
16758 # tests run on this system so they can be shared between configure
16759 # scripts and configure runs, see configure's option --config-cache.
16760 # It is not useful on other systems. If it contains results you don't
16761 # want to keep, you may remove or edit it.
16763 # config.status only pays attention to the cache file if you give it
16764 # the --recheck option to rerun configure.
16766 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16767 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16768 # following values.
16770 _ACEOF
16772 # The following way of writing the cache mishandles newlines in values,
16773 # but we know of no workaround that is simple, portable, and efficient.
16774 # So, we kill variables containing newlines.
16775 # Ultrix sh set writes to stderr and can't be redirected directly,
16776 # and sets the high bit in the cache file unless we assign to the vars.
16778 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16779 eval ac_val=\$$ac_var
16780 case $ac_val in #(
16781 *${as_nl}*)
16782 case $ac_var in #(
16783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16785 esac
16786 case $ac_var in #(
16787 _ | IFS | as_nl) ;; #(
16788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16789 *) { eval $ac_var=; unset $ac_var;} ;;
16790 esac ;;
16791 esac
16792 done
16794 (set) 2>&1 |
16795 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16796 *${as_nl}ac_space=\ *)
16797 # `set' does not quote correctly, so add quotes: double-quote
16798 # substitution turns \\\\ into \\, and sed turns \\ into \.
16799 sed -n \
16800 "s/'/'\\\\''/g;
16801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16802 ;; #(
16804 # `set' quotes correctly as required by POSIX, so do not add quotes.
16805 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16807 esac |
16808 sort
16810 sed '
16811 /^ac_cv_env_/b end
16812 t clear
16813 :clear
16814 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16815 t end
16816 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16817 :end' >>confcache
16818 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16819 if test -w "$cache_file"; then
16820 test "x$cache_file" != "x/dev/null" &&
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16822 $as_echo "$as_me: updating cache $cache_file" >&6;}
16823 cat confcache >$cache_file
16824 else
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16826 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16829 rm -f confcache
16831 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16832 # Let make expand exec_prefix.
16833 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16835 DEFS=-DHAVE_CONFIG_H
16837 ac_libobjs=
16838 ac_ltlibobjs=
16839 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16840 # 1. Remove the extension, and $U if already installed.
16841 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16842 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16843 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16844 # will be set to the directory where LIBOBJS objects are built.
16845 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16846 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16847 done
16848 LIBOBJS=$ac_libobjs
16850 LTLIBOBJS=$ac_ltlibobjs
16853 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16854 as_fn_error "conditional \"GENINSRC\" was never defined.
16855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16857 if test -n "$EXEEXT"; then
16858 am__EXEEXT_TRUE=
16859 am__EXEEXT_FALSE='#'
16860 else
16861 am__EXEEXT_TRUE='#'
16862 am__EXEEXT_FALSE=
16865 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16866 as_fn_error "conditional \"AMDEP\" was never defined.
16867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16869 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16870 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16873 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16874 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16877 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16878 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16881 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
16882 as_fn_error "conditional \"PLUGIN_NVPTX\" was never defined.
16883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16885 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
16886 as_fn_error "conditional \"PLUGIN_HSA\" was never defined.
16887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16889 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16890 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16893 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16894 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16897 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16898 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16901 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16902 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16906 : ${CONFIG_STATUS=./config.status}
16907 ac_write_fail=0
16908 ac_clean_files_save=$ac_clean_files
16909 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16911 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16912 as_write_fail=0
16913 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16914 #! $SHELL
16915 # Generated by $as_me.
16916 # Run this file to recreate the current configuration.
16917 # Compiler output produced by configure, useful for debugging
16918 # configure, is in config.log if it exists.
16920 debug=false
16921 ac_cs_recheck=false
16922 ac_cs_silent=false
16924 SHELL=\${CONFIG_SHELL-$SHELL}
16925 export SHELL
16926 _ASEOF
16927 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16928 ## -------------------- ##
16929 ## M4sh Initialization. ##
16930 ## -------------------- ##
16932 # Be more Bourne compatible
16933 DUALCASE=1; export DUALCASE # for MKS sh
16934 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16935 emulate sh
16936 NULLCMD=:
16937 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16938 # is contrary to our usage. Disable this feature.
16939 alias -g '${1+"$@"}'='"$@"'
16940 setopt NO_GLOB_SUBST
16941 else
16942 case `(set -o) 2>/dev/null` in #(
16943 *posix*) :
16944 set -o posix ;; #(
16945 *) :
16947 esac
16951 as_nl='
16953 export as_nl
16954 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16955 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16956 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16957 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16958 # Prefer a ksh shell builtin over an external printf program on Solaris,
16959 # but without wasting forks for bash or zsh.
16960 if test -z "$BASH_VERSION$ZSH_VERSION" \
16961 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16962 as_echo='print -r --'
16963 as_echo_n='print -rn --'
16964 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16965 as_echo='printf %s\n'
16966 as_echo_n='printf %s'
16967 else
16968 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16969 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16970 as_echo_n='/usr/ucb/echo -n'
16971 else
16972 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16973 as_echo_n_body='eval
16974 arg=$1;
16975 case $arg in #(
16976 *"$as_nl"*)
16977 expr "X$arg" : "X\\(.*\\)$as_nl";
16978 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16979 esac;
16980 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16982 export as_echo_n_body
16983 as_echo_n='sh -c $as_echo_n_body as_echo'
16985 export as_echo_body
16986 as_echo='sh -c $as_echo_body as_echo'
16989 # The user is always right.
16990 if test "${PATH_SEPARATOR+set}" != set; then
16991 PATH_SEPARATOR=:
16992 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16993 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16994 PATH_SEPARATOR=';'
16999 # IFS
17000 # We need space, tab and new line, in precisely that order. Quoting is
17001 # there to prevent editors from complaining about space-tab.
17002 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17003 # splitting by setting IFS to empty value.)
17004 IFS=" "" $as_nl"
17006 # Find who we are. Look in the path if we contain no directory separator.
17007 case $0 in #((
17008 *[\\/]* ) as_myself=$0 ;;
17009 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17010 for as_dir in $PATH
17012 IFS=$as_save_IFS
17013 test -z "$as_dir" && as_dir=.
17014 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17015 done
17016 IFS=$as_save_IFS
17019 esac
17020 # We did not find ourselves, most probably we were run as `sh COMMAND'
17021 # in which case we are not to be found in the path.
17022 if test "x$as_myself" = x; then
17023 as_myself=$0
17025 if test ! -f "$as_myself"; then
17026 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17027 exit 1
17030 # Unset variables that we do not need and which cause bugs (e.g. in
17031 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17032 # suppresses any "Segmentation fault" message there. '((' could
17033 # trigger a bug in pdksh 5.2.14.
17034 for as_var in BASH_ENV ENV MAIL MAILPATH
17035 do eval test x\${$as_var+set} = xset \
17036 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17037 done
17038 PS1='$ '
17039 PS2='> '
17040 PS4='+ '
17042 # NLS nuisances.
17043 LC_ALL=C
17044 export LC_ALL
17045 LANGUAGE=C
17046 export LANGUAGE
17048 # CDPATH.
17049 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17052 # as_fn_error ERROR [LINENO LOG_FD]
17053 # ---------------------------------
17054 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17055 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17056 # script with status $?, using 1 if that was 0.
17057 as_fn_error ()
17059 as_status=$?; test $as_status -eq 0 && as_status=1
17060 if test "$3"; then
17061 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17062 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17064 $as_echo "$as_me: error: $1" >&2
17065 as_fn_exit $as_status
17066 } # as_fn_error
17069 # as_fn_set_status STATUS
17070 # -----------------------
17071 # Set $? to STATUS, without forking.
17072 as_fn_set_status ()
17074 return $1
17075 } # as_fn_set_status
17077 # as_fn_exit STATUS
17078 # -----------------
17079 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17080 as_fn_exit ()
17082 set +e
17083 as_fn_set_status $1
17084 exit $1
17085 } # as_fn_exit
17087 # as_fn_unset VAR
17088 # ---------------
17089 # Portably unset VAR.
17090 as_fn_unset ()
17092 { eval $1=; unset $1;}
17094 as_unset=as_fn_unset
17095 # as_fn_append VAR VALUE
17096 # ----------------------
17097 # Append the text in VALUE to the end of the definition contained in VAR. Take
17098 # advantage of any shell optimizations that allow amortized linear growth over
17099 # repeated appends, instead of the typical quadratic growth present in naive
17100 # implementations.
17101 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17102 eval 'as_fn_append ()
17104 eval $1+=\$2
17106 else
17107 as_fn_append ()
17109 eval $1=\$$1\$2
17111 fi # as_fn_append
17113 # as_fn_arith ARG...
17114 # ------------------
17115 # Perform arithmetic evaluation on the ARGs, and store the result in the
17116 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17117 # must be portable across $(()) and expr.
17118 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17119 eval 'as_fn_arith ()
17121 as_val=$(( $* ))
17123 else
17124 as_fn_arith ()
17126 as_val=`expr "$@" || test $? -eq 1`
17128 fi # as_fn_arith
17131 if expr a : '\(a\)' >/dev/null 2>&1 &&
17132 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17133 as_expr=expr
17134 else
17135 as_expr=false
17138 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17139 as_basename=basename
17140 else
17141 as_basename=false
17144 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17145 as_dirname=dirname
17146 else
17147 as_dirname=false
17150 as_me=`$as_basename -- "$0" ||
17151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17152 X"$0" : 'X\(//\)$' \| \
17153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17154 $as_echo X/"$0" |
17155 sed '/^.*\/\([^/][^/]*\)\/*$/{
17156 s//\1/
17159 /^X\/\(\/\/\)$/{
17160 s//\1/
17163 /^X\/\(\/\).*/{
17164 s//\1/
17167 s/.*/./; q'`
17169 # Avoid depending upon Character Ranges.
17170 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17171 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17172 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17173 as_cr_digits='0123456789'
17174 as_cr_alnum=$as_cr_Letters$as_cr_digits
17176 ECHO_C= ECHO_N= ECHO_T=
17177 case `echo -n x` in #(((((
17178 -n*)
17179 case `echo 'xy\c'` in
17180 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17181 xy) ECHO_C='\c';;
17182 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17183 ECHO_T=' ';;
17184 esac;;
17186 ECHO_N='-n';;
17187 esac
17189 rm -f conf$$ conf$$.exe conf$$.file
17190 if test -d conf$$.dir; then
17191 rm -f conf$$.dir/conf$$.file
17192 else
17193 rm -f conf$$.dir
17194 mkdir conf$$.dir 2>/dev/null
17196 if (echo >conf$$.file) 2>/dev/null; then
17197 if ln -s conf$$.file conf$$ 2>/dev/null; then
17198 as_ln_s='ln -s'
17199 # ... but there are two gotchas:
17200 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17201 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17202 # In both cases, we have to default to `cp -p'.
17203 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17204 as_ln_s='cp -p'
17205 elif ln conf$$.file conf$$ 2>/dev/null; then
17206 as_ln_s=ln
17207 else
17208 as_ln_s='cp -p'
17210 else
17211 as_ln_s='cp -p'
17213 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17214 rmdir conf$$.dir 2>/dev/null
17217 # as_fn_mkdir_p
17218 # -------------
17219 # Create "$as_dir" as a directory, including parents if necessary.
17220 as_fn_mkdir_p ()
17223 case $as_dir in #(
17224 -*) as_dir=./$as_dir;;
17225 esac
17226 test -d "$as_dir" || eval $as_mkdir_p || {
17227 as_dirs=
17228 while :; do
17229 case $as_dir in #(
17230 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17231 *) as_qdir=$as_dir;;
17232 esac
17233 as_dirs="'$as_qdir' $as_dirs"
17234 as_dir=`$as_dirname -- "$as_dir" ||
17235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17236 X"$as_dir" : 'X\(//\)[^/]' \| \
17237 X"$as_dir" : 'X\(//\)$' \| \
17238 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17239 $as_echo X"$as_dir" |
17240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17241 s//\1/
17244 /^X\(\/\/\)[^/].*/{
17245 s//\1/
17248 /^X\(\/\/\)$/{
17249 s//\1/
17252 /^X\(\/\).*/{
17253 s//\1/
17256 s/.*/./; q'`
17257 test -d "$as_dir" && break
17258 done
17259 test -z "$as_dirs" || eval "mkdir $as_dirs"
17260 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17263 } # as_fn_mkdir_p
17264 if mkdir -p . 2>/dev/null; then
17265 as_mkdir_p='mkdir -p "$as_dir"'
17266 else
17267 test -d ./-p && rmdir ./-p
17268 as_mkdir_p=false
17271 if test -x / >/dev/null 2>&1; then
17272 as_test_x='test -x'
17273 else
17274 if ls -dL / >/dev/null 2>&1; then
17275 as_ls_L_option=L
17276 else
17277 as_ls_L_option=
17279 as_test_x='
17280 eval sh -c '\''
17281 if test -d "$1"; then
17282 test -d "$1/.";
17283 else
17284 case $1 in #(
17285 -*)set "./$1";;
17286 esac;
17287 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17288 ???[sx]*):;;*)false;;esac;fi
17289 '\'' sh
17292 as_executable_p=$as_test_x
17294 # Sed expression to map a string onto a valid CPP name.
17295 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17297 # Sed expression to map a string onto a valid variable name.
17298 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17301 exec 6>&1
17302 ## ----------------------------------- ##
17303 ## Main body of $CONFIG_STATUS script. ##
17304 ## ----------------------------------- ##
17305 _ASEOF
17306 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17309 # Save the log message, to keep $0 and so on meaningful, and to
17310 # report actual input values of CONFIG_FILES etc. instead of their
17311 # values after options handling.
17312 ac_log="
17313 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17314 generated by GNU Autoconf 2.64. Invocation command line was
17316 CONFIG_FILES = $CONFIG_FILES
17317 CONFIG_HEADERS = $CONFIG_HEADERS
17318 CONFIG_LINKS = $CONFIG_LINKS
17319 CONFIG_COMMANDS = $CONFIG_COMMANDS
17320 $ $0 $@
17322 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17325 _ACEOF
17327 case $ac_config_files in *"
17328 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17329 esac
17331 case $ac_config_headers in *"
17332 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17333 esac
17336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17337 # Files that config.status was made for.
17338 config_files="$ac_config_files"
17339 config_headers="$ac_config_headers"
17340 config_commands="$ac_config_commands"
17342 _ACEOF
17344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17345 ac_cs_usage="\
17346 \`$as_me' instantiates files and other configuration actions
17347 from templates according to the current configuration. Unless the files
17348 and actions are specified as TAGs, all are instantiated by default.
17350 Usage: $0 [OPTION]... [TAG]...
17352 -h, --help print this help, then exit
17353 -V, --version print version number and configuration settings, then exit
17354 -q, --quiet, --silent
17355 do not print progress messages
17356 -d, --debug don't remove temporary files
17357 --recheck update $as_me by reconfiguring in the same conditions
17358 --file=FILE[:TEMPLATE]
17359 instantiate the configuration file FILE
17360 --header=FILE[:TEMPLATE]
17361 instantiate the configuration header FILE
17363 Configuration files:
17364 $config_files
17366 Configuration headers:
17367 $config_headers
17369 Configuration commands:
17370 $config_commands
17372 Report bugs to the package provider.
17373 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17374 General help using GNU software: <http://www.gnu.org/gethelp/>."
17376 _ACEOF
17377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17378 ac_cs_version="\\
17379 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17380 configured by $0, generated by GNU Autoconf 2.64,
17381 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17383 Copyright (C) 2009 Free Software Foundation, Inc.
17384 This config.status script is free software; the Free Software Foundation
17385 gives unlimited permission to copy, distribute and modify it."
17387 ac_pwd='$ac_pwd'
17388 srcdir='$srcdir'
17389 INSTALL='$INSTALL'
17390 MKDIR_P='$MKDIR_P'
17391 AWK='$AWK'
17392 test -n "\$AWK" || AWK=awk
17393 _ACEOF
17395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17396 # The default lists apply if the user does not specify any file.
17397 ac_need_defaults=:
17398 while test $# != 0
17400 case $1 in
17401 --*=*)
17402 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17403 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17404 ac_shift=:
17407 ac_option=$1
17408 ac_optarg=$2
17409 ac_shift=shift
17411 esac
17413 case $ac_option in
17414 # Handling of the options.
17415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17416 ac_cs_recheck=: ;;
17417 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17418 $as_echo "$ac_cs_version"; exit ;;
17419 --debug | --debu | --deb | --de | --d | -d )
17420 debug=: ;;
17421 --file | --fil | --fi | --f )
17422 $ac_shift
17423 case $ac_optarg in
17424 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17425 esac
17426 as_fn_append CONFIG_FILES " '$ac_optarg'"
17427 ac_need_defaults=false;;
17428 --header | --heade | --head | --hea )
17429 $ac_shift
17430 case $ac_optarg in
17431 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17432 esac
17433 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17434 ac_need_defaults=false;;
17435 --he | --h)
17436 # Conflict between --help and --header
17437 as_fn_error "ambiguous option: \`$1'
17438 Try \`$0 --help' for more information.";;
17439 --help | --hel | -h )
17440 $as_echo "$ac_cs_usage"; exit ;;
17441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17442 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17443 ac_cs_silent=: ;;
17445 # This is an error.
17446 -*) as_fn_error "unrecognized option: \`$1'
17447 Try \`$0 --help' for more information." ;;
17449 *) as_fn_append ac_config_targets " $1"
17450 ac_need_defaults=false ;;
17452 esac
17453 shift
17454 done
17456 ac_configure_extra_args=
17458 if $ac_cs_silent; then
17459 exec 6>/dev/null
17460 ac_configure_extra_args="$ac_configure_extra_args --silent"
17463 _ACEOF
17464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17465 if \$ac_cs_recheck; then
17466 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17467 shift
17468 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17469 CONFIG_SHELL='$SHELL'
17470 export CONFIG_SHELL
17471 exec "\$@"
17474 _ACEOF
17475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17476 exec 5>>config.log
17478 echo
17479 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17480 ## Running $as_me. ##
17481 _ASBOX
17482 $as_echo "$ac_log"
17483 } >&5
17485 _ACEOF
17486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17488 # INIT-COMMANDS
17491 srcdir="$srcdir"
17492 host="$host"
17493 target="$target"
17494 with_multisubdir="$with_multisubdir"
17495 with_multisrctop="$with_multisrctop"
17496 with_target_subdir="$with_target_subdir"
17497 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17498 multi_basedir="$multi_basedir"
17499 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17500 CC="$CC"
17501 CXX="$CXX"
17502 GFORTRAN="$GFORTRAN"
17503 GCJ="$GCJ"
17504 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17507 # The HP-UX ksh and POSIX shell print the target directory to stdout
17508 # if CDPATH is set.
17509 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17511 sed_quote_subst='$sed_quote_subst'
17512 double_quote_subst='$double_quote_subst'
17513 delay_variable_subst='$delay_variable_subst'
17514 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17515 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17516 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17517 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17518 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17519 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17520 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17521 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17522 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17523 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17524 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17525 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17526 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17527 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17528 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17529 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17530 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17531 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17532 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17533 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17534 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17535 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17536 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17537 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17538 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17539 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17540 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17541 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17542 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17543 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17544 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17545 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17546 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17547 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17548 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17549 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17550 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17551 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17552 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17553 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17554 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17555 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17556 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17557 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17558 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17559 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17560 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17561 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17562 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"`'
17563 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17564 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17565 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17566 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17567 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17568 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17569 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17570 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17571 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17572 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17573 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17574 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17575 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17576 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17577 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17578 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17579 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17580 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17581 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17582 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17583 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17584 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17585 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17586 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17587 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17588 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17589 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17590 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17591 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17592 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17593 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17594 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17595 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17596 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17597 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17598 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17599 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17600 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17601 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17602 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17603 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17604 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17605 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17606 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17607 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17608 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17609 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17610 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17611 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17612 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17613 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17614 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17615 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17616 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17617 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17618 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17619 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17620 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17621 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17622 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17623 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17624 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17625 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17626 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17627 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17628 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17629 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17630 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17631 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17632 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17633 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17634 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17635 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17636 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17637 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17638 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17639 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17640 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17641 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17642 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17643 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17644 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17645 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17646 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17647 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17648 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17649 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17650 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17651 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17652 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17653 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17654 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17655 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17656 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17657 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17658 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17659 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17660 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17661 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17662 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17663 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17664 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17665 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17666 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17667 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17668 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17669 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17670 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17671 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17672 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17673 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17674 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17675 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17676 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17677 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17678 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17679 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17680 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17681 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17682 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17683 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17684 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17685 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17686 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17687 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17688 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17690 LTCC='$LTCC'
17691 LTCFLAGS='$LTCFLAGS'
17692 compiler='$compiler_DEFAULT'
17694 # A function that is used when there is no print builtin or printf.
17695 func_fallback_echo ()
17697 eval 'cat <<_LTECHO_EOF
17699 _LTECHO_EOF'
17702 # Quote evaled strings.
17703 for var in SHELL \
17704 ECHO \
17705 SED \
17706 GREP \
17707 EGREP \
17708 FGREP \
17709 LD \
17710 NM \
17711 LN_S \
17712 lt_SP2NL \
17713 lt_NL2SP \
17714 reload_flag \
17715 OBJDUMP \
17716 deplibs_check_method \
17717 file_magic_cmd \
17718 AR \
17719 AR_FLAGS \
17720 STRIP \
17721 RANLIB \
17722 CC \
17723 CFLAGS \
17724 compiler \
17725 lt_cv_sys_global_symbol_pipe \
17726 lt_cv_sys_global_symbol_to_cdecl \
17727 lt_cv_sys_global_symbol_to_c_name_address \
17728 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17729 lt_prog_compiler_no_builtin_flag \
17730 lt_prog_compiler_wl \
17731 lt_prog_compiler_pic \
17732 lt_prog_compiler_static \
17733 lt_cv_prog_compiler_c_o \
17734 need_locks \
17735 DSYMUTIL \
17736 NMEDIT \
17737 LIPO \
17738 OTOOL \
17739 OTOOL64 \
17740 shrext_cmds \
17741 export_dynamic_flag_spec \
17742 whole_archive_flag_spec \
17743 compiler_needs_object \
17744 with_gnu_ld \
17745 allow_undefined_flag \
17746 no_undefined_flag \
17747 hardcode_libdir_flag_spec \
17748 hardcode_libdir_flag_spec_ld \
17749 hardcode_libdir_separator \
17750 fix_srcfile_path \
17751 exclude_expsyms \
17752 include_expsyms \
17753 file_list_spec \
17754 variables_saved_for_relink \
17755 libname_spec \
17756 library_names_spec \
17757 soname_spec \
17758 install_override_mode \
17759 finish_eval \
17760 old_striplib \
17761 striplib \
17762 compiler_lib_search_dirs \
17763 predep_objects \
17764 postdep_objects \
17765 predeps \
17766 postdeps \
17767 compiler_lib_search_path \
17768 LD_FC \
17769 reload_flag_FC \
17770 compiler_FC \
17771 lt_prog_compiler_no_builtin_flag_FC \
17772 lt_prog_compiler_wl_FC \
17773 lt_prog_compiler_pic_FC \
17774 lt_prog_compiler_static_FC \
17775 lt_cv_prog_compiler_c_o_FC \
17776 export_dynamic_flag_spec_FC \
17777 whole_archive_flag_spec_FC \
17778 compiler_needs_object_FC \
17779 with_gnu_ld_FC \
17780 allow_undefined_flag_FC \
17781 no_undefined_flag_FC \
17782 hardcode_libdir_flag_spec_FC \
17783 hardcode_libdir_flag_spec_ld_FC \
17784 hardcode_libdir_separator_FC \
17785 fix_srcfile_path_FC \
17786 exclude_expsyms_FC \
17787 include_expsyms_FC \
17788 file_list_spec_FC \
17789 compiler_lib_search_dirs_FC \
17790 predep_objects_FC \
17791 postdep_objects_FC \
17792 predeps_FC \
17793 postdeps_FC \
17794 compiler_lib_search_path_FC; do
17795 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17796 *[\\\\\\\`\\"\\\$]*)
17797 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17800 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17802 esac
17803 done
17805 # Double-quote double-evaled strings.
17806 for var in reload_cmds \
17807 old_postinstall_cmds \
17808 old_postuninstall_cmds \
17809 old_archive_cmds \
17810 extract_expsyms_cmds \
17811 old_archive_from_new_cmds \
17812 old_archive_from_expsyms_cmds \
17813 archive_cmds \
17814 archive_expsym_cmds \
17815 module_cmds \
17816 module_expsym_cmds \
17817 export_symbols_cmds \
17818 prelink_cmds \
17819 postinstall_cmds \
17820 postuninstall_cmds \
17821 finish_cmds \
17822 sys_lib_search_path_spec \
17823 sys_lib_dlsearch_path_spec \
17824 reload_cmds_FC \
17825 old_archive_cmds_FC \
17826 old_archive_from_new_cmds_FC \
17827 old_archive_from_expsyms_cmds_FC \
17828 archive_cmds_FC \
17829 archive_expsym_cmds_FC \
17830 module_cmds_FC \
17831 module_expsym_cmds_FC \
17832 export_symbols_cmds_FC \
17833 prelink_cmds_FC; do
17834 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17835 *[\\\\\\\`\\"\\\$]*)
17836 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17839 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17841 esac
17842 done
17844 ac_aux_dir='$ac_aux_dir'
17845 xsi_shell='$xsi_shell'
17846 lt_shell_append='$lt_shell_append'
17848 # See if we are running on zsh, and set the options which allow our
17849 # commands through without removal of \ escapes INIT.
17850 if test -n "\${ZSH_VERSION+set}" ; then
17851 setopt NO_GLOB_SUBST
17855 PACKAGE='$PACKAGE'
17856 VERSION='$VERSION'
17857 TIMESTAMP='$TIMESTAMP'
17858 RM='$RM'
17859 ofile='$ofile'
17866 GCC="$GCC"
17867 CC="$CC"
17868 acx_cv_header_stdint="$acx_cv_header_stdint"
17869 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17870 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17871 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17872 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17873 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17874 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17875 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17876 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17877 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17878 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17879 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17880 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17881 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17884 _ACEOF
17886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17888 # Handling of arguments.
17889 for ac_config_target in $ac_config_targets
17891 case $ac_config_target in
17892 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17893 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17894 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17895 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17896 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17897 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17898 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17899 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17900 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17901 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17902 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17903 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17904 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
17906 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17907 esac
17908 done
17911 # If the user did not use the arguments to specify the items to instantiate,
17912 # then the envvar interface is used. Set only those that are not.
17913 # We use the long form for the default assignment because of an extremely
17914 # bizarre bug on SunOS 4.1.3.
17915 if $ac_need_defaults; then
17916 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17917 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17918 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17921 # Have a temporary directory for convenience. Make it in the build tree
17922 # simply because there is no reason against having it here, and in addition,
17923 # creating and moving files from /tmp can sometimes cause problems.
17924 # Hook for its removal unless debugging.
17925 # Note that there is a small window in which the directory will not be cleaned:
17926 # after its creation but before its name has been assigned to `$tmp'.
17927 $debug ||
17929 tmp=
17930 trap 'exit_status=$?
17931 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17933 trap 'as_fn_exit 1' 1 2 13 15
17935 # Create a (secure) tmp directory for tmp files.
17938 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17939 test -n "$tmp" && test -d "$tmp"
17940 } ||
17942 tmp=./conf$$-$RANDOM
17943 (umask 077 && mkdir "$tmp")
17944 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17946 # Set up the scripts for CONFIG_FILES section.
17947 # No need to generate them if there are no CONFIG_FILES.
17948 # This happens for instance with `./config.status config.h'.
17949 if test -n "$CONFIG_FILES"; then
17952 ac_cr=`echo X | tr X '\015'`
17953 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17954 # But we know of no other shell where ac_cr would be empty at this
17955 # point, so we can use a bashism as a fallback.
17956 if test "x$ac_cr" = x; then
17957 eval ac_cr=\$\'\\r\'
17959 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17960 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17961 ac_cs_awk_cr='\r'
17962 else
17963 ac_cs_awk_cr=$ac_cr
17966 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17967 _ACEOF
17971 echo "cat >conf$$subs.awk <<_ACEOF" &&
17972 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17973 echo "_ACEOF"
17974 } >conf$$subs.sh ||
17975 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17976 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17977 ac_delim='%!_!# '
17978 for ac_last_try in false false false false false :; do
17979 . ./conf$$subs.sh ||
17980 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17982 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17983 if test $ac_delim_n = $ac_delim_num; then
17984 break
17985 elif $ac_last_try; then
17986 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17987 else
17988 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17990 done
17991 rm -f conf$$subs.sh
17993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17994 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17995 _ACEOF
17996 sed -n '
17998 s/^/S["/; s/!.*/"]=/
18001 s/^[^!]*!//
18002 :repl
18003 t repl
18004 s/'"$ac_delim"'$//
18005 t delim
18008 s/\(.\{148\}\).*/\1/
18009 t more1
18010 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18013 b repl
18014 :more1
18015 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18018 s/.\{148\}//
18019 t nl
18020 :delim
18022 s/\(.\{148\}\).*/\1/
18023 t more2
18024 s/["\\]/\\&/g; s/^/"/; s/$/"/
18027 :more2
18028 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18031 s/.\{148\}//
18032 t delim
18033 ' <conf$$subs.awk | sed '
18034 /^[^""]/{
18036 s/\n//
18038 ' >>$CONFIG_STATUS || ac_write_fail=1
18039 rm -f conf$$subs.awk
18040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18041 _ACAWK
18042 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18043 for (key in S) S_is_set[key] = 1
18044 FS = "\a"
18048 line = $ 0
18049 nfields = split(line, field, "@")
18050 substed = 0
18051 len = length(field[1])
18052 for (i = 2; i < nfields; i++) {
18053 key = field[i]
18054 keylen = length(key)
18055 if (S_is_set[key]) {
18056 value = S[key]
18057 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18058 len += length(value) + length(field[++i])
18059 substed = 1
18060 } else
18061 len += 1 + keylen
18064 print line
18067 _ACAWK
18068 _ACEOF
18069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18070 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18071 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18072 else
18074 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18075 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18076 _ACEOF
18078 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18079 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18080 # trailing colons and then remove the whole line if VPATH becomes empty
18081 # (actually we leave an empty line to preserve line numbers).
18082 if test "x$srcdir" = x.; then
18083 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18084 s/:*\$(srcdir):*/:/
18085 s/:*\${srcdir}:*/:/
18086 s/:*@srcdir@:*/:/
18087 s/^\([^=]*=[ ]*\):*/\1/
18088 s/:*$//
18089 s/^[^=]*=[ ]*$//
18093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18094 fi # test -n "$CONFIG_FILES"
18096 # Set up the scripts for CONFIG_HEADERS section.
18097 # No need to generate them if there are no CONFIG_HEADERS.
18098 # This happens for instance with `./config.status Makefile'.
18099 if test -n "$CONFIG_HEADERS"; then
18100 cat >"$tmp/defines.awk" <<\_ACAWK ||
18101 BEGIN {
18102 _ACEOF
18104 # Transform confdefs.h into an awk script `defines.awk', embedded as
18105 # here-document in config.status, that substitutes the proper values into
18106 # config.h.in to produce config.h.
18108 # Create a delimiter string that does not exist in confdefs.h, to ease
18109 # handling of long lines.
18110 ac_delim='%!_!# '
18111 for ac_last_try in false false :; do
18112 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18113 if test -z "$ac_t"; then
18114 break
18115 elif $ac_last_try; then
18116 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18117 else
18118 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18120 done
18122 # For the awk script, D is an array of macro values keyed by name,
18123 # likewise P contains macro parameters if any. Preserve backslash
18124 # newline sequences.
18126 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18127 sed -n '
18128 s/.\{148\}/&'"$ac_delim"'/g
18129 t rset
18130 :rset
18131 s/^[ ]*#[ ]*define[ ][ ]*/ /
18132 t def
18134 :def
18135 s/\\$//
18136 t bsnl
18137 s/["\\]/\\&/g
18138 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18139 D["\1"]=" \3"/p
18140 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18142 :bsnl
18143 s/["\\]/\\&/g
18144 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18145 D["\1"]=" \3\\\\\\n"\\/p
18146 t cont
18147 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18148 t cont
18150 :cont
18152 s/.\{148\}/&'"$ac_delim"'/g
18153 t clear
18154 :clear
18155 s/\\$//
18156 t bsnlc
18157 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18159 :bsnlc
18160 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18161 b cont
18162 ' <confdefs.h | sed '
18163 s/'"$ac_delim"'/"\\\
18164 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18167 for (key in D) D_is_set[key] = 1
18168 FS = "\a"
18170 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18171 line = \$ 0
18172 split(line, arg, " ")
18173 if (arg[1] == "#") {
18174 defundef = arg[2]
18175 mac1 = arg[3]
18176 } else {
18177 defundef = substr(arg[1], 2)
18178 mac1 = arg[2]
18180 split(mac1, mac2, "(") #)
18181 macro = mac2[1]
18182 prefix = substr(line, 1, index(line, defundef) - 1)
18183 if (D_is_set[macro]) {
18184 # Preserve the white space surrounding the "#".
18185 print prefix "define", macro P[macro] D[macro]
18186 next
18187 } else {
18188 # Replace #undef with comments. This is necessary, for example,
18189 # in the case of _POSIX_SOURCE, which is predefined and required
18190 # on some systems where configure will not decide to define it.
18191 if (defundef == "undef") {
18192 print "/*", prefix defundef, macro, "*/"
18193 next
18197 { print }
18198 _ACAWK
18199 _ACEOF
18200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18201 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18202 fi # test -n "$CONFIG_HEADERS"
18205 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18206 shift
18207 for ac_tag
18209 case $ac_tag in
18210 :[FHLC]) ac_mode=$ac_tag; continue;;
18211 esac
18212 case $ac_mode$ac_tag in
18213 :[FHL]*:*);;
18214 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18215 :[FH]-) ac_tag=-:-;;
18216 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18217 esac
18218 ac_save_IFS=$IFS
18219 IFS=:
18220 set x $ac_tag
18221 IFS=$ac_save_IFS
18222 shift
18223 ac_file=$1
18224 shift
18226 case $ac_mode in
18227 :L) ac_source=$1;;
18228 :[FH])
18229 ac_file_inputs=
18230 for ac_f
18232 case $ac_f in
18233 -) ac_f="$tmp/stdin";;
18234 *) # Look for the file first in the build tree, then in the source tree
18235 # (if the path is not absolute). The absolute path cannot be DOS-style,
18236 # because $ac_f cannot contain `:'.
18237 test -f "$ac_f" ||
18238 case $ac_f in
18239 [\\/$]*) false;;
18240 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18241 esac ||
18242 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18243 esac
18244 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18245 as_fn_append ac_file_inputs " '$ac_f'"
18246 done
18248 # Let's still pretend it is `configure' which instantiates (i.e., don't
18249 # use $as_me), people would be surprised to read:
18250 # /* config.h. Generated by config.status. */
18251 configure_input='Generated from '`
18252 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18253 `' by configure.'
18254 if test x"$ac_file" != x-; then
18255 configure_input="$ac_file. $configure_input"
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18257 $as_echo "$as_me: creating $ac_file" >&6;}
18259 # Neutralize special characters interpreted by sed in replacement strings.
18260 case $configure_input in #(
18261 *\&* | *\|* | *\\* )
18262 ac_sed_conf_input=`$as_echo "$configure_input" |
18263 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18264 *) ac_sed_conf_input=$configure_input;;
18265 esac
18267 case $ac_tag in
18268 *:-:* | *:-) cat >"$tmp/stdin" \
18269 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18270 esac
18272 esac
18274 ac_dir=`$as_dirname -- "$ac_file" ||
18275 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18276 X"$ac_file" : 'X\(//\)[^/]' \| \
18277 X"$ac_file" : 'X\(//\)$' \| \
18278 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18279 $as_echo X"$ac_file" |
18280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18281 s//\1/
18284 /^X\(\/\/\)[^/].*/{
18285 s//\1/
18288 /^X\(\/\/\)$/{
18289 s//\1/
18292 /^X\(\/\).*/{
18293 s//\1/
18296 s/.*/./; q'`
18297 as_dir="$ac_dir"; as_fn_mkdir_p
18298 ac_builddir=.
18300 case "$ac_dir" in
18301 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18303 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18304 # A ".." for each directory in $ac_dir_suffix.
18305 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18306 case $ac_top_builddir_sub in
18307 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18308 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18309 esac ;;
18310 esac
18311 ac_abs_top_builddir=$ac_pwd
18312 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18313 # for backward compatibility:
18314 ac_top_builddir=$ac_top_build_prefix
18316 case $srcdir in
18317 .) # We are building in place.
18318 ac_srcdir=.
18319 ac_top_srcdir=$ac_top_builddir_sub
18320 ac_abs_top_srcdir=$ac_pwd ;;
18321 [\\/]* | ?:[\\/]* ) # Absolute name.
18322 ac_srcdir=$srcdir$ac_dir_suffix;
18323 ac_top_srcdir=$srcdir
18324 ac_abs_top_srcdir=$srcdir ;;
18325 *) # Relative name.
18326 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18327 ac_top_srcdir=$ac_top_build_prefix$srcdir
18328 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18329 esac
18330 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18333 case $ac_mode in
18336 # CONFIG_FILE
18339 case $INSTALL in
18340 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18341 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18342 esac
18343 ac_MKDIR_P=$MKDIR_P
18344 case $MKDIR_P in
18345 [\\/$]* | ?:[\\/]* ) ;;
18346 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18347 esac
18348 _ACEOF
18350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18351 # If the template does not know about datarootdir, expand it.
18352 # FIXME: This hack should be removed a few years after 2.60.
18353 ac_datarootdir_hack=; ac_datarootdir_seen=
18354 ac_sed_dataroot='
18355 /datarootdir/ {
18359 /@datadir@/p
18360 /@docdir@/p
18361 /@infodir@/p
18362 /@localedir@/p
18363 /@mandir@/p'
18364 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18365 *datarootdir*) ac_datarootdir_seen=yes;;
18366 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18368 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18369 _ACEOF
18370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18371 ac_datarootdir_hack='
18372 s&@datadir@&$datadir&g
18373 s&@docdir@&$docdir&g
18374 s&@infodir@&$infodir&g
18375 s&@localedir@&$localedir&g
18376 s&@mandir@&$mandir&g
18377 s&\\\${datarootdir}&$datarootdir&g' ;;
18378 esac
18379 _ACEOF
18381 # Neutralize VPATH when `$srcdir' = `.'.
18382 # Shell code in configure.ac might set extrasub.
18383 # FIXME: do we really want to maintain this feature?
18384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18385 ac_sed_extra="$ac_vpsub
18386 $extrasub
18387 _ACEOF
18388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18390 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18391 s|@configure_input@|$ac_sed_conf_input|;t t
18392 s&@top_builddir@&$ac_top_builddir_sub&;t t
18393 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18394 s&@srcdir@&$ac_srcdir&;t t
18395 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18396 s&@top_srcdir@&$ac_top_srcdir&;t t
18397 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18398 s&@builddir@&$ac_builddir&;t t
18399 s&@abs_builddir@&$ac_abs_builddir&;t t
18400 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18401 s&@INSTALL@&$ac_INSTALL&;t t
18402 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18403 $ac_datarootdir_hack
18405 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18406 || as_fn_error "could not create $ac_file" "$LINENO" 5
18408 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18409 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18410 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18412 which seems to be undefined. Please make sure it is defined." >&5
18413 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18414 which seems to be undefined. Please make sure it is defined." >&2;}
18416 rm -f "$tmp/stdin"
18417 case $ac_file in
18418 -) cat "$tmp/out" && rm -f "$tmp/out";;
18419 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18420 esac \
18421 || as_fn_error "could not create $ac_file" "$LINENO" 5
18425 # CONFIG_HEADER
18427 if test x"$ac_file" != x-; then
18429 $as_echo "/* $configure_input */" \
18430 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18431 } >"$tmp/config.h" \
18432 || as_fn_error "could not create $ac_file" "$LINENO" 5
18433 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18435 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18436 else
18437 rm -f "$ac_file"
18438 mv "$tmp/config.h" "$ac_file" \
18439 || as_fn_error "could not create $ac_file" "$LINENO" 5
18441 else
18442 $as_echo "/* $configure_input */" \
18443 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18444 || as_fn_error "could not create -" "$LINENO" 5
18446 # Compute "$ac_file"'s index in $config_headers.
18447 _am_arg="$ac_file"
18448 _am_stamp_count=1
18449 for _am_header in $config_headers :; do
18450 case $_am_header in
18451 $_am_arg | $_am_arg:* )
18452 break ;;
18454 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18455 esac
18456 done
18457 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18458 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18459 X"$_am_arg" : 'X\(//\)[^/]' \| \
18460 X"$_am_arg" : 'X\(//\)$' \| \
18461 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18462 $as_echo X"$_am_arg" |
18463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18464 s//\1/
18467 /^X\(\/\/\)[^/].*/{
18468 s//\1/
18471 /^X\(\/\/\)$/{
18472 s//\1/
18475 /^X\(\/\).*/{
18476 s//\1/
18479 s/.*/./; q'`/stamp-h$_am_stamp_count
18482 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18483 $as_echo "$as_me: executing $ac_file commands" >&6;}
18485 esac
18488 case $ac_file$ac_mode in
18489 "default-1":C)
18490 # Only add multilib support code if we just rebuilt the top-level
18491 # Makefile.
18492 case " $CONFIG_FILES " in
18493 *" Makefile "*)
18494 ac_file=Makefile . ${multi_basedir}/config-ml.in
18496 esac ;;
18497 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18498 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18499 # are listed without --file. Let's play safe and only enable the eval
18500 # if we detect the quoting.
18501 case $CONFIG_FILES in
18502 *\'*) eval set x "$CONFIG_FILES" ;;
18503 *) set x $CONFIG_FILES ;;
18504 esac
18505 shift
18506 for mf
18508 # Strip MF so we end up with the name of the file.
18509 mf=`echo "$mf" | sed -e 's/:.*$//'`
18510 # Check whether this is an Automake generated Makefile or not.
18511 # We used to match only the files named `Makefile.in', but
18512 # some people rename them; so instead we look at the file content.
18513 # Grep'ing the first line is not enough: some people post-process
18514 # each Makefile.in and add a new line on top of each file to say so.
18515 # Grep'ing the whole file is not good either: AIX grep has a line
18516 # limit of 2048, but all sed's we know have understand at least 4000.
18517 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18518 dirpart=`$as_dirname -- "$mf" ||
18519 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18520 X"$mf" : 'X\(//\)[^/]' \| \
18521 X"$mf" : 'X\(//\)$' \| \
18522 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18523 $as_echo X"$mf" |
18524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18525 s//\1/
18528 /^X\(\/\/\)[^/].*/{
18529 s//\1/
18532 /^X\(\/\/\)$/{
18533 s//\1/
18536 /^X\(\/\).*/{
18537 s//\1/
18540 s/.*/./; q'`
18541 else
18542 continue
18544 # Extract the definition of DEPDIR, am__include, and am__quote
18545 # from the Makefile without running `make'.
18546 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18547 test -z "$DEPDIR" && continue
18548 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18549 test -z "am__include" && continue
18550 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18551 # When using ansi2knr, U may be empty or an underscore; expand it
18552 U=`sed -n 's/^U = //p' < "$mf"`
18553 # Find all dependency output files, they are included files with
18554 # $(DEPDIR) in their names. We invoke sed twice because it is the
18555 # simplest approach to changing $(DEPDIR) to its actual value in the
18556 # expansion.
18557 for file in `sed -n "
18558 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18559 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18560 # Make sure the directory exists.
18561 test -f "$dirpart/$file" && continue
18562 fdir=`$as_dirname -- "$file" ||
18563 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18564 X"$file" : 'X\(//\)[^/]' \| \
18565 X"$file" : 'X\(//\)$' \| \
18566 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18567 $as_echo X"$file" |
18568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18569 s//\1/
18572 /^X\(\/\/\)[^/].*/{
18573 s//\1/
18576 /^X\(\/\/\)$/{
18577 s//\1/
18580 /^X\(\/\).*/{
18581 s//\1/
18584 s/.*/./; q'`
18585 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18586 # echo "creating $dirpart/$file"
18587 echo '# dummy' > "$dirpart/$file"
18588 done
18589 done
18592 "libtool":C)
18594 # See if we are running on zsh, and set the options which allow our
18595 # commands through without removal of \ escapes.
18596 if test -n "${ZSH_VERSION+set}" ; then
18597 setopt NO_GLOB_SUBST
18600 cfgfile="${ofile}T"
18601 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18602 $RM "$cfgfile"
18604 cat <<_LT_EOF >> "$cfgfile"
18605 #! $SHELL
18607 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18608 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18609 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18610 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18612 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18613 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18614 # Written by Gordon Matzigkeit, 1996
18616 # This file is part of GNU Libtool.
18618 # GNU Libtool is free software; you can redistribute it and/or
18619 # modify it under the terms of the GNU General Public License as
18620 # published by the Free Software Foundation; either version 2 of
18621 # the License, or (at your option) any later version.
18623 # As a special exception to the GNU General Public License,
18624 # if you distribute this file as part of a program or library that
18625 # is built using GNU Libtool, you may include this file under the
18626 # same distribution terms that you use for the rest of that program.
18628 # GNU Libtool is distributed in the hope that it will be useful,
18629 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18630 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18631 # GNU General Public License for more details.
18633 # You should have received a copy of the GNU General Public License
18634 # along with GNU Libtool; see the file COPYING. If not, a copy
18635 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18636 # obtained by writing to the Free Software Foundation, Inc.,
18637 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18640 # The names of the tagged configurations supported by this script.
18641 available_tags="FC "
18643 # ### BEGIN LIBTOOL CONFIG
18645 # Which release of libtool.m4 was used?
18646 macro_version=$macro_version
18647 macro_revision=$macro_revision
18649 # Whether or not to build shared libraries.
18650 build_libtool_libs=$enable_shared
18652 # Whether or not to build static libraries.
18653 build_old_libs=$enable_static
18655 # What type of objects to build.
18656 pic_mode=$pic_mode
18658 # Whether or not to optimize for fast installation.
18659 fast_install=$enable_fast_install
18661 # Shell to use when invoking shell scripts.
18662 SHELL=$lt_SHELL
18664 # An echo program that protects backslashes.
18665 ECHO=$lt_ECHO
18667 # The host system.
18668 host_alias=$host_alias
18669 host=$host
18670 host_os=$host_os
18672 # The build system.
18673 build_alias=$build_alias
18674 build=$build
18675 build_os=$build_os
18677 # A sed program that does not truncate output.
18678 SED=$lt_SED
18680 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18681 Xsed="\$SED -e 1s/^X//"
18683 # A grep program that handles long lines.
18684 GREP=$lt_GREP
18686 # An ERE matcher.
18687 EGREP=$lt_EGREP
18689 # A literal string matcher.
18690 FGREP=$lt_FGREP
18692 # A BSD- or MS-compatible name lister.
18693 NM=$lt_NM
18695 # Whether we need soft or hard links.
18696 LN_S=$lt_LN_S
18698 # What is the maximum length of a command?
18699 max_cmd_len=$max_cmd_len
18701 # Object file suffix (normally "o").
18702 objext=$ac_objext
18704 # Executable file suffix (normally "").
18705 exeext=$exeext
18707 # whether the shell understands "unset".
18708 lt_unset=$lt_unset
18710 # turn spaces into newlines.
18711 SP2NL=$lt_lt_SP2NL
18713 # turn newlines into spaces.
18714 NL2SP=$lt_lt_NL2SP
18716 # An object symbol dumper.
18717 OBJDUMP=$lt_OBJDUMP
18719 # Method to check whether dependent libraries are shared objects.
18720 deplibs_check_method=$lt_deplibs_check_method
18722 # Command to use when deplibs_check_method == "file_magic".
18723 file_magic_cmd=$lt_file_magic_cmd
18725 # The archiver.
18726 AR=$lt_AR
18727 AR_FLAGS=$lt_AR_FLAGS
18729 # A symbol stripping program.
18730 STRIP=$lt_STRIP
18732 # Commands used to install an old-style archive.
18733 RANLIB=$lt_RANLIB
18734 old_postinstall_cmds=$lt_old_postinstall_cmds
18735 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18737 # Whether to use a lock for old archive extraction.
18738 lock_old_archive_extraction=$lock_old_archive_extraction
18740 # A C compiler.
18741 LTCC=$lt_CC
18743 # LTCC compiler flags.
18744 LTCFLAGS=$lt_CFLAGS
18746 # Take the output of nm and produce a listing of raw symbols and C names.
18747 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18749 # Transform the output of nm in a proper C declaration.
18750 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18752 # Transform the output of nm in a C name address pair.
18753 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18755 # Transform the output of nm in a C name address pair when lib prefix is needed.
18756 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18758 # The name of the directory that contains temporary libtool files.
18759 objdir=$objdir
18761 # Used to examine libraries when file_magic_cmd begins with "file".
18762 MAGIC_CMD=$MAGIC_CMD
18764 # Must we lock files when doing compilation?
18765 need_locks=$lt_need_locks
18767 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18768 DSYMUTIL=$lt_DSYMUTIL
18770 # Tool to change global to local symbols on Mac OS X.
18771 NMEDIT=$lt_NMEDIT
18773 # Tool to manipulate fat objects and archives on Mac OS X.
18774 LIPO=$lt_LIPO
18776 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18777 OTOOL=$lt_OTOOL
18779 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18780 OTOOL64=$lt_OTOOL64
18782 # Old archive suffix (normally "a").
18783 libext=$libext
18785 # Shared library suffix (normally ".so").
18786 shrext_cmds=$lt_shrext_cmds
18788 # The commands to extract the exported symbol list from a shared archive.
18789 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18791 # Variables whose values should be saved in libtool wrapper scripts and
18792 # restored at link time.
18793 variables_saved_for_relink=$lt_variables_saved_for_relink
18795 # Do we need the "lib" prefix for modules?
18796 need_lib_prefix=$need_lib_prefix
18798 # Do we need a version for libraries?
18799 need_version=$need_version
18801 # Library versioning type.
18802 version_type=$version_type
18804 # Shared library runtime path variable.
18805 runpath_var=$runpath_var
18807 # Shared library path variable.
18808 shlibpath_var=$shlibpath_var
18810 # Is shlibpath searched before the hard-coded library search path?
18811 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18813 # Format of library name prefix.
18814 libname_spec=$lt_libname_spec
18816 # List of archive names. First name is the real one, the rest are links.
18817 # The last name is the one that the linker finds with -lNAME
18818 library_names_spec=$lt_library_names_spec
18820 # The coded name of the library, if different from the real name.
18821 soname_spec=$lt_soname_spec
18823 # Permission mode override for installation of shared libraries.
18824 install_override_mode=$lt_install_override_mode
18826 # Command to use after installation of a shared archive.
18827 postinstall_cmds=$lt_postinstall_cmds
18829 # Command to use after uninstallation of a shared archive.
18830 postuninstall_cmds=$lt_postuninstall_cmds
18832 # Commands used to finish a libtool library installation in a directory.
18833 finish_cmds=$lt_finish_cmds
18835 # As "finish_cmds", except a single script fragment to be evaled but
18836 # not shown.
18837 finish_eval=$lt_finish_eval
18839 # Whether we should hardcode library paths into libraries.
18840 hardcode_into_libs=$hardcode_into_libs
18842 # Compile-time system search path for libraries.
18843 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18845 # Run-time system search path for libraries.
18846 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18848 # Whether dlopen is supported.
18849 dlopen_support=$enable_dlopen
18851 # Whether dlopen of programs is supported.
18852 dlopen_self=$enable_dlopen_self
18854 # Whether dlopen of statically linked programs is supported.
18855 dlopen_self_static=$enable_dlopen_self_static
18857 # Commands to strip libraries.
18858 old_striplib=$lt_old_striplib
18859 striplib=$lt_striplib
18862 # The linker used to build libraries.
18863 LD=$lt_LD
18865 # How to create reloadable object files.
18866 reload_flag=$lt_reload_flag
18867 reload_cmds=$lt_reload_cmds
18869 # Commands used to build an old-style archive.
18870 old_archive_cmds=$lt_old_archive_cmds
18872 # A language specific compiler.
18873 CC=$lt_compiler
18875 # Is the compiler the GNU compiler?
18876 with_gcc=$GCC
18878 # Compiler flag to turn off builtin functions.
18879 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18881 # How to pass a linker flag through the compiler.
18882 wl=$lt_lt_prog_compiler_wl
18884 # Additional compiler flags for building library objects.
18885 pic_flag=$lt_lt_prog_compiler_pic
18887 # Compiler flag to prevent dynamic linking.
18888 link_static_flag=$lt_lt_prog_compiler_static
18890 # Does compiler simultaneously support -c and -o options?
18891 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18893 # Whether or not to add -lc for building shared libraries.
18894 build_libtool_need_lc=$archive_cmds_need_lc
18896 # Whether or not to disallow shared libs when runtime libs are static.
18897 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18899 # Compiler flag to allow reflexive dlopens.
18900 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18902 # Compiler flag to generate shared objects directly from archives.
18903 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18905 # Whether the compiler copes with passing no objects directly.
18906 compiler_needs_object=$lt_compiler_needs_object
18908 # Create an old-style archive from a shared archive.
18909 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18911 # Create a temporary old-style archive to link instead of a shared archive.
18912 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18914 # Commands used to build a shared archive.
18915 archive_cmds=$lt_archive_cmds
18916 archive_expsym_cmds=$lt_archive_expsym_cmds
18918 # Commands used to build a loadable module if different from building
18919 # a shared archive.
18920 module_cmds=$lt_module_cmds
18921 module_expsym_cmds=$lt_module_expsym_cmds
18923 # Whether we are building with GNU ld or not.
18924 with_gnu_ld=$lt_with_gnu_ld
18926 # Flag that allows shared libraries with undefined symbols to be built.
18927 allow_undefined_flag=$lt_allow_undefined_flag
18929 # Flag that enforces no undefined symbols.
18930 no_undefined_flag=$lt_no_undefined_flag
18932 # Flag to hardcode \$libdir into a binary during linking.
18933 # This must work even if \$libdir does not exist
18934 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18936 # If ld is used when linking, flag to hardcode \$libdir into a binary
18937 # during linking. This must work even if \$libdir does not exist.
18938 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18940 # Whether we need a single "-rpath" flag with a separated argument.
18941 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18943 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18944 # DIR into the resulting binary.
18945 hardcode_direct=$hardcode_direct
18947 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18948 # DIR into the resulting binary and the resulting library dependency is
18949 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18950 # library is relocated.
18951 hardcode_direct_absolute=$hardcode_direct_absolute
18953 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18954 # into the resulting binary.
18955 hardcode_minus_L=$hardcode_minus_L
18957 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18958 # into the resulting binary.
18959 hardcode_shlibpath_var=$hardcode_shlibpath_var
18961 # Set to "yes" if building a shared library automatically hardcodes DIR
18962 # into the library and all subsequent libraries and executables linked
18963 # against it.
18964 hardcode_automatic=$hardcode_automatic
18966 # Set to yes if linker adds runtime paths of dependent libraries
18967 # to runtime path list.
18968 inherit_rpath=$inherit_rpath
18970 # Whether libtool must link a program against all its dependency libraries.
18971 link_all_deplibs=$link_all_deplibs
18973 # Fix the shell variable \$srcfile for the compiler.
18974 fix_srcfile_path=$lt_fix_srcfile_path
18976 # Set to "yes" if exported symbols are required.
18977 always_export_symbols=$always_export_symbols
18979 # The commands to list exported symbols.
18980 export_symbols_cmds=$lt_export_symbols_cmds
18982 # Symbols that should not be listed in the preloaded symbols.
18983 exclude_expsyms=$lt_exclude_expsyms
18985 # Symbols that must always be exported.
18986 include_expsyms=$lt_include_expsyms
18988 # Commands necessary for linking programs (against libraries) with templates.
18989 prelink_cmds=$lt_prelink_cmds
18991 # Specify filename containing input files.
18992 file_list_spec=$lt_file_list_spec
18994 # How to hardcode a shared library path into an executable.
18995 hardcode_action=$hardcode_action
18997 # The directories searched by this compiler when creating a shared library.
18998 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19000 # Dependencies to place before and after the objects being linked to
19001 # create a shared library.
19002 predep_objects=$lt_predep_objects
19003 postdep_objects=$lt_postdep_objects
19004 predeps=$lt_predeps
19005 postdeps=$lt_postdeps
19007 # The library search path used internally by the compiler when linking
19008 # a shared library.
19009 compiler_lib_search_path=$lt_compiler_lib_search_path
19011 # ### END LIBTOOL CONFIG
19013 _LT_EOF
19015 case $host_os in
19016 aix3*)
19017 cat <<\_LT_EOF >> "$cfgfile"
19018 # AIX sometimes has problems with the GCC collect2 program. For some
19019 # reason, if we set the COLLECT_NAMES environment variable, the problems
19020 # vanish in a puff of smoke.
19021 if test "X${COLLECT_NAMES+set}" != Xset; then
19022 COLLECT_NAMES=
19023 export COLLECT_NAMES
19025 _LT_EOF
19027 esac
19030 ltmain="$ac_aux_dir/ltmain.sh"
19033 # We use sed instead of cat because bash on DJGPP gets confused if
19034 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19035 # text mode, it properly converts lines to CR/LF. This bash problem
19036 # is reportedly fixed, but why not run on old versions too?
19037 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19038 || (rm -f "$cfgfile"; exit 1)
19040 case $xsi_shell in
19041 yes)
19042 cat << \_LT_EOF >> "$cfgfile"
19044 # func_dirname file append nondir_replacement
19045 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19046 # otherwise set result to NONDIR_REPLACEMENT.
19047 func_dirname ()
19049 case ${1} in
19050 */*) func_dirname_result="${1%/*}${2}" ;;
19051 * ) func_dirname_result="${3}" ;;
19052 esac
19055 # func_basename file
19056 func_basename ()
19058 func_basename_result="${1##*/}"
19061 # func_dirname_and_basename file append nondir_replacement
19062 # perform func_basename and func_dirname in a single function
19063 # call:
19064 # dirname: Compute the dirname of FILE. If nonempty,
19065 # add APPEND to the result, otherwise set result
19066 # to NONDIR_REPLACEMENT.
19067 # value returned in "$func_dirname_result"
19068 # basename: Compute filename of FILE.
19069 # value retuned in "$func_basename_result"
19070 # Implementation must be kept synchronized with func_dirname
19071 # and func_basename. For efficiency, we do not delegate to
19072 # those functions but instead duplicate the functionality here.
19073 func_dirname_and_basename ()
19075 case ${1} in
19076 */*) func_dirname_result="${1%/*}${2}" ;;
19077 * ) func_dirname_result="${3}" ;;
19078 esac
19079 func_basename_result="${1##*/}"
19082 # func_stripname prefix suffix name
19083 # strip PREFIX and SUFFIX off of NAME.
19084 # PREFIX and SUFFIX must not contain globbing or regex special
19085 # characters, hashes, percent signs, but SUFFIX may contain a leading
19086 # dot (in which case that matches only a dot).
19087 func_stripname ()
19089 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19090 # positional parameters, so assign one to ordinary parameter first.
19091 func_stripname_result=${3}
19092 func_stripname_result=${func_stripname_result#"${1}"}
19093 func_stripname_result=${func_stripname_result%"${2}"}
19096 # func_opt_split
19097 func_opt_split ()
19099 func_opt_split_opt=${1%%=*}
19100 func_opt_split_arg=${1#*=}
19103 # func_lo2o object
19104 func_lo2o ()
19106 case ${1} in
19107 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19108 *) func_lo2o_result=${1} ;;
19109 esac
19112 # func_xform libobj-or-source
19113 func_xform ()
19115 func_xform_result=${1%.*}.lo
19118 # func_arith arithmetic-term...
19119 func_arith ()
19121 func_arith_result=$(( $* ))
19124 # func_len string
19125 # STRING may not start with a hyphen.
19126 func_len ()
19128 func_len_result=${#1}
19131 _LT_EOF
19133 *) # Bourne compatible functions.
19134 cat << \_LT_EOF >> "$cfgfile"
19136 # func_dirname file append nondir_replacement
19137 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19138 # otherwise set result to NONDIR_REPLACEMENT.
19139 func_dirname ()
19141 # Extract subdirectory from the argument.
19142 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19143 if test "X$func_dirname_result" = "X${1}"; then
19144 func_dirname_result="${3}"
19145 else
19146 func_dirname_result="$func_dirname_result${2}"
19150 # func_basename file
19151 func_basename ()
19153 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19157 # func_stripname prefix suffix name
19158 # strip PREFIX and SUFFIX off of NAME.
19159 # PREFIX and SUFFIX must not contain globbing or regex special
19160 # characters, hashes, percent signs, but SUFFIX may contain a leading
19161 # dot (in which case that matches only a dot).
19162 # func_strip_suffix prefix name
19163 func_stripname ()
19165 case ${2} in
19166 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19167 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19168 esac
19171 # sed scripts:
19172 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19173 my_sed_long_arg='1s/^-[^=]*=//'
19175 # func_opt_split
19176 func_opt_split ()
19178 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19179 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19182 # func_lo2o object
19183 func_lo2o ()
19185 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19188 # func_xform libobj-or-source
19189 func_xform ()
19191 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19194 # func_arith arithmetic-term...
19195 func_arith ()
19197 func_arith_result=`expr "$@"`
19200 # func_len string
19201 # STRING may not start with a hyphen.
19202 func_len ()
19204 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19207 _LT_EOF
19208 esac
19210 case $lt_shell_append in
19211 yes)
19212 cat << \_LT_EOF >> "$cfgfile"
19214 # func_append var value
19215 # Append VALUE to the end of shell variable VAR.
19216 func_append ()
19218 eval "$1+=\$2"
19220 _LT_EOF
19223 cat << \_LT_EOF >> "$cfgfile"
19225 # func_append var value
19226 # Append VALUE to the end of shell variable VAR.
19227 func_append ()
19229 eval "$1=\$$1\$2"
19232 _LT_EOF
19234 esac
19237 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19238 || (rm -f "$cfgfile"; exit 1)
19240 mv -f "$cfgfile" "$ofile" ||
19241 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19242 chmod +x "$ofile"
19245 cat <<_LT_EOF >> "$ofile"
19247 # ### BEGIN LIBTOOL TAG CONFIG: FC
19249 # The linker used to build libraries.
19250 LD=$lt_LD_FC
19252 # How to create reloadable object files.
19253 reload_flag=$lt_reload_flag_FC
19254 reload_cmds=$lt_reload_cmds_FC
19256 # Commands used to build an old-style archive.
19257 old_archive_cmds=$lt_old_archive_cmds_FC
19259 # A language specific compiler.
19260 CC=$lt_compiler_FC
19262 # Is the compiler the GNU compiler?
19263 with_gcc=$GCC_FC
19265 # Compiler flag to turn off builtin functions.
19266 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19268 # How to pass a linker flag through the compiler.
19269 wl=$lt_lt_prog_compiler_wl_FC
19271 # Additional compiler flags for building library objects.
19272 pic_flag=$lt_lt_prog_compiler_pic_FC
19274 # Compiler flag to prevent dynamic linking.
19275 link_static_flag=$lt_lt_prog_compiler_static_FC
19277 # Does compiler simultaneously support -c and -o options?
19278 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19280 # Whether or not to add -lc for building shared libraries.
19281 build_libtool_need_lc=$archive_cmds_need_lc_FC
19283 # Whether or not to disallow shared libs when runtime libs are static.
19284 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19286 # Compiler flag to allow reflexive dlopens.
19287 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19289 # Compiler flag to generate shared objects directly from archives.
19290 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19292 # Whether the compiler copes with passing no objects directly.
19293 compiler_needs_object=$lt_compiler_needs_object_FC
19295 # Create an old-style archive from a shared archive.
19296 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19298 # Create a temporary old-style archive to link instead of a shared archive.
19299 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19301 # Commands used to build a shared archive.
19302 archive_cmds=$lt_archive_cmds_FC
19303 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19305 # Commands used to build a loadable module if different from building
19306 # a shared archive.
19307 module_cmds=$lt_module_cmds_FC
19308 module_expsym_cmds=$lt_module_expsym_cmds_FC
19310 # Whether we are building with GNU ld or not.
19311 with_gnu_ld=$lt_with_gnu_ld_FC
19313 # Flag that allows shared libraries with undefined symbols to be built.
19314 allow_undefined_flag=$lt_allow_undefined_flag_FC
19316 # Flag that enforces no undefined symbols.
19317 no_undefined_flag=$lt_no_undefined_flag_FC
19319 # Flag to hardcode \$libdir into a binary during linking.
19320 # This must work even if \$libdir does not exist
19321 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19323 # If ld is used when linking, flag to hardcode \$libdir into a binary
19324 # during linking. This must work even if \$libdir does not exist.
19325 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19327 # Whether we need a single "-rpath" flag with a separated argument.
19328 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19330 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19331 # DIR into the resulting binary.
19332 hardcode_direct=$hardcode_direct_FC
19334 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19335 # DIR into the resulting binary and the resulting library dependency is
19336 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19337 # library is relocated.
19338 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19340 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19341 # into the resulting binary.
19342 hardcode_minus_L=$hardcode_minus_L_FC
19344 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19345 # into the resulting binary.
19346 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19348 # Set to "yes" if building a shared library automatically hardcodes DIR
19349 # into the library and all subsequent libraries and executables linked
19350 # against it.
19351 hardcode_automatic=$hardcode_automatic_FC
19353 # Set to yes if linker adds runtime paths of dependent libraries
19354 # to runtime path list.
19355 inherit_rpath=$inherit_rpath_FC
19357 # Whether libtool must link a program against all its dependency libraries.
19358 link_all_deplibs=$link_all_deplibs_FC
19360 # Fix the shell variable \$srcfile for the compiler.
19361 fix_srcfile_path=$lt_fix_srcfile_path_FC
19363 # Set to "yes" if exported symbols are required.
19364 always_export_symbols=$always_export_symbols_FC
19366 # The commands to list exported symbols.
19367 export_symbols_cmds=$lt_export_symbols_cmds_FC
19369 # Symbols that should not be listed in the preloaded symbols.
19370 exclude_expsyms=$lt_exclude_expsyms_FC
19372 # Symbols that must always be exported.
19373 include_expsyms=$lt_include_expsyms_FC
19375 # Commands necessary for linking programs (against libraries) with templates.
19376 prelink_cmds=$lt_prelink_cmds_FC
19378 # Specify filename containing input files.
19379 file_list_spec=$lt_file_list_spec_FC
19381 # How to hardcode a shared library path into an executable.
19382 hardcode_action=$hardcode_action_FC
19384 # The directories searched by this compiler when creating a shared library.
19385 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19387 # Dependencies to place before and after the objects being linked to
19388 # create a shared library.
19389 predep_objects=$lt_predep_objects_FC
19390 postdep_objects=$lt_postdep_objects_FC
19391 predeps=$lt_predeps_FC
19392 postdeps=$lt_postdeps_FC
19394 # The library search path used internally by the compiler when linking
19395 # a shared library.
19396 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19398 # ### END LIBTOOL TAG CONFIG: FC
19399 _LT_EOF
19402 "gstdint.h":C)
19403 if test "$GCC" = yes; then
19404 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19405 else
19406 echo "/* generated for $CC */" > tmp-stdint.h
19409 sed 's/^ *//' >> tmp-stdint.h <<EOF
19411 #ifndef GCC_GENERATED_STDINT_H
19412 #define GCC_GENERATED_STDINT_H 1
19414 #include <sys/types.h>
19417 if test "$acx_cv_header_stdint" != stdint.h; then
19418 echo "#include <stddef.h>" >> tmp-stdint.h
19420 if test "$acx_cv_header_stdint" != stddef.h; then
19421 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19424 sed 's/^ *//' >> tmp-stdint.h <<EOF
19425 /* glibc uses these symbols as guards to prevent redefinitions. */
19426 #ifdef __int8_t_defined
19427 #define _INT8_T
19428 #define _INT16_T
19429 #define _INT32_T
19430 #endif
19431 #ifdef __uint32_t_defined
19432 #define _UINT32_T
19433 #endif
19437 # ----------------- done header, emit basic int types -------------
19438 if test "$acx_cv_header_stdint" = stddef.h; then
19439 sed 's/^ *//' >> tmp-stdint.h <<EOF
19441 #ifndef _UINT8_T
19442 #define _UINT8_T
19443 #ifndef __uint8_t_defined
19444 #define __uint8_t_defined
19445 #ifndef uint8_t
19446 typedef unsigned $acx_cv_type_int8_t uint8_t;
19447 #endif
19448 #endif
19449 #endif
19451 #ifndef _UINT16_T
19452 #define _UINT16_T
19453 #ifndef __uint16_t_defined
19454 #define __uint16_t_defined
19455 #ifndef uint16_t
19456 typedef unsigned $acx_cv_type_int16_t uint16_t;
19457 #endif
19458 #endif
19459 #endif
19461 #ifndef _UINT32_T
19462 #define _UINT32_T
19463 #ifndef __uint32_t_defined
19464 #define __uint32_t_defined
19465 #ifndef uint32_t
19466 typedef unsigned $acx_cv_type_int32_t uint32_t;
19467 #endif
19468 #endif
19469 #endif
19471 #ifndef _INT8_T
19472 #define _INT8_T
19473 #ifndef __int8_t_defined
19474 #define __int8_t_defined
19475 #ifndef int8_t
19476 typedef $acx_cv_type_int8_t int8_t;
19477 #endif
19478 #endif
19479 #endif
19481 #ifndef _INT16_T
19482 #define _INT16_T
19483 #ifndef __int16_t_defined
19484 #define __int16_t_defined
19485 #ifndef int16_t
19486 typedef $acx_cv_type_int16_t int16_t;
19487 #endif
19488 #endif
19489 #endif
19491 #ifndef _INT32_T
19492 #define _INT32_T
19493 #ifndef __int32_t_defined
19494 #define __int32_t_defined
19495 #ifndef int32_t
19496 typedef $acx_cv_type_int32_t int32_t;
19497 #endif
19498 #endif
19499 #endif
19501 elif test "$ac_cv_type_u_int32_t" = yes; then
19502 sed 's/^ *//' >> tmp-stdint.h <<EOF
19504 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19505 #ifndef _INT8_T
19506 #define _INT8_T
19507 #endif
19508 #ifndef _INT16_T
19509 #define _INT16_T
19510 #endif
19511 #ifndef _INT32_T
19512 #define _INT32_T
19513 #endif
19515 #ifndef _UINT8_T
19516 #define _UINT8_T
19517 #ifndef __uint8_t_defined
19518 #define __uint8_t_defined
19519 #ifndef uint8_t
19520 typedef u_int8_t uint8_t;
19521 #endif
19522 #endif
19523 #endif
19525 #ifndef _UINT16_T
19526 #define _UINT16_T
19527 #ifndef __uint16_t_defined
19528 #define __uint16_t_defined
19529 #ifndef uint16_t
19530 typedef u_int16_t uint16_t;
19531 #endif
19532 #endif
19533 #endif
19535 #ifndef _UINT32_T
19536 #define _UINT32_T
19537 #ifndef __uint32_t_defined
19538 #define __uint32_t_defined
19539 #ifndef uint32_t
19540 typedef u_int32_t uint32_t;
19541 #endif
19542 #endif
19543 #endif
19545 else
19546 sed 's/^ *//' >> tmp-stdint.h <<EOF
19548 /* Some systems have guard macros to prevent redefinitions, define them. */
19549 #ifndef _INT8_T
19550 #define _INT8_T
19551 #endif
19552 #ifndef _INT16_T
19553 #define _INT16_T
19554 #endif
19555 #ifndef _INT32_T
19556 #define _INT32_T
19557 #endif
19558 #ifndef _UINT8_T
19559 #define _UINT8_T
19560 #endif
19561 #ifndef _UINT16_T
19562 #define _UINT16_T
19563 #endif
19564 #ifndef _UINT32_T
19565 #define _UINT32_T
19566 #endif
19570 # ------------- done basic int types, emit int64_t types ------------
19571 if test "$ac_cv_type_uint64_t" = yes; then
19572 sed 's/^ *//' >> tmp-stdint.h <<EOF
19574 /* system headers have good uint64_t and int64_t */
19575 #ifndef _INT64_T
19576 #define _INT64_T
19577 #endif
19578 #ifndef _UINT64_T
19579 #define _UINT64_T
19580 #endif
19582 elif test "$ac_cv_type_u_int64_t" = yes; then
19583 sed 's/^ *//' >> tmp-stdint.h <<EOF
19585 /* system headers have an u_int64_t (and int64_t) */
19586 #ifndef _INT64_T
19587 #define _INT64_T
19588 #endif
19589 #ifndef _UINT64_T
19590 #define _UINT64_T
19591 #ifndef __uint64_t_defined
19592 #define __uint64_t_defined
19593 #ifndef uint64_t
19594 typedef u_int64_t uint64_t;
19595 #endif
19596 #endif
19597 #endif
19599 elif test -n "$acx_cv_type_int64_t"; then
19600 sed 's/^ *//' >> tmp-stdint.h <<EOF
19602 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19603 #ifndef _INT64_T
19604 #define _INT64_T
19605 #ifndef int64_t
19606 typedef $acx_cv_type_int64_t int64_t;
19607 #endif
19608 #endif
19609 #ifndef _UINT64_T
19610 #define _UINT64_T
19611 #ifndef __uint64_t_defined
19612 #define __uint64_t_defined
19613 #ifndef uint64_t
19614 typedef unsigned $acx_cv_type_int64_t uint64_t;
19615 #endif
19616 #endif
19617 #endif
19619 else
19620 sed 's/^ *//' >> tmp-stdint.h <<EOF
19622 /* some common heuristics for int64_t, using compiler-specific tests */
19623 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19624 #ifndef _INT64_T
19625 #define _INT64_T
19626 #ifndef __int64_t_defined
19627 #ifndef int64_t
19628 typedef long long int64_t;
19629 #endif
19630 #endif
19631 #endif
19632 #ifndef _UINT64_T
19633 #define _UINT64_T
19634 #ifndef uint64_t
19635 typedef unsigned long long uint64_t;
19636 #endif
19637 #endif
19639 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19640 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19641 does not implement __extension__. But that compiler doesn't define
19642 __GNUC_MINOR__. */
19643 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19644 # define __extension__
19645 # endif
19647 # ifndef _INT64_T
19648 # define _INT64_T
19649 # ifndef int64_t
19650 __extension__ typedef long long int64_t;
19651 # endif
19652 # endif
19653 # ifndef _UINT64_T
19654 # define _UINT64_T
19655 # ifndef uint64_t
19656 __extension__ typedef unsigned long long uint64_t;
19657 # endif
19658 # endif
19660 #elif !defined __STRICT_ANSI__
19661 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19663 # ifndef _INT64_T
19664 # define _INT64_T
19665 # ifndef int64_t
19666 typedef __int64 int64_t;
19667 # endif
19668 # endif
19669 # ifndef _UINT64_T
19670 # define _UINT64_T
19671 # ifndef uint64_t
19672 typedef unsigned __int64 uint64_t;
19673 # endif
19674 # endif
19675 # endif /* compiler */
19677 #endif /* ANSI version */
19681 # ------------- done int64_t types, emit intptr types ------------
19682 if test "$ac_cv_type_uintptr_t" != yes; then
19683 sed 's/^ *//' >> tmp-stdint.h <<EOF
19685 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19686 #ifndef __uintptr_t_defined
19687 #ifndef uintptr_t
19688 typedef u$acx_cv_type_intptr_t uintptr_t;
19689 #endif
19690 #endif
19691 #ifndef __intptr_t_defined
19692 #ifndef intptr_t
19693 typedef $acx_cv_type_intptr_t intptr_t;
19694 #endif
19695 #endif
19699 # ------------- done intptr types, emit int_least types ------------
19700 if test "$ac_cv_type_int_least32_t" != yes; then
19701 sed 's/^ *//' >> tmp-stdint.h <<EOF
19703 /* Define int_least types */
19704 typedef int8_t int_least8_t;
19705 typedef int16_t int_least16_t;
19706 typedef int32_t int_least32_t;
19707 #ifdef _INT64_T
19708 typedef int64_t int_least64_t;
19709 #endif
19711 typedef uint8_t uint_least8_t;
19712 typedef uint16_t uint_least16_t;
19713 typedef uint32_t uint_least32_t;
19714 #ifdef _UINT64_T
19715 typedef uint64_t uint_least64_t;
19716 #endif
19720 # ------------- done intptr types, emit int_fast types ------------
19721 if test "$ac_cv_type_int_fast32_t" != yes; then
19722 sed 's/^ *//' >> tmp-stdint.h <<EOF
19724 /* Define int_fast types. short is often slow */
19725 typedef int8_t int_fast8_t;
19726 typedef int int_fast16_t;
19727 typedef int32_t int_fast32_t;
19728 #ifdef _INT64_T
19729 typedef int64_t int_fast64_t;
19730 #endif
19732 typedef uint8_t uint_fast8_t;
19733 typedef unsigned int uint_fast16_t;
19734 typedef uint32_t uint_fast32_t;
19735 #ifdef _UINT64_T
19736 typedef uint64_t uint_fast64_t;
19737 #endif
19741 if test "$ac_cv_type_uintmax_t" != yes; then
19742 sed 's/^ *//' >> tmp-stdint.h <<EOF
19744 /* Define intmax based on what we found */
19745 #ifndef intmax_t
19746 #ifdef _INT64_T
19747 typedef int64_t intmax_t;
19748 #else
19749 typedef long intmax_t;
19750 #endif
19751 #endif
19752 #ifndef uintmax_t
19753 #ifdef _UINT64_T
19754 typedef uint64_t uintmax_t;
19755 #else
19756 typedef unsigned long uintmax_t;
19757 #endif
19758 #endif
19762 sed 's/^ *//' >> tmp-stdint.h <<EOF
19764 #endif /* GCC_GENERATED_STDINT_H */
19767 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19768 rm -f tmp-stdint.h
19769 else
19770 mv -f tmp-stdint.h gstdint.h
19775 esac
19776 done # for ac_tag
19779 as_fn_exit 0
19780 _ACEOF
19781 ac_clean_files=$ac_clean_files_save
19783 test $ac_write_fail = 0 ||
19784 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19787 # configure is writing to config.log, and then calls config.status.
19788 # config.status does its own redirection, appending to config.log.
19789 # Unfortunately, on DOS this fails, as config.log is still kept open
19790 # by configure, so config.status won't be able to write to it; its
19791 # output is simply discarded. So we exec the FD to /dev/null,
19792 # effectively closing config.log, so it can be properly (re)opened and
19793 # appended to by config.status. When coming back to configure, we
19794 # need to make the FD available again.
19795 if test "$no_create" != yes; then
19796 ac_cs_success=:
19797 ac_config_status_args=
19798 test "$silent" = yes &&
19799 ac_config_status_args="$ac_config_status_args --quiet"
19800 exec 5>/dev/null
19801 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19802 exec 5>>config.log
19803 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19804 # would make configure fail if this is the last instruction.
19805 $ac_cs_success || as_fn_exit $?
19807 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19809 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}