]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/configure
2013-09-20 Janus Weil <janus@gcc.gnu.org>
[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_SUN_FALSE
623LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
624LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
625LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
cd9a469c 626LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
627LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
628OPT_LDFLAGS
629SECTION_LDFLAGS
630libtool_VERSION
631ac_ct_FC
632FCFLAGS
633FC
634MAINT
635MAINTAINER_MODE_FALSE
636MAINTAINER_MODE_TRUE
637enable_static
638enable_shared
8c35d268 639lt_host_flags
cd9a469c 640CPP
641OTOOL64
642OTOOL
643LIPO
644NMEDIT
645DSYMUTIL
cd9a469c 646OBJDUMP
647LN_S
648NM
649ac_ct_DUMPBIN
650DUMPBIN
651LD
652FGREP
653EGREP
654GREP
655SED
656LIBTOOL
657BUILD_INFO_FALSE
658BUILD_INFO_TRUE
659PERL
660RANLIB
661AR
662am__fastdepCC_FALSE
663am__fastdepCC_TRUE
664CCDEPMODE
665AMDEPBACKSLASH
666AMDEP_FALSE
667AMDEP_TRUE
668am__quote
669am__include
670DEPDIR
671OBJEXT
672EXEEXT
673ac_ct_CC
674CPPFLAGS
675LDFLAGS
676CFLAGS
677CC
678toolexeclibdir
679toolexecdir
680multi_basedir
681am__untar
682am__tar
683AMTAR
684am__leading_dot
685SET_MAKE
686AWK
687mkdir_p
688MKDIR_P
689INSTALL_STRIP_PROGRAM
690STRIP
691install_sh
692MAKEINFO
693AUTOHEADER
694AUTOMAKE
695AUTOCONF
696ACLOCAL
697VERSION
698PACKAGE
699CYGPATH_W
700am__isrc
701INSTALL_DATA
702INSTALL_SCRIPT
703INSTALL_PROGRAM
704target_os
705target_vendor
706target_cpu
707target
708host_os
709host_vendor
710host_cpu
711host
712build_os
713build_vendor
714build_cpu
715build
716GENINSRC_FALSE
717GENINSRC_TRUE
718target_alias
719host_alias
720build_alias
721LIBS
722ECHO_T
723ECHO_N
724ECHO_C
725DEFS
726mandir
727localedir
728libdir
729psdir
730pdfdir
731dvidir
732htmldir
733infodir
734docdir
735oldincludedir
736includedir
737localstatedir
738sharedstatedir
739sysconfdir
740datadir
741datarootdir
742libexecdir
743sbindir
744bindir
745program_transform_name
746prefix
747exec_prefix
748PACKAGE_URL
749PACKAGE_BUGREPORT
750PACKAGE_STRING
751PACKAGE_VERSION
752PACKAGE_TARNAME
753PACKAGE_NAME
754PATH_SEPARATOR
755SHELL'
1e8e9920 756ac_subst_files=''
cd9a469c 757ac_user_opts='
758enable_option_checking
759enable_version_specific_runtime_libs
760enable_generated_files_in_srcdir
761enable_multilib
762enable_dependency_tracking
763enable_shared
764enable_static
765with_pic
766enable_fast_install
767with_gnu_ld
768enable_libtool_lock
769enable_maintainer_mode
770enable_linux_futex
771enable_tls
772enable_symvers
773'
774 ac_precious_vars='build_alias
775host_alias
776target_alias
777CPP
778CPPFLAGS
779FC
780FCFLAGS
781LDFLAGS
782LIBS'
783
1e8e9920 784
785# Initialize some variables set by options.
786ac_init_help=
787ac_init_version=false
cd9a469c 788ac_unrecognized_opts=
789ac_unrecognized_sep=
1e8e9920 790# The variables have the same names as the options, with
791# dashes changed to underlines.
792cache_file=/dev/null
793exec_prefix=NONE
794no_create=
795no_recursion=
796prefix=NONE
797program_prefix=NONE
798program_suffix=NONE
799program_transform_name=s,x,x,
800silent=
801site=
802srcdir=
803verbose=
804x_includes=NONE
805x_libraries=NONE
806
807# Installation directory options.
808# These are left unexpanded so users can "make install exec_prefix=/foo"
809# and all the variables that are supposed to be based on exec_prefix
810# by default will actually change.
811# Use braces instead of parens because sh, perl, etc. also accept them.
cd9a469c 812# (The list follows the same order as the GNU Coding Standards.)
1e8e9920 813bindir='${exec_prefix}/bin'
814sbindir='${exec_prefix}/sbin'
815libexecdir='${exec_prefix}/libexec'
cd9a469c 816datarootdir='${prefix}/share'
817datadir='${datarootdir}'
1e8e9920 818sysconfdir='${prefix}/etc'
819sharedstatedir='${prefix}/com'
820localstatedir='${prefix}/var'
1e8e9920 821includedir='${prefix}/include'
822oldincludedir='/usr/include'
cd9a469c 823docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824infodir='${datarootdir}/info'
825htmldir='${docdir}'
826dvidir='${docdir}'
827pdfdir='${docdir}'
828psdir='${docdir}'
829libdir='${exec_prefix}/lib'
830localedir='${datarootdir}/locale'
831mandir='${datarootdir}/man'
1e8e9920 832
833ac_prev=
cd9a469c 834ac_dashdash=
1e8e9920 835for ac_option
836do
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
cd9a469c 839 eval $ac_prev=\$ac_option
1e8e9920 840 ac_prev=
841 continue
842 fi
843
cd9a469c 844 case $ac_option in
845 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 *) ac_optarg=yes ;;
847 esac
1e8e9920 848
849 # Accept the important Cygnus configure options, so we can diagnose typos.
850
cd9a469c 851 case $ac_dashdash$ac_option in
852 --)
853 ac_dashdash=yes ;;
1e8e9920 854
855 -bindir | --bindir | --bindi | --bind | --bin | --bi)
856 ac_prev=bindir ;;
857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858 bindir=$ac_optarg ;;
859
860 -build | --build | --buil | --bui | --bu)
861 ac_prev=build_alias ;;
862 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863 build_alias=$ac_optarg ;;
864
865 -cache-file | --cache-file | --cache-fil | --cache-fi \
866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867 ac_prev=cache_file ;;
868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870 cache_file=$ac_optarg ;;
871
872 --config-cache | -C)
873 cache_file=config.cache ;;
874
cd9a469c 875 -datadir | --datadir | --datadi | --datad)
1e8e9920 876 ac_prev=datadir ;;
cd9a469c 877 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1e8e9920 878 datadir=$ac_optarg ;;
879
cd9a469c 880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881 | --dataroo | --dataro | --datar)
882 ac_prev=datarootdir ;;
883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885 datarootdir=$ac_optarg ;;
886
1e8e9920 887 -disable-* | --disable-*)
cd9a469c 888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1e8e9920 889 # Reject names that are not valid shell variable names.
cd9a469c 890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891 as_fn_error "invalid feature name: $ac_useropt"
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
895 *"
896"enable_$ac_useropt"
897"*) ;;
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
900 esac
901 eval enable_$ac_useropt=no ;;
902
903 -docdir | --docdir | --docdi | --doc | --do)
904 ac_prev=docdir ;;
905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906 docdir=$ac_optarg ;;
907
908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909 ac_prev=dvidir ;;
910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911 dvidir=$ac_optarg ;;
1e8e9920 912
913 -enable-* | --enable-*)
cd9a469c 914 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1e8e9920 915 # Reject names that are not valid shell variable names.
cd9a469c 916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922"enable_$ac_useropt"
923"*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
1e8e9920 926 esac
cd9a469c 927 eval enable_$ac_useropt=\$ac_optarg ;;
1e8e9920 928
929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931 | --exec | --exe | --ex)
932 ac_prev=exec_prefix ;;
933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935 | --exec=* | --exe=* | --ex=*)
936 exec_prefix=$ac_optarg ;;
937
938 -gas | --gas | --ga | --g)
939 # Obsolete; use --with-gas.
940 with_gas=yes ;;
941
942 -help | --help | --hel | --he | -h)
943 ac_init_help=long ;;
944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945 ac_init_help=recursive ;;
946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947 ac_init_help=short ;;
948
949 -host | --host | --hos | --ho)
950 ac_prev=host_alias ;;
951 -host=* | --host=* | --hos=* | --ho=*)
952 host_alias=$ac_optarg ;;
953
cd9a469c 954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 ac_prev=htmldir ;;
956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 | --ht=*)
958 htmldir=$ac_optarg ;;
959
1e8e9920 960 -includedir | --includedir | --includedi | --included | --include \
961 | --includ | --inclu | --incl | --inc)
962 ac_prev=includedir ;;
963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964 | --includ=* | --inclu=* | --incl=* | --inc=*)
965 includedir=$ac_optarg ;;
966
967 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 ac_prev=infodir ;;
969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970 infodir=$ac_optarg ;;
971
972 -libdir | --libdir | --libdi | --libd)
973 ac_prev=libdir ;;
974 -libdir=* | --libdir=* | --libdi=* | --libd=*)
975 libdir=$ac_optarg ;;
976
977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978 | --libexe | --libex | --libe)
979 ac_prev=libexecdir ;;
980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981 | --libexe=* | --libex=* | --libe=*)
982 libexecdir=$ac_optarg ;;
983
cd9a469c 984 -localedir | --localedir | --localedi | --localed | --locale)
985 ac_prev=localedir ;;
986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987 localedir=$ac_optarg ;;
988
1e8e9920 989 -localstatedir | --localstatedir | --localstatedi | --localstated \
cd9a469c 990 | --localstate | --localstat | --localsta | --localst | --locals)
1e8e9920 991 ac_prev=localstatedir ;;
992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cd9a469c 993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1e8e9920 994 localstatedir=$ac_optarg ;;
995
996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 ac_prev=mandir ;;
998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999 mandir=$ac_optarg ;;
1000
1001 -nfp | --nfp | --nf)
1002 # Obsolete; use --without-fp.
1003 with_fp=no ;;
1004
1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006 | --no-cr | --no-c | -n)
1007 no_create=yes ;;
1008
1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 no_recursion=yes ;;
1012
1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015 | --oldin | --oldi | --old | --ol | --o)
1016 ac_prev=oldincludedir ;;
1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020 oldincludedir=$ac_optarg ;;
1021
1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 ac_prev=prefix ;;
1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025 prefix=$ac_optarg ;;
1026
1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028 | --program-pre | --program-pr | --program-p)
1029 ac_prev=program_prefix ;;
1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032 program_prefix=$ac_optarg ;;
1033
1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035 | --program-suf | --program-su | --program-s)
1036 ac_prev=program_suffix ;;
1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039 program_suffix=$ac_optarg ;;
1040
1041 -program-transform-name | --program-transform-name \
1042 | --program-transform-nam | --program-transform-na \
1043 | --program-transform-n | --program-transform- \
1044 | --program-transform | --program-transfor \
1045 | --program-transfo | --program-transf \
1046 | --program-trans | --program-tran \
1047 | --progr-tra | --program-tr | --program-t)
1048 ac_prev=program_transform_name ;;
1049 -program-transform-name=* | --program-transform-name=* \
1050 | --program-transform-nam=* | --program-transform-na=* \
1051 | --program-transform-n=* | --program-transform-=* \
1052 | --program-transform=* | --program-transfor=* \
1053 | --program-transfo=* | --program-transf=* \
1054 | --program-trans=* | --program-tran=* \
1055 | --progr-tra=* | --program-tr=* | --program-t=*)
1056 program_transform_name=$ac_optarg ;;
1057
cd9a469c 1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 ac_prev=pdfdir ;;
1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061 pdfdir=$ac_optarg ;;
1062
1063 -psdir | --psdir | --psdi | --psd | --ps)
1064 ac_prev=psdir ;;
1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066 psdir=$ac_optarg ;;
1067
1e8e9920 1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 silent=yes ;;
1071
1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 ac_prev=sbindir ;;
1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 | --sbi=* | --sb=*)
1076 sbindir=$ac_optarg ;;
1077
1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080 | --sharedst | --shareds | --shared | --share | --shar \
1081 | --sha | --sh)
1082 ac_prev=sharedstatedir ;;
1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 | --sha=* | --sh=*)
1087 sharedstatedir=$ac_optarg ;;
1088
1089 -site | --site | --sit)
1090 ac_prev=site ;;
1091 -site=* | --site=* | --sit=*)
1092 site=$ac_optarg ;;
1093
1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 ac_prev=srcdir ;;
1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097 srcdir=$ac_optarg ;;
1098
1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100 | --syscon | --sysco | --sysc | --sys | --sy)
1101 ac_prev=sysconfdir ;;
1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104 sysconfdir=$ac_optarg ;;
1105
1106 -target | --target | --targe | --targ | --tar | --ta | --t)
1107 ac_prev=target_alias ;;
1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109 target_alias=$ac_optarg ;;
1110
1111 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112 verbose=yes ;;
1113
1114 -version | --version | --versio | --versi | --vers | -V)
1115 ac_init_version=: ;;
1116
1117 -with-* | --with-*)
cd9a469c 1118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1e8e9920 1119 # Reject names that are not valid shell variable names.
cd9a469c 1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126"with_$ac_useropt"
1127"*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1e8e9920 1130 esac
cd9a469c 1131 eval with_$ac_useropt=\$ac_optarg ;;
1e8e9920 1132
1133 -without-* | --without-*)
cd9a469c 1134 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1e8e9920 1135 # Reject names that are not valid shell variable names.
cd9a469c 1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142"with_$ac_useropt"
1143"*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=no ;;
1e8e9920 1148
1149 --x)
1150 # Obsolete; use --with-x.
1151 with_x=yes ;;
1152
1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154 | --x-incl | --x-inc | --x-in | --x-i)
1155 ac_prev=x_includes ;;
1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158 x_includes=$ac_optarg ;;
1159
1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162 ac_prev=x_libraries ;;
1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165 x_libraries=$ac_optarg ;;
1166
cd9a469c 1167 -*) as_fn_error "unrecognized option: \`$ac_option'
1168Try \`$0 --help' for more information."
1e8e9920 1169 ;;
1170
1171 *=*)
1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173 # Reject names that are not valid shell variable names.
cd9a469c 1174 case $ac_envvar in #(
1175 '' | [0-9]* | *[!_$as_cr_alnum]* )
1176 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1177 esac
1178 eval $ac_envvar=\$ac_optarg
1e8e9920 1179 export $ac_envvar ;;
1180
1181 *)
1182 # FIXME: should be removed in autoconf 3.0.
cd9a469c 1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1e8e9920 1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cd9a469c 1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1e8e9920 1186 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1187 ;;
1188
1189 esac
1190done
1191
1192if test -n "$ac_prev"; then
1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cd9a469c 1194 as_fn_error "missing argument to $ac_option"
1e8e9920 1195fi
1196
cd9a469c 1197if test -n "$ac_unrecognized_opts"; then
1198 case $enable_option_checking in
1199 no) ;;
1200 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1e8e9920 1202 esac
cd9a469c 1203fi
1e8e9920 1204
cd9a469c 1205# Check all directory arguments for consistency.
1206for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1e8e9920 1210do
cd9a469c 1211 eval ac_val=\$$ac_var
1212 # Remove trailing slashes.
1e8e9920 1213 case $ac_val in
cd9a469c 1214 */ )
1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216 eval $ac_var=\$ac_val;;
1e8e9920 1217 esac
cd9a469c 1218 # Be sure to have absolute directory names.
1219 case $ac_val in
1220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222 esac
1223 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1e8e9920 1224done
1225
1226# There might be people who depend on the old broken behavior: `$host'
1227# used to hold the argument of --host etc.
1228# FIXME: To remove some day.
1229build=$build_alias
1230host=$host_alias
1231target=$target_alias
1232
1233# FIXME: To remove some day.
1234if test "x$host_alias" != x; then
1235 if test "x$build_alias" = x; then
1236 cross_compiling=maybe
cd9a469c 1237 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1e8e9920 1238 If a cross compiler is detected then cross compile mode will be used." >&2
1239 elif test "x$build_alias" != "x$host_alias"; then
1240 cross_compiling=yes
1241 fi
1242fi
1243
1244ac_tool_prefix=
1245test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247test "$silent" = yes && exec 6>/dev/null
1248
1249
cd9a469c 1250ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251ac_ls_di=`ls -di .` &&
1252ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253 as_fn_error "working directory cannot be determined"
1254test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 as_fn_error "pwd does not report name of working directory"
1256
1257
1e8e9920 1258# Find the source files, if location was not specified.
1259if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
cd9a469c 1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267$as_echo X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)[^/].*/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\).*/{
1281 s//\1/
1282 q
1283 }
1284 s/.*/./; q'`
1e8e9920 1285 srcdir=$ac_confdir
cd9a469c 1286 if test ! -r "$srcdir/$ac_unique_file"; then
1e8e9920 1287 srcdir=..
1288 fi
1289else
1290 ac_srcdir_defaulted=no
1291fi
cd9a469c 1292if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1295fi
1296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297ac_abs_confdir=`(
1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1299 pwd)`
1300# When building in place, set srcdir=.
1301if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1303fi
1304# Remove unnecessary trailing slashes from srcdir.
1305# Double slashes in file names in object file debugging info
1306# mess up M-x gdb in Emacs.
1307case $srcdir in
1308*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309esac
1310for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315done
1e8e9920 1316
1317#
1318# Report the --help message.
1319#
1320if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
1324\`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
1325
1326Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329VAR=VALUE. See below for descriptions of some of the useful variables.
1330
1331Defaults for the options are specified in brackets.
1332
1333Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343
1e8e9920 1344Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
cd9a469c 1346 [$ac_default_prefix]
1e8e9920 1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cd9a469c 1348 [PREFIX]
1e8e9920 1349
1350By default, \`make install' will install all the files in
1351\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353for instance \`--prefix=\$HOME'.
1354
1355For better control, use the options below.
1356
1357Fine tuning of the installation directories:
cd9a469c 1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1e8e9920 1377_ACEOF
1378
1379 cat <<\_ACEOF
1380
1381Program names:
1382 --program-prefix=PREFIX prepend PREFIX to installed program names
1383 --program-suffix=SUFFIX append SUFFIX to installed program names
1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1385
1386System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 --target=TARGET configure for building compilers for TARGET [HOST]
1390_ACEOF
1391fi
1392
1393if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
1396 esac
1397 cat <<\_ACEOF
1398
1399Optional Features:
cd9a469c 1400 --disable-option-checking ignore unrecognized --enable/--with options
1e8e9920 1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --enable-version-specific-runtime-libs
1404 Specify that runtime libraries should be installed
1405 in a compiler-specific directory [default=no]
aeda7a78 1406 --enable-generated-files-in-srcdir
1407 put copies of generated files in source dir intended
1408 for creating source tarballs for users without
1409 texinfo bison or flex. [default=no]
1e8e9920 1410 --enable-multilib build many library versions (default)
1411 --disable-dependency-tracking speeds up one-time build
1412 --enable-dependency-tracking do not reject slow dependency extractors
cd9a469c 1413 --enable-shared[=PKGS] build shared libraries [default=yes]
1414 --enable-static[=PKGS] build static libraries [default=yes]
542f9784 1415 --enable-fast-install[=PKGS]
1416 optimize for fast installation [default=yes]
1e8e9920 1417 --disable-libtool-lock avoid locking (might break parallel builds)
a263d1ab 1418 --enable-maintainer-mode enable make rules and dependencies not useful
1419 (and sometimes confusing) to the casual installer
cd9a469c 1420 --enable-linux-futex use the Linux futex system call [default=default]
e564ddd8 1421 --enable-tls Use thread-local storage [default=yes]
1e8e9920 1422 --enable-symvers=STYLE enables symbol versioning of the shared library
1423 [default=yes]
1424
1425Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
542f9784 1428 --with-pic try to use only PIC/non-PIC objects [default=use
1429 both]
1430 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1e8e9920 1431
1432Some influential environment variables:
1433 CC C compiler command
1434 CFLAGS C compiler flags
1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436 nonstandard directory <lib dir>
cd9a469c 1437 LIBS libraries to pass to the linker, e.g. -l<library>
1438 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1439 you have headers in a nonstandard directory <include dir>
542f9784 1440 CPP C preprocessor
1e8e9920 1441 FC Fortran compiler command
1442 FCFLAGS Fortran compiler flags
1e8e9920 1443
1444Use these variables to override the choices made by `configure' or to help
1445it to find libraries and programs with nonstandard names/locations.
1446
cd9a469c 1447Report bugs to the package provider.
1448GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1449General help using GNU software: <http://www.gnu.org/gethelp/>.
1e8e9920 1450_ACEOF
cd9a469c 1451ac_status=$?
1e8e9920 1452fi
1453
1454if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
1e8e9920 1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cd9a469c 1457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 continue
1e8e9920 1460 ac_builddir=.
1461
cd9a469c 1462case "$ac_dir" in
1463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464*)
1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472esac
1473ac_abs_top_builddir=$ac_pwd
1474ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475# for backward compatibility:
1476ac_top_builddir=$ac_top_build_prefix
1e8e9920 1477
1478case $srcdir in
cd9a469c 1479 .) # We are building in place.
1e8e9920 1480 ac_srcdir=.
cd9a469c 1481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
1e8e9920 1484 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 1485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1e8e9920 1491esac
cd9a469c 1492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
1494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
1e8e9920 1502 else
cd9a469c 1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
1e8e9920 1506 done
1507fi
1508
cd9a469c 1509test -n "$ac_init_help" && exit $ac_status
1e8e9920 1510if $ac_init_version; then
1511 cat <<\_ACEOF
1512GNU OpenMP Runtime Library configure 1.0
cd9a469c 1513generated by GNU Autoconf 2.64
1e8e9920 1514
cd9a469c 1515Copyright (C) 2009 Free Software Foundation, Inc.
1e8e9920 1516This configure script is free software; the Free Software Foundation
1517gives unlimited permission to copy, distribute and modify it.
1518_ACEOF
cd9a469c 1519 exit
1e8e9920 1520fi
1e8e9920 1521
cd9a469c 1522## ------------------------ ##
1523## Autoconf initialization. ##
1524## ------------------------ ##
1e8e9920 1525
cd9a469c 1526# ac_fn_c_try_compile LINENO
1527# --------------------------
1528# Try to compile conftest.$ac_ext, and return whether this succeeded.
1529ac_fn_c_try_compile ()
1e8e9920 1530{
cd9a469c 1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext
1533 if { { ac_try="$ac_compile"
1534case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537esac
1538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539$as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1546 fi
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.$ac_objext; then :
1552 ac_retval=0
1553else
1554 $as_echo "$as_me: failed program was:" >&5
1555sed 's/^/| /' conftest.$ac_ext >&5
1e8e9920 1556
cd9a469c 1557 ac_retval=1
1558fi
1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560 return $ac_retval
1e8e9920 1561
cd9a469c 1562} # ac_fn_c_try_compile
1e8e9920 1563
cd9a469c 1564# ac_fn_c_try_link LINENO
1565# -----------------------
1566# Try to link conftest.$ac_ext, and return whether this succeeded.
1567ac_fn_c_try_link ()
1568{
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext conftest$ac_exeext
1571 if { { ac_try="$ac_link"
1572case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577$as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_link") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest$ac_exeext && {
1590 test "$cross_compiling" = yes ||
1591 $as_test_x conftest$ac_exeext
1592 }; then :
1593 ac_retval=0
1594else
1595 $as_echo "$as_me: failed program was:" >&5
1596sed 's/^/| /' conftest.$ac_ext >&5
1e8e9920 1597
cd9a469c 1598 ac_retval=1
1599fi
1600 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602 # interfere with the next link command; also delete a directory that is
1603 # left behind by Apple's compiler. We do this before executing the actions.
1604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1606 return $ac_retval
1e8e9920 1607
cd9a469c 1608} # ac_fn_c_try_link
1e8e9920 1609
cd9a469c 1610# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1611# -------------------------------------------------------
1612# Tests whether HEADER exists and can be compiled using the include files in
1613# INCLUDES, setting the cache variable VAR accordingly.
1614ac_fn_c_check_header_compile ()
1615{
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618$as_echo_n "checking for $2... " >&6; }
1619if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1620 $as_echo_n "(cached) " >&6
1621else
1622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623/* end confdefs.h. */
1624$4
1625#include <$2>
1626_ACEOF
1627if ac_fn_c_try_compile "$LINENO"; then :
1628 eval "$3=yes"
1629else
1630 eval "$3=no"
1631fi
1632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1633fi
1634eval ac_res=\$$3
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636$as_echo "$ac_res" >&6; }
1637 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1e8e9920 1638
cd9a469c 1639} # ac_fn_c_check_header_compile
1e8e9920 1640
cd9a469c 1641# ac_fn_c_try_cpp LINENO
1642# ----------------------
1643# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644ac_fn_c_try_cpp ()
1645{
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if { { ac_try="$ac_cpp conftest.$ac_ext"
1648case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651esac
1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653$as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655 ac_status=$?
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1660 fi
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } >/dev/null && {
1663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1665 }; then :
1666 ac_retval=0
1667else
1668 $as_echo "$as_me: failed program was:" >&5
1669sed 's/^/| /' conftest.$ac_ext >&5
1e8e9920 1670
cd9a469c 1671 ac_retval=1
1672fi
1673 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1674 return $ac_retval
1e8e9920 1675
cd9a469c 1676} # ac_fn_c_try_cpp
1e8e9920 1677
cd9a469c 1678# ac_fn_c_try_run LINENO
1679# ----------------------
1680# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1681# that executables *can* be run.
1682ac_fn_c_try_run ()
1683{
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if { { ac_try="$ac_link"
1686case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>&5
1693 ac_status=$?
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1696 { { case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_try") 2>&5
1703 ac_status=$?
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; }; }; then :
1706 ac_retval=0
1707else
1708 $as_echo "$as_me: program exited with status $ac_status" >&5
1709 $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1e8e9920 1711
cd9a469c 1712 ac_retval=$ac_status
1713fi
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716 return $ac_retval
1e8e9920 1717
cd9a469c 1718} # ac_fn_c_try_run
1e8e9920 1719
cd9a469c 1720# ac_fn_c_check_func LINENO FUNC VAR
1721# ----------------------------------
1722# Tests whether FUNC exists, setting the cache variable VAR accordingly
1723ac_fn_c_check_func ()
1e8e9920 1724{
cd9a469c 1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727$as_echo_n "checking for $2... " >&6; }
1728if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1729 $as_echo_n "(cached) " >&6
1730else
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732/* end confdefs.h. */
1733/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1735#define $2 innocuous_$2
1e8e9920 1736
cd9a469c 1737/* System header to define __stub macros and hopefully few prototypes,
1738 which can conflict with char $2 (); below.
1739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1740 <limits.h> exists even on freestanding compilers. */
1e8e9920 1741
cd9a469c 1742#ifdef __STDC__
1743# include <limits.h>
1744#else
1745# include <assert.h>
1746#endif
1e8e9920 1747
cd9a469c 1748#undef $2
1e8e9920 1749
cd9a469c 1750/* Override any GCC internal prototype to avoid an error.
1751 Use char because int might match the return type of a GCC
1752 builtin and then its argument prototype would still apply. */
1753#ifdef __cplusplus
1754extern "C"
1755#endif
1756char $2 ();
1757/* The GNU C library defines this for functions which it implements
1758 to always fail with ENOSYS. Some functions are actually named
1759 something starting with __ and the normal name is an alias. */
1760#if defined __stub_$2 || defined __stub___$2
1761choke me
1762#endif
1e8e9920 1763
cd9a469c 1764int
1765main ()
1766{
1767return $2 ();
1768 ;
1769 return 0;
1770}
1e8e9920 1771_ACEOF
cd9a469c 1772if ac_fn_c_try_link "$LINENO"; then :
1773 eval "$3=yes"
1774else
1775 eval "$3=no"
1776fi
1777rm -f core conftest.err conftest.$ac_objext \
1778 conftest$ac_exeext conftest.$ac_ext
1779fi
1780eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782$as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1e8e9920 1784
cd9a469c 1785} # ac_fn_c_check_func
1e8e9920 1786
cd9a469c 1787# ac_fn_fc_try_compile LINENO
1788# ---------------------------
1789# Try to compile conftest.$ac_ext, and return whether this succeeded.
1790ac_fn_fc_try_compile ()
1791{
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext
1794 if { { ac_try="$ac_compile"
1795case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798esac
1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800$as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_compile") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1807 fi
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_fc_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest.$ac_objext; then :
1813 ac_retval=0
1814else
1815 $as_echo "$as_me: failed program was:" >&5
1816sed 's/^/| /' conftest.$ac_ext >&5
1e8e9920 1817
cd9a469c 1818 ac_retval=1
1819fi
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821 return $ac_retval
1e8e9920 1822
cd9a469c 1823} # ac_fn_fc_try_compile
1e8e9920 1824
cd9a469c 1825# ac_fn_fc_try_link LINENO
1826# ------------------------
1827# Try to link conftest.$ac_ext, and return whether this succeeded.
1828ac_fn_fc_try_link ()
1829{
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext conftest$ac_exeext
1832 if { { ac_try="$ac_link"
1833case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836esac
1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838$as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_link") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1845 fi
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_fc_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest$ac_exeext && {
1851 test "$cross_compiling" = yes ||
1852 $as_test_x conftest$ac_exeext
1853 }; then :
1854 ac_retval=0
1855else
1856 $as_echo "$as_me: failed program was:" >&5
1857sed 's/^/| /' conftest.$ac_ext >&5
1e8e9920 1858
cd9a469c 1859 ac_retval=1
1860fi
1861 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863 # interfere with the next link command; also delete a directory that is
1864 # left behind by Apple's compiler. We do this before executing the actions.
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1867 return $ac_retval
1e8e9920 1868
cd9a469c 1869} # ac_fn_fc_try_link
1e8e9920 1870
cd9a469c 1871# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1872# -------------------------------------------------------
1873# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1874# the include files in INCLUDES and setting the cache variable VAR
1875# accordingly.
1876ac_fn_c_check_header_mongrel ()
1877{
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881$as_echo_n "checking for $2... " >&6; }
1882if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883 $as_echo_n "(cached) " >&6
1884fi
1885eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887$as_echo "$ac_res" >&6; }
1888else
1889 # Is the header compilable?
1890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1891$as_echo_n "checking $2 usability... " >&6; }
1892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893/* end confdefs.h. */
1894$4
1895#include <$2>
1e8e9920 1896_ACEOF
cd9a469c 1897if ac_fn_c_try_compile "$LINENO"; then :
1898 ac_header_compiler=yes
1899else
1900 ac_header_compiler=no
1e8e9920 1901fi
cd9a469c 1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1904$as_echo "$ac_header_compiler" >&6; }
1e8e9920 1905
cd9a469c 1906# Is the header present?
1907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1908$as_echo_n "checking $2 presence... " >&6; }
1909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h. */
1911#include <$2>
1912_ACEOF
1913if ac_fn_c_try_cpp "$LINENO"; then :
1914 ac_header_preproc=yes
1e8e9920 1915else
cd9a469c 1916 ac_header_preproc=no
1e8e9920 1917fi
cd9a469c 1918rm -f conftest.err conftest.$ac_ext
1919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1920$as_echo "$ac_header_preproc" >&6; }
1e8e9920 1921
cd9a469c 1922# So? What about this header?
1923case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1924 yes:no: )
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1926$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1928$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1929 ;;
1930 no:yes:* )
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1932$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1934$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1936$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1938$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1940$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1941 ;;
1942esac
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
1945if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1946 $as_echo_n "(cached) " >&6
1947else
1948 eval "$3=\$ac_header_compiler"
1e8e9920 1949fi
cd9a469c 1950eval ac_res=\$$3
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952$as_echo "$ac_res" >&6; }
1953fi
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1e8e9920 1955
cd9a469c 1956} # ac_fn_c_check_header_mongrel
1e8e9920 1957
cd9a469c 1958# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1959# -------------------------------------------
1960# Tests whether TYPE exists after having included INCLUDES, setting cache
1961# variable VAR accordingly.
1962ac_fn_c_check_type ()
1963{
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966$as_echo_n "checking for $2... " >&6; }
1967if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1968 $as_echo_n "(cached) " >&6
1969else
1970 eval "$3=no"
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h. */
1973$4
1974int
1975main ()
1976{
1977if (sizeof ($2))
1978 return 0;
1979 ;
1980 return 0;
1981}
1982_ACEOF
1983if ac_fn_c_try_compile "$LINENO"; then :
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985/* end confdefs.h. */
1986$4
1987int
1988main ()
1989{
1990if (sizeof (($2)))
1991 return 0;
1992 ;
1993 return 0;
1994}
1995_ACEOF
1996if ac_fn_c_try_compile "$LINENO"; then :
1e8e9920 1997
cd9a469c 1998else
1999 eval "$3=yes"
2000fi
2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002fi
2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004fi
2005eval ac_res=\$$3
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007$as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1e8e9920 2009
cd9a469c 2010} # ac_fn_c_check_type
1e8e9920 2011
cd9a469c 2012# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2013# --------------------------------------------
2014# Tries to find the compile-time value of EXPR in a program that includes
2015# INCLUDES, setting VAR accordingly. Returns whether the value could be
2016# computed
2017ac_fn_c_compute_int ()
2018{
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 if test "$cross_compiling" = yes; then
2021 # Depending upon the size, compute the lo and hi bounds.
2022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023/* end confdefs.h. */
2024$4
2025int
2026main ()
2027{
2028static int test_array [1 - 2 * !(($2) >= 0)];
2029test_array [0] = 0
1e8e9920 2030
cd9a469c 2031 ;
2032 return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_compile "$LINENO"; then :
2036 ac_lo=0 ac_mid=0
2037 while :; do
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h. */
2040$4
2041int
2042main ()
2043{
2044static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2045test_array [0] = 0
1e8e9920 2046
cd9a469c 2047 ;
2048 return 0;
2049}
2050_ACEOF
2051if ac_fn_c_try_compile "$LINENO"; then :
2052 ac_hi=$ac_mid; break
2053else
2054 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2055 if test $ac_lo -le $ac_mid; then
2056 ac_lo= ac_hi=
2057 break
2058 fi
2059 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2060fi
2061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 done
2063else
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h. */
2066$4
2067int
2068main ()
2069{
2070static int test_array [1 - 2 * !(($2) < 0)];
2071test_array [0] = 0
1e8e9920 2072
cd9a469c 2073 ;
2074 return 0;
2075}
2076_ACEOF
2077if ac_fn_c_try_compile "$LINENO"; then :
2078 ac_hi=-1 ac_mid=-1
2079 while :; do
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081/* end confdefs.h. */
2082$4
2083int
2084main ()
2085{
2086static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2087test_array [0] = 0
1e8e9920 2088
cd9a469c 2089 ;
2090 return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_lo=$ac_mid; break
2095else
2096 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2097 if test $ac_mid -le $ac_hi; then
2098 ac_lo= ac_hi=
2099 break
2100 fi
2101 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2102fi
2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 done
2105else
2106 ac_lo= ac_hi=
2107fi
2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109fi
2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111# Binary search between lo and hi bounds.
2112while test "x$ac_lo" != "x$ac_hi"; do
2113 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h. */
2116$4
2117int
2118main ()
2119{
2120static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2121test_array [0] = 0
1e8e9920 2122
cd9a469c 2123 ;
2124 return 0;
2125}
2126_ACEOF
2127if ac_fn_c_try_compile "$LINENO"; then :
2128 ac_hi=$ac_mid
2129else
2130 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2131fi
2132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133done
2134case $ac_lo in #((
2135?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2136'') ac_retval=1 ;;
2137esac
2138 else
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140/* end confdefs.h. */
2141$4
2142static long int longval () { return $2; }
2143static unsigned long int ulongval () { return $2; }
2144#include <stdio.h>
2145#include <stdlib.h>
2146int
2147main ()
2148{
1e8e9920 2149
cd9a469c 2150 FILE *f = fopen ("conftest.val", "w");
2151 if (! f)
2152 return 1;
2153 if (($2) < 0)
2154 {
2155 long int i = longval ();
2156 if (i != ($2))
2157 return 1;
2158 fprintf (f, "%ld", i);
2159 }
2160 else
2161 {
2162 unsigned long int i = ulongval ();
2163 if (i != ($2))
2164 return 1;
2165 fprintf (f, "%lu", i);
2166 }
2167 /* Do not output a trailing newline, as this causes \r\n confusion
2168 on some platforms. */
2169 return ferror (f) || fclose (f) != 0;
1e8e9920 2170
cd9a469c 2171 ;
2172 return 0;
2173}
2174_ACEOF
2175if ac_fn_c_try_run "$LINENO"; then :
2176 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2177else
2178 ac_retval=1
2179fi
2180rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2181 conftest.$ac_objext conftest.beam conftest.$ac_ext
2182rm -f conftest.val
1e8e9920 2183
cd9a469c 2184 fi
2185 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2186 return $ac_retval
1e8e9920 2187
cd9a469c 2188} # ac_fn_c_compute_int
2189cat >config.log <<_ACEOF
2190This file contains any messages produced by compilers while
2191running configure, to aid debugging if configure makes a mistake.
1e8e9920 2192
cd9a469c 2193It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
2194generated by GNU Autoconf 2.64. Invocation command line was
1e8e9920 2195
cd9a469c 2196 $ $0 $@
1e8e9920 2197
cd9a469c 2198_ACEOF
2199exec 5>>config.log
2200{
2201cat <<_ASUNAME
2202## --------- ##
2203## Platform. ##
2204## --------- ##
1e8e9920 2205
cd9a469c 2206hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2207uname -m = `(uname -m) 2>/dev/null || echo unknown`
2208uname -r = `(uname -r) 2>/dev/null || echo unknown`
2209uname -s = `(uname -s) 2>/dev/null || echo unknown`
2210uname -v = `(uname -v) 2>/dev/null || echo unknown`
1e8e9920 2211
cd9a469c 2212/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2213/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1e8e9920 2214
cd9a469c 2215/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2216/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2217/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2218/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2219/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2220/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2221/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1e8e9920 2222
cd9a469c 2223_ASUNAME
1e8e9920 2224
cd9a469c 2225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226for as_dir in $PATH
2227do
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
2230 $as_echo "PATH: $as_dir"
2231 done
2232IFS=$as_save_IFS
1e8e9920 2233
cd9a469c 2234} >&5
1e8e9920 2235
cd9a469c 2236cat >&5 <<_ACEOF
5b2c7553 2237
2238
cd9a469c 2239## ----------- ##
2240## Core tests. ##
2241## ----------- ##
5b2c7553 2242
cd9a469c 2243_ACEOF
1e8e9920 2244
2245
cd9a469c 2246# Keep a trace of the command line.
2247# Strip out --no-create and --no-recursion so they do not pile up.
2248# Strip out --silent because we don't want to record it for future runs.
2249# Also quote any args containing shell meta-characters.
2250# Make two passes to allow for proper duplicate-argument suppression.
2251ac_configure_args=
2252ac_configure_args0=
2253ac_configure_args1=
2254ac_must_keep_next=false
2255for ac_pass in 1 2
2256do
2257 for ac_arg
2258 do
2259 case $ac_arg in
2260 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2262 | -silent | --silent | --silen | --sile | --sil)
2263 continue ;;
2264 *\'*)
2265 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2266 esac
2267 case $ac_pass in
2268 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2269 2)
2270 as_fn_append ac_configure_args1 " '$ac_arg'"
2271 if test $ac_must_keep_next = true; then
2272 ac_must_keep_next=false # Got value, back to normal.
2273 else
2274 case $ac_arg in
2275 *=* | --config-cache | -C | -disable-* | --disable-* \
2276 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2277 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2278 | -with-* | --with-* | -without-* | --without-* | --x)
2279 case "$ac_configure_args0 " in
2280 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2281 esac
2282 ;;
2283 -* ) ac_must_keep_next=true ;;
2284 esac
2285 fi
2286 as_fn_append ac_configure_args " '$ac_arg'"
2287 ;;
2288 esac
2289 done
2290done
2291{ ac_configure_args0=; unset ac_configure_args0;}
2292{ ac_configure_args1=; unset ac_configure_args1;}
1e8e9920 2293
cd9a469c 2294# When interrupted or exit'd, cleanup temporary files, and complete
2295# config.log. We remove comments because anyway the quotes in there
2296# would cause problems or look ugly.
2297# WARNING: Use '\'' to represent an apostrophe within the trap.
2298# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2299trap 'exit_status=$?
2300 # Save into config.log some information that might help in debugging.
2301 {
2302 echo
1e8e9920 2303
cd9a469c 2304 cat <<\_ASBOX
2305## ---------------- ##
2306## Cache variables. ##
2307## ---------------- ##
2308_ASBOX
2309 echo
2310 # The following way of writing the cache mishandles newlines in values,
2311(
2312 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2313 eval ac_val=\$$ac_var
2314 case $ac_val in #(
2315 *${as_nl}*)
2316 case $ac_var in #(
2317 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2318$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2319 esac
2320 case $ac_var in #(
2321 _ | IFS | as_nl) ;; #(
2322 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2323 *) { eval $ac_var=; unset $ac_var;} ;;
2324 esac ;;
2325 esac
2326 done
2327 (set) 2>&1 |
2328 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2329 *${as_nl}ac_space=\ *)
2330 sed -n \
2331 "s/'\''/'\''\\\\'\'''\''/g;
2332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2333 ;; #(
2334 *)
2335 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2336 ;;
2337 esac |
2338 sort
2339)
2340 echo
1e8e9920 2341
cd9a469c 2342 cat <<\_ASBOX
2343## ----------------- ##
2344## Output variables. ##
2345## ----------------- ##
2346_ASBOX
2347 echo
2348 for ac_var in $ac_subst_vars
2349 do
2350 eval ac_val=\$$ac_var
2351 case $ac_val in
2352 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2353 esac
2354 $as_echo "$ac_var='\''$ac_val'\''"
2355 done | sort
2356 echo
1e8e9920 2357
cd9a469c 2358 if test -n "$ac_subst_files"; then
2359 cat <<\_ASBOX
2360## ------------------- ##
2361## File substitutions. ##
2362## ------------------- ##
2363_ASBOX
2364 echo
2365 for ac_var in $ac_subst_files
2366 do
2367 eval ac_val=\$$ac_var
2368 case $ac_val in
2369 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370 esac
2371 $as_echo "$ac_var='\''$ac_val'\''"
2372 done | sort
2373 echo
2374 fi
1e8e9920 2375
cd9a469c 2376 if test -s confdefs.h; then
2377 cat <<\_ASBOX
2378## ----------- ##
2379## confdefs.h. ##
2380## ----------- ##
2381_ASBOX
2382 echo
2383 cat confdefs.h
2384 echo
2385 fi
2386 test "$ac_signal" != 0 &&
2387 $as_echo "$as_me: caught signal $ac_signal"
2388 $as_echo "$as_me: exit $exit_status"
2389 } >&5
2390 rm -f core *.core core.conftest.* &&
2391 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2392 exit $exit_status
2393' 0
2394for ac_signal in 1 2 13 15; do
2395 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2396done
2397ac_signal=0
1e8e9920 2398
cd9a469c 2399# confdefs.h avoids OS command line length limits that DEFS can exceed.
2400rm -f -r conftest* confdefs.h
2401
2402$as_echo "/* confdefs.h */" > confdefs.h
2403
2404# Predefined preprocessor variables.
2405
2406cat >>confdefs.h <<_ACEOF
2407#define PACKAGE_NAME "$PACKAGE_NAME"
2408_ACEOF
2409
2410cat >>confdefs.h <<_ACEOF
2411#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2412_ACEOF
2413
2414cat >>confdefs.h <<_ACEOF
2415#define PACKAGE_VERSION "$PACKAGE_VERSION"
2416_ACEOF
2417
2418cat >>confdefs.h <<_ACEOF
2419#define PACKAGE_STRING "$PACKAGE_STRING"
2420_ACEOF
2421
2422cat >>confdefs.h <<_ACEOF
2423#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2424_ACEOF
2425
2426cat >>confdefs.h <<_ACEOF
2427#define PACKAGE_URL "$PACKAGE_URL"
2428_ACEOF
2429
2430
2431# Let the site file select an alternate cache file if it wants to.
2432# Prefer an explicitly selected file to automatically selected ones.
2433ac_site_file1=NONE
2434ac_site_file2=NONE
2435if test -n "$CONFIG_SITE"; then
2436 ac_site_file1=$CONFIG_SITE
2437elif test "x$prefix" != xNONE; then
2438 ac_site_file1=$prefix/share/config.site
2439 ac_site_file2=$prefix/etc/config.site
2440else
2441 ac_site_file1=$ac_default_prefix/share/config.site
2442 ac_site_file2=$ac_default_prefix/etc/config.site
2443fi
2444for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2445do
2446 test "x$ac_site_file" = xNONE && continue
2447 if test -r "$ac_site_file"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2449$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2450 sed 's/^/| /' "$ac_site_file" >&5
2451 . "$ac_site_file"
2452 fi
2453done
2454
2455if test -r "$cache_file"; then
2456 # Some versions of bash will fail to source /dev/null (special
2457 # files actually), so we avoid doing that.
2458 if test -f "$cache_file"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2460$as_echo "$as_me: loading cache $cache_file" >&6;}
2461 case $cache_file in
2462 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2463 *) . "./$cache_file";;
2464 esac
2465 fi
2466else
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2468$as_echo "$as_me: creating cache $cache_file" >&6;}
2469 >$cache_file
2470fi
2471
2472# Check that the precious variables saved in the cache have kept the same
2473# value.
2474ac_cache_corrupted=false
2475for ac_var in $ac_precious_vars; do
2476 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2477 eval ac_new_set=\$ac_env_${ac_var}_set
2478 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2479 eval ac_new_val=\$ac_env_${ac_var}_value
2480 case $ac_old_set,$ac_new_set in
2481 set,)
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2483$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2484 ac_cache_corrupted=: ;;
2485 ,set)
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2487$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2488 ac_cache_corrupted=: ;;
2489 ,);;
2490 *)
2491 if test "x$ac_old_val" != "x$ac_new_val"; then
2492 # differences in whitespace do not lead to failure.
2493 ac_old_val_w=`echo x $ac_old_val`
2494 ac_new_val_w=`echo x $ac_new_val`
2495 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2497$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2498 ac_cache_corrupted=:
2499 else
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2501$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2502 eval $ac_var=\$ac_old_val
2503 fi
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2505$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2507$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2508 fi;;
2509 esac
2510 # Pass precious variables to config.status.
2511 if test "$ac_new_set" = set; then
2512 case $ac_new_val in
2513 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2514 *) ac_arg=$ac_var=$ac_new_val ;;
2515 esac
2516 case " $ac_configure_args " in
2517 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2518 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2519 esac
2520 fi
2521done
2522if $ac_cache_corrupted; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2526$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2527 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2528fi
2529## -------------------- ##
2530## Main body of script. ##
2531## -------------------- ##
2532
2533ac_ext=c
2534ac_cpp='$CPP $CPPFLAGS'
2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
2540
2541
2542
2543ac_config_headers="$ac_config_headers config.h"
2544
2545
2546# -------
2547# Options
2548# -------
2549
2550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2551$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2552 # Check whether --enable-version-specific-runtime-libs was given.
2553if test "${enable_version_specific_runtime_libs+set}" = set; then :
2554 enableval=$enable_version_specific_runtime_libs;
1e8e9920 2555 case "$enableval" in
2556 yes|no) ;;
cd9a469c 2557 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
1e8e9920 2558 esac
2559
2560else
2561 enable_version_specific_runtime_libs=no
cd9a469c 2562fi
2563
1e8e9920 2564
cd9a469c 2565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2566$as_echo "$enable_version_specific_runtime_libs" >&6; }
1e8e9920 2567
aeda7a78 2568# We would like our source tree to be readonly. However when releases or
2569# pre-releases are generated, the flex/bison generated files as well as the
2570# various formats of manuals need to be included along with the rest of the
2571# sources. Therefore we have --enable-generated-files-in-srcdir to do
2572# just that.
cd9a469c 2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2574$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2575 # Check whether --enable-generated-files-in-srcdir was given.
2576if test "${enable_generated_files_in_srcdir+set}" = set; then :
2577 enableval=$enable_generated_files_in_srcdir;
aeda7a78 2578 case "$enableval" in
2579 yes|no) ;;
cd9a469c 2580 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
aeda7a78 2581 esac
2582
2583else
2584 enable_generated_files_in_srcdir=no
cd9a469c 2585fi
aeda7a78 2586
2587
cd9a469c 2588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2589$as_echo "$enable_generated_files_in_srcdir" >&6; }
2590 if test "$enable_generated_files_in_srcdir" = yes; then
aeda7a78 2591 GENINSRC_TRUE=
2592 GENINSRC_FALSE='#'
2593else
2594 GENINSRC_TRUE='#'
2595 GENINSRC_FALSE=
2596fi
2597
2598
2599
1e8e9920 2600# -------
2601# -------
2602
2603# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2604#
2605# You will slowly go insane if you do not grok the following fact: when
2606# building this library, the top-level /target/ becomes the library's /host/.
2607#
2608# configure then causes --target to default to --host, exactly like any
2609# other package using autoconf. Therefore, 'target' and 'host' will
2610# always be the same. This makes sense both for native and cross compilers
2611# just think about it for a little while. :-)
2612#
2613# Also, if this library is being configured as part of a cross compiler, the
2614# top-level configure script will pass the "real" host as $with_cross_host.
2615#
2616# Do not delete or change the following two lines. For why, see
2617# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2618ac_aux_dir=
cd9a469c 2619for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2620 for ac_t in install-sh install.sh shtool; do
2621 if test -f "$ac_dir/$ac_t"; then
2622 ac_aux_dir=$ac_dir
2623 ac_install_sh="$ac_aux_dir/$ac_t -c"
2624 break 2
2625 fi
2626 done
1e8e9920 2627done
2628if test -z "$ac_aux_dir"; then
cd9a469c 2629 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1e8e9920 2630fi
cd9a469c 2631
2632# These three variables are undocumented and unsupported,
2633# and are intended to be withdrawn in a future Autoconf release.
2634# They can cause serious problems if a builder's source tree is in a directory
2635# whose full name contains unusual characters.
2636ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2637ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2638ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2639
1e8e9920 2640
2641# Make sure we can run config.sub.
cd9a469c 2642$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2643 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2644
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2646$as_echo_n "checking build system type... " >&6; }
2647if test "${ac_cv_build+set}" = set; then :
2648 $as_echo_n "(cached) " >&6
2649else
2650 ac_build_alias=$build_alias
2651test "x$ac_build_alias" = x &&
2652 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2653test "x$ac_build_alias" = x &&
2654 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2655ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2656 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2657
2658fi
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2660$as_echo "$ac_cv_build" >&6; }
2661case $ac_cv_build in
2662*-*-*) ;;
2663*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2664esac
1e8e9920 2665build=$ac_cv_build
cd9a469c 2666ac_save_IFS=$IFS; IFS='-'
2667set x $ac_cv_build
2668shift
2669build_cpu=$1
2670build_vendor=$2
2671shift; shift
2672# Remember, the first character of IFS is used to create $*,
2673# except with old shells:
2674build_os=$*
2675IFS=$ac_save_IFS
2676case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1e8e9920 2677
2678
cd9a469c 2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2680$as_echo_n "checking host system type... " >&6; }
2681if test "${ac_cv_host+set}" = set; then :
2682 $as_echo_n "(cached) " >&6
1e8e9920 2683else
cd9a469c 2684 if test "x$host_alias" = x; then
2685 ac_cv_host=$ac_cv_build
2686else
2687 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2688 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2689fi
1e8e9920 2690
2691fi
cd9a469c 2692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2693$as_echo "$ac_cv_host" >&6; }
2694case $ac_cv_host in
2695*-*-*) ;;
2696*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2697esac
1e8e9920 2698host=$ac_cv_host
cd9a469c 2699ac_save_IFS=$IFS; IFS='-'
2700set x $ac_cv_host
2701shift
2702host_cpu=$1
2703host_vendor=$2
2704shift; shift
2705# Remember, the first character of IFS is used to create $*,
2706# except with old shells:
2707host_os=$*
2708IFS=$ac_save_IFS
2709case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1e8e9920 2710
2711
cd9a469c 2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2713$as_echo_n "checking target system type... " >&6; }
2714if test "${ac_cv_target+set}" = set; then :
2715 $as_echo_n "(cached) " >&6
2716else
2717 if test "x$target_alias" = x; then
2718 ac_cv_target=$ac_cv_host
1e8e9920 2719else
cd9a469c 2720 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2721 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2722fi
1e8e9920 2723
2724fi
cd9a469c 2725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2726$as_echo "$ac_cv_target" >&6; }
2727case $ac_cv_target in
2728*-*-*) ;;
2729*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2730esac
1e8e9920 2731target=$ac_cv_target
cd9a469c 2732ac_save_IFS=$IFS; IFS='-'
2733set x $ac_cv_target
2734shift
2735target_cpu=$1
2736target_vendor=$2
2737shift; shift
2738# Remember, the first character of IFS is used to create $*,
2739# except with old shells:
2740target_os=$*
2741IFS=$ac_save_IFS
2742case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1e8e9920 2743
2744
2745# The aliases save the names the user supplied, while $host etc.
2746# will get canonicalized.
2747test -n "$target_alias" &&
2748 test "$program_prefix$program_suffix$program_transform_name" = \
2749 NONENONEs,x,x, &&
2750 program_prefix=${target_alias}-
cd9a469c 2751
1e8e9920 2752target_alias=${target_alias-$host_alias}
2753
2754# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2755# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2756# 1.9.0: minimum required version
2757# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2758# of other PACKAGE_* variables will, however, and there's nothing
2759# we can do about that; they come from AC_INIT).
2760# foreign: we don't follow the normal rules for GNU packages (no COPYING
2761# file in the top srcdir, etc, etc), so stop complaining.
5dbeae57 2762# no-dist: we don't want 'dist' and related rules.
1e8e9920 2763# -Wall: turns on all automake warnings...
2764# -Wno-portability: ...except this one, since GNU make is required.
2765# -Wno-override: ... and this one, since we do want this in testsuite.
cd9a469c 2766am__api_version='1.11'
2767
1e8e9920 2768# Find a good install program. We prefer a C program (faster),
2769# so one script is as good as another. But avoid the broken or
2770# incompatible versions:
2771# SysV /etc/install, /usr/sbin/install
2772# SunOS /usr/etc/install
2773# IRIX /sbin/install
2774# AIX /bin/install
2775# AmigaOS /C/install, which installs bootblocks on floppy discs
2776# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2777# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2778# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2779# OS/2's system install, which has a completely different semantic
2780# ./install, which can be erroneously created by make from ./install.sh.
82eaf560 2781# Reject install programs that cannot install multiple files.
cd9a469c 2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2783$as_echo_n "checking for a BSD-compatible install... " >&6; }
1e8e9920 2784if test -z "$INSTALL"; then
cd9a469c 2785if test "${ac_cv_path_install+set}" = set; then :
2786 $as_echo_n "(cached) " >&6
1e8e9920 2787else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
cd9a469c 2793 # Account for people who put trailing slashes in PATH elements.
2794case $as_dir/ in #((
2795 ./ | .// | /[cC]/* | \
1e8e9920 2796 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cd9a469c 2797 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1e8e9920 2798 /usr/ucb/* ) ;;
2799 *)
2800 # OSF1 and SCO ODT 3.0 have their own names for install.
2801 # Don't use installbsd from OSF since it installs stuff as root
2802 # by default.
2803 for ac_prog in ginstall scoinst install; do
2804 for ac_exec_ext in '' $ac_executable_extensions; do
cd9a469c 2805 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1e8e9920 2806 if test $ac_prog = install &&
2807 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2808 # AIX install. It has an incompatible calling convention.
2809 :
2810 elif test $ac_prog = install &&
2811 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2812 # program-specific install script used by HP pwplus--don't use.
2813 :
2814 else
82eaf560 2815 rm -rf conftest.one conftest.two conftest.dir
2816 echo one > conftest.one
2817 echo two > conftest.two
2818 mkdir conftest.dir
2819 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2820 test -s conftest.one && test -s conftest.two &&
2821 test -s conftest.dir/conftest.one &&
2822 test -s conftest.dir/conftest.two
2823 then
2824 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2825 break 3
2826 fi
1e8e9920 2827 fi
2828 fi
2829 done
2830 done
2831 ;;
2832esac
cd9a469c 2833
2834 done
2835IFS=$as_save_IFS
1e8e9920 2836
82eaf560 2837rm -rf conftest.one conftest.two conftest.dir
1e8e9920 2838
2839fi
2840 if test "${ac_cv_path_install+set}" = set; then
2841 INSTALL=$ac_cv_path_install
2842 else
82eaf560 2843 # As a last resort, use the slow shell script. Don't cache a
2844 # value for INSTALL within a source directory, because that will
1e8e9920 2845 # break other packages using the cache if that directory is
82eaf560 2846 # removed, or if the value is a relative name.
1e8e9920 2847 INSTALL=$ac_install_sh
2848 fi
2849fi
cd9a469c 2850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2851$as_echo "$INSTALL" >&6; }
1e8e9920 2852
2853# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2854# It thinks the first close brace ends the variable substitution.
2855test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2856
2857test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2858
2859test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2860
cd9a469c 2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2862$as_echo_n "checking whether build environment is sane... " >&6; }
1e8e9920 2863# Just in case
2864sleep 1
2865echo timestamp > conftest.file
cd9a469c 2866# Reject unsafe characters in $srcdir or the absolute working directory
2867# name. Accept space and tab only in the latter.
2868am_lf='
2869'
2870case `pwd` in
2871 *[\\\"\#\$\&\'\`$am_lf]*)
2872 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2873esac
2874case $srcdir in
2875 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2876 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2877esac
2878
1e8e9920 2879# Do `set' in a subshell so we don't clobber the current shell's
2880# arguments. Must try -L first in case configure is actually a
2881# symlink; some systems play weird games with the mod time of symlinks
2882# (eg FreeBSD returns the mod time of the symlink's containing
2883# directory).
2884if (
cd9a469c 2885 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1e8e9920 2886 if test "$*" = "X"; then
2887 # -L didn't work.
cd9a469c 2888 set X `ls -t "$srcdir/configure" conftest.file`
1e8e9920 2889 fi
2890 rm -f conftest.file
2891 if test "$*" != "X $srcdir/configure conftest.file" \
2892 && test "$*" != "X conftest.file $srcdir/configure"; then
2893
2894 # If neither matched, then we have a broken ls. This can happen
2895 # if, for instance, CONFIG_SHELL is bash and it inherits a
2896 # broken ls alias from the environment. This has actually
2897 # happened. Such a system could not be considered "sane".
cd9a469c 2898 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2899alias in your environment" "$LINENO" 5
1e8e9920 2900 fi
2901
2902 test "$2" = conftest.file
2903 )
2904then
2905 # Ok.
2906 :
2907else
cd9a469c 2908 as_fn_error "newly created file is older than distributed files!
2909Check your system clock" "$LINENO" 5
1e8e9920 2910fi
cd9a469c 2911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2912$as_echo "yes" >&6; }
1e8e9920 2913test "$program_prefix" != NONE &&
cd9a469c 2914 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1e8e9920 2915# Use a double $ so make ignores it.
2916test "$program_suffix" != NONE &&
cd9a469c 2917 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2918# Double any \ or $.
1e8e9920 2919# By default was `s,x,x', remove it if useless.
cd9a469c 2920ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2921program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1e8e9920 2922
2923# expand $ac_aux_dir to an absolute path
2924am_aux_dir=`cd $ac_aux_dir && pwd`
2925
cd9a469c 2926if test x"${MISSING+set}" != xset; then
2927 case $am_aux_dir in
2928 *\ * | *\ *)
2929 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2930 *)
2931 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2932 esac
2933fi
1e8e9920 2934# Use eval to expand $SHELL
2935if eval "$MISSING --run true"; then
2936 am_missing_run="$MISSING --run "
2937else
2938 am_missing_run=
cd9a469c 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2940$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2941fi
2942
2943if test x"${install_sh}" != xset; then
2944 case $am_aux_dir in
2945 *\ * | *\ *)
2946 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2947 *)
2948 install_sh="\${SHELL} $am_aux_dir/install-sh"
2949 esac
2950fi
2951
2952# Installed binaries are usually stripped using `strip' when the user
2953# run `make install-strip'. However `strip' might not be the right
2954# tool to use in cross-compilation environments, therefore Automake
2955# will honor the `STRIP' environment variable to overrule this program.
2956if test "$cross_compiling" != no; then
2957 if test -n "$ac_tool_prefix"; then
2958 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2959set dummy ${ac_tool_prefix}strip; ac_word=$2
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961$as_echo_n "checking for $ac_word... " >&6; }
2962if test "${ac_cv_prog_STRIP+set}" = set; then :
2963 $as_echo_n "(cached) " >&6
2964else
2965 if test -n "$STRIP"; then
2966 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2967else
2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969for as_dir in $PATH
2970do
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2
2978 fi
2979done
2980 done
2981IFS=$as_save_IFS
2982
2983fi
2984fi
2985STRIP=$ac_cv_prog_STRIP
2986if test -n "$STRIP"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2988$as_echo "$STRIP" >&6; }
2989else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991$as_echo "no" >&6; }
2992fi
2993
2994
2995fi
2996if test -z "$ac_cv_prog_STRIP"; then
2997 ac_ct_STRIP=$STRIP
2998 # Extract the first word of "strip", so it can be a program name with args.
2999set dummy strip; ac_word=$2
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001$as_echo_n "checking for $ac_word... " >&6; }
3002if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3003 $as_echo_n "(cached) " >&6
3004else
3005 if test -n "$ac_ct_STRIP"; then
3006 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3007else
3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH
3010do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015 ac_cv_prog_ac_ct_STRIP="strip"
3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 break 2
3018 fi
3019done
3020 done
3021IFS=$as_save_IFS
3022
3023fi
3024fi
3025ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3026if test -n "$ac_ct_STRIP"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3028$as_echo "$ac_ct_STRIP" >&6; }
3029else
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031$as_echo "no" >&6; }
3032fi
3033
3034 if test "x$ac_ct_STRIP" = x; then
3035 STRIP=":"
3036 else
3037 case $cross_compiling:$ac_tool_warned in
3038yes:)
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3041ac_tool_warned=yes ;;
3042esac
3043 STRIP=$ac_ct_STRIP
3044 fi
3045else
3046 STRIP="$ac_cv_prog_STRIP"
3047fi
3048
3049fi
3050INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3051
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3053$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3054if test -z "$MKDIR_P"; then
3055 if test "${ac_cv_path_mkdir+set}" = set; then :
3056 $as_echo_n "(cached) " >&6
3057else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3060do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_prog in mkdir gmkdir; do
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3066 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3067 'mkdir (GNU coreutils) '* | \
3068 'mkdir (coreutils) '* | \
3069 'mkdir (fileutils) '4.1*)
3070 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3071 break 3;;
3072 esac
3073 done
3074 done
1e8e9920 3075 done
cd9a469c 3076IFS=$as_save_IFS
3077
3078fi
3079
3080 if test "${ac_cv_path_mkdir+set}" = set; then
3081 MKDIR_P="$ac_cv_path_mkdir -p"
1e8e9920 3082 else
cd9a469c 3083 # As a last resort, use the slow shell script. Don't cache a
3084 # value for MKDIR_P within a source directory, because that will
3085 # break other packages using the cache if that directory is
3086 # removed, or if the value is a relative name.
3087 test -d ./--version && rmdir ./--version
3088 MKDIR_P="$ac_install_sh -d"
1e8e9920 3089 fi
3090fi
cd9a469c 3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3092$as_echo "$MKDIR_P" >&6; }
3093
3094mkdir_p="$MKDIR_P"
3095case $mkdir_p in
3096 [\\/$]* | ?:[\\/]*) ;;
3097 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3098esac
1e8e9920 3099
3100for ac_prog in gawk mawk nawk awk
3101do
3102 # Extract the first word of "$ac_prog", so it can be a program name with args.
3103set dummy $ac_prog; ac_word=$2
cd9a469c 3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105$as_echo_n "checking for $ac_word... " >&6; }
3106if test "${ac_cv_prog_AWK+set}" = set; then :
3107 $as_echo_n "(cached) " >&6
1e8e9920 3108else
3109 if test -n "$AWK"; then
3110 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3111else
3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
cd9a469c 3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3119 ac_cv_prog_AWK="$ac_prog"
cd9a469c 3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3121 break 2
3122 fi
3123done
cd9a469c 3124 done
3125IFS=$as_save_IFS
1e8e9920 3126
3127fi
3128fi
3129AWK=$ac_cv_prog_AWK
3130if test -n "$AWK"; then
cd9a469c 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3132$as_echo "$AWK" >&6; }
1e8e9920 3133else
cd9a469c 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135$as_echo "no" >&6; }
1e8e9920 3136fi
3137
cd9a469c 3138
1e8e9920 3139 test -n "$AWK" && break
3140done
3141
cd9a469c 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3143$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3144set x ${MAKE-make}
3145ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3146if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3147 $as_echo_n "(cached) " >&6
1e8e9920 3148else
3149 cat >conftest.make <<\_ACEOF
cd9a469c 3150SHELL = /bin/sh
1e8e9920 3151all:
cd9a469c 3152 @echo '@@@%%%=$(MAKE)=@@@%%%'
1e8e9920 3153_ACEOF
3154# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cd9a469c 3155case `${MAKE-make} -f conftest.make 2>/dev/null` in
3156 *@@@%%%=?*=@@@%%%*)
3157 eval ac_cv_prog_make_${ac_make}_set=yes;;
3158 *)
3159 eval ac_cv_prog_make_${ac_make}_set=no;;
3160esac
1e8e9920 3161rm -f conftest.make
3162fi
cd9a469c 3163if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165$as_echo "yes" >&6; }
1e8e9920 3166 SET_MAKE=
3167else
cd9a469c 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169$as_echo "no" >&6; }
1e8e9920 3170 SET_MAKE="MAKE=${MAKE-make}"
3171fi
3172
3173rm -rf .tst 2>/dev/null
3174mkdir .tst 2>/dev/null
3175if test -d .tst; then
3176 am__leading_dot=.
3177else
3178 am__leading_dot=_
3179fi
3180rmdir .tst 2>/dev/null
3181
cd9a469c 3182if test "`cd $srcdir && pwd`" != "`pwd`"; then
3183 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3184 # is not polluted with repeated "-I."
3185 am__isrc=' -I$(srcdir)'
3186 # test to see if srcdir already configured
3187 if test -f $srcdir/config.status; then
3188 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3189 fi
1e8e9920 3190fi
3191
3192# test whether we have cygpath
3193if test -z "$CYGPATH_W"; then
3194 if (cygpath --version) >/dev/null 2>/dev/null; then
3195 CYGPATH_W='cygpath -w'
3196 else
3197 CYGPATH_W=echo
3198 fi
3199fi
3200
3201
3202# Define the identity of the package.
3203 PACKAGE='libgomp'
3204 VERSION='1.0'
3205
3206
3207cat >>confdefs.h <<_ACEOF
3208#define PACKAGE "$PACKAGE"
3209_ACEOF
3210
3211
3212cat >>confdefs.h <<_ACEOF
3213#define VERSION "$VERSION"
3214_ACEOF
3215
3216# Some tools Automake needs.
3217
3218ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3219
3220
3221AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3222
3223
3224AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3225
3226
3227AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3228
3229
3230MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3231
cd9a469c 3232# We need awk for the "check" target. The system "awk" is bad on
3233# some platforms.
3234# Always define AMTAR for backward compatibility.
1e8e9920 3235
3236AMTAR=${AMTAR-"${am_missing_run}tar"}
3237
3238am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3239
3240
3241
3242
3243
3244# Default to --enable-multilib
cd9a469c 3245# Check whether --enable-multilib was given.
3246if test "${enable_multilib+set}" = set; then :
3247 enableval=$enable_multilib; case "$enableval" in
1e8e9920 3248 yes) multilib=yes ;;
3249 no) multilib=no ;;
cd9a469c 3250 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
1e8e9920 3251 esac
3252else
3253 multilib=yes
cd9a469c 3254fi
3255
1e8e9920 3256
3257# We may get other options which we leave undocumented:
3258# --with-target-subdir, --with-multisrctop, --with-multisubdir
3259# See config-ml.in if you want the gory details.
3260
3261if test "$srcdir" = "."; then
3262 if test "$with_target_subdir" != "."; then
3263 multi_basedir="$srcdir/$with_multisrctop../.."
3264 else
3265 multi_basedir="$srcdir/$with_multisrctop.."
3266 fi
3267else
3268 multi_basedir="$srcdir/.."
3269fi
3270
3271
ff434425 3272# Even if the default multilib is not a cross compilation,
3273# it may be that some of the other multilibs are.
3274if test $cross_compiling = no && test $multilib = yes \
3275 && test "x${with_multisubdir}" != x ; then
3276 cross_compiling=maybe
3277fi
3278
cd9a469c 3279ac_config_commands="$ac_config_commands default-1"
1e8e9920 3280
3281
3282# Calculate toolexeclibdir
3283# Also toolexecdir, though it's only used in toolexeclibdir
3284case ${enable_version_specific_runtime_libs} in
3285 yes)
3286 # Need the gcc compiler version to know where to install libraries
3287 # and header files if --enable-version-specific-runtime-libs option
3288 # is selected.
3289 toolexecdir='$(libdir)/gcc/$(target_alias)'
3290 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3291 ;;
3292 no)
3293 if test -n "$with_cross_host" &&
3294 test x"$with_cross_host" != x"no"; then
3295 # Install a library built with a cross compiler in tooldir, not libdir.
3296 toolexecdir='$(exec_prefix)/$(target_alias)'
3297 toolexeclibdir='$(toolexecdir)/lib'
3298 else
3299 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3300 toolexeclibdir='$(libdir)'
3301 fi
3302 multi_os_directory=`$CC -print-multi-os-directory`
3303 case $multi_os_directory in
3304 .) ;; # Avoid trailing /.
3305 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3306 esac
3307 ;;
3308esac
3309
3310
3311
3312# Check the compiler.
3313# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3314# We must force CC to /not/ be precious variables; otherwise
3315# the wrong, non-multilib-adjusted value will be used in multilibs.
3316# As a side effect, we have to subst CFLAGS ourselves.
3317
3318
3319
3320ac_ext=c
3321ac_cpp='$CPP $CPPFLAGS'
3322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325if test -n "$ac_tool_prefix"; then
3326 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3327set dummy ${ac_tool_prefix}gcc; ac_word=$2
cd9a469c 3328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329$as_echo_n "checking for $ac_word... " >&6; }
3330if test "${ac_cv_prog_CC+set}" = set; then :
3331 $as_echo_n "(cached) " >&6
1e8e9920 3332else
3333 if test -n "$CC"; then
3334 ac_cv_prog_CC="$CC" # Let the user override the test.
3335else
3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337for as_dir in $PATH
3338do
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
cd9a469c 3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3343 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 3344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3345 break 2
3346 fi
3347done
cd9a469c 3348 done
3349IFS=$as_save_IFS
1e8e9920 3350
3351fi
3352fi
3353CC=$ac_cv_prog_CC
3354if test -n "$CC"; then
cd9a469c 3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356$as_echo "$CC" >&6; }
1e8e9920 3357else
cd9a469c 3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359$as_echo "no" >&6; }
1e8e9920 3360fi
3361
cd9a469c 3362
1e8e9920 3363fi
3364if test -z "$ac_cv_prog_CC"; then
3365 ac_ct_CC=$CC
3366 # Extract the first word of "gcc", so it can be a program name with args.
3367set dummy gcc; ac_word=$2
cd9a469c 3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369$as_echo_n "checking for $ac_word... " >&6; }
3370if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3371 $as_echo_n "(cached) " >&6
1e8e9920 3372else
3373 if test -n "$ac_ct_CC"; then
3374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3375else
3376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377for as_dir in $PATH
3378do
3379 IFS=$as_save_IFS
3380 test -z "$as_dir" && as_dir=.
cd9a469c 3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3383 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 3384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3385 break 2
3386 fi
3387done
cd9a469c 3388 done
3389IFS=$as_save_IFS
1e8e9920 3390
3391fi
3392fi
3393ac_ct_CC=$ac_cv_prog_ac_ct_CC
3394if test -n "$ac_ct_CC"; then
cd9a469c 3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3396$as_echo "$ac_ct_CC" >&6; }
1e8e9920 3397else
cd9a469c 3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399$as_echo "no" >&6; }
1e8e9920 3400fi
3401
cd9a469c 3402 if test "x$ac_ct_CC" = x; then
3403 CC=""
3404 else
3405 case $cross_compiling:$ac_tool_warned in
3406yes:)
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3409ac_tool_warned=yes ;;
3410esac
3411 CC=$ac_ct_CC
3412 fi
1e8e9920 3413else
3414 CC="$ac_cv_prog_CC"
3415fi
3416
3417if test -z "$CC"; then
cd9a469c 3418 if test -n "$ac_tool_prefix"; then
3419 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1e8e9920 3420set dummy ${ac_tool_prefix}cc; ac_word=$2
cd9a469c 3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422$as_echo_n "checking for $ac_word... " >&6; }
3423if test "${ac_cv_prog_CC+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
1e8e9920 3425else
3426 if test -n "$CC"; then
3427 ac_cv_prog_CC="$CC" # Let the user override the test.
3428else
3429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430for as_dir in $PATH
3431do
3432 IFS=$as_save_IFS
3433 test -z "$as_dir" && as_dir=.
cd9a469c 3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3436 ac_cv_prog_CC="${ac_tool_prefix}cc"
cd9a469c 3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3438 break 2
3439 fi
3440done
cd9a469c 3441 done
3442IFS=$as_save_IFS
1e8e9920 3443
3444fi
3445fi
3446CC=$ac_cv_prog_CC
3447if test -n "$CC"; then
cd9a469c 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449$as_echo "$CC" >&6; }
1e8e9920 3450else
cd9a469c 3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452$as_echo "no" >&6; }
1e8e9920 3453fi
3454
1e8e9920 3455
cd9a469c 3456 fi
1e8e9920 3457fi
3458if test -z "$CC"; then
3459 # Extract the first word of "cc", so it can be a program name with args.
3460set dummy cc; ac_word=$2
cd9a469c 3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462$as_echo_n "checking for $ac_word... " >&6; }
3463if test "${ac_cv_prog_CC+set}" = set; then :
3464 $as_echo_n "(cached) " >&6
1e8e9920 3465else
3466 if test -n "$CC"; then
3467 ac_cv_prog_CC="$CC" # Let the user override the test.
3468else
3469 ac_prog_rejected=no
3470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471for as_dir in $PATH
3472do
3473 IFS=$as_save_IFS
3474 test -z "$as_dir" && as_dir=.
cd9a469c 3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3478 ac_prog_rejected=yes
3479 continue
3480 fi
3481 ac_cv_prog_CC="cc"
cd9a469c 3482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3483 break 2
3484 fi
3485done
cd9a469c 3486 done
3487IFS=$as_save_IFS
1e8e9920 3488
3489if test $ac_prog_rejected = yes; then
3490 # We found a bogon in the path, so make sure we never use it.
3491 set dummy $ac_cv_prog_CC
3492 shift
3493 if test $# != 0; then
3494 # We chose a different compiler from the bogus one.
3495 # However, it has the same basename, so the bogon will be chosen
3496 # first if we set CC to just the basename; use the full file name.
3497 shift
3498 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3499 fi
3500fi
3501fi
3502fi
3503CC=$ac_cv_prog_CC
3504if test -n "$CC"; then
cd9a469c 3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3506$as_echo "$CC" >&6; }
1e8e9920 3507else
cd9a469c 3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509$as_echo "no" >&6; }
1e8e9920 3510fi
3511
cd9a469c 3512
1e8e9920 3513fi
3514if test -z "$CC"; then
3515 if test -n "$ac_tool_prefix"; then
cd9a469c 3516 for ac_prog in cl.exe
1e8e9920 3517 do
3518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3519set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521$as_echo_n "checking for $ac_word... " >&6; }
3522if test "${ac_cv_prog_CC+set}" = set; then :
3523 $as_echo_n "(cached) " >&6
1e8e9920 3524else
3525 if test -n "$CC"; then
3526 ac_cv_prog_CC="$CC" # Let the user override the test.
3527else
3528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529for as_dir in $PATH
3530do
3531 IFS=$as_save_IFS
3532 test -z "$as_dir" && as_dir=.
cd9a469c 3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3535 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cd9a469c 3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3537 break 2
3538 fi
3539done
cd9a469c 3540 done
3541IFS=$as_save_IFS
1e8e9920 3542
3543fi
3544fi
3545CC=$ac_cv_prog_CC
3546if test -n "$CC"; then
cd9a469c 3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548$as_echo "$CC" >&6; }
1e8e9920 3549else
cd9a469c 3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551$as_echo "no" >&6; }
1e8e9920 3552fi
3553
cd9a469c 3554
1e8e9920 3555 test -n "$CC" && break
3556 done
3557fi
3558if test -z "$CC"; then
3559 ac_ct_CC=$CC
cd9a469c 3560 for ac_prog in cl.exe
1e8e9920 3561do
3562 # Extract the first word of "$ac_prog", so it can be a program name with args.
3563set dummy $ac_prog; ac_word=$2
cd9a469c 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565$as_echo_n "checking for $ac_word... " >&6; }
3566if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3567 $as_echo_n "(cached) " >&6
1e8e9920 3568else
3569 if test -n "$ac_ct_CC"; then
3570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3571else
3572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573for as_dir in $PATH
3574do
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
cd9a469c 3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3579 ac_cv_prog_ac_ct_CC="$ac_prog"
cd9a469c 3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3581 break 2
3582 fi
3583done
cd9a469c 3584 done
3585IFS=$as_save_IFS
1e8e9920 3586
3587fi
3588fi
3589ac_ct_CC=$ac_cv_prog_ac_ct_CC
3590if test -n "$ac_ct_CC"; then
cd9a469c 3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3592$as_echo "$ac_ct_CC" >&6; }
1e8e9920 3593else
cd9a469c 3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595$as_echo "no" >&6; }
1e8e9920 3596fi
3597
cd9a469c 3598
1e8e9920 3599 test -n "$ac_ct_CC" && break
3600done
3601
cd9a469c 3602 if test "x$ac_ct_CC" = x; then
3603 CC=""
3604 else
3605 case $cross_compiling:$ac_tool_warned in
3606yes:)
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3609ac_tool_warned=yes ;;
3610esac
3611 CC=$ac_ct_CC
3612 fi
1e8e9920 3613fi
3614
3615fi
3616
3617
cd9a469c 3618test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620as_fn_error "no acceptable C compiler found in \$PATH
3621See \`config.log' for more details." "$LINENO" 5; }
1e8e9920 3622
3623# Provide some information about the compiler.
cd9a469c 3624$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3625set X $ac_compile
3626ac_compiler=$2
3627for ac_option in --version -v -V -qversion; do
3628 { { ac_try="$ac_compiler $ac_option >&5"
3629case "(($ac_try" in
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3632esac
3633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3634$as_echo "$ac_try_echo"; } >&5
3635 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1e8e9920 3636 ac_status=$?
cd9a469c 3637 if test -s conftest.err; then
3638 sed '10a\
3639... rest of stderr output deleted ...
3640 10q' conftest.err >conftest.er1
3641 cat conftest.er1 >&5
3642 rm -f conftest.er1 conftest.err
3643 fi
3644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645 test $ac_status = 0; }
3646done
1e8e9920 3647
cd9a469c 3648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1e8e9920 3649/* end confdefs.h. */
3650
3651int
3652main ()
3653{
3654
3655 ;
3656 return 0;
3657}
3658_ACEOF
3659ac_clean_files_save=$ac_clean_files
cd9a469c 3660ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1e8e9920 3661# Try to create an executable without -o first, disregard a.out.
3662# It will help us diagnose broken compilers, and finding out an intuition
3663# of exeext.
cd9a469c 3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3665$as_echo_n "checking for C compiler default output file name... " >&6; }
3666ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3667
3668# The possible output files:
3669ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3670
3671ac_rmfiles=
3672for ac_file in $ac_files
3673do
3674 case $ac_file in
3675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3676 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3677 esac
3678done
3679rm -f $ac_rmfiles
3680
3681if { { ac_try="$ac_link_default"
3682case "(($ac_try" in
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3685esac
3686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3687$as_echo "$ac_try_echo"; } >&5
3688 (eval "$ac_link_default") 2>&5
3689 ac_status=$?
3690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3691 test $ac_status = 0; }; then :
3692 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3693# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3694# in a Makefile. We should not override ac_cv_exeext if it was cached,
3695# so that the user can short-circuit this test for compilers unknown to
3696# Autoconf.
3697for ac_file in $ac_files ''
1e8e9920 3698do
3699 test -f "$ac_file" || continue
3700 case $ac_file in
cd9a469c 3701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1e8e9920 3702 ;;
3703 [ab].out )
3704 # We found the default executable, but exeext='' is most
3705 # certainly right.
3706 break;;
3707 *.* )
cd9a469c 3708 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3709 then :; else
3710 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3711 fi
3712 # We set ac_cv_exeext here because the later test for it is not
3713 # safe: cross compilers may not add the suffix if given an `-o'
3714 # argument, so we may need to know it at that point already.
3715 # Even if this section looks crufty: it has the advantage of
3716 # actually working.
1e8e9920 3717 break;;
3718 * )
3719 break;;
3720 esac
3721done
cd9a469c 3722test "$ac_cv_exeext" = no && ac_cv_exeext=
3723
1e8e9920 3724else
cd9a469c 3725 ac_file=''
3726fi
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3728$as_echo "$ac_file" >&6; }
3729if test -z "$ac_file"; then :
3730 $as_echo "$as_me: failed program was:" >&5
1e8e9920 3731sed 's/^/| /' conftest.$ac_ext >&5
3732
cd9a469c 3733{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3735{ as_fn_set_status 77
3736as_fn_error "C compiler cannot create executables
3737See \`config.log' for more details." "$LINENO" 5; }; }
1e8e9920 3738fi
1e8e9920 3739ac_exeext=$ac_cv_exeext
1e8e9920 3740
cd9a469c 3741# Check that the compiler produces executables we can run. If not, either
1e8e9920 3742# the compiler is broken, or we cross compile.
cd9a469c 3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3744$as_echo_n "checking whether the C compiler works... " >&6; }
1e8e9920 3745# If not cross compiling, check that we can run a simple program.
3746if test "$cross_compiling" != yes; then
3747 if { ac_try='./$ac_file'
cd9a469c 3748 { { case "(($ac_try" in
3749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3751esac
3752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3753$as_echo "$ac_try_echo"; } >&5
3754 (eval "$ac_try") 2>&5
1e8e9920 3755 ac_status=$?
cd9a469c 3756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3757 test $ac_status = 0; }; }; then
1e8e9920 3758 cross_compiling=no
3759 else
3760 if test "$cross_compiling" = maybe; then
3761 cross_compiling=yes
3762 else
cd9a469c 3763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3765as_fn_error "cannot run C compiled programs.
1e8e9920 3766If you meant to cross compile, use \`--host'.
cd9a469c 3767See \`config.log' for more details." "$LINENO" 5; }
1e8e9920 3768 fi
3769 fi
3770fi
cd9a469c 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3772$as_echo "yes" >&6; }
1e8e9920 3773
cd9a469c 3774rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1e8e9920 3775ac_clean_files=$ac_clean_files_save
cd9a469c 3776# Check that the compiler produces executables we can run. If not, either
1e8e9920 3777# the compiler is broken, or we cross compile.
cd9a469c 3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3779$as_echo_n "checking whether we are cross compiling... " >&6; }
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3781$as_echo "$cross_compiling" >&6; }
3782
3783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3784$as_echo_n "checking for suffix of executables... " >&6; }
3785if { { ac_try="$ac_link"
3786case "(($ac_try" in
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3789esac
3790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791$as_echo "$ac_try_echo"; } >&5
3792 (eval "$ac_link") 2>&5
1e8e9920 3793 ac_status=$?
cd9a469c 3794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795 test $ac_status = 0; }; then :
1e8e9920 3796 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3797# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3798# work properly (i.e., refer to `conftest.exe'), while it won't with
3799# `rm'.
3800for ac_file in conftest.exe conftest conftest.*; do
3801 test -f "$ac_file" || continue
3802 case $ac_file in
cd9a469c 3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1e8e9920 3804 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1e8e9920 3805 break;;
3806 * ) break;;
3807 esac
3808done
3809else
cd9a469c 3810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812as_fn_error "cannot compute suffix of executables: cannot compile and link
3813See \`config.log' for more details." "$LINENO" 5; }
1e8e9920 3814fi
1e8e9920 3815rm -f conftest$ac_cv_exeext
cd9a469c 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3817$as_echo "$ac_cv_exeext" >&6; }
1e8e9920 3818
3819rm -f conftest.$ac_ext
3820EXEEXT=$ac_cv_exeext
3821ac_exeext=$EXEEXT
cd9a469c 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3823$as_echo_n "checking for suffix of object files... " >&6; }
3824if test "${ac_cv_objext+set}" = set; then :
3825 $as_echo_n "(cached) " >&6
1e8e9920 3826else
cd9a469c 3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1e8e9920 3828/* end confdefs.h. */
3829
3830int
3831main ()
3832{
3833
3834 ;
3835 return 0;
3836}
3837_ACEOF
3838rm -f conftest.o conftest.obj
cd9a469c 3839if { { ac_try="$ac_compile"
3840case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843esac
3844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845$as_echo "$ac_try_echo"; } >&5
3846 (eval "$ac_compile") 2>&5
3847 ac_status=$?
3848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849 test $ac_status = 0; }; then :
3850 for ac_file in conftest.o conftest.obj conftest.*; do
3851 test -f "$ac_file" || continue;
1e8e9920 3852 case $ac_file in
cd9a469c 3853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1e8e9920 3854 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3855 break;;
3856 esac
3857done
3858else
cd9a469c 3859 $as_echo "$as_me: failed program was:" >&5
1e8e9920 3860sed 's/^/| /' conftest.$ac_ext >&5
3861
cd9a469c 3862{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3864as_fn_error "cannot compute suffix of object files: cannot compile
3865See \`config.log' for more details." "$LINENO" 5; }
1e8e9920 3866fi
1e8e9920 3867rm -f conftest.$ac_cv_objext conftest.$ac_ext
3868fi
cd9a469c 3869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3870$as_echo "$ac_cv_objext" >&6; }
1e8e9920 3871OBJEXT=$ac_cv_objext
3872ac_objext=$OBJEXT
cd9a469c 3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3874$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3875if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
1e8e9920 3877else
cd9a469c 3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1e8e9920 3879/* end confdefs.h. */
3880
3881int
3882main ()
3883{
3884#ifndef __GNUC__
3885 choke me
3886#endif
3887
3888 ;
3889 return 0;
3890}
3891_ACEOF
cd9a469c 3892if ac_fn_c_try_compile "$LINENO"; then :
1e8e9920 3893 ac_compiler_gnu=yes
3894else
cd9a469c 3895 ac_compiler_gnu=no
1e8e9920 3896fi
cd9a469c 3897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1e8e9920 3898ac_cv_c_compiler_gnu=$ac_compiler_gnu
3899
3900fi
cd9a469c 3901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3902$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3903if test $ac_compiler_gnu = yes; then
3904 GCC=yes
3905else
3906 GCC=
3907fi
1e8e9920 3908ac_test_CFLAGS=${CFLAGS+set}
3909ac_save_CFLAGS=$CFLAGS
cd9a469c 3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3911$as_echo_n "checking whether $CC accepts -g... " >&6; }
3912if test "${ac_cv_prog_cc_g+set}" = set; then :
3913 $as_echo_n "(cached) " >&6
3914else
3915 ac_save_c_werror_flag=$ac_c_werror_flag
3916 ac_c_werror_flag=yes
3917 ac_cv_prog_cc_g=no
3918 CFLAGS="-g"
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1e8e9920 3920/* end confdefs.h. */
3921
3922int
3923main ()
3924{
3925
3926 ;
3927 return 0;
3928}
3929_ACEOF
cd9a469c 3930if ac_fn_c_try_compile "$LINENO"; then :
1e8e9920 3931 ac_cv_prog_cc_g=yes
3932else
cd9a469c 3933 CFLAGS=""
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935/* end confdefs.h. */
3936
3937int
3938main ()
3939{
3940
3941 ;
3942 return 0;
3943}
3944_ACEOF
3945if ac_fn_c_try_compile "$LINENO"; then :
3946
3947else
3948 ac_c_werror_flag=$ac_save_c_werror_flag
3949 CFLAGS="-g"
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951/* end confdefs.h. */
3952
3953int
3954main ()
3955{
1e8e9920 3956
cd9a469c 3957 ;
3958 return 0;
3959}
3960_ACEOF
3961if ac_fn_c_try_compile "$LINENO"; then :
3962 ac_cv_prog_cc_g=yes
1e8e9920 3963fi
cd9a469c 3964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1e8e9920 3965fi
cd9a469c 3966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967fi
3968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 ac_c_werror_flag=$ac_save_c_werror_flag
3970fi
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3972$as_echo "$ac_cv_prog_cc_g" >&6; }
1e8e9920 3973if test "$ac_test_CFLAGS" = set; then
3974 CFLAGS=$ac_save_CFLAGS
3975elif test $ac_cv_prog_cc_g = yes; then
3976 if test "$GCC" = yes; then
3977 CFLAGS="-g -O2"
3978 else
3979 CFLAGS="-g"
3980 fi
3981else
3982 if test "$GCC" = yes; then
3983 CFLAGS="-O2"
3984 else
3985 CFLAGS=
3986 fi
3987fi
cd9a469c 3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3989$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3990if test "${ac_cv_prog_cc_c89+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
1e8e9920 3992else
cd9a469c 3993 ac_cv_prog_cc_c89=no
1e8e9920 3994ac_save_CC=$CC
cd9a469c 3995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1e8e9920 3996/* end confdefs.h. */
3997#include <stdarg.h>
3998#include <stdio.h>
3999#include <sys/types.h>
4000#include <sys/stat.h>
4001/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4002struct buf { int x; };
4003FILE * (*rcsopen) (struct buf *, struct stat *, int);
4004static char *e (p, i)
4005 char **p;
4006 int i;
4007{
4008 return p[i];
4009}
4010static char *f (char * (*g) (char **, int), char **p, ...)
4011{
4012 char *s;
4013 va_list v;
4014 va_start (v,p);
4015 s = g (p, va_arg (v,int));
4016 va_end (v);
4017 return s;
4018}
4019
4020/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4021 function prototypes and stuff, but not '\xHH' hex character constants.
4022 These don't provoke an error unfortunately, instead are silently treated
cd9a469c 4023 as 'x'. The following induces an error, until -std is added to get
1e8e9920 4024 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4025 array size at least. It's necessary to write '\x00'==0 to get something
cd9a469c 4026 that's true only with -std. */
1e8e9920 4027int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4028
cd9a469c 4029/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4030 inside strings and character constants. */
4031#define FOO(x) 'x'
4032int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4033
1e8e9920 4034int test (int i, double x);
4035struct s1 {int (*f) (int a);};
4036struct s2 {int (*f) (double a);};
4037int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4038int argc;
4039char **argv;
4040int
4041main ()
4042{
4043return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4044 ;
4045 return 0;
4046}
4047_ACEOF
cd9a469c 4048for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4049 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1e8e9920 4050do
4051 CC="$ac_save_CC $ac_arg"
cd9a469c 4052 if ac_fn_c_try_compile "$LINENO"; then :
4053 ac_cv_prog_cc_c89=$ac_arg
1e8e9920 4054fi
cd9a469c 4055rm -f core conftest.err conftest.$ac_objext
4056 test "x$ac_cv_prog_cc_c89" != "xno" && break
1e8e9920 4057done
cd9a469c 4058rm -f conftest.$ac_ext
1e8e9920 4059CC=$ac_save_CC
4060
4061fi
cd9a469c 4062# AC_CACHE_VAL
4063case "x$ac_cv_prog_cc_c89" in
4064 x)
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4066$as_echo "none needed" >&6; } ;;
4067 xno)
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4069$as_echo "unsupported" >&6; } ;;
1e8e9920 4070 *)
cd9a469c 4071 CC="$CC $ac_cv_prog_cc_c89"
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4073$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1e8e9920 4074esac
cd9a469c 4075if test "x$ac_cv_prog_cc_c89" != xno; then :
1e8e9920 4076
1e8e9920 4077fi
4078
1e8e9920 4079ac_ext=c
4080ac_cpp='$CPP $CPPFLAGS'
4081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084DEPDIR="${am__leading_dot}deps"
4085
cd9a469c 4086ac_config_commands="$ac_config_commands depfiles"
1e8e9920 4087
4088
4089am_make=${MAKE-make}
4090cat > confinc << 'END'
4091am__doit:
cd9a469c 4092 @echo this is the am__doit target
1e8e9920 4093.PHONY: am__doit
4094END
4095# If we don't find an include directive, just comment out the code.
cd9a469c 4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4097$as_echo_n "checking for style of include used by $am_make... " >&6; }
1e8e9920 4098am__include="#"
4099am__quote=
4100_am_result=none
4101# First try GNU make style include.
4102echo "include confinc" > confmf
cd9a469c 4103# Ignore all kinds of additional output from `make'.
4104case `$am_make -s -f confmf 2> /dev/null` in #(
4105*the\ am__doit\ target*)
4106 am__include=include
4107 am__quote=
4108 _am_result=GNU
4109 ;;
4110esac
1e8e9920 4111# Now try BSD make style include.
4112if test "$am__include" = "#"; then
4113 echo '.include "confinc"' > confmf
cd9a469c 4114 case `$am_make -s -f confmf 2> /dev/null` in #(
4115 *the\ am__doit\ target*)
4116 am__include=.include
4117 am__quote="\""
4118 _am_result=BSD
4119 ;;
4120 esac
1e8e9920 4121fi
4122
4123
cd9a469c 4124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4125$as_echo "$_am_result" >&6; }
1e8e9920 4126rm -f confinc confmf
4127
cd9a469c 4128# Check whether --enable-dependency-tracking was given.
4129if test "${enable_dependency_tracking+set}" = set; then :
4130 enableval=$enable_dependency_tracking;
4131fi
1e8e9920 4132
1e8e9920 4133if test "x$enable_dependency_tracking" != xno; then
4134 am_depcomp="$ac_aux_dir/depcomp"
4135 AMDEPBACKSLASH='\'
4136fi
cd9a469c 4137 if test "x$enable_dependency_tracking" != xno; then
1e8e9920 4138 AMDEP_TRUE=
4139 AMDEP_FALSE='#'
4140else
4141 AMDEP_TRUE='#'
4142 AMDEP_FALSE=
4143fi
4144
4145
4146
1e8e9920 4147depcc="$CC" am_compiler_list=
4148
cd9a469c 4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4150$as_echo_n "checking dependency style of $depcc... " >&6; }
4151if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4152 $as_echo_n "(cached) " >&6
1e8e9920 4153else
4154 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4155 # We make a subdir and do the tests there. Otherwise we can end up
4156 # making bogus files that we don't know about and never remove. For
4157 # instance it was reported that on HP-UX the gcc test will end up
4158 # making a dummy file named `D' -- because `-MD' means `put the output
4159 # in D'.
4160 mkdir conftest.dir
4161 # Copy depcomp to subdir because otherwise we won't find it if we're
4162 # using a relative directory.
4163 cp "$am_depcomp" conftest.dir
4164 cd conftest.dir
4165 # We will build objects and dependencies in a subdirectory because
4166 # it helps to detect inapplicable dependency modes. For instance
4167 # both Tru64's cc and ICC support -MD to output dependencies as a
4168 # side effect of compilation, but ICC will put the dependencies in
4169 # the current directory while Tru64 will put them in the object
4170 # directory.
4171 mkdir sub
4172
4173 am_cv_CC_dependencies_compiler_type=none
4174 if test "$am_compiler_list" = ""; then
4175 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4176 fi
cd9a469c 4177 am__universal=false
4178 case " $depcc " in #(
4179 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4180 esac
4181
1e8e9920 4182 for depmode in $am_compiler_list; do
4183 # Setup a source with many dependencies, because some compilers
4184 # like to wrap large dependency lists on column 80 (with \), and
4185 # we should not choose a depcomp mode which is confused by this.
4186 #
4187 # We need to recreate these files for each test, as the compiler may
4188 # overwrite some of them when testing with obscure command lines.
4189 # This happens at least with the AIX C compiler.
4190 : > sub/conftest.c
4191 for i in 1 2 3 4 5 6; do
4192 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4193 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4194 # Solaris 8's {/usr,}/bin/sh.
4195 touch sub/conftst$i.h
4196 done
4197 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4198
cd9a469c 4199 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4200 # mode. It turns out that the SunPro C++ compiler does not properly
4201 # handle `-M -o', and we need to detect this. Also, some Intel
4202 # versions had trouble with output in subdirs
4203 am__obj=sub/conftest.${OBJEXT-o}
4204 am__minus_obj="-o $am__obj"
1e8e9920 4205 case $depmode in
cd9a469c 4206 gcc)
4207 # This depmode causes a compiler race in universal mode.
4208 test "$am__universal" = false || continue
4209 ;;
1e8e9920 4210 nosideeffect)
4211 # after this tag, mechanisms are not by side-effect, so they'll
4212 # only be used when explicitly requested
4213 if test "x$enable_dependency_tracking" = xyes; then
4214 continue
4215 else
4216 break
4217 fi
4218 ;;
cd9a469c 4219 msvisualcpp | msvcmsys)
4220 # This compiler won't grok `-c -o', but also, the minuso test has
4221 # not run yet. These depmodes are late enough in the game, and
4222 # so weak that their functioning should not be impacted.
4223 am__obj=conftest.${OBJEXT-o}
4224 am__minus_obj=
4225 ;;
1e8e9920 4226 none) break ;;
4227 esac
1e8e9920 4228 if depmode=$depmode \
cd9a469c 4229 source=sub/conftest.c object=$am__obj \
1e8e9920 4230 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cd9a469c 4231 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1e8e9920 4232 >/dev/null 2>conftest.err &&
cd9a469c 4233 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1e8e9920 4234 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cd9a469c 4235 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1e8e9920 4236 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4237 # icc doesn't choke on unknown options, it will just issue warnings
4238 # or remarks (even with -Werror). So we grep stderr for any message
4239 # that says an option was ignored or not supported.
4240 # When given -MP, icc 7.0 and 7.1 complain thusly:
4241 # icc: Command line warning: ignoring option '-M'; no argument required
4242 # The diagnosis changed in icc 8.0:
4243 # icc: Command line remark: option '-MP' not supported
4244 if (grep 'ignoring option' conftest.err ||
4245 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4246 am_cv_CC_dependencies_compiler_type=$depmode
4247 break
4248 fi
4249 fi
4250 done
4251
4252 cd ..
4253 rm -rf conftest.dir
4254else
4255 am_cv_CC_dependencies_compiler_type=none
4256fi
4257
4258fi
cd9a469c 4259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4260$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1e8e9920 4261CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4262
cd9a469c 4263 if
1e8e9920 4264 test "x$enable_dependency_tracking" != xno \
4265 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4266 am__fastdepCC_TRUE=
4267 am__fastdepCC_FALSE='#'
4268else
4269 am__fastdepCC_TRUE='#'
4270 am__fastdepCC_FALSE=
4271fi
4272
4273
4274
4275
4276
4277
4278# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4279# in XCFLAGS. But we need them in CFLAGS during configury. So put them
4280# in both places for now and restore CFLAGS at the end of config.
4281save_CFLAGS="$CFLAGS"
4282
4283# Add -Wall -Werror if we are using GCC.
4284if test "x$GCC" = "xyes"; then
4285 XCFLAGS="$XCFLAGS -Wall -Werror"
4286fi
4287
4288# Find other programs we need.
4289if test -n "$ac_tool_prefix"; then
4290 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4291set dummy ${ac_tool_prefix}ar; ac_word=$2
cd9a469c 4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4293$as_echo_n "checking for $ac_word... " >&6; }
4294if test "${ac_cv_prog_AR+set}" = set; then :
4295 $as_echo_n "(cached) " >&6
1e8e9920 4296else
4297 if test -n "$AR"; then
4298 ac_cv_prog_AR="$AR" # Let the user override the test.
4299else
4300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301for as_dir in $PATH
4302do
4303 IFS=$as_save_IFS
4304 test -z "$as_dir" && as_dir=.
cd9a469c 4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 4307 ac_cv_prog_AR="${ac_tool_prefix}ar"
cd9a469c 4308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 4309 break 2
4310 fi
4311done
cd9a469c 4312 done
4313IFS=$as_save_IFS
1e8e9920 4314
4315fi
4316fi
4317AR=$ac_cv_prog_AR
4318if test -n "$AR"; then
cd9a469c 4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4320$as_echo "$AR" >&6; }
1e8e9920 4321else
cd9a469c 4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323$as_echo "no" >&6; }
1e8e9920 4324fi
4325
cd9a469c 4326
1e8e9920 4327fi
4328if test -z "$ac_cv_prog_AR"; then
4329 ac_ct_AR=$AR
4330 # Extract the first word of "ar", so it can be a program name with args.
4331set dummy ar; ac_word=$2
cd9a469c 4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333$as_echo_n "checking for $ac_word... " >&6; }
4334if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
1e8e9920 4336else
4337 if test -n "$ac_ct_AR"; then
4338 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4339else
4340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341for as_dir in $PATH
4342do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
cd9a469c 4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 4347 ac_cv_prog_ac_ct_AR="ar"
cd9a469c 4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 4349 break 2
4350 fi
4351done
cd9a469c 4352 done
4353IFS=$as_save_IFS
1e8e9920 4354
4355fi
4356fi
4357ac_ct_AR=$ac_cv_prog_ac_ct_AR
4358if test -n "$ac_ct_AR"; then
cd9a469c 4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4360$as_echo "$ac_ct_AR" >&6; }
1e8e9920 4361else
cd9a469c 4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363$as_echo "no" >&6; }
1e8e9920 4364fi
4365
cd9a469c 4366 if test "x$ac_ct_AR" = x; then
4367 AR=""
4368 else
4369 case $cross_compiling:$ac_tool_warned in
4370yes:)
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4373ac_tool_warned=yes ;;
4374esac
4375 AR=$ac_ct_AR
4376 fi
1e8e9920 4377else
4378 AR="$ac_cv_prog_AR"
4379fi
4380
4381if test -n "$ac_tool_prefix"; then
4382 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4383set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cd9a469c 4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385$as_echo_n "checking for $ac_word... " >&6; }
4386if test "${ac_cv_prog_RANLIB+set}" = set; then :
4387 $as_echo_n "(cached) " >&6
1e8e9920 4388else
4389 if test -n "$RANLIB"; then
4390 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4391else
4392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH
4394do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
cd9a469c 4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 4399 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cd9a469c 4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 4401 break 2
4402 fi
4403done
cd9a469c 4404 done
4405IFS=$as_save_IFS
1e8e9920 4406
4407fi
4408fi
4409RANLIB=$ac_cv_prog_RANLIB
4410if test -n "$RANLIB"; then
cd9a469c 4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4412$as_echo "$RANLIB" >&6; }
1e8e9920 4413else
cd9a469c 4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415$as_echo "no" >&6; }
1e8e9920 4416fi
4417
cd9a469c 4418
1e8e9920 4419fi
4420if test -z "$ac_cv_prog_RANLIB"; then
4421 ac_ct_RANLIB=$RANLIB
4422 # Extract the first word of "ranlib", so it can be a program name with args.
4423set dummy ranlib; ac_word=$2
cd9a469c 4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425$as_echo_n "checking for $ac_word... " >&6; }
4426if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
1e8e9920 4428else
4429 if test -n "$ac_ct_RANLIB"; then
4430 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4431else
4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
cd9a469c 4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 4439 ac_cv_prog_ac_ct_RANLIB="ranlib"
cd9a469c 4440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 4441 break 2
4442 fi
4443done
cd9a469c 4444 done
4445IFS=$as_save_IFS
1e8e9920 4446
1e8e9920 4447fi
4448fi
4449ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4450if test -n "$ac_ct_RANLIB"; then
cd9a469c 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4452$as_echo "$ac_ct_RANLIB" >&6; }
1e8e9920 4453else
cd9a469c 4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455$as_echo "no" >&6; }
1e8e9920 4456fi
4457
cd9a469c 4458 if test "x$ac_ct_RANLIB" = x; then
4459 RANLIB="ranlib-not-found-in-path-error"
4460 else
4461 case $cross_compiling:$ac_tool_warned in
4462yes:)
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4465ac_tool_warned=yes ;;
4466esac
4467 RANLIB=$ac_ct_RANLIB
4468 fi
1e8e9920 4469else
4470 RANLIB="$ac_cv_prog_RANLIB"
4471fi
4472
4473# Extract the first word of "perl", so it can be a program name with args.
4474set dummy perl; ac_word=$2
cd9a469c 4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4476$as_echo_n "checking for $ac_word... " >&6; }
4477if test "${ac_cv_path_PERL+set}" = set; then :
4478 $as_echo_n "(cached) " >&6
1e8e9920 4479else
4480 case $PERL in
4481 [\\/]* | ?:[\\/]*)
4482 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4483 ;;
4484 *)
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486for as_dir in $PATH
4487do
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
cd9a469c 4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 4492 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 4493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 4494 break 2
4495 fi
4496done
cd9a469c 4497 done
4498IFS=$as_save_IFS
1e8e9920 4499
4500 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4501 ;;
4502esac
4503fi
4504PERL=$ac_cv_path_PERL
1e8e9920 4505if test -n "$PERL"; then
cd9a469c 4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4507$as_echo "$PERL" >&6; }
1e8e9920 4508else
cd9a469c 4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510$as_echo "no" >&6; }
1e8e9920 4511fi
4512
cd9a469c 4513
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4515$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4516set x ${MAKE-make}
4517ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4518if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4519 $as_echo_n "(cached) " >&6
1e8e9920 4520else
4521 cat >conftest.make <<\_ACEOF
cd9a469c 4522SHELL = /bin/sh
1e8e9920 4523all:
cd9a469c 4524 @echo '@@@%%%=$(MAKE)=@@@%%%'
1e8e9920 4525_ACEOF
4526# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cd9a469c 4527case `${MAKE-make} -f conftest.make 2>/dev/null` in
4528 *@@@%%%=?*=@@@%%%*)
4529 eval ac_cv_prog_make_${ac_make}_set=yes;;
4530 *)
4531 eval ac_cv_prog_make_${ac_make}_set=no;;
4532esac
1e8e9920 4533rm -f conftest.make
4534fi
cd9a469c 4535if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4537$as_echo "yes" >&6; }
1e8e9920 4538 SET_MAKE=
4539else
cd9a469c 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541$as_echo "no" >&6; }
1e8e9920 4542 SET_MAKE="MAKE=${MAKE-make}"
4543fi
4544
1e8e9920 4545
4546
439d698f 4547# See if makeinfo has been installed and is modern enough
4548# that we can use it.
4549
4550 # Extract the first word of "makeinfo", so it can be a program name with args.
4551set dummy makeinfo; ac_word=$2
cd9a469c 4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553$as_echo_n "checking for $ac_word... " >&6; }
4554if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4555 $as_echo_n "(cached) " >&6
439d698f 4556else
4557 if test -n "$MAKEINFO"; then
4558 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
cd9a469c 4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
439d698f 4567 ac_cv_prog_MAKEINFO="makeinfo"
cd9a469c 4568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
439d698f 4569 break 2
4570 fi
4571done
cd9a469c 4572 done
4573IFS=$as_save_IFS
439d698f 4574
4575fi
4576fi
4577MAKEINFO=$ac_cv_prog_MAKEINFO
4578if test -n "$MAKEINFO"; then
cd9a469c 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4580$as_echo "$MAKEINFO" >&6; }
439d698f 4581else
cd9a469c 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583$as_echo "no" >&6; }
439d698f 4584fi
4585
cd9a469c 4586
439d698f 4587 if test -n "$MAKEINFO"; then
4588 # Found it, now check the version.
cd9a469c 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4590$as_echo_n "checking for modern makeinfo... " >&6; }
4591if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4592 $as_echo_n "(cached) " >&6
439d698f 4593else
4594 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4595 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4596
4597 case $ac_prog_version in
4598 '') gcc_cv_prog_makeinfo_modern=no;;
41b2fb5d 4599 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
439d698f 4600 *) gcc_cv_prog_makeinfo_modern=no;;
4601 esac
4602
4603fi
cd9a469c 4604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4605$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
439d698f 4606 else
4607 gcc_cv_prog_makeinfo_modern=no
4608 fi
542f9784 4609 if test $gcc_cv_prog_makeinfo_modern = no; then
4610 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4611 fi
439d698f 4612
cd9a469c 4613 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
439d698f 4614 BUILD_INFO_TRUE=
4615 BUILD_INFO_FALSE='#'
4616else
4617 BUILD_INFO_TRUE='#'
4618 BUILD_INFO_FALSE=
4619fi
4620
4621
4622
1e8e9920 4623# Configure libtool
6d873a38 4624case `pwd` in
4625 *\ * | *\ *)
cd9a469c 4626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4627$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6d873a38 4628esac
542f9784 4629
4630
542f9784 4631
e6408286 4632macro_version='2.2.7a'
4633macro_revision='1.3134'
542f9784 4634
4635
4636
4637
4638
4639
1e8e9920 4640
542f9784 4641
4642
4643
4644
4645
4646
6d873a38 4647ltmain="$ac_aux_dir/ltmain.sh"
542f9784 4648
e6408286 4649# Backslashify metacharacters that are still active within
4650# double-quoted strings.
4651sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4652
4653# Same as above, but do not quote variable references.
4654double_quote_subst='s/\(["`\\]\)/\\\1/g'
4655
4656# Sed substitution to delay expansion of an escaped shell variable in a
4657# double_quote_subst'ed string.
4658delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4659
4660# Sed substitution to delay expansion of an escaped single quote.
4661delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4662
4663# Sed substitution to avoid accidental globbing in evaled expressions
4664no_glob_subst='s/\*/\\\*/g'
4665
4666ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4667ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4668ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4669
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4671$as_echo_n "checking how to print strings... " >&6; }
4672# Test print first, because it will be a builtin if present.
4673if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4674 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4675 ECHO='print -r --'
4676elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4677 ECHO='printf %s\n'
4678else
4679 # Use this function as a fallback that always works.
4680 func_fallback_echo ()
4681 {
4682 eval 'cat <<_LTECHO_EOF
4683$1
4684_LTECHO_EOF'
4685 }
4686 ECHO='func_fallback_echo'
4687fi
4688
4689# func_echo_all arg...
4690# Invoke $ECHO with all args, space-separated.
4691func_echo_all ()
4692{
4693 $ECHO ""
4694}
4695
4696case "$ECHO" in
4697 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4698$as_echo "printf" >&6; } ;;
4699 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4700$as_echo "print -r" >&6; } ;;
4701 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4702$as_echo "cat" >&6; } ;;
4703esac
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
cd9a469c 4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4719$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4720if test "${ac_cv_path_SED+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4722else
4723 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4724 for ac_i in 1 2 3 4 5 6 7; do
4725 ac_script="$ac_script$as_nl$ac_script"
4726 done
4727 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4728 { ac_script=; unset ac_script;}
4729 if test -z "$SED"; then
4730 ac_path_SED_found=false
4731 # Loop through the user's path and test for each of PROGNAME-LIST
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
542f9784 4733for as_dir in $PATH
4734do
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
cd9a469c 4737 for ac_prog in sed gsed; do
542f9784 4738 for ac_exec_ext in '' $ac_executable_extensions; do
cd9a469c 4739 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4740 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4741# Check for GNU ac_path_SED and select it if it is found.
4742 # Check for GNU $ac_path_SED
4743case `"$ac_path_SED" --version 2>&1` in
4744*GNU*)
4745 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4746*)
4747 ac_count=0
4748 $as_echo_n 0123456789 >"conftest.in"
4749 while :
4750 do
4751 cat "conftest.in" "conftest.in" >"conftest.tmp"
4752 mv "conftest.tmp" "conftest.in"
4753 cp "conftest.in" "conftest.nl"
4754 $as_echo '' >> "conftest.nl"
4755 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4757 as_fn_arith $ac_count + 1 && ac_count=$as_val
4758 if test $ac_count -gt ${ac_path_SED_max-0}; then
4759 # Best one so far, save it but keep looking for a better one
4760 ac_cv_path_SED="$ac_path_SED"
4761 ac_path_SED_max=$ac_count
4762 fi
4763 # 10*(2^10) chars as input seems more than enough
4764 test $ac_count -gt 10 && break
4765 done
4766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4767esac
4768
4769 $ac_path_SED_found && break 3
542f9784 4770 done
4771 done
cd9a469c 4772 done
542f9784 4773IFS=$as_save_IFS
cd9a469c 4774 if test -z "$ac_cv_path_SED"; then
4775 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
542f9784 4776 fi
cd9a469c 4777else
4778 ac_cv_path_SED=$SED
542f9784 4779fi
4780
cd9a469c 4781fi
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4783$as_echo "$ac_cv_path_SED" >&6; }
4784 SED="$ac_cv_path_SED"
4785 rm -f conftest.sed
542f9784 4786
4787test -z "$SED" && SED=sed
4788Xsed="$SED -e 1s/^X//"
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
cd9a469c 4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4801$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4802if test "${ac_cv_path_GREP+set}" = set; then :
4803 $as_echo_n "(cached) " >&6
4804else
4805 if test -z "$GREP"; then
4806 ac_path_GREP_found=false
4807 # Loop through the user's path and test for each of PROGNAME-LIST
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4810do
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
4813 for ac_prog in grep ggrep; do
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4816 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4817# Check for GNU ac_path_GREP and select it if it is found.
4818 # Check for GNU $ac_path_GREP
4819case `"$ac_path_GREP" --version 2>&1` in
4820*GNU*)
4821 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4822*)
4823 ac_count=0
4824 $as_echo_n 0123456789 >"conftest.in"
4825 while :
4826 do
4827 cat "conftest.in" "conftest.in" >"conftest.tmp"
4828 mv "conftest.tmp" "conftest.in"
4829 cp "conftest.in" "conftest.nl"
4830 $as_echo 'GREP' >> "conftest.nl"
4831 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4832 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4833 as_fn_arith $ac_count + 1 && ac_count=$as_val
4834 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4835 # Best one so far, save it but keep looking for a better one
4836 ac_cv_path_GREP="$ac_path_GREP"
4837 ac_path_GREP_max=$ac_count
4838 fi
4839 # 10*(2^10) chars as input seems more than enough
4840 test $ac_count -gt 10 && break
4841 done
4842 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4843esac
4844
4845 $ac_path_GREP_found && break 3
4846 done
4847 done
4848 done
4849IFS=$as_save_IFS
4850 if test -z "$ac_cv_path_GREP"; then
4851 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4852 fi
4853else
4854 ac_cv_path_GREP=$GREP
4855fi
4856
4857fi
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4859$as_echo "$ac_cv_path_GREP" >&6; }
4860 GREP="$ac_cv_path_GREP"
4861
4862
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4864$as_echo_n "checking for egrep... " >&6; }
4865if test "${ac_cv_path_EGREP+set}" = set; then :
4866 $as_echo_n "(cached) " >&6
542f9784 4867else
cd9a469c 4868 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4869 then ac_cv_path_EGREP="$GREP -E"
4870 else
4871 if test -z "$EGREP"; then
4872 ac_path_EGREP_found=false
4873 # Loop through the user's path and test for each of PROGNAME-LIST
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4876do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_prog in egrep; do
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4882 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4883# Check for GNU ac_path_EGREP and select it if it is found.
4884 # Check for GNU $ac_path_EGREP
4885case `"$ac_path_EGREP" --version 2>&1` in
4886*GNU*)
4887 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4888*)
4889 ac_count=0
4890 $as_echo_n 0123456789 >"conftest.in"
4891 while :
4892 do
4893 cat "conftest.in" "conftest.in" >"conftest.tmp"
4894 mv "conftest.tmp" "conftest.in"
4895 cp "conftest.in" "conftest.nl"
4896 $as_echo 'EGREP' >> "conftest.nl"
4897 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4898 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4899 as_fn_arith $ac_count + 1 && ac_count=$as_val
4900 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4901 # Best one so far, save it but keep looking for a better one
4902 ac_cv_path_EGREP="$ac_path_EGREP"
4903 ac_path_EGREP_max=$ac_count
542f9784 4904 fi
cd9a469c 4905 # 10*(2^10) chars as input seems more than enough
4906 test $ac_count -gt 10 && break
4907 done
4908 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4909esac
4910
4911 $ac_path_EGREP_found && break 3
4912 done
4913 done
4914 done
4915IFS=$as_save_IFS
4916 if test -z "$ac_cv_path_EGREP"; then
4917 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4918 fi
4919else
4920 ac_cv_path_EGREP=$EGREP
4921fi
4922
4923 fi
542f9784 4924fi
cd9a469c 4925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4926$as_echo "$ac_cv_path_EGREP" >&6; }
4927 EGREP="$ac_cv_path_EGREP"
542f9784 4928
4929
cd9a469c 4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4931$as_echo_n "checking for fgrep... " >&6; }
4932if test "${ac_cv_path_FGREP+set}" = set; then :
4933 $as_echo_n "(cached) " >&6
542f9784 4934else
cd9a469c 4935 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4936 then ac_cv_path_FGREP="$GREP -F"
4937 else
4938 if test -z "$FGREP"; then
4939 ac_path_FGREP_found=false
4940 # Loop through the user's path and test for each of PROGNAME-LIST
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4943do
4944 IFS=$as_save_IFS
4945 test -z "$as_dir" && as_dir=.
4946 for ac_prog in fgrep; do
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4949 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4950# Check for GNU ac_path_FGREP and select it if it is found.
4951 # Check for GNU $ac_path_FGREP
4952case `"$ac_path_FGREP" --version 2>&1` in
4953*GNU*)
4954 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4955*)
4956 ac_count=0
4957 $as_echo_n 0123456789 >"conftest.in"
4958 while :
4959 do
4960 cat "conftest.in" "conftest.in" >"conftest.tmp"
4961 mv "conftest.tmp" "conftest.in"
4962 cp "conftest.in" "conftest.nl"
4963 $as_echo 'FGREP' >> "conftest.nl"
4964 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4965 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4966 as_fn_arith $ac_count + 1 && ac_count=$as_val
4967 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4968 # Best one so far, save it but keep looking for a better one
4969 ac_cv_path_FGREP="$ac_path_FGREP"
4970 ac_path_FGREP_max=$ac_count
542f9784 4971 fi
cd9a469c 4972 # 10*(2^10) chars as input seems more than enough
4973 test $ac_count -gt 10 && break
4974 done
4975 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4976esac
4977
4978 $ac_path_FGREP_found && break 3
4979 done
4980 done
4981 done
4982IFS=$as_save_IFS
4983 if test -z "$ac_cv_path_FGREP"; then
4984 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4985 fi
4986else
4987 ac_cv_path_FGREP=$FGREP
4988fi
4989
4990 fi
542f9784 4991fi
cd9a469c 4992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4993$as_echo "$ac_cv_path_FGREP" >&6; }
4994 FGREP="$ac_cv_path_FGREP"
542f9784 4995
4996
4997test -z "$GREP" && GREP=grep
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
cd9a469c 5017# Check whether --with-gnu-ld was given.
5018if test "${with_gnu_ld+set}" = set; then :
5019 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1e8e9920 5020else
5021 with_gnu_ld=no
cd9a469c 5022fi
5023
1e8e9920 5024ac_prog=ld
5025if test "$GCC" = yes; then
5026 # Check if gcc -print-prog-name=ld gives a path.
cd9a469c 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5028$as_echo_n "checking for ld used by $CC... " >&6; }
1e8e9920 5029 case $host in
5030 *-*-mingw*)
5031 # gcc leaves a trailing carriage return which upsets mingw
5032 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5033 *)
5034 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5035 esac
5036 case $ac_prog in
5037 # Accept absolute paths.
542f9784 5038 [\\/]* | ?:[\\/]*)
1e8e9920 5039 re_direlt='/[^/][^/]*/\.\./'
542f9784 5040 # Canonicalize the pathname of ld
5041 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5042 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5043 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1e8e9920 5044 done
5045 test -z "$LD" && LD="$ac_prog"
5046 ;;
5047 "")
5048 # If it fails, then pretend we aren't using GCC.
5049 ac_prog=ld
5050 ;;
5051 *)
5052 # If it is relative, then search for the first ld in PATH.
5053 with_gnu_ld=unknown
5054 ;;
5055 esac
5056elif test "$with_gnu_ld" = yes; then
cd9a469c 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5058$as_echo_n "checking for GNU ld... " >&6; }
1e8e9920 5059else
cd9a469c 5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5061$as_echo_n "checking for non-GNU ld... " >&6; }
1e8e9920 5062fi
cd9a469c 5063if test "${lt_cv_path_LD+set}" = set; then :
5064 $as_echo_n "(cached) " >&6
1e8e9920 5065else
5066 if test -z "$LD"; then
542f9784 5067 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1e8e9920 5068 for ac_dir in $PATH; do
542f9784 5069 IFS="$lt_save_ifs"
1e8e9920 5070 test -z "$ac_dir" && ac_dir=.
5071 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5072 lt_cv_path_LD="$ac_dir/$ac_prog"
5073 # Check to see if the program is GNU ld. I'd rather use --version,
542f9784 5074 # but apparently some variants of GNU ld only accept -v.
1e8e9920 5075 # Break only if it was the GNU/non-GNU ld that we prefer.
542f9784 5076 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5077 *GNU* | *'with BFD'*)
1e8e9920 5078 test "$with_gnu_ld" != no && break
542f9784 5079 ;;
5080 *)
1e8e9920 5081 test "$with_gnu_ld" != yes && break
542f9784 5082 ;;
5083 esac
1e8e9920 5084 fi
5085 done
542f9784 5086 IFS="$lt_save_ifs"
1e8e9920 5087else
5088 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5089fi
5090fi
5091
5092LD="$lt_cv_path_LD"
5093if test -n "$LD"; then
cd9a469c 5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5095$as_echo "$LD" >&6; }
1e8e9920 5096else
cd9a469c 5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098$as_echo "no" >&6; }
1e8e9920 5099fi
cd9a469c 5100test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5102$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5103if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5104 $as_echo_n "(cached) " >&6
1e8e9920 5105else
542f9784 5106 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5107case `$LD -v 2>&1 </dev/null` in
5108*GNU* | *'with BFD'*)
1e8e9920 5109 lt_cv_prog_gnu_ld=yes
542f9784 5110 ;;
5111*)
1e8e9920 5112 lt_cv_prog_gnu_ld=no
542f9784 5113 ;;
5114esac
1e8e9920 5115fi
cd9a469c 5116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5117$as_echo "$lt_cv_prog_gnu_ld" >&6; }
1e8e9920 5118with_gnu_ld=$lt_cv_prog_gnu_ld
5119
5120
1e8e9920 5121
542f9784 5122
5123
5124
5125
5126
5127
cd9a469c 5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5129$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5130if test "${lt_cv_path_NM+set}" = set; then :
5131 $as_echo_n "(cached) " >&6
1e8e9920 5132else
5133 if test -n "$NM"; then
5134 # Let the user override the test.
5135 lt_cv_path_NM="$NM"
5136else
542f9784 5137 lt_nm_to_check="${ac_tool_prefix}nm"
5138 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5139 lt_nm_to_check="$lt_nm_to_check nm"
5140 fi
5141 for lt_tmp_nm in $lt_nm_to_check; do
5142 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5143 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5144 IFS="$lt_save_ifs"
5145 test -z "$ac_dir" && ac_dir=.
5146 tmp_nm="$ac_dir/$lt_tmp_nm"
5147 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5148 # Check to see if the nm accepts a BSD-compat flag.
5149 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5150 # nm: unknown option "B" ignored
5151 # Tru64's nm complains that /dev/null is an invalid object file
5152 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5153 */dev/null* | *'Invalid file or object type'*)
5154 lt_cv_path_NM="$tmp_nm -B"
5155 break
5156 ;;
5157 *)
5158 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5159 */dev/null*)
5160 lt_cv_path_NM="$tmp_nm -p"
5161 break
5162 ;;
5163 *)
5164 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5165 continue # so that we can try to find one that supports BSD flags
5166 ;;
5167 esac
5168 ;;
5169 esac
5170 fi
5171 done
5172 IFS="$lt_save_ifs"
5173 done
5174 : ${lt_cv_path_NM=no}
5175fi
5176fi
cd9a469c 5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5178$as_echo "$lt_cv_path_NM" >&6; }
542f9784 5179if test "$lt_cv_path_NM" != "no"; then
5180 NM="$lt_cv_path_NM"
5181else
5182 # Didn't find any BSD compatible name lister, look for dumpbin.
e6408286 5183 if test -n "$DUMPBIN"; then :
5184 # Let the user override the test.
5185 else
5186 if test -n "$ac_tool_prefix"; then
5187 for ac_prog in dumpbin "link -dump"
542f9784 5188 do
5189 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5190set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192$as_echo_n "checking for $ac_word... " >&6; }
5193if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
542f9784 5195else
5196 if test -n "$DUMPBIN"; then
5197 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5198else
5199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200for as_dir in $PATH
5201do
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
cd9a469c 5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 5206 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cd9a469c 5207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 5208 break 2
5209 fi
5210done
cd9a469c 5211 done
5212IFS=$as_save_IFS
542f9784 5213
5214fi
5215fi
5216DUMPBIN=$ac_cv_prog_DUMPBIN
5217if test -n "$DUMPBIN"; then
cd9a469c 5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5219$as_echo "$DUMPBIN" >&6; }
542f9784 5220else
cd9a469c 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222$as_echo "no" >&6; }
542f9784 5223fi
5224
cd9a469c 5225
542f9784 5226 test -n "$DUMPBIN" && break
5227 done
5228fi
5229if test -z "$DUMPBIN"; then
5230 ac_ct_DUMPBIN=$DUMPBIN
e6408286 5231 for ac_prog in dumpbin "link -dump"
542f9784 5232do
5233 # Extract the first word of "$ac_prog", so it can be a program name with args.
5234set dummy $ac_prog; ac_word=$2
cd9a469c 5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236$as_echo_n "checking for $ac_word... " >&6; }
5237if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5238 $as_echo_n "(cached) " >&6
542f9784 5239else
5240 if test -n "$ac_ct_DUMPBIN"; then
5241 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5242else
5243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244for as_dir in $PATH
5245do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
cd9a469c 5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 5250 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cd9a469c 5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 5252 break 2
5253 fi
5254done
cd9a469c 5255 done
5256IFS=$as_save_IFS
542f9784 5257
5258fi
1e8e9920 5259fi
542f9784 5260ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5261if test -n "$ac_ct_DUMPBIN"; then
cd9a469c 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5263$as_echo "$ac_ct_DUMPBIN" >&6; }
542f9784 5264else
cd9a469c 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266$as_echo "no" >&6; }
542f9784 5267fi
5268
cd9a469c 5269
542f9784 5270 test -n "$ac_ct_DUMPBIN" && break
5271done
542f9784 5272
cd9a469c 5273 if test "x$ac_ct_DUMPBIN" = x; then
5274 DUMPBIN=":"
5275 else
5276 case $cross_compiling:$ac_tool_warned in
5277yes:)
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5280ac_tool_warned=yes ;;
5281esac
5282 DUMPBIN=$ac_ct_DUMPBIN
5283 fi
542f9784 5284fi
5285
e6408286 5286 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5287 *COFF*)
5288 DUMPBIN="$DUMPBIN -symbols"
5289 ;;
5290 *)
5291 DUMPBIN=:
5292 ;;
5293 esac
5294 fi
542f9784 5295
5296 if test "$DUMPBIN" != ":"; then
5297 NM="$DUMPBIN"
5298 fi
1e8e9920 5299fi
542f9784 5300test -z "$NM" && NM=nm
5301
5302
5303
5304
5305
1e8e9920 5306
cd9a469c 5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5308$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5309if test "${lt_cv_nm_interface+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
542f9784 5311else
5312 lt_cv_nm_interface="BSD nm"
5313 echo "int some_variable = 0;" > conftest.$ac_ext
e6408286 5314 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
542f9784 5315 (eval "$ac_compile" 2>conftest.err)
5316 cat conftest.err >&5
e6408286 5317 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
542f9784 5318 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5319 cat conftest.err >&5
e6408286 5320 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
542f9784 5321 cat conftest.out >&5
5322 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5323 lt_cv_nm_interface="MS dumpbin"
5324 fi
5325 rm -f conftest*
5326fi
cd9a469c 5327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5328$as_echo "$lt_cv_nm_interface" >&6; }
1e8e9920 5329
cd9a469c 5330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5331$as_echo_n "checking whether ln -s works... " >&6; }
1e8e9920 5332LN_S=$as_ln_s
5333if test "$LN_S" = "ln -s"; then
cd9a469c 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5335$as_echo "yes" >&6; }
1e8e9920 5336else
cd9a469c 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5338$as_echo "no, using $LN_S" >&6; }
1e8e9920 5339fi
5340
542f9784 5341# find the maximum length of command line arguments
cd9a469c 5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5343$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5344if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5345 $as_echo_n "(cached) " >&6
542f9784 5346else
5347 i=0
5348 teststring="ABCD"
5349
5350 case $build_os in
5351 msdosdjgpp*)
5352 # On DJGPP, this test can blow up pretty badly due to problems in libc
5353 # (any single argument exceeding 2000 bytes causes a buffer overrun
5354 # during glob expansion). Even if it were fixed, the result of this
5355 # check would be larger than it should be.
5356 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5357 ;;
5358
5359 gnu*)
5360 # Under GNU Hurd, this test is not required because there is
5361 # no limit to the length of command line arguments.
5362 # Libtool will interpret -1 as no limit whatsoever
5363 lt_cv_sys_max_cmd_len=-1;
5364 ;;
5365
6d873a38 5366 cygwin* | mingw* | cegcc*)
542f9784 5367 # On Win9x/ME, this test blows up -- it succeeds, but takes
5368 # about 5 minutes as the teststring grows exponentially.
5369 # Worse, since 9x/ME are not pre-emptively multitasking,
5370 # you end up with a "frozen" computer, even though with patience
5371 # the test eventually succeeds (with a max line length of 256k).
5372 # Instead, let's just punt: use the minimum linelength reported by
5373 # all of the supported platforms: 8192 (on NT/2K/XP).
5374 lt_cv_sys_max_cmd_len=8192;
5375 ;;
5376
e6408286 5377 mint*)
5378 # On MiNT this can take a long time and run out of memory.
5379 lt_cv_sys_max_cmd_len=8192;
5380 ;;
5381
542f9784 5382 amigaos*)
5383 # On AmigaOS with pdksh, this test takes hours, literally.
5384 # So we just punt and use a minimum line length of 8192.
5385 lt_cv_sys_max_cmd_len=8192;
5386 ;;
5387
5388 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5389 # This has been around since 386BSD, at least. Likely further.
5390 if test -x /sbin/sysctl; then
5391 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5392 elif test -x /usr/sbin/sysctl; then
5393 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5394 else
5395 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5396 fi
5397 # And add a safety zone
5398 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5400 ;;
5401
5402 interix*)
5403 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5404 lt_cv_sys_max_cmd_len=196608
5405 ;;
5406
5407 osf*)
5408 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5409 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5410 # nice to cause kernel panics so lets avoid the loop below.
5411 # First set a reasonable default.
5412 lt_cv_sys_max_cmd_len=16384
5413 #
5414 if test -x /sbin/sysconfig; then
5415 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5416 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5417 esac
5418 fi
5419 ;;
5420 sco3.2v5*)
5421 lt_cv_sys_max_cmd_len=102400
5422 ;;
5423 sysv5* | sco5v6* | sysv4.2uw2*)
5424 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5425 if test -n "$kargmax"; then
5426 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5427 else
5428 lt_cv_sys_max_cmd_len=32768
5429 fi
5430 ;;
5431 *)
6d873a38 5432 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5433 if test -n "$lt_cv_sys_max_cmd_len"; then
07c46636 5434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5436 else
5437 # Make teststring a little bigger before we do anything with it.
5438 # a 1K string should be a reasonable start.
5439 for i in 1 2 3 4 5 6 7 8 ; do
5440 teststring=$teststring$teststring
5441 done
5442 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5443 # If test is not a shell built-in, we'll probably end up computing a
5444 # maximum length that is only half of the actual maximum length, but
5445 # we can't tell.
e6408286 5446 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5447 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
07c46636 5448 test $i != 17 # 1/2 MB should be enough
5449 do
5450 i=`expr $i + 1`
5451 teststring=$teststring$teststring
5452 done
5453 # Only check the string length outside the loop.
5454 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5455 teststring=
5456 # Add a significant safety factor because C++ compilers can tack on
5457 # massive amounts of additional arguments before passing them to the
5458 # linker. It appears as though 1/2 is a usable value.
5459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5460 fi
542f9784 5461 ;;
5462 esac
5463
5464fi
5465
5466if test -n $lt_cv_sys_max_cmd_len ; then
cd9a469c 5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5468$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
542f9784 5469else
cd9a469c 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5471$as_echo "none" >&6; }
542f9784 5472fi
5473max_cmd_len=$lt_cv_sys_max_cmd_len
5474
5475
5476
5477
5478
5479
542f9784 5480: ${CP="cp -f"}
5481: ${MV="mv -f"}
5482: ${RM="rm -f"}
5483
cd9a469c 5484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5485$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
542f9784 5486# Try some XSI features
5487xsi_shell=no
5488( _lt_dummy="a/b/c"
5489 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6d873a38 5490 = c,a/b,, \
5491 && eval 'test $(( 1 + 1 )) -eq 2 \
5492 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
542f9784 5493 && xsi_shell=yes
cd9a469c 5494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5495$as_echo "$xsi_shell" >&6; }
542f9784 5496
5497
cd9a469c 5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5499$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
542f9784 5500lt_shell_append=no
5501( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5502 >/dev/null 2>&1 \
5503 && lt_shell_append=yes
cd9a469c 5504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5505$as_echo "$lt_shell_append" >&6; }
542f9784 5506
5507
5508if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5509 lt_unset=unset
5510else
5511 lt_unset=false
5512fi
5513
5514
5515
5516
5517
5518# test EBCDIC or ASCII
5519case `echo X|tr X '\101'` in
5520 A) # ASCII based system
5521 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5522 lt_SP2NL='tr \040 \012'
5523 lt_NL2SP='tr \015\012 \040\040'
5524 ;;
5525 *) # EBCDIC based system
5526 lt_SP2NL='tr \100 \n'
5527 lt_NL2SP='tr \r\n \100\100'
5528 ;;
5529esac
5530
5531
5532
5533
5534
5535
5536
5537
5538
cd9a469c 5539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5540$as_echo_n "checking for $LD option to reload object files... " >&6; }
5541if test "${lt_cv_ld_reload_flag+set}" = set; then :
5542 $as_echo_n "(cached) " >&6
542f9784 5543else
5544 lt_cv_ld_reload_flag='-r'
5545fi
cd9a469c 5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5547$as_echo "$lt_cv_ld_reload_flag" >&6; }
542f9784 5548reload_flag=$lt_cv_ld_reload_flag
5549case $reload_flag in
5550"" | " "*) ;;
5551*) reload_flag=" $reload_flag" ;;
5552esac
5553reload_cmds='$LD$reload_flag -o $output$reload_objs'
5554case $host_os in
5555 darwin*)
5556 if test "$GCC" = yes; then
5557 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5558 else
5559 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5560 fi
5561 ;;
5562esac
5563
5564
5565
5566
5567
5568
5569
5570
5571
6d873a38 5572if test -n "$ac_tool_prefix"; then
5573 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5574set dummy ${ac_tool_prefix}objdump; ac_word=$2
cd9a469c 5575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576$as_echo_n "checking for $ac_word... " >&6; }
5577if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5578 $as_echo_n "(cached) " >&6
6d873a38 5579else
5580 if test -n "$OBJDUMP"; then
5581 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5582else
5583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584for as_dir in $PATH
5585do
5586 IFS=$as_save_IFS
5587 test -z "$as_dir" && as_dir=.
cd9a469c 5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 5590 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cd9a469c 5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 5592 break 2
5593 fi
5594done
cd9a469c 5595 done
5596IFS=$as_save_IFS
6d873a38 5597
5598fi
5599fi
5600OBJDUMP=$ac_cv_prog_OBJDUMP
5601if test -n "$OBJDUMP"; then
cd9a469c 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5603$as_echo "$OBJDUMP" >&6; }
6d873a38 5604else
cd9a469c 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606$as_echo "no" >&6; }
6d873a38 5607fi
5608
cd9a469c 5609
6d873a38 5610fi
5611if test -z "$ac_cv_prog_OBJDUMP"; then
5612 ac_ct_OBJDUMP=$OBJDUMP
5613 # Extract the first word of "objdump", so it can be a program name with args.
5614set dummy objdump; ac_word=$2
cd9a469c 5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616$as_echo_n "checking for $ac_word... " >&6; }
5617if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
6d873a38 5619else
5620 if test -n "$ac_ct_OBJDUMP"; then
5621 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5622else
5623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624for as_dir in $PATH
5625do
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
cd9a469c 5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 5630 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cd9a469c 5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 5632 break 2
5633 fi
5634done
cd9a469c 5635 done
5636IFS=$as_save_IFS
6d873a38 5637
6d873a38 5638fi
5639fi
5640ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5641if test -n "$ac_ct_OBJDUMP"; then
cd9a469c 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5643$as_echo "$ac_ct_OBJDUMP" >&6; }
6d873a38 5644else
cd9a469c 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646$as_echo "no" >&6; }
6d873a38 5647fi
5648
cd9a469c 5649 if test "x$ac_ct_OBJDUMP" = x; then
5650 OBJDUMP="false"
5651 else
5652 case $cross_compiling:$ac_tool_warned in
5653yes:)
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5656ac_tool_warned=yes ;;
5657esac
5658 OBJDUMP=$ac_ct_OBJDUMP
5659 fi
6d873a38 5660else
5661 OBJDUMP="$ac_cv_prog_OBJDUMP"
5662fi
5663
5664test -z "$OBJDUMP" && OBJDUMP=objdump
5665
5666
5667
5668
5669
5670
5671
5672
542f9784 5673
cd9a469c 5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5675$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5676if test "${lt_cv_deplibs_check_method+set}" = set; then :
5677 $as_echo_n "(cached) " >&6
1e8e9920 5678else
5679 lt_cv_file_magic_cmd='$MAGIC_CMD'
5680lt_cv_file_magic_test_file=
5681lt_cv_deplibs_check_method='unknown'
5682# Need to set the preceding variable on all platforms that support
5683# interlibrary dependencies.
5684# 'none' -- dependencies not supported.
5685# `unknown' -- same as none, but documents that we really don't know.
5686# 'pass_all' -- all dependencies passed with no checks.
5687# 'test_compile' -- check by making test program.
542f9784 5688# 'file_magic [[regex]]' -- check by looking for files in library path
5689# which responds to the $file_magic_cmd with a given extended regex.
1e8e9920 5690# If you have `file' or equivalent on your system and you're not sure
5691# whether `pass_all' will *always* work, you probably want this one.
5692
5693case $host_os in
c8db569e 5694aix[4-9]*)
1e8e9920 5695 lt_cv_deplibs_check_method=pass_all
5696 ;;
5697
5698beos*)
5699 lt_cv_deplibs_check_method=pass_all
5700 ;;
5701
542f9784 5702bsdi[45]*)
1e8e9920 5703 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5704 lt_cv_file_magic_cmd='/usr/bin/file -L'
5705 lt_cv_file_magic_test_file=/shlib/libc.so
5706 ;;
5707
542f9784 5708cygwin*)
5709 # func_win32_libid is a shell function defined in ltmain.sh
5710 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5711 lt_cv_file_magic_cmd='func_win32_libid'
5712 ;;
5713
5714mingw* | pw32*)
5715 # Base MSYS/MinGW do not provide the 'file' command needed by
5716 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5717 # unless we find 'file', for example because we are cross-compiling.
e6408286 5718 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5719 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
542f9784 5720 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5721 lt_cv_file_magic_cmd='func_win32_libid'
5722 else
5723 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5724 lt_cv_file_magic_cmd='$OBJDUMP -f'
5725 fi
1e8e9920 5726 ;;
5727
e6408286 5728cegcc*)
6d873a38 5729 # use the weaker test based on 'objdump'. See mingw*.
5730 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5731 lt_cv_file_magic_cmd='$OBJDUMP -f'
5732 ;;
5733
1e8e9920 5734darwin* | rhapsody*)
1e8e9920 5735 lt_cv_deplibs_check_method=pass_all
5736 ;;
5737
542f9784 5738freebsd* | dragonfly*)
5739 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1e8e9920 5740 case $host_cpu in
5741 i*86 )
5742 # Not sure whether the presence of OpenBSD here was a mistake.
5743 # Let's accept both of them until this is cleared up.
542f9784 5744 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1e8e9920 5745 lt_cv_file_magic_cmd=/usr/bin/file
5746 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5747 ;;
5748 esac
5749 else
5750 lt_cv_deplibs_check_method=pass_all
5751 fi
5752 ;;
5753
5754gnu*)
5755 lt_cv_deplibs_check_method=pass_all
5756 ;;
5757
e6408286 5758haiku*)
5759 lt_cv_deplibs_check_method=pass_all
5760 ;;
5761
542f9784 5762hpux10.20* | hpux11*)
5763 lt_cv_file_magic_cmd=/usr/bin/file
1e8e9920 5764 case $host_cpu in
1e8e9920 5765 ia64*)
5766 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1e8e9920 5767 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5768 ;;
542f9784 5769 hppa*64*)
e6408286 5770 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 5771 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1e8e9920 5772 ;;
5773 *)
e6408286 5774 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
542f9784 5775 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1e8e9920 5776 ;;
5777 esac
542f9784 5778 ;;
5779
5780interix[3-9]*)
5781 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5782 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5783 ;;
5784
5785irix5* | irix6* | nonstopux*)
5786 case $LD in
5787 *-32|*"-32 ") libmagic=32-bit;;
5788 *-n32|*"-n32 ") libmagic=N32;;
5789 *-64|*"-64 ") libmagic=64-bit;;
5790 *) libmagic=never-match;;
5791 esac
1e8e9920 5792 lt_cv_deplibs_check_method=pass_all
5793 ;;
5794
5795# This must be Linux ELF.
9af964d4 5796linux* | k*bsd*-gnu | kopensolaris*-gnu)
1e8e9920 5797 lt_cv_deplibs_check_method=pass_all
5798 ;;
5799
542f9784 5800netbsd*)
5801 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1e8e9920 5803 else
542f9784 5804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1e8e9920 5805 fi
5806 ;;
5807
542f9784 5808newos6*)
1e8e9920 5809 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5810 lt_cv_file_magic_cmd=/usr/bin/file
5811 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5812 ;;
5813
542f9784 5814*nto* | *qnx*)
5815 lt_cv_deplibs_check_method=pass_all
5816 ;;
5817
5818openbsd*)
5819 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5820 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5821 else
5822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5823 fi
5824 ;;
5825
1e8e9920 5826osf3* | osf4* | osf5*)
1e8e9920 5827 lt_cv_deplibs_check_method=pass_all
5828 ;;
5829
542f9784 5830rdos*)
1e8e9920 5831 lt_cv_deplibs_check_method=pass_all
5832 ;;
5833
5834solaris*)
5835 lt_cv_deplibs_check_method=pass_all
1e8e9920 5836 ;;
5837
542f9784 5838sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1e8e9920 5839 lt_cv_deplibs_check_method=pass_all
5840 ;;
5841
542f9784 5842sysv4 | sysv4.3*)
1e8e9920 5843 case $host_vendor in
1e8e9920 5844 motorola)
5845 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]'
5846 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5847 ;;
542f9784 5848 ncr)
5849 lt_cv_deplibs_check_method=pass_all
5850 ;;
5851 sequent)
5852 lt_cv_file_magic_cmd='/bin/file'
5853 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5854 ;;
5855 sni)
5856 lt_cv_file_magic_cmd='/bin/file'
5857 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5858 lt_cv_file_magic_test_file=/lib/libc.so
5859 ;;
5860 siemens)
5861 lt_cv_deplibs_check_method=pass_all
5862 ;;
5863 pc)
5864 lt_cv_deplibs_check_method=pass_all
5865 ;;
1e8e9920 5866 esac
5867 ;;
542f9784 5868
5869tpf*)
5870 lt_cv_deplibs_check_method=pass_all
5871 ;;
1e8e9920 5872esac
5873
5874fi
cd9a469c 5875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5876$as_echo "$lt_cv_deplibs_check_method" >&6; }
1e8e9920 5877file_magic_cmd=$lt_cv_file_magic_cmd
5878deplibs_check_method=$lt_cv_deplibs_check_method
542f9784 5879test -z "$deplibs_check_method" && deplibs_check_method=unknown
1e8e9920 5880
5881
5882
5883
5884
1e8e9920 5885
1e8e9920 5886
1e8e9920 5887
1e8e9920 5888
1e8e9920 5889
1e8e9920 5890
1e8e9920 5891
5892if test -n "$ac_tool_prefix"; then
542f9784 5893 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5894set dummy ${ac_tool_prefix}ar; ac_word=$2
cd9a469c 5895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896$as_echo_n "checking for $ac_word... " >&6; }
5897if test "${ac_cv_prog_AR+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
1e8e9920 5899else
542f9784 5900 if test -n "$AR"; then
5901 ac_cv_prog_AR="$AR" # Let the user override the test.
1e8e9920 5902else
5903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904for as_dir in $PATH
5905do
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
cd9a469c 5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 5910 ac_cv_prog_AR="${ac_tool_prefix}ar"
cd9a469c 5911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 5912 break 2
5913 fi
5914done
cd9a469c 5915 done
5916IFS=$as_save_IFS
1e8e9920 5917
5918fi
5919fi
542f9784 5920AR=$ac_cv_prog_AR
5921if test -n "$AR"; then
cd9a469c 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5923$as_echo "$AR" >&6; }
1e8e9920 5924else
cd9a469c 5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926$as_echo "no" >&6; }
1e8e9920 5927fi
5928
cd9a469c 5929
1e8e9920 5930fi
542f9784 5931if test -z "$ac_cv_prog_AR"; then
5932 ac_ct_AR=$AR
5933 # Extract the first word of "ar", so it can be a program name with args.
5934set dummy ar; ac_word=$2
cd9a469c 5935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936$as_echo_n "checking for $ac_word... " >&6; }
5937if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
1e8e9920 5939else
542f9784 5940 if test -n "$ac_ct_AR"; then
5941 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1e8e9920 5942else
5943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944for as_dir in $PATH
5945do
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
cd9a469c 5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 5950 ac_cv_prog_ac_ct_AR="ar"
cd9a469c 5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 5952 break 2
5953 fi
5954done
cd9a469c 5955 done
5956IFS=$as_save_IFS
1e8e9920 5957
1e8e9920 5958fi
5959fi
542f9784 5960ac_ct_AR=$ac_cv_prog_ac_ct_AR
5961if test -n "$ac_ct_AR"; then
cd9a469c 5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5963$as_echo "$ac_ct_AR" >&6; }
1e8e9920 5964else
cd9a469c 5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966$as_echo "no" >&6; }
1e8e9920 5967fi
5968
cd9a469c 5969 if test "x$ac_ct_AR" = x; then
5970 AR="false"
5971 else
5972 case $cross_compiling:$ac_tool_warned in
5973yes:)
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5976ac_tool_warned=yes ;;
5977esac
5978 AR=$ac_ct_AR
5979 fi
1e8e9920 5980else
542f9784 5981 AR="$ac_cv_prog_AR"
1e8e9920 5982fi
5983
542f9784 5984test -z "$AR" && AR=ar
5985test -z "$AR_FLAGS" && AR_FLAGS=cru
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
1e8e9920 5997if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5999set dummy ${ac_tool_prefix}strip; ac_word=$2
cd9a469c 6000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001$as_echo_n "checking for $ac_word... " >&6; }
6002if test "${ac_cv_prog_STRIP+set}" = set; then :
6003 $as_echo_n "(cached) " >&6
1e8e9920 6004else
6005 if test -n "$STRIP"; then
6006 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6007else
6008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009for as_dir in $PATH
6010do
6011 IFS=$as_save_IFS
6012 test -z "$as_dir" && as_dir=.
cd9a469c 6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 6015 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cd9a469c 6016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 6017 break 2
6018 fi
6019done
cd9a469c 6020 done
6021IFS=$as_save_IFS
1e8e9920 6022
6023fi
6024fi
6025STRIP=$ac_cv_prog_STRIP
6026if test -n "$STRIP"; then
cd9a469c 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6028$as_echo "$STRIP" >&6; }
1e8e9920 6029else
cd9a469c 6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031$as_echo "no" >&6; }
1e8e9920 6032fi
6033
cd9a469c 6034
1e8e9920 6035fi
6036if test -z "$ac_cv_prog_STRIP"; then
6037 ac_ct_STRIP=$STRIP
6038 # Extract the first word of "strip", so it can be a program name with args.
6039set dummy strip; ac_word=$2
cd9a469c 6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041$as_echo_n "checking for $ac_word... " >&6; }
6042if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6043 $as_echo_n "(cached) " >&6
1e8e9920 6044else
6045 if test -n "$ac_ct_STRIP"; then
6046 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6047else
6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049for as_dir in $PATH
6050do
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
cd9a469c 6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 6055 ac_cv_prog_ac_ct_STRIP="strip"
cd9a469c 6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 6057 break 2
6058 fi
6059done
cd9a469c 6060 done
6061IFS=$as_save_IFS
1e8e9920 6062
1e8e9920 6063fi
6064fi
6065ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6066if test -n "$ac_ct_STRIP"; then
cd9a469c 6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6068$as_echo "$ac_ct_STRIP" >&6; }
1e8e9920 6069else
cd9a469c 6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071$as_echo "no" >&6; }
1e8e9920 6072fi
6073
cd9a469c 6074 if test "x$ac_ct_STRIP" = x; then
6075 STRIP=":"
6076 else
6077 case $cross_compiling:$ac_tool_warned in
6078yes:)
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6081ac_tool_warned=yes ;;
6082esac
6083 STRIP=$ac_ct_STRIP
6084 fi
1e8e9920 6085else
6086 STRIP="$ac_cv_prog_STRIP"
6087fi
6088
542f9784 6089test -z "$STRIP" && STRIP=:
1e8e9920 6090
6091
1e8e9920 6092
1e8e9920 6093
6094
1e8e9920 6095
542f9784 6096if test -n "$ac_tool_prefix"; then
6097 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6098set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cd9a469c 6099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100$as_echo_n "checking for $ac_word... " >&6; }
6101if test "${ac_cv_prog_RANLIB+set}" = set; then :
6102 $as_echo_n "(cached) " >&6
542f9784 6103else
6104 if test -n "$RANLIB"; then
6105 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6106else
6107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108for as_dir in $PATH
6109do
6110 IFS=$as_save_IFS
6111 test -z "$as_dir" && as_dir=.
cd9a469c 6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 6114 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cd9a469c 6115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 6116 break 2
6117 fi
6118done
cd9a469c 6119 done
6120IFS=$as_save_IFS
542f9784 6121
6122fi
6123fi
6124RANLIB=$ac_cv_prog_RANLIB
6125if test -n "$RANLIB"; then
cd9a469c 6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6127$as_echo "$RANLIB" >&6; }
542f9784 6128else
cd9a469c 6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130$as_echo "no" >&6; }
542f9784 6131fi
6132
cd9a469c 6133
542f9784 6134fi
6135if test -z "$ac_cv_prog_RANLIB"; then
6136 ac_ct_RANLIB=$RANLIB
6137 # Extract the first word of "ranlib", so it can be a program name with args.
6138set dummy ranlib; ac_word=$2
cd9a469c 6139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140$as_echo_n "checking for $ac_word... " >&6; }
6141if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6142 $as_echo_n "(cached) " >&6
542f9784 6143else
6144 if test -n "$ac_ct_RANLIB"; then
6145 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6146else
6147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148for as_dir in $PATH
6149do
6150 IFS=$as_save_IFS
6151 test -z "$as_dir" && as_dir=.
cd9a469c 6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 6154 ac_cv_prog_ac_ct_RANLIB="ranlib"
cd9a469c 6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 6156 break 2
6157 fi
6158done
cd9a469c 6159 done
6160IFS=$as_save_IFS
542f9784 6161
542f9784 6162fi
6163fi
6164ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6165if test -n "$ac_ct_RANLIB"; then
cd9a469c 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6167$as_echo "$ac_ct_RANLIB" >&6; }
542f9784 6168else
cd9a469c 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170$as_echo "no" >&6; }
542f9784 6171fi
6172
cd9a469c 6173 if test "x$ac_ct_RANLIB" = x; then
6174 RANLIB=":"
6175 else
6176 case $cross_compiling:$ac_tool_warned in
6177yes:)
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180ac_tool_warned=yes ;;
6181esac
6182 RANLIB=$ac_ct_RANLIB
6183 fi
542f9784 6184else
6185 RANLIB="$ac_cv_prog_RANLIB"
6186fi
6187
6188test -z "$RANLIB" && RANLIB=:
6189
6190
6191
6192
6193
6194
6195# Determine commands to create old-style static archives.
6d873a38 6196old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
542f9784 6197old_postinstall_cmds='chmod 644 $oldlib'
6198old_postuninstall_cmds=
6199
6200if test -n "$RANLIB"; then
6201 case $host_os in
6202 openbsd*)
6203 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6204 ;;
6205 *)
6206 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6207 ;;
6208 esac
6209 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6210fi
6211
e6408286 6212case $host_os in
6213 darwin*)
6214 lock_old_archive_extraction=yes ;;
6215 *)
6216 lock_old_archive_extraction=no ;;
6217esac
6218
6219
6220
6221
6222
6223
542f9784 6224
6225
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# If no C compiler was specified, use CC.
6258LTCC=${LTCC-"$CC"}
6259
6260# If no C compiler flags were specified, use CFLAGS.
6261LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6262
6263# Allow CC to be a program name with arguments.
6264compiler=$CC
6265
6266
6267# Check for command to grab the raw symbol name followed by C symbol from nm.
cd9a469c 6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6269$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6270if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6271 $as_echo_n "(cached) " >&6
542f9784 6272else
6273
6274# These are sane defaults that work on at least a few old systems.
6275# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6276
6277# Character class describing NM global symbol codes.
6278symcode='[BCDEGRST]'
6279
6280# Regexp to match symbols that can be accessed directly from C.
6281sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6282
6283# Define system-specific variables.
6284case $host_os in
6285aix*)
6286 symcode='[BCDT]'
6287 ;;
6d873a38 6288cygwin* | mingw* | pw32* | cegcc*)
542f9784 6289 symcode='[ABCDGISTW]'
6290 ;;
6291hpux*)
6292 if test "$host_cpu" = ia64; then
6293 symcode='[ABCDEGRST]'
6294 fi
6295 ;;
6296irix* | nonstopux*)
6297 symcode='[BCDEGRST]'
6298 ;;
6299osf*)
6300 symcode='[BCDEGQRST]'
6301 ;;
6302solaris*)
6303 symcode='[BDRT]'
6304 ;;
6305sco3.2v5*)
6306 symcode='[DT]'
6307 ;;
6308sysv4.2uw2*)
6309 symcode='[DT]'
6310 ;;
6311sysv5* | sco5v6* | unixware* | OpenUNIX*)
6312 symcode='[ABDT]'
6313 ;;
6314sysv4)
6315 symcode='[DFNSTU]'
6316 ;;
6317esac
6318
6319# If we're using GNU nm, then use its standard symbol codes.
6320case `$NM -V 2>&1` in
6321*GNU* | *'with BFD'*)
6322 symcode='[ABCDGIRSTW]' ;;
6323esac
6324
6325# Transform an extracted symbol line into a proper C declaration.
6326# Some systems (esp. on ia64) link data and code symbols differently,
6327# so use this general approach.
6328lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6329
6330# Transform an extracted symbol line into symbol name and symbol address
6331lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6d873a38 6332lt_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 6333
6334# Handle CRLF in mingw tool chain
6335opt_cr=
6336case $build_os in
6337mingw*)
6338 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6339 ;;
6340esac
6341
6342# Try without a prefix underscore, then with it.
6343for ac_symprfx in "" "_"; do
6344
6345 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6346 symxfrm="\\1 $ac_symprfx\\2 \\2"
6347
6348 # Write the raw and C identifiers.
6349 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6350 # Fake it for dumpbin and say T for any non-static function
6351 # and D for any global variable.
6352 # Also find C++ and __fastcall symbols from MSVC++,
6353 # which start with @ or ?.
6354 lt_cv_sys_global_symbol_pipe="$AWK '"\
6355" {last_section=section; section=\$ 3};"\
6356" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6357" \$ 0!~/External *\|/{next};"\
6358" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6359" {if(hide[section]) next};"\
6360" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6361" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6362" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6363" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6364" ' prfx=^$ac_symprfx"
6365 else
6366 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6367 fi
6368
6369 # Check to see that the pipe works correctly.
6370 pipe_works=no
6371
6372 rm -f conftest*
6373 cat > conftest.$ac_ext <<_LT_EOF
6374#ifdef __cplusplus
6375extern "C" {
6376#endif
6377char nm_test_var;
6378void nm_test_func(void);
6379void nm_test_func(void){}
6380#ifdef __cplusplus
6381}
6382#endif
6383int main(){nm_test_var='a';nm_test_func();return(0);}
6384_LT_EOF
6385
cd9a469c 6386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 6387 (eval $ac_compile) 2>&5
6388 ac_status=$?
cd9a469c 6389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6390 test $ac_status = 0; }; then
542f9784 6391 # Now try to grab the symbols.
6392 nlist=conftest.nm
e6408286 6393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6394 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
542f9784 6395 ac_status=$?
cd9a469c 6396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6397 test $ac_status = 0; } && test -s "$nlist"; then
542f9784 6398 # Try sorting and uniquifying the output.
6399 if sort "$nlist" | uniq > "$nlist"T; then
6400 mv -f "$nlist"T "$nlist"
6401 else
6402 rm -f "$nlist"T
6403 fi
6404
6405 # Make sure that we snagged all the symbols we need.
6406 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6407 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6408 cat <<_LT_EOF > conftest.$ac_ext
6409#ifdef __cplusplus
6410extern "C" {
6411#endif
6412
6413_LT_EOF
6414 # Now generate the symbol file.
6415 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6416
6417 cat <<_LT_EOF >> conftest.$ac_ext
6418
6419/* The mapping between symbol names and symbols. */
6420const struct {
6421 const char *name;
6422 void *address;
6423}
6424lt__PROGRAM__LTX_preloaded_symbols[] =
6425{
6426 { "@PROGRAM@", (void *) 0 },
6427_LT_EOF
6428 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6429 cat <<\_LT_EOF >> conftest.$ac_ext
6430 {0, (void *) 0}
6431};
6432
6433/* This works around a problem in FreeBSD linker */
6434#ifdef FREEBSD_WORKAROUND
6435static const void *lt_preloaded_setup() {
6436 return lt__PROGRAM__LTX_preloaded_symbols;
6437}
6438#endif
6439
6440#ifdef __cplusplus
6441}
6442#endif
6443_LT_EOF
6444 # Now try linking the two files.
6445 mv conftest.$ac_objext conftstm.$ac_objext
6446 lt_save_LIBS="$LIBS"
6447 lt_save_CFLAGS="$CFLAGS"
6448 LIBS="conftstm.$ac_objext"
6449 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cd9a469c 6450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 6451 (eval $ac_link) 2>&5
6452 ac_status=$?
cd9a469c 6453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
542f9784 6455 pipe_works=yes
6456 fi
6457 LIBS="$lt_save_LIBS"
6458 CFLAGS="$lt_save_CFLAGS"
6459 else
6460 echo "cannot find nm_test_func in $nlist" >&5
6461 fi
6462 else
6463 echo "cannot find nm_test_var in $nlist" >&5
6464 fi
6465 else
6466 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6467 fi
6468 else
6469 echo "$progname: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6471 fi
6d873a38 6472 rm -rf conftest* conftst*
542f9784 6473
6474 # Do not use the global_symbol_pipe unless it works.
6475 if test "$pipe_works" = yes; then
6476 break
6477 else
6478 lt_cv_sys_global_symbol_pipe=
6479 fi
6480done
6481
6482fi
6483
6484if test -z "$lt_cv_sys_global_symbol_pipe"; then
6485 lt_cv_sys_global_symbol_to_cdecl=
6486fi
6487if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cd9a469c 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6489$as_echo "failed" >&6; }
542f9784 6490else
cd9a469c 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6492$as_echo "ok" >&6; }
542f9784 6493fi
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6d873a38 6509
6510
6511
6512
6513
542f9784 6514
6515
6516
cd9a469c 6517# Check whether --enable-libtool-lock was given.
6518if test "${enable_libtool_lock+set}" = set; then :
6519 enableval=$enable_libtool_lock;
6520fi
542f9784 6521
542f9784 6522test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6523
6524# Some flags need to be propagated to the compiler or linker for good
1e8e9920 6525# libtool support.
6526case $host in
542f9784 6527ia64-*-hpux*)
1e8e9920 6528 # Find out which ABI we are using.
542f9784 6529 echo 'int i;' > conftest.$ac_ext
cd9a469c 6530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1e8e9920 6531 (eval $ac_compile) 2>&5
6532 ac_status=$?
cd9a469c 6533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6534 test $ac_status = 0; }; then
542f9784 6535 case `/usr/bin/file conftest.$ac_objext` in
6536 *ELF-32*)
6537 HPUX_IA64_MODE="32"
6538 ;;
6539 *ELF-64*)
6540 HPUX_IA64_MODE="64"
6541 ;;
6542 esac
6543 fi
6544 rm -rf conftest*
6545 ;;
6546*-*-irix6*)
6547 # Find out which ABI we are using.
e6408286 6548 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cd9a469c 6549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 6550 (eval $ac_compile) 2>&5
6551 ac_status=$?
cd9a469c 6552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6553 test $ac_status = 0; }; then
542f9784 6554 if test "$lt_cv_prog_gnu_ld" = yes; then
6555 case `/usr/bin/file conftest.$ac_objext` in
6556 *32-bit*)
6557 LD="${LD-ld} -melf32bsmip"
6558 ;;
6559 *N32*)
6560 LD="${LD-ld} -melf32bmipn32"
6561 ;;
6562 *64-bit*)
6563 LD="${LD-ld} -melf64bmip"
6564 ;;
6565 esac
6566 else
6567 case `/usr/bin/file conftest.$ac_objext` in
6568 *32-bit*)
6569 LD="${LD-ld} -32"
6570 ;;
6571 *N32*)
6572 LD="${LD-ld} -n32"
6573 ;;
6574 *64-bit*)
6575 LD="${LD-ld} -64"
6576 ;;
6577 esac
6578 fi
6579 fi
6580 rm -rf conftest*
6581 ;;
6582
6583x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6584s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6585 # Find out which ABI we are using.
6586 echo 'int i;' > conftest.$ac_ext
cd9a469c 6587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 6588 (eval $ac_compile) 2>&5
6589 ac_status=$?
cd9a469c 6590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591 test $ac_status = 0; }; then
542f9784 6592 case `/usr/bin/file conftest.o` in
6593 *32-bit*)
6594 case $host in
6595 x86_64-*kfreebsd*-gnu)
6596 LD="${LD-ld} -m elf_i386_fbsd"
6597 ;;
6598 x86_64-*linux*)
b4b3bbba 6599 case `/usr/bin/file conftest.o` in
6600 *x86-64*)
6601 LD="${LD-ld} -m elf32_x86_64"
6602 ;;
6603 *)
6604 LD="${LD-ld} -m elf_i386"
6605 ;;
6606 esac
542f9784 6607 ;;
6608 ppc64-*linux*|powerpc64-*linux*)
6609 LD="${LD-ld} -m elf32ppclinux"
6610 ;;
6611 s390x-*linux*)
6612 LD="${LD-ld} -m elf_s390"
6613 ;;
6614 sparc64-*linux*)
6615 LD="${LD-ld} -m elf32_sparc"
6616 ;;
6617 esac
6618 ;;
6619 *64-bit*)
6620 case $host in
6621 x86_64-*kfreebsd*-gnu)
6622 LD="${LD-ld} -m elf_x86_64_fbsd"
6623 ;;
6624 x86_64-*linux*)
6625 LD="${LD-ld} -m elf_x86_64"
6626 ;;
6627 ppc*-*linux*|powerpc*-*linux*)
6628 LD="${LD-ld} -m elf64ppc"
6629 ;;
6630 s390*-*linux*|s390*-*tpf*)
6631 LD="${LD-ld} -m elf64_s390"
6632 ;;
6633 sparc*-*linux*)
6634 LD="${LD-ld} -m elf64_sparc"
6635 ;;
6636 esac
6637 ;;
6638 esac
6639 fi
6640 rm -rf conftest*
6641 ;;
6642
6643*-*-sco3.2v5*)
6644 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6645 SAVE_CFLAGS="$CFLAGS"
6646 CFLAGS="$CFLAGS -belf"
cd9a469c 6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6648$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6649if test "${lt_cv_cc_needs_belf+set}" = set; then :
6650 $as_echo_n "(cached) " >&6
542f9784 6651else
6652 ac_ext=c
6653ac_cpp='$CPP $CPPFLAGS'
6654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6656ac_compiler_gnu=$ac_cv_c_compiler_gnu
6657
cd9a469c 6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 6659/* end confdefs.h. */
6660
6661int
6662main ()
6663{
6664
6665 ;
6666 return 0;
6667}
6668_ACEOF
cd9a469c 6669if ac_fn_c_try_link "$LINENO"; then :
542f9784 6670 lt_cv_cc_needs_belf=yes
6671else
cd9a469c 6672 lt_cv_cc_needs_belf=no
542f9784 6673fi
cd9a469c 6674rm -f core conftest.err conftest.$ac_objext \
6675 conftest$ac_exeext conftest.$ac_ext
542f9784 6676 ac_ext=c
6677ac_cpp='$CPP $CPPFLAGS'
6678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6680ac_compiler_gnu=$ac_cv_c_compiler_gnu
6681
6682fi
cd9a469c 6683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6684$as_echo "$lt_cv_cc_needs_belf" >&6; }
542f9784 6685 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6686 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6687 CFLAGS="$SAVE_CFLAGS"
6688 fi
6689 ;;
6690sparc*-*solaris*)
6691 # Find out which ABI we are using.
6692 echo 'int i;' > conftest.$ac_ext
cd9a469c 6693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 6694 (eval $ac_compile) 2>&5
6695 ac_status=$?
cd9a469c 6696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6697 test $ac_status = 0; }; then
542f9784 6698 case `/usr/bin/file conftest.o` in
6699 *64-bit*)
6700 case $lt_cv_prog_gnu_ld in
6701 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6d873a38 6702 *)
6703 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6704 LD="${LD-ld} -64"
6705 fi
6706 ;;
542f9784 6707 esac
6708 ;;
6709 esac
6710 fi
6711 rm -rf conftest*
6712 ;;
6713esac
6714
6715need_locks="$enable_libtool_lock"
6716
6d873a38 6717
6718 case $host_os in
6719 rhapsody* | darwin*)
6720 if test -n "$ac_tool_prefix"; then
6721 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6722set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cd9a469c 6723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724$as_echo_n "checking for $ac_word... " >&6; }
6725if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6726 $as_echo_n "(cached) " >&6
542f9784 6727else
6d873a38 6728 if test -n "$DSYMUTIL"; then
6729 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6730else
6731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732for as_dir in $PATH
542f9784 6733do
6d873a38 6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
cd9a469c 6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 6738 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cd9a469c 6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 6740 break 2
542f9784 6741 fi
6d873a38 6742done
cd9a469c 6743 done
6744IFS=$as_save_IFS
6d873a38 6745
6746fi
6747fi
6748DSYMUTIL=$ac_cv_prog_DSYMUTIL
6749if test -n "$DSYMUTIL"; then
cd9a469c 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6751$as_echo "$DSYMUTIL" >&6; }
6d873a38 6752else
cd9a469c 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754$as_echo "no" >&6; }
6d873a38 6755fi
6756
cd9a469c 6757
6d873a38 6758fi
6759if test -z "$ac_cv_prog_DSYMUTIL"; then
6760 ac_ct_DSYMUTIL=$DSYMUTIL
6761 # Extract the first word of "dsymutil", so it can be a program name with args.
6762set dummy dsymutil; ac_word=$2
cd9a469c 6763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764$as_echo_n "checking for $ac_word... " >&6; }
6765if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6766 $as_echo_n "(cached) " >&6
6d873a38 6767else
6768 if test -n "$ac_ct_DSYMUTIL"; then
6769 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6770else
6771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772for as_dir in $PATH
6773do
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
cd9a469c 6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 6778 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cd9a469c 6779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 6780 break 2
6781 fi
6782done
cd9a469c 6783 done
6784IFS=$as_save_IFS
6d873a38 6785
6d873a38 6786fi
6787fi
6788ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6789if test -n "$ac_ct_DSYMUTIL"; then
cd9a469c 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6791$as_echo "$ac_ct_DSYMUTIL" >&6; }
6d873a38 6792else
cd9a469c 6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794$as_echo "no" >&6; }
6d873a38 6795fi
6796
cd9a469c 6797 if test "x$ac_ct_DSYMUTIL" = x; then
6798 DSYMUTIL=":"
6799 else
6800 case $cross_compiling:$ac_tool_warned in
6801yes:)
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6804ac_tool_warned=yes ;;
6805esac
6806 DSYMUTIL=$ac_ct_DSYMUTIL
6807 fi
6d873a38 6808else
6809 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6810fi
6811
6812 if test -n "$ac_tool_prefix"; then
6813 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6814set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cd9a469c 6815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816$as_echo_n "checking for $ac_word... " >&6; }
6817if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6818 $as_echo_n "(cached) " >&6
6d873a38 6819else
6820 if test -n "$NMEDIT"; then
6821 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6822else
6823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824for as_dir in $PATH
6825do
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
cd9a469c 6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 6830 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cd9a469c 6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 6832 break 2
6833 fi
6834done
cd9a469c 6835 done
6836IFS=$as_save_IFS
6d873a38 6837
6838fi
6839fi
6840NMEDIT=$ac_cv_prog_NMEDIT
6841if test -n "$NMEDIT"; then
cd9a469c 6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6843$as_echo "$NMEDIT" >&6; }
6d873a38 6844else
cd9a469c 6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846$as_echo "no" >&6; }
6d873a38 6847fi
6848
cd9a469c 6849
6d873a38 6850fi
6851if test -z "$ac_cv_prog_NMEDIT"; then
6852 ac_ct_NMEDIT=$NMEDIT
6853 # Extract the first word of "nmedit", so it can be a program name with args.
6854set dummy nmedit; ac_word=$2
cd9a469c 6855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6856$as_echo_n "checking for $ac_word... " >&6; }
6857if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6858 $as_echo_n "(cached) " >&6
6d873a38 6859else
6860 if test -n "$ac_ct_NMEDIT"; then
6861 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6862else
6863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864for as_dir in $PATH
6865do
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
cd9a469c 6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 6870 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cd9a469c 6871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 6872 break 2
6873 fi
6874done
cd9a469c 6875 done
6876IFS=$as_save_IFS
6d873a38 6877
6d873a38 6878fi
6879fi
6880ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6881if test -n "$ac_ct_NMEDIT"; then
cd9a469c 6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6883$as_echo "$ac_ct_NMEDIT" >&6; }
6d873a38 6884else
cd9a469c 6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886$as_echo "no" >&6; }
6d873a38 6887fi
6888
cd9a469c 6889 if test "x$ac_ct_NMEDIT" = x; then
6890 NMEDIT=":"
6891 else
6892 case $cross_compiling:$ac_tool_warned in
6893yes:)
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6896ac_tool_warned=yes ;;
6897esac
6898 NMEDIT=$ac_ct_NMEDIT
6899 fi
6d873a38 6900else
6901 NMEDIT="$ac_cv_prog_NMEDIT"
6902fi
6903
6904 if test -n "$ac_tool_prefix"; then
6905 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6906set dummy ${ac_tool_prefix}lipo; ac_word=$2
cd9a469c 6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908$as_echo_n "checking for $ac_word... " >&6; }
6909if test "${ac_cv_prog_LIPO+set}" = set; then :
6910 $as_echo_n "(cached) " >&6
6d873a38 6911else
6912 if test -n "$LIPO"; then
6913 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6914else
6915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916for as_dir in $PATH
6917do
6918 IFS=$as_save_IFS
6919 test -z "$as_dir" && as_dir=.
cd9a469c 6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 6922 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cd9a469c 6923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 6924 break 2
6925 fi
6926done
cd9a469c 6927 done
6928IFS=$as_save_IFS
6d873a38 6929
6930fi
6931fi
6932LIPO=$ac_cv_prog_LIPO
6933if test -n "$LIPO"; then
cd9a469c 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6935$as_echo "$LIPO" >&6; }
6d873a38 6936else
cd9a469c 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938$as_echo "no" >&6; }
6d873a38 6939fi
6940
cd9a469c 6941
6d873a38 6942fi
6943if test -z "$ac_cv_prog_LIPO"; then
6944 ac_ct_LIPO=$LIPO
6945 # Extract the first word of "lipo", so it can be a program name with args.
6946set dummy lipo; ac_word=$2
cd9a469c 6947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6948$as_echo_n "checking for $ac_word... " >&6; }
6949if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6950 $as_echo_n "(cached) " >&6
6d873a38 6951else
6952 if test -n "$ac_ct_LIPO"; then
6953 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6954else
6955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956for as_dir in $PATH
6957do
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
cd9a469c 6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 6962 ac_cv_prog_ac_ct_LIPO="lipo"
cd9a469c 6963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 6964 break 2
6965 fi
6966done
cd9a469c 6967 done
6968IFS=$as_save_IFS
6d873a38 6969
6d873a38 6970fi
6971fi
6972ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6973if test -n "$ac_ct_LIPO"; then
cd9a469c 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6975$as_echo "$ac_ct_LIPO" >&6; }
6d873a38 6976else
cd9a469c 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6978$as_echo "no" >&6; }
6d873a38 6979fi
6980
cd9a469c 6981 if test "x$ac_ct_LIPO" = x; then
6982 LIPO=":"
6983 else
6984 case $cross_compiling:$ac_tool_warned in
6985yes:)
6986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6988ac_tool_warned=yes ;;
6989esac
6990 LIPO=$ac_ct_LIPO
6991 fi
6d873a38 6992else
6993 LIPO="$ac_cv_prog_LIPO"
6994fi
6995
6996 if test -n "$ac_tool_prefix"; then
6997 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6998set dummy ${ac_tool_prefix}otool; ac_word=$2
cd9a469c 6999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7000$as_echo_n "checking for $ac_word... " >&6; }
7001if test "${ac_cv_prog_OTOOL+set}" = set; then :
7002 $as_echo_n "(cached) " >&6
6d873a38 7003else
7004 if test -n "$OTOOL"; then
7005 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7006else
7007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008for as_dir in $PATH
7009do
7010 IFS=$as_save_IFS
7011 test -z "$as_dir" && as_dir=.
cd9a469c 7012 for ac_exec_ext in '' $ac_executable_extensions; do
7013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 7014 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cd9a469c 7015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 7016 break 2
7017 fi
7018done
cd9a469c 7019 done
7020IFS=$as_save_IFS
6d873a38 7021
7022fi
7023fi
7024OTOOL=$ac_cv_prog_OTOOL
7025if test -n "$OTOOL"; then
cd9a469c 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7027$as_echo "$OTOOL" >&6; }
6d873a38 7028else
cd9a469c 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030$as_echo "no" >&6; }
6d873a38 7031fi
7032
cd9a469c 7033
6d873a38 7034fi
7035if test -z "$ac_cv_prog_OTOOL"; then
7036 ac_ct_OTOOL=$OTOOL
7037 # Extract the first word of "otool", so it can be a program name with args.
7038set dummy otool; ac_word=$2
cd9a469c 7039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040$as_echo_n "checking for $ac_word... " >&6; }
7041if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7042 $as_echo_n "(cached) " >&6
6d873a38 7043else
7044 if test -n "$ac_ct_OTOOL"; then
7045 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7046else
7047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048for as_dir in $PATH
7049do
7050 IFS=$as_save_IFS
7051 test -z "$as_dir" && as_dir=.
cd9a469c 7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 7054 ac_cv_prog_ac_ct_OTOOL="otool"
cd9a469c 7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 7056 break 2
7057 fi
7058done
cd9a469c 7059 done
7060IFS=$as_save_IFS
6d873a38 7061
6d873a38 7062fi
7063fi
7064ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7065if test -n "$ac_ct_OTOOL"; then
cd9a469c 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7067$as_echo "$ac_ct_OTOOL" >&6; }
6d873a38 7068else
cd9a469c 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070$as_echo "no" >&6; }
6d873a38 7071fi
7072
cd9a469c 7073 if test "x$ac_ct_OTOOL" = x; then
7074 OTOOL=":"
7075 else
7076 case $cross_compiling:$ac_tool_warned in
7077yes:)
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7080ac_tool_warned=yes ;;
7081esac
7082 OTOOL=$ac_ct_OTOOL
7083 fi
6d873a38 7084else
7085 OTOOL="$ac_cv_prog_OTOOL"
7086fi
7087
7088 if test -n "$ac_tool_prefix"; then
7089 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7090set dummy ${ac_tool_prefix}otool64; ac_word=$2
cd9a469c 7091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092$as_echo_n "checking for $ac_word... " >&6; }
7093if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7094 $as_echo_n "(cached) " >&6
6d873a38 7095else
7096 if test -n "$OTOOL64"; then
7097 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7098else
7099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100for as_dir in $PATH
7101do
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
cd9a469c 7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 7106 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cd9a469c 7107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 7108 break 2
7109 fi
7110done
cd9a469c 7111 done
7112IFS=$as_save_IFS
6d873a38 7113
7114fi
7115fi
7116OTOOL64=$ac_cv_prog_OTOOL64
7117if test -n "$OTOOL64"; then
cd9a469c 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7119$as_echo "$OTOOL64" >&6; }
6d873a38 7120else
cd9a469c 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122$as_echo "no" >&6; }
6d873a38 7123fi
7124
cd9a469c 7125
6d873a38 7126fi
7127if test -z "$ac_cv_prog_OTOOL64"; then
7128 ac_ct_OTOOL64=$OTOOL64
7129 # Extract the first word of "otool64", so it can be a program name with args.
7130set dummy otool64; ac_word=$2
cd9a469c 7131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132$as_echo_n "checking for $ac_word... " >&6; }
7133if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7134 $as_echo_n "(cached) " >&6
6d873a38 7135else
7136 if test -n "$ac_ct_OTOOL64"; then
7137 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7138else
7139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140for as_dir in $PATH
7141do
7142 IFS=$as_save_IFS
7143 test -z "$as_dir" && as_dir=.
cd9a469c 7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 7146 ac_cv_prog_ac_ct_OTOOL64="otool64"
cd9a469c 7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 7148 break 2
7149 fi
7150done
cd9a469c 7151 done
7152IFS=$as_save_IFS
6d873a38 7153
6d873a38 7154fi
7155fi
7156ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7157if test -n "$ac_ct_OTOOL64"; then
cd9a469c 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7159$as_echo "$ac_ct_OTOOL64" >&6; }
6d873a38 7160else
cd9a469c 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162$as_echo "no" >&6; }
6d873a38 7163fi
7164
cd9a469c 7165 if test "x$ac_ct_OTOOL64" = x; then
7166 OTOOL64=":"
7167 else
7168 case $cross_compiling:$ac_tool_warned in
7169yes:)
7170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7172ac_tool_warned=yes ;;
7173esac
7174 OTOOL64=$ac_ct_OTOOL64
7175 fi
6d873a38 7176else
7177 OTOOL64="$ac_cv_prog_OTOOL64"
7178fi
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
cd9a469c 7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7207$as_echo_n "checking for -single_module linker flag... " >&6; }
7208if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7209 $as_echo_n "(cached) " >&6
6d873a38 7210else
7211 lt_cv_apple_cc_single_mod=no
7212 if test -z "${LT_MULTI_MODULE}"; then
7213 # By default we will add the -single_module flag. You can override
7214 # by either setting the environment variable LT_MULTI_MODULE
7215 # non-empty at configure time, or by adding -multi_module to the
7216 # link flags.
7217 rm -rf libconftest.dylib*
7218 echo "int foo(void){return 1;}" > conftest.c
7219 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7220-dynamiclib -Wl,-single_module conftest.c" >&5
7221 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7222 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7223 _lt_result=$?
7224 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7225 lt_cv_apple_cc_single_mod=yes
7226 else
7227 cat conftest.err >&5
7228 fi
7229 rm -rf libconftest.dylib*
7230 rm -f conftest.*
7231 fi
7232fi
cd9a469c 7233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7234$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7236$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7237if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7238 $as_echo_n "(cached) " >&6
6d873a38 7239else
7240 lt_cv_ld_exported_symbols_list=no
7241 save_LDFLAGS=$LDFLAGS
7242 echo "_main" > conftest.sym
7243 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cd9a469c 7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d873a38 7245/* end confdefs.h. */
7246
7247int
7248main ()
7249{
7250
7251 ;
7252 return 0;
7253}
7254_ACEOF
cd9a469c 7255if ac_fn_c_try_link "$LINENO"; then :
6d873a38 7256 lt_cv_ld_exported_symbols_list=yes
7257else
cd9a469c 7258 lt_cv_ld_exported_symbols_list=no
6d873a38 7259fi
cd9a469c 7260rm -f core conftest.err conftest.$ac_objext \
7261 conftest$ac_exeext conftest.$ac_ext
6d873a38 7262 LDFLAGS="$save_LDFLAGS"
7263
7264fi
cd9a469c 7265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7266$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
e6408286 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7268$as_echo_n "checking for -force_load linker flag... " >&6; }
7269if test "${lt_cv_ld_force_load+set}" = set; then :
7270 $as_echo_n "(cached) " >&6
7271else
7272 lt_cv_ld_force_load=no
7273 cat > conftest.c << _LT_EOF
7274int forced_loaded() { return 2;}
7275_LT_EOF
7276 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7277 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7278 echo "$AR cru libconftest.a conftest.o" >&5
7279 $AR cru libconftest.a conftest.o 2>&5
7280 cat > conftest.c << _LT_EOF
7281int main() { return 0;}
7282_LT_EOF
7283 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7284 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7285 _lt_result=$?
7286 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7287 lt_cv_ld_force_load=yes
7288 else
7289 cat conftest.err >&5
7290 fi
7291 rm -f conftest.err libconftest.a conftest conftest.c
7292 rm -rf conftest.dSYM
7293
7294fi
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7296$as_echo "$lt_cv_ld_force_load" >&6; }
6d873a38 7297 case $host_os in
7298 rhapsody* | darwin1.[012])
7299 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7300 darwin1.*)
7301 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7302 darwin*) # darwin 5.x on
7303 # if running on 10.5 or later, the deployment target defaults
7304 # to the OS version, if on x86, and 10.4, the deployment
7305 # target defaults to 10.4. Don't you love it?
7306 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7307 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7308 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7309 10.[012]*)
7310 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7311 10.*)
7312 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7313 esac
7314 ;;
7315 esac
7316 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7317 _lt_dar_single_mod='$single_module'
7318 fi
7319 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7320 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7321 else
7322 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7323 fi
e6408286 7324 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6d873a38 7325 _lt_dsymutil='~$DSYMUTIL $lib || :'
7326 else
7327 _lt_dsymutil=
7328 fi
7329 ;;
7330 esac
7331
7332ac_ext=c
7333ac_cpp='$CPP $CPPFLAGS'
7334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336ac_compiler_gnu=$ac_cv_c_compiler_gnu
cd9a469c 7337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7338$as_echo_n "checking how to run the C preprocessor... " >&6; }
6d873a38 7339# On Suns, sometimes $CPP names a directory.
7340if test -n "$CPP" && test -d "$CPP"; then
7341 CPP=
7342fi
7343if test -z "$CPP"; then
cd9a469c 7344 if test "${ac_cv_prog_CPP+set}" = set; then :
7345 $as_echo_n "(cached) " >&6
6d873a38 7346else
7347 # Double quotes because CPP needs to be expanded
7348 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7349 do
7350 ac_preproc_ok=false
7351for ac_c_preproc_warn_flag in '' yes
7352do
7353 # Use a header file that comes with gcc, so configuring glibc
7354 # with a fresh cross-compiler works.
7355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7356 # <limits.h> exists even on freestanding compilers.
7357 # On the NeXT, cc -E runs the code through the compiler's parser,
7358 # not just through cpp. "Syntax error" is here to catch this case.
cd9a469c 7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d873a38 7360/* end confdefs.h. */
7361#ifdef __STDC__
7362# include <limits.h>
7363#else
7364# include <assert.h>
7365#endif
7366 Syntax error
7367_ACEOF
cd9a469c 7368if ac_fn_c_try_cpp "$LINENO"; then :
542f9784 7369
cd9a469c 7370else
542f9784 7371 # Broken: fails on valid input.
7372continue
7373fi
7374rm -f conftest.err conftest.$ac_ext
7375
cd9a469c 7376 # OK, works on sane cases. Now check whether nonexistent headers
542f9784 7377 # can be detected and how.
cd9a469c 7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7379/* end confdefs.h. */
7380#include <ac_nonexistent.h>
7381_ACEOF
cd9a469c 7382if ac_fn_c_try_cpp "$LINENO"; then :
542f9784 7383 # Broken: success on invalid input.
7384continue
7385else
542f9784 7386 # Passes both tests.
7387ac_preproc_ok=:
7388break
7389fi
7390rm -f conftest.err conftest.$ac_ext
7391
7392done
7393# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7394rm -f conftest.err conftest.$ac_ext
cd9a469c 7395if $ac_preproc_ok; then :
542f9784 7396 break
7397fi
7398
7399 done
7400 ac_cv_prog_CPP=$CPP
7401
7402fi
7403 CPP=$ac_cv_prog_CPP
7404else
7405 ac_cv_prog_CPP=$CPP
7406fi
cd9a469c 7407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7408$as_echo "$CPP" >&6; }
542f9784 7409ac_preproc_ok=false
7410for ac_c_preproc_warn_flag in '' yes
7411do
7412 # Use a header file that comes with gcc, so configuring glibc
7413 # with a fresh cross-compiler works.
7414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7415 # <limits.h> exists even on freestanding compilers.
7416 # On the NeXT, cc -E runs the code through the compiler's parser,
7417 # not just through cpp. "Syntax error" is here to catch this case.
cd9a469c 7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7419/* end confdefs.h. */
7420#ifdef __STDC__
7421# include <limits.h>
7422#else
7423# include <assert.h>
7424#endif
7425 Syntax error
7426_ACEOF
cd9a469c 7427if ac_fn_c_try_cpp "$LINENO"; then :
542f9784 7428
cd9a469c 7429else
542f9784 7430 # Broken: fails on valid input.
7431continue
7432fi
7433rm -f conftest.err conftest.$ac_ext
7434
cd9a469c 7435 # OK, works on sane cases. Now check whether nonexistent headers
542f9784 7436 # can be detected and how.
cd9a469c 7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7438/* end confdefs.h. */
7439#include <ac_nonexistent.h>
7440_ACEOF
cd9a469c 7441if ac_fn_c_try_cpp "$LINENO"; then :
542f9784 7442 # Broken: success on invalid input.
7443continue
7444else
542f9784 7445 # Passes both tests.
7446ac_preproc_ok=:
7447break
7448fi
7449rm -f conftest.err conftest.$ac_ext
7450
7451done
7452# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7453rm -f conftest.err conftest.$ac_ext
cd9a469c 7454if $ac_preproc_ok; then :
7455
542f9784 7456else
cd9a469c 7457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7459as_fn_error "C preprocessor \"$CPP\" fails sanity check
7460See \`config.log' for more details." "$LINENO" 5; }
542f9784 7461fi
7462
7463ac_ext=c
7464ac_cpp='$CPP $CPPFLAGS'
7465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7467ac_compiler_gnu=$ac_cv_c_compiler_gnu
7468
7469
cd9a469c 7470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7471$as_echo_n "checking for ANSI C header files... " >&6; }
7472if test "${ac_cv_header_stdc+set}" = set; then :
7473 $as_echo_n "(cached) " >&6
542f9784 7474else
cd9a469c 7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7476/* end confdefs.h. */
7477#include <stdlib.h>
7478#include <stdarg.h>
7479#include <string.h>
7480#include <float.h>
7481
7482int
7483main ()
7484{
7485
7486 ;
7487 return 0;
7488}
7489_ACEOF
cd9a469c 7490if ac_fn_c_try_compile "$LINENO"; then :
542f9784 7491 ac_cv_header_stdc=yes
7492else
cd9a469c 7493 ac_cv_header_stdc=no
542f9784 7494fi
cd9a469c 7495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 7496
7497if test $ac_cv_header_stdc = yes; then
7498 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cd9a469c 7499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7500/* end confdefs.h. */
7501#include <string.h>
7502
7503_ACEOF
7504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cd9a469c 7505 $EGREP "memchr" >/dev/null 2>&1; then :
7506
542f9784 7507else
7508 ac_cv_header_stdc=no
7509fi
7510rm -f conftest*
7511
7512fi
7513
7514if test $ac_cv_header_stdc = yes; then
7515 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cd9a469c 7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7517/* end confdefs.h. */
7518#include <stdlib.h>
7519
7520_ACEOF
7521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cd9a469c 7522 $EGREP "free" >/dev/null 2>&1; then :
7523
542f9784 7524else
7525 ac_cv_header_stdc=no
7526fi
7527rm -f conftest*
7528
7529fi
7530
7531if test $ac_cv_header_stdc = yes; then
7532 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cd9a469c 7533 if test "$cross_compiling" = yes; then :
542f9784 7534 :
7535else
cd9a469c 7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7537/* end confdefs.h. */
7538#include <ctype.h>
cd9a469c 7539#include <stdlib.h>
542f9784 7540#if ((' ' & 0x0FF) == 0x020)
7541# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7542# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7543#else
7544# define ISLOWER(c) \
7545 (('a' <= (c) && (c) <= 'i') \
7546 || ('j' <= (c) && (c) <= 'r') \
7547 || ('s' <= (c) && (c) <= 'z'))
7548# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7549#endif
7550
7551#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7552int
7553main ()
7554{
7555 int i;
7556 for (i = 0; i < 256; i++)
7557 if (XOR (islower (i), ISLOWER (i))
7558 || toupper (i) != TOUPPER (i))
cd9a469c 7559 return 2;
7560 return 0;
542f9784 7561}
7562_ACEOF
cd9a469c 7563if ac_fn_c_try_run "$LINENO"; then :
542f9784 7564
cd9a469c 7565else
7566 ac_cv_header_stdc=no
542f9784 7567fi
cd9a469c 7568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7569 conftest.$ac_objext conftest.beam conftest.$ac_ext
542f9784 7570fi
cd9a469c 7571
542f9784 7572fi
7573fi
cd9a469c 7574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7575$as_echo "$ac_cv_header_stdc" >&6; }
542f9784 7576if test $ac_cv_header_stdc = yes; then
7577
cd9a469c 7578$as_echo "#define STDC_HEADERS 1" >>confdefs.h
542f9784 7579
7580fi
7581
7582# On IRIX 5.3, sys/types and inttypes.h are conflicting.
542f9784 7583for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7584 inttypes.h stdint.h unistd.h
cd9a469c 7585do :
7586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7587ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7588"
7589eval as_val=\$$as_ac_Header
7590 if test "x$as_val" = x""yes; then :
542f9784 7591 cat >>confdefs.h <<_ACEOF
cd9a469c 7592#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
542f9784 7593_ACEOF
7594
7595fi
7596
7597done
7598
7599
542f9784 7600for ac_header in dlfcn.h
cd9a469c 7601do :
7602 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7603"
7604if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
542f9784 7605 cat >>confdefs.h <<_ACEOF
cd9a469c 7606#define HAVE_DLFCN_H 1
542f9784 7607_ACEOF
7608
7609fi
7610
7611done
7612
7613
7614
e6408286 7615
7616
6d873a38 7617# Set options
7618
7619
7620
7621 enable_dlopen=no
7622
7623
7624 enable_win32_dll=no
7625
7626
cd9a469c 7627 # Check whether --enable-shared was given.
7628if test "${enable_shared+set}" = set; then :
7629 enableval=$enable_shared; p=${PACKAGE-default}
6d873a38 7630 case $enableval in
7631 yes) enable_shared=yes ;;
7632 no) enable_shared=no ;;
7633 *)
7634 enable_shared=no
7635 # Look at the argument we got. We use all the common list separators.
7636 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7637 for pkg in $enableval; do
7638 IFS="$lt_save_ifs"
7639 if test "X$pkg" = "X$p"; then
7640 enable_shared=yes
7641 fi
7642 done
7643 IFS="$lt_save_ifs"
7644 ;;
7645 esac
7646else
7647 enable_shared=yes
cd9a469c 7648fi
7649
6d873a38 7650
7651
7652
7653
7654
7655
7656
7657
cd9a469c 7658 # Check whether --enable-static was given.
7659if test "${enable_static+set}" = set; then :
7660 enableval=$enable_static; p=${PACKAGE-default}
6d873a38 7661 case $enableval in
7662 yes) enable_static=yes ;;
7663 no) enable_static=no ;;
7664 *)
7665 enable_static=no
7666 # Look at the argument we got. We use all the common list separators.
7667 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7668 for pkg in $enableval; do
7669 IFS="$lt_save_ifs"
7670 if test "X$pkg" = "X$p"; then
7671 enable_static=yes
7672 fi
7673 done
7674 IFS="$lt_save_ifs"
7675 ;;
7676 esac
7677else
7678 enable_static=yes
cd9a469c 7679fi
7680
6d873a38 7681
7682
7683
7684
7685
7686
7687
7688
7689
cd9a469c 7690# Check whether --with-pic was given.
7691if test "${with_pic+set}" = set; then :
7692 withval=$with_pic; pic_mode="$withval"
6d873a38 7693else
7694 pic_mode=default
cd9a469c 7695fi
7696
6d873a38 7697
7698test -z "$pic_mode" && pic_mode=default
7699
7700
7701
7702
7703
7704
7705
cd9a469c 7706 # Check whether --enable-fast-install was given.
7707if test "${enable_fast_install+set}" = set; then :
7708 enableval=$enable_fast_install; p=${PACKAGE-default}
6d873a38 7709 case $enableval in
7710 yes) enable_fast_install=yes ;;
7711 no) enable_fast_install=no ;;
7712 *)
7713 enable_fast_install=no
7714 # Look at the argument we got. We use all the common list separators.
7715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7716 for pkg in $enableval; do
7717 IFS="$lt_save_ifs"
7718 if test "X$pkg" = "X$p"; then
7719 enable_fast_install=yes
7720 fi
7721 done
7722 IFS="$lt_save_ifs"
7723 ;;
7724 esac
7725else
7726 enable_fast_install=yes
cd9a469c 7727fi
7728
6d873a38 7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
542f9784 7739# This can be used to rebuild libtool when needed
7740LIBTOOL_DEPS="$ltmain"
7741
7742# Always use our own libtool.
7743LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
e6408286 7767
542f9784 7768
7769
7770test -z "$LN_S" && LN_S="ln -s"
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785if test -n "${ZSH_VERSION+set}" ; then
7786 setopt NO_GLOB_SUBST
7787fi
7788
cd9a469c 7789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7790$as_echo_n "checking for objdir... " >&6; }
7791if test "${lt_cv_objdir+set}" = set; then :
7792 $as_echo_n "(cached) " >&6
542f9784 7793else
7794 rm -f .libs 2>/dev/null
7795mkdir .libs 2>/dev/null
7796if test -d .libs; then
7797 lt_cv_objdir=.libs
7798else
7799 # MS-DOS does not allow filenames that begin with a dot.
7800 lt_cv_objdir=_libs
7801fi
7802rmdir .libs 2>/dev/null
7803fi
cd9a469c 7804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7805$as_echo "$lt_cv_objdir" >&6; }
542f9784 7806objdir=$lt_cv_objdir
7807
7808
7809
7810
7811
7812cat >>confdefs.h <<_ACEOF
7813#define LT_OBJDIR "$lt_cv_objdir/"
7814_ACEOF
7815
7816
7817
7818
542f9784 7819case $host_os in
7820aix3*)
7821 # AIX sometimes has problems with the GCC collect2 program. For some
7822 # reason, if we set the COLLECT_NAMES environment variable, the problems
7823 # vanish in a puff of smoke.
7824 if test "X${COLLECT_NAMES+set}" != Xset; then
7825 COLLECT_NAMES=
7826 export COLLECT_NAMES
7827 fi
7828 ;;
7829esac
7830
542f9784 7831# Global variables:
7832ofile=libtool
7833can_build_shared=yes
7834
7835# All known linkers require a `.a' archive for static linking (except MSVC,
7836# which needs '.lib').
7837libext=a
7838
7839with_gnu_ld="$lt_cv_prog_gnu_ld"
7840
7841old_CC="$CC"
7842old_CFLAGS="$CFLAGS"
7843
7844# Set sane defaults for various variables
7845test -z "$CC" && CC=cc
7846test -z "$LTCC" && LTCC=$CC
7847test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7848test -z "$LD" && LD=ld
7849test -z "$ac_objext" && ac_objext=o
7850
7851for cc_temp in $compiler""; do
7852 case $cc_temp in
7853 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7854 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7855 \-*) ;;
7856 *) break;;
7857 esac
7858done
e6408286 7859cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
542f9784 7860
7861
7862# Only perform the check for file, if the check method requires it
7863test -z "$MAGIC_CMD" && MAGIC_CMD=file
7864case $deplibs_check_method in
7865file_magic*)
7866 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cd9a469c 7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7868$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7869if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7870 $as_echo_n "(cached) " >&6
542f9784 7871else
7872 case $MAGIC_CMD in
7873[\\/*] | ?:[\\/]*)
7874 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7875 ;;
7876*)
7877 lt_save_MAGIC_CMD="$MAGIC_CMD"
7878 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7879 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7880 for ac_dir in $ac_dummy; do
7881 IFS="$lt_save_ifs"
7882 test -z "$ac_dir" && ac_dir=.
7883 if test -f $ac_dir/${ac_tool_prefix}file; then
7884 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7885 if test -n "$file_magic_test_file"; then
7886 case $deplibs_check_method in
7887 "file_magic "*)
7888 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7889 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7890 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7891 $EGREP "$file_magic_regex" > /dev/null; then
7892 :
7893 else
7894 cat <<_LT_EOF 1>&2
7895
7896*** Warning: the command libtool uses to detect shared libraries,
7897*** $file_magic_cmd, produces output that libtool cannot recognize.
7898*** The result is that libtool may fail to recognize shared libraries
7899*** as such. This will affect the creation of libtool libraries that
7900*** depend on shared libraries, but programs linked with such libtool
7901*** libraries will work regardless of this problem. Nevertheless, you
7902*** may want to report the problem to your system manager and/or to
7903*** bug-libtool@gnu.org
7904
7905_LT_EOF
7906 fi ;;
7907 esac
7908 fi
7909 break
7910 fi
7911 done
7912 IFS="$lt_save_ifs"
7913 MAGIC_CMD="$lt_save_MAGIC_CMD"
7914 ;;
7915esac
7916fi
7917
7918MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7919if test -n "$MAGIC_CMD"; then
cd9a469c 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7921$as_echo "$MAGIC_CMD" >&6; }
542f9784 7922else
cd9a469c 7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924$as_echo "no" >&6; }
542f9784 7925fi
7926
7927
7928
7929
7930
7931if test -z "$lt_cv_path_MAGIC_CMD"; then
7932 if test -n "$ac_tool_prefix"; then
cd9a469c 7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7934$as_echo_n "checking for file... " >&6; }
7935if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7936 $as_echo_n "(cached) " >&6
542f9784 7937else
7938 case $MAGIC_CMD in
7939[\\/*] | ?:[\\/]*)
7940 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7941 ;;
7942*)
7943 lt_save_MAGIC_CMD="$MAGIC_CMD"
7944 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7945 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7946 for ac_dir in $ac_dummy; do
7947 IFS="$lt_save_ifs"
7948 test -z "$ac_dir" && ac_dir=.
7949 if test -f $ac_dir/file; then
7950 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7951 if test -n "$file_magic_test_file"; then
7952 case $deplibs_check_method in
7953 "file_magic "*)
7954 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7955 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7956 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7957 $EGREP "$file_magic_regex" > /dev/null; then
7958 :
7959 else
7960 cat <<_LT_EOF 1>&2
7961
7962*** Warning: the command libtool uses to detect shared libraries,
7963*** $file_magic_cmd, produces output that libtool cannot recognize.
7964*** The result is that libtool may fail to recognize shared libraries
7965*** as such. This will affect the creation of libtool libraries that
7966*** depend on shared libraries, but programs linked with such libtool
7967*** libraries will work regardless of this problem. Nevertheless, you
7968*** may want to report the problem to your system manager and/or to
7969*** bug-libtool@gnu.org
7970
7971_LT_EOF
7972 fi ;;
7973 esac
7974 fi
7975 break
7976 fi
7977 done
7978 IFS="$lt_save_ifs"
7979 MAGIC_CMD="$lt_save_MAGIC_CMD"
7980 ;;
7981esac
7982fi
7983
7984MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7985if test -n "$MAGIC_CMD"; then
cd9a469c 7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7987$as_echo "$MAGIC_CMD" >&6; }
542f9784 7988else
cd9a469c 7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990$as_echo "no" >&6; }
542f9784 7991fi
7992
7993
7994 else
7995 MAGIC_CMD=:
7996 fi
7997fi
7998
7999 fi
8000 ;;
8001esac
8002
8003# Use C for the default configuration in the libtool script
8004
8005lt_save_CC="$CC"
8006ac_ext=c
8007ac_cpp='$CPP $CPPFLAGS'
8008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8010ac_compiler_gnu=$ac_cv_c_compiler_gnu
8011
8012
8013# Source file extension for C test sources.
8014ac_ext=c
8015
8016# Object file extension for compiled C test sources.
8017objext=o
8018objext=$objext
8019
8020# Code to be used in simple compile tests
8021lt_simple_compile_test_code="int some_variable = 0;"
8022
8023# Code to be used in simple link tests
8024lt_simple_link_test_code='int main(){return(0);}'
8025
8026
8027
8028
8029
8030
8031
8032# If no C compiler was specified, use CC.
8033LTCC=${LTCC-"$CC"}
8034
8035# If no C compiler flags were specified, use CFLAGS.
8036LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8037
8038# Allow CC to be a program name with arguments.
8039compiler=$CC
8040
8041# Save the default compiler, since it gets overwritten when the other
8042# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8043compiler_DEFAULT=$CC
8044
8045# save warnings/boilerplate of simple test code
8046ac_outfile=conftest.$ac_objext
8047echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8048eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8049_lt_compiler_boilerplate=`cat conftest.err`
8050$RM conftest*
8051
8052ac_outfile=conftest.$ac_objext
8053echo "$lt_simple_link_test_code" >conftest.$ac_ext
8054eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8055_lt_linker_boilerplate=`cat conftest.err`
6d873a38 8056$RM -r conftest*
542f9784 8057
8058
8059## CAVEAT EMPTOR:
8060## There is no encapsulation within the following macros, do not change
8061## the running order or otherwise move them around unless you know exactly
8062## what you are doing...
8063if test -n "$compiler"; then
8064
8065lt_prog_compiler_no_builtin_flag=
8066
8067if test "$GCC" = yes; then
e6408286 8068 case $cc_basename in
8069 nvcc*)
8070 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8071 *)
8072 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8073 esac
542f9784 8074
cd9a469c 8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8076$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8077if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8078 $as_echo_n "(cached) " >&6
542f9784 8079else
8080 lt_cv_prog_compiler_rtti_exceptions=no
8081 ac_outfile=conftest.$ac_objext
8082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8083 lt_compiler_flag="-fno-rtti -fno-exceptions"
8084 # Insert the option either (1) after the last *FLAGS variable, or
8085 # (2) before a word containing "conftest.", or (3) at the end.
8086 # Note that $ac_compile itself does not contain backslashes and begins
8087 # with a dollar sign (not a hyphen), so the echo should work correctly.
8088 # The option is referenced via a variable to avoid confusing sed.
8089 lt_compile=`echo "$ac_compile" | $SED \
8090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8092 -e 's:$: $lt_compiler_flag:'`
e6408286 8093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 8094 (eval "$lt_compile" 2>conftest.err)
8095 ac_status=$?
8096 cat conftest.err >&5
e6408286 8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 8098 if (exit $ac_status) && test -s "$ac_outfile"; then
8099 # The compiler can only warn and ignore the option if not recognized
8100 # So say no if there are warnings other than the usual output.
e6408286 8101 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 8102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8103 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8104 lt_cv_prog_compiler_rtti_exceptions=yes
8105 fi
8106 fi
8107 $RM conftest*
8108
8109fi
cd9a469c 8110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8111$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
542f9784 8112
8113if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8114 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8115else
8116 :
8117fi
8118
8119fi
8120
8121
8122
8123
8124
8125
8126 lt_prog_compiler_wl=
8127lt_prog_compiler_pic=
8128lt_prog_compiler_static=
8129
cd9a469c 8130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8131$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
542f9784 8132
8133 if test "$GCC" = yes; then
8134 lt_prog_compiler_wl='-Wl,'
8135 lt_prog_compiler_static='-static'
8136
8137 case $host_os in
8138 aix*)
8139 # All AIX code is PIC.
8140 if test "$host_cpu" = ia64; then
8141 # AIX 5 now supports IA64 processor
8142 lt_prog_compiler_static='-Bstatic'
8143 fi
33cbbd54 8144 lt_prog_compiler_pic='-fPIC'
542f9784 8145 ;;
8146
8147 amigaos*)
6d873a38 8148 case $host_cpu in
8149 powerpc)
8150 # see comment about AmigaOS4 .so support
8151 lt_prog_compiler_pic='-fPIC'
8152 ;;
8153 m68k)
8154 # FIXME: we need at least 68020 code to build shared libraries, but
8155 # adding the `-m68020' flag to GCC prevents building anything better,
8156 # like `-m68040'.
8157 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8158 ;;
8159 esac
542f9784 8160 ;;
8161
8162 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8163 # PIC is the default for these OSes.
8164 ;;
8165
6d873a38 8166 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 8167 # This hack is so that the source file can tell whether it is being
8168 # built for inclusion in a dll (and should export symbols for example).
8169 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8170 # (--disable-auto-import) libraries
8171 lt_prog_compiler_pic='-DDLL_EXPORT'
8172 ;;
8173
8174 darwin* | rhapsody*)
8175 # PIC is the default on this platform
8176 # Common symbols not allowed in MH_DYLIB files
8177 lt_prog_compiler_pic='-fno-common'
8178 ;;
8179
e6408286 8180 haiku*)
8181 # PIC is the default for Haiku.
8182 # The "-static" flag exists, but is broken.
8183 lt_prog_compiler_static=
8184 ;;
8185
542f9784 8186 hpux*)
6d873a38 8187 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8188 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8189 # sets the default TLS model and affects inlining.
542f9784 8190 case $host_cpu in
6d873a38 8191 hppa*64*)
542f9784 8192 # +Z the default
8193 ;;
8194 *)
8195 lt_prog_compiler_pic='-fPIC'
8196 ;;
8197 esac
8198 ;;
8199
8200 interix[3-9]*)
8201 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8202 # Instead, we relocate shared libraries at runtime.
8203 ;;
8204
8205 msdosdjgpp*)
8206 # Just because we use GCC doesn't mean we suddenly get shared libraries
8207 # on systems that don't support them.
8208 lt_prog_compiler_can_build_shared=no
8209 enable_shared=no
8210 ;;
8211
8212 *nto* | *qnx*)
8213 # QNX uses GNU C++, but need to define -shared option too, otherwise
8214 # it will coredump.
8215 lt_prog_compiler_pic='-fPIC -shared'
8216 ;;
8217
8218 sysv4*MP*)
8219 if test -d /usr/nec; then
8220 lt_prog_compiler_pic=-Kconform_pic
8221 fi
8222 ;;
8223
8224 *)
8225 lt_prog_compiler_pic='-fPIC'
8226 ;;
8227 esac
e6408286 8228
8229 case $cc_basename in
8230 nvcc*) # Cuda Compiler Driver 2.2
8231 lt_prog_compiler_wl='-Xlinker '
8232 lt_prog_compiler_pic='-Xcompiler -fPIC'
8233 ;;
8234 esac
542f9784 8235 else
8236 # PORTME Check for flag to pass linker flags through the system compiler.
8237 case $host_os in
8238 aix*)
8239 lt_prog_compiler_wl='-Wl,'
8240 if test "$host_cpu" = ia64; then
8241 # AIX 5 now supports IA64 processor
8242 lt_prog_compiler_static='-Bstatic'
8243 else
8244 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8245 fi
8246 ;;
542f9784 8247
6d873a38 8248 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 8249 # This hack is so that the source file can tell whether it is being
8250 # built for inclusion in a dll (and should export symbols for example).
8251 lt_prog_compiler_pic='-DDLL_EXPORT'
8252 ;;
8253
8254 hpux9* | hpux10* | hpux11*)
8255 lt_prog_compiler_wl='-Wl,'
8256 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8257 # not for PA HP-UX.
8258 case $host_cpu in
8259 hppa*64*|ia64*)
8260 # +Z the default
8261 ;;
8262 *)
8263 lt_prog_compiler_pic='+Z'
8264 ;;
8265 esac
8266 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8267 lt_prog_compiler_static='${wl}-a ${wl}archive'
8268 ;;
8269
8270 irix5* | irix6* | nonstopux*)
8271 lt_prog_compiler_wl='-Wl,'
8272 # PIC (with -KPIC) is the default.
8273 lt_prog_compiler_static='-non_shared'
8274 ;;
8275
9af964d4 8276 linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 8277 case $cc_basename in
6d873a38 8278 # old Intel for x86_64 which still supported -KPIC.
8279 ecc*)
542f9784 8280 lt_prog_compiler_wl='-Wl,'
8281 lt_prog_compiler_pic='-KPIC'
8282 lt_prog_compiler_static='-static'
8283 ;;
6d873a38 8284 # icc used to be incompatible with GCC.
8285 # ICC 10 doesn't accept -KPIC any more.
8286 icc* | ifort*)
8287 lt_prog_compiler_wl='-Wl,'
8288 lt_prog_compiler_pic='-fPIC'
8289 lt_prog_compiler_static='-static'
8290 ;;
8291 # Lahey Fortran 8.1.
8292 lf95*)
8293 lt_prog_compiler_wl='-Wl,'
8294 lt_prog_compiler_pic='--shared'
8295 lt_prog_compiler_static='--static'
8296 ;;
e6408286 8297 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
542f9784 8298 # Portland Group compilers (*not* the Pentium gcc compiler,
8299 # which looks to be a dead project)
8300 lt_prog_compiler_wl='-Wl,'
8301 lt_prog_compiler_pic='-fpic'
8302 lt_prog_compiler_static='-Bstatic'
8303 ;;
8304 ccc*)
8305 lt_prog_compiler_wl='-Wl,'
8306 # All Alpha code is PIC.
8307 lt_prog_compiler_static='-non_shared'
8308 ;;
e6408286 8309 xl* | bgxl* | bgf* | mpixl*)
8310 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
6d873a38 8311 lt_prog_compiler_wl='-Wl,'
8312 lt_prog_compiler_pic='-qpic'
8313 lt_prog_compiler_static='-qstaticlink'
8314 ;;
542f9784 8315 *)
8316 case `$CC -V 2>&1 | sed 5q` in
e6408286 8317 *Sun\ F* | *Sun*Fortran*)
8318 # Sun Fortran 8.3 passes all unrecognized flags to the linker
542f9784 8319 lt_prog_compiler_pic='-KPIC'
8320 lt_prog_compiler_static='-Bstatic'
e6408286 8321 lt_prog_compiler_wl=''
542f9784 8322 ;;
e6408286 8323 *Sun\ C*)
8324 # Sun C 5.9
542f9784 8325 lt_prog_compiler_pic='-KPIC'
8326 lt_prog_compiler_static='-Bstatic'
e6408286 8327 lt_prog_compiler_wl='-Wl,'
542f9784 8328 ;;
8329 esac
8330 ;;
8331 esac
8332 ;;
8333
8334 newsos6)
8335 lt_prog_compiler_pic='-KPIC'
8336 lt_prog_compiler_static='-Bstatic'
8337 ;;
8338
8339 *nto* | *qnx*)
8340 # QNX uses GNU C++, but need to define -shared option too, otherwise
8341 # it will coredump.
8342 lt_prog_compiler_pic='-fPIC -shared'
8343 ;;
8344
8345 osf3* | osf4* | osf5*)
8346 lt_prog_compiler_wl='-Wl,'
8347 # All OSF/1 code is PIC.
8348 lt_prog_compiler_static='-non_shared'
8349 ;;
8350
8351 rdos*)
8352 lt_prog_compiler_static='-non_shared'
8353 ;;
8354
8355 solaris*)
8356 lt_prog_compiler_pic='-KPIC'
8357 lt_prog_compiler_static='-Bstatic'
8358 case $cc_basename in
8359 f77* | f90* | f95*)
8360 lt_prog_compiler_wl='-Qoption ld ';;
8361 *)
8362 lt_prog_compiler_wl='-Wl,';;
8363 esac
8364 ;;
8365
8366 sunos4*)
8367 lt_prog_compiler_wl='-Qoption ld '
8368 lt_prog_compiler_pic='-PIC'
8369 lt_prog_compiler_static='-Bstatic'
8370 ;;
8371
8372 sysv4 | sysv4.2uw2* | sysv4.3*)
8373 lt_prog_compiler_wl='-Wl,'
8374 lt_prog_compiler_pic='-KPIC'
8375 lt_prog_compiler_static='-Bstatic'
8376 ;;
8377
8378 sysv4*MP*)
8379 if test -d /usr/nec ;then
8380 lt_prog_compiler_pic='-Kconform_pic'
8381 lt_prog_compiler_static='-Bstatic'
8382 fi
8383 ;;
8384
8385 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8386 lt_prog_compiler_wl='-Wl,'
8387 lt_prog_compiler_pic='-KPIC'
8388 lt_prog_compiler_static='-Bstatic'
8389 ;;
8390
8391 unicos*)
8392 lt_prog_compiler_wl='-Wl,'
8393 lt_prog_compiler_can_build_shared=no
8394 ;;
8395
8396 uts4*)
8397 lt_prog_compiler_pic='-pic'
8398 lt_prog_compiler_static='-Bstatic'
8399 ;;
8400
8401 *)
8402 lt_prog_compiler_can_build_shared=no
8403 ;;
8404 esac
8405 fi
8406
8407case $host_os in
8408 # For platforms which do not support PIC, -DPIC is meaningless:
8409 *djgpp*)
8410 lt_prog_compiler_pic=
8411 ;;
8412 *)
8413 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8414 ;;
8415esac
cd9a469c 8416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8417$as_echo "$lt_prog_compiler_pic" >&6; }
542f9784 8418
8419
8420
8421
8422
8423
8424#
8425# Check to make sure the PIC flag actually works.
8426#
8427if test -n "$lt_prog_compiler_pic"; then
cd9a469c 8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8429$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8430if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
542f9784 8432else
6d873a38 8433 lt_cv_prog_compiler_pic_works=no
542f9784 8434 ac_outfile=conftest.$ac_objext
8435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8436 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8437 # Insert the option either (1) after the last *FLAGS variable, or
8438 # (2) before a word containing "conftest.", or (3) at the end.
8439 # Note that $ac_compile itself does not contain backslashes and begins
8440 # with a dollar sign (not a hyphen), so the echo should work correctly.
8441 # The option is referenced via a variable to avoid confusing sed.
8442 lt_compile=`echo "$ac_compile" | $SED \
8443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8445 -e 's:$: $lt_compiler_flag:'`
e6408286 8446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 8447 (eval "$lt_compile" 2>conftest.err)
8448 ac_status=$?
8449 cat conftest.err >&5
e6408286 8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 8451 if (exit $ac_status) && test -s "$ac_outfile"; then
8452 # The compiler can only warn and ignore the option if not recognized
8453 # So say no if there are warnings other than the usual output.
e6408286 8454 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 8455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8456 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6d873a38 8457 lt_cv_prog_compiler_pic_works=yes
542f9784 8458 fi
8459 fi
8460 $RM conftest*
8461
8462fi
cd9a469c 8463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8464$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
542f9784 8465
6d873a38 8466if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
542f9784 8467 case $lt_prog_compiler_pic in
8468 "" | " "*) ;;
8469 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8470 esac
8471else
8472 lt_prog_compiler_pic=
8473 lt_prog_compiler_can_build_shared=no
8474fi
8475
8476fi
8477
8478
8479
8480
8481
8482
8483#
8484# Check to make sure the static flag actually works.
8485#
8486wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cd9a469c 8487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8488$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8489if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8490 $as_echo_n "(cached) " >&6
542f9784 8491else
6d873a38 8492 lt_cv_prog_compiler_static_works=no
542f9784 8493 save_LDFLAGS="$LDFLAGS"
8494 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8495 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8496 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8497 # The linker can only warn and ignore the option if not recognized
8498 # So say no if there are warnings
8499 if test -s conftest.err; then
8500 # Append any errors to the config.log.
8501 cat conftest.err 1>&5
e6408286 8502 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
542f9784 8503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8504 if diff conftest.exp conftest.er2 >/dev/null; then
6d873a38 8505 lt_cv_prog_compiler_static_works=yes
542f9784 8506 fi
8507 else
6d873a38 8508 lt_cv_prog_compiler_static_works=yes
542f9784 8509 fi
8510 fi
6d873a38 8511 $RM -r conftest*
542f9784 8512 LDFLAGS="$save_LDFLAGS"
8513
8514fi
cd9a469c 8515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8516$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
542f9784 8517
6d873a38 8518if test x"$lt_cv_prog_compiler_static_works" = xyes; then
542f9784 8519 :
8520else
8521 lt_prog_compiler_static=
8522fi
8523
8524
8525
8526
8527
8528
8529
cd9a469c 8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8531$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8532if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8533 $as_echo_n "(cached) " >&6
542f9784 8534else
8535 lt_cv_prog_compiler_c_o=no
8536 $RM -r conftest 2>/dev/null
8537 mkdir conftest
8538 cd conftest
8539 mkdir out
8540 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8541
8542 lt_compiler_flag="-o out/conftest2.$ac_objext"
8543 # Insert the option either (1) after the last *FLAGS variable, or
8544 # (2) before a word containing "conftest.", or (3) at the end.
8545 # Note that $ac_compile itself does not contain backslashes and begins
8546 # with a dollar sign (not a hyphen), so the echo should work correctly.
8547 lt_compile=`echo "$ac_compile" | $SED \
8548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8550 -e 's:$: $lt_compiler_flag:'`
e6408286 8551 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 8552 (eval "$lt_compile" 2>out/conftest.err)
8553 ac_status=$?
8554 cat out/conftest.err >&5
e6408286 8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 8556 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8557 then
8558 # The compiler can only warn and ignore the option if not recognized
8559 # So say no if there are warnings
e6408286 8560 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 8561 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8562 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8563 lt_cv_prog_compiler_c_o=yes
8564 fi
8565 fi
8566 chmod u+w . 2>&5
8567 $RM conftest*
8568 # SGI C++ compiler will create directory out/ii_files/ for
8569 # template instantiation
8570 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8571 $RM out/* && rmdir out
8572 cd ..
8573 $RM -r conftest
8574 $RM conftest*
8575
8576fi
cd9a469c 8577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8578$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
542f9784 8579
8580
8581
8582
8583
8584
cd9a469c 8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8586$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8587if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8588 $as_echo_n "(cached) " >&6
542f9784 8589else
8590 lt_cv_prog_compiler_c_o=no
8591 $RM -r conftest 2>/dev/null
8592 mkdir conftest
8593 cd conftest
8594 mkdir out
8595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8596
8597 lt_compiler_flag="-o out/conftest2.$ac_objext"
8598 # Insert the option either (1) after the last *FLAGS variable, or
8599 # (2) before a word containing "conftest.", or (3) at the end.
8600 # Note that $ac_compile itself does not contain backslashes and begins
8601 # with a dollar sign (not a hyphen), so the echo should work correctly.
8602 lt_compile=`echo "$ac_compile" | $SED \
8603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8605 -e 's:$: $lt_compiler_flag:'`
e6408286 8606 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 8607 (eval "$lt_compile" 2>out/conftest.err)
8608 ac_status=$?
8609 cat out/conftest.err >&5
e6408286 8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 8611 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8612 then
8613 # The compiler can only warn and ignore the option if not recognized
8614 # So say no if there are warnings
e6408286 8615 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 8616 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8617 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8618 lt_cv_prog_compiler_c_o=yes
8619 fi
8620 fi
8621 chmod u+w . 2>&5
8622 $RM conftest*
8623 # SGI C++ compiler will create directory out/ii_files/ for
8624 # template instantiation
8625 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8626 $RM out/* && rmdir out
8627 cd ..
8628 $RM -r conftest
8629 $RM conftest*
8630
8631fi
cd9a469c 8632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8633$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
542f9784 8634
8635
8636
8637
8638hard_links="nottested"
8639if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8640 # do not overwrite the value of need_locks provided by the user
cd9a469c 8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8642$as_echo_n "checking if we can lock with hard links... " >&6; }
542f9784 8643 hard_links=yes
8644 $RM conftest*
8645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8646 touch conftest.a
8647 ln conftest.a conftest.b 2>&5 || hard_links=no
8648 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cd9a469c 8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8650$as_echo "$hard_links" >&6; }
542f9784 8651 if test "$hard_links" = no; then
cd9a469c 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8653$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
542f9784 8654 need_locks=warn
8655 fi
8656else
8657 need_locks=no
8658fi
8659
8660
8661
8662
8663
8664
cd9a469c 8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8666$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
542f9784 8667
8668 runpath_var=
8669 allow_undefined_flag=
8670 always_export_symbols=no
8671 archive_cmds=
8672 archive_expsym_cmds=
8673 compiler_needs_object=no
8674 enable_shared_with_static_runtimes=no
8675 export_dynamic_flag_spec=
8676 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8677 hardcode_automatic=no
8678 hardcode_direct=no
8679 hardcode_direct_absolute=no
8680 hardcode_libdir_flag_spec=
8681 hardcode_libdir_flag_spec_ld=
8682 hardcode_libdir_separator=
8683 hardcode_minus_L=no
8684 hardcode_shlibpath_var=unsupported
8685 inherit_rpath=no
8686 link_all_deplibs=unknown
8687 module_cmds=
8688 module_expsym_cmds=
8689 old_archive_from_new_cmds=
8690 old_archive_from_expsyms_cmds=
8691 thread_safe_flag_spec=
8692 whole_archive_flag_spec=
8693 # include_expsyms should be a list of space-separated symbols to be *always*
8694 # included in the symbol list
8695 include_expsyms=
8696 # exclude_expsyms can be an extended regexp of symbols to exclude
8697 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8698 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8699 # as well as any symbol that contains `d'.
6d873a38 8700 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
542f9784 8701 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8702 # platforms (ab)use it in PIC code, but their linkers get confused if
8703 # the symbol is explicitly referenced. Since portable code cannot
8704 # rely on this symbol name, it's probably fine to never include it in
8705 # preloaded symbol tables.
6d873a38 8706 # Exclude shared library initialization/finalization symbols.
542f9784 8707 extract_expsyms_cmds=
8708
8709 case $host_os in
6d873a38 8710 cygwin* | mingw* | pw32* | cegcc*)
542f9784 8711 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8712 # When not using gcc, we currently assume that we are using
8713 # Microsoft Visual C++.
8714 if test "$GCC" != yes; then
8715 with_gnu_ld=no
8716 fi
8717 ;;
8718 interix*)
8719 # we just hope/assume this is gcc and not c89 (= MSVC++)
8720 with_gnu_ld=yes
8721 ;;
8722 openbsd*)
8723 with_gnu_ld=no
8724 ;;
8725 esac
8726
8727 ld_shlibs=yes
e6408286 8728
8729 # On some targets, GNU ld is compatible enough with the native linker
8730 # that we're better off using the native interface for both.
8731 lt_use_gnu_ld_interface=no
542f9784 8732 if test "$with_gnu_ld" = yes; then
e6408286 8733 case $host_os in
8734 aix*)
8735 # The AIX port of GNU ld has always aspired to compatibility
8736 # with the native linker. However, as the warning in the GNU ld
8737 # block says, versions before 2.19.5* couldn't really create working
8738 # shared libraries, regardless of the interface used.
8739 case `$LD -v 2>&1` in
8740 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8741 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8742 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8743 *)
8744 lt_use_gnu_ld_interface=yes
8745 ;;
8746 esac
8747 ;;
8748 *)
8749 lt_use_gnu_ld_interface=yes
8750 ;;
8751 esac
8752 fi
8753
8754 if test "$lt_use_gnu_ld_interface" = yes; then
542f9784 8755 # If archive_cmds runs LD, not CC, wlarc should be empty
8756 wlarc='${wl}'
8757
8758 # Set some defaults for GNU ld with shared library support. These
8759 # are reset later if shared libraries are not supported. Putting them
8760 # here allows them to be overridden if necessary.
8761 runpath_var=LD_RUN_PATH
8762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8763 export_dynamic_flag_spec='${wl}--export-dynamic'
8764 # ancient GNU ld didn't support --whole-archive et. al.
8765 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8766 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8767 else
8768 whole_archive_flag_spec=
8769 fi
8770 supports_anon_versioning=no
8771 case `$LD -v 2>&1` in
e6408286 8772 *GNU\ gold*) supports_anon_versioning=yes ;;
542f9784 8773 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8774 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8775 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8776 *\ 2.11.*) ;; # other 2.11 versions
8777 *) supports_anon_versioning=yes ;;
8778 esac
8779
8780 # See if GNU ld supports shared libraries.
8781 case $host_os in
c8db569e 8782 aix[3-9]*)
542f9784 8783 # On AIX/PPC, the GNU linker is very broken
8784 if test "$host_cpu" != ia64; then
8785 ld_shlibs=no
8786 cat <<_LT_EOF 1>&2
8787
e6408286 8788*** Warning: the GNU linker, at least up to release 2.19, is reported
542f9784 8789*** to be unable to reliably create shared libraries on AIX.
8790*** Therefore, libtool is disabling shared libraries support. If you
e6408286 8791*** really care for shared libraries, you may want to install binutils
8792*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8793*** You will then need to restart the configuration process.
542f9784 8794
8795_LT_EOF
8796 fi
8797 ;;
8798
8799 amigaos*)
6d873a38 8800 case $host_cpu in
8801 powerpc)
8802 # see comment about AmigaOS4 .so support
8803 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8804 archive_expsym_cmds=''
8805 ;;
8806 m68k)
8807 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)'
8808 hardcode_libdir_flag_spec='-L$libdir'
8809 hardcode_minus_L=yes
8810 ;;
8811 esac
542f9784 8812 ;;
8813
8814 beos*)
8815 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8816 allow_undefined_flag=unsupported
8817 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8818 # support --undefined. This deserves some investigation. FIXME
8819 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8820 else
8821 ld_shlibs=no
8822 fi
8823 ;;
8824
6d873a38 8825 cygwin* | mingw* | pw32* | cegcc*)
542f9784 8826 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8827 # as there is no search path for DLLs.
8828 hardcode_libdir_flag_spec='-L$libdir'
e6408286 8829 export_dynamic_flag_spec='${wl}--export-all-symbols'
542f9784 8830 allow_undefined_flag=unsupported
8831 always_export_symbols=no
8832 enable_shared_with_static_runtimes=yes
8833 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8834
8835 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8837 # If the export-symbols file already is a .def file (1st line
8838 # is EXPORTS), use it as is; otherwise, prepend...
8839 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8840 cp $export_symbols $output_objdir/$soname.def;
8841 else
8842 echo EXPORTS > $output_objdir/$soname.def;
8843 cat $export_symbols >> $output_objdir/$soname.def;
8844 fi~
8845 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8846 else
8847 ld_shlibs=no
8848 fi
8849 ;;
8850
e6408286 8851 haiku*)
8852 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8853 link_all_deplibs=yes
8854 ;;
8855
542f9784 8856 interix[3-9]*)
8857 hardcode_direct=no
8858 hardcode_shlibpath_var=no
8859 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8860 export_dynamic_flag_spec='${wl}-E'
8861 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8862 # Instead, shared libraries are loaded at an image base (0x10000000 by
8863 # default) and relocated if they conflict, which is a slow very memory
8864 # consuming and fragmenting process. To avoid this, we pick a random,
8865 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8866 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8867 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8868 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'
8869 ;;
8870
9af964d4 8871 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 8872 tmp_diet=no
8873 if test "$host_os" = linux-dietlibc; then
8874 case $cc_basename in
8875 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8876 esac
8877 fi
8878 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8879 && test "$tmp_diet" = no
8880 then
8881 tmp_addflag=
6d873a38 8882 tmp_sharedflag='-shared'
542f9784 8883 case $cc_basename,$host_cpu in
8884 pgcc*) # Portland Group C compiler
e6408286 8885 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 8886 tmp_addflag=' $pic_flag'
8887 ;;
e6408286 8888 pgf77* | pgf90* | pgf95* | pgfortran*)
8889 # Portland Group f77 and f90 compilers
8890 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 8891 tmp_addflag=' $pic_flag -Mnomain' ;;
8892 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8893 tmp_addflag=' -i_dynamic' ;;
8894 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8895 tmp_addflag=' -i_dynamic -nofor_main' ;;
8896 ifc* | ifort*) # Intel Fortran compiler
8897 tmp_addflag=' -nofor_main' ;;
6d873a38 8898 lf95*) # Lahey Fortran 8.1
8899 whole_archive_flag_spec=
8900 tmp_sharedflag='--shared' ;;
e6408286 8901 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
6d873a38 8902 tmp_sharedflag='-qmkshrobj'
8903 tmp_addflag= ;;
e6408286 8904 nvcc*) # Cuda Compiler Driver 2.2
8905 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'
8906 compiler_needs_object=yes
8907 ;;
542f9784 8908 esac
8909 case `$CC -V 2>&1 | sed 5q` in
8910 *Sun\ C*) # Sun C 5.9
e6408286 8911 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 8912 compiler_needs_object=yes
8913 tmp_sharedflag='-G' ;;
8914 *Sun\ F*) # Sun Fortran 8.3
8915 tmp_sharedflag='-G' ;;
542f9784 8916 esac
8917 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8918
8919 if test "x$supports_anon_versioning" = xyes; then
8920 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8921 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8922 echo "local: *; };" >> $output_objdir/$libname.ver~
8923 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8924 fi
6d873a38 8925
8926 case $cc_basename in
e6408286 8927 xlf* | bgf* | bgxlf* | mpixlf*)
6d873a38 8928 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8929 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8930 hardcode_libdir_flag_spec=
8931 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8932 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8933 if test "x$supports_anon_versioning" = xyes; then
8934 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8935 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8936 echo "local: *; };" >> $output_objdir/$libname.ver~
8937 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8938 fi
8939 ;;
8940 esac
542f9784 8941 else
8942 ld_shlibs=no
8943 fi
8944 ;;
8945
8946 netbsd*)
8947 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8948 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8949 wlarc=
8950 else
8951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8952 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8953 fi
8954 ;;
8955
8956 solaris*)
8957 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8958 ld_shlibs=no
8959 cat <<_LT_EOF 1>&2
8960
8961*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8962*** create shared libraries on Solaris systems. Therefore, libtool
8963*** is disabling shared libraries support. We urge you to upgrade GNU
8964*** binutils to release 2.9.1 or newer. Another option is to modify
8965*** your PATH or compiler configuration so that the native linker is
8966*** used, and then restart.
8967
8968_LT_EOF
8969 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8971 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8972 else
8973 ld_shlibs=no
8974 fi
8975 ;;
8976
8977 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8978 case `$LD -v 2>&1` in
8979 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8980 ld_shlibs=no
8981 cat <<_LT_EOF 1>&2
8982
8983*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8984*** reliably create shared libraries on SCO systems. Therefore, libtool
8985*** is disabling shared libraries support. We urge you to upgrade GNU
8986*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8987*** your PATH or compiler configuration so that the native linker is
8988*** used, and then restart.
8989
8990_LT_EOF
8991 ;;
8992 *)
8993 # For security reasons, it is highly recommended that you always
8994 # use absolute paths for naming shared libraries, and exclude the
8995 # DT_RUNPATH tag from executables and libraries. But doing so
8996 # requires that you compile everything twice, which is a pain.
8997 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8998 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9001 else
9002 ld_shlibs=no
9003 fi
9004 ;;
9005 esac
9006 ;;
9007
9008 sunos4*)
9009 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9010 wlarc=
9011 hardcode_direct=yes
9012 hardcode_shlibpath_var=no
9013 ;;
9014
9015 *)
9016 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9018 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9019 else
9020 ld_shlibs=no
9021 fi
9022 ;;
9023 esac
9024
9025 if test "$ld_shlibs" = no; then
9026 runpath_var=
9027 hardcode_libdir_flag_spec=
9028 export_dynamic_flag_spec=
9029 whole_archive_flag_spec=
9030 fi
9031 else
9032 # PORTME fill in a description of your system's linker (not GNU ld)
9033 case $host_os in
9034 aix3*)
9035 allow_undefined_flag=unsupported
9036 always_export_symbols=yes
9037 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'
9038 # Note: this linker hardcodes the directories in LIBPATH if there
9039 # are no directories specified by -L.
9040 hardcode_minus_L=yes
9041 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9042 # Neither direct hardcoding nor static linking is supported with a
9043 # broken collect2.
9044 hardcode_direct=unsupported
9045 fi
9046 ;;
9047
c8db569e 9048 aix[4-9]*)
542f9784 9049 if test "$host_cpu" = ia64; then
9050 # On IA64, the linker does run time linking by default, so we don't
9051 # have to do anything special.
9052 aix_use_runtimelinking=no
9053 exp_sym_flag='-Bexport'
9054 no_entry_flag=""
9055 else
9056 # If we're using GNU nm, then we don't want the "-C" option.
9057 # -C means demangle to AIX nm, but means don't demangle with GNU nm
e6408286 9058 # Also, AIX nm treats weak defined symbols like other global
9059 # defined symbols, whereas GNU nm marks them as "W".
542f9784 9060 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
e6408286 9061 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 9062 else
9063 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'
9064 fi
9065 aix_use_runtimelinking=no
9066
9067 # Test if we are trying to use run time linking or normal
9068 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9069 # need to do runtime linking.
c8db569e 9070 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 9071 for ld_flag in $LDFLAGS; do
9072 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9073 aix_use_runtimelinking=yes
9074 break
9075 fi
9076 done
9077 ;;
9078 esac
9079
9080 exp_sym_flag='-bexport'
9081 no_entry_flag='-bnoentry'
9082 fi
9083
9084 # When large executables or shared objects are built, AIX ld can
9085 # have problems creating the table of contents. If linking a library
9086 # or program results in "error TOC overflow" add -mminimal-toc to
9087 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9088 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9089
9090 archive_cmds=''
9091 hardcode_direct=yes
9092 hardcode_direct_absolute=yes
9093 hardcode_libdir_separator=':'
9094 link_all_deplibs=yes
9095 file_list_spec='${wl}-f,'
9096
9097 if test "$GCC" = yes; then
9098 case $host_os in aix4.[012]|aix4.[012].*)
9099 # We only want to do this on AIX 4.2 and lower, the check
9100 # below for broken collect2 doesn't work under 4.3+
9101 collect2name=`${CC} -print-prog-name=collect2`
9102 if test -f "$collect2name" &&
9103 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9104 then
9105 # We have reworked collect2
9106 :
9107 else
9108 # We have old collect2
9109 hardcode_direct=unsupported
9110 # It fails to find uninstalled libraries when the uninstalled
9111 # path is not listed in the libpath. Setting hardcode_minus_L
9112 # to unsupported forces relinking
9113 hardcode_minus_L=yes
9114 hardcode_libdir_flag_spec='-L$libdir'
9115 hardcode_libdir_separator=
9116 fi
9117 ;;
9118 esac
9119 shared_flag='-shared'
9120 if test "$aix_use_runtimelinking" = yes; then
9121 shared_flag="$shared_flag "'${wl}-G'
9122 fi
9123 else
9124 # not using gcc
9125 if test "$host_cpu" = ia64; then
9126 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9127 # chokes on -Wl,-G. The following line is correct:
9128 shared_flag='-G'
9129 else
9130 if test "$aix_use_runtimelinking" = yes; then
9131 shared_flag='${wl}-G'
9132 else
9133 shared_flag='${wl}-bM:SRE'
9134 fi
9135 fi
9136 fi
9137
6d873a38 9138 export_dynamic_flag_spec='${wl}-bexpall'
542f9784 9139 # It seems that -bexpall does not export symbols beginning with
9140 # underscore (_), so it is better to generate a list of symbols to export.
9141 always_export_symbols=yes
9142 if test "$aix_use_runtimelinking" = yes; then
9143 # Warning - without using the other runtime loading flags (-brtl),
9144 # -berok will link without error, but may produce a broken library.
9145 allow_undefined_flag='-berok'
9146 # Determine the default libpath from the value encoded in an
9147 # empty executable.
cd9a469c 9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 9149/* end confdefs.h. */
9150
9151int
9152main ()
9153{
9154
9155 ;
9156 return 0;
9157}
9158_ACEOF
cd9a469c 9159if ac_fn_c_try_link "$LINENO"; then :
542f9784 9160
9161lt_aix_libpath_sed='
9162 /Import File Strings/,/^$/ {
9163 /^0/ {
9164 s/^0 *\(.*\)$/\1/
9165 p
9166 }
9167 }'
9168aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9169# Check for a 64-bit object if we didn't find anything.
9170if test -z "$aix_libpath"; then
9171 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9172fi
542f9784 9173fi
cd9a469c 9174rm -f core conftest.err conftest.$ac_objext \
9175 conftest$ac_exeext conftest.$ac_ext
542f9784 9176if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9177
9178 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
e6408286 9179 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 9180 else
9181 if test "$host_cpu" = ia64; then
9182 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9183 allow_undefined_flag="-z nodefs"
9184 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"
9185 else
9186 # Determine the default libpath from the value encoded in an
9187 # empty executable.
cd9a469c 9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 9189/* end confdefs.h. */
9190
9191int
9192main ()
9193{
9194
9195 ;
9196 return 0;
9197}
9198_ACEOF
cd9a469c 9199if ac_fn_c_try_link "$LINENO"; then :
542f9784 9200
9201lt_aix_libpath_sed='
9202 /Import File Strings/,/^$/ {
9203 /^0/ {
9204 s/^0 *\(.*\)$/\1/
9205 p
9206 }
9207 }'
9208aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9209# Check for a 64-bit object if we didn't find anything.
9210if test -z "$aix_libpath"; then
9211 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9212fi
542f9784 9213fi
cd9a469c 9214rm -f core conftest.err conftest.$ac_objext \
9215 conftest$ac_exeext conftest.$ac_ext
542f9784 9216if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9217
9218 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9219 # Warning - without using the other run time loading flags,
9220 # -berok will link without error, but may produce a broken library.
9221 no_undefined_flag=' ${wl}-bernotok'
9222 allow_undefined_flag=' ${wl}-berok'
e6408286 9223 if test "$with_gnu_ld" = yes; then
9224 # We only use this code for GNU lds that support --whole-archive.
9225 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9226 else
9227 # Exported symbols can be pulled into shared objects from archives
9228 whole_archive_flag_spec='$convenience'
9229 fi
542f9784 9230 archive_cmds_need_lc=yes
9231 # This is similar to how AIX traditionally builds its shared libraries.
9232 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'
9233 fi
9234 fi
9235 ;;
9236
9237 amigaos*)
6d873a38 9238 case $host_cpu in
9239 powerpc)
9240 # see comment about AmigaOS4 .so support
9241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9242 archive_expsym_cmds=''
9243 ;;
9244 m68k)
9245 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)'
9246 hardcode_libdir_flag_spec='-L$libdir'
9247 hardcode_minus_L=yes
9248 ;;
9249 esac
542f9784 9250 ;;
9251
9252 bsdi[45]*)
9253 export_dynamic_flag_spec=-rdynamic
9254 ;;
9255
6d873a38 9256 cygwin* | mingw* | pw32* | cegcc*)
542f9784 9257 # When not using gcc, we currently assume that we are using
9258 # Microsoft Visual C++.
9259 # hardcode_libdir_flag_spec is actually meaningless, as there is
9260 # no search path for DLLs.
9261 hardcode_libdir_flag_spec=' '
9262 allow_undefined_flag=unsupported
9263 # Tell ltmain to make .lib files, not .a files.
9264 libext=lib
9265 # Tell ltmain to make .dll files, not .so files.
9266 shrext_cmds=".dll"
9267 # FIXME: Setting linknames here is a bad hack.
e6408286 9268 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
542f9784 9269 # The linker will automatically build a .lib file if we build a DLL.
9270 old_archive_from_new_cmds='true'
9271 # FIXME: Should let the user specify the lib program.
9272 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9273 fix_srcfile_path='`cygpath -w "$srcfile"`'
9274 enable_shared_with_static_runtimes=yes
9275 ;;
9276
9277 darwin* | rhapsody*)
542f9784 9278
6d873a38 9279
9280 archive_cmds_need_lc=no
9281 hardcode_direct=no
9282 hardcode_automatic=yes
9283 hardcode_shlibpath_var=unsupported
e6408286 9284 if test "$lt_cv_ld_force_load" = "yes"; then
9285 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\"`'
9286 else
9287 whole_archive_flag_spec=''
9288 fi
6d873a38 9289 link_all_deplibs=yes
9290 allow_undefined_flag="$_lt_dar_allow_undefined"
9291 case $cc_basename in
9292 ifort*) _lt_dar_can_shared=yes ;;
9293 *) _lt_dar_can_shared=$GCC ;;
9294 esac
9295 if test "$_lt_dar_can_shared" = "yes"; then
e6408286 9296 output_verbose_link_cmd=func_echo_all
6d873a38 9297 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9298 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9299 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}"
9300 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}"
9301
9302 else
9303 ld_shlibs=no
9304 fi
9305
542f9784 9306 ;;
9307
9308 dgux*)
9309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310 hardcode_libdir_flag_spec='-L$libdir'
9311 hardcode_shlibpath_var=no
9312 ;;
9313
542f9784 9314 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9315 # support. Future versions do this automatically, but an explicit c++rt0.o
9316 # does not break anything, and helps significantly (at the cost of a little
9317 # extra space).
9318 freebsd2.2*)
9319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9320 hardcode_libdir_flag_spec='-R$libdir'
9321 hardcode_direct=yes
9322 hardcode_shlibpath_var=no
9323 ;;
9324
9325 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
30369aff 9326 freebsd2.*)
542f9784 9327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9328 hardcode_direct=yes
9329 hardcode_minus_L=yes
9330 hardcode_shlibpath_var=no
9331 ;;
9332
9333 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9334 freebsd* | dragonfly*)
9335 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9336 hardcode_libdir_flag_spec='-R$libdir'
9337 hardcode_direct=yes
9338 hardcode_shlibpath_var=no
9339 ;;
9340
9341 hpux9*)
9342 if test "$GCC" = yes; then
9343 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'
9344 else
9345 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'
9346 fi
9347 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9348 hardcode_libdir_separator=:
9349 hardcode_direct=yes
9350
9351 # hardcode_minus_L: Not really in the search PATH,
9352 # but as the default location of the library.
9353 hardcode_minus_L=yes
9354 export_dynamic_flag_spec='${wl}-E'
9355 ;;
9356
9357 hpux10*)
e6408286 9358 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 9359 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9360 else
9361 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9362 fi
9363 if test "$with_gnu_ld" = no; then
9364 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9365 hardcode_libdir_flag_spec_ld='+b $libdir'
9366 hardcode_libdir_separator=:
9367 hardcode_direct=yes
9368 hardcode_direct_absolute=yes
9369 export_dynamic_flag_spec='${wl}-E'
9370 # hardcode_minus_L: Not really in the search PATH,
9371 # but as the default location of the library.
9372 hardcode_minus_L=yes
9373 fi
9374 ;;
9375
9376 hpux11*)
e6408286 9377 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 9378 case $host_cpu in
9379 hppa*64*)
9380 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9381 ;;
9382 ia64*)
6d873a38 9383 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
542f9784 9384 ;;
9385 *)
9386 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9387 ;;
9388 esac
9389 else
9390 case $host_cpu in
9391 hppa*64*)
9392 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9393 ;;
9394 ia64*)
9395 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9396 ;;
9397 *)
e6408286 9398
9399 # Older versions of the 11.00 compiler do not understand -b yet
9400 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9402$as_echo_n "checking if $CC understands -b... " >&6; }
9403if test "${lt_cv_prog_compiler__b+set}" = set; then :
9404 $as_echo_n "(cached) " >&6
9405else
9406 lt_cv_prog_compiler__b=no
9407 save_LDFLAGS="$LDFLAGS"
9408 LDFLAGS="$LDFLAGS -b"
9409 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9410 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9411 # The linker can only warn and ignore the option if not recognized
9412 # So say no if there are warnings
9413 if test -s conftest.err; then
9414 # Append any errors to the config.log.
9415 cat conftest.err 1>&5
9416 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9418 if diff conftest.exp conftest.er2 >/dev/null; then
9419 lt_cv_prog_compiler__b=yes
9420 fi
9421 else
9422 lt_cv_prog_compiler__b=yes
9423 fi
9424 fi
9425 $RM -r conftest*
9426 LDFLAGS="$save_LDFLAGS"
9427
9428fi
9429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9430$as_echo "$lt_cv_prog_compiler__b" >&6; }
9431
9432if test x"$lt_cv_prog_compiler__b" = xyes; then
9433 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9434else
9435 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9436fi
9437
542f9784 9438 ;;
9439 esac
9440 fi
9441 if test "$with_gnu_ld" = no; then
9442 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9443 hardcode_libdir_separator=:
9444
9445 case $host_cpu in
9446 hppa*64*|ia64*)
9447 hardcode_direct=no
9448 hardcode_shlibpath_var=no
9449 ;;
9450 *)
9451 hardcode_direct=yes
9452 hardcode_direct_absolute=yes
9453 export_dynamic_flag_spec='${wl}-E'
9454
9455 # hardcode_minus_L: Not really in the search PATH,
9456 # but as the default location of the library.
9457 hardcode_minus_L=yes
9458 ;;
9459 esac
9460 fi
9461 ;;
9462
9463 irix5* | irix6* | nonstopux*)
9464 if test "$GCC" = yes; then
e6408286 9465 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 9466 # Try to use the -exported_symbol ld option, if it does not
9467 # work, assume that -exports_file does not work either and
9468 # implicitly export all symbols.
9469 save_LDFLAGS="$LDFLAGS"
9470 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cd9a469c 9471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472/* end confdefs.h. */
542f9784 9473int foo(void) {}
9474_ACEOF
cd9a469c 9475if ac_fn_c_try_link "$LINENO"; then :
e6408286 9476 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 9477
542f9784 9478fi
cd9a469c 9479rm -f core conftest.err conftest.$ac_objext \
9480 conftest$ac_exeext conftest.$ac_ext
542f9784 9481 LDFLAGS="$save_LDFLAGS"
9482 else
e6408286 9483 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'
9484 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 9485 fi
9486 archive_cmds_need_lc='no'
9487 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9488 hardcode_libdir_separator=:
9489 inherit_rpath=yes
9490 link_all_deplibs=yes
9491 ;;
9492
9493 netbsd*)
9494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9496 else
9497 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9498 fi
9499 hardcode_libdir_flag_spec='-R$libdir'
9500 hardcode_direct=yes
9501 hardcode_shlibpath_var=no
9502 ;;
9503
9504 newsos6)
9505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9506 hardcode_direct=yes
9507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9508 hardcode_libdir_separator=:
9509 hardcode_shlibpath_var=no
9510 ;;
9511
9512 *nto* | *qnx*)
9513 ;;
9514
9515 openbsd*)
6d873a38 9516 if test -f /usr/libexec/ld.so; then
9517 hardcode_direct=yes
9518 hardcode_shlibpath_var=no
9519 hardcode_direct_absolute=yes
9520 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
542f9784 9521 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6d873a38 9522 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
542f9784 9523 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6d873a38 9524 export_dynamic_flag_spec='${wl}-E'
9525 else
9526 case $host_os in
9527 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9528 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9529 hardcode_libdir_flag_spec='-R$libdir'
9530 ;;
9531 *)
9532 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9533 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9534 ;;
9535 esac
9536 fi
9537 else
9538 ld_shlibs=no
542f9784 9539 fi
9540 ;;
9541
9542 os2*)
9543 hardcode_libdir_flag_spec='-L$libdir'
9544 hardcode_minus_L=yes
9545 allow_undefined_flag=unsupported
e6408286 9546 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 9547 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9548 ;;
9549
9550 osf3*)
9551 if test "$GCC" = yes; then
9552 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
e6408286 9553 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 9554 else
9555 allow_undefined_flag=' -expect_unresolved \*'
e6408286 9556 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 9557 fi
9558 archive_cmds_need_lc='no'
9559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9560 hardcode_libdir_separator=:
9561 ;;
9562
9563 osf4* | osf5*) # as osf3* with the addition of -msym flag
9564 if test "$GCC" = yes; then
9565 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
e6408286 9566 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 9567 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9568 else
9569 allow_undefined_flag=' -expect_unresolved \*'
e6408286 9570 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 9571 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 9572 $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 9573
9574 # Both c and cxx compiler support -rpath directly
9575 hardcode_libdir_flag_spec='-rpath $libdir'
9576 fi
9577 archive_cmds_need_lc='no'
9578 hardcode_libdir_separator=:
9579 ;;
9580
9581 solaris*)
9582 no_undefined_flag=' -z defs'
9583 if test "$GCC" = yes; then
9584 wlarc='${wl}'
9585 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9586 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9587 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9588 else
9589 case `$CC -V 2>&1` in
9590 *"Compilers 5.0"*)
9591 wlarc=''
9592 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9593 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9594 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9595 ;;
9596 *)
9597 wlarc='${wl}'
9598 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9599 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9600 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9601 ;;
9602 esac
9603 fi
9604 hardcode_libdir_flag_spec='-R$libdir'
9605 hardcode_shlibpath_var=no
9606 case $host_os in
9607 solaris2.[0-5] | solaris2.[0-5].*) ;;
9608 *)
9609 # The compiler driver will combine and reorder linker options,
9610 # but understands `-z linker_flag'. GCC discards it without `$wl',
9611 # but is careful enough not to reorder.
9612 # Supported since Solaris 2.6 (maybe 2.5.1?)
9613 if test "$GCC" = yes; then
9614 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9615 else
9616 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9617 fi
9618 ;;
9619 esac
9620 link_all_deplibs=yes
9621 ;;
9622
9623 sunos4*)
9624 if test "x$host_vendor" = xsequent; then
9625 # Use $CC to link under sequent, because it throws in some extra .o
9626 # files that make .init and .fini sections work.
9627 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9628 else
9629 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9630 fi
9631 hardcode_libdir_flag_spec='-L$libdir'
9632 hardcode_direct=yes
9633 hardcode_minus_L=yes
9634 hardcode_shlibpath_var=no
9635 ;;
9636
9637 sysv4)
9638 case $host_vendor in
9639 sni)
9640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641 hardcode_direct=yes # is this really true???
9642 ;;
9643 siemens)
9644 ## LD is ld it makes a PLAMLIB
9645 ## CC just makes a GrossModule.
9646 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9647 reload_cmds='$CC -r -o $output$reload_objs'
9648 hardcode_direct=no
9649 ;;
9650 motorola)
9651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9652 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9653 ;;
9654 esac
9655 runpath_var='LD_RUN_PATH'
9656 hardcode_shlibpath_var=no
9657 ;;
9658
9659 sysv4.3*)
9660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9661 hardcode_shlibpath_var=no
9662 export_dynamic_flag_spec='-Bexport'
9663 ;;
9664
9665 sysv4*MP*)
9666 if test -d /usr/nec; then
9667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9668 hardcode_shlibpath_var=no
9669 runpath_var=LD_RUN_PATH
9670 hardcode_runpath_var=yes
9671 ld_shlibs=yes
9672 fi
9673 ;;
9674
9675 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9676 no_undefined_flag='${wl}-z,text'
9677 archive_cmds_need_lc=no
9678 hardcode_shlibpath_var=no
9679 runpath_var='LD_RUN_PATH'
9680
9681 if test "$GCC" = yes; then
9682 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9683 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9684 else
9685 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9686 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9687 fi
9688 ;;
9689
9690 sysv5* | sco3.2v5* | sco5v6*)
9691 # Note: We can NOT use -z defs as we might desire, because we do not
9692 # link with -lc, and that would cause any symbols used from libc to
9693 # always be unresolved, which means just about no library would
9694 # ever link correctly. If we're not using GNU ld we use -z text
9695 # though, which does catch some bad symbols but isn't as heavy-handed
9696 # as -z defs.
9697 no_undefined_flag='${wl}-z,text'
9698 allow_undefined_flag='${wl}-z,nodefs'
9699 archive_cmds_need_lc=no
9700 hardcode_shlibpath_var=no
9701 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9702 hardcode_libdir_separator=':'
9703 link_all_deplibs=yes
9704 export_dynamic_flag_spec='${wl}-Bexport'
9705 runpath_var='LD_RUN_PATH'
9706
9707 if test "$GCC" = yes; then
9708 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9709 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9710 else
9711 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9712 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9713 fi
9714 ;;
9715
9716 uts4*)
9717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9718 hardcode_libdir_flag_spec='-L$libdir'
9719 hardcode_shlibpath_var=no
9720 ;;
9721
9722 *)
9723 ld_shlibs=no
9724 ;;
9725 esac
9726
9727 if test x$host_vendor = xsni; then
9728 case $host in
9729 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9730 export_dynamic_flag_spec='${wl}-Blargedynsym'
9731 ;;
9732 esac
9733 fi
9734 fi
9735
cd9a469c 9736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9737$as_echo "$ld_shlibs" >&6; }
542f9784 9738test "$ld_shlibs" = no && can_build_shared=no
9739
9740with_gnu_ld=$with_gnu_ld
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756#
9757# Do we need to explicitly link libc?
9758#
9759case "x$archive_cmds_need_lc" in
9760x|xyes)
9761 # Assume -lc should be added
9762 archive_cmds_need_lc=yes
9763
9764 if test "$enable_shared" = yes && test "$GCC" = yes; then
9765 case $archive_cmds in
9766 *'~'*)
9767 # FIXME: we may have to deal with multi-command sequences.
9768 ;;
9769 '$CC '*)
9770 # Test whether the compiler implicitly links with -lc since on some
9771 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9772 # to ld, don't add -lc before -lgcc.
cd9a469c 9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9774$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9775if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9776 $as_echo_n "(cached) " >&6
9e6fd619 9777else
9778 $RM conftest*
9779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
542f9784 9780
cd9a469c 9781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 9782 (eval $ac_compile) 2>&5
9783 ac_status=$?
cd9a469c 9784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9785 test $ac_status = 0; } 2>conftest.err; then
9e6fd619 9786 soname=conftest
9787 lib=conftest
9788 libobjs=conftest.$ac_objext
9789 deplibs=
9790 wl=$lt_prog_compiler_wl
9791 pic_flag=$lt_prog_compiler_pic
9792 compiler_flags=-v
9793 linker_flags=-v
9794 verstring=
9795 output_objdir=.
9796 libname=conftest
9797 lt_save_allow_undefined_flag=$allow_undefined_flag
9798 allow_undefined_flag=
cd9a469c 9799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
542f9784 9800 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9801 ac_status=$?
cd9a469c 9802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9803 test $ac_status = 0; }
9e6fd619 9804 then
9805 lt_cv_archive_cmds_need_lc=no
9806 else
9807 lt_cv_archive_cmds_need_lc=yes
9808 fi
9809 allow_undefined_flag=$lt_save_allow_undefined_flag
9810 else
9811 cat conftest.err 1>&5
9812 fi
9813 $RM conftest*
9814
9815fi
cd9a469c 9816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9817$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9e6fd619 9818 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
542f9784 9819 ;;
9820 esac
9821 fi
9822 ;;
9823esac
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
9975
9976
9977
9978
9979
9980
cd9a469c 9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9982$as_echo_n "checking dynamic linker characteristics... " >&6; }
6d873a38 9983
9984if test "$GCC" = yes; then
542f9784 9985 case $host_os in
9986 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9987 *) lt_awk_arg="/^libraries:/" ;;
9988 esac
e6408286 9989 case $host_os in
9990 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9991 *) lt_sed_strip_eq="s,=/,/,g" ;;
9992 esac
9993 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9994 case $lt_search_path_spec in
9995 *\;*)
542f9784 9996 # if the path contains ";" then we assume it to be the separator
9997 # otherwise default to the standard path separator (i.e. ":") - it is
9998 # assumed that no part of a normal pathname contains ";" but that should
9999 # okay in the real world where ";" in dirpaths is itself problematic.
e6408286 10000 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10001 ;;
10002 *)
10003 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10004 ;;
10005 esac
542f9784 10006 # Ok, now we have the path, separated by spaces, we can step through it
10007 # and add multilib dir if necessary.
10008 lt_tmp_lt_search_path_spec=
10009 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10010 for lt_sys_path in $lt_search_path_spec; do
10011 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10012 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10013 else
10014 test -d "$lt_sys_path" && \
10015 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10016 fi
10017 done
e6408286 10018 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
542f9784 10019BEGIN {RS=" "; FS="/|\n";} {
10020 lt_foo="";
10021 lt_count=0;
10022 for (lt_i = NF; lt_i > 0; lt_i--) {
10023 if ($lt_i != "" && $lt_i != ".") {
10024 if ($lt_i == "..") {
10025 lt_count++;
10026 } else {
10027 if (lt_count == 0) {
10028 lt_foo="/" $lt_i lt_foo;
10029 } else {
10030 lt_count--;
10031 }
10032 }
10033 }
10034 }
10035 if (lt_foo != "") { lt_freq[lt_foo]++; }
10036 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10037}'`
e6408286 10038 # AWK program above erroneously prepends '/' to C:/dos/paths
10039 # for these hosts.
10040 case $host_os in
10041 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10042 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10043 esac
10044 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
542f9784 10045else
10046 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10047fi
10048library_names_spec=
10049libname_spec='lib$name'
10050soname_spec=
10051shrext_cmds=".so"
10052postinstall_cmds=
10053postuninstall_cmds=
10054finish_cmds=
10055finish_eval=
10056shlibpath_var=
10057shlibpath_overrides_runpath=unknown
10058version_type=none
10059dynamic_linker="$host_os ld.so"
10060sys_lib_dlsearch_path_spec="/lib /usr/lib"
10061need_lib_prefix=unknown
10062hardcode_into_libs=no
10063
10064# when you set need_version to no, make sure it does not cause -set_version
10065# flags to be left without arguments
10066need_version=unknown
10067
10068case $host_os in
10069aix3*)
10070 version_type=linux
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10072 shlibpath_var=LIBPATH
10073
10074 # AIX 3 has no versioning support, so we append a major version to the name.
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 ;;
10077
c8db569e 10078aix[4-9]*)
542f9784 10079 version_type=linux
10080 need_lib_prefix=no
10081 need_version=no
10082 hardcode_into_libs=yes
10083 if test "$host_cpu" = ia64; then
10084 # AIX 5 supports IA64
10085 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10086 shlibpath_var=LD_LIBRARY_PATH
10087 else
10088 # With GCC up to 2.95.x, collect2 would create an import file
10089 # for dependence libraries. The import file would start with
10090 # the line `#! .'. This would cause the generated library to
10091 # depend on `.', always an invalid library. This was fixed in
10092 # development snapshots of GCC prior to 3.0.
10093 case $host_os in
10094 aix4 | aix4.[01] | aix4.[01].*)
10095 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10096 echo ' yes '
10097 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10098 :
10099 else
10100 can_build_shared=no
10101 fi
10102 ;;
10103 esac
10104 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10105 # soname into executable. Probably we can add versioning support to
10106 # collect2, so additional links can be useful in future.
10107 if test "$aix_use_runtimelinking" = yes; then
10108 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10109 # instead of lib<name>.a to let people know that these are not
10110 # typical AIX shared libraries.
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112 else
10113 # We preserve .a as extension for shared libraries through AIX4.2
10114 # and later when we are not doing run time linking.
10115 library_names_spec='${libname}${release}.a $libname.a'
10116 soname_spec='${libname}${release}${shared_ext}$major'
10117 fi
10118 shlibpath_var=LIBPATH
10119 fi
10120 ;;
10121
10122amigaos*)
6d873a38 10123 case $host_cpu in
10124 powerpc)
10125 # Since July 2007 AmigaOS4 officially supports .so libraries.
10126 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 ;;
10129 m68k)
542f9784 10130 library_names_spec='$libname.ixlibrary $libname.a'
10131 # Create ${libname}_ixlibrary.a entries in /sys/libs.
e6408286 10132 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 10133 ;;
10134 esac
542f9784 10135 ;;
10136
10137beos*)
10138 library_names_spec='${libname}${shared_ext}'
10139 dynamic_linker="$host_os ld.so"
10140 shlibpath_var=LIBRARY_PATH
10141 ;;
10142
10143bsdi[45]*)
10144 version_type=linux
10145 need_version=no
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 soname_spec='${libname}${release}${shared_ext}$major'
10148 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10149 shlibpath_var=LD_LIBRARY_PATH
10150 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10151 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10152 # the default ld.so.conf also contains /usr/contrib/lib and
10153 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10154 # libtool to hard-code these into programs
10155 ;;
10156
6d873a38 10157cygwin* | mingw* | pw32* | cegcc*)
542f9784 10158 version_type=windows
10159 shrext_cmds=".dll"
10160 need_version=no
10161 need_lib_prefix=no
10162
6d873a38 10163 case $GCC,$host_os in
10164 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
542f9784 10165 library_names_spec='$libname.dll.a'
10166 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10167 postinstall_cmds='base_file=`basename \${file}`~
10168 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10169 dldir=$destdir/`dirname \$dlpath`~
10170 test -d \$dldir || mkdir -p \$dldir~
10171 $install_prog $dir/$dlname \$dldir/$dlname~
10172 chmod a+x \$dldir/$dlname~
10173 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10174 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10175 fi'
10176 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10177 dlpath=$dir/\$dldll~
10178 $RM \$dlpath'
10179 shlibpath_overrides_runpath=yes
10180
10181 case $host_os in
10182 cygwin*)
10183 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10184 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
e6408286 10185
10186 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
542f9784 10187 ;;
6d873a38 10188 mingw* | cegcc*)
542f9784 10189 # MinGW DLLs use traditional 'lib' prefix
10190 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
542f9784 10191 ;;
10192 pw32*)
10193 # pw32 DLLs use 'pw' prefix rather than 'lib'
10194 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10195 ;;
10196 esac
10197 ;;
10198
10199 *)
10200 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10201 ;;
10202 esac
10203 dynamic_linker='Win32 ld.exe'
10204 # FIXME: first we should search . and the directory the executable is in
10205 shlibpath_var=PATH
10206 ;;
10207
10208darwin* | rhapsody*)
10209 dynamic_linker="$host_os dyld"
10210 version_type=darwin
10211 need_lib_prefix=no
10212 need_version=no
10213 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10214 soname_spec='${libname}${release}${major}$shared_ext'
10215 shlibpath_overrides_runpath=yes
10216 shlibpath_var=DYLD_LIBRARY_PATH
10217 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10218
10219 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10220 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10221 ;;
10222
10223dgux*)
10224 version_type=linux
10225 need_lib_prefix=no
10226 need_version=no
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 ;;
10231
542f9784 10232freebsd* | dragonfly*)
10233 # DragonFly does not have aout. When/if they implement a new
10234 # versioning mechanism, adjust this.
10235 if test -x /usr/bin/objformat; then
10236 objformat=`/usr/bin/objformat`
10237 else
10238 case $host_os in
30369aff 10239 freebsd[23].*) objformat=aout ;;
542f9784 10240 *) objformat=elf ;;
10241 esac
10242 fi
10243 version_type=freebsd-$objformat
10244 case $version_type in
10245 freebsd-elf*)
10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10247 need_version=no
10248 need_lib_prefix=no
10249 ;;
10250 freebsd-*)
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10252 need_version=yes
10253 ;;
10254 esac
10255 shlibpath_var=LD_LIBRARY_PATH
10256 case $host_os in
30369aff 10257 freebsd2.*)
542f9784 10258 shlibpath_overrides_runpath=yes
10259 ;;
10260 freebsd3.[01]* | freebsdelf3.[01]*)
10261 shlibpath_overrides_runpath=yes
10262 hardcode_into_libs=yes
10263 ;;
10264 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10265 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10266 shlibpath_overrides_runpath=no
10267 hardcode_into_libs=yes
10268 ;;
10269 *) # from 4.6 on, and DragonFly
10270 shlibpath_overrides_runpath=yes
10271 hardcode_into_libs=yes
10272 ;;
10273 esac
10274 ;;
10275
10276gnu*)
10277 version_type=linux
10278 need_lib_prefix=no
10279 need_version=no
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10281 soname_spec='${libname}${release}${shared_ext}$major'
10282 shlibpath_var=LD_LIBRARY_PATH
10283 hardcode_into_libs=yes
10284 ;;
10285
e6408286 10286haiku*)
10287 version_type=linux
10288 need_lib_prefix=no
10289 need_version=no
10290 dynamic_linker="$host_os runtime_loader"
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 shlibpath_var=LIBRARY_PATH
10294 shlibpath_overrides_runpath=yes
10295 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10296 hardcode_into_libs=yes
10297 ;;
10298
542f9784 10299hpux9* | hpux10* | hpux11*)
10300 # Give a soname corresponding to the major version so that dld.sl refuses to
10301 # link against other versions.
10302 version_type=sunos
10303 need_lib_prefix=no
10304 need_version=no
10305 case $host_cpu in
10306 ia64*)
10307 shrext_cmds='.so'
10308 hardcode_into_libs=yes
10309 dynamic_linker="$host_os dld.so"
10310 shlibpath_var=LD_LIBRARY_PATH
10311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313 soname_spec='${libname}${release}${shared_ext}$major'
10314 if test "X$HPUX_IA64_MODE" = X32; then
10315 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10316 else
10317 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10318 fi
10319 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10320 ;;
10321 hppa*64*)
10322 shrext_cmds='.sl'
10323 hardcode_into_libs=yes
10324 dynamic_linker="$host_os dld.sl"
10325 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10326 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328 soname_spec='${libname}${release}${shared_ext}$major'
10329 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10331 ;;
10332 *)
10333 shrext_cmds='.sl'
10334 dynamic_linker="$host_os dld.sl"
10335 shlibpath_var=SHLIB_PATH
10336 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338 soname_spec='${libname}${release}${shared_ext}$major'
10339 ;;
10340 esac
e6408286 10341 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
542f9784 10342 postinstall_cmds='chmod 555 $lib'
e6408286 10343 # or fails outright, so override atomically:
10344 install_override_mode=555
542f9784 10345 ;;
10346
10347interix[3-9]*)
10348 version_type=linux
10349 need_lib_prefix=no
10350 need_version=no
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10352 soname_spec='${libname}${release}${shared_ext}$major'
10353 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 shlibpath_overrides_runpath=no
10356 hardcode_into_libs=yes
10357 ;;
10358
10359irix5* | irix6* | nonstopux*)
10360 case $host_os in
10361 nonstopux*) version_type=nonstopux ;;
10362 *)
10363 if test "$lt_cv_prog_gnu_ld" = yes; then
10364 version_type=linux
10365 else
10366 version_type=irix
10367 fi ;;
10368 esac
10369 need_lib_prefix=no
10370 need_version=no
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10373 case $host_os in
10374 irix5* | nonstopux*)
10375 libsuff= shlibsuff=
10376 ;;
10377 *)
10378 case $LD in # libtool.m4 will add one of these switches to LD
10379 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10380 libsuff= shlibsuff= libmagic=32-bit;;
10381 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10382 libsuff=32 shlibsuff=N32 libmagic=N32;;
10383 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10384 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10385 *) libsuff= shlibsuff= libmagic=never-match;;
10386 esac
10387 ;;
10388 esac
10389 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10390 shlibpath_overrides_runpath=no
10391 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10392 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10393 hardcode_into_libs=yes
10394 ;;
10395
10396# No shared lib support for Linux oldld, aout, or coff.
10397linux*oldld* | linux*aout* | linux*coff*)
10398 dynamic_linker=no
10399 ;;
10400
10401# This must be Linux ELF.
9af964d4 10402linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 10403 version_type=linux
10404 need_lib_prefix=no
10405 need_version=no
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10409 shlibpath_var=LD_LIBRARY_PATH
10410 shlibpath_overrides_runpath=no
9e6fd619 10411
542f9784 10412 # Some binutils ld are patched to set DT_RUNPATH
cd9a469c 10413 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10414 $as_echo_n "(cached) " >&6
9e6fd619 10415else
10416 lt_cv_shlibpath_overrides_runpath=no
10417 save_LDFLAGS=$LDFLAGS
10418 save_libdir=$libdir
10419 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10420 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
cd9a469c 10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10422/* end confdefs.h. */
10423
10424int
10425main ()
10426{
10427
10428 ;
10429 return 0;
10430}
10431_ACEOF
cd9a469c 10432if ac_fn_c_try_link "$LINENO"; then :
10433 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9e6fd619 10434 lt_cv_shlibpath_overrides_runpath=yes
542f9784 10435fi
542f9784 10436fi
cd9a469c 10437rm -f core conftest.err conftest.$ac_objext \
10438 conftest$ac_exeext conftest.$ac_ext
9e6fd619 10439 LDFLAGS=$save_LDFLAGS
10440 libdir=$save_libdir
10441
10442fi
10443
10444 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
542f9784 10445
10446 # This implies no fast_install, which is unacceptable.
10447 # Some rework will be needed to allow for fast_install
10448 # before this can be enabled.
10449 hardcode_into_libs=yes
10450
10451 # Append ld.so.conf contents to the search path
10452 if test -f /etc/ld.so.conf; then
e6408286 10453 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 10454 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10455 fi
10456
10457 # We used to test for /lib/ld.so.1 and disable shared libraries on
10458 # powerpc, because MkLinux only supported shared libraries with the
10459 # GNU dynamic linker. Since this was broken with cross compilers,
10460 # most powerpc-linux boxes support dynamic linking these days and
10461 # people can always --disable-shared, the test was removed, and we
10462 # assume the GNU/Linux dynamic linker is in use.
10463 dynamic_linker='GNU/Linux ld.so'
10464 ;;
10465
10466netbsd*)
10467 version_type=sunos
10468 need_lib_prefix=no
10469 need_version=no
10470 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10473 dynamic_linker='NetBSD (a.out) ld.so'
10474 else
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10476 soname_spec='${libname}${release}${shared_ext}$major'
10477 dynamic_linker='NetBSD ld.elf_so'
10478 fi
10479 shlibpath_var=LD_LIBRARY_PATH
10480 shlibpath_overrides_runpath=yes
10481 hardcode_into_libs=yes
10482 ;;
10483
10484newsos6)
10485 version_type=linux
10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10487 shlibpath_var=LD_LIBRARY_PATH
10488 shlibpath_overrides_runpath=yes
10489 ;;
10490
10491*nto* | *qnx*)
10492 version_type=qnx
10493 need_lib_prefix=no
10494 need_version=no
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10496 soname_spec='${libname}${release}${shared_ext}$major'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 shlibpath_overrides_runpath=no
10499 hardcode_into_libs=yes
10500 dynamic_linker='ldqnx.so'
10501 ;;
10502
10503openbsd*)
10504 version_type=sunos
10505 sys_lib_dlsearch_path_spec="/usr/lib"
10506 need_lib_prefix=no
10507 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10508 case $host_os in
10509 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10510 *) need_version=no ;;
10511 esac
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10514 shlibpath_var=LD_LIBRARY_PATH
10515 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10516 case $host_os in
10517 openbsd2.[89] | openbsd2.[89].*)
10518 shlibpath_overrides_runpath=no
10519 ;;
10520 *)
10521 shlibpath_overrides_runpath=yes
10522 ;;
10523 esac
10524 else
10525 shlibpath_overrides_runpath=yes
10526 fi
10527 ;;
10528
10529os2*)
10530 libname_spec='$name'
10531 shrext_cmds=".dll"
10532 need_lib_prefix=no
10533 library_names_spec='$libname${shared_ext} $libname.a'
10534 dynamic_linker='OS/2 ld.exe'
10535 shlibpath_var=LIBPATH
10536 ;;
10537
10538osf3* | osf4* | osf5*)
10539 version_type=osf
10540 need_lib_prefix=no
10541 need_version=no
10542 soname_spec='${libname}${release}${shared_ext}$major'
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10546 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10547 ;;
10548
10549rdos*)
10550 dynamic_linker=no
10551 ;;
10552
10553solaris*)
10554 version_type=linux
10555 need_lib_prefix=no
10556 need_version=no
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 shlibpath_var=LD_LIBRARY_PATH
10560 shlibpath_overrides_runpath=yes
10561 hardcode_into_libs=yes
10562 # ldd complains unless libraries are executable
10563 postinstall_cmds='chmod +x $lib'
10564 ;;
10565
10566sunos4*)
10567 version_type=sunos
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10569 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10570 shlibpath_var=LD_LIBRARY_PATH
10571 shlibpath_overrides_runpath=yes
10572 if test "$with_gnu_ld" = yes; then
10573 need_lib_prefix=no
10574 fi
10575 need_version=yes
10576 ;;
10577
10578sysv4 | sysv4.3*)
10579 version_type=linux
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 shlibpath_var=LD_LIBRARY_PATH
10583 case $host_vendor in
10584 sni)
10585 shlibpath_overrides_runpath=no
10586 need_lib_prefix=no
10587 runpath_var=LD_RUN_PATH
10588 ;;
10589 siemens)
10590 need_lib_prefix=no
10591 ;;
10592 motorola)
10593 need_lib_prefix=no
10594 need_version=no
10595 shlibpath_overrides_runpath=no
10596 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10597 ;;
10598 esac
10599 ;;
10600
10601sysv4*MP*)
10602 if test -d /usr/nec ;then
10603 version_type=linux
10604 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10605 soname_spec='$libname${shared_ext}.$major'
10606 shlibpath_var=LD_LIBRARY_PATH
10607 fi
10608 ;;
10609
10610sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10611 version_type=freebsd-elf
10612 need_lib_prefix=no
10613 need_version=no
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10615 soname_spec='${libname}${release}${shared_ext}$major'
10616 shlibpath_var=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath=yes
10618 hardcode_into_libs=yes
10619 if test "$with_gnu_ld" = yes; then
10620 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10621 else
10622 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10623 case $host_os in
10624 sco3.2v5*)
10625 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10626 ;;
10627 esac
10628 fi
10629 sys_lib_dlsearch_path_spec='/usr/lib'
10630 ;;
10631
10632tpf*)
10633 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10634 version_type=linux
10635 need_lib_prefix=no
10636 need_version=no
6d873a38 10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
542f9784 10638 shlibpath_var=LD_LIBRARY_PATH
10639 shlibpath_overrides_runpath=no
10640 hardcode_into_libs=yes
10641 ;;
10642
10643uts4*)
10644 version_type=linux
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10646 soname_spec='${libname}${release}${shared_ext}$major'
10647 shlibpath_var=LD_LIBRARY_PATH
10648 ;;
10649
10650*)
10651 dynamic_linker=no
10652 ;;
10653esac
cd9a469c 10654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10655$as_echo "$dynamic_linker" >&6; }
542f9784 10656test "$dynamic_linker" = no && can_build_shared=no
10657
10658variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10659if test "$GCC" = yes; then
10660 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10661fi
10662
6d873a38 10663if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10664 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10665fi
10666if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10667 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10668fi
10669
542f9784 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
10744
10745
10746
10747
10748
10749
e6408286 10750
10751
10752
10753
10754
542f9784 10755
10756
10757
10758
10759
10760
cd9a469c 10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10762$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
542f9784 10763hardcode_action=
10764if test -n "$hardcode_libdir_flag_spec" ||
10765 test -n "$runpath_var" ||
10766 test "X$hardcode_automatic" = "Xyes" ; then
10767
10768 # We can hardcode non-existent directories.
10769 if test "$hardcode_direct" != no &&
10770 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10771 # have to relink, otherwise we might link with an installed library
10772 # when we should be linking with a yet-to-be-installed one
10773 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10774 test "$hardcode_minus_L" != no; then
10775 # Linking always hardcodes the temporary library directory.
10776 hardcode_action=relink
10777 else
10778 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10779 hardcode_action=immediate
10780 fi
10781else
10782 # We cannot hardcode anything, or else we can only hardcode existing
10783 # directories.
10784 hardcode_action=unsupported
10785fi
cd9a469c 10786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10787$as_echo "$hardcode_action" >&6; }
542f9784 10788
10789if test "$hardcode_action" = relink ||
10790 test "$inherit_rpath" = yes; then
10791 # Fast installation is not supported
10792 enable_fast_install=no
10793elif test "$shlibpath_overrides_runpath" = yes ||
10794 test "$enable_shared" = no; then
10795 # Fast installation is not necessary
10796 enable_fast_install=needless
10797fi
10798
10799
10800
10801
10802
10803
10804 if test "x$enable_dlopen" != xyes; then
10805 enable_dlopen=unknown
10806 enable_dlopen_self=unknown
10807 enable_dlopen_self_static=unknown
10808else
10809 lt_cv_dlopen=no
10810 lt_cv_dlopen_libs=
10811
10812 case $host_os in
10813 beos*)
10814 lt_cv_dlopen="load_add_on"
10815 lt_cv_dlopen_libs=
10816 lt_cv_dlopen_self=yes
10817 ;;
10818
6d873a38 10819 mingw* | pw32* | cegcc*)
542f9784 10820 lt_cv_dlopen="LoadLibrary"
10821 lt_cv_dlopen_libs=
10822 ;;
10823
10824 cygwin*)
10825 lt_cv_dlopen="dlopen"
10826 lt_cv_dlopen_libs=
10827 ;;
10828
10829 darwin*)
10830 # if libdl is installed we need to link against it
cd9a469c 10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10832$as_echo_n "checking for dlopen in -ldl... " >&6; }
10833if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10834 $as_echo_n "(cached) " >&6
542f9784 10835else
10836 ac_check_lib_save_LIBS=$LIBS
10837LIBS="-ldl $LIBS"
cd9a469c 10838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10839/* end confdefs.h. */
10840
cd9a469c 10841/* Override any GCC internal prototype to avoid an error.
10842 Use char because int might match the return type of a GCC
10843 builtin and then its argument prototype would still apply. */
542f9784 10844#ifdef __cplusplus
10845extern "C"
10846#endif
542f9784 10847char dlopen ();
10848int
10849main ()
10850{
cd9a469c 10851return dlopen ();
542f9784 10852 ;
10853 return 0;
10854}
10855_ACEOF
cd9a469c 10856if ac_fn_c_try_link "$LINENO"; then :
542f9784 10857 ac_cv_lib_dl_dlopen=yes
10858else
cd9a469c 10859 ac_cv_lib_dl_dlopen=no
542f9784 10860fi
cd9a469c 10861rm -f core conftest.err conftest.$ac_objext \
10862 conftest$ac_exeext conftest.$ac_ext
542f9784 10863LIBS=$ac_check_lib_save_LIBS
10864fi
cd9a469c 10865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10866$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10867if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
542f9784 10868 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10869else
10870
10871 lt_cv_dlopen="dyld"
10872 lt_cv_dlopen_libs=
10873 lt_cv_dlopen_self=yes
10874
10875fi
10876
10877 ;;
10878
10879 *)
cd9a469c 10880 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10881if test "x$ac_cv_func_shl_load" = x""yes; then :
542f9784 10882 lt_cv_dlopen="shl_load"
10883else
cd9a469c 10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10885$as_echo_n "checking for shl_load in -ldld... " >&6; }
10886if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10887 $as_echo_n "(cached) " >&6
542f9784 10888else
10889 ac_check_lib_save_LIBS=$LIBS
10890LIBS="-ldld $LIBS"
cd9a469c 10891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10892/* end confdefs.h. */
10893
cd9a469c 10894/* Override any GCC internal prototype to avoid an error.
10895 Use char because int might match the return type of a GCC
10896 builtin and then its argument prototype would still apply. */
542f9784 10897#ifdef __cplusplus
10898extern "C"
10899#endif
542f9784 10900char shl_load ();
10901int
10902main ()
10903{
cd9a469c 10904return shl_load ();
542f9784 10905 ;
10906 return 0;
10907}
10908_ACEOF
cd9a469c 10909if ac_fn_c_try_link "$LINENO"; then :
542f9784 10910 ac_cv_lib_dld_shl_load=yes
10911else
cd9a469c 10912 ac_cv_lib_dld_shl_load=no
542f9784 10913fi
cd9a469c 10914rm -f core conftest.err conftest.$ac_objext \
10915 conftest$ac_exeext conftest.$ac_ext
542f9784 10916LIBS=$ac_check_lib_save_LIBS
10917fi
cd9a469c 10918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10919$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10920if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
6d873a38 10921 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
542f9784 10922else
cd9a469c 10923 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10924if test "x$ac_cv_func_dlopen" = x""yes; then :
542f9784 10925 lt_cv_dlopen="dlopen"
10926else
cd9a469c 10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10928$as_echo_n "checking for dlopen in -ldl... " >&6; }
10929if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10930 $as_echo_n "(cached) " >&6
542f9784 10931else
10932 ac_check_lib_save_LIBS=$LIBS
10933LIBS="-ldl $LIBS"
cd9a469c 10934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10935/* end confdefs.h. */
10936
cd9a469c 10937/* Override any GCC internal prototype to avoid an error.
10938 Use char because int might match the return type of a GCC
10939 builtin and then its argument prototype would still apply. */
542f9784 10940#ifdef __cplusplus
10941extern "C"
10942#endif
542f9784 10943char dlopen ();
10944int
10945main ()
10946{
cd9a469c 10947return dlopen ();
542f9784 10948 ;
10949 return 0;
10950}
10951_ACEOF
cd9a469c 10952if ac_fn_c_try_link "$LINENO"; then :
542f9784 10953 ac_cv_lib_dl_dlopen=yes
10954else
cd9a469c 10955 ac_cv_lib_dl_dlopen=no
542f9784 10956fi
cd9a469c 10957rm -f core conftest.err conftest.$ac_objext \
10958 conftest$ac_exeext conftest.$ac_ext
542f9784 10959LIBS=$ac_check_lib_save_LIBS
10960fi
cd9a469c 10961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10962$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10963if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
542f9784 10964 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10965else
cd9a469c 10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10967$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10968if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
542f9784 10970else
10971 ac_check_lib_save_LIBS=$LIBS
10972LIBS="-lsvld $LIBS"
cd9a469c 10973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10974/* end confdefs.h. */
10975
cd9a469c 10976/* Override any GCC internal prototype to avoid an error.
10977 Use char because int might match the return type of a GCC
10978 builtin and then its argument prototype would still apply. */
542f9784 10979#ifdef __cplusplus
10980extern "C"
10981#endif
542f9784 10982char dlopen ();
10983int
10984main ()
10985{
cd9a469c 10986return dlopen ();
542f9784 10987 ;
10988 return 0;
10989}
10990_ACEOF
cd9a469c 10991if ac_fn_c_try_link "$LINENO"; then :
542f9784 10992 ac_cv_lib_svld_dlopen=yes
10993else
cd9a469c 10994 ac_cv_lib_svld_dlopen=no
542f9784 10995fi
cd9a469c 10996rm -f core conftest.err conftest.$ac_objext \
10997 conftest$ac_exeext conftest.$ac_ext
542f9784 10998LIBS=$ac_check_lib_save_LIBS
10999fi
cd9a469c 11000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11001$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11002if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
542f9784 11003 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11004else
cd9a469c 11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11006$as_echo_n "checking for dld_link in -ldld... " >&6; }
11007if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11008 $as_echo_n "(cached) " >&6
542f9784 11009else
11010 ac_check_lib_save_LIBS=$LIBS
11011LIBS="-ldld $LIBS"
cd9a469c 11012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 11013/* end confdefs.h. */
11014
cd9a469c 11015/* Override any GCC internal prototype to avoid an error.
11016 Use char because int might match the return type of a GCC
11017 builtin and then its argument prototype would still apply. */
542f9784 11018#ifdef __cplusplus
11019extern "C"
11020#endif
542f9784 11021char dld_link ();
11022int
11023main ()
11024{
cd9a469c 11025return dld_link ();
542f9784 11026 ;
11027 return 0;
11028}
11029_ACEOF
cd9a469c 11030if ac_fn_c_try_link "$LINENO"; then :
542f9784 11031 ac_cv_lib_dld_dld_link=yes
11032else
cd9a469c 11033 ac_cv_lib_dld_dld_link=no
542f9784 11034fi
cd9a469c 11035rm -f core conftest.err conftest.$ac_objext \
11036 conftest$ac_exeext conftest.$ac_ext
542f9784 11037LIBS=$ac_check_lib_save_LIBS
11038fi
cd9a469c 11039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11040$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11041if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
6d873a38 11042 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
542f9784 11043fi
11044
11045
11046fi
11047
11048
11049fi
11050
11051
11052fi
11053
11054
11055fi
11056
11057
11058fi
11059
11060 ;;
11061 esac
11062
11063 if test "x$lt_cv_dlopen" != xno; then
11064 enable_dlopen=yes
11065 else
11066 enable_dlopen=no
11067 fi
11068
11069 case $lt_cv_dlopen in
11070 dlopen)
11071 save_CPPFLAGS="$CPPFLAGS"
11072 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11073
11074 save_LDFLAGS="$LDFLAGS"
11075 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11076
11077 save_LIBS="$LIBS"
11078 LIBS="$lt_cv_dlopen_libs $LIBS"
11079
cd9a469c 11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11081$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11082if test "${lt_cv_dlopen_self+set}" = set; then :
11083 $as_echo_n "(cached) " >&6
542f9784 11084else
11085 if test "$cross_compiling" = yes; then :
11086 lt_cv_dlopen_self=cross
11087else
11088 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11089 lt_status=$lt_dlunknown
11090 cat > conftest.$ac_ext <<_LT_EOF
33cbbd54 11091#line 11091 "configure"
542f9784 11092#include "confdefs.h"
11093
11094#if HAVE_DLFCN_H
11095#include <dlfcn.h>
11096#endif
11097
11098#include <stdio.h>
11099
11100#ifdef RTLD_GLOBAL
11101# define LT_DLGLOBAL RTLD_GLOBAL
11102#else
11103# ifdef DL_GLOBAL
11104# define LT_DLGLOBAL DL_GLOBAL
11105# else
11106# define LT_DLGLOBAL 0
11107# endif
11108#endif
11109
11110/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11111 find out it does not work in some platform. */
11112#ifndef LT_DLLAZY_OR_NOW
11113# ifdef RTLD_LAZY
11114# define LT_DLLAZY_OR_NOW RTLD_LAZY
11115# else
11116# ifdef DL_LAZY
11117# define LT_DLLAZY_OR_NOW DL_LAZY
11118# else
11119# ifdef RTLD_NOW
11120# define LT_DLLAZY_OR_NOW RTLD_NOW
11121# else
11122# ifdef DL_NOW
11123# define LT_DLLAZY_OR_NOW DL_NOW
11124# else
11125# define LT_DLLAZY_OR_NOW 0
11126# endif
11127# endif
11128# endif
11129# endif
11130#endif
11131
e6408286 11132/* When -fvisbility=hidden is used, assume the code has been annotated
11133 correspondingly for the symbols needed. */
11134#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11135void fnord () __attribute__((visibility("default")));
11136#endif
11137
11138void fnord () { int i=42; }
542f9784 11139int main ()
11140{
11141 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11142 int status = $lt_dlunknown;
11143
11144 if (self)
11145 {
11146 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
e6408286 11147 else
11148 {
11149 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11150 else puts (dlerror ());
11151 }
542f9784 11152 /* dlclose (self); */
11153 }
11154 else
11155 puts (dlerror ());
11156
6d873a38 11157 return status;
542f9784 11158}
11159_LT_EOF
cd9a469c 11160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 11161 (eval $ac_link) 2>&5
11162 ac_status=$?
cd9a469c 11163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11164 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
542f9784 11165 (./conftest; exit; ) >&5 2>/dev/null
11166 lt_status=$?
11167 case x$lt_status in
11168 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11169 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11170 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11171 esac
11172 else :
11173 # compilation failed
11174 lt_cv_dlopen_self=no
11175 fi
11176fi
11177rm -fr conftest*
11178
11179
11180fi
cd9a469c 11181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11182$as_echo "$lt_cv_dlopen_self" >&6; }
542f9784 11183
11184 if test "x$lt_cv_dlopen_self" = xyes; then
11185 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cd9a469c 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11187$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11188if test "${lt_cv_dlopen_self_static+set}" = set; then :
11189 $as_echo_n "(cached) " >&6
542f9784 11190else
11191 if test "$cross_compiling" = yes; then :
11192 lt_cv_dlopen_self_static=cross
11193else
11194 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11195 lt_status=$lt_dlunknown
11196 cat > conftest.$ac_ext <<_LT_EOF
33cbbd54 11197#line 11197 "configure"
542f9784 11198#include "confdefs.h"
11199
11200#if HAVE_DLFCN_H
11201#include <dlfcn.h>
11202#endif
11203
11204#include <stdio.h>
11205
11206#ifdef RTLD_GLOBAL
11207# define LT_DLGLOBAL RTLD_GLOBAL
11208#else
11209# ifdef DL_GLOBAL
11210# define LT_DLGLOBAL DL_GLOBAL
11211# else
11212# define LT_DLGLOBAL 0
11213# endif
11214#endif
11215
11216/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11217 find out it does not work in some platform. */
11218#ifndef LT_DLLAZY_OR_NOW
11219# ifdef RTLD_LAZY
11220# define LT_DLLAZY_OR_NOW RTLD_LAZY
11221# else
11222# ifdef DL_LAZY
11223# define LT_DLLAZY_OR_NOW DL_LAZY
11224# else
11225# ifdef RTLD_NOW
11226# define LT_DLLAZY_OR_NOW RTLD_NOW
11227# else
11228# ifdef DL_NOW
11229# define LT_DLLAZY_OR_NOW DL_NOW
11230# else
11231# define LT_DLLAZY_OR_NOW 0
11232# endif
11233# endif
11234# endif
11235# endif
11236#endif
11237
e6408286 11238/* When -fvisbility=hidden is used, assume the code has been annotated
11239 correspondingly for the symbols needed. */
11240#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11241void fnord () __attribute__((visibility("default")));
11242#endif
11243
11244void fnord () { int i=42; }
542f9784 11245int main ()
11246{
11247 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11248 int status = $lt_dlunknown;
11249
11250 if (self)
11251 {
11252 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
e6408286 11253 else
11254 {
11255 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11256 else puts (dlerror ());
11257 }
542f9784 11258 /* dlclose (self); */
11259 }
11260 else
11261 puts (dlerror ());
11262
6d873a38 11263 return status;
542f9784 11264}
11265_LT_EOF
cd9a469c 11266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 11267 (eval $ac_link) 2>&5
11268 ac_status=$?
cd9a469c 11269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11270 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
542f9784 11271 (./conftest; exit; ) >&5 2>/dev/null
11272 lt_status=$?
11273 case x$lt_status in
11274 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11275 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11276 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11277 esac
11278 else :
11279 # compilation failed
11280 lt_cv_dlopen_self_static=no
11281 fi
11282fi
11283rm -fr conftest*
11284
11285
11286fi
cd9a469c 11287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11288$as_echo "$lt_cv_dlopen_self_static" >&6; }
542f9784 11289 fi
11290
11291 CPPFLAGS="$save_CPPFLAGS"
11292 LDFLAGS="$save_LDFLAGS"
11293 LIBS="$save_LIBS"
11294 ;;
11295 esac
11296
11297 case $lt_cv_dlopen_self in
11298 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11299 *) enable_dlopen_self=unknown ;;
11300 esac
11301
11302 case $lt_cv_dlopen_self_static in
11303 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11304 *) enable_dlopen_self_static=unknown ;;
11305 esac
11306fi
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324striplib=
11325old_striplib=
cd9a469c 11326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11327$as_echo_n "checking whether stripping libraries is possible... " >&6; }
542f9784 11328if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11329 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11330 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cd9a469c 11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11332$as_echo "yes" >&6; }
542f9784 11333else
11334# FIXME - insert some real tests, host_os isn't really good enough
11335 case $host_os in
11336 darwin*)
11337 if test -n "$STRIP" ; then
11338 striplib="$STRIP -x"
11339 old_striplib="$STRIP -S"
cd9a469c 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11341$as_echo "yes" >&6; }
542f9784 11342 else
cd9a469c 11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344$as_echo "no" >&6; }
542f9784 11345 fi
11346 ;;
11347 *)
cd9a469c 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11349$as_echo "no" >&6; }
542f9784 11350 ;;
11351 esac
11352fi
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365 # Report which library types will actually be built
cd9a469c 11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11367$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11369$as_echo "$can_build_shared" >&6; }
542f9784 11370
cd9a469c 11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11372$as_echo_n "checking whether to build shared libraries... " >&6; }
542f9784 11373 test "$can_build_shared" = "no" && enable_shared=no
11374
11375 # On AIX, shared libraries and static libraries use the same namespace, and
11376 # are all built from PIC.
11377 case $host_os in
11378 aix3*)
11379 test "$enable_shared" = yes && enable_static=no
11380 if test -n "$RANLIB"; then
11381 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11382 postinstall_cmds='$RANLIB $lib'
11383 fi
11384 ;;
11385
c8db569e 11386 aix[4-9]*)
542f9784 11387 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11388 test "$enable_shared" = yes && enable_static=no
11389 fi
11390 ;;
11391 esac
cd9a469c 11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11393$as_echo "$enable_shared" >&6; }
542f9784 11394
cd9a469c 11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11396$as_echo_n "checking whether to build static libraries... " >&6; }
542f9784 11397 # Make sure either enable_shared or enable_static is yes.
11398 test "$enable_shared" = yes || enable_static=yes
cd9a469c 11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11400$as_echo "$enable_static" >&6; }
542f9784 11401
11402
11403
11404
11405fi
11406ac_ext=c
11407ac_cpp='$CPP $CPPFLAGS'
11408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11410ac_compiler_gnu=$ac_cv_c_compiler_gnu
11411
11412CC="$lt_save_CC"
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
cd9a469c 11426 ac_config_commands="$ac_config_commands libtool"
542f9784 11427
11428
11429
11430
11431# Only expand once:
11432
11433
11434
11435
11436
8c35d268 11437case $host in
11438 *-cygwin* | *-mingw*)
11439 # 'host' will be top-level target in the case of a target lib,
11440 # we must compare to with_cross_host to decide if this is a native
11441 # or cross-compiler and select where to install dlls appropriately.
11442 if test -n "$with_cross_host" &&
11443 test x"$with_cross_host" != x"no"; then
11444 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11445 else
11446 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11447 fi
11448 ;;
11449 *)
11450 lt_host_flags=
11451 ;;
11452esac
11453
11454
11455
11456
11457
11458
cd9a469c 11459
11460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11461$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11462 # Check whether --enable-maintainer-mode was given.
11463if test "${enable_maintainer_mode+set}" = set; then :
11464 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
542f9784 11465else
11466 USE_MAINTAINER_MODE=no
cd9a469c 11467fi
542f9784 11468
cd9a469c 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11470$as_echo "$USE_MAINTAINER_MODE" >&6; }
11471 if test $USE_MAINTAINER_MODE = yes; then
542f9784 11472 MAINTAINER_MODE_TRUE=
11473 MAINTAINER_MODE_FALSE='#'
11474else
11475 MAINTAINER_MODE_TRUE='#'
11476 MAINTAINER_MODE_FALSE=
11477fi
11478
11479 MAINT=$MAINTAINER_MODE_TRUE
11480
11481
11482
87969c8c 11483# Create a spec file, so that compile/link tests don't fail
11484test -f libgfortran.spec || touch libgfortran.spec
11485FCFLAGS="$FCFLAGS -L."
11486
542f9784 11487# We need gfortran to compile parts of the library
11488# We can't use AC_PROG_FC because it expects a fully working gfortran.
11489#AC_PROG_FC(gfortran)
00b1a0e2 11490case `echo $GFORTRAN` in
11491 -* | no* )
11492 FC=no ;;
11493 *)
a5e97ab0 11494 set dummy $GFORTRAN; ac_word=$2
11495 if test -x "$ac_word"; then
647ee0e4 11496 FC="$GFORTRAN"
11497 else
11498 FC=no
11499 fi ;;
00b1a0e2 11500esac
cd9a469c 11501ac_ext=${ac_fc_srcext-f}
11502ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11503ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
542f9784 11504ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11505if test -n "$ac_tool_prefix"; then
11506 for ac_prog in gfortran
11507 do
11508 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11509set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 11510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11511$as_echo_n "checking for $ac_word... " >&6; }
11512if test "${ac_cv_prog_FC+set}" = set; then :
11513 $as_echo_n "(cached) " >&6
542f9784 11514else
11515 if test -n "$FC"; then
11516 ac_cv_prog_FC="$FC" # Let the user override the test.
11517else
11518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11519for as_dir in $PATH
11520do
11521 IFS=$as_save_IFS
11522 test -z "$as_dir" && as_dir=.
cd9a469c 11523 for ac_exec_ext in '' $ac_executable_extensions; do
11524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 11525 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
cd9a469c 11526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 11527 break 2
11528 fi
11529done
cd9a469c 11530 done
11531IFS=$as_save_IFS
542f9784 11532
11533fi
11534fi
11535FC=$ac_cv_prog_FC
11536if test -n "$FC"; then
cd9a469c 11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11538$as_echo "$FC" >&6; }
542f9784 11539else
cd9a469c 11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541$as_echo "no" >&6; }
542f9784 11542fi
11543
cd9a469c 11544
542f9784 11545 test -n "$FC" && break
11546 done
11547fi
11548if test -z "$FC"; then
11549 ac_ct_FC=$FC
11550 for ac_prog in gfortran
11551do
11552 # Extract the first word of "$ac_prog", so it can be a program name with args.
11553set dummy $ac_prog; ac_word=$2
cd9a469c 11554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11555$as_echo_n "checking for $ac_word... " >&6; }
11556if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11557 $as_echo_n "(cached) " >&6
542f9784 11558else
11559 if test -n "$ac_ct_FC"; then
11560 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11561else
11562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563for as_dir in $PATH
11564do
11565 IFS=$as_save_IFS
11566 test -z "$as_dir" && as_dir=.
cd9a469c 11567 for ac_exec_ext in '' $ac_executable_extensions; do
11568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 11569 ac_cv_prog_ac_ct_FC="$ac_prog"
cd9a469c 11570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 11571 break 2
11572 fi
11573done
cd9a469c 11574 done
11575IFS=$as_save_IFS
542f9784 11576
11577fi
11578fi
11579ac_ct_FC=$ac_cv_prog_ac_ct_FC
11580if test -n "$ac_ct_FC"; then
cd9a469c 11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11582$as_echo "$ac_ct_FC" >&6; }
542f9784 11583else
cd9a469c 11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11585$as_echo "no" >&6; }
542f9784 11586fi
11587
cd9a469c 11588
542f9784 11589 test -n "$ac_ct_FC" && break
11590done
11591
cd9a469c 11592 if test "x$ac_ct_FC" = x; then
11593 FC=""
11594 else
11595 case $cross_compiling:$ac_tool_warned in
11596yes:)
11597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11599ac_tool_warned=yes ;;
11600esac
11601 FC=$ac_ct_FC
11602 fi
542f9784 11603fi
11604
11605
11606# Provide some information about the compiler.
cd9a469c 11607$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11608set X $ac_compile
11609ac_compiler=$2
11610for ac_option in --version -v -V -qversion; do
11611 { { ac_try="$ac_compiler $ac_option >&5"
11612case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11615esac
11616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11617$as_echo "$ac_try_echo"; } >&5
11618 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
542f9784 11619 ac_status=$?
cd9a469c 11620 if test -s conftest.err; then
11621 sed '10a\
11622... rest of stderr output deleted ...
11623 10q' conftest.err >conftest.er1
11624 cat conftest.er1 >&5
11625 rm -f conftest.er1 conftest.err
11626 fi
11627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11628 test $ac_status = 0; }
11629done
542f9784 11630rm -f a.out
11631
11632# If we don't use `.F' as extension, the preprocessor is not run on the
11633# input file. (Note that this only needs to work for GNU compilers.)
11634ac_save_ext=$ac_ext
11635ac_ext=F
cd9a469c 11636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11637$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11638if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11639 $as_echo_n "(cached) " >&6
542f9784 11640else
cd9a469c 11641 cat > conftest.$ac_ext <<_ACEOF
542f9784 11642 program main
11643#ifndef __GNUC__
11644 choke me
11645#endif
11646
11647 end
11648_ACEOF
cd9a469c 11649if ac_fn_fc_try_compile "$LINENO"; then :
542f9784 11650 ac_compiler_gnu=yes
11651else
cd9a469c 11652 ac_compiler_gnu=no
542f9784 11653fi
cd9a469c 11654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 11655ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11656
11657fi
cd9a469c 11658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11659$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
542f9784 11660ac_ext=$ac_save_ext
cd9a469c 11661ac_test_FCFLAGS=${FCFLAGS+set}
11662ac_save_FCFLAGS=$FCFLAGS
542f9784 11663FCFLAGS=
cd9a469c 11664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11665$as_echo_n "checking whether $FC accepts -g... " >&6; }
11666if test "${ac_cv_prog_fc_g+set}" = set; then :
11667 $as_echo_n "(cached) " >&6
542f9784 11668else
11669 FCFLAGS=-g
cd9a469c 11670cat > conftest.$ac_ext <<_ACEOF
542f9784 11671 program main
11672
11673 end
11674_ACEOF
cd9a469c 11675if ac_fn_fc_try_compile "$LINENO"; then :
542f9784 11676 ac_cv_prog_fc_g=yes
11677else
cd9a469c 11678 ac_cv_prog_fc_g=no
542f9784 11679fi
cd9a469c 11680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 11681
11682fi
cd9a469c 11683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11684$as_echo "$ac_cv_prog_fc_g" >&6; }
11685if test "$ac_test_FCFLAGS" = set; then
11686 FCFLAGS=$ac_save_FCFLAGS
542f9784 11687elif test $ac_cv_prog_fc_g = yes; then
11688 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11689 FCFLAGS="-g -O2"
11690 else
11691 FCFLAGS="-g"
11692 fi
11693else
11694 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11695 FCFLAGS="-O2"
11696 else
11697 FCFLAGS=
11698 fi
11699fi
11700
11701ac_ext=c
11702ac_cpp='$CPP $CPPFLAGS'
11703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11705ac_compiler_gnu=$ac_cv_c_compiler_gnu
11706
e6408286 11707 ac_ext=${ac_fc_srcext-f}
cd9a469c 11708ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11709ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
542f9784 11710ac_compiler_gnu=$ac_cv_fc_compiler_gnu
542f9784 11711
542f9784 11712
11713if test -z "$FC" || test "X$FC" = "Xno"; then
11714 _lt_disable_FC=yes
11715fi
11716
542f9784 11717archive_cmds_need_lc_FC=no
11718allow_undefined_flag_FC=
11719always_export_symbols_FC=no
11720archive_expsym_cmds_FC=
11721export_dynamic_flag_spec_FC=
11722hardcode_direct_FC=no
11723hardcode_direct_absolute_FC=no
11724hardcode_libdir_flag_spec_FC=
11725hardcode_libdir_flag_spec_ld_FC=
11726hardcode_libdir_separator_FC=
11727hardcode_minus_L_FC=no
11728hardcode_automatic_FC=no
11729inherit_rpath_FC=no
11730module_cmds_FC=
11731module_expsym_cmds_FC=
11732link_all_deplibs_FC=unknown
11733old_archive_cmds_FC=$old_archive_cmds
e6408286 11734reload_flag_FC=$reload_flag
11735reload_cmds_FC=$reload_cmds
542f9784 11736no_undefined_flag_FC=
11737whole_archive_flag_spec_FC=
11738enable_shared_with_static_runtimes_FC=no
11739
11740# Source file extension for fc test sources.
11741ac_ext=${ac_fc_srcext-f}
11742
11743# Object file extension for compiled fc test sources.
11744objext=o
11745objext_FC=$objext
11746
11747# No sense in running all these tests if we already determined that
11748# the FC compiler isn't working. Some variables (like enable_shared)
11749# are currently assumed to apply to all compilers on this platform,
11750# and will be corrupted by setting them based on a non-working compiler.
11751if test "$_lt_disable_FC" != yes; then
11752 # Code to be used in simple compile tests
11753 lt_simple_compile_test_code="\
11754 subroutine t
11755 return
11756 end
11757"
11758
11759 # Code to be used in simple link tests
11760 lt_simple_link_test_code="\
11761 program t
11762 end
11763"
11764
11765 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11766
11767
11768
11769
11770
11771
11772# If no C compiler was specified, use CC.
11773LTCC=${LTCC-"$CC"}
11774
11775# If no C compiler flags were specified, use CFLAGS.
11776LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11777
11778# Allow CC to be a program name with arguments.
11779compiler=$CC
11780
11781
11782 # save warnings/boilerplate of simple test code
11783 ac_outfile=conftest.$ac_objext
11784echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11785eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11786_lt_compiler_boilerplate=`cat conftest.err`
11787$RM conftest*
11788
11789 ac_outfile=conftest.$ac_objext
11790echo "$lt_simple_link_test_code" >conftest.$ac_ext
11791eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11792_lt_linker_boilerplate=`cat conftest.err`
6d873a38 11793$RM -r conftest*
542f9784 11794
11795
11796 # Allow CC to be a program name with arguments.
11797 lt_save_CC="$CC"
6d873a38 11798 lt_save_GCC=$GCC
542f9784 11799 CC=${FC-"f95"}
11800 compiler=$CC
6d873a38 11801 GCC=$ac_cv_fc_compiler_gnu
11802
542f9784 11803 compiler_FC=$CC
11804 for cc_temp in $compiler""; do
11805 case $cc_temp in
11806 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11807 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11808 \-*) ;;
11809 *) break;;
11810 esac
11811done
e6408286 11812cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
542f9784 11813
11814
11815 if test -n "$compiler"; then
cd9a469c 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11817$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11819$as_echo "$can_build_shared" >&6; }
542f9784 11820
cd9a469c 11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11822$as_echo_n "checking whether to build shared libraries... " >&6; }
542f9784 11823 test "$can_build_shared" = "no" && enable_shared=no
11824
11825 # On AIX, shared libraries and static libraries use the same namespace, and
11826 # are all built from PIC.
11827 case $host_os in
11828 aix3*)
11829 test "$enable_shared" = yes && enable_static=no
11830 if test -n "$RANLIB"; then
11831 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11832 postinstall_cmds='$RANLIB $lib'
11833 fi
11834 ;;
c8db569e 11835 aix[4-9]*)
542f9784 11836 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11837 test "$enable_shared" = yes && enable_static=no
11838 fi
11839 ;;
11840 esac
cd9a469c 11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11842$as_echo "$enable_shared" >&6; }
542f9784 11843
cd9a469c 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11845$as_echo_n "checking whether to build static libraries... " >&6; }
542f9784 11846 # Make sure either enable_shared or enable_static is yes.
11847 test "$enable_shared" = yes || enable_static=yes
cd9a469c 11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11849$as_echo "$enable_static" >&6; }
542f9784 11850
11851 GCC_FC="$ac_cv_fc_compiler_gnu"
11852 LD_FC="$LD"
11853
11854 ## CAVEAT EMPTOR:
11855 ## There is no encapsulation within the following macros, do not change
11856 ## the running order or otherwise move them around unless you know exactly
11857 ## what you are doing...
11858 # Dependencies to place before and after the object being linked:
11859predep_objects_FC=
11860postdep_objects_FC=
11861predeps_FC=
11862postdeps_FC=
11863compiler_lib_search_path_FC=
11864
11865cat > conftest.$ac_ext <<_LT_EOF
11866 subroutine foo
11867 implicit none
11868 integer a
11869 a=0
11870 return
11871 end
11872_LT_EOF
11873
cd9a469c 11874if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 11875 (eval $ac_compile) 2>&5
11876 ac_status=$?
cd9a469c 11877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11878 test $ac_status = 0; }; then
542f9784 11879 # Parse the compiler output and extract the necessary
11880 # objects, libraries and library flags.
11881
11882 # Sentinel used to keep track of whether or not we are before
11883 # the conftest object file.
11884 pre_test_object_deps_done=no
11885
6d873a38 11886 for p in `eval "$output_verbose_link_cmd"`; do
542f9784 11887 case $p in
11888
11889 -L* | -R* | -l*)
11890 # Some compilers place space between "-{L,R}" and the path.
11891 # Remove the space.
11892 if test $p = "-L" ||
11893 test $p = "-R"; then
11894 prev=$p
11895 continue
11896 else
11897 prev=
11898 fi
11899
11900 if test "$pre_test_object_deps_done" = no; then
11901 case $p in
11902 -L* | -R*)
11903 # Internal compiler library paths should come after those
11904 # provided the user. The postdeps already come after the
11905 # user supplied libs so there is no need to process them.
11906 if test -z "$compiler_lib_search_path_FC"; then
11907 compiler_lib_search_path_FC="${prev}${p}"
11908 else
11909 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11910 fi
11911 ;;
11912 # The "-l" case would never come before the object being
11913 # linked, so don't bother handling this case.
11914 esac
11915 else
11916 if test -z "$postdeps_FC"; then
11917 postdeps_FC="${prev}${p}"
11918 else
11919 postdeps_FC="${postdeps_FC} ${prev}${p}"
11920 fi
11921 fi
11922 ;;
11923
11924 *.$objext)
11925 # This assumes that the test object file only shows up
11926 # once in the compiler output.
11927 if test "$p" = "conftest.$objext"; then
11928 pre_test_object_deps_done=yes
11929 continue
11930 fi
11931
11932 if test "$pre_test_object_deps_done" = no; then
11933 if test -z "$predep_objects_FC"; then
11934 predep_objects_FC="$p"
11935 else
11936 predep_objects_FC="$predep_objects_FC $p"
11937 fi
11938 else
11939 if test -z "$postdep_objects_FC"; then
11940 postdep_objects_FC="$p"
11941 else
11942 postdep_objects_FC="$postdep_objects_FC $p"
11943 fi
11944 fi
11945 ;;
11946
11947 *) ;; # Ignore the rest.
11948
11949 esac
11950 done
11951
11952 # Clean up.
11953 rm -f a.out a.exe
11954else
11955 echo "libtool.m4: error: problem compiling FC test program"
11956fi
11957
11958$RM -f confest.$objext
11959
11960# PORTME: override above test on systems where it is broken
11961
11962
11963case " $postdeps_FC " in
11964*" -lc "*) archive_cmds_need_lc_FC=no ;;
11965esac
6d873a38 11966 compiler_lib_search_dirs_FC=
11967if test -n "${compiler_lib_search_path_FC}"; then
11968 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11969fi
11970
11971
11972
11973
11974
542f9784 11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001 lt_prog_compiler_wl_FC=
12002lt_prog_compiler_pic_FC=
12003lt_prog_compiler_static_FC=
12004
cd9a469c 12005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12006$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
542f9784 12007
12008 if test "$GCC" = yes; then
12009 lt_prog_compiler_wl_FC='-Wl,'
12010 lt_prog_compiler_static_FC='-static'
12011
12012 case $host_os in
12013 aix*)
12014 # All AIX code is PIC.
12015 if test "$host_cpu" = ia64; then
12016 # AIX 5 now supports IA64 processor
12017 lt_prog_compiler_static_FC='-Bstatic'
12018 fi
33cbbd54 12019 lt_prog_compiler_pic_FC='-fPIC'
542f9784 12020 ;;
12021
12022 amigaos*)
6d873a38 12023 case $host_cpu in
12024 powerpc)
12025 # see comment about AmigaOS4 .so support
12026 lt_prog_compiler_pic_FC='-fPIC'
12027 ;;
12028 m68k)
12029 # FIXME: we need at least 68020 code to build shared libraries, but
12030 # adding the `-m68020' flag to GCC prevents building anything better,
12031 # like `-m68040'.
12032 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12033 ;;
12034 esac
542f9784 12035 ;;
12036
12037 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12038 # PIC is the default for these OSes.
12039 ;;
12040
6d873a38 12041 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 12042 # This hack is so that the source file can tell whether it is being
12043 # built for inclusion in a dll (and should export symbols for example).
12044 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12045 # (--disable-auto-import) libraries
12046 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12047 ;;
12048
12049 darwin* | rhapsody*)
12050 # PIC is the default on this platform
12051 # Common symbols not allowed in MH_DYLIB files
12052 lt_prog_compiler_pic_FC='-fno-common'
12053 ;;
12054
e6408286 12055 haiku*)
12056 # PIC is the default for Haiku.
12057 # The "-static" flag exists, but is broken.
12058 lt_prog_compiler_static_FC=
12059 ;;
12060
542f9784 12061 hpux*)
6d873a38 12062 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12063 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12064 # sets the default TLS model and affects inlining.
542f9784 12065 case $host_cpu in
6d873a38 12066 hppa*64*)
542f9784 12067 # +Z the default
12068 ;;
12069 *)
12070 lt_prog_compiler_pic_FC='-fPIC'
12071 ;;
12072 esac
12073 ;;
12074
12075 interix[3-9]*)
12076 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12077 # Instead, we relocate shared libraries at runtime.
12078 ;;
12079
12080 msdosdjgpp*)
12081 # Just because we use GCC doesn't mean we suddenly get shared libraries
12082 # on systems that don't support them.
12083 lt_prog_compiler_can_build_shared_FC=no
12084 enable_shared=no
12085 ;;
12086
12087 *nto* | *qnx*)
12088 # QNX uses GNU C++, but need to define -shared option too, otherwise
12089 # it will coredump.
12090 lt_prog_compiler_pic_FC='-fPIC -shared'
12091 ;;
12092
12093 sysv4*MP*)
12094 if test -d /usr/nec; then
12095 lt_prog_compiler_pic_FC=-Kconform_pic
12096 fi
12097 ;;
12098
12099 *)
12100 lt_prog_compiler_pic_FC='-fPIC'
12101 ;;
12102 esac
e6408286 12103
12104 case $cc_basename in
12105 nvcc*) # Cuda Compiler Driver 2.2
12106 lt_prog_compiler_wl_FC='-Xlinker '
12107 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12108 ;;
12109 esac
542f9784 12110 else
12111 # PORTME Check for flag to pass linker flags through the system compiler.
12112 case $host_os in
12113 aix*)
12114 lt_prog_compiler_wl_FC='-Wl,'
12115 if test "$host_cpu" = ia64; then
12116 # AIX 5 now supports IA64 processor
12117 lt_prog_compiler_static_FC='-Bstatic'
12118 else
12119 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12120 fi
12121 ;;
542f9784 12122
6d873a38 12123 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 12124 # This hack is so that the source file can tell whether it is being
12125 # built for inclusion in a dll (and should export symbols for example).
12126 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12127 ;;
12128
12129 hpux9* | hpux10* | hpux11*)
12130 lt_prog_compiler_wl_FC='-Wl,'
12131 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12132 # not for PA HP-UX.
12133 case $host_cpu in
12134 hppa*64*|ia64*)
12135 # +Z the default
12136 ;;
12137 *)
12138 lt_prog_compiler_pic_FC='+Z'
12139 ;;
12140 esac
12141 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12142 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12143 ;;
12144
12145 irix5* | irix6* | nonstopux*)
12146 lt_prog_compiler_wl_FC='-Wl,'
12147 # PIC (with -KPIC) is the default.
12148 lt_prog_compiler_static_FC='-non_shared'
12149 ;;
12150
9af964d4 12151 linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 12152 case $cc_basename in
6d873a38 12153 # old Intel for x86_64 which still supported -KPIC.
12154 ecc*)
542f9784 12155 lt_prog_compiler_wl_FC='-Wl,'
12156 lt_prog_compiler_pic_FC='-KPIC'
12157 lt_prog_compiler_static_FC='-static'
12158 ;;
6d873a38 12159 # icc used to be incompatible with GCC.
12160 # ICC 10 doesn't accept -KPIC any more.
12161 icc* | ifort*)
12162 lt_prog_compiler_wl_FC='-Wl,'
12163 lt_prog_compiler_pic_FC='-fPIC'
12164 lt_prog_compiler_static_FC='-static'
12165 ;;
12166 # Lahey Fortran 8.1.
12167 lf95*)
12168 lt_prog_compiler_wl_FC='-Wl,'
12169 lt_prog_compiler_pic_FC='--shared'
12170 lt_prog_compiler_static_FC='--static'
12171 ;;
e6408286 12172 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
542f9784 12173 # Portland Group compilers (*not* the Pentium gcc compiler,
12174 # which looks to be a dead project)
12175 lt_prog_compiler_wl_FC='-Wl,'
12176 lt_prog_compiler_pic_FC='-fpic'
12177 lt_prog_compiler_static_FC='-Bstatic'
12178 ;;
12179 ccc*)
12180 lt_prog_compiler_wl_FC='-Wl,'
12181 # All Alpha code is PIC.
12182 lt_prog_compiler_static_FC='-non_shared'
12183 ;;
e6408286 12184 xl* | bgxl* | bgf* | mpixl*)
12185 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
6d873a38 12186 lt_prog_compiler_wl_FC='-Wl,'
12187 lt_prog_compiler_pic_FC='-qpic'
12188 lt_prog_compiler_static_FC='-qstaticlink'
12189 ;;
542f9784 12190 *)
12191 case `$CC -V 2>&1 | sed 5q` in
e6408286 12192 *Sun\ F* | *Sun*Fortran*)
12193 # Sun Fortran 8.3 passes all unrecognized flags to the linker
542f9784 12194 lt_prog_compiler_pic_FC='-KPIC'
12195 lt_prog_compiler_static_FC='-Bstatic'
e6408286 12196 lt_prog_compiler_wl_FC=''
542f9784 12197 ;;
e6408286 12198 *Sun\ C*)
12199 # Sun C 5.9
542f9784 12200 lt_prog_compiler_pic_FC='-KPIC'
12201 lt_prog_compiler_static_FC='-Bstatic'
e6408286 12202 lt_prog_compiler_wl_FC='-Wl,'
542f9784 12203 ;;
12204 esac
12205 ;;
12206 esac
12207 ;;
12208
12209 newsos6)
12210 lt_prog_compiler_pic_FC='-KPIC'
12211 lt_prog_compiler_static_FC='-Bstatic'
12212 ;;
12213
12214 *nto* | *qnx*)
12215 # QNX uses GNU C++, but need to define -shared option too, otherwise
12216 # it will coredump.
12217 lt_prog_compiler_pic_FC='-fPIC -shared'
12218 ;;
12219
12220 osf3* | osf4* | osf5*)
12221 lt_prog_compiler_wl_FC='-Wl,'
12222 # All OSF/1 code is PIC.
12223 lt_prog_compiler_static_FC='-non_shared'
12224 ;;
12225
12226 rdos*)
12227 lt_prog_compiler_static_FC='-non_shared'
12228 ;;
12229
12230 solaris*)
12231 lt_prog_compiler_pic_FC='-KPIC'
12232 lt_prog_compiler_static_FC='-Bstatic'
12233 case $cc_basename in
12234 f77* | f90* | f95*)
12235 lt_prog_compiler_wl_FC='-Qoption ld ';;
12236 *)
12237 lt_prog_compiler_wl_FC='-Wl,';;
12238 esac
12239 ;;
12240
12241 sunos4*)
12242 lt_prog_compiler_wl_FC='-Qoption ld '
12243 lt_prog_compiler_pic_FC='-PIC'
12244 lt_prog_compiler_static_FC='-Bstatic'
12245 ;;
12246
12247 sysv4 | sysv4.2uw2* | sysv4.3*)
12248 lt_prog_compiler_wl_FC='-Wl,'
12249 lt_prog_compiler_pic_FC='-KPIC'
12250 lt_prog_compiler_static_FC='-Bstatic'
12251 ;;
12252
12253 sysv4*MP*)
12254 if test -d /usr/nec ;then
12255 lt_prog_compiler_pic_FC='-Kconform_pic'
12256 lt_prog_compiler_static_FC='-Bstatic'
12257 fi
12258 ;;
12259
12260 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12261 lt_prog_compiler_wl_FC='-Wl,'
12262 lt_prog_compiler_pic_FC='-KPIC'
12263 lt_prog_compiler_static_FC='-Bstatic'
12264 ;;
12265
12266 unicos*)
12267 lt_prog_compiler_wl_FC='-Wl,'
12268 lt_prog_compiler_can_build_shared_FC=no
12269 ;;
12270
12271 uts4*)
12272 lt_prog_compiler_pic_FC='-pic'
12273 lt_prog_compiler_static_FC='-Bstatic'
12274 ;;
12275
12276 *)
12277 lt_prog_compiler_can_build_shared_FC=no
12278 ;;
12279 esac
12280 fi
12281
12282case $host_os in
12283 # For platforms which do not support PIC, -DPIC is meaningless:
12284 *djgpp*)
12285 lt_prog_compiler_pic_FC=
12286 ;;
12287 *)
12288 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12289 ;;
12290esac
cd9a469c 12291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12292$as_echo "$lt_prog_compiler_pic_FC" >&6; }
542f9784 12293
12294
12295
12296#
12297# Check to make sure the PIC flag actually works.
12298#
12299if test -n "$lt_prog_compiler_pic_FC"; then
cd9a469c 12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12301$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12302if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12303 $as_echo_n "(cached) " >&6
542f9784 12304else
6d873a38 12305 lt_cv_prog_compiler_pic_works_FC=no
542f9784 12306 ac_outfile=conftest.$ac_objext
12307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12308 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12309 # Insert the option either (1) after the last *FLAGS variable, or
12310 # (2) before a word containing "conftest.", or (3) at the end.
12311 # Note that $ac_compile itself does not contain backslashes and begins
12312 # with a dollar sign (not a hyphen), so the echo should work correctly.
12313 # The option is referenced via a variable to avoid confusing sed.
12314 lt_compile=`echo "$ac_compile" | $SED \
12315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12317 -e 's:$: $lt_compiler_flag:'`
e6408286 12318 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 12319 (eval "$lt_compile" 2>conftest.err)
12320 ac_status=$?
12321 cat conftest.err >&5
e6408286 12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 12323 if (exit $ac_status) && test -s "$ac_outfile"; then
12324 # The compiler can only warn and ignore the option if not recognized
12325 # So say no if there are warnings other than the usual output.
e6408286 12326 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 12327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12328 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6d873a38 12329 lt_cv_prog_compiler_pic_works_FC=yes
542f9784 12330 fi
12331 fi
12332 $RM conftest*
12333
12334fi
cd9a469c 12335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12336$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
542f9784 12337
6d873a38 12338if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
542f9784 12339 case $lt_prog_compiler_pic_FC in
12340 "" | " "*) ;;
12341 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12342 esac
12343else
12344 lt_prog_compiler_pic_FC=
12345 lt_prog_compiler_can_build_shared_FC=no
12346fi
12347
12348fi
12349
12350
12351
12352#
12353# Check to make sure the static flag actually works.
12354#
12355wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
cd9a469c 12356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12357$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12358if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
542f9784 12360else
6d873a38 12361 lt_cv_prog_compiler_static_works_FC=no
542f9784 12362 save_LDFLAGS="$LDFLAGS"
12363 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12364 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12365 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12366 # The linker can only warn and ignore the option if not recognized
12367 # So say no if there are warnings
12368 if test -s conftest.err; then
12369 # Append any errors to the config.log.
12370 cat conftest.err 1>&5
e6408286 12371 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
542f9784 12372 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12373 if diff conftest.exp conftest.er2 >/dev/null; then
6d873a38 12374 lt_cv_prog_compiler_static_works_FC=yes
542f9784 12375 fi
12376 else
6d873a38 12377 lt_cv_prog_compiler_static_works_FC=yes
542f9784 12378 fi
12379 fi
6d873a38 12380 $RM -r conftest*
542f9784 12381 LDFLAGS="$save_LDFLAGS"
12382
12383fi
cd9a469c 12384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12385$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
542f9784 12386
6d873a38 12387if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
542f9784 12388 :
12389else
12390 lt_prog_compiler_static_FC=
12391fi
12392
12393
12394
12395
cd9a469c 12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12397$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12398if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12399 $as_echo_n "(cached) " >&6
542f9784 12400else
12401 lt_cv_prog_compiler_c_o_FC=no
12402 $RM -r conftest 2>/dev/null
12403 mkdir conftest
12404 cd conftest
12405 mkdir out
12406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12407
12408 lt_compiler_flag="-o out/conftest2.$ac_objext"
12409 # Insert the option either (1) after the last *FLAGS variable, or
12410 # (2) before a word containing "conftest.", or (3) at the end.
12411 # Note that $ac_compile itself does not contain backslashes and begins
12412 # with a dollar sign (not a hyphen), so the echo should work correctly.
12413 lt_compile=`echo "$ac_compile" | $SED \
12414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12416 -e 's:$: $lt_compiler_flag:'`
e6408286 12417 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 12418 (eval "$lt_compile" 2>out/conftest.err)
12419 ac_status=$?
12420 cat out/conftest.err >&5
e6408286 12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 12422 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12423 then
12424 # The compiler can only warn and ignore the option if not recognized
12425 # So say no if there are warnings
e6408286 12426 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 12427 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12428 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12429 lt_cv_prog_compiler_c_o_FC=yes
12430 fi
12431 fi
12432 chmod u+w . 2>&5
12433 $RM conftest*
12434 # SGI C++ compiler will create directory out/ii_files/ for
12435 # template instantiation
12436 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12437 $RM out/* && rmdir out
12438 cd ..
12439 $RM -r conftest
12440 $RM conftest*
12441
12442fi
cd9a469c 12443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12444$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
542f9784 12445
12446
12447
cd9a469c 12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12449$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12450if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12451 $as_echo_n "(cached) " >&6
542f9784 12452else
12453 lt_cv_prog_compiler_c_o_FC=no
12454 $RM -r conftest 2>/dev/null
12455 mkdir conftest
12456 cd conftest
12457 mkdir out
12458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12459
12460 lt_compiler_flag="-o out/conftest2.$ac_objext"
12461 # Insert the option either (1) after the last *FLAGS variable, or
12462 # (2) before a word containing "conftest.", or (3) at the end.
12463 # Note that $ac_compile itself does not contain backslashes and begins
12464 # with a dollar sign (not a hyphen), so the echo should work correctly.
12465 lt_compile=`echo "$ac_compile" | $SED \
12466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12468 -e 's:$: $lt_compiler_flag:'`
e6408286 12469 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 12470 (eval "$lt_compile" 2>out/conftest.err)
12471 ac_status=$?
12472 cat out/conftest.err >&5
e6408286 12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 12474 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12475 then
12476 # The compiler can only warn and ignore the option if not recognized
12477 # So say no if there are warnings
e6408286 12478 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 12479 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12480 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12481 lt_cv_prog_compiler_c_o_FC=yes
12482 fi
12483 fi
12484 chmod u+w . 2>&5
12485 $RM conftest*
12486 # SGI C++ compiler will create directory out/ii_files/ for
12487 # template instantiation
12488 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12489 $RM out/* && rmdir out
12490 cd ..
12491 $RM -r conftest
12492 $RM conftest*
12493
12494fi
cd9a469c 12495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12496$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
542f9784 12497
12498
12499
12500
12501hard_links="nottested"
12502if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12503 # do not overwrite the value of need_locks provided by the user
cd9a469c 12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12505$as_echo_n "checking if we can lock with hard links... " >&6; }
542f9784 12506 hard_links=yes
12507 $RM conftest*
12508 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12509 touch conftest.a
12510 ln conftest.a conftest.b 2>&5 || hard_links=no
12511 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cd9a469c 12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12513$as_echo "$hard_links" >&6; }
542f9784 12514 if test "$hard_links" = no; then
cd9a469c 12515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12516$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
542f9784 12517 need_locks=warn
12518 fi
12519else
12520 need_locks=no
12521fi
12522
12523
12524
cd9a469c 12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12526$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
542f9784 12527
12528 runpath_var=
12529 allow_undefined_flag_FC=
12530 always_export_symbols_FC=no
12531 archive_cmds_FC=
12532 archive_expsym_cmds_FC=
12533 compiler_needs_object_FC=no
12534 enable_shared_with_static_runtimes_FC=no
12535 export_dynamic_flag_spec_FC=
12536 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12537 hardcode_automatic_FC=no
12538 hardcode_direct_FC=no
12539 hardcode_direct_absolute_FC=no
12540 hardcode_libdir_flag_spec_FC=
12541 hardcode_libdir_flag_spec_ld_FC=
12542 hardcode_libdir_separator_FC=
12543 hardcode_minus_L_FC=no
12544 hardcode_shlibpath_var_FC=unsupported
12545 inherit_rpath_FC=no
12546 link_all_deplibs_FC=unknown
12547 module_cmds_FC=
12548 module_expsym_cmds_FC=
12549 old_archive_from_new_cmds_FC=
12550 old_archive_from_expsyms_cmds_FC=
12551 thread_safe_flag_spec_FC=
12552 whole_archive_flag_spec_FC=
12553 # include_expsyms should be a list of space-separated symbols to be *always*
12554 # included in the symbol list
12555 include_expsyms_FC=
12556 # exclude_expsyms can be an extended regexp of symbols to exclude
12557 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12558 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12559 # as well as any symbol that contains `d'.
6d873a38 12560 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
542f9784 12561 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12562 # platforms (ab)use it in PIC code, but their linkers get confused if
12563 # the symbol is explicitly referenced. Since portable code cannot
12564 # rely on this symbol name, it's probably fine to never include it in
12565 # preloaded symbol tables.
6d873a38 12566 # Exclude shared library initialization/finalization symbols.
542f9784 12567 extract_expsyms_cmds=
12568
12569 case $host_os in
6d873a38 12570 cygwin* | mingw* | pw32* | cegcc*)
542f9784 12571 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12572 # When not using gcc, we currently assume that we are using
12573 # Microsoft Visual C++.
12574 if test "$GCC" != yes; then
12575 with_gnu_ld=no
12576 fi
12577 ;;
12578 interix*)
12579 # we just hope/assume this is gcc and not c89 (= MSVC++)
12580 with_gnu_ld=yes
12581 ;;
12582 openbsd*)
12583 with_gnu_ld=no
12584 ;;
12585 esac
12586
12587 ld_shlibs_FC=yes
e6408286 12588
12589 # On some targets, GNU ld is compatible enough with the native linker
12590 # that we're better off using the native interface for both.
12591 lt_use_gnu_ld_interface=no
542f9784 12592 if test "$with_gnu_ld" = yes; then
e6408286 12593 case $host_os in
12594 aix*)
12595 # The AIX port of GNU ld has always aspired to compatibility
12596 # with the native linker. However, as the warning in the GNU ld
12597 # block says, versions before 2.19.5* couldn't really create working
12598 # shared libraries, regardless of the interface used.
12599 case `$LD -v 2>&1` in
12600 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12601 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12602 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12603 *)
12604 lt_use_gnu_ld_interface=yes
12605 ;;
12606 esac
12607 ;;
12608 *)
12609 lt_use_gnu_ld_interface=yes
12610 ;;
12611 esac
12612 fi
12613
12614 if test "$lt_use_gnu_ld_interface" = yes; then
542f9784 12615 # If archive_cmds runs LD, not CC, wlarc should be empty
12616 wlarc='${wl}'
12617
12618 # Set some defaults for GNU ld with shared library support. These
12619 # are reset later if shared libraries are not supported. Putting them
12620 # here allows them to be overridden if necessary.
12621 runpath_var=LD_RUN_PATH
12622 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12623 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12624 # ancient GNU ld didn't support --whole-archive et. al.
12625 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12626 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12627 else
12628 whole_archive_flag_spec_FC=
12629 fi
12630 supports_anon_versioning=no
12631 case `$LD -v 2>&1` in
e6408286 12632 *GNU\ gold*) supports_anon_versioning=yes ;;
542f9784 12633 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12634 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12635 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12636 *\ 2.11.*) ;; # other 2.11 versions
12637 *) supports_anon_versioning=yes ;;
12638 esac
12639
12640 # See if GNU ld supports shared libraries.
12641 case $host_os in
c8db569e 12642 aix[3-9]*)
542f9784 12643 # On AIX/PPC, the GNU linker is very broken
12644 if test "$host_cpu" != ia64; then
12645 ld_shlibs_FC=no
12646 cat <<_LT_EOF 1>&2
12647
e6408286 12648*** Warning: the GNU linker, at least up to release 2.19, is reported
542f9784 12649*** to be unable to reliably create shared libraries on AIX.
12650*** Therefore, libtool is disabling shared libraries support. If you
e6408286 12651*** really care for shared libraries, you may want to install binutils
12652*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12653*** You will then need to restart the configuration process.
542f9784 12654
12655_LT_EOF
12656 fi
12657 ;;
12658
12659 amigaos*)
6d873a38 12660 case $host_cpu in
12661 powerpc)
12662 # see comment about AmigaOS4 .so support
12663 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12664 archive_expsym_cmds_FC=''
12665 ;;
12666 m68k)
12667 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)'
12668 hardcode_libdir_flag_spec_FC='-L$libdir'
12669 hardcode_minus_L_FC=yes
12670 ;;
12671 esac
542f9784 12672 ;;
12673
12674 beos*)
12675 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12676 allow_undefined_flag_FC=unsupported
12677 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12678 # support --undefined. This deserves some investigation. FIXME
12679 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12680 else
12681 ld_shlibs_FC=no
12682 fi
12683 ;;
12684
6d873a38 12685 cygwin* | mingw* | pw32* | cegcc*)
542f9784 12686 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12687 # as there is no search path for DLLs.
12688 hardcode_libdir_flag_spec_FC='-L$libdir'
e6408286 12689 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
542f9784 12690 allow_undefined_flag_FC=unsupported
12691 always_export_symbols_FC=no
12692 enable_shared_with_static_runtimes_FC=yes
12693 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12694
12695 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12696 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12697 # If the export-symbols file already is a .def file (1st line
12698 # is EXPORTS), use it as is; otherwise, prepend...
12699 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12700 cp $export_symbols $output_objdir/$soname.def;
12701 else
12702 echo EXPORTS > $output_objdir/$soname.def;
12703 cat $export_symbols >> $output_objdir/$soname.def;
12704 fi~
12705 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12706 else
12707 ld_shlibs_FC=no
12708 fi
12709 ;;
12710
e6408286 12711 haiku*)
12712 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12713 link_all_deplibs_FC=yes
12714 ;;
12715
542f9784 12716 interix[3-9]*)
12717 hardcode_direct_FC=no
12718 hardcode_shlibpath_var_FC=no
12719 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12720 export_dynamic_flag_spec_FC='${wl}-E'
12721 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12722 # Instead, shared libraries are loaded at an image base (0x10000000 by
12723 # default) and relocated if they conflict, which is a slow very memory
12724 # consuming and fragmenting process. To avoid this, we pick a random,
12725 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12726 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12727 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'
12728 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'
12729 ;;
12730
9af964d4 12731 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 12732 tmp_diet=no
12733 if test "$host_os" = linux-dietlibc; then
12734 case $cc_basename in
12735 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12736 esac
12737 fi
12738 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12739 && test "$tmp_diet" = no
12740 then
12741 tmp_addflag=
6d873a38 12742 tmp_sharedflag='-shared'
542f9784 12743 case $cc_basename,$host_cpu in
12744 pgcc*) # Portland Group C compiler
e6408286 12745 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 12746 tmp_addflag=' $pic_flag'
12747 ;;
e6408286 12748 pgf77* | pgf90* | pgf95* | pgfortran*)
12749 # Portland Group f77 and f90 compilers
12750 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 12751 tmp_addflag=' $pic_flag -Mnomain' ;;
12752 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12753 tmp_addflag=' -i_dynamic' ;;
12754 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12755 tmp_addflag=' -i_dynamic -nofor_main' ;;
12756 ifc* | ifort*) # Intel Fortran compiler
12757 tmp_addflag=' -nofor_main' ;;
6d873a38 12758 lf95*) # Lahey Fortran 8.1
12759 whole_archive_flag_spec_FC=
12760 tmp_sharedflag='--shared' ;;
e6408286 12761 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
6d873a38 12762 tmp_sharedflag='-qmkshrobj'
12763 tmp_addflag= ;;
e6408286 12764 nvcc*) # Cuda Compiler Driver 2.2
12765 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'
12766 compiler_needs_object_FC=yes
12767 ;;
542f9784 12768 esac
12769 case `$CC -V 2>&1 | sed 5q` in
12770 *Sun\ C*) # Sun C 5.9
e6408286 12771 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 12772 compiler_needs_object_FC=yes
12773 tmp_sharedflag='-G' ;;
12774 *Sun\ F*) # Sun Fortran 8.3
12775 tmp_sharedflag='-G' ;;
542f9784 12776 esac
12777 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12778
12779 if test "x$supports_anon_versioning" = xyes; then
12780 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12782 echo "local: *; };" >> $output_objdir/$libname.ver~
12783 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12784 fi
6d873a38 12785
12786 case $cc_basename in
e6408286 12787 xlf* | bgf* | bgxlf* | mpixlf*)
6d873a38 12788 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12789 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12790 hardcode_libdir_flag_spec_FC=
12791 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12792 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12793 if test "x$supports_anon_versioning" = xyes; then
12794 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12796 echo "local: *; };" >> $output_objdir/$libname.ver~
12797 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12798 fi
12799 ;;
12800 esac
542f9784 12801 else
12802 ld_shlibs_FC=no
12803 fi
12804 ;;
12805
12806 netbsd*)
12807 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12808 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12809 wlarc=
12810 else
12811 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12812 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12813 fi
12814 ;;
12815
12816 solaris*)
12817 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12818 ld_shlibs_FC=no
12819 cat <<_LT_EOF 1>&2
12820
12821*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12822*** create shared libraries on Solaris systems. Therefore, libtool
12823*** is disabling shared libraries support. We urge you to upgrade GNU
12824*** binutils to release 2.9.1 or newer. Another option is to modify
12825*** your PATH or compiler configuration so that the native linker is
12826*** used, and then restart.
12827
12828_LT_EOF
12829 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12830 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12831 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12832 else
12833 ld_shlibs_FC=no
12834 fi
12835 ;;
12836
12837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12838 case `$LD -v 2>&1` in
12839 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12840 ld_shlibs_FC=no
12841 cat <<_LT_EOF 1>&2
12842
12843*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12844*** reliably create shared libraries on SCO systems. Therefore, libtool
12845*** is disabling shared libraries support. We urge you to upgrade GNU
12846*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12847*** your PATH or compiler configuration so that the native linker is
12848*** used, and then restart.
12849
12850_LT_EOF
12851 ;;
12852 *)
12853 # For security reasons, it is highly recommended that you always
12854 # use absolute paths for naming shared libraries, and exclude the
12855 # DT_RUNPATH tag from executables and libraries. But doing so
12856 # requires that you compile everything twice, which is a pain.
12857 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12858 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12859 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12860 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12861 else
12862 ld_shlibs_FC=no
12863 fi
12864 ;;
12865 esac
12866 ;;
12867
12868 sunos4*)
12869 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12870 wlarc=
12871 hardcode_direct_FC=yes
12872 hardcode_shlibpath_var_FC=no
12873 ;;
12874
12875 *)
12876 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12877 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12878 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12879 else
12880 ld_shlibs_FC=no
12881 fi
12882 ;;
12883 esac
12884
12885 if test "$ld_shlibs_FC" = no; then
12886 runpath_var=
12887 hardcode_libdir_flag_spec_FC=
12888 export_dynamic_flag_spec_FC=
12889 whole_archive_flag_spec_FC=
12890 fi
12891 else
12892 # PORTME fill in a description of your system's linker (not GNU ld)
12893 case $host_os in
12894 aix3*)
12895 allow_undefined_flag_FC=unsupported
12896 always_export_symbols_FC=yes
12897 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'
12898 # Note: this linker hardcodes the directories in LIBPATH if there
12899 # are no directories specified by -L.
12900 hardcode_minus_L_FC=yes
12901 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12902 # Neither direct hardcoding nor static linking is supported with a
12903 # broken collect2.
12904 hardcode_direct_FC=unsupported
12905 fi
12906 ;;
12907
c8db569e 12908 aix[4-9]*)
542f9784 12909 if test "$host_cpu" = ia64; then
12910 # On IA64, the linker does run time linking by default, so we don't
12911 # have to do anything special.
12912 aix_use_runtimelinking=no
12913 exp_sym_flag='-Bexport'
12914 no_entry_flag=""
12915 else
12916 # If we're using GNU nm, then we don't want the "-C" option.
12917 # -C means demangle to AIX nm, but means don't demangle with GNU nm
e6408286 12918 # Also, AIX nm treats weak defined symbols like other global
12919 # defined symbols, whereas GNU nm marks them as "W".
542f9784 12920 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
e6408286 12921 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 12922 else
12923 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'
12924 fi
12925 aix_use_runtimelinking=no
12926
12927 # Test if we are trying to use run time linking or normal
12928 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12929 # need to do runtime linking.
c8db569e 12930 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 12931 for ld_flag in $LDFLAGS; do
12932 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12933 aix_use_runtimelinking=yes
12934 break
12935 fi
12936 done
12937 ;;
12938 esac
12939
12940 exp_sym_flag='-bexport'
12941 no_entry_flag='-bnoentry'
12942 fi
12943
12944 # When large executables or shared objects are built, AIX ld can
12945 # have problems creating the table of contents. If linking a library
12946 # or program results in "error TOC overflow" add -mminimal-toc to
12947 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12948 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12949
12950 archive_cmds_FC=''
12951 hardcode_direct_FC=yes
12952 hardcode_direct_absolute_FC=yes
12953 hardcode_libdir_separator_FC=':'
12954 link_all_deplibs_FC=yes
12955 file_list_spec_FC='${wl}-f,'
12956
12957 if test "$GCC" = yes; then
12958 case $host_os in aix4.[012]|aix4.[012].*)
12959 # We only want to do this on AIX 4.2 and lower, the check
12960 # below for broken collect2 doesn't work under 4.3+
12961 collect2name=`${CC} -print-prog-name=collect2`
12962 if test -f "$collect2name" &&
12963 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12964 then
12965 # We have reworked collect2
12966 :
12967 else
12968 # We have old collect2
12969 hardcode_direct_FC=unsupported
12970 # It fails to find uninstalled libraries when the uninstalled
12971 # path is not listed in the libpath. Setting hardcode_minus_L
12972 # to unsupported forces relinking
12973 hardcode_minus_L_FC=yes
12974 hardcode_libdir_flag_spec_FC='-L$libdir'
12975 hardcode_libdir_separator_FC=
12976 fi
12977 ;;
12978 esac
12979 shared_flag='-shared'
12980 if test "$aix_use_runtimelinking" = yes; then
12981 shared_flag="$shared_flag "'${wl}-G'
12982 fi
12983 else
12984 # not using gcc
12985 if test "$host_cpu" = ia64; then
12986 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12987 # chokes on -Wl,-G. The following line is correct:
12988 shared_flag='-G'
12989 else
12990 if test "$aix_use_runtimelinking" = yes; then
12991 shared_flag='${wl}-G'
12992 else
12993 shared_flag='${wl}-bM:SRE'
12994 fi
12995 fi
12996 fi
12997
6d873a38 12998 export_dynamic_flag_spec_FC='${wl}-bexpall'
542f9784 12999 # It seems that -bexpall does not export symbols beginning with
13000 # underscore (_), so it is better to generate a list of symbols to export.
13001 always_export_symbols_FC=yes
13002 if test "$aix_use_runtimelinking" = yes; then
13003 # Warning - without using the other runtime loading flags (-brtl),
13004 # -berok will link without error, but may produce a broken library.
13005 allow_undefined_flag_FC='-berok'
13006 # Determine the default libpath from the value encoded in an
13007 # empty executable.
cd9a469c 13008 cat > conftest.$ac_ext <<_ACEOF
542f9784 13009 program main
13010
13011 end
13012_ACEOF
cd9a469c 13013if ac_fn_fc_try_link "$LINENO"; then :
542f9784 13014
13015lt_aix_libpath_sed='
13016 /Import File Strings/,/^$/ {
13017 /^0/ {
13018 s/^0 *\(.*\)$/\1/
13019 p
13020 }
13021 }'
13022aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13023# Check for a 64-bit object if we didn't find anything.
13024if test -z "$aix_libpath"; then
13025 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13026fi
542f9784 13027fi
cd9a469c 13028rm -f core conftest.err conftest.$ac_objext \
13029 conftest$ac_exeext conftest.$ac_ext
542f9784 13030if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13031
13032 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
e6408286 13033 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 13034 else
13035 if test "$host_cpu" = ia64; then
13036 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13037 allow_undefined_flag_FC="-z nodefs"
13038 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"
13039 else
13040 # Determine the default libpath from the value encoded in an
13041 # empty executable.
cd9a469c 13042 cat > conftest.$ac_ext <<_ACEOF
542f9784 13043 program main
13044
13045 end
13046_ACEOF
cd9a469c 13047if ac_fn_fc_try_link "$LINENO"; then :
542f9784 13048
13049lt_aix_libpath_sed='
13050 /Import File Strings/,/^$/ {
13051 /^0/ {
13052 s/^0 *\(.*\)$/\1/
13053 p
13054 }
13055 }'
13056aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13057# Check for a 64-bit object if we didn't find anything.
13058if test -z "$aix_libpath"; then
13059 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13060fi
542f9784 13061fi
cd9a469c 13062rm -f core conftest.err conftest.$ac_objext \
13063 conftest$ac_exeext conftest.$ac_ext
542f9784 13064if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13065
13066 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13067 # Warning - without using the other run time loading flags,
13068 # -berok will link without error, but may produce a broken library.
13069 no_undefined_flag_FC=' ${wl}-bernotok'
13070 allow_undefined_flag_FC=' ${wl}-berok'
e6408286 13071 if test "$with_gnu_ld" = yes; then
13072 # We only use this code for GNU lds that support --whole-archive.
13073 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13074 else
13075 # Exported symbols can be pulled into shared objects from archives
13076 whole_archive_flag_spec_FC='$convenience'
13077 fi
542f9784 13078 archive_cmds_need_lc_FC=yes
13079 # This is similar to how AIX traditionally builds its shared libraries.
13080 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'
13081 fi
13082 fi
1e8e9920 13083 ;;
542f9784 13084
13085 amigaos*)
6d873a38 13086 case $host_cpu in
13087 powerpc)
13088 # see comment about AmigaOS4 .so support
13089 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13090 archive_expsym_cmds_FC=''
13091 ;;
13092 m68k)
13093 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)'
13094 hardcode_libdir_flag_spec_FC='-L$libdir'
13095 hardcode_minus_L_FC=yes
13096 ;;
13097 esac
1e8e9920 13098 ;;
542f9784 13099
13100 bsdi[45]*)
13101 export_dynamic_flag_spec_FC=-rdynamic
1e8e9920 13102 ;;
542f9784 13103
6d873a38 13104 cygwin* | mingw* | pw32* | cegcc*)
542f9784 13105 # When not using gcc, we currently assume that we are using
13106 # Microsoft Visual C++.
13107 # hardcode_libdir_flag_spec is actually meaningless, as there is
13108 # no search path for DLLs.
13109 hardcode_libdir_flag_spec_FC=' '
13110 allow_undefined_flag_FC=unsupported
13111 # Tell ltmain to make .lib files, not .a files.
13112 libext=lib
13113 # Tell ltmain to make .dll files, not .so files.
13114 shrext_cmds=".dll"
13115 # FIXME: Setting linknames here is a bad hack.
e6408286 13116 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
542f9784 13117 # The linker will automatically build a .lib file if we build a DLL.
13118 old_archive_from_new_cmds_FC='true'
13119 # FIXME: Should let the user specify the lib program.
13120 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13121 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13122 enable_shared_with_static_runtimes_FC=yes
1e8e9920 13123 ;;
542f9784 13124
13125 darwin* | rhapsody*)
542f9784 13126
6d873a38 13127
13128 archive_cmds_need_lc_FC=no
13129 hardcode_direct_FC=no
13130 hardcode_automatic_FC=yes
13131 hardcode_shlibpath_var_FC=unsupported
e6408286 13132 if test "$lt_cv_ld_force_load" = "yes"; then
13133 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\"`'
13134 else
13135 whole_archive_flag_spec_FC=''
13136 fi
6d873a38 13137 link_all_deplibs_FC=yes
13138 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13139 case $cc_basename in
13140 ifort*) _lt_dar_can_shared=yes ;;
13141 *) _lt_dar_can_shared=$GCC ;;
13142 esac
13143 if test "$_lt_dar_can_shared" = "yes"; then
e6408286 13144 output_verbose_link_cmd=func_echo_all
6d873a38 13145 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}"
13146 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13147 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}"
13148 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}"
13149
13150 else
13151 ld_shlibs_FC=no
13152 fi
13153
1e8e9920 13154 ;;
542f9784 13155
13156 dgux*)
13157 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13158 hardcode_libdir_flag_spec_FC='-L$libdir'
13159 hardcode_shlibpath_var_FC=no
1e8e9920 13160 ;;
1e8e9920 13161
542f9784 13162 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13163 # support. Future versions do this automatically, but an explicit c++rt0.o
13164 # does not break anything, and helps significantly (at the cost of a little
13165 # extra space).
13166 freebsd2.2*)
13167 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13168 hardcode_libdir_flag_spec_FC='-R$libdir'
13169 hardcode_direct_FC=yes
13170 hardcode_shlibpath_var_FC=no
1e8e9920 13171 ;;
1e8e9920 13172
542f9784 13173 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
30369aff 13174 freebsd2.*)
542f9784 13175 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13176 hardcode_direct_FC=yes
13177 hardcode_minus_L_FC=yes
13178 hardcode_shlibpath_var_FC=no
13179 ;;
13180
13181 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13182 freebsd* | dragonfly*)
13183 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13184 hardcode_libdir_flag_spec_FC='-R$libdir'
13185 hardcode_direct_FC=yes
13186 hardcode_shlibpath_var_FC=no
13187 ;;
13188
13189 hpux9*)
13190 if test "$GCC" = yes; then
13191 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'
13192 else
13193 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'
13194 fi
13195 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13196 hardcode_libdir_separator_FC=:
13197 hardcode_direct_FC=yes
13198
13199 # hardcode_minus_L: Not really in the search PATH,
13200 # but as the default location of the library.
13201 hardcode_minus_L_FC=yes
13202 export_dynamic_flag_spec_FC='${wl}-E'
13203 ;;
13204
13205 hpux10*)
e6408286 13206 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 13207 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13208 else
13209 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13210 fi
13211 if test "$with_gnu_ld" = no; then
13212 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13213 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13214 hardcode_libdir_separator_FC=:
13215 hardcode_direct_FC=yes
13216 hardcode_direct_absolute_FC=yes
13217 export_dynamic_flag_spec_FC='${wl}-E'
13218 # hardcode_minus_L: Not really in the search PATH,
13219 # but as the default location of the library.
13220 hardcode_minus_L_FC=yes
13221 fi
13222 ;;
13223
13224 hpux11*)
e6408286 13225 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 13226 case $host_cpu in
13227 hppa*64*)
13228 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13229 ;;
13230 ia64*)
6d873a38 13231 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
542f9784 13232 ;;
13233 *)
13234 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13235 ;;
13236 esac
13237 else
13238 case $host_cpu in
13239 hppa*64*)
13240 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13241 ;;
13242 ia64*)
13243 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13244 ;;
13245 *)
e6408286 13246 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
542f9784 13247 ;;
13248 esac
13249 fi
13250 if test "$with_gnu_ld" = no; then
13251 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13252 hardcode_libdir_separator_FC=:
13253
13254 case $host_cpu in
13255 hppa*64*|ia64*)
13256 hardcode_direct_FC=no
13257 hardcode_shlibpath_var_FC=no
13258 ;;
13259 *)
13260 hardcode_direct_FC=yes
13261 hardcode_direct_absolute_FC=yes
13262 export_dynamic_flag_spec_FC='${wl}-E'
13263
13264 # hardcode_minus_L: Not really in the search PATH,
13265 # but as the default location of the library.
13266 hardcode_minus_L_FC=yes
13267 ;;
13268 esac
13269 fi
13270 ;;
13271
13272 irix5* | irix6* | nonstopux*)
13273 if test "$GCC" = yes; then
e6408286 13274 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 13275 # Try to use the -exported_symbol ld option, if it does not
13276 # work, assume that -exports_file does not work either and
13277 # implicitly export all symbols.
13278 save_LDFLAGS="$LDFLAGS"
13279 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cd9a469c 13280 cat > conftest.$ac_ext <<_ACEOF
542f9784 13281int foo(void) {}
13282_ACEOF
cd9a469c 13283if ac_fn_fc_try_link "$LINENO"; then :
e6408286 13284 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 13285
542f9784 13286fi
cd9a469c 13287rm -f core conftest.err conftest.$ac_objext \
13288 conftest$ac_exeext conftest.$ac_ext
542f9784 13289 LDFLAGS="$save_LDFLAGS"
13290 else
e6408286 13291 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'
13292 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 13293 fi
13294 archive_cmds_need_lc_FC='no'
13295 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13296 hardcode_libdir_separator_FC=:
13297 inherit_rpath_FC=yes
13298 link_all_deplibs_FC=yes
13299 ;;
13300
13301 netbsd*)
13302 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13303 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13304 else
13305 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13306 fi
13307 hardcode_libdir_flag_spec_FC='-R$libdir'
13308 hardcode_direct_FC=yes
13309 hardcode_shlibpath_var_FC=no
13310 ;;
13311
13312 newsos6)
13313 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13314 hardcode_direct_FC=yes
13315 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13316 hardcode_libdir_separator_FC=:
13317 hardcode_shlibpath_var_FC=no
13318 ;;
13319
13320 *nto* | *qnx*)
13321 ;;
13322
13323 openbsd*)
6d873a38 13324 if test -f /usr/libexec/ld.so; then
13325 hardcode_direct_FC=yes
13326 hardcode_shlibpath_var_FC=no
13327 hardcode_direct_absolute_FC=yes
13328 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
542f9784 13329 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6d873a38 13330 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
542f9784 13331 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
6d873a38 13332 export_dynamic_flag_spec_FC='${wl}-E'
13333 else
13334 case $host_os in
13335 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13336 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13337 hardcode_libdir_flag_spec_FC='-R$libdir'
13338 ;;
13339 *)
13340 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13341 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13342 ;;
13343 esac
13344 fi
13345 else
13346 ld_shlibs_FC=no
542f9784 13347 fi
13348 ;;
13349
13350 os2*)
13351 hardcode_libdir_flag_spec_FC='-L$libdir'
13352 hardcode_minus_L_FC=yes
13353 allow_undefined_flag_FC=unsupported
e6408286 13354 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 13355 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13356 ;;
13357
13358 osf3*)
13359 if test "$GCC" = yes; then
13360 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
e6408286 13361 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 13362 else
13363 allow_undefined_flag_FC=' -expect_unresolved \*'
e6408286 13364 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 13365 fi
13366 archive_cmds_need_lc_FC='no'
13367 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13368 hardcode_libdir_separator_FC=:
13369 ;;
13370
13371 osf4* | osf5*) # as osf3* with the addition of -msym flag
13372 if test "$GCC" = yes; then
13373 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
e6408286 13374 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 13375 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13376 else
13377 allow_undefined_flag_FC=' -expect_unresolved \*'
e6408286 13378 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 13379 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 13380 $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 13381
13382 # Both c and cxx compiler support -rpath directly
13383 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13384 fi
13385 archive_cmds_need_lc_FC='no'
13386 hardcode_libdir_separator_FC=:
13387 ;;
13388
13389 solaris*)
13390 no_undefined_flag_FC=' -z defs'
13391 if test "$GCC" = yes; then
13392 wlarc='${wl}'
13393 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13394 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13395 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13396 else
13397 case `$CC -V 2>&1` in
13398 *"Compilers 5.0"*)
13399 wlarc=''
13400 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13401 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13402 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13403 ;;
13404 *)
13405 wlarc='${wl}'
13406 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13407 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13408 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13409 ;;
13410 esac
13411 fi
13412 hardcode_libdir_flag_spec_FC='-R$libdir'
13413 hardcode_shlibpath_var_FC=no
13414 case $host_os in
13415 solaris2.[0-5] | solaris2.[0-5].*) ;;
13416 *)
13417 # The compiler driver will combine and reorder linker options,
13418 # but understands `-z linker_flag'. GCC discards it without `$wl',
13419 # but is careful enough not to reorder.
13420 # Supported since Solaris 2.6 (maybe 2.5.1?)
13421 if test "$GCC" = yes; then
13422 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13423 else
13424 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13425 fi
13426 ;;
13427 esac
13428 link_all_deplibs_FC=yes
13429 ;;
13430
13431 sunos4*)
13432 if test "x$host_vendor" = xsequent; then
13433 # Use $CC to link under sequent, because it throws in some extra .o
13434 # files that make .init and .fini sections work.
13435 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13436 else
13437 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13438 fi
13439 hardcode_libdir_flag_spec_FC='-L$libdir'
13440 hardcode_direct_FC=yes
13441 hardcode_minus_L_FC=yes
13442 hardcode_shlibpath_var_FC=no
13443 ;;
13444
13445 sysv4)
13446 case $host_vendor in
13447 sni)
13448 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13449 hardcode_direct_FC=yes # is this really true???
13450 ;;
13451 siemens)
13452 ## LD is ld it makes a PLAMLIB
13453 ## CC just makes a GrossModule.
13454 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13455 reload_cmds_FC='$CC -r -o $output$reload_objs'
13456 hardcode_direct_FC=no
13457 ;;
13458 motorola)
13459 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13460 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13461 ;;
1e8e9920 13462 esac
542f9784 13463 runpath_var='LD_RUN_PATH'
13464 hardcode_shlibpath_var_FC=no
13465 ;;
13466
13467 sysv4.3*)
13468 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13469 hardcode_shlibpath_var_FC=no
13470 export_dynamic_flag_spec_FC='-Bexport'
13471 ;;
13472
13473 sysv4*MP*)
13474 if test -d /usr/nec; then
13475 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13476 hardcode_shlibpath_var_FC=no
13477 runpath_var=LD_RUN_PATH
13478 hardcode_runpath_var=yes
13479 ld_shlibs_FC=yes
13480 fi
13481 ;;
13482
13483 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13484 no_undefined_flag_FC='${wl}-z,text'
13485 archive_cmds_need_lc_FC=no
13486 hardcode_shlibpath_var_FC=no
13487 runpath_var='LD_RUN_PATH'
13488
13489 if test "$GCC" = yes; then
13490 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13491 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13492 else
13493 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13494 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13495 fi
13496 ;;
13497
13498 sysv5* | sco3.2v5* | sco5v6*)
13499 # Note: We can NOT use -z defs as we might desire, because we do not
13500 # link with -lc, and that would cause any symbols used from libc to
13501 # always be unresolved, which means just about no library would
13502 # ever link correctly. If we're not using GNU ld we use -z text
13503 # though, which does catch some bad symbols but isn't as heavy-handed
13504 # as -z defs.
13505 no_undefined_flag_FC='${wl}-z,text'
13506 allow_undefined_flag_FC='${wl}-z,nodefs'
13507 archive_cmds_need_lc_FC=no
13508 hardcode_shlibpath_var_FC=no
13509 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13510 hardcode_libdir_separator_FC=':'
13511 link_all_deplibs_FC=yes
13512 export_dynamic_flag_spec_FC='${wl}-Bexport'
13513 runpath_var='LD_RUN_PATH'
13514
13515 if test "$GCC" = yes; then
13516 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13517 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13518 else
13519 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13520 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13521 fi
13522 ;;
13523
13524 uts4*)
13525 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13526 hardcode_libdir_flag_spec_FC='-L$libdir'
13527 hardcode_shlibpath_var_FC=no
13528 ;;
13529
13530 *)
13531 ld_shlibs_FC=no
1e8e9920 13532 ;;
542f9784 13533 esac
13534
13535 if test x$host_vendor = xsni; then
1e8e9920 13536 case $host in
542f9784 13537 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13538 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13539 ;;
1e8e9920 13540 esac
542f9784 13541 fi
1e8e9920 13542 fi
1e8e9920 13543
cd9a469c 13544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13545$as_echo "$ld_shlibs_FC" >&6; }
542f9784 13546test "$ld_shlibs_FC" = no && can_build_shared=no
1e8e9920 13547
542f9784 13548with_gnu_ld_FC=$with_gnu_ld
1e8e9920 13549
1e8e9920 13550
1e8e9920 13551
1e8e9920 13552
542f9784 13553
13554
13555#
13556# Do we need to explicitly link libc?
13557#
13558case "x$archive_cmds_need_lc_FC" in
13559x|xyes)
13560 # Assume -lc should be added
13561 archive_cmds_need_lc_FC=yes
13562
13563 if test "$enable_shared" = yes && test "$GCC" = yes; then
13564 case $archive_cmds_FC in
13565 *'~'*)
13566 # FIXME: we may have to deal with multi-command sequences.
13567 ;;
13568 '$CC '*)
13569 # Test whether the compiler implicitly links with -lc since on some
13570 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13571 # to ld, don't add -lc before -lgcc.
cd9a469c 13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13573$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13574if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13575 $as_echo_n "(cached) " >&6
9e6fd619 13576else
13577 $RM conftest*
13578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
542f9784 13579
cd9a469c 13580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 13581 (eval $ac_compile) 2>&5
1e8e9920 13582 ac_status=$?
cd9a469c 13583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13584 test $ac_status = 0; } 2>conftest.err; then
9e6fd619 13585 soname=conftest
13586 lib=conftest
13587 libobjs=conftest.$ac_objext
13588 deplibs=
13589 wl=$lt_prog_compiler_wl_FC
13590 pic_flag=$lt_prog_compiler_pic_FC
13591 compiler_flags=-v
13592 linker_flags=-v
13593 verstring=
13594 output_objdir=.
13595 libname=conftest
13596 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13597 allow_undefined_flag_FC=
cd9a469c 13598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
542f9784 13599 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1e8e9920 13600 ac_status=$?
cd9a469c 13601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13602 test $ac_status = 0; }
9e6fd619 13603 then
13604 lt_cv_archive_cmds_need_lc_FC=no
13605 else
13606 lt_cv_archive_cmds_need_lc_FC=yes
13607 fi
13608 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13609 else
13610 cat conftest.err 1>&5
13611 fi
13612 $RM conftest*
13613
13614fi
cd9a469c 13615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13616$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
9e6fd619 13617 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
542f9784 13618 ;;
13619 esac
1e8e9920 13620 fi
13621 ;;
542f9784 13622esac
13623
1e8e9920 13624
13625
1e8e9920 13626
13627
1e8e9920 13628
1e8e9920 13629
1e8e9920 13630
1e8e9920 13631
1e8e9920 13632
13633
1e8e9920 13634
1e8e9920 13635
1e8e9920 13636
13637
13638
13639
13640
13641
13642
13643
13644
a263d1ab 13645
13646
a263d1ab 13647
a263d1ab 13648
13649
13650
1e8e9920 13651
1e8e9920 13652
1e8e9920 13653
1e8e9920 13654
1e8e9920 13655
1e8e9920 13656
13657
1e8e9920 13658
1e8e9920 13659
1e8e9920 13660
1e8e9920 13661
1e8e9920 13662
1e8e9920 13663
1e8e9920 13664
542f9784 13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
cd9a469c 13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13688$as_echo_n "checking dynamic linker characteristics... " >&6; }
6d873a38 13689
542f9784 13690library_names_spec=
13691libname_spec='lib$name'
13692soname_spec=
13693shrext_cmds=".so"
13694postinstall_cmds=
13695postuninstall_cmds=
13696finish_cmds=
13697finish_eval=
13698shlibpath_var=
13699shlibpath_overrides_runpath=unknown
13700version_type=none
13701dynamic_linker="$host_os ld.so"
13702sys_lib_dlsearch_path_spec="/lib /usr/lib"
13703need_lib_prefix=unknown
13704hardcode_into_libs=no
13705
13706# when you set need_version to no, make sure it does not cause -set_version
13707# flags to be left without arguments
13708need_version=unknown
13709
13710case $host_os in
13711aix3*)
13712 version_type=linux
13713 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13714 shlibpath_var=LIBPATH
13715
13716 # AIX 3 has no versioning support, so we append a major version to the name.
13717 soname_spec='${libname}${release}${shared_ext}$major'
13718 ;;
13719
c8db569e 13720aix[4-9]*)
542f9784 13721 version_type=linux
13722 need_lib_prefix=no
13723 need_version=no
13724 hardcode_into_libs=yes
13725 if test "$host_cpu" = ia64; then
13726 # AIX 5 supports IA64
13727 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13728 shlibpath_var=LD_LIBRARY_PATH
1e8e9920 13729 else
542f9784 13730 # With GCC up to 2.95.x, collect2 would create an import file
13731 # for dependence libraries. The import file would start with
13732 # the line `#! .'. This would cause the generated library to
13733 # depend on `.', always an invalid library. This was fixed in
13734 # development snapshots of GCC prior to 3.0.
13735 case $host_os in
13736 aix4 | aix4.[01] | aix4.[01].*)
13737 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13738 echo ' yes '
13739 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13740 :
13741 else
13742 can_build_shared=no
13743 fi
13744 ;;
13745 esac
13746 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13747 # soname into executable. Probably we can add versioning support to
13748 # collect2, so additional links can be useful in future.
13749 if test "$aix_use_runtimelinking" = yes; then
13750 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13751 # instead of lib<name>.a to let people know that these are not
13752 # typical AIX shared libraries.
13753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754 else
13755 # We preserve .a as extension for shared libraries through AIX4.2
13756 # and later when we are not doing run time linking.
13757 library_names_spec='${libname}${release}.a $libname.a'
13758 soname_spec='${libname}${release}${shared_ext}$major'
13759 fi
13760 shlibpath_var=LIBPATH
1e8e9920 13761 fi
542f9784 13762 ;;
13763
13764amigaos*)
6d873a38 13765 case $host_cpu in
13766 powerpc)
13767 # Since July 2007 AmigaOS4 officially supports .so libraries.
13768 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13770 ;;
13771 m68k)
542f9784 13772 library_names_spec='$libname.ixlibrary $libname.a'
13773 # Create ${libname}_ixlibrary.a entries in /sys/libs.
e6408286 13774 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 13775 ;;
13776 esac
542f9784 13777 ;;
1e8e9920 13778
542f9784 13779beos*)
13780 library_names_spec='${libname}${shared_ext}'
13781 dynamic_linker="$host_os ld.so"
13782 shlibpath_var=LIBRARY_PATH
13783 ;;
1e8e9920 13784
542f9784 13785bsdi[45]*)
13786 version_type=linux
13787 need_version=no
13788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13789 soname_spec='${libname}${release}${shared_ext}$major'
13790 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13791 shlibpath_var=LD_LIBRARY_PATH
13792 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13793 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13794 # the default ld.so.conf also contains /usr/contrib/lib and
13795 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13796 # libtool to hard-code these into programs
13797 ;;
1e8e9920 13798
6d873a38 13799cygwin* | mingw* | pw32* | cegcc*)
542f9784 13800 version_type=windows
13801 shrext_cmds=".dll"
13802 need_version=no
13803 need_lib_prefix=no
13804
6d873a38 13805 case $GCC,$host_os in
13806 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
542f9784 13807 library_names_spec='$libname.dll.a'
13808 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13809 postinstall_cmds='base_file=`basename \${file}`~
13810 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13811 dldir=$destdir/`dirname \$dlpath`~
13812 test -d \$dldir || mkdir -p \$dldir~
13813 $install_prog $dir/$dlname \$dldir/$dlname~
13814 chmod a+x \$dldir/$dlname~
13815 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13816 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13817 fi'
13818 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13819 dlpath=$dir/\$dldll~
13820 $RM \$dlpath'
13821 shlibpath_overrides_runpath=yes
13822
13823 case $host_os in
13824 cygwin*)
13825 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13826 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
e6408286 13827
542f9784 13828 ;;
6d873a38 13829 mingw* | cegcc*)
542f9784 13830 # MinGW DLLs use traditional 'lib' prefix
13831 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
542f9784 13832 ;;
13833 pw32*)
13834 # pw32 DLLs use 'pw' prefix rather than 'lib'
13835 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13836 ;;
13837 esac
13838 ;;
1e8e9920 13839
542f9784 13840 *)
13841 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13842 ;;
13843 esac
13844 dynamic_linker='Win32 ld.exe'
13845 # FIXME: first we should search . and the directory the executable is in
13846 shlibpath_var=PATH
13847 ;;
1e8e9920 13848
542f9784 13849darwin* | rhapsody*)
13850 dynamic_linker="$host_os dyld"
13851 version_type=darwin
13852 need_lib_prefix=no
13853 need_version=no
13854 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13855 soname_spec='${libname}${release}${major}$shared_ext'
13856 shlibpath_overrides_runpath=yes
13857 shlibpath_var=DYLD_LIBRARY_PATH
13858 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13859
13860 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13861 ;;
13862
13863dgux*)
13864 version_type=linux
13865 need_lib_prefix=no
13866 need_version=no
13867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13868 soname_spec='${libname}${release}${shared_ext}$major'
13869 shlibpath_var=LD_LIBRARY_PATH
13870 ;;
13871
542f9784 13872freebsd* | dragonfly*)
13873 # DragonFly does not have aout. When/if they implement a new
13874 # versioning mechanism, adjust this.
13875 if test -x /usr/bin/objformat; then
13876 objformat=`/usr/bin/objformat`
1e8e9920 13877 else
542f9784 13878 case $host_os in
30369aff 13879 freebsd[23].*) objformat=aout ;;
542f9784 13880 *) objformat=elf ;;
13881 esac
1e8e9920 13882 fi
542f9784 13883 version_type=freebsd-$objformat
13884 case $version_type in
13885 freebsd-elf*)
13886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13887 need_version=no
13888 need_lib_prefix=no
13889 ;;
13890 freebsd-*)
13891 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13892 need_version=yes
13893 ;;
13894 esac
13895 shlibpath_var=LD_LIBRARY_PATH
13896 case $host_os in
30369aff 13897 freebsd2.*)
542f9784 13898 shlibpath_overrides_runpath=yes
13899 ;;
13900 freebsd3.[01]* | freebsdelf3.[01]*)
13901 shlibpath_overrides_runpath=yes
13902 hardcode_into_libs=yes
13903 ;;
13904 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13905 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13906 shlibpath_overrides_runpath=no
13907 hardcode_into_libs=yes
13908 ;;
13909 *) # from 4.6 on, and DragonFly
13910 shlibpath_overrides_runpath=yes
13911 hardcode_into_libs=yes
13912 ;;
13913 esac
13914 ;;
1e8e9920 13915
542f9784 13916gnu*)
13917 version_type=linux
13918 need_lib_prefix=no
13919 need_version=no
13920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13921 soname_spec='${libname}${release}${shared_ext}$major'
13922 shlibpath_var=LD_LIBRARY_PATH
13923 hardcode_into_libs=yes
13924 ;;
1e8e9920 13925
e6408286 13926haiku*)
13927 version_type=linux
13928 need_lib_prefix=no
13929 need_version=no
13930 dynamic_linker="$host_os runtime_loader"
13931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13932 soname_spec='${libname}${release}${shared_ext}$major'
13933 shlibpath_var=LIBRARY_PATH
13934 shlibpath_overrides_runpath=yes
13935 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13936 hardcode_into_libs=yes
13937 ;;
13938
542f9784 13939hpux9* | hpux10* | hpux11*)
13940 # Give a soname corresponding to the major version so that dld.sl refuses to
13941 # link against other versions.
13942 version_type=sunos
13943 need_lib_prefix=no
13944 need_version=no
13945 case $host_cpu in
13946 ia64*)
13947 shrext_cmds='.so'
13948 hardcode_into_libs=yes
13949 dynamic_linker="$host_os dld.so"
13950 shlibpath_var=LD_LIBRARY_PATH
13951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13953 soname_spec='${libname}${release}${shared_ext}$major'
13954 if test "X$HPUX_IA64_MODE" = X32; then
13955 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13956 else
13957 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13958 fi
13959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13960 ;;
13961 hppa*64*)
13962 shrext_cmds='.sl'
13963 hardcode_into_libs=yes
13964 dynamic_linker="$host_os dld.sl"
13965 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13968 soname_spec='${libname}${release}${shared_ext}$major'
13969 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13971 ;;
13972 *)
13973 shrext_cmds='.sl'
13974 dynamic_linker="$host_os dld.sl"
13975 shlibpath_var=SHLIB_PATH
13976 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13978 soname_spec='${libname}${release}${shared_ext}$major'
13979 ;;
13980 esac
e6408286 13981 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
542f9784 13982 postinstall_cmds='chmod 555 $lib'
e6408286 13983 # or fails outright, so override atomically:
13984 install_override_mode=555
542f9784 13985 ;;
13986
13987interix[3-9]*)
13988 version_type=linux
13989 need_lib_prefix=no
13990 need_version=no
13991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13992 soname_spec='${libname}${release}${shared_ext}$major'
13993 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13994 shlibpath_var=LD_LIBRARY_PATH
13995 shlibpath_overrides_runpath=no
13996 hardcode_into_libs=yes
13997 ;;
13998
13999irix5* | irix6* | nonstopux*)
14000 case $host_os in
14001 nonstopux*) version_type=nonstopux ;;
14002 *)
14003 if test "$lt_cv_prog_gnu_ld" = yes; then
14004 version_type=linux
14005 else
14006 version_type=irix
14007 fi ;;
14008 esac
14009 need_lib_prefix=no
14010 need_version=no
14011 soname_spec='${libname}${release}${shared_ext}$major'
14012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14013 case $host_os in
14014 irix5* | nonstopux*)
14015 libsuff= shlibsuff=
14016 ;;
14017 *)
14018 case $LD in # libtool.m4 will add one of these switches to LD
14019 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14020 libsuff= shlibsuff= libmagic=32-bit;;
14021 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14022 libsuff=32 shlibsuff=N32 libmagic=N32;;
14023 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14024 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14025 *) libsuff= shlibsuff= libmagic=never-match;;
14026 esac
14027 ;;
14028 esac
14029 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14030 shlibpath_overrides_runpath=no
14031 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14032 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14033 hardcode_into_libs=yes
14034 ;;
14035
14036# No shared lib support for Linux oldld, aout, or coff.
14037linux*oldld* | linux*aout* | linux*coff*)
14038 dynamic_linker=no
14039 ;;
14040
14041# This must be Linux ELF.
9af964d4 14042linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 14043 version_type=linux
14044 need_lib_prefix=no
14045 need_version=no
14046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14047 soname_spec='${libname}${release}${shared_ext}$major'
14048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14049 shlibpath_var=LD_LIBRARY_PATH
14050 shlibpath_overrides_runpath=no
9e6fd619 14051
542f9784 14052 # Some binutils ld are patched to set DT_RUNPATH
cd9a469c 14053 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14054 $as_echo_n "(cached) " >&6
9e6fd619 14055else
14056 lt_cv_shlibpath_overrides_runpath=no
14057 save_LDFLAGS=$LDFLAGS
14058 save_libdir=$libdir
14059 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14060 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
cd9a469c 14061 cat > conftest.$ac_ext <<_ACEOF
542f9784 14062 program main
14063
14064 end
1e8e9920 14065_ACEOF
cd9a469c 14066if ac_fn_fc_try_link "$LINENO"; then :
14067 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9e6fd619 14068 lt_cv_shlibpath_overrides_runpath=yes
1e8e9920 14069fi
1e8e9920 14070fi
cd9a469c 14071rm -f core conftest.err conftest.$ac_objext \
14072 conftest$ac_exeext conftest.$ac_ext
9e6fd619 14073 LDFLAGS=$save_LDFLAGS
14074 libdir=$save_libdir
14075
14076fi
14077
14078 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
542f9784 14079
14080 # This implies no fast_install, which is unacceptable.
14081 # Some rework will be needed to allow for fast_install
14082 # before this can be enabled.
14083 hardcode_into_libs=yes
14084
14085 # Append ld.so.conf contents to the search path
14086 if test -f /etc/ld.so.conf; then
e6408286 14087 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 14088 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14089 fi
1e8e9920 14090
542f9784 14091 # We used to test for /lib/ld.so.1 and disable shared libraries on
14092 # powerpc, because MkLinux only supported shared libraries with the
14093 # GNU dynamic linker. Since this was broken with cross compilers,
14094 # most powerpc-linux boxes support dynamic linking these days and
14095 # people can always --disable-shared, the test was removed, and we
14096 # assume the GNU/Linux dynamic linker is in use.
14097 dynamic_linker='GNU/Linux ld.so'
14098 ;;
1e8e9920 14099
542f9784 14100netbsd*)
14101 version_type=sunos
14102 need_lib_prefix=no
14103 need_version=no
14104 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14107 dynamic_linker='NetBSD (a.out) ld.so'
14108 else
14109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14110 soname_spec='${libname}${release}${shared_ext}$major'
14111 dynamic_linker='NetBSD ld.elf_so'
14112 fi
14113 shlibpath_var=LD_LIBRARY_PATH
14114 shlibpath_overrides_runpath=yes
14115 hardcode_into_libs=yes
14116 ;;
1e8e9920 14117
542f9784 14118newsos6)
14119 version_type=linux
14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121 shlibpath_var=LD_LIBRARY_PATH
14122 shlibpath_overrides_runpath=yes
14123 ;;
14124
14125*nto* | *qnx*)
14126 version_type=qnx
14127 need_lib_prefix=no
14128 need_version=no
14129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14130 soname_spec='${libname}${release}${shared_ext}$major'
14131 shlibpath_var=LD_LIBRARY_PATH
14132 shlibpath_overrides_runpath=no
14133 hardcode_into_libs=yes
14134 dynamic_linker='ldqnx.so'
14135 ;;
14136
14137openbsd*)
14138 version_type=sunos
14139 sys_lib_dlsearch_path_spec="/usr/lib"
14140 need_lib_prefix=no
14141 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14142 case $host_os in
14143 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14144 *) need_version=no ;;
14145 esac
14146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14148 shlibpath_var=LD_LIBRARY_PATH
14149 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14150 case $host_os in
14151 openbsd2.[89] | openbsd2.[89].*)
14152 shlibpath_overrides_runpath=no
14153 ;;
14154 *)
14155 shlibpath_overrides_runpath=yes
14156 ;;
14157 esac
1e8e9920 14158 else
542f9784 14159 shlibpath_overrides_runpath=yes
1e8e9920 14160 fi
542f9784 14161 ;;
1e8e9920 14162
542f9784 14163os2*)
14164 libname_spec='$name'
14165 shrext_cmds=".dll"
14166 need_lib_prefix=no
14167 library_names_spec='$libname${shared_ext} $libname.a'
14168 dynamic_linker='OS/2 ld.exe'
14169 shlibpath_var=LIBPATH
14170 ;;
14171
14172osf3* | osf4* | osf5*)
14173 version_type=osf
14174 need_lib_prefix=no
14175 need_version=no
14176 soname_spec='${libname}${release}${shared_ext}$major'
14177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14178 shlibpath_var=LD_LIBRARY_PATH
14179 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14180 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14181 ;;
14182
14183rdos*)
14184 dynamic_linker=no
14185 ;;
14186
14187solaris*)
14188 version_type=linux
14189 need_lib_prefix=no
14190 need_version=no
14191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14192 soname_spec='${libname}${release}${shared_ext}$major'
14193 shlibpath_var=LD_LIBRARY_PATH
14194 shlibpath_overrides_runpath=yes
14195 hardcode_into_libs=yes
14196 # ldd complains unless libraries are executable
14197 postinstall_cmds='chmod +x $lib'
14198 ;;
14199
14200sunos4*)
14201 version_type=sunos
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14203 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14204 shlibpath_var=LD_LIBRARY_PATH
14205 shlibpath_overrides_runpath=yes
14206 if test "$with_gnu_ld" = yes; then
14207 need_lib_prefix=no
14208 fi
14209 need_version=yes
14210 ;;
14211
14212sysv4 | sysv4.3*)
14213 version_type=linux
14214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14215 soname_spec='${libname}${release}${shared_ext}$major'
14216 shlibpath_var=LD_LIBRARY_PATH
14217 case $host_vendor in
14218 sni)
14219 shlibpath_overrides_runpath=no
14220 need_lib_prefix=no
14221 runpath_var=LD_RUN_PATH
14222 ;;
14223 siemens)
14224 need_lib_prefix=no
14225 ;;
14226 motorola)
14227 need_lib_prefix=no
14228 need_version=no
14229 shlibpath_overrides_runpath=no
14230 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14231 ;;
14232 esac
14233 ;;
14234
14235sysv4*MP*)
14236 if test -d /usr/nec ;then
14237 version_type=linux
14238 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14239 soname_spec='$libname${shared_ext}.$major'
14240 shlibpath_var=LD_LIBRARY_PATH
14241 fi
14242 ;;
14243
14244sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14245 version_type=freebsd-elf
14246 need_lib_prefix=no
14247 need_version=no
14248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14249 soname_spec='${libname}${release}${shared_ext}$major'
14250 shlibpath_var=LD_LIBRARY_PATH
14251 shlibpath_overrides_runpath=yes
14252 hardcode_into_libs=yes
14253 if test "$with_gnu_ld" = yes; then
14254 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14255 else
14256 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14257 case $host_os in
14258 sco3.2v5*)
14259 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14260 ;;
14261 esac
14262 fi
14263 sys_lib_dlsearch_path_spec='/usr/lib'
14264 ;;
14265
14266tpf*)
14267 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14268 version_type=linux
14269 need_lib_prefix=no
14270 need_version=no
6d873a38 14271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
542f9784 14272 shlibpath_var=LD_LIBRARY_PATH
14273 shlibpath_overrides_runpath=no
14274 hardcode_into_libs=yes
14275 ;;
14276
14277uts4*)
14278 version_type=linux
14279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14280 soname_spec='${libname}${release}${shared_ext}$major'
14281 shlibpath_var=LD_LIBRARY_PATH
14282 ;;
14283
14284*)
14285 dynamic_linker=no
14286 ;;
14287esac
cd9a469c 14288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14289$as_echo "$dynamic_linker" >&6; }
542f9784 14290test "$dynamic_linker" = no && can_build_shared=no
14291
cd9a469c 14292variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14293if test "$GCC" = yes; then
14294 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14295fi
8a75144c 14296
cd9a469c 14297if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14298 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14299fi
14300if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14301 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
8a75144c 14302fi
14303
1e8e9920 14304
14305
1e8e9920 14306
1e8e9920 14307
14308
fd6481cf 14309
fd6481cf 14310
fd6481cf 14311
1e8e9920 14312
1e8e9920 14313
1e8e9920 14314
1e8e9920 14315
1e8e9920 14316
1e8e9920 14317
1e8e9920 14318
1e8e9920 14319
1e8e9920 14320
14321
14322
14323
14324
1e8e9920 14325
1e8e9920 14326
1e8e9920 14327
1e8e9920 14328
1e8e9920 14329
14330
14331
14332
1e8e9920 14333
14334
107c3bbf 14335
e6408286 14336
14337
107c3bbf 14338
107c3bbf 14339
107c3bbf 14340
cd9a469c 14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14342$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14343hardcode_action_FC=
14344if test -n "$hardcode_libdir_flag_spec_FC" ||
14345 test -n "$runpath_var_FC" ||
14346 test "X$hardcode_automatic_FC" = "Xyes" ; then
107c3bbf 14347
cd9a469c 14348 # We can hardcode non-existent directories.
14349 if test "$hardcode_direct_FC" != no &&
14350 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14351 # have to relink, otherwise we might link with an installed library
14352 # when we should be linking with a yet-to-be-installed one
14353 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14354 test "$hardcode_minus_L_FC" != no; then
14355 # Linking always hardcodes the temporary library directory.
14356 hardcode_action_FC=relink
14357 else
14358 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14359 hardcode_action_FC=immediate
14360 fi
107c3bbf 14361else
cd9a469c 14362 # We cannot hardcode anything, or else we can only hardcode existing
14363 # directories.
14364 hardcode_action_FC=unsupported
14365fi
14366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14367$as_echo "$hardcode_action_FC" >&6; }
107c3bbf 14368
cd9a469c 14369if test "$hardcode_action_FC" = relink ||
14370 test "$inherit_rpath_FC" = yes; then
14371 # Fast installation is not supported
14372 enable_fast_install=no
14373elif test "$shlibpath_overrides_runpath" = yes ||
14374 test "$enable_shared" = no; then
14375 # Fast installation is not necessary
14376 enable_fast_install=needless
107c3bbf 14377fi
107c3bbf 14378
107c3bbf 14379
107c3bbf 14380
107c3bbf 14381
107c3bbf 14382
107c3bbf 14383
107c3bbf 14384
cd9a469c 14385 fi # test -n "$compiler"
107c3bbf 14386
cd9a469c 14387 GCC=$lt_save_GCC
14388 CC="$lt_save_CC"
14389fi # test "$_lt_disable_FC" != yes
107c3bbf 14390
cd9a469c 14391ac_ext=c
14392ac_cpp='$CPP $CPPFLAGS'
14393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14395ac_compiler_gnu=$ac_cv_c_compiler_gnu
14396
14397
87969c8c 14398FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
cd9a469c 14399
14400# For libtool versioning info, format is CURRENT:REVISION:AGE
14401libtool_VERSION=1:0:0
107c3bbf 14402
cd9a469c 14403
14404# Check header files.
14405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14406$as_echo_n "checking for ANSI C header files... " >&6; }
14407if test "${ac_cv_header_stdc+set}" = set; then :
14408 $as_echo_n "(cached) " >&6
107c3bbf 14409else
cd9a469c 14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107c3bbf 14411/* end confdefs.h. */
107c3bbf 14412#include <stdlib.h>
cd9a469c 14413#include <stdarg.h>
14414#include <string.h>
14415#include <float.h>
14416
107c3bbf 14417int
14418main ()
14419{
14420
107c3bbf 14421 ;
14422 return 0;
14423}
14424_ACEOF
cd9a469c 14425if ac_fn_c_try_compile "$LINENO"; then :
14426 ac_cv_header_stdc=yes
107c3bbf 14427else
cd9a469c 14428 ac_cv_header_stdc=no
107c3bbf 14429fi
cd9a469c 14430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
107c3bbf 14431
cd9a469c 14432if test $ac_cv_header_stdc = yes; then
14433 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107c3bbf 14435/* end confdefs.h. */
cd9a469c 14436#include <string.h>
107c3bbf 14437
107c3bbf 14438_ACEOF
cd9a469c 14439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14440 $EGREP "memchr" >/dev/null 2>&1; then :
14441
107c3bbf 14442else
cd9a469c 14443 ac_cv_header_stdc=no
14444fi
14445rm -f conftest*
107c3bbf 14446
107c3bbf 14447fi
107c3bbf 14448
cd9a469c 14449if test $ac_cv_header_stdc = yes; then
14450 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107c3bbf 14452/* end confdefs.h. */
cd9a469c 14453#include <stdlib.h>
107c3bbf 14454
107c3bbf 14455_ACEOF
cd9a469c 14456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14457 $EGREP "free" >/dev/null 2>&1; then :
14458
14459else
14460 ac_cv_header_stdc=no
14461fi
14462rm -f conftest*
14463
14464fi
14465
14466if test $ac_cv_header_stdc = yes; then
14467 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14468 if test "$cross_compiling" = yes; then :
14469 :
14470else
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107c3bbf 14472/* end confdefs.h. */
cd9a469c 14473#include <ctype.h>
14474#include <stdlib.h>
14475#if ((' ' & 0x0FF) == 0x020)
14476# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14477# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14478#else
14479# define ISLOWER(c) \
14480 (('a' <= (c) && (c) <= 'i') \
14481 || ('j' <= (c) && (c) <= 'r') \
14482 || ('s' <= (c) && (c) <= 'z'))
14483# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14484#endif
107c3bbf 14485
cd9a469c 14486#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
107c3bbf 14487int
14488main ()
14489{
cd9a469c 14490 int i;
14491 for (i = 0; i < 256; i++)
14492 if (XOR (islower (i), ISLOWER (i))
14493 || toupper (i) != TOUPPER (i))
14494 return 2;
107c3bbf 14495 return 0;
14496}
14497_ACEOF
cd9a469c 14498if ac_fn_c_try_run "$LINENO"; then :
107c3bbf 14499
107c3bbf 14500else
cd9a469c 14501 ac_cv_header_stdc=no
14502fi
14503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14504 conftest.$ac_objext conftest.beam conftest.$ac_ext
14505fi
107c3bbf 14506
107c3bbf 14507fi
107c3bbf 14508fi
cd9a469c 14509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14510$as_echo "$ac_cv_header_stdc" >&6; }
14511if test $ac_cv_header_stdc = yes; then
14512
14513$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14514
14515fi
14516
14517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14518$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14519if test "${ac_cv_header_time+set}" = set; then :
14520 $as_echo_n "(cached) " >&6
14521else
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107c3bbf 14523/* end confdefs.h. */
cd9a469c 14524#include <sys/types.h>
14525#include <sys/time.h>
14526#include <time.h>
107c3bbf 14527
14528int
14529main ()
14530{
cd9a469c 14531if ((struct tm *) 0)
14532return 0;
107c3bbf 14533 ;
14534 return 0;
14535}
14536_ACEOF
cd9a469c 14537if ac_fn_c_try_compile "$LINENO"; then :
14538 ac_cv_header_time=yes
107c3bbf 14539else
cd9a469c 14540 ac_cv_header_time=no
14541fi
14542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14543fi
14544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14545$as_echo "$ac_cv_header_time" >&6; }
14546if test $ac_cv_header_time = yes; then
14547
14548$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
107c3bbf 14549
107c3bbf 14550fi
cd9a469c 14551
14552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14553$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14554if test "${gcc_cv_header_string+set}" = set; then :
14555 $as_echo_n "(cached) " >&6
107c3bbf 14556else
cd9a469c 14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107c3bbf 14558/* end confdefs.h. */
cd9a469c 14559#include <string.h>
14560#include <strings.h>
107c3bbf 14561int
14562main ()
14563{
14564
107c3bbf 14565 ;
14566 return 0;
14567}
14568_ACEOF
cd9a469c 14569if ac_fn_c_try_compile "$LINENO"; then :
14570 gcc_cv_header_string=yes
107c3bbf 14571else
cd9a469c 14572 gcc_cv_header_string=no
107c3bbf 14573fi
cd9a469c 14574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
107c3bbf 14575fi
cd9a469c 14576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14577$as_echo "$gcc_cv_header_string" >&6; }
14578if test $gcc_cv_header_string = yes; then
14579
14580$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14581
107c3bbf 14582fi
cd9a469c 14583
14584for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
14585do :
14586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14587ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14588eval as_val=\$$as_ac_Header
14589 if test "x$as_val" = x""yes; then :
14590 cat >>confdefs.h <<_ACEOF
14591#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
107c3bbf 14592_ACEOF
107c3bbf 14593
cd9a469c 14594fi
107c3bbf 14595
cd9a469c 14596done
107c3bbf 14597
107c3bbf 14598
cd9a469c 14599
14600
14601inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14602
14603acx_cv_header_stdint=stddef.h
14604acx_cv_header_stdint_kind="(already complete)"
14605for i in stdint.h $inttype_headers; do
14606 unset ac_cv_type_uintptr_t
14607 unset ac_cv_type_uintmax_t
14608 unset ac_cv_type_int_least32_t
14609 unset ac_cv_type_int_fast32_t
14610 unset ac_cv_type_uint64_t
14611 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14612 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14613#include <$i>
14614"
14615if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14616 acx_cv_header_stdint=$i
14617else
14618 continue
14619fi
14620
14621 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14622#include <$i>
14623"
14624if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14625
14626else
14627 acx_cv_header_stdint_kind="(mostly complete)"
14628fi
14629
14630 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14631#include <$i>
14632"
14633if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14634
14635else
14636 acx_cv_header_stdint_kind="(mostly complete)"
14637fi
14638
14639 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14640#include <$i>
14641"
14642if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14643
107c3bbf 14644else
cd9a469c 14645 acx_cv_header_stdint_kind="(mostly complete)"
14646fi
107c3bbf 14647
cd9a469c 14648 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14649#include <$i>
14650"
14651if test "x$ac_cv_type_uint64_t" = x""yes; then :
14652
14653else
14654 acx_cv_header_stdint_kind="(lacks uint64_t)"
107c3bbf 14655fi
cd9a469c 14656
14657 break
14658done
14659if test "$acx_cv_header_stdint" = stddef.h; then
14660 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14661 for i in stdint.h $inttype_headers; do
14662 unset ac_cv_type_uintptr_t
14663 unset ac_cv_type_uint32_t
14664 unset ac_cv_type_uint64_t
14665 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14666 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14667#include <$i>
14668"
14669if test "x$ac_cv_type_uint32_t" = x""yes; then :
14670 acx_cv_header_stdint=$i
107c3bbf 14671else
cd9a469c 14672 continue
14673fi
107c3bbf 14674
cd9a469c 14675 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14676#include <$i>
14677"
14678if test "x$ac_cv_type_uint64_t" = x""yes; then :
107c3bbf 14679
cd9a469c 14680fi
107c3bbf 14681
cd9a469c 14682 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14683#include <$i>
14684"
14685if test "x$ac_cv_type_uintptr_t" = x""yes; then :
107c3bbf 14686
cd9a469c 14687fi
107c3bbf 14688
cd9a469c 14689 break
14690 done
14691fi
14692if test "$acx_cv_header_stdint" = stddef.h; then
14693 acx_cv_header_stdint_kind="(u_intXX_t style)"
14694 for i in sys/types.h $inttype_headers; do
14695 unset ac_cv_type_u_int32_t
14696 unset ac_cv_type_u_int64_t
14697 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14698 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14699#include <$i>
14700"
14701if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14702 acx_cv_header_stdint=$i
107c3bbf 14703else
cd9a469c 14704 continue
14705fi
14706
14707 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14708#include <$i>
14709"
14710if test "x$ac_cv_type_u_int64_t" = x""yes; then :
107c3bbf 14711
107c3bbf 14712fi
107c3bbf 14713
cd9a469c 14714 break
14715 done
107c3bbf 14716fi
cd9a469c 14717if test "$acx_cv_header_stdint" = stddef.h; then
14718 acx_cv_header_stdint_kind="(using manual detection)"
107c3bbf 14719fi
107c3bbf 14720
cd9a469c 14721test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14722test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14723test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14724test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14725test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
107c3bbf 14726
cd9a469c 14727# ----------------- Summarize what we found so far
107c3bbf 14728
cd9a469c 14729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14730$as_echo_n "checking what to include in gstdint.h... " >&6; }
14731
14732case `$as_basename -- gstdint.h ||
14733$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14734 Xgstdint.h : 'X\(//\)$' \| \
14735 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14736$as_echo X/gstdint.h |
14737 sed '/^.*\/\([^/][^/]*\)\/*$/{
14738 s//\1/
14739 q
14740 }
14741 /^X\/\(\/\/\)$/{
14742 s//\1/
14743 q
14744 }
14745 /^X\/\(\/\).*/{
14746 s//\1/
14747 q
14748 }
14749 s/.*/./; q'` in
14750 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14751$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14752 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14753$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14754 *) ;;
107c3bbf 14755esac
107c3bbf 14756
cd9a469c 14757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14758$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
107c3bbf 14759
cd9a469c 14760# ----------------- done included file, check C basic types --------
107c3bbf 14761
cd9a469c 14762# Lacking an uintptr_t? Test size of void *
14763case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14764 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14765# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14766# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14767# This bug is HP SR number 8606223364.
14768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14769$as_echo_n "checking size of void *... " >&6; }
14770if test "${ac_cv_sizeof_void_p+set}" = set; then :
14771 $as_echo_n "(cached) " >&6
107c3bbf 14772else
cd9a469c 14773 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
107c3bbf 14774
cd9a469c 14775else
14776 if test "$ac_cv_type_void_p" = yes; then
14777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14779{ as_fn_set_status 77
14780as_fn_error "cannot compute sizeof (void *)
14781See \`config.log' for more details." "$LINENO" 5; }; }
14782 else
14783 ac_cv_sizeof_void_p=0
14784 fi
107c3bbf 14785fi
cd9a469c 14786
107c3bbf 14787fi
cd9a469c 14788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14789$as_echo "$ac_cv_sizeof_void_p" >&6; }
107c3bbf 14790
107c3bbf 14791
cd9a469c 14792
14793cat >>confdefs.h <<_ACEOF
14794#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
107c3bbf 14795_ACEOF
107c3bbf 14796
cd9a469c 14797 ;;
14798esac
107c3bbf 14799
cd9a469c 14800# Lacking an uint64_t? Test size of long
14801case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14802 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14803# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14804# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14805# This bug is HP SR number 8606223364.
14806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14807$as_echo_n "checking size of long... " >&6; }
14808if test "${ac_cv_sizeof_long+set}" = set; then :
14809 $as_echo_n "(cached) " >&6
107c3bbf 14810else
cd9a469c 14811 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
107c3bbf 14812
107c3bbf 14813else
cd9a469c 14814 if test "$ac_cv_type_long" = yes; then
14815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14817{ as_fn_set_status 77
14818as_fn_error "cannot compute sizeof (long)
14819See \`config.log' for more details." "$LINENO" 5; }; }
14820 else
14821 ac_cv_sizeof_long=0
14822 fi
14823fi
107c3bbf 14824
cd9a469c 14825fi
14826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14827$as_echo "$ac_cv_sizeof_long" >&6; }
107c3bbf 14828
107c3bbf 14829
cd9a469c 14830
14831cat >>confdefs.h <<_ACEOF
14832#define SIZEOF_LONG $ac_cv_sizeof_long
107c3bbf 14833_ACEOF
107c3bbf 14834
cd9a469c 14835 ;;
14836esac
107c3bbf 14837
cd9a469c 14838if test $acx_cv_header_stdint = stddef.h; then
14839 # Lacking a good header? Test size of everything and deduce all types.
14840 # The cast to long int works around a bug in the HP C Compiler
14841# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14842# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14843# This bug is HP SR number 8606223364.
14844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14845$as_echo_n "checking size of int... " >&6; }
14846if test "${ac_cv_sizeof_int+set}" = set; then :
14847 $as_echo_n "(cached) " >&6
107c3bbf 14848else
cd9a469c 14849 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14850
14851else
14852 if test "$ac_cv_type_int" = yes; then
14853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14855{ as_fn_set_status 77
14856as_fn_error "cannot compute sizeof (int)
14857See \`config.log' for more details." "$LINENO" 5; }; }
14858 else
14859 ac_cv_sizeof_int=0
14860 fi
14861fi
14862
14863fi
14864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14865$as_echo "$ac_cv_sizeof_int" >&6; }
14866
14867
14868
14869cat >>confdefs.h <<_ACEOF
14870#define SIZEOF_INT $ac_cv_sizeof_int
14871_ACEOF
107c3bbf 14872
cd9a469c 14873
14874 # The cast to long int works around a bug in the HP C Compiler
14875# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14876# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14877# This bug is HP SR number 8606223364.
14878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14879$as_echo_n "checking size of short... " >&6; }
14880if test "${ac_cv_sizeof_short+set}" = set; then :
14881 $as_echo_n "(cached) " >&6
107c3bbf 14882else
cd9a469c 14883 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
107c3bbf 14884
cd9a469c 14885else
14886 if test "$ac_cv_type_short" = yes; then
14887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14889{ as_fn_set_status 77
14890as_fn_error "cannot compute sizeof (short)
14891See \`config.log' for more details." "$LINENO" 5; }; }
14892 else
14893 ac_cv_sizeof_short=0
14894 fi
107c3bbf 14895fi
cd9a469c 14896
107c3bbf 14897fi
cd9a469c 14898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14899$as_echo "$ac_cv_sizeof_short" >&6; }
107c3bbf 14900
107c3bbf 14901
cd9a469c 14902
14903cat >>confdefs.h <<_ACEOF
14904#define SIZEOF_SHORT $ac_cv_sizeof_short
107c3bbf 14905_ACEOF
cd9a469c 14906
14907
14908 # The cast to long int works around a bug in the HP C Compiler
14909# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14910# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14911# This bug is HP SR number 8606223364.
14912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14913$as_echo_n "checking size of char... " >&6; }
14914if test "${ac_cv_sizeof_char+set}" = set; then :
14915 $as_echo_n "(cached) " >&6
107c3bbf 14916else
cd9a469c 14917 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
107c3bbf 14918
107c3bbf 14919else
cd9a469c 14920 if test "$ac_cv_type_char" = yes; then
14921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14923{ as_fn_set_status 77
14924as_fn_error "cannot compute sizeof (char)
14925See \`config.log' for more details." "$LINENO" 5; }; }
14926 else
14927 ac_cv_sizeof_char=0
14928 fi
14929fi
107c3bbf 14930
cd9a469c 14931fi
14932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14933$as_echo "$ac_cv_sizeof_char" >&6; }
107c3bbf 14934
107c3bbf 14935
cd9a469c 14936
14937cat >>confdefs.h <<_ACEOF
14938#define SIZEOF_CHAR $ac_cv_sizeof_char
107c3bbf 14939_ACEOF
107c3bbf 14940
cd9a469c 14941
14942
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
14944$as_echo_n "checking for type equivalent to int8_t... " >&6; }
14945 case "$ac_cv_sizeof_char" in
14946 1) acx_cv_type_int8_t=char ;;
9b15a251 14947 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
cd9a469c 14948 esac
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
14950$as_echo "$acx_cv_type_int8_t" >&6; }
14951
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
14953$as_echo_n "checking for type equivalent to int16_t... " >&6; }
14954 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14955 2:*) acx_cv_type_int16_t=int ;;
14956 *:2) acx_cv_type_int16_t=short ;;
9b15a251 14957 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
cd9a469c 14958 esac
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
14960$as_echo "$acx_cv_type_int16_t" >&6; }
14961
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
14963$as_echo_n "checking for type equivalent to int32_t... " >&6; }
14964 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14965 4:*) acx_cv_type_int32_t=int ;;
14966 *:4) acx_cv_type_int32_t=long ;;
9b15a251 14967 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
cd9a469c 14968 esac
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
14970$as_echo "$acx_cv_type_int32_t" >&6; }
107c3bbf 14971fi
cd9a469c 14972
14973# These tests are here to make the output prettier
14974
14975if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14976 case "$ac_cv_sizeof_long" in
14977 8) acx_cv_type_int64_t=long ;;
14978 esac
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
14980$as_echo_n "checking for type equivalent to int64_t... " >&6; }
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14982$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
107c3bbf 14983fi
cd9a469c 14984
14985# Now we can use the above types
14986
14987if test "$ac_cv_type_uintptr_t" != yes; then
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
14989$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
14990 case $ac_cv_sizeof_void_p in
14991 2) acx_cv_type_intptr_t=int16_t ;;
14992 4) acx_cv_type_intptr_t=int32_t ;;
14993 8) acx_cv_type_intptr_t=int64_t ;;
9b15a251 14994 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
cd9a469c 14995 esac
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
14997$as_echo "$acx_cv_type_intptr_t" >&6; }
107c3bbf 14998fi
107c3bbf 14999
cd9a469c 15000# ----------------- done all checks, emit header -------------
15001ac_config_commands="$ac_config_commands gstdint.h"
15002
15003
15004
15005
15006# Check to see if -pthread or -lpthread is needed. Prefer the former.
15007# In case the pthread.h system header is not found, this test will fail.
15008XPCFLAGS=""
15009CFLAGS="$CFLAGS -pthread"
15010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011/* end confdefs.h. */
15012#include <pthread.h>
15013 void *g(void *d) { return NULL; }
fd6481cf 15014int
15015main ()
15016{
cd9a469c 15017pthread_t t; pthread_create(&t,NULL,g,NULL);
fd6481cf 15018 ;
15019 return 0;
15020}
15021_ACEOF
cd9a469c 15022if ac_fn_c_try_link "$LINENO"; then :
15023 XPCFLAGS=" -Wc,-pthread"
15024else
15025 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15027/* end confdefs.h. */
cd9a469c 15028#include <pthread.h>
15029 void *g(void *d) { return NULL; }
fd6481cf 15030int
15031main ()
15032{
cd9a469c 15033pthread_t t; pthread_create(&t,NULL,g,NULL);
fd6481cf 15034 ;
15035 return 0;
15036}
15037_ACEOF
cd9a469c 15038if ac_fn_c_try_link "$LINENO"; then :
fd6481cf 15039
fd6481cf 15040else
cd9a469c 15041 as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15042fi
15043rm -f core conftest.err conftest.$ac_objext \
15044 conftest$ac_exeext conftest.$ac_ext
15045fi
15046rm -f core conftest.err conftest.$ac_objext \
15047 conftest$ac_exeext conftest.$ac_ext
fd6481cf 15048
cd9a469c 15049# Check for functions needed.
15050for ac_func in getloadavg clock_gettime strtoull
15051do :
15052 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15053ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15054eval as_val=\$$as_ac_var
15055 if test "x$as_val" = x""yes; then :
15056 cat >>confdefs.h <<_ACEOF
15057#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
fd6481cf 15058_ACEOF
fd6481cf 15059
cd9a469c 15060fi
15061done
15062
15063
15064# Check for broken semaphore implementation on darwin.
15065# sem_init returns: sem_init error: Function not implemented.
15066case "$host" in
15067 *-darwin*)
15068
15069$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15070
15071 ;;
15072esac
15073
15074 # Check whether --enable-linux-futex was given.
15075if test "${enable_linux_futex+set}" = set; then :
15076 enableval=$enable_linux_futex;
15077 case "$enableval" in
15078 yes|no|default) ;;
15079 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15080 esac
15081
15082else
15083 enable_linux_futex=default
15084fi
fd6481cf 15085
fd6481cf 15086
cd9a469c 15087case "$target" in
15088 *-linux*)
15089 case "$enable_linux_futex" in
15090 default)
15091 # If headers don't have gettid/futex syscalls definition, then
15092 # default to no, otherwise there will be compile time failures.
15093 # Otherwise, default to yes. If we don't detect we are
15094 # compiled/linked against NPTL and not cross-compiling, check
15095 # if programs are run by default against NPTL and if not, issue
15096 # a warning.
15097 enable_linux_futex=no
15098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15099/* end confdefs.h. */
15100#include <sys/syscall.h>
15101 int lk;
fd6481cf 15102int
15103main ()
15104{
cd9a469c 15105syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
fd6481cf 15106 ;
15107 return 0;
15108}
15109_ACEOF
cd9a469c 15110if ac_fn_c_try_link "$LINENO"; then :
15111 save_LIBS="$LIBS"
15112 LIBS="-lpthread $LIBS"
15113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15114/* end confdefs.h. */
cd9a469c 15115#ifndef _GNU_SOURCE
15116 #define _GNU_SOURCE 1
15117 #endif
15118 #include <pthread.h>
15119 pthread_t th; void *status;
fd6481cf 15120int
15121main ()
15122{
cd9a469c 15123pthread_tryjoin_np (th, &status);
fd6481cf 15124 ;
15125 return 0;
15126}
15127_ACEOF
cd9a469c 15128if ac_fn_c_try_link "$LINENO"; then :
15129 enable_linux_futex=yes
fd6481cf 15130else
cd9a469c 15131 if test x$cross_compiling = xno; then
15132 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15133 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15135If so, please configure with --disable-linux-futex" >&5
15136$as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15137If so, please configure with --disable-linux-futex" >&2;}
15138 fi
15139 fi
15140 enable_linux_futex=yes
fd6481cf 15141fi
cd9a469c 15142rm -f core conftest.err conftest.$ac_objext \
15143 conftest$ac_exeext conftest.$ac_ext
15144 LIBS="$save_LIBS"
15145fi
15146rm -f core conftest.err conftest.$ac_objext \
15147 conftest$ac_exeext conftest.$ac_ext
15148 ;;
15149 yes)
15150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15151/* end confdefs.h. */
cd9a469c 15152#include <sys/syscall.h>
15153 int lk;
fd6481cf 15154int
15155main ()
15156{
cd9a469c 15157syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
fd6481cf 15158 ;
15159 return 0;
15160}
15161_ACEOF
cd9a469c 15162if ac_fn_c_try_link "$LINENO"; then :
fd6481cf 15163
cd9a469c 15164else
15165 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
fd6481cf 15166fi
cd9a469c 15167rm -f core conftest.err conftest.$ac_objext \
15168 conftest$ac_exeext conftest.$ac_ext
15169 ;;
15170 esac
15171 ;;
15172 *)
15173 enable_linux_futex=no
15174 ;;
15175esac
15176if test x$enable_linux_futex = xyes; then
15177 :
fd6481cf 15178fi
fd6481cf 15179
cd9a469c 15180
15181# Check for pthread_{,attr_}[sg]etaffinity_np.
15182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183/* end confdefs.h. */
15184#define _GNU_SOURCE
15185 #include <pthread.h>
fd6481cf 15186int
15187main ()
15188{
cd9a469c 15189cpu_set_t cpuset;
15190 pthread_attr_t attr;
15191 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15192 if (CPU_ISSET (0, &cpuset))
15193 CPU_SET (1, &cpuset);
15194 else
15195 CPU_ZERO (&cpuset);
15196 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15197 pthread_attr_init (&attr);
15198 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15199 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
fd6481cf 15200 ;
15201 return 0;
15202}
15203_ACEOF
cd9a469c 15204if ac_fn_c_try_link "$LINENO"; then :
15205
15206$as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15207
15208fi
15209rm -f core conftest.err conftest.$ac_objext \
15210 conftest$ac_exeext conftest.$ac_ext
15211
15212# At least for glibc, clock_gettime is in librt. But don't pull that
15213# in if it still doesn't give us the function we want.
15214if test $ac_cv_func_clock_gettime = no; then
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15216$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15217if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15218 $as_echo_n "(cached) " >&6
15219else
15220 ac_check_lib_save_LIBS=$LIBS
15221LIBS="-lrt $LIBS"
15222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15223/* end confdefs.h. */
15224
cd9a469c 15225/* Override any GCC internal prototype to avoid an error.
15226 Use char because int might match the return type of a GCC
15227 builtin and then its argument prototype would still apply. */
15228#ifdef __cplusplus
15229extern "C"
15230#endif
15231char clock_gettime ();
fd6481cf 15232int
15233main ()
15234{
cd9a469c 15235return clock_gettime ();
fd6481cf 15236 ;
15237 return 0;
15238}
15239_ACEOF
cd9a469c 15240if ac_fn_c_try_link "$LINENO"; then :
15241 ac_cv_lib_rt_clock_gettime=yes
fd6481cf 15242else
cd9a469c 15243 ac_cv_lib_rt_clock_gettime=no
15244fi
15245rm -f core conftest.err conftest.$ac_objext \
15246 conftest$ac_exeext conftest.$ac_ext
15247LIBS=$ac_check_lib_save_LIBS
15248fi
15249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15250$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15251if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15252 LIBS="-lrt $LIBS"
15253
15254$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
fd6481cf 15255
fd6481cf 15256fi
cd9a469c 15257
15258fi
15259
15260# See if we support thread-local storage.
15261
15262
15263 # Check whether --enable-tls was given.
15264if test "${enable_tls+set}" = set; then :
15265 enableval=$enable_tls;
15266 case "$enableval" in
15267 yes|no) ;;
15268 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15269 esac
15270
15271else
15272 enable_tls=yes
15273fi
15274
15275
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15277$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15278if test "${gcc_cv_have_tls+set}" = set; then :
15279 $as_echo_n "(cached) " >&6
fd6481cf 15280else
fd6481cf 15281
cd9a469c 15282 if test "$cross_compiling" = yes; then :
15283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15284/* end confdefs.h. */
15285__thread int a; int b; int main() { return a = b; }
15286_ACEOF
15287if ac_fn_c_try_link "$LINENO"; then :
15288 chktls_save_LDFLAGS="$LDFLAGS"
15289 case $host in
15290 *-*-linux*)
15291 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15292 ;;
15293 esac
15294 chktls_save_CFLAGS="$CFLAGS"
15295 CFLAGS="-fPIC $CFLAGS"
15296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15297/* end confdefs.h. */
15298int f() { return 0; }
fd6481cf 15299_ACEOF
cd9a469c 15300if ac_fn_c_try_link "$LINENO"; then :
15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15302/* end confdefs.h. */
cd9a469c 15303__thread int a; int b; int f() { return a = b; }
15304_ACEOF
15305if ac_fn_c_try_link "$LINENO"; then :
15306 gcc_cv_have_tls=yes
15307else
15308 gcc_cv_have_tls=no
15309fi
15310rm -f core conftest.err conftest.$ac_objext \
15311 conftest$ac_exeext conftest.$ac_ext
15312else
15313 gcc_cv_have_tls=yes
15314fi
15315rm -f core conftest.err conftest.$ac_objext \
15316 conftest$ac_exeext conftest.$ac_ext
15317 CFLAGS="$chktls_save_CFLAGS"
15318 LDFLAGS="$chktls_save_LDFLAGS"
15319else
15320 gcc_cv_have_tls=no
15321fi
15322rm -f core conftest.err conftest.$ac_objext \
15323 conftest$ac_exeext conftest.$ac_ext
fd6481cf 15324
fd6481cf 15325
cd9a469c 15326else
15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328/* end confdefs.h. */
15329__thread int a; int b; int main() { return a = b; }
fd6481cf 15330_ACEOF
cd9a469c 15331if ac_fn_c_try_run "$LINENO"; then :
15332 chktls_save_LDFLAGS="$LDFLAGS"
15333 LDFLAGS="-static $LDFLAGS"
15334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15335/* end confdefs.h. */
15336int main() { return 0; }
fd6481cf 15337_ACEOF
cd9a469c 15338if ac_fn_c_try_link "$LINENO"; then :
15339 if test "$cross_compiling" = yes; then :
15340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15342as_fn_error "cannot run test program while cross compiling
15343See \`config.log' for more details." "$LINENO" 5; }
15344else
15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15346/* end confdefs.h. */
cd9a469c 15347__thread int a; int b; int main() { return a = b; }
15348_ACEOF
15349if ac_fn_c_try_run "$LINENO"; then :
15350 gcc_cv_have_tls=yes
15351else
15352 gcc_cv_have_tls=no
15353fi
15354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15355 conftest.$ac_objext conftest.beam conftest.$ac_ext
15356fi
fd6481cf 15357
cd9a469c 15358else
15359 gcc_cv_have_tls=yes
15360fi
15361rm -f core conftest.err conftest.$ac_objext \
15362 conftest$ac_exeext conftest.$ac_ext
15363 LDFLAGS="$chktls_save_LDFLAGS"
15364 if test $gcc_cv_have_tls = yes; then
15365 chktls_save_CFLAGS="$CFLAGS"
15366 thread_CFLAGS=failed
15367 for flag in '' '-pthread' '-lpthread'; do
15368 CFLAGS="$flag $chktls_save_CFLAGS"
15369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370/* end confdefs.h. */
15371#include <pthread.h>
15372 void *g(void *d) { return NULL; }
fd6481cf 15373int
15374main ()
15375{
cd9a469c 15376pthread_t t; pthread_create(&t,NULL,g,NULL);
fd6481cf 15377 ;
15378 return 0;
15379}
15380_ACEOF
cd9a469c 15381if ac_fn_c_try_link "$LINENO"; then :
15382 thread_CFLAGS="$flag"
fd6481cf 15383fi
cd9a469c 15384rm -f core conftest.err conftest.$ac_objext \
15385 conftest$ac_exeext conftest.$ac_ext
15386 if test "X$thread_CFLAGS" != Xfailed; then
15387 break
15388 fi
15389 done
15390 CFLAGS="$chktls_save_CFLAGS"
15391 if test "X$thread_CFLAGS" != Xfailed; then
15392 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
9b15a251 15393 if test "$cross_compiling" = yes; then :
cd9a469c 15394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15396as_fn_error "cannot run test program while cross compiling
15397See \`config.log' for more details." "$LINENO" 5; }
fd6481cf 15398else
cd9a469c 15399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15400/* end confdefs.h. */
cd9a469c 15401#include <pthread.h>
15402 __thread int a;
9a2be164 15403 static int *volatile a_in_other_thread;
cd9a469c 15404 static void *
15405 thread_func (void *arg)
15406 {
15407 a_in_other_thread = &a;
15408 return (void *)0;
15409 }
fd6481cf 15410int
15411main ()
15412{
cd9a469c 15413pthread_t thread;
15414 void *thread_retval;
9a2be164 15415 int *volatile a_in_main_thread;
15416 a_in_main_thread = &a;
cd9a469c 15417 if (pthread_create (&thread, (pthread_attr_t *)0,
15418 thread_func, (void *)0))
15419 return 0;
cd9a469c 15420 if (pthread_join (thread, &thread_retval))
15421 return 0;
15422 return (a_in_other_thread == a_in_main_thread);
fd6481cf 15423 ;
15424 return 0;
15425}
15426_ACEOF
cd9a469c 15427if ac_fn_c_try_run "$LINENO"; then :
15428 gcc_cv_have_tls=yes
fd6481cf 15429else
cd9a469c 15430 gcc_cv_have_tls=no
15431fi
15432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15433 conftest.$ac_objext conftest.beam conftest.$ac_ext
15434fi
15435
15436 CFLAGS="$chktls_save_CFLAGS"
15437 fi
15438 fi
15439else
15440 gcc_cv_have_tls=no
15441fi
15442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15443 conftest.$ac_objext conftest.beam conftest.$ac_ext
15444fi
fd6481cf 15445
fd6481cf 15446fi
cd9a469c 15447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15448$as_echo "$gcc_cv_have_tls" >&6; }
15449 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15450
15451$as_echo "#define HAVE_TLS 1" >>confdefs.h
15452
15453 fi
15454
15455# See what sort of export controls are availible.
15456
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15458$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15459if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15460 $as_echo_n "(cached) " >&6
fd6481cf 15461else
fd6481cf 15462
cd9a469c 15463 save_CFLAGS="$CFLAGS"
15464 CFLAGS="$CFLAGS -Werror"
15465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466/* end confdefs.h. */
15467void __attribute__((visibility("hidden"))) foo(void) { }
fd6481cf 15468int
15469main ()
15470{
15471
fd6481cf 15472 ;
15473 return 0;
15474}
15475_ACEOF
cd9a469c 15476if ac_fn_c_try_compile "$LINENO"; then :
15477 libgomp_cv_have_attribute_visibility=yes
fd6481cf 15478else
cd9a469c 15479 libgomp_cv_have_attribute_visibility=no
fd6481cf 15480fi
cd9a469c 15481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15482 CFLAGS="$save_CFLAGS"
fd6481cf 15483fi
cd9a469c 15484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15485$as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15486 if test $libgomp_cv_have_attribute_visibility = yes; then
15487
15488$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15489
15490 fi
15491
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15493$as_echo_n "checking whether the target supports dllexport... " >&6; }
15494if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15495 $as_echo_n "(cached) " >&6
15496else
fd6481cf 15497
cd9a469c 15498 save_CFLAGS="$CFLAGS"
15499 CFLAGS="$CFLAGS -Werror"
15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15501/* end confdefs.h. */
15502void __attribute__((dllexport)) foo(void) { }
fd6481cf 15503int
15504main ()
15505{
fd6481cf 15506
15507 ;
15508 return 0;
15509}
15510_ACEOF
cd9a469c 15511if ac_fn_c_try_compile "$LINENO"; then :
15512 libgomp_cv_have_attribute_dllexport=yes
15513else
15514 libgomp_cv_have_attribute_dllexport=no
15515fi
15516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15517 CFLAGS="$save_CFLAGS"
15518fi
15519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15520$as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15521 if test $libgomp_cv_have_attribute_dllexport = yes; then
15522
15523$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15524
15525 fi
15526
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15528$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15529if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
15530 $as_echo_n "(cached) " >&6
15531else
15532
15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15534/* end confdefs.h. */
15535
cd9a469c 15536void foo(void) { }
15537extern void bar(void) __attribute__((alias("foo")));
fd6481cf 15538int
15539main ()
15540{
cd9a469c 15541bar();
fd6481cf 15542 ;
15543 return 0;
15544}
15545_ACEOF
cd9a469c 15546if ac_fn_c_try_link "$LINENO"; then :
15547 libgomp_cv_have_attribute_alias=yes
fd6481cf 15548else
cd9a469c 15549 libgomp_cv_have_attribute_alias=no
15550fi
15551rm -f core conftest.err conftest.$ac_objext \
15552 conftest$ac_exeext conftest.$ac_ext
15553fi
15554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15555$as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15556 if test $libgomp_cv_have_attribute_alias = yes; then
15557
15558$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15559
15560 fi
15561
15562
15563# Check whether --with-gnu-ld was given.
15564if test "${with_gnu_ld+set}" = set; then :
15565 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15566else
15567 with_gnu_ld=no
15568fi
fd6481cf 15569
cd9a469c 15570ac_prog=ld
15571if test "$GCC" = yes; then
15572 # Check if gcc -print-prog-name=ld gives a path.
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15574$as_echo_n "checking for ld used by $CC... " >&6; }
15575 case $host in
15576 *-*-mingw*)
15577 # gcc leaves a trailing carriage return which upsets mingw
15578 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15579 *)
15580 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15581 esac
15582 case $ac_prog in
15583 # Accept absolute paths.
15584 [\\/]* | ?:[\\/]*)
15585 re_direlt='/[^/][^/]*/\.\./'
15586 # Canonicalize the pathname of ld
15587 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15588 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15589 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15590 done
15591 test -z "$LD" && LD="$ac_prog"
15592 ;;
15593 "")
15594 # If it fails, then pretend we aren't using GCC.
15595 ac_prog=ld
15596 ;;
15597 *)
15598 # If it is relative, then search for the first ld in PATH.
15599 with_gnu_ld=unknown
15600 ;;
15601 esac
15602elif test "$with_gnu_ld" = yes; then
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15604$as_echo_n "checking for GNU ld... " >&6; }
15605else
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15607$as_echo_n "checking for non-GNU ld... " >&6; }
fd6481cf 15608fi
cd9a469c 15609if test "${lt_cv_path_LD+set}" = set; then :
15610 $as_echo_n "(cached) " >&6
15611else
15612 if test -z "$LD"; then
15613 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15614 for ac_dir in $PATH; do
15615 IFS="$lt_save_ifs"
15616 test -z "$ac_dir" && ac_dir=.
15617 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15618 lt_cv_path_LD="$ac_dir/$ac_prog"
15619 # Check to see if the program is GNU ld. I'd rather use --version,
15620 # but apparently some variants of GNU ld only accept -v.
15621 # Break only if it was the GNU/non-GNU ld that we prefer.
15622 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15623 *GNU* | *'with BFD'*)
15624 test "$with_gnu_ld" != no && break
15625 ;;
15626 *)
15627 test "$with_gnu_ld" != yes && break
15628 ;;
15629 esac
15630 fi
fd6481cf 15631 done
cd9a469c 15632 IFS="$lt_save_ifs"
fd6481cf 15633else
cd9a469c 15634 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15635fi
15636fi
15637
15638LD="$lt_cv_path_LD"
15639if test -n "$LD"; then
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15641$as_echo "$LD" >&6; }
15642else
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15644$as_echo "no" >&6; }
15645fi
15646test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15648$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15649if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15650 $as_echo_n "(cached) " >&6
15651else
15652 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15653case `$LD -v 2>&1 </dev/null` in
15654*GNU* | *'with BFD'*)
15655 lt_cv_prog_gnu_ld=yes
15656 ;;
15657*)
15658 lt_cv_prog_gnu_ld=no
15659 ;;
15660esac
15661fi
15662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15663$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15664with_gnu_ld=$lt_cv_prog_gnu_ld
15665
15666
15667
15668
15669
15670
15671
15672 # If we're not using GNU ld, then there's no point in even trying these
15673 # tests. Check for that first. We should have already tested for gld
15674 # by now (in libtool), but require it now just to be safe...
15675 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15676 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15677
15678
15679
15680 # The name set by libtool depends on the version of libtool. Shame on us
15681 # for depending on an impl detail, but c'est la vie. Older versions used
15682 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15683 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15684 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
15685 # set (hence we're using an older libtool), then set it.
15686 if test x${with_gnu_ld+set} != xset; then
15687 if test x${ac_cv_prog_gnu_ld+set} != xset; then
15688 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
15689 with_gnu_ld=no
15690 else
15691 with_gnu_ld=$ac_cv_prog_gnu_ld
15692 fi
15693 fi
15694
15695 # Start by getting the version number. I think the libtool test already
15696 # does some of this, but throws away the result.
15697 libgomp_ld_is_gold=no
15698 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15699 libgomp_ld_is_gold=yes
15700 fi
15701
8dc52806 15702 ldver=`$LD --version 2>/dev/null |
8b501d36 15703 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 15704
15705 libgomp_gnu_ld_version=`echo $ldver | \
15706 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15707
15708 # Set --gc-sections.
15709 if test "$with_gnu_ld" = "notbroken"; then
15710 # GNU ld it is! Joy and bunny rabbits!
15711
15712 # All these tests are for C++; save the language and the compiler flags.
15713 # Need to do this so that g++ won't try to link in libstdc++
15714 ac_test_CFLAGS="${CFLAGS+set}"
15715 ac_save_CFLAGS="$CFLAGS"
15716 CFLAGS='-x c++ -Wl,--gc-sections'
15717
15718 # Check for -Wl,--gc-sections
15719 # XXX This test is broken at the moment, as symbols required for linking
15720 # are now in libsupc++ (not built yet). In addition, this test has
15721 # cored on solaris in the past. In addition, --gc-sections doesn't
15722 # really work at the moment (keeps on discarding used sections, first
15723 # .eh_frame and now some of the glibc sections for iconv).
15724 # Bzzzzt. Thanks for playing, maybe next time.
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15726$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15727 if test "$cross_compiling" = yes; then :
15728 ac_sectionLDflags=yes
15729else
15730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15731/* end confdefs.h. */
15732
15733 int main(void)
15734 {
15735 try { throw 1; }
15736 catch (...) { };
15737 return 0;
15738 }
fd6481cf 15739
fd6481cf 15740_ACEOF
cd9a469c 15741if ac_fn_c_try_run "$LINENO"; then :
15742 ac_sectionLDflags=yes
15743else
15744 ac_sectionLDflags=no
15745fi
15746rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15747 conftest.$ac_objext conftest.beam conftest.$ac_ext
15748fi
15749
15750 if test "$ac_test_CFLAGS" = set; then
15751 CFLAGS="$ac_save_CFLAGS"
15752 else
15753 # this is the suspicious part
15754 CFLAGS=''
15755 fi
15756 if test "$ac_sectionLDflags" = "yes"; then
15757 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15758 fi
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15760$as_echo "$ac_sectionLDflags" >&6; }
15761 fi
15762
15763 # Set linker optimization flags.
15764 if test x"$with_gnu_ld" = x"yes"; then
15765 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15766 fi
15767
15768
15769
15770
15771
15772
15773 # Check whether --enable-symvers was given.
15774if test "${enable_symvers+set}" = set; then :
15775 enableval=$enable_symvers;
15776 case "$enableval" in
de656189 15777 yes|no|gnu*|sun) ;;
cd9a469c 15778 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
15779 esac
15780
15781else
15782 enable_symvers=yes
15783fi
15784
15785
15786
15787# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
15788# don't know enough about $LD to do tricks...
15789
bbb514dc 15790
15791# Turn a 'yes' into a suitable default.
15792if test x$enable_symvers = xyes ; then
15793 # FIXME The following test is too strict, in theory.
15794 if test $enable_shared = no || test "x$LD" = x; then
15795 enable_symvers=no
71cbce26 15796 else
bbb514dc 15797 if test $with_gnu_ld = yes ; then
15798 enable_symvers=gnu
15799 else
15800 case ${target_os} in
15801 # Sun symbol versioning exists since Solaris 2.5.
15802 solaris2.[5-9]* | solaris2.1[0-9]*)
15803 enable_symvers=sun ;;
15804 *)
15805 enable_symvers=no ;;
15806 esac
15807 fi
71cbce26 15808 fi
15809fi
15810
15811# Check if 'sun' was requested on non-Solaris 2 platforms.
15812if test x$enable_symvers = xsun ; then
15813 case ${target_os} in
15814 solaris2*)
15815 # All fine.
15816 ;;
15817 *)
15818 # Unlikely to work.
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
15820$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
15822$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15824$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15825 enable_symvers=no
15826 ;;
15827 esac
cd9a469c 15828fi
15829
15830# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15831if test $enable_symvers != no; then
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15833$as_echo_n "checking for shared libgcc... " >&6; }
15834 ac_save_CFLAGS="$CFLAGS"
15835 CFLAGS=' -lgcc_s'
15836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15837/* end confdefs.h. */
15838
15839int
15840main ()
15841{
cd9a469c 15842return 0;
fd6481cf 15843 ;
15844 return 0;
15845}
15846_ACEOF
cd9a469c 15847if ac_fn_c_try_link "$LINENO"; then :
15848 libgomp_shared_libgcc=yes
15849else
15850 libgomp_shared_libgcc=no
15851fi
15852rm -f core conftest.err conftest.$ac_objext \
15853 conftest$ac_exeext conftest.$ac_ext
15854 CFLAGS="$ac_save_CFLAGS"
15855 if test $libgomp_shared_libgcc = no; then
15856 cat > conftest.c <<EOF
15857int main (void) { return 0; }
15858EOF
15859 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15860 -shared -shared-libgcc -o conftest.so \
15861 conftest.c -v 2>&1 >/dev/null \
15862 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15863 rm -f conftest.c conftest.so
15864 if test x${libgomp_libgcc_s_suffix+set} = xset; then
15865 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
15866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15867/* end confdefs.h. */
15868
15869int
15870main ()
15871{
cd9a469c 15872return 0;
fd6481cf 15873 ;
15874 return 0;
15875}
15876_ACEOF
cd9a469c 15877if ac_fn_c_try_link "$LINENO"; then :
15878 libgomp_shared_libgcc=yes
15879fi
15880rm -f core conftest.err conftest.$ac_objext \
15881 conftest$ac_exeext conftest.$ac_ext
15882 CFLAGS="$ac_save_CFLAGS"
15883 fi
15884 fi
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
15886$as_echo "$libgomp_shared_libgcc" >&6; }
15887fi
15888
15889# For GNU ld, we need at least this version. The format is described in
15890# LIBGOMP_CHECK_LINKER_FEATURES above.
15891libgomp_min_gnu_ld_version=21400
15892# XXXXXXXXXXX libgomp_gnu_ld_version=21390
fd6481cf 15893
cd9a469c 15894# Check to see if unspecified "yes" value can win, given results above.
15895# Change "yes" into either "no" or a style name.
71cbce26 15896if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
15897 if test $with_gnu_ld = yes; then
cd9a469c 15898 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
15899 enable_symvers=gnu
15900 elif test $libgomp_ld_is_gold = yes ; then
15901 enable_symvers=gnu
15902 else
15903 # The right tools, the right setup, but too old. Fallbacks?
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
15905$as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15907$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15909$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
15911$as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
15912 if test $libgomp_gnu_ld_version -ge 21200 ; then
15913 # Globbing fix is present, proper block support is not.
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15915$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15916 enable_symvers=no
15917 else
15918 # 2.11 or older.
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15920$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15921 enable_symvers=no
15922 fi
15923 fi
71cbce26 15924 elif test $enable_symvers = sun; then
15925 : All interesting versions of Sun ld support sun style symbol versioning.
cd9a469c 15926 else
15927 # just fail for now
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15929$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15931$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15933$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15935$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15936 enable_symvers=no
15937 fi
fd6481cf 15938fi
cd9a469c 15939
15940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
15941$as_echo_n "checking whether the target supports .symver directive... " >&6; }
15942if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
15943 $as_echo_n "(cached) " >&6
fd6481cf 15944else
fd6481cf 15945
cd9a469c 15946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15947/* end confdefs.h. */
cd9a469c 15948void foo (void); __asm (".symver foo, bar@SYMVER");
fd6481cf 15949int
15950main ()
15951{
fd6481cf 15952
15953 ;
15954 return 0;
15955}
15956_ACEOF
cd9a469c 15957if ac_fn_c_try_compile "$LINENO"; then :
15958 libgomp_cv_have_as_symver_directive=yes
fd6481cf 15959else
cd9a469c 15960 libgomp_cv_have_as_symver_directive=no
15961fi
15962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15963fi
15964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
15965$as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
15966if test $libgomp_cv_have_as_symver_directive = yes; then
15967
15968$as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
fd6481cf 15969
fd6481cf 15970fi
cd9a469c 15971
15972 if test $enable_symvers != no; then
15973 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
15974 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
fd6481cf 15975else
cd9a469c 15976 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
15977 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
15978fi
fd6481cf 15979
71cbce26 15980 if test $enable_symvers = gnu; then
15981 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
15982 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
15983else
15984 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
15985 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
15986fi
15987
15988 if test $enable_symvers = sun; then
15989 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
15990 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
15991else
15992 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
15993 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
15994fi
15995
cd9a469c 15996{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15997$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
fd6481cf 15998
71cbce26 15999if test $enable_symvers != no ; then
16000 case ${target_os} in
16001 # The Solaris 2 runtime linker doesn't support the GNU extension of
16002 # binding the same symbol to different versions
16003 solaris2*)
fb6822c1 16004 ;;
71cbce26 16005 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16006 *)
16007
16008$as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16009
fb6822c1 16010 ;;
71cbce26 16011 esac
71cbce26 16012fi
16013
16014
cd9a469c 16015if test $enable_symvers = gnu; then
16016
16017$as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
fd6481cf 16018
16019fi
cd9a469c 16020
16021# Get target configury.
16022. ${srcdir}/configure.tgt
16023CFLAGS="$save_CFLAGS $XCFLAGS"
16024
16025# Check for __sync_val_compare_and_swap, but only after the target has
16026# had a chance to set XCFLAGS.
16027
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16029$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16030if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16031 $as_echo_n "(cached) " >&6
16032else
16033
16034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 16035/* end confdefs.h. */
16036
16037int
16038main ()
16039{
14a88549 16040int foo; __sync_val_compare_and_swap(&foo, 0, 1);
fd6481cf 16041 ;
16042 return 0;
16043}
16044_ACEOF
cd9a469c 16045if ac_fn_c_try_link "$LINENO"; then :
16046 libgomp_cv_have_sync_builtins=yes
16047else
16048 libgomp_cv_have_sync_builtins=no
16049fi
16050rm -f core conftest.err conftest.$ac_objext \
16051 conftest$ac_exeext conftest.$ac_ext
16052fi
16053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16054$as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16055 if test $libgomp_cv_have_sync_builtins = yes; then
fd6481cf 16056
cd9a469c 16057$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16058
16059 fi
16060
16061XCFLAGS="$XCFLAGS$XPCFLAGS"
16062
16063
16064
16065
16066
16067# Cleanup and exit.
16068CFLAGS="$save_CFLAGS"
16069cat >confcache <<\_ACEOF
16070# This file is a shell script that caches the results of configure
16071# tests run on this system so they can be shared between configure
16072# scripts and configure runs, see configure's option --config-cache.
16073# It is not useful on other systems. If it contains results you don't
16074# want to keep, you may remove or edit it.
16075#
16076# config.status only pays attention to the cache file if you give it
16077# the --recheck option to rerun configure.
16078#
16079# `ac_cv_env_foo' variables (set or unset) will be overridden when
16080# loading this file, other *unset* `ac_cv_foo' will be assigned the
16081# following values.
fd6481cf 16082
fd6481cf 16083_ACEOF
cd9a469c 16084
16085# The following way of writing the cache mishandles newlines in values,
16086# but we know of no workaround that is simple, portable, and efficient.
16087# So, we kill variables containing newlines.
16088# Ultrix sh set writes to stderr and can't be redirected directly,
16089# and sets the high bit in the cache file unless we assign to the vars.
16090(
16091 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16092 eval ac_val=\$$ac_var
16093 case $ac_val in #(
16094 *${as_nl}*)
16095 case $ac_var in #(
16096 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16097$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16098 esac
16099 case $ac_var in #(
16100 _ | IFS | as_nl) ;; #(
16101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16102 *) { eval $ac_var=; unset $ac_var;} ;;
16103 esac ;;
16104 esac
16105 done
16106
16107 (set) 2>&1 |
16108 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16109 *${as_nl}ac_space=\ *)
16110 # `set' does not quote correctly, so add quotes: double-quote
16111 # substitution turns \\\\ into \\, and sed turns \\ into \.
16112 sed -n \
16113 "s/'/'\\\\''/g;
16114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16115 ;; #(
16116 *)
16117 # `set' quotes correctly as required by POSIX, so do not add quotes.
16118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16119 ;;
16120 esac |
16121 sort
16122) |
16123 sed '
16124 /^ac_cv_env_/b end
16125 t clear
16126 :clear
16127 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16128 t end
16129 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16130 :end' >>confcache
16131if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16132 if test -w "$cache_file"; then
16133 test "x$cache_file" != "x/dev/null" &&
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16135$as_echo "$as_me: updating cache $cache_file" >&6;}
16136 cat confcache >$cache_file
16137 else
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16139$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16140 fi
16141fi
16142rm -f confcache
16143
16144if test ${multilib} = yes; then
16145 multilib_arg="--enable-multilib"
fd6481cf 16146else
cd9a469c 16147 multilib_arg=
16148fi
16149
16150# Set up the set of libraries that we need to link against for libgomp.
16151# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
16152# which will force linkage against -lpthread (or equivalent for the system).
16153# That's not 100% ideal, but about the best we can do easily.
16154if test $enable_shared = yes; then
16155 link_gomp="-lgomp %{static: $LIBS}"
16156else
16157 link_gomp="-lgomp $LIBS"
16158fi
16159
16160
16161 if test "$ac_cv_fc_compiler_gnu" = yes; then
16162 USE_FORTRAN_TRUE=
16163 USE_FORTRAN_FALSE='#'
16164else
16165 USE_FORTRAN_TRUE='#'
16166 USE_FORTRAN_FALSE=
16167fi
16168
16169
16170# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16171# and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16172# the underscore here and update the PREREQ. If it doesn't, then we'll
16173# need to copy this macro to our acinclude.m4.
16174save_CFLAGS="$CFLAGS"
16175for i in $config_path; do
16176 if test -f $srcdir/config/$i/omp-lock.h; then
16177 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16178 break
16179 fi
16180done
fd6481cf 16181
cd9a469c 16182if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
fd6481cf 16183
cd9a469c 16184else
16185 as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16186fi
fd6481cf 16187
fd6481cf 16188
cd9a469c 16189if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
fd6481cf 16190
cd9a469c 16191fi
fd6481cf 16192
fd6481cf 16193
cd9a469c 16194if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
fd6481cf 16195
fd6481cf 16196fi
fd6481cf 16197
fd6481cf 16198
cd9a469c 16199if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
fd6481cf 16200
fd6481cf 16201fi
fd6481cf 16202
fd6481cf 16203
cd9a469c 16204if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
fd6481cf 16205
fd6481cf 16206else
cd9a469c 16207 as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16208fi
16209
16210
16211if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
fd6481cf 16212
16213fi
cd9a469c 16214
16215
16216if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16217
fd6481cf 16218fi
cd9a469c 16219
16220
16221if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16222
fd6481cf 16223fi
cd9a469c 16224
16225
fd6481cf 16226
16227# If the lock fits in an integer, then arrange for Fortran to use that
16228# integer. If it doesn't, then arrange for Fortran to use a pointer.
16229# Except that we don't have a way at present to multi-lib the installed
16230# Fortran modules, so we assume 8 bytes for pointers, regardless of the
16231# actual target.
16232OMP_LOCK_KIND=$OMP_LOCK_SIZE
16233OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16234if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16235 OMP_LOCK_KIND=8
16236fi
16237if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16238 OMP_NEST_LOCK_KIND=8
16239fi
16240OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16241OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16242if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16243 OMP_LOCK_25_KIND=8
16244fi
16245if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16246 OMP_NEST_LOCK_25_KIND=8
16247fi
16248
16249
16250
16251
16252
16253
107c3bbf 16254
16255
16256
16257
16258
16259
16260
16261CFLAGS="$save_CFLAGS"
16262
cd9a469c 16263ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
107c3bbf 16264
cd9a469c 16265ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
1e8e9920 16266
16267cat >confcache <<\_ACEOF
16268# This file is a shell script that caches the results of configure
16269# tests run on this system so they can be shared between configure
16270# scripts and configure runs, see configure's option --config-cache.
16271# It is not useful on other systems. If it contains results you don't
16272# want to keep, you may remove or edit it.
16273#
16274# config.status only pays attention to the cache file if you give it
16275# the --recheck option to rerun configure.
16276#
16277# `ac_cv_env_foo' variables (set or unset) will be overridden when
16278# loading this file, other *unset* `ac_cv_foo' will be assigned the
16279# following values.
16280
16281_ACEOF
16282
16283# The following way of writing the cache mishandles newlines in values,
16284# but we know of no workaround that is simple, portable, and efficient.
cd9a469c 16285# So, we kill variables containing newlines.
1e8e9920 16286# Ultrix sh set writes to stderr and can't be redirected directly,
16287# and sets the high bit in the cache file unless we assign to the vars.
cd9a469c 16288(
16289 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16290 eval ac_val=\$$ac_var
16291 case $ac_val in #(
16292 *${as_nl}*)
16293 case $ac_var in #(
16294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16295$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16296 esac
16297 case $ac_var in #(
16298 _ | IFS | as_nl) ;; #(
16299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16300 *) { eval $ac_var=; unset $ac_var;} ;;
16301 esac ;;
16302 esac
16303 done
16304
1e8e9920 16305 (set) 2>&1 |
cd9a469c 16306 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16307 *${as_nl}ac_space=\ *)
16308 # `set' does not quote correctly, so add quotes: double-quote
16309 # substitution turns \\\\ into \\, and sed turns \\ into \.
1e8e9920 16310 sed -n \
16311 "s/'/'\\\\''/g;
16312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 16313 ;; #(
1e8e9920 16314 *)
16315 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 16316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1e8e9920 16317 ;;
cd9a469c 16318 esac |
16319 sort
16320) |
1e8e9920 16321 sed '
cd9a469c 16322 /^ac_cv_env_/b end
1e8e9920 16323 t clear
cd9a469c 16324 :clear
1e8e9920 16325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16326 t end
cd9a469c 16327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16328 :end' >>confcache
16329if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16330 if test -w "$cache_file"; then
16331 test "x$cache_file" != "x/dev/null" &&
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16333$as_echo "$as_me: updating cache $cache_file" >&6;}
1e8e9920 16334 cat confcache >$cache_file
16335 else
cd9a469c 16336 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16337$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1e8e9920 16338 fi
16339fi
16340rm -f confcache
16341
16342test "x$prefix" = xNONE && prefix=$ac_default_prefix
16343# Let make expand exec_prefix.
16344test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16345
1e8e9920 16346DEFS=-DHAVE_CONFIG_H
16347
16348ac_libobjs=
16349ac_ltlibobjs=
16350for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16351 # 1. Remove the extension, and $U if already installed.
cd9a469c 16352 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16353 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16354 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16355 # will be set to the directory where LIBOBJS objects are built.
16356 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16357 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1e8e9920 16358done
16359LIBOBJS=$ac_libobjs
16360
16361LTLIBOBJS=$ac_ltlibobjs
16362
16363
aeda7a78 16364if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
cd9a469c 16365 as_fn_error "conditional \"GENINSRC\" was never defined.
16366Usually this means the macro was only invoked conditionally." "$LINENO" 5
16367fi
16368 if test -n "$EXEEXT"; then
16369 am__EXEEXT_TRUE=
16370 am__EXEEXT_FALSE='#'
16371else
16372 am__EXEEXT_TRUE='#'
16373 am__EXEEXT_FALSE=
aeda7a78 16374fi
cd9a469c 16375
1e8e9920 16376if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cd9a469c 16377 as_fn_error "conditional \"AMDEP\" was never defined.
16378Usually this means the macro was only invoked conditionally." "$LINENO" 5
1e8e9920 16379fi
16380if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cd9a469c 16381 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16382Usually this means the macro was only invoked conditionally." "$LINENO" 5
1e8e9920 16383fi
439d698f 16384if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
cd9a469c 16385 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16386Usually this means the macro was only invoked conditionally." "$LINENO" 5
439d698f 16387fi
a263d1ab 16388if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cd9a469c 16389 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16390Usually this means the macro was only invoked conditionally." "$LINENO" 5
a263d1ab 16391fi
1e8e9920 16392if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
cd9a469c 16393 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16394Usually this means the macro was only invoked conditionally." "$LINENO" 5
1e8e9920 16395fi
71cbce26 16396if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16397 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16398Usually this means the macro was only invoked conditionally." "$LINENO" 5
16399fi
16400if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16401 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16402Usually this means the macro was only invoked conditionally." "$LINENO" 5
16403fi
1e8e9920 16404if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
cd9a469c 16405 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16406Usually this means the macro was only invoked conditionally." "$LINENO" 5
1e8e9920 16407fi
16408
16409: ${CONFIG_STATUS=./config.status}
cd9a469c 16410ac_write_fail=0
1e8e9920 16411ac_clean_files_save=$ac_clean_files
16412ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cd9a469c 16413{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16414$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16415as_write_fail=0
16416cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1e8e9920 16417#! $SHELL
16418# Generated by $as_me.
16419# Run this file to recreate the current configuration.
16420# Compiler output produced by configure, useful for debugging
16421# configure, is in config.log if it exists.
16422
16423debug=false
16424ac_cs_recheck=false
16425ac_cs_silent=false
1e8e9920 16426
cd9a469c 16427SHELL=\${CONFIG_SHELL-$SHELL}
16428export SHELL
16429_ASEOF
16430cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16431## -------------------- ##
16432## M4sh Initialization. ##
16433## -------------------- ##
16434
16435# Be more Bourne compatible
16436DUALCASE=1; export DUALCASE # for MKS sh
16437if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1e8e9920 16438 emulate sh
16439 NULLCMD=:
cd9a469c 16440 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1e8e9920 16441 # is contrary to our usage. Disable this feature.
16442 alias -g '${1+"$@"}'='"$@"'
cd9a469c 16443 setopt NO_GLOB_SUBST
16444else
16445 case `(set -o) 2>/dev/null` in #(
16446 *posix*) :
16447 set -o posix ;; #(
16448 *) :
16449 ;;
16450esac
1e8e9920 16451fi
1e8e9920 16452
cd9a469c 16453
16454as_nl='
16455'
16456export as_nl
16457# Printing a long string crashes Solaris 7 /usr/bin/printf.
16458as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16459as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16460as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16461# Prefer a ksh shell builtin over an external printf program on Solaris,
16462# but without wasting forks for bash or zsh.
16463if test -z "$BASH_VERSION$ZSH_VERSION" \
16464 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16465 as_echo='print -r --'
16466 as_echo_n='print -rn --'
16467elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16468 as_echo='printf %s\n'
16469 as_echo_n='printf %s'
16470else
16471 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16472 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16473 as_echo_n='/usr/ucb/echo -n'
16474 else
16475 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16476 as_echo_n_body='eval
16477 arg=$1;
16478 case $arg in #(
16479 *"$as_nl"*)
16480 expr "X$arg" : "X\\(.*\\)$as_nl";
16481 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16482 esac;
16483 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16484 '
16485 export as_echo_n_body
16486 as_echo_n='sh -c $as_echo_n_body as_echo'
16487 fi
16488 export as_echo_body
16489 as_echo='sh -c $as_echo_body as_echo'
16490fi
16491
16492# The user is always right.
16493if test "${PATH_SEPARATOR+set}" != set; then
16494 PATH_SEPARATOR=:
16495 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16496 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16497 PATH_SEPARATOR=';'
16498 }
1e8e9920 16499fi
16500
16501
cd9a469c 16502# IFS
16503# We need space, tab and new line, in precisely that order. Quoting is
16504# there to prevent editors from complaining about space-tab.
16505# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16506# splitting by setting IFS to empty value.)
16507IFS=" "" $as_nl"
16508
16509# Find who we are. Look in the path if we contain no directory separator.
16510case $0 in #((
16511 *[\\/]* ) as_myself=$0 ;;
16512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16513for as_dir in $PATH
16514do
16515 IFS=$as_save_IFS
16516 test -z "$as_dir" && as_dir=.
16517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16518 done
16519IFS=$as_save_IFS
16520
16521 ;;
16522esac
16523# We did not find ourselves, most probably we were run as `sh COMMAND'
16524# in which case we are not to be found in the path.
16525if test "x$as_myself" = x; then
16526 as_myself=$0
16527fi
16528if test ! -f "$as_myself"; then
16529 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16530 exit 1
16531fi
16532
16533# Unset variables that we do not need and which cause bugs (e.g. in
16534# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16535# suppresses any "Segmentation fault" message there. '((' could
16536# trigger a bug in pdksh 5.2.14.
16537for as_var in BASH_ENV ENV MAIL MAILPATH
16538do eval test x\${$as_var+set} = xset \
16539 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16540done
1e8e9920 16541PS1='$ '
16542PS2='> '
16543PS4='+ '
16544
16545# NLS nuisances.
cd9a469c 16546LC_ALL=C
16547export LC_ALL
16548LANGUAGE=C
16549export LANGUAGE
16550
16551# CDPATH.
16552(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16553
16554
16555# as_fn_error ERROR [LINENO LOG_FD]
16556# ---------------------------------
16557# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16558# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16559# script with status $?, using 1 if that was 0.
16560as_fn_error ()
16561{
16562 as_status=$?; test $as_status -eq 0 && as_status=1
16563 if test "$3"; then
16564 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16565 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1e8e9920 16566 fi
cd9a469c 16567 $as_echo "$as_me: error: $1" >&2
16568 as_fn_exit $as_status
16569} # as_fn_error
16570
16571
16572# as_fn_set_status STATUS
16573# -----------------------
16574# Set $? to STATUS, without forking.
16575as_fn_set_status ()
16576{
16577 return $1
16578} # as_fn_set_status
16579
16580# as_fn_exit STATUS
16581# -----------------
16582# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16583as_fn_exit ()
16584{
16585 set +e
16586 as_fn_set_status $1
16587 exit $1
16588} # as_fn_exit
16589
16590# as_fn_unset VAR
16591# ---------------
16592# Portably unset VAR.
16593as_fn_unset ()
16594{
16595 { eval $1=; unset $1;}
16596}
16597as_unset=as_fn_unset
16598# as_fn_append VAR VALUE
16599# ----------------------
16600# Append the text in VALUE to the end of the definition contained in VAR. Take
16601# advantage of any shell optimizations that allow amortized linear growth over
16602# repeated appends, instead of the typical quadratic growth present in naive
16603# implementations.
16604if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16605 eval 'as_fn_append ()
16606 {
16607 eval $1+=\$2
16608 }'
16609else
16610 as_fn_append ()
16611 {
16612 eval $1=\$$1\$2
16613 }
16614fi # as_fn_append
16615
16616# as_fn_arith ARG...
16617# ------------------
16618# Perform arithmetic evaluation on the ARGs, and store the result in the
16619# global $as_val. Take advantage of shells that can avoid forks. The arguments
16620# must be portable across $(()) and expr.
16621if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16622 eval 'as_fn_arith ()
16623 {
16624 as_val=$(( $* ))
16625 }'
16626else
16627 as_fn_arith ()
16628 {
16629 as_val=`expr "$@" || test $? -eq 1`
16630 }
16631fi # as_fn_arith
16632
1e8e9920 16633
cd9a469c 16634if expr a : '\(a\)' >/dev/null 2>&1 &&
16635 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1e8e9920 16636 as_expr=expr
16637else
16638 as_expr=false
16639fi
16640
cd9a469c 16641if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1e8e9920 16642 as_basename=basename
16643else
16644 as_basename=false
16645fi
16646
cd9a469c 16647if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16648 as_dirname=dirname
16649else
16650 as_dirname=false
16651fi
1e8e9920 16652
cd9a469c 16653as_me=`$as_basename -- "$0" ||
1e8e9920 16654$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16655 X"$0" : 'X\(//\)$' \| \
cd9a469c 16656 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16657$as_echo X/"$0" |
16658 sed '/^.*\/\([^/][^/]*\)\/*$/{
16659 s//\1/
16660 q
16661 }
16662 /^X\/\(\/\/\)$/{
16663 s//\1/
16664 q
16665 }
16666 /^X\/\(\/\).*/{
16667 s//\1/
16668 q
16669 }
16670 s/.*/./; q'`
1e8e9920 16671
1e8e9920 16672# Avoid depending upon Character Ranges.
16673as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16674as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16675as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16676as_cr_digits='0123456789'
16677as_cr_alnum=$as_cr_Letters$as_cr_digits
16678
cd9a469c 16679ECHO_C= ECHO_N= ECHO_T=
16680case `echo -n x` in #(((((
16681-n*)
16682 case `echo 'xy\c'` in
16683 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16684 xy) ECHO_C='\c';;
16685 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16686 ECHO_T=' ';;
16687 esac;;
16688*)
16689 ECHO_N='-n';;
1e8e9920 16690esac
16691
cd9a469c 16692rm -f conf$$ conf$$.exe conf$$.file
16693if test -d conf$$.dir; then
16694 rm -f conf$$.dir/conf$$.file
1e8e9920 16695else
cd9a469c 16696 rm -f conf$$.dir
16697 mkdir conf$$.dir 2>/dev/null
1e8e9920 16698fi
cd9a469c 16699if (echo >conf$$.file) 2>/dev/null; then
16700 if ln -s conf$$.file conf$$ 2>/dev/null; then
1e8e9920 16701 as_ln_s='ln -s'
cd9a469c 16702 # ... but there are two gotchas:
16703 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16704 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16705 # In both cases, we have to default to `cp -p'.
16706 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16707 as_ln_s='cp -p'
16708 elif ln conf$$.file conf$$ 2>/dev/null; then
16709 as_ln_s=ln
16710 else
16711 as_ln_s='cp -p'
1e8e9920 16712 fi
1e8e9920 16713else
16714 as_ln_s='cp -p'
16715fi
cd9a469c 16716rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16717rmdir conf$$.dir 2>/dev/null
16718
16719
16720# as_fn_mkdir_p
16721# -------------
16722# Create "$as_dir" as a directory, including parents if necessary.
16723as_fn_mkdir_p ()
16724{
16725
16726 case $as_dir in #(
16727 -*) as_dir=./$as_dir;;
16728 esac
16729 test -d "$as_dir" || eval $as_mkdir_p || {
16730 as_dirs=
16731 while :; do
16732 case $as_dir in #(
16733 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16734 *) as_qdir=$as_dir;;
16735 esac
16736 as_dirs="'$as_qdir' $as_dirs"
16737 as_dir=`$as_dirname -- "$as_dir" ||
16738$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16739 X"$as_dir" : 'X\(//\)[^/]' \| \
16740 X"$as_dir" : 'X\(//\)$' \| \
16741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16742$as_echo X"$as_dir" |
16743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16744 s//\1/
16745 q
16746 }
16747 /^X\(\/\/\)[^/].*/{
16748 s//\1/
16749 q
16750 }
16751 /^X\(\/\/\)$/{
16752 s//\1/
16753 q
16754 }
16755 /^X\(\/\).*/{
16756 s//\1/
16757 q
16758 }
16759 s/.*/./; q'`
16760 test -d "$as_dir" && break
16761 done
16762 test -z "$as_dirs" || eval "mkdir $as_dirs"
16763 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16764
1e8e9920 16765
cd9a469c 16766} # as_fn_mkdir_p
1e8e9920 16767if mkdir -p . 2>/dev/null; then
cd9a469c 16768 as_mkdir_p='mkdir -p "$as_dir"'
1e8e9920 16769else
16770 test -d ./-p && rmdir ./-p
16771 as_mkdir_p=false
16772fi
16773
cd9a469c 16774if test -x / >/dev/null 2>&1; then
16775 as_test_x='test -x'
16776else
16777 if ls -dL / >/dev/null 2>&1; then
16778 as_ls_L_option=L
16779 else
16780 as_ls_L_option=
16781 fi
16782 as_test_x='
16783 eval sh -c '\''
16784 if test -d "$1"; then
16785 test -d "$1/.";
16786 else
16787 case $1 in #(
16788 -*)set "./$1";;
16789 esac;
16790 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16791 ???[sx]*):;;*)false;;esac;fi
16792 '\'' sh
16793 '
16794fi
16795as_executable_p=$as_test_x
1e8e9920 16796
16797# Sed expression to map a string onto a valid CPP name.
16798as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16799
cd9a469c 16800# Sed expression to map a string onto a valid variable name.
16801as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1e8e9920 16802
1e8e9920 16803
16804exec 6>&1
cd9a469c 16805## ----------------------------------- ##
16806## Main body of $CONFIG_STATUS script. ##
16807## ----------------------------------- ##
16808_ASEOF
16809test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16810
16811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16812# Save the log message, to keep $0 and so on meaningful, and to
1e8e9920 16813# report actual input values of CONFIG_FILES etc. instead of their
cd9a469c 16814# values after options handling.
16815ac_log="
1e8e9920 16816This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
cd9a469c 16817generated by GNU Autoconf 2.64. Invocation command line was
1e8e9920 16818
16819 CONFIG_FILES = $CONFIG_FILES
16820 CONFIG_HEADERS = $CONFIG_HEADERS
16821 CONFIG_LINKS = $CONFIG_LINKS
16822 CONFIG_COMMANDS = $CONFIG_COMMANDS
16823 $ $0 $@
16824
cd9a469c 16825on `(hostname || uname -n) 2>/dev/null | sed 1q`
16826"
16827
1e8e9920 16828_ACEOF
16829
cd9a469c 16830case $ac_config_files in *"
16831"*) set x $ac_config_files; shift; ac_config_files=$*;;
16832esac
1e8e9920 16833
cd9a469c 16834case $ac_config_headers in *"
16835"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16836esac
1e8e9920 16837
1e8e9920 16838
cd9a469c 16839cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16840# Files that config.status was made for.
16841config_files="$ac_config_files"
16842config_headers="$ac_config_headers"
16843config_commands="$ac_config_commands"
1e8e9920 16844
cd9a469c 16845_ACEOF
1e8e9920 16846
cd9a469c 16847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1e8e9920 16848ac_cs_usage="\
cd9a469c 16849\`$as_me' instantiates files and other configuration actions
16850from templates according to the current configuration. Unless the files
16851and actions are specified as TAGs, all are instantiated by default.
1e8e9920 16852
cd9a469c 16853Usage: $0 [OPTION]... [TAG]...
1e8e9920 16854
16855 -h, --help print this help, then exit
cd9a469c 16856 -V, --version print version number and configuration settings, then exit
16857 -q, --quiet, --silent
16858 do not print progress messages
1e8e9920 16859 -d, --debug don't remove temporary files
16860 --recheck update $as_me by reconfiguring in the same conditions
cd9a469c 16861 --file=FILE[:TEMPLATE]
16862 instantiate the configuration file FILE
16863 --header=FILE[:TEMPLATE]
16864 instantiate the configuration header FILE
1e8e9920 16865
16866Configuration files:
16867$config_files
16868
16869Configuration headers:
16870$config_headers
16871
16872Configuration commands:
16873$config_commands
16874
cd9a469c 16875Report bugs to the package provider.
16876GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
16877General help using GNU software: <http://www.gnu.org/gethelp/>."
1e8e9920 16878
cd9a469c 16879_ACEOF
16880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1e8e9920 16881ac_cs_version="\\
16882GNU OpenMP Runtime Library config.status 1.0
cd9a469c 16883configured by $0, generated by GNU Autoconf 2.64,
16884 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1e8e9920 16885
cd9a469c 16886Copyright (C) 2009 Free Software Foundation, Inc.
1e8e9920 16887This config.status script is free software; the Free Software Foundation
16888gives unlimited permission to copy, distribute and modify it."
cd9a469c 16889
16890ac_pwd='$ac_pwd'
16891srcdir='$srcdir'
16892INSTALL='$INSTALL'
16893MKDIR_P='$MKDIR_P'
16894AWK='$AWK'
16895test -n "\$AWK" || AWK=awk
1e8e9920 16896_ACEOF
16897
cd9a469c 16898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16899# The default lists apply if the user does not specify any file.
1e8e9920 16900ac_need_defaults=:
16901while test $# != 0
16902do
16903 case $1 in
16904 --*=*)
cd9a469c 16905 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16906 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1e8e9920 16907 ac_shift=:
16908 ;;
cd9a469c 16909 *)
1e8e9920 16910 ac_option=$1
16911 ac_optarg=$2
16912 ac_shift=shift
16913 ;;
1e8e9920 16914 esac
16915
16916 case $ac_option in
16917 # Handling of the options.
1e8e9920 16918 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16919 ac_cs_recheck=: ;;
cd9a469c 16920 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16921 $as_echo "$ac_cs_version"; exit ;;
16922 --debug | --debu | --deb | --de | --d | -d )
1e8e9920 16923 debug=: ;;
16924 --file | --fil | --fi | --f )
16925 $ac_shift
cd9a469c 16926 case $ac_optarg in
16927 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16928 esac
16929 as_fn_append CONFIG_FILES " '$ac_optarg'"
1e8e9920 16930 ac_need_defaults=false;;
16931 --header | --heade | --head | --hea )
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_HEADERS " '$ac_optarg'"
1e8e9920 16937 ac_need_defaults=false;;
cd9a469c 16938 --he | --h)
16939 # Conflict between --help and --header
16940 as_fn_error "ambiguous option: \`$1'
16941Try \`$0 --help' for more information.";;
16942 --help | --hel | -h )
16943 $as_echo "$ac_cs_usage"; exit ;;
1e8e9920 16944 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16945 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16946 ac_cs_silent=: ;;
16947
16948 # This is an error.
cd9a469c 16949 -*) as_fn_error "unrecognized option: \`$1'
16950Try \`$0 --help' for more information." ;;
1e8e9920 16951
cd9a469c 16952 *) as_fn_append ac_config_targets " $1"
16953 ac_need_defaults=false ;;
1e8e9920 16954
16955 esac
16956 shift
16957done
16958
16959ac_configure_extra_args=
16960
16961if $ac_cs_silent; then
16962 exec 6>/dev/null
16963 ac_configure_extra_args="$ac_configure_extra_args --silent"
16964fi
16965
16966_ACEOF
cd9a469c 16967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1e8e9920 16968if \$ac_cs_recheck; then
cd9a469c 16969 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16970 shift
16971 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16972 CONFIG_SHELL='$SHELL'
16973 export CONFIG_SHELL
16974 exec "\$@"
1e8e9920 16975fi
16976
16977_ACEOF
cd9a469c 16978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16979exec 5>>config.log
16980{
16981 echo
16982 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16983## Running $as_me. ##
16984_ASBOX
16985 $as_echo "$ac_log"
16986} >&5
1e8e9920 16987
cd9a469c 16988_ACEOF
16989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1e8e9920 16990#
cd9a469c 16991# INIT-COMMANDS
1e8e9920 16992#
16993
1e8e9920 16994srcdir="$srcdir"
16995host="$host"
16996target="$target"
16997with_multisubdir="$with_multisubdir"
16998with_multisrctop="$with_multisrctop"
16999with_target_subdir="$with_target_subdir"
17000ac_configure_args="${multilib_arg} ${ac_configure_args}"
17001multi_basedir="$multi_basedir"
17002CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17003CC="$CC"
0a475b3b 17004CXX="$CXX"
17005GFORTRAN="$GFORTRAN"
17006GCJ="$GCJ"
1e8e9920 17007AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17008
542f9784 17009
17010# The HP-UX ksh and POSIX shell print the target directory to stdout
17011# if CDPATH is set.
17012(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17013
17014sed_quote_subst='$sed_quote_subst'
17015double_quote_subst='$double_quote_subst'
17016delay_variable_subst='$delay_variable_subst'
e6408286 17017macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17018macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17019enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17020enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17021pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17022enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17023SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17024ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17025host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17026host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17027host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17028build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17029build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17030build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17031SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17032Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17033GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17034EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17035FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17036LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17037NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17038LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17039max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17040ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17041exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17042lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17043lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17044lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17045reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17046reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17047OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17048deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17049file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17050AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17051AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17052STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17053RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17054old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17055old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17056old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17057lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17058CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17059CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17060compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17061GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17062lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17063lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17064lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17065lt_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"`'
17066objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17067MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17068lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17069lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17070lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17071lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17072lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17073need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17074DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17075NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17076LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17077OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17078OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17079libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17080shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17081extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17082archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17083enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17084export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17085whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17086compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17087old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17088old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17089archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17090archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17091module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17092module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17093with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17094allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17095no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17096hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17097hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17098hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17099hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17100hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17101hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17102hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17103hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17104inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17105link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17106fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17107always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17108export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17109exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17110include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17111prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17112file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17113variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17114need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17115need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17116version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17117runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17118shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17119shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17120libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17121library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17122soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17123install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17124postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17125postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17126finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17127finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17128hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17129sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17130sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17131hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17132enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17133enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17134enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17135old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17136striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17137compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17138predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17139postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17140predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17141postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17142compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17143LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17144reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17145reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17146old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17147compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17148GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17149lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17150lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17151lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17152lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17153lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17154archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17155enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17156export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17157whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17158compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17159old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17160old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17161archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17162archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17163module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17164module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17165with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17166allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17167no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17168hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17169hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17170hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17171hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17172hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17173hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17174hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17175hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17176inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17177link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17178fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17179always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17180export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17181exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17182include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17183prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17184file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17185hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17186compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17187predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17188postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17189predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17190postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17191compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
542f9784 17192
17193LTCC='$LTCC'
17194LTCFLAGS='$LTCFLAGS'
17195compiler='$compiler_DEFAULT'
17196
e6408286 17197# A function that is used when there is no print builtin or printf.
17198func_fallback_echo ()
17199{
17200 eval 'cat <<_LTECHO_EOF
17201\$1
17202_LTECHO_EOF'
17203}
17204
542f9784 17205# Quote evaled strings.
e6408286 17206for var in SHELL \
17207ECHO \
17208SED \
542f9784 17209GREP \
17210EGREP \
17211FGREP \
17212LD \
17213NM \
17214LN_S \
17215lt_SP2NL \
17216lt_NL2SP \
17217reload_flag \
6d873a38 17218OBJDUMP \
542f9784 17219deplibs_check_method \
17220file_magic_cmd \
17221AR \
17222AR_FLAGS \
17223STRIP \
17224RANLIB \
17225CC \
17226CFLAGS \
17227compiler \
17228lt_cv_sys_global_symbol_pipe \
17229lt_cv_sys_global_symbol_to_cdecl \
17230lt_cv_sys_global_symbol_to_c_name_address \
6d873a38 17231lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
542f9784 17232lt_prog_compiler_no_builtin_flag \
17233lt_prog_compiler_wl \
17234lt_prog_compiler_pic \
17235lt_prog_compiler_static \
17236lt_cv_prog_compiler_c_o \
17237need_locks \
6d873a38 17238DSYMUTIL \
17239NMEDIT \
17240LIPO \
17241OTOOL \
17242OTOOL64 \
542f9784 17243shrext_cmds \
17244export_dynamic_flag_spec \
17245whole_archive_flag_spec \
17246compiler_needs_object \
17247with_gnu_ld \
17248allow_undefined_flag \
17249no_undefined_flag \
17250hardcode_libdir_flag_spec \
17251hardcode_libdir_flag_spec_ld \
17252hardcode_libdir_separator \
17253fix_srcfile_path \
17254exclude_expsyms \
17255include_expsyms \
17256file_list_spec \
17257variables_saved_for_relink \
17258libname_spec \
17259library_names_spec \
17260soname_spec \
e6408286 17261install_override_mode \
542f9784 17262finish_eval \
17263old_striplib \
17264striplib \
6d873a38 17265compiler_lib_search_dirs \
542f9784 17266predep_objects \
17267postdep_objects \
17268predeps \
17269postdeps \
17270compiler_lib_search_path \
17271LD_FC \
e6408286 17272reload_flag_FC \
542f9784 17273compiler_FC \
17274lt_prog_compiler_no_builtin_flag_FC \
17275lt_prog_compiler_wl_FC \
17276lt_prog_compiler_pic_FC \
17277lt_prog_compiler_static_FC \
17278lt_cv_prog_compiler_c_o_FC \
17279export_dynamic_flag_spec_FC \
17280whole_archive_flag_spec_FC \
17281compiler_needs_object_FC \
17282with_gnu_ld_FC \
17283allow_undefined_flag_FC \
17284no_undefined_flag_FC \
17285hardcode_libdir_flag_spec_FC \
17286hardcode_libdir_flag_spec_ld_FC \
17287hardcode_libdir_separator_FC \
17288fix_srcfile_path_FC \
17289exclude_expsyms_FC \
17290include_expsyms_FC \
17291file_list_spec_FC \
6d873a38 17292compiler_lib_search_dirs_FC \
542f9784 17293predep_objects_FC \
17294postdep_objects_FC \
17295predeps_FC \
17296postdeps_FC \
17297compiler_lib_search_path_FC; do
e6408286 17298 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
542f9784 17299 *[\\\\\\\`\\"\\\$]*)
e6408286 17300 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
542f9784 17301 ;;
17302 *)
17303 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17304 ;;
17305 esac
17306done
17307
17308# Double-quote double-evaled strings.
17309for var in reload_cmds \
17310old_postinstall_cmds \
17311old_postuninstall_cmds \
17312old_archive_cmds \
17313extract_expsyms_cmds \
17314old_archive_from_new_cmds \
17315old_archive_from_expsyms_cmds \
17316archive_cmds \
17317archive_expsym_cmds \
17318module_cmds \
17319module_expsym_cmds \
17320export_symbols_cmds \
17321prelink_cmds \
17322postinstall_cmds \
17323postuninstall_cmds \
17324finish_cmds \
17325sys_lib_search_path_spec \
17326sys_lib_dlsearch_path_spec \
e6408286 17327reload_cmds_FC \
542f9784 17328old_archive_cmds_FC \
17329old_archive_from_new_cmds_FC \
17330old_archive_from_expsyms_cmds_FC \
17331archive_cmds_FC \
17332archive_expsym_cmds_FC \
17333module_cmds_FC \
17334module_expsym_cmds_FC \
17335export_symbols_cmds_FC \
17336prelink_cmds_FC; do
e6408286 17337 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
542f9784 17338 *[\\\\\\\`\\"\\\$]*)
e6408286 17339 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
542f9784 17340 ;;
17341 *)
17342 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17343 ;;
17344 esac
17345done
17346
542f9784 17347ac_aux_dir='$ac_aux_dir'
17348xsi_shell='$xsi_shell'
17349lt_shell_append='$lt_shell_append'
17350
17351# See if we are running on zsh, and set the options which allow our
17352# commands through without removal of \ escapes INIT.
17353if test -n "\${ZSH_VERSION+set}" ; then
17354 setopt NO_GLOB_SUBST
17355fi
17356
17357
17358 PACKAGE='$PACKAGE'
17359 VERSION='$VERSION'
17360 TIMESTAMP='$TIMESTAMP'
17361 RM='$RM'
17362 ofile='$ofile'
17363
17364
17365
17366
17367
17368
01473a49 17369GCC="$GCC"
17370CC="$CC"
17371acx_cv_header_stdint="$acx_cv_header_stdint"
17372acx_cv_type_int8_t="$acx_cv_type_int8_t"
17373acx_cv_type_int16_t="$acx_cv_type_int16_t"
17374acx_cv_type_int32_t="$acx_cv_type_int32_t"
17375acx_cv_type_int64_t="$acx_cv_type_int64_t"
17376acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17377ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17378ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17379ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17380ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17381ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17382ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17383ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17384ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17385
17386
1e8e9920 17387_ACEOF
17388
cd9a469c 17389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1e8e9920 17390
cd9a469c 17391# Handling of arguments.
1e8e9920 17392for ac_config_target in $ac_config_targets
17393do
cd9a469c 17394 case $ac_config_target in
17395 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17396 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17397 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17398 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17399 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17400 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17401 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17402 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17403 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17404 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17405 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17406 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17407
17408 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1e8e9920 17409 esac
17410done
17411
cd9a469c 17412
1e8e9920 17413# If the user did not use the arguments to specify the items to instantiate,
17414# then the envvar interface is used. Set only those that are not.
17415# We use the long form for the default assignment because of an extremely
17416# bizarre bug on SunOS 4.1.3.
17417if $ac_need_defaults; then
17418 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17419 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17420 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17421fi
17422
17423# Have a temporary directory for convenience. Make it in the build tree
cd9a469c 17424# simply because there is no reason against having it here, and in addition,
1e8e9920 17425# creating and moving files from /tmp can sometimes cause problems.
cd9a469c 17426# Hook for its removal unless debugging.
17427# Note that there is a small window in which the directory will not be cleaned:
17428# after its creation but before its name has been assigned to `$tmp'.
1e8e9920 17429$debug ||
17430{
cd9a469c 17431 tmp=
17432 trap 'exit_status=$?
17433 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17434' 0
17435 trap 'as_fn_exit 1' 1 2 13 15
1e8e9920 17436}
1e8e9920 17437# Create a (secure) tmp directory for tmp files.
17438
17439{
cd9a469c 17440 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1e8e9920 17441 test -n "$tmp" && test -d "$tmp"
17442} ||
17443{
cd9a469c 17444 tmp=./conf$$-$RANDOM
17445 (umask 077 && mkdir "$tmp")
17446} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17447
17448# Set up the scripts for CONFIG_FILES section.
17449# No need to generate them if there are no CONFIG_FILES.
17450# This happens for instance with `./config.status config.h'.
17451if test -n "$CONFIG_FILES"; then
17452
17453
17454ac_cr=`echo X | tr X '\015'`
17455# On cygwin, bash can eat \r inside `` if the user requested igncr.
17456# But we know of no other shell where ac_cr would be empty at this
17457# point, so we can use a bashism as a fallback.
17458if test "x$ac_cr" = x; then
17459 eval ac_cr=\$\'\\r\'
17460fi
17461ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17462if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17463 ac_cs_awk_cr='\r'
17464else
17465 ac_cs_awk_cr=$ac_cr
17466fi
17467
17468echo 'BEGIN {' >"$tmp/subs1.awk" &&
17469_ACEOF
17470
17471
1e8e9920 17472{
cd9a469c 17473 echo "cat >conf$$subs.awk <<_ACEOF" &&
17474 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17475 echo "_ACEOF"
17476} >conf$$subs.sh ||
17477 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17478ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17479ac_delim='%!_!# '
17480for ac_last_try in false false false false false :; do
17481 . ./conf$$subs.sh ||
17482 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17483
17484 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17485 if test $ac_delim_n = $ac_delim_num; then
17486 break
17487 elif $ac_last_try; then
17488 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17489 else
17490 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17491 fi
17492done
17493rm -f conf$$subs.sh
17494
17495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17496cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17497_ACEOF
17498sed -n '
17499h
17500s/^/S["/; s/!.*/"]=/
17501p
17502g
17503s/^[^!]*!//
17504:repl
17505t repl
17506s/'"$ac_delim"'$//
17507t delim
17508:nl
17509h
17510s/\(.\{148\}\).*/\1/
17511t more1
17512s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17513p
17514n
17515b repl
17516:more1
17517s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17518p
17519g
17520s/.\{148\}//
17521t nl
17522:delim
17523h
17524s/\(.\{148\}\).*/\1/
17525t more2
17526s/["\\]/\\&/g; s/^/"/; s/$/"/
17527p
17528b
17529:more2
17530s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17531p
17532g
17533s/.\{148\}//
17534t delim
17535' <conf$$subs.awk | sed '
17536/^[^""]/{
17537 N
17538 s/\n//
1e8e9920 17539}
cd9a469c 17540' >>$CONFIG_STATUS || ac_write_fail=1
17541rm -f conf$$subs.awk
17542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17543_ACAWK
17544cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17545 for (key in S) S_is_set[key] = 1
17546 FS = "\a"
1e8e9920 17547
cd9a469c 17548}
17549{
17550 line = $ 0
17551 nfields = split(line, field, "@")
17552 substed = 0
17553 len = length(field[1])
17554 for (i = 2; i < nfields; i++) {
17555 key = field[i]
17556 keylen = length(key)
17557 if (S_is_set[key]) {
17558 value = S[key]
17559 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17560 len += length(value) + length(field[++i])
17561 substed = 1
17562 } else
17563 len += 1 + keylen
17564 }
1e8e9920 17565
cd9a469c 17566 print line
17567}
1e8e9920 17568
cd9a469c 17569_ACAWK
17570_ACEOF
17571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17572if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17573 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17574else
17575 cat
17576fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17577 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17578_ACEOF
17579
17580# VPATH may cause trouble with some makes, so we remove $(srcdir),
17581# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17582# trailing colons and then remove the whole line if VPATH becomes empty
17583# (actually we leave an empty line to preserve line numbers).
17584if test "x$srcdir" = x.; then
17585 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17586s/:*\$(srcdir):*/:/
17587s/:*\${srcdir}:*/:/
17588s/:*@srcdir@:*/:/
17589s/^\([^=]*=[ ]*\):*/\1/
17590s/:*$//
17591s/^[^=]*=[ ]*$//
17592}'
17593fi
1e8e9920 17594
cd9a469c 17595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17596fi # test -n "$CONFIG_FILES"
1e8e9920 17597
cd9a469c 17598# Set up the scripts for CONFIG_HEADERS section.
17599# No need to generate them if there are no CONFIG_HEADERS.
17600# This happens for instance with `./config.status Makefile'.
17601if test -n "$CONFIG_HEADERS"; then
17602cat >"$tmp/defines.awk" <<\_ACAWK ||
17603BEGIN {
1e8e9920 17604_ACEOF
17605
cd9a469c 17606# Transform confdefs.h into an awk script `defines.awk', embedded as
17607# here-document in config.status, that substitutes the proper values into
17608# config.h.in to produce config.h.
17609
17610# Create a delimiter string that does not exist in confdefs.h, to ease
17611# handling of long lines.
17612ac_delim='%!_!# '
17613for ac_last_try in false false :; do
17614 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17615 if test -z "$ac_t"; then
17616 break
17617 elif $ac_last_try; then
17618 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17619 else
17620 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1e8e9920 17621 fi
cd9a469c 17622done
1e8e9920 17623
cd9a469c 17624# For the awk script, D is an array of macro values keyed by name,
17625# likewise P contains macro parameters if any. Preserve backslash
17626# newline sequences.
17627
17628ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17629sed -n '
17630s/.\{148\}/&'"$ac_delim"'/g
17631t rset
17632:rset
17633s/^[ ]*#[ ]*define[ ][ ]*/ /
17634t def
17635d
17636:def
17637s/\\$//
17638t bsnl
17639s/["\\]/\\&/g
17640s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17641D["\1"]=" \3"/p
17642s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17643d
17644:bsnl
17645s/["\\]/\\&/g
17646s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17647D["\1"]=" \3\\\\\\n"\\/p
17648t cont
17649s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17650t cont
17651d
17652:cont
17653n
17654s/.\{148\}/&'"$ac_delim"'/g
17655t clear
17656:clear
17657s/\\$//
17658t bsnlc
17659s/["\\]/\\&/g; s/^/"/; s/$/"/p
17660d
17661:bsnlc
17662s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17663b cont
17664' <confdefs.h | sed '
17665s/'"$ac_delim"'/"\\\
17666"/g' >>$CONFIG_STATUS || ac_write_fail=1
17667
17668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17669 for (key in D) D_is_set[key] = 1
17670 FS = "\a"
17671}
17672/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17673 line = \$ 0
17674 split(line, arg, " ")
17675 if (arg[1] == "#") {
17676 defundef = arg[2]
17677 mac1 = arg[3]
17678 } else {
17679 defundef = substr(arg[1], 2)
17680 mac1 = arg[2]
17681 }
17682 split(mac1, mac2, "(") #)
17683 macro = mac2[1]
17684 prefix = substr(line, 1, index(line, defundef) - 1)
17685 if (D_is_set[macro]) {
17686 # Preserve the white space surrounding the "#".
17687 print prefix "define", macro P[macro] D[macro]
17688 next
17689 } else {
17690 # Replace #undef with comments. This is necessary, for example,
17691 # in the case of _POSIX_SOURCE, which is predefined and required
17692 # on some systems where configure will not decide to define it.
17693 if (defundef == "undef") {
17694 print "/*", prefix defundef, macro, "*/"
17695 next
17696 }
17697 }
17698}
17699{ print }
17700_ACAWK
1e8e9920 17701_ACEOF
cd9a469c 17702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17703 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17704fi # test -n "$CONFIG_HEADERS"
17705
17706
17707eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17708shift
17709for ac_tag
17710do
17711 case $ac_tag in
17712 :[FHLC]) ac_mode=$ac_tag; continue;;
17713 esac
17714 case $ac_mode$ac_tag in
17715 :[FHL]*:*);;
17716 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17717 :[FH]-) ac_tag=-:-;;
17718 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17719 esac
17720 ac_save_IFS=$IFS
17721 IFS=:
17722 set x $ac_tag
17723 IFS=$ac_save_IFS
17724 shift
17725 ac_file=$1
17726 shift
17727
17728 case $ac_mode in
17729 :L) ac_source=$1;;
17730 :[FH])
17731 ac_file_inputs=
17732 for ac_f
17733 do
17734 case $ac_f in
17735 -) ac_f="$tmp/stdin";;
17736 *) # Look for the file first in the build tree, then in the source tree
17737 # (if the path is not absolute). The absolute path cannot be DOS-style,
17738 # because $ac_f cannot contain `:'.
17739 test -f "$ac_f" ||
17740 case $ac_f in
17741 [\\/$]*) false;;
17742 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17743 esac ||
17744 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17745 esac
17746 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17747 as_fn_append ac_file_inputs " '$ac_f'"
17748 done
17749
17750 # Let's still pretend it is `configure' which instantiates (i.e., don't
17751 # use $as_me), people would be surprised to read:
17752 # /* config.h. Generated by config.status. */
17753 configure_input='Generated from '`
17754 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17755 `' by configure.'
17756 if test x"$ac_file" != x-; then
17757 configure_input="$ac_file. $configure_input"
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17759$as_echo "$as_me: creating $ac_file" >&6;}
17760 fi
17761 # Neutralize special characters interpreted by sed in replacement strings.
17762 case $configure_input in #(
17763 *\&* | *\|* | *\\* )
17764 ac_sed_conf_input=`$as_echo "$configure_input" |
17765 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17766 *) ac_sed_conf_input=$configure_input;;
17767 esac
17768
17769 case $ac_tag in
17770 *:-:* | *:-) cat >"$tmp/stdin" \
17771 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17772 esac
17773 ;;
1e8e9920 17774 esac
17775
cd9a469c 17776 ac_dir=`$as_dirname -- "$ac_file" ||
1e8e9920 17777$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17778 X"$ac_file" : 'X\(//\)[^/]' \| \
17779 X"$ac_file" : 'X\(//\)$' \| \
cd9a469c 17780 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17781$as_echo X"$ac_file" |
17782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17783 s//\1/
17784 q
17785 }
17786 /^X\(\/\/\)[^/].*/{
17787 s//\1/
17788 q
17789 }
17790 /^X\(\/\/\)$/{
17791 s//\1/
17792 q
17793 }
17794 /^X\(\/\).*/{
17795 s//\1/
17796 q
17797 }
17798 s/.*/./; q'`
17799 as_dir="$ac_dir"; as_fn_mkdir_p
1e8e9920 17800 ac_builddir=.
17801
cd9a469c 17802case "$ac_dir" in
17803.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17804*)
17805 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17806 # A ".." for each directory in $ac_dir_suffix.
17807 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17808 case $ac_top_builddir_sub in
17809 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17810 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17811 esac ;;
17812esac
17813ac_abs_top_builddir=$ac_pwd
17814ac_abs_builddir=$ac_pwd$ac_dir_suffix
17815# for backward compatibility:
17816ac_top_builddir=$ac_top_build_prefix
1e8e9920 17817
17818case $srcdir in
cd9a469c 17819 .) # We are building in place.
1e8e9920 17820 ac_srcdir=.
cd9a469c 17821 ac_top_srcdir=$ac_top_builddir_sub
17822 ac_abs_top_srcdir=$ac_pwd ;;
17823 [\\/]* | ?:[\\/]* ) # Absolute name.
1e8e9920 17824 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 17825 ac_top_srcdir=$srcdir
17826 ac_abs_top_srcdir=$srcdir ;;
17827 *) # Relative name.
17828 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17829 ac_top_srcdir=$ac_top_build_prefix$srcdir
17830 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1e8e9920 17831esac
cd9a469c 17832ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1e8e9920 17833
1e8e9920 17834
cd9a469c 17835 case $ac_mode in
17836 :F)
17837 #
17838 # CONFIG_FILE
17839 #
1e8e9920 17840
17841 case $INSTALL in
17842 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cd9a469c 17843 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1e8e9920 17844 esac
cd9a469c 17845 ac_MKDIR_P=$MKDIR_P
17846 case $MKDIR_P in
17847 [\\/$]* | ?:[\\/]* ) ;;
17848 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17849 esac
17850_ACEOF
1e8e9920 17851
cd9a469c 17852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17853# If the template does not know about datarootdir, expand it.
17854# FIXME: This hack should be removed a few years after 2.60.
17855ac_datarootdir_hack=; ac_datarootdir_seen=
17856ac_sed_dataroot='
17857/datarootdir/ {
17858 p
17859 q
17860}
17861/@datadir@/p
17862/@docdir@/p
17863/@infodir@/p
17864/@localedir@/p
17865/@mandir@/p'
17866case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17867*datarootdir*) ac_datarootdir_seen=yes;;
17868*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17870$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17871_ACEOF
17872cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17873 ac_datarootdir_hack='
17874 s&@datadir@&$datadir&g
17875 s&@docdir@&$docdir&g
17876 s&@infodir@&$infodir&g
17877 s&@localedir@&$localedir&g
17878 s&@mandir@&$mandir&g
17879 s&\\\${datarootdir}&$datarootdir&g' ;;
17880esac
1e8e9920 17881_ACEOF
cd9a469c 17882
17883# Neutralize VPATH when `$srcdir' = `.'.
17884# Shell code in configure.ac might set extrasub.
17885# FIXME: do we really want to maintain this feature?
17886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17887ac_sed_extra="$ac_vpsub
1e8e9920 17888$extrasub
17889_ACEOF
cd9a469c 17890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1e8e9920 17891:t
17892/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cd9a469c 17893s|@configure_input@|$ac_sed_conf_input|;t t
17894s&@top_builddir@&$ac_top_builddir_sub&;t t
17895s&@top_build_prefix@&$ac_top_build_prefix&;t t
17896s&@srcdir@&$ac_srcdir&;t t
17897s&@abs_srcdir@&$ac_abs_srcdir&;t t
17898s&@top_srcdir@&$ac_top_srcdir&;t t
17899s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17900s&@builddir@&$ac_builddir&;t t
17901s&@abs_builddir@&$ac_abs_builddir&;t t
17902s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17903s&@INSTALL@&$ac_INSTALL&;t t
17904s&@MKDIR_P@&$ac_MKDIR_P&;t t
17905$ac_datarootdir_hack
17906"
17907eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17908 || as_fn_error "could not create $ac_file" "$LINENO" 5
17909
17910test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17911 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17912 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17914which seems to be undefined. Please make sure it is defined." >&5
17915$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17916which seems to be undefined. Please make sure it is defined." >&2;}
17917
17918 rm -f "$tmp/stdin"
1e8e9920 17919 case $ac_file in
cd9a469c 17920 -) cat "$tmp/out" && rm -f "$tmp/out";;
17921 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17922 esac \
17923 || as_fn_error "could not create $ac_file" "$LINENO" 5
17924 ;;
17925 :H)
17926 #
17927 # CONFIG_HEADER
17928 #
1e8e9920 17929 if test x"$ac_file" != x-; then
cd9a469c 17930 {
17931 $as_echo "/* $configure_input */" \
17932 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17933 } >"$tmp/config.h" \
17934 || as_fn_error "could not create $ac_file" "$LINENO" 5
17935 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17937$as_echo "$as_me: $ac_file is unchanged" >&6;}
1e8e9920 17938 else
cd9a469c 17939 rm -f "$ac_file"
17940 mv "$tmp/config.h" "$ac_file" \
17941 || as_fn_error "could not create $ac_file" "$LINENO" 5
1e8e9920 17942 fi
17943 else
cd9a469c 17944 $as_echo "/* $configure_input */" \
17945 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17946 || as_fn_error "could not create -" "$LINENO" 5
1e8e9920 17947 fi
cd9a469c 17948# Compute "$ac_file"'s index in $config_headers.
17949_am_arg="$ac_file"
1e8e9920 17950_am_stamp_count=1
17951for _am_header in $config_headers :; do
17952 case $_am_header in
cd9a469c 17953 $_am_arg | $_am_arg:* )
1e8e9920 17954 break ;;
17955 * )
17956 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17957 esac
17958done
cd9a469c 17959echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17960$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17961 X"$_am_arg" : 'X\(//\)[^/]' \| \
17962 X"$_am_arg" : 'X\(//\)$' \| \
17963 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17964$as_echo X"$_am_arg" |
17965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17966 s//\1/
17967 q
17968 }
17969 /^X\(\/\/\)[^/].*/{
17970 s//\1/
17971 q
17972 }
17973 /^X\(\/\/\)$/{
17974 s//\1/
17975 q
17976 }
17977 /^X\(\/\).*/{
17978 s//\1/
17979 q
17980 }
17981 s/.*/./; q'`/stamp-h$_am_stamp_count
17982 ;;
1e8e9920 17983
cd9a469c 17984 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17985$as_echo "$as_me: executing $ac_file commands" >&6;}
17986 ;;
17987 esac
1e8e9920 17988
17989
cd9a469c 17990 case $ac_file$ac_mode in
17991 "default-1":C)
1e8e9920 17992# Only add multilib support code if we just rebuilt the top-level
17993# Makefile.
17994case " $CONFIG_FILES " in
17995 *" Makefile "*)
17996 ac_file=Makefile . ${multi_basedir}/config-ml.in
17997 ;;
17998esac ;;
cd9a469c 17999 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18000 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18001 # are listed without --file. Let's play safe and only enable the eval
18002 # if we detect the quoting.
18003 case $CONFIG_FILES in
18004 *\'*) eval set x "$CONFIG_FILES" ;;
18005 *) set x $CONFIG_FILES ;;
18006 esac
18007 shift
18008 for mf
18009 do
18010 # Strip MF so we end up with the name of the file.
18011 mf=`echo "$mf" | sed -e 's/:.*$//'`
18012 # Check whether this is an Automake generated Makefile or not.
18013 # We used to match only the files named `Makefile.in', but
18014 # some people rename them; so instead we look at the file content.
18015 # Grep'ing the first line is not enough: some people post-process
18016 # each Makefile.in and add a new line on top of each file to say so.
18017 # Grep'ing the whole file is not good either: AIX grep has a line
18018 # limit of 2048, but all sed's we know have understand at least 4000.
18019 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18020 dirpart=`$as_dirname -- "$mf" ||
1e8e9920 18021$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18022 X"$mf" : 'X\(//\)[^/]' \| \
18023 X"$mf" : 'X\(//\)$' \| \
cd9a469c 18024 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18025$as_echo X"$mf" |
18026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18027 s//\1/
18028 q
18029 }
18030 /^X\(\/\/\)[^/].*/{
18031 s//\1/
18032 q
18033 }
18034 /^X\(\/\/\)$/{
18035 s//\1/
18036 q
18037 }
18038 /^X\(\/\).*/{
18039 s//\1/
18040 q
18041 }
18042 s/.*/./; q'`
18043 else
18044 continue
18045 fi
18046 # Extract the definition of DEPDIR, am__include, and am__quote
18047 # from the Makefile without running `make'.
18048 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18049 test -z "$DEPDIR" && continue
18050 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18051 test -z "am__include" && continue
18052 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18053 # When using ansi2knr, U may be empty or an underscore; expand it
18054 U=`sed -n 's/^U = //p' < "$mf"`
18055 # Find all dependency output files, they are included files with
18056 # $(DEPDIR) in their names. We invoke sed twice because it is the
18057 # simplest approach to changing $(DEPDIR) to its actual value in the
18058 # expansion.
18059 for file in `sed -n "
18060 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18061 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18062 # Make sure the directory exists.
18063 test -f "$dirpart/$file" && continue
18064 fdir=`$as_dirname -- "$file" ||
1e8e9920 18065$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18066 X"$file" : 'X\(//\)[^/]' \| \
18067 X"$file" : 'X\(//\)$' \| \
cd9a469c 18068 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18069$as_echo X"$file" |
18070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18071 s//\1/
18072 q
18073 }
18074 /^X\(\/\/\)[^/].*/{
18075 s//\1/
18076 q
18077 }
18078 /^X\(\/\/\)$/{
18079 s//\1/
18080 q
18081 }
18082 /^X\(\/\).*/{
18083 s//\1/
18084 q
18085 }
18086 s/.*/./; q'`
18087 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18088 # echo "creating $dirpart/$file"
18089 echo '# dummy' > "$dirpart/$file"
1e8e9920 18090 done
1e8e9920 18091 done
cd9a469c 18092}
542f9784 18093 ;;
cd9a469c 18094 "libtool":C)
542f9784 18095
18096 # See if we are running on zsh, and set the options which allow our
18097 # commands through without removal of \ escapes.
18098 if test -n "${ZSH_VERSION+set}" ; then
18099 setopt NO_GLOB_SUBST
18100 fi
18101
18102 cfgfile="${ofile}T"
18103 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18104 $RM "$cfgfile"
18105
18106 cat <<_LT_EOF >> "$cfgfile"
18107#! $SHELL
18108
18109# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6d873a38 18110# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
542f9784 18111# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18112# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18113#
6d873a38 18114# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
e6408286 18115# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
6d873a38 18116# Written by Gordon Matzigkeit, 1996
542f9784 18117#
6d873a38 18118# This file is part of GNU Libtool.
542f9784 18119#
6d873a38 18120# GNU Libtool is free software; you can redistribute it and/or
18121# modify it under the terms of the GNU General Public License as
18122# published by the Free Software Foundation; either version 2 of
18123# the License, or (at your option) any later version.
542f9784 18124#
6d873a38 18125# As a special exception to the GNU General Public License,
18126# if you distribute this file as part of a program or library that
18127# is built using GNU Libtool, you may include this file under the
18128# same distribution terms that you use for the rest of that program.
542f9784 18129#
6d873a38 18130# GNU Libtool is distributed in the hope that it will be useful,
18131# but WITHOUT ANY WARRANTY; without even the implied warranty of
18132# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18133# GNU General Public License for more details.
542f9784 18134#
6d873a38 18135# You should have received a copy of the GNU General Public License
18136# along with GNU Libtool; see the file COPYING. If not, a copy
18137# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18138# obtained by writing to the Free Software Foundation, Inc.,
18139# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
542f9784 18140
18141
18142# The names of the tagged configurations supported by this script.
18143available_tags="FC "
18144
18145# ### BEGIN LIBTOOL CONFIG
18146
18147# Which release of libtool.m4 was used?
18148macro_version=$macro_version
18149macro_revision=$macro_revision
18150
18151# Whether or not to build shared libraries.
18152build_libtool_libs=$enable_shared
18153
18154# Whether or not to build static libraries.
18155build_old_libs=$enable_static
18156
18157# What type of objects to build.
18158pic_mode=$pic_mode
18159
18160# Whether or not to optimize for fast installation.
18161fast_install=$enable_fast_install
18162
e6408286 18163# Shell to use when invoking shell scripts.
18164SHELL=$lt_SHELL
18165
18166# An echo program that protects backslashes.
18167ECHO=$lt_ECHO
18168
542f9784 18169# The host system.
18170host_alias=$host_alias
18171host=$host
18172host_os=$host_os
18173
18174# The build system.
18175build_alias=$build_alias
18176build=$build
18177build_os=$build_os
18178
18179# A sed program that does not truncate output.
18180SED=$lt_SED
18181
18182# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18183Xsed="\$SED -e 1s/^X//"
18184
18185# A grep program that handles long lines.
18186GREP=$lt_GREP
18187
18188# An ERE matcher.
18189EGREP=$lt_EGREP
18190
18191# A literal string matcher.
18192FGREP=$lt_FGREP
18193
18194# A BSD- or MS-compatible name lister.
18195NM=$lt_NM
18196
18197# Whether we need soft or hard links.
18198LN_S=$lt_LN_S
18199
18200# What is the maximum length of a command?
18201max_cmd_len=$max_cmd_len
18202
18203# Object file suffix (normally "o").
18204objext=$ac_objext
18205
18206# Executable file suffix (normally "").
18207exeext=$exeext
18208
18209# whether the shell understands "unset".
18210lt_unset=$lt_unset
18211
18212# turn spaces into newlines.
18213SP2NL=$lt_lt_SP2NL
18214
18215# turn newlines into spaces.
18216NL2SP=$lt_lt_NL2SP
18217
6d873a38 18218# An object symbol dumper.
18219OBJDUMP=$lt_OBJDUMP
18220
542f9784 18221# Method to check whether dependent libraries are shared objects.
18222deplibs_check_method=$lt_deplibs_check_method
18223
18224# Command to use when deplibs_check_method == "file_magic".
18225file_magic_cmd=$lt_file_magic_cmd
18226
18227# The archiver.
18228AR=$lt_AR
18229AR_FLAGS=$lt_AR_FLAGS
18230
18231# A symbol stripping program.
18232STRIP=$lt_STRIP
18233
18234# Commands used to install an old-style archive.
18235RANLIB=$lt_RANLIB
18236old_postinstall_cmds=$lt_old_postinstall_cmds
18237old_postuninstall_cmds=$lt_old_postuninstall_cmds
18238
e6408286 18239# Whether to use a lock for old archive extraction.
18240lock_old_archive_extraction=$lock_old_archive_extraction
18241
542f9784 18242# A C compiler.
18243LTCC=$lt_CC
18244
18245# LTCC compiler flags.
18246LTCFLAGS=$lt_CFLAGS
18247
18248# Take the output of nm and produce a listing of raw symbols and C names.
18249global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18250
18251# Transform the output of nm in a proper C declaration.
18252global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18253
18254# Transform the output of nm in a C name address pair.
18255global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18256
6d873a38 18257# Transform the output of nm in a C name address pair when lib prefix is needed.
18258global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18259
542f9784 18260# The name of the directory that contains temporary libtool files.
18261objdir=$objdir
18262
542f9784 18263# Used to examine libraries when file_magic_cmd begins with "file".
18264MAGIC_CMD=$MAGIC_CMD
18265
18266# Must we lock files when doing compilation?
18267need_locks=$lt_need_locks
18268
6d873a38 18269# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18270DSYMUTIL=$lt_DSYMUTIL
18271
18272# Tool to change global to local symbols on Mac OS X.
18273NMEDIT=$lt_NMEDIT
18274
18275# Tool to manipulate fat objects and archives on Mac OS X.
18276LIPO=$lt_LIPO
18277
18278# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18279OTOOL=$lt_OTOOL
18280
18281# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18282OTOOL64=$lt_OTOOL64
18283
542f9784 18284# Old archive suffix (normally "a").
18285libext=$libext
18286
18287# Shared library suffix (normally ".so").
18288shrext_cmds=$lt_shrext_cmds
18289
18290# The commands to extract the exported symbol list from a shared archive.
18291extract_expsyms_cmds=$lt_extract_expsyms_cmds
18292
18293# Variables whose values should be saved in libtool wrapper scripts and
18294# restored at link time.
18295variables_saved_for_relink=$lt_variables_saved_for_relink
18296
18297# Do we need the "lib" prefix for modules?
18298need_lib_prefix=$need_lib_prefix
18299
18300# Do we need a version for libraries?
18301need_version=$need_version
18302
18303# Library versioning type.
18304version_type=$version_type
18305
18306# Shared library runtime path variable.
18307runpath_var=$runpath_var
18308
18309# Shared library path variable.
18310shlibpath_var=$shlibpath_var
18311
18312# Is shlibpath searched before the hard-coded library search path?
18313shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18314
18315# Format of library name prefix.
18316libname_spec=$lt_libname_spec
18317
18318# List of archive names. First name is the real one, the rest are links.
18319# The last name is the one that the linker finds with -lNAME
18320library_names_spec=$lt_library_names_spec
18321
18322# The coded name of the library, if different from the real name.
18323soname_spec=$lt_soname_spec
18324
e6408286 18325# Permission mode override for installation of shared libraries.
18326install_override_mode=$lt_install_override_mode
18327
542f9784 18328# Command to use after installation of a shared archive.
18329postinstall_cmds=$lt_postinstall_cmds
18330
18331# Command to use after uninstallation of a shared archive.
18332postuninstall_cmds=$lt_postuninstall_cmds
18333
18334# Commands used to finish a libtool library installation in a directory.
18335finish_cmds=$lt_finish_cmds
18336
18337# As "finish_cmds", except a single script fragment to be evaled but
18338# not shown.
18339finish_eval=$lt_finish_eval
18340
18341# Whether we should hardcode library paths into libraries.
18342hardcode_into_libs=$hardcode_into_libs
18343
18344# Compile-time system search path for libraries.
18345sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18346
18347# Run-time system search path for libraries.
18348sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18349
18350# Whether dlopen is supported.
18351dlopen_support=$enable_dlopen
18352
18353# Whether dlopen of programs is supported.
18354dlopen_self=$enable_dlopen_self
18355
18356# Whether dlopen of statically linked programs is supported.
18357dlopen_self_static=$enable_dlopen_self_static
18358
18359# Commands to strip libraries.
18360old_striplib=$lt_old_striplib
18361striplib=$lt_striplib
18362
18363
18364# The linker used to build libraries.
18365LD=$lt_LD
18366
e6408286 18367# How to create reloadable object files.
18368reload_flag=$lt_reload_flag
18369reload_cmds=$lt_reload_cmds
18370
542f9784 18371# Commands used to build an old-style archive.
18372old_archive_cmds=$lt_old_archive_cmds
18373
18374# A language specific compiler.
18375CC=$lt_compiler
18376
18377# Is the compiler the GNU compiler?
18378with_gcc=$GCC
18379
18380# Compiler flag to turn off builtin functions.
18381no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18382
18383# How to pass a linker flag through the compiler.
18384wl=$lt_lt_prog_compiler_wl
18385
18386# Additional compiler flags for building library objects.
18387pic_flag=$lt_lt_prog_compiler_pic
18388
18389# Compiler flag to prevent dynamic linking.
18390link_static_flag=$lt_lt_prog_compiler_static
18391
18392# Does compiler simultaneously support -c and -o options?
18393compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18394
18395# Whether or not to add -lc for building shared libraries.
18396build_libtool_need_lc=$archive_cmds_need_lc
18397
18398# Whether or not to disallow shared libs when runtime libs are static.
18399allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18400
18401# Compiler flag to allow reflexive dlopens.
18402export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18403
18404# Compiler flag to generate shared objects directly from archives.
18405whole_archive_flag_spec=$lt_whole_archive_flag_spec
18406
18407# Whether the compiler copes with passing no objects directly.
18408compiler_needs_object=$lt_compiler_needs_object
18409
18410# Create an old-style archive from a shared archive.
18411old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18412
18413# Create a temporary old-style archive to link instead of a shared archive.
18414old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18415
18416# Commands used to build a shared archive.
18417archive_cmds=$lt_archive_cmds
18418archive_expsym_cmds=$lt_archive_expsym_cmds
18419
18420# Commands used to build a loadable module if different from building
18421# a shared archive.
18422module_cmds=$lt_module_cmds
18423module_expsym_cmds=$lt_module_expsym_cmds
18424
18425# Whether we are building with GNU ld or not.
18426with_gnu_ld=$lt_with_gnu_ld
18427
18428# Flag that allows shared libraries with undefined symbols to be built.
18429allow_undefined_flag=$lt_allow_undefined_flag
18430
18431# Flag that enforces no undefined symbols.
18432no_undefined_flag=$lt_no_undefined_flag
18433
18434# Flag to hardcode \$libdir into a binary during linking.
18435# This must work even if \$libdir does not exist
18436hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18437
18438# If ld is used when linking, flag to hardcode \$libdir into a binary
18439# during linking. This must work even if \$libdir does not exist.
18440hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18441
18442# Whether we need a single "-rpath" flag with a separated argument.
18443hardcode_libdir_separator=$lt_hardcode_libdir_separator
18444
18445# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18446# DIR into the resulting binary.
18447hardcode_direct=$hardcode_direct
18448
18449# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18450# DIR into the resulting binary and the resulting library dependency is
18451# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18452# library is relocated.
18453hardcode_direct_absolute=$hardcode_direct_absolute
18454
18455# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18456# into the resulting binary.
18457hardcode_minus_L=$hardcode_minus_L
18458
18459# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18460# into the resulting binary.
18461hardcode_shlibpath_var=$hardcode_shlibpath_var
18462
18463# Set to "yes" if building a shared library automatically hardcodes DIR
18464# into the library and all subsequent libraries and executables linked
18465# against it.
18466hardcode_automatic=$hardcode_automatic
18467
18468# Set to yes if linker adds runtime paths of dependent libraries
18469# to runtime path list.
18470inherit_rpath=$inherit_rpath
18471
18472# Whether libtool must link a program against all its dependency libraries.
18473link_all_deplibs=$link_all_deplibs
18474
18475# Fix the shell variable \$srcfile for the compiler.
18476fix_srcfile_path=$lt_fix_srcfile_path
18477
18478# Set to "yes" if exported symbols are required.
18479always_export_symbols=$always_export_symbols
18480
18481# The commands to list exported symbols.
18482export_symbols_cmds=$lt_export_symbols_cmds
18483
18484# Symbols that should not be listed in the preloaded symbols.
18485exclude_expsyms=$lt_exclude_expsyms
18486
18487# Symbols that must always be exported.
18488include_expsyms=$lt_include_expsyms
18489
18490# Commands necessary for linking programs (against libraries) with templates.
18491prelink_cmds=$lt_prelink_cmds
18492
18493# Specify filename containing input files.
18494file_list_spec=$lt_file_list_spec
18495
18496# How to hardcode a shared library path into an executable.
18497hardcode_action=$hardcode_action
18498
6d873a38 18499# The directories searched by this compiler when creating a shared library.
18500compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18501
542f9784 18502# Dependencies to place before and after the objects being linked to
18503# create a shared library.
18504predep_objects=$lt_predep_objects
18505postdep_objects=$lt_postdep_objects
18506predeps=$lt_predeps
18507postdeps=$lt_postdeps
18508
18509# The library search path used internally by the compiler when linking
18510# a shared library.
18511compiler_lib_search_path=$lt_compiler_lib_search_path
18512
18513# ### END LIBTOOL CONFIG
18514
18515_LT_EOF
18516
18517 case $host_os in
18518 aix3*)
18519 cat <<\_LT_EOF >> "$cfgfile"
18520# AIX sometimes has problems with the GCC collect2 program. For some
18521# reason, if we set the COLLECT_NAMES environment variable, the problems
18522# vanish in a puff of smoke.
18523if test "X${COLLECT_NAMES+set}" != Xset; then
18524 COLLECT_NAMES=
18525 export COLLECT_NAMES
18526fi
18527_LT_EOF
18528 ;;
18529 esac
18530
18531
18532ltmain="$ac_aux_dir/ltmain.sh"
18533
18534
18535 # We use sed instead of cat because bash on DJGPP gets confused if
18536 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18537 # text mode, it properly converts lines to CR/LF. This bash problem
18538 # is reportedly fixed, but why not run on old versions too?
18539 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18540 || (rm -f "$cfgfile"; exit 1)
18541
18542 case $xsi_shell in
18543 yes)
18544 cat << \_LT_EOF >> "$cfgfile"
6d873a38 18545
542f9784 18546# func_dirname file append nondir_replacement
18547# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18548# otherwise set result to NONDIR_REPLACEMENT.
18549func_dirname ()
18550{
18551 case ${1} in
18552 */*) func_dirname_result="${1%/*}${2}" ;;
18553 * ) func_dirname_result="${3}" ;;
18554 esac
18555}
18556
18557# func_basename file
18558func_basename ()
18559{
18560 func_basename_result="${1##*/}"
18561}
18562
6d873a38 18563# func_dirname_and_basename file append nondir_replacement
18564# perform func_basename and func_dirname in a single function
18565# call:
18566# dirname: Compute the dirname of FILE. If nonempty,
18567# add APPEND to the result, otherwise set result
18568# to NONDIR_REPLACEMENT.
18569# value returned in "$func_dirname_result"
18570# basename: Compute filename of FILE.
18571# value retuned in "$func_basename_result"
18572# Implementation must be kept synchronized with func_dirname
18573# and func_basename. For efficiency, we do not delegate to
18574# those functions but instead duplicate the functionality here.
18575func_dirname_and_basename ()
18576{
18577 case ${1} in
18578 */*) func_dirname_result="${1%/*}${2}" ;;
18579 * ) func_dirname_result="${3}" ;;
18580 esac
18581 func_basename_result="${1##*/}"
18582}
18583
542f9784 18584# func_stripname prefix suffix name
18585# strip PREFIX and SUFFIX off of NAME.
18586# PREFIX and SUFFIX must not contain globbing or regex special
18587# characters, hashes, percent signs, but SUFFIX may contain a leading
18588# dot (in which case that matches only a dot).
18589func_stripname ()
18590{
18591 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18592 # positional parameters, so assign one to ordinary parameter first.
18593 func_stripname_result=${3}
18594 func_stripname_result=${func_stripname_result#"${1}"}
18595 func_stripname_result=${func_stripname_result%"${2}"}
18596}
18597
18598# func_opt_split
18599func_opt_split ()
18600{
18601 func_opt_split_opt=${1%%=*}
18602 func_opt_split_arg=${1#*=}
18603}
18604
18605# func_lo2o object
18606func_lo2o ()
18607{
18608 case ${1} in
18609 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18610 *) func_lo2o_result=${1} ;;
18611 esac
18612}
6d873a38 18613
18614# func_xform libobj-or-source
18615func_xform ()
18616{
18617 func_xform_result=${1%.*}.lo
18618}
18619
18620# func_arith arithmetic-term...
18621func_arith ()
18622{
18623 func_arith_result=$(( $* ))
18624}
18625
18626# func_len string
18627# STRING may not start with a hyphen.
18628func_len ()
18629{
18630 func_len_result=${#1}
18631}
18632
542f9784 18633_LT_EOF
18634 ;;
18635 *) # Bourne compatible functions.
18636 cat << \_LT_EOF >> "$cfgfile"
6d873a38 18637
542f9784 18638# func_dirname file append nondir_replacement
18639# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18640# otherwise set result to NONDIR_REPLACEMENT.
18641func_dirname ()
18642{
18643 # Extract subdirectory from the argument.
e6408286 18644 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
542f9784 18645 if test "X$func_dirname_result" = "X${1}"; then
18646 func_dirname_result="${3}"
18647 else
18648 func_dirname_result="$func_dirname_result${2}"
18649 fi
18650}
18651
18652# func_basename file
18653func_basename ()
18654{
e6408286 18655 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
542f9784 18656}
18657
6d873a38 18658
542f9784 18659# func_stripname prefix suffix name
18660# strip PREFIX and SUFFIX off of NAME.
18661# PREFIX and SUFFIX must not contain globbing or regex special
18662# characters, hashes, percent signs, but SUFFIX may contain a leading
18663# dot (in which case that matches only a dot).
18664# func_strip_suffix prefix name
18665func_stripname ()
18666{
18667 case ${2} in
e6408286 18668 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18669 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
542f9784 18670 esac
18671}
18672
18673# sed scripts:
18674my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18675my_sed_long_arg='1s/^-[^=]*=//'
18676
18677# func_opt_split
18678func_opt_split ()
18679{
e6408286 18680 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18681 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
542f9784 18682}
18683
18684# func_lo2o object
18685func_lo2o ()
18686{
e6408286 18687 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
542f9784 18688}
6d873a38 18689
18690# func_xform libobj-or-source
18691func_xform ()
18692{
e6408286 18693 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
6d873a38 18694}
18695
18696# func_arith arithmetic-term...
18697func_arith ()
18698{
18699 func_arith_result=`expr "$@"`
18700}
18701
18702# func_len string
18703# STRING may not start with a hyphen.
18704func_len ()
18705{
18706 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18707}
18708
542f9784 18709_LT_EOF
18710esac
18711
18712case $lt_shell_append in
18713 yes)
18714 cat << \_LT_EOF >> "$cfgfile"
18715
18716# func_append var value
18717# Append VALUE to the end of shell variable VAR.
18718func_append ()
18719{
18720 eval "$1+=\$2"
18721}
18722_LT_EOF
18723 ;;
18724 *)
18725 cat << \_LT_EOF >> "$cfgfile"
18726
18727# func_append var value
18728# Append VALUE to the end of shell variable VAR.
18729func_append ()
18730{
18731 eval "$1=\$$1\$2"
18732}
6d873a38 18733
542f9784 18734_LT_EOF
18735 ;;
18736 esac
18737
18738
18739 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18740 || (rm -f "$cfgfile"; exit 1)
18741
18742 mv -f "$cfgfile" "$ofile" ||
18743 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18744 chmod +x "$ofile"
18745
18746
18747 cat <<_LT_EOF >> "$ofile"
18748
18749# ### BEGIN LIBTOOL TAG CONFIG: FC
18750
18751# The linker used to build libraries.
18752LD=$lt_LD_FC
18753
e6408286 18754# How to create reloadable object files.
18755reload_flag=$lt_reload_flag_FC
18756reload_cmds=$lt_reload_cmds_FC
18757
542f9784 18758# Commands used to build an old-style archive.
18759old_archive_cmds=$lt_old_archive_cmds_FC
18760
18761# A language specific compiler.
18762CC=$lt_compiler_FC
18763
18764# Is the compiler the GNU compiler?
18765with_gcc=$GCC_FC
18766
18767# Compiler flag to turn off builtin functions.
18768no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
18769
18770# How to pass a linker flag through the compiler.
18771wl=$lt_lt_prog_compiler_wl_FC
18772
18773# Additional compiler flags for building library objects.
18774pic_flag=$lt_lt_prog_compiler_pic_FC
18775
18776# Compiler flag to prevent dynamic linking.
18777link_static_flag=$lt_lt_prog_compiler_static_FC
18778
18779# Does compiler simultaneously support -c and -o options?
18780compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
18781
18782# Whether or not to add -lc for building shared libraries.
18783build_libtool_need_lc=$archive_cmds_need_lc_FC
18784
18785# Whether or not to disallow shared libs when runtime libs are static.
18786allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
18787
18788# Compiler flag to allow reflexive dlopens.
18789export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
18790
18791# Compiler flag to generate shared objects directly from archives.
18792whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
18793
18794# Whether the compiler copes with passing no objects directly.
18795compiler_needs_object=$lt_compiler_needs_object_FC
18796
18797# Create an old-style archive from a shared archive.
18798old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
18799
18800# Create a temporary old-style archive to link instead of a shared archive.
18801old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
18802
18803# Commands used to build a shared archive.
18804archive_cmds=$lt_archive_cmds_FC
18805archive_expsym_cmds=$lt_archive_expsym_cmds_FC
18806
18807# Commands used to build a loadable module if different from building
18808# a shared archive.
18809module_cmds=$lt_module_cmds_FC
18810module_expsym_cmds=$lt_module_expsym_cmds_FC
18811
18812# Whether we are building with GNU ld or not.
18813with_gnu_ld=$lt_with_gnu_ld_FC
18814
18815# Flag that allows shared libraries with undefined symbols to be built.
18816allow_undefined_flag=$lt_allow_undefined_flag_FC
18817
18818# Flag that enforces no undefined symbols.
18819no_undefined_flag=$lt_no_undefined_flag_FC
18820
18821# Flag to hardcode \$libdir into a binary during linking.
18822# This must work even if \$libdir does not exist
18823hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
18824
18825# If ld is used when linking, flag to hardcode \$libdir into a binary
18826# during linking. This must work even if \$libdir does not exist.
18827hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
18828
18829# Whether we need a single "-rpath" flag with a separated argument.
18830hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
18831
18832# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18833# DIR into the resulting binary.
18834hardcode_direct=$hardcode_direct_FC
18835
18836# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18837# DIR into the resulting binary and the resulting library dependency is
18838# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18839# library is relocated.
18840hardcode_direct_absolute=$hardcode_direct_absolute_FC
18841
18842# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18843# into the resulting binary.
18844hardcode_minus_L=$hardcode_minus_L_FC
18845
18846# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18847# into the resulting binary.
18848hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
18849
18850# Set to "yes" if building a shared library automatically hardcodes DIR
18851# into the library and all subsequent libraries and executables linked
18852# against it.
18853hardcode_automatic=$hardcode_automatic_FC
18854
18855# Set to yes if linker adds runtime paths of dependent libraries
18856# to runtime path list.
18857inherit_rpath=$inherit_rpath_FC
18858
18859# Whether libtool must link a program against all its dependency libraries.
18860link_all_deplibs=$link_all_deplibs_FC
18861
18862# Fix the shell variable \$srcfile for the compiler.
18863fix_srcfile_path=$lt_fix_srcfile_path_FC
18864
18865# Set to "yes" if exported symbols are required.
18866always_export_symbols=$always_export_symbols_FC
18867
18868# The commands to list exported symbols.
18869export_symbols_cmds=$lt_export_symbols_cmds_FC
18870
18871# Symbols that should not be listed in the preloaded symbols.
18872exclude_expsyms=$lt_exclude_expsyms_FC
18873
18874# Symbols that must always be exported.
18875include_expsyms=$lt_include_expsyms_FC
18876
18877# Commands necessary for linking programs (against libraries) with templates.
18878prelink_cmds=$lt_prelink_cmds_FC
18879
18880# Specify filename containing input files.
18881file_list_spec=$lt_file_list_spec_FC
18882
18883# How to hardcode a shared library path into an executable.
18884hardcode_action=$hardcode_action_FC
18885
6d873a38 18886# The directories searched by this compiler when creating a shared library.
18887compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
18888
542f9784 18889# Dependencies to place before and after the objects being linked to
18890# create a shared library.
18891predep_objects=$lt_predep_objects_FC
18892postdep_objects=$lt_postdep_objects_FC
18893predeps=$lt_predeps_FC
18894postdeps=$lt_postdeps_FC
18895
18896# The library search path used internally by the compiler when linking
18897# a shared library.
18898compiler_lib_search_path=$lt_compiler_lib_search_path_FC
18899
18900# ### END LIBTOOL TAG CONFIG: FC
18901_LT_EOF
18902
01473a49 18903 ;;
cd9a469c 18904 "gstdint.h":C)
01473a49 18905if test "$GCC" = yes; then
18906 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18907else
18908 echo "/* generated for $CC */" > tmp-stdint.h
18909fi
18910
18911sed 's/^ *//' >> tmp-stdint.h <<EOF
18912
18913 #ifndef GCC_GENERATED_STDINT_H
18914 #define GCC_GENERATED_STDINT_H 1
18915
18916 #include <sys/types.h>
18917EOF
18918
18919if test "$acx_cv_header_stdint" != stdint.h; then
18920 echo "#include <stddef.h>" >> tmp-stdint.h
18921fi
18922if test "$acx_cv_header_stdint" != stddef.h; then
18923 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18924fi
18925
18926sed 's/^ *//' >> tmp-stdint.h <<EOF
18927 /* glibc uses these symbols as guards to prevent redefinitions. */
18928 #ifdef __int8_t_defined
18929 #define _INT8_T
18930 #define _INT16_T
18931 #define _INT32_T
18932 #endif
18933 #ifdef __uint32_t_defined
18934 #define _UINT32_T
18935 #endif
18936
18937EOF
18938
18939# ----------------- done header, emit basic int types -------------
18940if test "$acx_cv_header_stdint" = stddef.h; then
18941 sed 's/^ *//' >> tmp-stdint.h <<EOF
18942
18943 #ifndef _UINT8_T
18944 #define _UINT8_T
542f9784 18945 #ifndef __uint8_t_defined
18946 #define __uint8_t_defined
9ad2e3f3 18947 #ifndef uint8_t
01473a49 18948 typedef unsigned $acx_cv_type_int8_t uint8_t;
18949 #endif
542f9784 18950 #endif
9ad2e3f3 18951 #endif
01473a49 18952
18953 #ifndef _UINT16_T
18954 #define _UINT16_T
542f9784 18955 #ifndef __uint16_t_defined
18956 #define __uint16_t_defined
9ad2e3f3 18957 #ifndef uint16_t
01473a49 18958 typedef unsigned $acx_cv_type_int16_t uint16_t;
18959 #endif
542f9784 18960 #endif
9ad2e3f3 18961 #endif
01473a49 18962
18963 #ifndef _UINT32_T
18964 #define _UINT32_T
542f9784 18965 #ifndef __uint32_t_defined
18966 #define __uint32_t_defined
9ad2e3f3 18967 #ifndef uint32_t
01473a49 18968 typedef unsigned $acx_cv_type_int32_t uint32_t;
18969 #endif
542f9784 18970 #endif
9ad2e3f3 18971 #endif
01473a49 18972
18973 #ifndef _INT8_T
18974 #define _INT8_T
542f9784 18975 #ifndef __int8_t_defined
18976 #define __int8_t_defined
9ad2e3f3 18977 #ifndef int8_t
01473a49 18978 typedef $acx_cv_type_int8_t int8_t;
18979 #endif
542f9784 18980 #endif
9ad2e3f3 18981 #endif
01473a49 18982
18983 #ifndef _INT16_T
18984 #define _INT16_T
542f9784 18985 #ifndef __int16_t_defined
18986 #define __int16_t_defined
9ad2e3f3 18987 #ifndef int16_t
01473a49 18988 typedef $acx_cv_type_int16_t int16_t;
18989 #endif
542f9784 18990 #endif
9ad2e3f3 18991 #endif
01473a49 18992
18993 #ifndef _INT32_T
18994 #define _INT32_T
542f9784 18995 #ifndef __int32_t_defined
18996 #define __int32_t_defined
9ad2e3f3 18997 #ifndef int32_t
01473a49 18998 typedef $acx_cv_type_int32_t int32_t;
18999 #endif
542f9784 19000 #endif
9ad2e3f3 19001 #endif
01473a49 19002EOF
19003elif test "$ac_cv_type_u_int32_t" = yes; then
19004 sed 's/^ *//' >> tmp-stdint.h <<EOF
19005
19006 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19007 #ifndef _INT8_T
19008 #define _INT8_T
19009 #endif
19010 #ifndef _INT16_T
19011 #define _INT16_T
19012 #endif
19013 #ifndef _INT32_T
19014 #define _INT32_T
19015 #endif
19016
19017 #ifndef _UINT8_T
19018 #define _UINT8_T
542f9784 19019 #ifndef __uint8_t_defined
19020 #define __uint8_t_defined
9ad2e3f3 19021 #ifndef uint8_t
01473a49 19022 typedef u_int8_t uint8_t;
19023 #endif
542f9784 19024 #endif
9ad2e3f3 19025 #endif
01473a49 19026
19027 #ifndef _UINT16_T
19028 #define _UINT16_T
542f9784 19029 #ifndef __uint16_t_defined
19030 #define __uint16_t_defined
9ad2e3f3 19031 #ifndef uint16_t
01473a49 19032 typedef u_int16_t uint16_t;
19033 #endif
542f9784 19034 #endif
9ad2e3f3 19035 #endif
01473a49 19036
19037 #ifndef _UINT32_T
19038 #define _UINT32_T
542f9784 19039 #ifndef __uint32_t_defined
19040 #define __uint32_t_defined
9ad2e3f3 19041 #ifndef uint32_t
01473a49 19042 typedef u_int32_t uint32_t;
19043 #endif
542f9784 19044 #endif
9ad2e3f3 19045 #endif
01473a49 19046EOF
19047else
19048 sed 's/^ *//' >> tmp-stdint.h <<EOF
19049
19050 /* Some systems have guard macros to prevent redefinitions, define them. */
19051 #ifndef _INT8_T
19052 #define _INT8_T
19053 #endif
19054 #ifndef _INT16_T
19055 #define _INT16_T
19056 #endif
19057 #ifndef _INT32_T
19058 #define _INT32_T
19059 #endif
19060 #ifndef _UINT8_T
19061 #define _UINT8_T
19062 #endif
19063 #ifndef _UINT16_T
19064 #define _UINT16_T
19065 #endif
19066 #ifndef _UINT32_T
19067 #define _UINT32_T
19068 #endif
19069EOF
19070fi
19071
19072# ------------- done basic int types, emit int64_t types ------------
19073if test "$ac_cv_type_uint64_t" = yes; then
19074 sed 's/^ *//' >> tmp-stdint.h <<EOF
19075
19076 /* system headers have good uint64_t and int64_t */
19077 #ifndef _INT64_T
19078 #define _INT64_T
19079 #endif
19080 #ifndef _UINT64_T
19081 #define _UINT64_T
19082 #endif
19083EOF
19084elif test "$ac_cv_type_u_int64_t" = yes; then
19085 sed 's/^ *//' >> tmp-stdint.h <<EOF
19086
19087 /* system headers have an u_int64_t (and int64_t) */
19088 #ifndef _INT64_T
19089 #define _INT64_T
19090 #endif
19091 #ifndef _UINT64_T
19092 #define _UINT64_T
542f9784 19093 #ifndef __uint64_t_defined
19094 #define __uint64_t_defined
9ad2e3f3 19095 #ifndef uint64_t
01473a49 19096 typedef u_int64_t uint64_t;
19097 #endif
542f9784 19098 #endif
9ad2e3f3 19099 #endif
01473a49 19100EOF
19101elif test -n "$acx_cv_type_int64_t"; then
19102 sed 's/^ *//' >> tmp-stdint.h <<EOF
19103
19104 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19105 #ifndef _INT64_T
19106 #define _INT64_T
9ad2e3f3 19107 #ifndef int64_t
01473a49 19108 typedef $acx_cv_type_int64_t int64_t;
19109 #endif
9ad2e3f3 19110 #endif
01473a49 19111 #ifndef _UINT64_T
19112 #define _UINT64_T
542f9784 19113 #ifndef __uint64_t_defined
19114 #define __uint64_t_defined
9ad2e3f3 19115 #ifndef uint64_t
01473a49 19116 typedef unsigned $acx_cv_type_int64_t uint64_t;
19117 #endif
542f9784 19118 #endif
9ad2e3f3 19119 #endif
01473a49 19120EOF
19121else
19122 sed 's/^ *//' >> tmp-stdint.h <<EOF
19123
19124 /* some common heuristics for int64_t, using compiler-specific tests */
19125 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19126 #ifndef _INT64_T
19127 #define _INT64_T
542f9784 19128 #ifndef __int64_t_defined
9ad2e3f3 19129 #ifndef int64_t
01473a49 19130 typedef long long int64_t;
19131 #endif
542f9784 19132 #endif
9ad2e3f3 19133 #endif
01473a49 19134 #ifndef _UINT64_T
19135 #define _UINT64_T
9ad2e3f3 19136 #ifndef uint64_t
01473a49 19137 typedef unsigned long long uint64_t;
19138 #endif
9ad2e3f3 19139 #endif
01473a49 19140
19141 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19142 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19143 does not implement __extension__. But that compiler doesn't define
19144 __GNUC_MINOR__. */
19145 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19146 # define __extension__
19147 # endif
19148
19149 # ifndef _INT64_T
19150 # define _INT64_T
9ad2e3f3 19151 # ifndef int64_t
01473a49 19152 __extension__ typedef long long int64_t;
19153 # endif
9ad2e3f3 19154 # endif
01473a49 19155 # ifndef _UINT64_T
19156 # define _UINT64_T
9ad2e3f3 19157 # ifndef uint64_t
01473a49 19158 __extension__ typedef unsigned long long uint64_t;
19159 # endif
9ad2e3f3 19160 # endif
01473a49 19161
19162 #elif !defined __STRICT_ANSI__
19163 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19164
19165 # ifndef _INT64_T
19166 # define _INT64_T
9ad2e3f3 19167 # ifndef int64_t
01473a49 19168 typedef __int64 int64_t;
19169 # endif
9ad2e3f3 19170 # endif
01473a49 19171 # ifndef _UINT64_T
19172 # define _UINT64_T
9ad2e3f3 19173 # ifndef uint64_t
01473a49 19174 typedef unsigned __int64 uint64_t;
19175 # endif
9ad2e3f3 19176 # endif
01473a49 19177 # endif /* compiler */
19178
19179 #endif /* ANSI version */
19180EOF
19181fi
19182
19183# ------------- done int64_t types, emit intptr types ------------
19184if test "$ac_cv_type_uintptr_t" != yes; then
19185 sed 's/^ *//' >> tmp-stdint.h <<EOF
19186
19187 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
542f9784 19188 #ifndef __uintptr_t_defined
9ad2e3f3 19189 #ifndef uintptr_t
01473a49 19190 typedef u$acx_cv_type_intptr_t uintptr_t;
542f9784 19191 #endif
9ad2e3f3 19192 #endif
542f9784 19193 #ifndef __intptr_t_defined
9ad2e3f3 19194 #ifndef intptr_t
01473a49 19195 typedef $acx_cv_type_intptr_t intptr_t;
542f9784 19196 #endif
9ad2e3f3 19197 #endif
01473a49 19198EOF
19199fi
19200
19201# ------------- done intptr types, emit int_least types ------------
19202if test "$ac_cv_type_int_least32_t" != yes; then
19203 sed 's/^ *//' >> tmp-stdint.h <<EOF
19204
19205 /* Define int_least types */
19206 typedef int8_t int_least8_t;
19207 typedef int16_t int_least16_t;
19208 typedef int32_t int_least32_t;
19209 #ifdef _INT64_T
19210 typedef int64_t int_least64_t;
19211 #endif
19212
19213 typedef uint8_t uint_least8_t;
19214 typedef uint16_t uint_least16_t;
19215 typedef uint32_t uint_least32_t;
19216 #ifdef _UINT64_T
19217 typedef uint64_t uint_least64_t;
19218 #endif
19219EOF
19220fi
19221
19222# ------------- done intptr types, emit int_fast types ------------
19223if test "$ac_cv_type_int_fast32_t" != yes; then
19224 sed 's/^ *//' >> tmp-stdint.h <<EOF
19225
19226 /* Define int_fast types. short is often slow */
19227 typedef int8_t int_fast8_t;
19228 typedef int int_fast16_t;
19229 typedef int32_t int_fast32_t;
19230 #ifdef _INT64_T
19231 typedef int64_t int_fast64_t;
19232 #endif
19233
19234 typedef uint8_t uint_fast8_t;
19235 typedef unsigned int uint_fast16_t;
19236 typedef uint32_t uint_fast32_t;
19237 #ifdef _UINT64_T
19238 typedef uint64_t uint_fast64_t;
19239 #endif
19240EOF
19241fi
19242
19243if test "$ac_cv_type_uintmax_t" != yes; then
19244 sed 's/^ *//' >> tmp-stdint.h <<EOF
19245
19246 /* Define intmax based on what we found */
9ad2e3f3 19247 #ifndef intmax_t
01473a49 19248 #ifdef _INT64_T
19249 typedef int64_t intmax_t;
19250 #else
19251 typedef long intmax_t;
19252 #endif
9ad2e3f3 19253 #endif
19254 #ifndef uintmax_t
01473a49 19255 #ifdef _UINT64_T
19256 typedef uint64_t uintmax_t;
19257 #else
19258 typedef unsigned long uintmax_t;
19259 #endif
9ad2e3f3 19260 #endif
01473a49 19261EOF
19262fi
19263
19264sed 's/^ *//' >> tmp-stdint.h <<EOF
19265
19266 #endif /* GCC_GENERATED_STDINT_H */
19267EOF
19268
19269if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19270 rm -f tmp-stdint.h
19271else
19272 mv -f tmp-stdint.h gstdint.h
19273fi
19274
1e8e9920 19275 ;;
cd9a469c 19276
1e8e9920 19277 esac
cd9a469c 19278done # for ac_tag
1e8e9920 19279
1e8e9920 19280
cd9a469c 19281as_fn_exit 0
1e8e9920 19282_ACEOF
1e8e9920 19283ac_clean_files=$ac_clean_files_save
19284
cd9a469c 19285test $ac_write_fail = 0 ||
19286 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19287
1e8e9920 19288
19289# configure is writing to config.log, and then calls config.status.
19290# config.status does its own redirection, appending to config.log.
19291# Unfortunately, on DOS this fails, as config.log is still kept open
19292# by configure, so config.status won't be able to write to it; its
19293# output is simply discarded. So we exec the FD to /dev/null,
19294# effectively closing config.log, so it can be properly (re)opened and
19295# appended to by config.status. When coming back to configure, we
19296# need to make the FD available again.
19297if test "$no_create" != yes; then
19298 ac_cs_success=:
19299 ac_config_status_args=
19300 test "$silent" = yes &&
19301 ac_config_status_args="$ac_config_status_args --quiet"
19302 exec 5>/dev/null
19303 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19304 exec 5>>config.log
19305 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19306 # would make configure fail if this is the last instruction.
cd9a469c 19307 $ac_cs_success || as_fn_exit $?
19308fi
19309if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19311$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1e8e9920 19312fi
19313