]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/configure
* config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
[thirdparty/gcc.git] / libgomp / configure
CommitLineData
1e8e9920 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cd9a469c 3# Generated by GNU Autoconf 2.64 for GNU OpenMP Runtime Library 1.0.
4#
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.
1e8e9920 8#
1e8e9920 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
cd9a469c 11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1e8e9920 14
cd9a469c 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1e8e9920 18 emulate sh
19 NULLCMD=:
cd9a469c 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1e8e9920 21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
cd9a469c 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1e8e9920 31fi
1e8e9920 32
cd9a469c 33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if 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=';'
78 }
1e8e9920 79fi
80
81
cd9a469c 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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
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
99IFS=$as_save_IFS
100
101 ;;
102esac
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.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
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.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
1e8e9920 121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
cd9a469c 126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if 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
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test 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
e6408286 172
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
cd9a469c 180test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1e8e9920 192do
cd9a469c 193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
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
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
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
215fi; }
216IFS=$as_save_IFS
217
218
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+"$@"}
228fi
229
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."
1e8e9920 236 else
cd9a469c 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."
1e8e9920 241 fi
cd9a469c 242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
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/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
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"
326
327
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.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
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.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
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.
370as_fn_error ()
371{
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
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
1e8e9920 380
cd9a469c 381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1e8e9920 383 as_expr=expr
384else
385 as_expr=false
386fi
387
cd9a469c 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1e8e9920 389 as_basename=basename
390else
391 as_basename=false
392fi
393
cd9a469c 394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
1e8e9920 399
cd9a469c 400as_me=`$as_basename -- "$0" ||
1e8e9920 401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
cd9a469c 403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
1e8e9920 418
1e8e9920 419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
1e8e9920 426
cd9a469c 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 '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
1e8e9920 436 sed '
cd9a469c 437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
1e8e9920 441 N
cd9a469c 442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1e8e9920 444 t loop
cd9a469c 445 s/-\n.*//
1e8e9920 446 ' >$as_me.lineno &&
cd9a469c 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; }
1e8e9920 449
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
cd9a469c 452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
1e8e9920 454 # Exit status is that of the last command.
455 exit
456}
457
cd9a469c 458ECHO_C= ECHO_N= ECHO_T=
459case `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;;
467*)
468 ECHO_N='-n';;
1e8e9920 469esac
470
cd9a469c 471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
1e8e9920 474else
cd9a469c 475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
1e8e9920 477fi
cd9a469c 478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
1e8e9920 480 as_ln_s='ln -s'
cd9a469c 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'
1e8e9920 491 fi
1e8e9920 492else
493 as_ln_s='cp -p'
494fi
cd9a469c 495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
1e8e9920 497
498if mkdir -p . 2>/dev/null; then
cd9a469c 499 as_mkdir_p='mkdir -p "$as_dir"'
1e8e9920 500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
cd9a469c 505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
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
524 '
525fi
526as_executable_p=$as_test_x
1e8e9920 527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
542f9784 534SHELL=${CONFIG_SHELL-/bin/sh}
535
542f9784 536
cd9a469c 537exec 7<&0 </dev/null 6>&1
538
1e8e9920 539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
1e8e9920 544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
cd9a469c 548ac_clean_files=
1e8e9920 549ac_config_libobj_dir=.
cd9a469c 550LIBOBJS=
1e8e9920 551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
1e8e9920 555
556# Identity of this package.
557PACKAGE_NAME='GNU OpenMP Runtime Library'
558PACKAGE_TARNAME='libgomp'
559PACKAGE_VERSION='1.0'
560PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
561PACKAGE_BUGREPORT=''
cd9a469c 562PACKAGE_URL='http://www.gnu.org/software/libgomp/'
1e8e9920 563
564# Factoring default headers for most tests.
565ac_includes_default="\
566#include <stdio.h>
cd9a469c 567#ifdef HAVE_SYS_TYPES_H
1e8e9920 568# include <sys/types.h>
569#endif
cd9a469c 570#ifdef HAVE_SYS_STAT_H
1e8e9920 571# include <sys/stat.h>
572#endif
cd9a469c 573#ifdef STDC_HEADERS
1e8e9920 574# include <stdlib.h>
575# include <stddef.h>
576#else
cd9a469c 577# ifdef HAVE_STDLIB_H
1e8e9920 578# include <stdlib.h>
579# endif
580#endif
cd9a469c 581#ifdef HAVE_STRING_H
582# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1e8e9920 583# include <memory.h>
584# endif
585# include <string.h>
586#endif
cd9a469c 587#ifdef HAVE_STRINGS_H
1e8e9920 588# include <strings.h>
589#endif
cd9a469c 590#ifdef HAVE_INTTYPES_H
1e8e9920 591# include <inttypes.h>
1e8e9920 592#endif
cd9a469c 593#ifdef HAVE_STDINT_H
594# include <stdint.h>
595#endif
596#ifdef HAVE_UNISTD_H
1e8e9920 597# include <unistd.h>
598#endif"
599
cd9a469c 600ac_subst_vars='am__EXEEXT_FALSE
601am__EXEEXT_TRUE
602LTLIBOBJS
603LIBOBJS
604OMP_NEST_LOCK_25_KIND
605OMP_LOCK_25_KIND
606OMP_NEST_LOCK_25_ALIGN
607OMP_NEST_LOCK_25_SIZE
608OMP_LOCK_25_ALIGN
609OMP_LOCK_25_SIZE
610OMP_NEST_LOCK_KIND
611OMP_LOCK_KIND
612OMP_NEST_LOCK_ALIGN
613OMP_NEST_LOCK_SIZE
614OMP_LOCK_ALIGN
615OMP_LOCK_SIZE
616USE_FORTRAN_FALSE
617USE_FORTRAN_TRUE
618link_gomp
619XLDFLAGS
620XCFLAGS
621config_path
71cbce26 622LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE
623LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE
624LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
625LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
626LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
627LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
cd9a469c 628LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
629LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
630OPT_LDFLAGS
631SECTION_LDFLAGS
632libtool_VERSION
633ac_ct_FC
634FCFLAGS
635FC
636MAINT
637MAINTAINER_MODE_FALSE
638MAINTAINER_MODE_TRUE
639enable_static
640enable_shared
8c35d268 641lt_host_flags
cd9a469c 642CPP
643OTOOL64
644OTOOL
645LIPO
646NMEDIT
647DSYMUTIL
cd9a469c 648OBJDUMP
649LN_S
650NM
651ac_ct_DUMPBIN
652DUMPBIN
653LD
654FGREP
655EGREP
656GREP
657SED
658LIBTOOL
659BUILD_INFO_FALSE
660BUILD_INFO_TRUE
661PERL
662RANLIB
663AR
664am__fastdepCC_FALSE
665am__fastdepCC_TRUE
666CCDEPMODE
667AMDEPBACKSLASH
668AMDEP_FALSE
669AMDEP_TRUE
670am__quote
671am__include
672DEPDIR
673OBJEXT
674EXEEXT
675ac_ct_CC
676CPPFLAGS
677LDFLAGS
678CFLAGS
679CC
680toolexeclibdir
681toolexecdir
682multi_basedir
683am__untar
684am__tar
685AMTAR
686am__leading_dot
687SET_MAKE
688AWK
689mkdir_p
690MKDIR_P
691INSTALL_STRIP_PROGRAM
692STRIP
693install_sh
694MAKEINFO
695AUTOHEADER
696AUTOMAKE
697AUTOCONF
698ACLOCAL
699VERSION
700PACKAGE
701CYGPATH_W
702am__isrc
703INSTALL_DATA
704INSTALL_SCRIPT
705INSTALL_PROGRAM
706target_os
707target_vendor
708target_cpu
709target
710host_os
711host_vendor
712host_cpu
713host
714build_os
715build_vendor
716build_cpu
717build
718GENINSRC_FALSE
719GENINSRC_TRUE
720target_alias
721host_alias
722build_alias
723LIBS
724ECHO_T
725ECHO_N
726ECHO_C
727DEFS
728mandir
729localedir
730libdir
731psdir
732pdfdir
733dvidir
734htmldir
735infodir
736docdir
737oldincludedir
738includedir
739localstatedir
740sharedstatedir
741sysconfdir
742datadir
743datarootdir
744libexecdir
745sbindir
746bindir
747program_transform_name
748prefix
749exec_prefix
750PACKAGE_URL
751PACKAGE_BUGREPORT
752PACKAGE_STRING
753PACKAGE_VERSION
754PACKAGE_TARNAME
755PACKAGE_NAME
756PATH_SEPARATOR
757SHELL'
1e8e9920 758ac_subst_files=''
cd9a469c 759ac_user_opts='
760enable_option_checking
761enable_version_specific_runtime_libs
762enable_generated_files_in_srcdir
763enable_multilib
764enable_dependency_tracking
765enable_shared
766enable_static
767with_pic
768enable_fast_install
769with_gnu_ld
770enable_libtool_lock
771enable_maintainer_mode
772enable_linux_futex
773enable_tls
774enable_symvers
775'
776 ac_precious_vars='build_alias
777host_alias
778target_alias
779CPP
780CPPFLAGS
781FC
782FCFLAGS
783LDFLAGS
784LIBS'
785
1e8e9920 786
787# Initialize some variables set by options.
788ac_init_help=
789ac_init_version=false
cd9a469c 790ac_unrecognized_opts=
791ac_unrecognized_sep=
1e8e9920 792# The variables have the same names as the options, with
793# dashes changed to underlines.
794cache_file=/dev/null
795exec_prefix=NONE
796no_create=
797no_recursion=
798prefix=NONE
799program_prefix=NONE
800program_suffix=NONE
801program_transform_name=s,x,x,
802silent=
803site=
804srcdir=
805verbose=
806x_includes=NONE
807x_libraries=NONE
808
809# Installation directory options.
810# These are left unexpanded so users can "make install exec_prefix=/foo"
811# and all the variables that are supposed to be based on exec_prefix
812# by default will actually change.
813# Use braces instead of parens because sh, perl, etc. also accept them.
cd9a469c 814# (The list follows the same order as the GNU Coding Standards.)
1e8e9920 815bindir='${exec_prefix}/bin'
816sbindir='${exec_prefix}/sbin'
817libexecdir='${exec_prefix}/libexec'
cd9a469c 818datarootdir='${prefix}/share'
819datadir='${datarootdir}'
1e8e9920 820sysconfdir='${prefix}/etc'
821sharedstatedir='${prefix}/com'
822localstatedir='${prefix}/var'
1e8e9920 823includedir='${prefix}/include'
824oldincludedir='/usr/include'
cd9a469c 825docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826infodir='${datarootdir}/info'
827htmldir='${docdir}'
828dvidir='${docdir}'
829pdfdir='${docdir}'
830psdir='${docdir}'
831libdir='${exec_prefix}/lib'
832localedir='${datarootdir}/locale'
833mandir='${datarootdir}/man'
1e8e9920 834
835ac_prev=
cd9a469c 836ac_dashdash=
1e8e9920 837for ac_option
838do
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
cd9a469c 841 eval $ac_prev=\$ac_option
1e8e9920 842 ac_prev=
843 continue
844 fi
845
cd9a469c 846 case $ac_option in
847 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *) ac_optarg=yes ;;
849 esac
1e8e9920 850
851 # Accept the important Cygnus configure options, so we can diagnose typos.
852
cd9a469c 853 case $ac_dashdash$ac_option in
854 --)
855 ac_dashdash=yes ;;
1e8e9920 856
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860 bindir=$ac_optarg ;;
861
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
866
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
873
874 --config-cache | -C)
875 cache_file=config.cache ;;
876
cd9a469c 877 -datadir | --datadir | --datadi | --datad)
1e8e9920 878 ac_prev=datadir ;;
cd9a469c 879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1e8e9920 880 datadir=$ac_optarg ;;
881
cd9a469c 882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
888
1e8e9920 889 -disable-* | --disable-*)
cd9a469c 890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1e8e9920 891 # Reject names that are not valid shell variable names.
cd9a469c 892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
897 *"
898"enable_$ac_useropt"
899"*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
904
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
909
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
1e8e9920 914
915 -enable-* | --enable-*)
cd9a469c 916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1e8e9920 917 # Reject names that are not valid shell variable names.
cd9a469c 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
923 *"
924"enable_$ac_useropt"
925"*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
1e8e9920 928 esac
cd9a469c 929 eval enable_$ac_useropt=\$ac_optarg ;;
1e8e9920 930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
950
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
955
cd9a469c 956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
1e8e9920 962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
985
cd9a469c 986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
1e8e9920 991 -localstatedir | --localstatedir | --localstatedi | --localstated \
cd9a469c 992 | --localstate | --localstat | --localsta | --localst | --locals)
1e8e9920 993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cd9a469c 995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1e8e9920 996 localstatedir=$ac_optarg ;;
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1059
cd9a469c 1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
1e8e9920 1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
cd9a469c 1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1e8e9920 1121 # Reject names that are not valid shell variable names.
cd9a469c 1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128"with_$ac_useropt"
1129"*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1e8e9920 1132 esac
cd9a469c 1133 eval with_$ac_useropt=\$ac_optarg ;;
1e8e9920 1134
1135 -without-* | --without-*)
cd9a469c 1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1e8e9920 1137 # Reject names that are not valid shell variable names.
cd9a469c 1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144"with_$ac_useropt"
1145"*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
1e8e9920 1150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
cd9a469c 1169 -*) as_fn_error "unrecognized option: \`$ac_option'
1170Try \`$0 --help' for more information."
1e8e9920 1171 ;;
1172
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
cd9a469c 1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
1e8e9920 1181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
cd9a469c 1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1e8e9920 1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cd9a469c 1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1e8e9920 1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189 ;;
1190
1191 esac
1192done
1193
1194if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cd9a469c 1196 as_fn_error "missing argument to $ac_option"
1e8e9920 1197fi
1198
cd9a469c 1199if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1e8e9920 1204 esac
cd9a469c 1205fi
1e8e9920 1206
cd9a469c 1207# Check all directory arguments for consistency.
1208for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1e8e9920 1212do
cd9a469c 1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1e8e9920 1215 case $ac_val in
cd9a469c 1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1e8e9920 1219 esac
cd9a469c 1220 # Be sure to have absolute directory names.
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1e8e9920 1226done
1227
1228# There might be people who depend on the old broken behavior: `$host'
1229# used to hold the argument of --host etc.
1230# FIXME: To remove some day.
1231build=$build_alias
1232host=$host_alias
1233target=$target_alias
1234
1235# FIXME: To remove some day.
1236if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
cd9a469c 1239 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1e8e9920 1240 If a cross compiler is detected then cross compile mode will be used." >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1242 cross_compiling=yes
1243 fi
1244fi
1245
1246ac_tool_prefix=
1247test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249test "$silent" = yes && exec 6>/dev/null
1250
1251
cd9a469c 1252ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253ac_ls_di=`ls -di .` &&
1254ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error "working directory cannot be determined"
1256test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error "pwd does not report name of working directory"
1258
1259
1e8e9920 1260# Find the source files, if location was not specified.
1261if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
cd9a469c 1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269$as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)[^/].*/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\).*/{
1283 s//\1/
1284 q
1285 }
1286 s/.*/./; q'`
1e8e9920 1287 srcdir=$ac_confdir
cd9a469c 1288 if test ! -r "$srcdir/$ac_unique_file"; then
1e8e9920 1289 srcdir=..
1290 fi
1291else
1292 ac_srcdir_defaulted=no
1293fi
cd9a469c 1294if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1297fi
1298ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299ac_abs_confdir=`(
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1301 pwd)`
1302# When building in place, set srcdir=.
1303if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 srcdir=.
1305fi
1306# Remove unnecessary trailing slashes from srcdir.
1307# Double slashes in file names in object file debugging info
1308# mess up M-x gdb in Emacs.
1309case $srcdir in
1310*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311esac
1312for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317done
1e8e9920 1318
1319#
1320# Report the --help message.
1321#
1322if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1325 cat <<_ACEOF
1326\`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
1327
1328Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331VAR=VALUE. See below for descriptions of some of the useful variables.
1332
1333Defaults for the options are specified in brackets.
1334
1335Configuration:
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345
1e8e9920 1346Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
cd9a469c 1348 [$ac_default_prefix]
1e8e9920 1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cd9a469c 1350 [PREFIX]
1e8e9920 1351
1352By default, \`make install' will install all the files in
1353\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355for instance \`--prefix=\$HOME'.
1356
1357For better control, use the options below.
1358
1359Fine tuning of the installation directories:
cd9a469c 1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1e8e9920 1379_ACEOF
1380
1381 cat <<\_ACEOF
1382
1383Program names:
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387
1388System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1392_ACEOF
1393fi
1394
1395if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
1398 esac
1399 cat <<\_ACEOF
1400
1401Optional Features:
cd9a469c 1402 --disable-option-checking ignore unrecognized --enable/--with options
1e8e9920 1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-version-specific-runtime-libs
1406 Specify that runtime libraries should be installed
1407 in a compiler-specific directory [default=no]
aeda7a78 1408 --enable-generated-files-in-srcdir
1409 put copies of generated files in source dir intended
1410 for creating source tarballs for users without
1411 texinfo bison or flex. [default=no]
1e8e9920 1412 --enable-multilib build many library versions (default)
1413 --disable-dependency-tracking speeds up one-time build
1414 --enable-dependency-tracking do not reject slow dependency extractors
cd9a469c 1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
542f9784 1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
1e8e9920 1419 --disable-libtool-lock avoid locking (might break parallel builds)
a263d1ab 1420 --enable-maintainer-mode enable make rules and dependencies not useful
1421 (and sometimes confusing) to the casual installer
cd9a469c 1422 --enable-linux-futex use the Linux futex system call [default=default]
e564ddd8 1423 --enable-tls Use thread-local storage [default=yes]
1e8e9920 1424 --enable-symvers=STYLE enables symbol versioning of the shared library
1425 [default=yes]
1426
1427Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
542f9784 1430 --with-pic try to use only PIC/non-PIC objects [default=use
1431 both]
1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1e8e9920 1433
1434Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
cd9a469c 1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
542f9784 1442 CPP C preprocessor
1e8e9920 1443 FC Fortran compiler command
1444 FCFLAGS Fortran compiler flags
1e8e9920 1445
1446Use these variables to override the choices made by `configure' or to help
1447it to find libraries and programs with nonstandard names/locations.
1448
cd9a469c 1449Report bugs to the package provider.
1450GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1451General help using GNU software: <http://www.gnu.org/gethelp/>.
1e8e9920 1452_ACEOF
cd9a469c 1453ac_status=$?
1e8e9920 1454fi
1455
1456if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
1e8e9920 1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cd9a469c 1459 test -d "$ac_dir" ||
1460 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461 continue
1e8e9920 1462 ac_builddir=.
1463
cd9a469c 1464case "$ac_dir" in
1465.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466*)
1467 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468 # A ".." for each directory in $ac_dir_suffix.
1469 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470 case $ac_top_builddir_sub in
1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473 esac ;;
1474esac
1475ac_abs_top_builddir=$ac_pwd
1476ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477# for backward compatibility:
1478ac_top_builddir=$ac_top_build_prefix
1e8e9920 1479
1480case $srcdir in
cd9a469c 1481 .) # We are building in place.
1e8e9920 1482 ac_srcdir=.
cd9a469c 1483 ac_top_srcdir=$ac_top_builddir_sub
1484 ac_abs_top_srcdir=$ac_pwd ;;
1485 [\\/]* | ?:[\\/]* ) # Absolute name.
1e8e9920 1486 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 1487 ac_top_srcdir=$srcdir
1488 ac_abs_top_srcdir=$srcdir ;;
1489 *) # Relative name.
1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491 ac_top_srcdir=$ac_top_build_prefix$srcdir
1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1e8e9920 1493esac
cd9a469c 1494ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
1496 cd "$ac_dir" || { ac_status=$?; continue; }
1497 # Check for guested configure.
1498 if test -f "$ac_srcdir/configure.gnu"; then
1499 echo &&
1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501 elif test -f "$ac_srcdir/configure"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure" --help=recursive
1e8e9920 1504 else
cd9a469c 1505 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506 fi || ac_status=$?
1507 cd "$ac_pwd" || { ac_status=$?; break; }
1e8e9920 1508 done
1509fi
1510
cd9a469c 1511test -n "$ac_init_help" && exit $ac_status
1e8e9920 1512if $ac_init_version; then
1513 cat <<\_ACEOF
1514GNU OpenMP Runtime Library configure 1.0
cd9a469c 1515generated by GNU Autoconf 2.64
1e8e9920 1516
cd9a469c 1517Copyright (C) 2009 Free Software Foundation, Inc.
1e8e9920 1518This configure script is free software; the Free Software Foundation
1519gives unlimited permission to copy, distribute and modify it.
1520_ACEOF
cd9a469c 1521 exit
1e8e9920 1522fi
1e8e9920 1523
cd9a469c 1524## ------------------------ ##
1525## Autoconf initialization. ##
1526## ------------------------ ##
1e8e9920 1527
cd9a469c 1528# ac_fn_c_try_compile LINENO
1529# --------------------------
1530# Try to compile conftest.$ac_ext, and return whether this succeeded.
1531ac_fn_c_try_compile ()
1e8e9920 1532{
cd9a469c 1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 rm -f conftest.$ac_objext
1535 if { { ac_try="$ac_compile"
1536case "(($ac_try" in
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1539esac
1540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541$as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_compile") 2>conftest.err
1543 ac_status=$?
1544 if test -s conftest.err; then
1545 grep -v '^ *+' conftest.err >conftest.er1
1546 cat conftest.er1 >&5
1547 mv -f conftest.er1 conftest.err
1548 fi
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } && {
1551 test -z "$ac_c_werror_flag" ||
1552 test ! -s conftest.err
1553 } && test -s conftest.$ac_objext; then :
1554 ac_retval=0
1555else
1556 $as_echo "$as_me: failed program was:" >&5
1557sed 's/^/| /' conftest.$ac_ext >&5
1e8e9920 1558
cd9a469c 1559 ac_retval=1
1560fi
1561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1562 return $ac_retval
1e8e9920 1563
cd9a469c 1564} # ac_fn_c_try_compile
1e8e9920 1565
cd9a469c 1566# ac_fn_c_try_link LINENO
1567# -----------------------
1568# Try to link conftest.$ac_ext, and return whether this succeeded.
1569ac_fn_c_try_link ()
1570{
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext conftest$ac_exeext
1573 if { { ac_try="$ac_link"
1574case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577esac
1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579$as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_link") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest$ac_exeext && {
1592 test "$cross_compiling" = yes ||
1593 $as_test_x conftest$ac_exeext
1594 }; then :
1595 ac_retval=0
1596else
1597 $as_echo "$as_me: failed program was:" >&5
1598sed 's/^/| /' conftest.$ac_ext >&5
1e8e9920 1599
cd9a469c 1600 ac_retval=1
1601fi
1602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1604 # interfere with the next link command; also delete a directory that is
1605 # left behind by Apple's compiler. We do this before executing the actions.
1606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608 return $ac_retval
1e8e9920 1609
cd9a469c 1610} # ac_fn_c_try_link
1e8e9920 1611
cd9a469c 1612# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1613# -------------------------------------------------------
1614# Tests whether HEADER exists and can be compiled using the include files in
1615# INCLUDES, setting the cache variable VAR accordingly.
1616ac_fn_c_check_header_compile ()
1617{
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620$as_echo_n "checking for $2... " >&6; }
1621if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1622 $as_echo_n "(cached) " >&6
1623else
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625/* end confdefs.h. */
1626$4
1627#include <$2>
1628_ACEOF
1629if ac_fn_c_try_compile "$LINENO"; then :
1630 eval "$3=yes"
1631else
1632 eval "$3=no"
1633fi
1634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635fi
1636eval ac_res=\$$3
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638$as_echo "$ac_res" >&6; }
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1e8e9920 1640
cd9a469c 1641} # ac_fn_c_check_header_compile
1e8e9920 1642
cd9a469c 1643# ac_fn_c_try_cpp LINENO
1644# ----------------------
1645# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646ac_fn_c_try_cpp ()
1647{
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_cpp conftest.$ac_ext"
1650case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653esac
1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655$as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1662 fi
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } >/dev/null && {
1665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 }; then :
1668 ac_retval=0
1669else
1670 $as_echo "$as_me: failed program was:" >&5
1671sed 's/^/| /' conftest.$ac_ext >&5
1e8e9920 1672
cd9a469c 1673 ac_retval=1
1674fi
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676 return $ac_retval
1e8e9920 1677
cd9a469c 1678} # ac_fn_c_try_cpp
1e8e9920 1679
cd9a469c 1680# ac_fn_c_try_run LINENO
1681# ----------------------
1682# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683# that executables *can* be run.
1684ac_fn_c_try_run ()
1685{
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_link"
1688case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698 { { case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701esac
1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703$as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_try") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; }; }; then :
1708 ac_retval=0
1709else
1710 $as_echo "$as_me: program exited with status $ac_status" >&5
1711 $as_echo "$as_me: failed program was:" >&5
1712sed 's/^/| /' conftest.$ac_ext >&5
1e8e9920 1713
cd9a469c 1714 ac_retval=$ac_status
1715fi
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 return $ac_retval
1e8e9920 1719
cd9a469c 1720} # ac_fn_c_try_run
1e8e9920 1721
cd9a469c 1722# ac_fn_c_check_func LINENO FUNC VAR
1723# ----------------------------------
1724# Tests whether FUNC exists, setting the cache variable VAR accordingly
1725ac_fn_c_check_func ()
1e8e9920 1726{
cd9a469c 1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729$as_echo_n "checking for $2... " >&6; }
1730if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731 $as_echo_n "(cached) " >&6
1732else
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734/* end confdefs.h. */
1735/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1737#define $2 innocuous_$2
1e8e9920 1738
cd9a469c 1739/* System header to define __stub macros and hopefully few prototypes,
1740 which can conflict with char $2 (); below.
1741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1742 <limits.h> exists even on freestanding compilers. */
1e8e9920 1743
cd9a469c 1744#ifdef __STDC__
1745# include <limits.h>
1746#else
1747# include <assert.h>
1748#endif
1e8e9920 1749
cd9a469c 1750#undef $2
1e8e9920 1751
cd9a469c 1752/* Override any GCC internal prototype to avoid an error.
1753 Use char because int might match the return type of a GCC
1754 builtin and then its argument prototype would still apply. */
1755#ifdef __cplusplus
1756extern "C"
1757#endif
1758char $2 ();
1759/* The GNU C library defines this for functions which it implements
1760 to always fail with ENOSYS. Some functions are actually named
1761 something starting with __ and the normal name is an alias. */
1762#if defined __stub_$2 || defined __stub___$2
1763choke me
1764#endif
1e8e9920 1765
cd9a469c 1766int
1767main ()
1768{
1769return $2 ();
1770 ;
1771 return 0;
1772}
1e8e9920 1773_ACEOF
cd9a469c 1774if ac_fn_c_try_link "$LINENO"; then :
1775 eval "$3=yes"
1776else
1777 eval "$3=no"
1778fi
1779rm -f core conftest.err conftest.$ac_objext \
1780 conftest$ac_exeext conftest.$ac_ext
1781fi
1782eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784$as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1e8e9920 1786
cd9a469c 1787} # ac_fn_c_check_func
1e8e9920 1788
cd9a469c 1789# ac_fn_fc_try_compile LINENO
1790# ---------------------------
1791# Try to compile conftest.$ac_ext, and return whether this succeeded.
1792ac_fn_fc_try_compile ()
1793{
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext
1796 if { { ac_try="$ac_compile"
1797case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800esac
1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802$as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_compile") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1809 fi
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_fc_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest.$ac_objext; then :
1815 ac_retval=0
1816else
1817 $as_echo "$as_me: failed program was:" >&5
1818sed 's/^/| /' conftest.$ac_ext >&5
1e8e9920 1819
cd9a469c 1820 ac_retval=1
1821fi
1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823 return $ac_retval
1e8e9920 1824
cd9a469c 1825} # ac_fn_fc_try_compile
1e8e9920 1826
cd9a469c 1827# ac_fn_fc_try_link LINENO
1828# ------------------------
1829# Try to link conftest.$ac_ext, and return whether this succeeded.
1830ac_fn_fc_try_link ()
1831{
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext conftest$ac_exeext
1834 if { { ac_try="$ac_link"
1835case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838esac
1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840$as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_link") 2>conftest.err
1842 ac_status=$?
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1847 fi
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_fc_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest$ac_exeext && {
1853 test "$cross_compiling" = yes ||
1854 $as_test_x conftest$ac_exeext
1855 }; then :
1856 ac_retval=0
1857else
1858 $as_echo "$as_me: failed program was:" >&5
1859sed 's/^/| /' conftest.$ac_ext >&5
1e8e9920 1860
cd9a469c 1861 ac_retval=1
1862fi
1863 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865 # interfere with the next link command; also delete a directory that is
1866 # left behind by Apple's compiler. We do this before executing the actions.
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869 return $ac_retval
1e8e9920 1870
cd9a469c 1871} # ac_fn_fc_try_link
1e8e9920 1872
cd9a469c 1873# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1874# -------------------------------------------------------
1875# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1876# the include files in INCLUDES and setting the cache variable VAR
1877# accordingly.
1878ac_fn_c_check_header_mongrel ()
1879{
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883$as_echo_n "checking for $2... " >&6; }
1884if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 $as_echo_n "(cached) " >&6
1886fi
1887eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889$as_echo "$ac_res" >&6; }
1890else
1891 # Is the header compilable?
1892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1893$as_echo_n "checking $2 usability... " >&6; }
1894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895/* end confdefs.h. */
1896$4
1897#include <$2>
1e8e9920 1898_ACEOF
cd9a469c 1899if ac_fn_c_try_compile "$LINENO"; then :
1900 ac_header_compiler=yes
1901else
1902 ac_header_compiler=no
1e8e9920 1903fi
cd9a469c 1904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1906$as_echo "$ac_header_compiler" >&6; }
1e8e9920 1907
cd9a469c 1908# Is the header present?
1909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1910$as_echo_n "checking $2 presence... " >&6; }
1911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912/* end confdefs.h. */
1913#include <$2>
1914_ACEOF
1915if ac_fn_c_try_cpp "$LINENO"; then :
1916 ac_header_preproc=yes
1e8e9920 1917else
cd9a469c 1918 ac_header_preproc=no
1e8e9920 1919fi
cd9a469c 1920rm -f conftest.err conftest.$ac_ext
1921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1922$as_echo "$ac_header_preproc" >&6; }
1e8e9920 1923
cd9a469c 1924# So? What about this header?
1925case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1926 yes:no: )
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1928$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1931 ;;
1932 no:yes:* )
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1934$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1936$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1938$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1940$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943 ;;
1944esac
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946$as_echo_n "checking for $2... " >&6; }
1947if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1948 $as_echo_n "(cached) " >&6
1949else
1950 eval "$3=\$ac_header_compiler"
1e8e9920 1951fi
cd9a469c 1952eval ac_res=\$$3
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954$as_echo "$ac_res" >&6; }
1955fi
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1e8e9920 1957
cd9a469c 1958} # ac_fn_c_check_header_mongrel
1e8e9920 1959
cd9a469c 1960# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1961# -------------------------------------------
1962# Tests whether TYPE exists after having included INCLUDES, setting cache
1963# variable VAR accordingly.
1964ac_fn_c_check_type ()
1965{
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968$as_echo_n "checking for $2... " >&6; }
1969if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 $as_echo_n "(cached) " >&6
1971else
1972 eval "$3=no"
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974/* end confdefs.h. */
1975$4
1976int
1977main ()
1978{
1979if (sizeof ($2))
1980 return 0;
1981 ;
1982 return 0;
1983}
1984_ACEOF
1985if ac_fn_c_try_compile "$LINENO"; then :
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987/* end confdefs.h. */
1988$4
1989int
1990main ()
1991{
1992if (sizeof (($2)))
1993 return 0;
1994 ;
1995 return 0;
1996}
1997_ACEOF
1998if ac_fn_c_try_compile "$LINENO"; then :
1e8e9920 1999
cd9a469c 2000else
2001 eval "$3=yes"
2002fi
2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004fi
2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006fi
2007eval ac_res=\$$3
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009$as_echo "$ac_res" >&6; }
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1e8e9920 2011
cd9a469c 2012} # ac_fn_c_check_type
1e8e9920 2013
cd9a469c 2014# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2015# --------------------------------------------
2016# Tries to find the compile-time value of EXPR in a program that includes
2017# INCLUDES, setting VAR accordingly. Returns whether the value could be
2018# computed
2019ac_fn_c_compute_int ()
2020{
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 if test "$cross_compiling" = yes; then
2023 # Depending upon the size, compute the lo and hi bounds.
2024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025/* end confdefs.h. */
2026$4
2027int
2028main ()
2029{
2030static int test_array [1 - 2 * !(($2) >= 0)];
2031test_array [0] = 0
1e8e9920 2032
cd9a469c 2033 ;
2034 return 0;
2035}
2036_ACEOF
2037if ac_fn_c_try_compile "$LINENO"; then :
2038 ac_lo=0 ac_mid=0
2039 while :; do
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041/* end confdefs.h. */
2042$4
2043int
2044main ()
2045{
2046static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2047test_array [0] = 0
1e8e9920 2048
cd9a469c 2049 ;
2050 return 0;
2051}
2052_ACEOF
2053if ac_fn_c_try_compile "$LINENO"; then :
2054 ac_hi=$ac_mid; break
2055else
2056 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2057 if test $ac_lo -le $ac_mid; then
2058 ac_lo= ac_hi=
2059 break
2060 fi
2061 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2062fi
2063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 done
2065else
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067/* end confdefs.h. */
2068$4
2069int
2070main ()
2071{
2072static int test_array [1 - 2 * !(($2) < 0)];
2073test_array [0] = 0
1e8e9920 2074
cd9a469c 2075 ;
2076 return 0;
2077}
2078_ACEOF
2079if ac_fn_c_try_compile "$LINENO"; then :
2080 ac_hi=-1 ac_mid=-1
2081 while :; do
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083/* end confdefs.h. */
2084$4
2085int
2086main ()
2087{
2088static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2089test_array [0] = 0
1e8e9920 2090
cd9a469c 2091 ;
2092 return 0;
2093}
2094_ACEOF
2095if ac_fn_c_try_compile "$LINENO"; then :
2096 ac_lo=$ac_mid; break
2097else
2098 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2099 if test $ac_mid -le $ac_hi; then
2100 ac_lo= ac_hi=
2101 break
2102 fi
2103 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2104fi
2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 done
2107else
2108 ac_lo= ac_hi=
2109fi
2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113# Binary search between lo and hi bounds.
2114while test "x$ac_lo" != "x$ac_hi"; do
2115 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117/* end confdefs.h. */
2118$4
2119int
2120main ()
2121{
2122static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2123test_array [0] = 0
1e8e9920 2124
cd9a469c 2125 ;
2126 return 0;
2127}
2128_ACEOF
2129if ac_fn_c_try_compile "$LINENO"; then :
2130 ac_hi=$ac_mid
2131else
2132 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2133fi
2134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135done
2136case $ac_lo in #((
2137?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2138'') ac_retval=1 ;;
2139esac
2140 else
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142/* end confdefs.h. */
2143$4
2144static long int longval () { return $2; }
2145static unsigned long int ulongval () { return $2; }
2146#include <stdio.h>
2147#include <stdlib.h>
2148int
2149main ()
2150{
1e8e9920 2151
cd9a469c 2152 FILE *f = fopen ("conftest.val", "w");
2153 if (! f)
2154 return 1;
2155 if (($2) < 0)
2156 {
2157 long int i = longval ();
2158 if (i != ($2))
2159 return 1;
2160 fprintf (f, "%ld", i);
2161 }
2162 else
2163 {
2164 unsigned long int i = ulongval ();
2165 if (i != ($2))
2166 return 1;
2167 fprintf (f, "%lu", i);
2168 }
2169 /* Do not output a trailing newline, as this causes \r\n confusion
2170 on some platforms. */
2171 return ferror (f) || fclose (f) != 0;
1e8e9920 2172
cd9a469c 2173 ;
2174 return 0;
2175}
2176_ACEOF
2177if ac_fn_c_try_run "$LINENO"; then :
2178 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2179else
2180 ac_retval=1
2181fi
2182rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2183 conftest.$ac_objext conftest.beam conftest.$ac_ext
2184rm -f conftest.val
1e8e9920 2185
cd9a469c 2186 fi
2187 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2188 return $ac_retval
1e8e9920 2189
cd9a469c 2190} # ac_fn_c_compute_int
2191cat >config.log <<_ACEOF
2192This file contains any messages produced by compilers while
2193running configure, to aid debugging if configure makes a mistake.
1e8e9920 2194
cd9a469c 2195It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
2196generated by GNU Autoconf 2.64. Invocation command line was
1e8e9920 2197
cd9a469c 2198 $ $0 $@
1e8e9920 2199
cd9a469c 2200_ACEOF
2201exec 5>>config.log
2202{
2203cat <<_ASUNAME
2204## --------- ##
2205## Platform. ##
2206## --------- ##
1e8e9920 2207
cd9a469c 2208hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2209uname -m = `(uname -m) 2>/dev/null || echo unknown`
2210uname -r = `(uname -r) 2>/dev/null || echo unknown`
2211uname -s = `(uname -s) 2>/dev/null || echo unknown`
2212uname -v = `(uname -v) 2>/dev/null || echo unknown`
1e8e9920 2213
cd9a469c 2214/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2215/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1e8e9920 2216
cd9a469c 2217/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2218/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2219/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2220/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2221/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2222/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2223/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1e8e9920 2224
cd9a469c 2225_ASUNAME
1e8e9920 2226
cd9a469c 2227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228for as_dir in $PATH
2229do
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 $as_echo "PATH: $as_dir"
2233 done
2234IFS=$as_save_IFS
1e8e9920 2235
cd9a469c 2236} >&5
1e8e9920 2237
cd9a469c 2238cat >&5 <<_ACEOF
5b2c7553 2239
2240
cd9a469c 2241## ----------- ##
2242## Core tests. ##
2243## ----------- ##
5b2c7553 2244
cd9a469c 2245_ACEOF
1e8e9920 2246
2247
cd9a469c 2248# Keep a trace of the command line.
2249# Strip out --no-create and --no-recursion so they do not pile up.
2250# Strip out --silent because we don't want to record it for future runs.
2251# Also quote any args containing shell meta-characters.
2252# Make two passes to allow for proper duplicate-argument suppression.
2253ac_configure_args=
2254ac_configure_args0=
2255ac_configure_args1=
2256ac_must_keep_next=false
2257for ac_pass in 1 2
2258do
2259 for ac_arg
2260 do
2261 case $ac_arg in
2262 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2264 | -silent | --silent | --silen | --sile | --sil)
2265 continue ;;
2266 *\'*)
2267 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2268 esac
2269 case $ac_pass in
2270 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2271 2)
2272 as_fn_append ac_configure_args1 " '$ac_arg'"
2273 if test $ac_must_keep_next = true; then
2274 ac_must_keep_next=false # Got value, back to normal.
2275 else
2276 case $ac_arg in
2277 *=* | --config-cache | -C | -disable-* | --disable-* \
2278 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2279 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2280 | -with-* | --with-* | -without-* | --without-* | --x)
2281 case "$ac_configure_args0 " in
2282 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2283 esac
2284 ;;
2285 -* ) ac_must_keep_next=true ;;
2286 esac
2287 fi
2288 as_fn_append ac_configure_args " '$ac_arg'"
2289 ;;
2290 esac
2291 done
2292done
2293{ ac_configure_args0=; unset ac_configure_args0;}
2294{ ac_configure_args1=; unset ac_configure_args1;}
1e8e9920 2295
cd9a469c 2296# When interrupted or exit'd, cleanup temporary files, and complete
2297# config.log. We remove comments because anyway the quotes in there
2298# would cause problems or look ugly.
2299# WARNING: Use '\'' to represent an apostrophe within the trap.
2300# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2301trap 'exit_status=$?
2302 # Save into config.log some information that might help in debugging.
2303 {
2304 echo
1e8e9920 2305
cd9a469c 2306 cat <<\_ASBOX
2307## ---------------- ##
2308## Cache variables. ##
2309## ---------------- ##
2310_ASBOX
2311 echo
2312 # The following way of writing the cache mishandles newlines in values,
2313(
2314 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2315 eval ac_val=\$$ac_var
2316 case $ac_val in #(
2317 *${as_nl}*)
2318 case $ac_var in #(
2319 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2320$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2321 esac
2322 case $ac_var in #(
2323 _ | IFS | as_nl) ;; #(
2324 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2325 *) { eval $ac_var=; unset $ac_var;} ;;
2326 esac ;;
2327 esac
2328 done
2329 (set) 2>&1 |
2330 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2331 *${as_nl}ac_space=\ *)
2332 sed -n \
2333 "s/'\''/'\''\\\\'\'''\''/g;
2334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2335 ;; #(
2336 *)
2337 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2338 ;;
2339 esac |
2340 sort
2341)
2342 echo
1e8e9920 2343
cd9a469c 2344 cat <<\_ASBOX
2345## ----------------- ##
2346## Output variables. ##
2347## ----------------- ##
2348_ASBOX
2349 echo
2350 for ac_var in $ac_subst_vars
2351 do
2352 eval ac_val=\$$ac_var
2353 case $ac_val in
2354 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2355 esac
2356 $as_echo "$ac_var='\''$ac_val'\''"
2357 done | sort
2358 echo
1e8e9920 2359
cd9a469c 2360 if test -n "$ac_subst_files"; then
2361 cat <<\_ASBOX
2362## ------------------- ##
2363## File substitutions. ##
2364## ------------------- ##
2365_ASBOX
2366 echo
2367 for ac_var in $ac_subst_files
2368 do
2369 eval ac_val=\$$ac_var
2370 case $ac_val in
2371 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2372 esac
2373 $as_echo "$ac_var='\''$ac_val'\''"
2374 done | sort
2375 echo
2376 fi
1e8e9920 2377
cd9a469c 2378 if test -s confdefs.h; then
2379 cat <<\_ASBOX
2380## ----------- ##
2381## confdefs.h. ##
2382## ----------- ##
2383_ASBOX
2384 echo
2385 cat confdefs.h
2386 echo
2387 fi
2388 test "$ac_signal" != 0 &&
2389 $as_echo "$as_me: caught signal $ac_signal"
2390 $as_echo "$as_me: exit $exit_status"
2391 } >&5
2392 rm -f core *.core core.conftest.* &&
2393 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2394 exit $exit_status
2395' 0
2396for ac_signal in 1 2 13 15; do
2397 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2398done
2399ac_signal=0
1e8e9920 2400
cd9a469c 2401# confdefs.h avoids OS command line length limits that DEFS can exceed.
2402rm -f -r conftest* confdefs.h
2403
2404$as_echo "/* confdefs.h */" > confdefs.h
2405
2406# Predefined preprocessor variables.
2407
2408cat >>confdefs.h <<_ACEOF
2409#define PACKAGE_NAME "$PACKAGE_NAME"
2410_ACEOF
2411
2412cat >>confdefs.h <<_ACEOF
2413#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2414_ACEOF
2415
2416cat >>confdefs.h <<_ACEOF
2417#define PACKAGE_VERSION "$PACKAGE_VERSION"
2418_ACEOF
2419
2420cat >>confdefs.h <<_ACEOF
2421#define PACKAGE_STRING "$PACKAGE_STRING"
2422_ACEOF
2423
2424cat >>confdefs.h <<_ACEOF
2425#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2426_ACEOF
2427
2428cat >>confdefs.h <<_ACEOF
2429#define PACKAGE_URL "$PACKAGE_URL"
2430_ACEOF
2431
2432
2433# Let the site file select an alternate cache file if it wants to.
2434# Prefer an explicitly selected file to automatically selected ones.
2435ac_site_file1=NONE
2436ac_site_file2=NONE
2437if test -n "$CONFIG_SITE"; then
2438 ac_site_file1=$CONFIG_SITE
2439elif test "x$prefix" != xNONE; then
2440 ac_site_file1=$prefix/share/config.site
2441 ac_site_file2=$prefix/etc/config.site
2442else
2443 ac_site_file1=$ac_default_prefix/share/config.site
2444 ac_site_file2=$ac_default_prefix/etc/config.site
2445fi
2446for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2447do
2448 test "x$ac_site_file" = xNONE && continue
2449 if test -r "$ac_site_file"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2451$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2452 sed 's/^/| /' "$ac_site_file" >&5
2453 . "$ac_site_file"
2454 fi
2455done
2456
2457if test -r "$cache_file"; then
2458 # Some versions of bash will fail to source /dev/null (special
2459 # files actually), so we avoid doing that.
2460 if test -f "$cache_file"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2462$as_echo "$as_me: loading cache $cache_file" >&6;}
2463 case $cache_file in
2464 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2465 *) . "./$cache_file";;
2466 esac
2467 fi
2468else
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2470$as_echo "$as_me: creating cache $cache_file" >&6;}
2471 >$cache_file
2472fi
2473
2474# Check that the precious variables saved in the cache have kept the same
2475# value.
2476ac_cache_corrupted=false
2477for ac_var in $ac_precious_vars; do
2478 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2479 eval ac_new_set=\$ac_env_${ac_var}_set
2480 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2481 eval ac_new_val=\$ac_env_${ac_var}_value
2482 case $ac_old_set,$ac_new_set in
2483 set,)
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2485$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2486 ac_cache_corrupted=: ;;
2487 ,set)
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2489$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2490 ac_cache_corrupted=: ;;
2491 ,);;
2492 *)
2493 if test "x$ac_old_val" != "x$ac_new_val"; then
2494 # differences in whitespace do not lead to failure.
2495 ac_old_val_w=`echo x $ac_old_val`
2496 ac_new_val_w=`echo x $ac_new_val`
2497 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2499$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2500 ac_cache_corrupted=:
2501 else
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2503$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2504 eval $ac_var=\$ac_old_val
2505 fi
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2507$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2509$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2510 fi;;
2511 esac
2512 # Pass precious variables to config.status.
2513 if test "$ac_new_set" = set; then
2514 case $ac_new_val in
2515 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2516 *) ac_arg=$ac_var=$ac_new_val ;;
2517 esac
2518 case " $ac_configure_args " in
2519 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2520 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2521 esac
2522 fi
2523done
2524if $ac_cache_corrupted; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2528$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2529 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2530fi
2531## -------------------- ##
2532## Main body of script. ##
2533## -------------------- ##
2534
2535ac_ext=c
2536ac_cpp='$CPP $CPPFLAGS'
2537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540
2541
2542
2543
2544
2545ac_config_headers="$ac_config_headers config.h"
2546
2547
2548# -------
2549# Options
2550# -------
2551
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2553$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2554 # Check whether --enable-version-specific-runtime-libs was given.
2555if test "${enable_version_specific_runtime_libs+set}" = set; then :
2556 enableval=$enable_version_specific_runtime_libs;
1e8e9920 2557 case "$enableval" in
2558 yes|no) ;;
cd9a469c 2559 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
1e8e9920 2560 esac
2561
2562else
2563 enable_version_specific_runtime_libs=no
cd9a469c 2564fi
2565
1e8e9920 2566
cd9a469c 2567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2568$as_echo "$enable_version_specific_runtime_libs" >&6; }
1e8e9920 2569
aeda7a78 2570# We would like our source tree to be readonly. However when releases or
2571# pre-releases are generated, the flex/bison generated files as well as the
2572# various formats of manuals need to be included along with the rest of the
2573# sources. Therefore we have --enable-generated-files-in-srcdir to do
2574# just that.
cd9a469c 2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2576$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2577 # Check whether --enable-generated-files-in-srcdir was given.
2578if test "${enable_generated_files_in_srcdir+set}" = set; then :
2579 enableval=$enable_generated_files_in_srcdir;
aeda7a78 2580 case "$enableval" in
2581 yes|no) ;;
cd9a469c 2582 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
aeda7a78 2583 esac
2584
2585else
2586 enable_generated_files_in_srcdir=no
cd9a469c 2587fi
aeda7a78 2588
2589
cd9a469c 2590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2591$as_echo "$enable_generated_files_in_srcdir" >&6; }
2592 if test "$enable_generated_files_in_srcdir" = yes; then
aeda7a78 2593 GENINSRC_TRUE=
2594 GENINSRC_FALSE='#'
2595else
2596 GENINSRC_TRUE='#'
2597 GENINSRC_FALSE=
2598fi
2599
2600
2601
1e8e9920 2602# -------
2603# -------
2604
2605# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2606#
2607# You will slowly go insane if you do not grok the following fact: when
2608# building this library, the top-level /target/ becomes the library's /host/.
2609#
2610# configure then causes --target to default to --host, exactly like any
2611# other package using autoconf. Therefore, 'target' and 'host' will
2612# always be the same. This makes sense both for native and cross compilers
2613# just think about it for a little while. :-)
2614#
2615# Also, if this library is being configured as part of a cross compiler, the
2616# top-level configure script will pass the "real" host as $with_cross_host.
2617#
2618# Do not delete or change the following two lines. For why, see
2619# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2620ac_aux_dir=
cd9a469c 2621for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2622 for ac_t in install-sh install.sh shtool; do
2623 if test -f "$ac_dir/$ac_t"; then
2624 ac_aux_dir=$ac_dir
2625 ac_install_sh="$ac_aux_dir/$ac_t -c"
2626 break 2
2627 fi
2628 done
1e8e9920 2629done
2630if test -z "$ac_aux_dir"; then
cd9a469c 2631 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1e8e9920 2632fi
cd9a469c 2633
2634# These three variables are undocumented and unsupported,
2635# and are intended to be withdrawn in a future Autoconf release.
2636# They can cause serious problems if a builder's source tree is in a directory
2637# whose full name contains unusual characters.
2638ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2639ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2640ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2641
1e8e9920 2642
2643# Make sure we can run config.sub.
cd9a469c 2644$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2645 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2646
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2648$as_echo_n "checking build system type... " >&6; }
2649if test "${ac_cv_build+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
2651else
2652 ac_build_alias=$build_alias
2653test "x$ac_build_alias" = x &&
2654 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2655test "x$ac_build_alias" = x &&
2656 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2657ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2658 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2659
2660fi
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2662$as_echo "$ac_cv_build" >&6; }
2663case $ac_cv_build in
2664*-*-*) ;;
2665*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2666esac
1e8e9920 2667build=$ac_cv_build
cd9a469c 2668ac_save_IFS=$IFS; IFS='-'
2669set x $ac_cv_build
2670shift
2671build_cpu=$1
2672build_vendor=$2
2673shift; shift
2674# Remember, the first character of IFS is used to create $*,
2675# except with old shells:
2676build_os=$*
2677IFS=$ac_save_IFS
2678case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1e8e9920 2679
2680
cd9a469c 2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2682$as_echo_n "checking host system type... " >&6; }
2683if test "${ac_cv_host+set}" = set; then :
2684 $as_echo_n "(cached) " >&6
1e8e9920 2685else
cd9a469c 2686 if test "x$host_alias" = x; then
2687 ac_cv_host=$ac_cv_build
2688else
2689 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2690 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2691fi
1e8e9920 2692
2693fi
cd9a469c 2694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2695$as_echo "$ac_cv_host" >&6; }
2696case $ac_cv_host in
2697*-*-*) ;;
2698*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2699esac
1e8e9920 2700host=$ac_cv_host
cd9a469c 2701ac_save_IFS=$IFS; IFS='-'
2702set x $ac_cv_host
2703shift
2704host_cpu=$1
2705host_vendor=$2
2706shift; shift
2707# Remember, the first character of IFS is used to create $*,
2708# except with old shells:
2709host_os=$*
2710IFS=$ac_save_IFS
2711case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1e8e9920 2712
2713
cd9a469c 2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2715$as_echo_n "checking target system type... " >&6; }
2716if test "${ac_cv_target+set}" = set; then :
2717 $as_echo_n "(cached) " >&6
2718else
2719 if test "x$target_alias" = x; then
2720 ac_cv_target=$ac_cv_host
1e8e9920 2721else
cd9a469c 2722 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2723 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2724fi
1e8e9920 2725
2726fi
cd9a469c 2727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2728$as_echo "$ac_cv_target" >&6; }
2729case $ac_cv_target in
2730*-*-*) ;;
2731*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2732esac
1e8e9920 2733target=$ac_cv_target
cd9a469c 2734ac_save_IFS=$IFS; IFS='-'
2735set x $ac_cv_target
2736shift
2737target_cpu=$1
2738target_vendor=$2
2739shift; shift
2740# Remember, the first character of IFS is used to create $*,
2741# except with old shells:
2742target_os=$*
2743IFS=$ac_save_IFS
2744case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1e8e9920 2745
2746
2747# The aliases save the names the user supplied, while $host etc.
2748# will get canonicalized.
2749test -n "$target_alias" &&
2750 test "$program_prefix$program_suffix$program_transform_name" = \
2751 NONENONEs,x,x, &&
2752 program_prefix=${target_alias}-
cd9a469c 2753
1e8e9920 2754target_alias=${target_alias-$host_alias}
2755
2756# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2757# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2758# 1.9.0: minimum required version
2759# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2760# of other PACKAGE_* variables will, however, and there's nothing
2761# we can do about that; they come from AC_INIT).
2762# foreign: we don't follow the normal rules for GNU packages (no COPYING
2763# file in the top srcdir, etc, etc), so stop complaining.
5dbeae57 2764# no-dist: we don't want 'dist' and related rules.
1e8e9920 2765# -Wall: turns on all automake warnings...
2766# -Wno-portability: ...except this one, since GNU make is required.
2767# -Wno-override: ... and this one, since we do want this in testsuite.
cd9a469c 2768am__api_version='1.11'
2769
1e8e9920 2770# Find a good install program. We prefer a C program (faster),
2771# so one script is as good as another. But avoid the broken or
2772# incompatible versions:
2773# SysV /etc/install, /usr/sbin/install
2774# SunOS /usr/etc/install
2775# IRIX /sbin/install
2776# AIX /bin/install
2777# AmigaOS /C/install, which installs bootblocks on floppy discs
2778# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2779# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2780# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2781# OS/2's system install, which has a completely different semantic
2782# ./install, which can be erroneously created by make from ./install.sh.
82eaf560 2783# Reject install programs that cannot install multiple files.
cd9a469c 2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2785$as_echo_n "checking for a BSD-compatible install... " >&6; }
1e8e9920 2786if test -z "$INSTALL"; then
cd9a469c 2787if test "${ac_cv_path_install+set}" = set; then :
2788 $as_echo_n "(cached) " >&6
1e8e9920 2789else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
cd9a469c 2795 # Account for people who put trailing slashes in PATH elements.
2796case $as_dir/ in #((
2797 ./ | .// | /[cC]/* | \
1e8e9920 2798 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cd9a469c 2799 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1e8e9920 2800 /usr/ucb/* ) ;;
2801 *)
2802 # OSF1 and SCO ODT 3.0 have their own names for install.
2803 # Don't use installbsd from OSF since it installs stuff as root
2804 # by default.
2805 for ac_prog in ginstall scoinst install; do
2806 for ac_exec_ext in '' $ac_executable_extensions; do
cd9a469c 2807 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1e8e9920 2808 if test $ac_prog = install &&
2809 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2810 # AIX install. It has an incompatible calling convention.
2811 :
2812 elif test $ac_prog = install &&
2813 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2814 # program-specific install script used by HP pwplus--don't use.
2815 :
2816 else
82eaf560 2817 rm -rf conftest.one conftest.two conftest.dir
2818 echo one > conftest.one
2819 echo two > conftest.two
2820 mkdir conftest.dir
2821 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2822 test -s conftest.one && test -s conftest.two &&
2823 test -s conftest.dir/conftest.one &&
2824 test -s conftest.dir/conftest.two
2825 then
2826 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2827 break 3
2828 fi
1e8e9920 2829 fi
2830 fi
2831 done
2832 done
2833 ;;
2834esac
cd9a469c 2835
2836 done
2837IFS=$as_save_IFS
1e8e9920 2838
82eaf560 2839rm -rf conftest.one conftest.two conftest.dir
1e8e9920 2840
2841fi
2842 if test "${ac_cv_path_install+set}" = set; then
2843 INSTALL=$ac_cv_path_install
2844 else
82eaf560 2845 # As a last resort, use the slow shell script. Don't cache a
2846 # value for INSTALL within a source directory, because that will
1e8e9920 2847 # break other packages using the cache if that directory is
82eaf560 2848 # removed, or if the value is a relative name.
1e8e9920 2849 INSTALL=$ac_install_sh
2850 fi
2851fi
cd9a469c 2852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2853$as_echo "$INSTALL" >&6; }
1e8e9920 2854
2855# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2856# It thinks the first close brace ends the variable substitution.
2857test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2858
2859test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2860
2861test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2862
cd9a469c 2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2864$as_echo_n "checking whether build environment is sane... " >&6; }
1e8e9920 2865# Just in case
2866sleep 1
2867echo timestamp > conftest.file
cd9a469c 2868# Reject unsafe characters in $srcdir or the absolute working directory
2869# name. Accept space and tab only in the latter.
2870am_lf='
2871'
2872case `pwd` in
2873 *[\\\"\#\$\&\'\`$am_lf]*)
2874 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2875esac
2876case $srcdir in
2877 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2878 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2879esac
2880
1e8e9920 2881# Do `set' in a subshell so we don't clobber the current shell's
2882# arguments. Must try -L first in case configure is actually a
2883# symlink; some systems play weird games with the mod time of symlinks
2884# (eg FreeBSD returns the mod time of the symlink's containing
2885# directory).
2886if (
cd9a469c 2887 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1e8e9920 2888 if test "$*" = "X"; then
2889 # -L didn't work.
cd9a469c 2890 set X `ls -t "$srcdir/configure" conftest.file`
1e8e9920 2891 fi
2892 rm -f conftest.file
2893 if test "$*" != "X $srcdir/configure conftest.file" \
2894 && test "$*" != "X conftest.file $srcdir/configure"; then
2895
2896 # If neither matched, then we have a broken ls. This can happen
2897 # if, for instance, CONFIG_SHELL is bash and it inherits a
2898 # broken ls alias from the environment. This has actually
2899 # happened. Such a system could not be considered "sane".
cd9a469c 2900 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2901alias in your environment" "$LINENO" 5
1e8e9920 2902 fi
2903
2904 test "$2" = conftest.file
2905 )
2906then
2907 # Ok.
2908 :
2909else
cd9a469c 2910 as_fn_error "newly created file is older than distributed files!
2911Check your system clock" "$LINENO" 5
1e8e9920 2912fi
cd9a469c 2913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2914$as_echo "yes" >&6; }
1e8e9920 2915test "$program_prefix" != NONE &&
cd9a469c 2916 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1e8e9920 2917# Use a double $ so make ignores it.
2918test "$program_suffix" != NONE &&
cd9a469c 2919 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2920# Double any \ or $.
1e8e9920 2921# By default was `s,x,x', remove it if useless.
cd9a469c 2922ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2923program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1e8e9920 2924
2925# expand $ac_aux_dir to an absolute path
2926am_aux_dir=`cd $ac_aux_dir && pwd`
2927
cd9a469c 2928if test x"${MISSING+set}" != xset; then
2929 case $am_aux_dir in
2930 *\ * | *\ *)
2931 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2932 *)
2933 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2934 esac
2935fi
1e8e9920 2936# Use eval to expand $SHELL
2937if eval "$MISSING --run true"; then
2938 am_missing_run="$MISSING --run "
2939else
2940 am_missing_run=
cd9a469c 2941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2942$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2943fi
2944
2945if test x"${install_sh}" != xset; then
2946 case $am_aux_dir in
2947 *\ * | *\ *)
2948 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2949 *)
2950 install_sh="\${SHELL} $am_aux_dir/install-sh"
2951 esac
2952fi
2953
2954# Installed binaries are usually stripped using `strip' when the user
2955# run `make install-strip'. However `strip' might not be the right
2956# tool to use in cross-compilation environments, therefore Automake
2957# will honor the `STRIP' environment variable to overrule this program.
2958if test "$cross_compiling" != no; then
2959 if test -n "$ac_tool_prefix"; then
2960 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2961set dummy ${ac_tool_prefix}strip; ac_word=$2
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963$as_echo_n "checking for $ac_word... " >&6; }
2964if test "${ac_cv_prog_STRIP+set}" = set; then :
2965 $as_echo_n "(cached) " >&6
2966else
2967 if test -n "$STRIP"; then
2968 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2969else
2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971for as_dir in $PATH
2972do
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981done
2982 done
2983IFS=$as_save_IFS
2984
2985fi
2986fi
2987STRIP=$ac_cv_prog_STRIP
2988if test -n "$STRIP"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2990$as_echo "$STRIP" >&6; }
2991else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993$as_echo "no" >&6; }
2994fi
2995
2996
2997fi
2998if test -z "$ac_cv_prog_STRIP"; then
2999 ac_ct_STRIP=$STRIP
3000 # Extract the first word of "strip", so it can be a program name with args.
3001set dummy strip; ac_word=$2
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003$as_echo_n "checking for $ac_word... " >&6; }
3004if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3005 $as_echo_n "(cached) " >&6
3006else
3007 if test -n "$ac_ct_STRIP"; then
3008 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3009else
3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011for as_dir in $PATH
3012do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017 ac_cv_prog_ac_ct_STRIP="strip"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021done
3022 done
3023IFS=$as_save_IFS
3024
3025fi
3026fi
3027ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3028if test -n "$ac_ct_STRIP"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3030$as_echo "$ac_ct_STRIP" >&6; }
3031else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033$as_echo "no" >&6; }
3034fi
3035
3036 if test "x$ac_ct_STRIP" = x; then
3037 STRIP=":"
3038 else
3039 case $cross_compiling:$ac_tool_warned in
3040yes:)
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3043ac_tool_warned=yes ;;
3044esac
3045 STRIP=$ac_ct_STRIP
3046 fi
3047else
3048 STRIP="$ac_cv_prog_STRIP"
3049fi
3050
3051fi
3052INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3053
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3055$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3056if test -z "$MKDIR_P"; then
3057 if test "${ac_cv_path_mkdir+set}" = set; then :
3058 $as_echo_n "(cached) " >&6
3059else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3062do
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 for ac_prog in mkdir gmkdir; do
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3068 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3069 'mkdir (GNU coreutils) '* | \
3070 'mkdir (coreutils) '* | \
3071 'mkdir (fileutils) '4.1*)
3072 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3073 break 3;;
3074 esac
3075 done
3076 done
1e8e9920 3077 done
cd9a469c 3078IFS=$as_save_IFS
3079
3080fi
3081
3082 if test "${ac_cv_path_mkdir+set}" = set; then
3083 MKDIR_P="$ac_cv_path_mkdir -p"
1e8e9920 3084 else
cd9a469c 3085 # As a last resort, use the slow shell script. Don't cache a
3086 # value for MKDIR_P within a source directory, because that will
3087 # break other packages using the cache if that directory is
3088 # removed, or if the value is a relative name.
3089 test -d ./--version && rmdir ./--version
3090 MKDIR_P="$ac_install_sh -d"
1e8e9920 3091 fi
3092fi
cd9a469c 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3094$as_echo "$MKDIR_P" >&6; }
3095
3096mkdir_p="$MKDIR_P"
3097case $mkdir_p in
3098 [\\/$]* | ?:[\\/]*) ;;
3099 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3100esac
1e8e9920 3101
3102for ac_prog in gawk mawk nawk awk
3103do
3104 # Extract the first word of "$ac_prog", so it can be a program name with args.
3105set dummy $ac_prog; ac_word=$2
cd9a469c 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107$as_echo_n "checking for $ac_word... " >&6; }
3108if test "${ac_cv_prog_AWK+set}" = set; then :
3109 $as_echo_n "(cached) " >&6
1e8e9920 3110else
3111 if test -n "$AWK"; then
3112 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3113else
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
cd9a469c 3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3121 ac_cv_prog_AWK="$ac_prog"
cd9a469c 3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3123 break 2
3124 fi
3125done
cd9a469c 3126 done
3127IFS=$as_save_IFS
1e8e9920 3128
3129fi
3130fi
3131AWK=$ac_cv_prog_AWK
3132if test -n "$AWK"; then
cd9a469c 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3134$as_echo "$AWK" >&6; }
1e8e9920 3135else
cd9a469c 3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137$as_echo "no" >&6; }
1e8e9920 3138fi
3139
cd9a469c 3140
1e8e9920 3141 test -n "$AWK" && break
3142done
3143
cd9a469c 3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3145$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3146set x ${MAKE-make}
3147ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3148if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3149 $as_echo_n "(cached) " >&6
1e8e9920 3150else
3151 cat >conftest.make <<\_ACEOF
cd9a469c 3152SHELL = /bin/sh
1e8e9920 3153all:
cd9a469c 3154 @echo '@@@%%%=$(MAKE)=@@@%%%'
1e8e9920 3155_ACEOF
3156# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cd9a469c 3157case `${MAKE-make} -f conftest.make 2>/dev/null` in
3158 *@@@%%%=?*=@@@%%%*)
3159 eval ac_cv_prog_make_${ac_make}_set=yes;;
3160 *)
3161 eval ac_cv_prog_make_${ac_make}_set=no;;
3162esac
1e8e9920 3163rm -f conftest.make
3164fi
cd9a469c 3165if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3167$as_echo "yes" >&6; }
1e8e9920 3168 SET_MAKE=
3169else
cd9a469c 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171$as_echo "no" >&6; }
1e8e9920 3172 SET_MAKE="MAKE=${MAKE-make}"
3173fi
3174
3175rm -rf .tst 2>/dev/null
3176mkdir .tst 2>/dev/null
3177if test -d .tst; then
3178 am__leading_dot=.
3179else
3180 am__leading_dot=_
3181fi
3182rmdir .tst 2>/dev/null
3183
cd9a469c 3184if test "`cd $srcdir && pwd`" != "`pwd`"; then
3185 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3186 # is not polluted with repeated "-I."
3187 am__isrc=' -I$(srcdir)'
3188 # test to see if srcdir already configured
3189 if test -f $srcdir/config.status; then
3190 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3191 fi
1e8e9920 3192fi
3193
3194# test whether we have cygpath
3195if test -z "$CYGPATH_W"; then
3196 if (cygpath --version) >/dev/null 2>/dev/null; then
3197 CYGPATH_W='cygpath -w'
3198 else
3199 CYGPATH_W=echo
3200 fi
3201fi
3202
3203
3204# Define the identity of the package.
3205 PACKAGE='libgomp'
3206 VERSION='1.0'
3207
3208
3209cat >>confdefs.h <<_ACEOF
3210#define PACKAGE "$PACKAGE"
3211_ACEOF
3212
3213
3214cat >>confdefs.h <<_ACEOF
3215#define VERSION "$VERSION"
3216_ACEOF
3217
3218# Some tools Automake needs.
3219
3220ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3221
3222
3223AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3224
3225
3226AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3227
3228
3229AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3230
3231
3232MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3233
cd9a469c 3234# We need awk for the "check" target. The system "awk" is bad on
3235# some platforms.
3236# Always define AMTAR for backward compatibility.
1e8e9920 3237
3238AMTAR=${AMTAR-"${am_missing_run}tar"}
3239
3240am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3241
3242
3243
3244
3245
3246# Default to --enable-multilib
cd9a469c 3247# Check whether --enable-multilib was given.
3248if test "${enable_multilib+set}" = set; then :
3249 enableval=$enable_multilib; case "$enableval" in
1e8e9920 3250 yes) multilib=yes ;;
3251 no) multilib=no ;;
cd9a469c 3252 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
1e8e9920 3253 esac
3254else
3255 multilib=yes
cd9a469c 3256fi
3257
1e8e9920 3258
3259# We may get other options which we leave undocumented:
3260# --with-target-subdir, --with-multisrctop, --with-multisubdir
3261# See config-ml.in if you want the gory details.
3262
3263if test "$srcdir" = "."; then
3264 if test "$with_target_subdir" != "."; then
3265 multi_basedir="$srcdir/$with_multisrctop../.."
3266 else
3267 multi_basedir="$srcdir/$with_multisrctop.."
3268 fi
3269else
3270 multi_basedir="$srcdir/.."
3271fi
3272
3273
ff434425 3274# Even if the default multilib is not a cross compilation,
3275# it may be that some of the other multilibs are.
3276if test $cross_compiling = no && test $multilib = yes \
3277 && test "x${with_multisubdir}" != x ; then
3278 cross_compiling=maybe
3279fi
3280
cd9a469c 3281ac_config_commands="$ac_config_commands default-1"
1e8e9920 3282
3283
3284# Calculate toolexeclibdir
3285# Also toolexecdir, though it's only used in toolexeclibdir
3286case ${enable_version_specific_runtime_libs} in
3287 yes)
3288 # Need the gcc compiler version to know where to install libraries
3289 # and header files if --enable-version-specific-runtime-libs option
3290 # is selected.
3291 toolexecdir='$(libdir)/gcc/$(target_alias)'
3292 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3293 ;;
3294 no)
3295 if test -n "$with_cross_host" &&
3296 test x"$with_cross_host" != x"no"; then
3297 # Install a library built with a cross compiler in tooldir, not libdir.
3298 toolexecdir='$(exec_prefix)/$(target_alias)'
3299 toolexeclibdir='$(toolexecdir)/lib'
3300 else
3301 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3302 toolexeclibdir='$(libdir)'
3303 fi
3304 multi_os_directory=`$CC -print-multi-os-directory`
3305 case $multi_os_directory in
3306 .) ;; # Avoid trailing /.
3307 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3308 esac
3309 ;;
3310esac
3311
3312
3313
3314# Check the compiler.
3315# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3316# We must force CC to /not/ be precious variables; otherwise
3317# the wrong, non-multilib-adjusted value will be used in multilibs.
3318# As a side effect, we have to subst CFLAGS ourselves.
3319
3320
3321
3322ac_ext=c
3323ac_cpp='$CPP $CPPFLAGS'
3324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327if test -n "$ac_tool_prefix"; then
3328 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3329set dummy ${ac_tool_prefix}gcc; ac_word=$2
cd9a469c 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331$as_echo_n "checking for $ac_word... " >&6; }
3332if test "${ac_cv_prog_CC+set}" = set; then :
3333 $as_echo_n "(cached) " >&6
1e8e9920 3334else
3335 if test -n "$CC"; then
3336 ac_cv_prog_CC="$CC" # Let the user override the test.
3337else
3338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339for as_dir in $PATH
3340do
3341 IFS=$as_save_IFS
3342 test -z "$as_dir" && as_dir=.
cd9a469c 3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3345 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3347 break 2
3348 fi
3349done
cd9a469c 3350 done
3351IFS=$as_save_IFS
1e8e9920 3352
3353fi
3354fi
3355CC=$ac_cv_prog_CC
3356if test -n "$CC"; then
cd9a469c 3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3358$as_echo "$CC" >&6; }
1e8e9920 3359else
cd9a469c 3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361$as_echo "no" >&6; }
1e8e9920 3362fi
3363
cd9a469c 3364
1e8e9920 3365fi
3366if test -z "$ac_cv_prog_CC"; then
3367 ac_ct_CC=$CC
3368 # Extract the first word of "gcc", so it can be a program name with args.
3369set dummy gcc; ac_word=$2
cd9a469c 3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371$as_echo_n "checking for $ac_word... " >&6; }
3372if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3373 $as_echo_n "(cached) " >&6
1e8e9920 3374else
3375 if test -n "$ac_ct_CC"; then
3376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3377else
3378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379for as_dir in $PATH
3380do
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
cd9a469c 3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3385 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3387 break 2
3388 fi
3389done
cd9a469c 3390 done
3391IFS=$as_save_IFS
1e8e9920 3392
3393fi
3394fi
3395ac_ct_CC=$ac_cv_prog_ac_ct_CC
3396if test -n "$ac_ct_CC"; then
cd9a469c 3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3398$as_echo "$ac_ct_CC" >&6; }
1e8e9920 3399else
cd9a469c 3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401$as_echo "no" >&6; }
1e8e9920 3402fi
3403
cd9a469c 3404 if test "x$ac_ct_CC" = x; then
3405 CC=""
3406 else
3407 case $cross_compiling:$ac_tool_warned in
3408yes:)
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3411ac_tool_warned=yes ;;
3412esac
3413 CC=$ac_ct_CC
3414 fi
1e8e9920 3415else
3416 CC="$ac_cv_prog_CC"
3417fi
3418
3419if test -z "$CC"; then
cd9a469c 3420 if test -n "$ac_tool_prefix"; then
3421 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1e8e9920 3422set dummy ${ac_tool_prefix}cc; ac_word=$2
cd9a469c 3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424$as_echo_n "checking for $ac_word... " >&6; }
3425if test "${ac_cv_prog_CC+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
1e8e9920 3427else
3428 if test -n "$CC"; then
3429 ac_cv_prog_CC="$CC" # Let the user override the test.
3430else
3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH
3433do
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
cd9a469c 3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3438 ac_cv_prog_CC="${ac_tool_prefix}cc"
cd9a469c 3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3440 break 2
3441 fi
3442done
cd9a469c 3443 done
3444IFS=$as_save_IFS
1e8e9920 3445
3446fi
3447fi
3448CC=$ac_cv_prog_CC
3449if test -n "$CC"; then
cd9a469c 3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451$as_echo "$CC" >&6; }
1e8e9920 3452else
cd9a469c 3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454$as_echo "no" >&6; }
1e8e9920 3455fi
3456
1e8e9920 3457
cd9a469c 3458 fi
1e8e9920 3459fi
3460if test -z "$CC"; then
3461 # Extract the first word of "cc", so it can be a program name with args.
3462set dummy cc; ac_word=$2
cd9a469c 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464$as_echo_n "checking for $ac_word... " >&6; }
3465if test "${ac_cv_prog_CC+set}" = set; then :
3466 $as_echo_n "(cached) " >&6
1e8e9920 3467else
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC="$CC" # Let the user override the test.
3470else
3471 ac_prog_rejected=no
3472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473for as_dir in $PATH
3474do
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
cd9a469c 3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3480 ac_prog_rejected=yes
3481 continue
3482 fi
3483 ac_cv_prog_CC="cc"
cd9a469c 3484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3485 break 2
3486 fi
3487done
cd9a469c 3488 done
3489IFS=$as_save_IFS
1e8e9920 3490
3491if test $ac_prog_rejected = yes; then
3492 # We found a bogon in the path, so make sure we never use it.
3493 set dummy $ac_cv_prog_CC
3494 shift
3495 if test $# != 0; then
3496 # We chose a different compiler from the bogus one.
3497 # However, it has the same basename, so the bogon will be chosen
3498 # first if we set CC to just the basename; use the full file name.
3499 shift
3500 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3501 fi
3502fi
3503fi
3504fi
3505CC=$ac_cv_prog_CC
3506if test -n "$CC"; then
cd9a469c 3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508$as_echo "$CC" >&6; }
1e8e9920 3509else
cd9a469c 3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511$as_echo "no" >&6; }
1e8e9920 3512fi
3513
cd9a469c 3514
1e8e9920 3515fi
3516if test -z "$CC"; then
3517 if test -n "$ac_tool_prefix"; then
cd9a469c 3518 for ac_prog in cl.exe
1e8e9920 3519 do
3520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3521set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523$as_echo_n "checking for $ac_word... " >&6; }
3524if test "${ac_cv_prog_CC+set}" = set; then :
3525 $as_echo_n "(cached) " >&6
1e8e9920 3526else
3527 if test -n "$CC"; then
3528 ac_cv_prog_CC="$CC" # Let the user override the test.
3529else
3530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531for as_dir in $PATH
3532do
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
cd9a469c 3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3537 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cd9a469c 3538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3539 break 2
3540 fi
3541done
cd9a469c 3542 done
3543IFS=$as_save_IFS
1e8e9920 3544
3545fi
3546fi
3547CC=$ac_cv_prog_CC
3548if test -n "$CC"; then
cd9a469c 3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3550$as_echo "$CC" >&6; }
1e8e9920 3551else
cd9a469c 3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553$as_echo "no" >&6; }
1e8e9920 3554fi
3555
cd9a469c 3556
1e8e9920 3557 test -n "$CC" && break
3558 done
3559fi
3560if test -z "$CC"; then
3561 ac_ct_CC=$CC
cd9a469c 3562 for ac_prog in cl.exe
1e8e9920 3563do
3564 # Extract the first word of "$ac_prog", so it can be a program name with args.
3565set dummy $ac_prog; ac_word=$2
cd9a469c 3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567$as_echo_n "checking for $ac_word... " >&6; }
3568if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3569 $as_echo_n "(cached) " >&6
1e8e9920 3570else
3571 if test -n "$ac_ct_CC"; then
3572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3573else
3574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575for as_dir in $PATH
3576do
3577 IFS=$as_save_IFS
3578 test -z "$as_dir" && as_dir=.
cd9a469c 3579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3581 ac_cv_prog_ac_ct_CC="$ac_prog"
cd9a469c 3582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3583 break 2
3584 fi
3585done
cd9a469c 3586 done
3587IFS=$as_save_IFS
1e8e9920 3588
3589fi
3590fi
3591ac_ct_CC=$ac_cv_prog_ac_ct_CC
3592if test -n "$ac_ct_CC"; then
cd9a469c 3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3594$as_echo "$ac_ct_CC" >&6; }
1e8e9920 3595else
cd9a469c 3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597$as_echo "no" >&6; }
1e8e9920 3598fi
3599
cd9a469c 3600
1e8e9920 3601 test -n "$ac_ct_CC" && break
3602done
3603
cd9a469c 3604 if test "x$ac_ct_CC" = x; then
3605 CC=""
3606 else
3607 case $cross_compiling:$ac_tool_warned in
3608yes:)
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3611ac_tool_warned=yes ;;
3612esac
3613 CC=$ac_ct_CC
3614 fi
1e8e9920 3615fi
3616
3617fi
3618
3619
cd9a469c 3620test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622as_fn_error "no acceptable C compiler found in \$PATH
3623See \`config.log' for more details." "$LINENO" 5; }
1e8e9920 3624
3625# Provide some information about the compiler.
cd9a469c 3626$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3627set X $ac_compile
3628ac_compiler=$2
3629for ac_option in --version -v -V -qversion; do
3630 { { ac_try="$ac_compiler $ac_option >&5"
3631case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3634esac
3635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636$as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1e8e9920 3638 ac_status=$?
cd9a469c 3639 if test -s conftest.err; then
3640 sed '10a\
3641... rest of stderr output deleted ...
3642 10q' conftest.err >conftest.er1
3643 cat conftest.er1 >&5
3644 rm -f conftest.er1 conftest.err
3645 fi
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }
3648done
1e8e9920 3649
cd9a469c 3650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1e8e9920 3651/* end confdefs.h. */
3652
3653int
3654main ()
3655{
3656
3657 ;
3658 return 0;
3659}
3660_ACEOF
3661ac_clean_files_save=$ac_clean_files
cd9a469c 3662ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1e8e9920 3663# Try to create an executable without -o first, disregard a.out.
3664# It will help us diagnose broken compilers, and finding out an intuition
3665# of exeext.
cd9a469c 3666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3667$as_echo_n "checking for C compiler default output file name... " >&6; }
3668ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3669
3670# The possible output files:
3671ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3672
3673ac_rmfiles=
3674for ac_file in $ac_files
3675do
3676 case $ac_file in
3677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3678 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3679 esac
3680done
3681rm -f $ac_rmfiles
3682
3683if { { ac_try="$ac_link_default"
3684case "(($ac_try" in
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3687esac
3688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3689$as_echo "$ac_try_echo"; } >&5
3690 (eval "$ac_link_default") 2>&5
3691 ac_status=$?
3692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693 test $ac_status = 0; }; then :
3694 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3695# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3696# in a Makefile. We should not override ac_cv_exeext if it was cached,
3697# so that the user can short-circuit this test for compilers unknown to
3698# Autoconf.
3699for ac_file in $ac_files ''
1e8e9920 3700do
3701 test -f "$ac_file" || continue
3702 case $ac_file in
cd9a469c 3703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1e8e9920 3704 ;;
3705 [ab].out )
3706 # We found the default executable, but exeext='' is most
3707 # certainly right.
3708 break;;
3709 *.* )
cd9a469c 3710 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3711 then :; else
3712 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3713 fi
3714 # We set ac_cv_exeext here because the later test for it is not
3715 # safe: cross compilers may not add the suffix if given an `-o'
3716 # argument, so we may need to know it at that point already.
3717 # Even if this section looks crufty: it has the advantage of
3718 # actually working.
1e8e9920 3719 break;;
3720 * )
3721 break;;
3722 esac
3723done
cd9a469c 3724test "$ac_cv_exeext" = no && ac_cv_exeext=
3725
1e8e9920 3726else
cd9a469c 3727 ac_file=''
3728fi
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3730$as_echo "$ac_file" >&6; }
3731if test -z "$ac_file"; then :
3732 $as_echo "$as_me: failed program was:" >&5
1e8e9920 3733sed 's/^/| /' conftest.$ac_ext >&5
3734
cd9a469c 3735{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3737{ as_fn_set_status 77
3738as_fn_error "C compiler cannot create executables
3739See \`config.log' for more details." "$LINENO" 5; }; }
1e8e9920 3740fi
1e8e9920 3741ac_exeext=$ac_cv_exeext
1e8e9920 3742
cd9a469c 3743# Check that the compiler produces executables we can run. If not, either
1e8e9920 3744# the compiler is broken, or we cross compile.
cd9a469c 3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3746$as_echo_n "checking whether the C compiler works... " >&6; }
1e8e9920 3747# If not cross compiling, check that we can run a simple program.
3748if test "$cross_compiling" != yes; then
3749 if { ac_try='./$ac_file'
cd9a469c 3750 { { case "(($ac_try" in
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3753esac
3754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755$as_echo "$ac_try_echo"; } >&5
3756 (eval "$ac_try") 2>&5
1e8e9920 3757 ac_status=$?
cd9a469c 3758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759 test $ac_status = 0; }; }; then
1e8e9920 3760 cross_compiling=no
3761 else
3762 if test "$cross_compiling" = maybe; then
3763 cross_compiling=yes
3764 else
cd9a469c 3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767as_fn_error "cannot run C compiled programs.
1e8e9920 3768If you meant to cross compile, use \`--host'.
cd9a469c 3769See \`config.log' for more details." "$LINENO" 5; }
1e8e9920 3770 fi
3771 fi
3772fi
cd9a469c 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3774$as_echo "yes" >&6; }
1e8e9920 3775
cd9a469c 3776rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1e8e9920 3777ac_clean_files=$ac_clean_files_save
cd9a469c 3778# Check that the compiler produces executables we can run. If not, either
1e8e9920 3779# the compiler is broken, or we cross compile.
cd9a469c 3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3781$as_echo_n "checking whether we are cross compiling... " >&6; }
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3783$as_echo "$cross_compiling" >&6; }
3784
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3786$as_echo_n "checking for suffix of executables... " >&6; }
3787if { { ac_try="$ac_link"
3788case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3791esac
3792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3793$as_echo "$ac_try_echo"; } >&5
3794 (eval "$ac_link") 2>&5
1e8e9920 3795 ac_status=$?
cd9a469c 3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797 test $ac_status = 0; }; then :
1e8e9920 3798 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3799# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3800# work properly (i.e., refer to `conftest.exe'), while it won't with
3801# `rm'.
3802for ac_file in conftest.exe conftest conftest.*; do
3803 test -f "$ac_file" || continue
3804 case $ac_file in
cd9a469c 3805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1e8e9920 3806 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1e8e9920 3807 break;;
3808 * ) break;;
3809 esac
3810done
3811else
cd9a469c 3812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814as_fn_error "cannot compute suffix of executables: cannot compile and link
3815See \`config.log' for more details." "$LINENO" 5; }
1e8e9920 3816fi
1e8e9920 3817rm -f conftest$ac_cv_exeext
cd9a469c 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3819$as_echo "$ac_cv_exeext" >&6; }
1e8e9920 3820
3821rm -f conftest.$ac_ext
3822EXEEXT=$ac_cv_exeext
3823ac_exeext=$EXEEXT
cd9a469c 3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3825$as_echo_n "checking for suffix of object files... " >&6; }
3826if test "${ac_cv_objext+set}" = set; then :
3827 $as_echo_n "(cached) " >&6
1e8e9920 3828else
cd9a469c 3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1e8e9920 3830/* end confdefs.h. */
3831
3832int
3833main ()
3834{
3835
3836 ;
3837 return 0;
3838}
3839_ACEOF
3840rm -f conftest.o conftest.obj
cd9a469c 3841if { { ac_try="$ac_compile"
3842case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845esac
3846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847$as_echo "$ac_try_echo"; } >&5
3848 (eval "$ac_compile") 2>&5
3849 ac_status=$?
3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851 test $ac_status = 0; }; then :
3852 for ac_file in conftest.o conftest.obj conftest.*; do
3853 test -f "$ac_file" || continue;
1e8e9920 3854 case $ac_file in
cd9a469c 3855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1e8e9920 3856 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3857 break;;
3858 esac
3859done
3860else
cd9a469c 3861 $as_echo "$as_me: failed program was:" >&5
1e8e9920 3862sed 's/^/| /' conftest.$ac_ext >&5
3863
cd9a469c 3864{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3866as_fn_error "cannot compute suffix of object files: cannot compile
3867See \`config.log' for more details." "$LINENO" 5; }
1e8e9920 3868fi
1e8e9920 3869rm -f conftest.$ac_cv_objext conftest.$ac_ext
3870fi
cd9a469c 3871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3872$as_echo "$ac_cv_objext" >&6; }
1e8e9920 3873OBJEXT=$ac_cv_objext
3874ac_objext=$OBJEXT
cd9a469c 3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3876$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3877if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3878 $as_echo_n "(cached) " >&6
1e8e9920 3879else
cd9a469c 3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1e8e9920 3881/* end confdefs.h. */
3882
3883int
3884main ()
3885{
3886#ifndef __GNUC__
3887 choke me
3888#endif
3889
3890 ;
3891 return 0;
3892}
3893_ACEOF
cd9a469c 3894if ac_fn_c_try_compile "$LINENO"; then :
1e8e9920 3895 ac_compiler_gnu=yes
3896else
cd9a469c 3897 ac_compiler_gnu=no
1e8e9920 3898fi
cd9a469c 3899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1e8e9920 3900ac_cv_c_compiler_gnu=$ac_compiler_gnu
3901
3902fi
cd9a469c 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3904$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3905if test $ac_compiler_gnu = yes; then
3906 GCC=yes
3907else
3908 GCC=
3909fi
1e8e9920 3910ac_test_CFLAGS=${CFLAGS+set}
3911ac_save_CFLAGS=$CFLAGS
cd9a469c 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3913$as_echo_n "checking whether $CC accepts -g... " >&6; }
3914if test "${ac_cv_prog_cc_g+set}" = set; then :
3915 $as_echo_n "(cached) " >&6
3916else
3917 ac_save_c_werror_flag=$ac_c_werror_flag
3918 ac_c_werror_flag=yes
3919 ac_cv_prog_cc_g=no
3920 CFLAGS="-g"
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1e8e9920 3922/* end confdefs.h. */
3923
3924int
3925main ()
3926{
3927
3928 ;
3929 return 0;
3930}
3931_ACEOF
cd9a469c 3932if ac_fn_c_try_compile "$LINENO"; then :
1e8e9920 3933 ac_cv_prog_cc_g=yes
3934else
cd9a469c 3935 CFLAGS=""
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937/* end confdefs.h. */
3938
3939int
3940main ()
3941{
3942
3943 ;
3944 return 0;
3945}
3946_ACEOF
3947if ac_fn_c_try_compile "$LINENO"; then :
3948
3949else
3950 ac_c_werror_flag=$ac_save_c_werror_flag
3951 CFLAGS="-g"
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953/* end confdefs.h. */
3954
3955int
3956main ()
3957{
1e8e9920 3958
cd9a469c 3959 ;
3960 return 0;
3961}
3962_ACEOF
3963if ac_fn_c_try_compile "$LINENO"; then :
3964 ac_cv_prog_cc_g=yes
1e8e9920 3965fi
cd9a469c 3966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1e8e9920 3967fi
cd9a469c 3968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969fi
3970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 ac_c_werror_flag=$ac_save_c_werror_flag
3972fi
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3974$as_echo "$ac_cv_prog_cc_g" >&6; }
1e8e9920 3975if test "$ac_test_CFLAGS" = set; then
3976 CFLAGS=$ac_save_CFLAGS
3977elif test $ac_cv_prog_cc_g = yes; then
3978 if test "$GCC" = yes; then
3979 CFLAGS="-g -O2"
3980 else
3981 CFLAGS="-g"
3982 fi
3983else
3984 if test "$GCC" = yes; then
3985 CFLAGS="-O2"
3986 else
3987 CFLAGS=
3988 fi
3989fi
cd9a469c 3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3991$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3992if test "${ac_cv_prog_cc_c89+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
1e8e9920 3994else
cd9a469c 3995 ac_cv_prog_cc_c89=no
1e8e9920 3996ac_save_CC=$CC
cd9a469c 3997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1e8e9920 3998/* end confdefs.h. */
3999#include <stdarg.h>
4000#include <stdio.h>
4001#include <sys/types.h>
4002#include <sys/stat.h>
4003/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4004struct buf { int x; };
4005FILE * (*rcsopen) (struct buf *, struct stat *, int);
4006static char *e (p, i)
4007 char **p;
4008 int i;
4009{
4010 return p[i];
4011}
4012static char *f (char * (*g) (char **, int), char **p, ...)
4013{
4014 char *s;
4015 va_list v;
4016 va_start (v,p);
4017 s = g (p, va_arg (v,int));
4018 va_end (v);
4019 return s;
4020}
4021
4022/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4023 function prototypes and stuff, but not '\xHH' hex character constants.
4024 These don't provoke an error unfortunately, instead are silently treated
cd9a469c 4025 as 'x'. The following induces an error, until -std is added to get
1e8e9920 4026 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4027 array size at least. It's necessary to write '\x00'==0 to get something
cd9a469c 4028 that's true only with -std. */
1e8e9920 4029int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4030
cd9a469c 4031/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4032 inside strings and character constants. */
4033#define FOO(x) 'x'
4034int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4035
1e8e9920 4036int test (int i, double x);
4037struct s1 {int (*f) (int a);};
4038struct s2 {int (*f) (double a);};
4039int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4040int argc;
4041char **argv;
4042int
4043main ()
4044{
4045return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4046 ;
4047 return 0;
4048}
4049_ACEOF
cd9a469c 4050for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4051 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1e8e9920 4052do
4053 CC="$ac_save_CC $ac_arg"
cd9a469c 4054 if ac_fn_c_try_compile "$LINENO"; then :
4055 ac_cv_prog_cc_c89=$ac_arg
1e8e9920 4056fi
cd9a469c 4057rm -f core conftest.err conftest.$ac_objext
4058 test "x$ac_cv_prog_cc_c89" != "xno" && break
1e8e9920 4059done
cd9a469c 4060rm -f conftest.$ac_ext
1e8e9920 4061CC=$ac_save_CC
4062
4063fi
cd9a469c 4064# AC_CACHE_VAL
4065case "x$ac_cv_prog_cc_c89" in
4066 x)
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4068$as_echo "none needed" >&6; } ;;
4069 xno)
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4071$as_echo "unsupported" >&6; } ;;
1e8e9920 4072 *)
cd9a469c 4073 CC="$CC $ac_cv_prog_cc_c89"
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4075$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1e8e9920 4076esac
cd9a469c 4077if test "x$ac_cv_prog_cc_c89" != xno; then :
1e8e9920 4078
1e8e9920 4079fi
4080
1e8e9920 4081ac_ext=c
4082ac_cpp='$CPP $CPPFLAGS'
4083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086DEPDIR="${am__leading_dot}deps"
4087
cd9a469c 4088ac_config_commands="$ac_config_commands depfiles"
1e8e9920 4089
4090
4091am_make=${MAKE-make}
4092cat > confinc << 'END'
4093am__doit:
cd9a469c 4094 @echo this is the am__doit target
1e8e9920 4095.PHONY: am__doit
4096END
4097# If we don't find an include directive, just comment out the code.
cd9a469c 4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4099$as_echo_n "checking for style of include used by $am_make... " >&6; }
1e8e9920 4100am__include="#"
4101am__quote=
4102_am_result=none
4103# First try GNU make style include.
4104echo "include confinc" > confmf
cd9a469c 4105# Ignore all kinds of additional output from `make'.
4106case `$am_make -s -f confmf 2> /dev/null` in #(
4107*the\ am__doit\ target*)
4108 am__include=include
4109 am__quote=
4110 _am_result=GNU
4111 ;;
4112esac
1e8e9920 4113# Now try BSD make style include.
4114if test "$am__include" = "#"; then
4115 echo '.include "confinc"' > confmf
cd9a469c 4116 case `$am_make -s -f confmf 2> /dev/null` in #(
4117 *the\ am__doit\ target*)
4118 am__include=.include
4119 am__quote="\""
4120 _am_result=BSD
4121 ;;
4122 esac
1e8e9920 4123fi
4124
4125
cd9a469c 4126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4127$as_echo "$_am_result" >&6; }
1e8e9920 4128rm -f confinc confmf
4129
cd9a469c 4130# Check whether --enable-dependency-tracking was given.
4131if test "${enable_dependency_tracking+set}" = set; then :
4132 enableval=$enable_dependency_tracking;
4133fi
1e8e9920 4134
1e8e9920 4135if test "x$enable_dependency_tracking" != xno; then
4136 am_depcomp="$ac_aux_dir/depcomp"
4137 AMDEPBACKSLASH='\'
4138fi
cd9a469c 4139 if test "x$enable_dependency_tracking" != xno; then
1e8e9920 4140 AMDEP_TRUE=
4141 AMDEP_FALSE='#'
4142else
4143 AMDEP_TRUE='#'
4144 AMDEP_FALSE=
4145fi
4146
4147
4148
1e8e9920 4149depcc="$CC" am_compiler_list=
4150
cd9a469c 4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4152$as_echo_n "checking dependency style of $depcc... " >&6; }
4153if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4154 $as_echo_n "(cached) " >&6
1e8e9920 4155else
4156 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4157 # We make a subdir and do the tests there. Otherwise we can end up
4158 # making bogus files that we don't know about and never remove. For
4159 # instance it was reported that on HP-UX the gcc test will end up
4160 # making a dummy file named `D' -- because `-MD' means `put the output
4161 # in D'.
4162 mkdir conftest.dir
4163 # Copy depcomp to subdir because otherwise we won't find it if we're
4164 # using a relative directory.
4165 cp "$am_depcomp" conftest.dir
4166 cd conftest.dir
4167 # We will build objects and dependencies in a subdirectory because
4168 # it helps to detect inapplicable dependency modes. For instance
4169 # both Tru64's cc and ICC support -MD to output dependencies as a
4170 # side effect of compilation, but ICC will put the dependencies in
4171 # the current directory while Tru64 will put them in the object
4172 # directory.
4173 mkdir sub
4174
4175 am_cv_CC_dependencies_compiler_type=none
4176 if test "$am_compiler_list" = ""; then
4177 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4178 fi
cd9a469c 4179 am__universal=false
4180 case " $depcc " in #(
4181 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4182 esac
4183
1e8e9920 4184 for depmode in $am_compiler_list; do
4185 # Setup a source with many dependencies, because some compilers
4186 # like to wrap large dependency lists on column 80 (with \), and
4187 # we should not choose a depcomp mode which is confused by this.
4188 #
4189 # We need to recreate these files for each test, as the compiler may
4190 # overwrite some of them when testing with obscure command lines.
4191 # This happens at least with the AIX C compiler.
4192 : > sub/conftest.c
4193 for i in 1 2 3 4 5 6; do
4194 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4195 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4196 # Solaris 8's {/usr,}/bin/sh.
4197 touch sub/conftst$i.h
4198 done
4199 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4200
cd9a469c 4201 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4202 # mode. It turns out that the SunPro C++ compiler does not properly
4203 # handle `-M -o', and we need to detect this. Also, some Intel
4204 # versions had trouble with output in subdirs
4205 am__obj=sub/conftest.${OBJEXT-o}
4206 am__minus_obj="-o $am__obj"
1e8e9920 4207 case $depmode in
cd9a469c 4208 gcc)
4209 # This depmode causes a compiler race in universal mode.
4210 test "$am__universal" = false || continue
4211 ;;
1e8e9920 4212 nosideeffect)
4213 # after this tag, mechanisms are not by side-effect, so they'll
4214 # only be used when explicitly requested
4215 if test "x$enable_dependency_tracking" = xyes; then
4216 continue
4217 else
4218 break
4219 fi
4220 ;;
cd9a469c 4221 msvisualcpp | msvcmsys)
4222 # This compiler won't grok `-c -o', but also, the minuso test has
4223 # not run yet. These depmodes are late enough in the game, and
4224 # so weak that their functioning should not be impacted.
4225 am__obj=conftest.${OBJEXT-o}
4226 am__minus_obj=
4227 ;;
1e8e9920 4228 none) break ;;
4229 esac
1e8e9920 4230 if depmode=$depmode \
cd9a469c 4231 source=sub/conftest.c object=$am__obj \
1e8e9920 4232 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cd9a469c 4233 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1e8e9920 4234 >/dev/null 2>conftest.err &&
cd9a469c 4235 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1e8e9920 4236 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cd9a469c 4237 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1e8e9920 4238 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4239 # icc doesn't choke on unknown options, it will just issue warnings
4240 # or remarks (even with -Werror). So we grep stderr for any message
4241 # that says an option was ignored or not supported.
4242 # When given -MP, icc 7.0 and 7.1 complain thusly:
4243 # icc: Command line warning: ignoring option '-M'; no argument required
4244 # The diagnosis changed in icc 8.0:
4245 # icc: Command line remark: option '-MP' not supported
4246 if (grep 'ignoring option' conftest.err ||
4247 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4248 am_cv_CC_dependencies_compiler_type=$depmode
4249 break
4250 fi
4251 fi
4252 done
4253
4254 cd ..
4255 rm -rf conftest.dir
4256else
4257 am_cv_CC_dependencies_compiler_type=none
4258fi
4259
4260fi
cd9a469c 4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4262$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1e8e9920 4263CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4264
cd9a469c 4265 if
1e8e9920 4266 test "x$enable_dependency_tracking" != xno \
4267 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4268 am__fastdepCC_TRUE=
4269 am__fastdepCC_FALSE='#'
4270else
4271 am__fastdepCC_TRUE='#'
4272 am__fastdepCC_FALSE=
4273fi
4274
4275
4276
4277
4278
4279
4280# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4281# in XCFLAGS. But we need them in CFLAGS during configury. So put them
4282# in both places for now and restore CFLAGS at the end of config.
4283save_CFLAGS="$CFLAGS"
4284
4285# Add -Wall -Werror if we are using GCC.
4286if test "x$GCC" = "xyes"; then
4287 XCFLAGS="$XCFLAGS -Wall -Werror"
4288fi
4289
4290# Find other programs we need.
4291if test -n "$ac_tool_prefix"; then
4292 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4293set dummy ${ac_tool_prefix}ar; ac_word=$2
cd9a469c 4294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295$as_echo_n "checking for $ac_word... " >&6; }
4296if test "${ac_cv_prog_AR+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
1e8e9920 4298else
4299 if test -n "$AR"; then
4300 ac_cv_prog_AR="$AR" # Let the user override the test.
4301else
4302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303for as_dir in $PATH
4304do
4305 IFS=$as_save_IFS
4306 test -z "$as_dir" && as_dir=.
cd9a469c 4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 4309 ac_cv_prog_AR="${ac_tool_prefix}ar"
cd9a469c 4310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 4311 break 2
4312 fi
4313done
cd9a469c 4314 done
4315IFS=$as_save_IFS
1e8e9920 4316
4317fi
4318fi
4319AR=$ac_cv_prog_AR
4320if test -n "$AR"; then
cd9a469c 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4322$as_echo "$AR" >&6; }
1e8e9920 4323else
cd9a469c 4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325$as_echo "no" >&6; }
1e8e9920 4326fi
4327
cd9a469c 4328
1e8e9920 4329fi
4330if test -z "$ac_cv_prog_AR"; then
4331 ac_ct_AR=$AR
4332 # Extract the first word of "ar", so it can be a program name with args.
4333set dummy ar; ac_word=$2
cd9a469c 4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335$as_echo_n "checking for $ac_word... " >&6; }
4336if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4337 $as_echo_n "(cached) " >&6
1e8e9920 4338else
4339 if test -n "$ac_ct_AR"; then
4340 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4341else
4342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343for as_dir in $PATH
4344do
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
cd9a469c 4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 4349 ac_cv_prog_ac_ct_AR="ar"
cd9a469c 4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 4351 break 2
4352 fi
4353done
cd9a469c 4354 done
4355IFS=$as_save_IFS
1e8e9920 4356
4357fi
4358fi
4359ac_ct_AR=$ac_cv_prog_ac_ct_AR
4360if test -n "$ac_ct_AR"; then
cd9a469c 4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4362$as_echo "$ac_ct_AR" >&6; }
1e8e9920 4363else
cd9a469c 4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365$as_echo "no" >&6; }
1e8e9920 4366fi
4367
cd9a469c 4368 if test "x$ac_ct_AR" = x; then
4369 AR=""
4370 else
4371 case $cross_compiling:$ac_tool_warned in
4372yes:)
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4375ac_tool_warned=yes ;;
4376esac
4377 AR=$ac_ct_AR
4378 fi
1e8e9920 4379else
4380 AR="$ac_cv_prog_AR"
4381fi
4382
4383if test -n "$ac_tool_prefix"; then
4384 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4385set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cd9a469c 4386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387$as_echo_n "checking for $ac_word... " >&6; }
4388if test "${ac_cv_prog_RANLIB+set}" = set; then :
4389 $as_echo_n "(cached) " >&6
1e8e9920 4390else
4391 if test -n "$RANLIB"; then
4392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4393else
4394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395for as_dir in $PATH
4396do
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
cd9a469c 4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 4401 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cd9a469c 4402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 4403 break 2
4404 fi
4405done
cd9a469c 4406 done
4407IFS=$as_save_IFS
1e8e9920 4408
4409fi
4410fi
4411RANLIB=$ac_cv_prog_RANLIB
4412if test -n "$RANLIB"; then
cd9a469c 4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4414$as_echo "$RANLIB" >&6; }
1e8e9920 4415else
cd9a469c 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417$as_echo "no" >&6; }
1e8e9920 4418fi
4419
cd9a469c 4420
1e8e9920 4421fi
4422if test -z "$ac_cv_prog_RANLIB"; then
4423 ac_ct_RANLIB=$RANLIB
4424 # Extract the first word of "ranlib", so it can be a program name with args.
4425set dummy ranlib; ac_word=$2
cd9a469c 4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427$as_echo_n "checking for $ac_word... " >&6; }
4428if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4429 $as_echo_n "(cached) " >&6
1e8e9920 4430else
4431 if test -n "$ac_ct_RANLIB"; then
4432 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4433else
4434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435for as_dir in $PATH
4436do
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
cd9a469c 4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 4441 ac_cv_prog_ac_ct_RANLIB="ranlib"
cd9a469c 4442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 4443 break 2
4444 fi
4445done
cd9a469c 4446 done
4447IFS=$as_save_IFS
1e8e9920 4448
1e8e9920 4449fi
4450fi
4451ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4452if test -n "$ac_ct_RANLIB"; then
cd9a469c 4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4454$as_echo "$ac_ct_RANLIB" >&6; }
1e8e9920 4455else
cd9a469c 4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457$as_echo "no" >&6; }
1e8e9920 4458fi
4459
cd9a469c 4460 if test "x$ac_ct_RANLIB" = x; then
4461 RANLIB="ranlib-not-found-in-path-error"
4462 else
4463 case $cross_compiling:$ac_tool_warned in
4464yes:)
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4466$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4467ac_tool_warned=yes ;;
4468esac
4469 RANLIB=$ac_ct_RANLIB
4470 fi
1e8e9920 4471else
4472 RANLIB="$ac_cv_prog_RANLIB"
4473fi
4474
4475# Extract the first word of "perl", so it can be a program name with args.
4476set dummy perl; ac_word=$2
cd9a469c 4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4478$as_echo_n "checking for $ac_word... " >&6; }
4479if test "${ac_cv_path_PERL+set}" = set; then :
4480 $as_echo_n "(cached) " >&6
1e8e9920 4481else
4482 case $PERL in
4483 [\\/]* | ?:[\\/]*)
4484 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4485 ;;
4486 *)
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488for as_dir in $PATH
4489do
4490 IFS=$as_save_IFS
4491 test -z "$as_dir" && as_dir=.
cd9a469c 4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 4494 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 4495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 4496 break 2
4497 fi
4498done
cd9a469c 4499 done
4500IFS=$as_save_IFS
1e8e9920 4501
4502 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4503 ;;
4504esac
4505fi
4506PERL=$ac_cv_path_PERL
1e8e9920 4507if test -n "$PERL"; then
cd9a469c 4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4509$as_echo "$PERL" >&6; }
1e8e9920 4510else
cd9a469c 4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4512$as_echo "no" >&6; }
1e8e9920 4513fi
4514
cd9a469c 4515
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4517$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4518set x ${MAKE-make}
4519ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4520if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4521 $as_echo_n "(cached) " >&6
1e8e9920 4522else
4523 cat >conftest.make <<\_ACEOF
cd9a469c 4524SHELL = /bin/sh
1e8e9920 4525all:
cd9a469c 4526 @echo '@@@%%%=$(MAKE)=@@@%%%'
1e8e9920 4527_ACEOF
4528# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cd9a469c 4529case `${MAKE-make} -f conftest.make 2>/dev/null` in
4530 *@@@%%%=?*=@@@%%%*)
4531 eval ac_cv_prog_make_${ac_make}_set=yes;;
4532 *)
4533 eval ac_cv_prog_make_${ac_make}_set=no;;
4534esac
1e8e9920 4535rm -f conftest.make
4536fi
cd9a469c 4537if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4539$as_echo "yes" >&6; }
1e8e9920 4540 SET_MAKE=
4541else
cd9a469c 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543$as_echo "no" >&6; }
1e8e9920 4544 SET_MAKE="MAKE=${MAKE-make}"
4545fi
4546
1e8e9920 4547
4548
439d698f 4549# See if makeinfo has been installed and is modern enough
4550# that we can use it.
4551
4552 # Extract the first word of "makeinfo", so it can be a program name with args.
4553set dummy makeinfo; ac_word=$2
cd9a469c 4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555$as_echo_n "checking for $ac_word... " >&6; }
4556if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
439d698f 4558else
4559 if test -n "$MAKEINFO"; then
4560 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4561else
4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
cd9a469c 4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
439d698f 4569 ac_cv_prog_MAKEINFO="makeinfo"
cd9a469c 4570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
439d698f 4571 break 2
4572 fi
4573done
cd9a469c 4574 done
4575IFS=$as_save_IFS
439d698f 4576
4577fi
4578fi
4579MAKEINFO=$ac_cv_prog_MAKEINFO
4580if test -n "$MAKEINFO"; then
cd9a469c 4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4582$as_echo "$MAKEINFO" >&6; }
439d698f 4583else
cd9a469c 4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585$as_echo "no" >&6; }
439d698f 4586fi
4587
cd9a469c 4588
439d698f 4589 if test -n "$MAKEINFO"; then
4590 # Found it, now check the version.
cd9a469c 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4592$as_echo_n "checking for modern makeinfo... " >&6; }
4593if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
439d698f 4595else
4596 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4597 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4598
4599 case $ac_prog_version in
4600 '') gcc_cv_prog_makeinfo_modern=no;;
41b2fb5d 4601 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
439d698f 4602 *) gcc_cv_prog_makeinfo_modern=no;;
4603 esac
4604
4605fi
cd9a469c 4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4607$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
439d698f 4608 else
4609 gcc_cv_prog_makeinfo_modern=no
4610 fi
542f9784 4611 if test $gcc_cv_prog_makeinfo_modern = no; then
4612 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4613 fi
439d698f 4614
cd9a469c 4615 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
439d698f 4616 BUILD_INFO_TRUE=
4617 BUILD_INFO_FALSE='#'
4618else
4619 BUILD_INFO_TRUE='#'
4620 BUILD_INFO_FALSE=
4621fi
4622
4623
4624
1e8e9920 4625# Configure libtool
6d873a38 4626case `pwd` in
4627 *\ * | *\ *)
cd9a469c 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4629$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6d873a38 4630esac
542f9784 4631
4632
542f9784 4633
e6408286 4634macro_version='2.2.7a'
4635macro_revision='1.3134'
542f9784 4636
4637
4638
4639
4640
4641
1e8e9920 4642
542f9784 4643
4644
4645
4646
4647
4648
6d873a38 4649ltmain="$ac_aux_dir/ltmain.sh"
542f9784 4650
e6408286 4651# Backslashify metacharacters that are still active within
4652# double-quoted strings.
4653sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4654
4655# Same as above, but do not quote variable references.
4656double_quote_subst='s/\(["`\\]\)/\\\1/g'
4657
4658# Sed substitution to delay expansion of an escaped shell variable in a
4659# double_quote_subst'ed string.
4660delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4661
4662# Sed substitution to delay expansion of an escaped single quote.
4663delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4664
4665# Sed substitution to avoid accidental globbing in evaled expressions
4666no_glob_subst='s/\*/\\\*/g'
4667
4668ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4669ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4670ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4671
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4673$as_echo_n "checking how to print strings... " >&6; }
4674# Test print first, because it will be a builtin if present.
4675if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4676 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4677 ECHO='print -r --'
4678elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4679 ECHO='printf %s\n'
4680else
4681 # Use this function as a fallback that always works.
4682 func_fallback_echo ()
4683 {
4684 eval 'cat <<_LTECHO_EOF
4685$1
4686_LTECHO_EOF'
4687 }
4688 ECHO='func_fallback_echo'
4689fi
4690
4691# func_echo_all arg...
4692# Invoke $ECHO with all args, space-separated.
4693func_echo_all ()
4694{
4695 $ECHO ""
4696}
4697
4698case "$ECHO" in
4699 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4700$as_echo "printf" >&6; } ;;
4701 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4702$as_echo "print -r" >&6; } ;;
4703 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4704$as_echo "cat" >&6; } ;;
4705esac
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
cd9a469c 4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4721$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4722if test "${ac_cv_path_SED+set}" = set; then :
4723 $as_echo_n "(cached) " >&6
4724else
4725 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4726 for ac_i in 1 2 3 4 5 6 7; do
4727 ac_script="$ac_script$as_nl$ac_script"
4728 done
4729 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4730 { ac_script=; unset ac_script;}
4731 if test -z "$SED"; then
4732 ac_path_SED_found=false
4733 # Loop through the user's path and test for each of PROGNAME-LIST
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
542f9784 4735for as_dir in $PATH
4736do
4737 IFS=$as_save_IFS
4738 test -z "$as_dir" && as_dir=.
cd9a469c 4739 for ac_prog in sed gsed; do
542f9784 4740 for ac_exec_ext in '' $ac_executable_extensions; do
cd9a469c 4741 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4742 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4743# Check for GNU ac_path_SED and select it if it is found.
4744 # Check for GNU $ac_path_SED
4745case `"$ac_path_SED" --version 2>&1` in
4746*GNU*)
4747 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4748*)
4749 ac_count=0
4750 $as_echo_n 0123456789 >"conftest.in"
4751 while :
4752 do
4753 cat "conftest.in" "conftest.in" >"conftest.tmp"
4754 mv "conftest.tmp" "conftest.in"
4755 cp "conftest.in" "conftest.nl"
4756 $as_echo '' >> "conftest.nl"
4757 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4759 as_fn_arith $ac_count + 1 && ac_count=$as_val
4760 if test $ac_count -gt ${ac_path_SED_max-0}; then
4761 # Best one so far, save it but keep looking for a better one
4762 ac_cv_path_SED="$ac_path_SED"
4763 ac_path_SED_max=$ac_count
4764 fi
4765 # 10*(2^10) chars as input seems more than enough
4766 test $ac_count -gt 10 && break
4767 done
4768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4769esac
4770
4771 $ac_path_SED_found && break 3
542f9784 4772 done
4773 done
cd9a469c 4774 done
542f9784 4775IFS=$as_save_IFS
cd9a469c 4776 if test -z "$ac_cv_path_SED"; then
4777 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
542f9784 4778 fi
cd9a469c 4779else
4780 ac_cv_path_SED=$SED
542f9784 4781fi
4782
cd9a469c 4783fi
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4785$as_echo "$ac_cv_path_SED" >&6; }
4786 SED="$ac_cv_path_SED"
4787 rm -f conftest.sed
542f9784 4788
4789test -z "$SED" && SED=sed
4790Xsed="$SED -e 1s/^X//"
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
cd9a469c 4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4803$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4804if test "${ac_cv_path_GREP+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4806else
4807 if test -z "$GREP"; then
4808 ac_path_GREP_found=false
4809 # Loop through the user's path and test for each of PROGNAME-LIST
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4812do
4813 IFS=$as_save_IFS
4814 test -z "$as_dir" && as_dir=.
4815 for ac_prog in grep ggrep; do
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4818 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4819# Check for GNU ac_path_GREP and select it if it is found.
4820 # Check for GNU $ac_path_GREP
4821case `"$ac_path_GREP" --version 2>&1` in
4822*GNU*)
4823 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4824*)
4825 ac_count=0
4826 $as_echo_n 0123456789 >"conftest.in"
4827 while :
4828 do
4829 cat "conftest.in" "conftest.in" >"conftest.tmp"
4830 mv "conftest.tmp" "conftest.in"
4831 cp "conftest.in" "conftest.nl"
4832 $as_echo 'GREP' >> "conftest.nl"
4833 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4835 as_fn_arith $ac_count + 1 && ac_count=$as_val
4836 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4837 # Best one so far, save it but keep looking for a better one
4838 ac_cv_path_GREP="$ac_path_GREP"
4839 ac_path_GREP_max=$ac_count
4840 fi
4841 # 10*(2^10) chars as input seems more than enough
4842 test $ac_count -gt 10 && break
4843 done
4844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4845esac
4846
4847 $ac_path_GREP_found && break 3
4848 done
4849 done
4850 done
4851IFS=$as_save_IFS
4852 if test -z "$ac_cv_path_GREP"; then
4853 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4854 fi
4855else
4856 ac_cv_path_GREP=$GREP
4857fi
4858
4859fi
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4861$as_echo "$ac_cv_path_GREP" >&6; }
4862 GREP="$ac_cv_path_GREP"
4863
4864
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4866$as_echo_n "checking for egrep... " >&6; }
4867if test "${ac_cv_path_EGREP+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
542f9784 4869else
cd9a469c 4870 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4871 then ac_cv_path_EGREP="$GREP -E"
4872 else
4873 if test -z "$EGREP"; then
4874 ac_path_EGREP_found=false
4875 # Loop through the user's path and test for each of PROGNAME-LIST
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4878do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_prog in egrep; do
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4884 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4885# Check for GNU ac_path_EGREP and select it if it is found.
4886 # Check for GNU $ac_path_EGREP
4887case `"$ac_path_EGREP" --version 2>&1` in
4888*GNU*)
4889 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4890*)
4891 ac_count=0
4892 $as_echo_n 0123456789 >"conftest.in"
4893 while :
4894 do
4895 cat "conftest.in" "conftest.in" >"conftest.tmp"
4896 mv "conftest.tmp" "conftest.in"
4897 cp "conftest.in" "conftest.nl"
4898 $as_echo 'EGREP' >> "conftest.nl"
4899 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4900 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4901 as_fn_arith $ac_count + 1 && ac_count=$as_val
4902 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4903 # Best one so far, save it but keep looking for a better one
4904 ac_cv_path_EGREP="$ac_path_EGREP"
4905 ac_path_EGREP_max=$ac_count
542f9784 4906 fi
cd9a469c 4907 # 10*(2^10) chars as input seems more than enough
4908 test $ac_count -gt 10 && break
4909 done
4910 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4911esac
4912
4913 $ac_path_EGREP_found && break 3
4914 done
4915 done
4916 done
4917IFS=$as_save_IFS
4918 if test -z "$ac_cv_path_EGREP"; then
4919 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4920 fi
4921else
4922 ac_cv_path_EGREP=$EGREP
4923fi
4924
4925 fi
542f9784 4926fi
cd9a469c 4927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4928$as_echo "$ac_cv_path_EGREP" >&6; }
4929 EGREP="$ac_cv_path_EGREP"
542f9784 4930
4931
cd9a469c 4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4933$as_echo_n "checking for fgrep... " >&6; }
4934if test "${ac_cv_path_FGREP+set}" = set; then :
4935 $as_echo_n "(cached) " >&6
542f9784 4936else
cd9a469c 4937 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4938 then ac_cv_path_FGREP="$GREP -F"
4939 else
4940 if test -z "$FGREP"; then
4941 ac_path_FGREP_found=false
4942 # Loop through the user's path and test for each of PROGNAME-LIST
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4945do
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_prog in fgrep; do
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4951 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4952# Check for GNU ac_path_FGREP and select it if it is found.
4953 # Check for GNU $ac_path_FGREP
4954case `"$ac_path_FGREP" --version 2>&1` in
4955*GNU*)
4956 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4957*)
4958 ac_count=0
4959 $as_echo_n 0123456789 >"conftest.in"
4960 while :
4961 do
4962 cat "conftest.in" "conftest.in" >"conftest.tmp"
4963 mv "conftest.tmp" "conftest.in"
4964 cp "conftest.in" "conftest.nl"
4965 $as_echo 'FGREP' >> "conftest.nl"
4966 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4968 as_fn_arith $ac_count + 1 && ac_count=$as_val
4969 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4970 # Best one so far, save it but keep looking for a better one
4971 ac_cv_path_FGREP="$ac_path_FGREP"
4972 ac_path_FGREP_max=$ac_count
542f9784 4973 fi
cd9a469c 4974 # 10*(2^10) chars as input seems more than enough
4975 test $ac_count -gt 10 && break
4976 done
4977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4978esac
4979
4980 $ac_path_FGREP_found && break 3
4981 done
4982 done
4983 done
4984IFS=$as_save_IFS
4985 if test -z "$ac_cv_path_FGREP"; then
4986 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4987 fi
4988else
4989 ac_cv_path_FGREP=$FGREP
4990fi
4991
4992 fi
542f9784 4993fi
cd9a469c 4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4995$as_echo "$ac_cv_path_FGREP" >&6; }
4996 FGREP="$ac_cv_path_FGREP"
542f9784 4997
4998
4999test -z "$GREP" && GREP=grep
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
cd9a469c 5019# Check whether --with-gnu-ld was given.
5020if test "${with_gnu_ld+set}" = set; then :
5021 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1e8e9920 5022else
5023 with_gnu_ld=no
cd9a469c 5024fi
5025
1e8e9920 5026ac_prog=ld
5027if test "$GCC" = yes; then
5028 # Check if gcc -print-prog-name=ld gives a path.
cd9a469c 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5030$as_echo_n "checking for ld used by $CC... " >&6; }
1e8e9920 5031 case $host in
5032 *-*-mingw*)
5033 # gcc leaves a trailing carriage return which upsets mingw
5034 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5035 *)
5036 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5037 esac
5038 case $ac_prog in
5039 # Accept absolute paths.
542f9784 5040 [\\/]* | ?:[\\/]*)
1e8e9920 5041 re_direlt='/[^/][^/]*/\.\./'
542f9784 5042 # Canonicalize the pathname of ld
5043 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5044 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5045 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1e8e9920 5046 done
5047 test -z "$LD" && LD="$ac_prog"
5048 ;;
5049 "")
5050 # If it fails, then pretend we aren't using GCC.
5051 ac_prog=ld
5052 ;;
5053 *)
5054 # If it is relative, then search for the first ld in PATH.
5055 with_gnu_ld=unknown
5056 ;;
5057 esac
5058elif test "$with_gnu_ld" = yes; then
cd9a469c 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5060$as_echo_n "checking for GNU ld... " >&6; }
1e8e9920 5061else
cd9a469c 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5063$as_echo_n "checking for non-GNU ld... " >&6; }
1e8e9920 5064fi
cd9a469c 5065if test "${lt_cv_path_LD+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
1e8e9920 5067else
5068 if test -z "$LD"; then
542f9784 5069 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1e8e9920 5070 for ac_dir in $PATH; do
542f9784 5071 IFS="$lt_save_ifs"
1e8e9920 5072 test -z "$ac_dir" && ac_dir=.
5073 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5074 lt_cv_path_LD="$ac_dir/$ac_prog"
5075 # Check to see if the program is GNU ld. I'd rather use --version,
542f9784 5076 # but apparently some variants of GNU ld only accept -v.
1e8e9920 5077 # Break only if it was the GNU/non-GNU ld that we prefer.
542f9784 5078 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5079 *GNU* | *'with BFD'*)
1e8e9920 5080 test "$with_gnu_ld" != no && break
542f9784 5081 ;;
5082 *)
1e8e9920 5083 test "$with_gnu_ld" != yes && break
542f9784 5084 ;;
5085 esac
1e8e9920 5086 fi
5087 done
542f9784 5088 IFS="$lt_save_ifs"
1e8e9920 5089else
5090 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5091fi
5092fi
5093
5094LD="$lt_cv_path_LD"
5095if test -n "$LD"; then
cd9a469c 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5097$as_echo "$LD" >&6; }
1e8e9920 5098else
cd9a469c 5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100$as_echo "no" >&6; }
1e8e9920 5101fi
cd9a469c 5102test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5104$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5105if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5106 $as_echo_n "(cached) " >&6
1e8e9920 5107else
542f9784 5108 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5109case `$LD -v 2>&1 </dev/null` in
5110*GNU* | *'with BFD'*)
1e8e9920 5111 lt_cv_prog_gnu_ld=yes
542f9784 5112 ;;
5113*)
1e8e9920 5114 lt_cv_prog_gnu_ld=no
542f9784 5115 ;;
5116esac
1e8e9920 5117fi
cd9a469c 5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5119$as_echo "$lt_cv_prog_gnu_ld" >&6; }
1e8e9920 5120with_gnu_ld=$lt_cv_prog_gnu_ld
5121
5122
1e8e9920 5123
542f9784 5124
5125
5126
5127
5128
5129
cd9a469c 5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5131$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5132if test "${lt_cv_path_NM+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
1e8e9920 5134else
5135 if test -n "$NM"; then
5136 # Let the user override the test.
5137 lt_cv_path_NM="$NM"
5138else
542f9784 5139 lt_nm_to_check="${ac_tool_prefix}nm"
5140 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5141 lt_nm_to_check="$lt_nm_to_check nm"
5142 fi
5143 for lt_tmp_nm in $lt_nm_to_check; do
5144 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5145 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5146 IFS="$lt_save_ifs"
5147 test -z "$ac_dir" && ac_dir=.
5148 tmp_nm="$ac_dir/$lt_tmp_nm"
5149 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5150 # Check to see if the nm accepts a BSD-compat flag.
5151 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5152 # nm: unknown option "B" ignored
5153 # Tru64's nm complains that /dev/null is an invalid object file
5154 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5155 */dev/null* | *'Invalid file or object type'*)
5156 lt_cv_path_NM="$tmp_nm -B"
5157 break
5158 ;;
5159 *)
5160 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5161 */dev/null*)
5162 lt_cv_path_NM="$tmp_nm -p"
5163 break
5164 ;;
5165 *)
5166 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5167 continue # so that we can try to find one that supports BSD flags
5168 ;;
5169 esac
5170 ;;
5171 esac
5172 fi
5173 done
5174 IFS="$lt_save_ifs"
5175 done
5176 : ${lt_cv_path_NM=no}
5177fi
5178fi
cd9a469c 5179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5180$as_echo "$lt_cv_path_NM" >&6; }
542f9784 5181if test "$lt_cv_path_NM" != "no"; then
5182 NM="$lt_cv_path_NM"
5183else
5184 # Didn't find any BSD compatible name lister, look for dumpbin.
e6408286 5185 if test -n "$DUMPBIN"; then :
5186 # Let the user override the test.
5187 else
5188 if test -n "$ac_tool_prefix"; then
5189 for ac_prog in dumpbin "link -dump"
542f9784 5190 do
5191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5192set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194$as_echo_n "checking for $ac_word... " >&6; }
5195if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
542f9784 5197else
5198 if test -n "$DUMPBIN"; then
5199 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5200else
5201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202for as_dir in $PATH
5203do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
cd9a469c 5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 5208 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cd9a469c 5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 5210 break 2
5211 fi
5212done
cd9a469c 5213 done
5214IFS=$as_save_IFS
542f9784 5215
5216fi
5217fi
5218DUMPBIN=$ac_cv_prog_DUMPBIN
5219if test -n "$DUMPBIN"; then
cd9a469c 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5221$as_echo "$DUMPBIN" >&6; }
542f9784 5222else
cd9a469c 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224$as_echo "no" >&6; }
542f9784 5225fi
5226
cd9a469c 5227
542f9784 5228 test -n "$DUMPBIN" && break
5229 done
5230fi
5231if test -z "$DUMPBIN"; then
5232 ac_ct_DUMPBIN=$DUMPBIN
e6408286 5233 for ac_prog in dumpbin "link -dump"
542f9784 5234do
5235 # Extract the first word of "$ac_prog", so it can be a program name with args.
5236set dummy $ac_prog; ac_word=$2
cd9a469c 5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238$as_echo_n "checking for $ac_word... " >&6; }
5239if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
542f9784 5241else
5242 if test -n "$ac_ct_DUMPBIN"; then
5243 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5244else
5245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246for as_dir in $PATH
5247do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
cd9a469c 5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 5252 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cd9a469c 5253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 5254 break 2
5255 fi
5256done
cd9a469c 5257 done
5258IFS=$as_save_IFS
542f9784 5259
5260fi
1e8e9920 5261fi
542f9784 5262ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5263if test -n "$ac_ct_DUMPBIN"; then
cd9a469c 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5265$as_echo "$ac_ct_DUMPBIN" >&6; }
542f9784 5266else
cd9a469c 5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268$as_echo "no" >&6; }
542f9784 5269fi
5270
cd9a469c 5271
542f9784 5272 test -n "$ac_ct_DUMPBIN" && break
5273done
542f9784 5274
cd9a469c 5275 if test "x$ac_ct_DUMPBIN" = x; then
5276 DUMPBIN=":"
5277 else
5278 case $cross_compiling:$ac_tool_warned in
5279yes:)
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5282ac_tool_warned=yes ;;
5283esac
5284 DUMPBIN=$ac_ct_DUMPBIN
5285 fi
542f9784 5286fi
5287
e6408286 5288 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5289 *COFF*)
5290 DUMPBIN="$DUMPBIN -symbols"
5291 ;;
5292 *)
5293 DUMPBIN=:
5294 ;;
5295 esac
5296 fi
542f9784 5297
5298 if test "$DUMPBIN" != ":"; then
5299 NM="$DUMPBIN"
5300 fi
1e8e9920 5301fi
542f9784 5302test -z "$NM" && NM=nm
5303
5304
5305
5306
5307
1e8e9920 5308
cd9a469c 5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5310$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5311if test "${lt_cv_nm_interface+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
542f9784 5313else
5314 lt_cv_nm_interface="BSD nm"
5315 echo "int some_variable = 0;" > conftest.$ac_ext
e6408286 5316 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
542f9784 5317 (eval "$ac_compile" 2>conftest.err)
5318 cat conftest.err >&5
e6408286 5319 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
542f9784 5320 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5321 cat conftest.err >&5
e6408286 5322 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
542f9784 5323 cat conftest.out >&5
5324 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5325 lt_cv_nm_interface="MS dumpbin"
5326 fi
5327 rm -f conftest*
5328fi
cd9a469c 5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5330$as_echo "$lt_cv_nm_interface" >&6; }
1e8e9920 5331
cd9a469c 5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5333$as_echo_n "checking whether ln -s works... " >&6; }
1e8e9920 5334LN_S=$as_ln_s
5335if test "$LN_S" = "ln -s"; then
cd9a469c 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5337$as_echo "yes" >&6; }
1e8e9920 5338else
cd9a469c 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5340$as_echo "no, using $LN_S" >&6; }
1e8e9920 5341fi
5342
542f9784 5343# find the maximum length of command line arguments
cd9a469c 5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5345$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5346if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
542f9784 5348else
5349 i=0
5350 teststring="ABCD"
5351
5352 case $build_os in
5353 msdosdjgpp*)
5354 # On DJGPP, this test can blow up pretty badly due to problems in libc
5355 # (any single argument exceeding 2000 bytes causes a buffer overrun
5356 # during glob expansion). Even if it were fixed, the result of this
5357 # check would be larger than it should be.
5358 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5359 ;;
5360
5361 gnu*)
5362 # Under GNU Hurd, this test is not required because there is
5363 # no limit to the length of command line arguments.
5364 # Libtool will interpret -1 as no limit whatsoever
5365 lt_cv_sys_max_cmd_len=-1;
5366 ;;
5367
6d873a38 5368 cygwin* | mingw* | cegcc*)
542f9784 5369 # On Win9x/ME, this test blows up -- it succeeds, but takes
5370 # about 5 minutes as the teststring grows exponentially.
5371 # Worse, since 9x/ME are not pre-emptively multitasking,
5372 # you end up with a "frozen" computer, even though with patience
5373 # the test eventually succeeds (with a max line length of 256k).
5374 # Instead, let's just punt: use the minimum linelength reported by
5375 # all of the supported platforms: 8192 (on NT/2K/XP).
5376 lt_cv_sys_max_cmd_len=8192;
5377 ;;
5378
e6408286 5379 mint*)
5380 # On MiNT this can take a long time and run out of memory.
5381 lt_cv_sys_max_cmd_len=8192;
5382 ;;
5383
542f9784 5384 amigaos*)
5385 # On AmigaOS with pdksh, this test takes hours, literally.
5386 # So we just punt and use a minimum line length of 8192.
5387 lt_cv_sys_max_cmd_len=8192;
5388 ;;
5389
5390 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5391 # This has been around since 386BSD, at least. Likely further.
5392 if test -x /sbin/sysctl; then
5393 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5394 elif test -x /usr/sbin/sysctl; then
5395 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5396 else
5397 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5398 fi
5399 # And add a safety zone
5400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5402 ;;
5403
5404 interix*)
5405 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5406 lt_cv_sys_max_cmd_len=196608
5407 ;;
5408
5409 osf*)
5410 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5411 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5412 # nice to cause kernel panics so lets avoid the loop below.
5413 # First set a reasonable default.
5414 lt_cv_sys_max_cmd_len=16384
5415 #
5416 if test -x /sbin/sysconfig; then
5417 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5418 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5419 esac
5420 fi
5421 ;;
5422 sco3.2v5*)
5423 lt_cv_sys_max_cmd_len=102400
5424 ;;
5425 sysv5* | sco5v6* | sysv4.2uw2*)
5426 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5427 if test -n "$kargmax"; then
5428 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5429 else
5430 lt_cv_sys_max_cmd_len=32768
5431 fi
5432 ;;
5433 *)
6d873a38 5434 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5435 if test -n "$lt_cv_sys_max_cmd_len"; then
07c46636 5436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5438 else
5439 # Make teststring a little bigger before we do anything with it.
5440 # a 1K string should be a reasonable start.
5441 for i in 1 2 3 4 5 6 7 8 ; do
5442 teststring=$teststring$teststring
5443 done
5444 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5445 # If test is not a shell built-in, we'll probably end up computing a
5446 # maximum length that is only half of the actual maximum length, but
5447 # we can't tell.
e6408286 5448 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5449 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
07c46636 5450 test $i != 17 # 1/2 MB should be enough
5451 do
5452 i=`expr $i + 1`
5453 teststring=$teststring$teststring
5454 done
5455 # Only check the string length outside the loop.
5456 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5457 teststring=
5458 # Add a significant safety factor because C++ compilers can tack on
5459 # massive amounts of additional arguments before passing them to the
5460 # linker. It appears as though 1/2 is a usable value.
5461 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5462 fi
542f9784 5463 ;;
5464 esac
5465
5466fi
5467
5468if test -n $lt_cv_sys_max_cmd_len ; then
cd9a469c 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5470$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
542f9784 5471else
cd9a469c 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5473$as_echo "none" >&6; }
542f9784 5474fi
5475max_cmd_len=$lt_cv_sys_max_cmd_len
5476
5477
5478
5479
5480
5481
542f9784 5482: ${CP="cp -f"}
5483: ${MV="mv -f"}
5484: ${RM="rm -f"}
5485
cd9a469c 5486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5487$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
542f9784 5488# Try some XSI features
5489xsi_shell=no
5490( _lt_dummy="a/b/c"
5491 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6d873a38 5492 = c,a/b,, \
5493 && eval 'test $(( 1 + 1 )) -eq 2 \
5494 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
542f9784 5495 && xsi_shell=yes
cd9a469c 5496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5497$as_echo "$xsi_shell" >&6; }
542f9784 5498
5499
cd9a469c 5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5501$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
542f9784 5502lt_shell_append=no
5503( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5504 >/dev/null 2>&1 \
5505 && lt_shell_append=yes
cd9a469c 5506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5507$as_echo "$lt_shell_append" >&6; }
542f9784 5508
5509
5510if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5511 lt_unset=unset
5512else
5513 lt_unset=false
5514fi
5515
5516
5517
5518
5519
5520# test EBCDIC or ASCII
5521case `echo X|tr X '\101'` in
5522 A) # ASCII based system
5523 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5524 lt_SP2NL='tr \040 \012'
5525 lt_NL2SP='tr \015\012 \040\040'
5526 ;;
5527 *) # EBCDIC based system
5528 lt_SP2NL='tr \100 \n'
5529 lt_NL2SP='tr \r\n \100\100'
5530 ;;
5531esac
5532
5533
5534
5535
5536
5537
5538
5539
5540
cd9a469c 5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5542$as_echo_n "checking for $LD option to reload object files... " >&6; }
5543if test "${lt_cv_ld_reload_flag+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
542f9784 5545else
5546 lt_cv_ld_reload_flag='-r'
5547fi
cd9a469c 5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5549$as_echo "$lt_cv_ld_reload_flag" >&6; }
542f9784 5550reload_flag=$lt_cv_ld_reload_flag
5551case $reload_flag in
5552"" | " "*) ;;
5553*) reload_flag=" $reload_flag" ;;
5554esac
5555reload_cmds='$LD$reload_flag -o $output$reload_objs'
5556case $host_os in
5557 darwin*)
5558 if test "$GCC" = yes; then
5559 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5560 else
5561 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5562 fi
5563 ;;
5564esac
5565
5566
5567
5568
5569
5570
5571
5572
5573
6d873a38 5574if test -n "$ac_tool_prefix"; then
5575 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5576set dummy ${ac_tool_prefix}objdump; ac_word=$2
cd9a469c 5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578$as_echo_n "checking for $ac_word... " >&6; }
5579if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5580 $as_echo_n "(cached) " >&6
6d873a38 5581else
5582 if test -n "$OBJDUMP"; then
5583 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5584else
5585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586for as_dir in $PATH
5587do
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
cd9a469c 5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 5592 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cd9a469c 5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 5594 break 2
5595 fi
5596done
cd9a469c 5597 done
5598IFS=$as_save_IFS
6d873a38 5599
5600fi
5601fi
5602OBJDUMP=$ac_cv_prog_OBJDUMP
5603if test -n "$OBJDUMP"; then
cd9a469c 5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5605$as_echo "$OBJDUMP" >&6; }
6d873a38 5606else
cd9a469c 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608$as_echo "no" >&6; }
6d873a38 5609fi
5610
cd9a469c 5611
6d873a38 5612fi
5613if test -z "$ac_cv_prog_OBJDUMP"; then
5614 ac_ct_OBJDUMP=$OBJDUMP
5615 # Extract the first word of "objdump", so it can be a program name with args.
5616set dummy objdump; ac_word=$2
cd9a469c 5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618$as_echo_n "checking for $ac_word... " >&6; }
5619if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5620 $as_echo_n "(cached) " >&6
6d873a38 5621else
5622 if test -n "$ac_ct_OBJDUMP"; then
5623 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5624else
5625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626for as_dir in $PATH
5627do
5628 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
cd9a469c 5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 5632 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cd9a469c 5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 5634 break 2
5635 fi
5636done
cd9a469c 5637 done
5638IFS=$as_save_IFS
6d873a38 5639
6d873a38 5640fi
5641fi
5642ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5643if test -n "$ac_ct_OBJDUMP"; then
cd9a469c 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5645$as_echo "$ac_ct_OBJDUMP" >&6; }
6d873a38 5646else
cd9a469c 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648$as_echo "no" >&6; }
6d873a38 5649fi
5650
cd9a469c 5651 if test "x$ac_ct_OBJDUMP" = x; then
5652 OBJDUMP="false"
5653 else
5654 case $cross_compiling:$ac_tool_warned in
5655yes:)
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5658ac_tool_warned=yes ;;
5659esac
5660 OBJDUMP=$ac_ct_OBJDUMP
5661 fi
6d873a38 5662else
5663 OBJDUMP="$ac_cv_prog_OBJDUMP"
5664fi
5665
5666test -z "$OBJDUMP" && OBJDUMP=objdump
5667
5668
5669
5670
5671
5672
5673
5674
542f9784 5675
cd9a469c 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5677$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5678if test "${lt_cv_deplibs_check_method+set}" = set; then :
5679 $as_echo_n "(cached) " >&6
1e8e9920 5680else
5681 lt_cv_file_magic_cmd='$MAGIC_CMD'
5682lt_cv_file_magic_test_file=
5683lt_cv_deplibs_check_method='unknown'
5684# Need to set the preceding variable on all platforms that support
5685# interlibrary dependencies.
5686# 'none' -- dependencies not supported.
5687# `unknown' -- same as none, but documents that we really don't know.
5688# 'pass_all' -- all dependencies passed with no checks.
5689# 'test_compile' -- check by making test program.
542f9784 5690# 'file_magic [[regex]]' -- check by looking for files in library path
5691# which responds to the $file_magic_cmd with a given extended regex.
1e8e9920 5692# If you have `file' or equivalent on your system and you're not sure
5693# whether `pass_all' will *always* work, you probably want this one.
5694
5695case $host_os in
c8db569e 5696aix[4-9]*)
1e8e9920 5697 lt_cv_deplibs_check_method=pass_all
5698 ;;
5699
5700beos*)
5701 lt_cv_deplibs_check_method=pass_all
5702 ;;
5703
542f9784 5704bsdi[45]*)
1e8e9920 5705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5706 lt_cv_file_magic_cmd='/usr/bin/file -L'
5707 lt_cv_file_magic_test_file=/shlib/libc.so
5708 ;;
5709
542f9784 5710cygwin*)
5711 # func_win32_libid is a shell function defined in ltmain.sh
5712 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5713 lt_cv_file_magic_cmd='func_win32_libid'
5714 ;;
5715
5716mingw* | pw32*)
5717 # Base MSYS/MinGW do not provide the 'file' command needed by
5718 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5719 # unless we find 'file', for example because we are cross-compiling.
e6408286 5720 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5721 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
542f9784 5722 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5723 lt_cv_file_magic_cmd='func_win32_libid'
5724 else
5725 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5726 lt_cv_file_magic_cmd='$OBJDUMP -f'
5727 fi
1e8e9920 5728 ;;
5729
e6408286 5730cegcc*)
6d873a38 5731 # use the weaker test based on 'objdump'. See mingw*.
5732 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5733 lt_cv_file_magic_cmd='$OBJDUMP -f'
5734 ;;
5735
1e8e9920 5736darwin* | rhapsody*)
1e8e9920 5737 lt_cv_deplibs_check_method=pass_all
5738 ;;
5739
542f9784 5740freebsd* | dragonfly*)
5741 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1e8e9920 5742 case $host_cpu in
5743 i*86 )
5744 # Not sure whether the presence of OpenBSD here was a mistake.
5745 # Let's accept both of them until this is cleared up.
542f9784 5746 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1e8e9920 5747 lt_cv_file_magic_cmd=/usr/bin/file
5748 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5749 ;;
5750 esac
5751 else
5752 lt_cv_deplibs_check_method=pass_all
5753 fi
5754 ;;
5755
5756gnu*)
5757 lt_cv_deplibs_check_method=pass_all
5758 ;;
5759
e6408286 5760haiku*)
5761 lt_cv_deplibs_check_method=pass_all
5762 ;;
5763
542f9784 5764hpux10.20* | hpux11*)
5765 lt_cv_file_magic_cmd=/usr/bin/file
1e8e9920 5766 case $host_cpu in
1e8e9920 5767 ia64*)
5768 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1e8e9920 5769 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5770 ;;
542f9784 5771 hppa*64*)
e6408286 5772 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]'
542f9784 5773 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1e8e9920 5774 ;;
5775 *)
e6408286 5776 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
542f9784 5777 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1e8e9920 5778 ;;
5779 esac
542f9784 5780 ;;
5781
5782interix[3-9]*)
5783 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5784 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5785 ;;
5786
5787irix5* | irix6* | nonstopux*)
5788 case $LD in
5789 *-32|*"-32 ") libmagic=32-bit;;
5790 *-n32|*"-n32 ") libmagic=N32;;
5791 *-64|*"-64 ") libmagic=64-bit;;
5792 *) libmagic=never-match;;
5793 esac
1e8e9920 5794 lt_cv_deplibs_check_method=pass_all
5795 ;;
5796
5797# This must be Linux ELF.
9af964d4 5798linux* | k*bsd*-gnu | kopensolaris*-gnu)
1e8e9920 5799 lt_cv_deplibs_check_method=pass_all
5800 ;;
5801
542f9784 5802netbsd*)
5803 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1e8e9920 5805 else
542f9784 5806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1e8e9920 5807 fi
5808 ;;
5809
542f9784 5810newos6*)
1e8e9920 5811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5812 lt_cv_file_magic_cmd=/usr/bin/file
5813 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5814 ;;
5815
542f9784 5816*nto* | *qnx*)
5817 lt_cv_deplibs_check_method=pass_all
5818 ;;
5819
5820openbsd*)
5821 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5823 else
5824 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5825 fi
5826 ;;
5827
1e8e9920 5828osf3* | osf4* | osf5*)
1e8e9920 5829 lt_cv_deplibs_check_method=pass_all
5830 ;;
5831
542f9784 5832rdos*)
1e8e9920 5833 lt_cv_deplibs_check_method=pass_all
5834 ;;
5835
5836solaris*)
5837 lt_cv_deplibs_check_method=pass_all
1e8e9920 5838 ;;
5839
542f9784 5840sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1e8e9920 5841 lt_cv_deplibs_check_method=pass_all
5842 ;;
5843
542f9784 5844sysv4 | sysv4.3*)
1e8e9920 5845 case $host_vendor in
1e8e9920 5846 motorola)
5847 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]'
5848 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5849 ;;
542f9784 5850 ncr)
5851 lt_cv_deplibs_check_method=pass_all
5852 ;;
5853 sequent)
5854 lt_cv_file_magic_cmd='/bin/file'
5855 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5856 ;;
5857 sni)
5858 lt_cv_file_magic_cmd='/bin/file'
5859 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5860 lt_cv_file_magic_test_file=/lib/libc.so
5861 ;;
5862 siemens)
5863 lt_cv_deplibs_check_method=pass_all
5864 ;;
5865 pc)
5866 lt_cv_deplibs_check_method=pass_all
5867 ;;
1e8e9920 5868 esac
5869 ;;
542f9784 5870
5871tpf*)
5872 lt_cv_deplibs_check_method=pass_all
5873 ;;
1e8e9920 5874esac
5875
5876fi
cd9a469c 5877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5878$as_echo "$lt_cv_deplibs_check_method" >&6; }
1e8e9920 5879file_magic_cmd=$lt_cv_file_magic_cmd
5880deplibs_check_method=$lt_cv_deplibs_check_method
542f9784 5881test -z "$deplibs_check_method" && deplibs_check_method=unknown
1e8e9920 5882
5883
5884
5885
5886
1e8e9920 5887
1e8e9920 5888
1e8e9920 5889
1e8e9920 5890
1e8e9920 5891
1e8e9920 5892
1e8e9920 5893
5894if test -n "$ac_tool_prefix"; then
542f9784 5895 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5896set dummy ${ac_tool_prefix}ar; ac_word=$2
cd9a469c 5897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898$as_echo_n "checking for $ac_word... " >&6; }
5899if test "${ac_cv_prog_AR+set}" = set; then :
5900 $as_echo_n "(cached) " >&6
1e8e9920 5901else
542f9784 5902 if test -n "$AR"; then
5903 ac_cv_prog_AR="$AR" # Let the user override the test.
1e8e9920 5904else
5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
cd9a469c 5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 5912 ac_cv_prog_AR="${ac_tool_prefix}ar"
cd9a469c 5913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 5914 break 2
5915 fi
5916done
cd9a469c 5917 done
5918IFS=$as_save_IFS
1e8e9920 5919
5920fi
5921fi
542f9784 5922AR=$ac_cv_prog_AR
5923if test -n "$AR"; then
cd9a469c 5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5925$as_echo "$AR" >&6; }
1e8e9920 5926else
cd9a469c 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928$as_echo "no" >&6; }
1e8e9920 5929fi
5930
cd9a469c 5931
1e8e9920 5932fi
542f9784 5933if test -z "$ac_cv_prog_AR"; then
5934 ac_ct_AR=$AR
5935 # Extract the first word of "ar", so it can be a program name with args.
5936set dummy ar; ac_word=$2
cd9a469c 5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938$as_echo_n "checking for $ac_word... " >&6; }
5939if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
1e8e9920 5941else
542f9784 5942 if test -n "$ac_ct_AR"; then
5943 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1e8e9920 5944else
5945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946for as_dir in $PATH
5947do
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
cd9a469c 5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 5952 ac_cv_prog_ac_ct_AR="ar"
cd9a469c 5953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 5954 break 2
5955 fi
5956done
cd9a469c 5957 done
5958IFS=$as_save_IFS
1e8e9920 5959
1e8e9920 5960fi
5961fi
542f9784 5962ac_ct_AR=$ac_cv_prog_ac_ct_AR
5963if test -n "$ac_ct_AR"; then
cd9a469c 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5965$as_echo "$ac_ct_AR" >&6; }
1e8e9920 5966else
cd9a469c 5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968$as_echo "no" >&6; }
1e8e9920 5969fi
5970
cd9a469c 5971 if test "x$ac_ct_AR" = x; then
5972 AR="false"
5973 else
5974 case $cross_compiling:$ac_tool_warned in
5975yes:)
5976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5978ac_tool_warned=yes ;;
5979esac
5980 AR=$ac_ct_AR
5981 fi
1e8e9920 5982else
542f9784 5983 AR="$ac_cv_prog_AR"
1e8e9920 5984fi
5985
542f9784 5986test -z "$AR" && AR=ar
5987test -z "$AR_FLAGS" && AR_FLAGS=cru
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
1e8e9920 5999if test -n "$ac_tool_prefix"; then
6000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6001set dummy ${ac_tool_prefix}strip; ac_word=$2
cd9a469c 6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003$as_echo_n "checking for $ac_word... " >&6; }
6004if test "${ac_cv_prog_STRIP+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
1e8e9920 6006else
6007 if test -n "$STRIP"; then
6008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6009else
6010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011for as_dir in $PATH
6012do
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
cd9a469c 6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 6017 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cd9a469c 6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 6019 break 2
6020 fi
6021done
cd9a469c 6022 done
6023IFS=$as_save_IFS
1e8e9920 6024
6025fi
6026fi
6027STRIP=$ac_cv_prog_STRIP
6028if test -n "$STRIP"; then
cd9a469c 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6030$as_echo "$STRIP" >&6; }
1e8e9920 6031else
cd9a469c 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033$as_echo "no" >&6; }
1e8e9920 6034fi
6035
cd9a469c 6036
1e8e9920 6037fi
6038if test -z "$ac_cv_prog_STRIP"; then
6039 ac_ct_STRIP=$STRIP
6040 # Extract the first word of "strip", so it can be a program name with args.
6041set dummy strip; ac_word=$2
cd9a469c 6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043$as_echo_n "checking for $ac_word... " >&6; }
6044if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6045 $as_echo_n "(cached) " >&6
1e8e9920 6046else
6047 if test -n "$ac_ct_STRIP"; then
6048 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6049else
6050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051for as_dir in $PATH
6052do
6053 IFS=$as_save_IFS
6054 test -z "$as_dir" && as_dir=.
cd9a469c 6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 6057 ac_cv_prog_ac_ct_STRIP="strip"
cd9a469c 6058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 6059 break 2
6060 fi
6061done
cd9a469c 6062 done
6063IFS=$as_save_IFS
1e8e9920 6064
1e8e9920 6065fi
6066fi
6067ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6068if test -n "$ac_ct_STRIP"; then
cd9a469c 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6070$as_echo "$ac_ct_STRIP" >&6; }
1e8e9920 6071else
cd9a469c 6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073$as_echo "no" >&6; }
1e8e9920 6074fi
6075
cd9a469c 6076 if test "x$ac_ct_STRIP" = x; then
6077 STRIP=":"
6078 else
6079 case $cross_compiling:$ac_tool_warned in
6080yes:)
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6083ac_tool_warned=yes ;;
6084esac
6085 STRIP=$ac_ct_STRIP
6086 fi
1e8e9920 6087else
6088 STRIP="$ac_cv_prog_STRIP"
6089fi
6090
542f9784 6091test -z "$STRIP" && STRIP=:
1e8e9920 6092
6093
1e8e9920 6094
1e8e9920 6095
6096
1e8e9920 6097
542f9784 6098if test -n "$ac_tool_prefix"; then
6099 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6100set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cd9a469c 6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102$as_echo_n "checking for $ac_word... " >&6; }
6103if test "${ac_cv_prog_RANLIB+set}" = set; then :
6104 $as_echo_n "(cached) " >&6
542f9784 6105else
6106 if test -n "$RANLIB"; then
6107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6108else
6109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110for as_dir in $PATH
6111do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
cd9a469c 6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 6116 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cd9a469c 6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 6118 break 2
6119 fi
6120done
cd9a469c 6121 done
6122IFS=$as_save_IFS
542f9784 6123
6124fi
6125fi
6126RANLIB=$ac_cv_prog_RANLIB
6127if test -n "$RANLIB"; then
cd9a469c 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6129$as_echo "$RANLIB" >&6; }
542f9784 6130else
cd9a469c 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132$as_echo "no" >&6; }
542f9784 6133fi
6134
cd9a469c 6135
542f9784 6136fi
6137if test -z "$ac_cv_prog_RANLIB"; then
6138 ac_ct_RANLIB=$RANLIB
6139 # Extract the first word of "ranlib", so it can be a program name with args.
6140set dummy ranlib; ac_word=$2
cd9a469c 6141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142$as_echo_n "checking for $ac_word... " >&6; }
6143if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6144 $as_echo_n "(cached) " >&6
542f9784 6145else
6146 if test -n "$ac_ct_RANLIB"; then
6147 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6148else
6149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150for as_dir in $PATH
6151do
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
cd9a469c 6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 6156 ac_cv_prog_ac_ct_RANLIB="ranlib"
cd9a469c 6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 6158 break 2
6159 fi
6160done
cd9a469c 6161 done
6162IFS=$as_save_IFS
542f9784 6163
542f9784 6164fi
6165fi
6166ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6167if test -n "$ac_ct_RANLIB"; then
cd9a469c 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6169$as_echo "$ac_ct_RANLIB" >&6; }
542f9784 6170else
cd9a469c 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172$as_echo "no" >&6; }
542f9784 6173fi
6174
cd9a469c 6175 if test "x$ac_ct_RANLIB" = x; then
6176 RANLIB=":"
6177 else
6178 case $cross_compiling:$ac_tool_warned in
6179yes:)
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6182ac_tool_warned=yes ;;
6183esac
6184 RANLIB=$ac_ct_RANLIB
6185 fi
542f9784 6186else
6187 RANLIB="$ac_cv_prog_RANLIB"
6188fi
6189
6190test -z "$RANLIB" && RANLIB=:
6191
6192
6193
6194
6195
6196
6197# Determine commands to create old-style static archives.
6d873a38 6198old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
542f9784 6199old_postinstall_cmds='chmod 644 $oldlib'
6200old_postuninstall_cmds=
6201
6202if test -n "$RANLIB"; then
6203 case $host_os in
6204 openbsd*)
6205 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6206 ;;
6207 *)
6208 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6209 ;;
6210 esac
6211 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6212fi
6213
e6408286 6214case $host_os in
6215 darwin*)
6216 lock_old_archive_extraction=yes ;;
6217 *)
6218 lock_old_archive_extraction=no ;;
6219esac
6220
6221
6222
6223
6224
6225
542f9784 6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259# If no C compiler was specified, use CC.
6260LTCC=${LTCC-"$CC"}
6261
6262# If no C compiler flags were specified, use CFLAGS.
6263LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6264
6265# Allow CC to be a program name with arguments.
6266compiler=$CC
6267
6268
6269# Check for command to grab the raw symbol name followed by C symbol from nm.
cd9a469c 6270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6271$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6272if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6273 $as_echo_n "(cached) " >&6
542f9784 6274else
6275
6276# These are sane defaults that work on at least a few old systems.
6277# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6278
6279# Character class describing NM global symbol codes.
6280symcode='[BCDEGRST]'
6281
6282# Regexp to match symbols that can be accessed directly from C.
6283sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6284
6285# Define system-specific variables.
6286case $host_os in
6287aix*)
6288 symcode='[BCDT]'
6289 ;;
6d873a38 6290cygwin* | mingw* | pw32* | cegcc*)
542f9784 6291 symcode='[ABCDGISTW]'
6292 ;;
6293hpux*)
6294 if test "$host_cpu" = ia64; then
6295 symcode='[ABCDEGRST]'
6296 fi
6297 ;;
6298irix* | nonstopux*)
6299 symcode='[BCDEGRST]'
6300 ;;
6301osf*)
6302 symcode='[BCDEGQRST]'
6303 ;;
6304solaris*)
6305 symcode='[BDRT]'
6306 ;;
6307sco3.2v5*)
6308 symcode='[DT]'
6309 ;;
6310sysv4.2uw2*)
6311 symcode='[DT]'
6312 ;;
6313sysv5* | sco5v6* | unixware* | OpenUNIX*)
6314 symcode='[ABDT]'
6315 ;;
6316sysv4)
6317 symcode='[DFNSTU]'
6318 ;;
6319esac
6320
6321# If we're using GNU nm, then use its standard symbol codes.
6322case `$NM -V 2>&1` in
6323*GNU* | *'with BFD'*)
6324 symcode='[ABCDGIRSTW]' ;;
6325esac
6326
6327# Transform an extracted symbol line into a proper C declaration.
6328# Some systems (esp. on ia64) link data and code symbols differently,
6329# so use this general approach.
6330lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6331
6332# Transform an extracted symbol line into symbol name and symbol address
6333lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6d873a38 6334lt_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'"
542f9784 6335
6336# Handle CRLF in mingw tool chain
6337opt_cr=
6338case $build_os in
6339mingw*)
6340 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6341 ;;
6342esac
6343
6344# Try without a prefix underscore, then with it.
6345for ac_symprfx in "" "_"; do
6346
6347 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6348 symxfrm="\\1 $ac_symprfx\\2 \\2"
6349
6350 # Write the raw and C identifiers.
6351 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6352 # Fake it for dumpbin and say T for any non-static function
6353 # and D for any global variable.
6354 # Also find C++ and __fastcall symbols from MSVC++,
6355 # which start with @ or ?.
6356 lt_cv_sys_global_symbol_pipe="$AWK '"\
6357" {last_section=section; section=\$ 3};"\
6358" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6359" \$ 0!~/External *\|/{next};"\
6360" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6361" {if(hide[section]) next};"\
6362" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6363" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6364" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6365" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6366" ' prfx=^$ac_symprfx"
6367 else
6368 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6369 fi
6370
6371 # Check to see that the pipe works correctly.
6372 pipe_works=no
6373
6374 rm -f conftest*
6375 cat > conftest.$ac_ext <<_LT_EOF
6376#ifdef __cplusplus
6377extern "C" {
6378#endif
6379char nm_test_var;
6380void nm_test_func(void);
6381void nm_test_func(void){}
6382#ifdef __cplusplus
6383}
6384#endif
6385int main(){nm_test_var='a';nm_test_func();return(0);}
6386_LT_EOF
6387
cd9a469c 6388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 6389 (eval $ac_compile) 2>&5
6390 ac_status=$?
cd9a469c 6391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6392 test $ac_status = 0; }; then
542f9784 6393 # Now try to grab the symbols.
6394 nlist=conftest.nm
e6408286 6395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6396 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
542f9784 6397 ac_status=$?
cd9a469c 6398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399 test $ac_status = 0; } && test -s "$nlist"; then
542f9784 6400 # Try sorting and uniquifying the output.
6401 if sort "$nlist" | uniq > "$nlist"T; then
6402 mv -f "$nlist"T "$nlist"
6403 else
6404 rm -f "$nlist"T
6405 fi
6406
6407 # Make sure that we snagged all the symbols we need.
6408 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6409 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6410 cat <<_LT_EOF > conftest.$ac_ext
6411#ifdef __cplusplus
6412extern "C" {
6413#endif
6414
6415_LT_EOF
6416 # Now generate the symbol file.
6417 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6418
6419 cat <<_LT_EOF >> conftest.$ac_ext
6420
6421/* The mapping between symbol names and symbols. */
6422const struct {
6423 const char *name;
6424 void *address;
6425}
6426lt__PROGRAM__LTX_preloaded_symbols[] =
6427{
6428 { "@PROGRAM@", (void *) 0 },
6429_LT_EOF
6430 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6431 cat <<\_LT_EOF >> conftest.$ac_ext
6432 {0, (void *) 0}
6433};
6434
6435/* This works around a problem in FreeBSD linker */
6436#ifdef FREEBSD_WORKAROUND
6437static const void *lt_preloaded_setup() {
6438 return lt__PROGRAM__LTX_preloaded_symbols;
6439}
6440#endif
6441
6442#ifdef __cplusplus
6443}
6444#endif
6445_LT_EOF
6446 # Now try linking the two files.
6447 mv conftest.$ac_objext conftstm.$ac_objext
6448 lt_save_LIBS="$LIBS"
6449 lt_save_CFLAGS="$CFLAGS"
6450 LIBS="conftstm.$ac_objext"
6451 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cd9a469c 6452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 6453 (eval $ac_link) 2>&5
6454 ac_status=$?
cd9a469c 6455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6456 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
542f9784 6457 pipe_works=yes
6458 fi
6459 LIBS="$lt_save_LIBS"
6460 CFLAGS="$lt_save_CFLAGS"
6461 else
6462 echo "cannot find nm_test_func in $nlist" >&5
6463 fi
6464 else
6465 echo "cannot find nm_test_var in $nlist" >&5
6466 fi
6467 else
6468 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6469 fi
6470 else
6471 echo "$progname: failed program was:" >&5
6472 cat conftest.$ac_ext >&5
6473 fi
6d873a38 6474 rm -rf conftest* conftst*
542f9784 6475
6476 # Do not use the global_symbol_pipe unless it works.
6477 if test "$pipe_works" = yes; then
6478 break
6479 else
6480 lt_cv_sys_global_symbol_pipe=
6481 fi
6482done
6483
6484fi
6485
6486if test -z "$lt_cv_sys_global_symbol_pipe"; then
6487 lt_cv_sys_global_symbol_to_cdecl=
6488fi
6489if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cd9a469c 6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6491$as_echo "failed" >&6; }
542f9784 6492else
cd9a469c 6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6494$as_echo "ok" >&6; }
542f9784 6495fi
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6d873a38 6511
6512
6513
6514
6515
542f9784 6516
6517
6518
cd9a469c 6519# Check whether --enable-libtool-lock was given.
6520if test "${enable_libtool_lock+set}" = set; then :
6521 enableval=$enable_libtool_lock;
6522fi
542f9784 6523
542f9784 6524test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6525
6526# Some flags need to be propagated to the compiler or linker for good
1e8e9920 6527# libtool support.
6528case $host in
542f9784 6529ia64-*-hpux*)
1e8e9920 6530 # Find out which ABI we are using.
542f9784 6531 echo 'int i;' > conftest.$ac_ext
cd9a469c 6532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1e8e9920 6533 (eval $ac_compile) 2>&5
6534 ac_status=$?
cd9a469c 6535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6536 test $ac_status = 0; }; then
542f9784 6537 case `/usr/bin/file conftest.$ac_objext` in
6538 *ELF-32*)
6539 HPUX_IA64_MODE="32"
6540 ;;
6541 *ELF-64*)
6542 HPUX_IA64_MODE="64"
6543 ;;
6544 esac
6545 fi
6546 rm -rf conftest*
6547 ;;
6548*-*-irix6*)
6549 # Find out which ABI we are using.
e6408286 6550 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cd9a469c 6551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 6552 (eval $ac_compile) 2>&5
6553 ac_status=$?
cd9a469c 6554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6555 test $ac_status = 0; }; then
542f9784 6556 if test "$lt_cv_prog_gnu_ld" = yes; then
6557 case `/usr/bin/file conftest.$ac_objext` in
6558 *32-bit*)
6559 LD="${LD-ld} -melf32bsmip"
6560 ;;
6561 *N32*)
6562 LD="${LD-ld} -melf32bmipn32"
6563 ;;
6564 *64-bit*)
6565 LD="${LD-ld} -melf64bmip"
6566 ;;
6567 esac
6568 else
6569 case `/usr/bin/file conftest.$ac_objext` in
6570 *32-bit*)
6571 LD="${LD-ld} -32"
6572 ;;
6573 *N32*)
6574 LD="${LD-ld} -n32"
6575 ;;
6576 *64-bit*)
6577 LD="${LD-ld} -64"
6578 ;;
6579 esac
6580 fi
6581 fi
6582 rm -rf conftest*
6583 ;;
6584
6585x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6586s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6587 # Find out which ABI we are using.
6588 echo 'int i;' > conftest.$ac_ext
cd9a469c 6589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 6590 (eval $ac_compile) 2>&5
6591 ac_status=$?
cd9a469c 6592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6593 test $ac_status = 0; }; then
542f9784 6594 case `/usr/bin/file conftest.o` in
6595 *32-bit*)
6596 case $host in
6597 x86_64-*kfreebsd*-gnu)
6598 LD="${LD-ld} -m elf_i386_fbsd"
6599 ;;
6600 x86_64-*linux*)
6601 LD="${LD-ld} -m elf_i386"
6602 ;;
6603 ppc64-*linux*|powerpc64-*linux*)
6604 LD="${LD-ld} -m elf32ppclinux"
6605 ;;
6606 s390x-*linux*)
6607 LD="${LD-ld} -m elf_s390"
6608 ;;
6609 sparc64-*linux*)
6610 LD="${LD-ld} -m elf32_sparc"
6611 ;;
6612 esac
6613 ;;
6614 *64-bit*)
6615 case $host in
6616 x86_64-*kfreebsd*-gnu)
6617 LD="${LD-ld} -m elf_x86_64_fbsd"
6618 ;;
6619 x86_64-*linux*)
6620 LD="${LD-ld} -m elf_x86_64"
6621 ;;
6622 ppc*-*linux*|powerpc*-*linux*)
6623 LD="${LD-ld} -m elf64ppc"
6624 ;;
6625 s390*-*linux*|s390*-*tpf*)
6626 LD="${LD-ld} -m elf64_s390"
6627 ;;
6628 sparc*-*linux*)
6629 LD="${LD-ld} -m elf64_sparc"
6630 ;;
6631 esac
6632 ;;
6633 esac
6634 fi
6635 rm -rf conftest*
6636 ;;
6637
6638*-*-sco3.2v5*)
6639 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6640 SAVE_CFLAGS="$CFLAGS"
6641 CFLAGS="$CFLAGS -belf"
cd9a469c 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6643$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6644if test "${lt_cv_cc_needs_belf+set}" = set; then :
6645 $as_echo_n "(cached) " >&6
542f9784 6646else
6647 ac_ext=c
6648ac_cpp='$CPP $CPPFLAGS'
6649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6651ac_compiler_gnu=$ac_cv_c_compiler_gnu
6652
cd9a469c 6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 6654/* end confdefs.h. */
6655
6656int
6657main ()
6658{
6659
6660 ;
6661 return 0;
6662}
6663_ACEOF
cd9a469c 6664if ac_fn_c_try_link "$LINENO"; then :
542f9784 6665 lt_cv_cc_needs_belf=yes
6666else
cd9a469c 6667 lt_cv_cc_needs_belf=no
542f9784 6668fi
cd9a469c 6669rm -f core conftest.err conftest.$ac_objext \
6670 conftest$ac_exeext conftest.$ac_ext
542f9784 6671 ac_ext=c
6672ac_cpp='$CPP $CPPFLAGS'
6673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6675ac_compiler_gnu=$ac_cv_c_compiler_gnu
6676
6677fi
cd9a469c 6678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6679$as_echo "$lt_cv_cc_needs_belf" >&6; }
542f9784 6680 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6681 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6682 CFLAGS="$SAVE_CFLAGS"
6683 fi
6684 ;;
6685sparc*-*solaris*)
6686 # Find out which ABI we are using.
6687 echo 'int i;' > conftest.$ac_ext
cd9a469c 6688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 6689 (eval $ac_compile) 2>&5
6690 ac_status=$?
cd9a469c 6691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6692 test $ac_status = 0; }; then
542f9784 6693 case `/usr/bin/file conftest.o` in
6694 *64-bit*)
6695 case $lt_cv_prog_gnu_ld in
6696 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6d873a38 6697 *)
6698 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6699 LD="${LD-ld} -64"
6700 fi
6701 ;;
542f9784 6702 esac
6703 ;;
6704 esac
6705 fi
6706 rm -rf conftest*
6707 ;;
6708esac
6709
6710need_locks="$enable_libtool_lock"
6711
6d873a38 6712
6713 case $host_os in
6714 rhapsody* | darwin*)
6715 if test -n "$ac_tool_prefix"; then
6716 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6717set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cd9a469c 6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719$as_echo_n "checking for $ac_word... " >&6; }
6720if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6721 $as_echo_n "(cached) " >&6
542f9784 6722else
6d873a38 6723 if test -n "$DSYMUTIL"; then
6724 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
542f9784 6728do
6d873a38 6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
cd9a469c 6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 6733 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cd9a469c 6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 6735 break 2
542f9784 6736 fi
6d873a38 6737done
cd9a469c 6738 done
6739IFS=$as_save_IFS
6d873a38 6740
6741fi
6742fi
6743DSYMUTIL=$ac_cv_prog_DSYMUTIL
6744if test -n "$DSYMUTIL"; then
cd9a469c 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6746$as_echo "$DSYMUTIL" >&6; }
6d873a38 6747else
cd9a469c 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749$as_echo "no" >&6; }
6d873a38 6750fi
6751
cd9a469c 6752
6d873a38 6753fi
6754if test -z "$ac_cv_prog_DSYMUTIL"; then
6755 ac_ct_DSYMUTIL=$DSYMUTIL
6756 # Extract the first word of "dsymutil", so it can be a program name with args.
6757set dummy dsymutil; ac_word=$2
cd9a469c 6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759$as_echo_n "checking for $ac_word... " >&6; }
6760if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6761 $as_echo_n "(cached) " >&6
6d873a38 6762else
6763 if test -n "$ac_ct_DSYMUTIL"; then
6764 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6765else
6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
cd9a469c 6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 6773 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cd9a469c 6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 6775 break 2
6776 fi
6777done
cd9a469c 6778 done
6779IFS=$as_save_IFS
6d873a38 6780
6d873a38 6781fi
6782fi
6783ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6784if test -n "$ac_ct_DSYMUTIL"; then
cd9a469c 6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6786$as_echo "$ac_ct_DSYMUTIL" >&6; }
6d873a38 6787else
cd9a469c 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789$as_echo "no" >&6; }
6d873a38 6790fi
6791
cd9a469c 6792 if test "x$ac_ct_DSYMUTIL" = x; then
6793 DSYMUTIL=":"
6794 else
6795 case $cross_compiling:$ac_tool_warned in
6796yes:)
6797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6799ac_tool_warned=yes ;;
6800esac
6801 DSYMUTIL=$ac_ct_DSYMUTIL
6802 fi
6d873a38 6803else
6804 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6805fi
6806
6807 if test -n "$ac_tool_prefix"; then
6808 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6809set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cd9a469c 6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811$as_echo_n "checking for $ac_word... " >&6; }
6812if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
6d873a38 6814else
6815 if test -n "$NMEDIT"; then
6816 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6817else
6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
cd9a469c 6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 6825 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cd9a469c 6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 6827 break 2
6828 fi
6829done
cd9a469c 6830 done
6831IFS=$as_save_IFS
6d873a38 6832
6833fi
6834fi
6835NMEDIT=$ac_cv_prog_NMEDIT
6836if test -n "$NMEDIT"; then
cd9a469c 6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6838$as_echo "$NMEDIT" >&6; }
6d873a38 6839else
cd9a469c 6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841$as_echo "no" >&6; }
6d873a38 6842fi
6843
cd9a469c 6844
6d873a38 6845fi
6846if test -z "$ac_cv_prog_NMEDIT"; then
6847 ac_ct_NMEDIT=$NMEDIT
6848 # Extract the first word of "nmedit", so it can be a program name with args.
6849set dummy nmedit; ac_word=$2
cd9a469c 6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851$as_echo_n "checking for $ac_word... " >&6; }
6852if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6853 $as_echo_n "(cached) " >&6
6d873a38 6854else
6855 if test -n "$ac_ct_NMEDIT"; then
6856 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6857else
6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859for as_dir in $PATH
6860do
6861 IFS=$as_save_IFS
6862 test -z "$as_dir" && as_dir=.
cd9a469c 6863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 6865 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cd9a469c 6866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 6867 break 2
6868 fi
6869done
cd9a469c 6870 done
6871IFS=$as_save_IFS
6d873a38 6872
6d873a38 6873fi
6874fi
6875ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6876if test -n "$ac_ct_NMEDIT"; then
cd9a469c 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6878$as_echo "$ac_ct_NMEDIT" >&6; }
6d873a38 6879else
cd9a469c 6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881$as_echo "no" >&6; }
6d873a38 6882fi
6883
cd9a469c 6884 if test "x$ac_ct_NMEDIT" = x; then
6885 NMEDIT=":"
6886 else
6887 case $cross_compiling:$ac_tool_warned in
6888yes:)
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6891ac_tool_warned=yes ;;
6892esac
6893 NMEDIT=$ac_ct_NMEDIT
6894 fi
6d873a38 6895else
6896 NMEDIT="$ac_cv_prog_NMEDIT"
6897fi
6898
6899 if test -n "$ac_tool_prefix"; then
6900 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6901set dummy ${ac_tool_prefix}lipo; ac_word=$2
cd9a469c 6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903$as_echo_n "checking for $ac_word... " >&6; }
6904if test "${ac_cv_prog_LIPO+set}" = set; then :
6905 $as_echo_n "(cached) " >&6
6d873a38 6906else
6907 if test -n "$LIPO"; then
6908 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6909else
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
cd9a469c 6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 6917 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cd9a469c 6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 6919 break 2
6920 fi
6921done
cd9a469c 6922 done
6923IFS=$as_save_IFS
6d873a38 6924
6925fi
6926fi
6927LIPO=$ac_cv_prog_LIPO
6928if test -n "$LIPO"; then
cd9a469c 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6930$as_echo "$LIPO" >&6; }
6d873a38 6931else
cd9a469c 6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933$as_echo "no" >&6; }
6d873a38 6934fi
6935
cd9a469c 6936
6d873a38 6937fi
6938if test -z "$ac_cv_prog_LIPO"; then
6939 ac_ct_LIPO=$LIPO
6940 # Extract the first word of "lipo", so it can be a program name with args.
6941set dummy lipo; ac_word=$2
cd9a469c 6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943$as_echo_n "checking for $ac_word... " >&6; }
6944if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6945 $as_echo_n "(cached) " >&6
6d873a38 6946else
6947 if test -n "$ac_ct_LIPO"; then
6948 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6949else
6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
cd9a469c 6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 6957 ac_cv_prog_ac_ct_LIPO="lipo"
cd9a469c 6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 6959 break 2
6960 fi
6961done
cd9a469c 6962 done
6963IFS=$as_save_IFS
6d873a38 6964
6d873a38 6965fi
6966fi
6967ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6968if test -n "$ac_ct_LIPO"; then
cd9a469c 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6970$as_echo "$ac_ct_LIPO" >&6; }
6d873a38 6971else
cd9a469c 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973$as_echo "no" >&6; }
6d873a38 6974fi
6975
cd9a469c 6976 if test "x$ac_ct_LIPO" = x; then
6977 LIPO=":"
6978 else
6979 case $cross_compiling:$ac_tool_warned in
6980yes:)
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983ac_tool_warned=yes ;;
6984esac
6985 LIPO=$ac_ct_LIPO
6986 fi
6d873a38 6987else
6988 LIPO="$ac_cv_prog_LIPO"
6989fi
6990
6991 if test -n "$ac_tool_prefix"; then
6992 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6993set dummy ${ac_tool_prefix}otool; ac_word=$2
cd9a469c 6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995$as_echo_n "checking for $ac_word... " >&6; }
6996if test "${ac_cv_prog_OTOOL+set}" = set; then :
6997 $as_echo_n "(cached) " >&6
6d873a38 6998else
6999 if test -n "$OTOOL"; then
7000 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7001else
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
cd9a469c 7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 7009 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cd9a469c 7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 7011 break 2
7012 fi
7013done
cd9a469c 7014 done
7015IFS=$as_save_IFS
6d873a38 7016
7017fi
7018fi
7019OTOOL=$ac_cv_prog_OTOOL
7020if test -n "$OTOOL"; then
cd9a469c 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7022$as_echo "$OTOOL" >&6; }
6d873a38 7023else
cd9a469c 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025$as_echo "no" >&6; }
6d873a38 7026fi
7027
cd9a469c 7028
6d873a38 7029fi
7030if test -z "$ac_cv_prog_OTOOL"; then
7031 ac_ct_OTOOL=$OTOOL
7032 # Extract the first word of "otool", so it can be a program name with args.
7033set dummy otool; ac_word=$2
cd9a469c 7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035$as_echo_n "checking for $ac_word... " >&6; }
7036if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7037 $as_echo_n "(cached) " >&6
6d873a38 7038else
7039 if test -n "$ac_ct_OTOOL"; then
7040 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7041else
7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
cd9a469c 7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 7049 ac_cv_prog_ac_ct_OTOOL="otool"
cd9a469c 7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 7051 break 2
7052 fi
7053done
cd9a469c 7054 done
7055IFS=$as_save_IFS
6d873a38 7056
6d873a38 7057fi
7058fi
7059ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7060if test -n "$ac_ct_OTOOL"; then
cd9a469c 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7062$as_echo "$ac_ct_OTOOL" >&6; }
6d873a38 7063else
cd9a469c 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065$as_echo "no" >&6; }
6d873a38 7066fi
7067
cd9a469c 7068 if test "x$ac_ct_OTOOL" = x; then
7069 OTOOL=":"
7070 else
7071 case $cross_compiling:$ac_tool_warned in
7072yes:)
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075ac_tool_warned=yes ;;
7076esac
7077 OTOOL=$ac_ct_OTOOL
7078 fi
6d873a38 7079else
7080 OTOOL="$ac_cv_prog_OTOOL"
7081fi
7082
7083 if test -n "$ac_tool_prefix"; then
7084 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7085set dummy ${ac_tool_prefix}otool64; ac_word=$2
cd9a469c 7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7087$as_echo_n "checking for $ac_word... " >&6; }
7088if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7089 $as_echo_n "(cached) " >&6
6d873a38 7090else
7091 if test -n "$OTOOL64"; then
7092 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7093else
7094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
cd9a469c 7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 7101 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cd9a469c 7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 7103 break 2
7104 fi
7105done
cd9a469c 7106 done
7107IFS=$as_save_IFS
6d873a38 7108
7109fi
7110fi
7111OTOOL64=$ac_cv_prog_OTOOL64
7112if test -n "$OTOOL64"; then
cd9a469c 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7114$as_echo "$OTOOL64" >&6; }
6d873a38 7115else
cd9a469c 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117$as_echo "no" >&6; }
6d873a38 7118fi
7119
cd9a469c 7120
6d873a38 7121fi
7122if test -z "$ac_cv_prog_OTOOL64"; then
7123 ac_ct_OTOOL64=$OTOOL64
7124 # Extract the first word of "otool64", so it can be a program name with args.
7125set dummy otool64; ac_word=$2
cd9a469c 7126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127$as_echo_n "checking for $ac_word... " >&6; }
7128if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7129 $as_echo_n "(cached) " >&6
6d873a38 7130else
7131 if test -n "$ac_ct_OTOOL64"; then
7132 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7133else
7134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
cd9a469c 7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 7141 ac_cv_prog_ac_ct_OTOOL64="otool64"
cd9a469c 7142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 7143 break 2
7144 fi
7145done
cd9a469c 7146 done
7147IFS=$as_save_IFS
6d873a38 7148
6d873a38 7149fi
7150fi
7151ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7152if test -n "$ac_ct_OTOOL64"; then
cd9a469c 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7154$as_echo "$ac_ct_OTOOL64" >&6; }
6d873a38 7155else
cd9a469c 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157$as_echo "no" >&6; }
6d873a38 7158fi
7159
cd9a469c 7160 if test "x$ac_ct_OTOOL64" = x; then
7161 OTOOL64=":"
7162 else
7163 case $cross_compiling:$ac_tool_warned in
7164yes:)
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7167ac_tool_warned=yes ;;
7168esac
7169 OTOOL64=$ac_ct_OTOOL64
7170 fi
6d873a38 7171else
7172 OTOOL64="$ac_cv_prog_OTOOL64"
7173fi
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
cd9a469c 7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7202$as_echo_n "checking for -single_module linker flag... " >&6; }
7203if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7204 $as_echo_n "(cached) " >&6
6d873a38 7205else
7206 lt_cv_apple_cc_single_mod=no
7207 if test -z "${LT_MULTI_MODULE}"; then
7208 # By default we will add the -single_module flag. You can override
7209 # by either setting the environment variable LT_MULTI_MODULE
7210 # non-empty at configure time, or by adding -multi_module to the
7211 # link flags.
7212 rm -rf libconftest.dylib*
7213 echo "int foo(void){return 1;}" > conftest.c
7214 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7215-dynamiclib -Wl,-single_module conftest.c" >&5
7216 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7217 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7218 _lt_result=$?
7219 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7220 lt_cv_apple_cc_single_mod=yes
7221 else
7222 cat conftest.err >&5
7223 fi
7224 rm -rf libconftest.dylib*
7225 rm -f conftest.*
7226 fi
7227fi
cd9a469c 7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7229$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7231$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7232if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7233 $as_echo_n "(cached) " >&6
6d873a38 7234else
7235 lt_cv_ld_exported_symbols_list=no
7236 save_LDFLAGS=$LDFLAGS
7237 echo "_main" > conftest.sym
7238 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cd9a469c 7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d873a38 7240/* end confdefs.h. */
7241
7242int
7243main ()
7244{
7245
7246 ;
7247 return 0;
7248}
7249_ACEOF
cd9a469c 7250if ac_fn_c_try_link "$LINENO"; then :
6d873a38 7251 lt_cv_ld_exported_symbols_list=yes
7252else
cd9a469c 7253 lt_cv_ld_exported_symbols_list=no
6d873a38 7254fi
cd9a469c 7255rm -f core conftest.err conftest.$ac_objext \
7256 conftest$ac_exeext conftest.$ac_ext
6d873a38 7257 LDFLAGS="$save_LDFLAGS"
7258
7259fi
cd9a469c 7260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7261$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
e6408286 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7263$as_echo_n "checking for -force_load linker flag... " >&6; }
7264if test "${lt_cv_ld_force_load+set}" = set; then :
7265 $as_echo_n "(cached) " >&6
7266else
7267 lt_cv_ld_force_load=no
7268 cat > conftest.c << _LT_EOF
7269int forced_loaded() { return 2;}
7270_LT_EOF
7271 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7272 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7273 echo "$AR cru libconftest.a conftest.o" >&5
7274 $AR cru libconftest.a conftest.o 2>&5
7275 cat > conftest.c << _LT_EOF
7276int main() { return 0;}
7277_LT_EOF
7278 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7279 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7280 _lt_result=$?
7281 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7282 lt_cv_ld_force_load=yes
7283 else
7284 cat conftest.err >&5
7285 fi
7286 rm -f conftest.err libconftest.a conftest conftest.c
7287 rm -rf conftest.dSYM
7288
7289fi
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7291$as_echo "$lt_cv_ld_force_load" >&6; }
6d873a38 7292 case $host_os in
7293 rhapsody* | darwin1.[012])
7294 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7295 darwin1.*)
7296 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7297 darwin*) # darwin 5.x on
7298 # if running on 10.5 or later, the deployment target defaults
7299 # to the OS version, if on x86, and 10.4, the deployment
7300 # target defaults to 10.4. Don't you love it?
7301 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7302 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7303 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7304 10.[012]*)
7305 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7306 10.*)
7307 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7308 esac
7309 ;;
7310 esac
7311 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7312 _lt_dar_single_mod='$single_module'
7313 fi
7314 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7315 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7316 else
7317 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7318 fi
e6408286 7319 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6d873a38 7320 _lt_dsymutil='~$DSYMUTIL $lib || :'
7321 else
7322 _lt_dsymutil=
7323 fi
7324 ;;
7325 esac
7326
7327ac_ext=c
7328ac_cpp='$CPP $CPPFLAGS'
7329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7331ac_compiler_gnu=$ac_cv_c_compiler_gnu
cd9a469c 7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7333$as_echo_n "checking how to run the C preprocessor... " >&6; }
6d873a38 7334# On Suns, sometimes $CPP names a directory.
7335if test -n "$CPP" && test -d "$CPP"; then
7336 CPP=
7337fi
7338if test -z "$CPP"; then
cd9a469c 7339 if test "${ac_cv_prog_CPP+set}" = set; then :
7340 $as_echo_n "(cached) " >&6
6d873a38 7341else
7342 # Double quotes because CPP needs to be expanded
7343 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7344 do
7345 ac_preproc_ok=false
7346for ac_c_preproc_warn_flag in '' yes
7347do
7348 # Use a header file that comes with gcc, so configuring glibc
7349 # with a fresh cross-compiler works.
7350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7351 # <limits.h> exists even on freestanding compilers.
7352 # On the NeXT, cc -E runs the code through the compiler's parser,
7353 # not just through cpp. "Syntax error" is here to catch this case.
cd9a469c 7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d873a38 7355/* end confdefs.h. */
7356#ifdef __STDC__
7357# include <limits.h>
7358#else
7359# include <assert.h>
7360#endif
7361 Syntax error
7362_ACEOF
cd9a469c 7363if ac_fn_c_try_cpp "$LINENO"; then :
542f9784 7364
cd9a469c 7365else
542f9784 7366 # Broken: fails on valid input.
7367continue
7368fi
7369rm -f conftest.err conftest.$ac_ext
7370
cd9a469c 7371 # OK, works on sane cases. Now check whether nonexistent headers
542f9784 7372 # can be detected and how.
cd9a469c 7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7374/* end confdefs.h. */
7375#include <ac_nonexistent.h>
7376_ACEOF
cd9a469c 7377if ac_fn_c_try_cpp "$LINENO"; then :
542f9784 7378 # Broken: success on invalid input.
7379continue
7380else
542f9784 7381 # Passes both tests.
7382ac_preproc_ok=:
7383break
7384fi
7385rm -f conftest.err conftest.$ac_ext
7386
7387done
7388# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7389rm -f conftest.err conftest.$ac_ext
cd9a469c 7390if $ac_preproc_ok; then :
542f9784 7391 break
7392fi
7393
7394 done
7395 ac_cv_prog_CPP=$CPP
7396
7397fi
7398 CPP=$ac_cv_prog_CPP
7399else
7400 ac_cv_prog_CPP=$CPP
7401fi
cd9a469c 7402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7403$as_echo "$CPP" >&6; }
542f9784 7404ac_preproc_ok=false
7405for ac_c_preproc_warn_flag in '' yes
7406do
7407 # Use a header file that comes with gcc, so configuring glibc
7408 # with a fresh cross-compiler works.
7409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7410 # <limits.h> exists even on freestanding compilers.
7411 # On the NeXT, cc -E runs the code through the compiler's parser,
7412 # not just through cpp. "Syntax error" is here to catch this case.
cd9a469c 7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7414/* end confdefs.h. */
7415#ifdef __STDC__
7416# include <limits.h>
7417#else
7418# include <assert.h>
7419#endif
7420 Syntax error
7421_ACEOF
cd9a469c 7422if ac_fn_c_try_cpp "$LINENO"; then :
542f9784 7423
cd9a469c 7424else
542f9784 7425 # Broken: fails on valid input.
7426continue
7427fi
7428rm -f conftest.err conftest.$ac_ext
7429
cd9a469c 7430 # OK, works on sane cases. Now check whether nonexistent headers
542f9784 7431 # can be detected and how.
cd9a469c 7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7433/* end confdefs.h. */
7434#include <ac_nonexistent.h>
7435_ACEOF
cd9a469c 7436if ac_fn_c_try_cpp "$LINENO"; then :
542f9784 7437 # Broken: success on invalid input.
7438continue
7439else
542f9784 7440 # Passes both tests.
7441ac_preproc_ok=:
7442break
7443fi
7444rm -f conftest.err conftest.$ac_ext
7445
7446done
7447# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7448rm -f conftest.err conftest.$ac_ext
cd9a469c 7449if $ac_preproc_ok; then :
7450
542f9784 7451else
cd9a469c 7452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7454as_fn_error "C preprocessor \"$CPP\" fails sanity check
7455See \`config.log' for more details." "$LINENO" 5; }
542f9784 7456fi
7457
7458ac_ext=c
7459ac_cpp='$CPP $CPPFLAGS'
7460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7462ac_compiler_gnu=$ac_cv_c_compiler_gnu
7463
7464
cd9a469c 7465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7466$as_echo_n "checking for ANSI C header files... " >&6; }
7467if test "${ac_cv_header_stdc+set}" = set; then :
7468 $as_echo_n "(cached) " >&6
542f9784 7469else
cd9a469c 7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7471/* end confdefs.h. */
7472#include <stdlib.h>
7473#include <stdarg.h>
7474#include <string.h>
7475#include <float.h>
7476
7477int
7478main ()
7479{
7480
7481 ;
7482 return 0;
7483}
7484_ACEOF
cd9a469c 7485if ac_fn_c_try_compile "$LINENO"; then :
542f9784 7486 ac_cv_header_stdc=yes
7487else
cd9a469c 7488 ac_cv_header_stdc=no
542f9784 7489fi
cd9a469c 7490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 7491
7492if test $ac_cv_header_stdc = yes; then
7493 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cd9a469c 7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7495/* end confdefs.h. */
7496#include <string.h>
7497
7498_ACEOF
7499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cd9a469c 7500 $EGREP "memchr" >/dev/null 2>&1; then :
7501
542f9784 7502else
7503 ac_cv_header_stdc=no
7504fi
7505rm -f conftest*
7506
7507fi
7508
7509if test $ac_cv_header_stdc = yes; then
7510 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cd9a469c 7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7512/* end confdefs.h. */
7513#include <stdlib.h>
7514
7515_ACEOF
7516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cd9a469c 7517 $EGREP "free" >/dev/null 2>&1; then :
7518
542f9784 7519else
7520 ac_cv_header_stdc=no
7521fi
7522rm -f conftest*
7523
7524fi
7525
7526if test $ac_cv_header_stdc = yes; then
7527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cd9a469c 7528 if test "$cross_compiling" = yes; then :
542f9784 7529 :
7530else
cd9a469c 7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7532/* end confdefs.h. */
7533#include <ctype.h>
cd9a469c 7534#include <stdlib.h>
542f9784 7535#if ((' ' & 0x0FF) == 0x020)
7536# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7537# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7538#else
7539# define ISLOWER(c) \
7540 (('a' <= (c) && (c) <= 'i') \
7541 || ('j' <= (c) && (c) <= 'r') \
7542 || ('s' <= (c) && (c) <= 'z'))
7543# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7544#endif
7545
7546#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7547int
7548main ()
7549{
7550 int i;
7551 for (i = 0; i < 256; i++)
7552 if (XOR (islower (i), ISLOWER (i))
7553 || toupper (i) != TOUPPER (i))
cd9a469c 7554 return 2;
7555 return 0;
542f9784 7556}
7557_ACEOF
cd9a469c 7558if ac_fn_c_try_run "$LINENO"; then :
542f9784 7559
cd9a469c 7560else
7561 ac_cv_header_stdc=no
542f9784 7562fi
cd9a469c 7563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7564 conftest.$ac_objext conftest.beam conftest.$ac_ext
542f9784 7565fi
cd9a469c 7566
542f9784 7567fi
7568fi
cd9a469c 7569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7570$as_echo "$ac_cv_header_stdc" >&6; }
542f9784 7571if test $ac_cv_header_stdc = yes; then
7572
cd9a469c 7573$as_echo "#define STDC_HEADERS 1" >>confdefs.h
542f9784 7574
7575fi
7576
7577# On IRIX 5.3, sys/types and inttypes.h are conflicting.
542f9784 7578for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7579 inttypes.h stdint.h unistd.h
cd9a469c 7580do :
7581 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7582ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7583"
7584eval as_val=\$$as_ac_Header
7585 if test "x$as_val" = x""yes; then :
542f9784 7586 cat >>confdefs.h <<_ACEOF
cd9a469c 7587#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
542f9784 7588_ACEOF
7589
7590fi
7591
7592done
7593
7594
542f9784 7595for ac_header in dlfcn.h
cd9a469c 7596do :
7597 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7598"
7599if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
542f9784 7600 cat >>confdefs.h <<_ACEOF
cd9a469c 7601#define HAVE_DLFCN_H 1
542f9784 7602_ACEOF
7603
7604fi
7605
7606done
7607
7608
7609
e6408286 7610
7611
6d873a38 7612# Set options
7613
7614
7615
7616 enable_dlopen=no
7617
7618
7619 enable_win32_dll=no
7620
7621
cd9a469c 7622 # Check whether --enable-shared was given.
7623if test "${enable_shared+set}" = set; then :
7624 enableval=$enable_shared; p=${PACKAGE-default}
6d873a38 7625 case $enableval in
7626 yes) enable_shared=yes ;;
7627 no) enable_shared=no ;;
7628 *)
7629 enable_shared=no
7630 # Look at the argument we got. We use all the common list separators.
7631 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7632 for pkg in $enableval; do
7633 IFS="$lt_save_ifs"
7634 if test "X$pkg" = "X$p"; then
7635 enable_shared=yes
7636 fi
7637 done
7638 IFS="$lt_save_ifs"
7639 ;;
7640 esac
7641else
7642 enable_shared=yes
cd9a469c 7643fi
7644
6d873a38 7645
7646
7647
7648
7649
7650
7651
7652
cd9a469c 7653 # Check whether --enable-static was given.
7654if test "${enable_static+set}" = set; then :
7655 enableval=$enable_static; p=${PACKAGE-default}
6d873a38 7656 case $enableval in
7657 yes) enable_static=yes ;;
7658 no) enable_static=no ;;
7659 *)
7660 enable_static=no
7661 # Look at the argument we got. We use all the common list separators.
7662 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7663 for pkg in $enableval; do
7664 IFS="$lt_save_ifs"
7665 if test "X$pkg" = "X$p"; then
7666 enable_static=yes
7667 fi
7668 done
7669 IFS="$lt_save_ifs"
7670 ;;
7671 esac
7672else
7673 enable_static=yes
cd9a469c 7674fi
7675
6d873a38 7676
7677
7678
7679
7680
7681
7682
7683
7684
cd9a469c 7685# Check whether --with-pic was given.
7686if test "${with_pic+set}" = set; then :
7687 withval=$with_pic; pic_mode="$withval"
6d873a38 7688else
7689 pic_mode=default
cd9a469c 7690fi
7691
6d873a38 7692
7693test -z "$pic_mode" && pic_mode=default
7694
7695
7696
7697
7698
7699
7700
cd9a469c 7701 # Check whether --enable-fast-install was given.
7702if test "${enable_fast_install+set}" = set; then :
7703 enableval=$enable_fast_install; p=${PACKAGE-default}
6d873a38 7704 case $enableval in
7705 yes) enable_fast_install=yes ;;
7706 no) enable_fast_install=no ;;
7707 *)
7708 enable_fast_install=no
7709 # Look at the argument we got. We use all the common list separators.
7710 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7711 for pkg in $enableval; do
7712 IFS="$lt_save_ifs"
7713 if test "X$pkg" = "X$p"; then
7714 enable_fast_install=yes
7715 fi
7716 done
7717 IFS="$lt_save_ifs"
7718 ;;
7719 esac
7720else
7721 enable_fast_install=yes
cd9a469c 7722fi
7723
6d873a38 7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
542f9784 7734# This can be used to rebuild libtool when needed
7735LIBTOOL_DEPS="$ltmain"
7736
7737# Always use our own libtool.
7738LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
e6408286 7762
542f9784 7763
7764
7765test -z "$LN_S" && LN_S="ln -s"
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780if test -n "${ZSH_VERSION+set}" ; then
7781 setopt NO_GLOB_SUBST
7782fi
7783
cd9a469c 7784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7785$as_echo_n "checking for objdir... " >&6; }
7786if test "${lt_cv_objdir+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
542f9784 7788else
7789 rm -f .libs 2>/dev/null
7790mkdir .libs 2>/dev/null
7791if test -d .libs; then
7792 lt_cv_objdir=.libs
7793else
7794 # MS-DOS does not allow filenames that begin with a dot.
7795 lt_cv_objdir=_libs
7796fi
7797rmdir .libs 2>/dev/null
7798fi
cd9a469c 7799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7800$as_echo "$lt_cv_objdir" >&6; }
542f9784 7801objdir=$lt_cv_objdir
7802
7803
7804
7805
7806
7807cat >>confdefs.h <<_ACEOF
7808#define LT_OBJDIR "$lt_cv_objdir/"
7809_ACEOF
7810
7811
7812
7813
542f9784 7814case $host_os in
7815aix3*)
7816 # AIX sometimes has problems with the GCC collect2 program. For some
7817 # reason, if we set the COLLECT_NAMES environment variable, the problems
7818 # vanish in a puff of smoke.
7819 if test "X${COLLECT_NAMES+set}" != Xset; then
7820 COLLECT_NAMES=
7821 export COLLECT_NAMES
7822 fi
7823 ;;
7824esac
7825
542f9784 7826# Global variables:
7827ofile=libtool
7828can_build_shared=yes
7829
7830# All known linkers require a `.a' archive for static linking (except MSVC,
7831# which needs '.lib').
7832libext=a
7833
7834with_gnu_ld="$lt_cv_prog_gnu_ld"
7835
7836old_CC="$CC"
7837old_CFLAGS="$CFLAGS"
7838
7839# Set sane defaults for various variables
7840test -z "$CC" && CC=cc
7841test -z "$LTCC" && LTCC=$CC
7842test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7843test -z "$LD" && LD=ld
7844test -z "$ac_objext" && ac_objext=o
7845
7846for cc_temp in $compiler""; do
7847 case $cc_temp in
7848 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7849 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7850 \-*) ;;
7851 *) break;;
7852 esac
7853done
e6408286 7854cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
542f9784 7855
7856
7857# Only perform the check for file, if the check method requires it
7858test -z "$MAGIC_CMD" && MAGIC_CMD=file
7859case $deplibs_check_method in
7860file_magic*)
7861 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cd9a469c 7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7863$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7864if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7865 $as_echo_n "(cached) " >&6
542f9784 7866else
7867 case $MAGIC_CMD in
7868[\\/*] | ?:[\\/]*)
7869 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7870 ;;
7871*)
7872 lt_save_MAGIC_CMD="$MAGIC_CMD"
7873 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7874 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7875 for ac_dir in $ac_dummy; do
7876 IFS="$lt_save_ifs"
7877 test -z "$ac_dir" && ac_dir=.
7878 if test -f $ac_dir/${ac_tool_prefix}file; then
7879 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7880 if test -n "$file_magic_test_file"; then
7881 case $deplibs_check_method in
7882 "file_magic "*)
7883 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7884 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7885 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7886 $EGREP "$file_magic_regex" > /dev/null; then
7887 :
7888 else
7889 cat <<_LT_EOF 1>&2
7890
7891*** Warning: the command libtool uses to detect shared libraries,
7892*** $file_magic_cmd, produces output that libtool cannot recognize.
7893*** The result is that libtool may fail to recognize shared libraries
7894*** as such. This will affect the creation of libtool libraries that
7895*** depend on shared libraries, but programs linked with such libtool
7896*** libraries will work regardless of this problem. Nevertheless, you
7897*** may want to report the problem to your system manager and/or to
7898*** bug-libtool@gnu.org
7899
7900_LT_EOF
7901 fi ;;
7902 esac
7903 fi
7904 break
7905 fi
7906 done
7907 IFS="$lt_save_ifs"
7908 MAGIC_CMD="$lt_save_MAGIC_CMD"
7909 ;;
7910esac
7911fi
7912
7913MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7914if test -n "$MAGIC_CMD"; then
cd9a469c 7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7916$as_echo "$MAGIC_CMD" >&6; }
542f9784 7917else
cd9a469c 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919$as_echo "no" >&6; }
542f9784 7920fi
7921
7922
7923
7924
7925
7926if test -z "$lt_cv_path_MAGIC_CMD"; then
7927 if test -n "$ac_tool_prefix"; then
cd9a469c 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7929$as_echo_n "checking for file... " >&6; }
7930if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7931 $as_echo_n "(cached) " >&6
542f9784 7932else
7933 case $MAGIC_CMD in
7934[\\/*] | ?:[\\/]*)
7935 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7936 ;;
7937*)
7938 lt_save_MAGIC_CMD="$MAGIC_CMD"
7939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7940 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7941 for ac_dir in $ac_dummy; do
7942 IFS="$lt_save_ifs"
7943 test -z "$ac_dir" && ac_dir=.
7944 if test -f $ac_dir/file; then
7945 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7946 if test -n "$file_magic_test_file"; then
7947 case $deplibs_check_method in
7948 "file_magic "*)
7949 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7950 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7951 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7952 $EGREP "$file_magic_regex" > /dev/null; then
7953 :
7954 else
7955 cat <<_LT_EOF 1>&2
7956
7957*** Warning: the command libtool uses to detect shared libraries,
7958*** $file_magic_cmd, produces output that libtool cannot recognize.
7959*** The result is that libtool may fail to recognize shared libraries
7960*** as such. This will affect the creation of libtool libraries that
7961*** depend on shared libraries, but programs linked with such libtool
7962*** libraries will work regardless of this problem. Nevertheless, you
7963*** may want to report the problem to your system manager and/or to
7964*** bug-libtool@gnu.org
7965
7966_LT_EOF
7967 fi ;;
7968 esac
7969 fi
7970 break
7971 fi
7972 done
7973 IFS="$lt_save_ifs"
7974 MAGIC_CMD="$lt_save_MAGIC_CMD"
7975 ;;
7976esac
7977fi
7978
7979MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7980if test -n "$MAGIC_CMD"; then
cd9a469c 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7982$as_echo "$MAGIC_CMD" >&6; }
542f9784 7983else
cd9a469c 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985$as_echo "no" >&6; }
542f9784 7986fi
7987
7988
7989 else
7990 MAGIC_CMD=:
7991 fi
7992fi
7993
7994 fi
7995 ;;
7996esac
7997
7998# Use C for the default configuration in the libtool script
7999
8000lt_save_CC="$CC"
8001ac_ext=c
8002ac_cpp='$CPP $CPPFLAGS'
8003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8005ac_compiler_gnu=$ac_cv_c_compiler_gnu
8006
8007
8008# Source file extension for C test sources.
8009ac_ext=c
8010
8011# Object file extension for compiled C test sources.
8012objext=o
8013objext=$objext
8014
8015# Code to be used in simple compile tests
8016lt_simple_compile_test_code="int some_variable = 0;"
8017
8018# Code to be used in simple link tests
8019lt_simple_link_test_code='int main(){return(0);}'
8020
8021
8022
8023
8024
8025
8026
8027# If no C compiler was specified, use CC.
8028LTCC=${LTCC-"$CC"}
8029
8030# If no C compiler flags were specified, use CFLAGS.
8031LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8032
8033# Allow CC to be a program name with arguments.
8034compiler=$CC
8035
8036# Save the default compiler, since it gets overwritten when the other
8037# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8038compiler_DEFAULT=$CC
8039
8040# save warnings/boilerplate of simple test code
8041ac_outfile=conftest.$ac_objext
8042echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8043eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8044_lt_compiler_boilerplate=`cat conftest.err`
8045$RM conftest*
8046
8047ac_outfile=conftest.$ac_objext
8048echo "$lt_simple_link_test_code" >conftest.$ac_ext
8049eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8050_lt_linker_boilerplate=`cat conftest.err`
6d873a38 8051$RM -r conftest*
542f9784 8052
8053
8054## CAVEAT EMPTOR:
8055## There is no encapsulation within the following macros, do not change
8056## the running order or otherwise move them around unless you know exactly
8057## what you are doing...
8058if test -n "$compiler"; then
8059
8060lt_prog_compiler_no_builtin_flag=
8061
8062if test "$GCC" = yes; then
e6408286 8063 case $cc_basename in
8064 nvcc*)
8065 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8066 *)
8067 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8068 esac
542f9784 8069
cd9a469c 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8071$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8072if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8073 $as_echo_n "(cached) " >&6
542f9784 8074else
8075 lt_cv_prog_compiler_rtti_exceptions=no
8076 ac_outfile=conftest.$ac_objext
8077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8078 lt_compiler_flag="-fno-rtti -fno-exceptions"
8079 # Insert the option either (1) after the last *FLAGS variable, or
8080 # (2) before a word containing "conftest.", or (3) at the end.
8081 # Note that $ac_compile itself does not contain backslashes and begins
8082 # with a dollar sign (not a hyphen), so the echo should work correctly.
8083 # The option is referenced via a variable to avoid confusing sed.
8084 lt_compile=`echo "$ac_compile" | $SED \
8085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8087 -e 's:$: $lt_compiler_flag:'`
e6408286 8088 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 8089 (eval "$lt_compile" 2>conftest.err)
8090 ac_status=$?
8091 cat conftest.err >&5
e6408286 8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 8093 if (exit $ac_status) && test -s "$ac_outfile"; then
8094 # The compiler can only warn and ignore the option if not recognized
8095 # So say no if there are warnings other than the usual output.
e6408286 8096 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 8097 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8098 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8099 lt_cv_prog_compiler_rtti_exceptions=yes
8100 fi
8101 fi
8102 $RM conftest*
8103
8104fi
cd9a469c 8105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8106$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
542f9784 8107
8108if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8109 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8110else
8111 :
8112fi
8113
8114fi
8115
8116
8117
8118
8119
8120
8121 lt_prog_compiler_wl=
8122lt_prog_compiler_pic=
8123lt_prog_compiler_static=
8124
cd9a469c 8125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8126$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
542f9784 8127
8128 if test "$GCC" = yes; then
8129 lt_prog_compiler_wl='-Wl,'
8130 lt_prog_compiler_static='-static'
8131
8132 case $host_os in
8133 aix*)
8134 # All AIX code is PIC.
8135 if test "$host_cpu" = ia64; then
8136 # AIX 5 now supports IA64 processor
8137 lt_prog_compiler_static='-Bstatic'
8138 fi
8139 ;;
8140
8141 amigaos*)
6d873a38 8142 case $host_cpu in
8143 powerpc)
8144 # see comment about AmigaOS4 .so support
8145 lt_prog_compiler_pic='-fPIC'
8146 ;;
8147 m68k)
8148 # FIXME: we need at least 68020 code to build shared libraries, but
8149 # adding the `-m68020' flag to GCC prevents building anything better,
8150 # like `-m68040'.
8151 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8152 ;;
8153 esac
542f9784 8154 ;;
8155
8156 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8157 # PIC is the default for these OSes.
8158 ;;
8159
6d873a38 8160 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 8161 # This hack is so that the source file can tell whether it is being
8162 # built for inclusion in a dll (and should export symbols for example).
8163 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8164 # (--disable-auto-import) libraries
8165 lt_prog_compiler_pic='-DDLL_EXPORT'
8166 ;;
8167
8168 darwin* | rhapsody*)
8169 # PIC is the default on this platform
8170 # Common symbols not allowed in MH_DYLIB files
8171 lt_prog_compiler_pic='-fno-common'
8172 ;;
8173
e6408286 8174 haiku*)
8175 # PIC is the default for Haiku.
8176 # The "-static" flag exists, but is broken.
8177 lt_prog_compiler_static=
8178 ;;
8179
542f9784 8180 hpux*)
6d873a38 8181 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8182 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8183 # sets the default TLS model and affects inlining.
542f9784 8184 case $host_cpu in
6d873a38 8185 hppa*64*)
542f9784 8186 # +Z the default
8187 ;;
8188 *)
8189 lt_prog_compiler_pic='-fPIC'
8190 ;;
8191 esac
8192 ;;
8193
8194 interix[3-9]*)
8195 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8196 # Instead, we relocate shared libraries at runtime.
8197 ;;
8198
8199 msdosdjgpp*)
8200 # Just because we use GCC doesn't mean we suddenly get shared libraries
8201 # on systems that don't support them.
8202 lt_prog_compiler_can_build_shared=no
8203 enable_shared=no
8204 ;;
8205
8206 *nto* | *qnx*)
8207 # QNX uses GNU C++, but need to define -shared option too, otherwise
8208 # it will coredump.
8209 lt_prog_compiler_pic='-fPIC -shared'
8210 ;;
8211
8212 sysv4*MP*)
8213 if test -d /usr/nec; then
8214 lt_prog_compiler_pic=-Kconform_pic
8215 fi
8216 ;;
8217
8218 *)
8219 lt_prog_compiler_pic='-fPIC'
8220 ;;
8221 esac
e6408286 8222
8223 case $cc_basename in
8224 nvcc*) # Cuda Compiler Driver 2.2
8225 lt_prog_compiler_wl='-Xlinker '
8226 lt_prog_compiler_pic='-Xcompiler -fPIC'
8227 ;;
8228 esac
542f9784 8229 else
8230 # PORTME Check for flag to pass linker flags through the system compiler.
8231 case $host_os in
8232 aix*)
8233 lt_prog_compiler_wl='-Wl,'
8234 if test "$host_cpu" = ia64; then
8235 # AIX 5 now supports IA64 processor
8236 lt_prog_compiler_static='-Bstatic'
8237 else
8238 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8239 fi
8240 ;;
542f9784 8241
6d873a38 8242 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 8243 # This hack is so that the source file can tell whether it is being
8244 # built for inclusion in a dll (and should export symbols for example).
8245 lt_prog_compiler_pic='-DDLL_EXPORT'
8246 ;;
8247
8248 hpux9* | hpux10* | hpux11*)
8249 lt_prog_compiler_wl='-Wl,'
8250 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8251 # not for PA HP-UX.
8252 case $host_cpu in
8253 hppa*64*|ia64*)
8254 # +Z the default
8255 ;;
8256 *)
8257 lt_prog_compiler_pic='+Z'
8258 ;;
8259 esac
8260 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8261 lt_prog_compiler_static='${wl}-a ${wl}archive'
8262 ;;
8263
8264 irix5* | irix6* | nonstopux*)
8265 lt_prog_compiler_wl='-Wl,'
8266 # PIC (with -KPIC) is the default.
8267 lt_prog_compiler_static='-non_shared'
8268 ;;
8269
9af964d4 8270 linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 8271 case $cc_basename in
6d873a38 8272 # old Intel for x86_64 which still supported -KPIC.
8273 ecc*)
542f9784 8274 lt_prog_compiler_wl='-Wl,'
8275 lt_prog_compiler_pic='-KPIC'
8276 lt_prog_compiler_static='-static'
8277 ;;
6d873a38 8278 # icc used to be incompatible with GCC.
8279 # ICC 10 doesn't accept -KPIC any more.
8280 icc* | ifort*)
8281 lt_prog_compiler_wl='-Wl,'
8282 lt_prog_compiler_pic='-fPIC'
8283 lt_prog_compiler_static='-static'
8284 ;;
8285 # Lahey Fortran 8.1.
8286 lf95*)
8287 lt_prog_compiler_wl='-Wl,'
8288 lt_prog_compiler_pic='--shared'
8289 lt_prog_compiler_static='--static'
8290 ;;
e6408286 8291 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
542f9784 8292 # Portland Group compilers (*not* the Pentium gcc compiler,
8293 # which looks to be a dead project)
8294 lt_prog_compiler_wl='-Wl,'
8295 lt_prog_compiler_pic='-fpic'
8296 lt_prog_compiler_static='-Bstatic'
8297 ;;
8298 ccc*)
8299 lt_prog_compiler_wl='-Wl,'
8300 # All Alpha code is PIC.
8301 lt_prog_compiler_static='-non_shared'
8302 ;;
e6408286 8303 xl* | bgxl* | bgf* | mpixl*)
8304 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
6d873a38 8305 lt_prog_compiler_wl='-Wl,'
8306 lt_prog_compiler_pic='-qpic'
8307 lt_prog_compiler_static='-qstaticlink'
8308 ;;
542f9784 8309 *)
8310 case `$CC -V 2>&1 | sed 5q` in
e6408286 8311 *Sun\ F* | *Sun*Fortran*)
8312 # Sun Fortran 8.3 passes all unrecognized flags to the linker
542f9784 8313 lt_prog_compiler_pic='-KPIC'
8314 lt_prog_compiler_static='-Bstatic'
e6408286 8315 lt_prog_compiler_wl=''
542f9784 8316 ;;
e6408286 8317 *Sun\ C*)
8318 # Sun C 5.9
542f9784 8319 lt_prog_compiler_pic='-KPIC'
8320 lt_prog_compiler_static='-Bstatic'
e6408286 8321 lt_prog_compiler_wl='-Wl,'
542f9784 8322 ;;
8323 esac
8324 ;;
8325 esac
8326 ;;
8327
8328 newsos6)
8329 lt_prog_compiler_pic='-KPIC'
8330 lt_prog_compiler_static='-Bstatic'
8331 ;;
8332
8333 *nto* | *qnx*)
8334 # QNX uses GNU C++, but need to define -shared option too, otherwise
8335 # it will coredump.
8336 lt_prog_compiler_pic='-fPIC -shared'
8337 ;;
8338
8339 osf3* | osf4* | osf5*)
8340 lt_prog_compiler_wl='-Wl,'
8341 # All OSF/1 code is PIC.
8342 lt_prog_compiler_static='-non_shared'
8343 ;;
8344
8345 rdos*)
8346 lt_prog_compiler_static='-non_shared'
8347 ;;
8348
8349 solaris*)
8350 lt_prog_compiler_pic='-KPIC'
8351 lt_prog_compiler_static='-Bstatic'
8352 case $cc_basename in
8353 f77* | f90* | f95*)
8354 lt_prog_compiler_wl='-Qoption ld ';;
8355 *)
8356 lt_prog_compiler_wl='-Wl,';;
8357 esac
8358 ;;
8359
8360 sunos4*)
8361 lt_prog_compiler_wl='-Qoption ld '
8362 lt_prog_compiler_pic='-PIC'
8363 lt_prog_compiler_static='-Bstatic'
8364 ;;
8365
8366 sysv4 | sysv4.2uw2* | sysv4.3*)
8367 lt_prog_compiler_wl='-Wl,'
8368 lt_prog_compiler_pic='-KPIC'
8369 lt_prog_compiler_static='-Bstatic'
8370 ;;
8371
8372 sysv4*MP*)
8373 if test -d /usr/nec ;then
8374 lt_prog_compiler_pic='-Kconform_pic'
8375 lt_prog_compiler_static='-Bstatic'
8376 fi
8377 ;;
8378
8379 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8380 lt_prog_compiler_wl='-Wl,'
8381 lt_prog_compiler_pic='-KPIC'
8382 lt_prog_compiler_static='-Bstatic'
8383 ;;
8384
8385 unicos*)
8386 lt_prog_compiler_wl='-Wl,'
8387 lt_prog_compiler_can_build_shared=no
8388 ;;
8389
8390 uts4*)
8391 lt_prog_compiler_pic='-pic'
8392 lt_prog_compiler_static='-Bstatic'
8393 ;;
8394
8395 *)
8396 lt_prog_compiler_can_build_shared=no
8397 ;;
8398 esac
8399 fi
8400
8401case $host_os in
8402 # For platforms which do not support PIC, -DPIC is meaningless:
8403 *djgpp*)
8404 lt_prog_compiler_pic=
8405 ;;
8406 *)
8407 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8408 ;;
8409esac
cd9a469c 8410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8411$as_echo "$lt_prog_compiler_pic" >&6; }
542f9784 8412
8413
8414
8415
8416
8417
8418#
8419# Check to make sure the PIC flag actually works.
8420#
8421if test -n "$lt_prog_compiler_pic"; then
cd9a469c 8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8423$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8424if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8425 $as_echo_n "(cached) " >&6
542f9784 8426else
6d873a38 8427 lt_cv_prog_compiler_pic_works=no
542f9784 8428 ac_outfile=conftest.$ac_objext
8429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8430 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8431 # Insert the option either (1) after the last *FLAGS variable, or
8432 # (2) before a word containing "conftest.", or (3) at the end.
8433 # Note that $ac_compile itself does not contain backslashes and begins
8434 # with a dollar sign (not a hyphen), so the echo should work correctly.
8435 # The option is referenced via a variable to avoid confusing sed.
8436 lt_compile=`echo "$ac_compile" | $SED \
8437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8439 -e 's:$: $lt_compiler_flag:'`
e6408286 8440 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 8441 (eval "$lt_compile" 2>conftest.err)
8442 ac_status=$?
8443 cat conftest.err >&5
e6408286 8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 8445 if (exit $ac_status) && test -s "$ac_outfile"; then
8446 # The compiler can only warn and ignore the option if not recognized
8447 # So say no if there are warnings other than the usual output.
e6408286 8448 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 8449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8450 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6d873a38 8451 lt_cv_prog_compiler_pic_works=yes
542f9784 8452 fi
8453 fi
8454 $RM conftest*
8455
8456fi
cd9a469c 8457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8458$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
542f9784 8459
6d873a38 8460if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
542f9784 8461 case $lt_prog_compiler_pic in
8462 "" | " "*) ;;
8463 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8464 esac
8465else
8466 lt_prog_compiler_pic=
8467 lt_prog_compiler_can_build_shared=no
8468fi
8469
8470fi
8471
8472
8473
8474
8475
8476
8477#
8478# Check to make sure the static flag actually works.
8479#
8480wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cd9a469c 8481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8482$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8483if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8484 $as_echo_n "(cached) " >&6
542f9784 8485else
6d873a38 8486 lt_cv_prog_compiler_static_works=no
542f9784 8487 save_LDFLAGS="$LDFLAGS"
8488 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8489 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8490 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8491 # The linker can only warn and ignore the option if not recognized
8492 # So say no if there are warnings
8493 if test -s conftest.err; then
8494 # Append any errors to the config.log.
8495 cat conftest.err 1>&5
e6408286 8496 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
542f9784 8497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8498 if diff conftest.exp conftest.er2 >/dev/null; then
6d873a38 8499 lt_cv_prog_compiler_static_works=yes
542f9784 8500 fi
8501 else
6d873a38 8502 lt_cv_prog_compiler_static_works=yes
542f9784 8503 fi
8504 fi
6d873a38 8505 $RM -r conftest*
542f9784 8506 LDFLAGS="$save_LDFLAGS"
8507
8508fi
cd9a469c 8509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8510$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
542f9784 8511
6d873a38 8512if test x"$lt_cv_prog_compiler_static_works" = xyes; then
542f9784 8513 :
8514else
8515 lt_prog_compiler_static=
8516fi
8517
8518
8519
8520
8521
8522
8523
cd9a469c 8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8525$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8526if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8527 $as_echo_n "(cached) " >&6
542f9784 8528else
8529 lt_cv_prog_compiler_c_o=no
8530 $RM -r conftest 2>/dev/null
8531 mkdir conftest
8532 cd conftest
8533 mkdir out
8534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8535
8536 lt_compiler_flag="-o out/conftest2.$ac_objext"
8537 # Insert the option either (1) after the last *FLAGS variable, or
8538 # (2) before a word containing "conftest.", or (3) at the end.
8539 # Note that $ac_compile itself does not contain backslashes and begins
8540 # with a dollar sign (not a hyphen), so the echo should work correctly.
8541 lt_compile=`echo "$ac_compile" | $SED \
8542 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8543 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8544 -e 's:$: $lt_compiler_flag:'`
e6408286 8545 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 8546 (eval "$lt_compile" 2>out/conftest.err)
8547 ac_status=$?
8548 cat out/conftest.err >&5
e6408286 8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 8550 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8551 then
8552 # The compiler can only warn and ignore the option if not recognized
8553 # So say no if there are warnings
e6408286 8554 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 8555 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8556 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8557 lt_cv_prog_compiler_c_o=yes
8558 fi
8559 fi
8560 chmod u+w . 2>&5
8561 $RM conftest*
8562 # SGI C++ compiler will create directory out/ii_files/ for
8563 # template instantiation
8564 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8565 $RM out/* && rmdir out
8566 cd ..
8567 $RM -r conftest
8568 $RM conftest*
8569
8570fi
cd9a469c 8571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8572$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
542f9784 8573
8574
8575
8576
8577
8578
cd9a469c 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8580$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8581if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8582 $as_echo_n "(cached) " >&6
542f9784 8583else
8584 lt_cv_prog_compiler_c_o=no
8585 $RM -r conftest 2>/dev/null
8586 mkdir conftest
8587 cd conftest
8588 mkdir out
8589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8590
8591 lt_compiler_flag="-o out/conftest2.$ac_objext"
8592 # Insert the option either (1) after the last *FLAGS variable, or
8593 # (2) before a word containing "conftest.", or (3) at the end.
8594 # Note that $ac_compile itself does not contain backslashes and begins
8595 # with a dollar sign (not a hyphen), so the echo should work correctly.
8596 lt_compile=`echo "$ac_compile" | $SED \
8597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8599 -e 's:$: $lt_compiler_flag:'`
e6408286 8600 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 8601 (eval "$lt_compile" 2>out/conftest.err)
8602 ac_status=$?
8603 cat out/conftest.err >&5
e6408286 8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 8605 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8606 then
8607 # The compiler can only warn and ignore the option if not recognized
8608 # So say no if there are warnings
e6408286 8609 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 8610 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8611 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8612 lt_cv_prog_compiler_c_o=yes
8613 fi
8614 fi
8615 chmod u+w . 2>&5
8616 $RM conftest*
8617 # SGI C++ compiler will create directory out/ii_files/ for
8618 # template instantiation
8619 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8620 $RM out/* && rmdir out
8621 cd ..
8622 $RM -r conftest
8623 $RM conftest*
8624
8625fi
cd9a469c 8626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8627$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
542f9784 8628
8629
8630
8631
8632hard_links="nottested"
8633if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8634 # do not overwrite the value of need_locks provided by the user
cd9a469c 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8636$as_echo_n "checking if we can lock with hard links... " >&6; }
542f9784 8637 hard_links=yes
8638 $RM conftest*
8639 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8640 touch conftest.a
8641 ln conftest.a conftest.b 2>&5 || hard_links=no
8642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cd9a469c 8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8644$as_echo "$hard_links" >&6; }
542f9784 8645 if test "$hard_links" = no; then
cd9a469c 8646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8647$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
542f9784 8648 need_locks=warn
8649 fi
8650else
8651 need_locks=no
8652fi
8653
8654
8655
8656
8657
8658
cd9a469c 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8660$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
542f9784 8661
8662 runpath_var=
8663 allow_undefined_flag=
8664 always_export_symbols=no
8665 archive_cmds=
8666 archive_expsym_cmds=
8667 compiler_needs_object=no
8668 enable_shared_with_static_runtimes=no
8669 export_dynamic_flag_spec=
8670 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8671 hardcode_automatic=no
8672 hardcode_direct=no
8673 hardcode_direct_absolute=no
8674 hardcode_libdir_flag_spec=
8675 hardcode_libdir_flag_spec_ld=
8676 hardcode_libdir_separator=
8677 hardcode_minus_L=no
8678 hardcode_shlibpath_var=unsupported
8679 inherit_rpath=no
8680 link_all_deplibs=unknown
8681 module_cmds=
8682 module_expsym_cmds=
8683 old_archive_from_new_cmds=
8684 old_archive_from_expsyms_cmds=
8685 thread_safe_flag_spec=
8686 whole_archive_flag_spec=
8687 # include_expsyms should be a list of space-separated symbols to be *always*
8688 # included in the symbol list
8689 include_expsyms=
8690 # exclude_expsyms can be an extended regexp of symbols to exclude
8691 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8692 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8693 # as well as any symbol that contains `d'.
6d873a38 8694 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
542f9784 8695 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8696 # platforms (ab)use it in PIC code, but their linkers get confused if
8697 # the symbol is explicitly referenced. Since portable code cannot
8698 # rely on this symbol name, it's probably fine to never include it in
8699 # preloaded symbol tables.
6d873a38 8700 # Exclude shared library initialization/finalization symbols.
542f9784 8701 extract_expsyms_cmds=
8702
8703 case $host_os in
6d873a38 8704 cygwin* | mingw* | pw32* | cegcc*)
542f9784 8705 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8706 # When not using gcc, we currently assume that we are using
8707 # Microsoft Visual C++.
8708 if test "$GCC" != yes; then
8709 with_gnu_ld=no
8710 fi
8711 ;;
8712 interix*)
8713 # we just hope/assume this is gcc and not c89 (= MSVC++)
8714 with_gnu_ld=yes
8715 ;;
8716 openbsd*)
8717 with_gnu_ld=no
8718 ;;
8719 esac
8720
8721 ld_shlibs=yes
e6408286 8722
8723 # On some targets, GNU ld is compatible enough with the native linker
8724 # that we're better off using the native interface for both.
8725 lt_use_gnu_ld_interface=no
542f9784 8726 if test "$with_gnu_ld" = yes; then
e6408286 8727 case $host_os in
8728 aix*)
8729 # The AIX port of GNU ld has always aspired to compatibility
8730 # with the native linker. However, as the warning in the GNU ld
8731 # block says, versions before 2.19.5* couldn't really create working
8732 # shared libraries, regardless of the interface used.
8733 case `$LD -v 2>&1` in
8734 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8735 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8736 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8737 *)
8738 lt_use_gnu_ld_interface=yes
8739 ;;
8740 esac
8741 ;;
8742 *)
8743 lt_use_gnu_ld_interface=yes
8744 ;;
8745 esac
8746 fi
8747
8748 if test "$lt_use_gnu_ld_interface" = yes; then
542f9784 8749 # If archive_cmds runs LD, not CC, wlarc should be empty
8750 wlarc='${wl}'
8751
8752 # Set some defaults for GNU ld with shared library support. These
8753 # are reset later if shared libraries are not supported. Putting them
8754 # here allows them to be overridden if necessary.
8755 runpath_var=LD_RUN_PATH
8756 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8757 export_dynamic_flag_spec='${wl}--export-dynamic'
8758 # ancient GNU ld didn't support --whole-archive et. al.
8759 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8760 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8761 else
8762 whole_archive_flag_spec=
8763 fi
8764 supports_anon_versioning=no
8765 case `$LD -v 2>&1` in
e6408286 8766 *GNU\ gold*) supports_anon_versioning=yes ;;
542f9784 8767 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8768 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8769 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8770 *\ 2.11.*) ;; # other 2.11 versions
8771 *) supports_anon_versioning=yes ;;
8772 esac
8773
8774 # See if GNU ld supports shared libraries.
8775 case $host_os in
c8db569e 8776 aix[3-9]*)
542f9784 8777 # On AIX/PPC, the GNU linker is very broken
8778 if test "$host_cpu" != ia64; then
8779 ld_shlibs=no
8780 cat <<_LT_EOF 1>&2
8781
e6408286 8782*** Warning: the GNU linker, at least up to release 2.19, is reported
542f9784 8783*** to be unable to reliably create shared libraries on AIX.
8784*** Therefore, libtool is disabling shared libraries support. If you
e6408286 8785*** really care for shared libraries, you may want to install binutils
8786*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8787*** You will then need to restart the configuration process.
542f9784 8788
8789_LT_EOF
8790 fi
8791 ;;
8792
8793 amigaos*)
6d873a38 8794 case $host_cpu in
8795 powerpc)
8796 # see comment about AmigaOS4 .so support
8797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8798 archive_expsym_cmds=''
8799 ;;
8800 m68k)
8801 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)'
8802 hardcode_libdir_flag_spec='-L$libdir'
8803 hardcode_minus_L=yes
8804 ;;
8805 esac
542f9784 8806 ;;
8807
8808 beos*)
8809 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8810 allow_undefined_flag=unsupported
8811 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8812 # support --undefined. This deserves some investigation. FIXME
8813 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8814 else
8815 ld_shlibs=no
8816 fi
8817 ;;
8818
6d873a38 8819 cygwin* | mingw* | pw32* | cegcc*)
542f9784 8820 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8821 # as there is no search path for DLLs.
8822 hardcode_libdir_flag_spec='-L$libdir'
e6408286 8823 export_dynamic_flag_spec='${wl}--export-all-symbols'
542f9784 8824 allow_undefined_flag=unsupported
8825 always_export_symbols=no
8826 enable_shared_with_static_runtimes=yes
8827 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8828
8829 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8831 # If the export-symbols file already is a .def file (1st line
8832 # is EXPORTS), use it as is; otherwise, prepend...
8833 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8834 cp $export_symbols $output_objdir/$soname.def;
8835 else
8836 echo EXPORTS > $output_objdir/$soname.def;
8837 cat $export_symbols >> $output_objdir/$soname.def;
8838 fi~
8839 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8840 else
8841 ld_shlibs=no
8842 fi
8843 ;;
8844
e6408286 8845 haiku*)
8846 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8847 link_all_deplibs=yes
8848 ;;
8849
542f9784 8850 interix[3-9]*)
8851 hardcode_direct=no
8852 hardcode_shlibpath_var=no
8853 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8854 export_dynamic_flag_spec='${wl}-E'
8855 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8856 # Instead, shared libraries are loaded at an image base (0x10000000 by
8857 # default) and relocated if they conflict, which is a slow very memory
8858 # consuming and fragmenting process. To avoid this, we pick a random,
8859 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8860 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8861 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8862 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'
8863 ;;
8864
9af964d4 8865 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 8866 tmp_diet=no
8867 if test "$host_os" = linux-dietlibc; then
8868 case $cc_basename in
8869 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8870 esac
8871 fi
8872 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8873 && test "$tmp_diet" = no
8874 then
8875 tmp_addflag=
6d873a38 8876 tmp_sharedflag='-shared'
542f9784 8877 case $cc_basename,$host_cpu in
8878 pgcc*) # Portland Group C compiler
e6408286 8879 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'
542f9784 8880 tmp_addflag=' $pic_flag'
8881 ;;
e6408286 8882 pgf77* | pgf90* | pgf95* | pgfortran*)
8883 # Portland Group f77 and f90 compilers
8884 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'
542f9784 8885 tmp_addflag=' $pic_flag -Mnomain' ;;
8886 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8887 tmp_addflag=' -i_dynamic' ;;
8888 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8889 tmp_addflag=' -i_dynamic -nofor_main' ;;
8890 ifc* | ifort*) # Intel Fortran compiler
8891 tmp_addflag=' -nofor_main' ;;
6d873a38 8892 lf95*) # Lahey Fortran 8.1
8893 whole_archive_flag_spec=
8894 tmp_sharedflag='--shared' ;;
e6408286 8895 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
6d873a38 8896 tmp_sharedflag='-qmkshrobj'
8897 tmp_addflag= ;;
e6408286 8898 nvcc*) # Cuda Compiler Driver 2.2
8899 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'
8900 compiler_needs_object=yes
8901 ;;
542f9784 8902 esac
8903 case `$CC -V 2>&1 | sed 5q` in
8904 *Sun\ C*) # Sun C 5.9
e6408286 8905 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'
542f9784 8906 compiler_needs_object=yes
8907 tmp_sharedflag='-G' ;;
8908 *Sun\ F*) # Sun Fortran 8.3
8909 tmp_sharedflag='-G' ;;
542f9784 8910 esac
8911 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8912
8913 if test "x$supports_anon_versioning" = xyes; then
8914 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8915 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8916 echo "local: *; };" >> $output_objdir/$libname.ver~
8917 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8918 fi
6d873a38 8919
8920 case $cc_basename in
e6408286 8921 xlf* | bgf* | bgxlf* | mpixlf*)
6d873a38 8922 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8923 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8924 hardcode_libdir_flag_spec=
8925 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8926 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8927 if test "x$supports_anon_versioning" = xyes; then
8928 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8929 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8930 echo "local: *; };" >> $output_objdir/$libname.ver~
8931 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8932 fi
8933 ;;
8934 esac
542f9784 8935 else
8936 ld_shlibs=no
8937 fi
8938 ;;
8939
8940 netbsd*)
8941 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8942 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8943 wlarc=
8944 else
8945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8946 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8947 fi
8948 ;;
8949
8950 solaris*)
8951 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8952 ld_shlibs=no
8953 cat <<_LT_EOF 1>&2
8954
8955*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8956*** create shared libraries on Solaris systems. Therefore, libtool
8957*** is disabling shared libraries support. We urge you to upgrade GNU
8958*** binutils to release 2.9.1 or newer. Another option is to modify
8959*** your PATH or compiler configuration so that the native linker is
8960*** used, and then restart.
8961
8962_LT_EOF
8963 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8965 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8966 else
8967 ld_shlibs=no
8968 fi
8969 ;;
8970
8971 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8972 case `$LD -v 2>&1` in
8973 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8974 ld_shlibs=no
8975 cat <<_LT_EOF 1>&2
8976
8977*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8978*** reliably create shared libraries on SCO systems. Therefore, libtool
8979*** is disabling shared libraries support. We urge you to upgrade GNU
8980*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8981*** your PATH or compiler configuration so that the native linker is
8982*** used, and then restart.
8983
8984_LT_EOF
8985 ;;
8986 *)
8987 # For security reasons, it is highly recommended that you always
8988 # use absolute paths for naming shared libraries, and exclude the
8989 # DT_RUNPATH tag from executables and libraries. But doing so
8990 # requires that you compile everything twice, which is a pain.
8991 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8992 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8994 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8995 else
8996 ld_shlibs=no
8997 fi
8998 ;;
8999 esac
9000 ;;
9001
9002 sunos4*)
9003 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9004 wlarc=
9005 hardcode_direct=yes
9006 hardcode_shlibpath_var=no
9007 ;;
9008
9009 *)
9010 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9012 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9013 else
9014 ld_shlibs=no
9015 fi
9016 ;;
9017 esac
9018
9019 if test "$ld_shlibs" = no; then
9020 runpath_var=
9021 hardcode_libdir_flag_spec=
9022 export_dynamic_flag_spec=
9023 whole_archive_flag_spec=
9024 fi
9025 else
9026 # PORTME fill in a description of your system's linker (not GNU ld)
9027 case $host_os in
9028 aix3*)
9029 allow_undefined_flag=unsupported
9030 always_export_symbols=yes
9031 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'
9032 # Note: this linker hardcodes the directories in LIBPATH if there
9033 # are no directories specified by -L.
9034 hardcode_minus_L=yes
9035 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9036 # Neither direct hardcoding nor static linking is supported with a
9037 # broken collect2.
9038 hardcode_direct=unsupported
9039 fi
9040 ;;
9041
c8db569e 9042 aix[4-9]*)
542f9784 9043 if test "$host_cpu" = ia64; then
9044 # On IA64, the linker does run time linking by default, so we don't
9045 # have to do anything special.
9046 aix_use_runtimelinking=no
9047 exp_sym_flag='-Bexport'
9048 no_entry_flag=""
9049 else
9050 # If we're using GNU nm, then we don't want the "-C" option.
9051 # -C means demangle to AIX nm, but means don't demangle with GNU nm
e6408286 9052 # Also, AIX nm treats weak defined symbols like other global
9053 # defined symbols, whereas GNU nm marks them as "W".
542f9784 9054 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
e6408286 9055 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'
542f9784 9056 else
9057 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9058 fi
9059 aix_use_runtimelinking=no
9060
9061 # Test if we are trying to use run time linking or normal
9062 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9063 # need to do runtime linking.
c8db569e 9064 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 9065 for ld_flag in $LDFLAGS; do
9066 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9067 aix_use_runtimelinking=yes
9068 break
9069 fi
9070 done
9071 ;;
9072 esac
9073
9074 exp_sym_flag='-bexport'
9075 no_entry_flag='-bnoentry'
9076 fi
9077
9078 # When large executables or shared objects are built, AIX ld can
9079 # have problems creating the table of contents. If linking a library
9080 # or program results in "error TOC overflow" add -mminimal-toc to
9081 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9082 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9083
9084 archive_cmds=''
9085 hardcode_direct=yes
9086 hardcode_direct_absolute=yes
9087 hardcode_libdir_separator=':'
9088 link_all_deplibs=yes
9089 file_list_spec='${wl}-f,'
9090
9091 if test "$GCC" = yes; then
9092 case $host_os in aix4.[012]|aix4.[012].*)
9093 # We only want to do this on AIX 4.2 and lower, the check
9094 # below for broken collect2 doesn't work under 4.3+
9095 collect2name=`${CC} -print-prog-name=collect2`
9096 if test -f "$collect2name" &&
9097 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9098 then
9099 # We have reworked collect2
9100 :
9101 else
9102 # We have old collect2
9103 hardcode_direct=unsupported
9104 # It fails to find uninstalled libraries when the uninstalled
9105 # path is not listed in the libpath. Setting hardcode_minus_L
9106 # to unsupported forces relinking
9107 hardcode_minus_L=yes
9108 hardcode_libdir_flag_spec='-L$libdir'
9109 hardcode_libdir_separator=
9110 fi
9111 ;;
9112 esac
9113 shared_flag='-shared'
9114 if test "$aix_use_runtimelinking" = yes; then
9115 shared_flag="$shared_flag "'${wl}-G'
9116 fi
9117 else
9118 # not using gcc
9119 if test "$host_cpu" = ia64; then
9120 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9121 # chokes on -Wl,-G. The following line is correct:
9122 shared_flag='-G'
9123 else
9124 if test "$aix_use_runtimelinking" = yes; then
9125 shared_flag='${wl}-G'
9126 else
9127 shared_flag='${wl}-bM:SRE'
9128 fi
9129 fi
9130 fi
9131
6d873a38 9132 export_dynamic_flag_spec='${wl}-bexpall'
542f9784 9133 # It seems that -bexpall does not export symbols beginning with
9134 # underscore (_), so it is better to generate a list of symbols to export.
9135 always_export_symbols=yes
9136 if test "$aix_use_runtimelinking" = yes; then
9137 # Warning - without using the other runtime loading flags (-brtl),
9138 # -berok will link without error, but may produce a broken library.
9139 allow_undefined_flag='-berok'
9140 # Determine the default libpath from the value encoded in an
9141 # empty executable.
cd9a469c 9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 9143/* end confdefs.h. */
9144
9145int
9146main ()
9147{
9148
9149 ;
9150 return 0;
9151}
9152_ACEOF
cd9a469c 9153if ac_fn_c_try_link "$LINENO"; then :
542f9784 9154
9155lt_aix_libpath_sed='
9156 /Import File Strings/,/^$/ {
9157 /^0/ {
9158 s/^0 *\(.*\)$/\1/
9159 p
9160 }
9161 }'
9162aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9163# Check for a 64-bit object if we didn't find anything.
9164if test -z "$aix_libpath"; then
9165 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9166fi
542f9784 9167fi
cd9a469c 9168rm -f core conftest.err conftest.$ac_objext \
9169 conftest$ac_exeext conftest.$ac_ext
542f9784 9170if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9171
9172 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
e6408286 9173 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"
542f9784 9174 else
9175 if test "$host_cpu" = ia64; then
9176 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9177 allow_undefined_flag="-z nodefs"
9178 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"
9179 else
9180 # Determine the default libpath from the value encoded in an
9181 # empty executable.
cd9a469c 9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 9183/* end confdefs.h. */
9184
9185int
9186main ()
9187{
9188
9189 ;
9190 return 0;
9191}
9192_ACEOF
cd9a469c 9193if ac_fn_c_try_link "$LINENO"; then :
542f9784 9194
9195lt_aix_libpath_sed='
9196 /Import File Strings/,/^$/ {
9197 /^0/ {
9198 s/^0 *\(.*\)$/\1/
9199 p
9200 }
9201 }'
9202aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9203# Check for a 64-bit object if we didn't find anything.
9204if test -z "$aix_libpath"; then
9205 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9206fi
542f9784 9207fi
cd9a469c 9208rm -f core conftest.err conftest.$ac_objext \
9209 conftest$ac_exeext conftest.$ac_ext
542f9784 9210if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9211
9212 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9213 # Warning - without using the other run time loading flags,
9214 # -berok will link without error, but may produce a broken library.
9215 no_undefined_flag=' ${wl}-bernotok'
9216 allow_undefined_flag=' ${wl}-berok'
e6408286 9217 if test "$with_gnu_ld" = yes; then
9218 # We only use this code for GNU lds that support --whole-archive.
9219 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9220 else
9221 # Exported symbols can be pulled into shared objects from archives
9222 whole_archive_flag_spec='$convenience'
9223 fi
542f9784 9224 archive_cmds_need_lc=yes
9225 # This is similar to how AIX traditionally builds its shared libraries.
9226 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'
9227 fi
9228 fi
9229 ;;
9230
9231 amigaos*)
6d873a38 9232 case $host_cpu in
9233 powerpc)
9234 # see comment about AmigaOS4 .so support
9235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9236 archive_expsym_cmds=''
9237 ;;
9238 m68k)
9239 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)'
9240 hardcode_libdir_flag_spec='-L$libdir'
9241 hardcode_minus_L=yes
9242 ;;
9243 esac
542f9784 9244 ;;
9245
9246 bsdi[45]*)
9247 export_dynamic_flag_spec=-rdynamic
9248 ;;
9249
6d873a38 9250 cygwin* | mingw* | pw32* | cegcc*)
542f9784 9251 # When not using gcc, we currently assume that we are using
9252 # Microsoft Visual C++.
9253 # hardcode_libdir_flag_spec is actually meaningless, as there is
9254 # no search path for DLLs.
9255 hardcode_libdir_flag_spec=' '
9256 allow_undefined_flag=unsupported
9257 # Tell ltmain to make .lib files, not .a files.
9258 libext=lib
9259 # Tell ltmain to make .dll files, not .so files.
9260 shrext_cmds=".dll"
9261 # FIXME: Setting linknames here is a bad hack.
e6408286 9262 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
542f9784 9263 # The linker will automatically build a .lib file if we build a DLL.
9264 old_archive_from_new_cmds='true'
9265 # FIXME: Should let the user specify the lib program.
9266 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9267 fix_srcfile_path='`cygpath -w "$srcfile"`'
9268 enable_shared_with_static_runtimes=yes
9269 ;;
9270
9271 darwin* | rhapsody*)
542f9784 9272
6d873a38 9273
9274 archive_cmds_need_lc=no
9275 hardcode_direct=no
9276 hardcode_automatic=yes
9277 hardcode_shlibpath_var=unsupported
e6408286 9278 if test "$lt_cv_ld_force_load" = "yes"; then
9279 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\"`'
9280 else
9281 whole_archive_flag_spec=''
9282 fi
6d873a38 9283 link_all_deplibs=yes
9284 allow_undefined_flag="$_lt_dar_allow_undefined"
9285 case $cc_basename in
9286 ifort*) _lt_dar_can_shared=yes ;;
9287 *) _lt_dar_can_shared=$GCC ;;
9288 esac
9289 if test "$_lt_dar_can_shared" = "yes"; then
e6408286 9290 output_verbose_link_cmd=func_echo_all
6d873a38 9291 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9292 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9293 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}"
9294 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}"
9295
9296 else
9297 ld_shlibs=no
9298 fi
9299
542f9784 9300 ;;
9301
9302 dgux*)
9303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9304 hardcode_libdir_flag_spec='-L$libdir'
9305 hardcode_shlibpath_var=no
9306 ;;
9307
542f9784 9308 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9309 # support. Future versions do this automatically, but an explicit c++rt0.o
9310 # does not break anything, and helps significantly (at the cost of a little
9311 # extra space).
9312 freebsd2.2*)
9313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9314 hardcode_libdir_flag_spec='-R$libdir'
9315 hardcode_direct=yes
9316 hardcode_shlibpath_var=no
9317 ;;
9318
9319 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
30369aff 9320 freebsd2.*)
542f9784 9321 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9322 hardcode_direct=yes
9323 hardcode_minus_L=yes
9324 hardcode_shlibpath_var=no
9325 ;;
9326
9327 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9328 freebsd* | dragonfly*)
9329 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9330 hardcode_libdir_flag_spec='-R$libdir'
9331 hardcode_direct=yes
9332 hardcode_shlibpath_var=no
9333 ;;
9334
9335 hpux9*)
9336 if test "$GCC" = yes; then
9337 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'
9338 else
9339 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'
9340 fi
9341 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9342 hardcode_libdir_separator=:
9343 hardcode_direct=yes
9344
9345 # hardcode_minus_L: Not really in the search PATH,
9346 # but as the default location of the library.
9347 hardcode_minus_L=yes
9348 export_dynamic_flag_spec='${wl}-E'
9349 ;;
9350
9351 hpux10*)
e6408286 9352 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 9353 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9354 else
9355 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9356 fi
9357 if test "$with_gnu_ld" = no; then
9358 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9359 hardcode_libdir_flag_spec_ld='+b $libdir'
9360 hardcode_libdir_separator=:
9361 hardcode_direct=yes
9362 hardcode_direct_absolute=yes
9363 export_dynamic_flag_spec='${wl}-E'
9364 # hardcode_minus_L: Not really in the search PATH,
9365 # but as the default location of the library.
9366 hardcode_minus_L=yes
9367 fi
9368 ;;
9369
9370 hpux11*)
e6408286 9371 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 9372 case $host_cpu in
9373 hppa*64*)
9374 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9375 ;;
9376 ia64*)
6d873a38 9377 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
542f9784 9378 ;;
9379 *)
9380 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9381 ;;
9382 esac
9383 else
9384 case $host_cpu in
9385 hppa*64*)
9386 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9387 ;;
9388 ia64*)
9389 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9390 ;;
9391 *)
e6408286 9392
9393 # Older versions of the 11.00 compiler do not understand -b yet
9394 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9396$as_echo_n "checking if $CC understands -b... " >&6; }
9397if test "${lt_cv_prog_compiler__b+set}" = set; then :
9398 $as_echo_n "(cached) " >&6
9399else
9400 lt_cv_prog_compiler__b=no
9401 save_LDFLAGS="$LDFLAGS"
9402 LDFLAGS="$LDFLAGS -b"
9403 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9404 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9405 # The linker can only warn and ignore the option if not recognized
9406 # So say no if there are warnings
9407 if test -s conftest.err; then
9408 # Append any errors to the config.log.
9409 cat conftest.err 1>&5
9410 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9412 if diff conftest.exp conftest.er2 >/dev/null; then
9413 lt_cv_prog_compiler__b=yes
9414 fi
9415 else
9416 lt_cv_prog_compiler__b=yes
9417 fi
9418 fi
9419 $RM -r conftest*
9420 LDFLAGS="$save_LDFLAGS"
9421
9422fi
9423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9424$as_echo "$lt_cv_prog_compiler__b" >&6; }
9425
9426if test x"$lt_cv_prog_compiler__b" = xyes; then
9427 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9428else
9429 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9430fi
9431
542f9784 9432 ;;
9433 esac
9434 fi
9435 if test "$with_gnu_ld" = no; then
9436 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9437 hardcode_libdir_separator=:
9438
9439 case $host_cpu in
9440 hppa*64*|ia64*)
9441 hardcode_direct=no
9442 hardcode_shlibpath_var=no
9443 ;;
9444 *)
9445 hardcode_direct=yes
9446 hardcode_direct_absolute=yes
9447 export_dynamic_flag_spec='${wl}-E'
9448
9449 # hardcode_minus_L: Not really in the search PATH,
9450 # but as the default location of the library.
9451 hardcode_minus_L=yes
9452 ;;
9453 esac
9454 fi
9455 ;;
9456
9457 irix5* | irix6* | nonstopux*)
9458 if test "$GCC" = yes; then
e6408286 9459 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'
542f9784 9460 # Try to use the -exported_symbol ld option, if it does not
9461 # work, assume that -exports_file does not work either and
9462 # implicitly export all symbols.
9463 save_LDFLAGS="$LDFLAGS"
9464 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cd9a469c 9465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9466/* end confdefs.h. */
542f9784 9467int foo(void) {}
9468_ACEOF
cd9a469c 9469if ac_fn_c_try_link "$LINENO"; then :
e6408286 9470 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'
542f9784 9471
542f9784 9472fi
cd9a469c 9473rm -f core conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext conftest.$ac_ext
542f9784 9475 LDFLAGS="$save_LDFLAGS"
9476 else
e6408286 9477 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'
9478 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'
542f9784 9479 fi
9480 archive_cmds_need_lc='no'
9481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9482 hardcode_libdir_separator=:
9483 inherit_rpath=yes
9484 link_all_deplibs=yes
9485 ;;
9486
9487 netbsd*)
9488 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9489 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9490 else
9491 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9492 fi
9493 hardcode_libdir_flag_spec='-R$libdir'
9494 hardcode_direct=yes
9495 hardcode_shlibpath_var=no
9496 ;;
9497
9498 newsos6)
9499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9500 hardcode_direct=yes
9501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9502 hardcode_libdir_separator=:
9503 hardcode_shlibpath_var=no
9504 ;;
9505
9506 *nto* | *qnx*)
9507 ;;
9508
9509 openbsd*)
6d873a38 9510 if test -f /usr/libexec/ld.so; then
9511 hardcode_direct=yes
9512 hardcode_shlibpath_var=no
9513 hardcode_direct_absolute=yes
9514 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
542f9784 9515 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6d873a38 9516 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
542f9784 9517 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6d873a38 9518 export_dynamic_flag_spec='${wl}-E'
9519 else
9520 case $host_os in
9521 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9522 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9523 hardcode_libdir_flag_spec='-R$libdir'
9524 ;;
9525 *)
9526 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9527 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9528 ;;
9529 esac
9530 fi
9531 else
9532 ld_shlibs=no
542f9784 9533 fi
9534 ;;
9535
9536 os2*)
9537 hardcode_libdir_flag_spec='-L$libdir'
9538 hardcode_minus_L=yes
9539 allow_undefined_flag=unsupported
e6408286 9540 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'
542f9784 9541 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9542 ;;
9543
9544 osf3*)
9545 if test "$GCC" = yes; then
9546 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
e6408286 9547 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'
542f9784 9548 else
9549 allow_undefined_flag=' -expect_unresolved \*'
e6408286 9550 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'
542f9784 9551 fi
9552 archive_cmds_need_lc='no'
9553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9554 hardcode_libdir_separator=:
9555 ;;
9556
9557 osf4* | osf5*) # as osf3* with the addition of -msym flag
9558 if test "$GCC" = yes; then
9559 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
e6408286 9560 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'
542f9784 9561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9562 else
9563 allow_undefined_flag=' -expect_unresolved \*'
e6408286 9564 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'
542f9784 9565 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~
e6408286 9566 $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'
542f9784 9567
9568 # Both c and cxx compiler support -rpath directly
9569 hardcode_libdir_flag_spec='-rpath $libdir'
9570 fi
9571 archive_cmds_need_lc='no'
9572 hardcode_libdir_separator=:
9573 ;;
9574
9575 solaris*)
9576 no_undefined_flag=' -z defs'
9577 if test "$GCC" = yes; then
9578 wlarc='${wl}'
9579 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9580 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9581 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9582 else
9583 case `$CC -V 2>&1` in
9584 *"Compilers 5.0"*)
9585 wlarc=''
9586 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9587 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9588 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9589 ;;
9590 *)
9591 wlarc='${wl}'
9592 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9593 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9594 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9595 ;;
9596 esac
9597 fi
9598 hardcode_libdir_flag_spec='-R$libdir'
9599 hardcode_shlibpath_var=no
9600 case $host_os in
9601 solaris2.[0-5] | solaris2.[0-5].*) ;;
9602 *)
9603 # The compiler driver will combine and reorder linker options,
9604 # but understands `-z linker_flag'. GCC discards it without `$wl',
9605 # but is careful enough not to reorder.
9606 # Supported since Solaris 2.6 (maybe 2.5.1?)
9607 if test "$GCC" = yes; then
9608 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9609 else
9610 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9611 fi
9612 ;;
9613 esac
9614 link_all_deplibs=yes
9615 ;;
9616
9617 sunos4*)
9618 if test "x$host_vendor" = xsequent; then
9619 # Use $CC to link under sequent, because it throws in some extra .o
9620 # files that make .init and .fini sections work.
9621 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9622 else
9623 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9624 fi
9625 hardcode_libdir_flag_spec='-L$libdir'
9626 hardcode_direct=yes
9627 hardcode_minus_L=yes
9628 hardcode_shlibpath_var=no
9629 ;;
9630
9631 sysv4)
9632 case $host_vendor in
9633 sni)
9634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635 hardcode_direct=yes # is this really true???
9636 ;;
9637 siemens)
9638 ## LD is ld it makes a PLAMLIB
9639 ## CC just makes a GrossModule.
9640 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9641 reload_cmds='$CC -r -o $output$reload_objs'
9642 hardcode_direct=no
9643 ;;
9644 motorola)
9645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9646 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9647 ;;
9648 esac
9649 runpath_var='LD_RUN_PATH'
9650 hardcode_shlibpath_var=no
9651 ;;
9652
9653 sysv4.3*)
9654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9655 hardcode_shlibpath_var=no
9656 export_dynamic_flag_spec='-Bexport'
9657 ;;
9658
9659 sysv4*MP*)
9660 if test -d /usr/nec; then
9661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9662 hardcode_shlibpath_var=no
9663 runpath_var=LD_RUN_PATH
9664 hardcode_runpath_var=yes
9665 ld_shlibs=yes
9666 fi
9667 ;;
9668
9669 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9670 no_undefined_flag='${wl}-z,text'
9671 archive_cmds_need_lc=no
9672 hardcode_shlibpath_var=no
9673 runpath_var='LD_RUN_PATH'
9674
9675 if test "$GCC" = yes; then
9676 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9677 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9678 else
9679 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9680 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9681 fi
9682 ;;
9683
9684 sysv5* | sco3.2v5* | sco5v6*)
9685 # Note: We can NOT use -z defs as we might desire, because we do not
9686 # link with -lc, and that would cause any symbols used from libc to
9687 # always be unresolved, which means just about no library would
9688 # ever link correctly. If we're not using GNU ld we use -z text
9689 # though, which does catch some bad symbols but isn't as heavy-handed
9690 # as -z defs.
9691 no_undefined_flag='${wl}-z,text'
9692 allow_undefined_flag='${wl}-z,nodefs'
9693 archive_cmds_need_lc=no
9694 hardcode_shlibpath_var=no
9695 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9696 hardcode_libdir_separator=':'
9697 link_all_deplibs=yes
9698 export_dynamic_flag_spec='${wl}-Bexport'
9699 runpath_var='LD_RUN_PATH'
9700
9701 if test "$GCC" = yes; then
9702 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 else
9705 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9707 fi
9708 ;;
9709
9710 uts4*)
9711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9712 hardcode_libdir_flag_spec='-L$libdir'
9713 hardcode_shlibpath_var=no
9714 ;;
9715
9716 *)
9717 ld_shlibs=no
9718 ;;
9719 esac
9720
9721 if test x$host_vendor = xsni; then
9722 case $host in
9723 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9724 export_dynamic_flag_spec='${wl}-Blargedynsym'
9725 ;;
9726 esac
9727 fi
9728 fi
9729
cd9a469c 9730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9731$as_echo "$ld_shlibs" >&6; }
542f9784 9732test "$ld_shlibs" = no && can_build_shared=no
9733
9734with_gnu_ld=$with_gnu_ld
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750#
9751# Do we need to explicitly link libc?
9752#
9753case "x$archive_cmds_need_lc" in
9754x|xyes)
9755 # Assume -lc should be added
9756 archive_cmds_need_lc=yes
9757
9758 if test "$enable_shared" = yes && test "$GCC" = yes; then
9759 case $archive_cmds in
9760 *'~'*)
9761 # FIXME: we may have to deal with multi-command sequences.
9762 ;;
9763 '$CC '*)
9764 # Test whether the compiler implicitly links with -lc since on some
9765 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9766 # to ld, don't add -lc before -lgcc.
cd9a469c 9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9768$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9769if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9770 $as_echo_n "(cached) " >&6
9e6fd619 9771else
9772 $RM conftest*
9773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
542f9784 9774
cd9a469c 9775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 9776 (eval $ac_compile) 2>&5
9777 ac_status=$?
cd9a469c 9778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9779 test $ac_status = 0; } 2>conftest.err; then
9e6fd619 9780 soname=conftest
9781 lib=conftest
9782 libobjs=conftest.$ac_objext
9783 deplibs=
9784 wl=$lt_prog_compiler_wl
9785 pic_flag=$lt_prog_compiler_pic
9786 compiler_flags=-v
9787 linker_flags=-v
9788 verstring=
9789 output_objdir=.
9790 libname=conftest
9791 lt_save_allow_undefined_flag=$allow_undefined_flag
9792 allow_undefined_flag=
cd9a469c 9793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
542f9784 9794 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9795 ac_status=$?
cd9a469c 9796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9797 test $ac_status = 0; }
9e6fd619 9798 then
9799 lt_cv_archive_cmds_need_lc=no
9800 else
9801 lt_cv_archive_cmds_need_lc=yes
9802 fi
9803 allow_undefined_flag=$lt_save_allow_undefined_flag
9804 else
9805 cat conftest.err 1>&5
9806 fi
9807 $RM conftest*
9808
9809fi
cd9a469c 9810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9811$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9e6fd619 9812 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
542f9784 9813 ;;
9814 esac
9815 fi
9816 ;;
9817esac
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
cd9a469c 9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9976$as_echo_n "checking dynamic linker characteristics... " >&6; }
6d873a38 9977
9978if test "$GCC" = yes; then
542f9784 9979 case $host_os in
9980 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9981 *) lt_awk_arg="/^libraries:/" ;;
9982 esac
e6408286 9983 case $host_os in
9984 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9985 *) lt_sed_strip_eq="s,=/,/,g" ;;
9986 esac
9987 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9988 case $lt_search_path_spec in
9989 *\;*)
542f9784 9990 # if the path contains ";" then we assume it to be the separator
9991 # otherwise default to the standard path separator (i.e. ":") - it is
9992 # assumed that no part of a normal pathname contains ";" but that should
9993 # okay in the real world where ";" in dirpaths is itself problematic.
e6408286 9994 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9995 ;;
9996 *)
9997 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9998 ;;
9999 esac
542f9784 10000 # Ok, now we have the path, separated by spaces, we can step through it
10001 # and add multilib dir if necessary.
10002 lt_tmp_lt_search_path_spec=
10003 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10004 for lt_sys_path in $lt_search_path_spec; do
10005 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10006 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10007 else
10008 test -d "$lt_sys_path" && \
10009 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10010 fi
10011 done
e6408286 10012 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
542f9784 10013BEGIN {RS=" "; FS="/|\n";} {
10014 lt_foo="";
10015 lt_count=0;
10016 for (lt_i = NF; lt_i > 0; lt_i--) {
10017 if ($lt_i != "" && $lt_i != ".") {
10018 if ($lt_i == "..") {
10019 lt_count++;
10020 } else {
10021 if (lt_count == 0) {
10022 lt_foo="/" $lt_i lt_foo;
10023 } else {
10024 lt_count--;
10025 }
10026 }
10027 }
10028 }
10029 if (lt_foo != "") { lt_freq[lt_foo]++; }
10030 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10031}'`
e6408286 10032 # AWK program above erroneously prepends '/' to C:/dos/paths
10033 # for these hosts.
10034 case $host_os in
10035 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10036 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10037 esac
10038 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
542f9784 10039else
10040 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10041fi
10042library_names_spec=
10043libname_spec='lib$name'
10044soname_spec=
10045shrext_cmds=".so"
10046postinstall_cmds=
10047postuninstall_cmds=
10048finish_cmds=
10049finish_eval=
10050shlibpath_var=
10051shlibpath_overrides_runpath=unknown
10052version_type=none
10053dynamic_linker="$host_os ld.so"
10054sys_lib_dlsearch_path_spec="/lib /usr/lib"
10055need_lib_prefix=unknown
10056hardcode_into_libs=no
10057
10058# when you set need_version to no, make sure it does not cause -set_version
10059# flags to be left without arguments
10060need_version=unknown
10061
10062case $host_os in
10063aix3*)
10064 version_type=linux
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10066 shlibpath_var=LIBPATH
10067
10068 # AIX 3 has no versioning support, so we append a major version to the name.
10069 soname_spec='${libname}${release}${shared_ext}$major'
10070 ;;
10071
c8db569e 10072aix[4-9]*)
542f9784 10073 version_type=linux
10074 need_lib_prefix=no
10075 need_version=no
10076 hardcode_into_libs=yes
10077 if test "$host_cpu" = ia64; then
10078 # AIX 5 supports IA64
10079 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10080 shlibpath_var=LD_LIBRARY_PATH
10081 else
10082 # With GCC up to 2.95.x, collect2 would create an import file
10083 # for dependence libraries. The import file would start with
10084 # the line `#! .'. This would cause the generated library to
10085 # depend on `.', always an invalid library. This was fixed in
10086 # development snapshots of GCC prior to 3.0.
10087 case $host_os in
10088 aix4 | aix4.[01] | aix4.[01].*)
10089 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10090 echo ' yes '
10091 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10092 :
10093 else
10094 can_build_shared=no
10095 fi
10096 ;;
10097 esac
10098 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10099 # soname into executable. Probably we can add versioning support to
10100 # collect2, so additional links can be useful in future.
10101 if test "$aix_use_runtimelinking" = yes; then
10102 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10103 # instead of lib<name>.a to let people know that these are not
10104 # typical AIX shared libraries.
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106 else
10107 # We preserve .a as extension for shared libraries through AIX4.2
10108 # and later when we are not doing run time linking.
10109 library_names_spec='${libname}${release}.a $libname.a'
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 fi
10112 shlibpath_var=LIBPATH
10113 fi
10114 ;;
10115
10116amigaos*)
6d873a38 10117 case $host_cpu in
10118 powerpc)
10119 # Since July 2007 AmigaOS4 officially supports .so libraries.
10120 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122 ;;
10123 m68k)
542f9784 10124 library_names_spec='$libname.ixlibrary $libname.a'
10125 # Create ${libname}_ixlibrary.a entries in /sys/libs.
e6408286 10126 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'
6d873a38 10127 ;;
10128 esac
542f9784 10129 ;;
10130
10131beos*)
10132 library_names_spec='${libname}${shared_ext}'
10133 dynamic_linker="$host_os ld.so"
10134 shlibpath_var=LIBRARY_PATH
10135 ;;
10136
10137bsdi[45]*)
10138 version_type=linux
10139 need_version=no
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10143 shlibpath_var=LD_LIBRARY_PATH
10144 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10145 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10146 # the default ld.so.conf also contains /usr/contrib/lib and
10147 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10148 # libtool to hard-code these into programs
10149 ;;
10150
6d873a38 10151cygwin* | mingw* | pw32* | cegcc*)
542f9784 10152 version_type=windows
10153 shrext_cmds=".dll"
10154 need_version=no
10155 need_lib_prefix=no
10156
6d873a38 10157 case $GCC,$host_os in
10158 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
542f9784 10159 library_names_spec='$libname.dll.a'
10160 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10161 postinstall_cmds='base_file=`basename \${file}`~
10162 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10163 dldir=$destdir/`dirname \$dlpath`~
10164 test -d \$dldir || mkdir -p \$dldir~
10165 $install_prog $dir/$dlname \$dldir/$dlname~
10166 chmod a+x \$dldir/$dlname~
10167 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10168 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10169 fi'
10170 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10171 dlpath=$dir/\$dldll~
10172 $RM \$dlpath'
10173 shlibpath_overrides_runpath=yes
10174
10175 case $host_os in
10176 cygwin*)
10177 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10178 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
e6408286 10179
10180 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
542f9784 10181 ;;
6d873a38 10182 mingw* | cegcc*)
542f9784 10183 # MinGW DLLs use traditional 'lib' prefix
10184 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
542f9784 10185 ;;
10186 pw32*)
10187 # pw32 DLLs use 'pw' prefix rather than 'lib'
10188 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10189 ;;
10190 esac
10191 ;;
10192
10193 *)
10194 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10195 ;;
10196 esac
10197 dynamic_linker='Win32 ld.exe'
10198 # FIXME: first we should search . and the directory the executable is in
10199 shlibpath_var=PATH
10200 ;;
10201
10202darwin* | rhapsody*)
10203 dynamic_linker="$host_os dyld"
10204 version_type=darwin
10205 need_lib_prefix=no
10206 need_version=no
10207 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10208 soname_spec='${libname}${release}${major}$shared_ext'
10209 shlibpath_overrides_runpath=yes
10210 shlibpath_var=DYLD_LIBRARY_PATH
10211 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10212
10213 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10214 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10215 ;;
10216
10217dgux*)
10218 version_type=linux
10219 need_lib_prefix=no
10220 need_version=no
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10222 soname_spec='${libname}${release}${shared_ext}$major'
10223 shlibpath_var=LD_LIBRARY_PATH
10224 ;;
10225
542f9784 10226freebsd* | dragonfly*)
10227 # DragonFly does not have aout. When/if they implement a new
10228 # versioning mechanism, adjust this.
10229 if test -x /usr/bin/objformat; then
10230 objformat=`/usr/bin/objformat`
10231 else
10232 case $host_os in
30369aff 10233 freebsd[23].*) objformat=aout ;;
542f9784 10234 *) objformat=elf ;;
10235 esac
10236 fi
10237 version_type=freebsd-$objformat
10238 case $version_type in
10239 freebsd-elf*)
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10241 need_version=no
10242 need_lib_prefix=no
10243 ;;
10244 freebsd-*)
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10246 need_version=yes
10247 ;;
10248 esac
10249 shlibpath_var=LD_LIBRARY_PATH
10250 case $host_os in
30369aff 10251 freebsd2.*)
542f9784 10252 shlibpath_overrides_runpath=yes
10253 ;;
10254 freebsd3.[01]* | freebsdelf3.[01]*)
10255 shlibpath_overrides_runpath=yes
10256 hardcode_into_libs=yes
10257 ;;
10258 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10259 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10260 shlibpath_overrides_runpath=no
10261 hardcode_into_libs=yes
10262 ;;
10263 *) # from 4.6 on, and DragonFly
10264 shlibpath_overrides_runpath=yes
10265 hardcode_into_libs=yes
10266 ;;
10267 esac
10268 ;;
10269
10270gnu*)
10271 version_type=linux
10272 need_lib_prefix=no
10273 need_version=no
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10275 soname_spec='${libname}${release}${shared_ext}$major'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 hardcode_into_libs=yes
10278 ;;
10279
e6408286 10280haiku*)
10281 version_type=linux
10282 need_lib_prefix=no
10283 need_version=no
10284 dynamic_linker="$host_os runtime_loader"
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 shlibpath_var=LIBRARY_PATH
10288 shlibpath_overrides_runpath=yes
10289 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10290 hardcode_into_libs=yes
10291 ;;
10292
542f9784 10293hpux9* | hpux10* | hpux11*)
10294 # Give a soname corresponding to the major version so that dld.sl refuses to
10295 # link against other versions.
10296 version_type=sunos
10297 need_lib_prefix=no
10298 need_version=no
10299 case $host_cpu in
10300 ia64*)
10301 shrext_cmds='.so'
10302 hardcode_into_libs=yes
10303 dynamic_linker="$host_os dld.so"
10304 shlibpath_var=LD_LIBRARY_PATH
10305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 if test "X$HPUX_IA64_MODE" = X32; then
10309 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10310 else
10311 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10312 fi
10313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10314 ;;
10315 hppa*64*)
10316 shrext_cmds='.sl'
10317 hardcode_into_libs=yes
10318 dynamic_linker="$host_os dld.sl"
10319 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10325 ;;
10326 *)
10327 shrext_cmds='.sl'
10328 dynamic_linker="$host_os dld.sl"
10329 shlibpath_var=SHLIB_PATH
10330 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 soname_spec='${libname}${release}${shared_ext}$major'
10333 ;;
10334 esac
e6408286 10335 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
542f9784 10336 postinstall_cmds='chmod 555 $lib'
e6408286 10337 # or fails outright, so override atomically:
10338 install_override_mode=555
542f9784 10339 ;;
10340
10341interix[3-9]*)
10342 version_type=linux
10343 need_lib_prefix=no
10344 need_version=no
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 shlibpath_overrides_runpath=no
10350 hardcode_into_libs=yes
10351 ;;
10352
10353irix5* | irix6* | nonstopux*)
10354 case $host_os in
10355 nonstopux*) version_type=nonstopux ;;
10356 *)
10357 if test "$lt_cv_prog_gnu_ld" = yes; then
10358 version_type=linux
10359 else
10360 version_type=irix
10361 fi ;;
10362 esac
10363 need_lib_prefix=no
10364 need_version=no
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10367 case $host_os in
10368 irix5* | nonstopux*)
10369 libsuff= shlibsuff=
10370 ;;
10371 *)
10372 case $LD in # libtool.m4 will add one of these switches to LD
10373 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10374 libsuff= shlibsuff= libmagic=32-bit;;
10375 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10376 libsuff=32 shlibsuff=N32 libmagic=N32;;
10377 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10378 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10379 *) libsuff= shlibsuff= libmagic=never-match;;
10380 esac
10381 ;;
10382 esac
10383 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10384 shlibpath_overrides_runpath=no
10385 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10386 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10387 hardcode_into_libs=yes
10388 ;;
10389
10390# No shared lib support for Linux oldld, aout, or coff.
10391linux*oldld* | linux*aout* | linux*coff*)
10392 dynamic_linker=no
10393 ;;
10394
10395# This must be Linux ELF.
9af964d4 10396linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 10397 version_type=linux
10398 need_lib_prefix=no
10399 need_version=no
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401 soname_spec='${libname}${release}${shared_ext}$major'
10402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10403 shlibpath_var=LD_LIBRARY_PATH
10404 shlibpath_overrides_runpath=no
9e6fd619 10405
542f9784 10406 # Some binutils ld are patched to set DT_RUNPATH
cd9a469c 10407 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10408 $as_echo_n "(cached) " >&6
9e6fd619 10409else
10410 lt_cv_shlibpath_overrides_runpath=no
10411 save_LDFLAGS=$LDFLAGS
10412 save_libdir=$libdir
10413 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10414 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
cd9a469c 10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10416/* end confdefs.h. */
10417
10418int
10419main ()
10420{
10421
10422 ;
10423 return 0;
10424}
10425_ACEOF
cd9a469c 10426if ac_fn_c_try_link "$LINENO"; then :
10427 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9e6fd619 10428 lt_cv_shlibpath_overrides_runpath=yes
542f9784 10429fi
542f9784 10430fi
cd9a469c 10431rm -f core conftest.err conftest.$ac_objext \
10432 conftest$ac_exeext conftest.$ac_ext
9e6fd619 10433 LDFLAGS=$save_LDFLAGS
10434 libdir=$save_libdir
10435
10436fi
10437
10438 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
542f9784 10439
10440 # This implies no fast_install, which is unacceptable.
10441 # Some rework will be needed to allow for fast_install
10442 # before this can be enabled.
10443 hardcode_into_libs=yes
10444
10445 # Append ld.so.conf contents to the search path
10446 if test -f /etc/ld.so.conf; then
e6408286 10447 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
542f9784 10448 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10449 fi
10450
10451 # We used to test for /lib/ld.so.1 and disable shared libraries on
10452 # powerpc, because MkLinux only supported shared libraries with the
10453 # GNU dynamic linker. Since this was broken with cross compilers,
10454 # most powerpc-linux boxes support dynamic linking these days and
10455 # people can always --disable-shared, the test was removed, and we
10456 # assume the GNU/Linux dynamic linker is in use.
10457 dynamic_linker='GNU/Linux ld.so'
10458 ;;
10459
10460netbsd*)
10461 version_type=sunos
10462 need_lib_prefix=no
10463 need_version=no
10464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10467 dynamic_linker='NetBSD (a.out) ld.so'
10468 else
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 dynamic_linker='NetBSD ld.elf_so'
10472 fi
10473 shlibpath_var=LD_LIBRARY_PATH
10474 shlibpath_overrides_runpath=yes
10475 hardcode_into_libs=yes
10476 ;;
10477
10478newsos6)
10479 version_type=linux
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10481 shlibpath_var=LD_LIBRARY_PATH
10482 shlibpath_overrides_runpath=yes
10483 ;;
10484
10485*nto* | *qnx*)
10486 version_type=qnx
10487 need_lib_prefix=no
10488 need_version=no
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490 soname_spec='${libname}${release}${shared_ext}$major'
10491 shlibpath_var=LD_LIBRARY_PATH
10492 shlibpath_overrides_runpath=no
10493 hardcode_into_libs=yes
10494 dynamic_linker='ldqnx.so'
10495 ;;
10496
10497openbsd*)
10498 version_type=sunos
10499 sys_lib_dlsearch_path_spec="/usr/lib"
10500 need_lib_prefix=no
10501 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10502 case $host_os in
10503 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10504 *) need_version=no ;;
10505 esac
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10507 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10508 shlibpath_var=LD_LIBRARY_PATH
10509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10510 case $host_os in
10511 openbsd2.[89] | openbsd2.[89].*)
10512 shlibpath_overrides_runpath=no
10513 ;;
10514 *)
10515 shlibpath_overrides_runpath=yes
10516 ;;
10517 esac
10518 else
10519 shlibpath_overrides_runpath=yes
10520 fi
10521 ;;
10522
10523os2*)
10524 libname_spec='$name'
10525 shrext_cmds=".dll"
10526 need_lib_prefix=no
10527 library_names_spec='$libname${shared_ext} $libname.a'
10528 dynamic_linker='OS/2 ld.exe'
10529 shlibpath_var=LIBPATH
10530 ;;
10531
10532osf3* | osf4* | osf5*)
10533 version_type=osf
10534 need_lib_prefix=no
10535 need_version=no
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538 shlibpath_var=LD_LIBRARY_PATH
10539 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10540 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10541 ;;
10542
10543rdos*)
10544 dynamic_linker=no
10545 ;;
10546
10547solaris*)
10548 version_type=linux
10549 need_lib_prefix=no
10550 need_version=no
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552 soname_spec='${libname}${release}${shared_ext}$major'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 shlibpath_overrides_runpath=yes
10555 hardcode_into_libs=yes
10556 # ldd complains unless libraries are executable
10557 postinstall_cmds='chmod +x $lib'
10558 ;;
10559
10560sunos4*)
10561 version_type=sunos
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10563 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10564 shlibpath_var=LD_LIBRARY_PATH
10565 shlibpath_overrides_runpath=yes
10566 if test "$with_gnu_ld" = yes; then
10567 need_lib_prefix=no
10568 fi
10569 need_version=yes
10570 ;;
10571
10572sysv4 | sysv4.3*)
10573 version_type=linux
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 case $host_vendor in
10578 sni)
10579 shlibpath_overrides_runpath=no
10580 need_lib_prefix=no
10581 runpath_var=LD_RUN_PATH
10582 ;;
10583 siemens)
10584 need_lib_prefix=no
10585 ;;
10586 motorola)
10587 need_lib_prefix=no
10588 need_version=no
10589 shlibpath_overrides_runpath=no
10590 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10591 ;;
10592 esac
10593 ;;
10594
10595sysv4*MP*)
10596 if test -d /usr/nec ;then
10597 version_type=linux
10598 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10599 soname_spec='$libname${shared_ext}.$major'
10600 shlibpath_var=LD_LIBRARY_PATH
10601 fi
10602 ;;
10603
10604sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10605 version_type=freebsd-elf
10606 need_lib_prefix=no
10607 need_version=no
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10609 soname_spec='${libname}${release}${shared_ext}$major'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 shlibpath_overrides_runpath=yes
10612 hardcode_into_libs=yes
10613 if test "$with_gnu_ld" = yes; then
10614 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10615 else
10616 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10617 case $host_os in
10618 sco3.2v5*)
10619 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10620 ;;
10621 esac
10622 fi
10623 sys_lib_dlsearch_path_spec='/usr/lib'
10624 ;;
10625
10626tpf*)
10627 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10628 version_type=linux
10629 need_lib_prefix=no
10630 need_version=no
6d873a38 10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
542f9784 10632 shlibpath_var=LD_LIBRARY_PATH
10633 shlibpath_overrides_runpath=no
10634 hardcode_into_libs=yes
10635 ;;
10636
10637uts4*)
10638 version_type=linux
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640 soname_spec='${libname}${release}${shared_ext}$major'
10641 shlibpath_var=LD_LIBRARY_PATH
10642 ;;
10643
10644*)
10645 dynamic_linker=no
10646 ;;
10647esac
cd9a469c 10648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10649$as_echo "$dynamic_linker" >&6; }
542f9784 10650test "$dynamic_linker" = no && can_build_shared=no
10651
10652variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10653if test "$GCC" = yes; then
10654 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10655fi
10656
6d873a38 10657if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10658 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10659fi
10660if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10661 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10662fi
10663
542f9784 10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
e6408286 10744
10745
10746
10747
10748
542f9784 10749
10750
10751
10752
10753
10754
cd9a469c 10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10756$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
542f9784 10757hardcode_action=
10758if test -n "$hardcode_libdir_flag_spec" ||
10759 test -n "$runpath_var" ||
10760 test "X$hardcode_automatic" = "Xyes" ; then
10761
10762 # We can hardcode non-existent directories.
10763 if test "$hardcode_direct" != no &&
10764 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10765 # have to relink, otherwise we might link with an installed library
10766 # when we should be linking with a yet-to-be-installed one
10767 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10768 test "$hardcode_minus_L" != no; then
10769 # Linking always hardcodes the temporary library directory.
10770 hardcode_action=relink
10771 else
10772 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10773 hardcode_action=immediate
10774 fi
10775else
10776 # We cannot hardcode anything, or else we can only hardcode existing
10777 # directories.
10778 hardcode_action=unsupported
10779fi
cd9a469c 10780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10781$as_echo "$hardcode_action" >&6; }
542f9784 10782
10783if test "$hardcode_action" = relink ||
10784 test "$inherit_rpath" = yes; then
10785 # Fast installation is not supported
10786 enable_fast_install=no
10787elif test "$shlibpath_overrides_runpath" = yes ||
10788 test "$enable_shared" = no; then
10789 # Fast installation is not necessary
10790 enable_fast_install=needless
10791fi
10792
10793
10794
10795
10796
10797
10798 if test "x$enable_dlopen" != xyes; then
10799 enable_dlopen=unknown
10800 enable_dlopen_self=unknown
10801 enable_dlopen_self_static=unknown
10802else
10803 lt_cv_dlopen=no
10804 lt_cv_dlopen_libs=
10805
10806 case $host_os in
10807 beos*)
10808 lt_cv_dlopen="load_add_on"
10809 lt_cv_dlopen_libs=
10810 lt_cv_dlopen_self=yes
10811 ;;
10812
6d873a38 10813 mingw* | pw32* | cegcc*)
542f9784 10814 lt_cv_dlopen="LoadLibrary"
10815 lt_cv_dlopen_libs=
10816 ;;
10817
10818 cygwin*)
10819 lt_cv_dlopen="dlopen"
10820 lt_cv_dlopen_libs=
10821 ;;
10822
10823 darwin*)
10824 # if libdl is installed we need to link against it
cd9a469c 10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10826$as_echo_n "checking for dlopen in -ldl... " >&6; }
10827if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10828 $as_echo_n "(cached) " >&6
542f9784 10829else
10830 ac_check_lib_save_LIBS=$LIBS
10831LIBS="-ldl $LIBS"
cd9a469c 10832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10833/* end confdefs.h. */
10834
cd9a469c 10835/* Override any GCC internal prototype to avoid an error.
10836 Use char because int might match the return type of a GCC
10837 builtin and then its argument prototype would still apply. */
542f9784 10838#ifdef __cplusplus
10839extern "C"
10840#endif
542f9784 10841char dlopen ();
10842int
10843main ()
10844{
cd9a469c 10845return dlopen ();
542f9784 10846 ;
10847 return 0;
10848}
10849_ACEOF
cd9a469c 10850if ac_fn_c_try_link "$LINENO"; then :
542f9784 10851 ac_cv_lib_dl_dlopen=yes
10852else
cd9a469c 10853 ac_cv_lib_dl_dlopen=no
542f9784 10854fi
cd9a469c 10855rm -f core conftest.err conftest.$ac_objext \
10856 conftest$ac_exeext conftest.$ac_ext
542f9784 10857LIBS=$ac_check_lib_save_LIBS
10858fi
cd9a469c 10859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10860$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10861if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
542f9784 10862 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10863else
10864
10865 lt_cv_dlopen="dyld"
10866 lt_cv_dlopen_libs=
10867 lt_cv_dlopen_self=yes
10868
10869fi
10870
10871 ;;
10872
10873 *)
cd9a469c 10874 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10875if test "x$ac_cv_func_shl_load" = x""yes; then :
542f9784 10876 lt_cv_dlopen="shl_load"
10877else
cd9a469c 10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10879$as_echo_n "checking for shl_load in -ldld... " >&6; }
10880if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10881 $as_echo_n "(cached) " >&6
542f9784 10882else
10883 ac_check_lib_save_LIBS=$LIBS
10884LIBS="-ldld $LIBS"
cd9a469c 10885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10886/* end confdefs.h. */
10887
cd9a469c 10888/* Override any GCC internal prototype to avoid an error.
10889 Use char because int might match the return type of a GCC
10890 builtin and then its argument prototype would still apply. */
542f9784 10891#ifdef __cplusplus
10892extern "C"
10893#endif
542f9784 10894char shl_load ();
10895int
10896main ()
10897{
cd9a469c 10898return shl_load ();
542f9784 10899 ;
10900 return 0;
10901}
10902_ACEOF
cd9a469c 10903if ac_fn_c_try_link "$LINENO"; then :
542f9784 10904 ac_cv_lib_dld_shl_load=yes
10905else
cd9a469c 10906 ac_cv_lib_dld_shl_load=no
542f9784 10907fi
cd9a469c 10908rm -f core conftest.err conftest.$ac_objext \
10909 conftest$ac_exeext conftest.$ac_ext
542f9784 10910LIBS=$ac_check_lib_save_LIBS
10911fi
cd9a469c 10912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10913$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10914if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
6d873a38 10915 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
542f9784 10916else
cd9a469c 10917 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10918if test "x$ac_cv_func_dlopen" = x""yes; then :
542f9784 10919 lt_cv_dlopen="dlopen"
10920else
cd9a469c 10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10922$as_echo_n "checking for dlopen in -ldl... " >&6; }
10923if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10924 $as_echo_n "(cached) " >&6
542f9784 10925else
10926 ac_check_lib_save_LIBS=$LIBS
10927LIBS="-ldl $LIBS"
cd9a469c 10928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10929/* end confdefs.h. */
10930
cd9a469c 10931/* Override any GCC internal prototype to avoid an error.
10932 Use char because int might match the return type of a GCC
10933 builtin and then its argument prototype would still apply. */
542f9784 10934#ifdef __cplusplus
10935extern "C"
10936#endif
542f9784 10937char dlopen ();
10938int
10939main ()
10940{
cd9a469c 10941return dlopen ();
542f9784 10942 ;
10943 return 0;
10944}
10945_ACEOF
cd9a469c 10946if ac_fn_c_try_link "$LINENO"; then :
542f9784 10947 ac_cv_lib_dl_dlopen=yes
10948else
cd9a469c 10949 ac_cv_lib_dl_dlopen=no
542f9784 10950fi
cd9a469c 10951rm -f core conftest.err conftest.$ac_objext \
10952 conftest$ac_exeext conftest.$ac_ext
542f9784 10953LIBS=$ac_check_lib_save_LIBS
10954fi
cd9a469c 10955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10956$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10957if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
542f9784 10958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10959else
cd9a469c 10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10961$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10962if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10963 $as_echo_n "(cached) " >&6
542f9784 10964else
10965 ac_check_lib_save_LIBS=$LIBS
10966LIBS="-lsvld $LIBS"
cd9a469c 10967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10968/* end confdefs.h. */
10969
cd9a469c 10970/* Override any GCC internal prototype to avoid an error.
10971 Use char because int might match the return type of a GCC
10972 builtin and then its argument prototype would still apply. */
542f9784 10973#ifdef __cplusplus
10974extern "C"
10975#endif
542f9784 10976char dlopen ();
10977int
10978main ()
10979{
cd9a469c 10980return dlopen ();
542f9784 10981 ;
10982 return 0;
10983}
10984_ACEOF
cd9a469c 10985if ac_fn_c_try_link "$LINENO"; then :
542f9784 10986 ac_cv_lib_svld_dlopen=yes
10987else
cd9a469c 10988 ac_cv_lib_svld_dlopen=no
542f9784 10989fi
cd9a469c 10990rm -f core conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
542f9784 10992LIBS=$ac_check_lib_save_LIBS
10993fi
cd9a469c 10994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10995$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10996if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
542f9784 10997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10998else
cd9a469c 10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11000$as_echo_n "checking for dld_link in -ldld... " >&6; }
11001if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11002 $as_echo_n "(cached) " >&6
542f9784 11003else
11004 ac_check_lib_save_LIBS=$LIBS
11005LIBS="-ldld $LIBS"
cd9a469c 11006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 11007/* end confdefs.h. */
11008
cd9a469c 11009/* Override any GCC internal prototype to avoid an error.
11010 Use char because int might match the return type of a GCC
11011 builtin and then its argument prototype would still apply. */
542f9784 11012#ifdef __cplusplus
11013extern "C"
11014#endif
542f9784 11015char dld_link ();
11016int
11017main ()
11018{
cd9a469c 11019return dld_link ();
542f9784 11020 ;
11021 return 0;
11022}
11023_ACEOF
cd9a469c 11024if ac_fn_c_try_link "$LINENO"; then :
542f9784 11025 ac_cv_lib_dld_dld_link=yes
11026else
cd9a469c 11027 ac_cv_lib_dld_dld_link=no
542f9784 11028fi
cd9a469c 11029rm -f core conftest.err conftest.$ac_objext \
11030 conftest$ac_exeext conftest.$ac_ext
542f9784 11031LIBS=$ac_check_lib_save_LIBS
11032fi
cd9a469c 11033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11034$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11035if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
6d873a38 11036 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
542f9784 11037fi
11038
11039
11040fi
11041
11042
11043fi
11044
11045
11046fi
11047
11048
11049fi
11050
11051
11052fi
11053
11054 ;;
11055 esac
11056
11057 if test "x$lt_cv_dlopen" != xno; then
11058 enable_dlopen=yes
11059 else
11060 enable_dlopen=no
11061 fi
11062
11063 case $lt_cv_dlopen in
11064 dlopen)
11065 save_CPPFLAGS="$CPPFLAGS"
11066 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11067
11068 save_LDFLAGS="$LDFLAGS"
11069 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11070
11071 save_LIBS="$LIBS"
11072 LIBS="$lt_cv_dlopen_libs $LIBS"
11073
cd9a469c 11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11075$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11076if test "${lt_cv_dlopen_self+set}" = set; then :
11077 $as_echo_n "(cached) " >&6
542f9784 11078else
11079 if test "$cross_compiling" = yes; then :
11080 lt_cv_dlopen_self=cross
11081else
11082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11083 lt_status=$lt_dlunknown
11084 cat > conftest.$ac_ext <<_LT_EOF
4b20b68c 11085#line 11085 "configure"
542f9784 11086#include "confdefs.h"
11087
11088#if HAVE_DLFCN_H
11089#include <dlfcn.h>
11090#endif
11091
11092#include <stdio.h>
11093
11094#ifdef RTLD_GLOBAL
11095# define LT_DLGLOBAL RTLD_GLOBAL
11096#else
11097# ifdef DL_GLOBAL
11098# define LT_DLGLOBAL DL_GLOBAL
11099# else
11100# define LT_DLGLOBAL 0
11101# endif
11102#endif
11103
11104/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11105 find out it does not work in some platform. */
11106#ifndef LT_DLLAZY_OR_NOW
11107# ifdef RTLD_LAZY
11108# define LT_DLLAZY_OR_NOW RTLD_LAZY
11109# else
11110# ifdef DL_LAZY
11111# define LT_DLLAZY_OR_NOW DL_LAZY
11112# else
11113# ifdef RTLD_NOW
11114# define LT_DLLAZY_OR_NOW RTLD_NOW
11115# else
11116# ifdef DL_NOW
11117# define LT_DLLAZY_OR_NOW DL_NOW
11118# else
11119# define LT_DLLAZY_OR_NOW 0
11120# endif
11121# endif
11122# endif
11123# endif
11124#endif
11125
e6408286 11126/* When -fvisbility=hidden is used, assume the code has been annotated
11127 correspondingly for the symbols needed. */
11128#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11129void fnord () __attribute__((visibility("default")));
11130#endif
11131
11132void fnord () { int i=42; }
542f9784 11133int main ()
11134{
11135 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11136 int status = $lt_dlunknown;
11137
11138 if (self)
11139 {
11140 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
e6408286 11141 else
11142 {
11143 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11144 else puts (dlerror ());
11145 }
542f9784 11146 /* dlclose (self); */
11147 }
11148 else
11149 puts (dlerror ());
11150
6d873a38 11151 return status;
542f9784 11152}
11153_LT_EOF
cd9a469c 11154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 11155 (eval $ac_link) 2>&5
11156 ac_status=$?
cd9a469c 11157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11158 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
542f9784 11159 (./conftest; exit; ) >&5 2>/dev/null
11160 lt_status=$?
11161 case x$lt_status in
11162 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11163 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11164 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11165 esac
11166 else :
11167 # compilation failed
11168 lt_cv_dlopen_self=no
11169 fi
11170fi
11171rm -fr conftest*
11172
11173
11174fi
cd9a469c 11175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11176$as_echo "$lt_cv_dlopen_self" >&6; }
542f9784 11177
11178 if test "x$lt_cv_dlopen_self" = xyes; then
11179 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cd9a469c 11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11181$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11182if test "${lt_cv_dlopen_self_static+set}" = set; then :
11183 $as_echo_n "(cached) " >&6
542f9784 11184else
11185 if test "$cross_compiling" = yes; then :
11186 lt_cv_dlopen_self_static=cross
11187else
11188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11189 lt_status=$lt_dlunknown
11190 cat > conftest.$ac_ext <<_LT_EOF
4b20b68c 11191#line 11191 "configure"
542f9784 11192#include "confdefs.h"
11193
11194#if HAVE_DLFCN_H
11195#include <dlfcn.h>
11196#endif
11197
11198#include <stdio.h>
11199
11200#ifdef RTLD_GLOBAL
11201# define LT_DLGLOBAL RTLD_GLOBAL
11202#else
11203# ifdef DL_GLOBAL
11204# define LT_DLGLOBAL DL_GLOBAL
11205# else
11206# define LT_DLGLOBAL 0
11207# endif
11208#endif
11209
11210/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11211 find out it does not work in some platform. */
11212#ifndef LT_DLLAZY_OR_NOW
11213# ifdef RTLD_LAZY
11214# define LT_DLLAZY_OR_NOW RTLD_LAZY
11215# else
11216# ifdef DL_LAZY
11217# define LT_DLLAZY_OR_NOW DL_LAZY
11218# else
11219# ifdef RTLD_NOW
11220# define LT_DLLAZY_OR_NOW RTLD_NOW
11221# else
11222# ifdef DL_NOW
11223# define LT_DLLAZY_OR_NOW DL_NOW
11224# else
11225# define LT_DLLAZY_OR_NOW 0
11226# endif
11227# endif
11228# endif
11229# endif
11230#endif
11231
e6408286 11232/* When -fvisbility=hidden is used, assume the code has been annotated
11233 correspondingly for the symbols needed. */
11234#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11235void fnord () __attribute__((visibility("default")));
11236#endif
11237
11238void fnord () { int i=42; }
542f9784 11239int main ()
11240{
11241 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11242 int status = $lt_dlunknown;
11243
11244 if (self)
11245 {
11246 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
e6408286 11247 else
11248 {
11249 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11250 else puts (dlerror ());
11251 }
542f9784 11252 /* dlclose (self); */
11253 }
11254 else
11255 puts (dlerror ());
11256
6d873a38 11257 return status;
542f9784 11258}
11259_LT_EOF
cd9a469c 11260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 11261 (eval $ac_link) 2>&5
11262 ac_status=$?
cd9a469c 11263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11264 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
542f9784 11265 (./conftest; exit; ) >&5 2>/dev/null
11266 lt_status=$?
11267 case x$lt_status in
11268 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11269 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11270 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11271 esac
11272 else :
11273 # compilation failed
11274 lt_cv_dlopen_self_static=no
11275 fi
11276fi
11277rm -fr conftest*
11278
11279
11280fi
cd9a469c 11281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11282$as_echo "$lt_cv_dlopen_self_static" >&6; }
542f9784 11283 fi
11284
11285 CPPFLAGS="$save_CPPFLAGS"
11286 LDFLAGS="$save_LDFLAGS"
11287 LIBS="$save_LIBS"
11288 ;;
11289 esac
11290
11291 case $lt_cv_dlopen_self in
11292 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11293 *) enable_dlopen_self=unknown ;;
11294 esac
11295
11296 case $lt_cv_dlopen_self_static in
11297 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11298 *) enable_dlopen_self_static=unknown ;;
11299 esac
11300fi
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318striplib=
11319old_striplib=
cd9a469c 11320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11321$as_echo_n "checking whether stripping libraries is possible... " >&6; }
542f9784 11322if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11323 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11324 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cd9a469c 11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11326$as_echo "yes" >&6; }
542f9784 11327else
11328# FIXME - insert some real tests, host_os isn't really good enough
11329 case $host_os in
11330 darwin*)
11331 if test -n "$STRIP" ; then
11332 striplib="$STRIP -x"
11333 old_striplib="$STRIP -S"
cd9a469c 11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11335$as_echo "yes" >&6; }
542f9784 11336 else
cd9a469c 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338$as_echo "no" >&6; }
542f9784 11339 fi
11340 ;;
11341 *)
cd9a469c 11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343$as_echo "no" >&6; }
542f9784 11344 ;;
11345 esac
11346fi
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359 # Report which library types will actually be built
cd9a469c 11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11361$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11363$as_echo "$can_build_shared" >&6; }
542f9784 11364
cd9a469c 11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11366$as_echo_n "checking whether to build shared libraries... " >&6; }
542f9784 11367 test "$can_build_shared" = "no" && enable_shared=no
11368
11369 # On AIX, shared libraries and static libraries use the same namespace, and
11370 # are all built from PIC.
11371 case $host_os in
11372 aix3*)
11373 test "$enable_shared" = yes && enable_static=no
11374 if test -n "$RANLIB"; then
11375 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11376 postinstall_cmds='$RANLIB $lib'
11377 fi
11378 ;;
11379
c8db569e 11380 aix[4-9]*)
542f9784 11381 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11382 test "$enable_shared" = yes && enable_static=no
11383 fi
11384 ;;
11385 esac
cd9a469c 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11387$as_echo "$enable_shared" >&6; }
542f9784 11388
cd9a469c 11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11390$as_echo_n "checking whether to build static libraries... " >&6; }
542f9784 11391 # Make sure either enable_shared or enable_static is yes.
11392 test "$enable_shared" = yes || enable_static=yes
cd9a469c 11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11394$as_echo "$enable_static" >&6; }
542f9784 11395
11396
11397
11398
11399fi
11400ac_ext=c
11401ac_cpp='$CPP $CPPFLAGS'
11402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11404ac_compiler_gnu=$ac_cv_c_compiler_gnu
11405
11406CC="$lt_save_CC"
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
cd9a469c 11420 ac_config_commands="$ac_config_commands libtool"
542f9784 11421
11422
11423
11424
11425# Only expand once:
11426
11427
11428
11429
11430
8c35d268 11431case $host in
11432 *-cygwin* | *-mingw*)
11433 # 'host' will be top-level target in the case of a target lib,
11434 # we must compare to with_cross_host to decide if this is a native
11435 # or cross-compiler and select where to install dlls appropriately.
11436 if test -n "$with_cross_host" &&
11437 test x"$with_cross_host" != x"no"; then
11438 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11439 else
11440 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11441 fi
11442 ;;
11443 *)
11444 lt_host_flags=
11445 ;;
11446esac
11447
11448
11449
11450
11451
11452
cd9a469c 11453
11454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11455$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11456 # Check whether --enable-maintainer-mode was given.
11457if test "${enable_maintainer_mode+set}" = set; then :
11458 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
542f9784 11459else
11460 USE_MAINTAINER_MODE=no
cd9a469c 11461fi
542f9784 11462
cd9a469c 11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11464$as_echo "$USE_MAINTAINER_MODE" >&6; }
11465 if test $USE_MAINTAINER_MODE = yes; then
542f9784 11466 MAINTAINER_MODE_TRUE=
11467 MAINTAINER_MODE_FALSE='#'
11468else
11469 MAINTAINER_MODE_TRUE='#'
11470 MAINTAINER_MODE_FALSE=
11471fi
11472
11473 MAINT=$MAINTAINER_MODE_TRUE
11474
11475
11476
87969c8c 11477# Create a spec file, so that compile/link tests don't fail
11478test -f libgfortran.spec || touch libgfortran.spec
11479FCFLAGS="$FCFLAGS -L."
11480
542f9784 11481# We need gfortran to compile parts of the library
11482# We can't use AC_PROG_FC because it expects a fully working gfortran.
11483#AC_PROG_FC(gfortran)
00b1a0e2 11484case `echo $GFORTRAN` in
11485 -* | no* )
11486 FC=no ;;
11487 *)
a5e97ab0 11488 set dummy $GFORTRAN; ac_word=$2
11489 if test -x "$ac_word"; then
647ee0e4 11490 FC="$GFORTRAN"
11491 else
11492 FC=no
11493 fi ;;
00b1a0e2 11494esac
cd9a469c 11495ac_ext=${ac_fc_srcext-f}
11496ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11497ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
542f9784 11498ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11499if test -n "$ac_tool_prefix"; then
11500 for ac_prog in gfortran
11501 do
11502 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11503set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 11504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505$as_echo_n "checking for $ac_word... " >&6; }
11506if test "${ac_cv_prog_FC+set}" = set; then :
11507 $as_echo_n "(cached) " >&6
542f9784 11508else
11509 if test -n "$FC"; then
11510 ac_cv_prog_FC="$FC" # Let the user override the test.
11511else
11512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513for as_dir in $PATH
11514do
11515 IFS=$as_save_IFS
11516 test -z "$as_dir" && as_dir=.
cd9a469c 11517 for ac_exec_ext in '' $ac_executable_extensions; do
11518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 11519 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
cd9a469c 11520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 11521 break 2
11522 fi
11523done
cd9a469c 11524 done
11525IFS=$as_save_IFS
542f9784 11526
11527fi
11528fi
11529FC=$ac_cv_prog_FC
11530if test -n "$FC"; then
cd9a469c 11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11532$as_echo "$FC" >&6; }
542f9784 11533else
cd9a469c 11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535$as_echo "no" >&6; }
542f9784 11536fi
11537
cd9a469c 11538
542f9784 11539 test -n "$FC" && break
11540 done
11541fi
11542if test -z "$FC"; then
11543 ac_ct_FC=$FC
11544 for ac_prog in gfortran
11545do
11546 # Extract the first word of "$ac_prog", so it can be a program name with args.
11547set dummy $ac_prog; ac_word=$2
cd9a469c 11548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549$as_echo_n "checking for $ac_word... " >&6; }
11550if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11551 $as_echo_n "(cached) " >&6
542f9784 11552else
11553 if test -n "$ac_ct_FC"; then
11554 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11555else
11556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557for as_dir in $PATH
11558do
11559 IFS=$as_save_IFS
11560 test -z "$as_dir" && as_dir=.
cd9a469c 11561 for ac_exec_ext in '' $ac_executable_extensions; do
11562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 11563 ac_cv_prog_ac_ct_FC="$ac_prog"
cd9a469c 11564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 11565 break 2
11566 fi
11567done
cd9a469c 11568 done
11569IFS=$as_save_IFS
542f9784 11570
11571fi
11572fi
11573ac_ct_FC=$ac_cv_prog_ac_ct_FC
11574if test -n "$ac_ct_FC"; then
cd9a469c 11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11576$as_echo "$ac_ct_FC" >&6; }
542f9784 11577else
cd9a469c 11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579$as_echo "no" >&6; }
542f9784 11580fi
11581
cd9a469c 11582
542f9784 11583 test -n "$ac_ct_FC" && break
11584done
11585
cd9a469c 11586 if test "x$ac_ct_FC" = x; then
11587 FC=""
11588 else
11589 case $cross_compiling:$ac_tool_warned in
11590yes:)
11591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11593ac_tool_warned=yes ;;
11594esac
11595 FC=$ac_ct_FC
11596 fi
542f9784 11597fi
11598
11599
11600# Provide some information about the compiler.
cd9a469c 11601$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11602set X $ac_compile
11603ac_compiler=$2
11604for ac_option in --version -v -V -qversion; do
11605 { { ac_try="$ac_compiler $ac_option >&5"
11606case "(($ac_try" in
11607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608 *) ac_try_echo=$ac_try;;
11609esac
11610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11611$as_echo "$ac_try_echo"; } >&5
11612 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
542f9784 11613 ac_status=$?
cd9a469c 11614 if test -s conftest.err; then
11615 sed '10a\
11616... rest of stderr output deleted ...
11617 10q' conftest.err >conftest.er1
11618 cat conftest.er1 >&5
11619 rm -f conftest.er1 conftest.err
11620 fi
11621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11622 test $ac_status = 0; }
11623done
542f9784 11624rm -f a.out
11625
11626# If we don't use `.F' as extension, the preprocessor is not run on the
11627# input file. (Note that this only needs to work for GNU compilers.)
11628ac_save_ext=$ac_ext
11629ac_ext=F
cd9a469c 11630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11631$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11632if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11633 $as_echo_n "(cached) " >&6
542f9784 11634else
cd9a469c 11635 cat > conftest.$ac_ext <<_ACEOF
542f9784 11636 program main
11637#ifndef __GNUC__
11638 choke me
11639#endif
11640
11641 end
11642_ACEOF
cd9a469c 11643if ac_fn_fc_try_compile "$LINENO"; then :
542f9784 11644 ac_compiler_gnu=yes
11645else
cd9a469c 11646 ac_compiler_gnu=no
542f9784 11647fi
cd9a469c 11648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 11649ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11650
11651fi
cd9a469c 11652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11653$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
542f9784 11654ac_ext=$ac_save_ext
cd9a469c 11655ac_test_FCFLAGS=${FCFLAGS+set}
11656ac_save_FCFLAGS=$FCFLAGS
542f9784 11657FCFLAGS=
cd9a469c 11658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11659$as_echo_n "checking whether $FC accepts -g... " >&6; }
11660if test "${ac_cv_prog_fc_g+set}" = set; then :
11661 $as_echo_n "(cached) " >&6
542f9784 11662else
11663 FCFLAGS=-g
cd9a469c 11664cat > conftest.$ac_ext <<_ACEOF
542f9784 11665 program main
11666
11667 end
11668_ACEOF
cd9a469c 11669if ac_fn_fc_try_compile "$LINENO"; then :
542f9784 11670 ac_cv_prog_fc_g=yes
11671else
cd9a469c 11672 ac_cv_prog_fc_g=no
542f9784 11673fi
cd9a469c 11674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 11675
11676fi
cd9a469c 11677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11678$as_echo "$ac_cv_prog_fc_g" >&6; }
11679if test "$ac_test_FCFLAGS" = set; then
11680 FCFLAGS=$ac_save_FCFLAGS
542f9784 11681elif test $ac_cv_prog_fc_g = yes; then
11682 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11683 FCFLAGS="-g -O2"
11684 else
11685 FCFLAGS="-g"
11686 fi
11687else
11688 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11689 FCFLAGS="-O2"
11690 else
11691 FCFLAGS=
11692 fi
11693fi
11694
11695ac_ext=c
11696ac_cpp='$CPP $CPPFLAGS'
11697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11699ac_compiler_gnu=$ac_cv_c_compiler_gnu
11700
e6408286 11701 ac_ext=${ac_fc_srcext-f}
cd9a469c 11702ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11703ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
542f9784 11704ac_compiler_gnu=$ac_cv_fc_compiler_gnu
542f9784 11705
542f9784 11706
11707if test -z "$FC" || test "X$FC" = "Xno"; then
11708 _lt_disable_FC=yes
11709fi
11710
542f9784 11711archive_cmds_need_lc_FC=no
11712allow_undefined_flag_FC=
11713always_export_symbols_FC=no
11714archive_expsym_cmds_FC=
11715export_dynamic_flag_spec_FC=
11716hardcode_direct_FC=no
11717hardcode_direct_absolute_FC=no
11718hardcode_libdir_flag_spec_FC=
11719hardcode_libdir_flag_spec_ld_FC=
11720hardcode_libdir_separator_FC=
11721hardcode_minus_L_FC=no
11722hardcode_automatic_FC=no
11723inherit_rpath_FC=no
11724module_cmds_FC=
11725module_expsym_cmds_FC=
11726link_all_deplibs_FC=unknown
11727old_archive_cmds_FC=$old_archive_cmds
e6408286 11728reload_flag_FC=$reload_flag
11729reload_cmds_FC=$reload_cmds
542f9784 11730no_undefined_flag_FC=
11731whole_archive_flag_spec_FC=
11732enable_shared_with_static_runtimes_FC=no
11733
11734# Source file extension for fc test sources.
11735ac_ext=${ac_fc_srcext-f}
11736
11737# Object file extension for compiled fc test sources.
11738objext=o
11739objext_FC=$objext
11740
11741# No sense in running all these tests if we already determined that
11742# the FC compiler isn't working. Some variables (like enable_shared)
11743# are currently assumed to apply to all compilers on this platform,
11744# and will be corrupted by setting them based on a non-working compiler.
11745if test "$_lt_disable_FC" != yes; then
11746 # Code to be used in simple compile tests
11747 lt_simple_compile_test_code="\
11748 subroutine t
11749 return
11750 end
11751"
11752
11753 # Code to be used in simple link tests
11754 lt_simple_link_test_code="\
11755 program t
11756 end
11757"
11758
11759 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11760
11761
11762
11763
11764
11765
11766# If no C compiler was specified, use CC.
11767LTCC=${LTCC-"$CC"}
11768
11769# If no C compiler flags were specified, use CFLAGS.
11770LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11771
11772# Allow CC to be a program name with arguments.
11773compiler=$CC
11774
11775
11776 # save warnings/boilerplate of simple test code
11777 ac_outfile=conftest.$ac_objext
11778echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11779eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11780_lt_compiler_boilerplate=`cat conftest.err`
11781$RM conftest*
11782
11783 ac_outfile=conftest.$ac_objext
11784echo "$lt_simple_link_test_code" >conftest.$ac_ext
11785eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11786_lt_linker_boilerplate=`cat conftest.err`
6d873a38 11787$RM -r conftest*
542f9784 11788
11789
11790 # Allow CC to be a program name with arguments.
11791 lt_save_CC="$CC"
6d873a38 11792 lt_save_GCC=$GCC
542f9784 11793 CC=${FC-"f95"}
11794 compiler=$CC
6d873a38 11795 GCC=$ac_cv_fc_compiler_gnu
11796
542f9784 11797 compiler_FC=$CC
11798 for cc_temp in $compiler""; do
11799 case $cc_temp in
11800 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11801 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11802 \-*) ;;
11803 *) break;;
11804 esac
11805done
e6408286 11806cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
542f9784 11807
11808
11809 if test -n "$compiler"; then
cd9a469c 11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11811$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11813$as_echo "$can_build_shared" >&6; }
542f9784 11814
cd9a469c 11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11816$as_echo_n "checking whether to build shared libraries... " >&6; }
542f9784 11817 test "$can_build_shared" = "no" && enable_shared=no
11818
11819 # On AIX, shared libraries and static libraries use the same namespace, and
11820 # are all built from PIC.
11821 case $host_os in
11822 aix3*)
11823 test "$enable_shared" = yes && enable_static=no
11824 if test -n "$RANLIB"; then
11825 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11826 postinstall_cmds='$RANLIB $lib'
11827 fi
11828 ;;
c8db569e 11829 aix[4-9]*)
542f9784 11830 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11831 test "$enable_shared" = yes && enable_static=no
11832 fi
11833 ;;
11834 esac
cd9a469c 11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11836$as_echo "$enable_shared" >&6; }
542f9784 11837
cd9a469c 11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11839$as_echo_n "checking whether to build static libraries... " >&6; }
542f9784 11840 # Make sure either enable_shared or enable_static is yes.
11841 test "$enable_shared" = yes || enable_static=yes
cd9a469c 11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11843$as_echo "$enable_static" >&6; }
542f9784 11844
11845 GCC_FC="$ac_cv_fc_compiler_gnu"
11846 LD_FC="$LD"
11847
11848 ## CAVEAT EMPTOR:
11849 ## There is no encapsulation within the following macros, do not change
11850 ## the running order or otherwise move them around unless you know exactly
11851 ## what you are doing...
11852 # Dependencies to place before and after the object being linked:
11853predep_objects_FC=
11854postdep_objects_FC=
11855predeps_FC=
11856postdeps_FC=
11857compiler_lib_search_path_FC=
11858
11859cat > conftest.$ac_ext <<_LT_EOF
11860 subroutine foo
11861 implicit none
11862 integer a
11863 a=0
11864 return
11865 end
11866_LT_EOF
11867
cd9a469c 11868if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 11869 (eval $ac_compile) 2>&5
11870 ac_status=$?
cd9a469c 11871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11872 test $ac_status = 0; }; then
542f9784 11873 # Parse the compiler output and extract the necessary
11874 # objects, libraries and library flags.
11875
11876 # Sentinel used to keep track of whether or not we are before
11877 # the conftest object file.
11878 pre_test_object_deps_done=no
11879
6d873a38 11880 for p in `eval "$output_verbose_link_cmd"`; do
542f9784 11881 case $p in
11882
11883 -L* | -R* | -l*)
11884 # Some compilers place space between "-{L,R}" and the path.
11885 # Remove the space.
11886 if test $p = "-L" ||
11887 test $p = "-R"; then
11888 prev=$p
11889 continue
11890 else
11891 prev=
11892 fi
11893
11894 if test "$pre_test_object_deps_done" = no; then
11895 case $p in
11896 -L* | -R*)
11897 # Internal compiler library paths should come after those
11898 # provided the user. The postdeps already come after the
11899 # user supplied libs so there is no need to process them.
11900 if test -z "$compiler_lib_search_path_FC"; then
11901 compiler_lib_search_path_FC="${prev}${p}"
11902 else
11903 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11904 fi
11905 ;;
11906 # The "-l" case would never come before the object being
11907 # linked, so don't bother handling this case.
11908 esac
11909 else
11910 if test -z "$postdeps_FC"; then
11911 postdeps_FC="${prev}${p}"
11912 else
11913 postdeps_FC="${postdeps_FC} ${prev}${p}"
11914 fi
11915 fi
11916 ;;
11917
11918 *.$objext)
11919 # This assumes that the test object file only shows up
11920 # once in the compiler output.
11921 if test "$p" = "conftest.$objext"; then
11922 pre_test_object_deps_done=yes
11923 continue
11924 fi
11925
11926 if test "$pre_test_object_deps_done" = no; then
11927 if test -z "$predep_objects_FC"; then
11928 predep_objects_FC="$p"
11929 else
11930 predep_objects_FC="$predep_objects_FC $p"
11931 fi
11932 else
11933 if test -z "$postdep_objects_FC"; then
11934 postdep_objects_FC="$p"
11935 else
11936 postdep_objects_FC="$postdep_objects_FC $p"
11937 fi
11938 fi
11939 ;;
11940
11941 *) ;; # Ignore the rest.
11942
11943 esac
11944 done
11945
11946 # Clean up.
11947 rm -f a.out a.exe
11948else
11949 echo "libtool.m4: error: problem compiling FC test program"
11950fi
11951
11952$RM -f confest.$objext
11953
11954# PORTME: override above test on systems where it is broken
11955
11956
11957case " $postdeps_FC " in
11958*" -lc "*) archive_cmds_need_lc_FC=no ;;
11959esac
6d873a38 11960 compiler_lib_search_dirs_FC=
11961if test -n "${compiler_lib_search_path_FC}"; then
11962 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11963fi
11964
11965
11966
11967
11968
542f9784 11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995 lt_prog_compiler_wl_FC=
11996lt_prog_compiler_pic_FC=
11997lt_prog_compiler_static_FC=
11998
cd9a469c 11999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12000$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
542f9784 12001
12002 if test "$GCC" = yes; then
12003 lt_prog_compiler_wl_FC='-Wl,'
12004 lt_prog_compiler_static_FC='-static'
12005
12006 case $host_os in
12007 aix*)
12008 # All AIX code is PIC.
12009 if test "$host_cpu" = ia64; then
12010 # AIX 5 now supports IA64 processor
12011 lt_prog_compiler_static_FC='-Bstatic'
12012 fi
12013 ;;
12014
12015 amigaos*)
6d873a38 12016 case $host_cpu in
12017 powerpc)
12018 # see comment about AmigaOS4 .so support
12019 lt_prog_compiler_pic_FC='-fPIC'
12020 ;;
12021 m68k)
12022 # FIXME: we need at least 68020 code to build shared libraries, but
12023 # adding the `-m68020' flag to GCC prevents building anything better,
12024 # like `-m68040'.
12025 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12026 ;;
12027 esac
542f9784 12028 ;;
12029
12030 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12031 # PIC is the default for these OSes.
12032 ;;
12033
6d873a38 12034 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 12035 # This hack is so that the source file can tell whether it is being
12036 # built for inclusion in a dll (and should export symbols for example).
12037 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12038 # (--disable-auto-import) libraries
12039 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12040 ;;
12041
12042 darwin* | rhapsody*)
12043 # PIC is the default on this platform
12044 # Common symbols not allowed in MH_DYLIB files
12045 lt_prog_compiler_pic_FC='-fno-common'
12046 ;;
12047
e6408286 12048 haiku*)
12049 # PIC is the default for Haiku.
12050 # The "-static" flag exists, but is broken.
12051 lt_prog_compiler_static_FC=
12052 ;;
12053
542f9784 12054 hpux*)
6d873a38 12055 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12056 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12057 # sets the default TLS model and affects inlining.
542f9784 12058 case $host_cpu in
6d873a38 12059 hppa*64*)
542f9784 12060 # +Z the default
12061 ;;
12062 *)
12063 lt_prog_compiler_pic_FC='-fPIC'
12064 ;;
12065 esac
12066 ;;
12067
12068 interix[3-9]*)
12069 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12070 # Instead, we relocate shared libraries at runtime.
12071 ;;
12072
12073 msdosdjgpp*)
12074 # Just because we use GCC doesn't mean we suddenly get shared libraries
12075 # on systems that don't support them.
12076 lt_prog_compiler_can_build_shared_FC=no
12077 enable_shared=no
12078 ;;
12079
12080 *nto* | *qnx*)
12081 # QNX uses GNU C++, but need to define -shared option too, otherwise
12082 # it will coredump.
12083 lt_prog_compiler_pic_FC='-fPIC -shared'
12084 ;;
12085
12086 sysv4*MP*)
12087 if test -d /usr/nec; then
12088 lt_prog_compiler_pic_FC=-Kconform_pic
12089 fi
12090 ;;
12091
12092 *)
12093 lt_prog_compiler_pic_FC='-fPIC'
12094 ;;
12095 esac
e6408286 12096
12097 case $cc_basename in
12098 nvcc*) # Cuda Compiler Driver 2.2
12099 lt_prog_compiler_wl_FC='-Xlinker '
12100 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12101 ;;
12102 esac
542f9784 12103 else
12104 # PORTME Check for flag to pass linker flags through the system compiler.
12105 case $host_os in
12106 aix*)
12107 lt_prog_compiler_wl_FC='-Wl,'
12108 if test "$host_cpu" = ia64; then
12109 # AIX 5 now supports IA64 processor
12110 lt_prog_compiler_static_FC='-Bstatic'
12111 else
12112 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12113 fi
12114 ;;
542f9784 12115
6d873a38 12116 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 12117 # This hack is so that the source file can tell whether it is being
12118 # built for inclusion in a dll (and should export symbols for example).
12119 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12120 ;;
12121
12122 hpux9* | hpux10* | hpux11*)
12123 lt_prog_compiler_wl_FC='-Wl,'
12124 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12125 # not for PA HP-UX.
12126 case $host_cpu in
12127 hppa*64*|ia64*)
12128 # +Z the default
12129 ;;
12130 *)
12131 lt_prog_compiler_pic_FC='+Z'
12132 ;;
12133 esac
12134 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12135 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12136 ;;
12137
12138 irix5* | irix6* | nonstopux*)
12139 lt_prog_compiler_wl_FC='-Wl,'
12140 # PIC (with -KPIC) is the default.
12141 lt_prog_compiler_static_FC='-non_shared'
12142 ;;
12143
9af964d4 12144 linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 12145 case $cc_basename in
6d873a38 12146 # old Intel for x86_64 which still supported -KPIC.
12147 ecc*)
542f9784 12148 lt_prog_compiler_wl_FC='-Wl,'
12149 lt_prog_compiler_pic_FC='-KPIC'
12150 lt_prog_compiler_static_FC='-static'
12151 ;;
6d873a38 12152 # icc used to be incompatible with GCC.
12153 # ICC 10 doesn't accept -KPIC any more.
12154 icc* | ifort*)
12155 lt_prog_compiler_wl_FC='-Wl,'
12156 lt_prog_compiler_pic_FC='-fPIC'
12157 lt_prog_compiler_static_FC='-static'
12158 ;;
12159 # Lahey Fortran 8.1.
12160 lf95*)
12161 lt_prog_compiler_wl_FC='-Wl,'
12162 lt_prog_compiler_pic_FC='--shared'
12163 lt_prog_compiler_static_FC='--static'
12164 ;;
e6408286 12165 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
542f9784 12166 # Portland Group compilers (*not* the Pentium gcc compiler,
12167 # which looks to be a dead project)
12168 lt_prog_compiler_wl_FC='-Wl,'
12169 lt_prog_compiler_pic_FC='-fpic'
12170 lt_prog_compiler_static_FC='-Bstatic'
12171 ;;
12172 ccc*)
12173 lt_prog_compiler_wl_FC='-Wl,'
12174 # All Alpha code is PIC.
12175 lt_prog_compiler_static_FC='-non_shared'
12176 ;;
e6408286 12177 xl* | bgxl* | bgf* | mpixl*)
12178 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
6d873a38 12179 lt_prog_compiler_wl_FC='-Wl,'
12180 lt_prog_compiler_pic_FC='-qpic'
12181 lt_prog_compiler_static_FC='-qstaticlink'
12182 ;;
542f9784 12183 *)
12184 case `$CC -V 2>&1 | sed 5q` in
e6408286 12185 *Sun\ F* | *Sun*Fortran*)
12186 # Sun Fortran 8.3 passes all unrecognized flags to the linker
542f9784 12187 lt_prog_compiler_pic_FC='-KPIC'
12188 lt_prog_compiler_static_FC='-Bstatic'
e6408286 12189 lt_prog_compiler_wl_FC=''
542f9784 12190 ;;
e6408286 12191 *Sun\ C*)
12192 # Sun C 5.9
542f9784 12193 lt_prog_compiler_pic_FC='-KPIC'
12194 lt_prog_compiler_static_FC='-Bstatic'
e6408286 12195 lt_prog_compiler_wl_FC='-Wl,'
542f9784 12196 ;;
12197 esac
12198 ;;
12199 esac
12200 ;;
12201
12202 newsos6)
12203 lt_prog_compiler_pic_FC='-KPIC'
12204 lt_prog_compiler_static_FC='-Bstatic'
12205 ;;
12206
12207 *nto* | *qnx*)
12208 # QNX uses GNU C++, but need to define -shared option too, otherwise
12209 # it will coredump.
12210 lt_prog_compiler_pic_FC='-fPIC -shared'
12211 ;;
12212
12213 osf3* | osf4* | osf5*)
12214 lt_prog_compiler_wl_FC='-Wl,'
12215 # All OSF/1 code is PIC.
12216 lt_prog_compiler_static_FC='-non_shared'
12217 ;;
12218
12219 rdos*)
12220 lt_prog_compiler_static_FC='-non_shared'
12221 ;;
12222
12223 solaris*)
12224 lt_prog_compiler_pic_FC='-KPIC'
12225 lt_prog_compiler_static_FC='-Bstatic'
12226 case $cc_basename in
12227 f77* | f90* | f95*)
12228 lt_prog_compiler_wl_FC='-Qoption ld ';;
12229 *)
12230 lt_prog_compiler_wl_FC='-Wl,';;
12231 esac
12232 ;;
12233
12234 sunos4*)
12235 lt_prog_compiler_wl_FC='-Qoption ld '
12236 lt_prog_compiler_pic_FC='-PIC'
12237 lt_prog_compiler_static_FC='-Bstatic'
12238 ;;
12239
12240 sysv4 | sysv4.2uw2* | sysv4.3*)
12241 lt_prog_compiler_wl_FC='-Wl,'
12242 lt_prog_compiler_pic_FC='-KPIC'
12243 lt_prog_compiler_static_FC='-Bstatic'
12244 ;;
12245
12246 sysv4*MP*)
12247 if test -d /usr/nec ;then
12248 lt_prog_compiler_pic_FC='-Kconform_pic'
12249 lt_prog_compiler_static_FC='-Bstatic'
12250 fi
12251 ;;
12252
12253 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12254 lt_prog_compiler_wl_FC='-Wl,'
12255 lt_prog_compiler_pic_FC='-KPIC'
12256 lt_prog_compiler_static_FC='-Bstatic'
12257 ;;
12258
12259 unicos*)
12260 lt_prog_compiler_wl_FC='-Wl,'
12261 lt_prog_compiler_can_build_shared_FC=no
12262 ;;
12263
12264 uts4*)
12265 lt_prog_compiler_pic_FC='-pic'
12266 lt_prog_compiler_static_FC='-Bstatic'
12267 ;;
12268
12269 *)
12270 lt_prog_compiler_can_build_shared_FC=no
12271 ;;
12272 esac
12273 fi
12274
12275case $host_os in
12276 # For platforms which do not support PIC, -DPIC is meaningless:
12277 *djgpp*)
12278 lt_prog_compiler_pic_FC=
12279 ;;
12280 *)
12281 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12282 ;;
12283esac
cd9a469c 12284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12285$as_echo "$lt_prog_compiler_pic_FC" >&6; }
542f9784 12286
12287
12288
12289#
12290# Check to make sure the PIC flag actually works.
12291#
12292if test -n "$lt_prog_compiler_pic_FC"; then
cd9a469c 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12294$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12295if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12296 $as_echo_n "(cached) " >&6
542f9784 12297else
6d873a38 12298 lt_cv_prog_compiler_pic_works_FC=no
542f9784 12299 ac_outfile=conftest.$ac_objext
12300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12301 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12302 # Insert the option either (1) after the last *FLAGS variable, or
12303 # (2) before a word containing "conftest.", or (3) at the end.
12304 # Note that $ac_compile itself does not contain backslashes and begins
12305 # with a dollar sign (not a hyphen), so the echo should work correctly.
12306 # The option is referenced via a variable to avoid confusing sed.
12307 lt_compile=`echo "$ac_compile" | $SED \
12308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12310 -e 's:$: $lt_compiler_flag:'`
e6408286 12311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 12312 (eval "$lt_compile" 2>conftest.err)
12313 ac_status=$?
12314 cat conftest.err >&5
e6408286 12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 12316 if (exit $ac_status) && test -s "$ac_outfile"; then
12317 # The compiler can only warn and ignore the option if not recognized
12318 # So say no if there are warnings other than the usual output.
e6408286 12319 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 12320 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12321 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6d873a38 12322 lt_cv_prog_compiler_pic_works_FC=yes
542f9784 12323 fi
12324 fi
12325 $RM conftest*
12326
12327fi
cd9a469c 12328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12329$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
542f9784 12330
6d873a38 12331if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
542f9784 12332 case $lt_prog_compiler_pic_FC in
12333 "" | " "*) ;;
12334 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12335 esac
12336else
12337 lt_prog_compiler_pic_FC=
12338 lt_prog_compiler_can_build_shared_FC=no
12339fi
12340
12341fi
12342
12343
12344
12345#
12346# Check to make sure the static flag actually works.
12347#
12348wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
cd9a469c 12349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12350$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12351if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12352 $as_echo_n "(cached) " >&6
542f9784 12353else
6d873a38 12354 lt_cv_prog_compiler_static_works_FC=no
542f9784 12355 save_LDFLAGS="$LDFLAGS"
12356 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12357 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12358 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12359 # The linker can only warn and ignore the option if not recognized
12360 # So say no if there are warnings
12361 if test -s conftest.err; then
12362 # Append any errors to the config.log.
12363 cat conftest.err 1>&5
e6408286 12364 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
542f9784 12365 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12366 if diff conftest.exp conftest.er2 >/dev/null; then
6d873a38 12367 lt_cv_prog_compiler_static_works_FC=yes
542f9784 12368 fi
12369 else
6d873a38 12370 lt_cv_prog_compiler_static_works_FC=yes
542f9784 12371 fi
12372 fi
6d873a38 12373 $RM -r conftest*
542f9784 12374 LDFLAGS="$save_LDFLAGS"
12375
12376fi
cd9a469c 12377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12378$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
542f9784 12379
6d873a38 12380if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
542f9784 12381 :
12382else
12383 lt_prog_compiler_static_FC=
12384fi
12385
12386
12387
12388
cd9a469c 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12390$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12391if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12392 $as_echo_n "(cached) " >&6
542f9784 12393else
12394 lt_cv_prog_compiler_c_o_FC=no
12395 $RM -r conftest 2>/dev/null
12396 mkdir conftest
12397 cd conftest
12398 mkdir out
12399 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12400
12401 lt_compiler_flag="-o out/conftest2.$ac_objext"
12402 # Insert the option either (1) after the last *FLAGS variable, or
12403 # (2) before a word containing "conftest.", or (3) at the end.
12404 # Note that $ac_compile itself does not contain backslashes and begins
12405 # with a dollar sign (not a hyphen), so the echo should work correctly.
12406 lt_compile=`echo "$ac_compile" | $SED \
12407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12409 -e 's:$: $lt_compiler_flag:'`
e6408286 12410 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 12411 (eval "$lt_compile" 2>out/conftest.err)
12412 ac_status=$?
12413 cat out/conftest.err >&5
e6408286 12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 12415 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12416 then
12417 # The compiler can only warn and ignore the option if not recognized
12418 # So say no if there are warnings
e6408286 12419 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 12420 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12421 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12422 lt_cv_prog_compiler_c_o_FC=yes
12423 fi
12424 fi
12425 chmod u+w . 2>&5
12426 $RM conftest*
12427 # SGI C++ compiler will create directory out/ii_files/ for
12428 # template instantiation
12429 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12430 $RM out/* && rmdir out
12431 cd ..
12432 $RM -r conftest
12433 $RM conftest*
12434
12435fi
cd9a469c 12436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12437$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
542f9784 12438
12439
12440
cd9a469c 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12442$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12443if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12444 $as_echo_n "(cached) " >&6
542f9784 12445else
12446 lt_cv_prog_compiler_c_o_FC=no
12447 $RM -r conftest 2>/dev/null
12448 mkdir conftest
12449 cd conftest
12450 mkdir out
12451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12452
12453 lt_compiler_flag="-o out/conftest2.$ac_objext"
12454 # Insert the option either (1) after the last *FLAGS variable, or
12455 # (2) before a word containing "conftest.", or (3) at the end.
12456 # Note that $ac_compile itself does not contain backslashes and begins
12457 # with a dollar sign (not a hyphen), so the echo should work correctly.
12458 lt_compile=`echo "$ac_compile" | $SED \
12459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12461 -e 's:$: $lt_compiler_flag:'`
e6408286 12462 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 12463 (eval "$lt_compile" 2>out/conftest.err)
12464 ac_status=$?
12465 cat out/conftest.err >&5
e6408286 12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 12467 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12468 then
12469 # The compiler can only warn and ignore the option if not recognized
12470 # So say no if there are warnings
e6408286 12471 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 12472 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12473 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12474 lt_cv_prog_compiler_c_o_FC=yes
12475 fi
12476 fi
12477 chmod u+w . 2>&5
12478 $RM conftest*
12479 # SGI C++ compiler will create directory out/ii_files/ for
12480 # template instantiation
12481 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12482 $RM out/* && rmdir out
12483 cd ..
12484 $RM -r conftest
12485 $RM conftest*
12486
12487fi
cd9a469c 12488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12489$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
542f9784 12490
12491
12492
12493
12494hard_links="nottested"
12495if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12496 # do not overwrite the value of need_locks provided by the user
cd9a469c 12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12498$as_echo_n "checking if we can lock with hard links... " >&6; }
542f9784 12499 hard_links=yes
12500 $RM conftest*
12501 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12502 touch conftest.a
12503 ln conftest.a conftest.b 2>&5 || hard_links=no
12504 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cd9a469c 12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12506$as_echo "$hard_links" >&6; }
542f9784 12507 if test "$hard_links" = no; then
cd9a469c 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12509$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
542f9784 12510 need_locks=warn
12511 fi
12512else
12513 need_locks=no
12514fi
12515
12516
12517
cd9a469c 12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12519$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
542f9784 12520
12521 runpath_var=
12522 allow_undefined_flag_FC=
12523 always_export_symbols_FC=no
12524 archive_cmds_FC=
12525 archive_expsym_cmds_FC=
12526 compiler_needs_object_FC=no
12527 enable_shared_with_static_runtimes_FC=no
12528 export_dynamic_flag_spec_FC=
12529 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12530 hardcode_automatic_FC=no
12531 hardcode_direct_FC=no
12532 hardcode_direct_absolute_FC=no
12533 hardcode_libdir_flag_spec_FC=
12534 hardcode_libdir_flag_spec_ld_FC=
12535 hardcode_libdir_separator_FC=
12536 hardcode_minus_L_FC=no
12537 hardcode_shlibpath_var_FC=unsupported
12538 inherit_rpath_FC=no
12539 link_all_deplibs_FC=unknown
12540 module_cmds_FC=
12541 module_expsym_cmds_FC=
12542 old_archive_from_new_cmds_FC=
12543 old_archive_from_expsyms_cmds_FC=
12544 thread_safe_flag_spec_FC=
12545 whole_archive_flag_spec_FC=
12546 # include_expsyms should be a list of space-separated symbols to be *always*
12547 # included in the symbol list
12548 include_expsyms_FC=
12549 # exclude_expsyms can be an extended regexp of symbols to exclude
12550 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12551 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12552 # as well as any symbol that contains `d'.
6d873a38 12553 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
542f9784 12554 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12555 # platforms (ab)use it in PIC code, but their linkers get confused if
12556 # the symbol is explicitly referenced. Since portable code cannot
12557 # rely on this symbol name, it's probably fine to never include it in
12558 # preloaded symbol tables.
6d873a38 12559 # Exclude shared library initialization/finalization symbols.
542f9784 12560 extract_expsyms_cmds=
12561
12562 case $host_os in
6d873a38 12563 cygwin* | mingw* | pw32* | cegcc*)
542f9784 12564 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12565 # When not using gcc, we currently assume that we are using
12566 # Microsoft Visual C++.
12567 if test "$GCC" != yes; then
12568 with_gnu_ld=no
12569 fi
12570 ;;
12571 interix*)
12572 # we just hope/assume this is gcc and not c89 (= MSVC++)
12573 with_gnu_ld=yes
12574 ;;
12575 openbsd*)
12576 with_gnu_ld=no
12577 ;;
12578 esac
12579
12580 ld_shlibs_FC=yes
e6408286 12581
12582 # On some targets, GNU ld is compatible enough with the native linker
12583 # that we're better off using the native interface for both.
12584 lt_use_gnu_ld_interface=no
542f9784 12585 if test "$with_gnu_ld" = yes; then
e6408286 12586 case $host_os in
12587 aix*)
12588 # The AIX port of GNU ld has always aspired to compatibility
12589 # with the native linker. However, as the warning in the GNU ld
12590 # block says, versions before 2.19.5* couldn't really create working
12591 # shared libraries, regardless of the interface used.
12592 case `$LD -v 2>&1` in
12593 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12594 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12595 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12596 *)
12597 lt_use_gnu_ld_interface=yes
12598 ;;
12599 esac
12600 ;;
12601 *)
12602 lt_use_gnu_ld_interface=yes
12603 ;;
12604 esac
12605 fi
12606
12607 if test "$lt_use_gnu_ld_interface" = yes; then
542f9784 12608 # If archive_cmds runs LD, not CC, wlarc should be empty
12609 wlarc='${wl}'
12610
12611 # Set some defaults for GNU ld with shared library support. These
12612 # are reset later if shared libraries are not supported. Putting them
12613 # here allows them to be overridden if necessary.
12614 runpath_var=LD_RUN_PATH
12615 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12616 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12617 # ancient GNU ld didn't support --whole-archive et. al.
12618 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12619 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12620 else
12621 whole_archive_flag_spec_FC=
12622 fi
12623 supports_anon_versioning=no
12624 case `$LD -v 2>&1` in
e6408286 12625 *GNU\ gold*) supports_anon_versioning=yes ;;
542f9784 12626 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12627 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12628 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12629 *\ 2.11.*) ;; # other 2.11 versions
12630 *) supports_anon_versioning=yes ;;
12631 esac
12632
12633 # See if GNU ld supports shared libraries.
12634 case $host_os in
c8db569e 12635 aix[3-9]*)
542f9784 12636 # On AIX/PPC, the GNU linker is very broken
12637 if test "$host_cpu" != ia64; then
12638 ld_shlibs_FC=no
12639 cat <<_LT_EOF 1>&2
12640
e6408286 12641*** Warning: the GNU linker, at least up to release 2.19, is reported
542f9784 12642*** to be unable to reliably create shared libraries on AIX.
12643*** Therefore, libtool is disabling shared libraries support. If you
e6408286 12644*** really care for shared libraries, you may want to install binutils
12645*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12646*** You will then need to restart the configuration process.
542f9784 12647
12648_LT_EOF
12649 fi
12650 ;;
12651
12652 amigaos*)
6d873a38 12653 case $host_cpu in
12654 powerpc)
12655 # see comment about AmigaOS4 .so support
12656 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12657 archive_expsym_cmds_FC=''
12658 ;;
12659 m68k)
12660 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)'
12661 hardcode_libdir_flag_spec_FC='-L$libdir'
12662 hardcode_minus_L_FC=yes
12663 ;;
12664 esac
542f9784 12665 ;;
12666
12667 beos*)
12668 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12669 allow_undefined_flag_FC=unsupported
12670 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12671 # support --undefined. This deserves some investigation. FIXME
12672 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12673 else
12674 ld_shlibs_FC=no
12675 fi
12676 ;;
12677
6d873a38 12678 cygwin* | mingw* | pw32* | cegcc*)
542f9784 12679 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12680 # as there is no search path for DLLs.
12681 hardcode_libdir_flag_spec_FC='-L$libdir'
e6408286 12682 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
542f9784 12683 allow_undefined_flag_FC=unsupported
12684 always_export_symbols_FC=no
12685 enable_shared_with_static_runtimes_FC=yes
12686 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12687
12688 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12689 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12690 # If the export-symbols file already is a .def file (1st line
12691 # is EXPORTS), use it as is; otherwise, prepend...
12692 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12693 cp $export_symbols $output_objdir/$soname.def;
12694 else
12695 echo EXPORTS > $output_objdir/$soname.def;
12696 cat $export_symbols >> $output_objdir/$soname.def;
12697 fi~
12698 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12699 else
12700 ld_shlibs_FC=no
12701 fi
12702 ;;
12703
e6408286 12704 haiku*)
12705 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12706 link_all_deplibs_FC=yes
12707 ;;
12708
542f9784 12709 interix[3-9]*)
12710 hardcode_direct_FC=no
12711 hardcode_shlibpath_var_FC=no
12712 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12713 export_dynamic_flag_spec_FC='${wl}-E'
12714 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12715 # Instead, shared libraries are loaded at an image base (0x10000000 by
12716 # default) and relocated if they conflict, which is a slow very memory
12717 # consuming and fragmenting process. To avoid this, we pick a random,
12718 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12719 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12720 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'
12721 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'
12722 ;;
12723
9af964d4 12724 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 12725 tmp_diet=no
12726 if test "$host_os" = linux-dietlibc; then
12727 case $cc_basename in
12728 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12729 esac
12730 fi
12731 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12732 && test "$tmp_diet" = no
12733 then
12734 tmp_addflag=
6d873a38 12735 tmp_sharedflag='-shared'
542f9784 12736 case $cc_basename,$host_cpu in
12737 pgcc*) # Portland Group C compiler
e6408286 12738 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'
542f9784 12739 tmp_addflag=' $pic_flag'
12740 ;;
e6408286 12741 pgf77* | pgf90* | pgf95* | pgfortran*)
12742 # Portland Group f77 and f90 compilers
12743 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'
542f9784 12744 tmp_addflag=' $pic_flag -Mnomain' ;;
12745 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12746 tmp_addflag=' -i_dynamic' ;;
12747 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12748 tmp_addflag=' -i_dynamic -nofor_main' ;;
12749 ifc* | ifort*) # Intel Fortran compiler
12750 tmp_addflag=' -nofor_main' ;;
6d873a38 12751 lf95*) # Lahey Fortran 8.1
12752 whole_archive_flag_spec_FC=
12753 tmp_sharedflag='--shared' ;;
e6408286 12754 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
6d873a38 12755 tmp_sharedflag='-qmkshrobj'
12756 tmp_addflag= ;;
e6408286 12757 nvcc*) # Cuda Compiler Driver 2.2
12758 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'
12759 compiler_needs_object_FC=yes
12760 ;;
542f9784 12761 esac
12762 case `$CC -V 2>&1 | sed 5q` in
12763 *Sun\ C*) # Sun C 5.9
e6408286 12764 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'
542f9784 12765 compiler_needs_object_FC=yes
12766 tmp_sharedflag='-G' ;;
12767 *Sun\ F*) # Sun Fortran 8.3
12768 tmp_sharedflag='-G' ;;
542f9784 12769 esac
12770 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12771
12772 if test "x$supports_anon_versioning" = xyes; then
12773 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12774 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12775 echo "local: *; };" >> $output_objdir/$libname.ver~
12776 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12777 fi
6d873a38 12778
12779 case $cc_basename in
e6408286 12780 xlf* | bgf* | bgxlf* | mpixlf*)
6d873a38 12781 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12782 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12783 hardcode_libdir_flag_spec_FC=
12784 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12785 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12786 if test "x$supports_anon_versioning" = xyes; then
12787 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12788 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12789 echo "local: *; };" >> $output_objdir/$libname.ver~
12790 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12791 fi
12792 ;;
12793 esac
542f9784 12794 else
12795 ld_shlibs_FC=no
12796 fi
12797 ;;
12798
12799 netbsd*)
12800 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12801 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12802 wlarc=
12803 else
12804 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12805 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12806 fi
12807 ;;
12808
12809 solaris*)
12810 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12811 ld_shlibs_FC=no
12812 cat <<_LT_EOF 1>&2
12813
12814*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12815*** create shared libraries on Solaris systems. Therefore, libtool
12816*** is disabling shared libraries support. We urge you to upgrade GNU
12817*** binutils to release 2.9.1 or newer. Another option is to modify
12818*** your PATH or compiler configuration so that the native linker is
12819*** used, and then restart.
12820
12821_LT_EOF
12822 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12823 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12824 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12825 else
12826 ld_shlibs_FC=no
12827 fi
12828 ;;
12829
12830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12831 case `$LD -v 2>&1` in
12832 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12833 ld_shlibs_FC=no
12834 cat <<_LT_EOF 1>&2
12835
12836*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12837*** reliably create shared libraries on SCO systems. Therefore, libtool
12838*** is disabling shared libraries support. We urge you to upgrade GNU
12839*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12840*** your PATH or compiler configuration so that the native linker is
12841*** used, and then restart.
12842
12843_LT_EOF
12844 ;;
12845 *)
12846 # For security reasons, it is highly recommended that you always
12847 # use absolute paths for naming shared libraries, and exclude the
12848 # DT_RUNPATH tag from executables and libraries. But doing so
12849 # requires that you compile everything twice, which is a pain.
12850 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12851 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12852 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12853 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12854 else
12855 ld_shlibs_FC=no
12856 fi
12857 ;;
12858 esac
12859 ;;
12860
12861 sunos4*)
12862 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12863 wlarc=
12864 hardcode_direct_FC=yes
12865 hardcode_shlibpath_var_FC=no
12866 ;;
12867
12868 *)
12869 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12870 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12871 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12872 else
12873 ld_shlibs_FC=no
12874 fi
12875 ;;
12876 esac
12877
12878 if test "$ld_shlibs_FC" = no; then
12879 runpath_var=
12880 hardcode_libdir_flag_spec_FC=
12881 export_dynamic_flag_spec_FC=
12882 whole_archive_flag_spec_FC=
12883 fi
12884 else
12885 # PORTME fill in a description of your system's linker (not GNU ld)
12886 case $host_os in
12887 aix3*)
12888 allow_undefined_flag_FC=unsupported
12889 always_export_symbols_FC=yes
12890 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'
12891 # Note: this linker hardcodes the directories in LIBPATH if there
12892 # are no directories specified by -L.
12893 hardcode_minus_L_FC=yes
12894 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12895 # Neither direct hardcoding nor static linking is supported with a
12896 # broken collect2.
12897 hardcode_direct_FC=unsupported
12898 fi
12899 ;;
12900
c8db569e 12901 aix[4-9]*)
542f9784 12902 if test "$host_cpu" = ia64; then
12903 # On IA64, the linker does run time linking by default, so we don't
12904 # have to do anything special.
12905 aix_use_runtimelinking=no
12906 exp_sym_flag='-Bexport'
12907 no_entry_flag=""
12908 else
12909 # If we're using GNU nm, then we don't want the "-C" option.
12910 # -C means demangle to AIX nm, but means don't demangle with GNU nm
e6408286 12911 # Also, AIX nm treats weak defined symbols like other global
12912 # defined symbols, whereas GNU nm marks them as "W".
542f9784 12913 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
e6408286 12914 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'
542f9784 12915 else
12916 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12917 fi
12918 aix_use_runtimelinking=no
12919
12920 # Test if we are trying to use run time linking or normal
12921 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12922 # need to do runtime linking.
c8db569e 12923 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 12924 for ld_flag in $LDFLAGS; do
12925 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12926 aix_use_runtimelinking=yes
12927 break
12928 fi
12929 done
12930 ;;
12931 esac
12932
12933 exp_sym_flag='-bexport'
12934 no_entry_flag='-bnoentry'
12935 fi
12936
12937 # When large executables or shared objects are built, AIX ld can
12938 # have problems creating the table of contents. If linking a library
12939 # or program results in "error TOC overflow" add -mminimal-toc to
12940 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12941 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12942
12943 archive_cmds_FC=''
12944 hardcode_direct_FC=yes
12945 hardcode_direct_absolute_FC=yes
12946 hardcode_libdir_separator_FC=':'
12947 link_all_deplibs_FC=yes
12948 file_list_spec_FC='${wl}-f,'
12949
12950 if test "$GCC" = yes; then
12951 case $host_os in aix4.[012]|aix4.[012].*)
12952 # We only want to do this on AIX 4.2 and lower, the check
12953 # below for broken collect2 doesn't work under 4.3+
12954 collect2name=`${CC} -print-prog-name=collect2`
12955 if test -f "$collect2name" &&
12956 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12957 then
12958 # We have reworked collect2
12959 :
12960 else
12961 # We have old collect2
12962 hardcode_direct_FC=unsupported
12963 # It fails to find uninstalled libraries when the uninstalled
12964 # path is not listed in the libpath. Setting hardcode_minus_L
12965 # to unsupported forces relinking
12966 hardcode_minus_L_FC=yes
12967 hardcode_libdir_flag_spec_FC='-L$libdir'
12968 hardcode_libdir_separator_FC=
12969 fi
12970 ;;
12971 esac
12972 shared_flag='-shared'
12973 if test "$aix_use_runtimelinking" = yes; then
12974 shared_flag="$shared_flag "'${wl}-G'
12975 fi
12976 else
12977 # not using gcc
12978 if test "$host_cpu" = ia64; then
12979 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12980 # chokes on -Wl,-G. The following line is correct:
12981 shared_flag='-G'
12982 else
12983 if test "$aix_use_runtimelinking" = yes; then
12984 shared_flag='${wl}-G'
12985 else
12986 shared_flag='${wl}-bM:SRE'
12987 fi
12988 fi
12989 fi
12990
6d873a38 12991 export_dynamic_flag_spec_FC='${wl}-bexpall'
542f9784 12992 # It seems that -bexpall does not export symbols beginning with
12993 # underscore (_), so it is better to generate a list of symbols to export.
12994 always_export_symbols_FC=yes
12995 if test "$aix_use_runtimelinking" = yes; then
12996 # Warning - without using the other runtime loading flags (-brtl),
12997 # -berok will link without error, but may produce a broken library.
12998 allow_undefined_flag_FC='-berok'
12999 # Determine the default libpath from the value encoded in an
13000 # empty executable.
cd9a469c 13001 cat > conftest.$ac_ext <<_ACEOF
542f9784 13002 program main
13003
13004 end
13005_ACEOF
cd9a469c 13006if ac_fn_fc_try_link "$LINENO"; then :
542f9784 13007
13008lt_aix_libpath_sed='
13009 /Import File Strings/,/^$/ {
13010 /^0/ {
13011 s/^0 *\(.*\)$/\1/
13012 p
13013 }
13014 }'
13015aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13016# Check for a 64-bit object if we didn't find anything.
13017if test -z "$aix_libpath"; then
13018 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13019fi
542f9784 13020fi
cd9a469c 13021rm -f core conftest.err conftest.$ac_objext \
13022 conftest$ac_exeext conftest.$ac_ext
542f9784 13023if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13024
13025 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
e6408286 13026 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"
542f9784 13027 else
13028 if test "$host_cpu" = ia64; then
13029 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13030 allow_undefined_flag_FC="-z nodefs"
13031 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"
13032 else
13033 # Determine the default libpath from the value encoded in an
13034 # empty executable.
cd9a469c 13035 cat > conftest.$ac_ext <<_ACEOF
542f9784 13036 program main
13037
13038 end
13039_ACEOF
cd9a469c 13040if ac_fn_fc_try_link "$LINENO"; then :
542f9784 13041
13042lt_aix_libpath_sed='
13043 /Import File Strings/,/^$/ {
13044 /^0/ {
13045 s/^0 *\(.*\)$/\1/
13046 p
13047 }
13048 }'
13049aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13050# Check for a 64-bit object if we didn't find anything.
13051if test -z "$aix_libpath"; then
13052 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13053fi
542f9784 13054fi
cd9a469c 13055rm -f core conftest.err conftest.$ac_objext \
13056 conftest$ac_exeext conftest.$ac_ext
542f9784 13057if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13058
13059 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13060 # Warning - without using the other run time loading flags,
13061 # -berok will link without error, but may produce a broken library.
13062 no_undefined_flag_FC=' ${wl}-bernotok'
13063 allow_undefined_flag_FC=' ${wl}-berok'
e6408286 13064 if test "$with_gnu_ld" = yes; then
13065 # We only use this code for GNU lds that support --whole-archive.
13066 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13067 else
13068 # Exported symbols can be pulled into shared objects from archives
13069 whole_archive_flag_spec_FC='$convenience'
13070 fi
542f9784 13071 archive_cmds_need_lc_FC=yes
13072 # This is similar to how AIX traditionally builds its shared libraries.
13073 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'
13074 fi
13075 fi
1e8e9920 13076 ;;
542f9784 13077
13078 amigaos*)
6d873a38 13079 case $host_cpu in
13080 powerpc)
13081 # see comment about AmigaOS4 .so support
13082 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13083 archive_expsym_cmds_FC=''
13084 ;;
13085 m68k)
13086 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)'
13087 hardcode_libdir_flag_spec_FC='-L$libdir'
13088 hardcode_minus_L_FC=yes
13089 ;;
13090 esac
1e8e9920 13091 ;;
542f9784 13092
13093 bsdi[45]*)
13094 export_dynamic_flag_spec_FC=-rdynamic
1e8e9920 13095 ;;
542f9784 13096
6d873a38 13097 cygwin* | mingw* | pw32* | cegcc*)
542f9784 13098 # When not using gcc, we currently assume that we are using
13099 # Microsoft Visual C++.
13100 # hardcode_libdir_flag_spec is actually meaningless, as there is
13101 # no search path for DLLs.
13102 hardcode_libdir_flag_spec_FC=' '
13103 allow_undefined_flag_FC=unsupported
13104 # Tell ltmain to make .lib files, not .a files.
13105 libext=lib
13106 # Tell ltmain to make .dll files, not .so files.
13107 shrext_cmds=".dll"
13108 # FIXME: Setting linknames here is a bad hack.
e6408286 13109 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
542f9784 13110 # The linker will automatically build a .lib file if we build a DLL.
13111 old_archive_from_new_cmds_FC='true'
13112 # FIXME: Should let the user specify the lib program.
13113 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13114 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13115 enable_shared_with_static_runtimes_FC=yes
1e8e9920 13116 ;;
542f9784 13117
13118 darwin* | rhapsody*)
542f9784 13119
6d873a38 13120
13121 archive_cmds_need_lc_FC=no
13122 hardcode_direct_FC=no
13123 hardcode_automatic_FC=yes
13124 hardcode_shlibpath_var_FC=unsupported
e6408286 13125 if test "$lt_cv_ld_force_load" = "yes"; then
13126 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\"`'
13127 else
13128 whole_archive_flag_spec_FC=''
13129 fi
6d873a38 13130 link_all_deplibs_FC=yes
13131 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13132 case $cc_basename in
13133 ifort*) _lt_dar_can_shared=yes ;;
13134 *) _lt_dar_can_shared=$GCC ;;
13135 esac
13136 if test "$_lt_dar_can_shared" = "yes"; then
e6408286 13137 output_verbose_link_cmd=func_echo_all
6d873a38 13138 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}"
13139 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13140 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}"
13141 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}"
13142
13143 else
13144 ld_shlibs_FC=no
13145 fi
13146
1e8e9920 13147 ;;
542f9784 13148
13149 dgux*)
13150 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13151 hardcode_libdir_flag_spec_FC='-L$libdir'
13152 hardcode_shlibpath_var_FC=no
1e8e9920 13153 ;;
1e8e9920 13154
542f9784 13155 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13156 # support. Future versions do this automatically, but an explicit c++rt0.o
13157 # does not break anything, and helps significantly (at the cost of a little
13158 # extra space).
13159 freebsd2.2*)
13160 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13161 hardcode_libdir_flag_spec_FC='-R$libdir'
13162 hardcode_direct_FC=yes
13163 hardcode_shlibpath_var_FC=no
1e8e9920 13164 ;;
1e8e9920 13165
542f9784 13166 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
30369aff 13167 freebsd2.*)
542f9784 13168 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13169 hardcode_direct_FC=yes
13170 hardcode_minus_L_FC=yes
13171 hardcode_shlibpath_var_FC=no
13172 ;;
13173
13174 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13175 freebsd* | dragonfly*)
13176 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13177 hardcode_libdir_flag_spec_FC='-R$libdir'
13178 hardcode_direct_FC=yes
13179 hardcode_shlibpath_var_FC=no
13180 ;;
13181
13182 hpux9*)
13183 if test "$GCC" = yes; then
13184 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'
13185 else
13186 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'
13187 fi
13188 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13189 hardcode_libdir_separator_FC=:
13190 hardcode_direct_FC=yes
13191
13192 # hardcode_minus_L: Not really in the search PATH,
13193 # but as the default location of the library.
13194 hardcode_minus_L_FC=yes
13195 export_dynamic_flag_spec_FC='${wl}-E'
13196 ;;
13197
13198 hpux10*)
e6408286 13199 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 13200 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13201 else
13202 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13203 fi
13204 if test "$with_gnu_ld" = no; then
13205 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13206 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13207 hardcode_libdir_separator_FC=:
13208 hardcode_direct_FC=yes
13209 hardcode_direct_absolute_FC=yes
13210 export_dynamic_flag_spec_FC='${wl}-E'
13211 # hardcode_minus_L: Not really in the search PATH,
13212 # but as the default location of the library.
13213 hardcode_minus_L_FC=yes
13214 fi
13215 ;;
13216
13217 hpux11*)
e6408286 13218 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 13219 case $host_cpu in
13220 hppa*64*)
13221 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13222 ;;
13223 ia64*)
6d873a38 13224 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
542f9784 13225 ;;
13226 *)
13227 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13228 ;;
13229 esac
13230 else
13231 case $host_cpu in
13232 hppa*64*)
13233 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13234 ;;
13235 ia64*)
13236 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13237 ;;
13238 *)
e6408286 13239 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
542f9784 13240 ;;
13241 esac
13242 fi
13243 if test "$with_gnu_ld" = no; then
13244 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13245 hardcode_libdir_separator_FC=:
13246
13247 case $host_cpu in
13248 hppa*64*|ia64*)
13249 hardcode_direct_FC=no
13250 hardcode_shlibpath_var_FC=no
13251 ;;
13252 *)
13253 hardcode_direct_FC=yes
13254 hardcode_direct_absolute_FC=yes
13255 export_dynamic_flag_spec_FC='${wl}-E'
13256
13257 # hardcode_minus_L: Not really in the search PATH,
13258 # but as the default location of the library.
13259 hardcode_minus_L_FC=yes
13260 ;;
13261 esac
13262 fi
13263 ;;
13264
13265 irix5* | irix6* | nonstopux*)
13266 if test "$GCC" = yes; then
e6408286 13267 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'
542f9784 13268 # Try to use the -exported_symbol ld option, if it does not
13269 # work, assume that -exports_file does not work either and
13270 # implicitly export all symbols.
13271 save_LDFLAGS="$LDFLAGS"
13272 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cd9a469c 13273 cat > conftest.$ac_ext <<_ACEOF
542f9784 13274int foo(void) {}
13275_ACEOF
cd9a469c 13276if ac_fn_fc_try_link "$LINENO"; then :
e6408286 13277 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'
542f9784 13278
542f9784 13279fi
cd9a469c 13280rm -f core conftest.err conftest.$ac_objext \
13281 conftest$ac_exeext conftest.$ac_ext
542f9784 13282 LDFLAGS="$save_LDFLAGS"
13283 else
e6408286 13284 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'
13285 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'
542f9784 13286 fi
13287 archive_cmds_need_lc_FC='no'
13288 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13289 hardcode_libdir_separator_FC=:
13290 inherit_rpath_FC=yes
13291 link_all_deplibs_FC=yes
13292 ;;
13293
13294 netbsd*)
13295 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13296 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13297 else
13298 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13299 fi
13300 hardcode_libdir_flag_spec_FC='-R$libdir'
13301 hardcode_direct_FC=yes
13302 hardcode_shlibpath_var_FC=no
13303 ;;
13304
13305 newsos6)
13306 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13307 hardcode_direct_FC=yes
13308 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13309 hardcode_libdir_separator_FC=:
13310 hardcode_shlibpath_var_FC=no
13311 ;;
13312
13313 *nto* | *qnx*)
13314 ;;
13315
13316 openbsd*)
6d873a38 13317 if test -f /usr/libexec/ld.so; then
13318 hardcode_direct_FC=yes
13319 hardcode_shlibpath_var_FC=no
13320 hardcode_direct_absolute_FC=yes
13321 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
542f9784 13322 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6d873a38 13323 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
542f9784 13324 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
6d873a38 13325 export_dynamic_flag_spec_FC='${wl}-E'
13326 else
13327 case $host_os in
13328 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13329 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13330 hardcode_libdir_flag_spec_FC='-R$libdir'
13331 ;;
13332 *)
13333 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13334 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13335 ;;
13336 esac
13337 fi
13338 else
13339 ld_shlibs_FC=no
542f9784 13340 fi
13341 ;;
13342
13343 os2*)
13344 hardcode_libdir_flag_spec_FC='-L$libdir'
13345 hardcode_minus_L_FC=yes
13346 allow_undefined_flag_FC=unsupported
e6408286 13347 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'
542f9784 13348 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13349 ;;
13350
13351 osf3*)
13352 if test "$GCC" = yes; then
13353 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
e6408286 13354 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'
542f9784 13355 else
13356 allow_undefined_flag_FC=' -expect_unresolved \*'
e6408286 13357 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'
542f9784 13358 fi
13359 archive_cmds_need_lc_FC='no'
13360 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13361 hardcode_libdir_separator_FC=:
13362 ;;
13363
13364 osf4* | osf5*) # as osf3* with the addition of -msym flag
13365 if test "$GCC" = yes; then
13366 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
e6408286 13367 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'
542f9784 13368 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13369 else
13370 allow_undefined_flag_FC=' -expect_unresolved \*'
e6408286 13371 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'
542f9784 13372 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~
e6408286 13373 $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'
542f9784 13374
13375 # Both c and cxx compiler support -rpath directly
13376 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13377 fi
13378 archive_cmds_need_lc_FC='no'
13379 hardcode_libdir_separator_FC=:
13380 ;;
13381
13382 solaris*)
13383 no_undefined_flag_FC=' -z defs'
13384 if test "$GCC" = yes; then
13385 wlarc='${wl}'
13386 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13387 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13388 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13389 else
13390 case `$CC -V 2>&1` in
13391 *"Compilers 5.0"*)
13392 wlarc=''
13393 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13394 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13395 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13396 ;;
13397 *)
13398 wlarc='${wl}'
13399 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13400 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13401 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13402 ;;
13403 esac
13404 fi
13405 hardcode_libdir_flag_spec_FC='-R$libdir'
13406 hardcode_shlibpath_var_FC=no
13407 case $host_os in
13408 solaris2.[0-5] | solaris2.[0-5].*) ;;
13409 *)
13410 # The compiler driver will combine and reorder linker options,
13411 # but understands `-z linker_flag'. GCC discards it without `$wl',
13412 # but is careful enough not to reorder.
13413 # Supported since Solaris 2.6 (maybe 2.5.1?)
13414 if test "$GCC" = yes; then
13415 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13416 else
13417 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13418 fi
13419 ;;
13420 esac
13421 link_all_deplibs_FC=yes
13422 ;;
13423
13424 sunos4*)
13425 if test "x$host_vendor" = xsequent; then
13426 # Use $CC to link under sequent, because it throws in some extra .o
13427 # files that make .init and .fini sections work.
13428 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13429 else
13430 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13431 fi
13432 hardcode_libdir_flag_spec_FC='-L$libdir'
13433 hardcode_direct_FC=yes
13434 hardcode_minus_L_FC=yes
13435 hardcode_shlibpath_var_FC=no
13436 ;;
13437
13438 sysv4)
13439 case $host_vendor in
13440 sni)
13441 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13442 hardcode_direct_FC=yes # is this really true???
13443 ;;
13444 siemens)
13445 ## LD is ld it makes a PLAMLIB
13446 ## CC just makes a GrossModule.
13447 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13448 reload_cmds_FC='$CC -r -o $output$reload_objs'
13449 hardcode_direct_FC=no
13450 ;;
13451 motorola)
13452 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13453 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13454 ;;
1e8e9920 13455 esac
542f9784 13456 runpath_var='LD_RUN_PATH'
13457 hardcode_shlibpath_var_FC=no
13458 ;;
13459
13460 sysv4.3*)
13461 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13462 hardcode_shlibpath_var_FC=no
13463 export_dynamic_flag_spec_FC='-Bexport'
13464 ;;
13465
13466 sysv4*MP*)
13467 if test -d /usr/nec; then
13468 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13469 hardcode_shlibpath_var_FC=no
13470 runpath_var=LD_RUN_PATH
13471 hardcode_runpath_var=yes
13472 ld_shlibs_FC=yes
13473 fi
13474 ;;
13475
13476 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13477 no_undefined_flag_FC='${wl}-z,text'
13478 archive_cmds_need_lc_FC=no
13479 hardcode_shlibpath_var_FC=no
13480 runpath_var='LD_RUN_PATH'
13481
13482 if test "$GCC" = yes; then
13483 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13484 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13485 else
13486 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13487 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13488 fi
13489 ;;
13490
13491 sysv5* | sco3.2v5* | sco5v6*)
13492 # Note: We can NOT use -z defs as we might desire, because we do not
13493 # link with -lc, and that would cause any symbols used from libc to
13494 # always be unresolved, which means just about no library would
13495 # ever link correctly. If we're not using GNU ld we use -z text
13496 # though, which does catch some bad symbols but isn't as heavy-handed
13497 # as -z defs.
13498 no_undefined_flag_FC='${wl}-z,text'
13499 allow_undefined_flag_FC='${wl}-z,nodefs'
13500 archive_cmds_need_lc_FC=no
13501 hardcode_shlibpath_var_FC=no
13502 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13503 hardcode_libdir_separator_FC=':'
13504 link_all_deplibs_FC=yes
13505 export_dynamic_flag_spec_FC='${wl}-Bexport'
13506 runpath_var='LD_RUN_PATH'
13507
13508 if test "$GCC" = yes; then
13509 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13510 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13511 else
13512 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13513 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13514 fi
13515 ;;
13516
13517 uts4*)
13518 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13519 hardcode_libdir_flag_spec_FC='-L$libdir'
13520 hardcode_shlibpath_var_FC=no
13521 ;;
13522
13523 *)
13524 ld_shlibs_FC=no
1e8e9920 13525 ;;
542f9784 13526 esac
13527
13528 if test x$host_vendor = xsni; then
1e8e9920 13529 case $host in
542f9784 13530 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13531 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13532 ;;
1e8e9920 13533 esac
542f9784 13534 fi
1e8e9920 13535 fi
1e8e9920 13536
cd9a469c 13537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13538$as_echo "$ld_shlibs_FC" >&6; }
542f9784 13539test "$ld_shlibs_FC" = no && can_build_shared=no
1e8e9920 13540
542f9784 13541with_gnu_ld_FC=$with_gnu_ld
1e8e9920 13542
1e8e9920 13543
1e8e9920 13544
1e8e9920 13545
542f9784 13546
13547
13548#
13549# Do we need to explicitly link libc?
13550#
13551case "x$archive_cmds_need_lc_FC" in
13552x|xyes)
13553 # Assume -lc should be added
13554 archive_cmds_need_lc_FC=yes
13555
13556 if test "$enable_shared" = yes && test "$GCC" = yes; then
13557 case $archive_cmds_FC in
13558 *'~'*)
13559 # FIXME: we may have to deal with multi-command sequences.
13560 ;;
13561 '$CC '*)
13562 # Test whether the compiler implicitly links with -lc since on some
13563 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13564 # to ld, don't add -lc before -lgcc.
cd9a469c 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13566$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13567if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13568 $as_echo_n "(cached) " >&6
9e6fd619 13569else
13570 $RM conftest*
13571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
542f9784 13572
cd9a469c 13573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 13574 (eval $ac_compile) 2>&5
1e8e9920 13575 ac_status=$?
cd9a469c 13576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13577 test $ac_status = 0; } 2>conftest.err; then
9e6fd619 13578 soname=conftest
13579 lib=conftest
13580 libobjs=conftest.$ac_objext
13581 deplibs=
13582 wl=$lt_prog_compiler_wl_FC
13583 pic_flag=$lt_prog_compiler_pic_FC
13584 compiler_flags=-v
13585 linker_flags=-v
13586 verstring=
13587 output_objdir=.
13588 libname=conftest
13589 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13590 allow_undefined_flag_FC=
cd9a469c 13591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
542f9784 13592 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1e8e9920 13593 ac_status=$?
cd9a469c 13594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13595 test $ac_status = 0; }
9e6fd619 13596 then
13597 lt_cv_archive_cmds_need_lc_FC=no
13598 else
13599 lt_cv_archive_cmds_need_lc_FC=yes
13600 fi
13601 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13602 else
13603 cat conftest.err 1>&5
13604 fi
13605 $RM conftest*
13606
13607fi
cd9a469c 13608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13609$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
9e6fd619 13610 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
542f9784 13611 ;;
13612 esac
1e8e9920 13613 fi
13614 ;;
542f9784 13615esac
13616
1e8e9920 13617
13618
1e8e9920 13619
13620
1e8e9920 13621
1e8e9920 13622
1e8e9920 13623
1e8e9920 13624
1e8e9920 13625
13626
1e8e9920 13627
1e8e9920 13628
1e8e9920 13629
13630
13631
13632
13633
13634
13635
13636
13637
a263d1ab 13638
13639
a263d1ab 13640
a263d1ab 13641
13642
13643
1e8e9920 13644
1e8e9920 13645
1e8e9920 13646
1e8e9920 13647
1e8e9920 13648
1e8e9920 13649
13650
1e8e9920 13651
1e8e9920 13652
1e8e9920 13653
1e8e9920 13654
1e8e9920 13655
1e8e9920 13656
1e8e9920 13657
542f9784 13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
cd9a469c 13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13681$as_echo_n "checking dynamic linker characteristics... " >&6; }
6d873a38 13682
542f9784 13683library_names_spec=
13684libname_spec='lib$name'
13685soname_spec=
13686shrext_cmds=".so"
13687postinstall_cmds=
13688postuninstall_cmds=
13689finish_cmds=
13690finish_eval=
13691shlibpath_var=
13692shlibpath_overrides_runpath=unknown
13693version_type=none
13694dynamic_linker="$host_os ld.so"
13695sys_lib_dlsearch_path_spec="/lib /usr/lib"
13696need_lib_prefix=unknown
13697hardcode_into_libs=no
13698
13699# when you set need_version to no, make sure it does not cause -set_version
13700# flags to be left without arguments
13701need_version=unknown
13702
13703case $host_os in
13704aix3*)
13705 version_type=linux
13706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13707 shlibpath_var=LIBPATH
13708
13709 # AIX 3 has no versioning support, so we append a major version to the name.
13710 soname_spec='${libname}${release}${shared_ext}$major'
13711 ;;
13712
c8db569e 13713aix[4-9]*)
542f9784 13714 version_type=linux
13715 need_lib_prefix=no
13716 need_version=no
13717 hardcode_into_libs=yes
13718 if test "$host_cpu" = ia64; then
13719 # AIX 5 supports IA64
13720 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13721 shlibpath_var=LD_LIBRARY_PATH
1e8e9920 13722 else
542f9784 13723 # With GCC up to 2.95.x, collect2 would create an import file
13724 # for dependence libraries. The import file would start with
13725 # the line `#! .'. This would cause the generated library to
13726 # depend on `.', always an invalid library. This was fixed in
13727 # development snapshots of GCC prior to 3.0.
13728 case $host_os in
13729 aix4 | aix4.[01] | aix4.[01].*)
13730 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13731 echo ' yes '
13732 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13733 :
13734 else
13735 can_build_shared=no
13736 fi
13737 ;;
13738 esac
13739 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13740 # soname into executable. Probably we can add versioning support to
13741 # collect2, so additional links can be useful in future.
13742 if test "$aix_use_runtimelinking" = yes; then
13743 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13744 # instead of lib<name>.a to let people know that these are not
13745 # typical AIX shared libraries.
13746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13747 else
13748 # We preserve .a as extension for shared libraries through AIX4.2
13749 # and later when we are not doing run time linking.
13750 library_names_spec='${libname}${release}.a $libname.a'
13751 soname_spec='${libname}${release}${shared_ext}$major'
13752 fi
13753 shlibpath_var=LIBPATH
1e8e9920 13754 fi
542f9784 13755 ;;
13756
13757amigaos*)
6d873a38 13758 case $host_cpu in
13759 powerpc)
13760 # Since July 2007 AmigaOS4 officially supports .so libraries.
13761 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13763 ;;
13764 m68k)
542f9784 13765 library_names_spec='$libname.ixlibrary $libname.a'
13766 # Create ${libname}_ixlibrary.a entries in /sys/libs.
e6408286 13767 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'
6d873a38 13768 ;;
13769 esac
542f9784 13770 ;;
1e8e9920 13771
542f9784 13772beos*)
13773 library_names_spec='${libname}${shared_ext}'
13774 dynamic_linker="$host_os ld.so"
13775 shlibpath_var=LIBRARY_PATH
13776 ;;
1e8e9920 13777
542f9784 13778bsdi[45]*)
13779 version_type=linux
13780 need_version=no
13781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13782 soname_spec='${libname}${release}${shared_ext}$major'
13783 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13784 shlibpath_var=LD_LIBRARY_PATH
13785 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13786 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13787 # the default ld.so.conf also contains /usr/contrib/lib and
13788 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13789 # libtool to hard-code these into programs
13790 ;;
1e8e9920 13791
6d873a38 13792cygwin* | mingw* | pw32* | cegcc*)
542f9784 13793 version_type=windows
13794 shrext_cmds=".dll"
13795 need_version=no
13796 need_lib_prefix=no
13797
6d873a38 13798 case $GCC,$host_os in
13799 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
542f9784 13800 library_names_spec='$libname.dll.a'
13801 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13802 postinstall_cmds='base_file=`basename \${file}`~
13803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13804 dldir=$destdir/`dirname \$dlpath`~
13805 test -d \$dldir || mkdir -p \$dldir~
13806 $install_prog $dir/$dlname \$dldir/$dlname~
13807 chmod a+x \$dldir/$dlname~
13808 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13809 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13810 fi'
13811 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13812 dlpath=$dir/\$dldll~
13813 $RM \$dlpath'
13814 shlibpath_overrides_runpath=yes
13815
13816 case $host_os in
13817 cygwin*)
13818 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13819 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
e6408286 13820
542f9784 13821 ;;
6d873a38 13822 mingw* | cegcc*)
542f9784 13823 # MinGW DLLs use traditional 'lib' prefix
13824 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
542f9784 13825 ;;
13826 pw32*)
13827 # pw32 DLLs use 'pw' prefix rather than 'lib'
13828 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13829 ;;
13830 esac
13831 ;;
1e8e9920 13832
542f9784 13833 *)
13834 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13835 ;;
13836 esac
13837 dynamic_linker='Win32 ld.exe'
13838 # FIXME: first we should search . and the directory the executable is in
13839 shlibpath_var=PATH
13840 ;;
1e8e9920 13841
542f9784 13842darwin* | rhapsody*)
13843 dynamic_linker="$host_os dyld"
13844 version_type=darwin
13845 need_lib_prefix=no
13846 need_version=no
13847 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13848 soname_spec='${libname}${release}${major}$shared_ext'
13849 shlibpath_overrides_runpath=yes
13850 shlibpath_var=DYLD_LIBRARY_PATH
13851 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13852
13853 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13854 ;;
13855
13856dgux*)
13857 version_type=linux
13858 need_lib_prefix=no
13859 need_version=no
13860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13861 soname_spec='${libname}${release}${shared_ext}$major'
13862 shlibpath_var=LD_LIBRARY_PATH
13863 ;;
13864
542f9784 13865freebsd* | dragonfly*)
13866 # DragonFly does not have aout. When/if they implement a new
13867 # versioning mechanism, adjust this.
13868 if test -x /usr/bin/objformat; then
13869 objformat=`/usr/bin/objformat`
1e8e9920 13870 else
542f9784 13871 case $host_os in
30369aff 13872 freebsd[23].*) objformat=aout ;;
542f9784 13873 *) objformat=elf ;;
13874 esac
1e8e9920 13875 fi
542f9784 13876 version_type=freebsd-$objformat
13877 case $version_type in
13878 freebsd-elf*)
13879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13880 need_version=no
13881 need_lib_prefix=no
13882 ;;
13883 freebsd-*)
13884 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13885 need_version=yes
13886 ;;
13887 esac
13888 shlibpath_var=LD_LIBRARY_PATH
13889 case $host_os in
30369aff 13890 freebsd2.*)
542f9784 13891 shlibpath_overrides_runpath=yes
13892 ;;
13893 freebsd3.[01]* | freebsdelf3.[01]*)
13894 shlibpath_overrides_runpath=yes
13895 hardcode_into_libs=yes
13896 ;;
13897 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13898 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13899 shlibpath_overrides_runpath=no
13900 hardcode_into_libs=yes
13901 ;;
13902 *) # from 4.6 on, and DragonFly
13903 shlibpath_overrides_runpath=yes
13904 hardcode_into_libs=yes
13905 ;;
13906 esac
13907 ;;
1e8e9920 13908
542f9784 13909gnu*)
13910 version_type=linux
13911 need_lib_prefix=no
13912 need_version=no
13913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13914 soname_spec='${libname}${release}${shared_ext}$major'
13915 shlibpath_var=LD_LIBRARY_PATH
13916 hardcode_into_libs=yes
13917 ;;
1e8e9920 13918
e6408286 13919haiku*)
13920 version_type=linux
13921 need_lib_prefix=no
13922 need_version=no
13923 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
13927 shlibpath_overrides_runpath=yes
13928 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13929 hardcode_into_libs=yes
13930 ;;
13931
542f9784 13932hpux9* | hpux10* | hpux11*)
13933 # Give a soname corresponding to the major version so that dld.sl refuses to
13934 # link against other versions.
13935 version_type=sunos
13936 need_lib_prefix=no
13937 need_version=no
13938 case $host_cpu in
13939 ia64*)
13940 shrext_cmds='.so'
13941 hardcode_into_libs=yes
13942 dynamic_linker="$host_os dld.so"
13943 shlibpath_var=LD_LIBRARY_PATH
13944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13946 soname_spec='${libname}${release}${shared_ext}$major'
13947 if test "X$HPUX_IA64_MODE" = X32; then
13948 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13949 else
13950 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13951 fi
13952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13953 ;;
13954 hppa*64*)
13955 shrext_cmds='.sl'
13956 hardcode_into_libs=yes
13957 dynamic_linker="$host_os dld.sl"
13958 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13961 soname_spec='${libname}${release}${shared_ext}$major'
13962 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13964 ;;
13965 *)
13966 shrext_cmds='.sl'
13967 dynamic_linker="$host_os dld.sl"
13968 shlibpath_var=SHLIB_PATH
13969 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13971 soname_spec='${libname}${release}${shared_ext}$major'
13972 ;;
13973 esac
e6408286 13974 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
542f9784 13975 postinstall_cmds='chmod 555 $lib'
e6408286 13976 # or fails outright, so override atomically:
13977 install_override_mode=555
542f9784 13978 ;;
13979
13980interix[3-9]*)
13981 version_type=linux
13982 need_lib_prefix=no
13983 need_version=no
13984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13985 soname_spec='${libname}${release}${shared_ext}$major'
13986 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13987 shlibpath_var=LD_LIBRARY_PATH
13988 shlibpath_overrides_runpath=no
13989 hardcode_into_libs=yes
13990 ;;
13991
13992irix5* | irix6* | nonstopux*)
13993 case $host_os in
13994 nonstopux*) version_type=nonstopux ;;
13995 *)
13996 if test "$lt_cv_prog_gnu_ld" = yes; then
13997 version_type=linux
13998 else
13999 version_type=irix
14000 fi ;;
14001 esac
14002 need_lib_prefix=no
14003 need_version=no
14004 soname_spec='${libname}${release}${shared_ext}$major'
14005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14006 case $host_os in
14007 irix5* | nonstopux*)
14008 libsuff= shlibsuff=
14009 ;;
14010 *)
14011 case $LD in # libtool.m4 will add one of these switches to LD
14012 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14013 libsuff= shlibsuff= libmagic=32-bit;;
14014 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14015 libsuff=32 shlibsuff=N32 libmagic=N32;;
14016 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14017 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14018 *) libsuff= shlibsuff= libmagic=never-match;;
14019 esac
14020 ;;
14021 esac
14022 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14023 shlibpath_overrides_runpath=no
14024 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14025 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14026 hardcode_into_libs=yes
14027 ;;
14028
14029# No shared lib support for Linux oldld, aout, or coff.
14030linux*oldld* | linux*aout* | linux*coff*)
14031 dynamic_linker=no
14032 ;;
14033
14034# This must be Linux ELF.
9af964d4 14035linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 14036 version_type=linux
14037 need_lib_prefix=no
14038 need_version=no
14039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14040 soname_spec='${libname}${release}${shared_ext}$major'
14041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14042 shlibpath_var=LD_LIBRARY_PATH
14043 shlibpath_overrides_runpath=no
9e6fd619 14044
542f9784 14045 # Some binutils ld are patched to set DT_RUNPATH
cd9a469c 14046 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14047 $as_echo_n "(cached) " >&6
9e6fd619 14048else
14049 lt_cv_shlibpath_overrides_runpath=no
14050 save_LDFLAGS=$LDFLAGS
14051 save_libdir=$libdir
14052 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14053 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
cd9a469c 14054 cat > conftest.$ac_ext <<_ACEOF
542f9784 14055 program main
14056
14057 end
1e8e9920 14058_ACEOF
cd9a469c 14059if ac_fn_fc_try_link "$LINENO"; then :
14060 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9e6fd619 14061 lt_cv_shlibpath_overrides_runpath=yes
1e8e9920 14062fi
1e8e9920 14063fi
cd9a469c 14064rm -f core conftest.err conftest.$ac_objext \
14065 conftest$ac_exeext conftest.$ac_ext
9e6fd619 14066 LDFLAGS=$save_LDFLAGS
14067 libdir=$save_libdir
14068
14069fi
14070
14071 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
542f9784 14072
14073 # This implies no fast_install, which is unacceptable.
14074 # Some rework will be needed to allow for fast_install
14075 # before this can be enabled.
14076 hardcode_into_libs=yes
14077
14078 # Append ld.so.conf contents to the search path
14079 if test -f /etc/ld.so.conf; then
e6408286 14080 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' ' '`
542f9784 14081 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14082 fi
1e8e9920 14083
542f9784 14084 # We used to test for /lib/ld.so.1 and disable shared libraries on
14085 # powerpc, because MkLinux only supported shared libraries with the
14086 # GNU dynamic linker. Since this was broken with cross compilers,
14087 # most powerpc-linux boxes support dynamic linking these days and
14088 # people can always --disable-shared, the test was removed, and we
14089 # assume the GNU/Linux dynamic linker is in use.
14090 dynamic_linker='GNU/Linux ld.so'
14091 ;;
1e8e9920 14092
542f9784 14093netbsd*)
14094 version_type=sunos
14095 need_lib_prefix=no
14096 need_version=no
14097 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14100 dynamic_linker='NetBSD (a.out) ld.so'
14101 else
14102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14103 soname_spec='${libname}${release}${shared_ext}$major'
14104 dynamic_linker='NetBSD ld.elf_so'
14105 fi
14106 shlibpath_var=LD_LIBRARY_PATH
14107 shlibpath_overrides_runpath=yes
14108 hardcode_into_libs=yes
14109 ;;
1e8e9920 14110
542f9784 14111newsos6)
14112 version_type=linux
14113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14114 shlibpath_var=LD_LIBRARY_PATH
14115 shlibpath_overrides_runpath=yes
14116 ;;
14117
14118*nto* | *qnx*)
14119 version_type=qnx
14120 need_lib_prefix=no
14121 need_version=no
14122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14123 soname_spec='${libname}${release}${shared_ext}$major'
14124 shlibpath_var=LD_LIBRARY_PATH
14125 shlibpath_overrides_runpath=no
14126 hardcode_into_libs=yes
14127 dynamic_linker='ldqnx.so'
14128 ;;
14129
14130openbsd*)
14131 version_type=sunos
14132 sys_lib_dlsearch_path_spec="/usr/lib"
14133 need_lib_prefix=no
14134 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14135 case $host_os in
14136 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14137 *) need_version=no ;;
14138 esac
14139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14141 shlibpath_var=LD_LIBRARY_PATH
14142 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14143 case $host_os in
14144 openbsd2.[89] | openbsd2.[89].*)
14145 shlibpath_overrides_runpath=no
14146 ;;
14147 *)
14148 shlibpath_overrides_runpath=yes
14149 ;;
14150 esac
1e8e9920 14151 else
542f9784 14152 shlibpath_overrides_runpath=yes
1e8e9920 14153 fi
542f9784 14154 ;;
1e8e9920 14155
542f9784 14156os2*)
14157 libname_spec='$name'
14158 shrext_cmds=".dll"
14159 need_lib_prefix=no
14160 library_names_spec='$libname${shared_ext} $libname.a'
14161 dynamic_linker='OS/2 ld.exe'
14162 shlibpath_var=LIBPATH
14163 ;;
14164
14165osf3* | osf4* | osf5*)
14166 version_type=osf
14167 need_lib_prefix=no
14168 need_version=no
14169 soname_spec='${libname}${release}${shared_ext}$major'
14170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14171 shlibpath_var=LD_LIBRARY_PATH
14172 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14173 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14174 ;;
14175
14176rdos*)
14177 dynamic_linker=no
14178 ;;
14179
14180solaris*)
14181 version_type=linux
14182 need_lib_prefix=no
14183 need_version=no
14184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14185 soname_spec='${libname}${release}${shared_ext}$major'
14186 shlibpath_var=LD_LIBRARY_PATH
14187 shlibpath_overrides_runpath=yes
14188 hardcode_into_libs=yes
14189 # ldd complains unless libraries are executable
14190 postinstall_cmds='chmod +x $lib'
14191 ;;
14192
14193sunos4*)
14194 version_type=sunos
14195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14196 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14197 shlibpath_var=LD_LIBRARY_PATH
14198 shlibpath_overrides_runpath=yes
14199 if test "$with_gnu_ld" = yes; then
14200 need_lib_prefix=no
14201 fi
14202 need_version=yes
14203 ;;
14204
14205sysv4 | sysv4.3*)
14206 version_type=linux
14207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14208 soname_spec='${libname}${release}${shared_ext}$major'
14209 shlibpath_var=LD_LIBRARY_PATH
14210 case $host_vendor in
14211 sni)
14212 shlibpath_overrides_runpath=no
14213 need_lib_prefix=no
14214 runpath_var=LD_RUN_PATH
14215 ;;
14216 siemens)
14217 need_lib_prefix=no
14218 ;;
14219 motorola)
14220 need_lib_prefix=no
14221 need_version=no
14222 shlibpath_overrides_runpath=no
14223 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14224 ;;
14225 esac
14226 ;;
14227
14228sysv4*MP*)
14229 if test -d /usr/nec ;then
14230 version_type=linux
14231 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14232 soname_spec='$libname${shared_ext}.$major'
14233 shlibpath_var=LD_LIBRARY_PATH
14234 fi
14235 ;;
14236
14237sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14238 version_type=freebsd-elf
14239 need_lib_prefix=no
14240 need_version=no
14241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14242 soname_spec='${libname}${release}${shared_ext}$major'
14243 shlibpath_var=LD_LIBRARY_PATH
14244 shlibpath_overrides_runpath=yes
14245 hardcode_into_libs=yes
14246 if test "$with_gnu_ld" = yes; then
14247 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14248 else
14249 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14250 case $host_os in
14251 sco3.2v5*)
14252 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14253 ;;
14254 esac
14255 fi
14256 sys_lib_dlsearch_path_spec='/usr/lib'
14257 ;;
14258
14259tpf*)
14260 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14261 version_type=linux
14262 need_lib_prefix=no
14263 need_version=no
6d873a38 14264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
542f9784 14265 shlibpath_var=LD_LIBRARY_PATH
14266 shlibpath_overrides_runpath=no
14267 hardcode_into_libs=yes
14268 ;;
14269
14270uts4*)
14271 version_type=linux
14272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14273 soname_spec='${libname}${release}${shared_ext}$major'
14274 shlibpath_var=LD_LIBRARY_PATH
14275 ;;
14276
14277*)
14278 dynamic_linker=no
14279 ;;
14280esac
cd9a469c 14281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14282$as_echo "$dynamic_linker" >&6; }
542f9784 14283test "$dynamic_linker" = no && can_build_shared=no
14284
cd9a469c 14285variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14286if test "$GCC" = yes; then
14287 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14288fi
8a75144c 14289
cd9a469c 14290if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14291 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14292fi
14293if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14294 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
8a75144c 14295fi
14296
1e8e9920 14297
14298
1e8e9920 14299
1e8e9920 14300
14301
fd6481cf 14302
fd6481cf 14303
fd6481cf 14304
1e8e9920 14305
1e8e9920 14306
1e8e9920 14307
1e8e9920 14308
1e8e9920 14309
1e8e9920 14310
1e8e9920 14311
1e8e9920 14312
1e8e9920 14313
14314
14315
14316
14317
1e8e9920 14318
1e8e9920 14319
1e8e9920 14320
1e8e9920 14321
1e8e9920 14322
14323
14324
14325
1e8e9920 14326
14327
107c3bbf 14328
e6408286 14329
14330
107c3bbf 14331
107c3bbf 14332
107c3bbf 14333
cd9a469c 14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14335$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14336hardcode_action_FC=
14337if test -n "$hardcode_libdir_flag_spec_FC" ||
14338 test -n "$runpath_var_FC" ||
14339 test "X$hardcode_automatic_FC" = "Xyes" ; then
107c3bbf 14340
cd9a469c 14341 # We can hardcode non-existent directories.
14342 if test "$hardcode_direct_FC" != no &&
14343 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14344 # have to relink, otherwise we might link with an installed library
14345 # when we should be linking with a yet-to-be-installed one
14346 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14347 test "$hardcode_minus_L_FC" != no; then
14348 # Linking always hardcodes the temporary library directory.
14349 hardcode_action_FC=relink
14350 else
14351 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14352 hardcode_action_FC=immediate
14353 fi
107c3bbf 14354else
cd9a469c 14355 # We cannot hardcode anything, or else we can only hardcode existing
14356 # directories.
14357 hardcode_action_FC=unsupported
14358fi
14359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14360$as_echo "$hardcode_action_FC" >&6; }
107c3bbf 14361
cd9a469c 14362if test "$hardcode_action_FC" = relink ||
14363 test "$inherit_rpath_FC" = yes; then
14364 # Fast installation is not supported
14365 enable_fast_install=no
14366elif test "$shlibpath_overrides_runpath" = yes ||
14367 test "$enable_shared" = no; then
14368 # Fast installation is not necessary
14369 enable_fast_install=needless
107c3bbf 14370fi
107c3bbf 14371
107c3bbf 14372
107c3bbf 14373
107c3bbf 14374
107c3bbf 14375
107c3bbf 14376
107c3bbf 14377
cd9a469c 14378 fi # test -n "$compiler"
107c3bbf 14379
cd9a469c 14380 GCC=$lt_save_GCC
14381 CC="$lt_save_CC"
14382fi # test "$_lt_disable_FC" != yes
107c3bbf 14383
cd9a469c 14384ac_ext=c
14385ac_cpp='$CPP $CPPFLAGS'
14386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14388ac_compiler_gnu=$ac_cv_c_compiler_gnu
14389
14390
87969c8c 14391FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
cd9a469c 14392
14393# For libtool versioning info, format is CURRENT:REVISION:AGE
14394libtool_VERSION=1:0:0
107c3bbf 14395
cd9a469c 14396
14397# Check header files.
14398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14399$as_echo_n "checking for ANSI C header files... " >&6; }
14400if test "${ac_cv_header_stdc+set}" = set; then :
14401 $as_echo_n "(cached) " >&6
107c3bbf 14402else
cd9a469c 14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107c3bbf 14404/* end confdefs.h. */
107c3bbf 14405#include <stdlib.h>
cd9a469c 14406#include <stdarg.h>
14407#include <string.h>
14408#include <float.h>
14409
107c3bbf 14410int
14411main ()
14412{
14413
107c3bbf 14414 ;
14415 return 0;
14416}
14417_ACEOF
cd9a469c 14418if ac_fn_c_try_compile "$LINENO"; then :
14419 ac_cv_header_stdc=yes
107c3bbf 14420else
cd9a469c 14421 ac_cv_header_stdc=no
107c3bbf 14422fi
cd9a469c 14423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
107c3bbf 14424
cd9a469c 14425if test $ac_cv_header_stdc = yes; then
14426 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107c3bbf 14428/* end confdefs.h. */
cd9a469c 14429#include <string.h>
107c3bbf 14430
107c3bbf 14431_ACEOF
cd9a469c 14432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14433 $EGREP "memchr" >/dev/null 2>&1; then :
14434
107c3bbf 14435else
cd9a469c 14436 ac_cv_header_stdc=no
14437fi
14438rm -f conftest*
107c3bbf 14439
107c3bbf 14440fi
107c3bbf 14441
cd9a469c 14442if test $ac_cv_header_stdc = yes; then
14443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107c3bbf 14445/* end confdefs.h. */
cd9a469c 14446#include <stdlib.h>
107c3bbf 14447
107c3bbf 14448_ACEOF
cd9a469c 14449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14450 $EGREP "free" >/dev/null 2>&1; then :
14451
14452else
14453 ac_cv_header_stdc=no
14454fi
14455rm -f conftest*
14456
14457fi
14458
14459if test $ac_cv_header_stdc = yes; then
14460 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14461 if test "$cross_compiling" = yes; then :
14462 :
14463else
14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107c3bbf 14465/* end confdefs.h. */
cd9a469c 14466#include <ctype.h>
14467#include <stdlib.h>
14468#if ((' ' & 0x0FF) == 0x020)
14469# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14470# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14471#else
14472# define ISLOWER(c) \
14473 (('a' <= (c) && (c) <= 'i') \
14474 || ('j' <= (c) && (c) <= 'r') \
14475 || ('s' <= (c) && (c) <= 'z'))
14476# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14477#endif
107c3bbf 14478
cd9a469c 14479#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
107c3bbf 14480int
14481main ()
14482{
cd9a469c 14483 int i;
14484 for (i = 0; i < 256; i++)
14485 if (XOR (islower (i), ISLOWER (i))
14486 || toupper (i) != TOUPPER (i))
14487 return 2;
107c3bbf 14488 return 0;
14489}
14490_ACEOF
cd9a469c 14491if ac_fn_c_try_run "$LINENO"; then :
107c3bbf 14492
107c3bbf 14493else
cd9a469c 14494 ac_cv_header_stdc=no
14495fi
14496rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14497 conftest.$ac_objext conftest.beam conftest.$ac_ext
14498fi
107c3bbf 14499
107c3bbf 14500fi
107c3bbf 14501fi
cd9a469c 14502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14503$as_echo "$ac_cv_header_stdc" >&6; }
14504if test $ac_cv_header_stdc = yes; then
14505
14506$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14507
14508fi
14509
14510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14511$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14512if test "${ac_cv_header_time+set}" = set; then :
14513 $as_echo_n "(cached) " >&6
14514else
14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107c3bbf 14516/* end confdefs.h. */
cd9a469c 14517#include <sys/types.h>
14518#include <sys/time.h>
14519#include <time.h>
107c3bbf 14520
14521int
14522main ()
14523{
cd9a469c 14524if ((struct tm *) 0)
14525return 0;
107c3bbf 14526 ;
14527 return 0;
14528}
14529_ACEOF
cd9a469c 14530if ac_fn_c_try_compile "$LINENO"; then :
14531 ac_cv_header_time=yes
107c3bbf 14532else
cd9a469c 14533 ac_cv_header_time=no
14534fi
14535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14536fi
14537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14538$as_echo "$ac_cv_header_time" >&6; }
14539if test $ac_cv_header_time = yes; then
14540
14541$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
107c3bbf 14542
107c3bbf 14543fi
cd9a469c 14544
14545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14546$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14547if test "${gcc_cv_header_string+set}" = set; then :
14548 $as_echo_n "(cached) " >&6
107c3bbf 14549else
cd9a469c 14550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107c3bbf 14551/* end confdefs.h. */
cd9a469c 14552#include <string.h>
14553#include <strings.h>
107c3bbf 14554int
14555main ()
14556{
14557
107c3bbf 14558 ;
14559 return 0;
14560}
14561_ACEOF
cd9a469c 14562if ac_fn_c_try_compile "$LINENO"; then :
14563 gcc_cv_header_string=yes
107c3bbf 14564else
cd9a469c 14565 gcc_cv_header_string=no
107c3bbf 14566fi
cd9a469c 14567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
107c3bbf 14568fi
cd9a469c 14569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14570$as_echo "$gcc_cv_header_string" >&6; }
14571if test $gcc_cv_header_string = yes; then
14572
14573$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14574
107c3bbf 14575fi
cd9a469c 14576
14577for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
14578do :
14579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14580ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14581eval as_val=\$$as_ac_Header
14582 if test "x$as_val" = x""yes; then :
14583 cat >>confdefs.h <<_ACEOF
14584#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
107c3bbf 14585_ACEOF
107c3bbf 14586
cd9a469c 14587fi
107c3bbf 14588
cd9a469c 14589done
107c3bbf 14590
107c3bbf 14591
cd9a469c 14592
14593
14594inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14595
14596acx_cv_header_stdint=stddef.h
14597acx_cv_header_stdint_kind="(already complete)"
14598for i in stdint.h $inttype_headers; do
14599 unset ac_cv_type_uintptr_t
14600 unset ac_cv_type_uintmax_t
14601 unset ac_cv_type_int_least32_t
14602 unset ac_cv_type_int_fast32_t
14603 unset ac_cv_type_uint64_t
14604 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14605 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14606#include <$i>
14607"
14608if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14609 acx_cv_header_stdint=$i
14610else
14611 continue
14612fi
14613
14614 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14615#include <$i>
14616"
14617if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14618
14619else
14620 acx_cv_header_stdint_kind="(mostly complete)"
14621fi
14622
14623 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14624#include <$i>
14625"
14626if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14627
14628else
14629 acx_cv_header_stdint_kind="(mostly complete)"
14630fi
14631
14632 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14633#include <$i>
14634"
14635if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14636
107c3bbf 14637else
cd9a469c 14638 acx_cv_header_stdint_kind="(mostly complete)"
14639fi
107c3bbf 14640
cd9a469c 14641 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14642#include <$i>
14643"
14644if test "x$ac_cv_type_uint64_t" = x""yes; then :
14645
14646else
14647 acx_cv_header_stdint_kind="(lacks uint64_t)"
107c3bbf 14648fi
cd9a469c 14649
14650 break
14651done
14652if test "$acx_cv_header_stdint" = stddef.h; then
14653 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14654 for i in stdint.h $inttype_headers; do
14655 unset ac_cv_type_uintptr_t
14656 unset ac_cv_type_uint32_t
14657 unset ac_cv_type_uint64_t
14658 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14659 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14660#include <$i>
14661"
14662if test "x$ac_cv_type_uint32_t" = x""yes; then :
14663 acx_cv_header_stdint=$i
107c3bbf 14664else
cd9a469c 14665 continue
14666fi
107c3bbf 14667
cd9a469c 14668 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14669#include <$i>
14670"
14671if test "x$ac_cv_type_uint64_t" = x""yes; then :
107c3bbf 14672
cd9a469c 14673fi
107c3bbf 14674
cd9a469c 14675 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14676#include <$i>
14677"
14678if test "x$ac_cv_type_uintptr_t" = x""yes; then :
107c3bbf 14679
cd9a469c 14680fi
107c3bbf 14681
cd9a469c 14682 break
14683 done
14684fi
14685if test "$acx_cv_header_stdint" = stddef.h; then
14686 acx_cv_header_stdint_kind="(u_intXX_t style)"
14687 for i in sys/types.h $inttype_headers; do
14688 unset ac_cv_type_u_int32_t
14689 unset ac_cv_type_u_int64_t
14690 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14691 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14692#include <$i>
14693"
14694if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14695 acx_cv_header_stdint=$i
107c3bbf 14696else
cd9a469c 14697 continue
14698fi
14699
14700 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14701#include <$i>
14702"
14703if test "x$ac_cv_type_u_int64_t" = x""yes; then :
107c3bbf 14704
107c3bbf 14705fi
107c3bbf 14706
cd9a469c 14707 break
14708 done
107c3bbf 14709fi
cd9a469c 14710if test "$acx_cv_header_stdint" = stddef.h; then
14711 acx_cv_header_stdint_kind="(using manual detection)"
107c3bbf 14712fi
107c3bbf 14713
cd9a469c 14714test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14715test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14716test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14717test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14718test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
107c3bbf 14719
cd9a469c 14720# ----------------- Summarize what we found so far
107c3bbf 14721
cd9a469c 14722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14723$as_echo_n "checking what to include in gstdint.h... " >&6; }
14724
14725case `$as_basename -- gstdint.h ||
14726$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14727 Xgstdint.h : 'X\(//\)$' \| \
14728 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14729$as_echo X/gstdint.h |
14730 sed '/^.*\/\([^/][^/]*\)\/*$/{
14731 s//\1/
14732 q
14733 }
14734 /^X\/\(\/\/\)$/{
14735 s//\1/
14736 q
14737 }
14738 /^X\/\(\/\).*/{
14739 s//\1/
14740 q
14741 }
14742 s/.*/./; q'` in
14743 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14744$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14745 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14746$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14747 *) ;;
107c3bbf 14748esac
107c3bbf 14749
cd9a469c 14750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14751$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
107c3bbf 14752
cd9a469c 14753# ----------------- done included file, check C basic types --------
107c3bbf 14754
cd9a469c 14755# Lacking an uintptr_t? Test size of void *
14756case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14757 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14758# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14759# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14760# This bug is HP SR number 8606223364.
14761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14762$as_echo_n "checking size of void *... " >&6; }
14763if test "${ac_cv_sizeof_void_p+set}" = set; then :
14764 $as_echo_n "(cached) " >&6
107c3bbf 14765else
cd9a469c 14766 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
107c3bbf 14767
cd9a469c 14768else
14769 if test "$ac_cv_type_void_p" = yes; then
14770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14772{ as_fn_set_status 77
14773as_fn_error "cannot compute sizeof (void *)
14774See \`config.log' for more details." "$LINENO" 5; }; }
14775 else
14776 ac_cv_sizeof_void_p=0
14777 fi
107c3bbf 14778fi
cd9a469c 14779
107c3bbf 14780fi
cd9a469c 14781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14782$as_echo "$ac_cv_sizeof_void_p" >&6; }
107c3bbf 14783
107c3bbf 14784
cd9a469c 14785
14786cat >>confdefs.h <<_ACEOF
14787#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
107c3bbf 14788_ACEOF
107c3bbf 14789
cd9a469c 14790 ;;
14791esac
107c3bbf 14792
cd9a469c 14793# Lacking an uint64_t? Test size of long
14794case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14795 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14796# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14797# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14798# This bug is HP SR number 8606223364.
14799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14800$as_echo_n "checking size of long... " >&6; }
14801if test "${ac_cv_sizeof_long+set}" = set; then :
14802 $as_echo_n "(cached) " >&6
107c3bbf 14803else
cd9a469c 14804 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
107c3bbf 14805
107c3bbf 14806else
cd9a469c 14807 if test "$ac_cv_type_long" = yes; then
14808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14810{ as_fn_set_status 77
14811as_fn_error "cannot compute sizeof (long)
14812See \`config.log' for more details." "$LINENO" 5; }; }
14813 else
14814 ac_cv_sizeof_long=0
14815 fi
14816fi
107c3bbf 14817
cd9a469c 14818fi
14819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14820$as_echo "$ac_cv_sizeof_long" >&6; }
107c3bbf 14821
107c3bbf 14822
cd9a469c 14823
14824cat >>confdefs.h <<_ACEOF
14825#define SIZEOF_LONG $ac_cv_sizeof_long
107c3bbf 14826_ACEOF
107c3bbf 14827
cd9a469c 14828 ;;
14829esac
107c3bbf 14830
cd9a469c 14831if test $acx_cv_header_stdint = stddef.h; then
14832 # Lacking a good header? Test size of everything and deduce all types.
14833 # The cast to long int works around a bug in the HP C Compiler
14834# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14835# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14836# This bug is HP SR number 8606223364.
14837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14838$as_echo_n "checking size of int... " >&6; }
14839if test "${ac_cv_sizeof_int+set}" = set; then :
14840 $as_echo_n "(cached) " >&6
107c3bbf 14841else
cd9a469c 14842 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14843
14844else
14845 if test "$ac_cv_type_int" = yes; then
14846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14848{ as_fn_set_status 77
14849as_fn_error "cannot compute sizeof (int)
14850See \`config.log' for more details." "$LINENO" 5; }; }
14851 else
14852 ac_cv_sizeof_int=0
14853 fi
14854fi
14855
14856fi
14857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14858$as_echo "$ac_cv_sizeof_int" >&6; }
14859
14860
14861
14862cat >>confdefs.h <<_ACEOF
14863#define SIZEOF_INT $ac_cv_sizeof_int
14864_ACEOF
107c3bbf 14865
cd9a469c 14866
14867 # The cast to long int works around a bug in the HP C Compiler
14868# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14869# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14870# This bug is HP SR number 8606223364.
14871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14872$as_echo_n "checking size of short... " >&6; }
14873if test "${ac_cv_sizeof_short+set}" = set; then :
14874 $as_echo_n "(cached) " >&6
107c3bbf 14875else
cd9a469c 14876 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
107c3bbf 14877
cd9a469c 14878else
14879 if test "$ac_cv_type_short" = yes; then
14880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14882{ as_fn_set_status 77
14883as_fn_error "cannot compute sizeof (short)
14884See \`config.log' for more details." "$LINENO" 5; }; }
14885 else
14886 ac_cv_sizeof_short=0
14887 fi
107c3bbf 14888fi
cd9a469c 14889
107c3bbf 14890fi
cd9a469c 14891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14892$as_echo "$ac_cv_sizeof_short" >&6; }
107c3bbf 14893
107c3bbf 14894
cd9a469c 14895
14896cat >>confdefs.h <<_ACEOF
14897#define SIZEOF_SHORT $ac_cv_sizeof_short
107c3bbf 14898_ACEOF
cd9a469c 14899
14900
14901 # The cast to long int works around a bug in the HP C Compiler
14902# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14903# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14904# This bug is HP SR number 8606223364.
14905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14906$as_echo_n "checking size of char... " >&6; }
14907if test "${ac_cv_sizeof_char+set}" = set; then :
14908 $as_echo_n "(cached) " >&6
107c3bbf 14909else
cd9a469c 14910 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
107c3bbf 14911
107c3bbf 14912else
cd9a469c 14913 if test "$ac_cv_type_char" = yes; then
14914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14915$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14916{ as_fn_set_status 77
14917as_fn_error "cannot compute sizeof (char)
14918See \`config.log' for more details." "$LINENO" 5; }; }
14919 else
14920 ac_cv_sizeof_char=0
14921 fi
14922fi
107c3bbf 14923
cd9a469c 14924fi
14925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14926$as_echo "$ac_cv_sizeof_char" >&6; }
107c3bbf 14927
107c3bbf 14928
cd9a469c 14929
14930cat >>confdefs.h <<_ACEOF
14931#define SIZEOF_CHAR $ac_cv_sizeof_char
107c3bbf 14932_ACEOF
107c3bbf 14933
cd9a469c 14934
14935
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
14937$as_echo_n "checking for type equivalent to int8_t... " >&6; }
14938 case "$ac_cv_sizeof_char" in
14939 1) acx_cv_type_int8_t=char ;;
9b15a251 14940 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
cd9a469c 14941 esac
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
14943$as_echo "$acx_cv_type_int8_t" >&6; }
14944
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
14946$as_echo_n "checking for type equivalent to int16_t... " >&6; }
14947 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14948 2:*) acx_cv_type_int16_t=int ;;
14949 *:2) acx_cv_type_int16_t=short ;;
9b15a251 14950 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
cd9a469c 14951 esac
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
14953$as_echo "$acx_cv_type_int16_t" >&6; }
14954
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
14956$as_echo_n "checking for type equivalent to int32_t... " >&6; }
14957 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14958 4:*) acx_cv_type_int32_t=int ;;
14959 *:4) acx_cv_type_int32_t=long ;;
9b15a251 14960 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
cd9a469c 14961 esac
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
14963$as_echo "$acx_cv_type_int32_t" >&6; }
107c3bbf 14964fi
cd9a469c 14965
14966# These tests are here to make the output prettier
14967
14968if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14969 case "$ac_cv_sizeof_long" in
14970 8) acx_cv_type_int64_t=long ;;
14971 esac
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
14973$as_echo_n "checking for type equivalent to int64_t... " >&6; }
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14975$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
107c3bbf 14976fi
cd9a469c 14977
14978# Now we can use the above types
14979
14980if test "$ac_cv_type_uintptr_t" != yes; then
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
14982$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
14983 case $ac_cv_sizeof_void_p in
14984 2) acx_cv_type_intptr_t=int16_t ;;
14985 4) acx_cv_type_intptr_t=int32_t ;;
14986 8) acx_cv_type_intptr_t=int64_t ;;
9b15a251 14987 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
cd9a469c 14988 esac
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
14990$as_echo "$acx_cv_type_intptr_t" >&6; }
107c3bbf 14991fi
107c3bbf 14992
cd9a469c 14993# ----------------- done all checks, emit header -------------
14994ac_config_commands="$ac_config_commands gstdint.h"
14995
14996
14997
14998
14999# Check to see if -pthread or -lpthread is needed. Prefer the former.
15000# In case the pthread.h system header is not found, this test will fail.
15001XPCFLAGS=""
15002CFLAGS="$CFLAGS -pthread"
15003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004/* end confdefs.h. */
15005#include <pthread.h>
15006 void *g(void *d) { return NULL; }
fd6481cf 15007int
15008main ()
15009{
cd9a469c 15010pthread_t t; pthread_create(&t,NULL,g,NULL);
fd6481cf 15011 ;
15012 return 0;
15013}
15014_ACEOF
cd9a469c 15015if ac_fn_c_try_link "$LINENO"; then :
15016 XPCFLAGS=" -Wc,-pthread"
15017else
15018 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15020/* end confdefs.h. */
cd9a469c 15021#include <pthread.h>
15022 void *g(void *d) { return NULL; }
fd6481cf 15023int
15024main ()
15025{
cd9a469c 15026pthread_t t; pthread_create(&t,NULL,g,NULL);
fd6481cf 15027 ;
15028 return 0;
15029}
15030_ACEOF
cd9a469c 15031if ac_fn_c_try_link "$LINENO"; then :
fd6481cf 15032
fd6481cf 15033else
cd9a469c 15034 as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15035fi
15036rm -f core conftest.err conftest.$ac_objext \
15037 conftest$ac_exeext conftest.$ac_ext
15038fi
15039rm -f core conftest.err conftest.$ac_objext \
15040 conftest$ac_exeext conftest.$ac_ext
fd6481cf 15041
cd9a469c 15042# Check for functions needed.
15043for ac_func in getloadavg clock_gettime strtoull
15044do :
15045 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15046ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15047eval as_val=\$$as_ac_var
15048 if test "x$as_val" = x""yes; then :
15049 cat >>confdefs.h <<_ACEOF
15050#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
fd6481cf 15051_ACEOF
fd6481cf 15052
cd9a469c 15053fi
15054done
15055
15056
15057# Check for broken semaphore implementation on darwin.
15058# sem_init returns: sem_init error: Function not implemented.
15059case "$host" in
15060 *-darwin*)
15061
15062$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15063
15064 ;;
15065esac
15066
15067 # Check whether --enable-linux-futex was given.
15068if test "${enable_linux_futex+set}" = set; then :
15069 enableval=$enable_linux_futex;
15070 case "$enableval" in
15071 yes|no|default) ;;
15072 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15073 esac
15074
15075else
15076 enable_linux_futex=default
15077fi
fd6481cf 15078
fd6481cf 15079
cd9a469c 15080case "$target" in
15081 *-linux*)
15082 case "$enable_linux_futex" in
15083 default)
15084 # If headers don't have gettid/futex syscalls definition, then
15085 # default to no, otherwise there will be compile time failures.
15086 # Otherwise, default to yes. If we don't detect we are
15087 # compiled/linked against NPTL and not cross-compiling, check
15088 # if programs are run by default against NPTL and if not, issue
15089 # a warning.
15090 enable_linux_futex=no
15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092/* end confdefs.h. */
15093#include <sys/syscall.h>
15094 int lk;
fd6481cf 15095int
15096main ()
15097{
cd9a469c 15098syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
fd6481cf 15099 ;
15100 return 0;
15101}
15102_ACEOF
cd9a469c 15103if ac_fn_c_try_link "$LINENO"; then :
15104 save_LIBS="$LIBS"
15105 LIBS="-lpthread $LIBS"
15106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15107/* end confdefs.h. */
cd9a469c 15108#ifndef _GNU_SOURCE
15109 #define _GNU_SOURCE 1
15110 #endif
15111 #include <pthread.h>
15112 pthread_t th; void *status;
fd6481cf 15113int
15114main ()
15115{
cd9a469c 15116pthread_tryjoin_np (th, &status);
fd6481cf 15117 ;
15118 return 0;
15119}
15120_ACEOF
cd9a469c 15121if ac_fn_c_try_link "$LINENO"; then :
15122 enable_linux_futex=yes
fd6481cf 15123else
cd9a469c 15124 if test x$cross_compiling = xno; then
15125 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15126 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15128If so, please configure with --disable-linux-futex" >&5
15129$as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15130If so, please configure with --disable-linux-futex" >&2;}
15131 fi
15132 fi
15133 enable_linux_futex=yes
fd6481cf 15134fi
cd9a469c 15135rm -f core conftest.err conftest.$ac_objext \
15136 conftest$ac_exeext conftest.$ac_ext
15137 LIBS="$save_LIBS"
15138fi
15139rm -f core conftest.err conftest.$ac_objext \
15140 conftest$ac_exeext conftest.$ac_ext
15141 ;;
15142 yes)
15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15144/* end confdefs.h. */
cd9a469c 15145#include <sys/syscall.h>
15146 int lk;
fd6481cf 15147int
15148main ()
15149{
cd9a469c 15150syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
fd6481cf 15151 ;
15152 return 0;
15153}
15154_ACEOF
cd9a469c 15155if ac_fn_c_try_link "$LINENO"; then :
fd6481cf 15156
cd9a469c 15157else
15158 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
fd6481cf 15159fi
cd9a469c 15160rm -f core conftest.err conftest.$ac_objext \
15161 conftest$ac_exeext conftest.$ac_ext
15162 ;;
15163 esac
15164 ;;
15165 *)
15166 enable_linux_futex=no
15167 ;;
15168esac
15169if test x$enable_linux_futex = xyes; then
15170 :
fd6481cf 15171fi
fd6481cf 15172
cd9a469c 15173
15174# Check for pthread_{,attr_}[sg]etaffinity_np.
15175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176/* end confdefs.h. */
15177#define _GNU_SOURCE
15178 #include <pthread.h>
fd6481cf 15179int
15180main ()
15181{
cd9a469c 15182cpu_set_t cpuset;
15183 pthread_attr_t attr;
15184 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15185 if (CPU_ISSET (0, &cpuset))
15186 CPU_SET (1, &cpuset);
15187 else
15188 CPU_ZERO (&cpuset);
15189 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15190 pthread_attr_init (&attr);
15191 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15192 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
fd6481cf 15193 ;
15194 return 0;
15195}
15196_ACEOF
cd9a469c 15197if ac_fn_c_try_link "$LINENO"; then :
15198
15199$as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15200
15201fi
15202rm -f core conftest.err conftest.$ac_objext \
15203 conftest$ac_exeext conftest.$ac_ext
15204
15205# At least for glibc, clock_gettime is in librt. But don't pull that
15206# in if it still doesn't give us the function we want.
15207if test $ac_cv_func_clock_gettime = no; then
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15209$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15210if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15211 $as_echo_n "(cached) " >&6
15212else
15213 ac_check_lib_save_LIBS=$LIBS
15214LIBS="-lrt $LIBS"
15215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15216/* end confdefs.h. */
15217
cd9a469c 15218/* Override any GCC internal prototype to avoid an error.
15219 Use char because int might match the return type of a GCC
15220 builtin and then its argument prototype would still apply. */
15221#ifdef __cplusplus
15222extern "C"
15223#endif
15224char clock_gettime ();
fd6481cf 15225int
15226main ()
15227{
cd9a469c 15228return clock_gettime ();
fd6481cf 15229 ;
15230 return 0;
15231}
15232_ACEOF
cd9a469c 15233if ac_fn_c_try_link "$LINENO"; then :
15234 ac_cv_lib_rt_clock_gettime=yes
fd6481cf 15235else
cd9a469c 15236 ac_cv_lib_rt_clock_gettime=no
15237fi
15238rm -f core conftest.err conftest.$ac_objext \
15239 conftest$ac_exeext conftest.$ac_ext
15240LIBS=$ac_check_lib_save_LIBS
15241fi
15242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15243$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15244if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15245 LIBS="-lrt $LIBS"
15246
15247$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
fd6481cf 15248
fd6481cf 15249fi
cd9a469c 15250
15251fi
15252
15253# See if we support thread-local storage.
15254
15255
15256 # Check whether --enable-tls was given.
15257if test "${enable_tls+set}" = set; then :
15258 enableval=$enable_tls;
15259 case "$enableval" in
15260 yes|no) ;;
15261 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15262 esac
15263
15264else
15265 enable_tls=yes
15266fi
15267
15268
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15270$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15271if test "${gcc_cv_have_tls+set}" = set; then :
15272 $as_echo_n "(cached) " >&6
fd6481cf 15273else
fd6481cf 15274
cd9a469c 15275 if test "$cross_compiling" = yes; then :
15276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277/* end confdefs.h. */
15278__thread int a; int b; int main() { return a = b; }
15279_ACEOF
15280if ac_fn_c_try_link "$LINENO"; then :
15281 chktls_save_LDFLAGS="$LDFLAGS"
15282 case $host in
15283 *-*-linux*)
15284 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15285 ;;
15286 esac
15287 chktls_save_CFLAGS="$CFLAGS"
15288 CFLAGS="-fPIC $CFLAGS"
15289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15290/* end confdefs.h. */
15291int f() { return 0; }
fd6481cf 15292_ACEOF
cd9a469c 15293if ac_fn_c_try_link "$LINENO"; then :
15294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15295/* end confdefs.h. */
cd9a469c 15296__thread int a; int b; int f() { return a = b; }
15297_ACEOF
15298if ac_fn_c_try_link "$LINENO"; then :
15299 gcc_cv_have_tls=yes
15300else
15301 gcc_cv_have_tls=no
15302fi
15303rm -f core conftest.err conftest.$ac_objext \
15304 conftest$ac_exeext conftest.$ac_ext
15305else
15306 gcc_cv_have_tls=yes
15307fi
15308rm -f core conftest.err conftest.$ac_objext \
15309 conftest$ac_exeext conftest.$ac_ext
15310 CFLAGS="$chktls_save_CFLAGS"
15311 LDFLAGS="$chktls_save_LDFLAGS"
15312else
15313 gcc_cv_have_tls=no
15314fi
15315rm -f core conftest.err conftest.$ac_objext \
15316 conftest$ac_exeext conftest.$ac_ext
fd6481cf 15317
fd6481cf 15318
cd9a469c 15319else
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321/* end confdefs.h. */
15322__thread int a; int b; int main() { return a = b; }
fd6481cf 15323_ACEOF
cd9a469c 15324if ac_fn_c_try_run "$LINENO"; then :
15325 chktls_save_LDFLAGS="$LDFLAGS"
15326 LDFLAGS="-static $LDFLAGS"
15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328/* end confdefs.h. */
15329int main() { return 0; }
fd6481cf 15330_ACEOF
cd9a469c 15331if ac_fn_c_try_link "$LINENO"; then :
15332 if test "$cross_compiling" = yes; then :
15333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15335as_fn_error "cannot run test program while cross compiling
15336See \`config.log' for more details." "$LINENO" 5; }
15337else
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15339/* end confdefs.h. */
cd9a469c 15340__thread int a; int b; int main() { return a = b; }
15341_ACEOF
15342if ac_fn_c_try_run "$LINENO"; then :
15343 gcc_cv_have_tls=yes
15344else
15345 gcc_cv_have_tls=no
15346fi
15347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15348 conftest.$ac_objext conftest.beam conftest.$ac_ext
15349fi
fd6481cf 15350
cd9a469c 15351else
15352 gcc_cv_have_tls=yes
15353fi
15354rm -f core conftest.err conftest.$ac_objext \
15355 conftest$ac_exeext conftest.$ac_ext
15356 LDFLAGS="$chktls_save_LDFLAGS"
15357 if test $gcc_cv_have_tls = yes; then
15358 chktls_save_CFLAGS="$CFLAGS"
15359 thread_CFLAGS=failed
15360 for flag in '' '-pthread' '-lpthread'; do
15361 CFLAGS="$flag $chktls_save_CFLAGS"
15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363/* end confdefs.h. */
15364#include <pthread.h>
15365 void *g(void *d) { return NULL; }
fd6481cf 15366int
15367main ()
15368{
cd9a469c 15369pthread_t t; pthread_create(&t,NULL,g,NULL);
fd6481cf 15370 ;
15371 return 0;
15372}
15373_ACEOF
cd9a469c 15374if ac_fn_c_try_link "$LINENO"; then :
15375 thread_CFLAGS="$flag"
fd6481cf 15376fi
cd9a469c 15377rm -f core conftest.err conftest.$ac_objext \
15378 conftest$ac_exeext conftest.$ac_ext
15379 if test "X$thread_CFLAGS" != Xfailed; then
15380 break
15381 fi
15382 done
15383 CFLAGS="$chktls_save_CFLAGS"
15384 if test "X$thread_CFLAGS" != Xfailed; then
15385 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
9b15a251 15386 if test "$cross_compiling" = yes; then :
cd9a469c 15387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15389as_fn_error "cannot run test program while cross compiling
15390See \`config.log' for more details." "$LINENO" 5; }
fd6481cf 15391else
cd9a469c 15392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15393/* end confdefs.h. */
cd9a469c 15394#include <pthread.h>
15395 __thread int a;
9a2be164 15396 static int *volatile a_in_other_thread;
cd9a469c 15397 static void *
15398 thread_func (void *arg)
15399 {
15400 a_in_other_thread = &a;
15401 return (void *)0;
15402 }
fd6481cf 15403int
15404main ()
15405{
cd9a469c 15406pthread_t thread;
15407 void *thread_retval;
9a2be164 15408 int *volatile a_in_main_thread;
15409 a_in_main_thread = &a;
cd9a469c 15410 if (pthread_create (&thread, (pthread_attr_t *)0,
15411 thread_func, (void *)0))
15412 return 0;
cd9a469c 15413 if (pthread_join (thread, &thread_retval))
15414 return 0;
15415 return (a_in_other_thread == a_in_main_thread);
fd6481cf 15416 ;
15417 return 0;
15418}
15419_ACEOF
cd9a469c 15420if ac_fn_c_try_run "$LINENO"; then :
15421 gcc_cv_have_tls=yes
fd6481cf 15422else
cd9a469c 15423 gcc_cv_have_tls=no
15424fi
15425rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15426 conftest.$ac_objext conftest.beam conftest.$ac_ext
15427fi
15428
15429 CFLAGS="$chktls_save_CFLAGS"
15430 fi
15431 fi
15432else
15433 gcc_cv_have_tls=no
15434fi
15435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15436 conftest.$ac_objext conftest.beam conftest.$ac_ext
15437fi
fd6481cf 15438
fd6481cf 15439fi
cd9a469c 15440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15441$as_echo "$gcc_cv_have_tls" >&6; }
15442 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15443
15444$as_echo "#define HAVE_TLS 1" >>confdefs.h
15445
15446 fi
15447
15448# See what sort of export controls are availible.
15449
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15451$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15452if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15453 $as_echo_n "(cached) " >&6
fd6481cf 15454else
fd6481cf 15455
cd9a469c 15456 save_CFLAGS="$CFLAGS"
15457 CFLAGS="$CFLAGS -Werror"
15458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459/* end confdefs.h. */
15460void __attribute__((visibility("hidden"))) foo(void) { }
fd6481cf 15461int
15462main ()
15463{
15464
fd6481cf 15465 ;
15466 return 0;
15467}
15468_ACEOF
cd9a469c 15469if ac_fn_c_try_compile "$LINENO"; then :
15470 libgomp_cv_have_attribute_visibility=yes
fd6481cf 15471else
cd9a469c 15472 libgomp_cv_have_attribute_visibility=no
fd6481cf 15473fi
cd9a469c 15474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15475 CFLAGS="$save_CFLAGS"
fd6481cf 15476fi
cd9a469c 15477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15478$as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15479 if test $libgomp_cv_have_attribute_visibility = yes; then
15480
15481$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15482
15483 fi
15484
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15486$as_echo_n "checking whether the target supports dllexport... " >&6; }
15487if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15488 $as_echo_n "(cached) " >&6
15489else
fd6481cf 15490
cd9a469c 15491 save_CFLAGS="$CFLAGS"
15492 CFLAGS="$CFLAGS -Werror"
15493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15494/* end confdefs.h. */
15495void __attribute__((dllexport)) foo(void) { }
fd6481cf 15496int
15497main ()
15498{
fd6481cf 15499
15500 ;
15501 return 0;
15502}
15503_ACEOF
cd9a469c 15504if ac_fn_c_try_compile "$LINENO"; then :
15505 libgomp_cv_have_attribute_dllexport=yes
15506else
15507 libgomp_cv_have_attribute_dllexport=no
15508fi
15509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15510 CFLAGS="$save_CFLAGS"
15511fi
15512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15513$as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15514 if test $libgomp_cv_have_attribute_dllexport = yes; then
15515
15516$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15517
15518 fi
15519
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15521$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15522if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
15523 $as_echo_n "(cached) " >&6
15524else
15525
15526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15527/* end confdefs.h. */
15528
cd9a469c 15529void foo(void) { }
15530extern void bar(void) __attribute__((alias("foo")));
fd6481cf 15531int
15532main ()
15533{
cd9a469c 15534bar();
fd6481cf 15535 ;
15536 return 0;
15537}
15538_ACEOF
cd9a469c 15539if ac_fn_c_try_link "$LINENO"; then :
15540 libgomp_cv_have_attribute_alias=yes
fd6481cf 15541else
cd9a469c 15542 libgomp_cv_have_attribute_alias=no
15543fi
15544rm -f core conftest.err conftest.$ac_objext \
15545 conftest$ac_exeext conftest.$ac_ext
15546fi
15547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15548$as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15549 if test $libgomp_cv_have_attribute_alias = yes; then
15550
15551$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15552
15553 fi
15554
15555
15556# Check whether --with-gnu-ld was given.
15557if test "${with_gnu_ld+set}" = set; then :
15558 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15559else
15560 with_gnu_ld=no
15561fi
fd6481cf 15562
cd9a469c 15563ac_prog=ld
15564if test "$GCC" = yes; then
15565 # Check if gcc -print-prog-name=ld gives a path.
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15567$as_echo_n "checking for ld used by $CC... " >&6; }
15568 case $host in
15569 *-*-mingw*)
15570 # gcc leaves a trailing carriage return which upsets mingw
15571 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15572 *)
15573 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15574 esac
15575 case $ac_prog in
15576 # Accept absolute paths.
15577 [\\/]* | ?:[\\/]*)
15578 re_direlt='/[^/][^/]*/\.\./'
15579 # Canonicalize the pathname of ld
15580 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15581 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15582 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15583 done
15584 test -z "$LD" && LD="$ac_prog"
15585 ;;
15586 "")
15587 # If it fails, then pretend we aren't using GCC.
15588 ac_prog=ld
15589 ;;
15590 *)
15591 # If it is relative, then search for the first ld in PATH.
15592 with_gnu_ld=unknown
15593 ;;
15594 esac
15595elif test "$with_gnu_ld" = yes; then
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15597$as_echo_n "checking for GNU ld... " >&6; }
15598else
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15600$as_echo_n "checking for non-GNU ld... " >&6; }
fd6481cf 15601fi
cd9a469c 15602if test "${lt_cv_path_LD+set}" = set; then :
15603 $as_echo_n "(cached) " >&6
15604else
15605 if test -z "$LD"; then
15606 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15607 for ac_dir in $PATH; do
15608 IFS="$lt_save_ifs"
15609 test -z "$ac_dir" && ac_dir=.
15610 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15611 lt_cv_path_LD="$ac_dir/$ac_prog"
15612 # Check to see if the program is GNU ld. I'd rather use --version,
15613 # but apparently some variants of GNU ld only accept -v.
15614 # Break only if it was the GNU/non-GNU ld that we prefer.
15615 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15616 *GNU* | *'with BFD'*)
15617 test "$with_gnu_ld" != no && break
15618 ;;
15619 *)
15620 test "$with_gnu_ld" != yes && break
15621 ;;
15622 esac
15623 fi
fd6481cf 15624 done
cd9a469c 15625 IFS="$lt_save_ifs"
fd6481cf 15626else
cd9a469c 15627 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15628fi
15629fi
15630
15631LD="$lt_cv_path_LD"
15632if test -n "$LD"; then
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15634$as_echo "$LD" >&6; }
15635else
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15637$as_echo "no" >&6; }
15638fi
15639test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15641$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15642if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15643 $as_echo_n "(cached) " >&6
15644else
15645 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15646case `$LD -v 2>&1 </dev/null` in
15647*GNU* | *'with BFD'*)
15648 lt_cv_prog_gnu_ld=yes
15649 ;;
15650*)
15651 lt_cv_prog_gnu_ld=no
15652 ;;
15653esac
15654fi
15655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15656$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15657with_gnu_ld=$lt_cv_prog_gnu_ld
15658
15659
15660
15661
15662
15663
15664
15665 # If we're not using GNU ld, then there's no point in even trying these
15666 # tests. Check for that first. We should have already tested for gld
15667 # by now (in libtool), but require it now just to be safe...
15668 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15669 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15670
15671
15672
15673 # The name set by libtool depends on the version of libtool. Shame on us
15674 # for depending on an impl detail, but c'est la vie. Older versions used
15675 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15676 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15677 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
15678 # set (hence we're using an older libtool), then set it.
15679 if test x${with_gnu_ld+set} != xset; then
15680 if test x${ac_cv_prog_gnu_ld+set} != xset; then
15681 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
15682 with_gnu_ld=no
15683 else
15684 with_gnu_ld=$ac_cv_prog_gnu_ld
15685 fi
15686 fi
15687
15688 # Start by getting the version number. I think the libtool test already
15689 # does some of this, but throws away the result.
15690 libgomp_ld_is_gold=no
15691 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15692 libgomp_ld_is_gold=yes
15693 fi
15694
8dc52806 15695 ldver=`$LD --version 2>/dev/null |
8b501d36 15696 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'`
cd9a469c 15697
15698 libgomp_gnu_ld_version=`echo $ldver | \
15699 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15700
15701 # Set --gc-sections.
15702 if test "$with_gnu_ld" = "notbroken"; then
15703 # GNU ld it is! Joy and bunny rabbits!
15704
15705 # All these tests are for C++; save the language and the compiler flags.
15706 # Need to do this so that g++ won't try to link in libstdc++
15707 ac_test_CFLAGS="${CFLAGS+set}"
15708 ac_save_CFLAGS="$CFLAGS"
15709 CFLAGS='-x c++ -Wl,--gc-sections'
15710
15711 # Check for -Wl,--gc-sections
15712 # XXX This test is broken at the moment, as symbols required for linking
15713 # are now in libsupc++ (not built yet). In addition, this test has
15714 # cored on solaris in the past. In addition, --gc-sections doesn't
15715 # really work at the moment (keeps on discarding used sections, first
15716 # .eh_frame and now some of the glibc sections for iconv).
15717 # Bzzzzt. Thanks for playing, maybe next time.
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15719$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15720 if test "$cross_compiling" = yes; then :
15721 ac_sectionLDflags=yes
15722else
15723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724/* end confdefs.h. */
15725
15726 int main(void)
15727 {
15728 try { throw 1; }
15729 catch (...) { };
15730 return 0;
15731 }
fd6481cf 15732
fd6481cf 15733_ACEOF
cd9a469c 15734if ac_fn_c_try_run "$LINENO"; then :
15735 ac_sectionLDflags=yes
15736else
15737 ac_sectionLDflags=no
15738fi
15739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15740 conftest.$ac_objext conftest.beam conftest.$ac_ext
15741fi
15742
15743 if test "$ac_test_CFLAGS" = set; then
15744 CFLAGS="$ac_save_CFLAGS"
15745 else
15746 # this is the suspicious part
15747 CFLAGS=''
15748 fi
15749 if test "$ac_sectionLDflags" = "yes"; then
15750 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15751 fi
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15753$as_echo "$ac_sectionLDflags" >&6; }
15754 fi
15755
15756 # Set linker optimization flags.
15757 if test x"$with_gnu_ld" = x"yes"; then
15758 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15759 fi
15760
15761
15762
15763
15764
15765
15766 # Check whether --enable-symvers was given.
15767if test "${enable_symvers+set}" = set; then :
15768 enableval=$enable_symvers;
15769 case "$enableval" in
de656189 15770 yes|no|gnu*|sun) ;;
cd9a469c 15771 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
15772 esac
15773
15774else
15775 enable_symvers=yes
15776fi
15777
15778
15779
15780# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
15781# don't know enough about $LD to do tricks...
15782
bbb514dc 15783
15784# Turn a 'yes' into a suitable default.
15785if test x$enable_symvers = xyes ; then
15786 # FIXME The following test is too strict, in theory.
15787 if test $enable_shared = no || test "x$LD" = x; then
15788 enable_symvers=no
71cbce26 15789 else
bbb514dc 15790 if test $with_gnu_ld = yes ; then
15791 enable_symvers=gnu
15792 else
15793 case ${target_os} in
15794 # Sun symbol versioning exists since Solaris 2.5.
15795 solaris2.[5-9]* | solaris2.1[0-9]*)
15796 enable_symvers=sun ;;
15797 *)
15798 enable_symvers=no ;;
15799 esac
15800 fi
71cbce26 15801 fi
15802fi
15803
15804# Check if 'sun' was requested on non-Solaris 2 platforms.
15805if test x$enable_symvers = xsun ; then
15806 case ${target_os} in
15807 solaris2*)
15808 # All fine.
15809 ;;
15810 *)
15811 # Unlikely to work.
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
15813$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
15815$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15817$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15818 enable_symvers=no
15819 ;;
15820 esac
cd9a469c 15821fi
15822
15823# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15824if test $enable_symvers != no; then
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15826$as_echo_n "checking for shared libgcc... " >&6; }
15827 ac_save_CFLAGS="$CFLAGS"
15828 CFLAGS=' -lgcc_s'
15829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15830/* end confdefs.h. */
15831
15832int
15833main ()
15834{
cd9a469c 15835return 0;
fd6481cf 15836 ;
15837 return 0;
15838}
15839_ACEOF
cd9a469c 15840if ac_fn_c_try_link "$LINENO"; then :
15841 libgomp_shared_libgcc=yes
15842else
15843 libgomp_shared_libgcc=no
15844fi
15845rm -f core conftest.err conftest.$ac_objext \
15846 conftest$ac_exeext conftest.$ac_ext
15847 CFLAGS="$ac_save_CFLAGS"
15848 if test $libgomp_shared_libgcc = no; then
15849 cat > conftest.c <<EOF
15850int main (void) { return 0; }
15851EOF
15852 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15853 -shared -shared-libgcc -o conftest.so \
15854 conftest.c -v 2>&1 >/dev/null \
15855 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15856 rm -f conftest.c conftest.so
15857 if test x${libgomp_libgcc_s_suffix+set} = xset; then
15858 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
15859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15860/* end confdefs.h. */
15861
15862int
15863main ()
15864{
cd9a469c 15865return 0;
fd6481cf 15866 ;
15867 return 0;
15868}
15869_ACEOF
cd9a469c 15870if ac_fn_c_try_link "$LINENO"; then :
15871 libgomp_shared_libgcc=yes
15872fi
15873rm -f core conftest.err conftest.$ac_objext \
15874 conftest$ac_exeext conftest.$ac_ext
15875 CFLAGS="$ac_save_CFLAGS"
15876 fi
15877 fi
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
15879$as_echo "$libgomp_shared_libgcc" >&6; }
15880fi
15881
15882# For GNU ld, we need at least this version. The format is described in
15883# LIBGOMP_CHECK_LINKER_FEATURES above.
15884libgomp_min_gnu_ld_version=21400
15885# XXXXXXXXXXX libgomp_gnu_ld_version=21390
fd6481cf 15886
cd9a469c 15887# Check to see if unspecified "yes" value can win, given results above.
15888# Change "yes" into either "no" or a style name.
71cbce26 15889if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
15890 if test $with_gnu_ld = yes; then
cd9a469c 15891 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
15892 enable_symvers=gnu
15893 elif test $libgomp_ld_is_gold = yes ; then
15894 enable_symvers=gnu
15895 else
15896 # The right tools, the right setup, but too old. Fallbacks?
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
15898$as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15900$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15902$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
15904$as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
15905 if test $libgomp_gnu_ld_version -ge 21200 ; then
15906 # Globbing fix is present, proper block support is not.
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15908$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15909 enable_symvers=no
15910 else
15911 # 2.11 or older.
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15913$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15914 enable_symvers=no
15915 fi
15916 fi
71cbce26 15917 elif test $enable_symvers = sun; then
15918 : All interesting versions of Sun ld support sun style symbol versioning.
cd9a469c 15919 else
15920 # just fail for now
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15922$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15924$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15926$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15928$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15929 enable_symvers=no
15930 fi
fd6481cf 15931fi
cd9a469c 15932
15933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
15934$as_echo_n "checking whether the target supports .symver directive... " >&6; }
15935if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
15936 $as_echo_n "(cached) " >&6
fd6481cf 15937else
fd6481cf 15938
cd9a469c 15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15940/* end confdefs.h. */
cd9a469c 15941void foo (void); __asm (".symver foo, bar@SYMVER");
fd6481cf 15942int
15943main ()
15944{
fd6481cf 15945
15946 ;
15947 return 0;
15948}
15949_ACEOF
cd9a469c 15950if ac_fn_c_try_compile "$LINENO"; then :
15951 libgomp_cv_have_as_symver_directive=yes
fd6481cf 15952else
cd9a469c 15953 libgomp_cv_have_as_symver_directive=no
15954fi
15955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15956fi
15957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
15958$as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
15959if test $libgomp_cv_have_as_symver_directive = yes; then
15960
15961$as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
fd6481cf 15962
fd6481cf 15963fi
cd9a469c 15964
15965 if test $enable_symvers != no; then
15966 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
15967 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
fd6481cf 15968else
cd9a469c 15969 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
15970 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
15971fi
fd6481cf 15972
71cbce26 15973 if test $enable_symvers = gnu; then
15974 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
15975 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
15976else
15977 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
15978 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
15979fi
15980
15981 if test $enable_symvers = sun; then
15982 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
15983 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
15984else
15985 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
15986 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
15987fi
15988
cd9a469c 15989{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15990$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
fd6481cf 15991
71cbce26 15992if test $enable_symvers != no ; then
15993 case ${target_os} in
15994 # The Solaris 2 runtime linker doesn't support the GNU extension of
15995 # binding the same symbol to different versions
15996 solaris2*)
15997 symvers_renaming=no ;;
15998 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
15999 *)
16000
16001$as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16002
16003 symvers_renaming=yes ;;
16004 esac
5498a4cc 16005else
16006 symvers_renaming=no
71cbce26 16007fi
16008 if test $symvers_renaming = no; then
16009 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE=
16010 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE='#'
16011else
16012 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE='#'
16013 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE=
16014fi
16015
16016
fd6481cf 16017
cd9a469c 16018if test $enable_symvers = gnu; then
16019
16020$as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
fd6481cf 16021
16022fi
cd9a469c 16023
16024# Get target configury.
16025. ${srcdir}/configure.tgt
16026CFLAGS="$save_CFLAGS $XCFLAGS"
16027
16028# Check for __sync_val_compare_and_swap, but only after the target has
16029# had a chance to set XCFLAGS.
16030
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16032$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16033if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16034 $as_echo_n "(cached) " >&6
16035else
16036
16037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 16038/* end confdefs.h. */
16039
16040int
16041main ()
16042{
14a88549 16043int foo; __sync_val_compare_and_swap(&foo, 0, 1);
fd6481cf 16044 ;
16045 return 0;
16046}
16047_ACEOF
cd9a469c 16048if ac_fn_c_try_link "$LINENO"; then :
16049 libgomp_cv_have_sync_builtins=yes
16050else
16051 libgomp_cv_have_sync_builtins=no
16052fi
16053rm -f core conftest.err conftest.$ac_objext \
16054 conftest$ac_exeext conftest.$ac_ext
16055fi
16056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16057$as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16058 if test $libgomp_cv_have_sync_builtins = yes; then
fd6481cf 16059
cd9a469c 16060$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16061
16062 fi
16063
16064XCFLAGS="$XCFLAGS$XPCFLAGS"
16065
16066
16067
16068
16069
16070# Cleanup and exit.
16071CFLAGS="$save_CFLAGS"
16072cat >confcache <<\_ACEOF
16073# This file is a shell script that caches the results of configure
16074# tests run on this system so they can be shared between configure
16075# scripts and configure runs, see configure's option --config-cache.
16076# It is not useful on other systems. If it contains results you don't
16077# want to keep, you may remove or edit it.
16078#
16079# config.status only pays attention to the cache file if you give it
16080# the --recheck option to rerun configure.
16081#
16082# `ac_cv_env_foo' variables (set or unset) will be overridden when
16083# loading this file, other *unset* `ac_cv_foo' will be assigned the
16084# following values.
fd6481cf 16085
fd6481cf 16086_ACEOF
cd9a469c 16087
16088# The following way of writing the cache mishandles newlines in values,
16089# but we know of no workaround that is simple, portable, and efficient.
16090# So, we kill variables containing newlines.
16091# Ultrix sh set writes to stderr and can't be redirected directly,
16092# and sets the high bit in the cache file unless we assign to the vars.
16093(
16094 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16095 eval ac_val=\$$ac_var
16096 case $ac_val in #(
16097 *${as_nl}*)
16098 case $ac_var in #(
16099 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16100$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16101 esac
16102 case $ac_var in #(
16103 _ | IFS | as_nl) ;; #(
16104 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16105 *) { eval $ac_var=; unset $ac_var;} ;;
16106 esac ;;
16107 esac
16108 done
16109
16110 (set) 2>&1 |
16111 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16112 *${as_nl}ac_space=\ *)
16113 # `set' does not quote correctly, so add quotes: double-quote
16114 # substitution turns \\\\ into \\, and sed turns \\ into \.
16115 sed -n \
16116 "s/'/'\\\\''/g;
16117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16118 ;; #(
16119 *)
16120 # `set' quotes correctly as required by POSIX, so do not add quotes.
16121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16122 ;;
16123 esac |
16124 sort
16125) |
16126 sed '
16127 /^ac_cv_env_/b end
16128 t clear
16129 :clear
16130 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16131 t end
16132 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16133 :end' >>confcache
16134if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16135 if test -w "$cache_file"; then
16136 test "x$cache_file" != "x/dev/null" &&
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16138$as_echo "$as_me: updating cache $cache_file" >&6;}
16139 cat confcache >$cache_file
16140 else
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16142$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16143 fi
16144fi
16145rm -f confcache
16146
16147if test ${multilib} = yes; then
16148 multilib_arg="--enable-multilib"
fd6481cf 16149else
cd9a469c 16150 multilib_arg=
16151fi
16152
16153# Set up the set of libraries that we need to link against for libgomp.
16154# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
16155# which will force linkage against -lpthread (or equivalent for the system).
16156# That's not 100% ideal, but about the best we can do easily.
16157if test $enable_shared = yes; then
16158 link_gomp="-lgomp %{static: $LIBS}"
16159else
16160 link_gomp="-lgomp $LIBS"
16161fi
16162
16163
16164 if test "$ac_cv_fc_compiler_gnu" = yes; then
16165 USE_FORTRAN_TRUE=
16166 USE_FORTRAN_FALSE='#'
16167else
16168 USE_FORTRAN_TRUE='#'
16169 USE_FORTRAN_FALSE=
16170fi
16171
16172
16173# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16174# and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16175# the underscore here and update the PREREQ. If it doesn't, then we'll
16176# need to copy this macro to our acinclude.m4.
16177save_CFLAGS="$CFLAGS"
16178for i in $config_path; do
16179 if test -f $srcdir/config/$i/omp-lock.h; then
16180 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16181 break
16182 fi
16183done
fd6481cf 16184
cd9a469c 16185if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
fd6481cf 16186
cd9a469c 16187else
16188 as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16189fi
fd6481cf 16190
fd6481cf 16191
cd9a469c 16192if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
fd6481cf 16193
cd9a469c 16194fi
fd6481cf 16195
fd6481cf 16196
cd9a469c 16197if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
fd6481cf 16198
fd6481cf 16199fi
fd6481cf 16200
fd6481cf 16201
cd9a469c 16202if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
fd6481cf 16203
fd6481cf 16204fi
fd6481cf 16205
fd6481cf 16206
cd9a469c 16207if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
fd6481cf 16208
fd6481cf 16209else
cd9a469c 16210 as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16211fi
16212
16213
16214if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
fd6481cf 16215
16216fi
cd9a469c 16217
16218
16219if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16220
fd6481cf 16221fi
cd9a469c 16222
16223
16224if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16225
fd6481cf 16226fi
cd9a469c 16227
16228
fd6481cf 16229
16230# If the lock fits in an integer, then arrange for Fortran to use that
16231# integer. If it doesn't, then arrange for Fortran to use a pointer.
16232# Except that we don't have a way at present to multi-lib the installed
16233# Fortran modules, so we assume 8 bytes for pointers, regardless of the
16234# actual target.
16235OMP_LOCK_KIND=$OMP_LOCK_SIZE
16236OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16237if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16238 OMP_LOCK_KIND=8
16239fi
16240if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16241 OMP_NEST_LOCK_KIND=8
16242fi
16243OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16244OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16245if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16246 OMP_LOCK_25_KIND=8
16247fi
16248if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16249 OMP_NEST_LOCK_25_KIND=8
16250fi
16251
16252
16253
16254
16255
16256
107c3bbf 16257
16258
16259
16260
16261
16262
16263
16264CFLAGS="$save_CFLAGS"
16265
cd9a469c 16266ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
107c3bbf 16267
cd9a469c 16268ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
1e8e9920 16269
16270cat >confcache <<\_ACEOF
16271# This file is a shell script that caches the results of configure
16272# tests run on this system so they can be shared between configure
16273# scripts and configure runs, see configure's option --config-cache.
16274# It is not useful on other systems. If it contains results you don't
16275# want to keep, you may remove or edit it.
16276#
16277# config.status only pays attention to the cache file if you give it
16278# the --recheck option to rerun configure.
16279#
16280# `ac_cv_env_foo' variables (set or unset) will be overridden when
16281# loading this file, other *unset* `ac_cv_foo' will be assigned the
16282# following values.
16283
16284_ACEOF
16285
16286# The following way of writing the cache mishandles newlines in values,
16287# but we know of no workaround that is simple, portable, and efficient.
cd9a469c 16288# So, we kill variables containing newlines.
1e8e9920 16289# Ultrix sh set writes to stderr and can't be redirected directly,
16290# and sets the high bit in the cache file unless we assign to the vars.
cd9a469c 16291(
16292 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16293 eval ac_val=\$$ac_var
16294 case $ac_val in #(
16295 *${as_nl}*)
16296 case $ac_var in #(
16297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16298$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16299 esac
16300 case $ac_var in #(
16301 _ | IFS | as_nl) ;; #(
16302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16303 *) { eval $ac_var=; unset $ac_var;} ;;
16304 esac ;;
16305 esac
16306 done
16307
1e8e9920 16308 (set) 2>&1 |
cd9a469c 16309 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16310 *${as_nl}ac_space=\ *)
16311 # `set' does not quote correctly, so add quotes: double-quote
16312 # substitution turns \\\\ into \\, and sed turns \\ into \.
1e8e9920 16313 sed -n \
16314 "s/'/'\\\\''/g;
16315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 16316 ;; #(
1e8e9920 16317 *)
16318 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 16319 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1e8e9920 16320 ;;
cd9a469c 16321 esac |
16322 sort
16323) |
1e8e9920 16324 sed '
cd9a469c 16325 /^ac_cv_env_/b end
1e8e9920 16326 t clear
cd9a469c 16327 :clear
1e8e9920 16328 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16329 t end
cd9a469c 16330 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16331 :end' >>confcache
16332if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16333 if test -w "$cache_file"; then
16334 test "x$cache_file" != "x/dev/null" &&
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16336$as_echo "$as_me: updating cache $cache_file" >&6;}
1e8e9920 16337 cat confcache >$cache_file
16338 else
cd9a469c 16339 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16340$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1e8e9920 16341 fi
16342fi
16343rm -f confcache
16344
16345test "x$prefix" = xNONE && prefix=$ac_default_prefix
16346# Let make expand exec_prefix.
16347test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16348
1e8e9920 16349DEFS=-DHAVE_CONFIG_H
16350
16351ac_libobjs=
16352ac_ltlibobjs=
16353for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16354 # 1. Remove the extension, and $U if already installed.
cd9a469c 16355 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16356 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16357 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16358 # will be set to the directory where LIBOBJS objects are built.
16359 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16360 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1e8e9920 16361done
16362LIBOBJS=$ac_libobjs
16363
16364LTLIBOBJS=$ac_ltlibobjs
16365
16366
aeda7a78 16367if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
cd9a469c 16368 as_fn_error "conditional \"GENINSRC\" was never defined.
16369Usually this means the macro was only invoked conditionally." "$LINENO" 5
16370fi
16371 if test -n "$EXEEXT"; then
16372 am__EXEEXT_TRUE=
16373 am__EXEEXT_FALSE='#'
16374else
16375 am__EXEEXT_TRUE='#'
16376 am__EXEEXT_FALSE=
aeda7a78 16377fi
cd9a469c 16378
1e8e9920 16379if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cd9a469c 16380 as_fn_error "conditional \"AMDEP\" was never defined.
16381Usually this means the macro was only invoked conditionally." "$LINENO" 5
1e8e9920 16382fi
16383if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cd9a469c 16384 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16385Usually this means the macro was only invoked conditionally." "$LINENO" 5
1e8e9920 16386fi
439d698f 16387if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
cd9a469c 16388 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16389Usually this means the macro was only invoked conditionally." "$LINENO" 5
439d698f 16390fi
a263d1ab 16391if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cd9a469c 16392 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16393Usually this means the macro was only invoked conditionally." "$LINENO" 5
a263d1ab 16394fi
1e8e9920 16395if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
cd9a469c 16396 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16397Usually this means the macro was only invoked conditionally." "$LINENO" 5
1e8e9920 16398fi
71cbce26 16399if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16400 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16401Usually this means the macro was only invoked conditionally." "$LINENO" 5
16402fi
16403if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16404 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16405Usually this means the macro was only invoked conditionally." "$LINENO" 5
16406fi
16407if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE}"; then
16408 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2\" was never defined.
16409Usually this means the macro was only invoked conditionally." "$LINENO" 5
16410fi
1e8e9920 16411if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
cd9a469c 16412 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16413Usually this means the macro was only invoked conditionally." "$LINENO" 5
1e8e9920 16414fi
16415
16416: ${CONFIG_STATUS=./config.status}
cd9a469c 16417ac_write_fail=0
1e8e9920 16418ac_clean_files_save=$ac_clean_files
16419ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cd9a469c 16420{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16421$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16422as_write_fail=0
16423cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1e8e9920 16424#! $SHELL
16425# Generated by $as_me.
16426# Run this file to recreate the current configuration.
16427# Compiler output produced by configure, useful for debugging
16428# configure, is in config.log if it exists.
16429
16430debug=false
16431ac_cs_recheck=false
16432ac_cs_silent=false
1e8e9920 16433
cd9a469c 16434SHELL=\${CONFIG_SHELL-$SHELL}
16435export SHELL
16436_ASEOF
16437cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16438## -------------------- ##
16439## M4sh Initialization. ##
16440## -------------------- ##
16441
16442# Be more Bourne compatible
16443DUALCASE=1; export DUALCASE # for MKS sh
16444if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1e8e9920 16445 emulate sh
16446 NULLCMD=:
cd9a469c 16447 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1e8e9920 16448 # is contrary to our usage. Disable this feature.
16449 alias -g '${1+"$@"}'='"$@"'
cd9a469c 16450 setopt NO_GLOB_SUBST
16451else
16452 case `(set -o) 2>/dev/null` in #(
16453 *posix*) :
16454 set -o posix ;; #(
16455 *) :
16456 ;;
16457esac
1e8e9920 16458fi
1e8e9920 16459
cd9a469c 16460
16461as_nl='
16462'
16463export as_nl
16464# Printing a long string crashes Solaris 7 /usr/bin/printf.
16465as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16466as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16467as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16468# Prefer a ksh shell builtin over an external printf program on Solaris,
16469# but without wasting forks for bash or zsh.
16470if test -z "$BASH_VERSION$ZSH_VERSION" \
16471 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16472 as_echo='print -r --'
16473 as_echo_n='print -rn --'
16474elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16475 as_echo='printf %s\n'
16476 as_echo_n='printf %s'
16477else
16478 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16479 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16480 as_echo_n='/usr/ucb/echo -n'
16481 else
16482 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16483 as_echo_n_body='eval
16484 arg=$1;
16485 case $arg in #(
16486 *"$as_nl"*)
16487 expr "X$arg" : "X\\(.*\\)$as_nl";
16488 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16489 esac;
16490 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16491 '
16492 export as_echo_n_body
16493 as_echo_n='sh -c $as_echo_n_body as_echo'
16494 fi
16495 export as_echo_body
16496 as_echo='sh -c $as_echo_body as_echo'
16497fi
16498
16499# The user is always right.
16500if test "${PATH_SEPARATOR+set}" != set; then
16501 PATH_SEPARATOR=:
16502 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16503 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16504 PATH_SEPARATOR=';'
16505 }
1e8e9920 16506fi
16507
16508
cd9a469c 16509# IFS
16510# We need space, tab and new line, in precisely that order. Quoting is
16511# there to prevent editors from complaining about space-tab.
16512# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16513# splitting by setting IFS to empty value.)
16514IFS=" "" $as_nl"
16515
16516# Find who we are. Look in the path if we contain no directory separator.
16517case $0 in #((
16518 *[\\/]* ) as_myself=$0 ;;
16519 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16520for as_dir in $PATH
16521do
16522 IFS=$as_save_IFS
16523 test -z "$as_dir" && as_dir=.
16524 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16525 done
16526IFS=$as_save_IFS
16527
16528 ;;
16529esac
16530# We did not find ourselves, most probably we were run as `sh COMMAND'
16531# in which case we are not to be found in the path.
16532if test "x$as_myself" = x; then
16533 as_myself=$0
16534fi
16535if test ! -f "$as_myself"; then
16536 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16537 exit 1
16538fi
16539
16540# Unset variables that we do not need and which cause bugs (e.g. in
16541# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16542# suppresses any "Segmentation fault" message there. '((' could
16543# trigger a bug in pdksh 5.2.14.
16544for as_var in BASH_ENV ENV MAIL MAILPATH
16545do eval test x\${$as_var+set} = xset \
16546 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16547done
1e8e9920 16548PS1='$ '
16549PS2='> '
16550PS4='+ '
16551
16552# NLS nuisances.
cd9a469c 16553LC_ALL=C
16554export LC_ALL
16555LANGUAGE=C
16556export LANGUAGE
16557
16558# CDPATH.
16559(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16560
16561
16562# as_fn_error ERROR [LINENO LOG_FD]
16563# ---------------------------------
16564# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16565# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16566# script with status $?, using 1 if that was 0.
16567as_fn_error ()
16568{
16569 as_status=$?; test $as_status -eq 0 && as_status=1
16570 if test "$3"; then
16571 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16572 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1e8e9920 16573 fi
cd9a469c 16574 $as_echo "$as_me: error: $1" >&2
16575 as_fn_exit $as_status
16576} # as_fn_error
16577
16578
16579# as_fn_set_status STATUS
16580# -----------------------
16581# Set $? to STATUS, without forking.
16582as_fn_set_status ()
16583{
16584 return $1
16585} # as_fn_set_status
16586
16587# as_fn_exit STATUS
16588# -----------------
16589# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16590as_fn_exit ()
16591{
16592 set +e
16593 as_fn_set_status $1
16594 exit $1
16595} # as_fn_exit
16596
16597# as_fn_unset VAR
16598# ---------------
16599# Portably unset VAR.
16600as_fn_unset ()
16601{
16602 { eval $1=; unset $1;}
16603}
16604as_unset=as_fn_unset
16605# as_fn_append VAR VALUE
16606# ----------------------
16607# Append the text in VALUE to the end of the definition contained in VAR. Take
16608# advantage of any shell optimizations that allow amortized linear growth over
16609# repeated appends, instead of the typical quadratic growth present in naive
16610# implementations.
16611if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16612 eval 'as_fn_append ()
16613 {
16614 eval $1+=\$2
16615 }'
16616else
16617 as_fn_append ()
16618 {
16619 eval $1=\$$1\$2
16620 }
16621fi # as_fn_append
16622
16623# as_fn_arith ARG...
16624# ------------------
16625# Perform arithmetic evaluation on the ARGs, and store the result in the
16626# global $as_val. Take advantage of shells that can avoid forks. The arguments
16627# must be portable across $(()) and expr.
16628if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16629 eval 'as_fn_arith ()
16630 {
16631 as_val=$(( $* ))
16632 }'
16633else
16634 as_fn_arith ()
16635 {
16636 as_val=`expr "$@" || test $? -eq 1`
16637 }
16638fi # as_fn_arith
16639
1e8e9920 16640
cd9a469c 16641if expr a : '\(a\)' >/dev/null 2>&1 &&
16642 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1e8e9920 16643 as_expr=expr
16644else
16645 as_expr=false
16646fi
16647
cd9a469c 16648if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1e8e9920 16649 as_basename=basename
16650else
16651 as_basename=false
16652fi
16653
cd9a469c 16654if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16655 as_dirname=dirname
16656else
16657 as_dirname=false
16658fi
1e8e9920 16659
cd9a469c 16660as_me=`$as_basename -- "$0" ||
1e8e9920 16661$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16662 X"$0" : 'X\(//\)$' \| \
cd9a469c 16663 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16664$as_echo X/"$0" |
16665 sed '/^.*\/\([^/][^/]*\)\/*$/{
16666 s//\1/
16667 q
16668 }
16669 /^X\/\(\/\/\)$/{
16670 s//\1/
16671 q
16672 }
16673 /^X\/\(\/\).*/{
16674 s//\1/
16675 q
16676 }
16677 s/.*/./; q'`
1e8e9920 16678
1e8e9920 16679# Avoid depending upon Character Ranges.
16680as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16681as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16682as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16683as_cr_digits='0123456789'
16684as_cr_alnum=$as_cr_Letters$as_cr_digits
16685
cd9a469c 16686ECHO_C= ECHO_N= ECHO_T=
16687case `echo -n x` in #(((((
16688-n*)
16689 case `echo 'xy\c'` in
16690 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16691 xy) ECHO_C='\c';;
16692 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16693 ECHO_T=' ';;
16694 esac;;
16695*)
16696 ECHO_N='-n';;
1e8e9920 16697esac
16698
cd9a469c 16699rm -f conf$$ conf$$.exe conf$$.file
16700if test -d conf$$.dir; then
16701 rm -f conf$$.dir/conf$$.file
1e8e9920 16702else
cd9a469c 16703 rm -f conf$$.dir
16704 mkdir conf$$.dir 2>/dev/null
1e8e9920 16705fi
cd9a469c 16706if (echo >conf$$.file) 2>/dev/null; then
16707 if ln -s conf$$.file conf$$ 2>/dev/null; then
1e8e9920 16708 as_ln_s='ln -s'
cd9a469c 16709 # ... but there are two gotchas:
16710 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16711 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16712 # In both cases, we have to default to `cp -p'.
16713 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16714 as_ln_s='cp -p'
16715 elif ln conf$$.file conf$$ 2>/dev/null; then
16716 as_ln_s=ln
16717 else
16718 as_ln_s='cp -p'
1e8e9920 16719 fi
1e8e9920 16720else
16721 as_ln_s='cp -p'
16722fi
cd9a469c 16723rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16724rmdir conf$$.dir 2>/dev/null
16725
16726
16727# as_fn_mkdir_p
16728# -------------
16729# Create "$as_dir" as a directory, including parents if necessary.
16730as_fn_mkdir_p ()
16731{
16732
16733 case $as_dir in #(
16734 -*) as_dir=./$as_dir;;
16735 esac
16736 test -d "$as_dir" || eval $as_mkdir_p || {
16737 as_dirs=
16738 while :; do
16739 case $as_dir in #(
16740 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16741 *) as_qdir=$as_dir;;
16742 esac
16743 as_dirs="'$as_qdir' $as_dirs"
16744 as_dir=`$as_dirname -- "$as_dir" ||
16745$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16746 X"$as_dir" : 'X\(//\)[^/]' \| \
16747 X"$as_dir" : 'X\(//\)$' \| \
16748 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16749$as_echo X"$as_dir" |
16750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16751 s//\1/
16752 q
16753 }
16754 /^X\(\/\/\)[^/].*/{
16755 s//\1/
16756 q
16757 }
16758 /^X\(\/\/\)$/{
16759 s//\1/
16760 q
16761 }
16762 /^X\(\/\).*/{
16763 s//\1/
16764 q
16765 }
16766 s/.*/./; q'`
16767 test -d "$as_dir" && break
16768 done
16769 test -z "$as_dirs" || eval "mkdir $as_dirs"
16770 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16771
1e8e9920 16772
cd9a469c 16773} # as_fn_mkdir_p
1e8e9920 16774if mkdir -p . 2>/dev/null; then
cd9a469c 16775 as_mkdir_p='mkdir -p "$as_dir"'
1e8e9920 16776else
16777 test -d ./-p && rmdir ./-p
16778 as_mkdir_p=false
16779fi
16780
cd9a469c 16781if test -x / >/dev/null 2>&1; then
16782 as_test_x='test -x'
16783else
16784 if ls -dL / >/dev/null 2>&1; then
16785 as_ls_L_option=L
16786 else
16787 as_ls_L_option=
16788 fi
16789 as_test_x='
16790 eval sh -c '\''
16791 if test -d "$1"; then
16792 test -d "$1/.";
16793 else
16794 case $1 in #(
16795 -*)set "./$1";;
16796 esac;
16797 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16798 ???[sx]*):;;*)false;;esac;fi
16799 '\'' sh
16800 '
16801fi
16802as_executable_p=$as_test_x
1e8e9920 16803
16804# Sed expression to map a string onto a valid CPP name.
16805as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16806
cd9a469c 16807# Sed expression to map a string onto a valid variable name.
16808as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1e8e9920 16809
1e8e9920 16810
16811exec 6>&1
cd9a469c 16812## ----------------------------------- ##
16813## Main body of $CONFIG_STATUS script. ##
16814## ----------------------------------- ##
16815_ASEOF
16816test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16817
16818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16819# Save the log message, to keep $0 and so on meaningful, and to
1e8e9920 16820# report actual input values of CONFIG_FILES etc. instead of their
cd9a469c 16821# values after options handling.
16822ac_log="
1e8e9920 16823This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
cd9a469c 16824generated by GNU Autoconf 2.64. Invocation command line was
1e8e9920 16825
16826 CONFIG_FILES = $CONFIG_FILES
16827 CONFIG_HEADERS = $CONFIG_HEADERS
16828 CONFIG_LINKS = $CONFIG_LINKS
16829 CONFIG_COMMANDS = $CONFIG_COMMANDS
16830 $ $0 $@
16831
cd9a469c 16832on `(hostname || uname -n) 2>/dev/null | sed 1q`
16833"
16834
1e8e9920 16835_ACEOF
16836
cd9a469c 16837case $ac_config_files in *"
16838"*) set x $ac_config_files; shift; ac_config_files=$*;;
16839esac
1e8e9920 16840
cd9a469c 16841case $ac_config_headers in *"
16842"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16843esac
1e8e9920 16844
1e8e9920 16845
cd9a469c 16846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16847# Files that config.status was made for.
16848config_files="$ac_config_files"
16849config_headers="$ac_config_headers"
16850config_commands="$ac_config_commands"
1e8e9920 16851
cd9a469c 16852_ACEOF
1e8e9920 16853
cd9a469c 16854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1e8e9920 16855ac_cs_usage="\
cd9a469c 16856\`$as_me' instantiates files and other configuration actions
16857from templates according to the current configuration. Unless the files
16858and actions are specified as TAGs, all are instantiated by default.
1e8e9920 16859
cd9a469c 16860Usage: $0 [OPTION]... [TAG]...
1e8e9920 16861
16862 -h, --help print this help, then exit
cd9a469c 16863 -V, --version print version number and configuration settings, then exit
16864 -q, --quiet, --silent
16865 do not print progress messages
1e8e9920 16866 -d, --debug don't remove temporary files
16867 --recheck update $as_me by reconfiguring in the same conditions
cd9a469c 16868 --file=FILE[:TEMPLATE]
16869 instantiate the configuration file FILE
16870 --header=FILE[:TEMPLATE]
16871 instantiate the configuration header FILE
1e8e9920 16872
16873Configuration files:
16874$config_files
16875
16876Configuration headers:
16877$config_headers
16878
16879Configuration commands:
16880$config_commands
16881
cd9a469c 16882Report bugs to the package provider.
16883GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
16884General help using GNU software: <http://www.gnu.org/gethelp/>."
1e8e9920 16885
cd9a469c 16886_ACEOF
16887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1e8e9920 16888ac_cs_version="\\
16889GNU OpenMP Runtime Library config.status 1.0
cd9a469c 16890configured by $0, generated by GNU Autoconf 2.64,
16891 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1e8e9920 16892
cd9a469c 16893Copyright (C) 2009 Free Software Foundation, Inc.
1e8e9920 16894This config.status script is free software; the Free Software Foundation
16895gives unlimited permission to copy, distribute and modify it."
cd9a469c 16896
16897ac_pwd='$ac_pwd'
16898srcdir='$srcdir'
16899INSTALL='$INSTALL'
16900MKDIR_P='$MKDIR_P'
16901AWK='$AWK'
16902test -n "\$AWK" || AWK=awk
1e8e9920 16903_ACEOF
16904
cd9a469c 16905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16906# The default lists apply if the user does not specify any file.
1e8e9920 16907ac_need_defaults=:
16908while test $# != 0
16909do
16910 case $1 in
16911 --*=*)
cd9a469c 16912 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16913 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1e8e9920 16914 ac_shift=:
16915 ;;
cd9a469c 16916 *)
1e8e9920 16917 ac_option=$1
16918 ac_optarg=$2
16919 ac_shift=shift
16920 ;;
1e8e9920 16921 esac
16922
16923 case $ac_option in
16924 # Handling of the options.
1e8e9920 16925 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16926 ac_cs_recheck=: ;;
cd9a469c 16927 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16928 $as_echo "$ac_cs_version"; exit ;;
16929 --debug | --debu | --deb | --de | --d | -d )
1e8e9920 16930 debug=: ;;
16931 --file | --fil | --fi | --f )
16932 $ac_shift
cd9a469c 16933 case $ac_optarg in
16934 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16935 esac
16936 as_fn_append CONFIG_FILES " '$ac_optarg'"
1e8e9920 16937 ac_need_defaults=false;;
16938 --header | --heade | --head | --hea )
16939 $ac_shift
cd9a469c 16940 case $ac_optarg in
16941 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16942 esac
16943 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1e8e9920 16944 ac_need_defaults=false;;
cd9a469c 16945 --he | --h)
16946 # Conflict between --help and --header
16947 as_fn_error "ambiguous option: \`$1'
16948Try \`$0 --help' for more information.";;
16949 --help | --hel | -h )
16950 $as_echo "$ac_cs_usage"; exit ;;
1e8e9920 16951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16952 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16953 ac_cs_silent=: ;;
16954
16955 # This is an error.
cd9a469c 16956 -*) as_fn_error "unrecognized option: \`$1'
16957Try \`$0 --help' for more information." ;;
1e8e9920 16958
cd9a469c 16959 *) as_fn_append ac_config_targets " $1"
16960 ac_need_defaults=false ;;
1e8e9920 16961
16962 esac
16963 shift
16964done
16965
16966ac_configure_extra_args=
16967
16968if $ac_cs_silent; then
16969 exec 6>/dev/null
16970 ac_configure_extra_args="$ac_configure_extra_args --silent"
16971fi
16972
16973_ACEOF
cd9a469c 16974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1e8e9920 16975if \$ac_cs_recheck; then
cd9a469c 16976 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16977 shift
16978 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16979 CONFIG_SHELL='$SHELL'
16980 export CONFIG_SHELL
16981 exec "\$@"
1e8e9920 16982fi
16983
16984_ACEOF
cd9a469c 16985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16986exec 5>>config.log
16987{
16988 echo
16989 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16990## Running $as_me. ##
16991_ASBOX
16992 $as_echo "$ac_log"
16993} >&5
1e8e9920 16994
cd9a469c 16995_ACEOF
16996cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1e8e9920 16997#
cd9a469c 16998# INIT-COMMANDS
1e8e9920 16999#
17000
1e8e9920 17001srcdir="$srcdir"
17002host="$host"
17003target="$target"
17004with_multisubdir="$with_multisubdir"
17005with_multisrctop="$with_multisrctop"
17006with_target_subdir="$with_target_subdir"
17007ac_configure_args="${multilib_arg} ${ac_configure_args}"
17008multi_basedir="$multi_basedir"
17009CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17010CC="$CC"
0a475b3b 17011CXX="$CXX"
17012GFORTRAN="$GFORTRAN"
17013GCJ="$GCJ"
1e8e9920 17014AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17015
542f9784 17016
17017# The HP-UX ksh and POSIX shell print the target directory to stdout
17018# if CDPATH is set.
17019(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17020
17021sed_quote_subst='$sed_quote_subst'
17022double_quote_subst='$double_quote_subst'
17023delay_variable_subst='$delay_variable_subst'
e6408286 17024macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17025macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17026enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17027enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17028pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17029enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17030SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17031ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17032host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17033host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17034host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17035build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17036build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17037build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17038SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17039Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17040GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17041EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17042FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17043LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17044NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17045LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17046max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17047ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17048exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17049lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17050lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17051lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17052reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17053reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17054OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17055deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17056file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17057AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17058AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17059STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17060RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17061old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17062old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17063old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17064lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17065CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17066CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17067compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17068GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17069lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17070lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17071lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17072lt_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"`'
17073objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17074MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17075lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17076lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17077lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17078lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17079lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17080need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17081DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17082NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17083LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17084OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17085OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17086libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17087shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17088extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17089archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17090enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17091export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17092whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17093compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17094old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17095old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17096archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17097archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17098module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17099module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17100with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17101allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17102no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17103hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17104hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17105hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17106hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17107hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17108hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17109hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17110hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17111inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17112link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17113fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17114always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17115export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17116exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17117include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17118prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17119file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17120variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17121need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17122need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17123version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17124runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17125shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17126shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17127libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17128library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17129soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17130install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17131postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17132postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17133finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17134finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17135hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17136sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17137sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17138hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17139enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17140enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17141enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17142old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17143striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17144compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17145predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17146postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17147predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17148postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17149compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17150LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17151reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17152reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17153old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17154compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17155GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17156lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17157lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17158lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17159lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17160lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17161archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17162enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17163export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17164whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17165compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17166old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17167old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17168archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17169archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17170module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17171module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17172with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17173allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17174no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17175hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17176hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17177hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17178hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17179hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17180hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17181hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17182hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17183inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17184link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17185fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17186always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17187export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17188exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17189include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17190prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17191file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17192hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17193compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17194predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17195postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17196predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17197postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17198compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
542f9784 17199
17200LTCC='$LTCC'
17201LTCFLAGS='$LTCFLAGS'
17202compiler='$compiler_DEFAULT'
17203
e6408286 17204# A function that is used when there is no print builtin or printf.
17205func_fallback_echo ()
17206{
17207 eval 'cat <<_LTECHO_EOF
17208\$1
17209_LTECHO_EOF'
17210}
17211
542f9784 17212# Quote evaled strings.
e6408286 17213for var in SHELL \
17214ECHO \
17215SED \
542f9784 17216GREP \
17217EGREP \
17218FGREP \
17219LD \
17220NM \
17221LN_S \
17222lt_SP2NL \
17223lt_NL2SP \
17224reload_flag \
6d873a38 17225OBJDUMP \
542f9784 17226deplibs_check_method \
17227file_magic_cmd \
17228AR \
17229AR_FLAGS \
17230STRIP \
17231RANLIB \
17232CC \
17233CFLAGS \
17234compiler \
17235lt_cv_sys_global_symbol_pipe \
17236lt_cv_sys_global_symbol_to_cdecl \
17237lt_cv_sys_global_symbol_to_c_name_address \
6d873a38 17238lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
542f9784 17239lt_prog_compiler_no_builtin_flag \
17240lt_prog_compiler_wl \
17241lt_prog_compiler_pic \
17242lt_prog_compiler_static \
17243lt_cv_prog_compiler_c_o \
17244need_locks \
6d873a38 17245DSYMUTIL \
17246NMEDIT \
17247LIPO \
17248OTOOL \
17249OTOOL64 \
542f9784 17250shrext_cmds \
17251export_dynamic_flag_spec \
17252whole_archive_flag_spec \
17253compiler_needs_object \
17254with_gnu_ld \
17255allow_undefined_flag \
17256no_undefined_flag \
17257hardcode_libdir_flag_spec \
17258hardcode_libdir_flag_spec_ld \
17259hardcode_libdir_separator \
17260fix_srcfile_path \
17261exclude_expsyms \
17262include_expsyms \
17263file_list_spec \
17264variables_saved_for_relink \
17265libname_spec \
17266library_names_spec \
17267soname_spec \
e6408286 17268install_override_mode \
542f9784 17269finish_eval \
17270old_striplib \
17271striplib \
6d873a38 17272compiler_lib_search_dirs \
542f9784 17273predep_objects \
17274postdep_objects \
17275predeps \
17276postdeps \
17277compiler_lib_search_path \
17278LD_FC \
e6408286 17279reload_flag_FC \
542f9784 17280compiler_FC \
17281lt_prog_compiler_no_builtin_flag_FC \
17282lt_prog_compiler_wl_FC \
17283lt_prog_compiler_pic_FC \
17284lt_prog_compiler_static_FC \
17285lt_cv_prog_compiler_c_o_FC \
17286export_dynamic_flag_spec_FC \
17287whole_archive_flag_spec_FC \
17288compiler_needs_object_FC \
17289with_gnu_ld_FC \
17290allow_undefined_flag_FC \
17291no_undefined_flag_FC \
17292hardcode_libdir_flag_spec_FC \
17293hardcode_libdir_flag_spec_ld_FC \
17294hardcode_libdir_separator_FC \
17295fix_srcfile_path_FC \
17296exclude_expsyms_FC \
17297include_expsyms_FC \
17298file_list_spec_FC \
6d873a38 17299compiler_lib_search_dirs_FC \
542f9784 17300predep_objects_FC \
17301postdep_objects_FC \
17302predeps_FC \
17303postdeps_FC \
17304compiler_lib_search_path_FC; do
e6408286 17305 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
542f9784 17306 *[\\\\\\\`\\"\\\$]*)
e6408286 17307 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
542f9784 17308 ;;
17309 *)
17310 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17311 ;;
17312 esac
17313done
17314
17315# Double-quote double-evaled strings.
17316for var in reload_cmds \
17317old_postinstall_cmds \
17318old_postuninstall_cmds \
17319old_archive_cmds \
17320extract_expsyms_cmds \
17321old_archive_from_new_cmds \
17322old_archive_from_expsyms_cmds \
17323archive_cmds \
17324archive_expsym_cmds \
17325module_cmds \
17326module_expsym_cmds \
17327export_symbols_cmds \
17328prelink_cmds \
17329postinstall_cmds \
17330postuninstall_cmds \
17331finish_cmds \
17332sys_lib_search_path_spec \
17333sys_lib_dlsearch_path_spec \
e6408286 17334reload_cmds_FC \
542f9784 17335old_archive_cmds_FC \
17336old_archive_from_new_cmds_FC \
17337old_archive_from_expsyms_cmds_FC \
17338archive_cmds_FC \
17339archive_expsym_cmds_FC \
17340module_cmds_FC \
17341module_expsym_cmds_FC \
17342export_symbols_cmds_FC \
17343prelink_cmds_FC; do
e6408286 17344 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
542f9784 17345 *[\\\\\\\`\\"\\\$]*)
e6408286 17346 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
542f9784 17347 ;;
17348 *)
17349 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17350 ;;
17351 esac
17352done
17353
542f9784 17354ac_aux_dir='$ac_aux_dir'
17355xsi_shell='$xsi_shell'
17356lt_shell_append='$lt_shell_append'
17357
17358# See if we are running on zsh, and set the options which allow our
17359# commands through without removal of \ escapes INIT.
17360if test -n "\${ZSH_VERSION+set}" ; then
17361 setopt NO_GLOB_SUBST
17362fi
17363
17364
17365 PACKAGE='$PACKAGE'
17366 VERSION='$VERSION'
17367 TIMESTAMP='$TIMESTAMP'
17368 RM='$RM'
17369 ofile='$ofile'
17370
17371
17372
17373
17374
17375
01473a49 17376GCC="$GCC"
17377CC="$CC"
17378acx_cv_header_stdint="$acx_cv_header_stdint"
17379acx_cv_type_int8_t="$acx_cv_type_int8_t"
17380acx_cv_type_int16_t="$acx_cv_type_int16_t"
17381acx_cv_type_int32_t="$acx_cv_type_int32_t"
17382acx_cv_type_int64_t="$acx_cv_type_int64_t"
17383acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17384ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17385ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17386ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17387ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17388ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17389ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17390ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17391ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17392
17393
1e8e9920 17394_ACEOF
17395
cd9a469c 17396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1e8e9920 17397
cd9a469c 17398# Handling of arguments.
1e8e9920 17399for ac_config_target in $ac_config_targets
17400do
cd9a469c 17401 case $ac_config_target in
17402 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17403 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17404 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17405 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17406 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17407 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17408 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17409 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17410 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17411 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17412 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17413 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17414
17415 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1e8e9920 17416 esac
17417done
17418
cd9a469c 17419
1e8e9920 17420# If the user did not use the arguments to specify the items to instantiate,
17421# then the envvar interface is used. Set only those that are not.
17422# We use the long form for the default assignment because of an extremely
17423# bizarre bug on SunOS 4.1.3.
17424if $ac_need_defaults; then
17425 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17426 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17427 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17428fi
17429
17430# Have a temporary directory for convenience. Make it in the build tree
cd9a469c 17431# simply because there is no reason against having it here, and in addition,
1e8e9920 17432# creating and moving files from /tmp can sometimes cause problems.
cd9a469c 17433# Hook for its removal unless debugging.
17434# Note that there is a small window in which the directory will not be cleaned:
17435# after its creation but before its name has been assigned to `$tmp'.
1e8e9920 17436$debug ||
17437{
cd9a469c 17438 tmp=
17439 trap 'exit_status=$?
17440 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17441' 0
17442 trap 'as_fn_exit 1' 1 2 13 15
1e8e9920 17443}
1e8e9920 17444# Create a (secure) tmp directory for tmp files.
17445
17446{
cd9a469c 17447 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1e8e9920 17448 test -n "$tmp" && test -d "$tmp"
17449} ||
17450{
cd9a469c 17451 tmp=./conf$$-$RANDOM
17452 (umask 077 && mkdir "$tmp")
17453} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17454
17455# Set up the scripts for CONFIG_FILES section.
17456# No need to generate them if there are no CONFIG_FILES.
17457# This happens for instance with `./config.status config.h'.
17458if test -n "$CONFIG_FILES"; then
17459
17460
17461ac_cr=`echo X | tr X '\015'`
17462# On cygwin, bash can eat \r inside `` if the user requested igncr.
17463# But we know of no other shell where ac_cr would be empty at this
17464# point, so we can use a bashism as a fallback.
17465if test "x$ac_cr" = x; then
17466 eval ac_cr=\$\'\\r\'
17467fi
17468ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17469if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17470 ac_cs_awk_cr='\r'
17471else
17472 ac_cs_awk_cr=$ac_cr
17473fi
17474
17475echo 'BEGIN {' >"$tmp/subs1.awk" &&
17476_ACEOF
17477
17478
1e8e9920 17479{
cd9a469c 17480 echo "cat >conf$$subs.awk <<_ACEOF" &&
17481 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17482 echo "_ACEOF"
17483} >conf$$subs.sh ||
17484 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17485ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17486ac_delim='%!_!# '
17487for ac_last_try in false false false false false :; do
17488 . ./conf$$subs.sh ||
17489 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17490
17491 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17492 if test $ac_delim_n = $ac_delim_num; then
17493 break
17494 elif $ac_last_try; then
17495 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17496 else
17497 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17498 fi
17499done
17500rm -f conf$$subs.sh
17501
17502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17503cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17504_ACEOF
17505sed -n '
17506h
17507s/^/S["/; s/!.*/"]=/
17508p
17509g
17510s/^[^!]*!//
17511:repl
17512t repl
17513s/'"$ac_delim"'$//
17514t delim
17515:nl
17516h
17517s/\(.\{148\}\).*/\1/
17518t more1
17519s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17520p
17521n
17522b repl
17523:more1
17524s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17525p
17526g
17527s/.\{148\}//
17528t nl
17529:delim
17530h
17531s/\(.\{148\}\).*/\1/
17532t more2
17533s/["\\]/\\&/g; s/^/"/; s/$/"/
17534p
17535b
17536:more2
17537s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17538p
17539g
17540s/.\{148\}//
17541t delim
17542' <conf$$subs.awk | sed '
17543/^[^""]/{
17544 N
17545 s/\n//
1e8e9920 17546}
cd9a469c 17547' >>$CONFIG_STATUS || ac_write_fail=1
17548rm -f conf$$subs.awk
17549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17550_ACAWK
17551cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17552 for (key in S) S_is_set[key] = 1
17553 FS = "\a"
1e8e9920 17554
cd9a469c 17555}
17556{
17557 line = $ 0
17558 nfields = split(line, field, "@")
17559 substed = 0
17560 len = length(field[1])
17561 for (i = 2; i < nfields; i++) {
17562 key = field[i]
17563 keylen = length(key)
17564 if (S_is_set[key]) {
17565 value = S[key]
17566 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17567 len += length(value) + length(field[++i])
17568 substed = 1
17569 } else
17570 len += 1 + keylen
17571 }
1e8e9920 17572
cd9a469c 17573 print line
17574}
1e8e9920 17575
cd9a469c 17576_ACAWK
17577_ACEOF
17578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17579if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17580 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17581else
17582 cat
17583fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17584 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17585_ACEOF
17586
17587# VPATH may cause trouble with some makes, so we remove $(srcdir),
17588# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17589# trailing colons and then remove the whole line if VPATH becomes empty
17590# (actually we leave an empty line to preserve line numbers).
17591if test "x$srcdir" = x.; then
17592 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17593s/:*\$(srcdir):*/:/
17594s/:*\${srcdir}:*/:/
17595s/:*@srcdir@:*/:/
17596s/^\([^=]*=[ ]*\):*/\1/
17597s/:*$//
17598s/^[^=]*=[ ]*$//
17599}'
17600fi
1e8e9920 17601
cd9a469c 17602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17603fi # test -n "$CONFIG_FILES"
1e8e9920 17604
cd9a469c 17605# Set up the scripts for CONFIG_HEADERS section.
17606# No need to generate them if there are no CONFIG_HEADERS.
17607# This happens for instance with `./config.status Makefile'.
17608if test -n "$CONFIG_HEADERS"; then
17609cat >"$tmp/defines.awk" <<\_ACAWK ||
17610BEGIN {
1e8e9920 17611_ACEOF
17612
cd9a469c 17613# Transform confdefs.h into an awk script `defines.awk', embedded as
17614# here-document in config.status, that substitutes the proper values into
17615# config.h.in to produce config.h.
17616
17617# Create a delimiter string that does not exist in confdefs.h, to ease
17618# handling of long lines.
17619ac_delim='%!_!# '
17620for ac_last_try in false false :; do
17621 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17622 if test -z "$ac_t"; then
17623 break
17624 elif $ac_last_try; then
17625 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17626 else
17627 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1e8e9920 17628 fi
cd9a469c 17629done
1e8e9920 17630
cd9a469c 17631# For the awk script, D is an array of macro values keyed by name,
17632# likewise P contains macro parameters if any. Preserve backslash
17633# newline sequences.
17634
17635ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17636sed -n '
17637s/.\{148\}/&'"$ac_delim"'/g
17638t rset
17639:rset
17640s/^[ ]*#[ ]*define[ ][ ]*/ /
17641t def
17642d
17643:def
17644s/\\$//
17645t bsnl
17646s/["\\]/\\&/g
17647s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17648D["\1"]=" \3"/p
17649s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17650d
17651:bsnl
17652s/["\\]/\\&/g
17653s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17654D["\1"]=" \3\\\\\\n"\\/p
17655t cont
17656s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17657t cont
17658d
17659:cont
17660n
17661s/.\{148\}/&'"$ac_delim"'/g
17662t clear
17663:clear
17664s/\\$//
17665t bsnlc
17666s/["\\]/\\&/g; s/^/"/; s/$/"/p
17667d
17668:bsnlc
17669s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17670b cont
17671' <confdefs.h | sed '
17672s/'"$ac_delim"'/"\\\
17673"/g' >>$CONFIG_STATUS || ac_write_fail=1
17674
17675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17676 for (key in D) D_is_set[key] = 1
17677 FS = "\a"
17678}
17679/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17680 line = \$ 0
17681 split(line, arg, " ")
17682 if (arg[1] == "#") {
17683 defundef = arg[2]
17684 mac1 = arg[3]
17685 } else {
17686 defundef = substr(arg[1], 2)
17687 mac1 = arg[2]
17688 }
17689 split(mac1, mac2, "(") #)
17690 macro = mac2[1]
17691 prefix = substr(line, 1, index(line, defundef) - 1)
17692 if (D_is_set[macro]) {
17693 # Preserve the white space surrounding the "#".
17694 print prefix "define", macro P[macro] D[macro]
17695 next
17696 } else {
17697 # Replace #undef with comments. This is necessary, for example,
17698 # in the case of _POSIX_SOURCE, which is predefined and required
17699 # on some systems where configure will not decide to define it.
17700 if (defundef == "undef") {
17701 print "/*", prefix defundef, macro, "*/"
17702 next
17703 }
17704 }
17705}
17706{ print }
17707_ACAWK
1e8e9920 17708_ACEOF
cd9a469c 17709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17710 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17711fi # test -n "$CONFIG_HEADERS"
17712
17713
17714eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17715shift
17716for ac_tag
17717do
17718 case $ac_tag in
17719 :[FHLC]) ac_mode=$ac_tag; continue;;
17720 esac
17721 case $ac_mode$ac_tag in
17722 :[FHL]*:*);;
17723 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17724 :[FH]-) ac_tag=-:-;;
17725 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17726 esac
17727 ac_save_IFS=$IFS
17728 IFS=:
17729 set x $ac_tag
17730 IFS=$ac_save_IFS
17731 shift
17732 ac_file=$1
17733 shift
17734
17735 case $ac_mode in
17736 :L) ac_source=$1;;
17737 :[FH])
17738 ac_file_inputs=
17739 for ac_f
17740 do
17741 case $ac_f in
17742 -) ac_f="$tmp/stdin";;
17743 *) # Look for the file first in the build tree, then in the source tree
17744 # (if the path is not absolute). The absolute path cannot be DOS-style,
17745 # because $ac_f cannot contain `:'.
17746 test -f "$ac_f" ||
17747 case $ac_f in
17748 [\\/$]*) false;;
17749 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17750 esac ||
17751 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17752 esac
17753 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17754 as_fn_append ac_file_inputs " '$ac_f'"
17755 done
17756
17757 # Let's still pretend it is `configure' which instantiates (i.e., don't
17758 # use $as_me), people would be surprised to read:
17759 # /* config.h. Generated by config.status. */
17760 configure_input='Generated from '`
17761 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17762 `' by configure.'
17763 if test x"$ac_file" != x-; then
17764 configure_input="$ac_file. $configure_input"
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17766$as_echo "$as_me: creating $ac_file" >&6;}
17767 fi
17768 # Neutralize special characters interpreted by sed in replacement strings.
17769 case $configure_input in #(
17770 *\&* | *\|* | *\\* )
17771 ac_sed_conf_input=`$as_echo "$configure_input" |
17772 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17773 *) ac_sed_conf_input=$configure_input;;
17774 esac
17775
17776 case $ac_tag in
17777 *:-:* | *:-) cat >"$tmp/stdin" \
17778 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17779 esac
17780 ;;
1e8e9920 17781 esac
17782
cd9a469c 17783 ac_dir=`$as_dirname -- "$ac_file" ||
1e8e9920 17784$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17785 X"$ac_file" : 'X\(//\)[^/]' \| \
17786 X"$ac_file" : 'X\(//\)$' \| \
cd9a469c 17787 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17788$as_echo X"$ac_file" |
17789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17790 s//\1/
17791 q
17792 }
17793 /^X\(\/\/\)[^/].*/{
17794 s//\1/
17795 q
17796 }
17797 /^X\(\/\/\)$/{
17798 s//\1/
17799 q
17800 }
17801 /^X\(\/\).*/{
17802 s//\1/
17803 q
17804 }
17805 s/.*/./; q'`
17806 as_dir="$ac_dir"; as_fn_mkdir_p
1e8e9920 17807 ac_builddir=.
17808
cd9a469c 17809case "$ac_dir" in
17810.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17811*)
17812 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17813 # A ".." for each directory in $ac_dir_suffix.
17814 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17815 case $ac_top_builddir_sub in
17816 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17817 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17818 esac ;;
17819esac
17820ac_abs_top_builddir=$ac_pwd
17821ac_abs_builddir=$ac_pwd$ac_dir_suffix
17822# for backward compatibility:
17823ac_top_builddir=$ac_top_build_prefix
1e8e9920 17824
17825case $srcdir in
cd9a469c 17826 .) # We are building in place.
1e8e9920 17827 ac_srcdir=.
cd9a469c 17828 ac_top_srcdir=$ac_top_builddir_sub
17829 ac_abs_top_srcdir=$ac_pwd ;;
17830 [\\/]* | ?:[\\/]* ) # Absolute name.
1e8e9920 17831 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 17832 ac_top_srcdir=$srcdir
17833 ac_abs_top_srcdir=$srcdir ;;
17834 *) # Relative name.
17835 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17836 ac_top_srcdir=$ac_top_build_prefix$srcdir
17837 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1e8e9920 17838esac
cd9a469c 17839ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1e8e9920 17840
1e8e9920 17841
cd9a469c 17842 case $ac_mode in
17843 :F)
17844 #
17845 # CONFIG_FILE
17846 #
1e8e9920 17847
17848 case $INSTALL in
17849 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cd9a469c 17850 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1e8e9920 17851 esac
cd9a469c 17852 ac_MKDIR_P=$MKDIR_P
17853 case $MKDIR_P in
17854 [\\/$]* | ?:[\\/]* ) ;;
17855 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17856 esac
17857_ACEOF
1e8e9920 17858
cd9a469c 17859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17860# If the template does not know about datarootdir, expand it.
17861# FIXME: This hack should be removed a few years after 2.60.
17862ac_datarootdir_hack=; ac_datarootdir_seen=
17863ac_sed_dataroot='
17864/datarootdir/ {
17865 p
17866 q
17867}
17868/@datadir@/p
17869/@docdir@/p
17870/@infodir@/p
17871/@localedir@/p
17872/@mandir@/p'
17873case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17874*datarootdir*) ac_datarootdir_seen=yes;;
17875*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17877$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17878_ACEOF
17879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17880 ac_datarootdir_hack='
17881 s&@datadir@&$datadir&g
17882 s&@docdir@&$docdir&g
17883 s&@infodir@&$infodir&g
17884 s&@localedir@&$localedir&g
17885 s&@mandir@&$mandir&g
17886 s&\\\${datarootdir}&$datarootdir&g' ;;
17887esac
1e8e9920 17888_ACEOF
cd9a469c 17889
17890# Neutralize VPATH when `$srcdir' = `.'.
17891# Shell code in configure.ac might set extrasub.
17892# FIXME: do we really want to maintain this feature?
17893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17894ac_sed_extra="$ac_vpsub
1e8e9920 17895$extrasub
17896_ACEOF
cd9a469c 17897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1e8e9920 17898:t
17899/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cd9a469c 17900s|@configure_input@|$ac_sed_conf_input|;t t
17901s&@top_builddir@&$ac_top_builddir_sub&;t t
17902s&@top_build_prefix@&$ac_top_build_prefix&;t t
17903s&@srcdir@&$ac_srcdir&;t t
17904s&@abs_srcdir@&$ac_abs_srcdir&;t t
17905s&@top_srcdir@&$ac_top_srcdir&;t t
17906s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17907s&@builddir@&$ac_builddir&;t t
17908s&@abs_builddir@&$ac_abs_builddir&;t t
17909s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17910s&@INSTALL@&$ac_INSTALL&;t t
17911s&@MKDIR_P@&$ac_MKDIR_P&;t t
17912$ac_datarootdir_hack
17913"
17914eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17915 || as_fn_error "could not create $ac_file" "$LINENO" 5
17916
17917test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17918 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17919 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17921which seems to be undefined. Please make sure it is defined." >&5
17922$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17923which seems to be undefined. Please make sure it is defined." >&2;}
17924
17925 rm -f "$tmp/stdin"
1e8e9920 17926 case $ac_file in
cd9a469c 17927 -) cat "$tmp/out" && rm -f "$tmp/out";;
17928 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17929 esac \
17930 || as_fn_error "could not create $ac_file" "$LINENO" 5
17931 ;;
17932 :H)
17933 #
17934 # CONFIG_HEADER
17935 #
1e8e9920 17936 if test x"$ac_file" != x-; then
cd9a469c 17937 {
17938 $as_echo "/* $configure_input */" \
17939 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17940 } >"$tmp/config.h" \
17941 || as_fn_error "could not create $ac_file" "$LINENO" 5
17942 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17944$as_echo "$as_me: $ac_file is unchanged" >&6;}
1e8e9920 17945 else
cd9a469c 17946 rm -f "$ac_file"
17947 mv "$tmp/config.h" "$ac_file" \
17948 || as_fn_error "could not create $ac_file" "$LINENO" 5
1e8e9920 17949 fi
17950 else
cd9a469c 17951 $as_echo "/* $configure_input */" \
17952 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17953 || as_fn_error "could not create -" "$LINENO" 5
1e8e9920 17954 fi
cd9a469c 17955# Compute "$ac_file"'s index in $config_headers.
17956_am_arg="$ac_file"
1e8e9920 17957_am_stamp_count=1
17958for _am_header in $config_headers :; do
17959 case $_am_header in
cd9a469c 17960 $_am_arg | $_am_arg:* )
1e8e9920 17961 break ;;
17962 * )
17963 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17964 esac
17965done
cd9a469c 17966echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17967$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17968 X"$_am_arg" : 'X\(//\)[^/]' \| \
17969 X"$_am_arg" : 'X\(//\)$' \| \
17970 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17971$as_echo X"$_am_arg" |
17972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17973 s//\1/
17974 q
17975 }
17976 /^X\(\/\/\)[^/].*/{
17977 s//\1/
17978 q
17979 }
17980 /^X\(\/\/\)$/{
17981 s//\1/
17982 q
17983 }
17984 /^X\(\/\).*/{
17985 s//\1/
17986 q
17987 }
17988 s/.*/./; q'`/stamp-h$_am_stamp_count
17989 ;;
1e8e9920 17990
cd9a469c 17991 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17992$as_echo "$as_me: executing $ac_file commands" >&6;}
17993 ;;
17994 esac
1e8e9920 17995
17996
cd9a469c 17997 case $ac_file$ac_mode in
17998 "default-1":C)
1e8e9920 17999# Only add multilib support code if we just rebuilt the top-level
18000# Makefile.
18001case " $CONFIG_FILES " in
18002 *" Makefile "*)
18003 ac_file=Makefile . ${multi_basedir}/config-ml.in
18004 ;;
18005esac ;;
cd9a469c 18006 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18007 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18008 # are listed without --file. Let's play safe and only enable the eval
18009 # if we detect the quoting.
18010 case $CONFIG_FILES in
18011 *\'*) eval set x "$CONFIG_FILES" ;;
18012 *) set x $CONFIG_FILES ;;
18013 esac
18014 shift
18015 for mf
18016 do
18017 # Strip MF so we end up with the name of the file.
18018 mf=`echo "$mf" | sed -e 's/:.*$//'`
18019 # Check whether this is an Automake generated Makefile or not.
18020 # We used to match only the files named `Makefile.in', but
18021 # some people rename them; so instead we look at the file content.
18022 # Grep'ing the first line is not enough: some people post-process
18023 # each Makefile.in and add a new line on top of each file to say so.
18024 # Grep'ing the whole file is not good either: AIX grep has a line
18025 # limit of 2048, but all sed's we know have understand at least 4000.
18026 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18027 dirpart=`$as_dirname -- "$mf" ||
1e8e9920 18028$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18029 X"$mf" : 'X\(//\)[^/]' \| \
18030 X"$mf" : 'X\(//\)$' \| \
cd9a469c 18031 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18032$as_echo X"$mf" |
18033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18034 s//\1/
18035 q
18036 }
18037 /^X\(\/\/\)[^/].*/{
18038 s//\1/
18039 q
18040 }
18041 /^X\(\/\/\)$/{
18042 s//\1/
18043 q
18044 }
18045 /^X\(\/\).*/{
18046 s//\1/
18047 q
18048 }
18049 s/.*/./; q'`
18050 else
18051 continue
18052 fi
18053 # Extract the definition of DEPDIR, am__include, and am__quote
18054 # from the Makefile without running `make'.
18055 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18056 test -z "$DEPDIR" && continue
18057 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18058 test -z "am__include" && continue
18059 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18060 # When using ansi2knr, U may be empty or an underscore; expand it
18061 U=`sed -n 's/^U = //p' < "$mf"`
18062 # Find all dependency output files, they are included files with
18063 # $(DEPDIR) in their names. We invoke sed twice because it is the
18064 # simplest approach to changing $(DEPDIR) to its actual value in the
18065 # expansion.
18066 for file in `sed -n "
18067 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18068 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18069 # Make sure the directory exists.
18070 test -f "$dirpart/$file" && continue
18071 fdir=`$as_dirname -- "$file" ||
1e8e9920 18072$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18073 X"$file" : 'X\(//\)[^/]' \| \
18074 X"$file" : 'X\(//\)$' \| \
cd9a469c 18075 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18076$as_echo X"$file" |
18077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18078 s//\1/
18079 q
18080 }
18081 /^X\(\/\/\)[^/].*/{
18082 s//\1/
18083 q
18084 }
18085 /^X\(\/\/\)$/{
18086 s//\1/
18087 q
18088 }
18089 /^X\(\/\).*/{
18090 s//\1/
18091 q
18092 }
18093 s/.*/./; q'`
18094 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18095 # echo "creating $dirpart/$file"
18096 echo '# dummy' > "$dirpart/$file"
1e8e9920 18097 done
1e8e9920 18098 done
cd9a469c 18099}
542f9784 18100 ;;
cd9a469c 18101 "libtool":C)
542f9784 18102
18103 # See if we are running on zsh, and set the options which allow our
18104 # commands through without removal of \ escapes.
18105 if test -n "${ZSH_VERSION+set}" ; then
18106 setopt NO_GLOB_SUBST
18107 fi
18108
18109 cfgfile="${ofile}T"
18110 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18111 $RM "$cfgfile"
18112
18113 cat <<_LT_EOF >> "$cfgfile"
18114#! $SHELL
18115
18116# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6d873a38 18117# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
542f9784 18118# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18119# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18120#
6d873a38 18121# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
e6408286 18122# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
6d873a38 18123# Written by Gordon Matzigkeit, 1996
542f9784 18124#
6d873a38 18125# This file is part of GNU Libtool.
542f9784 18126#
6d873a38 18127# GNU Libtool is free software; you can redistribute it and/or
18128# modify it under the terms of the GNU General Public License as
18129# published by the Free Software Foundation; either version 2 of
18130# the License, or (at your option) any later version.
542f9784 18131#
6d873a38 18132# As a special exception to the GNU General Public License,
18133# if you distribute this file as part of a program or library that
18134# is built using GNU Libtool, you may include this file under the
18135# same distribution terms that you use for the rest of that program.
542f9784 18136#
6d873a38 18137# GNU Libtool is distributed in the hope that it will be useful,
18138# but WITHOUT ANY WARRANTY; without even the implied warranty of
18139# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18140# GNU General Public License for more details.
542f9784 18141#
6d873a38 18142# You should have received a copy of the GNU General Public License
18143# along with GNU Libtool; see the file COPYING. If not, a copy
18144# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18145# obtained by writing to the Free Software Foundation, Inc.,
18146# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
542f9784 18147
18148
18149# The names of the tagged configurations supported by this script.
18150available_tags="FC "
18151
18152# ### BEGIN LIBTOOL CONFIG
18153
18154# Which release of libtool.m4 was used?
18155macro_version=$macro_version
18156macro_revision=$macro_revision
18157
18158# Whether or not to build shared libraries.
18159build_libtool_libs=$enable_shared
18160
18161# Whether or not to build static libraries.
18162build_old_libs=$enable_static
18163
18164# What type of objects to build.
18165pic_mode=$pic_mode
18166
18167# Whether or not to optimize for fast installation.
18168fast_install=$enable_fast_install
18169
e6408286 18170# Shell to use when invoking shell scripts.
18171SHELL=$lt_SHELL
18172
18173# An echo program that protects backslashes.
18174ECHO=$lt_ECHO
18175
542f9784 18176# The host system.
18177host_alias=$host_alias
18178host=$host
18179host_os=$host_os
18180
18181# The build system.
18182build_alias=$build_alias
18183build=$build
18184build_os=$build_os
18185
18186# A sed program that does not truncate output.
18187SED=$lt_SED
18188
18189# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18190Xsed="\$SED -e 1s/^X//"
18191
18192# A grep program that handles long lines.
18193GREP=$lt_GREP
18194
18195# An ERE matcher.
18196EGREP=$lt_EGREP
18197
18198# A literal string matcher.
18199FGREP=$lt_FGREP
18200
18201# A BSD- or MS-compatible name lister.
18202NM=$lt_NM
18203
18204# Whether we need soft or hard links.
18205LN_S=$lt_LN_S
18206
18207# What is the maximum length of a command?
18208max_cmd_len=$max_cmd_len
18209
18210# Object file suffix (normally "o").
18211objext=$ac_objext
18212
18213# Executable file suffix (normally "").
18214exeext=$exeext
18215
18216# whether the shell understands "unset".
18217lt_unset=$lt_unset
18218
18219# turn spaces into newlines.
18220SP2NL=$lt_lt_SP2NL
18221
18222# turn newlines into spaces.
18223NL2SP=$lt_lt_NL2SP
18224
6d873a38 18225# An object symbol dumper.
18226OBJDUMP=$lt_OBJDUMP
18227
542f9784 18228# Method to check whether dependent libraries are shared objects.
18229deplibs_check_method=$lt_deplibs_check_method
18230
18231# Command to use when deplibs_check_method == "file_magic".
18232file_magic_cmd=$lt_file_magic_cmd
18233
18234# The archiver.
18235AR=$lt_AR
18236AR_FLAGS=$lt_AR_FLAGS
18237
18238# A symbol stripping program.
18239STRIP=$lt_STRIP
18240
18241# Commands used to install an old-style archive.
18242RANLIB=$lt_RANLIB
18243old_postinstall_cmds=$lt_old_postinstall_cmds
18244old_postuninstall_cmds=$lt_old_postuninstall_cmds
18245
e6408286 18246# Whether to use a lock for old archive extraction.
18247lock_old_archive_extraction=$lock_old_archive_extraction
18248
542f9784 18249# A C compiler.
18250LTCC=$lt_CC
18251
18252# LTCC compiler flags.
18253LTCFLAGS=$lt_CFLAGS
18254
18255# Take the output of nm and produce a listing of raw symbols and C names.
18256global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18257
18258# Transform the output of nm in a proper C declaration.
18259global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18260
18261# Transform the output of nm in a C name address pair.
18262global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18263
6d873a38 18264# Transform the output of nm in a C name address pair when lib prefix is needed.
18265global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18266
542f9784 18267# The name of the directory that contains temporary libtool files.
18268objdir=$objdir
18269
542f9784 18270# Used to examine libraries when file_magic_cmd begins with "file".
18271MAGIC_CMD=$MAGIC_CMD
18272
18273# Must we lock files when doing compilation?
18274need_locks=$lt_need_locks
18275
6d873a38 18276# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18277DSYMUTIL=$lt_DSYMUTIL
18278
18279# Tool to change global to local symbols on Mac OS X.
18280NMEDIT=$lt_NMEDIT
18281
18282# Tool to manipulate fat objects and archives on Mac OS X.
18283LIPO=$lt_LIPO
18284
18285# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18286OTOOL=$lt_OTOOL
18287
18288# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18289OTOOL64=$lt_OTOOL64
18290
542f9784 18291# Old archive suffix (normally "a").
18292libext=$libext
18293
18294# Shared library suffix (normally ".so").
18295shrext_cmds=$lt_shrext_cmds
18296
18297# The commands to extract the exported symbol list from a shared archive.
18298extract_expsyms_cmds=$lt_extract_expsyms_cmds
18299
18300# Variables whose values should be saved in libtool wrapper scripts and
18301# restored at link time.
18302variables_saved_for_relink=$lt_variables_saved_for_relink
18303
18304# Do we need the "lib" prefix for modules?
18305need_lib_prefix=$need_lib_prefix
18306
18307# Do we need a version for libraries?
18308need_version=$need_version
18309
18310# Library versioning type.
18311version_type=$version_type
18312
18313# Shared library runtime path variable.
18314runpath_var=$runpath_var
18315
18316# Shared library path variable.
18317shlibpath_var=$shlibpath_var
18318
18319# Is shlibpath searched before the hard-coded library search path?
18320shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18321
18322# Format of library name prefix.
18323libname_spec=$lt_libname_spec
18324
18325# List of archive names. First name is the real one, the rest are links.
18326# The last name is the one that the linker finds with -lNAME
18327library_names_spec=$lt_library_names_spec
18328
18329# The coded name of the library, if different from the real name.
18330soname_spec=$lt_soname_spec
18331
e6408286 18332# Permission mode override for installation of shared libraries.
18333install_override_mode=$lt_install_override_mode
18334
542f9784 18335# Command to use after installation of a shared archive.
18336postinstall_cmds=$lt_postinstall_cmds
18337
18338# Command to use after uninstallation of a shared archive.
18339postuninstall_cmds=$lt_postuninstall_cmds
18340
18341# Commands used to finish a libtool library installation in a directory.
18342finish_cmds=$lt_finish_cmds
18343
18344# As "finish_cmds", except a single script fragment to be evaled but
18345# not shown.
18346finish_eval=$lt_finish_eval
18347
18348# Whether we should hardcode library paths into libraries.
18349hardcode_into_libs=$hardcode_into_libs
18350
18351# Compile-time system search path for libraries.
18352sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18353
18354# Run-time system search path for libraries.
18355sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18356
18357# Whether dlopen is supported.
18358dlopen_support=$enable_dlopen
18359
18360# Whether dlopen of programs is supported.
18361dlopen_self=$enable_dlopen_self
18362
18363# Whether dlopen of statically linked programs is supported.
18364dlopen_self_static=$enable_dlopen_self_static
18365
18366# Commands to strip libraries.
18367old_striplib=$lt_old_striplib
18368striplib=$lt_striplib
18369
18370
18371# The linker used to build libraries.
18372LD=$lt_LD
18373
e6408286 18374# How to create reloadable object files.
18375reload_flag=$lt_reload_flag
18376reload_cmds=$lt_reload_cmds
18377
542f9784 18378# Commands used to build an old-style archive.
18379old_archive_cmds=$lt_old_archive_cmds
18380
18381# A language specific compiler.
18382CC=$lt_compiler
18383
18384# Is the compiler the GNU compiler?
18385with_gcc=$GCC
18386
18387# Compiler flag to turn off builtin functions.
18388no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18389
18390# How to pass a linker flag through the compiler.
18391wl=$lt_lt_prog_compiler_wl
18392
18393# Additional compiler flags for building library objects.
18394pic_flag=$lt_lt_prog_compiler_pic
18395
18396# Compiler flag to prevent dynamic linking.
18397link_static_flag=$lt_lt_prog_compiler_static
18398
18399# Does compiler simultaneously support -c and -o options?
18400compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18401
18402# Whether or not to add -lc for building shared libraries.
18403build_libtool_need_lc=$archive_cmds_need_lc
18404
18405# Whether or not to disallow shared libs when runtime libs are static.
18406allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18407
18408# Compiler flag to allow reflexive dlopens.
18409export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18410
18411# Compiler flag to generate shared objects directly from archives.
18412whole_archive_flag_spec=$lt_whole_archive_flag_spec
18413
18414# Whether the compiler copes with passing no objects directly.
18415compiler_needs_object=$lt_compiler_needs_object
18416
18417# Create an old-style archive from a shared archive.
18418old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18419
18420# Create a temporary old-style archive to link instead of a shared archive.
18421old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18422
18423# Commands used to build a shared archive.
18424archive_cmds=$lt_archive_cmds
18425archive_expsym_cmds=$lt_archive_expsym_cmds
18426
18427# Commands used to build a loadable module if different from building
18428# a shared archive.
18429module_cmds=$lt_module_cmds
18430module_expsym_cmds=$lt_module_expsym_cmds
18431
18432# Whether we are building with GNU ld or not.
18433with_gnu_ld=$lt_with_gnu_ld
18434
18435# Flag that allows shared libraries with undefined symbols to be built.
18436allow_undefined_flag=$lt_allow_undefined_flag
18437
18438# Flag that enforces no undefined symbols.
18439no_undefined_flag=$lt_no_undefined_flag
18440
18441# Flag to hardcode \$libdir into a binary during linking.
18442# This must work even if \$libdir does not exist
18443hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18444
18445# If ld is used when linking, flag to hardcode \$libdir into a binary
18446# during linking. This must work even if \$libdir does not exist.
18447hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18448
18449# Whether we need a single "-rpath" flag with a separated argument.
18450hardcode_libdir_separator=$lt_hardcode_libdir_separator
18451
18452# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18453# DIR into the resulting binary.
18454hardcode_direct=$hardcode_direct
18455
18456# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18457# DIR into the resulting binary and the resulting library dependency is
18458# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18459# library is relocated.
18460hardcode_direct_absolute=$hardcode_direct_absolute
18461
18462# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18463# into the resulting binary.
18464hardcode_minus_L=$hardcode_minus_L
18465
18466# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18467# into the resulting binary.
18468hardcode_shlibpath_var=$hardcode_shlibpath_var
18469
18470# Set to "yes" if building a shared library automatically hardcodes DIR
18471# into the library and all subsequent libraries and executables linked
18472# against it.
18473hardcode_automatic=$hardcode_automatic
18474
18475# Set to yes if linker adds runtime paths of dependent libraries
18476# to runtime path list.
18477inherit_rpath=$inherit_rpath
18478
18479# Whether libtool must link a program against all its dependency libraries.
18480link_all_deplibs=$link_all_deplibs
18481
18482# Fix the shell variable \$srcfile for the compiler.
18483fix_srcfile_path=$lt_fix_srcfile_path
18484
18485# Set to "yes" if exported symbols are required.
18486always_export_symbols=$always_export_symbols
18487
18488# The commands to list exported symbols.
18489export_symbols_cmds=$lt_export_symbols_cmds
18490
18491# Symbols that should not be listed in the preloaded symbols.
18492exclude_expsyms=$lt_exclude_expsyms
18493
18494# Symbols that must always be exported.
18495include_expsyms=$lt_include_expsyms
18496
18497# Commands necessary for linking programs (against libraries) with templates.
18498prelink_cmds=$lt_prelink_cmds
18499
18500# Specify filename containing input files.
18501file_list_spec=$lt_file_list_spec
18502
18503# How to hardcode a shared library path into an executable.
18504hardcode_action=$hardcode_action
18505
6d873a38 18506# The directories searched by this compiler when creating a shared library.
18507compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18508
542f9784 18509# Dependencies to place before and after the objects being linked to
18510# create a shared library.
18511predep_objects=$lt_predep_objects
18512postdep_objects=$lt_postdep_objects
18513predeps=$lt_predeps
18514postdeps=$lt_postdeps
18515
18516# The library search path used internally by the compiler when linking
18517# a shared library.
18518compiler_lib_search_path=$lt_compiler_lib_search_path
18519
18520# ### END LIBTOOL CONFIG
18521
18522_LT_EOF
18523
18524 case $host_os in
18525 aix3*)
18526 cat <<\_LT_EOF >> "$cfgfile"
18527# AIX sometimes has problems with the GCC collect2 program. For some
18528# reason, if we set the COLLECT_NAMES environment variable, the problems
18529# vanish in a puff of smoke.
18530if test "X${COLLECT_NAMES+set}" != Xset; then
18531 COLLECT_NAMES=
18532 export COLLECT_NAMES
18533fi
18534_LT_EOF
18535 ;;
18536 esac
18537
18538
18539ltmain="$ac_aux_dir/ltmain.sh"
18540
18541
18542 # We use sed instead of cat because bash on DJGPP gets confused if
18543 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18544 # text mode, it properly converts lines to CR/LF. This bash problem
18545 # is reportedly fixed, but why not run on old versions too?
18546 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18547 || (rm -f "$cfgfile"; exit 1)
18548
18549 case $xsi_shell in
18550 yes)
18551 cat << \_LT_EOF >> "$cfgfile"
6d873a38 18552
542f9784 18553# func_dirname file append nondir_replacement
18554# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18555# otherwise set result to NONDIR_REPLACEMENT.
18556func_dirname ()
18557{
18558 case ${1} in
18559 */*) func_dirname_result="${1%/*}${2}" ;;
18560 * ) func_dirname_result="${3}" ;;
18561 esac
18562}
18563
18564# func_basename file
18565func_basename ()
18566{
18567 func_basename_result="${1##*/}"
18568}
18569
6d873a38 18570# func_dirname_and_basename file append nondir_replacement
18571# perform func_basename and func_dirname in a single function
18572# call:
18573# dirname: Compute the dirname of FILE. If nonempty,
18574# add APPEND to the result, otherwise set result
18575# to NONDIR_REPLACEMENT.
18576# value returned in "$func_dirname_result"
18577# basename: Compute filename of FILE.
18578# value retuned in "$func_basename_result"
18579# Implementation must be kept synchronized with func_dirname
18580# and func_basename. For efficiency, we do not delegate to
18581# those functions but instead duplicate the functionality here.
18582func_dirname_and_basename ()
18583{
18584 case ${1} in
18585 */*) func_dirname_result="${1%/*}${2}" ;;
18586 * ) func_dirname_result="${3}" ;;
18587 esac
18588 func_basename_result="${1##*/}"
18589}
18590
542f9784 18591# func_stripname prefix suffix name
18592# strip PREFIX and SUFFIX off of NAME.
18593# PREFIX and SUFFIX must not contain globbing or regex special
18594# characters, hashes, percent signs, but SUFFIX may contain a leading
18595# dot (in which case that matches only a dot).
18596func_stripname ()
18597{
18598 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18599 # positional parameters, so assign one to ordinary parameter first.
18600 func_stripname_result=${3}
18601 func_stripname_result=${func_stripname_result#"${1}"}
18602 func_stripname_result=${func_stripname_result%"${2}"}
18603}
18604
18605# func_opt_split
18606func_opt_split ()
18607{
18608 func_opt_split_opt=${1%%=*}
18609 func_opt_split_arg=${1#*=}
18610}
18611
18612# func_lo2o object
18613func_lo2o ()
18614{
18615 case ${1} in
18616 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18617 *) func_lo2o_result=${1} ;;
18618 esac
18619}
6d873a38 18620
18621# func_xform libobj-or-source
18622func_xform ()
18623{
18624 func_xform_result=${1%.*}.lo
18625}
18626
18627# func_arith arithmetic-term...
18628func_arith ()
18629{
18630 func_arith_result=$(( $* ))
18631}
18632
18633# func_len string
18634# STRING may not start with a hyphen.
18635func_len ()
18636{
18637 func_len_result=${#1}
18638}
18639
542f9784 18640_LT_EOF
18641 ;;
18642 *) # Bourne compatible functions.
18643 cat << \_LT_EOF >> "$cfgfile"
6d873a38 18644
542f9784 18645# func_dirname file append nondir_replacement
18646# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18647# otherwise set result to NONDIR_REPLACEMENT.
18648func_dirname ()
18649{
18650 # Extract subdirectory from the argument.
e6408286 18651 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
542f9784 18652 if test "X$func_dirname_result" = "X${1}"; then
18653 func_dirname_result="${3}"
18654 else
18655 func_dirname_result="$func_dirname_result${2}"
18656 fi
18657}
18658
18659# func_basename file
18660func_basename ()
18661{
e6408286 18662 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
542f9784 18663}
18664
6d873a38 18665
542f9784 18666# func_stripname prefix suffix name
18667# strip PREFIX and SUFFIX off of NAME.
18668# PREFIX and SUFFIX must not contain globbing or regex special
18669# characters, hashes, percent signs, but SUFFIX may contain a leading
18670# dot (in which case that matches only a dot).
18671# func_strip_suffix prefix name
18672func_stripname ()
18673{
18674 case ${2} in
e6408286 18675 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18676 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
542f9784 18677 esac
18678}
18679
18680# sed scripts:
18681my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18682my_sed_long_arg='1s/^-[^=]*=//'
18683
18684# func_opt_split
18685func_opt_split ()
18686{
e6408286 18687 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18688 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
542f9784 18689}
18690
18691# func_lo2o object
18692func_lo2o ()
18693{
e6408286 18694 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
542f9784 18695}
6d873a38 18696
18697# func_xform libobj-or-source
18698func_xform ()
18699{
e6408286 18700 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
6d873a38 18701}
18702
18703# func_arith arithmetic-term...
18704func_arith ()
18705{
18706 func_arith_result=`expr "$@"`
18707}
18708
18709# func_len string
18710# STRING may not start with a hyphen.
18711func_len ()
18712{
18713 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18714}
18715
542f9784 18716_LT_EOF
18717esac
18718
18719case $lt_shell_append in
18720 yes)
18721 cat << \_LT_EOF >> "$cfgfile"
18722
18723# func_append var value
18724# Append VALUE to the end of shell variable VAR.
18725func_append ()
18726{
18727 eval "$1+=\$2"
18728}
18729_LT_EOF
18730 ;;
18731 *)
18732 cat << \_LT_EOF >> "$cfgfile"
18733
18734# func_append var value
18735# Append VALUE to the end of shell variable VAR.
18736func_append ()
18737{
18738 eval "$1=\$$1\$2"
18739}
6d873a38 18740
542f9784 18741_LT_EOF
18742 ;;
18743 esac
18744
18745
18746 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18747 || (rm -f "$cfgfile"; exit 1)
18748
18749 mv -f "$cfgfile" "$ofile" ||
18750 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18751 chmod +x "$ofile"
18752
18753
18754 cat <<_LT_EOF >> "$ofile"
18755
18756# ### BEGIN LIBTOOL TAG CONFIG: FC
18757
18758# The linker used to build libraries.
18759LD=$lt_LD_FC
18760
e6408286 18761# How to create reloadable object files.
18762reload_flag=$lt_reload_flag_FC
18763reload_cmds=$lt_reload_cmds_FC
18764
542f9784 18765# Commands used to build an old-style archive.
18766old_archive_cmds=$lt_old_archive_cmds_FC
18767
18768# A language specific compiler.
18769CC=$lt_compiler_FC
18770
18771# Is the compiler the GNU compiler?
18772with_gcc=$GCC_FC
18773
18774# Compiler flag to turn off builtin functions.
18775no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
18776
18777# How to pass a linker flag through the compiler.
18778wl=$lt_lt_prog_compiler_wl_FC
18779
18780# Additional compiler flags for building library objects.
18781pic_flag=$lt_lt_prog_compiler_pic_FC
18782
18783# Compiler flag to prevent dynamic linking.
18784link_static_flag=$lt_lt_prog_compiler_static_FC
18785
18786# Does compiler simultaneously support -c and -o options?
18787compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
18788
18789# Whether or not to add -lc for building shared libraries.
18790build_libtool_need_lc=$archive_cmds_need_lc_FC
18791
18792# Whether or not to disallow shared libs when runtime libs are static.
18793allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
18794
18795# Compiler flag to allow reflexive dlopens.
18796export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
18797
18798# Compiler flag to generate shared objects directly from archives.
18799whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
18800
18801# Whether the compiler copes with passing no objects directly.
18802compiler_needs_object=$lt_compiler_needs_object_FC
18803
18804# Create an old-style archive from a shared archive.
18805old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
18806
18807# Create a temporary old-style archive to link instead of a shared archive.
18808old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
18809
18810# Commands used to build a shared archive.
18811archive_cmds=$lt_archive_cmds_FC
18812archive_expsym_cmds=$lt_archive_expsym_cmds_FC
18813
18814# Commands used to build a loadable module if different from building
18815# a shared archive.
18816module_cmds=$lt_module_cmds_FC
18817module_expsym_cmds=$lt_module_expsym_cmds_FC
18818
18819# Whether we are building with GNU ld or not.
18820with_gnu_ld=$lt_with_gnu_ld_FC
18821
18822# Flag that allows shared libraries with undefined symbols to be built.
18823allow_undefined_flag=$lt_allow_undefined_flag_FC
18824
18825# Flag that enforces no undefined symbols.
18826no_undefined_flag=$lt_no_undefined_flag_FC
18827
18828# Flag to hardcode \$libdir into a binary during linking.
18829# This must work even if \$libdir does not exist
18830hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
18831
18832# If ld is used when linking, flag to hardcode \$libdir into a binary
18833# during linking. This must work even if \$libdir does not exist.
18834hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
18835
18836# Whether we need a single "-rpath" flag with a separated argument.
18837hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
18838
18839# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18840# DIR into the resulting binary.
18841hardcode_direct=$hardcode_direct_FC
18842
18843# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18844# DIR into the resulting binary and the resulting library dependency is
18845# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18846# library is relocated.
18847hardcode_direct_absolute=$hardcode_direct_absolute_FC
18848
18849# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18850# into the resulting binary.
18851hardcode_minus_L=$hardcode_minus_L_FC
18852
18853# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18854# into the resulting binary.
18855hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
18856
18857# Set to "yes" if building a shared library automatically hardcodes DIR
18858# into the library and all subsequent libraries and executables linked
18859# against it.
18860hardcode_automatic=$hardcode_automatic_FC
18861
18862# Set to yes if linker adds runtime paths of dependent libraries
18863# to runtime path list.
18864inherit_rpath=$inherit_rpath_FC
18865
18866# Whether libtool must link a program against all its dependency libraries.
18867link_all_deplibs=$link_all_deplibs_FC
18868
18869# Fix the shell variable \$srcfile for the compiler.
18870fix_srcfile_path=$lt_fix_srcfile_path_FC
18871
18872# Set to "yes" if exported symbols are required.
18873always_export_symbols=$always_export_symbols_FC
18874
18875# The commands to list exported symbols.
18876export_symbols_cmds=$lt_export_symbols_cmds_FC
18877
18878# Symbols that should not be listed in the preloaded symbols.
18879exclude_expsyms=$lt_exclude_expsyms_FC
18880
18881# Symbols that must always be exported.
18882include_expsyms=$lt_include_expsyms_FC
18883
18884# Commands necessary for linking programs (against libraries) with templates.
18885prelink_cmds=$lt_prelink_cmds_FC
18886
18887# Specify filename containing input files.
18888file_list_spec=$lt_file_list_spec_FC
18889
18890# How to hardcode a shared library path into an executable.
18891hardcode_action=$hardcode_action_FC
18892
6d873a38 18893# The directories searched by this compiler when creating a shared library.
18894compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
18895
542f9784 18896# Dependencies to place before and after the objects being linked to
18897# create a shared library.
18898predep_objects=$lt_predep_objects_FC
18899postdep_objects=$lt_postdep_objects_FC
18900predeps=$lt_predeps_FC
18901postdeps=$lt_postdeps_FC
18902
18903# The library search path used internally by the compiler when linking
18904# a shared library.
18905compiler_lib_search_path=$lt_compiler_lib_search_path_FC
18906
18907# ### END LIBTOOL TAG CONFIG: FC
18908_LT_EOF
18909
01473a49 18910 ;;
cd9a469c 18911 "gstdint.h":C)
01473a49 18912if test "$GCC" = yes; then
18913 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18914else
18915 echo "/* generated for $CC */" > tmp-stdint.h
18916fi
18917
18918sed 's/^ *//' >> tmp-stdint.h <<EOF
18919
18920 #ifndef GCC_GENERATED_STDINT_H
18921 #define GCC_GENERATED_STDINT_H 1
18922
18923 #include <sys/types.h>
18924EOF
18925
18926if test "$acx_cv_header_stdint" != stdint.h; then
18927 echo "#include <stddef.h>" >> tmp-stdint.h
18928fi
18929if test "$acx_cv_header_stdint" != stddef.h; then
18930 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18931fi
18932
18933sed 's/^ *//' >> tmp-stdint.h <<EOF
18934 /* glibc uses these symbols as guards to prevent redefinitions. */
18935 #ifdef __int8_t_defined
18936 #define _INT8_T
18937 #define _INT16_T
18938 #define _INT32_T
18939 #endif
18940 #ifdef __uint32_t_defined
18941 #define _UINT32_T
18942 #endif
18943
18944EOF
18945
18946# ----------------- done header, emit basic int types -------------
18947if test "$acx_cv_header_stdint" = stddef.h; then
18948 sed 's/^ *//' >> tmp-stdint.h <<EOF
18949
18950 #ifndef _UINT8_T
18951 #define _UINT8_T
542f9784 18952 #ifndef __uint8_t_defined
18953 #define __uint8_t_defined
9ad2e3f3 18954 #ifndef uint8_t
01473a49 18955 typedef unsigned $acx_cv_type_int8_t uint8_t;
18956 #endif
542f9784 18957 #endif
9ad2e3f3 18958 #endif
01473a49 18959
18960 #ifndef _UINT16_T
18961 #define _UINT16_T
542f9784 18962 #ifndef __uint16_t_defined
18963 #define __uint16_t_defined
9ad2e3f3 18964 #ifndef uint16_t
01473a49 18965 typedef unsigned $acx_cv_type_int16_t uint16_t;
18966 #endif
542f9784 18967 #endif
9ad2e3f3 18968 #endif
01473a49 18969
18970 #ifndef _UINT32_T
18971 #define _UINT32_T
542f9784 18972 #ifndef __uint32_t_defined
18973 #define __uint32_t_defined
9ad2e3f3 18974 #ifndef uint32_t
01473a49 18975 typedef unsigned $acx_cv_type_int32_t uint32_t;
18976 #endif
542f9784 18977 #endif
9ad2e3f3 18978 #endif
01473a49 18979
18980 #ifndef _INT8_T
18981 #define _INT8_T
542f9784 18982 #ifndef __int8_t_defined
18983 #define __int8_t_defined
9ad2e3f3 18984 #ifndef int8_t
01473a49 18985 typedef $acx_cv_type_int8_t int8_t;
18986 #endif
542f9784 18987 #endif
9ad2e3f3 18988 #endif
01473a49 18989
18990 #ifndef _INT16_T
18991 #define _INT16_T
542f9784 18992 #ifndef __int16_t_defined
18993 #define __int16_t_defined
9ad2e3f3 18994 #ifndef int16_t
01473a49 18995 typedef $acx_cv_type_int16_t int16_t;
18996 #endif
542f9784 18997 #endif
9ad2e3f3 18998 #endif
01473a49 18999
19000 #ifndef _INT32_T
19001 #define _INT32_T
542f9784 19002 #ifndef __int32_t_defined
19003 #define __int32_t_defined
9ad2e3f3 19004 #ifndef int32_t
01473a49 19005 typedef $acx_cv_type_int32_t int32_t;
19006 #endif
542f9784 19007 #endif
9ad2e3f3 19008 #endif
01473a49 19009EOF
19010elif test "$ac_cv_type_u_int32_t" = yes; then
19011 sed 's/^ *//' >> tmp-stdint.h <<EOF
19012
19013 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19014 #ifndef _INT8_T
19015 #define _INT8_T
19016 #endif
19017 #ifndef _INT16_T
19018 #define _INT16_T
19019 #endif
19020 #ifndef _INT32_T
19021 #define _INT32_T
19022 #endif
19023
19024 #ifndef _UINT8_T
19025 #define _UINT8_T
542f9784 19026 #ifndef __uint8_t_defined
19027 #define __uint8_t_defined
9ad2e3f3 19028 #ifndef uint8_t
01473a49 19029 typedef u_int8_t uint8_t;
19030 #endif
542f9784 19031 #endif
9ad2e3f3 19032 #endif
01473a49 19033
19034 #ifndef _UINT16_T
19035 #define _UINT16_T
542f9784 19036 #ifndef __uint16_t_defined
19037 #define __uint16_t_defined
9ad2e3f3 19038 #ifndef uint16_t
01473a49 19039 typedef u_int16_t uint16_t;
19040 #endif
542f9784 19041 #endif
9ad2e3f3 19042 #endif
01473a49 19043
19044 #ifndef _UINT32_T
19045 #define _UINT32_T
542f9784 19046 #ifndef __uint32_t_defined
19047 #define __uint32_t_defined
9ad2e3f3 19048 #ifndef uint32_t
01473a49 19049 typedef u_int32_t uint32_t;
19050 #endif
542f9784 19051 #endif
9ad2e3f3 19052 #endif
01473a49 19053EOF
19054else
19055 sed 's/^ *//' >> tmp-stdint.h <<EOF
19056
19057 /* Some systems have guard macros to prevent redefinitions, define them. */
19058 #ifndef _INT8_T
19059 #define _INT8_T
19060 #endif
19061 #ifndef _INT16_T
19062 #define _INT16_T
19063 #endif
19064 #ifndef _INT32_T
19065 #define _INT32_T
19066 #endif
19067 #ifndef _UINT8_T
19068 #define _UINT8_T
19069 #endif
19070 #ifndef _UINT16_T
19071 #define _UINT16_T
19072 #endif
19073 #ifndef _UINT32_T
19074 #define _UINT32_T
19075 #endif
19076EOF
19077fi
19078
19079# ------------- done basic int types, emit int64_t types ------------
19080if test "$ac_cv_type_uint64_t" = yes; then
19081 sed 's/^ *//' >> tmp-stdint.h <<EOF
19082
19083 /* system headers have good uint64_t and int64_t */
19084 #ifndef _INT64_T
19085 #define _INT64_T
19086 #endif
19087 #ifndef _UINT64_T
19088 #define _UINT64_T
19089 #endif
19090EOF
19091elif test "$ac_cv_type_u_int64_t" = yes; then
19092 sed 's/^ *//' >> tmp-stdint.h <<EOF
19093
19094 /* system headers have an u_int64_t (and int64_t) */
19095 #ifndef _INT64_T
19096 #define _INT64_T
19097 #endif
19098 #ifndef _UINT64_T
19099 #define _UINT64_T
542f9784 19100 #ifndef __uint64_t_defined
19101 #define __uint64_t_defined
9ad2e3f3 19102 #ifndef uint64_t
01473a49 19103 typedef u_int64_t uint64_t;
19104 #endif
542f9784 19105 #endif
9ad2e3f3 19106 #endif
01473a49 19107EOF
19108elif test -n "$acx_cv_type_int64_t"; then
19109 sed 's/^ *//' >> tmp-stdint.h <<EOF
19110
19111 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19112 #ifndef _INT64_T
19113 #define _INT64_T
9ad2e3f3 19114 #ifndef int64_t
01473a49 19115 typedef $acx_cv_type_int64_t int64_t;
19116 #endif
9ad2e3f3 19117 #endif
01473a49 19118 #ifndef _UINT64_T
19119 #define _UINT64_T
542f9784 19120 #ifndef __uint64_t_defined
19121 #define __uint64_t_defined
9ad2e3f3 19122 #ifndef uint64_t
01473a49 19123 typedef unsigned $acx_cv_type_int64_t uint64_t;
19124 #endif
542f9784 19125 #endif
9ad2e3f3 19126 #endif
01473a49 19127EOF
19128else
19129 sed 's/^ *//' >> tmp-stdint.h <<EOF
19130
19131 /* some common heuristics for int64_t, using compiler-specific tests */
19132 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19133 #ifndef _INT64_T
19134 #define _INT64_T
542f9784 19135 #ifndef __int64_t_defined
9ad2e3f3 19136 #ifndef int64_t
01473a49 19137 typedef long long int64_t;
19138 #endif
542f9784 19139 #endif
9ad2e3f3 19140 #endif
01473a49 19141 #ifndef _UINT64_T
19142 #define _UINT64_T
9ad2e3f3 19143 #ifndef uint64_t
01473a49 19144 typedef unsigned long long uint64_t;
19145 #endif
9ad2e3f3 19146 #endif
01473a49 19147
19148 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19149 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19150 does not implement __extension__. But that compiler doesn't define
19151 __GNUC_MINOR__. */
19152 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19153 # define __extension__
19154 # endif
19155
19156 # ifndef _INT64_T
19157 # define _INT64_T
9ad2e3f3 19158 # ifndef int64_t
01473a49 19159 __extension__ typedef long long int64_t;
19160 # endif
9ad2e3f3 19161 # endif
01473a49 19162 # ifndef _UINT64_T
19163 # define _UINT64_T
9ad2e3f3 19164 # ifndef uint64_t
01473a49 19165 __extension__ typedef unsigned long long uint64_t;
19166 # endif
9ad2e3f3 19167 # endif
01473a49 19168
19169 #elif !defined __STRICT_ANSI__
19170 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19171
19172 # ifndef _INT64_T
19173 # define _INT64_T
9ad2e3f3 19174 # ifndef int64_t
01473a49 19175 typedef __int64 int64_t;
19176 # endif
9ad2e3f3 19177 # endif
01473a49 19178 # ifndef _UINT64_T
19179 # define _UINT64_T
9ad2e3f3 19180 # ifndef uint64_t
01473a49 19181 typedef unsigned __int64 uint64_t;
19182 # endif
9ad2e3f3 19183 # endif
01473a49 19184 # endif /* compiler */
19185
19186 #endif /* ANSI version */
19187EOF
19188fi
19189
19190# ------------- done int64_t types, emit intptr types ------------
19191if test "$ac_cv_type_uintptr_t" != yes; then
19192 sed 's/^ *//' >> tmp-stdint.h <<EOF
19193
19194 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
542f9784 19195 #ifndef __uintptr_t_defined
9ad2e3f3 19196 #ifndef uintptr_t
01473a49 19197 typedef u$acx_cv_type_intptr_t uintptr_t;
542f9784 19198 #endif
9ad2e3f3 19199 #endif
542f9784 19200 #ifndef __intptr_t_defined
9ad2e3f3 19201 #ifndef intptr_t
01473a49 19202 typedef $acx_cv_type_intptr_t intptr_t;
542f9784 19203 #endif
9ad2e3f3 19204 #endif
01473a49 19205EOF
19206fi
19207
19208# ------------- done intptr types, emit int_least types ------------
19209if test "$ac_cv_type_int_least32_t" != yes; then
19210 sed 's/^ *//' >> tmp-stdint.h <<EOF
19211
19212 /* Define int_least types */
19213 typedef int8_t int_least8_t;
19214 typedef int16_t int_least16_t;
19215 typedef int32_t int_least32_t;
19216 #ifdef _INT64_T
19217 typedef int64_t int_least64_t;
19218 #endif
19219
19220 typedef uint8_t uint_least8_t;
19221 typedef uint16_t uint_least16_t;
19222 typedef uint32_t uint_least32_t;
19223 #ifdef _UINT64_T
19224 typedef uint64_t uint_least64_t;
19225 #endif
19226EOF
19227fi
19228
19229# ------------- done intptr types, emit int_fast types ------------
19230if test "$ac_cv_type_int_fast32_t" != yes; then
19231 sed 's/^ *//' >> tmp-stdint.h <<EOF
19232
19233 /* Define int_fast types. short is often slow */
19234 typedef int8_t int_fast8_t;
19235 typedef int int_fast16_t;
19236 typedef int32_t int_fast32_t;
19237 #ifdef _INT64_T
19238 typedef int64_t int_fast64_t;
19239 #endif
19240
19241 typedef uint8_t uint_fast8_t;
19242 typedef unsigned int uint_fast16_t;
19243 typedef uint32_t uint_fast32_t;
19244 #ifdef _UINT64_T
19245 typedef uint64_t uint_fast64_t;
19246 #endif
19247EOF
19248fi
19249
19250if test "$ac_cv_type_uintmax_t" != yes; then
19251 sed 's/^ *//' >> tmp-stdint.h <<EOF
19252
19253 /* Define intmax based on what we found */
9ad2e3f3 19254 #ifndef intmax_t
01473a49 19255 #ifdef _INT64_T
19256 typedef int64_t intmax_t;
19257 #else
19258 typedef long intmax_t;
19259 #endif
9ad2e3f3 19260 #endif
19261 #ifndef uintmax_t
01473a49 19262 #ifdef _UINT64_T
19263 typedef uint64_t uintmax_t;
19264 #else
19265 typedef unsigned long uintmax_t;
19266 #endif
9ad2e3f3 19267 #endif
01473a49 19268EOF
19269fi
19270
19271sed 's/^ *//' >> tmp-stdint.h <<EOF
19272
19273 #endif /* GCC_GENERATED_STDINT_H */
19274EOF
19275
19276if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19277 rm -f tmp-stdint.h
19278else
19279 mv -f tmp-stdint.h gstdint.h
19280fi
19281
1e8e9920 19282 ;;
cd9a469c 19283
1e8e9920 19284 esac
cd9a469c 19285done # for ac_tag
1e8e9920 19286
1e8e9920 19287
cd9a469c 19288as_fn_exit 0
1e8e9920 19289_ACEOF
1e8e9920 19290ac_clean_files=$ac_clean_files_save
19291
cd9a469c 19292test $ac_write_fail = 0 ||
19293 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19294
1e8e9920 19295
19296# configure is writing to config.log, and then calls config.status.
19297# config.status does its own redirection, appending to config.log.
19298# Unfortunately, on DOS this fails, as config.log is still kept open
19299# by configure, so config.status won't be able to write to it; its
19300# output is simply discarded. So we exec the FD to /dev/null,
19301# effectively closing config.log, so it can be properly (re)opened and
19302# appended to by config.status. When coming back to configure, we
19303# need to make the FD available again.
19304if test "$no_create" != yes; then
19305 ac_cs_success=:
19306 ac_config_status_args=
19307 test "$silent" = yes &&
19308 ac_config_status_args="$ac_config_status_args --quiet"
19309 exec 5>/dev/null
19310 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19311 exec 5>>config.log
19312 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19313 # would make configure fail if this is the last instruction.
cd9a469c 19314 $ac_cs_success || as_fn_exit $?
19315fi
19316if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19318$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1e8e9920 19319fi
19320