]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/configure
Fix offloading machine mode stream reading
[thirdparty/gcc.git] / libgomp / configure
CommitLineData
1e8e9920 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
c35c9a62 3# Generated by GNU Autoconf 2.64 for GNU Offloading and Multi Processing Runtime Library 1.0.
cd9a469c 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.
c35c9a62 557PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library'
1e8e9920 558PACKAGE_TARNAME='libgomp'
559PACKAGE_VERSION='1.0'
c35c9a62 560PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0'
1e8e9920 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
ca4c3545 630PLUGIN_NVPTX_FALSE
631PLUGIN_NVPTX_TRUE
632offload_additional_lib_paths
633offload_additional_options
634PLUGIN_NVPTX_LIBS
635PLUGIN_NVPTX_LDFLAGS
636PLUGIN_NVPTX_CPPFLAGS
637PLUGIN_NVPTX
638CUDA_DRIVER_LIB
639CUDA_DRIVER_INCLUDE
640offload_targets
cd9a469c 641libtool_VERSION
642ac_ct_FC
643FCFLAGS
644FC
645MAINT
646MAINTAINER_MODE_FALSE
647MAINTAINER_MODE_TRUE
648enable_static
649enable_shared
8c35d268 650lt_host_flags
cd9a469c 651CPP
652OTOOL64
653OTOOL
654LIPO
655NMEDIT
656DSYMUTIL
cd9a469c 657OBJDUMP
658LN_S
659NM
660ac_ct_DUMPBIN
661DUMPBIN
662LD
663FGREP
664EGREP
665GREP
666SED
667LIBTOOL
668BUILD_INFO_FALSE
669BUILD_INFO_TRUE
670PERL
671RANLIB
672AR
673am__fastdepCC_FALSE
674am__fastdepCC_TRUE
675CCDEPMODE
b5cfe980 676am__nodep
cd9a469c 677AMDEPBACKSLASH
678AMDEP_FALSE
679AMDEP_TRUE
680am__quote
681am__include
682DEPDIR
683OBJEXT
684EXEEXT
685ac_ct_CC
686CPPFLAGS
687LDFLAGS
688CFLAGS
689CC
690toolexeclibdir
691toolexecdir
692multi_basedir
693am__untar
694am__tar
695AMTAR
696am__leading_dot
697SET_MAKE
698AWK
699mkdir_p
700MKDIR_P
701INSTALL_STRIP_PROGRAM
702STRIP
703install_sh
704MAKEINFO
705AUTOHEADER
706AUTOMAKE
707AUTOCONF
708ACLOCAL
709VERSION
710PACKAGE
711CYGPATH_W
712am__isrc
713INSTALL_DATA
714INSTALL_SCRIPT
715INSTALL_PROGRAM
716target_os
717target_vendor
718target_cpu
719target
720host_os
721host_vendor
722host_cpu
723host
724build_os
725build_vendor
726build_cpu
727build
728GENINSRC_FALSE
729GENINSRC_TRUE
730target_alias
731host_alias
732build_alias
733LIBS
734ECHO_T
735ECHO_N
736ECHO_C
737DEFS
738mandir
739localedir
740libdir
741psdir
742pdfdir
743dvidir
744htmldir
745infodir
746docdir
747oldincludedir
748includedir
749localstatedir
750sharedstatedir
751sysconfdir
752datadir
753datarootdir
754libexecdir
755sbindir
756bindir
757program_transform_name
758prefix
759exec_prefix
760PACKAGE_URL
761PACKAGE_BUGREPORT
762PACKAGE_STRING
763PACKAGE_VERSION
764PACKAGE_TARNAME
765PACKAGE_NAME
766PATH_SEPARATOR
767SHELL'
1e8e9920 768ac_subst_files=''
cd9a469c 769ac_user_opts='
770enable_option_checking
771enable_version_specific_runtime_libs
772enable_generated_files_in_srcdir
773enable_multilib
774enable_dependency_tracking
775enable_shared
776enable_static
777with_pic
778enable_fast_install
779with_gnu_ld
780enable_libtool_lock
781enable_maintainer_mode
ca4c3545 782with_cuda_driver
783with_cuda_driver_include
784with_cuda_driver_lib
cd9a469c 785enable_linux_futex
786enable_tls
787enable_symvers
788'
789 ac_precious_vars='build_alias
790host_alias
791target_alias
792CPP
793CPPFLAGS
794FC
795FCFLAGS
796LDFLAGS
797LIBS'
798
1e8e9920 799
800# Initialize some variables set by options.
801ac_init_help=
802ac_init_version=false
cd9a469c 803ac_unrecognized_opts=
804ac_unrecognized_sep=
1e8e9920 805# The variables have the same names as the options, with
806# dashes changed to underlines.
807cache_file=/dev/null
808exec_prefix=NONE
809no_create=
810no_recursion=
811prefix=NONE
812program_prefix=NONE
813program_suffix=NONE
814program_transform_name=s,x,x,
815silent=
816site=
817srcdir=
818verbose=
819x_includes=NONE
820x_libraries=NONE
821
822# Installation directory options.
823# These are left unexpanded so users can "make install exec_prefix=/foo"
824# and all the variables that are supposed to be based on exec_prefix
825# by default will actually change.
826# Use braces instead of parens because sh, perl, etc. also accept them.
cd9a469c 827# (The list follows the same order as the GNU Coding Standards.)
1e8e9920 828bindir='${exec_prefix}/bin'
829sbindir='${exec_prefix}/sbin'
830libexecdir='${exec_prefix}/libexec'
cd9a469c 831datarootdir='${prefix}/share'
832datadir='${datarootdir}'
1e8e9920 833sysconfdir='${prefix}/etc'
834sharedstatedir='${prefix}/com'
835localstatedir='${prefix}/var'
1e8e9920 836includedir='${prefix}/include'
837oldincludedir='/usr/include'
cd9a469c 838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839infodir='${datarootdir}/info'
840htmldir='${docdir}'
841dvidir='${docdir}'
842pdfdir='${docdir}'
843psdir='${docdir}'
844libdir='${exec_prefix}/lib'
845localedir='${datarootdir}/locale'
846mandir='${datarootdir}/man'
1e8e9920 847
848ac_prev=
cd9a469c 849ac_dashdash=
1e8e9920 850for ac_option
851do
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
cd9a469c 854 eval $ac_prev=\$ac_option
1e8e9920 855 ac_prev=
856 continue
857 fi
858
cd9a469c 859 case $ac_option in
860 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 *) ac_optarg=yes ;;
862 esac
1e8e9920 863
864 # Accept the important Cygnus configure options, so we can diagnose typos.
865
cd9a469c 866 case $ac_dashdash$ac_option in
867 --)
868 ac_dashdash=yes ;;
1e8e9920 869
870 -bindir | --bindir | --bindi | --bind | --bin | --bi)
871 ac_prev=bindir ;;
872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873 bindir=$ac_optarg ;;
874
875 -build | --build | --buil | --bui | --bu)
876 ac_prev=build_alias ;;
877 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878 build_alias=$ac_optarg ;;
879
880 -cache-file | --cache-file | --cache-fil | --cache-fi \
881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882 ac_prev=cache_file ;;
883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885 cache_file=$ac_optarg ;;
886
887 --config-cache | -C)
888 cache_file=config.cache ;;
889
cd9a469c 890 -datadir | --datadir | --datadi | --datad)
1e8e9920 891 ac_prev=datadir ;;
cd9a469c 892 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1e8e9920 893 datadir=$ac_optarg ;;
894
cd9a469c 895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896 | --dataroo | --dataro | --datar)
897 ac_prev=datarootdir ;;
898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900 datarootdir=$ac_optarg ;;
901
1e8e9920 902 -disable-* | --disable-*)
cd9a469c 903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1e8e9920 904 # Reject names that are not valid shell variable names.
cd9a469c 905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
910 *"
911"enable_$ac_useropt"
912"*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=no ;;
917
918 -docdir | --docdir | --docdi | --doc | --do)
919 ac_prev=docdir ;;
920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921 docdir=$ac_optarg ;;
922
923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924 ac_prev=dvidir ;;
925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926 dvidir=$ac_optarg ;;
1e8e9920 927
928 -enable-* | --enable-*)
cd9a469c 929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1e8e9920 930 # Reject names that are not valid shell variable names.
cd9a469c 931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
936 *"
937"enable_$ac_useropt"
938"*) ;;
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
1e8e9920 941 esac
cd9a469c 942 eval enable_$ac_useropt=\$ac_optarg ;;
1e8e9920 943
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
952
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
955 with_gas=yes ;;
956
957 -help | --help | --hel | --he | -h)
958 ac_init_help=long ;;
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
963
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
968
cd9a469c 969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970 ac_prev=htmldir ;;
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972 | --ht=*)
973 htmldir=$ac_optarg ;;
974
1e8e9920 975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
981
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
983 ac_prev=infodir ;;
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
986
987 -libdir | --libdir | --libdi | --libd)
988 ac_prev=libdir ;;
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
990 libdir=$ac_optarg ;;
991
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
998
cd9a469c 999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1003
1e8e9920 1004 -localstatedir | --localstatedir | --localstatedi | --localstated \
cd9a469c 1005 | --localstate | --localstat | --localsta | --localst | --locals)
1e8e9920 1006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cd9a469c 1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1e8e9920 1009 localstatedir=$ac_optarg ;;
1010
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012 ac_prev=mandir ;;
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1015
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1018 with_fp=no ;;
1019
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1022 no_create=yes ;;
1023
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026 no_recursion=yes ;;
1027
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1036
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038 ac_prev=prefix ;;
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1041
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1048
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1055
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1072
cd9a469c 1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074 ac_prev=pdfdir ;;
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1077
1078 -psdir | --psdir | --psdi | --psd | --ps)
1079 ac_prev=psdir ;;
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081 psdir=$ac_optarg ;;
1082
1e8e9920 1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1085 silent=yes ;;
1086
1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088 ac_prev=sbindir ;;
1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090 | --sbi=* | --sb=*)
1091 sbindir=$ac_optarg ;;
1092
1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095 | --sharedst | --shareds | --shared | --share | --shar \
1096 | --sha | --sh)
1097 ac_prev=sharedstatedir ;;
1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101 | --sha=* | --sh=*)
1102 sharedstatedir=$ac_optarg ;;
1103
1104 -site | --site | --sit)
1105 ac_prev=site ;;
1106 -site=* | --site=* | --sit=*)
1107 site=$ac_optarg ;;
1108
1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110 ac_prev=srcdir ;;
1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112 srcdir=$ac_optarg ;;
1113
1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115 | --syscon | --sysco | --sysc | --sys | --sy)
1116 ac_prev=sysconfdir ;;
1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119 sysconfdir=$ac_optarg ;;
1120
1121 -target | --target | --targe | --targ | --tar | --ta | --t)
1122 ac_prev=target_alias ;;
1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124 target_alias=$ac_optarg ;;
1125
1126 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127 verbose=yes ;;
1128
1129 -version | --version | --versio | --versi | --vers | -V)
1130 ac_init_version=: ;;
1131
1132 -with-* | --with-*)
cd9a469c 1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1e8e9920 1134 # Reject names that are not valid shell variable names.
cd9a469c 1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141"with_$ac_useropt"
1142"*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1e8e9920 1145 esac
cd9a469c 1146 eval with_$ac_useropt=\$ac_optarg ;;
1e8e9920 1147
1148 -without-* | --without-*)
cd9a469c 1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1e8e9920 1150 # Reject names that are not valid shell variable names.
cd9a469c 1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157"with_$ac_useropt"
1158"*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=no ;;
1e8e9920 1163
1164 --x)
1165 # Obsolete; use --with-x.
1166 with_x=yes ;;
1167
1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169 | --x-incl | --x-inc | --x-in | --x-i)
1170 ac_prev=x_includes ;;
1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173 x_includes=$ac_optarg ;;
1174
1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177 ac_prev=x_libraries ;;
1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180 x_libraries=$ac_optarg ;;
1181
cd9a469c 1182 -*) as_fn_error "unrecognized option: \`$ac_option'
1183Try \`$0 --help' for more information."
1e8e9920 1184 ;;
1185
1186 *=*)
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
cd9a469c 1189 case $ac_envvar in #(
1190 '' | [0-9]* | *[!_$as_cr_alnum]* )
1191 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1192 esac
1193 eval $ac_envvar=\$ac_optarg
1e8e9920 1194 export $ac_envvar ;;
1195
1196 *)
1197 # FIXME: should be removed in autoconf 3.0.
cd9a469c 1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1e8e9920 1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cd9a469c 1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1e8e9920 1201 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1202 ;;
1203
1204 esac
1205done
1206
1207if test -n "$ac_prev"; then
1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cd9a469c 1209 as_fn_error "missing argument to $ac_option"
1e8e9920 1210fi
1211
cd9a469c 1212if test -n "$ac_unrecognized_opts"; then
1213 case $enable_option_checking in
1214 no) ;;
1215 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1e8e9920 1217 esac
cd9a469c 1218fi
1e8e9920 1219
cd9a469c 1220# Check all directory arguments for consistency.
1221for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222 datadir sysconfdir sharedstatedir localstatedir includedir \
1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224 libdir localedir mandir
1e8e9920 1225do
cd9a469c 1226 eval ac_val=\$$ac_var
1227 # Remove trailing slashes.
1e8e9920 1228 case $ac_val in
cd9a469c 1229 */ )
1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231 eval $ac_var=\$ac_val;;
1e8e9920 1232 esac
cd9a469c 1233 # Be sure to have absolute directory names.
1234 case $ac_val in
1235 [\\/$]* | ?:[\\/]* ) continue;;
1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1237 esac
1238 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1e8e9920 1239done
1240
1241# There might be people who depend on the old broken behavior: `$host'
1242# used to hold the argument of --host etc.
1243# FIXME: To remove some day.
1244build=$build_alias
1245host=$host_alias
1246target=$target_alias
1247
1248# FIXME: To remove some day.
1249if test "x$host_alias" != x; then
1250 if test "x$build_alias" = x; then
1251 cross_compiling=maybe
cd9a469c 1252 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1e8e9920 1253 If a cross compiler is detected then cross compile mode will be used." >&2
1254 elif test "x$build_alias" != "x$host_alias"; then
1255 cross_compiling=yes
1256 fi
1257fi
1258
1259ac_tool_prefix=
1260test -n "$host_alias" && ac_tool_prefix=$host_alias-
1261
1262test "$silent" = yes && exec 6>/dev/null
1263
1264
cd9a469c 1265ac_pwd=`pwd` && test -n "$ac_pwd" &&
1266ac_ls_di=`ls -di .` &&
1267ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1268 as_fn_error "working directory cannot be determined"
1269test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1270 as_fn_error "pwd does not report name of working directory"
1271
1272
1e8e9920 1273# Find the source files, if location was not specified.
1274if test -z "$srcdir"; then
1275 ac_srcdir_defaulted=yes
cd9a469c 1276 # Try the directory containing this script, then the parent directory.
1277 ac_confdir=`$as_dirname -- "$as_myself" ||
1278$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279 X"$as_myself" : 'X\(//\)[^/]' \| \
1280 X"$as_myself" : 'X\(//\)$' \| \
1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282$as_echo X"$as_myself" |
1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\/\)[^/].*/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\/\)$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\).*/{
1296 s//\1/
1297 q
1298 }
1299 s/.*/./; q'`
1e8e9920 1300 srcdir=$ac_confdir
cd9a469c 1301 if test ! -r "$srcdir/$ac_unique_file"; then
1e8e9920 1302 srcdir=..
1303 fi
1304else
1305 ac_srcdir_defaulted=no
1306fi
cd9a469c 1307if test ! -r "$srcdir/$ac_unique_file"; then
1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1309 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1310fi
1311ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1312ac_abs_confdir=`(
1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1314 pwd)`
1315# When building in place, set srcdir=.
1316if test "$ac_abs_confdir" = "$ac_pwd"; then
1317 srcdir=.
1318fi
1319# Remove unnecessary trailing slashes from srcdir.
1320# Double slashes in file names in object file debugging info
1321# mess up M-x gdb in Emacs.
1322case $srcdir in
1323*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324esac
1325for ac_var in $ac_precious_vars; do
1326 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_env_${ac_var}_value=\$${ac_var}
1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330done
1e8e9920 1331
1332#
1333# Report the --help message.
1334#
1335if test "$ac_init_help" = "long"; then
1336 # Omit some internal or obsolete options to make the list less imposing.
1337 # This message is too long to be a string in the A/UX 3.1 sh.
1338 cat <<_ACEOF
c35c9a62 1339\`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1e8e9920 1340
1341Usage: $0 [OPTION]... [VAR=VALUE]...
1342
1343To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344VAR=VALUE. See below for descriptions of some of the useful variables.
1345
1346Defaults for the options are specified in brackets.
1347
1348Configuration:
1349 -h, --help display this help and exit
1350 --help=short display options specific to this package
1351 --help=recursive display the short help of all the included packages
1352 -V, --version display version information and exit
1353 -q, --quiet, --silent do not print \`checking...' messages
1354 --cache-file=FILE cache test results in FILE [disabled]
1355 -C, --config-cache alias for \`--cache-file=config.cache'
1356 -n, --no-create do not create output files
1357 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1358
1e8e9920 1359Installation directories:
1360 --prefix=PREFIX install architecture-independent files in PREFIX
cd9a469c 1361 [$ac_default_prefix]
1e8e9920 1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cd9a469c 1363 [PREFIX]
1e8e9920 1364
1365By default, \`make install' will install all the files in
1366\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1367an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368for instance \`--prefix=\$HOME'.
1369
1370For better control, use the options below.
1371
1372Fine tuning of the installation directories:
cd9a469c 1373 --bindir=DIR user executables [EPREFIX/bin]
1374 --sbindir=DIR system admin executables [EPREFIX/sbin]
1375 --libexecdir=DIR program executables [EPREFIX/libexec]
1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1379 --libdir=DIR object code libraries [EPREFIX/lib]
1380 --includedir=DIR C header files [PREFIX/include]
1381 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384 --infodir=DIR info documentation [DATAROOTDIR/info]
1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386 --mandir=DIR man documentation [DATAROOTDIR/man]
1387 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1388 --htmldir=DIR html documentation [DOCDIR]
1389 --dvidir=DIR dvi documentation [DOCDIR]
1390 --pdfdir=DIR pdf documentation [DOCDIR]
1391 --psdir=DIR ps documentation [DOCDIR]
1e8e9920 1392_ACEOF
1393
1394 cat <<\_ACEOF
1395
1396Program names:
1397 --program-prefix=PREFIX prepend PREFIX to installed program names
1398 --program-suffix=SUFFIX append SUFFIX to installed program names
1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1400
1401System types:
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404 --target=TARGET configure for building compilers for TARGET [HOST]
1405_ACEOF
1406fi
1407
1408if test -n "$ac_init_help"; then
1409 case $ac_init_help in
c35c9a62 1410 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1e8e9920 1411 esac
1412 cat <<\_ACEOF
1413
1414Optional Features:
cd9a469c 1415 --disable-option-checking ignore unrecognized --enable/--with options
1e8e9920 1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418 --enable-version-specific-runtime-libs
1419 Specify that runtime libraries should be installed
1420 in a compiler-specific directory [default=no]
aeda7a78 1421 --enable-generated-files-in-srcdir
1422 put copies of generated files in source dir intended
1423 for creating source tarballs for users without
1424 texinfo bison or flex. [default=no]
1e8e9920 1425 --enable-multilib build many library versions (default)
1426 --disable-dependency-tracking speeds up one-time build
1427 --enable-dependency-tracking do not reject slow dependency extractors
cd9a469c 1428 --enable-shared[=PKGS] build shared libraries [default=yes]
1429 --enable-static[=PKGS] build static libraries [default=yes]
542f9784 1430 --enable-fast-install[=PKGS]
1431 optimize for fast installation [default=yes]
1e8e9920 1432 --disable-libtool-lock avoid locking (might break parallel builds)
a263d1ab 1433 --enable-maintainer-mode enable make rules and dependencies not useful
1434 (and sometimes confusing) to the casual installer
cd9a469c 1435 --enable-linux-futex use the Linux futex system call [default=default]
e564ddd8 1436 --enable-tls Use thread-local storage [default=yes]
1e8e9920 1437 --enable-symvers=STYLE enables symbol versioning of the shared library
1438 [default=yes]
1439
1440Optional Packages:
1441 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1442 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
542f9784 1443 --with-pic try to use only PIC/non-PIC objects [default=use
1444 both]
1445 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ca4c3545 1446 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1447 package. Equivalent to
1448 --with-cuda-driver-include=PATH/include plus
1449 --with-cuda-driver-lib=PATH/lib
1450 --with-cuda-driver-include=PATH
1451 specify directory for installed CUDA driver include
1452 files
1453 --with-cuda-driver-lib=PATH
1454 specify directory for the installed CUDA driver
1455 library
1e8e9920 1456
1457Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
cd9a469c 1462 LIBS libraries to pass to the linker, e.g. -l<library>
1463 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
542f9784 1465 CPP C preprocessor
1e8e9920 1466 FC Fortran compiler command
1467 FCFLAGS Fortran compiler flags
1e8e9920 1468
1469Use these variables to override the choices made by `configure' or to help
1470it to find libraries and programs with nonstandard names/locations.
1471
cd9a469c 1472Report bugs to the package provider.
c35c9a62 1473GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
cd9a469c 1474General help using GNU software: <http://www.gnu.org/gethelp/>.
1e8e9920 1475_ACEOF
cd9a469c 1476ac_status=$?
1e8e9920 1477fi
1478
1479if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1e8e9920 1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cd9a469c 1482 test -d "$ac_dir" ||
1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484 continue
1e8e9920 1485 ac_builddir=.
1486
cd9a469c 1487case "$ac_dir" in
1488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489*)
1490 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497esac
1498ac_abs_top_builddir=$ac_pwd
1499ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500# for backward compatibility:
1501ac_top_builddir=$ac_top_build_prefix
1e8e9920 1502
1503case $srcdir in
cd9a469c 1504 .) # We are building in place.
1e8e9920 1505 ac_srcdir=.
cd9a469c 1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1e8e9920 1509 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1e8e9920 1516esac
cd9a469c 1517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1e8e9920 1527 else
cd9a469c 1528 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1e8e9920 1531 done
1532fi
1533
cd9a469c 1534test -n "$ac_init_help" && exit $ac_status
1e8e9920 1535if $ac_init_version; then
1536 cat <<\_ACEOF
c35c9a62 1537GNU Offloading and Multi Processing Runtime Library configure 1.0
cd9a469c 1538generated by GNU Autoconf 2.64
1e8e9920 1539
cd9a469c 1540Copyright (C) 2009 Free Software Foundation, Inc.
1e8e9920 1541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
1543_ACEOF
cd9a469c 1544 exit
1e8e9920 1545fi
1e8e9920 1546
cd9a469c 1547## ------------------------ ##
1548## Autoconf initialization. ##
1549## ------------------------ ##
1e8e9920 1550
cd9a469c 1551# ac_fn_c_try_compile LINENO
1552# --------------------------
1553# Try to compile conftest.$ac_ext, and return whether this succeeded.
1554ac_fn_c_try_compile ()
1e8e9920 1555{
cd9a469c 1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext
1558 if { { ac_try="$ac_compile"
1559case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562esac
1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564$as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_compile") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1571 fi
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest.$ac_objext; then :
1577 ac_retval=0
1578else
1579 $as_echo "$as_me: failed program was:" >&5
1580sed 's/^/| /' conftest.$ac_ext >&5
1e8e9920 1581
cd9a469c 1582 ac_retval=1
1583fi
1584 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1585 return $ac_retval
1e8e9920 1586
cd9a469c 1587} # ac_fn_c_try_compile
1e8e9920 1588
cd9a469c 1589# ac_fn_c_try_link LINENO
1590# -----------------------
1591# Try to link conftest.$ac_ext, and return whether this succeeded.
1592ac_fn_c_try_link ()
1593{
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 rm -f conftest.$ac_objext conftest$ac_exeext
1596 if { { ac_try="$ac_link"
1597case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600esac
1601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602$as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_link") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1609 fi
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest$ac_exeext && {
1615 test "$cross_compiling" = yes ||
1616 $as_test_x conftest$ac_exeext
1617 }; then :
1618 ac_retval=0
1619else
1620 $as_echo "$as_me: failed program was:" >&5
1621sed 's/^/| /' conftest.$ac_ext >&5
1e8e9920 1622
cd9a469c 1623 ac_retval=1
1624fi
1625 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1626 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1627 # interfere with the next link command; also delete a directory that is
1628 # left behind by Apple's compiler. We do this before executing the actions.
1629 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1631 return $ac_retval
1e8e9920 1632
cd9a469c 1633} # ac_fn_c_try_link
1e8e9920 1634
cd9a469c 1635# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1636# -------------------------------------------------------
1637# Tests whether HEADER exists and can be compiled using the include files in
1638# INCLUDES, setting the cache variable VAR accordingly.
1639ac_fn_c_check_header_compile ()
1640{
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643$as_echo_n "checking for $2... " >&6; }
1644if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1645 $as_echo_n "(cached) " >&6
1646else
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648/* end confdefs.h. */
1649$4
1650#include <$2>
1651_ACEOF
1652if ac_fn_c_try_compile "$LINENO"; then :
1653 eval "$3=yes"
1654else
1655 eval "$3=no"
1656fi
1657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658fi
1659eval ac_res=\$$3
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661$as_echo "$ac_res" >&6; }
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1e8e9920 1663
cd9a469c 1664} # ac_fn_c_check_header_compile
1e8e9920 1665
cd9a469c 1666# ac_fn_c_try_cpp LINENO
1667# ----------------------
1668# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1669ac_fn_c_try_cpp ()
1670{
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if { { ac_try="$ac_cpp conftest.$ac_ext"
1673case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676esac
1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678$as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1680 ac_status=$?
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1685 fi
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } >/dev/null && {
1688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 }; then :
1691 ac_retval=0
1692else
1693 $as_echo "$as_me: failed program was:" >&5
1694sed 's/^/| /' conftest.$ac_ext >&5
1e8e9920 1695
cd9a469c 1696 ac_retval=1
1697fi
1698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1699 return $ac_retval
1e8e9920 1700
cd9a469c 1701} # ac_fn_c_try_cpp
1e8e9920 1702
cd9a469c 1703# ac_fn_c_try_run LINENO
1704# ----------------------
1705# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1706# that executables *can* be run.
1707ac_fn_c_try_run ()
1708{
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { { ac_try="$ac_link"
1711case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>&5
1718 ac_status=$?
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1721 { { case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_try") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; }; }; then :
1731 ac_retval=0
1732else
1733 $as_echo "$as_me: program exited with status $ac_status" >&5
1734 $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1e8e9920 1736
cd9a469c 1737 ac_retval=$ac_status
1738fi
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 return $ac_retval
1e8e9920 1742
cd9a469c 1743} # ac_fn_c_try_run
1e8e9920 1744
cd9a469c 1745# ac_fn_c_check_func LINENO FUNC VAR
1746# ----------------------------------
1747# Tests whether FUNC exists, setting the cache variable VAR accordingly
1748ac_fn_c_check_func ()
1e8e9920 1749{
cd9a469c 1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752$as_echo_n "checking for $2... " >&6; }
1753if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1754 $as_echo_n "(cached) " >&6
1755else
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757/* end confdefs.h. */
1758/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1760#define $2 innocuous_$2
1e8e9920 1761
cd9a469c 1762/* System header to define __stub macros and hopefully few prototypes,
1763 which can conflict with char $2 (); below.
1764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1765 <limits.h> exists even on freestanding compilers. */
1e8e9920 1766
cd9a469c 1767#ifdef __STDC__
1768# include <limits.h>
1769#else
1770# include <assert.h>
1771#endif
1e8e9920 1772
cd9a469c 1773#undef $2
1e8e9920 1774
cd9a469c 1775/* Override any GCC internal prototype to avoid an error.
1776 Use char because int might match the return type of a GCC
1777 builtin and then its argument prototype would still apply. */
1778#ifdef __cplusplus
1779extern "C"
1780#endif
1781char $2 ();
1782/* The GNU C library defines this for functions which it implements
1783 to always fail with ENOSYS. Some functions are actually named
1784 something starting with __ and the normal name is an alias. */
1785#if defined __stub_$2 || defined __stub___$2
1786choke me
1787#endif
1e8e9920 1788
cd9a469c 1789int
1790main ()
1791{
1792return $2 ();
1793 ;
1794 return 0;
1795}
1e8e9920 1796_ACEOF
cd9a469c 1797if ac_fn_c_try_link "$LINENO"; then :
1798 eval "$3=yes"
1799else
1800 eval "$3=no"
1801fi
1802rm -f core conftest.err conftest.$ac_objext \
1803 conftest$ac_exeext conftest.$ac_ext
1804fi
1805eval ac_res=\$$3
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807$as_echo "$ac_res" >&6; }
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1e8e9920 1809
cd9a469c 1810} # ac_fn_c_check_func
1e8e9920 1811
cd9a469c 1812# ac_fn_fc_try_compile LINENO
1813# ---------------------------
1814# Try to compile conftest.$ac_ext, and return whether this succeeded.
1815ac_fn_fc_try_compile ()
1816{
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 rm -f conftest.$ac_objext
1819 if { { ac_try="$ac_compile"
1820case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825$as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1832 fi
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_fc_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1838 ac_retval=0
1839else
1840 $as_echo "$as_me: failed program was:" >&5
1841sed 's/^/| /' conftest.$ac_ext >&5
1e8e9920 1842
cd9a469c 1843 ac_retval=1
1844fi
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 return $ac_retval
1e8e9920 1847
cd9a469c 1848} # ac_fn_fc_try_compile
1e8e9920 1849
cd9a469c 1850# ac_fn_fc_try_link LINENO
1851# ------------------------
1852# Try to link conftest.$ac_ext, and return whether this succeeded.
1853ac_fn_fc_try_link ()
1854{
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext conftest$ac_exeext
1857 if { { ac_try="$ac_link"
1858case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861esac
1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863$as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_link") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1870 fi
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_fc_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest$ac_exeext && {
1876 test "$cross_compiling" = yes ||
1877 $as_test_x conftest$ac_exeext
1878 }; then :
1879 ac_retval=0
1880else
1881 $as_echo "$as_me: failed program was:" >&5
1882sed 's/^/| /' conftest.$ac_ext >&5
1e8e9920 1883
cd9a469c 1884 ac_retval=1
1885fi
1886 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1887 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1888 # interfere with the next link command; also delete a directory that is
1889 # left behind by Apple's compiler. We do this before executing the actions.
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 return $ac_retval
1e8e9920 1893
cd9a469c 1894} # ac_fn_fc_try_link
1e8e9920 1895
cd9a469c 1896# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1897# -------------------------------------------------------
1898# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1899# the include files in INCLUDES and setting the cache variable VAR
1900# accordingly.
1901ac_fn_c_check_header_mongrel ()
1902{
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906$as_echo_n "checking for $2... " >&6; }
1907if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1908 $as_echo_n "(cached) " >&6
1909fi
1910eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912$as_echo "$ac_res" >&6; }
1913else
1914 # Is the header compilable?
1915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1916$as_echo_n "checking $2 usability... " >&6; }
1917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918/* end confdefs.h. */
1919$4
1920#include <$2>
1e8e9920 1921_ACEOF
cd9a469c 1922if ac_fn_c_try_compile "$LINENO"; then :
1923 ac_header_compiler=yes
1924else
1925 ac_header_compiler=no
1e8e9920 1926fi
cd9a469c 1927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1929$as_echo "$ac_header_compiler" >&6; }
1e8e9920 1930
cd9a469c 1931# Is the header present?
1932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1933$as_echo_n "checking $2 presence... " >&6; }
1934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h. */
1936#include <$2>
1937_ACEOF
1938if ac_fn_c_try_cpp "$LINENO"; then :
1939 ac_header_preproc=yes
1e8e9920 1940else
cd9a469c 1941 ac_header_preproc=no
1e8e9920 1942fi
cd9a469c 1943rm -f conftest.err conftest.$ac_ext
1944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1945$as_echo "$ac_header_preproc" >&6; }
1e8e9920 1946
cd9a469c 1947# So? What about this header?
1948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1949 yes:no: )
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1951$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1953$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1954 ;;
1955 no:yes:* )
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1957$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1959$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1961$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1963$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1966 ;;
1967esac
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969$as_echo_n "checking for $2... " >&6; }
1970if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1971 $as_echo_n "(cached) " >&6
1972else
1973 eval "$3=\$ac_header_compiler"
1e8e9920 1974fi
cd9a469c 1975eval ac_res=\$$3
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977$as_echo "$ac_res" >&6; }
1978fi
1979 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1e8e9920 1980
cd9a469c 1981} # ac_fn_c_check_header_mongrel
1e8e9920 1982
cd9a469c 1983# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1984# -------------------------------------------
1985# Tests whether TYPE exists after having included INCLUDES, setting cache
1986# variable VAR accordingly.
1987ac_fn_c_check_type ()
1988{
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991$as_echo_n "checking for $2... " >&6; }
1992if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1993 $as_echo_n "(cached) " >&6
1994else
1995 eval "$3=no"
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997/* end confdefs.h. */
1998$4
1999int
2000main ()
2001{
2002if (sizeof ($2))
2003 return 0;
2004 ;
2005 return 0;
2006}
2007_ACEOF
2008if ac_fn_c_try_compile "$LINENO"; then :
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010/* end confdefs.h. */
2011$4
2012int
2013main ()
2014{
2015if (sizeof (($2)))
2016 return 0;
2017 ;
2018 return 0;
2019}
2020_ACEOF
2021if ac_fn_c_try_compile "$LINENO"; then :
1e8e9920 2022
cd9a469c 2023else
2024 eval "$3=yes"
2025fi
2026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027fi
2028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029fi
2030eval ac_res=\$$3
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032$as_echo "$ac_res" >&6; }
2033 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1e8e9920 2034
cd9a469c 2035} # ac_fn_c_check_type
1e8e9920 2036
cd9a469c 2037# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2038# --------------------------------------------
2039# Tries to find the compile-time value of EXPR in a program that includes
2040# INCLUDES, setting VAR accordingly. Returns whether the value could be
2041# computed
2042ac_fn_c_compute_int ()
2043{
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 if test "$cross_compiling" = yes; then
2046 # Depending upon the size, compute the lo and hi bounds.
2047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048/* end confdefs.h. */
2049$4
2050int
2051main ()
2052{
2053static int test_array [1 - 2 * !(($2) >= 0)];
2054test_array [0] = 0
1e8e9920 2055
cd9a469c 2056 ;
2057 return 0;
2058}
2059_ACEOF
2060if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_lo=0 ac_mid=0
2062 while :; do
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064/* end confdefs.h. */
2065$4
2066int
2067main ()
2068{
2069static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2070test_array [0] = 0
1e8e9920 2071
cd9a469c 2072 ;
2073 return 0;
2074}
2075_ACEOF
2076if ac_fn_c_try_compile "$LINENO"; then :
2077 ac_hi=$ac_mid; break
2078else
2079 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2080 if test $ac_lo -le $ac_mid; then
2081 ac_lo= ac_hi=
2082 break
2083 fi
2084 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2085fi
2086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 done
2088else
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h. */
2091$4
2092int
2093main ()
2094{
2095static int test_array [1 - 2 * !(($2) < 0)];
2096test_array [0] = 0
1e8e9920 2097
cd9a469c 2098 ;
2099 return 0;
2100}
2101_ACEOF
2102if ac_fn_c_try_compile "$LINENO"; then :
2103 ac_hi=-1 ac_mid=-1
2104 while :; do
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106/* end confdefs.h. */
2107$4
2108int
2109main ()
2110{
2111static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2112test_array [0] = 0
1e8e9920 2113
cd9a469c 2114 ;
2115 return 0;
2116}
2117_ACEOF
2118if ac_fn_c_try_compile "$LINENO"; then :
2119 ac_lo=$ac_mid; break
2120else
2121 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2122 if test $ac_mid -le $ac_hi; then
2123 ac_lo= ac_hi=
2124 break
2125 fi
2126 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2127fi
2128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 done
2130else
2131 ac_lo= ac_hi=
2132fi
2133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134fi
2135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136# Binary search between lo and hi bounds.
2137while test "x$ac_lo" != "x$ac_hi"; do
2138 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140/* end confdefs.h. */
2141$4
2142int
2143main ()
2144{
2145static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2146test_array [0] = 0
1e8e9920 2147
cd9a469c 2148 ;
2149 return 0;
2150}
2151_ACEOF
2152if ac_fn_c_try_compile "$LINENO"; then :
2153 ac_hi=$ac_mid
2154else
2155 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2156fi
2157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158done
2159case $ac_lo in #((
2160?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2161'') ac_retval=1 ;;
2162esac
2163 else
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165/* end confdefs.h. */
2166$4
2167static long int longval () { return $2; }
2168static unsigned long int ulongval () { return $2; }
2169#include <stdio.h>
2170#include <stdlib.h>
2171int
2172main ()
2173{
1e8e9920 2174
cd9a469c 2175 FILE *f = fopen ("conftest.val", "w");
2176 if (! f)
2177 return 1;
2178 if (($2) < 0)
2179 {
2180 long int i = longval ();
2181 if (i != ($2))
2182 return 1;
2183 fprintf (f, "%ld", i);
2184 }
2185 else
2186 {
2187 unsigned long int i = ulongval ();
2188 if (i != ($2))
2189 return 1;
2190 fprintf (f, "%lu", i);
2191 }
2192 /* Do not output a trailing newline, as this causes \r\n confusion
2193 on some platforms. */
2194 return ferror (f) || fclose (f) != 0;
1e8e9920 2195
cd9a469c 2196 ;
2197 return 0;
2198}
2199_ACEOF
2200if ac_fn_c_try_run "$LINENO"; then :
2201 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2202else
2203 ac_retval=1
2204fi
2205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2206 conftest.$ac_objext conftest.beam conftest.$ac_ext
2207rm -f conftest.val
1e8e9920 2208
cd9a469c 2209 fi
2210 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2211 return $ac_retval
1e8e9920 2212
cd9a469c 2213} # ac_fn_c_compute_int
2214cat >config.log <<_ACEOF
2215This file contains any messages produced by compilers while
2216running configure, to aid debugging if configure makes a mistake.
1e8e9920 2217
c35c9a62 2218It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
cd9a469c 2219generated by GNU Autoconf 2.64. Invocation command line was
1e8e9920 2220
cd9a469c 2221 $ $0 $@
1e8e9920 2222
cd9a469c 2223_ACEOF
2224exec 5>>config.log
2225{
2226cat <<_ASUNAME
2227## --------- ##
2228## Platform. ##
2229## --------- ##
1e8e9920 2230
cd9a469c 2231hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2232uname -m = `(uname -m) 2>/dev/null || echo unknown`
2233uname -r = `(uname -r) 2>/dev/null || echo unknown`
2234uname -s = `(uname -s) 2>/dev/null || echo unknown`
2235uname -v = `(uname -v) 2>/dev/null || echo unknown`
1e8e9920 2236
cd9a469c 2237/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2238/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1e8e9920 2239
cd9a469c 2240/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2241/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2242/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2243/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2244/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2245/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2246/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1e8e9920 2247
cd9a469c 2248_ASUNAME
1e8e9920 2249
cd9a469c 2250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251for as_dir in $PATH
2252do
2253 IFS=$as_save_IFS
2254 test -z "$as_dir" && as_dir=.
2255 $as_echo "PATH: $as_dir"
2256 done
2257IFS=$as_save_IFS
1e8e9920 2258
cd9a469c 2259} >&5
1e8e9920 2260
cd9a469c 2261cat >&5 <<_ACEOF
5b2c7553 2262
2263
cd9a469c 2264## ----------- ##
2265## Core tests. ##
2266## ----------- ##
5b2c7553 2267
cd9a469c 2268_ACEOF
1e8e9920 2269
2270
cd9a469c 2271# Keep a trace of the command line.
2272# Strip out --no-create and --no-recursion so they do not pile up.
2273# Strip out --silent because we don't want to record it for future runs.
2274# Also quote any args containing shell meta-characters.
2275# Make two passes to allow for proper duplicate-argument suppression.
2276ac_configure_args=
2277ac_configure_args0=
2278ac_configure_args1=
2279ac_must_keep_next=false
2280for ac_pass in 1 2
2281do
2282 for ac_arg
2283 do
2284 case $ac_arg in
2285 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2286 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2287 | -silent | --silent | --silen | --sile | --sil)
2288 continue ;;
2289 *\'*)
2290 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2291 esac
2292 case $ac_pass in
2293 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2294 2)
2295 as_fn_append ac_configure_args1 " '$ac_arg'"
2296 if test $ac_must_keep_next = true; then
2297 ac_must_keep_next=false # Got value, back to normal.
2298 else
2299 case $ac_arg in
2300 *=* | --config-cache | -C | -disable-* | --disable-* \
2301 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2302 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2303 | -with-* | --with-* | -without-* | --without-* | --x)
2304 case "$ac_configure_args0 " in
2305 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2306 esac
2307 ;;
2308 -* ) ac_must_keep_next=true ;;
2309 esac
2310 fi
2311 as_fn_append ac_configure_args " '$ac_arg'"
2312 ;;
2313 esac
2314 done
2315done
2316{ ac_configure_args0=; unset ac_configure_args0;}
2317{ ac_configure_args1=; unset ac_configure_args1;}
1e8e9920 2318
cd9a469c 2319# When interrupted or exit'd, cleanup temporary files, and complete
2320# config.log. We remove comments because anyway the quotes in there
2321# would cause problems or look ugly.
2322# WARNING: Use '\'' to represent an apostrophe within the trap.
2323# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2324trap 'exit_status=$?
2325 # Save into config.log some information that might help in debugging.
2326 {
2327 echo
1e8e9920 2328
cd9a469c 2329 cat <<\_ASBOX
2330## ---------------- ##
2331## Cache variables. ##
2332## ---------------- ##
2333_ASBOX
2334 echo
2335 # The following way of writing the cache mishandles newlines in values,
2336(
2337 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2338 eval ac_val=\$$ac_var
2339 case $ac_val in #(
2340 *${as_nl}*)
2341 case $ac_var in #(
2342 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2343$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2344 esac
2345 case $ac_var in #(
2346 _ | IFS | as_nl) ;; #(
2347 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2348 *) { eval $ac_var=; unset $ac_var;} ;;
2349 esac ;;
2350 esac
2351 done
2352 (set) 2>&1 |
2353 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2354 *${as_nl}ac_space=\ *)
2355 sed -n \
2356 "s/'\''/'\''\\\\'\'''\''/g;
2357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2358 ;; #(
2359 *)
2360 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2361 ;;
2362 esac |
2363 sort
2364)
2365 echo
1e8e9920 2366
cd9a469c 2367 cat <<\_ASBOX
2368## ----------------- ##
2369## Output variables. ##
2370## ----------------- ##
2371_ASBOX
2372 echo
2373 for ac_var in $ac_subst_vars
2374 do
2375 eval ac_val=\$$ac_var
2376 case $ac_val in
2377 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2378 esac
2379 $as_echo "$ac_var='\''$ac_val'\''"
2380 done | sort
2381 echo
1e8e9920 2382
cd9a469c 2383 if test -n "$ac_subst_files"; then
2384 cat <<\_ASBOX
2385## ------------------- ##
2386## File substitutions. ##
2387## ------------------- ##
2388_ASBOX
2389 echo
2390 for ac_var in $ac_subst_files
2391 do
2392 eval ac_val=\$$ac_var
2393 case $ac_val in
2394 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2395 esac
2396 $as_echo "$ac_var='\''$ac_val'\''"
2397 done | sort
2398 echo
2399 fi
1e8e9920 2400
cd9a469c 2401 if test -s confdefs.h; then
2402 cat <<\_ASBOX
2403## ----------- ##
2404## confdefs.h. ##
2405## ----------- ##
2406_ASBOX
2407 echo
2408 cat confdefs.h
2409 echo
2410 fi
2411 test "$ac_signal" != 0 &&
2412 $as_echo "$as_me: caught signal $ac_signal"
2413 $as_echo "$as_me: exit $exit_status"
2414 } >&5
2415 rm -f core *.core core.conftest.* &&
2416 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2417 exit $exit_status
2418' 0
2419for ac_signal in 1 2 13 15; do
2420 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2421done
2422ac_signal=0
1e8e9920 2423
cd9a469c 2424# confdefs.h avoids OS command line length limits that DEFS can exceed.
2425rm -f -r conftest* confdefs.h
2426
2427$as_echo "/* confdefs.h */" > confdefs.h
2428
2429# Predefined preprocessor variables.
2430
2431cat >>confdefs.h <<_ACEOF
2432#define PACKAGE_NAME "$PACKAGE_NAME"
2433_ACEOF
2434
2435cat >>confdefs.h <<_ACEOF
2436#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2437_ACEOF
2438
2439cat >>confdefs.h <<_ACEOF
2440#define PACKAGE_VERSION "$PACKAGE_VERSION"
2441_ACEOF
2442
2443cat >>confdefs.h <<_ACEOF
2444#define PACKAGE_STRING "$PACKAGE_STRING"
2445_ACEOF
2446
2447cat >>confdefs.h <<_ACEOF
2448#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2449_ACEOF
2450
2451cat >>confdefs.h <<_ACEOF
2452#define PACKAGE_URL "$PACKAGE_URL"
2453_ACEOF
2454
2455
2456# Let the site file select an alternate cache file if it wants to.
2457# Prefer an explicitly selected file to automatically selected ones.
2458ac_site_file1=NONE
2459ac_site_file2=NONE
2460if test -n "$CONFIG_SITE"; then
2461 ac_site_file1=$CONFIG_SITE
2462elif test "x$prefix" != xNONE; then
2463 ac_site_file1=$prefix/share/config.site
2464 ac_site_file2=$prefix/etc/config.site
2465else
2466 ac_site_file1=$ac_default_prefix/share/config.site
2467 ac_site_file2=$ac_default_prefix/etc/config.site
2468fi
2469for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2470do
2471 test "x$ac_site_file" = xNONE && continue
2472 if test -r "$ac_site_file"; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2474$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2475 sed 's/^/| /' "$ac_site_file" >&5
2476 . "$ac_site_file"
2477 fi
2478done
2479
2480if test -r "$cache_file"; then
2481 # Some versions of bash will fail to source /dev/null (special
2482 # files actually), so we avoid doing that.
2483 if test -f "$cache_file"; then
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2485$as_echo "$as_me: loading cache $cache_file" >&6;}
2486 case $cache_file in
2487 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2488 *) . "./$cache_file";;
2489 esac
2490 fi
2491else
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2493$as_echo "$as_me: creating cache $cache_file" >&6;}
2494 >$cache_file
2495fi
2496
2497# Check that the precious variables saved in the cache have kept the same
2498# value.
2499ac_cache_corrupted=false
2500for ac_var in $ac_precious_vars; do
2501 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2502 eval ac_new_set=\$ac_env_${ac_var}_set
2503 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2504 eval ac_new_val=\$ac_env_${ac_var}_value
2505 case $ac_old_set,$ac_new_set in
2506 set,)
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2508$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2509 ac_cache_corrupted=: ;;
2510 ,set)
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2512$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2513 ac_cache_corrupted=: ;;
2514 ,);;
2515 *)
2516 if test "x$ac_old_val" != "x$ac_new_val"; then
2517 # differences in whitespace do not lead to failure.
2518 ac_old_val_w=`echo x $ac_old_val`
2519 ac_new_val_w=`echo x $ac_new_val`
2520 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2522$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2523 ac_cache_corrupted=:
2524 else
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2526$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2527 eval $ac_var=\$ac_old_val
2528 fi
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2530$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2532$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2533 fi;;
2534 esac
2535 # Pass precious variables to config.status.
2536 if test "$ac_new_set" = set; then
2537 case $ac_new_val in
2538 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2539 *) ac_arg=$ac_var=$ac_new_val ;;
2540 esac
2541 case " $ac_configure_args " in
2542 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2543 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2544 esac
2545 fi
2546done
2547if $ac_cache_corrupted; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2551$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2552 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2553fi
2554## -------------------- ##
2555## Main body of script. ##
2556## -------------------- ##
2557
2558ac_ext=c
2559ac_cpp='$CPP $CPPFLAGS'
2560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563
2564
2565
2566
2567
2568ac_config_headers="$ac_config_headers config.h"
2569
2570
2571# -------
2572# Options
2573# -------
2574
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2576$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2577 # Check whether --enable-version-specific-runtime-libs was given.
2578if test "${enable_version_specific_runtime_libs+set}" = set; then :
2579 enableval=$enable_version_specific_runtime_libs;
1e8e9920 2580 case "$enableval" in
2581 yes|no) ;;
cd9a469c 2582 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
1e8e9920 2583 esac
2584
2585else
2586 enable_version_specific_runtime_libs=no
cd9a469c 2587fi
2588
1e8e9920 2589
cd9a469c 2590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2591$as_echo "$enable_version_specific_runtime_libs" >&6; }
1e8e9920 2592
aeda7a78 2593# We would like our source tree to be readonly. However when releases or
2594# pre-releases are generated, the flex/bison generated files as well as the
2595# various formats of manuals need to be included along with the rest of the
2596# sources. Therefore we have --enable-generated-files-in-srcdir to do
2597# just that.
cd9a469c 2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2599$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2600 # Check whether --enable-generated-files-in-srcdir was given.
2601if test "${enable_generated_files_in_srcdir+set}" = set; then :
2602 enableval=$enable_generated_files_in_srcdir;
aeda7a78 2603 case "$enableval" in
2604 yes|no) ;;
cd9a469c 2605 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
aeda7a78 2606 esac
2607
2608else
2609 enable_generated_files_in_srcdir=no
cd9a469c 2610fi
aeda7a78 2611
2612
cd9a469c 2613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2614$as_echo "$enable_generated_files_in_srcdir" >&6; }
2615 if test "$enable_generated_files_in_srcdir" = yes; then
aeda7a78 2616 GENINSRC_TRUE=
2617 GENINSRC_FALSE='#'
2618else
2619 GENINSRC_TRUE='#'
2620 GENINSRC_FALSE=
2621fi
2622
2623
2624
1e8e9920 2625# -------
2626# -------
2627
2628# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2629#
2630# You will slowly go insane if you do not grok the following fact: when
2631# building this library, the top-level /target/ becomes the library's /host/.
2632#
2633# configure then causes --target to default to --host, exactly like any
2634# other package using autoconf. Therefore, 'target' and 'host' will
2635# always be the same. This makes sense both for native and cross compilers
2636# just think about it for a little while. :-)
2637#
2638# Also, if this library is being configured as part of a cross compiler, the
2639# top-level configure script will pass the "real" host as $with_cross_host.
2640#
2641# Do not delete or change the following two lines. For why, see
2642# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2643ac_aux_dir=
cd9a469c 2644for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2645 for ac_t in install-sh install.sh shtool; do
2646 if test -f "$ac_dir/$ac_t"; then
2647 ac_aux_dir=$ac_dir
2648 ac_install_sh="$ac_aux_dir/$ac_t -c"
2649 break 2
2650 fi
2651 done
1e8e9920 2652done
2653if test -z "$ac_aux_dir"; then
cd9a469c 2654 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1e8e9920 2655fi
cd9a469c 2656
2657# These three variables are undocumented and unsupported,
2658# and are intended to be withdrawn in a future Autoconf release.
2659# They can cause serious problems if a builder's source tree is in a directory
2660# whose full name contains unusual characters.
2661ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2662ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2663ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2664
1e8e9920 2665
2666# Make sure we can run config.sub.
cd9a469c 2667$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2668 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2669
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2671$as_echo_n "checking build system type... " >&6; }
2672if test "${ac_cv_build+set}" = set; then :
2673 $as_echo_n "(cached) " >&6
2674else
2675 ac_build_alias=$build_alias
2676test "x$ac_build_alias" = x &&
2677 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2678test "x$ac_build_alias" = x &&
2679 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2680ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2681 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2682
2683fi
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2685$as_echo "$ac_cv_build" >&6; }
2686case $ac_cv_build in
2687*-*-*) ;;
2688*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2689esac
1e8e9920 2690build=$ac_cv_build
cd9a469c 2691ac_save_IFS=$IFS; IFS='-'
2692set x $ac_cv_build
2693shift
2694build_cpu=$1
2695build_vendor=$2
2696shift; shift
2697# Remember, the first character of IFS is used to create $*,
2698# except with old shells:
2699build_os=$*
2700IFS=$ac_save_IFS
2701case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1e8e9920 2702
2703
cd9a469c 2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2705$as_echo_n "checking host system type... " >&6; }
2706if test "${ac_cv_host+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
1e8e9920 2708else
cd9a469c 2709 if test "x$host_alias" = x; then
2710 ac_cv_host=$ac_cv_build
2711else
2712 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2713 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2714fi
1e8e9920 2715
2716fi
cd9a469c 2717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2718$as_echo "$ac_cv_host" >&6; }
2719case $ac_cv_host in
2720*-*-*) ;;
2721*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2722esac
1e8e9920 2723host=$ac_cv_host
cd9a469c 2724ac_save_IFS=$IFS; IFS='-'
2725set x $ac_cv_host
2726shift
2727host_cpu=$1
2728host_vendor=$2
2729shift; shift
2730# Remember, the first character of IFS is used to create $*,
2731# except with old shells:
2732host_os=$*
2733IFS=$ac_save_IFS
2734case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1e8e9920 2735
2736
cd9a469c 2737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2738$as_echo_n "checking target system type... " >&6; }
2739if test "${ac_cv_target+set}" = set; then :
2740 $as_echo_n "(cached) " >&6
2741else
2742 if test "x$target_alias" = x; then
2743 ac_cv_target=$ac_cv_host
1e8e9920 2744else
cd9a469c 2745 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2746 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2747fi
1e8e9920 2748
2749fi
cd9a469c 2750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2751$as_echo "$ac_cv_target" >&6; }
2752case $ac_cv_target in
2753*-*-*) ;;
2754*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2755esac
1e8e9920 2756target=$ac_cv_target
cd9a469c 2757ac_save_IFS=$IFS; IFS='-'
2758set x $ac_cv_target
2759shift
2760target_cpu=$1
2761target_vendor=$2
2762shift; shift
2763# Remember, the first character of IFS is used to create $*,
2764# except with old shells:
2765target_os=$*
2766IFS=$ac_save_IFS
2767case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1e8e9920 2768
2769
2770# The aliases save the names the user supplied, while $host etc.
2771# will get canonicalized.
2772test -n "$target_alias" &&
2773 test "$program_prefix$program_suffix$program_transform_name" = \
2774 NONENONEs,x,x, &&
2775 program_prefix=${target_alias}-
cd9a469c 2776
1e8e9920 2777target_alias=${target_alias-$host_alias}
2778
2779# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2780# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2781# 1.9.0: minimum required version
2782# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2783# of other PACKAGE_* variables will, however, and there's nothing
2784# we can do about that; they come from AC_INIT).
2785# foreign: we don't follow the normal rules for GNU packages (no COPYING
2786# file in the top srcdir, etc, etc), so stop complaining.
5dbeae57 2787# no-dist: we don't want 'dist' and related rules.
1e8e9920 2788# -Wall: turns on all automake warnings...
2789# -Wno-portability: ...except this one, since GNU make is required.
2790# -Wno-override: ... and this one, since we do want this in testsuite.
cd9a469c 2791am__api_version='1.11'
2792
1e8e9920 2793# Find a good install program. We prefer a C program (faster),
2794# so one script is as good as another. But avoid the broken or
2795# incompatible versions:
2796# SysV /etc/install, /usr/sbin/install
2797# SunOS /usr/etc/install
2798# IRIX /sbin/install
2799# AIX /bin/install
2800# AmigaOS /C/install, which installs bootblocks on floppy discs
2801# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2802# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2803# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2804# OS/2's system install, which has a completely different semantic
2805# ./install, which can be erroneously created by make from ./install.sh.
82eaf560 2806# Reject install programs that cannot install multiple files.
cd9a469c 2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2808$as_echo_n "checking for a BSD-compatible install... " >&6; }
1e8e9920 2809if test -z "$INSTALL"; then
cd9a469c 2810if test "${ac_cv_path_install+set}" = set; then :
2811 $as_echo_n "(cached) " >&6
1e8e9920 2812else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814for as_dir in $PATH
2815do
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
cd9a469c 2818 # Account for people who put trailing slashes in PATH elements.
2819case $as_dir/ in #((
2820 ./ | .// | /[cC]/* | \
1e8e9920 2821 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cd9a469c 2822 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1e8e9920 2823 /usr/ucb/* ) ;;
2824 *)
2825 # OSF1 and SCO ODT 3.0 have their own names for install.
2826 # Don't use installbsd from OSF since it installs stuff as root
2827 # by default.
2828 for ac_prog in ginstall scoinst install; do
2829 for ac_exec_ext in '' $ac_executable_extensions; do
cd9a469c 2830 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1e8e9920 2831 if test $ac_prog = install &&
2832 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2833 # AIX install. It has an incompatible calling convention.
2834 :
2835 elif test $ac_prog = install &&
2836 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2837 # program-specific install script used by HP pwplus--don't use.
2838 :
2839 else
82eaf560 2840 rm -rf conftest.one conftest.two conftest.dir
2841 echo one > conftest.one
2842 echo two > conftest.two
2843 mkdir conftest.dir
2844 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2845 test -s conftest.one && test -s conftest.two &&
2846 test -s conftest.dir/conftest.one &&
2847 test -s conftest.dir/conftest.two
2848 then
2849 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2850 break 3
2851 fi
1e8e9920 2852 fi
2853 fi
2854 done
2855 done
2856 ;;
2857esac
cd9a469c 2858
2859 done
2860IFS=$as_save_IFS
1e8e9920 2861
82eaf560 2862rm -rf conftest.one conftest.two conftest.dir
1e8e9920 2863
2864fi
2865 if test "${ac_cv_path_install+set}" = set; then
2866 INSTALL=$ac_cv_path_install
2867 else
82eaf560 2868 # As a last resort, use the slow shell script. Don't cache a
2869 # value for INSTALL within a source directory, because that will
1e8e9920 2870 # break other packages using the cache if that directory is
82eaf560 2871 # removed, or if the value is a relative name.
1e8e9920 2872 INSTALL=$ac_install_sh
2873 fi
2874fi
cd9a469c 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2876$as_echo "$INSTALL" >&6; }
1e8e9920 2877
2878# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2879# It thinks the first close brace ends the variable substitution.
2880test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2881
2882test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2883
2884test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2885
cd9a469c 2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2887$as_echo_n "checking whether build environment is sane... " >&6; }
1e8e9920 2888# Just in case
2889sleep 1
2890echo timestamp > conftest.file
cd9a469c 2891# Reject unsafe characters in $srcdir or the absolute working directory
2892# name. Accept space and tab only in the latter.
2893am_lf='
2894'
2895case `pwd` in
2896 *[\\\"\#\$\&\'\`$am_lf]*)
2897 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2898esac
2899case $srcdir in
2900 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2901 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2902esac
2903
1e8e9920 2904# Do `set' in a subshell so we don't clobber the current shell's
2905# arguments. Must try -L first in case configure is actually a
2906# symlink; some systems play weird games with the mod time of symlinks
2907# (eg FreeBSD returns the mod time of the symlink's containing
2908# directory).
2909if (
cd9a469c 2910 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1e8e9920 2911 if test "$*" = "X"; then
2912 # -L didn't work.
cd9a469c 2913 set X `ls -t "$srcdir/configure" conftest.file`
1e8e9920 2914 fi
2915 rm -f conftest.file
2916 if test "$*" != "X $srcdir/configure conftest.file" \
2917 && test "$*" != "X conftest.file $srcdir/configure"; then
2918
2919 # If neither matched, then we have a broken ls. This can happen
2920 # if, for instance, CONFIG_SHELL is bash and it inherits a
2921 # broken ls alias from the environment. This has actually
2922 # happened. Such a system could not be considered "sane".
cd9a469c 2923 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2924alias in your environment" "$LINENO" 5
1e8e9920 2925 fi
2926
2927 test "$2" = conftest.file
2928 )
2929then
2930 # Ok.
2931 :
2932else
cd9a469c 2933 as_fn_error "newly created file is older than distributed files!
2934Check your system clock" "$LINENO" 5
1e8e9920 2935fi
cd9a469c 2936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2937$as_echo "yes" >&6; }
1e8e9920 2938test "$program_prefix" != NONE &&
cd9a469c 2939 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1e8e9920 2940# Use a double $ so make ignores it.
2941test "$program_suffix" != NONE &&
cd9a469c 2942 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2943# Double any \ or $.
1e8e9920 2944# By default was `s,x,x', remove it if useless.
cd9a469c 2945ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2946program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1e8e9920 2947
2948# expand $ac_aux_dir to an absolute path
2949am_aux_dir=`cd $ac_aux_dir && pwd`
2950
cd9a469c 2951if test x"${MISSING+set}" != xset; then
2952 case $am_aux_dir in
2953 *\ * | *\ *)
2954 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2955 *)
2956 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2957 esac
2958fi
1e8e9920 2959# Use eval to expand $SHELL
2960if eval "$MISSING --run true"; then
2961 am_missing_run="$MISSING --run "
2962else
2963 am_missing_run=
cd9a469c 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2965$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2966fi
2967
2968if test x"${install_sh}" != xset; then
2969 case $am_aux_dir in
2970 *\ * | *\ *)
2971 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2972 *)
2973 install_sh="\${SHELL} $am_aux_dir/install-sh"
2974 esac
2975fi
2976
2977# Installed binaries are usually stripped using `strip' when the user
2978# run `make install-strip'. However `strip' might not be the right
2979# tool to use in cross-compilation environments, therefore Automake
2980# will honor the `STRIP' environment variable to overrule this program.
2981if test "$cross_compiling" != no; then
2982 if test -n "$ac_tool_prefix"; then
2983 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2984set dummy ${ac_tool_prefix}strip; ac_word=$2
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986$as_echo_n "checking for $ac_word... " >&6; }
2987if test "${ac_cv_prog_STRIP+set}" = set; then :
2988 $as_echo_n "(cached) " >&6
2989else
2990 if test -n "$STRIP"; then
2991 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2992else
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3000 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004done
3005 done
3006IFS=$as_save_IFS
3007
3008fi
3009fi
3010STRIP=$ac_cv_prog_STRIP
3011if test -n "$STRIP"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3013$as_echo "$STRIP" >&6; }
3014else
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016$as_echo "no" >&6; }
3017fi
3018
3019
3020fi
3021if test -z "$ac_cv_prog_STRIP"; then
3022 ac_ct_STRIP=$STRIP
3023 # Extract the first word of "strip", so it can be a program name with args.
3024set dummy strip; ac_word=$2
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026$as_echo_n "checking for $ac_word... " >&6; }
3027if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3028 $as_echo_n "(cached) " >&6
3029else
3030 if test -n "$ac_ct_STRIP"; then
3031 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3032else
3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034for as_dir in $PATH
3035do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040 ac_cv_prog_ac_ct_STRIP="strip"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044done
3045 done
3046IFS=$as_save_IFS
3047
3048fi
3049fi
3050ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3051if test -n "$ac_ct_STRIP"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3053$as_echo "$ac_ct_STRIP" >&6; }
3054else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056$as_echo "no" >&6; }
3057fi
3058
3059 if test "x$ac_ct_STRIP" = x; then
3060 STRIP=":"
3061 else
3062 case $cross_compiling:$ac_tool_warned in
3063yes:)
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3066ac_tool_warned=yes ;;
3067esac
3068 STRIP=$ac_ct_STRIP
3069 fi
3070else
3071 STRIP="$ac_cv_prog_STRIP"
3072fi
3073
3074fi
3075INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3076
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3078$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3079if test -z "$MKDIR_P"; then
3080 if test "${ac_cv_path_mkdir+set}" = set; then :
3081 $as_echo_n "(cached) " >&6
3082else
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3085do
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_prog in mkdir gmkdir; do
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3091 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3092 'mkdir (GNU coreutils) '* | \
3093 'mkdir (coreutils) '* | \
3094 'mkdir (fileutils) '4.1*)
3095 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3096 break 3;;
3097 esac
3098 done
3099 done
1e8e9920 3100 done
cd9a469c 3101IFS=$as_save_IFS
3102
3103fi
3104
3105 if test "${ac_cv_path_mkdir+set}" = set; then
3106 MKDIR_P="$ac_cv_path_mkdir -p"
1e8e9920 3107 else
cd9a469c 3108 # As a last resort, use the slow shell script. Don't cache a
3109 # value for MKDIR_P within a source directory, because that will
3110 # break other packages using the cache if that directory is
3111 # removed, or if the value is a relative name.
3112 test -d ./--version && rmdir ./--version
3113 MKDIR_P="$ac_install_sh -d"
1e8e9920 3114 fi
3115fi
cd9a469c 3116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3117$as_echo "$MKDIR_P" >&6; }
3118
3119mkdir_p="$MKDIR_P"
3120case $mkdir_p in
3121 [\\/$]* | ?:[\\/]*) ;;
3122 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3123esac
1e8e9920 3124
3125for ac_prog in gawk mawk nawk awk
3126do
3127 # Extract the first word of "$ac_prog", so it can be a program name with args.
3128set dummy $ac_prog; ac_word=$2
cd9a469c 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130$as_echo_n "checking for $ac_word... " >&6; }
3131if test "${ac_cv_prog_AWK+set}" = set; then :
3132 $as_echo_n "(cached) " >&6
1e8e9920 3133else
3134 if test -n "$AWK"; then
3135 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3136else
3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
cd9a469c 3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3144 ac_cv_prog_AWK="$ac_prog"
cd9a469c 3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3146 break 2
3147 fi
3148done
cd9a469c 3149 done
3150IFS=$as_save_IFS
1e8e9920 3151
3152fi
3153fi
3154AWK=$ac_cv_prog_AWK
3155if test -n "$AWK"; then
cd9a469c 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3157$as_echo "$AWK" >&6; }
1e8e9920 3158else
cd9a469c 3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160$as_echo "no" >&6; }
1e8e9920 3161fi
3162
cd9a469c 3163
1e8e9920 3164 test -n "$AWK" && break
3165done
3166
cd9a469c 3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3168$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3169set x ${MAKE-make}
3170ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3171if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3172 $as_echo_n "(cached) " >&6
1e8e9920 3173else
3174 cat >conftest.make <<\_ACEOF
cd9a469c 3175SHELL = /bin/sh
1e8e9920 3176all:
cd9a469c 3177 @echo '@@@%%%=$(MAKE)=@@@%%%'
1e8e9920 3178_ACEOF
3179# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cd9a469c 3180case `${MAKE-make} -f conftest.make 2>/dev/null` in
3181 *@@@%%%=?*=@@@%%%*)
3182 eval ac_cv_prog_make_${ac_make}_set=yes;;
3183 *)
3184 eval ac_cv_prog_make_${ac_make}_set=no;;
3185esac
1e8e9920 3186rm -f conftest.make
3187fi
cd9a469c 3188if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3190$as_echo "yes" >&6; }
1e8e9920 3191 SET_MAKE=
3192else
cd9a469c 3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194$as_echo "no" >&6; }
1e8e9920 3195 SET_MAKE="MAKE=${MAKE-make}"
3196fi
3197
3198rm -rf .tst 2>/dev/null
3199mkdir .tst 2>/dev/null
3200if test -d .tst; then
3201 am__leading_dot=.
3202else
3203 am__leading_dot=_
3204fi
3205rmdir .tst 2>/dev/null
3206
cd9a469c 3207if test "`cd $srcdir && pwd`" != "`pwd`"; then
3208 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3209 # is not polluted with repeated "-I."
3210 am__isrc=' -I$(srcdir)'
3211 # test to see if srcdir already configured
3212 if test -f $srcdir/config.status; then
3213 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3214 fi
1e8e9920 3215fi
3216
3217# test whether we have cygpath
3218if test -z "$CYGPATH_W"; then
3219 if (cygpath --version) >/dev/null 2>/dev/null; then
3220 CYGPATH_W='cygpath -w'
3221 else
3222 CYGPATH_W=echo
3223 fi
3224fi
3225
3226
3227# Define the identity of the package.
3228 PACKAGE='libgomp'
3229 VERSION='1.0'
3230
3231
3232cat >>confdefs.h <<_ACEOF
3233#define PACKAGE "$PACKAGE"
3234_ACEOF
3235
3236
3237cat >>confdefs.h <<_ACEOF
3238#define VERSION "$VERSION"
3239_ACEOF
3240
3241# Some tools Automake needs.
3242
3243ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3244
3245
3246AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3247
3248
3249AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3250
3251
3252AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3253
3254
3255MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3256
cd9a469c 3257# We need awk for the "check" target. The system "awk" is bad on
3258# some platforms.
b5cfe980 3259# Always define AMTAR for backward compatibility. Yes, it's still used
3260# in the wild :-( We should find a proper way to deprecate it ...
3261AMTAR='$${TAR-tar}'
1e8e9920 3262
b5cfe980 3263am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
1e8e9920 3264
3265
3266
3267
3268
3269# Default to --enable-multilib
cd9a469c 3270# Check whether --enable-multilib was given.
3271if test "${enable_multilib+set}" = set; then :
3272 enableval=$enable_multilib; case "$enableval" in
1e8e9920 3273 yes) multilib=yes ;;
3274 no) multilib=no ;;
cd9a469c 3275 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
1e8e9920 3276 esac
3277else
3278 multilib=yes
cd9a469c 3279fi
3280
1e8e9920 3281
3282# We may get other options which we leave undocumented:
3283# --with-target-subdir, --with-multisrctop, --with-multisubdir
3284# See config-ml.in if you want the gory details.
3285
3286if test "$srcdir" = "."; then
3287 if test "$with_target_subdir" != "."; then
3288 multi_basedir="$srcdir/$with_multisrctop../.."
3289 else
3290 multi_basedir="$srcdir/$with_multisrctop.."
3291 fi
3292else
3293 multi_basedir="$srcdir/.."
3294fi
3295
3296
ff434425 3297# Even if the default multilib is not a cross compilation,
3298# it may be that some of the other multilibs are.
3299if test $cross_compiling = no && test $multilib = yes \
3300 && test "x${with_multisubdir}" != x ; then
3301 cross_compiling=maybe
3302fi
3303
cd9a469c 3304ac_config_commands="$ac_config_commands default-1"
1e8e9920 3305
3306
3307# Calculate toolexeclibdir
3308# Also toolexecdir, though it's only used in toolexeclibdir
3309case ${enable_version_specific_runtime_libs} in
3310 yes)
3311 # Need the gcc compiler version to know where to install libraries
3312 # and header files if --enable-version-specific-runtime-libs option
3313 # is selected.
3314 toolexecdir='$(libdir)/gcc/$(target_alias)'
3315 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3316 ;;
3317 no)
3318 if test -n "$with_cross_host" &&
3319 test x"$with_cross_host" != x"no"; then
3320 # Install a library built with a cross compiler in tooldir, not libdir.
3321 toolexecdir='$(exec_prefix)/$(target_alias)'
3322 toolexeclibdir='$(toolexecdir)/lib'
3323 else
3324 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3325 toolexeclibdir='$(libdir)'
3326 fi
3327 multi_os_directory=`$CC -print-multi-os-directory`
3328 case $multi_os_directory in
3329 .) ;; # Avoid trailing /.
3330 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3331 esac
3332 ;;
3333esac
3334
3335
3336
3337# Check the compiler.
3338# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3339# We must force CC to /not/ be precious variables; otherwise
3340# the wrong, non-multilib-adjusted value will be used in multilibs.
3341# As a side effect, we have to subst CFLAGS ourselves.
3342
3343
3344
3345ac_ext=c
3346ac_cpp='$CPP $CPPFLAGS'
3347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3352set dummy ${ac_tool_prefix}gcc; ac_word=$2
cd9a469c 3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354$as_echo_n "checking for $ac_word... " >&6; }
3355if test "${ac_cv_prog_CC+set}" = set; then :
3356 $as_echo_n "(cached) " >&6
1e8e9920 3357else
3358 if test -n "$CC"; then
3359 ac_cv_prog_CC="$CC" # Let the user override the test.
3360else
3361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362for as_dir in $PATH
3363do
3364 IFS=$as_save_IFS
3365 test -z "$as_dir" && as_dir=.
cd9a469c 3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3368 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 3369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3370 break 2
3371 fi
3372done
cd9a469c 3373 done
3374IFS=$as_save_IFS
1e8e9920 3375
3376fi
3377fi
3378CC=$ac_cv_prog_CC
3379if test -n "$CC"; then
cd9a469c 3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3381$as_echo "$CC" >&6; }
1e8e9920 3382else
cd9a469c 3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384$as_echo "no" >&6; }
1e8e9920 3385fi
3386
cd9a469c 3387
1e8e9920 3388fi
3389if test -z "$ac_cv_prog_CC"; then
3390 ac_ct_CC=$CC
3391 # Extract the first word of "gcc", so it can be a program name with args.
3392set dummy gcc; ac_word=$2
cd9a469c 3393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394$as_echo_n "checking for $ac_word... " >&6; }
3395if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3396 $as_echo_n "(cached) " >&6
1e8e9920 3397else
3398 if test -n "$ac_ct_CC"; then
3399 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3400else
3401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402for as_dir in $PATH
3403do
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
cd9a469c 3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3408 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3410 break 2
3411 fi
3412done
cd9a469c 3413 done
3414IFS=$as_save_IFS
1e8e9920 3415
3416fi
3417fi
3418ac_ct_CC=$ac_cv_prog_ac_ct_CC
3419if test -n "$ac_ct_CC"; then
cd9a469c 3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3421$as_echo "$ac_ct_CC" >&6; }
1e8e9920 3422else
cd9a469c 3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424$as_echo "no" >&6; }
1e8e9920 3425fi
3426
cd9a469c 3427 if test "x$ac_ct_CC" = x; then
3428 CC=""
3429 else
3430 case $cross_compiling:$ac_tool_warned in
3431yes:)
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3434ac_tool_warned=yes ;;
3435esac
3436 CC=$ac_ct_CC
3437 fi
1e8e9920 3438else
3439 CC="$ac_cv_prog_CC"
3440fi
3441
3442if test -z "$CC"; then
cd9a469c 3443 if test -n "$ac_tool_prefix"; then
3444 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1e8e9920 3445set dummy ${ac_tool_prefix}cc; ac_word=$2
cd9a469c 3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447$as_echo_n "checking for $ac_word... " >&6; }
3448if test "${ac_cv_prog_CC+set}" = set; then :
3449 $as_echo_n "(cached) " >&6
1e8e9920 3450else
3451 if test -n "$CC"; then
3452 ac_cv_prog_CC="$CC" # Let the user override the test.
3453else
3454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455for as_dir in $PATH
3456do
3457 IFS=$as_save_IFS
3458 test -z "$as_dir" && as_dir=.
cd9a469c 3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3461 ac_cv_prog_CC="${ac_tool_prefix}cc"
cd9a469c 3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3463 break 2
3464 fi
3465done
cd9a469c 3466 done
3467IFS=$as_save_IFS
1e8e9920 3468
3469fi
3470fi
3471CC=$ac_cv_prog_CC
3472if test -n "$CC"; then
cd9a469c 3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3474$as_echo "$CC" >&6; }
1e8e9920 3475else
cd9a469c 3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477$as_echo "no" >&6; }
1e8e9920 3478fi
3479
1e8e9920 3480
cd9a469c 3481 fi
1e8e9920 3482fi
3483if test -z "$CC"; then
3484 # Extract the first word of "cc", so it can be a program name with args.
3485set dummy cc; ac_word=$2
cd9a469c 3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487$as_echo_n "checking for $ac_word... " >&6; }
3488if test "${ac_cv_prog_CC+set}" = set; then :
3489 $as_echo_n "(cached) " >&6
1e8e9920 3490else
3491 if test -n "$CC"; then
3492 ac_cv_prog_CC="$CC" # Let the user override the test.
3493else
3494 ac_prog_rejected=no
3495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496for as_dir in $PATH
3497do
3498 IFS=$as_save_IFS
3499 test -z "$as_dir" && as_dir=.
cd9a469c 3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3502 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3503 ac_prog_rejected=yes
3504 continue
3505 fi
3506 ac_cv_prog_CC="cc"
cd9a469c 3507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3508 break 2
3509 fi
3510done
cd9a469c 3511 done
3512IFS=$as_save_IFS
1e8e9920 3513
3514if test $ac_prog_rejected = yes; then
3515 # We found a bogon in the path, so make sure we never use it.
3516 set dummy $ac_cv_prog_CC
3517 shift
3518 if test $# != 0; then
3519 # We chose a different compiler from the bogus one.
3520 # However, it has the same basename, so the bogon will be chosen
3521 # first if we set CC to just the basename; use the full file name.
3522 shift
3523 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3524 fi
3525fi
3526fi
3527fi
3528CC=$ac_cv_prog_CC
3529if test -n "$CC"; then
cd9a469c 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531$as_echo "$CC" >&6; }
1e8e9920 3532else
cd9a469c 3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534$as_echo "no" >&6; }
1e8e9920 3535fi
3536
cd9a469c 3537
1e8e9920 3538fi
3539if test -z "$CC"; then
3540 if test -n "$ac_tool_prefix"; then
cd9a469c 3541 for ac_prog in cl.exe
1e8e9920 3542 do
3543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3544set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546$as_echo_n "checking for $ac_word... " >&6; }
3547if test "${ac_cv_prog_CC+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
1e8e9920 3549else
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC="$CC" # Let the user override the test.
3552else
3553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554for as_dir in $PATH
3555do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
cd9a469c 3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3560 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cd9a469c 3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3562 break 2
3563 fi
3564done
cd9a469c 3565 done
3566IFS=$as_save_IFS
1e8e9920 3567
3568fi
3569fi
3570CC=$ac_cv_prog_CC
3571if test -n "$CC"; then
cd9a469c 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3573$as_echo "$CC" >&6; }
1e8e9920 3574else
cd9a469c 3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576$as_echo "no" >&6; }
1e8e9920 3577fi
3578
cd9a469c 3579
1e8e9920 3580 test -n "$CC" && break
3581 done
3582fi
3583if test -z "$CC"; then
3584 ac_ct_CC=$CC
cd9a469c 3585 for ac_prog in cl.exe
1e8e9920 3586do
3587 # Extract the first word of "$ac_prog", so it can be a program name with args.
3588set dummy $ac_prog; ac_word=$2
cd9a469c 3589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590$as_echo_n "checking for $ac_word... " >&6; }
3591if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
1e8e9920 3593else
3594 if test -n "$ac_ct_CC"; then
3595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3596else
3597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598for as_dir in $PATH
3599do
3600 IFS=$as_save_IFS
3601 test -z "$as_dir" && as_dir=.
cd9a469c 3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 3604 ac_cv_prog_ac_ct_CC="$ac_prog"
cd9a469c 3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 3606 break 2
3607 fi
3608done
cd9a469c 3609 done
3610IFS=$as_save_IFS
1e8e9920 3611
3612fi
3613fi
3614ac_ct_CC=$ac_cv_prog_ac_ct_CC
3615if test -n "$ac_ct_CC"; then
cd9a469c 3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3617$as_echo "$ac_ct_CC" >&6; }
1e8e9920 3618else
cd9a469c 3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620$as_echo "no" >&6; }
1e8e9920 3621fi
3622
cd9a469c 3623
1e8e9920 3624 test -n "$ac_ct_CC" && break
3625done
3626
cd9a469c 3627 if test "x$ac_ct_CC" = x; then
3628 CC=""
3629 else
3630 case $cross_compiling:$ac_tool_warned in
3631yes:)
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3634ac_tool_warned=yes ;;
3635esac
3636 CC=$ac_ct_CC
3637 fi
1e8e9920 3638fi
3639
3640fi
3641
3642
cd9a469c 3643test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3645as_fn_error "no acceptable C compiler found in \$PATH
3646See \`config.log' for more details." "$LINENO" 5; }
1e8e9920 3647
3648# Provide some information about the compiler.
cd9a469c 3649$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3650set X $ac_compile
3651ac_compiler=$2
3652for ac_option in --version -v -V -qversion; do
3653 { { ac_try="$ac_compiler $ac_option >&5"
3654case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657esac
3658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659$as_echo "$ac_try_echo"; } >&5
3660 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1e8e9920 3661 ac_status=$?
cd9a469c 3662 if test -s conftest.err; then
3663 sed '10a\
3664... rest of stderr output deleted ...
3665 10q' conftest.err >conftest.er1
3666 cat conftest.er1 >&5
3667 rm -f conftest.er1 conftest.err
3668 fi
3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670 test $ac_status = 0; }
3671done
1e8e9920 3672
cd9a469c 3673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1e8e9920 3674/* end confdefs.h. */
3675
3676int
3677main ()
3678{
3679
3680 ;
3681 return 0;
3682}
3683_ACEOF
3684ac_clean_files_save=$ac_clean_files
cd9a469c 3685ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1e8e9920 3686# Try to create an executable without -o first, disregard a.out.
3687# It will help us diagnose broken compilers, and finding out an intuition
3688# of exeext.
cd9a469c 3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3690$as_echo_n "checking for C compiler default output file name... " >&6; }
3691ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3692
3693# The possible output files:
3694ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3695
3696ac_rmfiles=
3697for ac_file in $ac_files
3698do
3699 case $ac_file in
3700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3701 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3702 esac
3703done
3704rm -f $ac_rmfiles
3705
3706if { { ac_try="$ac_link_default"
3707case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3710esac
3711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3712$as_echo "$ac_try_echo"; } >&5
3713 (eval "$ac_link_default") 2>&5
3714 ac_status=$?
3715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716 test $ac_status = 0; }; then :
3717 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3718# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3719# in a Makefile. We should not override ac_cv_exeext if it was cached,
3720# so that the user can short-circuit this test for compilers unknown to
3721# Autoconf.
3722for ac_file in $ac_files ''
1e8e9920 3723do
3724 test -f "$ac_file" || continue
3725 case $ac_file in
cd9a469c 3726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1e8e9920 3727 ;;
3728 [ab].out )
3729 # We found the default executable, but exeext='' is most
3730 # certainly right.
3731 break;;
3732 *.* )
cd9a469c 3733 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3734 then :; else
3735 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3736 fi
3737 # We set ac_cv_exeext here because the later test for it is not
3738 # safe: cross compilers may not add the suffix if given an `-o'
3739 # argument, so we may need to know it at that point already.
3740 # Even if this section looks crufty: it has the advantage of
3741 # actually working.
1e8e9920 3742 break;;
3743 * )
3744 break;;
3745 esac
3746done
cd9a469c 3747test "$ac_cv_exeext" = no && ac_cv_exeext=
3748
1e8e9920 3749else
cd9a469c 3750 ac_file=''
3751fi
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3753$as_echo "$ac_file" >&6; }
3754if test -z "$ac_file"; then :
3755 $as_echo "$as_me: failed program was:" >&5
1e8e9920 3756sed 's/^/| /' conftest.$ac_ext >&5
3757
cd9a469c 3758{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3760{ as_fn_set_status 77
3761as_fn_error "C compiler cannot create executables
3762See \`config.log' for more details." "$LINENO" 5; }; }
1e8e9920 3763fi
1e8e9920 3764ac_exeext=$ac_cv_exeext
1e8e9920 3765
cd9a469c 3766# Check that the compiler produces executables we can run. If not, either
1e8e9920 3767# the compiler is broken, or we cross compile.
cd9a469c 3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3769$as_echo_n "checking whether the C compiler works... " >&6; }
1e8e9920 3770# If not cross compiling, check that we can run a simple program.
3771if test "$cross_compiling" != yes; then
3772 if { ac_try='./$ac_file'
cd9a469c 3773 { { case "(($ac_try" in
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3776esac
3777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778$as_echo "$ac_try_echo"; } >&5
3779 (eval "$ac_try") 2>&5
1e8e9920 3780 ac_status=$?
cd9a469c 3781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782 test $ac_status = 0; }; }; then
1e8e9920 3783 cross_compiling=no
3784 else
3785 if test "$cross_compiling" = maybe; then
3786 cross_compiling=yes
3787 else
cd9a469c 3788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790as_fn_error "cannot run C compiled programs.
1e8e9920 3791If you meant to cross compile, use \`--host'.
cd9a469c 3792See \`config.log' for more details." "$LINENO" 5; }
1e8e9920 3793 fi
3794 fi
3795fi
cd9a469c 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3797$as_echo "yes" >&6; }
1e8e9920 3798
cd9a469c 3799rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1e8e9920 3800ac_clean_files=$ac_clean_files_save
cd9a469c 3801# Check that the compiler produces executables we can run. If not, either
1e8e9920 3802# the compiler is broken, or we cross compile.
cd9a469c 3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3804$as_echo_n "checking whether we are cross compiling... " >&6; }
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3806$as_echo "$cross_compiling" >&6; }
3807
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3809$as_echo_n "checking for suffix of executables... " >&6; }
3810if { { ac_try="$ac_link"
3811case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814esac
3815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816$as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_link") 2>&5
1e8e9920 3818 ac_status=$?
cd9a469c 3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }; then :
1e8e9920 3821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3822# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3823# work properly (i.e., refer to `conftest.exe'), while it won't with
3824# `rm'.
3825for ac_file in conftest.exe conftest conftest.*; do
3826 test -f "$ac_file" || continue
3827 case $ac_file in
cd9a469c 3828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1e8e9920 3829 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1e8e9920 3830 break;;
3831 * ) break;;
3832 esac
3833done
3834else
cd9a469c 3835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3836$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3837as_fn_error "cannot compute suffix of executables: cannot compile and link
3838See \`config.log' for more details." "$LINENO" 5; }
1e8e9920 3839fi
1e8e9920 3840rm -f conftest$ac_cv_exeext
cd9a469c 3841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3842$as_echo "$ac_cv_exeext" >&6; }
1e8e9920 3843
3844rm -f conftest.$ac_ext
3845EXEEXT=$ac_cv_exeext
3846ac_exeext=$EXEEXT
cd9a469c 3847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3848$as_echo_n "checking for suffix of object files... " >&6; }
3849if test "${ac_cv_objext+set}" = set; then :
3850 $as_echo_n "(cached) " >&6
1e8e9920 3851else
cd9a469c 3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1e8e9920 3853/* end confdefs.h. */
3854
3855int
3856main ()
3857{
3858
3859 ;
3860 return 0;
3861}
3862_ACEOF
3863rm -f conftest.o conftest.obj
cd9a469c 3864if { { ac_try="$ac_compile"
3865case "(($ac_try" in
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3868esac
3869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870$as_echo "$ac_try_echo"; } >&5
3871 (eval "$ac_compile") 2>&5
3872 ac_status=$?
3873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874 test $ac_status = 0; }; then :
3875 for ac_file in conftest.o conftest.obj conftest.*; do
3876 test -f "$ac_file" || continue;
1e8e9920 3877 case $ac_file in
cd9a469c 3878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1e8e9920 3879 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3880 break;;
3881 esac
3882done
3883else
cd9a469c 3884 $as_echo "$as_me: failed program was:" >&5
1e8e9920 3885sed 's/^/| /' conftest.$ac_ext >&5
3886
cd9a469c 3887{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3889as_fn_error "cannot compute suffix of object files: cannot compile
3890See \`config.log' for more details." "$LINENO" 5; }
1e8e9920 3891fi
1e8e9920 3892rm -f conftest.$ac_cv_objext conftest.$ac_ext
3893fi
cd9a469c 3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3895$as_echo "$ac_cv_objext" >&6; }
1e8e9920 3896OBJEXT=$ac_cv_objext
3897ac_objext=$OBJEXT
cd9a469c 3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3899$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3900if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3901 $as_echo_n "(cached) " >&6
1e8e9920 3902else
cd9a469c 3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1e8e9920 3904/* end confdefs.h. */
3905
3906int
3907main ()
3908{
3909#ifndef __GNUC__
3910 choke me
3911#endif
3912
3913 ;
3914 return 0;
3915}
3916_ACEOF
cd9a469c 3917if ac_fn_c_try_compile "$LINENO"; then :
1e8e9920 3918 ac_compiler_gnu=yes
3919else
cd9a469c 3920 ac_compiler_gnu=no
1e8e9920 3921fi
cd9a469c 3922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1e8e9920 3923ac_cv_c_compiler_gnu=$ac_compiler_gnu
3924
3925fi
cd9a469c 3926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3927$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3928if test $ac_compiler_gnu = yes; then
3929 GCC=yes
3930else
3931 GCC=
3932fi
1e8e9920 3933ac_test_CFLAGS=${CFLAGS+set}
3934ac_save_CFLAGS=$CFLAGS
cd9a469c 3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3936$as_echo_n "checking whether $CC accepts -g... " >&6; }
3937if test "${ac_cv_prog_cc_g+set}" = set; then :
3938 $as_echo_n "(cached) " >&6
3939else
3940 ac_save_c_werror_flag=$ac_c_werror_flag
3941 ac_c_werror_flag=yes
3942 ac_cv_prog_cc_g=no
3943 CFLAGS="-g"
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1e8e9920 3945/* end confdefs.h. */
3946
3947int
3948main ()
3949{
3950
3951 ;
3952 return 0;
3953}
3954_ACEOF
cd9a469c 3955if ac_fn_c_try_compile "$LINENO"; then :
1e8e9920 3956 ac_cv_prog_cc_g=yes
3957else
cd9a469c 3958 CFLAGS=""
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960/* end confdefs.h. */
3961
3962int
3963main ()
3964{
3965
3966 ;
3967 return 0;
3968}
3969_ACEOF
3970if ac_fn_c_try_compile "$LINENO"; then :
3971
3972else
3973 ac_c_werror_flag=$ac_save_c_werror_flag
3974 CFLAGS="-g"
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976/* end confdefs.h. */
3977
3978int
3979main ()
3980{
1e8e9920 3981
cd9a469c 3982 ;
3983 return 0;
3984}
3985_ACEOF
3986if ac_fn_c_try_compile "$LINENO"; then :
3987 ac_cv_prog_cc_g=yes
1e8e9920 3988fi
cd9a469c 3989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1e8e9920 3990fi
cd9a469c 3991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992fi
3993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 ac_c_werror_flag=$ac_save_c_werror_flag
3995fi
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3997$as_echo "$ac_cv_prog_cc_g" >&6; }
1e8e9920 3998if test "$ac_test_CFLAGS" = set; then
3999 CFLAGS=$ac_save_CFLAGS
4000elif test $ac_cv_prog_cc_g = yes; then
4001 if test "$GCC" = yes; then
4002 CFLAGS="-g -O2"
4003 else
4004 CFLAGS="-g"
4005 fi
4006else
4007 if test "$GCC" = yes; then
4008 CFLAGS="-O2"
4009 else
4010 CFLAGS=
4011 fi
4012fi
cd9a469c 4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4014$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4015if test "${ac_cv_prog_cc_c89+set}" = set; then :
4016 $as_echo_n "(cached) " >&6
1e8e9920 4017else
cd9a469c 4018 ac_cv_prog_cc_c89=no
1e8e9920 4019ac_save_CC=$CC
cd9a469c 4020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1e8e9920 4021/* end confdefs.h. */
4022#include <stdarg.h>
4023#include <stdio.h>
4024#include <sys/types.h>
4025#include <sys/stat.h>
4026/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4027struct buf { int x; };
4028FILE * (*rcsopen) (struct buf *, struct stat *, int);
4029static char *e (p, i)
4030 char **p;
4031 int i;
4032{
4033 return p[i];
4034}
4035static char *f (char * (*g) (char **, int), char **p, ...)
4036{
4037 char *s;
4038 va_list v;
4039 va_start (v,p);
4040 s = g (p, va_arg (v,int));
4041 va_end (v);
4042 return s;
4043}
4044
4045/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4046 function prototypes and stuff, but not '\xHH' hex character constants.
4047 These don't provoke an error unfortunately, instead are silently treated
cd9a469c 4048 as 'x'. The following induces an error, until -std is added to get
1e8e9920 4049 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4050 array size at least. It's necessary to write '\x00'==0 to get something
cd9a469c 4051 that's true only with -std. */
1e8e9920 4052int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4053
cd9a469c 4054/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4055 inside strings and character constants. */
4056#define FOO(x) 'x'
4057int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4058
1e8e9920 4059int test (int i, double x);
4060struct s1 {int (*f) (int a);};
4061struct s2 {int (*f) (double a);};
4062int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4063int argc;
4064char **argv;
4065int
4066main ()
4067{
4068return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4069 ;
4070 return 0;
4071}
4072_ACEOF
cd9a469c 4073for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4074 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1e8e9920 4075do
4076 CC="$ac_save_CC $ac_arg"
cd9a469c 4077 if ac_fn_c_try_compile "$LINENO"; then :
4078 ac_cv_prog_cc_c89=$ac_arg
1e8e9920 4079fi
cd9a469c 4080rm -f core conftest.err conftest.$ac_objext
4081 test "x$ac_cv_prog_cc_c89" != "xno" && break
1e8e9920 4082done
cd9a469c 4083rm -f conftest.$ac_ext
1e8e9920 4084CC=$ac_save_CC
4085
4086fi
cd9a469c 4087# AC_CACHE_VAL
4088case "x$ac_cv_prog_cc_c89" in
4089 x)
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4091$as_echo "none needed" >&6; } ;;
4092 xno)
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4094$as_echo "unsupported" >&6; } ;;
1e8e9920 4095 *)
cd9a469c 4096 CC="$CC $ac_cv_prog_cc_c89"
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4098$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1e8e9920 4099esac
cd9a469c 4100if test "x$ac_cv_prog_cc_c89" != xno; then :
1e8e9920 4101
1e8e9920 4102fi
4103
1e8e9920 4104ac_ext=c
4105ac_cpp='$CPP $CPPFLAGS'
4106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109DEPDIR="${am__leading_dot}deps"
4110
cd9a469c 4111ac_config_commands="$ac_config_commands depfiles"
1e8e9920 4112
4113
4114am_make=${MAKE-make}
4115cat > confinc << 'END'
4116am__doit:
cd9a469c 4117 @echo this is the am__doit target
1e8e9920 4118.PHONY: am__doit
4119END
4120# If we don't find an include directive, just comment out the code.
cd9a469c 4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4122$as_echo_n "checking for style of include used by $am_make... " >&6; }
1e8e9920 4123am__include="#"
4124am__quote=
4125_am_result=none
4126# First try GNU make style include.
4127echo "include confinc" > confmf
cd9a469c 4128# Ignore all kinds of additional output from `make'.
4129case `$am_make -s -f confmf 2> /dev/null` in #(
4130*the\ am__doit\ target*)
4131 am__include=include
4132 am__quote=
4133 _am_result=GNU
4134 ;;
4135esac
1e8e9920 4136# Now try BSD make style include.
4137if test "$am__include" = "#"; then
4138 echo '.include "confinc"' > confmf
cd9a469c 4139 case `$am_make -s -f confmf 2> /dev/null` in #(
4140 *the\ am__doit\ target*)
4141 am__include=.include
4142 am__quote="\""
4143 _am_result=BSD
4144 ;;
4145 esac
1e8e9920 4146fi
4147
4148
cd9a469c 4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4150$as_echo "$_am_result" >&6; }
1e8e9920 4151rm -f confinc confmf
4152
cd9a469c 4153# Check whether --enable-dependency-tracking was given.
4154if test "${enable_dependency_tracking+set}" = set; then :
4155 enableval=$enable_dependency_tracking;
4156fi
1e8e9920 4157
1e8e9920 4158if test "x$enable_dependency_tracking" != xno; then
4159 am_depcomp="$ac_aux_dir/depcomp"
4160 AMDEPBACKSLASH='\'
b5cfe980 4161 am__nodep='_no'
1e8e9920 4162fi
cd9a469c 4163 if test "x$enable_dependency_tracking" != xno; then
1e8e9920 4164 AMDEP_TRUE=
4165 AMDEP_FALSE='#'
4166else
4167 AMDEP_TRUE='#'
4168 AMDEP_FALSE=
4169fi
4170
4171
4172
1e8e9920 4173depcc="$CC" am_compiler_list=
4174
cd9a469c 4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4176$as_echo_n "checking dependency style of $depcc... " >&6; }
4177if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4178 $as_echo_n "(cached) " >&6
1e8e9920 4179else
4180 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4181 # We make a subdir and do the tests there. Otherwise we can end up
4182 # making bogus files that we don't know about and never remove. For
4183 # instance it was reported that on HP-UX the gcc test will end up
4184 # making a dummy file named `D' -- because `-MD' means `put the output
4185 # in D'.
b5cfe980 4186 rm -rf conftest.dir
1e8e9920 4187 mkdir conftest.dir
4188 # Copy depcomp to subdir because otherwise we won't find it if we're
4189 # using a relative directory.
4190 cp "$am_depcomp" conftest.dir
4191 cd conftest.dir
4192 # We will build objects and dependencies in a subdirectory because
4193 # it helps to detect inapplicable dependency modes. For instance
4194 # both Tru64's cc and ICC support -MD to output dependencies as a
4195 # side effect of compilation, but ICC will put the dependencies in
4196 # the current directory while Tru64 will put them in the object
4197 # directory.
4198 mkdir sub
4199
4200 am_cv_CC_dependencies_compiler_type=none
4201 if test "$am_compiler_list" = ""; then
4202 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4203 fi
cd9a469c 4204 am__universal=false
4205 case " $depcc " in #(
4206 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4207 esac
4208
1e8e9920 4209 for depmode in $am_compiler_list; do
4210 # Setup a source with many dependencies, because some compilers
4211 # like to wrap large dependency lists on column 80 (with \), and
4212 # we should not choose a depcomp mode which is confused by this.
4213 #
4214 # We need to recreate these files for each test, as the compiler may
4215 # overwrite some of them when testing with obscure command lines.
4216 # This happens at least with the AIX C compiler.
4217 : > sub/conftest.c
4218 for i in 1 2 3 4 5 6; do
4219 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4220 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4221 # Solaris 8's {/usr,}/bin/sh.
4222 touch sub/conftst$i.h
4223 done
4224 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4225
cd9a469c 4226 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4227 # mode. It turns out that the SunPro C++ compiler does not properly
4228 # handle `-M -o', and we need to detect this. Also, some Intel
4229 # versions had trouble with output in subdirs
4230 am__obj=sub/conftest.${OBJEXT-o}
4231 am__minus_obj="-o $am__obj"
1e8e9920 4232 case $depmode in
cd9a469c 4233 gcc)
4234 # This depmode causes a compiler race in universal mode.
4235 test "$am__universal" = false || continue
4236 ;;
1e8e9920 4237 nosideeffect)
4238 # after this tag, mechanisms are not by side-effect, so they'll
4239 # only be used when explicitly requested
4240 if test "x$enable_dependency_tracking" = xyes; then
4241 continue
4242 else
4243 break
4244 fi
4245 ;;
b5cfe980 4246 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cd9a469c 4247 # This compiler won't grok `-c -o', but also, the minuso test has
4248 # not run yet. These depmodes are late enough in the game, and
4249 # so weak that their functioning should not be impacted.
4250 am__obj=conftest.${OBJEXT-o}
4251 am__minus_obj=
4252 ;;
1e8e9920 4253 none) break ;;
4254 esac
1e8e9920 4255 if depmode=$depmode \
cd9a469c 4256 source=sub/conftest.c object=$am__obj \
1e8e9920 4257 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
cd9a469c 4258 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1e8e9920 4259 >/dev/null 2>conftest.err &&
cd9a469c 4260 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1e8e9920 4261 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
cd9a469c 4262 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1e8e9920 4263 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4264 # icc doesn't choke on unknown options, it will just issue warnings
4265 # or remarks (even with -Werror). So we grep stderr for any message
4266 # that says an option was ignored or not supported.
4267 # When given -MP, icc 7.0 and 7.1 complain thusly:
4268 # icc: Command line warning: ignoring option '-M'; no argument required
4269 # The diagnosis changed in icc 8.0:
4270 # icc: Command line remark: option '-MP' not supported
4271 if (grep 'ignoring option' conftest.err ||
4272 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4273 am_cv_CC_dependencies_compiler_type=$depmode
4274 break
4275 fi
4276 fi
4277 done
4278
4279 cd ..
4280 rm -rf conftest.dir
4281else
4282 am_cv_CC_dependencies_compiler_type=none
4283fi
4284
4285fi
cd9a469c 4286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4287$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1e8e9920 4288CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4289
cd9a469c 4290 if
1e8e9920 4291 test "x$enable_dependency_tracking" != xno \
4292 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4293 am__fastdepCC_TRUE=
4294 am__fastdepCC_FALSE='#'
4295else
4296 am__fastdepCC_TRUE='#'
4297 am__fastdepCC_FALSE=
4298fi
4299
4300
4301
4302
4303
4304
4305# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4306# in XCFLAGS. But we need them in CFLAGS during configury. So put them
4307# in both places for now and restore CFLAGS at the end of config.
4308save_CFLAGS="$CFLAGS"
4309
4310# Add -Wall -Werror if we are using GCC.
4311if test "x$GCC" = "xyes"; then
4312 XCFLAGS="$XCFLAGS -Wall -Werror"
4313fi
4314
4315# Find other programs we need.
4316if test -n "$ac_tool_prefix"; then
4317 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4318set dummy ${ac_tool_prefix}ar; ac_word=$2
cd9a469c 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320$as_echo_n "checking for $ac_word... " >&6; }
4321if test "${ac_cv_prog_AR+set}" = set; then :
4322 $as_echo_n "(cached) " >&6
1e8e9920 4323else
4324 if test -n "$AR"; then
4325 ac_cv_prog_AR="$AR" # Let the user override the test.
4326else
4327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328for as_dir in $PATH
4329do
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
cd9a469c 4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 4334 ac_cv_prog_AR="${ac_tool_prefix}ar"
cd9a469c 4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 4336 break 2
4337 fi
4338done
cd9a469c 4339 done
4340IFS=$as_save_IFS
1e8e9920 4341
4342fi
4343fi
4344AR=$ac_cv_prog_AR
4345if test -n "$AR"; then
cd9a469c 4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4347$as_echo "$AR" >&6; }
1e8e9920 4348else
cd9a469c 4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350$as_echo "no" >&6; }
1e8e9920 4351fi
4352
cd9a469c 4353
1e8e9920 4354fi
4355if test -z "$ac_cv_prog_AR"; then
4356 ac_ct_AR=$AR
4357 # Extract the first word of "ar", so it can be a program name with args.
4358set dummy ar; ac_word=$2
cd9a469c 4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360$as_echo_n "checking for $ac_word... " >&6; }
4361if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4362 $as_echo_n "(cached) " >&6
1e8e9920 4363else
4364 if test -n "$ac_ct_AR"; then
4365 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4366else
4367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368for as_dir in $PATH
4369do
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
cd9a469c 4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 4374 ac_cv_prog_ac_ct_AR="ar"
cd9a469c 4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 4376 break 2
4377 fi
4378done
cd9a469c 4379 done
4380IFS=$as_save_IFS
1e8e9920 4381
4382fi
4383fi
4384ac_ct_AR=$ac_cv_prog_ac_ct_AR
4385if test -n "$ac_ct_AR"; then
cd9a469c 4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4387$as_echo "$ac_ct_AR" >&6; }
1e8e9920 4388else
cd9a469c 4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390$as_echo "no" >&6; }
1e8e9920 4391fi
4392
cd9a469c 4393 if test "x$ac_ct_AR" = x; then
4394 AR=""
4395 else
4396 case $cross_compiling:$ac_tool_warned in
4397yes:)
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4400ac_tool_warned=yes ;;
4401esac
4402 AR=$ac_ct_AR
4403 fi
1e8e9920 4404else
4405 AR="$ac_cv_prog_AR"
4406fi
4407
4408if test -n "$ac_tool_prefix"; then
4409 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4410set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cd9a469c 4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4412$as_echo_n "checking for $ac_word... " >&6; }
4413if test "${ac_cv_prog_RANLIB+set}" = set; then :
4414 $as_echo_n "(cached) " >&6
1e8e9920 4415else
4416 if test -n "$RANLIB"; then
4417 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4418else
4419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420for as_dir in $PATH
4421do
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
cd9a469c 4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 4426 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cd9a469c 4427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 4428 break 2
4429 fi
4430done
cd9a469c 4431 done
4432IFS=$as_save_IFS
1e8e9920 4433
4434fi
4435fi
4436RANLIB=$ac_cv_prog_RANLIB
4437if test -n "$RANLIB"; then
cd9a469c 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4439$as_echo "$RANLIB" >&6; }
1e8e9920 4440else
cd9a469c 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442$as_echo "no" >&6; }
1e8e9920 4443fi
4444
cd9a469c 4445
1e8e9920 4446fi
4447if test -z "$ac_cv_prog_RANLIB"; then
4448 ac_ct_RANLIB=$RANLIB
4449 # Extract the first word of "ranlib", so it can be a program name with args.
4450set dummy ranlib; ac_word=$2
cd9a469c 4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452$as_echo_n "checking for $ac_word... " >&6; }
4453if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4454 $as_echo_n "(cached) " >&6
1e8e9920 4455else
4456 if test -n "$ac_ct_RANLIB"; then
4457 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4458else
4459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460for as_dir in $PATH
4461do
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
cd9a469c 4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 4466 ac_cv_prog_ac_ct_RANLIB="ranlib"
cd9a469c 4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 4468 break 2
4469 fi
4470done
cd9a469c 4471 done
4472IFS=$as_save_IFS
1e8e9920 4473
1e8e9920 4474fi
4475fi
4476ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4477if test -n "$ac_ct_RANLIB"; then
cd9a469c 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4479$as_echo "$ac_ct_RANLIB" >&6; }
1e8e9920 4480else
cd9a469c 4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482$as_echo "no" >&6; }
1e8e9920 4483fi
4484
cd9a469c 4485 if test "x$ac_ct_RANLIB" = x; then
4486 RANLIB="ranlib-not-found-in-path-error"
4487 else
4488 case $cross_compiling:$ac_tool_warned in
4489yes:)
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4492ac_tool_warned=yes ;;
4493esac
4494 RANLIB=$ac_ct_RANLIB
4495 fi
1e8e9920 4496else
4497 RANLIB="$ac_cv_prog_RANLIB"
4498fi
4499
4500# Extract the first word of "perl", so it can be a program name with args.
4501set dummy perl; ac_word=$2
cd9a469c 4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503$as_echo_n "checking for $ac_word... " >&6; }
4504if test "${ac_cv_path_PERL+set}" = set; then :
4505 $as_echo_n "(cached) " >&6
1e8e9920 4506else
4507 case $PERL in
4508 [\\/]* | ?:[\\/]*)
4509 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4510 ;;
4511 *)
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513for as_dir in $PATH
4514do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
cd9a469c 4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 4519 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 4520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 4521 break 2
4522 fi
4523done
cd9a469c 4524 done
4525IFS=$as_save_IFS
1e8e9920 4526
4527 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4528 ;;
4529esac
4530fi
4531PERL=$ac_cv_path_PERL
1e8e9920 4532if test -n "$PERL"; then
cd9a469c 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4534$as_echo "$PERL" >&6; }
1e8e9920 4535else
cd9a469c 4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537$as_echo "no" >&6; }
1e8e9920 4538fi
4539
cd9a469c 4540
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4542$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4543set x ${MAKE-make}
4544ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4545if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4546 $as_echo_n "(cached) " >&6
1e8e9920 4547else
4548 cat >conftest.make <<\_ACEOF
cd9a469c 4549SHELL = /bin/sh
1e8e9920 4550all:
cd9a469c 4551 @echo '@@@%%%=$(MAKE)=@@@%%%'
1e8e9920 4552_ACEOF
4553# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cd9a469c 4554case `${MAKE-make} -f conftest.make 2>/dev/null` in
4555 *@@@%%%=?*=@@@%%%*)
4556 eval ac_cv_prog_make_${ac_make}_set=yes;;
4557 *)
4558 eval ac_cv_prog_make_${ac_make}_set=no;;
4559esac
1e8e9920 4560rm -f conftest.make
4561fi
cd9a469c 4562if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4564$as_echo "yes" >&6; }
1e8e9920 4565 SET_MAKE=
4566else
cd9a469c 4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568$as_echo "no" >&6; }
1e8e9920 4569 SET_MAKE="MAKE=${MAKE-make}"
4570fi
4571
1e8e9920 4572
4573
439d698f 4574# See if makeinfo has been installed and is modern enough
4575# that we can use it.
4576
4577 # Extract the first word of "makeinfo", so it can be a program name with args.
4578set dummy makeinfo; ac_word=$2
cd9a469c 4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4580$as_echo_n "checking for $ac_word... " >&6; }
4581if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4582 $as_echo_n "(cached) " >&6
439d698f 4583else
4584 if test -n "$MAKEINFO"; then
4585 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4586else
4587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588for as_dir in $PATH
4589do
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
cd9a469c 4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
439d698f 4594 ac_cv_prog_MAKEINFO="makeinfo"
cd9a469c 4595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
439d698f 4596 break 2
4597 fi
4598done
cd9a469c 4599 done
4600IFS=$as_save_IFS
439d698f 4601
4602fi
4603fi
4604MAKEINFO=$ac_cv_prog_MAKEINFO
4605if test -n "$MAKEINFO"; then
cd9a469c 4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4607$as_echo "$MAKEINFO" >&6; }
439d698f 4608else
cd9a469c 4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4610$as_echo "no" >&6; }
439d698f 4611fi
4612
cd9a469c 4613
439d698f 4614 if test -n "$MAKEINFO"; then
4615 # Found it, now check the version.
cd9a469c 4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4617$as_echo_n "checking for modern makeinfo... " >&6; }
4618if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
439d698f 4620else
4621 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4622 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4623
4624 case $ac_prog_version in
4625 '') gcc_cv_prog_makeinfo_modern=no;;
41b2fb5d 4626 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
439d698f 4627 *) gcc_cv_prog_makeinfo_modern=no;;
4628 esac
4629
4630fi
cd9a469c 4631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4632$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
439d698f 4633 else
4634 gcc_cv_prog_makeinfo_modern=no
4635 fi
542f9784 4636 if test $gcc_cv_prog_makeinfo_modern = no; then
4637 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4638 fi
439d698f 4639
cd9a469c 4640 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
439d698f 4641 BUILD_INFO_TRUE=
4642 BUILD_INFO_FALSE='#'
4643else
4644 BUILD_INFO_TRUE='#'
4645 BUILD_INFO_FALSE=
4646fi
4647
4648
4649
1e8e9920 4650# Configure libtool
6d873a38 4651case `pwd` in
4652 *\ * | *\ *)
cd9a469c 4653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4654$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6d873a38 4655esac
542f9784 4656
4657
542f9784 4658
e6408286 4659macro_version='2.2.7a'
4660macro_revision='1.3134'
542f9784 4661
4662
4663
4664
4665
4666
1e8e9920 4667
542f9784 4668
4669
4670
4671
4672
4673
6d873a38 4674ltmain="$ac_aux_dir/ltmain.sh"
542f9784 4675
e6408286 4676# Backslashify metacharacters that are still active within
4677# double-quoted strings.
4678sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4679
4680# Same as above, but do not quote variable references.
4681double_quote_subst='s/\(["`\\]\)/\\\1/g'
4682
4683# Sed substitution to delay expansion of an escaped shell variable in a
4684# double_quote_subst'ed string.
4685delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4686
4687# Sed substitution to delay expansion of an escaped single quote.
4688delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4689
4690# Sed substitution to avoid accidental globbing in evaled expressions
4691no_glob_subst='s/\*/\\\*/g'
4692
4693ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4694ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4695ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4696
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4698$as_echo_n "checking how to print strings... " >&6; }
4699# Test print first, because it will be a builtin if present.
4700if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4701 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4702 ECHO='print -r --'
4703elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4704 ECHO='printf %s\n'
4705else
4706 # Use this function as a fallback that always works.
4707 func_fallback_echo ()
4708 {
4709 eval 'cat <<_LTECHO_EOF
4710$1
4711_LTECHO_EOF'
4712 }
4713 ECHO='func_fallback_echo'
4714fi
4715
4716# func_echo_all arg...
4717# Invoke $ECHO with all args, space-separated.
4718func_echo_all ()
4719{
4720 $ECHO ""
4721}
4722
4723case "$ECHO" in
4724 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4725$as_echo "printf" >&6; } ;;
4726 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4727$as_echo "print -r" >&6; } ;;
4728 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4729$as_echo "cat" >&6; } ;;
4730esac
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
cd9a469c 4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4746$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4747if test "${ac_cv_path_SED+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
4749else
4750 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4751 for ac_i in 1 2 3 4 5 6 7; do
4752 ac_script="$ac_script$as_nl$ac_script"
4753 done
4754 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4755 { ac_script=; unset ac_script;}
4756 if test -z "$SED"; then
4757 ac_path_SED_found=false
4758 # Loop through the user's path and test for each of PROGNAME-LIST
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
542f9784 4760for as_dir in $PATH
4761do
4762 IFS=$as_save_IFS
4763 test -z "$as_dir" && as_dir=.
cd9a469c 4764 for ac_prog in sed gsed; do
542f9784 4765 for ac_exec_ext in '' $ac_executable_extensions; do
cd9a469c 4766 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4767 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4768# Check for GNU ac_path_SED and select it if it is found.
4769 # Check for GNU $ac_path_SED
4770case `"$ac_path_SED" --version 2>&1` in
4771*GNU*)
4772 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4773*)
4774 ac_count=0
4775 $as_echo_n 0123456789 >"conftest.in"
4776 while :
4777 do
4778 cat "conftest.in" "conftest.in" >"conftest.tmp"
4779 mv "conftest.tmp" "conftest.in"
4780 cp "conftest.in" "conftest.nl"
4781 $as_echo '' >> "conftest.nl"
4782 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4783 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4784 as_fn_arith $ac_count + 1 && ac_count=$as_val
4785 if test $ac_count -gt ${ac_path_SED_max-0}; then
4786 # Best one so far, save it but keep looking for a better one
4787 ac_cv_path_SED="$ac_path_SED"
4788 ac_path_SED_max=$ac_count
4789 fi
4790 # 10*(2^10) chars as input seems more than enough
4791 test $ac_count -gt 10 && break
4792 done
4793 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4794esac
4795
4796 $ac_path_SED_found && break 3
542f9784 4797 done
4798 done
cd9a469c 4799 done
542f9784 4800IFS=$as_save_IFS
cd9a469c 4801 if test -z "$ac_cv_path_SED"; then
4802 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
542f9784 4803 fi
cd9a469c 4804else
4805 ac_cv_path_SED=$SED
542f9784 4806fi
4807
cd9a469c 4808fi
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4810$as_echo "$ac_cv_path_SED" >&6; }
4811 SED="$ac_cv_path_SED"
4812 rm -f conftest.sed
542f9784 4813
4814test -z "$SED" && SED=sed
4815Xsed="$SED -e 1s/^X//"
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
cd9a469c 4827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4828$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4829if test "${ac_cv_path_GREP+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4831else
4832 if test -z "$GREP"; then
4833 ac_path_GREP_found=false
4834 # Loop through the user's path and test for each of PROGNAME-LIST
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4837do
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_prog in grep ggrep; do
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4843 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4844# Check for GNU ac_path_GREP and select it if it is found.
4845 # Check for GNU $ac_path_GREP
4846case `"$ac_path_GREP" --version 2>&1` in
4847*GNU*)
4848 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4849*)
4850 ac_count=0
4851 $as_echo_n 0123456789 >"conftest.in"
4852 while :
4853 do
4854 cat "conftest.in" "conftest.in" >"conftest.tmp"
4855 mv "conftest.tmp" "conftest.in"
4856 cp "conftest.in" "conftest.nl"
4857 $as_echo 'GREP' >> "conftest.nl"
4858 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4859 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4860 as_fn_arith $ac_count + 1 && ac_count=$as_val
4861 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4862 # Best one so far, save it but keep looking for a better one
4863 ac_cv_path_GREP="$ac_path_GREP"
4864 ac_path_GREP_max=$ac_count
4865 fi
4866 # 10*(2^10) chars as input seems more than enough
4867 test $ac_count -gt 10 && break
4868 done
4869 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4870esac
4871
4872 $ac_path_GREP_found && break 3
4873 done
4874 done
4875 done
4876IFS=$as_save_IFS
4877 if test -z "$ac_cv_path_GREP"; then
4878 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4879 fi
4880else
4881 ac_cv_path_GREP=$GREP
4882fi
4883
4884fi
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4886$as_echo "$ac_cv_path_GREP" >&6; }
4887 GREP="$ac_cv_path_GREP"
4888
4889
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4891$as_echo_n "checking for egrep... " >&6; }
4892if test "${ac_cv_path_EGREP+set}" = set; then :
4893 $as_echo_n "(cached) " >&6
542f9784 4894else
cd9a469c 4895 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4896 then ac_cv_path_EGREP="$GREP -E"
4897 else
4898 if test -z "$EGREP"; then
4899 ac_path_EGREP_found=false
4900 # Loop through the user's path and test for each of PROGNAME-LIST
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4903do
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
4906 for ac_prog in egrep; do
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4909 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4910# Check for GNU ac_path_EGREP and select it if it is found.
4911 # Check for GNU $ac_path_EGREP
4912case `"$ac_path_EGREP" --version 2>&1` in
4913*GNU*)
4914 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4915*)
4916 ac_count=0
4917 $as_echo_n 0123456789 >"conftest.in"
4918 while :
4919 do
4920 cat "conftest.in" "conftest.in" >"conftest.tmp"
4921 mv "conftest.tmp" "conftest.in"
4922 cp "conftest.in" "conftest.nl"
4923 $as_echo 'EGREP' >> "conftest.nl"
4924 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4925 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4926 as_fn_arith $ac_count + 1 && ac_count=$as_val
4927 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4928 # Best one so far, save it but keep looking for a better one
4929 ac_cv_path_EGREP="$ac_path_EGREP"
4930 ac_path_EGREP_max=$ac_count
542f9784 4931 fi
cd9a469c 4932 # 10*(2^10) chars as input seems more than enough
4933 test $ac_count -gt 10 && break
4934 done
4935 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4936esac
4937
4938 $ac_path_EGREP_found && break 3
4939 done
4940 done
4941 done
4942IFS=$as_save_IFS
4943 if test -z "$ac_cv_path_EGREP"; then
4944 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4945 fi
4946else
4947 ac_cv_path_EGREP=$EGREP
4948fi
4949
4950 fi
542f9784 4951fi
cd9a469c 4952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4953$as_echo "$ac_cv_path_EGREP" >&6; }
4954 EGREP="$ac_cv_path_EGREP"
542f9784 4955
4956
cd9a469c 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4958$as_echo_n "checking for fgrep... " >&6; }
4959if test "${ac_cv_path_FGREP+set}" = set; then :
4960 $as_echo_n "(cached) " >&6
542f9784 4961else
cd9a469c 4962 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4963 then ac_cv_path_FGREP="$GREP -F"
4964 else
4965 if test -z "$FGREP"; then
4966 ac_path_FGREP_found=false
4967 # Loop through the user's path and test for each of PROGNAME-LIST
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4970do
4971 IFS=$as_save_IFS
4972 test -z "$as_dir" && as_dir=.
4973 for ac_prog in fgrep; do
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4976 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4977# Check for GNU ac_path_FGREP and select it if it is found.
4978 # Check for GNU $ac_path_FGREP
4979case `"$ac_path_FGREP" --version 2>&1` in
4980*GNU*)
4981 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4982*)
4983 ac_count=0
4984 $as_echo_n 0123456789 >"conftest.in"
4985 while :
4986 do
4987 cat "conftest.in" "conftest.in" >"conftest.tmp"
4988 mv "conftest.tmp" "conftest.in"
4989 cp "conftest.in" "conftest.nl"
4990 $as_echo 'FGREP' >> "conftest.nl"
4991 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4992 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4993 as_fn_arith $ac_count + 1 && ac_count=$as_val
4994 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4995 # Best one so far, save it but keep looking for a better one
4996 ac_cv_path_FGREP="$ac_path_FGREP"
4997 ac_path_FGREP_max=$ac_count
542f9784 4998 fi
cd9a469c 4999 # 10*(2^10) chars as input seems more than enough
5000 test $ac_count -gt 10 && break
5001 done
5002 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5003esac
5004
5005 $ac_path_FGREP_found && break 3
5006 done
5007 done
5008 done
5009IFS=$as_save_IFS
5010 if test -z "$ac_cv_path_FGREP"; then
5011 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5012 fi
5013else
5014 ac_cv_path_FGREP=$FGREP
5015fi
5016
5017 fi
542f9784 5018fi
cd9a469c 5019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5020$as_echo "$ac_cv_path_FGREP" >&6; }
5021 FGREP="$ac_cv_path_FGREP"
542f9784 5022
5023
5024test -z "$GREP" && GREP=grep
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
cd9a469c 5044# Check whether --with-gnu-ld was given.
5045if test "${with_gnu_ld+set}" = set; then :
5046 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1e8e9920 5047else
5048 with_gnu_ld=no
cd9a469c 5049fi
5050
1e8e9920 5051ac_prog=ld
5052if test "$GCC" = yes; then
5053 # Check if gcc -print-prog-name=ld gives a path.
cd9a469c 5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5055$as_echo_n "checking for ld used by $CC... " >&6; }
1e8e9920 5056 case $host in
5057 *-*-mingw*)
5058 # gcc leaves a trailing carriage return which upsets mingw
5059 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5060 *)
5061 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5062 esac
5063 case $ac_prog in
5064 # Accept absolute paths.
542f9784 5065 [\\/]* | ?:[\\/]*)
1e8e9920 5066 re_direlt='/[^/][^/]*/\.\./'
542f9784 5067 # Canonicalize the pathname of ld
5068 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5069 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5070 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1e8e9920 5071 done
5072 test -z "$LD" && LD="$ac_prog"
5073 ;;
5074 "")
5075 # If it fails, then pretend we aren't using GCC.
5076 ac_prog=ld
5077 ;;
5078 *)
5079 # If it is relative, then search for the first ld in PATH.
5080 with_gnu_ld=unknown
5081 ;;
5082 esac
5083elif test "$with_gnu_ld" = yes; then
cd9a469c 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5085$as_echo_n "checking for GNU ld... " >&6; }
1e8e9920 5086else
cd9a469c 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5088$as_echo_n "checking for non-GNU ld... " >&6; }
1e8e9920 5089fi
cd9a469c 5090if test "${lt_cv_path_LD+set}" = set; then :
5091 $as_echo_n "(cached) " >&6
1e8e9920 5092else
5093 if test -z "$LD"; then
542f9784 5094 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1e8e9920 5095 for ac_dir in $PATH; do
542f9784 5096 IFS="$lt_save_ifs"
1e8e9920 5097 test -z "$ac_dir" && ac_dir=.
5098 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5099 lt_cv_path_LD="$ac_dir/$ac_prog"
5100 # Check to see if the program is GNU ld. I'd rather use --version,
542f9784 5101 # but apparently some variants of GNU ld only accept -v.
1e8e9920 5102 # Break only if it was the GNU/non-GNU ld that we prefer.
542f9784 5103 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5104 *GNU* | *'with BFD'*)
1e8e9920 5105 test "$with_gnu_ld" != no && break
542f9784 5106 ;;
5107 *)
1e8e9920 5108 test "$with_gnu_ld" != yes && break
542f9784 5109 ;;
5110 esac
1e8e9920 5111 fi
5112 done
542f9784 5113 IFS="$lt_save_ifs"
1e8e9920 5114else
5115 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5116fi
5117fi
5118
5119LD="$lt_cv_path_LD"
5120if test -n "$LD"; then
cd9a469c 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5122$as_echo "$LD" >&6; }
1e8e9920 5123else
cd9a469c 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125$as_echo "no" >&6; }
1e8e9920 5126fi
cd9a469c 5127test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5129$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5130if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5131 $as_echo_n "(cached) " >&6
1e8e9920 5132else
542f9784 5133 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5134case `$LD -v 2>&1 </dev/null` in
5135*GNU* | *'with BFD'*)
1e8e9920 5136 lt_cv_prog_gnu_ld=yes
542f9784 5137 ;;
5138*)
1e8e9920 5139 lt_cv_prog_gnu_ld=no
542f9784 5140 ;;
5141esac
1e8e9920 5142fi
cd9a469c 5143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5144$as_echo "$lt_cv_prog_gnu_ld" >&6; }
1e8e9920 5145with_gnu_ld=$lt_cv_prog_gnu_ld
5146
5147
1e8e9920 5148
542f9784 5149
5150
5151
5152
5153
5154
cd9a469c 5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5156$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5157if test "${lt_cv_path_NM+set}" = set; then :
5158 $as_echo_n "(cached) " >&6
1e8e9920 5159else
5160 if test -n "$NM"; then
5161 # Let the user override the test.
5162 lt_cv_path_NM="$NM"
5163else
542f9784 5164 lt_nm_to_check="${ac_tool_prefix}nm"
5165 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5166 lt_nm_to_check="$lt_nm_to_check nm"
5167 fi
5168 for lt_tmp_nm in $lt_nm_to_check; do
5169 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5170 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5171 IFS="$lt_save_ifs"
5172 test -z "$ac_dir" && ac_dir=.
5173 tmp_nm="$ac_dir/$lt_tmp_nm"
5174 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5175 # Check to see if the nm accepts a BSD-compat flag.
5176 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5177 # nm: unknown option "B" ignored
5178 # Tru64's nm complains that /dev/null is an invalid object file
5179 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5180 */dev/null* | *'Invalid file or object type'*)
5181 lt_cv_path_NM="$tmp_nm -B"
5182 break
5183 ;;
5184 *)
5185 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5186 */dev/null*)
5187 lt_cv_path_NM="$tmp_nm -p"
5188 break
5189 ;;
5190 *)
5191 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5192 continue # so that we can try to find one that supports BSD flags
5193 ;;
5194 esac
5195 ;;
5196 esac
5197 fi
5198 done
5199 IFS="$lt_save_ifs"
5200 done
5201 : ${lt_cv_path_NM=no}
5202fi
5203fi
cd9a469c 5204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5205$as_echo "$lt_cv_path_NM" >&6; }
542f9784 5206if test "$lt_cv_path_NM" != "no"; then
5207 NM="$lt_cv_path_NM"
5208else
5209 # Didn't find any BSD compatible name lister, look for dumpbin.
e6408286 5210 if test -n "$DUMPBIN"; then :
5211 # Let the user override the test.
5212 else
5213 if test -n "$ac_tool_prefix"; then
5214 for ac_prog in dumpbin "link -dump"
542f9784 5215 do
5216 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5217set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219$as_echo_n "checking for $ac_word... " >&6; }
5220if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5221 $as_echo_n "(cached) " >&6
542f9784 5222else
5223 if test -n "$DUMPBIN"; then
5224 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5225else
5226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227for as_dir in $PATH
5228do
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
cd9a469c 5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 5233 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cd9a469c 5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 5235 break 2
5236 fi
5237done
cd9a469c 5238 done
5239IFS=$as_save_IFS
542f9784 5240
5241fi
5242fi
5243DUMPBIN=$ac_cv_prog_DUMPBIN
5244if test -n "$DUMPBIN"; then
cd9a469c 5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5246$as_echo "$DUMPBIN" >&6; }
542f9784 5247else
cd9a469c 5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249$as_echo "no" >&6; }
542f9784 5250fi
5251
cd9a469c 5252
542f9784 5253 test -n "$DUMPBIN" && break
5254 done
5255fi
5256if test -z "$DUMPBIN"; then
5257 ac_ct_DUMPBIN=$DUMPBIN
e6408286 5258 for ac_prog in dumpbin "link -dump"
542f9784 5259do
5260 # Extract the first word of "$ac_prog", so it can be a program name with args.
5261set dummy $ac_prog; ac_word=$2
cd9a469c 5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263$as_echo_n "checking for $ac_word... " >&6; }
5264if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5265 $as_echo_n "(cached) " >&6
542f9784 5266else
5267 if test -n "$ac_ct_DUMPBIN"; then
5268 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5269else
5270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH
5272do
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
cd9a469c 5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 5277 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cd9a469c 5278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 5279 break 2
5280 fi
5281done
cd9a469c 5282 done
5283IFS=$as_save_IFS
542f9784 5284
5285fi
1e8e9920 5286fi
542f9784 5287ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5288if test -n "$ac_ct_DUMPBIN"; then
cd9a469c 5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5290$as_echo "$ac_ct_DUMPBIN" >&6; }
542f9784 5291else
cd9a469c 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293$as_echo "no" >&6; }
542f9784 5294fi
5295
cd9a469c 5296
542f9784 5297 test -n "$ac_ct_DUMPBIN" && break
5298done
542f9784 5299
cd9a469c 5300 if test "x$ac_ct_DUMPBIN" = x; then
5301 DUMPBIN=":"
5302 else
5303 case $cross_compiling:$ac_tool_warned in
5304yes:)
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5307ac_tool_warned=yes ;;
5308esac
5309 DUMPBIN=$ac_ct_DUMPBIN
5310 fi
542f9784 5311fi
5312
e6408286 5313 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5314 *COFF*)
5315 DUMPBIN="$DUMPBIN -symbols"
5316 ;;
5317 *)
5318 DUMPBIN=:
5319 ;;
5320 esac
5321 fi
542f9784 5322
5323 if test "$DUMPBIN" != ":"; then
5324 NM="$DUMPBIN"
5325 fi
1e8e9920 5326fi
542f9784 5327test -z "$NM" && NM=nm
5328
5329
5330
5331
5332
1e8e9920 5333
cd9a469c 5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5335$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5336if test "${lt_cv_nm_interface+set}" = set; then :
5337 $as_echo_n "(cached) " >&6
542f9784 5338else
5339 lt_cv_nm_interface="BSD nm"
5340 echo "int some_variable = 0;" > conftest.$ac_ext
e6408286 5341 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
542f9784 5342 (eval "$ac_compile" 2>conftest.err)
5343 cat conftest.err >&5
e6408286 5344 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
542f9784 5345 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5346 cat conftest.err >&5
e6408286 5347 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
542f9784 5348 cat conftest.out >&5
5349 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5350 lt_cv_nm_interface="MS dumpbin"
5351 fi
5352 rm -f conftest*
5353fi
cd9a469c 5354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5355$as_echo "$lt_cv_nm_interface" >&6; }
1e8e9920 5356
cd9a469c 5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5358$as_echo_n "checking whether ln -s works... " >&6; }
1e8e9920 5359LN_S=$as_ln_s
5360if test "$LN_S" = "ln -s"; then
cd9a469c 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5362$as_echo "yes" >&6; }
1e8e9920 5363else
cd9a469c 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5365$as_echo "no, using $LN_S" >&6; }
1e8e9920 5366fi
5367
542f9784 5368# find the maximum length of command line arguments
cd9a469c 5369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5370$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5371if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5372 $as_echo_n "(cached) " >&6
542f9784 5373else
5374 i=0
5375 teststring="ABCD"
5376
5377 case $build_os in
5378 msdosdjgpp*)
5379 # On DJGPP, this test can blow up pretty badly due to problems in libc
5380 # (any single argument exceeding 2000 bytes causes a buffer overrun
5381 # during glob expansion). Even if it were fixed, the result of this
5382 # check would be larger than it should be.
5383 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5384 ;;
5385
5386 gnu*)
5387 # Under GNU Hurd, this test is not required because there is
5388 # no limit to the length of command line arguments.
5389 # Libtool will interpret -1 as no limit whatsoever
5390 lt_cv_sys_max_cmd_len=-1;
5391 ;;
5392
6d873a38 5393 cygwin* | mingw* | cegcc*)
542f9784 5394 # On Win9x/ME, this test blows up -- it succeeds, but takes
5395 # about 5 minutes as the teststring grows exponentially.
5396 # Worse, since 9x/ME are not pre-emptively multitasking,
5397 # you end up with a "frozen" computer, even though with patience
5398 # the test eventually succeeds (with a max line length of 256k).
5399 # Instead, let's just punt: use the minimum linelength reported by
5400 # all of the supported platforms: 8192 (on NT/2K/XP).
5401 lt_cv_sys_max_cmd_len=8192;
5402 ;;
5403
e6408286 5404 mint*)
5405 # On MiNT this can take a long time and run out of memory.
5406 lt_cv_sys_max_cmd_len=8192;
5407 ;;
5408
542f9784 5409 amigaos*)
5410 # On AmigaOS with pdksh, this test takes hours, literally.
5411 # So we just punt and use a minimum line length of 8192.
5412 lt_cv_sys_max_cmd_len=8192;
5413 ;;
5414
5415 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5416 # This has been around since 386BSD, at least. Likely further.
5417 if test -x /sbin/sysctl; then
5418 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5419 elif test -x /usr/sbin/sysctl; then
5420 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5421 else
5422 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5423 fi
5424 # And add a safety zone
5425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5427 ;;
5428
5429 interix*)
5430 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5431 lt_cv_sys_max_cmd_len=196608
5432 ;;
5433
5434 osf*)
5435 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5436 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5437 # nice to cause kernel panics so lets avoid the loop below.
5438 # First set a reasonable default.
5439 lt_cv_sys_max_cmd_len=16384
5440 #
5441 if test -x /sbin/sysconfig; then
5442 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5443 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5444 esac
5445 fi
5446 ;;
5447 sco3.2v5*)
5448 lt_cv_sys_max_cmd_len=102400
5449 ;;
5450 sysv5* | sco5v6* | sysv4.2uw2*)
5451 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5452 if test -n "$kargmax"; then
5453 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5454 else
5455 lt_cv_sys_max_cmd_len=32768
5456 fi
5457 ;;
5458 *)
6d873a38 5459 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5460 if test -n "$lt_cv_sys_max_cmd_len"; then
07c46636 5461 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5463 else
5464 # Make teststring a little bigger before we do anything with it.
5465 # a 1K string should be a reasonable start.
5466 for i in 1 2 3 4 5 6 7 8 ; do
5467 teststring=$teststring$teststring
5468 done
5469 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5470 # If test is not a shell built-in, we'll probably end up computing a
5471 # maximum length that is only half of the actual maximum length, but
5472 # we can't tell.
e6408286 5473 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5474 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
07c46636 5475 test $i != 17 # 1/2 MB should be enough
5476 do
5477 i=`expr $i + 1`
5478 teststring=$teststring$teststring
5479 done
5480 # Only check the string length outside the loop.
5481 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5482 teststring=
5483 # Add a significant safety factor because C++ compilers can tack on
5484 # massive amounts of additional arguments before passing them to the
5485 # linker. It appears as though 1/2 is a usable value.
5486 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5487 fi
542f9784 5488 ;;
5489 esac
5490
5491fi
5492
5493if test -n $lt_cv_sys_max_cmd_len ; then
cd9a469c 5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5495$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
542f9784 5496else
cd9a469c 5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5498$as_echo "none" >&6; }
542f9784 5499fi
5500max_cmd_len=$lt_cv_sys_max_cmd_len
5501
5502
5503
5504
5505
5506
542f9784 5507: ${CP="cp -f"}
5508: ${MV="mv -f"}
5509: ${RM="rm -f"}
5510
cd9a469c 5511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5512$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
542f9784 5513# Try some XSI features
5514xsi_shell=no
5515( _lt_dummy="a/b/c"
5516 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6d873a38 5517 = c,a/b,, \
5518 && eval 'test $(( 1 + 1 )) -eq 2 \
5519 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
542f9784 5520 && xsi_shell=yes
cd9a469c 5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5522$as_echo "$xsi_shell" >&6; }
542f9784 5523
5524
cd9a469c 5525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5526$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
542f9784 5527lt_shell_append=no
5528( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5529 >/dev/null 2>&1 \
5530 && lt_shell_append=yes
cd9a469c 5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5532$as_echo "$lt_shell_append" >&6; }
542f9784 5533
5534
5535if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5536 lt_unset=unset
5537else
5538 lt_unset=false
5539fi
5540
5541
5542
5543
5544
5545# test EBCDIC or ASCII
5546case `echo X|tr X '\101'` in
5547 A) # ASCII based system
5548 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5549 lt_SP2NL='tr \040 \012'
5550 lt_NL2SP='tr \015\012 \040\040'
5551 ;;
5552 *) # EBCDIC based system
5553 lt_SP2NL='tr \100 \n'
5554 lt_NL2SP='tr \r\n \100\100'
5555 ;;
5556esac
5557
5558
5559
5560
5561
5562
5563
5564
5565
cd9a469c 5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5567$as_echo_n "checking for $LD option to reload object files... " >&6; }
5568if test "${lt_cv_ld_reload_flag+set}" = set; then :
5569 $as_echo_n "(cached) " >&6
542f9784 5570else
5571 lt_cv_ld_reload_flag='-r'
5572fi
cd9a469c 5573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5574$as_echo "$lt_cv_ld_reload_flag" >&6; }
542f9784 5575reload_flag=$lt_cv_ld_reload_flag
5576case $reload_flag in
5577"" | " "*) ;;
5578*) reload_flag=" $reload_flag" ;;
5579esac
5580reload_cmds='$LD$reload_flag -o $output$reload_objs'
5581case $host_os in
5582 darwin*)
5583 if test "$GCC" = yes; then
5584 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5585 else
5586 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5587 fi
5588 ;;
5589esac
5590
5591
5592
5593
5594
5595
5596
5597
5598
6d873a38 5599if test -n "$ac_tool_prefix"; then
5600 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5601set dummy ${ac_tool_prefix}objdump; ac_word=$2
cd9a469c 5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603$as_echo_n "checking for $ac_word... " >&6; }
5604if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
6d873a38 5606else
5607 if test -n "$OBJDUMP"; then
5608 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5609else
5610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611for as_dir in $PATH
5612do
5613 IFS=$as_save_IFS
5614 test -z "$as_dir" && as_dir=.
cd9a469c 5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 5617 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cd9a469c 5618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 5619 break 2
5620 fi
5621done
cd9a469c 5622 done
5623IFS=$as_save_IFS
6d873a38 5624
5625fi
5626fi
5627OBJDUMP=$ac_cv_prog_OBJDUMP
5628if test -n "$OBJDUMP"; then
cd9a469c 5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5630$as_echo "$OBJDUMP" >&6; }
6d873a38 5631else
cd9a469c 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633$as_echo "no" >&6; }
6d873a38 5634fi
5635
cd9a469c 5636
6d873a38 5637fi
5638if test -z "$ac_cv_prog_OBJDUMP"; then
5639 ac_ct_OBJDUMP=$OBJDUMP
5640 # Extract the first word of "objdump", so it can be a program name with args.
5641set dummy objdump; ac_word=$2
cd9a469c 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643$as_echo_n "checking for $ac_word... " >&6; }
5644if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5645 $as_echo_n "(cached) " >&6
6d873a38 5646else
5647 if test -n "$ac_ct_OBJDUMP"; then
5648 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5649else
5650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651for as_dir in $PATH
5652do
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
cd9a469c 5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 5657 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cd9a469c 5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 5659 break 2
5660 fi
5661done
cd9a469c 5662 done
5663IFS=$as_save_IFS
6d873a38 5664
6d873a38 5665fi
5666fi
5667ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5668if test -n "$ac_ct_OBJDUMP"; then
cd9a469c 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5670$as_echo "$ac_ct_OBJDUMP" >&6; }
6d873a38 5671else
cd9a469c 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673$as_echo "no" >&6; }
6d873a38 5674fi
5675
cd9a469c 5676 if test "x$ac_ct_OBJDUMP" = x; then
5677 OBJDUMP="false"
5678 else
5679 case $cross_compiling:$ac_tool_warned in
5680yes:)
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5683ac_tool_warned=yes ;;
5684esac
5685 OBJDUMP=$ac_ct_OBJDUMP
5686 fi
6d873a38 5687else
5688 OBJDUMP="$ac_cv_prog_OBJDUMP"
5689fi
5690
5691test -z "$OBJDUMP" && OBJDUMP=objdump
5692
5693
5694
5695
5696
5697
5698
5699
542f9784 5700
cd9a469c 5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5702$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5703if test "${lt_cv_deplibs_check_method+set}" = set; then :
5704 $as_echo_n "(cached) " >&6
1e8e9920 5705else
5706 lt_cv_file_magic_cmd='$MAGIC_CMD'
5707lt_cv_file_magic_test_file=
5708lt_cv_deplibs_check_method='unknown'
5709# Need to set the preceding variable on all platforms that support
5710# interlibrary dependencies.
5711# 'none' -- dependencies not supported.
5712# `unknown' -- same as none, but documents that we really don't know.
5713# 'pass_all' -- all dependencies passed with no checks.
5714# 'test_compile' -- check by making test program.
542f9784 5715# 'file_magic [[regex]]' -- check by looking for files in library path
5716# which responds to the $file_magic_cmd with a given extended regex.
1e8e9920 5717# If you have `file' or equivalent on your system and you're not sure
5718# whether `pass_all' will *always* work, you probably want this one.
5719
5720case $host_os in
c8db569e 5721aix[4-9]*)
1e8e9920 5722 lt_cv_deplibs_check_method=pass_all
5723 ;;
5724
5725beos*)
5726 lt_cv_deplibs_check_method=pass_all
5727 ;;
5728
542f9784 5729bsdi[45]*)
1e8e9920 5730 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5731 lt_cv_file_magic_cmd='/usr/bin/file -L'
5732 lt_cv_file_magic_test_file=/shlib/libc.so
5733 ;;
5734
542f9784 5735cygwin*)
5736 # func_win32_libid is a shell function defined in ltmain.sh
5737 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5738 lt_cv_file_magic_cmd='func_win32_libid'
5739 ;;
5740
5741mingw* | pw32*)
5742 # Base MSYS/MinGW do not provide the 'file' command needed by
5743 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5744 # unless we find 'file', for example because we are cross-compiling.
e6408286 5745 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5746 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
542f9784 5747 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5748 lt_cv_file_magic_cmd='func_win32_libid'
5749 else
5750 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5751 lt_cv_file_magic_cmd='$OBJDUMP -f'
5752 fi
1e8e9920 5753 ;;
5754
e6408286 5755cegcc*)
6d873a38 5756 # use the weaker test based on 'objdump'. See mingw*.
5757 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5758 lt_cv_file_magic_cmd='$OBJDUMP -f'
5759 ;;
5760
1e8e9920 5761darwin* | rhapsody*)
1e8e9920 5762 lt_cv_deplibs_check_method=pass_all
5763 ;;
5764
542f9784 5765freebsd* | dragonfly*)
5766 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1e8e9920 5767 case $host_cpu in
5768 i*86 )
5769 # Not sure whether the presence of OpenBSD here was a mistake.
5770 # Let's accept both of them until this is cleared up.
542f9784 5771 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1e8e9920 5772 lt_cv_file_magic_cmd=/usr/bin/file
5773 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5774 ;;
5775 esac
5776 else
5777 lt_cv_deplibs_check_method=pass_all
5778 fi
5779 ;;
5780
5781gnu*)
5782 lt_cv_deplibs_check_method=pass_all
5783 ;;
5784
e6408286 5785haiku*)
5786 lt_cv_deplibs_check_method=pass_all
5787 ;;
5788
542f9784 5789hpux10.20* | hpux11*)
5790 lt_cv_file_magic_cmd=/usr/bin/file
1e8e9920 5791 case $host_cpu in
1e8e9920 5792 ia64*)
5793 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1e8e9920 5794 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5795 ;;
542f9784 5796 hppa*64*)
e6408286 5797 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 5798 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1e8e9920 5799 ;;
5800 *)
e6408286 5801 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
542f9784 5802 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1e8e9920 5803 ;;
5804 esac
542f9784 5805 ;;
5806
5807interix[3-9]*)
5808 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5809 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5810 ;;
5811
5812irix5* | irix6* | nonstopux*)
5813 case $LD in
5814 *-32|*"-32 ") libmagic=32-bit;;
5815 *-n32|*"-n32 ") libmagic=N32;;
5816 *-64|*"-64 ") libmagic=64-bit;;
5817 *) libmagic=never-match;;
5818 esac
1e8e9920 5819 lt_cv_deplibs_check_method=pass_all
5820 ;;
5821
5822# This must be Linux ELF.
9af964d4 5823linux* | k*bsd*-gnu | kopensolaris*-gnu)
1e8e9920 5824 lt_cv_deplibs_check_method=pass_all
5825 ;;
5826
542f9784 5827netbsd*)
5828 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1e8e9920 5830 else
542f9784 5831 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1e8e9920 5832 fi
5833 ;;
5834
542f9784 5835newos6*)
1e8e9920 5836 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5837 lt_cv_file_magic_cmd=/usr/bin/file
5838 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5839 ;;
5840
542f9784 5841*nto* | *qnx*)
5842 lt_cv_deplibs_check_method=pass_all
5843 ;;
5844
5845openbsd*)
5846 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5847 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5848 else
5849 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5850 fi
5851 ;;
5852
1e8e9920 5853osf3* | osf4* | osf5*)
1e8e9920 5854 lt_cv_deplibs_check_method=pass_all
5855 ;;
5856
542f9784 5857rdos*)
1e8e9920 5858 lt_cv_deplibs_check_method=pass_all
5859 ;;
5860
5861solaris*)
5862 lt_cv_deplibs_check_method=pass_all
1e8e9920 5863 ;;
5864
542f9784 5865sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1e8e9920 5866 lt_cv_deplibs_check_method=pass_all
5867 ;;
5868
542f9784 5869sysv4 | sysv4.3*)
1e8e9920 5870 case $host_vendor in
1e8e9920 5871 motorola)
5872 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]'
5873 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5874 ;;
542f9784 5875 ncr)
5876 lt_cv_deplibs_check_method=pass_all
5877 ;;
5878 sequent)
5879 lt_cv_file_magic_cmd='/bin/file'
5880 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5881 ;;
5882 sni)
5883 lt_cv_file_magic_cmd='/bin/file'
5884 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5885 lt_cv_file_magic_test_file=/lib/libc.so
5886 ;;
5887 siemens)
5888 lt_cv_deplibs_check_method=pass_all
5889 ;;
5890 pc)
5891 lt_cv_deplibs_check_method=pass_all
5892 ;;
1e8e9920 5893 esac
5894 ;;
542f9784 5895
5896tpf*)
5897 lt_cv_deplibs_check_method=pass_all
5898 ;;
1e8e9920 5899esac
5900
5901fi
cd9a469c 5902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5903$as_echo "$lt_cv_deplibs_check_method" >&6; }
1e8e9920 5904file_magic_cmd=$lt_cv_file_magic_cmd
5905deplibs_check_method=$lt_cv_deplibs_check_method
542f9784 5906test -z "$deplibs_check_method" && deplibs_check_method=unknown
1e8e9920 5907
5908
5909
5910
5911
1e8e9920 5912
1e8e9920 5913
1e8e9920 5914
1e8e9920 5915
1e8e9920 5916
1e8e9920 5917
1e8e9920 5918
5919if test -n "$ac_tool_prefix"; then
542f9784 5920 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5921set dummy ${ac_tool_prefix}ar; ac_word=$2
cd9a469c 5922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923$as_echo_n "checking for $ac_word... " >&6; }
5924if test "${ac_cv_prog_AR+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
1e8e9920 5926else
542f9784 5927 if test -n "$AR"; then
5928 ac_cv_prog_AR="$AR" # Let the user override the test.
1e8e9920 5929else
5930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931for as_dir in $PATH
5932do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
cd9a469c 5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 5937 ac_cv_prog_AR="${ac_tool_prefix}ar"
cd9a469c 5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 5939 break 2
5940 fi
5941done
cd9a469c 5942 done
5943IFS=$as_save_IFS
1e8e9920 5944
5945fi
5946fi
542f9784 5947AR=$ac_cv_prog_AR
5948if test -n "$AR"; then
cd9a469c 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5950$as_echo "$AR" >&6; }
1e8e9920 5951else
cd9a469c 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953$as_echo "no" >&6; }
1e8e9920 5954fi
5955
cd9a469c 5956
1e8e9920 5957fi
542f9784 5958if test -z "$ac_cv_prog_AR"; then
5959 ac_ct_AR=$AR
5960 # Extract the first word of "ar", so it can be a program name with args.
5961set dummy ar; ac_word=$2
cd9a469c 5962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963$as_echo_n "checking for $ac_word... " >&6; }
5964if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5965 $as_echo_n "(cached) " >&6
1e8e9920 5966else
542f9784 5967 if test -n "$ac_ct_AR"; then
5968 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1e8e9920 5969else
5970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971for as_dir in $PATH
5972do
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
cd9a469c 5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 5977 ac_cv_prog_ac_ct_AR="ar"
cd9a469c 5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 5979 break 2
5980 fi
5981done
cd9a469c 5982 done
5983IFS=$as_save_IFS
1e8e9920 5984
1e8e9920 5985fi
5986fi
542f9784 5987ac_ct_AR=$ac_cv_prog_ac_ct_AR
5988if test -n "$ac_ct_AR"; then
cd9a469c 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5990$as_echo "$ac_ct_AR" >&6; }
1e8e9920 5991else
cd9a469c 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993$as_echo "no" >&6; }
1e8e9920 5994fi
5995
cd9a469c 5996 if test "x$ac_ct_AR" = x; then
5997 AR="false"
5998 else
5999 case $cross_compiling:$ac_tool_warned in
6000yes:)
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6003ac_tool_warned=yes ;;
6004esac
6005 AR=$ac_ct_AR
6006 fi
1e8e9920 6007else
542f9784 6008 AR="$ac_cv_prog_AR"
1e8e9920 6009fi
6010
542f9784 6011test -z "$AR" && AR=ar
6012test -z "$AR_FLAGS" && AR_FLAGS=cru
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
1e8e9920 6024if test -n "$ac_tool_prefix"; then
6025 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6026set dummy ${ac_tool_prefix}strip; ac_word=$2
cd9a469c 6027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028$as_echo_n "checking for $ac_word... " >&6; }
6029if test "${ac_cv_prog_STRIP+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
1e8e9920 6031else
6032 if test -n "$STRIP"; then
6033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6034else
6035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036for as_dir in $PATH
6037do
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
cd9a469c 6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 6042 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cd9a469c 6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 6044 break 2
6045 fi
6046done
cd9a469c 6047 done
6048IFS=$as_save_IFS
1e8e9920 6049
6050fi
6051fi
6052STRIP=$ac_cv_prog_STRIP
6053if test -n "$STRIP"; then
cd9a469c 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6055$as_echo "$STRIP" >&6; }
1e8e9920 6056else
cd9a469c 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058$as_echo "no" >&6; }
1e8e9920 6059fi
6060
cd9a469c 6061
1e8e9920 6062fi
6063if test -z "$ac_cv_prog_STRIP"; then
6064 ac_ct_STRIP=$STRIP
6065 # Extract the first word of "strip", so it can be a program name with args.
6066set dummy strip; ac_word=$2
cd9a469c 6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068$as_echo_n "checking for $ac_word... " >&6; }
6069if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
1e8e9920 6071else
6072 if test -n "$ac_ct_STRIP"; then
6073 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6074else
6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076for as_dir in $PATH
6077do
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
cd9a469c 6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1e8e9920 6082 ac_cv_prog_ac_ct_STRIP="strip"
cd9a469c 6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1e8e9920 6084 break 2
6085 fi
6086done
cd9a469c 6087 done
6088IFS=$as_save_IFS
1e8e9920 6089
1e8e9920 6090fi
6091fi
6092ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6093if test -n "$ac_ct_STRIP"; then
cd9a469c 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6095$as_echo "$ac_ct_STRIP" >&6; }
1e8e9920 6096else
cd9a469c 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098$as_echo "no" >&6; }
1e8e9920 6099fi
6100
cd9a469c 6101 if test "x$ac_ct_STRIP" = x; then
6102 STRIP=":"
6103 else
6104 case $cross_compiling:$ac_tool_warned in
6105yes:)
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108ac_tool_warned=yes ;;
6109esac
6110 STRIP=$ac_ct_STRIP
6111 fi
1e8e9920 6112else
6113 STRIP="$ac_cv_prog_STRIP"
6114fi
6115
542f9784 6116test -z "$STRIP" && STRIP=:
1e8e9920 6117
6118
1e8e9920 6119
1e8e9920 6120
6121
1e8e9920 6122
542f9784 6123if test -n "$ac_tool_prefix"; then
6124 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6125set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cd9a469c 6126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127$as_echo_n "checking for $ac_word... " >&6; }
6128if test "${ac_cv_prog_RANLIB+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
542f9784 6130else
6131 if test -n "$RANLIB"; then
6132 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6133else
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
cd9a469c 6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 6141 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cd9a469c 6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 6143 break 2
6144 fi
6145done
cd9a469c 6146 done
6147IFS=$as_save_IFS
542f9784 6148
6149fi
6150fi
6151RANLIB=$ac_cv_prog_RANLIB
6152if test -n "$RANLIB"; then
cd9a469c 6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6154$as_echo "$RANLIB" >&6; }
542f9784 6155else
cd9a469c 6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157$as_echo "no" >&6; }
542f9784 6158fi
6159
cd9a469c 6160
542f9784 6161fi
6162if test -z "$ac_cv_prog_RANLIB"; then
6163 ac_ct_RANLIB=$RANLIB
6164 # Extract the first word of "ranlib", so it can be a program name with args.
6165set dummy ranlib; ac_word=$2
cd9a469c 6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167$as_echo_n "checking for $ac_word... " >&6; }
6168if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
542f9784 6170else
6171 if test -n "$ac_ct_RANLIB"; then
6172 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6173else
6174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175for as_dir in $PATH
6176do
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
cd9a469c 6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 6181 ac_cv_prog_ac_ct_RANLIB="ranlib"
cd9a469c 6182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 6183 break 2
6184 fi
6185done
cd9a469c 6186 done
6187IFS=$as_save_IFS
542f9784 6188
542f9784 6189fi
6190fi
6191ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6192if test -n "$ac_ct_RANLIB"; then
cd9a469c 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6194$as_echo "$ac_ct_RANLIB" >&6; }
542f9784 6195else
cd9a469c 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197$as_echo "no" >&6; }
542f9784 6198fi
6199
cd9a469c 6200 if test "x$ac_ct_RANLIB" = x; then
6201 RANLIB=":"
6202 else
6203 case $cross_compiling:$ac_tool_warned in
6204yes:)
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207ac_tool_warned=yes ;;
6208esac
6209 RANLIB=$ac_ct_RANLIB
6210 fi
542f9784 6211else
6212 RANLIB="$ac_cv_prog_RANLIB"
6213fi
6214
6215test -z "$RANLIB" && RANLIB=:
6216
6217
6218
6219
6220
6221
6222# Determine commands to create old-style static archives.
6d873a38 6223old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
542f9784 6224old_postinstall_cmds='chmod 644 $oldlib'
6225old_postuninstall_cmds=
6226
6227if test -n "$RANLIB"; then
6228 case $host_os in
6229 openbsd*)
6230 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6231 ;;
6232 *)
6233 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6234 ;;
6235 esac
6236 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6237fi
6238
e6408286 6239case $host_os in
6240 darwin*)
6241 lock_old_archive_extraction=yes ;;
6242 *)
6243 lock_old_archive_extraction=no ;;
6244esac
6245
6246
6247
6248
6249
6250
542f9784 6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284# If no C compiler was specified, use CC.
6285LTCC=${LTCC-"$CC"}
6286
6287# If no C compiler flags were specified, use CFLAGS.
6288LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6289
6290# Allow CC to be a program name with arguments.
6291compiler=$CC
6292
6293
6294# Check for command to grab the raw symbol name followed by C symbol from nm.
cd9a469c 6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6296$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6297if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6298 $as_echo_n "(cached) " >&6
542f9784 6299else
6300
6301# These are sane defaults that work on at least a few old systems.
6302# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6303
6304# Character class describing NM global symbol codes.
6305symcode='[BCDEGRST]'
6306
6307# Regexp to match symbols that can be accessed directly from C.
6308sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6309
6310# Define system-specific variables.
6311case $host_os in
6312aix*)
6313 symcode='[BCDT]'
6314 ;;
6d873a38 6315cygwin* | mingw* | pw32* | cegcc*)
542f9784 6316 symcode='[ABCDGISTW]'
6317 ;;
6318hpux*)
6319 if test "$host_cpu" = ia64; then
6320 symcode='[ABCDEGRST]'
6321 fi
6322 ;;
6323irix* | nonstopux*)
6324 symcode='[BCDEGRST]'
6325 ;;
6326osf*)
6327 symcode='[BCDEGQRST]'
6328 ;;
6329solaris*)
6330 symcode='[BDRT]'
6331 ;;
6332sco3.2v5*)
6333 symcode='[DT]'
6334 ;;
6335sysv4.2uw2*)
6336 symcode='[DT]'
6337 ;;
6338sysv5* | sco5v6* | unixware* | OpenUNIX*)
6339 symcode='[ABDT]'
6340 ;;
6341sysv4)
6342 symcode='[DFNSTU]'
6343 ;;
6344esac
6345
6346# If we're using GNU nm, then use its standard symbol codes.
6347case `$NM -V 2>&1` in
6348*GNU* | *'with BFD'*)
6349 symcode='[ABCDGIRSTW]' ;;
6350esac
6351
6352# Transform an extracted symbol line into a proper C declaration.
6353# Some systems (esp. on ia64) link data and code symbols differently,
6354# so use this general approach.
6355lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6356
6357# Transform an extracted symbol line into symbol name and symbol address
6358lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6d873a38 6359lt_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 6360
6361# Handle CRLF in mingw tool chain
6362opt_cr=
6363case $build_os in
6364mingw*)
6365 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6366 ;;
6367esac
6368
6369# Try without a prefix underscore, then with it.
6370for ac_symprfx in "" "_"; do
6371
6372 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6373 symxfrm="\\1 $ac_symprfx\\2 \\2"
6374
6375 # Write the raw and C identifiers.
6376 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6377 # Fake it for dumpbin and say T for any non-static function
6378 # and D for any global variable.
6379 # Also find C++ and __fastcall symbols from MSVC++,
6380 # which start with @ or ?.
6381 lt_cv_sys_global_symbol_pipe="$AWK '"\
6382" {last_section=section; section=\$ 3};"\
6383" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6384" \$ 0!~/External *\|/{next};"\
6385" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6386" {if(hide[section]) next};"\
6387" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6388" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6389" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6390" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6391" ' prfx=^$ac_symprfx"
6392 else
6393 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6394 fi
6395
6396 # Check to see that the pipe works correctly.
6397 pipe_works=no
6398
6399 rm -f conftest*
6400 cat > conftest.$ac_ext <<_LT_EOF
6401#ifdef __cplusplus
6402extern "C" {
6403#endif
6404char nm_test_var;
6405void nm_test_func(void);
6406void nm_test_func(void){}
6407#ifdef __cplusplus
6408}
6409#endif
6410int main(){nm_test_var='a';nm_test_func();return(0);}
6411_LT_EOF
6412
cd9a469c 6413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 6414 (eval $ac_compile) 2>&5
6415 ac_status=$?
cd9a469c 6416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6417 test $ac_status = 0; }; then
542f9784 6418 # Now try to grab the symbols.
6419 nlist=conftest.nm
e6408286 6420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6421 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
542f9784 6422 ac_status=$?
cd9a469c 6423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6424 test $ac_status = 0; } && test -s "$nlist"; then
542f9784 6425 # Try sorting and uniquifying the output.
6426 if sort "$nlist" | uniq > "$nlist"T; then
6427 mv -f "$nlist"T "$nlist"
6428 else
6429 rm -f "$nlist"T
6430 fi
6431
6432 # Make sure that we snagged all the symbols we need.
6433 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6434 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6435 cat <<_LT_EOF > conftest.$ac_ext
6436#ifdef __cplusplus
6437extern "C" {
6438#endif
6439
6440_LT_EOF
6441 # Now generate the symbol file.
6442 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6443
6444 cat <<_LT_EOF >> conftest.$ac_ext
6445
6446/* The mapping between symbol names and symbols. */
6447const struct {
6448 const char *name;
6449 void *address;
6450}
6451lt__PROGRAM__LTX_preloaded_symbols[] =
6452{
6453 { "@PROGRAM@", (void *) 0 },
6454_LT_EOF
6455 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6456 cat <<\_LT_EOF >> conftest.$ac_ext
6457 {0, (void *) 0}
6458};
6459
6460/* This works around a problem in FreeBSD linker */
6461#ifdef FREEBSD_WORKAROUND
6462static const void *lt_preloaded_setup() {
6463 return lt__PROGRAM__LTX_preloaded_symbols;
6464}
6465#endif
6466
6467#ifdef __cplusplus
6468}
6469#endif
6470_LT_EOF
6471 # Now try linking the two files.
6472 mv conftest.$ac_objext conftstm.$ac_objext
6473 lt_save_LIBS="$LIBS"
6474 lt_save_CFLAGS="$CFLAGS"
6475 LIBS="conftstm.$ac_objext"
6476 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cd9a469c 6477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 6478 (eval $ac_link) 2>&5
6479 ac_status=$?
cd9a469c 6480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6481 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
542f9784 6482 pipe_works=yes
6483 fi
6484 LIBS="$lt_save_LIBS"
6485 CFLAGS="$lt_save_CFLAGS"
6486 else
6487 echo "cannot find nm_test_func in $nlist" >&5
6488 fi
6489 else
6490 echo "cannot find nm_test_var in $nlist" >&5
6491 fi
6492 else
6493 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6494 fi
6495 else
6496 echo "$progname: failed program was:" >&5
6497 cat conftest.$ac_ext >&5
6498 fi
6d873a38 6499 rm -rf conftest* conftst*
542f9784 6500
6501 # Do not use the global_symbol_pipe unless it works.
6502 if test "$pipe_works" = yes; then
6503 break
6504 else
6505 lt_cv_sys_global_symbol_pipe=
6506 fi
6507done
6508
6509fi
6510
6511if test -z "$lt_cv_sys_global_symbol_pipe"; then
6512 lt_cv_sys_global_symbol_to_cdecl=
6513fi
6514if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cd9a469c 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6516$as_echo "failed" >&6; }
542f9784 6517else
cd9a469c 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6519$as_echo "ok" >&6; }
542f9784 6520fi
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6d873a38 6536
6537
6538
6539
6540
542f9784 6541
6542
6543
cd9a469c 6544# Check whether --enable-libtool-lock was given.
6545if test "${enable_libtool_lock+set}" = set; then :
6546 enableval=$enable_libtool_lock;
6547fi
542f9784 6548
542f9784 6549test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6550
6551# Some flags need to be propagated to the compiler or linker for good
1e8e9920 6552# libtool support.
6553case $host in
542f9784 6554ia64-*-hpux*)
1e8e9920 6555 # Find out which ABI we are using.
542f9784 6556 echo 'int i;' > conftest.$ac_ext
cd9a469c 6557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1e8e9920 6558 (eval $ac_compile) 2>&5
6559 ac_status=$?
cd9a469c 6560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6561 test $ac_status = 0; }; then
542f9784 6562 case `/usr/bin/file conftest.$ac_objext` in
6563 *ELF-32*)
6564 HPUX_IA64_MODE="32"
6565 ;;
6566 *ELF-64*)
6567 HPUX_IA64_MODE="64"
6568 ;;
6569 esac
6570 fi
6571 rm -rf conftest*
6572 ;;
6573*-*-irix6*)
6574 # Find out which ABI we are using.
e6408286 6575 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cd9a469c 6576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 6577 (eval $ac_compile) 2>&5
6578 ac_status=$?
cd9a469c 6579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6580 test $ac_status = 0; }; then
542f9784 6581 if test "$lt_cv_prog_gnu_ld" = yes; then
6582 case `/usr/bin/file conftest.$ac_objext` in
6583 *32-bit*)
6584 LD="${LD-ld} -melf32bsmip"
6585 ;;
6586 *N32*)
6587 LD="${LD-ld} -melf32bmipn32"
6588 ;;
6589 *64-bit*)
6590 LD="${LD-ld} -melf64bmip"
6591 ;;
6592 esac
6593 else
6594 case `/usr/bin/file conftest.$ac_objext` in
6595 *32-bit*)
6596 LD="${LD-ld} -32"
6597 ;;
6598 *N32*)
6599 LD="${LD-ld} -n32"
6600 ;;
6601 *64-bit*)
6602 LD="${LD-ld} -64"
6603 ;;
6604 esac
6605 fi
6606 fi
6607 rm -rf conftest*
6608 ;;
6609
9613c003 6610x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
542f9784 6611s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6612 # Find out which ABI we are using.
6613 echo 'int i;' > conftest.$ac_ext
cd9a469c 6614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 6615 (eval $ac_compile) 2>&5
6616 ac_status=$?
cd9a469c 6617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6618 test $ac_status = 0; }; then
542f9784 6619 case `/usr/bin/file conftest.o` in
6620 *32-bit*)
6621 case $host in
6622 x86_64-*kfreebsd*-gnu)
6623 LD="${LD-ld} -m elf_i386_fbsd"
6624 ;;
6625 x86_64-*linux*)
b4b3bbba 6626 case `/usr/bin/file conftest.o` in
6627 *x86-64*)
6628 LD="${LD-ld} -m elf32_x86_64"
6629 ;;
6630 *)
6631 LD="${LD-ld} -m elf_i386"
6632 ;;
6633 esac
542f9784 6634 ;;
9613c003 6635 powerpc64le-*linux*)
6636 LD="${LD-ld} -m elf32lppclinux"
6637 ;;
6638 powerpc64-*linux*)
542f9784 6639 LD="${LD-ld} -m elf32ppclinux"
6640 ;;
6641 s390x-*linux*)
6642 LD="${LD-ld} -m elf_s390"
6643 ;;
6644 sparc64-*linux*)
6645 LD="${LD-ld} -m elf32_sparc"
6646 ;;
6647 esac
6648 ;;
6649 *64-bit*)
6650 case $host in
6651 x86_64-*kfreebsd*-gnu)
6652 LD="${LD-ld} -m elf_x86_64_fbsd"
6653 ;;
6654 x86_64-*linux*)
6655 LD="${LD-ld} -m elf_x86_64"
6656 ;;
9613c003 6657 powerpcle-*linux*)
6658 LD="${LD-ld} -m elf64lppc"
6659 ;;
6660 powerpc-*linux*)
542f9784 6661 LD="${LD-ld} -m elf64ppc"
6662 ;;
6663 s390*-*linux*|s390*-*tpf*)
6664 LD="${LD-ld} -m elf64_s390"
6665 ;;
6666 sparc*-*linux*)
6667 LD="${LD-ld} -m elf64_sparc"
6668 ;;
6669 esac
6670 ;;
6671 esac
6672 fi
6673 rm -rf conftest*
6674 ;;
6675
6676*-*-sco3.2v5*)
6677 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6678 SAVE_CFLAGS="$CFLAGS"
6679 CFLAGS="$CFLAGS -belf"
cd9a469c 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6681$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6682if test "${lt_cv_cc_needs_belf+set}" = set; then :
6683 $as_echo_n "(cached) " >&6
542f9784 6684else
6685 ac_ext=c
6686ac_cpp='$CPP $CPPFLAGS'
6687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6689ac_compiler_gnu=$ac_cv_c_compiler_gnu
6690
cd9a469c 6691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 6692/* end confdefs.h. */
6693
6694int
6695main ()
6696{
6697
6698 ;
6699 return 0;
6700}
6701_ACEOF
cd9a469c 6702if ac_fn_c_try_link "$LINENO"; then :
542f9784 6703 lt_cv_cc_needs_belf=yes
6704else
cd9a469c 6705 lt_cv_cc_needs_belf=no
542f9784 6706fi
cd9a469c 6707rm -f core conftest.err conftest.$ac_objext \
6708 conftest$ac_exeext conftest.$ac_ext
542f9784 6709 ac_ext=c
6710ac_cpp='$CPP $CPPFLAGS'
6711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713ac_compiler_gnu=$ac_cv_c_compiler_gnu
6714
6715fi
cd9a469c 6716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6717$as_echo "$lt_cv_cc_needs_belf" >&6; }
542f9784 6718 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6719 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6720 CFLAGS="$SAVE_CFLAGS"
6721 fi
6722 ;;
6723sparc*-*solaris*)
6724 # Find out which ABI we are using.
6725 echo 'int i;' > conftest.$ac_ext
cd9a469c 6726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 6727 (eval $ac_compile) 2>&5
6728 ac_status=$?
cd9a469c 6729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6730 test $ac_status = 0; }; then
542f9784 6731 case `/usr/bin/file conftest.o` in
6732 *64-bit*)
6733 case $lt_cv_prog_gnu_ld in
6734 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6d873a38 6735 *)
6736 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6737 LD="${LD-ld} -64"
6738 fi
6739 ;;
542f9784 6740 esac
6741 ;;
6742 esac
6743 fi
6744 rm -rf conftest*
6745 ;;
6746esac
6747
6748need_locks="$enable_libtool_lock"
6749
6d873a38 6750
6751 case $host_os in
6752 rhapsody* | darwin*)
6753 if test -n "$ac_tool_prefix"; then
6754 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6755set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cd9a469c 6756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757$as_echo_n "checking for $ac_word... " >&6; }
6758if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6759 $as_echo_n "(cached) " >&6
542f9784 6760else
6d873a38 6761 if test -n "$DSYMUTIL"; then
6762 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6763else
6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
542f9784 6766do
6d873a38 6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
cd9a469c 6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 6771 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cd9a469c 6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 6773 break 2
542f9784 6774 fi
6d873a38 6775done
cd9a469c 6776 done
6777IFS=$as_save_IFS
6d873a38 6778
6779fi
6780fi
6781DSYMUTIL=$ac_cv_prog_DSYMUTIL
6782if test -n "$DSYMUTIL"; then
cd9a469c 6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6784$as_echo "$DSYMUTIL" >&6; }
6d873a38 6785else
cd9a469c 6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787$as_echo "no" >&6; }
6d873a38 6788fi
6789
cd9a469c 6790
6d873a38 6791fi
6792if test -z "$ac_cv_prog_DSYMUTIL"; then
6793 ac_ct_DSYMUTIL=$DSYMUTIL
6794 # Extract the first word of "dsymutil", so it can be a program name with args.
6795set dummy dsymutil; ac_word=$2
cd9a469c 6796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797$as_echo_n "checking for $ac_word... " >&6; }
6798if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6799 $as_echo_n "(cached) " >&6
6d873a38 6800else
6801 if test -n "$ac_ct_DSYMUTIL"; then
6802 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6803else
6804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805for as_dir in $PATH
6806do
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
cd9a469c 6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 6811 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cd9a469c 6812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 6813 break 2
6814 fi
6815done
cd9a469c 6816 done
6817IFS=$as_save_IFS
6d873a38 6818
6d873a38 6819fi
6820fi
6821ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6822if test -n "$ac_ct_DSYMUTIL"; then
cd9a469c 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6824$as_echo "$ac_ct_DSYMUTIL" >&6; }
6d873a38 6825else
cd9a469c 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827$as_echo "no" >&6; }
6d873a38 6828fi
6829
cd9a469c 6830 if test "x$ac_ct_DSYMUTIL" = x; then
6831 DSYMUTIL=":"
6832 else
6833 case $cross_compiling:$ac_tool_warned in
6834yes:)
6835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6837ac_tool_warned=yes ;;
6838esac
6839 DSYMUTIL=$ac_ct_DSYMUTIL
6840 fi
6d873a38 6841else
6842 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6843fi
6844
6845 if test -n "$ac_tool_prefix"; then
6846 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6847set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cd9a469c 6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849$as_echo_n "checking for $ac_word... " >&6; }
6850if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6851 $as_echo_n "(cached) " >&6
6d873a38 6852else
6853 if test -n "$NMEDIT"; then
6854 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6855else
6856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857for as_dir in $PATH
6858do
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
cd9a469c 6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 6863 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cd9a469c 6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 6865 break 2
6866 fi
6867done
cd9a469c 6868 done
6869IFS=$as_save_IFS
6d873a38 6870
6871fi
6872fi
6873NMEDIT=$ac_cv_prog_NMEDIT
6874if test -n "$NMEDIT"; then
cd9a469c 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6876$as_echo "$NMEDIT" >&6; }
6d873a38 6877else
cd9a469c 6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879$as_echo "no" >&6; }
6d873a38 6880fi
6881
cd9a469c 6882
6d873a38 6883fi
6884if test -z "$ac_cv_prog_NMEDIT"; then
6885 ac_ct_NMEDIT=$NMEDIT
6886 # Extract the first word of "nmedit", so it can be a program name with args.
6887set dummy nmedit; ac_word=$2
cd9a469c 6888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889$as_echo_n "checking for $ac_word... " >&6; }
6890if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6891 $as_echo_n "(cached) " >&6
6d873a38 6892else
6893 if test -n "$ac_ct_NMEDIT"; then
6894 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6895else
6896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897for as_dir in $PATH
6898do
6899 IFS=$as_save_IFS
6900 test -z "$as_dir" && as_dir=.
cd9a469c 6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 6903 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cd9a469c 6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 6905 break 2
6906 fi
6907done
cd9a469c 6908 done
6909IFS=$as_save_IFS
6d873a38 6910
6d873a38 6911fi
6912fi
6913ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6914if test -n "$ac_ct_NMEDIT"; then
cd9a469c 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6916$as_echo "$ac_ct_NMEDIT" >&6; }
6d873a38 6917else
cd9a469c 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919$as_echo "no" >&6; }
6d873a38 6920fi
6921
cd9a469c 6922 if test "x$ac_ct_NMEDIT" = x; then
6923 NMEDIT=":"
6924 else
6925 case $cross_compiling:$ac_tool_warned in
6926yes:)
6927{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6929ac_tool_warned=yes ;;
6930esac
6931 NMEDIT=$ac_ct_NMEDIT
6932 fi
6d873a38 6933else
6934 NMEDIT="$ac_cv_prog_NMEDIT"
6935fi
6936
6937 if test -n "$ac_tool_prefix"; then
6938 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6939set dummy ${ac_tool_prefix}lipo; ac_word=$2
cd9a469c 6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941$as_echo_n "checking for $ac_word... " >&6; }
6942if test "${ac_cv_prog_LIPO+set}" = set; then :
6943 $as_echo_n "(cached) " >&6
6d873a38 6944else
6945 if test -n "$LIPO"; then
6946 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6947else
6948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
cd9a469c 6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 6955 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cd9a469c 6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 6957 break 2
6958 fi
6959done
cd9a469c 6960 done
6961IFS=$as_save_IFS
6d873a38 6962
6963fi
6964fi
6965LIPO=$ac_cv_prog_LIPO
6966if test -n "$LIPO"; then
cd9a469c 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6968$as_echo "$LIPO" >&6; }
6d873a38 6969else
cd9a469c 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971$as_echo "no" >&6; }
6d873a38 6972fi
6973
cd9a469c 6974
6d873a38 6975fi
6976if test -z "$ac_cv_prog_LIPO"; then
6977 ac_ct_LIPO=$LIPO
6978 # Extract the first word of "lipo", so it can be a program name with args.
6979set dummy lipo; ac_word=$2
cd9a469c 6980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981$as_echo_n "checking for $ac_word... " >&6; }
6982if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6983 $as_echo_n "(cached) " >&6
6d873a38 6984else
6985 if test -n "$ac_ct_LIPO"; then
6986 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6987else
6988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
cd9a469c 6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 6995 ac_cv_prog_ac_ct_LIPO="lipo"
cd9a469c 6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 6997 break 2
6998 fi
6999done
cd9a469c 7000 done
7001IFS=$as_save_IFS
6d873a38 7002
6d873a38 7003fi
7004fi
7005ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7006if test -n "$ac_ct_LIPO"; then
cd9a469c 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7008$as_echo "$ac_ct_LIPO" >&6; }
6d873a38 7009else
cd9a469c 7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011$as_echo "no" >&6; }
6d873a38 7012fi
7013
cd9a469c 7014 if test "x$ac_ct_LIPO" = x; then
7015 LIPO=":"
7016 else
7017 case $cross_compiling:$ac_tool_warned in
7018yes:)
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7021ac_tool_warned=yes ;;
7022esac
7023 LIPO=$ac_ct_LIPO
7024 fi
6d873a38 7025else
7026 LIPO="$ac_cv_prog_LIPO"
7027fi
7028
7029 if test -n "$ac_tool_prefix"; then
7030 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7031set dummy ${ac_tool_prefix}otool; ac_word=$2
cd9a469c 7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033$as_echo_n "checking for $ac_word... " >&6; }
7034if test "${ac_cv_prog_OTOOL+set}" = set; then :
7035 $as_echo_n "(cached) " >&6
6d873a38 7036else
7037 if test -n "$OTOOL"; then
7038 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7039else
7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
cd9a469c 7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 7047 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cd9a469c 7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 7049 break 2
7050 fi
7051done
cd9a469c 7052 done
7053IFS=$as_save_IFS
6d873a38 7054
7055fi
7056fi
7057OTOOL=$ac_cv_prog_OTOOL
7058if test -n "$OTOOL"; then
cd9a469c 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7060$as_echo "$OTOOL" >&6; }
6d873a38 7061else
cd9a469c 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063$as_echo "no" >&6; }
6d873a38 7064fi
7065
cd9a469c 7066
6d873a38 7067fi
7068if test -z "$ac_cv_prog_OTOOL"; then
7069 ac_ct_OTOOL=$OTOOL
7070 # Extract the first word of "otool", so it can be a program name with args.
7071set dummy otool; ac_word=$2
cd9a469c 7072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073$as_echo_n "checking for $ac_word... " >&6; }
7074if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7075 $as_echo_n "(cached) " >&6
6d873a38 7076else
7077 if test -n "$ac_ct_OTOOL"; then
7078 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7079else
7080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081for as_dir in $PATH
7082do
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
cd9a469c 7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 7087 ac_cv_prog_ac_ct_OTOOL="otool"
cd9a469c 7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 7089 break 2
7090 fi
7091done
cd9a469c 7092 done
7093IFS=$as_save_IFS
6d873a38 7094
6d873a38 7095fi
7096fi
7097ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7098if test -n "$ac_ct_OTOOL"; then
cd9a469c 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7100$as_echo "$ac_ct_OTOOL" >&6; }
6d873a38 7101else
cd9a469c 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103$as_echo "no" >&6; }
6d873a38 7104fi
7105
cd9a469c 7106 if test "x$ac_ct_OTOOL" = x; then
7107 OTOOL=":"
7108 else
7109 case $cross_compiling:$ac_tool_warned in
7110yes:)
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7113ac_tool_warned=yes ;;
7114esac
7115 OTOOL=$ac_ct_OTOOL
7116 fi
6d873a38 7117else
7118 OTOOL="$ac_cv_prog_OTOOL"
7119fi
7120
7121 if test -n "$ac_tool_prefix"; then
7122 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7123set dummy ${ac_tool_prefix}otool64; ac_word=$2
cd9a469c 7124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125$as_echo_n "checking for $ac_word... " >&6; }
7126if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7127 $as_echo_n "(cached) " >&6
6d873a38 7128else
7129 if test -n "$OTOOL64"; then
7130 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7131else
7132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
cd9a469c 7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 7139 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cd9a469c 7140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 7141 break 2
7142 fi
7143done
cd9a469c 7144 done
7145IFS=$as_save_IFS
6d873a38 7146
7147fi
7148fi
7149OTOOL64=$ac_cv_prog_OTOOL64
7150if test -n "$OTOOL64"; then
cd9a469c 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7152$as_echo "$OTOOL64" >&6; }
6d873a38 7153else
cd9a469c 7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155$as_echo "no" >&6; }
6d873a38 7156fi
7157
cd9a469c 7158
6d873a38 7159fi
7160if test -z "$ac_cv_prog_OTOOL64"; then
7161 ac_ct_OTOOL64=$OTOOL64
7162 # Extract the first word of "otool64", so it can be a program name with args.
7163set dummy otool64; ac_word=$2
cd9a469c 7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165$as_echo_n "checking for $ac_word... " >&6; }
7166if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7167 $as_echo_n "(cached) " >&6
6d873a38 7168else
7169 if test -n "$ac_ct_OTOOL64"; then
7170 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7171else
7172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH
7174do
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
cd9a469c 7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6d873a38 7179 ac_cv_prog_ac_ct_OTOOL64="otool64"
cd9a469c 7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6d873a38 7181 break 2
7182 fi
7183done
cd9a469c 7184 done
7185IFS=$as_save_IFS
6d873a38 7186
6d873a38 7187fi
7188fi
7189ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7190if test -n "$ac_ct_OTOOL64"; then
cd9a469c 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7192$as_echo "$ac_ct_OTOOL64" >&6; }
6d873a38 7193else
cd9a469c 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195$as_echo "no" >&6; }
6d873a38 7196fi
7197
cd9a469c 7198 if test "x$ac_ct_OTOOL64" = x; then
7199 OTOOL64=":"
7200 else
7201 case $cross_compiling:$ac_tool_warned in
7202yes:)
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7205ac_tool_warned=yes ;;
7206esac
7207 OTOOL64=$ac_ct_OTOOL64
7208 fi
6d873a38 7209else
7210 OTOOL64="$ac_cv_prog_OTOOL64"
7211fi
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
cd9a469c 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7240$as_echo_n "checking for -single_module linker flag... " >&6; }
7241if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7242 $as_echo_n "(cached) " >&6
6d873a38 7243else
7244 lt_cv_apple_cc_single_mod=no
7245 if test -z "${LT_MULTI_MODULE}"; then
7246 # By default we will add the -single_module flag. You can override
7247 # by either setting the environment variable LT_MULTI_MODULE
7248 # non-empty at configure time, or by adding -multi_module to the
7249 # link flags.
7250 rm -rf libconftest.dylib*
7251 echo "int foo(void){return 1;}" > conftest.c
7252 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7253-dynamiclib -Wl,-single_module conftest.c" >&5
7254 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7255 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7256 _lt_result=$?
7257 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7258 lt_cv_apple_cc_single_mod=yes
7259 else
7260 cat conftest.err >&5
7261 fi
7262 rm -rf libconftest.dylib*
7263 rm -f conftest.*
7264 fi
7265fi
cd9a469c 7266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7267$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7269$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7270if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7271 $as_echo_n "(cached) " >&6
6d873a38 7272else
7273 lt_cv_ld_exported_symbols_list=no
7274 save_LDFLAGS=$LDFLAGS
7275 echo "_main" > conftest.sym
7276 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cd9a469c 7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d873a38 7278/* end confdefs.h. */
7279
7280int
7281main ()
7282{
7283
7284 ;
7285 return 0;
7286}
7287_ACEOF
cd9a469c 7288if ac_fn_c_try_link "$LINENO"; then :
6d873a38 7289 lt_cv_ld_exported_symbols_list=yes
7290else
cd9a469c 7291 lt_cv_ld_exported_symbols_list=no
6d873a38 7292fi
cd9a469c 7293rm -f core conftest.err conftest.$ac_objext \
7294 conftest$ac_exeext conftest.$ac_ext
6d873a38 7295 LDFLAGS="$save_LDFLAGS"
7296
7297fi
cd9a469c 7298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7299$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
e6408286 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7301$as_echo_n "checking for -force_load linker flag... " >&6; }
7302if test "${lt_cv_ld_force_load+set}" = set; then :
7303 $as_echo_n "(cached) " >&6
7304else
7305 lt_cv_ld_force_load=no
7306 cat > conftest.c << _LT_EOF
7307int forced_loaded() { return 2;}
7308_LT_EOF
7309 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7310 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7311 echo "$AR cru libconftest.a conftest.o" >&5
7312 $AR cru libconftest.a conftest.o 2>&5
7313 cat > conftest.c << _LT_EOF
7314int main() { return 0;}
7315_LT_EOF
7316 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7317 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7318 _lt_result=$?
7319 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7320 lt_cv_ld_force_load=yes
7321 else
7322 cat conftest.err >&5
7323 fi
7324 rm -f conftest.err libconftest.a conftest conftest.c
7325 rm -rf conftest.dSYM
7326
7327fi
7328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7329$as_echo "$lt_cv_ld_force_load" >&6; }
6d873a38 7330 case $host_os in
7331 rhapsody* | darwin1.[012])
7332 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7333 darwin1.*)
7334 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7335 darwin*) # darwin 5.x on
7336 # if running on 10.5 or later, the deployment target defaults
7337 # to the OS version, if on x86, and 10.4, the deployment
7338 # target defaults to 10.4. Don't you love it?
7339 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7340 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7341 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7c407808 7342 10.[012][,.]*)
6d873a38 7343 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7344 10.*)
7345 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7346 esac
7347 ;;
7348 esac
7349 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7350 _lt_dar_single_mod='$single_module'
7351 fi
7352 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7353 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7354 else
7355 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7356 fi
e6408286 7357 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6d873a38 7358 _lt_dsymutil='~$DSYMUTIL $lib || :'
7359 else
7360 _lt_dsymutil=
7361 fi
7362 ;;
7363 esac
7364
7365ac_ext=c
7366ac_cpp='$CPP $CPPFLAGS'
7367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7369ac_compiler_gnu=$ac_cv_c_compiler_gnu
cd9a469c 7370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7371$as_echo_n "checking how to run the C preprocessor... " >&6; }
6d873a38 7372# On Suns, sometimes $CPP names a directory.
7373if test -n "$CPP" && test -d "$CPP"; then
7374 CPP=
7375fi
7376if test -z "$CPP"; then
cd9a469c 7377 if test "${ac_cv_prog_CPP+set}" = set; then :
7378 $as_echo_n "(cached) " >&6
6d873a38 7379else
7380 # Double quotes because CPP needs to be expanded
7381 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7382 do
7383 ac_preproc_ok=false
7384for ac_c_preproc_warn_flag in '' yes
7385do
7386 # Use a header file that comes with gcc, so configuring glibc
7387 # with a fresh cross-compiler works.
7388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7389 # <limits.h> exists even on freestanding compilers.
7390 # On the NeXT, cc -E runs the code through the compiler's parser,
7391 # not just through cpp. "Syntax error" is here to catch this case.
cd9a469c 7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6d873a38 7393/* end confdefs.h. */
7394#ifdef __STDC__
7395# include <limits.h>
7396#else
7397# include <assert.h>
7398#endif
7399 Syntax error
7400_ACEOF
cd9a469c 7401if ac_fn_c_try_cpp "$LINENO"; then :
542f9784 7402
cd9a469c 7403else
542f9784 7404 # Broken: fails on valid input.
7405continue
7406fi
7407rm -f conftest.err conftest.$ac_ext
7408
cd9a469c 7409 # OK, works on sane cases. Now check whether nonexistent headers
542f9784 7410 # can be detected and how.
cd9a469c 7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7412/* end confdefs.h. */
7413#include <ac_nonexistent.h>
7414_ACEOF
cd9a469c 7415if ac_fn_c_try_cpp "$LINENO"; then :
542f9784 7416 # Broken: success on invalid input.
7417continue
7418else
542f9784 7419 # Passes both tests.
7420ac_preproc_ok=:
7421break
7422fi
7423rm -f conftest.err conftest.$ac_ext
7424
7425done
7426# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7427rm -f conftest.err conftest.$ac_ext
cd9a469c 7428if $ac_preproc_ok; then :
542f9784 7429 break
7430fi
7431
7432 done
7433 ac_cv_prog_CPP=$CPP
7434
7435fi
7436 CPP=$ac_cv_prog_CPP
7437else
7438 ac_cv_prog_CPP=$CPP
7439fi
cd9a469c 7440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7441$as_echo "$CPP" >&6; }
542f9784 7442ac_preproc_ok=false
7443for ac_c_preproc_warn_flag in '' yes
7444do
7445 # Use a header file that comes with gcc, so configuring glibc
7446 # with a fresh cross-compiler works.
7447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7448 # <limits.h> exists even on freestanding compilers.
7449 # On the NeXT, cc -E runs the code through the compiler's parser,
7450 # not just through cpp. "Syntax error" is here to catch this case.
cd9a469c 7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7452/* end confdefs.h. */
7453#ifdef __STDC__
7454# include <limits.h>
7455#else
7456# include <assert.h>
7457#endif
7458 Syntax error
7459_ACEOF
cd9a469c 7460if ac_fn_c_try_cpp "$LINENO"; then :
542f9784 7461
cd9a469c 7462else
542f9784 7463 # Broken: fails on valid input.
7464continue
7465fi
7466rm -f conftest.err conftest.$ac_ext
7467
cd9a469c 7468 # OK, works on sane cases. Now check whether nonexistent headers
542f9784 7469 # can be detected and how.
cd9a469c 7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7471/* end confdefs.h. */
7472#include <ac_nonexistent.h>
7473_ACEOF
cd9a469c 7474if ac_fn_c_try_cpp "$LINENO"; then :
542f9784 7475 # Broken: success on invalid input.
7476continue
7477else
542f9784 7478 # Passes both tests.
7479ac_preproc_ok=:
7480break
7481fi
7482rm -f conftest.err conftest.$ac_ext
7483
7484done
7485# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7486rm -f conftest.err conftest.$ac_ext
cd9a469c 7487if $ac_preproc_ok; then :
7488
542f9784 7489else
cd9a469c 7490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7492as_fn_error "C preprocessor \"$CPP\" fails sanity check
7493See \`config.log' for more details." "$LINENO" 5; }
542f9784 7494fi
7495
7496ac_ext=c
7497ac_cpp='$CPP $CPPFLAGS'
7498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7500ac_compiler_gnu=$ac_cv_c_compiler_gnu
7501
7502
cd9a469c 7503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7504$as_echo_n "checking for ANSI C header files... " >&6; }
7505if test "${ac_cv_header_stdc+set}" = set; then :
7506 $as_echo_n "(cached) " >&6
542f9784 7507else
cd9a469c 7508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7509/* end confdefs.h. */
7510#include <stdlib.h>
7511#include <stdarg.h>
7512#include <string.h>
7513#include <float.h>
7514
7515int
7516main ()
7517{
7518
7519 ;
7520 return 0;
7521}
7522_ACEOF
cd9a469c 7523if ac_fn_c_try_compile "$LINENO"; then :
542f9784 7524 ac_cv_header_stdc=yes
7525else
cd9a469c 7526 ac_cv_header_stdc=no
542f9784 7527fi
cd9a469c 7528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 7529
7530if test $ac_cv_header_stdc = yes; then
7531 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cd9a469c 7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7533/* end confdefs.h. */
7534#include <string.h>
7535
7536_ACEOF
7537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cd9a469c 7538 $EGREP "memchr" >/dev/null 2>&1; then :
7539
542f9784 7540else
7541 ac_cv_header_stdc=no
7542fi
7543rm -f conftest*
7544
7545fi
7546
7547if test $ac_cv_header_stdc = yes; then
7548 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cd9a469c 7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7550/* end confdefs.h. */
7551#include <stdlib.h>
7552
7553_ACEOF
7554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cd9a469c 7555 $EGREP "free" >/dev/null 2>&1; then :
7556
542f9784 7557else
7558 ac_cv_header_stdc=no
7559fi
7560rm -f conftest*
7561
7562fi
7563
7564if test $ac_cv_header_stdc = yes; then
7565 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cd9a469c 7566 if test "$cross_compiling" = yes; then :
542f9784 7567 :
7568else
cd9a469c 7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 7570/* end confdefs.h. */
7571#include <ctype.h>
cd9a469c 7572#include <stdlib.h>
542f9784 7573#if ((' ' & 0x0FF) == 0x020)
7574# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7575# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7576#else
7577# define ISLOWER(c) \
7578 (('a' <= (c) && (c) <= 'i') \
7579 || ('j' <= (c) && (c) <= 'r') \
7580 || ('s' <= (c) && (c) <= 'z'))
7581# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7582#endif
7583
7584#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7585int
7586main ()
7587{
7588 int i;
7589 for (i = 0; i < 256; i++)
7590 if (XOR (islower (i), ISLOWER (i))
7591 || toupper (i) != TOUPPER (i))
cd9a469c 7592 return 2;
7593 return 0;
542f9784 7594}
7595_ACEOF
cd9a469c 7596if ac_fn_c_try_run "$LINENO"; then :
542f9784 7597
cd9a469c 7598else
7599 ac_cv_header_stdc=no
542f9784 7600fi
cd9a469c 7601rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7602 conftest.$ac_objext conftest.beam conftest.$ac_ext
542f9784 7603fi
cd9a469c 7604
542f9784 7605fi
7606fi
cd9a469c 7607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7608$as_echo "$ac_cv_header_stdc" >&6; }
542f9784 7609if test $ac_cv_header_stdc = yes; then
7610
cd9a469c 7611$as_echo "#define STDC_HEADERS 1" >>confdefs.h
542f9784 7612
7613fi
7614
7615# On IRIX 5.3, sys/types and inttypes.h are conflicting.
542f9784 7616for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7617 inttypes.h stdint.h unistd.h
cd9a469c 7618do :
7619 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7620ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7621"
7622eval as_val=\$$as_ac_Header
7623 if test "x$as_val" = x""yes; then :
542f9784 7624 cat >>confdefs.h <<_ACEOF
cd9a469c 7625#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
542f9784 7626_ACEOF
7627
7628fi
7629
7630done
7631
7632
542f9784 7633for ac_header in dlfcn.h
cd9a469c 7634do :
7635 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7636"
7637if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
542f9784 7638 cat >>confdefs.h <<_ACEOF
cd9a469c 7639#define HAVE_DLFCN_H 1
542f9784 7640_ACEOF
7641
7642fi
7643
7644done
7645
7646
7647
e6408286 7648
7649
6d873a38 7650# Set options
7651
7652
7653
7654 enable_dlopen=no
7655
7656
7657 enable_win32_dll=no
7658
7659
cd9a469c 7660 # Check whether --enable-shared was given.
7661if test "${enable_shared+set}" = set; then :
7662 enableval=$enable_shared; p=${PACKAGE-default}
6d873a38 7663 case $enableval in
7664 yes) enable_shared=yes ;;
7665 no) enable_shared=no ;;
7666 *)
7667 enable_shared=no
7668 # Look at the argument we got. We use all the common list separators.
7669 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7670 for pkg in $enableval; do
7671 IFS="$lt_save_ifs"
7672 if test "X$pkg" = "X$p"; then
7673 enable_shared=yes
7674 fi
7675 done
7676 IFS="$lt_save_ifs"
7677 ;;
7678 esac
7679else
7680 enable_shared=yes
cd9a469c 7681fi
7682
6d873a38 7683
7684
7685
7686
7687
7688
7689
7690
cd9a469c 7691 # Check whether --enable-static was given.
7692if test "${enable_static+set}" = set; then :
7693 enableval=$enable_static; p=${PACKAGE-default}
6d873a38 7694 case $enableval in
7695 yes) enable_static=yes ;;
7696 no) enable_static=no ;;
7697 *)
7698 enable_static=no
7699 # Look at the argument we got. We use all the common list separators.
7700 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7701 for pkg in $enableval; do
7702 IFS="$lt_save_ifs"
7703 if test "X$pkg" = "X$p"; then
7704 enable_static=yes
7705 fi
7706 done
7707 IFS="$lt_save_ifs"
7708 ;;
7709 esac
7710else
7711 enable_static=yes
cd9a469c 7712fi
7713
6d873a38 7714
7715
7716
7717
7718
7719
7720
7721
7722
cd9a469c 7723# Check whether --with-pic was given.
7724if test "${with_pic+set}" = set; then :
7725 withval=$with_pic; pic_mode="$withval"
6d873a38 7726else
7727 pic_mode=default
cd9a469c 7728fi
7729
6d873a38 7730
7731test -z "$pic_mode" && pic_mode=default
7732
7733
7734
7735
7736
7737
7738
cd9a469c 7739 # Check whether --enable-fast-install was given.
7740if test "${enable_fast_install+set}" = set; then :
7741 enableval=$enable_fast_install; p=${PACKAGE-default}
6d873a38 7742 case $enableval in
7743 yes) enable_fast_install=yes ;;
7744 no) enable_fast_install=no ;;
7745 *)
7746 enable_fast_install=no
7747 # Look at the argument we got. We use all the common list separators.
7748 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7749 for pkg in $enableval; do
7750 IFS="$lt_save_ifs"
7751 if test "X$pkg" = "X$p"; then
7752 enable_fast_install=yes
7753 fi
7754 done
7755 IFS="$lt_save_ifs"
7756 ;;
7757 esac
7758else
7759 enable_fast_install=yes
cd9a469c 7760fi
7761
6d873a38 7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
542f9784 7772# This can be used to rebuild libtool when needed
7773LIBTOOL_DEPS="$ltmain"
7774
7775# Always use our own libtool.
7776LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
e6408286 7800
542f9784 7801
7802
7803test -z "$LN_S" && LN_S="ln -s"
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818if test -n "${ZSH_VERSION+set}" ; then
7819 setopt NO_GLOB_SUBST
7820fi
7821
cd9a469c 7822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7823$as_echo_n "checking for objdir... " >&6; }
7824if test "${lt_cv_objdir+set}" = set; then :
7825 $as_echo_n "(cached) " >&6
542f9784 7826else
7827 rm -f .libs 2>/dev/null
7828mkdir .libs 2>/dev/null
7829if test -d .libs; then
7830 lt_cv_objdir=.libs
7831else
7832 # MS-DOS does not allow filenames that begin with a dot.
7833 lt_cv_objdir=_libs
7834fi
7835rmdir .libs 2>/dev/null
7836fi
cd9a469c 7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7838$as_echo "$lt_cv_objdir" >&6; }
542f9784 7839objdir=$lt_cv_objdir
7840
7841
7842
7843
7844
7845cat >>confdefs.h <<_ACEOF
7846#define LT_OBJDIR "$lt_cv_objdir/"
7847_ACEOF
7848
7849
7850
7851
542f9784 7852case $host_os in
7853aix3*)
7854 # AIX sometimes has problems with the GCC collect2 program. For some
7855 # reason, if we set the COLLECT_NAMES environment variable, the problems
7856 # vanish in a puff of smoke.
7857 if test "X${COLLECT_NAMES+set}" != Xset; then
7858 COLLECT_NAMES=
7859 export COLLECT_NAMES
7860 fi
7861 ;;
7862esac
7863
542f9784 7864# Global variables:
7865ofile=libtool
7866can_build_shared=yes
7867
7868# All known linkers require a `.a' archive for static linking (except MSVC,
7869# which needs '.lib').
7870libext=a
7871
7872with_gnu_ld="$lt_cv_prog_gnu_ld"
7873
7874old_CC="$CC"
7875old_CFLAGS="$CFLAGS"
7876
7877# Set sane defaults for various variables
7878test -z "$CC" && CC=cc
7879test -z "$LTCC" && LTCC=$CC
7880test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7881test -z "$LD" && LD=ld
7882test -z "$ac_objext" && ac_objext=o
7883
7884for cc_temp in $compiler""; do
7885 case $cc_temp in
7886 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7887 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7888 \-*) ;;
7889 *) break;;
7890 esac
7891done
e6408286 7892cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
542f9784 7893
7894
7895# Only perform the check for file, if the check method requires it
7896test -z "$MAGIC_CMD" && MAGIC_CMD=file
7897case $deplibs_check_method in
7898file_magic*)
7899 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cd9a469c 7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7901$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7902if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7903 $as_echo_n "(cached) " >&6
542f9784 7904else
7905 case $MAGIC_CMD in
7906[\\/*] | ?:[\\/]*)
7907 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7908 ;;
7909*)
7910 lt_save_MAGIC_CMD="$MAGIC_CMD"
7911 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7912 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7913 for ac_dir in $ac_dummy; do
7914 IFS="$lt_save_ifs"
7915 test -z "$ac_dir" && ac_dir=.
7916 if test -f $ac_dir/${ac_tool_prefix}file; then
7917 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7918 if test -n "$file_magic_test_file"; then
7919 case $deplibs_check_method in
7920 "file_magic "*)
7921 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7922 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7923 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7924 $EGREP "$file_magic_regex" > /dev/null; then
7925 :
7926 else
7927 cat <<_LT_EOF 1>&2
7928
7929*** Warning: the command libtool uses to detect shared libraries,
7930*** $file_magic_cmd, produces output that libtool cannot recognize.
7931*** The result is that libtool may fail to recognize shared libraries
7932*** as such. This will affect the creation of libtool libraries that
7933*** depend on shared libraries, but programs linked with such libtool
7934*** libraries will work regardless of this problem. Nevertheless, you
7935*** may want to report the problem to your system manager and/or to
7936*** bug-libtool@gnu.org
7937
7938_LT_EOF
7939 fi ;;
7940 esac
7941 fi
7942 break
7943 fi
7944 done
7945 IFS="$lt_save_ifs"
7946 MAGIC_CMD="$lt_save_MAGIC_CMD"
7947 ;;
7948esac
7949fi
7950
7951MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7952if test -n "$MAGIC_CMD"; then
cd9a469c 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7954$as_echo "$MAGIC_CMD" >&6; }
542f9784 7955else
cd9a469c 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957$as_echo "no" >&6; }
542f9784 7958fi
7959
7960
7961
7962
7963
7964if test -z "$lt_cv_path_MAGIC_CMD"; then
7965 if test -n "$ac_tool_prefix"; then
cd9a469c 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7967$as_echo_n "checking for file... " >&6; }
7968if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
542f9784 7970else
7971 case $MAGIC_CMD in
7972[\\/*] | ?:[\\/]*)
7973 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7974 ;;
7975*)
7976 lt_save_MAGIC_CMD="$MAGIC_CMD"
7977 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7978 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7979 for ac_dir in $ac_dummy; do
7980 IFS="$lt_save_ifs"
7981 test -z "$ac_dir" && ac_dir=.
7982 if test -f $ac_dir/file; then
7983 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7984 if test -n "$file_magic_test_file"; then
7985 case $deplibs_check_method in
7986 "file_magic "*)
7987 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7989 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7990 $EGREP "$file_magic_regex" > /dev/null; then
7991 :
7992 else
7993 cat <<_LT_EOF 1>&2
7994
7995*** Warning: the command libtool uses to detect shared libraries,
7996*** $file_magic_cmd, produces output that libtool cannot recognize.
7997*** The result is that libtool may fail to recognize shared libraries
7998*** as such. This will affect the creation of libtool libraries that
7999*** depend on shared libraries, but programs linked with such libtool
8000*** libraries will work regardless of this problem. Nevertheless, you
8001*** may want to report the problem to your system manager and/or to
8002*** bug-libtool@gnu.org
8003
8004_LT_EOF
8005 fi ;;
8006 esac
8007 fi
8008 break
8009 fi
8010 done
8011 IFS="$lt_save_ifs"
8012 MAGIC_CMD="$lt_save_MAGIC_CMD"
8013 ;;
8014esac
8015fi
8016
8017MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8018if test -n "$MAGIC_CMD"; then
cd9a469c 8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8020$as_echo "$MAGIC_CMD" >&6; }
542f9784 8021else
cd9a469c 8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023$as_echo "no" >&6; }
542f9784 8024fi
8025
8026
8027 else
8028 MAGIC_CMD=:
8029 fi
8030fi
8031
8032 fi
8033 ;;
8034esac
8035
8036# Use C for the default configuration in the libtool script
8037
8038lt_save_CC="$CC"
8039ac_ext=c
8040ac_cpp='$CPP $CPPFLAGS'
8041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8043ac_compiler_gnu=$ac_cv_c_compiler_gnu
8044
8045
8046# Source file extension for C test sources.
8047ac_ext=c
8048
8049# Object file extension for compiled C test sources.
8050objext=o
8051objext=$objext
8052
8053# Code to be used in simple compile tests
8054lt_simple_compile_test_code="int some_variable = 0;"
8055
8056# Code to be used in simple link tests
8057lt_simple_link_test_code='int main(){return(0);}'
8058
8059
8060
8061
8062
8063
8064
8065# If no C compiler was specified, use CC.
8066LTCC=${LTCC-"$CC"}
8067
8068# If no C compiler flags were specified, use CFLAGS.
8069LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8070
8071# Allow CC to be a program name with arguments.
8072compiler=$CC
8073
8074# Save the default compiler, since it gets overwritten when the other
8075# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8076compiler_DEFAULT=$CC
8077
8078# save warnings/boilerplate of simple test code
8079ac_outfile=conftest.$ac_objext
8080echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8081eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8082_lt_compiler_boilerplate=`cat conftest.err`
8083$RM conftest*
8084
8085ac_outfile=conftest.$ac_objext
8086echo "$lt_simple_link_test_code" >conftest.$ac_ext
8087eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8088_lt_linker_boilerplate=`cat conftest.err`
6d873a38 8089$RM -r conftest*
542f9784 8090
8091
8092## CAVEAT EMPTOR:
8093## There is no encapsulation within the following macros, do not change
8094## the running order or otherwise move them around unless you know exactly
8095## what you are doing...
8096if test -n "$compiler"; then
8097
8098lt_prog_compiler_no_builtin_flag=
8099
8100if test "$GCC" = yes; then
e6408286 8101 case $cc_basename in
8102 nvcc*)
8103 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8104 *)
8105 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8106 esac
542f9784 8107
cd9a469c 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8109$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8110if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
542f9784 8112else
8113 lt_cv_prog_compiler_rtti_exceptions=no
8114 ac_outfile=conftest.$ac_objext
8115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8116 lt_compiler_flag="-fno-rtti -fno-exceptions"
8117 # Insert the option either (1) after the last *FLAGS variable, or
8118 # (2) before a word containing "conftest.", or (3) at the end.
8119 # Note that $ac_compile itself does not contain backslashes and begins
8120 # with a dollar sign (not a hyphen), so the echo should work correctly.
8121 # The option is referenced via a variable to avoid confusing sed.
8122 lt_compile=`echo "$ac_compile" | $SED \
8123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8125 -e 's:$: $lt_compiler_flag:'`
e6408286 8126 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 8127 (eval "$lt_compile" 2>conftest.err)
8128 ac_status=$?
8129 cat conftest.err >&5
e6408286 8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 8131 if (exit $ac_status) && test -s "$ac_outfile"; then
8132 # The compiler can only warn and ignore the option if not recognized
8133 # So say no if there are warnings other than the usual output.
e6408286 8134 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 8135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8136 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8137 lt_cv_prog_compiler_rtti_exceptions=yes
8138 fi
8139 fi
8140 $RM conftest*
8141
8142fi
cd9a469c 8143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8144$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
542f9784 8145
8146if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8147 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8148else
8149 :
8150fi
8151
8152fi
8153
8154
8155
8156
8157
8158
8159 lt_prog_compiler_wl=
8160lt_prog_compiler_pic=
8161lt_prog_compiler_static=
8162
cd9a469c 8163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8164$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
542f9784 8165
8166 if test "$GCC" = yes; then
8167 lt_prog_compiler_wl='-Wl,'
8168 lt_prog_compiler_static='-static'
8169
8170 case $host_os in
8171 aix*)
8172 # All AIX code is PIC.
8173 if test "$host_cpu" = ia64; then
8174 # AIX 5 now supports IA64 processor
8175 lt_prog_compiler_static='-Bstatic'
8176 fi
33cbbd54 8177 lt_prog_compiler_pic='-fPIC'
542f9784 8178 ;;
8179
8180 amigaos*)
6d873a38 8181 case $host_cpu in
8182 powerpc)
8183 # see comment about AmigaOS4 .so support
8184 lt_prog_compiler_pic='-fPIC'
8185 ;;
8186 m68k)
8187 # FIXME: we need at least 68020 code to build shared libraries, but
8188 # adding the `-m68020' flag to GCC prevents building anything better,
8189 # like `-m68040'.
8190 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8191 ;;
8192 esac
542f9784 8193 ;;
8194
8195 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8196 # PIC is the default for these OSes.
8197 ;;
8198
6d873a38 8199 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 8200 # This hack is so that the source file can tell whether it is being
8201 # built for inclusion in a dll (and should export symbols for example).
8202 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8203 # (--disable-auto-import) libraries
8204 lt_prog_compiler_pic='-DDLL_EXPORT'
8205 ;;
8206
8207 darwin* | rhapsody*)
8208 # PIC is the default on this platform
8209 # Common symbols not allowed in MH_DYLIB files
8210 lt_prog_compiler_pic='-fno-common'
8211 ;;
8212
e6408286 8213 haiku*)
8214 # PIC is the default for Haiku.
8215 # The "-static" flag exists, but is broken.
8216 lt_prog_compiler_static=
8217 ;;
8218
542f9784 8219 hpux*)
6d873a38 8220 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8221 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8222 # sets the default TLS model and affects inlining.
542f9784 8223 case $host_cpu in
6d873a38 8224 hppa*64*)
542f9784 8225 # +Z the default
8226 ;;
8227 *)
8228 lt_prog_compiler_pic='-fPIC'
8229 ;;
8230 esac
8231 ;;
8232
8233 interix[3-9]*)
8234 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8235 # Instead, we relocate shared libraries at runtime.
8236 ;;
8237
8238 msdosdjgpp*)
8239 # Just because we use GCC doesn't mean we suddenly get shared libraries
8240 # on systems that don't support them.
8241 lt_prog_compiler_can_build_shared=no
8242 enable_shared=no
8243 ;;
8244
8245 *nto* | *qnx*)
8246 # QNX uses GNU C++, but need to define -shared option too, otherwise
8247 # it will coredump.
8248 lt_prog_compiler_pic='-fPIC -shared'
8249 ;;
8250
8251 sysv4*MP*)
8252 if test -d /usr/nec; then
8253 lt_prog_compiler_pic=-Kconform_pic
8254 fi
8255 ;;
8256
8257 *)
8258 lt_prog_compiler_pic='-fPIC'
8259 ;;
8260 esac
e6408286 8261
8262 case $cc_basename in
8263 nvcc*) # Cuda Compiler Driver 2.2
8264 lt_prog_compiler_wl='-Xlinker '
8265 lt_prog_compiler_pic='-Xcompiler -fPIC'
8266 ;;
8267 esac
542f9784 8268 else
8269 # PORTME Check for flag to pass linker flags through the system compiler.
8270 case $host_os in
8271 aix*)
8272 lt_prog_compiler_wl='-Wl,'
8273 if test "$host_cpu" = ia64; then
8274 # AIX 5 now supports IA64 processor
8275 lt_prog_compiler_static='-Bstatic'
8276 else
8277 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8278 fi
8279 ;;
542f9784 8280
6d873a38 8281 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 8282 # This hack is so that the source file can tell whether it is being
8283 # built for inclusion in a dll (and should export symbols for example).
8284 lt_prog_compiler_pic='-DDLL_EXPORT'
8285 ;;
8286
8287 hpux9* | hpux10* | hpux11*)
8288 lt_prog_compiler_wl='-Wl,'
8289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8290 # not for PA HP-UX.
8291 case $host_cpu in
8292 hppa*64*|ia64*)
8293 # +Z the default
8294 ;;
8295 *)
8296 lt_prog_compiler_pic='+Z'
8297 ;;
8298 esac
8299 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8300 lt_prog_compiler_static='${wl}-a ${wl}archive'
8301 ;;
8302
8303 irix5* | irix6* | nonstopux*)
8304 lt_prog_compiler_wl='-Wl,'
8305 # PIC (with -KPIC) is the default.
8306 lt_prog_compiler_static='-non_shared'
8307 ;;
8308
9af964d4 8309 linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 8310 case $cc_basename in
6d873a38 8311 # old Intel for x86_64 which still supported -KPIC.
8312 ecc*)
542f9784 8313 lt_prog_compiler_wl='-Wl,'
8314 lt_prog_compiler_pic='-KPIC'
8315 lt_prog_compiler_static='-static'
8316 ;;
6d873a38 8317 # icc used to be incompatible with GCC.
8318 # ICC 10 doesn't accept -KPIC any more.
8319 icc* | ifort*)
8320 lt_prog_compiler_wl='-Wl,'
8321 lt_prog_compiler_pic='-fPIC'
8322 lt_prog_compiler_static='-static'
8323 ;;
8324 # Lahey Fortran 8.1.
8325 lf95*)
8326 lt_prog_compiler_wl='-Wl,'
8327 lt_prog_compiler_pic='--shared'
8328 lt_prog_compiler_static='--static'
8329 ;;
e6408286 8330 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
542f9784 8331 # Portland Group compilers (*not* the Pentium gcc compiler,
8332 # which looks to be a dead project)
8333 lt_prog_compiler_wl='-Wl,'
8334 lt_prog_compiler_pic='-fpic'
8335 lt_prog_compiler_static='-Bstatic'
8336 ;;
8337 ccc*)
8338 lt_prog_compiler_wl='-Wl,'
8339 # All Alpha code is PIC.
8340 lt_prog_compiler_static='-non_shared'
8341 ;;
e6408286 8342 xl* | bgxl* | bgf* | mpixl*)
8343 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
6d873a38 8344 lt_prog_compiler_wl='-Wl,'
8345 lt_prog_compiler_pic='-qpic'
8346 lt_prog_compiler_static='-qstaticlink'
8347 ;;
542f9784 8348 *)
8349 case `$CC -V 2>&1 | sed 5q` in
e6408286 8350 *Sun\ F* | *Sun*Fortran*)
8351 # Sun Fortran 8.3 passes all unrecognized flags to the linker
542f9784 8352 lt_prog_compiler_pic='-KPIC'
8353 lt_prog_compiler_static='-Bstatic'
e6408286 8354 lt_prog_compiler_wl=''
542f9784 8355 ;;
e6408286 8356 *Sun\ C*)
8357 # Sun C 5.9
542f9784 8358 lt_prog_compiler_pic='-KPIC'
8359 lt_prog_compiler_static='-Bstatic'
e6408286 8360 lt_prog_compiler_wl='-Wl,'
542f9784 8361 ;;
8362 esac
8363 ;;
8364 esac
8365 ;;
8366
8367 newsos6)
8368 lt_prog_compiler_pic='-KPIC'
8369 lt_prog_compiler_static='-Bstatic'
8370 ;;
8371
8372 *nto* | *qnx*)
8373 # QNX uses GNU C++, but need to define -shared option too, otherwise
8374 # it will coredump.
8375 lt_prog_compiler_pic='-fPIC -shared'
8376 ;;
8377
8378 osf3* | osf4* | osf5*)
8379 lt_prog_compiler_wl='-Wl,'
8380 # All OSF/1 code is PIC.
8381 lt_prog_compiler_static='-non_shared'
8382 ;;
8383
8384 rdos*)
8385 lt_prog_compiler_static='-non_shared'
8386 ;;
8387
8388 solaris*)
8389 lt_prog_compiler_pic='-KPIC'
8390 lt_prog_compiler_static='-Bstatic'
8391 case $cc_basename in
8392 f77* | f90* | f95*)
8393 lt_prog_compiler_wl='-Qoption ld ';;
8394 *)
8395 lt_prog_compiler_wl='-Wl,';;
8396 esac
8397 ;;
8398
8399 sunos4*)
8400 lt_prog_compiler_wl='-Qoption ld '
8401 lt_prog_compiler_pic='-PIC'
8402 lt_prog_compiler_static='-Bstatic'
8403 ;;
8404
8405 sysv4 | sysv4.2uw2* | sysv4.3*)
8406 lt_prog_compiler_wl='-Wl,'
8407 lt_prog_compiler_pic='-KPIC'
8408 lt_prog_compiler_static='-Bstatic'
8409 ;;
8410
8411 sysv4*MP*)
8412 if test -d /usr/nec ;then
8413 lt_prog_compiler_pic='-Kconform_pic'
8414 lt_prog_compiler_static='-Bstatic'
8415 fi
8416 ;;
8417
8418 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8419 lt_prog_compiler_wl='-Wl,'
8420 lt_prog_compiler_pic='-KPIC'
8421 lt_prog_compiler_static='-Bstatic'
8422 ;;
8423
8424 unicos*)
8425 lt_prog_compiler_wl='-Wl,'
8426 lt_prog_compiler_can_build_shared=no
8427 ;;
8428
8429 uts4*)
8430 lt_prog_compiler_pic='-pic'
8431 lt_prog_compiler_static='-Bstatic'
8432 ;;
8433
8434 *)
8435 lt_prog_compiler_can_build_shared=no
8436 ;;
8437 esac
8438 fi
8439
8440case $host_os in
8441 # For platforms which do not support PIC, -DPIC is meaningless:
8442 *djgpp*)
8443 lt_prog_compiler_pic=
8444 ;;
8445 *)
8446 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8447 ;;
8448esac
cd9a469c 8449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8450$as_echo "$lt_prog_compiler_pic" >&6; }
542f9784 8451
8452
8453
8454
8455
8456
8457#
8458# Check to make sure the PIC flag actually works.
8459#
8460if test -n "$lt_prog_compiler_pic"; then
cd9a469c 8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8462$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8463if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8464 $as_echo_n "(cached) " >&6
542f9784 8465else
6d873a38 8466 lt_cv_prog_compiler_pic_works=no
542f9784 8467 ac_outfile=conftest.$ac_objext
8468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8469 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8470 # Insert the option either (1) after the last *FLAGS variable, or
8471 # (2) before a word containing "conftest.", or (3) at the end.
8472 # Note that $ac_compile itself does not contain backslashes and begins
8473 # with a dollar sign (not a hyphen), so the echo should work correctly.
8474 # The option is referenced via a variable to avoid confusing sed.
8475 lt_compile=`echo "$ac_compile" | $SED \
8476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8478 -e 's:$: $lt_compiler_flag:'`
e6408286 8479 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 8480 (eval "$lt_compile" 2>conftest.err)
8481 ac_status=$?
8482 cat conftest.err >&5
e6408286 8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 8484 if (exit $ac_status) && test -s "$ac_outfile"; then
8485 # The compiler can only warn and ignore the option if not recognized
8486 # So say no if there are warnings other than the usual output.
e6408286 8487 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 8488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8489 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6d873a38 8490 lt_cv_prog_compiler_pic_works=yes
542f9784 8491 fi
8492 fi
8493 $RM conftest*
8494
8495fi
cd9a469c 8496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8497$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
542f9784 8498
6d873a38 8499if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
542f9784 8500 case $lt_prog_compiler_pic in
8501 "" | " "*) ;;
8502 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8503 esac
8504else
8505 lt_prog_compiler_pic=
8506 lt_prog_compiler_can_build_shared=no
8507fi
8508
8509fi
8510
8511
8512
8513
8514
8515
8516#
8517# Check to make sure the static flag actually works.
8518#
8519wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cd9a469c 8520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8521$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8522if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8523 $as_echo_n "(cached) " >&6
542f9784 8524else
6d873a38 8525 lt_cv_prog_compiler_static_works=no
542f9784 8526 save_LDFLAGS="$LDFLAGS"
8527 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8528 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8529 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8530 # The linker can only warn and ignore the option if not recognized
8531 # So say no if there are warnings
8532 if test -s conftest.err; then
8533 # Append any errors to the config.log.
8534 cat conftest.err 1>&5
e6408286 8535 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
542f9784 8536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8537 if diff conftest.exp conftest.er2 >/dev/null; then
6d873a38 8538 lt_cv_prog_compiler_static_works=yes
542f9784 8539 fi
8540 else
6d873a38 8541 lt_cv_prog_compiler_static_works=yes
542f9784 8542 fi
8543 fi
6d873a38 8544 $RM -r conftest*
542f9784 8545 LDFLAGS="$save_LDFLAGS"
8546
8547fi
cd9a469c 8548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8549$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
542f9784 8550
6d873a38 8551if test x"$lt_cv_prog_compiler_static_works" = xyes; then
542f9784 8552 :
8553else
8554 lt_prog_compiler_static=
8555fi
8556
8557
8558
8559
8560
8561
8562
cd9a469c 8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8564$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8565if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8566 $as_echo_n "(cached) " >&6
542f9784 8567else
8568 lt_cv_prog_compiler_c_o=no
8569 $RM -r conftest 2>/dev/null
8570 mkdir conftest
8571 cd conftest
8572 mkdir out
8573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8574
8575 lt_compiler_flag="-o out/conftest2.$ac_objext"
8576 # Insert the option either (1) after the last *FLAGS variable, or
8577 # (2) before a word containing "conftest.", or (3) at the end.
8578 # Note that $ac_compile itself does not contain backslashes and begins
8579 # with a dollar sign (not a hyphen), so the echo should work correctly.
8580 lt_compile=`echo "$ac_compile" | $SED \
8581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8583 -e 's:$: $lt_compiler_flag:'`
e6408286 8584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 8585 (eval "$lt_compile" 2>out/conftest.err)
8586 ac_status=$?
8587 cat out/conftest.err >&5
e6408286 8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 8589 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8590 then
8591 # The compiler can only warn and ignore the option if not recognized
8592 # So say no if there are warnings
e6408286 8593 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 8594 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8595 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8596 lt_cv_prog_compiler_c_o=yes
8597 fi
8598 fi
8599 chmod u+w . 2>&5
8600 $RM conftest*
8601 # SGI C++ compiler will create directory out/ii_files/ for
8602 # template instantiation
8603 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8604 $RM out/* && rmdir out
8605 cd ..
8606 $RM -r conftest
8607 $RM conftest*
8608
8609fi
cd9a469c 8610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8611$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
542f9784 8612
8613
8614
8615
8616
8617
cd9a469c 8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8619$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8620if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8621 $as_echo_n "(cached) " >&6
542f9784 8622else
8623 lt_cv_prog_compiler_c_o=no
8624 $RM -r conftest 2>/dev/null
8625 mkdir conftest
8626 cd conftest
8627 mkdir out
8628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8629
8630 lt_compiler_flag="-o out/conftest2.$ac_objext"
8631 # Insert the option either (1) after the last *FLAGS variable, or
8632 # (2) before a word containing "conftest.", or (3) at the end.
8633 # Note that $ac_compile itself does not contain backslashes and begins
8634 # with a dollar sign (not a hyphen), so the echo should work correctly.
8635 lt_compile=`echo "$ac_compile" | $SED \
8636 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8637 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8638 -e 's:$: $lt_compiler_flag:'`
e6408286 8639 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 8640 (eval "$lt_compile" 2>out/conftest.err)
8641 ac_status=$?
8642 cat out/conftest.err >&5
e6408286 8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 8644 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8645 then
8646 # The compiler can only warn and ignore the option if not recognized
8647 # So say no if there are warnings
e6408286 8648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 8649 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8650 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8651 lt_cv_prog_compiler_c_o=yes
8652 fi
8653 fi
8654 chmod u+w . 2>&5
8655 $RM conftest*
8656 # SGI C++ compiler will create directory out/ii_files/ for
8657 # template instantiation
8658 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8659 $RM out/* && rmdir out
8660 cd ..
8661 $RM -r conftest
8662 $RM conftest*
8663
8664fi
cd9a469c 8665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8666$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
542f9784 8667
8668
8669
8670
8671hard_links="nottested"
8672if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8673 # do not overwrite the value of need_locks provided by the user
cd9a469c 8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8675$as_echo_n "checking if we can lock with hard links... " >&6; }
542f9784 8676 hard_links=yes
8677 $RM conftest*
8678 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8679 touch conftest.a
8680 ln conftest.a conftest.b 2>&5 || hard_links=no
8681 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cd9a469c 8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8683$as_echo "$hard_links" >&6; }
542f9784 8684 if test "$hard_links" = no; then
cd9a469c 8685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8686$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
542f9784 8687 need_locks=warn
8688 fi
8689else
8690 need_locks=no
8691fi
8692
8693
8694
8695
8696
8697
cd9a469c 8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8699$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
542f9784 8700
8701 runpath_var=
8702 allow_undefined_flag=
8703 always_export_symbols=no
8704 archive_cmds=
8705 archive_expsym_cmds=
8706 compiler_needs_object=no
8707 enable_shared_with_static_runtimes=no
8708 export_dynamic_flag_spec=
8709 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8710 hardcode_automatic=no
8711 hardcode_direct=no
8712 hardcode_direct_absolute=no
8713 hardcode_libdir_flag_spec=
8714 hardcode_libdir_flag_spec_ld=
8715 hardcode_libdir_separator=
8716 hardcode_minus_L=no
8717 hardcode_shlibpath_var=unsupported
8718 inherit_rpath=no
8719 link_all_deplibs=unknown
8720 module_cmds=
8721 module_expsym_cmds=
8722 old_archive_from_new_cmds=
8723 old_archive_from_expsyms_cmds=
8724 thread_safe_flag_spec=
8725 whole_archive_flag_spec=
8726 # include_expsyms should be a list of space-separated symbols to be *always*
8727 # included in the symbol list
8728 include_expsyms=
8729 # exclude_expsyms can be an extended regexp of symbols to exclude
8730 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8731 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8732 # as well as any symbol that contains `d'.
6d873a38 8733 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
542f9784 8734 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8735 # platforms (ab)use it in PIC code, but their linkers get confused if
8736 # the symbol is explicitly referenced. Since portable code cannot
8737 # rely on this symbol name, it's probably fine to never include it in
8738 # preloaded symbol tables.
6d873a38 8739 # Exclude shared library initialization/finalization symbols.
542f9784 8740 extract_expsyms_cmds=
8741
8742 case $host_os in
6d873a38 8743 cygwin* | mingw* | pw32* | cegcc*)
542f9784 8744 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8745 # When not using gcc, we currently assume that we are using
8746 # Microsoft Visual C++.
8747 if test "$GCC" != yes; then
8748 with_gnu_ld=no
8749 fi
8750 ;;
8751 interix*)
8752 # we just hope/assume this is gcc and not c89 (= MSVC++)
8753 with_gnu_ld=yes
8754 ;;
8755 openbsd*)
8756 with_gnu_ld=no
8757 ;;
8758 esac
8759
8760 ld_shlibs=yes
e6408286 8761
8762 # On some targets, GNU ld is compatible enough with the native linker
8763 # that we're better off using the native interface for both.
8764 lt_use_gnu_ld_interface=no
542f9784 8765 if test "$with_gnu_ld" = yes; then
e6408286 8766 case $host_os in
8767 aix*)
8768 # The AIX port of GNU ld has always aspired to compatibility
8769 # with the native linker. However, as the warning in the GNU ld
8770 # block says, versions before 2.19.5* couldn't really create working
8771 # shared libraries, regardless of the interface used.
8772 case `$LD -v 2>&1` in
8773 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8774 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8775 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8776 *)
8777 lt_use_gnu_ld_interface=yes
8778 ;;
8779 esac
8780 ;;
8781 *)
8782 lt_use_gnu_ld_interface=yes
8783 ;;
8784 esac
8785 fi
8786
8787 if test "$lt_use_gnu_ld_interface" = yes; then
542f9784 8788 # If archive_cmds runs LD, not CC, wlarc should be empty
8789 wlarc='${wl}'
8790
8791 # Set some defaults for GNU ld with shared library support. These
8792 # are reset later if shared libraries are not supported. Putting them
8793 # here allows them to be overridden if necessary.
8794 runpath_var=LD_RUN_PATH
8795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8796 export_dynamic_flag_spec='${wl}--export-dynamic'
8797 # ancient GNU ld didn't support --whole-archive et. al.
8798 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8799 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8800 else
8801 whole_archive_flag_spec=
8802 fi
8803 supports_anon_versioning=no
8804 case `$LD -v 2>&1` in
e6408286 8805 *GNU\ gold*) supports_anon_versioning=yes ;;
542f9784 8806 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8807 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8808 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8809 *\ 2.11.*) ;; # other 2.11 versions
8810 *) supports_anon_versioning=yes ;;
8811 esac
8812
8813 # See if GNU ld supports shared libraries.
8814 case $host_os in
c8db569e 8815 aix[3-9]*)
542f9784 8816 # On AIX/PPC, the GNU linker is very broken
8817 if test "$host_cpu" != ia64; then
8818 ld_shlibs=no
8819 cat <<_LT_EOF 1>&2
8820
e6408286 8821*** Warning: the GNU linker, at least up to release 2.19, is reported
542f9784 8822*** to be unable to reliably create shared libraries on AIX.
8823*** Therefore, libtool is disabling shared libraries support. If you
e6408286 8824*** really care for shared libraries, you may want to install binutils
8825*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8826*** You will then need to restart the configuration process.
542f9784 8827
8828_LT_EOF
8829 fi
8830 ;;
8831
8832 amigaos*)
6d873a38 8833 case $host_cpu in
8834 powerpc)
8835 # see comment about AmigaOS4 .so support
8836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8837 archive_expsym_cmds=''
8838 ;;
8839 m68k)
8840 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)'
8841 hardcode_libdir_flag_spec='-L$libdir'
8842 hardcode_minus_L=yes
8843 ;;
8844 esac
542f9784 8845 ;;
8846
8847 beos*)
8848 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8849 allow_undefined_flag=unsupported
8850 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8851 # support --undefined. This deserves some investigation. FIXME
8852 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8853 else
8854 ld_shlibs=no
8855 fi
8856 ;;
8857
6d873a38 8858 cygwin* | mingw* | pw32* | cegcc*)
542f9784 8859 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8860 # as there is no search path for DLLs.
8861 hardcode_libdir_flag_spec='-L$libdir'
e6408286 8862 export_dynamic_flag_spec='${wl}--export-all-symbols'
542f9784 8863 allow_undefined_flag=unsupported
8864 always_export_symbols=no
8865 enable_shared_with_static_runtimes=yes
8866 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8867
8868 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8870 # If the export-symbols file already is a .def file (1st line
8871 # is EXPORTS), use it as is; otherwise, prepend...
8872 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8873 cp $export_symbols $output_objdir/$soname.def;
8874 else
8875 echo EXPORTS > $output_objdir/$soname.def;
8876 cat $export_symbols >> $output_objdir/$soname.def;
8877 fi~
8878 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8879 else
8880 ld_shlibs=no
8881 fi
8882 ;;
8883
e6408286 8884 haiku*)
8885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8886 link_all_deplibs=yes
8887 ;;
8888
542f9784 8889 interix[3-9]*)
8890 hardcode_direct=no
8891 hardcode_shlibpath_var=no
8892 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8893 export_dynamic_flag_spec='${wl}-E'
8894 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8895 # Instead, shared libraries are loaded at an image base (0x10000000 by
8896 # default) and relocated if they conflict, which is a slow very memory
8897 # consuming and fragmenting process. To avoid this, we pick a random,
8898 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8899 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8900 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8901 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'
8902 ;;
8903
9af964d4 8904 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 8905 tmp_diet=no
8906 if test "$host_os" = linux-dietlibc; then
8907 case $cc_basename in
8908 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8909 esac
8910 fi
8911 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8912 && test "$tmp_diet" = no
8913 then
4e8a08d4 8914 tmp_addflag=' $pic_flag'
6d873a38 8915 tmp_sharedflag='-shared'
542f9784 8916 case $cc_basename,$host_cpu in
8917 pgcc*) # Portland Group C compiler
e6408286 8918 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 8919 tmp_addflag=' $pic_flag'
8920 ;;
e6408286 8921 pgf77* | pgf90* | pgf95* | pgfortran*)
8922 # Portland Group f77 and f90 compilers
8923 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 8924 tmp_addflag=' $pic_flag -Mnomain' ;;
8925 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8926 tmp_addflag=' -i_dynamic' ;;
8927 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8928 tmp_addflag=' -i_dynamic -nofor_main' ;;
8929 ifc* | ifort*) # Intel Fortran compiler
8930 tmp_addflag=' -nofor_main' ;;
6d873a38 8931 lf95*) # Lahey Fortran 8.1
8932 whole_archive_flag_spec=
8933 tmp_sharedflag='--shared' ;;
e6408286 8934 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
6d873a38 8935 tmp_sharedflag='-qmkshrobj'
8936 tmp_addflag= ;;
e6408286 8937 nvcc*) # Cuda Compiler Driver 2.2
8938 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'
8939 compiler_needs_object=yes
8940 ;;
542f9784 8941 esac
8942 case `$CC -V 2>&1 | sed 5q` in
8943 *Sun\ C*) # Sun C 5.9
e6408286 8944 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 8945 compiler_needs_object=yes
8946 tmp_sharedflag='-G' ;;
8947 *Sun\ F*) # Sun Fortran 8.3
8948 tmp_sharedflag='-G' ;;
542f9784 8949 esac
8950 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8951
8952 if test "x$supports_anon_versioning" = xyes; then
8953 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8954 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8955 echo "local: *; };" >> $output_objdir/$libname.ver~
8956 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8957 fi
6d873a38 8958
8959 case $cc_basename in
e6408286 8960 xlf* | bgf* | bgxlf* | mpixlf*)
6d873a38 8961 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8962 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8963 hardcode_libdir_flag_spec=
8964 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8965 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8966 if test "x$supports_anon_versioning" = xyes; then
8967 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8968 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8969 echo "local: *; };" >> $output_objdir/$libname.ver~
8970 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8971 fi
8972 ;;
8973 esac
542f9784 8974 else
8975 ld_shlibs=no
8976 fi
8977 ;;
8978
8979 netbsd*)
8980 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8981 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8982 wlarc=
8983 else
8984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8985 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8986 fi
8987 ;;
8988
8989 solaris*)
8990 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8991 ld_shlibs=no
8992 cat <<_LT_EOF 1>&2
8993
8994*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8995*** create shared libraries on Solaris systems. Therefore, libtool
8996*** is disabling shared libraries support. We urge you to upgrade GNU
8997*** binutils to release 2.9.1 or newer. Another option is to modify
8998*** your PATH or compiler configuration so that the native linker is
8999*** used, and then restart.
9000
9001_LT_EOF
9002 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9004 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9005 else
9006 ld_shlibs=no
9007 fi
9008 ;;
9009
9010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9011 case `$LD -v 2>&1` in
9012 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9013 ld_shlibs=no
9014 cat <<_LT_EOF 1>&2
9015
9016*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9017*** reliably create shared libraries on SCO systems. Therefore, libtool
9018*** is disabling shared libraries support. We urge you to upgrade GNU
9019*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9020*** your PATH or compiler configuration so that the native linker is
9021*** used, and then restart.
9022
9023_LT_EOF
9024 ;;
9025 *)
9026 # For security reasons, it is highly recommended that you always
9027 # use absolute paths for naming shared libraries, and exclude the
9028 # DT_RUNPATH tag from executables and libraries. But doing so
9029 # requires that you compile everything twice, which is a pain.
9030 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9034 else
9035 ld_shlibs=no
9036 fi
9037 ;;
9038 esac
9039 ;;
9040
9041 sunos4*)
9042 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9043 wlarc=
9044 hardcode_direct=yes
9045 hardcode_shlibpath_var=no
9046 ;;
9047
9048 *)
9049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9051 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9052 else
9053 ld_shlibs=no
9054 fi
9055 ;;
9056 esac
9057
9058 if test "$ld_shlibs" = no; then
9059 runpath_var=
9060 hardcode_libdir_flag_spec=
9061 export_dynamic_flag_spec=
9062 whole_archive_flag_spec=
9063 fi
9064 else
9065 # PORTME fill in a description of your system's linker (not GNU ld)
9066 case $host_os in
9067 aix3*)
9068 allow_undefined_flag=unsupported
9069 always_export_symbols=yes
9070 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'
9071 # Note: this linker hardcodes the directories in LIBPATH if there
9072 # are no directories specified by -L.
9073 hardcode_minus_L=yes
9074 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9075 # Neither direct hardcoding nor static linking is supported with a
9076 # broken collect2.
9077 hardcode_direct=unsupported
9078 fi
9079 ;;
9080
c8db569e 9081 aix[4-9]*)
542f9784 9082 if test "$host_cpu" = ia64; then
9083 # On IA64, the linker does run time linking by default, so we don't
9084 # have to do anything special.
9085 aix_use_runtimelinking=no
9086 exp_sym_flag='-Bexport'
9087 no_entry_flag=""
9088 else
9089 # If we're using GNU nm, then we don't want the "-C" option.
9090 # -C means demangle to AIX nm, but means don't demangle with GNU nm
e6408286 9091 # Also, AIX nm treats weak defined symbols like other global
9092 # defined symbols, whereas GNU nm marks them as "W".
542f9784 9093 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
e6408286 9094 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 9095 else
9096 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'
9097 fi
9098 aix_use_runtimelinking=no
9099
9100 # Test if we are trying to use run time linking or normal
9101 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9102 # need to do runtime linking.
c8db569e 9103 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 9104 for ld_flag in $LDFLAGS; do
9105 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9106 aix_use_runtimelinking=yes
9107 break
9108 fi
9109 done
9110 ;;
9111 esac
9112
9113 exp_sym_flag='-bexport'
9114 no_entry_flag='-bnoentry'
9115 fi
9116
9117 # When large executables or shared objects are built, AIX ld can
9118 # have problems creating the table of contents. If linking a library
9119 # or program results in "error TOC overflow" add -mminimal-toc to
9120 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9121 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9122
9123 archive_cmds=''
9124 hardcode_direct=yes
9125 hardcode_direct_absolute=yes
9126 hardcode_libdir_separator=':'
9127 link_all_deplibs=yes
9128 file_list_spec='${wl}-f,'
9129
9130 if test "$GCC" = yes; then
9131 case $host_os in aix4.[012]|aix4.[012].*)
9132 # We only want to do this on AIX 4.2 and lower, the check
9133 # below for broken collect2 doesn't work under 4.3+
9134 collect2name=`${CC} -print-prog-name=collect2`
9135 if test -f "$collect2name" &&
9136 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9137 then
9138 # We have reworked collect2
9139 :
9140 else
9141 # We have old collect2
9142 hardcode_direct=unsupported
9143 # It fails to find uninstalled libraries when the uninstalled
9144 # path is not listed in the libpath. Setting hardcode_minus_L
9145 # to unsupported forces relinking
9146 hardcode_minus_L=yes
9147 hardcode_libdir_flag_spec='-L$libdir'
9148 hardcode_libdir_separator=
9149 fi
9150 ;;
9151 esac
9152 shared_flag='-shared'
9153 if test "$aix_use_runtimelinking" = yes; then
9154 shared_flag="$shared_flag "'${wl}-G'
9155 fi
9156 else
9157 # not using gcc
9158 if test "$host_cpu" = ia64; then
9159 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9160 # chokes on -Wl,-G. The following line is correct:
9161 shared_flag='-G'
9162 else
9163 if test "$aix_use_runtimelinking" = yes; then
9164 shared_flag='${wl}-G'
9165 else
9166 shared_flag='${wl}-bM:SRE'
9167 fi
9168 fi
9169 fi
9170
6d873a38 9171 export_dynamic_flag_spec='${wl}-bexpall'
542f9784 9172 # It seems that -bexpall does not export symbols beginning with
9173 # underscore (_), so it is better to generate a list of symbols to export.
9174 always_export_symbols=yes
9175 if test "$aix_use_runtimelinking" = yes; then
9176 # Warning - without using the other runtime loading flags (-brtl),
9177 # -berok will link without error, but may produce a broken library.
9178 allow_undefined_flag='-berok'
9179 # Determine the default libpath from the value encoded in an
9180 # empty executable.
cd9a469c 9181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 9182/* end confdefs.h. */
9183
9184int
9185main ()
9186{
9187
9188 ;
9189 return 0;
9190}
9191_ACEOF
cd9a469c 9192if ac_fn_c_try_link "$LINENO"; then :
542f9784 9193
9194lt_aix_libpath_sed='
9195 /Import File Strings/,/^$/ {
9196 /^0/ {
9197 s/^0 *\(.*\)$/\1/
9198 p
9199 }
9200 }'
9201aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9202# Check for a 64-bit object if we didn't find anything.
9203if test -z "$aix_libpath"; then
9204 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9205fi
542f9784 9206fi
cd9a469c 9207rm -f core conftest.err conftest.$ac_objext \
9208 conftest$ac_exeext conftest.$ac_ext
542f9784 9209if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9210
9211 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
e6408286 9212 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 9213 else
9214 if test "$host_cpu" = ia64; then
9215 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9216 allow_undefined_flag="-z nodefs"
9217 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"
9218 else
9219 # Determine the default libpath from the value encoded in an
9220 # empty executable.
cd9a469c 9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 9222/* end confdefs.h. */
9223
9224int
9225main ()
9226{
9227
9228 ;
9229 return 0;
9230}
9231_ACEOF
cd9a469c 9232if ac_fn_c_try_link "$LINENO"; then :
542f9784 9233
9234lt_aix_libpath_sed='
9235 /Import File Strings/,/^$/ {
9236 /^0/ {
9237 s/^0 *\(.*\)$/\1/
9238 p
9239 }
9240 }'
9241aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9242# Check for a 64-bit object if we didn't find anything.
9243if test -z "$aix_libpath"; then
9244 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9245fi
542f9784 9246fi
cd9a469c 9247rm -f core conftest.err conftest.$ac_objext \
9248 conftest$ac_exeext conftest.$ac_ext
542f9784 9249if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9250
9251 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9252 # Warning - without using the other run time loading flags,
9253 # -berok will link without error, but may produce a broken library.
9254 no_undefined_flag=' ${wl}-bernotok'
9255 allow_undefined_flag=' ${wl}-berok'
e6408286 9256 if test "$with_gnu_ld" = yes; then
9257 # We only use this code for GNU lds that support --whole-archive.
9258 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9259 else
9260 # Exported symbols can be pulled into shared objects from archives
9261 whole_archive_flag_spec='$convenience'
9262 fi
542f9784 9263 archive_cmds_need_lc=yes
9264 # This is similar to how AIX traditionally builds its shared libraries.
9265 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'
9266 fi
9267 fi
9268 ;;
9269
9270 amigaos*)
6d873a38 9271 case $host_cpu in
9272 powerpc)
9273 # see comment about AmigaOS4 .so support
9274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9275 archive_expsym_cmds=''
9276 ;;
9277 m68k)
9278 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)'
9279 hardcode_libdir_flag_spec='-L$libdir'
9280 hardcode_minus_L=yes
9281 ;;
9282 esac
542f9784 9283 ;;
9284
9285 bsdi[45]*)
9286 export_dynamic_flag_spec=-rdynamic
9287 ;;
9288
6d873a38 9289 cygwin* | mingw* | pw32* | cegcc*)
542f9784 9290 # When not using gcc, we currently assume that we are using
9291 # Microsoft Visual C++.
9292 # hardcode_libdir_flag_spec is actually meaningless, as there is
9293 # no search path for DLLs.
9294 hardcode_libdir_flag_spec=' '
9295 allow_undefined_flag=unsupported
9296 # Tell ltmain to make .lib files, not .a files.
9297 libext=lib
9298 # Tell ltmain to make .dll files, not .so files.
9299 shrext_cmds=".dll"
9300 # FIXME: Setting linknames here is a bad hack.
e6408286 9301 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
542f9784 9302 # The linker will automatically build a .lib file if we build a DLL.
9303 old_archive_from_new_cmds='true'
9304 # FIXME: Should let the user specify the lib program.
9305 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9306 fix_srcfile_path='`cygpath -w "$srcfile"`'
9307 enable_shared_with_static_runtimes=yes
9308 ;;
9309
9310 darwin* | rhapsody*)
542f9784 9311
6d873a38 9312
9313 archive_cmds_need_lc=no
9314 hardcode_direct=no
9315 hardcode_automatic=yes
9316 hardcode_shlibpath_var=unsupported
e6408286 9317 if test "$lt_cv_ld_force_load" = "yes"; then
9318 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\"`'
9319 else
9320 whole_archive_flag_spec=''
9321 fi
6d873a38 9322 link_all_deplibs=yes
9323 allow_undefined_flag="$_lt_dar_allow_undefined"
9324 case $cc_basename in
9325 ifort*) _lt_dar_can_shared=yes ;;
9326 *) _lt_dar_can_shared=$GCC ;;
9327 esac
9328 if test "$_lt_dar_can_shared" = "yes"; then
e6408286 9329 output_verbose_link_cmd=func_echo_all
6d873a38 9330 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9331 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9332 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}"
9333 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}"
9334
9335 else
9336 ld_shlibs=no
9337 fi
9338
542f9784 9339 ;;
9340
9341 dgux*)
9342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9343 hardcode_libdir_flag_spec='-L$libdir'
9344 hardcode_shlibpath_var=no
9345 ;;
9346
542f9784 9347 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9348 # support. Future versions do this automatically, but an explicit c++rt0.o
9349 # does not break anything, and helps significantly (at the cost of a little
9350 # extra space).
9351 freebsd2.2*)
9352 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9353 hardcode_libdir_flag_spec='-R$libdir'
9354 hardcode_direct=yes
9355 hardcode_shlibpath_var=no
9356 ;;
9357
9358 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
30369aff 9359 freebsd2.*)
542f9784 9360 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9361 hardcode_direct=yes
9362 hardcode_minus_L=yes
9363 hardcode_shlibpath_var=no
9364 ;;
9365
9366 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9367 freebsd* | dragonfly*)
9368 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9369 hardcode_libdir_flag_spec='-R$libdir'
9370 hardcode_direct=yes
9371 hardcode_shlibpath_var=no
9372 ;;
9373
9374 hpux9*)
9375 if test "$GCC" = yes; then
9376 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'
9377 else
9378 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'
9379 fi
9380 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9381 hardcode_libdir_separator=:
9382 hardcode_direct=yes
9383
9384 # hardcode_minus_L: Not really in the search PATH,
9385 # but as the default location of the library.
9386 hardcode_minus_L=yes
9387 export_dynamic_flag_spec='${wl}-E'
9388 ;;
9389
9390 hpux10*)
e6408286 9391 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 9392 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9393 else
9394 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9395 fi
9396 if test "$with_gnu_ld" = no; then
9397 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9398 hardcode_libdir_flag_spec_ld='+b $libdir'
9399 hardcode_libdir_separator=:
9400 hardcode_direct=yes
9401 hardcode_direct_absolute=yes
9402 export_dynamic_flag_spec='${wl}-E'
9403 # hardcode_minus_L: Not really in the search PATH,
9404 # but as the default location of the library.
9405 hardcode_minus_L=yes
9406 fi
9407 ;;
9408
9409 hpux11*)
e6408286 9410 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 9411 case $host_cpu in
9412 hppa*64*)
9413 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9414 ;;
9415 ia64*)
6d873a38 9416 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
542f9784 9417 ;;
9418 *)
9419 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9420 ;;
9421 esac
9422 else
9423 case $host_cpu in
9424 hppa*64*)
9425 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9426 ;;
9427 ia64*)
9428 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9429 ;;
9430 *)
e6408286 9431
9432 # Older versions of the 11.00 compiler do not understand -b yet
9433 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9435$as_echo_n "checking if $CC understands -b... " >&6; }
9436if test "${lt_cv_prog_compiler__b+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
9438else
9439 lt_cv_prog_compiler__b=no
9440 save_LDFLAGS="$LDFLAGS"
9441 LDFLAGS="$LDFLAGS -b"
9442 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9443 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9444 # The linker can only warn and ignore the option if not recognized
9445 # So say no if there are warnings
9446 if test -s conftest.err; then
9447 # Append any errors to the config.log.
9448 cat conftest.err 1>&5
9449 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9451 if diff conftest.exp conftest.er2 >/dev/null; then
9452 lt_cv_prog_compiler__b=yes
9453 fi
9454 else
9455 lt_cv_prog_compiler__b=yes
9456 fi
9457 fi
9458 $RM -r conftest*
9459 LDFLAGS="$save_LDFLAGS"
9460
9461fi
9462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9463$as_echo "$lt_cv_prog_compiler__b" >&6; }
9464
9465if test x"$lt_cv_prog_compiler__b" = xyes; then
9466 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9467else
9468 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9469fi
9470
542f9784 9471 ;;
9472 esac
9473 fi
9474 if test "$with_gnu_ld" = no; then
9475 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9476 hardcode_libdir_separator=:
9477
9478 case $host_cpu in
9479 hppa*64*|ia64*)
9480 hardcode_direct=no
9481 hardcode_shlibpath_var=no
9482 ;;
9483 *)
9484 hardcode_direct=yes
9485 hardcode_direct_absolute=yes
9486 export_dynamic_flag_spec='${wl}-E'
9487
9488 # hardcode_minus_L: Not really in the search PATH,
9489 # but as the default location of the library.
9490 hardcode_minus_L=yes
9491 ;;
9492 esac
9493 fi
9494 ;;
9495
9496 irix5* | irix6* | nonstopux*)
9497 if test "$GCC" = yes; then
e6408286 9498 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 9499 # Try to use the -exported_symbol ld option, if it does not
9500 # work, assume that -exports_file does not work either and
9501 # implicitly export all symbols.
9502 save_LDFLAGS="$LDFLAGS"
9503 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cd9a469c 9504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9505/* end confdefs.h. */
542f9784 9506int foo(void) {}
9507_ACEOF
cd9a469c 9508if ac_fn_c_try_link "$LINENO"; then :
e6408286 9509 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 9510
542f9784 9511fi
cd9a469c 9512rm -f core conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext conftest.$ac_ext
542f9784 9514 LDFLAGS="$save_LDFLAGS"
9515 else
e6408286 9516 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'
9517 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 9518 fi
9519 archive_cmds_need_lc='no'
9520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9521 hardcode_libdir_separator=:
9522 inherit_rpath=yes
9523 link_all_deplibs=yes
9524 ;;
9525
9526 netbsd*)
9527 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9528 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9529 else
9530 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9531 fi
9532 hardcode_libdir_flag_spec='-R$libdir'
9533 hardcode_direct=yes
9534 hardcode_shlibpath_var=no
9535 ;;
9536
9537 newsos6)
9538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9539 hardcode_direct=yes
9540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9541 hardcode_libdir_separator=:
9542 hardcode_shlibpath_var=no
9543 ;;
9544
9545 *nto* | *qnx*)
9546 ;;
9547
9548 openbsd*)
6d873a38 9549 if test -f /usr/libexec/ld.so; then
9550 hardcode_direct=yes
9551 hardcode_shlibpath_var=no
9552 hardcode_direct_absolute=yes
9553 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
542f9784 9554 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6d873a38 9555 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
542f9784 9556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6d873a38 9557 export_dynamic_flag_spec='${wl}-E'
9558 else
9559 case $host_os in
9560 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9561 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9562 hardcode_libdir_flag_spec='-R$libdir'
9563 ;;
9564 *)
9565 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9566 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9567 ;;
9568 esac
9569 fi
9570 else
9571 ld_shlibs=no
542f9784 9572 fi
9573 ;;
9574
9575 os2*)
9576 hardcode_libdir_flag_spec='-L$libdir'
9577 hardcode_minus_L=yes
9578 allow_undefined_flag=unsupported
e6408286 9579 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 9580 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9581 ;;
9582
9583 osf3*)
9584 if test "$GCC" = yes; then
9585 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
e6408286 9586 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 9587 else
9588 allow_undefined_flag=' -expect_unresolved \*'
e6408286 9589 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 9590 fi
9591 archive_cmds_need_lc='no'
9592 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9593 hardcode_libdir_separator=:
9594 ;;
9595
9596 osf4* | osf5*) # as osf3* with the addition of -msym flag
9597 if test "$GCC" = yes; then
9598 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
e6408286 9599 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 9600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9601 else
9602 allow_undefined_flag=' -expect_unresolved \*'
e6408286 9603 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 9604 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 9605 $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 9606
9607 # Both c and cxx compiler support -rpath directly
9608 hardcode_libdir_flag_spec='-rpath $libdir'
9609 fi
9610 archive_cmds_need_lc='no'
9611 hardcode_libdir_separator=:
9612 ;;
9613
9614 solaris*)
9615 no_undefined_flag=' -z defs'
9616 if test "$GCC" = yes; then
9617 wlarc='${wl}'
9618 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9619 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9620 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9621 else
9622 case `$CC -V 2>&1` in
9623 *"Compilers 5.0"*)
9624 wlarc=''
9625 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9626 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9627 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9628 ;;
9629 *)
9630 wlarc='${wl}'
9631 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9632 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9633 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9634 ;;
9635 esac
9636 fi
9637 hardcode_libdir_flag_spec='-R$libdir'
9638 hardcode_shlibpath_var=no
9639 case $host_os in
9640 solaris2.[0-5] | solaris2.[0-5].*) ;;
9641 *)
9642 # The compiler driver will combine and reorder linker options,
9643 # but understands `-z linker_flag'. GCC discards it without `$wl',
9644 # but is careful enough not to reorder.
9645 # Supported since Solaris 2.6 (maybe 2.5.1?)
9646 if test "$GCC" = yes; then
9647 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9648 else
9649 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9650 fi
9651 ;;
9652 esac
9653 link_all_deplibs=yes
9654 ;;
9655
9656 sunos4*)
9657 if test "x$host_vendor" = xsequent; then
9658 # Use $CC to link under sequent, because it throws in some extra .o
9659 # files that make .init and .fini sections work.
9660 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9661 else
9662 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9663 fi
9664 hardcode_libdir_flag_spec='-L$libdir'
9665 hardcode_direct=yes
9666 hardcode_minus_L=yes
9667 hardcode_shlibpath_var=no
9668 ;;
9669
9670 sysv4)
9671 case $host_vendor in
9672 sni)
9673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674 hardcode_direct=yes # is this really true???
9675 ;;
9676 siemens)
9677 ## LD is ld it makes a PLAMLIB
9678 ## CC just makes a GrossModule.
9679 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9680 reload_cmds='$CC -r -o $output$reload_objs'
9681 hardcode_direct=no
9682 ;;
9683 motorola)
9684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9686 ;;
9687 esac
9688 runpath_var='LD_RUN_PATH'
9689 hardcode_shlibpath_var=no
9690 ;;
9691
9692 sysv4.3*)
9693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694 hardcode_shlibpath_var=no
9695 export_dynamic_flag_spec='-Bexport'
9696 ;;
9697
9698 sysv4*MP*)
9699 if test -d /usr/nec; then
9700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9701 hardcode_shlibpath_var=no
9702 runpath_var=LD_RUN_PATH
9703 hardcode_runpath_var=yes
9704 ld_shlibs=yes
9705 fi
9706 ;;
9707
9708 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9709 no_undefined_flag='${wl}-z,text'
9710 archive_cmds_need_lc=no
9711 hardcode_shlibpath_var=no
9712 runpath_var='LD_RUN_PATH'
9713
9714 if test "$GCC" = yes; then
9715 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9717 else
9718 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720 fi
9721 ;;
9722
9723 sysv5* | sco3.2v5* | sco5v6*)
9724 # Note: We can NOT use -z defs as we might desire, because we do not
9725 # link with -lc, and that would cause any symbols used from libc to
9726 # always be unresolved, which means just about no library would
9727 # ever link correctly. If we're not using GNU ld we use -z text
9728 # though, which does catch some bad symbols but isn't as heavy-handed
9729 # as -z defs.
9730 no_undefined_flag='${wl}-z,text'
9731 allow_undefined_flag='${wl}-z,nodefs'
9732 archive_cmds_need_lc=no
9733 hardcode_shlibpath_var=no
9734 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9735 hardcode_libdir_separator=':'
9736 link_all_deplibs=yes
9737 export_dynamic_flag_spec='${wl}-Bexport'
9738 runpath_var='LD_RUN_PATH'
9739
9740 if test "$GCC" = yes; then
9741 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743 else
9744 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9745 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 fi
9747 ;;
9748
9749 uts4*)
9750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751 hardcode_libdir_flag_spec='-L$libdir'
9752 hardcode_shlibpath_var=no
9753 ;;
9754
9755 *)
9756 ld_shlibs=no
9757 ;;
9758 esac
9759
9760 if test x$host_vendor = xsni; then
9761 case $host in
9762 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9763 export_dynamic_flag_spec='${wl}-Blargedynsym'
9764 ;;
9765 esac
9766 fi
9767 fi
9768
cd9a469c 9769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9770$as_echo "$ld_shlibs" >&6; }
542f9784 9771test "$ld_shlibs" = no && can_build_shared=no
9772
9773with_gnu_ld=$with_gnu_ld
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789#
9790# Do we need to explicitly link libc?
9791#
9792case "x$archive_cmds_need_lc" in
9793x|xyes)
9794 # Assume -lc should be added
9795 archive_cmds_need_lc=yes
9796
9797 if test "$enable_shared" = yes && test "$GCC" = yes; then
9798 case $archive_cmds in
9799 *'~'*)
9800 # FIXME: we may have to deal with multi-command sequences.
9801 ;;
9802 '$CC '*)
9803 # Test whether the compiler implicitly links with -lc since on some
9804 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9805 # to ld, don't add -lc before -lgcc.
cd9a469c 9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9807$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9808if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9809 $as_echo_n "(cached) " >&6
9e6fd619 9810else
9811 $RM conftest*
9812 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
542f9784 9813
cd9a469c 9814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 9815 (eval $ac_compile) 2>&5
9816 ac_status=$?
cd9a469c 9817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9818 test $ac_status = 0; } 2>conftest.err; then
9e6fd619 9819 soname=conftest
9820 lib=conftest
9821 libobjs=conftest.$ac_objext
9822 deplibs=
9823 wl=$lt_prog_compiler_wl
9824 pic_flag=$lt_prog_compiler_pic
9825 compiler_flags=-v
9826 linker_flags=-v
9827 verstring=
9828 output_objdir=.
9829 libname=conftest
9830 lt_save_allow_undefined_flag=$allow_undefined_flag
9831 allow_undefined_flag=
cd9a469c 9832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
542f9784 9833 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9834 ac_status=$?
cd9a469c 9835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9836 test $ac_status = 0; }
9e6fd619 9837 then
9838 lt_cv_archive_cmds_need_lc=no
9839 else
9840 lt_cv_archive_cmds_need_lc=yes
9841 fi
9842 allow_undefined_flag=$lt_save_allow_undefined_flag
9843 else
9844 cat conftest.err 1>&5
9845 fi
9846 $RM conftest*
9847
9848fi
cd9a469c 9849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9850$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9e6fd619 9851 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
542f9784 9852 ;;
9853 esac
9854 fi
9855 ;;
9856esac
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
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
cd9a469c 10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10015$as_echo_n "checking dynamic linker characteristics... " >&6; }
6d873a38 10016
10017if test "$GCC" = yes; then
542f9784 10018 case $host_os in
10019 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10020 *) lt_awk_arg="/^libraries:/" ;;
10021 esac
e6408286 10022 case $host_os in
10023 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10024 *) lt_sed_strip_eq="s,=/,/,g" ;;
10025 esac
10026 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10027 case $lt_search_path_spec in
10028 *\;*)
542f9784 10029 # if the path contains ";" then we assume it to be the separator
10030 # otherwise default to the standard path separator (i.e. ":") - it is
10031 # assumed that no part of a normal pathname contains ";" but that should
10032 # okay in the real world where ";" in dirpaths is itself problematic.
e6408286 10033 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10034 ;;
10035 *)
10036 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10037 ;;
10038 esac
542f9784 10039 # Ok, now we have the path, separated by spaces, we can step through it
10040 # and add multilib dir if necessary.
10041 lt_tmp_lt_search_path_spec=
10042 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10043 for lt_sys_path in $lt_search_path_spec; do
10044 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10045 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10046 else
10047 test -d "$lt_sys_path" && \
10048 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10049 fi
10050 done
e6408286 10051 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
542f9784 10052BEGIN {RS=" "; FS="/|\n";} {
10053 lt_foo="";
10054 lt_count=0;
10055 for (lt_i = NF; lt_i > 0; lt_i--) {
10056 if ($lt_i != "" && $lt_i != ".") {
10057 if ($lt_i == "..") {
10058 lt_count++;
10059 } else {
10060 if (lt_count == 0) {
10061 lt_foo="/" $lt_i lt_foo;
10062 } else {
10063 lt_count--;
10064 }
10065 }
10066 }
10067 }
10068 if (lt_foo != "") { lt_freq[lt_foo]++; }
10069 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10070}'`
e6408286 10071 # AWK program above erroneously prepends '/' to C:/dos/paths
10072 # for these hosts.
10073 case $host_os in
10074 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10075 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10076 esac
10077 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
542f9784 10078else
10079 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10080fi
10081library_names_spec=
10082libname_spec='lib$name'
10083soname_spec=
10084shrext_cmds=".so"
10085postinstall_cmds=
10086postuninstall_cmds=
10087finish_cmds=
10088finish_eval=
10089shlibpath_var=
10090shlibpath_overrides_runpath=unknown
10091version_type=none
10092dynamic_linker="$host_os ld.so"
10093sys_lib_dlsearch_path_spec="/lib /usr/lib"
10094need_lib_prefix=unknown
10095hardcode_into_libs=no
10096
10097# when you set need_version to no, make sure it does not cause -set_version
10098# flags to be left without arguments
10099need_version=unknown
10100
10101case $host_os in
10102aix3*)
10103 version_type=linux
10104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10105 shlibpath_var=LIBPATH
10106
10107 # AIX 3 has no versioning support, so we append a major version to the name.
10108 soname_spec='${libname}${release}${shared_ext}$major'
10109 ;;
10110
c8db569e 10111aix[4-9]*)
542f9784 10112 version_type=linux
10113 need_lib_prefix=no
10114 need_version=no
10115 hardcode_into_libs=yes
10116 if test "$host_cpu" = ia64; then
10117 # AIX 5 supports IA64
10118 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10119 shlibpath_var=LD_LIBRARY_PATH
10120 else
10121 # With GCC up to 2.95.x, collect2 would create an import file
10122 # for dependence libraries. The import file would start with
10123 # the line `#! .'. This would cause the generated library to
10124 # depend on `.', always an invalid library. This was fixed in
10125 # development snapshots of GCC prior to 3.0.
10126 case $host_os in
10127 aix4 | aix4.[01] | aix4.[01].*)
10128 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10129 echo ' yes '
10130 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10131 :
10132 else
10133 can_build_shared=no
10134 fi
10135 ;;
10136 esac
10137 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10138 # soname into executable. Probably we can add versioning support to
10139 # collect2, so additional links can be useful in future.
10140 if test "$aix_use_runtimelinking" = yes; then
10141 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10142 # instead of lib<name>.a to let people know that these are not
10143 # typical AIX shared libraries.
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145 else
10146 # We preserve .a as extension for shared libraries through AIX4.2
10147 # and later when we are not doing run time linking.
10148 library_names_spec='${libname}${release}.a $libname.a'
10149 soname_spec='${libname}${release}${shared_ext}$major'
10150 fi
10151 shlibpath_var=LIBPATH
10152 fi
10153 ;;
10154
10155amigaos*)
6d873a38 10156 case $host_cpu in
10157 powerpc)
10158 # Since July 2007 AmigaOS4 officially supports .so libraries.
10159 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161 ;;
10162 m68k)
542f9784 10163 library_names_spec='$libname.ixlibrary $libname.a'
10164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
e6408286 10165 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 10166 ;;
10167 esac
542f9784 10168 ;;
10169
10170beos*)
10171 library_names_spec='${libname}${shared_ext}'
10172 dynamic_linker="$host_os ld.so"
10173 shlibpath_var=LIBRARY_PATH
10174 ;;
10175
10176bsdi[45]*)
10177 version_type=linux
10178 need_version=no
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180 soname_spec='${libname}${release}${shared_ext}$major'
10181 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10184 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10185 # the default ld.so.conf also contains /usr/contrib/lib and
10186 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10187 # libtool to hard-code these into programs
10188 ;;
10189
6d873a38 10190cygwin* | mingw* | pw32* | cegcc*)
542f9784 10191 version_type=windows
10192 shrext_cmds=".dll"
10193 need_version=no
10194 need_lib_prefix=no
10195
6d873a38 10196 case $GCC,$host_os in
10197 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
542f9784 10198 library_names_spec='$libname.dll.a'
10199 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10200 postinstall_cmds='base_file=`basename \${file}`~
10201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10202 dldir=$destdir/`dirname \$dlpath`~
10203 test -d \$dldir || mkdir -p \$dldir~
10204 $install_prog $dir/$dlname \$dldir/$dlname~
10205 chmod a+x \$dldir/$dlname~
10206 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10207 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10208 fi'
10209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10210 dlpath=$dir/\$dldll~
10211 $RM \$dlpath'
10212 shlibpath_overrides_runpath=yes
10213
10214 case $host_os in
10215 cygwin*)
10216 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10217 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
e6408286 10218
10219 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
542f9784 10220 ;;
6d873a38 10221 mingw* | cegcc*)
542f9784 10222 # MinGW DLLs use traditional 'lib' prefix
10223 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
542f9784 10224 ;;
10225 pw32*)
10226 # pw32 DLLs use 'pw' prefix rather than 'lib'
10227 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10228 ;;
10229 esac
10230 ;;
10231
10232 *)
10233 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10234 ;;
10235 esac
10236 dynamic_linker='Win32 ld.exe'
10237 # FIXME: first we should search . and the directory the executable is in
10238 shlibpath_var=PATH
10239 ;;
10240
10241darwin* | rhapsody*)
10242 dynamic_linker="$host_os dyld"
10243 version_type=darwin
10244 need_lib_prefix=no
10245 need_version=no
10246 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10247 soname_spec='${libname}${release}${major}$shared_ext'
10248 shlibpath_overrides_runpath=yes
10249 shlibpath_var=DYLD_LIBRARY_PATH
10250 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10251
10252 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10253 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10254 ;;
10255
10256dgux*)
10257 version_type=linux
10258 need_lib_prefix=no
10259 need_version=no
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 ;;
10264
542f9784 10265freebsd* | dragonfly*)
10266 # DragonFly does not have aout. When/if they implement a new
10267 # versioning mechanism, adjust this.
10268 if test -x /usr/bin/objformat; then
10269 objformat=`/usr/bin/objformat`
10270 else
10271 case $host_os in
30369aff 10272 freebsd[23].*) objformat=aout ;;
542f9784 10273 *) objformat=elf ;;
10274 esac
10275 fi
10276 version_type=freebsd-$objformat
10277 case $version_type in
10278 freebsd-elf*)
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10280 need_version=no
10281 need_lib_prefix=no
10282 ;;
10283 freebsd-*)
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10285 need_version=yes
10286 ;;
10287 esac
10288 shlibpath_var=LD_LIBRARY_PATH
10289 case $host_os in
30369aff 10290 freebsd2.*)
542f9784 10291 shlibpath_overrides_runpath=yes
10292 ;;
10293 freebsd3.[01]* | freebsdelf3.[01]*)
10294 shlibpath_overrides_runpath=yes
10295 hardcode_into_libs=yes
10296 ;;
10297 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10298 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10299 shlibpath_overrides_runpath=no
10300 hardcode_into_libs=yes
10301 ;;
10302 *) # from 4.6 on, and DragonFly
10303 shlibpath_overrides_runpath=yes
10304 hardcode_into_libs=yes
10305 ;;
10306 esac
10307 ;;
10308
10309gnu*)
10310 version_type=linux
10311 need_lib_prefix=no
10312 need_version=no
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10314 soname_spec='${libname}${release}${shared_ext}$major'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 hardcode_into_libs=yes
10317 ;;
10318
e6408286 10319haiku*)
10320 version_type=linux
10321 need_lib_prefix=no
10322 need_version=no
10323 dynamic_linker="$host_os runtime_loader"
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10325 soname_spec='${libname}${release}${shared_ext}$major'
10326 shlibpath_var=LIBRARY_PATH
10327 shlibpath_overrides_runpath=yes
10328 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10329 hardcode_into_libs=yes
10330 ;;
10331
542f9784 10332hpux9* | hpux10* | hpux11*)
10333 # Give a soname corresponding to the major version so that dld.sl refuses to
10334 # link against other versions.
10335 version_type=sunos
10336 need_lib_prefix=no
10337 need_version=no
10338 case $host_cpu in
10339 ia64*)
10340 shrext_cmds='.so'
10341 hardcode_into_libs=yes
10342 dynamic_linker="$host_os dld.so"
10343 shlibpath_var=LD_LIBRARY_PATH
10344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 if test "X$HPUX_IA64_MODE" = X32; then
10348 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10349 else
10350 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10351 fi
10352 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10353 ;;
10354 hppa*64*)
10355 shrext_cmds='.sl'
10356 hardcode_into_libs=yes
10357 dynamic_linker="$host_os dld.sl"
10358 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10364 ;;
10365 *)
10366 shrext_cmds='.sl'
10367 dynamic_linker="$host_os dld.sl"
10368 shlibpath_var=SHLIB_PATH
10369 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 ;;
10373 esac
e6408286 10374 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
542f9784 10375 postinstall_cmds='chmod 555 $lib'
e6408286 10376 # or fails outright, so override atomically:
10377 install_override_mode=555
542f9784 10378 ;;
10379
10380interix[3-9]*)
10381 version_type=linux
10382 need_lib_prefix=no
10383 need_version=no
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 shlibpath_overrides_runpath=no
10389 hardcode_into_libs=yes
10390 ;;
10391
10392irix5* | irix6* | nonstopux*)
10393 case $host_os in
10394 nonstopux*) version_type=nonstopux ;;
10395 *)
10396 if test "$lt_cv_prog_gnu_ld" = yes; then
10397 version_type=linux
10398 else
10399 version_type=irix
10400 fi ;;
10401 esac
10402 need_lib_prefix=no
10403 need_version=no
10404 soname_spec='${libname}${release}${shared_ext}$major'
10405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10406 case $host_os in
10407 irix5* | nonstopux*)
10408 libsuff= shlibsuff=
10409 ;;
10410 *)
10411 case $LD in # libtool.m4 will add one of these switches to LD
10412 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10413 libsuff= shlibsuff= libmagic=32-bit;;
10414 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10415 libsuff=32 shlibsuff=N32 libmagic=N32;;
10416 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10417 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10418 *) libsuff= shlibsuff= libmagic=never-match;;
10419 esac
10420 ;;
10421 esac
10422 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10423 shlibpath_overrides_runpath=no
10424 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10425 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10426 hardcode_into_libs=yes
10427 ;;
10428
10429# No shared lib support for Linux oldld, aout, or coff.
10430linux*oldld* | linux*aout* | linux*coff*)
10431 dynamic_linker=no
10432 ;;
10433
10434# This must be Linux ELF.
9af964d4 10435linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 10436 version_type=linux
10437 need_lib_prefix=no
10438 need_version=no
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10442 shlibpath_var=LD_LIBRARY_PATH
10443 shlibpath_overrides_runpath=no
9e6fd619 10444
542f9784 10445 # Some binutils ld are patched to set DT_RUNPATH
cd9a469c 10446 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10447 $as_echo_n "(cached) " >&6
9e6fd619 10448else
10449 lt_cv_shlibpath_overrides_runpath=no
10450 save_LDFLAGS=$LDFLAGS
10451 save_libdir=$libdir
10452 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10453 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
cd9a469c 10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10455/* end confdefs.h. */
10456
10457int
10458main ()
10459{
10460
10461 ;
10462 return 0;
10463}
10464_ACEOF
cd9a469c 10465if ac_fn_c_try_link "$LINENO"; then :
10466 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9e6fd619 10467 lt_cv_shlibpath_overrides_runpath=yes
542f9784 10468fi
542f9784 10469fi
cd9a469c 10470rm -f core conftest.err conftest.$ac_objext \
10471 conftest$ac_exeext conftest.$ac_ext
9e6fd619 10472 LDFLAGS=$save_LDFLAGS
10473 libdir=$save_libdir
10474
10475fi
10476
10477 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
542f9784 10478
10479 # This implies no fast_install, which is unacceptable.
10480 # Some rework will be needed to allow for fast_install
10481 # before this can be enabled.
10482 hardcode_into_libs=yes
10483
10484 # Append ld.so.conf contents to the search path
10485 if test -f /etc/ld.so.conf; then
e6408286 10486 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 10487 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10488 fi
10489
10490 # We used to test for /lib/ld.so.1 and disable shared libraries on
10491 # powerpc, because MkLinux only supported shared libraries with the
10492 # GNU dynamic linker. Since this was broken with cross compilers,
10493 # most powerpc-linux boxes support dynamic linking these days and
10494 # people can always --disable-shared, the test was removed, and we
10495 # assume the GNU/Linux dynamic linker is in use.
10496 dynamic_linker='GNU/Linux ld.so'
10497 ;;
10498
10499netbsd*)
10500 version_type=sunos
10501 need_lib_prefix=no
10502 need_version=no
10503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10506 dynamic_linker='NetBSD (a.out) ld.so'
10507 else
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10509 soname_spec='${libname}${release}${shared_ext}$major'
10510 dynamic_linker='NetBSD ld.elf_so'
10511 fi
10512 shlibpath_var=LD_LIBRARY_PATH
10513 shlibpath_overrides_runpath=yes
10514 hardcode_into_libs=yes
10515 ;;
10516
10517newsos6)
10518 version_type=linux
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10520 shlibpath_var=LD_LIBRARY_PATH
10521 shlibpath_overrides_runpath=yes
10522 ;;
10523
10524*nto* | *qnx*)
10525 version_type=qnx
10526 need_lib_prefix=no
10527 need_version=no
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529 soname_spec='${libname}${release}${shared_ext}$major'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 shlibpath_overrides_runpath=no
10532 hardcode_into_libs=yes
10533 dynamic_linker='ldqnx.so'
10534 ;;
10535
10536openbsd*)
10537 version_type=sunos
10538 sys_lib_dlsearch_path_spec="/usr/lib"
10539 need_lib_prefix=no
10540 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10541 case $host_os in
10542 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10543 *) need_version=no ;;
10544 esac
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10547 shlibpath_var=LD_LIBRARY_PATH
10548 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10549 case $host_os in
10550 openbsd2.[89] | openbsd2.[89].*)
10551 shlibpath_overrides_runpath=no
10552 ;;
10553 *)
10554 shlibpath_overrides_runpath=yes
10555 ;;
10556 esac
10557 else
10558 shlibpath_overrides_runpath=yes
10559 fi
10560 ;;
10561
10562os2*)
10563 libname_spec='$name'
10564 shrext_cmds=".dll"
10565 need_lib_prefix=no
10566 library_names_spec='$libname${shared_ext} $libname.a'
10567 dynamic_linker='OS/2 ld.exe'
10568 shlibpath_var=LIBPATH
10569 ;;
10570
10571osf3* | osf4* | osf5*)
10572 version_type=osf
10573 need_lib_prefix=no
10574 need_version=no
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10577 shlibpath_var=LD_LIBRARY_PATH
10578 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10579 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10580 ;;
10581
10582rdos*)
10583 dynamic_linker=no
10584 ;;
10585
10586solaris*)
10587 version_type=linux
10588 need_lib_prefix=no
10589 need_version=no
10590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10591 soname_spec='${libname}${release}${shared_ext}$major'
10592 shlibpath_var=LD_LIBRARY_PATH
10593 shlibpath_overrides_runpath=yes
10594 hardcode_into_libs=yes
10595 # ldd complains unless libraries are executable
10596 postinstall_cmds='chmod +x $lib'
10597 ;;
10598
10599sunos4*)
10600 version_type=sunos
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10602 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10603 shlibpath_var=LD_LIBRARY_PATH
10604 shlibpath_overrides_runpath=yes
10605 if test "$with_gnu_ld" = yes; then
10606 need_lib_prefix=no
10607 fi
10608 need_version=yes
10609 ;;
10610
10611sysv4 | sysv4.3*)
10612 version_type=linux
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614 soname_spec='${libname}${release}${shared_ext}$major'
10615 shlibpath_var=LD_LIBRARY_PATH
10616 case $host_vendor in
10617 sni)
10618 shlibpath_overrides_runpath=no
10619 need_lib_prefix=no
10620 runpath_var=LD_RUN_PATH
10621 ;;
10622 siemens)
10623 need_lib_prefix=no
10624 ;;
10625 motorola)
10626 need_lib_prefix=no
10627 need_version=no
10628 shlibpath_overrides_runpath=no
10629 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10630 ;;
10631 esac
10632 ;;
10633
10634sysv4*MP*)
10635 if test -d /usr/nec ;then
10636 version_type=linux
10637 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10638 soname_spec='$libname${shared_ext}.$major'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 fi
10641 ;;
10642
10643sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10644 version_type=freebsd-elf
10645 need_lib_prefix=no
10646 need_version=no
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10648 soname_spec='${libname}${release}${shared_ext}$major'
10649 shlibpath_var=LD_LIBRARY_PATH
10650 shlibpath_overrides_runpath=yes
10651 hardcode_into_libs=yes
10652 if test "$with_gnu_ld" = yes; then
10653 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10654 else
10655 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10656 case $host_os in
10657 sco3.2v5*)
10658 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10659 ;;
10660 esac
10661 fi
10662 sys_lib_dlsearch_path_spec='/usr/lib'
10663 ;;
10664
10665tpf*)
10666 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10667 version_type=linux
10668 need_lib_prefix=no
10669 need_version=no
6d873a38 10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
542f9784 10671 shlibpath_var=LD_LIBRARY_PATH
10672 shlibpath_overrides_runpath=no
10673 hardcode_into_libs=yes
10674 ;;
10675
10676uts4*)
10677 version_type=linux
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 soname_spec='${libname}${release}${shared_ext}$major'
10680 shlibpath_var=LD_LIBRARY_PATH
10681 ;;
10682
10683*)
10684 dynamic_linker=no
10685 ;;
10686esac
cd9a469c 10687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10688$as_echo "$dynamic_linker" >&6; }
542f9784 10689test "$dynamic_linker" = no && can_build_shared=no
10690
10691variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10692if test "$GCC" = yes; then
10693 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10694fi
10695
6d873a38 10696if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10697 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10698fi
10699if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10700 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10701fi
10702
542f9784 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
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
e6408286 10783
10784
10785
10786
10787
542f9784 10788
10789
10790
10791
10792
10793
cd9a469c 10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10795$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
542f9784 10796hardcode_action=
10797if test -n "$hardcode_libdir_flag_spec" ||
10798 test -n "$runpath_var" ||
10799 test "X$hardcode_automatic" = "Xyes" ; then
10800
10801 # We can hardcode non-existent directories.
10802 if test "$hardcode_direct" != no &&
10803 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10804 # have to relink, otherwise we might link with an installed library
10805 # when we should be linking with a yet-to-be-installed one
10806 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10807 test "$hardcode_minus_L" != no; then
10808 # Linking always hardcodes the temporary library directory.
10809 hardcode_action=relink
10810 else
10811 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10812 hardcode_action=immediate
10813 fi
10814else
10815 # We cannot hardcode anything, or else we can only hardcode existing
10816 # directories.
10817 hardcode_action=unsupported
10818fi
cd9a469c 10819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10820$as_echo "$hardcode_action" >&6; }
542f9784 10821
10822if test "$hardcode_action" = relink ||
10823 test "$inherit_rpath" = yes; then
10824 # Fast installation is not supported
10825 enable_fast_install=no
10826elif test "$shlibpath_overrides_runpath" = yes ||
10827 test "$enable_shared" = no; then
10828 # Fast installation is not necessary
10829 enable_fast_install=needless
10830fi
10831
10832
10833
10834
10835
10836
10837 if test "x$enable_dlopen" != xyes; then
10838 enable_dlopen=unknown
10839 enable_dlopen_self=unknown
10840 enable_dlopen_self_static=unknown
10841else
10842 lt_cv_dlopen=no
10843 lt_cv_dlopen_libs=
10844
10845 case $host_os in
10846 beos*)
10847 lt_cv_dlopen="load_add_on"
10848 lt_cv_dlopen_libs=
10849 lt_cv_dlopen_self=yes
10850 ;;
10851
6d873a38 10852 mingw* | pw32* | cegcc*)
542f9784 10853 lt_cv_dlopen="LoadLibrary"
10854 lt_cv_dlopen_libs=
10855 ;;
10856
10857 cygwin*)
10858 lt_cv_dlopen="dlopen"
10859 lt_cv_dlopen_libs=
10860 ;;
10861
10862 darwin*)
10863 # if libdl is installed we need to link against it
cd9a469c 10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10865$as_echo_n "checking for dlopen in -ldl... " >&6; }
10866if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10867 $as_echo_n "(cached) " >&6
542f9784 10868else
10869 ac_check_lib_save_LIBS=$LIBS
10870LIBS="-ldl $LIBS"
cd9a469c 10871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10872/* end confdefs.h. */
10873
cd9a469c 10874/* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
542f9784 10877#ifdef __cplusplus
10878extern "C"
10879#endif
542f9784 10880char dlopen ();
10881int
10882main ()
10883{
cd9a469c 10884return dlopen ();
542f9784 10885 ;
10886 return 0;
10887}
10888_ACEOF
cd9a469c 10889if ac_fn_c_try_link "$LINENO"; then :
542f9784 10890 ac_cv_lib_dl_dlopen=yes
10891else
cd9a469c 10892 ac_cv_lib_dl_dlopen=no
542f9784 10893fi
cd9a469c 10894rm -f core conftest.err conftest.$ac_objext \
10895 conftest$ac_exeext conftest.$ac_ext
542f9784 10896LIBS=$ac_check_lib_save_LIBS
10897fi
cd9a469c 10898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10899$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10900if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
542f9784 10901 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10902else
10903
10904 lt_cv_dlopen="dyld"
10905 lt_cv_dlopen_libs=
10906 lt_cv_dlopen_self=yes
10907
10908fi
10909
10910 ;;
10911
10912 *)
cd9a469c 10913 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10914if test "x$ac_cv_func_shl_load" = x""yes; then :
542f9784 10915 lt_cv_dlopen="shl_load"
10916else
cd9a469c 10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10918$as_echo_n "checking for shl_load in -ldld... " >&6; }
10919if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10920 $as_echo_n "(cached) " >&6
542f9784 10921else
10922 ac_check_lib_save_LIBS=$LIBS
10923LIBS="-ldld $LIBS"
cd9a469c 10924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10925/* end confdefs.h. */
10926
cd9a469c 10927/* Override any GCC internal prototype to avoid an error.
10928 Use char because int might match the return type of a GCC
10929 builtin and then its argument prototype would still apply. */
542f9784 10930#ifdef __cplusplus
10931extern "C"
10932#endif
542f9784 10933char shl_load ();
10934int
10935main ()
10936{
cd9a469c 10937return shl_load ();
542f9784 10938 ;
10939 return 0;
10940}
10941_ACEOF
cd9a469c 10942if ac_fn_c_try_link "$LINENO"; then :
542f9784 10943 ac_cv_lib_dld_shl_load=yes
10944else
cd9a469c 10945 ac_cv_lib_dld_shl_load=no
542f9784 10946fi
cd9a469c 10947rm -f core conftest.err conftest.$ac_objext \
10948 conftest$ac_exeext conftest.$ac_ext
542f9784 10949LIBS=$ac_check_lib_save_LIBS
10950fi
cd9a469c 10951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10952$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10953if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
6d873a38 10954 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
542f9784 10955else
cd9a469c 10956 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10957if test "x$ac_cv_func_dlopen" = x""yes; then :
542f9784 10958 lt_cv_dlopen="dlopen"
10959else
cd9a469c 10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10961$as_echo_n "checking for dlopen in -ldl... " >&6; }
10962if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10963 $as_echo_n "(cached) " >&6
542f9784 10964else
10965 ac_check_lib_save_LIBS=$LIBS
10966LIBS="-ldl $LIBS"
cd9a469c 10967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 10968/* end confdefs.h. */
10969
cd9a469c 10970/* Override any GCC internal prototype to avoid an error.
10971 Use char because int might match the return type of a GCC
10972 builtin and then its argument prototype would still apply. */
542f9784 10973#ifdef __cplusplus
10974extern "C"
10975#endif
542f9784 10976char dlopen ();
10977int
10978main ()
10979{
cd9a469c 10980return dlopen ();
542f9784 10981 ;
10982 return 0;
10983}
10984_ACEOF
cd9a469c 10985if ac_fn_c_try_link "$LINENO"; then :
542f9784 10986 ac_cv_lib_dl_dlopen=yes
10987else
cd9a469c 10988 ac_cv_lib_dl_dlopen=no
542f9784 10989fi
cd9a469c 10990rm -f core conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
542f9784 10992LIBS=$ac_check_lib_save_LIBS
10993fi
cd9a469c 10994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10995$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10996if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
542f9784 10997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10998else
cd9a469c 10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11000$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11001if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11002 $as_echo_n "(cached) " >&6
542f9784 11003else
11004 ac_check_lib_save_LIBS=$LIBS
11005LIBS="-lsvld $LIBS"
cd9a469c 11006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 11007/* end confdefs.h. */
11008
cd9a469c 11009/* Override any GCC internal prototype to avoid an error.
11010 Use char because int might match the return type of a GCC
11011 builtin and then its argument prototype would still apply. */
542f9784 11012#ifdef __cplusplus
11013extern "C"
11014#endif
542f9784 11015char dlopen ();
11016int
11017main ()
11018{
cd9a469c 11019return dlopen ();
542f9784 11020 ;
11021 return 0;
11022}
11023_ACEOF
cd9a469c 11024if ac_fn_c_try_link "$LINENO"; then :
542f9784 11025 ac_cv_lib_svld_dlopen=yes
11026else
cd9a469c 11027 ac_cv_lib_svld_dlopen=no
542f9784 11028fi
cd9a469c 11029rm -f core conftest.err conftest.$ac_objext \
11030 conftest$ac_exeext conftest.$ac_ext
542f9784 11031LIBS=$ac_check_lib_save_LIBS
11032fi
cd9a469c 11033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11034$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11035if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
542f9784 11036 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11037else
cd9a469c 11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11039$as_echo_n "checking for dld_link in -ldld... " >&6; }
11040if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11041 $as_echo_n "(cached) " >&6
542f9784 11042else
11043 ac_check_lib_save_LIBS=$LIBS
11044LIBS="-ldld $LIBS"
cd9a469c 11045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
542f9784 11046/* end confdefs.h. */
11047
cd9a469c 11048/* Override any GCC internal prototype to avoid an error.
11049 Use char because int might match the return type of a GCC
11050 builtin and then its argument prototype would still apply. */
542f9784 11051#ifdef __cplusplus
11052extern "C"
11053#endif
542f9784 11054char dld_link ();
11055int
11056main ()
11057{
cd9a469c 11058return dld_link ();
542f9784 11059 ;
11060 return 0;
11061}
11062_ACEOF
cd9a469c 11063if ac_fn_c_try_link "$LINENO"; then :
542f9784 11064 ac_cv_lib_dld_dld_link=yes
11065else
cd9a469c 11066 ac_cv_lib_dld_dld_link=no
542f9784 11067fi
cd9a469c 11068rm -f core conftest.err conftest.$ac_objext \
11069 conftest$ac_exeext conftest.$ac_ext
542f9784 11070LIBS=$ac_check_lib_save_LIBS
11071fi
cd9a469c 11072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11073$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11074if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
6d873a38 11075 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
542f9784 11076fi
11077
11078
11079fi
11080
11081
11082fi
11083
11084
11085fi
11086
11087
11088fi
11089
11090
11091fi
11092
11093 ;;
11094 esac
11095
11096 if test "x$lt_cv_dlopen" != xno; then
11097 enable_dlopen=yes
11098 else
11099 enable_dlopen=no
11100 fi
11101
11102 case $lt_cv_dlopen in
11103 dlopen)
11104 save_CPPFLAGS="$CPPFLAGS"
11105 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11106
11107 save_LDFLAGS="$LDFLAGS"
11108 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11109
11110 save_LIBS="$LIBS"
11111 LIBS="$lt_cv_dlopen_libs $LIBS"
11112
cd9a469c 11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11114$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11115if test "${lt_cv_dlopen_self+set}" = set; then :
11116 $as_echo_n "(cached) " >&6
542f9784 11117else
11118 if test "$cross_compiling" = yes; then :
11119 lt_cv_dlopen_self=cross
11120else
11121 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11122 lt_status=$lt_dlunknown
11123 cat > conftest.$ac_ext <<_LT_EOF
b5cfe980 11124#line 11124 "configure"
542f9784 11125#include "confdefs.h"
11126
11127#if HAVE_DLFCN_H
11128#include <dlfcn.h>
11129#endif
11130
11131#include <stdio.h>
11132
11133#ifdef RTLD_GLOBAL
11134# define LT_DLGLOBAL RTLD_GLOBAL
11135#else
11136# ifdef DL_GLOBAL
11137# define LT_DLGLOBAL DL_GLOBAL
11138# else
11139# define LT_DLGLOBAL 0
11140# endif
11141#endif
11142
11143/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11144 find out it does not work in some platform. */
11145#ifndef LT_DLLAZY_OR_NOW
11146# ifdef RTLD_LAZY
11147# define LT_DLLAZY_OR_NOW RTLD_LAZY
11148# else
11149# ifdef DL_LAZY
11150# define LT_DLLAZY_OR_NOW DL_LAZY
11151# else
11152# ifdef RTLD_NOW
11153# define LT_DLLAZY_OR_NOW RTLD_NOW
11154# else
11155# ifdef DL_NOW
11156# define LT_DLLAZY_OR_NOW DL_NOW
11157# else
11158# define LT_DLLAZY_OR_NOW 0
11159# endif
11160# endif
11161# endif
11162# endif
11163#endif
11164
e6408286 11165/* When -fvisbility=hidden is used, assume the code has been annotated
11166 correspondingly for the symbols needed. */
11167#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11168void fnord () __attribute__((visibility("default")));
11169#endif
11170
11171void fnord () { int i=42; }
542f9784 11172int main ()
11173{
11174 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11175 int status = $lt_dlunknown;
11176
11177 if (self)
11178 {
11179 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
e6408286 11180 else
11181 {
11182 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11183 else puts (dlerror ());
11184 }
542f9784 11185 /* dlclose (self); */
11186 }
11187 else
11188 puts (dlerror ());
11189
6d873a38 11190 return status;
542f9784 11191}
11192_LT_EOF
cd9a469c 11193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 11194 (eval $ac_link) 2>&5
11195 ac_status=$?
cd9a469c 11196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11197 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
542f9784 11198 (./conftest; exit; ) >&5 2>/dev/null
11199 lt_status=$?
11200 case x$lt_status in
11201 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11202 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11203 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11204 esac
11205 else :
11206 # compilation failed
11207 lt_cv_dlopen_self=no
11208 fi
11209fi
11210rm -fr conftest*
11211
11212
11213fi
cd9a469c 11214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11215$as_echo "$lt_cv_dlopen_self" >&6; }
542f9784 11216
11217 if test "x$lt_cv_dlopen_self" = xyes; then
11218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cd9a469c 11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11220$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11221if test "${lt_cv_dlopen_self_static+set}" = set; then :
11222 $as_echo_n "(cached) " >&6
542f9784 11223else
11224 if test "$cross_compiling" = yes; then :
11225 lt_cv_dlopen_self_static=cross
11226else
11227 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11228 lt_status=$lt_dlunknown
11229 cat > conftest.$ac_ext <<_LT_EOF
b5cfe980 11230#line 11230 "configure"
542f9784 11231#include "confdefs.h"
11232
11233#if HAVE_DLFCN_H
11234#include <dlfcn.h>
11235#endif
11236
11237#include <stdio.h>
11238
11239#ifdef RTLD_GLOBAL
11240# define LT_DLGLOBAL RTLD_GLOBAL
11241#else
11242# ifdef DL_GLOBAL
11243# define LT_DLGLOBAL DL_GLOBAL
11244# else
11245# define LT_DLGLOBAL 0
11246# endif
11247#endif
11248
11249/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11250 find out it does not work in some platform. */
11251#ifndef LT_DLLAZY_OR_NOW
11252# ifdef RTLD_LAZY
11253# define LT_DLLAZY_OR_NOW RTLD_LAZY
11254# else
11255# ifdef DL_LAZY
11256# define LT_DLLAZY_OR_NOW DL_LAZY
11257# else
11258# ifdef RTLD_NOW
11259# define LT_DLLAZY_OR_NOW RTLD_NOW
11260# else
11261# ifdef DL_NOW
11262# define LT_DLLAZY_OR_NOW DL_NOW
11263# else
11264# define LT_DLLAZY_OR_NOW 0
11265# endif
11266# endif
11267# endif
11268# endif
11269#endif
11270
e6408286 11271/* When -fvisbility=hidden is used, assume the code has been annotated
11272 correspondingly for the symbols needed. */
11273#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11274void fnord () __attribute__((visibility("default")));
11275#endif
11276
11277void fnord () { int i=42; }
542f9784 11278int main ()
11279{
11280 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11281 int status = $lt_dlunknown;
11282
11283 if (self)
11284 {
11285 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
e6408286 11286 else
11287 {
11288 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11289 else puts (dlerror ());
11290 }
542f9784 11291 /* dlclose (self); */
11292 }
11293 else
11294 puts (dlerror ());
11295
6d873a38 11296 return status;
542f9784 11297}
11298_LT_EOF
cd9a469c 11299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
542f9784 11300 (eval $ac_link) 2>&5
11301 ac_status=$?
cd9a469c 11302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11303 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
542f9784 11304 (./conftest; exit; ) >&5 2>/dev/null
11305 lt_status=$?
11306 case x$lt_status in
11307 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11308 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11309 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11310 esac
11311 else :
11312 # compilation failed
11313 lt_cv_dlopen_self_static=no
11314 fi
11315fi
11316rm -fr conftest*
11317
11318
11319fi
cd9a469c 11320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11321$as_echo "$lt_cv_dlopen_self_static" >&6; }
542f9784 11322 fi
11323
11324 CPPFLAGS="$save_CPPFLAGS"
11325 LDFLAGS="$save_LDFLAGS"
11326 LIBS="$save_LIBS"
11327 ;;
11328 esac
11329
11330 case $lt_cv_dlopen_self in
11331 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11332 *) enable_dlopen_self=unknown ;;
11333 esac
11334
11335 case $lt_cv_dlopen_self_static in
11336 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11337 *) enable_dlopen_self_static=unknown ;;
11338 esac
11339fi
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357striplib=
11358old_striplib=
cd9a469c 11359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11360$as_echo_n "checking whether stripping libraries is possible... " >&6; }
542f9784 11361if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11362 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11363 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cd9a469c 11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11365$as_echo "yes" >&6; }
542f9784 11366else
11367# FIXME - insert some real tests, host_os isn't really good enough
11368 case $host_os in
11369 darwin*)
11370 if test -n "$STRIP" ; then
11371 striplib="$STRIP -x"
11372 old_striplib="$STRIP -S"
cd9a469c 11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11374$as_echo "yes" >&6; }
542f9784 11375 else
cd9a469c 11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377$as_echo "no" >&6; }
542f9784 11378 fi
11379 ;;
11380 *)
cd9a469c 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382$as_echo "no" >&6; }
542f9784 11383 ;;
11384 esac
11385fi
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398 # Report which library types will actually be built
cd9a469c 11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11400$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11402$as_echo "$can_build_shared" >&6; }
542f9784 11403
cd9a469c 11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11405$as_echo_n "checking whether to build shared libraries... " >&6; }
542f9784 11406 test "$can_build_shared" = "no" && enable_shared=no
11407
11408 # On AIX, shared libraries and static libraries use the same namespace, and
11409 # are all built from PIC.
11410 case $host_os in
11411 aix3*)
11412 test "$enable_shared" = yes && enable_static=no
11413 if test -n "$RANLIB"; then
11414 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11415 postinstall_cmds='$RANLIB $lib'
11416 fi
11417 ;;
11418
c8db569e 11419 aix[4-9]*)
542f9784 11420 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11421 test "$enable_shared" = yes && enable_static=no
11422 fi
11423 ;;
11424 esac
cd9a469c 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11426$as_echo "$enable_shared" >&6; }
542f9784 11427
cd9a469c 11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11429$as_echo_n "checking whether to build static libraries... " >&6; }
542f9784 11430 # Make sure either enable_shared or enable_static is yes.
11431 test "$enable_shared" = yes || enable_static=yes
cd9a469c 11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11433$as_echo "$enable_static" >&6; }
542f9784 11434
11435
11436
11437
11438fi
11439ac_ext=c
11440ac_cpp='$CPP $CPPFLAGS'
11441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11443ac_compiler_gnu=$ac_cv_c_compiler_gnu
11444
11445CC="$lt_save_CC"
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
cd9a469c 11459 ac_config_commands="$ac_config_commands libtool"
542f9784 11460
11461
11462
11463
11464# Only expand once:
11465
11466
11467
11468
11469
8c35d268 11470case $host in
11471 *-cygwin* | *-mingw*)
11472 # 'host' will be top-level target in the case of a target lib,
11473 # we must compare to with_cross_host to decide if this is a native
11474 # or cross-compiler and select where to install dlls appropriately.
11475 if test -n "$with_cross_host" &&
11476 test x"$with_cross_host" != x"no"; then
11477 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11478 else
11479 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11480 fi
11481 ;;
11482 *)
11483 lt_host_flags=
11484 ;;
11485esac
11486
11487
11488
11489
11490
11491
cd9a469c 11492
11493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11494$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11495 # Check whether --enable-maintainer-mode was given.
11496if test "${enable_maintainer_mode+set}" = set; then :
11497 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
542f9784 11498else
11499 USE_MAINTAINER_MODE=no
cd9a469c 11500fi
542f9784 11501
cd9a469c 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11503$as_echo "$USE_MAINTAINER_MODE" >&6; }
11504 if test $USE_MAINTAINER_MODE = yes; then
542f9784 11505 MAINTAINER_MODE_TRUE=
11506 MAINTAINER_MODE_FALSE='#'
11507else
11508 MAINTAINER_MODE_TRUE='#'
11509 MAINTAINER_MODE_FALSE=
11510fi
11511
11512 MAINT=$MAINTAINER_MODE_TRUE
11513
11514
11515
87969c8c 11516# Create a spec file, so that compile/link tests don't fail
11517test -f libgfortran.spec || touch libgfortran.spec
11518FCFLAGS="$FCFLAGS -L."
11519
542f9784 11520# We need gfortran to compile parts of the library
11521# We can't use AC_PROG_FC because it expects a fully working gfortran.
11522#AC_PROG_FC(gfortran)
00b1a0e2 11523case `echo $GFORTRAN` in
11524 -* | no* )
11525 FC=no ;;
11526 *)
a5e97ab0 11527 set dummy $GFORTRAN; ac_word=$2
11528 if test -x "$ac_word"; then
647ee0e4 11529 FC="$GFORTRAN"
11530 else
11531 FC=no
11532 fi ;;
00b1a0e2 11533esac
cd9a469c 11534ac_ext=${ac_fc_srcext-f}
11535ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11536ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
542f9784 11537ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11538if test -n "$ac_tool_prefix"; then
11539 for ac_prog in gfortran
11540 do
11541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11542set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 11543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544$as_echo_n "checking for $ac_word... " >&6; }
11545if test "${ac_cv_prog_FC+set}" = set; then :
11546 $as_echo_n "(cached) " >&6
542f9784 11547else
11548 if test -n "$FC"; then
11549 ac_cv_prog_FC="$FC" # Let the user override the test.
11550else
11551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552for as_dir in $PATH
11553do
11554 IFS=$as_save_IFS
11555 test -z "$as_dir" && as_dir=.
cd9a469c 11556 for ac_exec_ext in '' $ac_executable_extensions; do
11557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 11558 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
cd9a469c 11559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 11560 break 2
11561 fi
11562done
cd9a469c 11563 done
11564IFS=$as_save_IFS
542f9784 11565
11566fi
11567fi
11568FC=$ac_cv_prog_FC
11569if test -n "$FC"; then
cd9a469c 11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11571$as_echo "$FC" >&6; }
542f9784 11572else
cd9a469c 11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574$as_echo "no" >&6; }
542f9784 11575fi
11576
cd9a469c 11577
542f9784 11578 test -n "$FC" && break
11579 done
11580fi
11581if test -z "$FC"; then
11582 ac_ct_FC=$FC
11583 for ac_prog in gfortran
11584do
11585 # Extract the first word of "$ac_prog", so it can be a program name with args.
11586set dummy $ac_prog; ac_word=$2
cd9a469c 11587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11588$as_echo_n "checking for $ac_word... " >&6; }
11589if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11590 $as_echo_n "(cached) " >&6
542f9784 11591else
11592 if test -n "$ac_ct_FC"; then
11593 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11594else
11595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596for as_dir in $PATH
11597do
11598 IFS=$as_save_IFS
11599 test -z "$as_dir" && as_dir=.
cd9a469c 11600 for ac_exec_ext in '' $ac_executable_extensions; do
11601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
542f9784 11602 ac_cv_prog_ac_ct_FC="$ac_prog"
cd9a469c 11603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
542f9784 11604 break 2
11605 fi
11606done
cd9a469c 11607 done
11608IFS=$as_save_IFS
542f9784 11609
11610fi
11611fi
11612ac_ct_FC=$ac_cv_prog_ac_ct_FC
11613if test -n "$ac_ct_FC"; then
cd9a469c 11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11615$as_echo "$ac_ct_FC" >&6; }
542f9784 11616else
cd9a469c 11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618$as_echo "no" >&6; }
542f9784 11619fi
11620
cd9a469c 11621
542f9784 11622 test -n "$ac_ct_FC" && break
11623done
11624
cd9a469c 11625 if test "x$ac_ct_FC" = x; then
11626 FC=""
11627 else
11628 case $cross_compiling:$ac_tool_warned in
11629yes:)
11630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11632ac_tool_warned=yes ;;
11633esac
11634 FC=$ac_ct_FC
11635 fi
542f9784 11636fi
11637
11638
11639# Provide some information about the compiler.
cd9a469c 11640$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11641set X $ac_compile
11642ac_compiler=$2
11643for ac_option in --version -v -V -qversion; do
11644 { { ac_try="$ac_compiler $ac_option >&5"
11645case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11648esac
11649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11650$as_echo "$ac_try_echo"; } >&5
11651 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
542f9784 11652 ac_status=$?
cd9a469c 11653 if test -s conftest.err; then
11654 sed '10a\
11655... rest of stderr output deleted ...
11656 10q' conftest.err >conftest.er1
11657 cat conftest.er1 >&5
11658 rm -f conftest.er1 conftest.err
11659 fi
11660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11661 test $ac_status = 0; }
11662done
542f9784 11663rm -f a.out
11664
11665# If we don't use `.F' as extension, the preprocessor is not run on the
11666# input file. (Note that this only needs to work for GNU compilers.)
11667ac_save_ext=$ac_ext
11668ac_ext=F
cd9a469c 11669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11670$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11671if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11672 $as_echo_n "(cached) " >&6
542f9784 11673else
cd9a469c 11674 cat > conftest.$ac_ext <<_ACEOF
542f9784 11675 program main
11676#ifndef __GNUC__
11677 choke me
11678#endif
11679
11680 end
11681_ACEOF
cd9a469c 11682if ac_fn_fc_try_compile "$LINENO"; then :
542f9784 11683 ac_compiler_gnu=yes
11684else
cd9a469c 11685 ac_compiler_gnu=no
542f9784 11686fi
cd9a469c 11687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 11688ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11689
11690fi
cd9a469c 11691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11692$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
542f9784 11693ac_ext=$ac_save_ext
cd9a469c 11694ac_test_FCFLAGS=${FCFLAGS+set}
11695ac_save_FCFLAGS=$FCFLAGS
542f9784 11696FCFLAGS=
cd9a469c 11697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11698$as_echo_n "checking whether $FC accepts -g... " >&6; }
11699if test "${ac_cv_prog_fc_g+set}" = set; then :
11700 $as_echo_n "(cached) " >&6
542f9784 11701else
11702 FCFLAGS=-g
cd9a469c 11703cat > conftest.$ac_ext <<_ACEOF
542f9784 11704 program main
11705
11706 end
11707_ACEOF
cd9a469c 11708if ac_fn_fc_try_compile "$LINENO"; then :
542f9784 11709 ac_cv_prog_fc_g=yes
11710else
cd9a469c 11711 ac_cv_prog_fc_g=no
542f9784 11712fi
cd9a469c 11713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 11714
11715fi
cd9a469c 11716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11717$as_echo "$ac_cv_prog_fc_g" >&6; }
11718if test "$ac_test_FCFLAGS" = set; then
11719 FCFLAGS=$ac_save_FCFLAGS
542f9784 11720elif test $ac_cv_prog_fc_g = yes; then
11721 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11722 FCFLAGS="-g -O2"
11723 else
11724 FCFLAGS="-g"
11725 fi
11726else
11727 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11728 FCFLAGS="-O2"
11729 else
11730 FCFLAGS=
11731 fi
11732fi
11733
11734ac_ext=c
11735ac_cpp='$CPP $CPPFLAGS'
11736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11738ac_compiler_gnu=$ac_cv_c_compiler_gnu
11739
e6408286 11740 ac_ext=${ac_fc_srcext-f}
cd9a469c 11741ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11742ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
542f9784 11743ac_compiler_gnu=$ac_cv_fc_compiler_gnu
542f9784 11744
542f9784 11745
11746if test -z "$FC" || test "X$FC" = "Xno"; then
11747 _lt_disable_FC=yes
11748fi
11749
542f9784 11750archive_cmds_need_lc_FC=no
11751allow_undefined_flag_FC=
11752always_export_symbols_FC=no
11753archive_expsym_cmds_FC=
11754export_dynamic_flag_spec_FC=
11755hardcode_direct_FC=no
11756hardcode_direct_absolute_FC=no
11757hardcode_libdir_flag_spec_FC=
11758hardcode_libdir_flag_spec_ld_FC=
11759hardcode_libdir_separator_FC=
11760hardcode_minus_L_FC=no
11761hardcode_automatic_FC=no
11762inherit_rpath_FC=no
11763module_cmds_FC=
11764module_expsym_cmds_FC=
11765link_all_deplibs_FC=unknown
11766old_archive_cmds_FC=$old_archive_cmds
e6408286 11767reload_flag_FC=$reload_flag
11768reload_cmds_FC=$reload_cmds
542f9784 11769no_undefined_flag_FC=
11770whole_archive_flag_spec_FC=
11771enable_shared_with_static_runtimes_FC=no
11772
11773# Source file extension for fc test sources.
11774ac_ext=${ac_fc_srcext-f}
11775
11776# Object file extension for compiled fc test sources.
11777objext=o
11778objext_FC=$objext
11779
11780# No sense in running all these tests if we already determined that
11781# the FC compiler isn't working. Some variables (like enable_shared)
11782# are currently assumed to apply to all compilers on this platform,
11783# and will be corrupted by setting them based on a non-working compiler.
11784if test "$_lt_disable_FC" != yes; then
11785 # Code to be used in simple compile tests
11786 lt_simple_compile_test_code="\
11787 subroutine t
11788 return
11789 end
11790"
11791
11792 # Code to be used in simple link tests
11793 lt_simple_link_test_code="\
11794 program t
11795 end
11796"
11797
11798 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11799
11800
11801
11802
11803
11804
11805# If no C compiler was specified, use CC.
11806LTCC=${LTCC-"$CC"}
11807
11808# If no C compiler flags were specified, use CFLAGS.
11809LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11810
11811# Allow CC to be a program name with arguments.
11812compiler=$CC
11813
11814
11815 # save warnings/boilerplate of simple test code
11816 ac_outfile=conftest.$ac_objext
11817echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11818eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11819_lt_compiler_boilerplate=`cat conftest.err`
11820$RM conftest*
11821
11822 ac_outfile=conftest.$ac_objext
11823echo "$lt_simple_link_test_code" >conftest.$ac_ext
11824eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11825_lt_linker_boilerplate=`cat conftest.err`
6d873a38 11826$RM -r conftest*
542f9784 11827
11828
11829 # Allow CC to be a program name with arguments.
11830 lt_save_CC="$CC"
6d873a38 11831 lt_save_GCC=$GCC
542f9784 11832 CC=${FC-"f95"}
11833 compiler=$CC
6d873a38 11834 GCC=$ac_cv_fc_compiler_gnu
11835
542f9784 11836 compiler_FC=$CC
11837 for cc_temp in $compiler""; do
11838 case $cc_temp in
11839 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11840 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11841 \-*) ;;
11842 *) break;;
11843 esac
11844done
e6408286 11845cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
542f9784 11846
11847
11848 if test -n "$compiler"; then
cd9a469c 11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11850$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11852$as_echo "$can_build_shared" >&6; }
542f9784 11853
cd9a469c 11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11855$as_echo_n "checking whether to build shared libraries... " >&6; }
542f9784 11856 test "$can_build_shared" = "no" && enable_shared=no
11857
11858 # On AIX, shared libraries and static libraries use the same namespace, and
11859 # are all built from PIC.
11860 case $host_os in
11861 aix3*)
11862 test "$enable_shared" = yes && enable_static=no
11863 if test -n "$RANLIB"; then
11864 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11865 postinstall_cmds='$RANLIB $lib'
11866 fi
11867 ;;
c8db569e 11868 aix[4-9]*)
542f9784 11869 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11870 test "$enable_shared" = yes && enable_static=no
11871 fi
11872 ;;
11873 esac
cd9a469c 11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11875$as_echo "$enable_shared" >&6; }
542f9784 11876
cd9a469c 11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11878$as_echo_n "checking whether to build static libraries... " >&6; }
542f9784 11879 # Make sure either enable_shared or enable_static is yes.
11880 test "$enable_shared" = yes || enable_static=yes
cd9a469c 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11882$as_echo "$enable_static" >&6; }
542f9784 11883
11884 GCC_FC="$ac_cv_fc_compiler_gnu"
11885 LD_FC="$LD"
11886
11887 ## CAVEAT EMPTOR:
11888 ## There is no encapsulation within the following macros, do not change
11889 ## the running order or otherwise move them around unless you know exactly
11890 ## what you are doing...
11891 # Dependencies to place before and after the object being linked:
11892predep_objects_FC=
11893postdep_objects_FC=
11894predeps_FC=
11895postdeps_FC=
11896compiler_lib_search_path_FC=
11897
11898cat > conftest.$ac_ext <<_LT_EOF
11899 subroutine foo
11900 implicit none
11901 integer a
11902 a=0
11903 return
11904 end
11905_LT_EOF
11906
cd9a469c 11907if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 11908 (eval $ac_compile) 2>&5
11909 ac_status=$?
cd9a469c 11910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11911 test $ac_status = 0; }; then
542f9784 11912 # Parse the compiler output and extract the necessary
11913 # objects, libraries and library flags.
11914
11915 # Sentinel used to keep track of whether or not we are before
11916 # the conftest object file.
11917 pre_test_object_deps_done=no
11918
6d873a38 11919 for p in `eval "$output_verbose_link_cmd"`; do
542f9784 11920 case $p in
11921
11922 -L* | -R* | -l*)
11923 # Some compilers place space between "-{L,R}" and the path.
11924 # Remove the space.
11925 if test $p = "-L" ||
11926 test $p = "-R"; then
11927 prev=$p
11928 continue
11929 else
11930 prev=
11931 fi
11932
11933 if test "$pre_test_object_deps_done" = no; then
11934 case $p in
11935 -L* | -R*)
11936 # Internal compiler library paths should come after those
11937 # provided the user. The postdeps already come after the
11938 # user supplied libs so there is no need to process them.
11939 if test -z "$compiler_lib_search_path_FC"; then
11940 compiler_lib_search_path_FC="${prev}${p}"
11941 else
11942 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11943 fi
11944 ;;
11945 # The "-l" case would never come before the object being
11946 # linked, so don't bother handling this case.
11947 esac
11948 else
11949 if test -z "$postdeps_FC"; then
11950 postdeps_FC="${prev}${p}"
11951 else
11952 postdeps_FC="${postdeps_FC} ${prev}${p}"
11953 fi
11954 fi
11955 ;;
11956
11957 *.$objext)
11958 # This assumes that the test object file only shows up
11959 # once in the compiler output.
11960 if test "$p" = "conftest.$objext"; then
11961 pre_test_object_deps_done=yes
11962 continue
11963 fi
11964
11965 if test "$pre_test_object_deps_done" = no; then
11966 if test -z "$predep_objects_FC"; then
11967 predep_objects_FC="$p"
11968 else
11969 predep_objects_FC="$predep_objects_FC $p"
11970 fi
11971 else
11972 if test -z "$postdep_objects_FC"; then
11973 postdep_objects_FC="$p"
11974 else
11975 postdep_objects_FC="$postdep_objects_FC $p"
11976 fi
11977 fi
11978 ;;
11979
11980 *) ;; # Ignore the rest.
11981
11982 esac
11983 done
11984
11985 # Clean up.
11986 rm -f a.out a.exe
11987else
11988 echo "libtool.m4: error: problem compiling FC test program"
11989fi
11990
11991$RM -f confest.$objext
11992
11993# PORTME: override above test on systems where it is broken
11994
11995
11996case " $postdeps_FC " in
11997*" -lc "*) archive_cmds_need_lc_FC=no ;;
11998esac
6d873a38 11999 compiler_lib_search_dirs_FC=
12000if test -n "${compiler_lib_search_path_FC}"; then
12001 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12002fi
12003
12004
12005
12006
12007
542f9784 12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034 lt_prog_compiler_wl_FC=
12035lt_prog_compiler_pic_FC=
12036lt_prog_compiler_static_FC=
12037
cd9a469c 12038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12039$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
542f9784 12040
12041 if test "$GCC" = yes; then
12042 lt_prog_compiler_wl_FC='-Wl,'
12043 lt_prog_compiler_static_FC='-static'
12044
12045 case $host_os in
12046 aix*)
12047 # All AIX code is PIC.
12048 if test "$host_cpu" = ia64; then
12049 # AIX 5 now supports IA64 processor
12050 lt_prog_compiler_static_FC='-Bstatic'
12051 fi
33cbbd54 12052 lt_prog_compiler_pic_FC='-fPIC'
542f9784 12053 ;;
12054
12055 amigaos*)
6d873a38 12056 case $host_cpu in
12057 powerpc)
12058 # see comment about AmigaOS4 .so support
12059 lt_prog_compiler_pic_FC='-fPIC'
12060 ;;
12061 m68k)
12062 # FIXME: we need at least 68020 code to build shared libraries, but
12063 # adding the `-m68020' flag to GCC prevents building anything better,
12064 # like `-m68040'.
12065 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12066 ;;
12067 esac
542f9784 12068 ;;
12069
12070 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12071 # PIC is the default for these OSes.
12072 ;;
12073
6d873a38 12074 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 12075 # This hack is so that the source file can tell whether it is being
12076 # built for inclusion in a dll (and should export symbols for example).
12077 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12078 # (--disable-auto-import) libraries
12079 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12080 ;;
12081
12082 darwin* | rhapsody*)
12083 # PIC is the default on this platform
12084 # Common symbols not allowed in MH_DYLIB files
12085 lt_prog_compiler_pic_FC='-fno-common'
12086 ;;
12087
e6408286 12088 haiku*)
12089 # PIC is the default for Haiku.
12090 # The "-static" flag exists, but is broken.
12091 lt_prog_compiler_static_FC=
12092 ;;
12093
542f9784 12094 hpux*)
6d873a38 12095 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12096 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12097 # sets the default TLS model and affects inlining.
542f9784 12098 case $host_cpu in
6d873a38 12099 hppa*64*)
542f9784 12100 # +Z the default
12101 ;;
12102 *)
12103 lt_prog_compiler_pic_FC='-fPIC'
12104 ;;
12105 esac
12106 ;;
12107
12108 interix[3-9]*)
12109 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12110 # Instead, we relocate shared libraries at runtime.
12111 ;;
12112
12113 msdosdjgpp*)
12114 # Just because we use GCC doesn't mean we suddenly get shared libraries
12115 # on systems that don't support them.
12116 lt_prog_compiler_can_build_shared_FC=no
12117 enable_shared=no
12118 ;;
12119
12120 *nto* | *qnx*)
12121 # QNX uses GNU C++, but need to define -shared option too, otherwise
12122 # it will coredump.
12123 lt_prog_compiler_pic_FC='-fPIC -shared'
12124 ;;
12125
12126 sysv4*MP*)
12127 if test -d /usr/nec; then
12128 lt_prog_compiler_pic_FC=-Kconform_pic
12129 fi
12130 ;;
12131
12132 *)
12133 lt_prog_compiler_pic_FC='-fPIC'
12134 ;;
12135 esac
e6408286 12136
12137 case $cc_basename in
12138 nvcc*) # Cuda Compiler Driver 2.2
12139 lt_prog_compiler_wl_FC='-Xlinker '
12140 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12141 ;;
12142 esac
542f9784 12143 else
12144 # PORTME Check for flag to pass linker flags through the system compiler.
12145 case $host_os in
12146 aix*)
12147 lt_prog_compiler_wl_FC='-Wl,'
12148 if test "$host_cpu" = ia64; then
12149 # AIX 5 now supports IA64 processor
12150 lt_prog_compiler_static_FC='-Bstatic'
12151 else
12152 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12153 fi
12154 ;;
542f9784 12155
6d873a38 12156 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 12157 # This hack is so that the source file can tell whether it is being
12158 # built for inclusion in a dll (and should export symbols for example).
12159 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12160 ;;
12161
12162 hpux9* | hpux10* | hpux11*)
12163 lt_prog_compiler_wl_FC='-Wl,'
12164 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12165 # not for PA HP-UX.
12166 case $host_cpu in
12167 hppa*64*|ia64*)
12168 # +Z the default
12169 ;;
12170 *)
12171 lt_prog_compiler_pic_FC='+Z'
12172 ;;
12173 esac
12174 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12175 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12176 ;;
12177
12178 irix5* | irix6* | nonstopux*)
12179 lt_prog_compiler_wl_FC='-Wl,'
12180 # PIC (with -KPIC) is the default.
12181 lt_prog_compiler_static_FC='-non_shared'
12182 ;;
12183
9af964d4 12184 linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 12185 case $cc_basename in
6d873a38 12186 # old Intel for x86_64 which still supported -KPIC.
12187 ecc*)
542f9784 12188 lt_prog_compiler_wl_FC='-Wl,'
12189 lt_prog_compiler_pic_FC='-KPIC'
12190 lt_prog_compiler_static_FC='-static'
12191 ;;
6d873a38 12192 # icc used to be incompatible with GCC.
12193 # ICC 10 doesn't accept -KPIC any more.
12194 icc* | ifort*)
12195 lt_prog_compiler_wl_FC='-Wl,'
12196 lt_prog_compiler_pic_FC='-fPIC'
12197 lt_prog_compiler_static_FC='-static'
12198 ;;
12199 # Lahey Fortran 8.1.
12200 lf95*)
12201 lt_prog_compiler_wl_FC='-Wl,'
12202 lt_prog_compiler_pic_FC='--shared'
12203 lt_prog_compiler_static_FC='--static'
12204 ;;
e6408286 12205 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
542f9784 12206 # Portland Group compilers (*not* the Pentium gcc compiler,
12207 # which looks to be a dead project)
12208 lt_prog_compiler_wl_FC='-Wl,'
12209 lt_prog_compiler_pic_FC='-fpic'
12210 lt_prog_compiler_static_FC='-Bstatic'
12211 ;;
12212 ccc*)
12213 lt_prog_compiler_wl_FC='-Wl,'
12214 # All Alpha code is PIC.
12215 lt_prog_compiler_static_FC='-non_shared'
12216 ;;
e6408286 12217 xl* | bgxl* | bgf* | mpixl*)
12218 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
6d873a38 12219 lt_prog_compiler_wl_FC='-Wl,'
12220 lt_prog_compiler_pic_FC='-qpic'
12221 lt_prog_compiler_static_FC='-qstaticlink'
12222 ;;
542f9784 12223 *)
12224 case `$CC -V 2>&1 | sed 5q` in
e6408286 12225 *Sun\ F* | *Sun*Fortran*)
12226 # Sun Fortran 8.3 passes all unrecognized flags to the linker
542f9784 12227 lt_prog_compiler_pic_FC='-KPIC'
12228 lt_prog_compiler_static_FC='-Bstatic'
e6408286 12229 lt_prog_compiler_wl_FC=''
542f9784 12230 ;;
e6408286 12231 *Sun\ C*)
12232 # Sun C 5.9
542f9784 12233 lt_prog_compiler_pic_FC='-KPIC'
12234 lt_prog_compiler_static_FC='-Bstatic'
e6408286 12235 lt_prog_compiler_wl_FC='-Wl,'
542f9784 12236 ;;
12237 esac
12238 ;;
12239 esac
12240 ;;
12241
12242 newsos6)
12243 lt_prog_compiler_pic_FC='-KPIC'
12244 lt_prog_compiler_static_FC='-Bstatic'
12245 ;;
12246
12247 *nto* | *qnx*)
12248 # QNX uses GNU C++, but need to define -shared option too, otherwise
12249 # it will coredump.
12250 lt_prog_compiler_pic_FC='-fPIC -shared'
12251 ;;
12252
12253 osf3* | osf4* | osf5*)
12254 lt_prog_compiler_wl_FC='-Wl,'
12255 # All OSF/1 code is PIC.
12256 lt_prog_compiler_static_FC='-non_shared'
12257 ;;
12258
12259 rdos*)
12260 lt_prog_compiler_static_FC='-non_shared'
12261 ;;
12262
12263 solaris*)
12264 lt_prog_compiler_pic_FC='-KPIC'
12265 lt_prog_compiler_static_FC='-Bstatic'
12266 case $cc_basename in
12267 f77* | f90* | f95*)
12268 lt_prog_compiler_wl_FC='-Qoption ld ';;
12269 *)
12270 lt_prog_compiler_wl_FC='-Wl,';;
12271 esac
12272 ;;
12273
12274 sunos4*)
12275 lt_prog_compiler_wl_FC='-Qoption ld '
12276 lt_prog_compiler_pic_FC='-PIC'
12277 lt_prog_compiler_static_FC='-Bstatic'
12278 ;;
12279
12280 sysv4 | sysv4.2uw2* | sysv4.3*)
12281 lt_prog_compiler_wl_FC='-Wl,'
12282 lt_prog_compiler_pic_FC='-KPIC'
12283 lt_prog_compiler_static_FC='-Bstatic'
12284 ;;
12285
12286 sysv4*MP*)
12287 if test -d /usr/nec ;then
12288 lt_prog_compiler_pic_FC='-Kconform_pic'
12289 lt_prog_compiler_static_FC='-Bstatic'
12290 fi
12291 ;;
12292
12293 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12294 lt_prog_compiler_wl_FC='-Wl,'
12295 lt_prog_compiler_pic_FC='-KPIC'
12296 lt_prog_compiler_static_FC='-Bstatic'
12297 ;;
12298
12299 unicos*)
12300 lt_prog_compiler_wl_FC='-Wl,'
12301 lt_prog_compiler_can_build_shared_FC=no
12302 ;;
12303
12304 uts4*)
12305 lt_prog_compiler_pic_FC='-pic'
12306 lt_prog_compiler_static_FC='-Bstatic'
12307 ;;
12308
12309 *)
12310 lt_prog_compiler_can_build_shared_FC=no
12311 ;;
12312 esac
12313 fi
12314
12315case $host_os in
12316 # For platforms which do not support PIC, -DPIC is meaningless:
12317 *djgpp*)
12318 lt_prog_compiler_pic_FC=
12319 ;;
12320 *)
12321 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12322 ;;
12323esac
cd9a469c 12324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12325$as_echo "$lt_prog_compiler_pic_FC" >&6; }
542f9784 12326
12327
12328
12329#
12330# Check to make sure the PIC flag actually works.
12331#
12332if test -n "$lt_prog_compiler_pic_FC"; then
cd9a469c 12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12334$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12335if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12336 $as_echo_n "(cached) " >&6
542f9784 12337else
6d873a38 12338 lt_cv_prog_compiler_pic_works_FC=no
542f9784 12339 ac_outfile=conftest.$ac_objext
12340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12341 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12342 # Insert the option either (1) after the last *FLAGS variable, or
12343 # (2) before a word containing "conftest.", or (3) at the end.
12344 # Note that $ac_compile itself does not contain backslashes and begins
12345 # with a dollar sign (not a hyphen), so the echo should work correctly.
12346 # The option is referenced via a variable to avoid confusing sed.
12347 lt_compile=`echo "$ac_compile" | $SED \
12348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12350 -e 's:$: $lt_compiler_flag:'`
e6408286 12351 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 12352 (eval "$lt_compile" 2>conftest.err)
12353 ac_status=$?
12354 cat conftest.err >&5
e6408286 12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 12356 if (exit $ac_status) && test -s "$ac_outfile"; then
12357 # The compiler can only warn and ignore the option if not recognized
12358 # So say no if there are warnings other than the usual output.
e6408286 12359 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
542f9784 12360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12361 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6d873a38 12362 lt_cv_prog_compiler_pic_works_FC=yes
542f9784 12363 fi
12364 fi
12365 $RM conftest*
12366
12367fi
cd9a469c 12368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12369$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
542f9784 12370
6d873a38 12371if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
542f9784 12372 case $lt_prog_compiler_pic_FC in
12373 "" | " "*) ;;
12374 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12375 esac
12376else
12377 lt_prog_compiler_pic_FC=
12378 lt_prog_compiler_can_build_shared_FC=no
12379fi
12380
12381fi
12382
12383
12384
12385#
12386# Check to make sure the static flag actually works.
12387#
12388wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
cd9a469c 12389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12390$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12391if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12392 $as_echo_n "(cached) " >&6
542f9784 12393else
6d873a38 12394 lt_cv_prog_compiler_static_works_FC=no
542f9784 12395 save_LDFLAGS="$LDFLAGS"
12396 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12397 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12398 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12399 # The linker can only warn and ignore the option if not recognized
12400 # So say no if there are warnings
12401 if test -s conftest.err; then
12402 # Append any errors to the config.log.
12403 cat conftest.err 1>&5
e6408286 12404 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
542f9784 12405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12406 if diff conftest.exp conftest.er2 >/dev/null; then
6d873a38 12407 lt_cv_prog_compiler_static_works_FC=yes
542f9784 12408 fi
12409 else
6d873a38 12410 lt_cv_prog_compiler_static_works_FC=yes
542f9784 12411 fi
12412 fi
6d873a38 12413 $RM -r conftest*
542f9784 12414 LDFLAGS="$save_LDFLAGS"
12415
12416fi
cd9a469c 12417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12418$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
542f9784 12419
6d873a38 12420if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
542f9784 12421 :
12422else
12423 lt_prog_compiler_static_FC=
12424fi
12425
12426
12427
12428
cd9a469c 12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12430$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12431if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12432 $as_echo_n "(cached) " >&6
542f9784 12433else
12434 lt_cv_prog_compiler_c_o_FC=no
12435 $RM -r conftest 2>/dev/null
12436 mkdir conftest
12437 cd conftest
12438 mkdir out
12439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12440
12441 lt_compiler_flag="-o out/conftest2.$ac_objext"
12442 # Insert the option either (1) after the last *FLAGS variable, or
12443 # (2) before a word containing "conftest.", or (3) at the end.
12444 # Note that $ac_compile itself does not contain backslashes and begins
12445 # with a dollar sign (not a hyphen), so the echo should work correctly.
12446 lt_compile=`echo "$ac_compile" | $SED \
12447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12449 -e 's:$: $lt_compiler_flag:'`
e6408286 12450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 12451 (eval "$lt_compile" 2>out/conftest.err)
12452 ac_status=$?
12453 cat out/conftest.err >&5
e6408286 12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 12455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12456 then
12457 # The compiler can only warn and ignore the option if not recognized
12458 # So say no if there are warnings
e6408286 12459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 12460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12462 lt_cv_prog_compiler_c_o_FC=yes
12463 fi
12464 fi
12465 chmod u+w . 2>&5
12466 $RM conftest*
12467 # SGI C++ compiler will create directory out/ii_files/ for
12468 # template instantiation
12469 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12470 $RM out/* && rmdir out
12471 cd ..
12472 $RM -r conftest
12473 $RM conftest*
12474
12475fi
cd9a469c 12476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12477$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
542f9784 12478
12479
12480
cd9a469c 12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12482$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12483if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12484 $as_echo_n "(cached) " >&6
542f9784 12485else
12486 lt_cv_prog_compiler_c_o_FC=no
12487 $RM -r conftest 2>/dev/null
12488 mkdir conftest
12489 cd conftest
12490 mkdir out
12491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12492
12493 lt_compiler_flag="-o out/conftest2.$ac_objext"
12494 # Insert the option either (1) after the last *FLAGS variable, or
12495 # (2) before a word containing "conftest.", or (3) at the end.
12496 # Note that $ac_compile itself does not contain backslashes and begins
12497 # with a dollar sign (not a hyphen), so the echo should work correctly.
12498 lt_compile=`echo "$ac_compile" | $SED \
12499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12501 -e 's:$: $lt_compiler_flag:'`
e6408286 12502 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
542f9784 12503 (eval "$lt_compile" 2>out/conftest.err)
12504 ac_status=$?
12505 cat out/conftest.err >&5
e6408286 12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 12507 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12508 then
12509 # The compiler can only warn and ignore the option if not recognized
12510 # So say no if there are warnings
e6408286 12511 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
542f9784 12512 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12513 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12514 lt_cv_prog_compiler_c_o_FC=yes
12515 fi
12516 fi
12517 chmod u+w . 2>&5
12518 $RM conftest*
12519 # SGI C++ compiler will create directory out/ii_files/ for
12520 # template instantiation
12521 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12522 $RM out/* && rmdir out
12523 cd ..
12524 $RM -r conftest
12525 $RM conftest*
12526
12527fi
cd9a469c 12528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12529$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
542f9784 12530
12531
12532
12533
12534hard_links="nottested"
12535if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12536 # do not overwrite the value of need_locks provided by the user
cd9a469c 12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12538$as_echo_n "checking if we can lock with hard links... " >&6; }
542f9784 12539 hard_links=yes
12540 $RM conftest*
12541 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12542 touch conftest.a
12543 ln conftest.a conftest.b 2>&5 || hard_links=no
12544 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cd9a469c 12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12546$as_echo "$hard_links" >&6; }
542f9784 12547 if test "$hard_links" = no; then
cd9a469c 12548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12549$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
542f9784 12550 need_locks=warn
12551 fi
12552else
12553 need_locks=no
12554fi
12555
12556
12557
cd9a469c 12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12559$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
542f9784 12560
12561 runpath_var=
12562 allow_undefined_flag_FC=
12563 always_export_symbols_FC=no
12564 archive_cmds_FC=
12565 archive_expsym_cmds_FC=
12566 compiler_needs_object_FC=no
12567 enable_shared_with_static_runtimes_FC=no
12568 export_dynamic_flag_spec_FC=
12569 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12570 hardcode_automatic_FC=no
12571 hardcode_direct_FC=no
12572 hardcode_direct_absolute_FC=no
12573 hardcode_libdir_flag_spec_FC=
12574 hardcode_libdir_flag_spec_ld_FC=
12575 hardcode_libdir_separator_FC=
12576 hardcode_minus_L_FC=no
12577 hardcode_shlibpath_var_FC=unsupported
12578 inherit_rpath_FC=no
12579 link_all_deplibs_FC=unknown
12580 module_cmds_FC=
12581 module_expsym_cmds_FC=
12582 old_archive_from_new_cmds_FC=
12583 old_archive_from_expsyms_cmds_FC=
12584 thread_safe_flag_spec_FC=
12585 whole_archive_flag_spec_FC=
12586 # include_expsyms should be a list of space-separated symbols to be *always*
12587 # included in the symbol list
12588 include_expsyms_FC=
12589 # exclude_expsyms can be an extended regexp of symbols to exclude
12590 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12591 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12592 # as well as any symbol that contains `d'.
6d873a38 12593 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
542f9784 12594 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12595 # platforms (ab)use it in PIC code, but their linkers get confused if
12596 # the symbol is explicitly referenced. Since portable code cannot
12597 # rely on this symbol name, it's probably fine to never include it in
12598 # preloaded symbol tables.
6d873a38 12599 # Exclude shared library initialization/finalization symbols.
542f9784 12600 extract_expsyms_cmds=
12601
12602 case $host_os in
6d873a38 12603 cygwin* | mingw* | pw32* | cegcc*)
542f9784 12604 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12605 # When not using gcc, we currently assume that we are using
12606 # Microsoft Visual C++.
12607 if test "$GCC" != yes; then
12608 with_gnu_ld=no
12609 fi
12610 ;;
12611 interix*)
12612 # we just hope/assume this is gcc and not c89 (= MSVC++)
12613 with_gnu_ld=yes
12614 ;;
12615 openbsd*)
12616 with_gnu_ld=no
12617 ;;
12618 esac
12619
12620 ld_shlibs_FC=yes
e6408286 12621
12622 # On some targets, GNU ld is compatible enough with the native linker
12623 # that we're better off using the native interface for both.
12624 lt_use_gnu_ld_interface=no
542f9784 12625 if test "$with_gnu_ld" = yes; then
e6408286 12626 case $host_os in
12627 aix*)
12628 # The AIX port of GNU ld has always aspired to compatibility
12629 # with the native linker. However, as the warning in the GNU ld
12630 # block says, versions before 2.19.5* couldn't really create working
12631 # shared libraries, regardless of the interface used.
12632 case `$LD -v 2>&1` in
12633 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12634 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12635 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12636 *)
12637 lt_use_gnu_ld_interface=yes
12638 ;;
12639 esac
12640 ;;
12641 *)
12642 lt_use_gnu_ld_interface=yes
12643 ;;
12644 esac
12645 fi
12646
12647 if test "$lt_use_gnu_ld_interface" = yes; then
542f9784 12648 # If archive_cmds runs LD, not CC, wlarc should be empty
12649 wlarc='${wl}'
12650
12651 # Set some defaults for GNU ld with shared library support. These
12652 # are reset later if shared libraries are not supported. Putting them
12653 # here allows them to be overridden if necessary.
12654 runpath_var=LD_RUN_PATH
12655 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12656 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12657 # ancient GNU ld didn't support --whole-archive et. al.
12658 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12659 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12660 else
12661 whole_archive_flag_spec_FC=
12662 fi
12663 supports_anon_versioning=no
12664 case `$LD -v 2>&1` in
e6408286 12665 *GNU\ gold*) supports_anon_versioning=yes ;;
542f9784 12666 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12667 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12668 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12669 *\ 2.11.*) ;; # other 2.11 versions
12670 *) supports_anon_versioning=yes ;;
12671 esac
12672
12673 # See if GNU ld supports shared libraries.
12674 case $host_os in
c8db569e 12675 aix[3-9]*)
542f9784 12676 # On AIX/PPC, the GNU linker is very broken
12677 if test "$host_cpu" != ia64; then
12678 ld_shlibs_FC=no
12679 cat <<_LT_EOF 1>&2
12680
e6408286 12681*** Warning: the GNU linker, at least up to release 2.19, is reported
542f9784 12682*** to be unable to reliably create shared libraries on AIX.
12683*** Therefore, libtool is disabling shared libraries support. If you
e6408286 12684*** really care for shared libraries, you may want to install binutils
12685*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12686*** You will then need to restart the configuration process.
542f9784 12687
12688_LT_EOF
12689 fi
12690 ;;
12691
12692 amigaos*)
6d873a38 12693 case $host_cpu in
12694 powerpc)
12695 # see comment about AmigaOS4 .so support
12696 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12697 archive_expsym_cmds_FC=''
12698 ;;
12699 m68k)
12700 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)'
12701 hardcode_libdir_flag_spec_FC='-L$libdir'
12702 hardcode_minus_L_FC=yes
12703 ;;
12704 esac
542f9784 12705 ;;
12706
12707 beos*)
12708 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12709 allow_undefined_flag_FC=unsupported
12710 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12711 # support --undefined. This deserves some investigation. FIXME
12712 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12713 else
12714 ld_shlibs_FC=no
12715 fi
12716 ;;
12717
6d873a38 12718 cygwin* | mingw* | pw32* | cegcc*)
542f9784 12719 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12720 # as there is no search path for DLLs.
12721 hardcode_libdir_flag_spec_FC='-L$libdir'
e6408286 12722 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
542f9784 12723 allow_undefined_flag_FC=unsupported
12724 always_export_symbols_FC=no
12725 enable_shared_with_static_runtimes_FC=yes
12726 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12727
12728 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12729 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12730 # If the export-symbols file already is a .def file (1st line
12731 # is EXPORTS), use it as is; otherwise, prepend...
12732 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12733 cp $export_symbols $output_objdir/$soname.def;
12734 else
12735 echo EXPORTS > $output_objdir/$soname.def;
12736 cat $export_symbols >> $output_objdir/$soname.def;
12737 fi~
12738 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12739 else
12740 ld_shlibs_FC=no
12741 fi
12742 ;;
12743
e6408286 12744 haiku*)
12745 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12746 link_all_deplibs_FC=yes
12747 ;;
12748
542f9784 12749 interix[3-9]*)
12750 hardcode_direct_FC=no
12751 hardcode_shlibpath_var_FC=no
12752 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12753 export_dynamic_flag_spec_FC='${wl}-E'
12754 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12755 # Instead, shared libraries are loaded at an image base (0x10000000 by
12756 # default) and relocated if they conflict, which is a slow very memory
12757 # consuming and fragmenting process. To avoid this, we pick a random,
12758 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12759 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12760 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'
12761 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'
12762 ;;
12763
9af964d4 12764 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 12765 tmp_diet=no
12766 if test "$host_os" = linux-dietlibc; then
12767 case $cc_basename in
12768 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12769 esac
12770 fi
12771 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12772 && test "$tmp_diet" = no
12773 then
4e8a08d4 12774 tmp_addflag=' $pic_flag'
6d873a38 12775 tmp_sharedflag='-shared'
542f9784 12776 case $cc_basename,$host_cpu in
12777 pgcc*) # Portland Group C compiler
e6408286 12778 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 12779 tmp_addflag=' $pic_flag'
12780 ;;
e6408286 12781 pgf77* | pgf90* | pgf95* | pgfortran*)
12782 # Portland Group f77 and f90 compilers
12783 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 12784 tmp_addflag=' $pic_flag -Mnomain' ;;
12785 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12786 tmp_addflag=' -i_dynamic' ;;
12787 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12788 tmp_addflag=' -i_dynamic -nofor_main' ;;
12789 ifc* | ifort*) # Intel Fortran compiler
12790 tmp_addflag=' -nofor_main' ;;
6d873a38 12791 lf95*) # Lahey Fortran 8.1
12792 whole_archive_flag_spec_FC=
12793 tmp_sharedflag='--shared' ;;
e6408286 12794 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
6d873a38 12795 tmp_sharedflag='-qmkshrobj'
12796 tmp_addflag= ;;
e6408286 12797 nvcc*) # Cuda Compiler Driver 2.2
12798 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'
12799 compiler_needs_object_FC=yes
12800 ;;
542f9784 12801 esac
12802 case `$CC -V 2>&1 | sed 5q` in
12803 *Sun\ C*) # Sun C 5.9
e6408286 12804 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 12805 compiler_needs_object_FC=yes
12806 tmp_sharedflag='-G' ;;
12807 *Sun\ F*) # Sun Fortran 8.3
12808 tmp_sharedflag='-G' ;;
542f9784 12809 esac
12810 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12811
12812 if test "x$supports_anon_versioning" = xyes; then
12813 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12814 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12815 echo "local: *; };" >> $output_objdir/$libname.ver~
12816 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12817 fi
6d873a38 12818
12819 case $cc_basename in
e6408286 12820 xlf* | bgf* | bgxlf* | mpixlf*)
6d873a38 12821 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12822 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12823 hardcode_libdir_flag_spec_FC=
12824 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12825 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12826 if test "x$supports_anon_versioning" = xyes; then
12827 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12828 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12829 echo "local: *; };" >> $output_objdir/$libname.ver~
12830 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12831 fi
12832 ;;
12833 esac
542f9784 12834 else
12835 ld_shlibs_FC=no
12836 fi
12837 ;;
12838
12839 netbsd*)
12840 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12841 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12842 wlarc=
12843 else
12844 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12845 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12846 fi
12847 ;;
12848
12849 solaris*)
12850 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12851 ld_shlibs_FC=no
12852 cat <<_LT_EOF 1>&2
12853
12854*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12855*** create shared libraries on Solaris systems. Therefore, libtool
12856*** is disabling shared libraries support. We urge you to upgrade GNU
12857*** binutils to release 2.9.1 or newer. Another option is to modify
12858*** your PATH or compiler configuration so that the native linker is
12859*** used, and then restart.
12860
12861_LT_EOF
12862 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12863 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12864 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12865 else
12866 ld_shlibs_FC=no
12867 fi
12868 ;;
12869
12870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12871 case `$LD -v 2>&1` in
12872 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12873 ld_shlibs_FC=no
12874 cat <<_LT_EOF 1>&2
12875
12876*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12877*** reliably create shared libraries on SCO systems. Therefore, libtool
12878*** is disabling shared libraries support. We urge you to upgrade GNU
12879*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12880*** your PATH or compiler configuration so that the native linker is
12881*** used, and then restart.
12882
12883_LT_EOF
12884 ;;
12885 *)
12886 # For security reasons, it is highly recommended that you always
12887 # use absolute paths for naming shared libraries, and exclude the
12888 # DT_RUNPATH tag from executables and libraries. But doing so
12889 # requires that you compile everything twice, which is a pain.
12890 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12891 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12892 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12893 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12894 else
12895 ld_shlibs_FC=no
12896 fi
12897 ;;
12898 esac
12899 ;;
12900
12901 sunos4*)
12902 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12903 wlarc=
12904 hardcode_direct_FC=yes
12905 hardcode_shlibpath_var_FC=no
12906 ;;
12907
12908 *)
12909 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12910 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12911 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12912 else
12913 ld_shlibs_FC=no
12914 fi
12915 ;;
12916 esac
12917
12918 if test "$ld_shlibs_FC" = no; then
12919 runpath_var=
12920 hardcode_libdir_flag_spec_FC=
12921 export_dynamic_flag_spec_FC=
12922 whole_archive_flag_spec_FC=
12923 fi
12924 else
12925 # PORTME fill in a description of your system's linker (not GNU ld)
12926 case $host_os in
12927 aix3*)
12928 allow_undefined_flag_FC=unsupported
12929 always_export_symbols_FC=yes
12930 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'
12931 # Note: this linker hardcodes the directories in LIBPATH if there
12932 # are no directories specified by -L.
12933 hardcode_minus_L_FC=yes
12934 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12935 # Neither direct hardcoding nor static linking is supported with a
12936 # broken collect2.
12937 hardcode_direct_FC=unsupported
12938 fi
12939 ;;
12940
c8db569e 12941 aix[4-9]*)
542f9784 12942 if test "$host_cpu" = ia64; then
12943 # On IA64, the linker does run time linking by default, so we don't
12944 # have to do anything special.
12945 aix_use_runtimelinking=no
12946 exp_sym_flag='-Bexport'
12947 no_entry_flag=""
12948 else
12949 # If we're using GNU nm, then we don't want the "-C" option.
12950 # -C means demangle to AIX nm, but means don't demangle with GNU nm
e6408286 12951 # Also, AIX nm treats weak defined symbols like other global
12952 # defined symbols, whereas GNU nm marks them as "W".
542f9784 12953 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
e6408286 12954 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 12955 else
12956 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'
12957 fi
12958 aix_use_runtimelinking=no
12959
12960 # Test if we are trying to use run time linking or normal
12961 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12962 # need to do runtime linking.
c8db569e 12963 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 12964 for ld_flag in $LDFLAGS; do
12965 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12966 aix_use_runtimelinking=yes
12967 break
12968 fi
12969 done
12970 ;;
12971 esac
12972
12973 exp_sym_flag='-bexport'
12974 no_entry_flag='-bnoentry'
12975 fi
12976
12977 # When large executables or shared objects are built, AIX ld can
12978 # have problems creating the table of contents. If linking a library
12979 # or program results in "error TOC overflow" add -mminimal-toc to
12980 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12981 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12982
12983 archive_cmds_FC=''
12984 hardcode_direct_FC=yes
12985 hardcode_direct_absolute_FC=yes
12986 hardcode_libdir_separator_FC=':'
12987 link_all_deplibs_FC=yes
12988 file_list_spec_FC='${wl}-f,'
12989
12990 if test "$GCC" = yes; then
12991 case $host_os in aix4.[012]|aix4.[012].*)
12992 # We only want to do this on AIX 4.2 and lower, the check
12993 # below for broken collect2 doesn't work under 4.3+
12994 collect2name=`${CC} -print-prog-name=collect2`
12995 if test -f "$collect2name" &&
12996 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12997 then
12998 # We have reworked collect2
12999 :
13000 else
13001 # We have old collect2
13002 hardcode_direct_FC=unsupported
13003 # It fails to find uninstalled libraries when the uninstalled
13004 # path is not listed in the libpath. Setting hardcode_minus_L
13005 # to unsupported forces relinking
13006 hardcode_minus_L_FC=yes
13007 hardcode_libdir_flag_spec_FC='-L$libdir'
13008 hardcode_libdir_separator_FC=
13009 fi
13010 ;;
13011 esac
13012 shared_flag='-shared'
13013 if test "$aix_use_runtimelinking" = yes; then
13014 shared_flag="$shared_flag "'${wl}-G'
13015 fi
13016 else
13017 # not using gcc
13018 if test "$host_cpu" = ia64; then
13019 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13020 # chokes on -Wl,-G. The following line is correct:
13021 shared_flag='-G'
13022 else
13023 if test "$aix_use_runtimelinking" = yes; then
13024 shared_flag='${wl}-G'
13025 else
13026 shared_flag='${wl}-bM:SRE'
13027 fi
13028 fi
13029 fi
13030
6d873a38 13031 export_dynamic_flag_spec_FC='${wl}-bexpall'
542f9784 13032 # It seems that -bexpall does not export symbols beginning with
13033 # underscore (_), so it is better to generate a list of symbols to export.
13034 always_export_symbols_FC=yes
13035 if test "$aix_use_runtimelinking" = yes; then
13036 # Warning - without using the other runtime loading flags (-brtl),
13037 # -berok will link without error, but may produce a broken library.
13038 allow_undefined_flag_FC='-berok'
13039 # Determine the default libpath from the value encoded in an
13040 # empty executable.
cd9a469c 13041 cat > conftest.$ac_ext <<_ACEOF
542f9784 13042 program main
13043
13044 end
13045_ACEOF
cd9a469c 13046if ac_fn_fc_try_link "$LINENO"; then :
542f9784 13047
13048lt_aix_libpath_sed='
13049 /Import File Strings/,/^$/ {
13050 /^0/ {
13051 s/^0 *\(.*\)$/\1/
13052 p
13053 }
13054 }'
13055aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13056# Check for a 64-bit object if we didn't find anything.
13057if test -z "$aix_libpath"; then
13058 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13059fi
542f9784 13060fi
cd9a469c 13061rm -f core conftest.err conftest.$ac_objext \
13062 conftest$ac_exeext conftest.$ac_ext
542f9784 13063if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13064
13065 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
e6408286 13066 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 13067 else
13068 if test "$host_cpu" = ia64; then
13069 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13070 allow_undefined_flag_FC="-z nodefs"
13071 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"
13072 else
13073 # Determine the default libpath from the value encoded in an
13074 # empty executable.
cd9a469c 13075 cat > conftest.$ac_ext <<_ACEOF
542f9784 13076 program main
13077
13078 end
13079_ACEOF
cd9a469c 13080if ac_fn_fc_try_link "$LINENO"; then :
542f9784 13081
13082lt_aix_libpath_sed='
13083 /Import File Strings/,/^$/ {
13084 /^0/ {
13085 s/^0 *\(.*\)$/\1/
13086 p
13087 }
13088 }'
13089aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13090# Check for a 64-bit object if we didn't find anything.
13091if test -z "$aix_libpath"; then
13092 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13093fi
542f9784 13094fi
cd9a469c 13095rm -f core conftest.err conftest.$ac_objext \
13096 conftest$ac_exeext conftest.$ac_ext
542f9784 13097if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13098
13099 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13100 # Warning - without using the other run time loading flags,
13101 # -berok will link without error, but may produce a broken library.
13102 no_undefined_flag_FC=' ${wl}-bernotok'
13103 allow_undefined_flag_FC=' ${wl}-berok'
e6408286 13104 if test "$with_gnu_ld" = yes; then
13105 # We only use this code for GNU lds that support --whole-archive.
13106 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13107 else
13108 # Exported symbols can be pulled into shared objects from archives
13109 whole_archive_flag_spec_FC='$convenience'
13110 fi
542f9784 13111 archive_cmds_need_lc_FC=yes
13112 # This is similar to how AIX traditionally builds its shared libraries.
13113 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'
13114 fi
13115 fi
1e8e9920 13116 ;;
542f9784 13117
13118 amigaos*)
6d873a38 13119 case $host_cpu in
13120 powerpc)
13121 # see comment about AmigaOS4 .so support
13122 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13123 archive_expsym_cmds_FC=''
13124 ;;
13125 m68k)
13126 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)'
13127 hardcode_libdir_flag_spec_FC='-L$libdir'
13128 hardcode_minus_L_FC=yes
13129 ;;
13130 esac
1e8e9920 13131 ;;
542f9784 13132
13133 bsdi[45]*)
13134 export_dynamic_flag_spec_FC=-rdynamic
1e8e9920 13135 ;;
542f9784 13136
6d873a38 13137 cygwin* | mingw* | pw32* | cegcc*)
542f9784 13138 # When not using gcc, we currently assume that we are using
13139 # Microsoft Visual C++.
13140 # hardcode_libdir_flag_spec is actually meaningless, as there is
13141 # no search path for DLLs.
13142 hardcode_libdir_flag_spec_FC=' '
13143 allow_undefined_flag_FC=unsupported
13144 # Tell ltmain to make .lib files, not .a files.
13145 libext=lib
13146 # Tell ltmain to make .dll files, not .so files.
13147 shrext_cmds=".dll"
13148 # FIXME: Setting linknames here is a bad hack.
e6408286 13149 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
542f9784 13150 # The linker will automatically build a .lib file if we build a DLL.
13151 old_archive_from_new_cmds_FC='true'
13152 # FIXME: Should let the user specify the lib program.
13153 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13154 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13155 enable_shared_with_static_runtimes_FC=yes
1e8e9920 13156 ;;
542f9784 13157
13158 darwin* | rhapsody*)
542f9784 13159
6d873a38 13160
13161 archive_cmds_need_lc_FC=no
13162 hardcode_direct_FC=no
13163 hardcode_automatic_FC=yes
13164 hardcode_shlibpath_var_FC=unsupported
e6408286 13165 if test "$lt_cv_ld_force_load" = "yes"; then
13166 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\"`'
13167 else
13168 whole_archive_flag_spec_FC=''
13169 fi
6d873a38 13170 link_all_deplibs_FC=yes
13171 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13172 case $cc_basename in
13173 ifort*) _lt_dar_can_shared=yes ;;
13174 *) _lt_dar_can_shared=$GCC ;;
13175 esac
13176 if test "$_lt_dar_can_shared" = "yes"; then
e6408286 13177 output_verbose_link_cmd=func_echo_all
6d873a38 13178 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}"
13179 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13180 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}"
13181 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}"
13182
13183 else
13184 ld_shlibs_FC=no
13185 fi
13186
1e8e9920 13187 ;;
542f9784 13188
13189 dgux*)
13190 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13191 hardcode_libdir_flag_spec_FC='-L$libdir'
13192 hardcode_shlibpath_var_FC=no
1e8e9920 13193 ;;
1e8e9920 13194
542f9784 13195 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13196 # support. Future versions do this automatically, but an explicit c++rt0.o
13197 # does not break anything, and helps significantly (at the cost of a little
13198 # extra space).
13199 freebsd2.2*)
13200 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13201 hardcode_libdir_flag_spec_FC='-R$libdir'
13202 hardcode_direct_FC=yes
13203 hardcode_shlibpath_var_FC=no
1e8e9920 13204 ;;
1e8e9920 13205
542f9784 13206 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
30369aff 13207 freebsd2.*)
542f9784 13208 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13209 hardcode_direct_FC=yes
13210 hardcode_minus_L_FC=yes
13211 hardcode_shlibpath_var_FC=no
13212 ;;
13213
13214 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13215 freebsd* | dragonfly*)
13216 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13217 hardcode_libdir_flag_spec_FC='-R$libdir'
13218 hardcode_direct_FC=yes
13219 hardcode_shlibpath_var_FC=no
13220 ;;
13221
13222 hpux9*)
13223 if test "$GCC" = yes; then
13224 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'
13225 else
13226 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'
13227 fi
13228 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13229 hardcode_libdir_separator_FC=:
13230 hardcode_direct_FC=yes
13231
13232 # hardcode_minus_L: Not really in the search PATH,
13233 # but as the default location of the library.
13234 hardcode_minus_L_FC=yes
13235 export_dynamic_flag_spec_FC='${wl}-E'
13236 ;;
13237
13238 hpux10*)
e6408286 13239 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 13240 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13241 else
13242 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13243 fi
13244 if test "$with_gnu_ld" = no; then
13245 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13246 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13247 hardcode_libdir_separator_FC=:
13248 hardcode_direct_FC=yes
13249 hardcode_direct_absolute_FC=yes
13250 export_dynamic_flag_spec_FC='${wl}-E'
13251 # hardcode_minus_L: Not really in the search PATH,
13252 # but as the default location of the library.
13253 hardcode_minus_L_FC=yes
13254 fi
13255 ;;
13256
13257 hpux11*)
e6408286 13258 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
542f9784 13259 case $host_cpu in
13260 hppa*64*)
13261 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13262 ;;
13263 ia64*)
6d873a38 13264 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
542f9784 13265 ;;
13266 *)
13267 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13268 ;;
13269 esac
13270 else
13271 case $host_cpu in
13272 hppa*64*)
13273 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13274 ;;
13275 ia64*)
13276 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13277 ;;
13278 *)
e6408286 13279 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
542f9784 13280 ;;
13281 esac
13282 fi
13283 if test "$with_gnu_ld" = no; then
13284 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13285 hardcode_libdir_separator_FC=:
13286
13287 case $host_cpu in
13288 hppa*64*|ia64*)
13289 hardcode_direct_FC=no
13290 hardcode_shlibpath_var_FC=no
13291 ;;
13292 *)
13293 hardcode_direct_FC=yes
13294 hardcode_direct_absolute_FC=yes
13295 export_dynamic_flag_spec_FC='${wl}-E'
13296
13297 # hardcode_minus_L: Not really in the search PATH,
13298 # but as the default location of the library.
13299 hardcode_minus_L_FC=yes
13300 ;;
13301 esac
13302 fi
13303 ;;
13304
13305 irix5* | irix6* | nonstopux*)
13306 if test "$GCC" = yes; then
e6408286 13307 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 13308 # Try to use the -exported_symbol ld option, if it does not
13309 # work, assume that -exports_file does not work either and
13310 # implicitly export all symbols.
13311 save_LDFLAGS="$LDFLAGS"
13312 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cd9a469c 13313 cat > conftest.$ac_ext <<_ACEOF
542f9784 13314int foo(void) {}
13315_ACEOF
cd9a469c 13316if ac_fn_fc_try_link "$LINENO"; then :
e6408286 13317 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 13318
542f9784 13319fi
cd9a469c 13320rm -f core conftest.err conftest.$ac_objext \
13321 conftest$ac_exeext conftest.$ac_ext
542f9784 13322 LDFLAGS="$save_LDFLAGS"
13323 else
e6408286 13324 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'
13325 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 13326 fi
13327 archive_cmds_need_lc_FC='no'
13328 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13329 hardcode_libdir_separator_FC=:
13330 inherit_rpath_FC=yes
13331 link_all_deplibs_FC=yes
13332 ;;
13333
13334 netbsd*)
13335 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13336 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13337 else
13338 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13339 fi
13340 hardcode_libdir_flag_spec_FC='-R$libdir'
13341 hardcode_direct_FC=yes
13342 hardcode_shlibpath_var_FC=no
13343 ;;
13344
13345 newsos6)
13346 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13347 hardcode_direct_FC=yes
13348 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13349 hardcode_libdir_separator_FC=:
13350 hardcode_shlibpath_var_FC=no
13351 ;;
13352
13353 *nto* | *qnx*)
13354 ;;
13355
13356 openbsd*)
6d873a38 13357 if test -f /usr/libexec/ld.so; then
13358 hardcode_direct_FC=yes
13359 hardcode_shlibpath_var_FC=no
13360 hardcode_direct_absolute_FC=yes
13361 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
542f9784 13362 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6d873a38 13363 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
542f9784 13364 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
6d873a38 13365 export_dynamic_flag_spec_FC='${wl}-E'
13366 else
13367 case $host_os in
13368 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13369 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13370 hardcode_libdir_flag_spec_FC='-R$libdir'
13371 ;;
13372 *)
13373 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13374 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13375 ;;
13376 esac
13377 fi
13378 else
13379 ld_shlibs_FC=no
542f9784 13380 fi
13381 ;;
13382
13383 os2*)
13384 hardcode_libdir_flag_spec_FC='-L$libdir'
13385 hardcode_minus_L_FC=yes
13386 allow_undefined_flag_FC=unsupported
e6408286 13387 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 13388 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13389 ;;
13390
13391 osf3*)
13392 if test "$GCC" = yes; then
13393 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
e6408286 13394 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 13395 else
13396 allow_undefined_flag_FC=' -expect_unresolved \*'
e6408286 13397 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 13398 fi
13399 archive_cmds_need_lc_FC='no'
13400 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13401 hardcode_libdir_separator_FC=:
13402 ;;
13403
13404 osf4* | osf5*) # as osf3* with the addition of -msym flag
13405 if test "$GCC" = yes; then
13406 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
e6408286 13407 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 13408 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13409 else
13410 allow_undefined_flag_FC=' -expect_unresolved \*'
e6408286 13411 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 13412 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 13413 $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 13414
13415 # Both c and cxx compiler support -rpath directly
13416 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13417 fi
13418 archive_cmds_need_lc_FC='no'
13419 hardcode_libdir_separator_FC=:
13420 ;;
13421
13422 solaris*)
13423 no_undefined_flag_FC=' -z defs'
13424 if test "$GCC" = yes; then
13425 wlarc='${wl}'
13426 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13427 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13428 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13429 else
13430 case `$CC -V 2>&1` in
13431 *"Compilers 5.0"*)
13432 wlarc=''
13433 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13434 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13435 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13436 ;;
13437 *)
13438 wlarc='${wl}'
13439 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13440 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13441 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13442 ;;
13443 esac
13444 fi
13445 hardcode_libdir_flag_spec_FC='-R$libdir'
13446 hardcode_shlibpath_var_FC=no
13447 case $host_os in
13448 solaris2.[0-5] | solaris2.[0-5].*) ;;
13449 *)
13450 # The compiler driver will combine and reorder linker options,
13451 # but understands `-z linker_flag'. GCC discards it without `$wl',
13452 # but is careful enough not to reorder.
13453 # Supported since Solaris 2.6 (maybe 2.5.1?)
13454 if test "$GCC" = yes; then
13455 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13456 else
13457 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13458 fi
13459 ;;
13460 esac
13461 link_all_deplibs_FC=yes
13462 ;;
13463
13464 sunos4*)
13465 if test "x$host_vendor" = xsequent; then
13466 # Use $CC to link under sequent, because it throws in some extra .o
13467 # files that make .init and .fini sections work.
13468 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13469 else
13470 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13471 fi
13472 hardcode_libdir_flag_spec_FC='-L$libdir'
13473 hardcode_direct_FC=yes
13474 hardcode_minus_L_FC=yes
13475 hardcode_shlibpath_var_FC=no
13476 ;;
13477
13478 sysv4)
13479 case $host_vendor in
13480 sni)
13481 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13482 hardcode_direct_FC=yes # is this really true???
13483 ;;
13484 siemens)
13485 ## LD is ld it makes a PLAMLIB
13486 ## CC just makes a GrossModule.
13487 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13488 reload_cmds_FC='$CC -r -o $output$reload_objs'
13489 hardcode_direct_FC=no
13490 ;;
13491 motorola)
13492 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13493 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13494 ;;
1e8e9920 13495 esac
542f9784 13496 runpath_var='LD_RUN_PATH'
13497 hardcode_shlibpath_var_FC=no
13498 ;;
13499
13500 sysv4.3*)
13501 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13502 hardcode_shlibpath_var_FC=no
13503 export_dynamic_flag_spec_FC='-Bexport'
13504 ;;
13505
13506 sysv4*MP*)
13507 if test -d /usr/nec; then
13508 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13509 hardcode_shlibpath_var_FC=no
13510 runpath_var=LD_RUN_PATH
13511 hardcode_runpath_var=yes
13512 ld_shlibs_FC=yes
13513 fi
13514 ;;
13515
13516 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13517 no_undefined_flag_FC='${wl}-z,text'
13518 archive_cmds_need_lc_FC=no
13519 hardcode_shlibpath_var_FC=no
13520 runpath_var='LD_RUN_PATH'
13521
13522 if test "$GCC" = yes; then
13523 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13524 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13525 else
13526 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13527 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13528 fi
13529 ;;
13530
13531 sysv5* | sco3.2v5* | sco5v6*)
13532 # Note: We can NOT use -z defs as we might desire, because we do not
13533 # link with -lc, and that would cause any symbols used from libc to
13534 # always be unresolved, which means just about no library would
13535 # ever link correctly. If we're not using GNU ld we use -z text
13536 # though, which does catch some bad symbols but isn't as heavy-handed
13537 # as -z defs.
13538 no_undefined_flag_FC='${wl}-z,text'
13539 allow_undefined_flag_FC='${wl}-z,nodefs'
13540 archive_cmds_need_lc_FC=no
13541 hardcode_shlibpath_var_FC=no
13542 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13543 hardcode_libdir_separator_FC=':'
13544 link_all_deplibs_FC=yes
13545 export_dynamic_flag_spec_FC='${wl}-Bexport'
13546 runpath_var='LD_RUN_PATH'
13547
13548 if test "$GCC" = yes; then
13549 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13550 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13551 else
13552 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13553 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13554 fi
13555 ;;
13556
13557 uts4*)
13558 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13559 hardcode_libdir_flag_spec_FC='-L$libdir'
13560 hardcode_shlibpath_var_FC=no
13561 ;;
13562
13563 *)
13564 ld_shlibs_FC=no
1e8e9920 13565 ;;
542f9784 13566 esac
13567
13568 if test x$host_vendor = xsni; then
1e8e9920 13569 case $host in
542f9784 13570 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13571 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13572 ;;
1e8e9920 13573 esac
542f9784 13574 fi
1e8e9920 13575 fi
1e8e9920 13576
cd9a469c 13577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13578$as_echo "$ld_shlibs_FC" >&6; }
542f9784 13579test "$ld_shlibs_FC" = no && can_build_shared=no
1e8e9920 13580
542f9784 13581with_gnu_ld_FC=$with_gnu_ld
1e8e9920 13582
1e8e9920 13583
1e8e9920 13584
1e8e9920 13585
542f9784 13586
13587
13588#
13589# Do we need to explicitly link libc?
13590#
13591case "x$archive_cmds_need_lc_FC" in
13592x|xyes)
13593 # Assume -lc should be added
13594 archive_cmds_need_lc_FC=yes
13595
13596 if test "$enable_shared" = yes && test "$GCC" = yes; then
13597 case $archive_cmds_FC in
13598 *'~'*)
13599 # FIXME: we may have to deal with multi-command sequences.
13600 ;;
13601 '$CC '*)
13602 # Test whether the compiler implicitly links with -lc since on some
13603 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13604 # to ld, don't add -lc before -lgcc.
cd9a469c 13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13606$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13607if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13608 $as_echo_n "(cached) " >&6
9e6fd619 13609else
13610 $RM conftest*
13611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
542f9784 13612
cd9a469c 13613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
542f9784 13614 (eval $ac_compile) 2>&5
1e8e9920 13615 ac_status=$?
cd9a469c 13616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13617 test $ac_status = 0; } 2>conftest.err; then
9e6fd619 13618 soname=conftest
13619 lib=conftest
13620 libobjs=conftest.$ac_objext
13621 deplibs=
13622 wl=$lt_prog_compiler_wl_FC
13623 pic_flag=$lt_prog_compiler_pic_FC
13624 compiler_flags=-v
13625 linker_flags=-v
13626 verstring=
13627 output_objdir=.
13628 libname=conftest
13629 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13630 allow_undefined_flag_FC=
cd9a469c 13631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
542f9784 13632 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1e8e9920 13633 ac_status=$?
cd9a469c 13634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13635 test $ac_status = 0; }
9e6fd619 13636 then
13637 lt_cv_archive_cmds_need_lc_FC=no
13638 else
13639 lt_cv_archive_cmds_need_lc_FC=yes
13640 fi
13641 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13642 else
13643 cat conftest.err 1>&5
13644 fi
13645 $RM conftest*
13646
13647fi
cd9a469c 13648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13649$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
9e6fd619 13650 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
542f9784 13651 ;;
13652 esac
1e8e9920 13653 fi
13654 ;;
542f9784 13655esac
13656
1e8e9920 13657
13658
1e8e9920 13659
13660
1e8e9920 13661
1e8e9920 13662
1e8e9920 13663
1e8e9920 13664
1e8e9920 13665
13666
1e8e9920 13667
1e8e9920 13668
1e8e9920 13669
13670
13671
13672
13673
13674
13675
13676
13677
a263d1ab 13678
13679
a263d1ab 13680
a263d1ab 13681
13682
13683
1e8e9920 13684
1e8e9920 13685
1e8e9920 13686
1e8e9920 13687
1e8e9920 13688
1e8e9920 13689
13690
1e8e9920 13691
1e8e9920 13692
1e8e9920 13693
1e8e9920 13694
1e8e9920 13695
1e8e9920 13696
1e8e9920 13697
542f9784 13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
cd9a469c 13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13721$as_echo_n "checking dynamic linker characteristics... " >&6; }
6d873a38 13722
542f9784 13723library_names_spec=
13724libname_spec='lib$name'
13725soname_spec=
13726shrext_cmds=".so"
13727postinstall_cmds=
13728postuninstall_cmds=
13729finish_cmds=
13730finish_eval=
13731shlibpath_var=
13732shlibpath_overrides_runpath=unknown
13733version_type=none
13734dynamic_linker="$host_os ld.so"
13735sys_lib_dlsearch_path_spec="/lib /usr/lib"
13736need_lib_prefix=unknown
13737hardcode_into_libs=no
13738
13739# when you set need_version to no, make sure it does not cause -set_version
13740# flags to be left without arguments
13741need_version=unknown
13742
13743case $host_os in
13744aix3*)
13745 version_type=linux
13746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13747 shlibpath_var=LIBPATH
13748
13749 # AIX 3 has no versioning support, so we append a major version to the name.
13750 soname_spec='${libname}${release}${shared_ext}$major'
13751 ;;
13752
c8db569e 13753aix[4-9]*)
542f9784 13754 version_type=linux
13755 need_lib_prefix=no
13756 need_version=no
13757 hardcode_into_libs=yes
13758 if test "$host_cpu" = ia64; then
13759 # AIX 5 supports IA64
13760 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13761 shlibpath_var=LD_LIBRARY_PATH
1e8e9920 13762 else
542f9784 13763 # With GCC up to 2.95.x, collect2 would create an import file
13764 # for dependence libraries. The import file would start with
13765 # the line `#! .'. This would cause the generated library to
13766 # depend on `.', always an invalid library. This was fixed in
13767 # development snapshots of GCC prior to 3.0.
13768 case $host_os in
13769 aix4 | aix4.[01] | aix4.[01].*)
13770 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13771 echo ' yes '
13772 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13773 :
13774 else
13775 can_build_shared=no
13776 fi
13777 ;;
13778 esac
13779 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13780 # soname into executable. Probably we can add versioning support to
13781 # collect2, so additional links can be useful in future.
13782 if test "$aix_use_runtimelinking" = yes; then
13783 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13784 # instead of lib<name>.a to let people know that these are not
13785 # typical AIX shared libraries.
13786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13787 else
13788 # We preserve .a as extension for shared libraries through AIX4.2
13789 # and later when we are not doing run time linking.
13790 library_names_spec='${libname}${release}.a $libname.a'
13791 soname_spec='${libname}${release}${shared_ext}$major'
13792 fi
13793 shlibpath_var=LIBPATH
1e8e9920 13794 fi
542f9784 13795 ;;
13796
13797amigaos*)
6d873a38 13798 case $host_cpu in
13799 powerpc)
13800 # Since July 2007 AmigaOS4 officially supports .so libraries.
13801 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13803 ;;
13804 m68k)
542f9784 13805 library_names_spec='$libname.ixlibrary $libname.a'
13806 # Create ${libname}_ixlibrary.a entries in /sys/libs.
e6408286 13807 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 13808 ;;
13809 esac
542f9784 13810 ;;
1e8e9920 13811
542f9784 13812beos*)
13813 library_names_spec='${libname}${shared_ext}'
13814 dynamic_linker="$host_os ld.so"
13815 shlibpath_var=LIBRARY_PATH
13816 ;;
1e8e9920 13817
542f9784 13818bsdi[45]*)
13819 version_type=linux
13820 need_version=no
13821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13822 soname_spec='${libname}${release}${shared_ext}$major'
13823 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13824 shlibpath_var=LD_LIBRARY_PATH
13825 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13826 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13827 # the default ld.so.conf also contains /usr/contrib/lib and
13828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13829 # libtool to hard-code these into programs
13830 ;;
1e8e9920 13831
6d873a38 13832cygwin* | mingw* | pw32* | cegcc*)
542f9784 13833 version_type=windows
13834 shrext_cmds=".dll"
13835 need_version=no
13836 need_lib_prefix=no
13837
6d873a38 13838 case $GCC,$host_os in
13839 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
542f9784 13840 library_names_spec='$libname.dll.a'
13841 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13842 postinstall_cmds='base_file=`basename \${file}`~
13843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13844 dldir=$destdir/`dirname \$dlpath`~
13845 test -d \$dldir || mkdir -p \$dldir~
13846 $install_prog $dir/$dlname \$dldir/$dlname~
13847 chmod a+x \$dldir/$dlname~
13848 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13849 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13850 fi'
13851 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13852 dlpath=$dir/\$dldll~
13853 $RM \$dlpath'
13854 shlibpath_overrides_runpath=yes
13855
13856 case $host_os in
13857 cygwin*)
13858 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13859 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
e6408286 13860
542f9784 13861 ;;
6d873a38 13862 mingw* | cegcc*)
542f9784 13863 # MinGW DLLs use traditional 'lib' prefix
13864 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
542f9784 13865 ;;
13866 pw32*)
13867 # pw32 DLLs use 'pw' prefix rather than 'lib'
13868 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13869 ;;
13870 esac
13871 ;;
1e8e9920 13872
542f9784 13873 *)
13874 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13875 ;;
13876 esac
13877 dynamic_linker='Win32 ld.exe'
13878 # FIXME: first we should search . and the directory the executable is in
13879 shlibpath_var=PATH
13880 ;;
1e8e9920 13881
542f9784 13882darwin* | rhapsody*)
13883 dynamic_linker="$host_os dyld"
13884 version_type=darwin
13885 need_lib_prefix=no
13886 need_version=no
13887 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13888 soname_spec='${libname}${release}${major}$shared_ext'
13889 shlibpath_overrides_runpath=yes
13890 shlibpath_var=DYLD_LIBRARY_PATH
13891 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13892
13893 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13894 ;;
13895
13896dgux*)
13897 version_type=linux
13898 need_lib_prefix=no
13899 need_version=no
13900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13901 soname_spec='${libname}${release}${shared_ext}$major'
13902 shlibpath_var=LD_LIBRARY_PATH
13903 ;;
13904
542f9784 13905freebsd* | dragonfly*)
13906 # DragonFly does not have aout. When/if they implement a new
13907 # versioning mechanism, adjust this.
13908 if test -x /usr/bin/objformat; then
13909 objformat=`/usr/bin/objformat`
1e8e9920 13910 else
542f9784 13911 case $host_os in
30369aff 13912 freebsd[23].*) objformat=aout ;;
542f9784 13913 *) objformat=elf ;;
13914 esac
1e8e9920 13915 fi
542f9784 13916 version_type=freebsd-$objformat
13917 case $version_type in
13918 freebsd-elf*)
13919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13920 need_version=no
13921 need_lib_prefix=no
13922 ;;
13923 freebsd-*)
13924 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13925 need_version=yes
13926 ;;
13927 esac
13928 shlibpath_var=LD_LIBRARY_PATH
13929 case $host_os in
30369aff 13930 freebsd2.*)
542f9784 13931 shlibpath_overrides_runpath=yes
13932 ;;
13933 freebsd3.[01]* | freebsdelf3.[01]*)
13934 shlibpath_overrides_runpath=yes
13935 hardcode_into_libs=yes
13936 ;;
13937 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13938 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13939 shlibpath_overrides_runpath=no
13940 hardcode_into_libs=yes
13941 ;;
13942 *) # from 4.6 on, and DragonFly
13943 shlibpath_overrides_runpath=yes
13944 hardcode_into_libs=yes
13945 ;;
13946 esac
13947 ;;
1e8e9920 13948
542f9784 13949gnu*)
13950 version_type=linux
13951 need_lib_prefix=no
13952 need_version=no
13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13954 soname_spec='${libname}${release}${shared_ext}$major'
13955 shlibpath_var=LD_LIBRARY_PATH
13956 hardcode_into_libs=yes
13957 ;;
1e8e9920 13958
e6408286 13959haiku*)
13960 version_type=linux
13961 need_lib_prefix=no
13962 need_version=no
13963 dynamic_linker="$host_os runtime_loader"
13964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13965 soname_spec='${libname}${release}${shared_ext}$major'
13966 shlibpath_var=LIBRARY_PATH
13967 shlibpath_overrides_runpath=yes
13968 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13969 hardcode_into_libs=yes
13970 ;;
13971
542f9784 13972hpux9* | hpux10* | hpux11*)
13973 # Give a soname corresponding to the major version so that dld.sl refuses to
13974 # link against other versions.
13975 version_type=sunos
13976 need_lib_prefix=no
13977 need_version=no
13978 case $host_cpu in
13979 ia64*)
13980 shrext_cmds='.so'
13981 hardcode_into_libs=yes
13982 dynamic_linker="$host_os dld.so"
13983 shlibpath_var=LD_LIBRARY_PATH
13984 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13986 soname_spec='${libname}${release}${shared_ext}$major'
13987 if test "X$HPUX_IA64_MODE" = X32; then
13988 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13989 else
13990 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13991 fi
13992 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13993 ;;
13994 hppa*64*)
13995 shrext_cmds='.sl'
13996 hardcode_into_libs=yes
13997 dynamic_linker="$host_os dld.sl"
13998 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13999 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14001 soname_spec='${libname}${release}${shared_ext}$major'
14002 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14003 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14004 ;;
14005 *)
14006 shrext_cmds='.sl'
14007 dynamic_linker="$host_os dld.sl"
14008 shlibpath_var=SHLIB_PATH
14009 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14011 soname_spec='${libname}${release}${shared_ext}$major'
14012 ;;
14013 esac
e6408286 14014 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
542f9784 14015 postinstall_cmds='chmod 555 $lib'
e6408286 14016 # or fails outright, so override atomically:
14017 install_override_mode=555
542f9784 14018 ;;
14019
14020interix[3-9]*)
14021 version_type=linux
14022 need_lib_prefix=no
14023 need_version=no
14024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14025 soname_spec='${libname}${release}${shared_ext}$major'
14026 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14027 shlibpath_var=LD_LIBRARY_PATH
14028 shlibpath_overrides_runpath=no
14029 hardcode_into_libs=yes
14030 ;;
14031
14032irix5* | irix6* | nonstopux*)
14033 case $host_os in
14034 nonstopux*) version_type=nonstopux ;;
14035 *)
14036 if test "$lt_cv_prog_gnu_ld" = yes; then
14037 version_type=linux
14038 else
14039 version_type=irix
14040 fi ;;
14041 esac
14042 need_lib_prefix=no
14043 need_version=no
14044 soname_spec='${libname}${release}${shared_ext}$major'
14045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14046 case $host_os in
14047 irix5* | nonstopux*)
14048 libsuff= shlibsuff=
14049 ;;
14050 *)
14051 case $LD in # libtool.m4 will add one of these switches to LD
14052 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14053 libsuff= shlibsuff= libmagic=32-bit;;
14054 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14055 libsuff=32 shlibsuff=N32 libmagic=N32;;
14056 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14057 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14058 *) libsuff= shlibsuff= libmagic=never-match;;
14059 esac
14060 ;;
14061 esac
14062 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14063 shlibpath_overrides_runpath=no
14064 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14065 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14066 hardcode_into_libs=yes
14067 ;;
14068
14069# No shared lib support for Linux oldld, aout, or coff.
14070linux*oldld* | linux*aout* | linux*coff*)
14071 dynamic_linker=no
14072 ;;
14073
14074# This must be Linux ELF.
9af964d4 14075linux* | k*bsd*-gnu | kopensolaris*-gnu)
542f9784 14076 version_type=linux
14077 need_lib_prefix=no
14078 need_version=no
14079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14080 soname_spec='${libname}${release}${shared_ext}$major'
14081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14082 shlibpath_var=LD_LIBRARY_PATH
14083 shlibpath_overrides_runpath=no
9e6fd619 14084
542f9784 14085 # Some binutils ld are patched to set DT_RUNPATH
cd9a469c 14086 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14087 $as_echo_n "(cached) " >&6
9e6fd619 14088else
14089 lt_cv_shlibpath_overrides_runpath=no
14090 save_LDFLAGS=$LDFLAGS
14091 save_libdir=$libdir
14092 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14093 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
cd9a469c 14094 cat > conftest.$ac_ext <<_ACEOF
542f9784 14095 program main
14096
14097 end
1e8e9920 14098_ACEOF
cd9a469c 14099if ac_fn_fc_try_link "$LINENO"; then :
14100 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9e6fd619 14101 lt_cv_shlibpath_overrides_runpath=yes
1e8e9920 14102fi
1e8e9920 14103fi
cd9a469c 14104rm -f core conftest.err conftest.$ac_objext \
14105 conftest$ac_exeext conftest.$ac_ext
9e6fd619 14106 LDFLAGS=$save_LDFLAGS
14107 libdir=$save_libdir
14108
14109fi
14110
14111 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
542f9784 14112
14113 # This implies no fast_install, which is unacceptable.
14114 # Some rework will be needed to allow for fast_install
14115 # before this can be enabled.
14116 hardcode_into_libs=yes
14117
14118 # Append ld.so.conf contents to the search path
14119 if test -f /etc/ld.so.conf; then
e6408286 14120 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 14121 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14122 fi
1e8e9920 14123
542f9784 14124 # We used to test for /lib/ld.so.1 and disable shared libraries on
14125 # powerpc, because MkLinux only supported shared libraries with the
14126 # GNU dynamic linker. Since this was broken with cross compilers,
14127 # most powerpc-linux boxes support dynamic linking these days and
14128 # people can always --disable-shared, the test was removed, and we
14129 # assume the GNU/Linux dynamic linker is in use.
14130 dynamic_linker='GNU/Linux ld.so'
14131 ;;
1e8e9920 14132
542f9784 14133netbsd*)
14134 version_type=sunos
14135 need_lib_prefix=no
14136 need_version=no
14137 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14140 dynamic_linker='NetBSD (a.out) ld.so'
14141 else
14142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14143 soname_spec='${libname}${release}${shared_ext}$major'
14144 dynamic_linker='NetBSD ld.elf_so'
14145 fi
14146 shlibpath_var=LD_LIBRARY_PATH
14147 shlibpath_overrides_runpath=yes
14148 hardcode_into_libs=yes
14149 ;;
1e8e9920 14150
542f9784 14151newsos6)
14152 version_type=linux
14153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14154 shlibpath_var=LD_LIBRARY_PATH
14155 shlibpath_overrides_runpath=yes
14156 ;;
14157
14158*nto* | *qnx*)
14159 version_type=qnx
14160 need_lib_prefix=no
14161 need_version=no
14162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14163 soname_spec='${libname}${release}${shared_ext}$major'
14164 shlibpath_var=LD_LIBRARY_PATH
14165 shlibpath_overrides_runpath=no
14166 hardcode_into_libs=yes
14167 dynamic_linker='ldqnx.so'
14168 ;;
14169
14170openbsd*)
14171 version_type=sunos
14172 sys_lib_dlsearch_path_spec="/usr/lib"
14173 need_lib_prefix=no
14174 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14175 case $host_os in
14176 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14177 *) need_version=no ;;
14178 esac
14179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14181 shlibpath_var=LD_LIBRARY_PATH
14182 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14183 case $host_os in
14184 openbsd2.[89] | openbsd2.[89].*)
14185 shlibpath_overrides_runpath=no
14186 ;;
14187 *)
14188 shlibpath_overrides_runpath=yes
14189 ;;
14190 esac
1e8e9920 14191 else
542f9784 14192 shlibpath_overrides_runpath=yes
1e8e9920 14193 fi
542f9784 14194 ;;
1e8e9920 14195
542f9784 14196os2*)
14197 libname_spec='$name'
14198 shrext_cmds=".dll"
14199 need_lib_prefix=no
14200 library_names_spec='$libname${shared_ext} $libname.a'
14201 dynamic_linker='OS/2 ld.exe'
14202 shlibpath_var=LIBPATH
14203 ;;
14204
14205osf3* | osf4* | osf5*)
14206 version_type=osf
14207 need_lib_prefix=no
14208 need_version=no
14209 soname_spec='${libname}${release}${shared_ext}$major'
14210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14211 shlibpath_var=LD_LIBRARY_PATH
14212 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14213 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14214 ;;
14215
14216rdos*)
14217 dynamic_linker=no
14218 ;;
14219
14220solaris*)
14221 version_type=linux
14222 need_lib_prefix=no
14223 need_version=no
14224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14225 soname_spec='${libname}${release}${shared_ext}$major'
14226 shlibpath_var=LD_LIBRARY_PATH
14227 shlibpath_overrides_runpath=yes
14228 hardcode_into_libs=yes
14229 # ldd complains unless libraries are executable
14230 postinstall_cmds='chmod +x $lib'
14231 ;;
14232
14233sunos4*)
14234 version_type=sunos
14235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14236 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14237 shlibpath_var=LD_LIBRARY_PATH
14238 shlibpath_overrides_runpath=yes
14239 if test "$with_gnu_ld" = yes; then
14240 need_lib_prefix=no
14241 fi
14242 need_version=yes
14243 ;;
14244
14245sysv4 | sysv4.3*)
14246 version_type=linux
14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14248 soname_spec='${libname}${release}${shared_ext}$major'
14249 shlibpath_var=LD_LIBRARY_PATH
14250 case $host_vendor in
14251 sni)
14252 shlibpath_overrides_runpath=no
14253 need_lib_prefix=no
14254 runpath_var=LD_RUN_PATH
14255 ;;
14256 siemens)
14257 need_lib_prefix=no
14258 ;;
14259 motorola)
14260 need_lib_prefix=no
14261 need_version=no
14262 shlibpath_overrides_runpath=no
14263 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14264 ;;
14265 esac
14266 ;;
14267
14268sysv4*MP*)
14269 if test -d /usr/nec ;then
14270 version_type=linux
14271 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14272 soname_spec='$libname${shared_ext}.$major'
14273 shlibpath_var=LD_LIBRARY_PATH
14274 fi
14275 ;;
14276
14277sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14278 version_type=freebsd-elf
14279 need_lib_prefix=no
14280 need_version=no
14281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14282 soname_spec='${libname}${release}${shared_ext}$major'
14283 shlibpath_var=LD_LIBRARY_PATH
14284 shlibpath_overrides_runpath=yes
14285 hardcode_into_libs=yes
14286 if test "$with_gnu_ld" = yes; then
14287 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14288 else
14289 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14290 case $host_os in
14291 sco3.2v5*)
14292 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14293 ;;
14294 esac
14295 fi
14296 sys_lib_dlsearch_path_spec='/usr/lib'
14297 ;;
14298
14299tpf*)
14300 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14301 version_type=linux
14302 need_lib_prefix=no
14303 need_version=no
6d873a38 14304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
542f9784 14305 shlibpath_var=LD_LIBRARY_PATH
14306 shlibpath_overrides_runpath=no
14307 hardcode_into_libs=yes
14308 ;;
14309
14310uts4*)
14311 version_type=linux
14312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14313 soname_spec='${libname}${release}${shared_ext}$major'
14314 shlibpath_var=LD_LIBRARY_PATH
14315 ;;
14316
14317*)
14318 dynamic_linker=no
14319 ;;
14320esac
cd9a469c 14321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14322$as_echo "$dynamic_linker" >&6; }
542f9784 14323test "$dynamic_linker" = no && can_build_shared=no
14324
cd9a469c 14325variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14326if test "$GCC" = yes; then
14327 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14328fi
8a75144c 14329
cd9a469c 14330if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14331 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14332fi
14333if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14334 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
8a75144c 14335fi
14336
1e8e9920 14337
14338
1e8e9920 14339
1e8e9920 14340
14341
fd6481cf 14342
fd6481cf 14343
fd6481cf 14344
1e8e9920 14345
1e8e9920 14346
1e8e9920 14347
1e8e9920 14348
1e8e9920 14349
1e8e9920 14350
1e8e9920 14351
1e8e9920 14352
1e8e9920 14353
14354
14355
14356
14357
1e8e9920 14358
1e8e9920 14359
1e8e9920 14360
1e8e9920 14361
1e8e9920 14362
14363
14364
14365
1e8e9920 14366
14367
107c3bbf 14368
e6408286 14369
14370
107c3bbf 14371
107c3bbf 14372
107c3bbf 14373
cd9a469c 14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14375$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14376hardcode_action_FC=
14377if test -n "$hardcode_libdir_flag_spec_FC" ||
14378 test -n "$runpath_var_FC" ||
14379 test "X$hardcode_automatic_FC" = "Xyes" ; then
107c3bbf 14380
cd9a469c 14381 # We can hardcode non-existent directories.
14382 if test "$hardcode_direct_FC" != no &&
14383 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14384 # have to relink, otherwise we might link with an installed library
14385 # when we should be linking with a yet-to-be-installed one
14386 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14387 test "$hardcode_minus_L_FC" != no; then
14388 # Linking always hardcodes the temporary library directory.
14389 hardcode_action_FC=relink
14390 else
14391 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14392 hardcode_action_FC=immediate
14393 fi
107c3bbf 14394else
cd9a469c 14395 # We cannot hardcode anything, or else we can only hardcode existing
14396 # directories.
14397 hardcode_action_FC=unsupported
14398fi
14399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14400$as_echo "$hardcode_action_FC" >&6; }
107c3bbf 14401
cd9a469c 14402if test "$hardcode_action_FC" = relink ||
14403 test "$inherit_rpath_FC" = yes; then
14404 # Fast installation is not supported
14405 enable_fast_install=no
14406elif test "$shlibpath_overrides_runpath" = yes ||
14407 test "$enable_shared" = no; then
14408 # Fast installation is not necessary
14409 enable_fast_install=needless
107c3bbf 14410fi
107c3bbf 14411
107c3bbf 14412
107c3bbf 14413
107c3bbf 14414
107c3bbf 14415
107c3bbf 14416
107c3bbf 14417
cd9a469c 14418 fi # test -n "$compiler"
107c3bbf 14419
cd9a469c 14420 GCC=$lt_save_GCC
14421 CC="$lt_save_CC"
14422fi # test "$_lt_disable_FC" != yes
107c3bbf 14423
cd9a469c 14424ac_ext=c
14425ac_cpp='$CPP $CPPFLAGS'
14426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14428ac_compiler_gnu=$ac_cv_c_compiler_gnu
14429
14430
87969c8c 14431FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
cd9a469c 14432
14433# For libtool versioning info, format is CURRENT:REVISION:AGE
14434libtool_VERSION=1:0:0
107c3bbf 14435
cd9a469c 14436
14437# Check header files.
14438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14439$as_echo_n "checking for ANSI C header files... " >&6; }
14440if test "${ac_cv_header_stdc+set}" = set; then :
14441 $as_echo_n "(cached) " >&6
107c3bbf 14442else
cd9a469c 14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107c3bbf 14444/* end confdefs.h. */
107c3bbf 14445#include <stdlib.h>
cd9a469c 14446#include <stdarg.h>
14447#include <string.h>
14448#include <float.h>
14449
107c3bbf 14450int
14451main ()
14452{
14453
107c3bbf 14454 ;
14455 return 0;
14456}
14457_ACEOF
cd9a469c 14458if ac_fn_c_try_compile "$LINENO"; then :
14459 ac_cv_header_stdc=yes
107c3bbf 14460else
cd9a469c 14461 ac_cv_header_stdc=no
107c3bbf 14462fi
cd9a469c 14463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
107c3bbf 14464
cd9a469c 14465if test $ac_cv_header_stdc = yes; then
14466 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107c3bbf 14468/* end confdefs.h. */
cd9a469c 14469#include <string.h>
107c3bbf 14470
107c3bbf 14471_ACEOF
cd9a469c 14472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14473 $EGREP "memchr" >/dev/null 2>&1; then :
14474
107c3bbf 14475else
cd9a469c 14476 ac_cv_header_stdc=no
14477fi
14478rm -f conftest*
107c3bbf 14479
107c3bbf 14480fi
107c3bbf 14481
cd9a469c 14482if test $ac_cv_header_stdc = yes; then
14483 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107c3bbf 14485/* end confdefs.h. */
cd9a469c 14486#include <stdlib.h>
107c3bbf 14487
107c3bbf 14488_ACEOF
cd9a469c 14489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14490 $EGREP "free" >/dev/null 2>&1; then :
14491
14492else
14493 ac_cv_header_stdc=no
14494fi
14495rm -f conftest*
14496
14497fi
14498
14499if test $ac_cv_header_stdc = yes; then
14500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14501 if test "$cross_compiling" = yes; then :
14502 :
14503else
14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107c3bbf 14505/* end confdefs.h. */
cd9a469c 14506#include <ctype.h>
14507#include <stdlib.h>
14508#if ((' ' & 0x0FF) == 0x020)
14509# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14510# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14511#else
14512# define ISLOWER(c) \
14513 (('a' <= (c) && (c) <= 'i') \
14514 || ('j' <= (c) && (c) <= 'r') \
14515 || ('s' <= (c) && (c) <= 'z'))
14516# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14517#endif
107c3bbf 14518
cd9a469c 14519#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
107c3bbf 14520int
14521main ()
14522{
cd9a469c 14523 int i;
14524 for (i = 0; i < 256; i++)
14525 if (XOR (islower (i), ISLOWER (i))
14526 || toupper (i) != TOUPPER (i))
14527 return 2;
107c3bbf 14528 return 0;
14529}
14530_ACEOF
cd9a469c 14531if ac_fn_c_try_run "$LINENO"; then :
107c3bbf 14532
107c3bbf 14533else
cd9a469c 14534 ac_cv_header_stdc=no
14535fi
14536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14537 conftest.$ac_objext conftest.beam conftest.$ac_ext
14538fi
107c3bbf 14539
107c3bbf 14540fi
107c3bbf 14541fi
cd9a469c 14542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14543$as_echo "$ac_cv_header_stdc" >&6; }
14544if test $ac_cv_header_stdc = yes; then
14545
14546$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14547
14548fi
14549
14550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14551$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14552if test "${ac_cv_header_time+set}" = set; then :
14553 $as_echo_n "(cached) " >&6
14554else
14555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107c3bbf 14556/* end confdefs.h. */
cd9a469c 14557#include <sys/types.h>
14558#include <sys/time.h>
14559#include <time.h>
107c3bbf 14560
14561int
14562main ()
14563{
cd9a469c 14564if ((struct tm *) 0)
14565return 0;
107c3bbf 14566 ;
14567 return 0;
14568}
14569_ACEOF
cd9a469c 14570if ac_fn_c_try_compile "$LINENO"; then :
14571 ac_cv_header_time=yes
107c3bbf 14572else
cd9a469c 14573 ac_cv_header_time=no
14574fi
14575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14576fi
14577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14578$as_echo "$ac_cv_header_time" >&6; }
14579if test $ac_cv_header_time = yes; then
14580
14581$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
107c3bbf 14582
107c3bbf 14583fi
cd9a469c 14584
14585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14586$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14587if test "${gcc_cv_header_string+set}" = set; then :
14588 $as_echo_n "(cached) " >&6
107c3bbf 14589else
cd9a469c 14590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107c3bbf 14591/* end confdefs.h. */
cd9a469c 14592#include <string.h>
14593#include <strings.h>
107c3bbf 14594int
14595main ()
14596{
14597
107c3bbf 14598 ;
14599 return 0;
14600}
14601_ACEOF
cd9a469c 14602if ac_fn_c_try_compile "$LINENO"; then :
14603 gcc_cv_header_string=yes
107c3bbf 14604else
cd9a469c 14605 gcc_cv_header_string=no
107c3bbf 14606fi
cd9a469c 14607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
107c3bbf 14608fi
cd9a469c 14609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14610$as_echo "$gcc_cv_header_string" >&6; }
14611if test $gcc_cv_header_string = yes; then
14612
14613$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14614
107c3bbf 14615fi
cd9a469c 14616
85f988d0 14617for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
cd9a469c 14618do :
14619 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14620ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14621eval as_val=\$$as_ac_Header
14622 if test "x$as_val" = x""yes; then :
14623 cat >>confdefs.h <<_ACEOF
14624#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
107c3bbf 14625_ACEOF
107c3bbf 14626
cd9a469c 14627fi
107c3bbf 14628
cd9a469c 14629done
107c3bbf 14630
107c3bbf 14631
cd9a469c 14632
14633
14634inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14635
14636acx_cv_header_stdint=stddef.h
14637acx_cv_header_stdint_kind="(already complete)"
14638for i in stdint.h $inttype_headers; do
14639 unset ac_cv_type_uintptr_t
14640 unset ac_cv_type_uintmax_t
14641 unset ac_cv_type_int_least32_t
14642 unset ac_cv_type_int_fast32_t
14643 unset ac_cv_type_uint64_t
14644 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14645 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14646#include <$i>
14647"
14648if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14649 acx_cv_header_stdint=$i
14650else
14651 continue
14652fi
14653
14654 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14655#include <$i>
14656"
14657if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14658
14659else
14660 acx_cv_header_stdint_kind="(mostly complete)"
14661fi
14662
14663 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14664#include <$i>
14665"
14666if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14667
14668else
14669 acx_cv_header_stdint_kind="(mostly complete)"
14670fi
14671
14672 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14673#include <$i>
14674"
14675if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14676
107c3bbf 14677else
cd9a469c 14678 acx_cv_header_stdint_kind="(mostly complete)"
14679fi
107c3bbf 14680
cd9a469c 14681 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14682#include <$i>
14683"
14684if test "x$ac_cv_type_uint64_t" = x""yes; then :
14685
14686else
14687 acx_cv_header_stdint_kind="(lacks uint64_t)"
107c3bbf 14688fi
cd9a469c 14689
14690 break
14691done
14692if test "$acx_cv_header_stdint" = stddef.h; then
14693 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14694 for i in stdint.h $inttype_headers; do
14695 unset ac_cv_type_uintptr_t
14696 unset ac_cv_type_uint32_t
14697 unset ac_cv_type_uint64_t
14698 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14699 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14700#include <$i>
14701"
14702if test "x$ac_cv_type_uint32_t" = x""yes; then :
14703 acx_cv_header_stdint=$i
107c3bbf 14704else
cd9a469c 14705 continue
14706fi
107c3bbf 14707
cd9a469c 14708 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14709#include <$i>
14710"
14711if test "x$ac_cv_type_uint64_t" = x""yes; then :
107c3bbf 14712
cd9a469c 14713fi
107c3bbf 14714
cd9a469c 14715 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14716#include <$i>
14717"
14718if test "x$ac_cv_type_uintptr_t" = x""yes; then :
107c3bbf 14719
cd9a469c 14720fi
107c3bbf 14721
cd9a469c 14722 break
14723 done
14724fi
14725if test "$acx_cv_header_stdint" = stddef.h; then
14726 acx_cv_header_stdint_kind="(u_intXX_t style)"
14727 for i in sys/types.h $inttype_headers; do
14728 unset ac_cv_type_u_int32_t
14729 unset ac_cv_type_u_int64_t
14730 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14731 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14732#include <$i>
14733"
14734if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14735 acx_cv_header_stdint=$i
107c3bbf 14736else
cd9a469c 14737 continue
14738fi
14739
14740 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14741#include <$i>
14742"
14743if test "x$ac_cv_type_u_int64_t" = x""yes; then :
107c3bbf 14744
107c3bbf 14745fi
107c3bbf 14746
cd9a469c 14747 break
14748 done
107c3bbf 14749fi
cd9a469c 14750if test "$acx_cv_header_stdint" = stddef.h; then
14751 acx_cv_header_stdint_kind="(using manual detection)"
107c3bbf 14752fi
107c3bbf 14753
cd9a469c 14754test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14755test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14756test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14757test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14758test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
107c3bbf 14759
cd9a469c 14760# ----------------- Summarize what we found so far
107c3bbf 14761
cd9a469c 14762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14763$as_echo_n "checking what to include in gstdint.h... " >&6; }
14764
14765case `$as_basename -- gstdint.h ||
14766$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14767 Xgstdint.h : 'X\(//\)$' \| \
14768 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14769$as_echo X/gstdint.h |
14770 sed '/^.*\/\([^/][^/]*\)\/*$/{
14771 s//\1/
14772 q
14773 }
14774 /^X\/\(\/\/\)$/{
14775 s//\1/
14776 q
14777 }
14778 /^X\/\(\/\).*/{
14779 s//\1/
14780 q
14781 }
14782 s/.*/./; q'` in
14783 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14784$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14785 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14786$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14787 *) ;;
107c3bbf 14788esac
107c3bbf 14789
cd9a469c 14790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14791$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
107c3bbf 14792
cd9a469c 14793# ----------------- done included file, check C basic types --------
107c3bbf 14794
cd9a469c 14795# Lacking an uintptr_t? Test size of void *
14796case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14797 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14798# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14799# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14800# This bug is HP SR number 8606223364.
14801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14802$as_echo_n "checking size of void *... " >&6; }
14803if test "${ac_cv_sizeof_void_p+set}" = set; then :
14804 $as_echo_n "(cached) " >&6
107c3bbf 14805else
cd9a469c 14806 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
107c3bbf 14807
cd9a469c 14808else
14809 if test "$ac_cv_type_void_p" = yes; then
14810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14812{ as_fn_set_status 77
14813as_fn_error "cannot compute sizeof (void *)
14814See \`config.log' for more details." "$LINENO" 5; }; }
14815 else
14816 ac_cv_sizeof_void_p=0
14817 fi
107c3bbf 14818fi
cd9a469c 14819
107c3bbf 14820fi
cd9a469c 14821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14822$as_echo "$ac_cv_sizeof_void_p" >&6; }
107c3bbf 14823
107c3bbf 14824
cd9a469c 14825
14826cat >>confdefs.h <<_ACEOF
14827#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
107c3bbf 14828_ACEOF
107c3bbf 14829
cd9a469c 14830 ;;
14831esac
107c3bbf 14832
cd9a469c 14833# Lacking an uint64_t? Test size of long
14834case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14835 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14836# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14837# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14838# This bug is HP SR number 8606223364.
14839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14840$as_echo_n "checking size of long... " >&6; }
14841if test "${ac_cv_sizeof_long+set}" = set; then :
14842 $as_echo_n "(cached) " >&6
107c3bbf 14843else
cd9a469c 14844 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
107c3bbf 14845
107c3bbf 14846else
cd9a469c 14847 if test "$ac_cv_type_long" = yes; then
14848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14850{ as_fn_set_status 77
14851as_fn_error "cannot compute sizeof (long)
14852See \`config.log' for more details." "$LINENO" 5; }; }
14853 else
14854 ac_cv_sizeof_long=0
14855 fi
14856fi
107c3bbf 14857
cd9a469c 14858fi
14859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14860$as_echo "$ac_cv_sizeof_long" >&6; }
107c3bbf 14861
107c3bbf 14862
cd9a469c 14863
14864cat >>confdefs.h <<_ACEOF
14865#define SIZEOF_LONG $ac_cv_sizeof_long
107c3bbf 14866_ACEOF
107c3bbf 14867
cd9a469c 14868 ;;
14869esac
107c3bbf 14870
cd9a469c 14871if test $acx_cv_header_stdint = stddef.h; then
14872 # Lacking a good header? Test size of everything and deduce all types.
14873 # The cast to long int works around a bug in the HP C Compiler
14874# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14875# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14876# This bug is HP SR number 8606223364.
14877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14878$as_echo_n "checking size of int... " >&6; }
14879if test "${ac_cv_sizeof_int+set}" = set; then :
14880 $as_echo_n "(cached) " >&6
107c3bbf 14881else
cd9a469c 14882 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14883
14884else
14885 if test "$ac_cv_type_int" = yes; then
14886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14888{ as_fn_set_status 77
14889as_fn_error "cannot compute sizeof (int)
14890See \`config.log' for more details." "$LINENO" 5; }; }
14891 else
14892 ac_cv_sizeof_int=0
14893 fi
14894fi
14895
14896fi
14897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14898$as_echo "$ac_cv_sizeof_int" >&6; }
14899
14900
14901
14902cat >>confdefs.h <<_ACEOF
14903#define SIZEOF_INT $ac_cv_sizeof_int
14904_ACEOF
107c3bbf 14905
cd9a469c 14906
14907 # The cast to long int works around a bug in the HP C Compiler
14908# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14909# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14910# This bug is HP SR number 8606223364.
14911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14912$as_echo_n "checking size of short... " >&6; }
14913if test "${ac_cv_sizeof_short+set}" = set; then :
14914 $as_echo_n "(cached) " >&6
107c3bbf 14915else
cd9a469c 14916 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
107c3bbf 14917
cd9a469c 14918else
14919 if test "$ac_cv_type_short" = yes; then
14920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14922{ as_fn_set_status 77
14923as_fn_error "cannot compute sizeof (short)
14924See \`config.log' for more details." "$LINENO" 5; }; }
14925 else
14926 ac_cv_sizeof_short=0
14927 fi
107c3bbf 14928fi
cd9a469c 14929
107c3bbf 14930fi
cd9a469c 14931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14932$as_echo "$ac_cv_sizeof_short" >&6; }
107c3bbf 14933
107c3bbf 14934
cd9a469c 14935
14936cat >>confdefs.h <<_ACEOF
14937#define SIZEOF_SHORT $ac_cv_sizeof_short
107c3bbf 14938_ACEOF
cd9a469c 14939
14940
14941 # The cast to long int works around a bug in the HP C Compiler
14942# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14943# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14944# This bug is HP SR number 8606223364.
14945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14946$as_echo_n "checking size of char... " >&6; }
14947if test "${ac_cv_sizeof_char+set}" = set; then :
14948 $as_echo_n "(cached) " >&6
107c3bbf 14949else
cd9a469c 14950 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
107c3bbf 14951
107c3bbf 14952else
cd9a469c 14953 if test "$ac_cv_type_char" = yes; then
14954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14956{ as_fn_set_status 77
14957as_fn_error "cannot compute sizeof (char)
14958See \`config.log' for more details." "$LINENO" 5; }; }
14959 else
14960 ac_cv_sizeof_char=0
14961 fi
14962fi
107c3bbf 14963
cd9a469c 14964fi
14965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14966$as_echo "$ac_cv_sizeof_char" >&6; }
107c3bbf 14967
107c3bbf 14968
cd9a469c 14969
14970cat >>confdefs.h <<_ACEOF
14971#define SIZEOF_CHAR $ac_cv_sizeof_char
107c3bbf 14972_ACEOF
107c3bbf 14973
cd9a469c 14974
14975
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
14977$as_echo_n "checking for type equivalent to int8_t... " >&6; }
14978 case "$ac_cv_sizeof_char" in
14979 1) acx_cv_type_int8_t=char ;;
9b15a251 14980 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
cd9a469c 14981 esac
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
14983$as_echo "$acx_cv_type_int8_t" >&6; }
14984
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
14986$as_echo_n "checking for type equivalent to int16_t... " >&6; }
14987 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14988 2:*) acx_cv_type_int16_t=int ;;
14989 *:2) acx_cv_type_int16_t=short ;;
9b15a251 14990 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
cd9a469c 14991 esac
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
14993$as_echo "$acx_cv_type_int16_t" >&6; }
14994
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
14996$as_echo_n "checking for type equivalent to int32_t... " >&6; }
14997 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14998 4:*) acx_cv_type_int32_t=int ;;
14999 *:4) acx_cv_type_int32_t=long ;;
9b15a251 15000 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
cd9a469c 15001 esac
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15003$as_echo "$acx_cv_type_int32_t" >&6; }
107c3bbf 15004fi
cd9a469c 15005
15006# These tests are here to make the output prettier
15007
15008if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15009 case "$ac_cv_sizeof_long" in
15010 8) acx_cv_type_int64_t=long ;;
15011 esac
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15013$as_echo_n "checking for type equivalent to int64_t... " >&6; }
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15015$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
107c3bbf 15016fi
cd9a469c 15017
15018# Now we can use the above types
15019
15020if test "$ac_cv_type_uintptr_t" != yes; then
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15022$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15023 case $ac_cv_sizeof_void_p in
15024 2) acx_cv_type_intptr_t=int16_t ;;
15025 4) acx_cv_type_intptr_t=int32_t ;;
15026 8) acx_cv_type_intptr_t=int64_t ;;
9b15a251 15027 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
cd9a469c 15028 esac
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15030$as_echo "$acx_cv_type_intptr_t" >&6; }
107c3bbf 15031fi
107c3bbf 15032
cd9a469c 15033# ----------------- done all checks, emit header -------------
15034ac_config_commands="$ac_config_commands gstdint.h"
15035
15036
15037
15038
cd9a469c 15039XPCFLAGS=""
a88ef88c 15040case "$host" in
15041 *-*-rtems*)
15042 # RTEMS supports Pthreads, but the library is not available at GCC build time.
15043 ;;
15044 *)
15045 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15046 # In case the pthread.h system header is not found, this test will fail.
15047 CFLAGS="$CFLAGS -pthread"
15048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cd9a469c 15049/* end confdefs.h. */
15050#include <pthread.h>
a88ef88c 15051 void *g(void *d) { return NULL; }
fd6481cf 15052int
15053main ()
15054{
cd9a469c 15055pthread_t t; pthread_create(&t,NULL,g,NULL);
fd6481cf 15056 ;
15057 return 0;
15058}
15059_ACEOF
cd9a469c 15060if ac_fn_c_try_link "$LINENO"; then :
15061 XPCFLAGS=" -Wc,-pthread"
15062else
15063 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
a88ef88c 15064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15065/* end confdefs.h. */
cd9a469c 15066#include <pthread.h>
a88ef88c 15067 void *g(void *d) { return NULL; }
fd6481cf 15068int
15069main ()
15070{
cd9a469c 15071pthread_t t; pthread_create(&t,NULL,g,NULL);
fd6481cf 15072 ;
15073 return 0;
15074}
15075_ACEOF
cd9a469c 15076if ac_fn_c_try_link "$LINENO"; then :
fd6481cf 15077
fd6481cf 15078else
cd9a469c 15079 as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15080fi
15081rm -f core conftest.err conftest.$ac_objext \
15082 conftest$ac_exeext conftest.$ac_ext
15083fi
15084rm -f core conftest.err conftest.$ac_objext \
15085 conftest$ac_exeext conftest.$ac_ext
a88ef88c 15086esac
fd6481cf 15087
ca4c3545 15088# Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15089#
15090# Copyright (C) 2014-2015 Free Software Foundation, Inc.
15091#
15092# Contributed by Mentor Embedded.
15093#
15094# This file is part of the GNU Offloading and Multi Processing Library
15095# (libgomp).
15096#
15097# Libgomp is free software; you can redistribute it and/or modify it
15098# under the terms of the GNU General Public License as published by
15099# the Free Software Foundation; either version 3, or (at your option)
15100# any later version.
15101#
15102# Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15103# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15104# FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15105# more details.
15106#
15107# Under Section 7 of GPL version 3, you are granted additional
15108# permissions described in the GCC Runtime Library Exception, version
15109# 3.1, as published by the Free Software Foundation.
15110#
15111# You should have received a copy of the GNU General Public License and
15112# a copy of the GCC Runtime Library Exception along with this program;
15113# see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15114# <http://www.gnu.org/licenses/>.
15115
15116offload_targets=
15117
a3d93be3 15118plugin_support=yes
15119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15120$as_echo_n "checking for dlsym in -ldl... " >&6; }
15121if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15122 $as_echo_n "(cached) " >&6
15123else
15124 ac_check_lib_save_LIBS=$LIBS
15125LIBS="-ldl $LIBS"
15126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15127/* end confdefs.h. */
15128
15129/* Override any GCC internal prototype to avoid an error.
15130 Use char because int might match the return type of a GCC
15131 builtin and then its argument prototype would still apply. */
15132#ifdef __cplusplus
15133extern "C"
15134#endif
15135char dlsym ();
15136int
15137main ()
15138{
15139return dlsym ();
15140 ;
15141 return 0;
15142}
15143_ACEOF
15144if ac_fn_c_try_link "$LINENO"; then :
15145 ac_cv_lib_dl_dlsym=yes
15146else
15147 ac_cv_lib_dl_dlsym=no
15148fi
15149rm -f core conftest.err conftest.$ac_objext \
15150 conftest$ac_exeext conftest.$ac_ext
15151LIBS=$ac_check_lib_save_LIBS
15152fi
15153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15154$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15155if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
15156 cat >>confdefs.h <<_ACEOF
15157#define HAVE_LIBDL 1
15158_ACEOF
15159
15160 LIBS="-ldl $LIBS"
15161
15162else
15163 plugin_support=no
15164fi
15165
15166if test x"$plugin_support" = xyes; then
15167
15168$as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15169
ca4c3545 15170 offload_targets=host_nonshm
15171elif test "x${enable_offload_targets-no}" != xno; then
15172 as_fn_error "Can't support offloading without support for plugins" "$LINENO" 5
15173fi
15174
15175# Look for the CUDA driver package.
15176CUDA_DRIVER_INCLUDE=
15177CUDA_DRIVER_LIB=
15178
15179
15180CUDA_DRIVER_CPPFLAGS=
15181CUDA_DRIVER_LDFLAGS=
15182
15183# Check whether --with-cuda-driver was given.
15184if test "${with_cuda_driver+set}" = set; then :
15185 withval=$with_cuda_driver;
a3d93be3 15186fi
15187
ca4c3545 15188
15189# Check whether --with-cuda-driver-include was given.
15190if test "${with_cuda_driver_include+set}" = set; then :
15191 withval=$with_cuda_driver_include;
15192fi
15193
15194
15195# Check whether --with-cuda-driver-lib was given.
15196if test "${with_cuda_driver_lib+set}" = set; then :
15197 withval=$with_cuda_driver_lib;
15198fi
15199
15200if test "x$with_cuda_driver" != x; then
15201 CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15202 CUDA_DRIVER_LIB=$with_cuda_driver/lib
15203fi
15204if test "x$with_cuda_driver_include" != x; then
15205 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15206fi
15207if test "x$with_cuda_driver_lib" != x; then
15208 CUDA_DRIVER_LIB=$with_cuda_driver_lib
15209fi
15210if test "x$CUDA_DRIVER_INCLUDE" != x; then
15211 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15212fi
15213if test "x$CUDA_DRIVER_LIB" != x; then
15214 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15215fi
15216
15217PLUGIN_NVPTX=0
15218PLUGIN_NVPTX_CPPFLAGS=
15219PLUGIN_NVPTX_LDFLAGS=
15220PLUGIN_NVPTX_LIBS=
15221
15222
15223
15224
15225
15226# Get offload targets and path to install tree of offloading compiler.
15227offload_additional_options=
15228offload_additional_lib_paths=
15229
15230
15231if test x"$enable_offload_targets" != x; then
15232 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15233 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15234 tgt=`echo $tgt | sed 's/=.*//'`
15235 case $tgt in
15236 *-intelmic-* | *-intelmicemul-*)
15237 tgt_name=intelmic
15238 ;;
15239 nvptx*)
15240 tgt_name=nvptx
15241 PLUGIN_NVPTX=$tgt
15242 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15243 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15244 PLUGIN_NVPTX_LIBS='-lcuda'
15245
15246 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15247 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15248 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15249 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15250 PLUGIN_NVPTX_save_LIBS=$LIBS
15251 LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253/* end confdefs.h. */
15254#include "cuda.h"
15255int
15256main ()
15257{
15258CUresult r = cuCtxPushCurrent (NULL);
15259 ;
15260 return 0;
15261}
15262_ACEOF
15263if ac_fn_c_try_link "$LINENO"; then :
15264 PLUGIN_NVPTX=1
15265fi
15266rm -f core conftest.err conftest.$ac_objext \
15267 conftest$ac_exeext conftest.$ac_ext
15268 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15269 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15270 LIBS=$PLUGIN_NVPTX_save_LIBS
15271 case $PLUGIN_NVPTX in
15272 nvptx*)
15273 PLUGIN_NVPTX=0
15274 as_fn_error "CUDA driver package required for nvptx support" "$LINENO" 5
15275 ;;
15276 esac
15277 ;;
15278 *)
15279 as_fn_error "unknown offload target specified" "$LINENO" 5
15280 ;;
15281 esac
15282 if test x"$offload_targets" = x; then
15283 offload_targets=$tgt_name
15284 else
15285 offload_targets=$offload_targets,$tgt_name
15286 fi
15287 if test x"$tgt_dir" != x; then
15288 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15289 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15290 else
15291 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15292 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15293 fi
15294 done
15295fi
15296
15297cat >>confdefs.h <<_ACEOF
15298#define OFFLOAD_TARGETS "$offload_targets"
15299_ACEOF
15300
15301 if test $PLUGIN_NVPTX = 1; then
15302 PLUGIN_NVPTX_TRUE=
15303 PLUGIN_NVPTX_FALSE='#'
15304else
15305 PLUGIN_NVPTX_TRUE='#'
15306 PLUGIN_NVPTX_FALSE=
15307fi
15308
15309
15310cat >>confdefs.h <<_ACEOF
15311#define PLUGIN_NVPTX $PLUGIN_NVPTX
15312_ACEOF
15313
15314
15315
cd9a469c 15316# Check for functions needed.
15317for ac_func in getloadavg clock_gettime strtoull
15318do :
15319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15320ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15321eval as_val=\$$as_ac_var
15322 if test "x$as_val" = x""yes; then :
15323 cat >>confdefs.h <<_ACEOF
15324#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
fd6481cf 15325_ACEOF
fd6481cf 15326
cd9a469c 15327fi
15328done
15329
15330
15331# Check for broken semaphore implementation on darwin.
15332# sem_init returns: sem_init error: Function not implemented.
15333case "$host" in
15334 *-darwin*)
15335
15336$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15337
15338 ;;
15339esac
15340
15341 # Check whether --enable-linux-futex was given.
15342if test "${enable_linux_futex+set}" = set; then :
15343 enableval=$enable_linux_futex;
15344 case "$enableval" in
15345 yes|no|default) ;;
15346 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15347 esac
15348
15349else
15350 enable_linux_futex=default
15351fi
fd6481cf 15352
fd6481cf 15353
cd9a469c 15354case "$target" in
15355 *-linux*)
15356 case "$enable_linux_futex" in
15357 default)
15358 # If headers don't have gettid/futex syscalls definition, then
15359 # default to no, otherwise there will be compile time failures.
15360 # Otherwise, default to yes. If we don't detect we are
15361 # compiled/linked against NPTL and not cross-compiling, check
15362 # if programs are run by default against NPTL and if not, issue
15363 # a warning.
15364 enable_linux_futex=no
15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366/* end confdefs.h. */
15367#include <sys/syscall.h>
15368 int lk;
fd6481cf 15369int
15370main ()
15371{
cd9a469c 15372syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
fd6481cf 15373 ;
15374 return 0;
15375}
15376_ACEOF
cd9a469c 15377if ac_fn_c_try_link "$LINENO"; then :
15378 save_LIBS="$LIBS"
15379 LIBS="-lpthread $LIBS"
15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15381/* end confdefs.h. */
cd9a469c 15382#ifndef _GNU_SOURCE
15383 #define _GNU_SOURCE 1
15384 #endif
15385 #include <pthread.h>
15386 pthread_t th; void *status;
fd6481cf 15387int
15388main ()
15389{
cd9a469c 15390pthread_tryjoin_np (th, &status);
fd6481cf 15391 ;
15392 return 0;
15393}
15394_ACEOF
cd9a469c 15395if ac_fn_c_try_link "$LINENO"; then :
15396 enable_linux_futex=yes
fd6481cf 15397else
cd9a469c 15398 if test x$cross_compiling = xno; then
15399 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15400 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15402If so, please configure with --disable-linux-futex" >&5
15403$as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15404If so, please configure with --disable-linux-futex" >&2;}
15405 fi
15406 fi
15407 enable_linux_futex=yes
fd6481cf 15408fi
cd9a469c 15409rm -f core conftest.err conftest.$ac_objext \
15410 conftest$ac_exeext conftest.$ac_ext
15411 LIBS="$save_LIBS"
15412fi
15413rm -f core conftest.err conftest.$ac_objext \
15414 conftest$ac_exeext conftest.$ac_ext
15415 ;;
15416 yes)
15417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15418/* end confdefs.h. */
cd9a469c 15419#include <sys/syscall.h>
15420 int lk;
fd6481cf 15421int
15422main ()
15423{
cd9a469c 15424syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
fd6481cf 15425 ;
15426 return 0;
15427}
15428_ACEOF
cd9a469c 15429if ac_fn_c_try_link "$LINENO"; then :
fd6481cf 15430
cd9a469c 15431else
15432 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
fd6481cf 15433fi
cd9a469c 15434rm -f core conftest.err conftest.$ac_objext \
15435 conftest$ac_exeext conftest.$ac_ext
15436 ;;
15437 esac
15438 ;;
15439 *)
15440 enable_linux_futex=no
15441 ;;
15442esac
15443if test x$enable_linux_futex = xyes; then
15444 :
fd6481cf 15445fi
fd6481cf 15446
cd9a469c 15447
15448# Check for pthread_{,attr_}[sg]etaffinity_np.
15449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450/* end confdefs.h. */
15451#define _GNU_SOURCE
15452 #include <pthread.h>
fd6481cf 15453int
15454main ()
15455{
cd9a469c 15456cpu_set_t cpuset;
15457 pthread_attr_t attr;
15458 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15459 if (CPU_ISSET (0, &cpuset))
15460 CPU_SET (1, &cpuset);
15461 else
15462 CPU_ZERO (&cpuset);
15463 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15464 pthread_attr_init (&attr);
15465 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15466 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
fd6481cf 15467 ;
15468 return 0;
15469}
15470_ACEOF
cd9a469c 15471if ac_fn_c_try_link "$LINENO"; then :
15472
15473$as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15474
15475fi
15476rm -f core conftest.err conftest.$ac_objext \
15477 conftest$ac_exeext conftest.$ac_ext
15478
15479# At least for glibc, clock_gettime is in librt. But don't pull that
15480# in if it still doesn't give us the function we want.
15481if test $ac_cv_func_clock_gettime = no; then
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15483$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15484if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15485 $as_echo_n "(cached) " >&6
15486else
15487 ac_check_lib_save_LIBS=$LIBS
15488LIBS="-lrt $LIBS"
15489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15490/* end confdefs.h. */
15491
cd9a469c 15492/* Override any GCC internal prototype to avoid an error.
15493 Use char because int might match the return type of a GCC
15494 builtin and then its argument prototype would still apply. */
15495#ifdef __cplusplus
15496extern "C"
15497#endif
15498char clock_gettime ();
fd6481cf 15499int
15500main ()
15501{
cd9a469c 15502return clock_gettime ();
fd6481cf 15503 ;
15504 return 0;
15505}
15506_ACEOF
cd9a469c 15507if ac_fn_c_try_link "$LINENO"; then :
15508 ac_cv_lib_rt_clock_gettime=yes
fd6481cf 15509else
cd9a469c 15510 ac_cv_lib_rt_clock_gettime=no
15511fi
15512rm -f core conftest.err conftest.$ac_objext \
15513 conftest$ac_exeext conftest.$ac_ext
15514LIBS=$ac_check_lib_save_LIBS
15515fi
15516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15517$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15518if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15519 LIBS="-lrt $LIBS"
15520
15521$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
fd6481cf 15522
fd6481cf 15523fi
cd9a469c 15524
15525fi
15526
15527# See if we support thread-local storage.
15528
15529
15530 # Check whether --enable-tls was given.
15531if test "${enable_tls+set}" = set; then :
15532 enableval=$enable_tls;
15533 case "$enableval" in
15534 yes|no) ;;
15535 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15536 esac
15537
15538else
15539 enable_tls=yes
15540fi
15541
15542
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15544$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15545if test "${gcc_cv_have_tls+set}" = set; then :
15546 $as_echo_n "(cached) " >&6
fd6481cf 15547else
fd6481cf 15548
cd9a469c 15549 if test "$cross_compiling" = yes; then :
15550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551/* end confdefs.h. */
15552__thread int a; int b; int main() { return a = b; }
15553_ACEOF
15554if ac_fn_c_try_link "$LINENO"; then :
15555 chktls_save_LDFLAGS="$LDFLAGS"
15556 case $host in
15557 *-*-linux*)
15558 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15559 ;;
15560 esac
15561 chktls_save_CFLAGS="$CFLAGS"
15562 CFLAGS="-fPIC $CFLAGS"
15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564/* end confdefs.h. */
15565int f() { return 0; }
fd6481cf 15566_ACEOF
cd9a469c 15567if ac_fn_c_try_link "$LINENO"; then :
15568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15569/* end confdefs.h. */
cd9a469c 15570__thread int a; int b; int f() { return a = b; }
15571_ACEOF
15572if ac_fn_c_try_link "$LINENO"; then :
15573 gcc_cv_have_tls=yes
15574else
15575 gcc_cv_have_tls=no
15576fi
15577rm -f core conftest.err conftest.$ac_objext \
15578 conftest$ac_exeext conftest.$ac_ext
15579else
15580 gcc_cv_have_tls=yes
15581fi
15582rm -f core conftest.err conftest.$ac_objext \
15583 conftest$ac_exeext conftest.$ac_ext
15584 CFLAGS="$chktls_save_CFLAGS"
15585 LDFLAGS="$chktls_save_LDFLAGS"
15586else
15587 gcc_cv_have_tls=no
15588fi
15589rm -f core conftest.err conftest.$ac_objext \
15590 conftest$ac_exeext conftest.$ac_ext
fd6481cf 15591
fd6481cf 15592
cd9a469c 15593else
15594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15595/* end confdefs.h. */
15596__thread int a; int b; int main() { return a = b; }
fd6481cf 15597_ACEOF
cd9a469c 15598if ac_fn_c_try_run "$LINENO"; then :
15599 chktls_save_LDFLAGS="$LDFLAGS"
15600 LDFLAGS="-static $LDFLAGS"
15601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602/* end confdefs.h. */
15603int main() { return 0; }
fd6481cf 15604_ACEOF
cd9a469c 15605if ac_fn_c_try_link "$LINENO"; then :
15606 if test "$cross_compiling" = yes; then :
15607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15609as_fn_error "cannot run test program while cross compiling
15610See \`config.log' for more details." "$LINENO" 5; }
15611else
15612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15613/* end confdefs.h. */
cd9a469c 15614__thread int a; int b; int main() { return a = b; }
15615_ACEOF
15616if ac_fn_c_try_run "$LINENO"; then :
15617 gcc_cv_have_tls=yes
15618else
15619 gcc_cv_have_tls=no
15620fi
15621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15622 conftest.$ac_objext conftest.beam conftest.$ac_ext
15623fi
fd6481cf 15624
cd9a469c 15625else
15626 gcc_cv_have_tls=yes
15627fi
15628rm -f core conftest.err conftest.$ac_objext \
15629 conftest$ac_exeext conftest.$ac_ext
15630 LDFLAGS="$chktls_save_LDFLAGS"
15631 if test $gcc_cv_have_tls = yes; then
15632 chktls_save_CFLAGS="$CFLAGS"
15633 thread_CFLAGS=failed
15634 for flag in '' '-pthread' '-lpthread'; do
15635 CFLAGS="$flag $chktls_save_CFLAGS"
15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637/* end confdefs.h. */
15638#include <pthread.h>
15639 void *g(void *d) { return NULL; }
fd6481cf 15640int
15641main ()
15642{
cd9a469c 15643pthread_t t; pthread_create(&t,NULL,g,NULL);
fd6481cf 15644 ;
15645 return 0;
15646}
15647_ACEOF
cd9a469c 15648if ac_fn_c_try_link "$LINENO"; then :
15649 thread_CFLAGS="$flag"
fd6481cf 15650fi
cd9a469c 15651rm -f core conftest.err conftest.$ac_objext \
15652 conftest$ac_exeext conftest.$ac_ext
15653 if test "X$thread_CFLAGS" != Xfailed; then
15654 break
15655 fi
15656 done
15657 CFLAGS="$chktls_save_CFLAGS"
15658 if test "X$thread_CFLAGS" != Xfailed; then
15659 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
9b15a251 15660 if test "$cross_compiling" = yes; then :
cd9a469c 15661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15663as_fn_error "cannot run test program while cross compiling
15664See \`config.log' for more details." "$LINENO" 5; }
fd6481cf 15665else
cd9a469c 15666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15667/* end confdefs.h. */
cd9a469c 15668#include <pthread.h>
15669 __thread int a;
9a2be164 15670 static int *volatile a_in_other_thread;
cd9a469c 15671 static void *
15672 thread_func (void *arg)
15673 {
15674 a_in_other_thread = &a;
15675 return (void *)0;
15676 }
fd6481cf 15677int
15678main ()
15679{
cd9a469c 15680pthread_t thread;
15681 void *thread_retval;
9a2be164 15682 int *volatile a_in_main_thread;
15683 a_in_main_thread = &a;
cd9a469c 15684 if (pthread_create (&thread, (pthread_attr_t *)0,
15685 thread_func, (void *)0))
15686 return 0;
cd9a469c 15687 if (pthread_join (thread, &thread_retval))
15688 return 0;
15689 return (a_in_other_thread == a_in_main_thread);
fd6481cf 15690 ;
15691 return 0;
15692}
15693_ACEOF
cd9a469c 15694if ac_fn_c_try_run "$LINENO"; then :
15695 gcc_cv_have_tls=yes
fd6481cf 15696else
cd9a469c 15697 gcc_cv_have_tls=no
15698fi
15699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15700 conftest.$ac_objext conftest.beam conftest.$ac_ext
15701fi
15702
15703 CFLAGS="$chktls_save_CFLAGS"
15704 fi
15705 fi
15706else
15707 gcc_cv_have_tls=no
15708fi
15709rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15710 conftest.$ac_objext conftest.beam conftest.$ac_ext
15711fi
fd6481cf 15712
fd6481cf 15713fi
cd9a469c 15714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15715$as_echo "$gcc_cv_have_tls" >&6; }
15716 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15717
15718$as_echo "#define HAVE_TLS 1" >>confdefs.h
15719
15720 fi
15721
4b9d11e9 15722# See if we have emulated thread-local storage.
15723
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15725$as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15726if test "${gcc_cv_use_emutls+set}" = set; then :
15727 $as_echo_n "(cached) " >&6
15728else
15729
15730 gcc_cv_use_emutls=no
15731 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15732 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15734 (eval $ac_try) 2>&5
15735 ac_status=$?
15736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15737 test $ac_status = 0; }; }; then
15738 if grep __emutls_get_address conftest.s > /dev/null; then
15739 gcc_cv_use_emutls=yes
15740 fi
15741 fi
15742 rm -f conftest.*
15743
15744fi
15745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15746$as_echo "$gcc_cv_use_emutls" >&6; }
15747 if test "$gcc_cv_use_emutls" = "yes" ; then
15748
15749$as_echo "#define USE_EMUTLS 1" >>confdefs.h
15750
15751 fi
15752
edb5e609 15753# See what sort of export controls are available.
cd9a469c 15754
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15756$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15757if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15758 $as_echo_n "(cached) " >&6
fd6481cf 15759else
fd6481cf 15760
cd9a469c 15761 save_CFLAGS="$CFLAGS"
15762 CFLAGS="$CFLAGS -Werror"
15763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764/* end confdefs.h. */
15765void __attribute__((visibility("hidden"))) foo(void) { }
fd6481cf 15766int
15767main ()
15768{
15769
fd6481cf 15770 ;
15771 return 0;
15772}
15773_ACEOF
cd9a469c 15774if ac_fn_c_try_compile "$LINENO"; then :
15775 libgomp_cv_have_attribute_visibility=yes
fd6481cf 15776else
cd9a469c 15777 libgomp_cv_have_attribute_visibility=no
fd6481cf 15778fi
cd9a469c 15779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15780 CFLAGS="$save_CFLAGS"
fd6481cf 15781fi
cd9a469c 15782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15783$as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15784 if test $libgomp_cv_have_attribute_visibility = yes; then
15785
15786$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15787
15788 fi
15789
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15791$as_echo_n "checking whether the target supports dllexport... " >&6; }
15792if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15793 $as_echo_n "(cached) " >&6
15794else
fd6481cf 15795
cd9a469c 15796 save_CFLAGS="$CFLAGS"
15797 CFLAGS="$CFLAGS -Werror"
15798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15799/* end confdefs.h. */
15800void __attribute__((dllexport)) foo(void) { }
fd6481cf 15801int
15802main ()
15803{
fd6481cf 15804
15805 ;
15806 return 0;
15807}
15808_ACEOF
cd9a469c 15809if ac_fn_c_try_compile "$LINENO"; then :
15810 libgomp_cv_have_attribute_dllexport=yes
15811else
15812 libgomp_cv_have_attribute_dllexport=no
15813fi
15814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15815 CFLAGS="$save_CFLAGS"
15816fi
15817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15818$as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15819 if test $libgomp_cv_have_attribute_dllexport = yes; then
15820
15821$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15822
15823 fi
15824
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15826$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15827if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
15828 $as_echo_n "(cached) " >&6
15829else
15830
15831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 15832/* end confdefs.h. */
15833
cd9a469c 15834void foo(void) { }
15835extern void bar(void) __attribute__((alias("foo")));
fd6481cf 15836int
15837main ()
15838{
cd9a469c 15839bar();
fd6481cf 15840 ;
15841 return 0;
15842}
15843_ACEOF
cd9a469c 15844if ac_fn_c_try_link "$LINENO"; then :
15845 libgomp_cv_have_attribute_alias=yes
fd6481cf 15846else
cd9a469c 15847 libgomp_cv_have_attribute_alias=no
15848fi
15849rm -f core conftest.err conftest.$ac_objext \
15850 conftest$ac_exeext conftest.$ac_ext
15851fi
15852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15853$as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15854 if test $libgomp_cv_have_attribute_alias = yes; then
15855
15856$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15857
15858 fi
15859
15860
15861# Check whether --with-gnu-ld was given.
15862if test "${with_gnu_ld+set}" = set; then :
15863 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15864else
15865 with_gnu_ld=no
15866fi
fd6481cf 15867
cd9a469c 15868ac_prog=ld
15869if test "$GCC" = yes; then
15870 # Check if gcc -print-prog-name=ld gives a path.
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15872$as_echo_n "checking for ld used by $CC... " >&6; }
15873 case $host in
15874 *-*-mingw*)
15875 # gcc leaves a trailing carriage return which upsets mingw
15876 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15877 *)
15878 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15879 esac
15880 case $ac_prog in
15881 # Accept absolute paths.
15882 [\\/]* | ?:[\\/]*)
15883 re_direlt='/[^/][^/]*/\.\./'
15884 # Canonicalize the pathname of ld
15885 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15886 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15887 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15888 done
15889 test -z "$LD" && LD="$ac_prog"
15890 ;;
15891 "")
15892 # If it fails, then pretend we aren't using GCC.
15893 ac_prog=ld
15894 ;;
15895 *)
15896 # If it is relative, then search for the first ld in PATH.
15897 with_gnu_ld=unknown
15898 ;;
15899 esac
15900elif test "$with_gnu_ld" = yes; then
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15902$as_echo_n "checking for GNU ld... " >&6; }
15903else
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15905$as_echo_n "checking for non-GNU ld... " >&6; }
fd6481cf 15906fi
cd9a469c 15907if test "${lt_cv_path_LD+set}" = set; then :
15908 $as_echo_n "(cached) " >&6
15909else
15910 if test -z "$LD"; then
15911 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15912 for ac_dir in $PATH; do
15913 IFS="$lt_save_ifs"
15914 test -z "$ac_dir" && ac_dir=.
15915 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15916 lt_cv_path_LD="$ac_dir/$ac_prog"
15917 # Check to see if the program is GNU ld. I'd rather use --version,
15918 # but apparently some variants of GNU ld only accept -v.
15919 # Break only if it was the GNU/non-GNU ld that we prefer.
15920 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15921 *GNU* | *'with BFD'*)
15922 test "$with_gnu_ld" != no && break
15923 ;;
15924 *)
15925 test "$with_gnu_ld" != yes && break
15926 ;;
15927 esac
15928 fi
fd6481cf 15929 done
cd9a469c 15930 IFS="$lt_save_ifs"
fd6481cf 15931else
cd9a469c 15932 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15933fi
15934fi
15935
15936LD="$lt_cv_path_LD"
15937if test -n "$LD"; then
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15939$as_echo "$LD" >&6; }
15940else
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15942$as_echo "no" >&6; }
15943fi
15944test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15946$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15947if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15948 $as_echo_n "(cached) " >&6
15949else
15950 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15951case `$LD -v 2>&1 </dev/null` in
15952*GNU* | *'with BFD'*)
15953 lt_cv_prog_gnu_ld=yes
15954 ;;
15955*)
15956 lt_cv_prog_gnu_ld=no
15957 ;;
15958esac
15959fi
15960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15961$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15962with_gnu_ld=$lt_cv_prog_gnu_ld
15963
15964
15965
15966
15967
15968
15969
15970 # If we're not using GNU ld, then there's no point in even trying these
15971 # tests. Check for that first. We should have already tested for gld
15972 # by now (in libtool), but require it now just to be safe...
15973 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15974 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15975
15976
15977
15978 # The name set by libtool depends on the version of libtool. Shame on us
15979 # for depending on an impl detail, but c'est la vie. Older versions used
15980 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15981 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15982 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
15983 # set (hence we're using an older libtool), then set it.
15984 if test x${with_gnu_ld+set} != xset; then
15985 if test x${ac_cv_prog_gnu_ld+set} != xset; then
15986 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
15987 with_gnu_ld=no
15988 else
15989 with_gnu_ld=$ac_cv_prog_gnu_ld
15990 fi
15991 fi
15992
15993 # Start by getting the version number. I think the libtool test already
15994 # does some of this, but throws away the result.
15995 libgomp_ld_is_gold=no
15996 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15997 libgomp_ld_is_gold=yes
15998 fi
15999
8dc52806 16000 ldver=`$LD --version 2>/dev/null |
8b501d36 16001 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 16002
16003 libgomp_gnu_ld_version=`echo $ldver | \
16004 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16005
16006 # Set --gc-sections.
16007 if test "$with_gnu_ld" = "notbroken"; then
16008 # GNU ld it is! Joy and bunny rabbits!
16009
16010 # All these tests are for C++; save the language and the compiler flags.
16011 # Need to do this so that g++ won't try to link in libstdc++
16012 ac_test_CFLAGS="${CFLAGS+set}"
16013 ac_save_CFLAGS="$CFLAGS"
16014 CFLAGS='-x c++ -Wl,--gc-sections'
16015
16016 # Check for -Wl,--gc-sections
16017 # XXX This test is broken at the moment, as symbols required for linking
16018 # are now in libsupc++ (not built yet). In addition, this test has
16019 # cored on solaris in the past. In addition, --gc-sections doesn't
16020 # really work at the moment (keeps on discarding used sections, first
16021 # .eh_frame and now some of the glibc sections for iconv).
16022 # Bzzzzt. Thanks for playing, maybe next time.
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16024$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16025 if test "$cross_compiling" = yes; then :
16026 ac_sectionLDflags=yes
16027else
16028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16029/* end confdefs.h. */
16030
16031 int main(void)
16032 {
16033 try { throw 1; }
16034 catch (...) { };
16035 return 0;
16036 }
fd6481cf 16037
fd6481cf 16038_ACEOF
cd9a469c 16039if ac_fn_c_try_run "$LINENO"; then :
16040 ac_sectionLDflags=yes
16041else
16042 ac_sectionLDflags=no
16043fi
16044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16045 conftest.$ac_objext conftest.beam conftest.$ac_ext
16046fi
16047
16048 if test "$ac_test_CFLAGS" = set; then
16049 CFLAGS="$ac_save_CFLAGS"
16050 else
16051 # this is the suspicious part
16052 CFLAGS=''
16053 fi
16054 if test "$ac_sectionLDflags" = "yes"; then
16055 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16056 fi
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16058$as_echo "$ac_sectionLDflags" >&6; }
16059 fi
16060
16061 # Set linker optimization flags.
16062 if test x"$with_gnu_ld" = x"yes"; then
16063 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16064 fi
16065
16066
16067
16068
16069
16070
16071 # Check whether --enable-symvers was given.
16072if test "${enable_symvers+set}" = set; then :
16073 enableval=$enable_symvers;
16074 case "$enableval" in
de656189 16075 yes|no|gnu*|sun) ;;
cd9a469c 16076 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16077 esac
16078
16079else
16080 enable_symvers=yes
16081fi
16082
16083
16084
16085# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16086# don't know enough about $LD to do tricks...
16087
bbb514dc 16088
16089# Turn a 'yes' into a suitable default.
16090if test x$enable_symvers = xyes ; then
16091 # FIXME The following test is too strict, in theory.
16092 if test $enable_shared = no || test "x$LD" = x; then
16093 enable_symvers=no
71cbce26 16094 else
bbb514dc 16095 if test $with_gnu_ld = yes ; then
16096 enable_symvers=gnu
16097 else
16098 case ${target_os} in
16099 # Sun symbol versioning exists since Solaris 2.5.
16100 solaris2.[5-9]* | solaris2.1[0-9]*)
16101 enable_symvers=sun ;;
16102 *)
16103 enable_symvers=no ;;
16104 esac
16105 fi
71cbce26 16106 fi
16107fi
16108
16109# Check if 'sun' was requested on non-Solaris 2 platforms.
16110if test x$enable_symvers = xsun ; then
16111 case ${target_os} in
16112 solaris2*)
16113 # All fine.
16114 ;;
16115 *)
16116 # Unlikely to work.
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16118$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16120$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16122$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16123 enable_symvers=no
16124 ;;
16125 esac
cd9a469c 16126fi
16127
16128# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16129if test $enable_symvers != no; then
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16131$as_echo_n "checking for shared libgcc... " >&6; }
16132 ac_save_CFLAGS="$CFLAGS"
16133 CFLAGS=' -lgcc_s'
16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 16135/* end confdefs.h. */
16136
16137int
16138main ()
16139{
cd9a469c 16140return 0;
fd6481cf 16141 ;
16142 return 0;
16143}
16144_ACEOF
cd9a469c 16145if ac_fn_c_try_link "$LINENO"; then :
16146 libgomp_shared_libgcc=yes
16147else
16148 libgomp_shared_libgcc=no
16149fi
16150rm -f core conftest.err conftest.$ac_objext \
16151 conftest$ac_exeext conftest.$ac_ext
16152 CFLAGS="$ac_save_CFLAGS"
16153 if test $libgomp_shared_libgcc = no; then
16154 cat > conftest.c <<EOF
16155int main (void) { return 0; }
16156EOF
16157 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16158 -shared -shared-libgcc -o conftest.so \
16159 conftest.c -v 2>&1 >/dev/null \
16160 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16161 rm -f conftest.c conftest.so
16162 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16163 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 16165/* end confdefs.h. */
16166
16167int
16168main ()
16169{
cd9a469c 16170return 0;
fd6481cf 16171 ;
16172 return 0;
16173}
16174_ACEOF
cd9a469c 16175if ac_fn_c_try_link "$LINENO"; then :
16176 libgomp_shared_libgcc=yes
16177fi
16178rm -f core conftest.err conftest.$ac_objext \
16179 conftest$ac_exeext conftest.$ac_ext
16180 CFLAGS="$ac_save_CFLAGS"
16181 fi
16182 fi
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16184$as_echo "$libgomp_shared_libgcc" >&6; }
16185fi
16186
16187# For GNU ld, we need at least this version. The format is described in
16188# LIBGOMP_CHECK_LINKER_FEATURES above.
16189libgomp_min_gnu_ld_version=21400
16190# XXXXXXXXXXX libgomp_gnu_ld_version=21390
fd6481cf 16191
cd9a469c 16192# Check to see if unspecified "yes" value can win, given results above.
16193# Change "yes" into either "no" or a style name.
71cbce26 16194if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16195 if test $with_gnu_ld = yes; then
cd9a469c 16196 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16197 enable_symvers=gnu
16198 elif test $libgomp_ld_is_gold = yes ; then
16199 enable_symvers=gnu
16200 else
16201 # The right tools, the right setup, but too old. Fallbacks?
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16203$as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16205$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16207$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16209$as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16210 if test $libgomp_gnu_ld_version -ge 21200 ; then
16211 # Globbing fix is present, proper block support is not.
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16213$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16214 enable_symvers=no
16215 else
16216 # 2.11 or older.
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16218$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16219 enable_symvers=no
16220 fi
16221 fi
71cbce26 16222 elif test $enable_symvers = sun; then
16223 : All interesting versions of Sun ld support sun style symbol versioning.
cd9a469c 16224 else
16225 # just fail for now
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16227$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16229$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16231$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16233$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16234 enable_symvers=no
16235 fi
fd6481cf 16236fi
cd9a469c 16237
16238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16239$as_echo_n "checking whether the target supports .symver directive... " >&6; }
16240if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
16241 $as_echo_n "(cached) " >&6
fd6481cf 16242else
fd6481cf 16243
cd9a469c 16244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 16245/* end confdefs.h. */
cd9a469c 16246void foo (void); __asm (".symver foo, bar@SYMVER");
fd6481cf 16247int
16248main ()
16249{
fd6481cf 16250
16251 ;
16252 return 0;
16253}
16254_ACEOF
cd9a469c 16255if ac_fn_c_try_compile "$LINENO"; then :
16256 libgomp_cv_have_as_symver_directive=yes
fd6481cf 16257else
cd9a469c 16258 libgomp_cv_have_as_symver_directive=no
16259fi
16260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261fi
16262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16263$as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16264if test $libgomp_cv_have_as_symver_directive = yes; then
16265
16266$as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
fd6481cf 16267
fd6481cf 16268fi
cd9a469c 16269
16270 if test $enable_symvers != no; then
16271 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16272 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
fd6481cf 16273else
cd9a469c 16274 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16275 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16276fi
fd6481cf 16277
71cbce26 16278 if test $enable_symvers = gnu; then
16279 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16280 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16281else
16282 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16283 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16284fi
16285
16286 if test $enable_symvers = sun; then
16287 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16288 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16289else
16290 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16291 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16292fi
16293
cd9a469c 16294{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16295$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
fd6481cf 16296
71cbce26 16297if test $enable_symvers != no ; then
16298 case ${target_os} in
16299 # The Solaris 2 runtime linker doesn't support the GNU extension of
16300 # binding the same symbol to different versions
16301 solaris2*)
fb6822c1 16302 ;;
71cbce26 16303 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16304 *)
16305
16306$as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16307
fb6822c1 16308 ;;
71cbce26 16309 esac
71cbce26 16310fi
16311
16312
cd9a469c 16313if test $enable_symvers = gnu; then
16314
16315$as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
fd6481cf 16316
16317fi
cd9a469c 16318
16319# Get target configury.
16320. ${srcdir}/configure.tgt
16321CFLAGS="$save_CFLAGS $XCFLAGS"
16322
16323# Check for __sync_val_compare_and_swap, but only after the target has
16324# had a chance to set XCFLAGS.
16325
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16327$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16328if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16329 $as_echo_n "(cached) " >&6
16330else
16331
16332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fd6481cf 16333/* end confdefs.h. */
16334
16335int
16336main ()
16337{
14a88549 16338int foo; __sync_val_compare_and_swap(&foo, 0, 1);
fd6481cf 16339 ;
16340 return 0;
16341}
16342_ACEOF
cd9a469c 16343if ac_fn_c_try_link "$LINENO"; then :
16344 libgomp_cv_have_sync_builtins=yes
16345else
16346 libgomp_cv_have_sync_builtins=no
16347fi
16348rm -f core conftest.err conftest.$ac_objext \
16349 conftest$ac_exeext conftest.$ac_ext
16350fi
16351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16352$as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16353 if test $libgomp_cv_have_sync_builtins = yes; then
fd6481cf 16354
cd9a469c 16355$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16356
16357 fi
16358
16359XCFLAGS="$XCFLAGS$XPCFLAGS"
16360
16361
16362
16363
16364
16365# Cleanup and exit.
16366CFLAGS="$save_CFLAGS"
16367cat >confcache <<\_ACEOF
16368# This file is a shell script that caches the results of configure
16369# tests run on this system so they can be shared between configure
16370# scripts and configure runs, see configure's option --config-cache.
16371# It is not useful on other systems. If it contains results you don't
16372# want to keep, you may remove or edit it.
16373#
16374# config.status only pays attention to the cache file if you give it
16375# the --recheck option to rerun configure.
16376#
16377# `ac_cv_env_foo' variables (set or unset) will be overridden when
16378# loading this file, other *unset* `ac_cv_foo' will be assigned the
16379# following values.
fd6481cf 16380
fd6481cf 16381_ACEOF
cd9a469c 16382
16383# The following way of writing the cache mishandles newlines in values,
16384# but we know of no workaround that is simple, portable, and efficient.
16385# So, we kill variables containing newlines.
16386# Ultrix sh set writes to stderr and can't be redirected directly,
16387# and sets the high bit in the cache file unless we assign to the vars.
16388(
16389 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16390 eval ac_val=\$$ac_var
16391 case $ac_val in #(
16392 *${as_nl}*)
16393 case $ac_var in #(
16394 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16395$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16396 esac
16397 case $ac_var in #(
16398 _ | IFS | as_nl) ;; #(
16399 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16400 *) { eval $ac_var=; unset $ac_var;} ;;
16401 esac ;;
16402 esac
16403 done
16404
16405 (set) 2>&1 |
16406 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16407 *${as_nl}ac_space=\ *)
16408 # `set' does not quote correctly, so add quotes: double-quote
16409 # substitution turns \\\\ into \\, and sed turns \\ into \.
16410 sed -n \
16411 "s/'/'\\\\''/g;
16412 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16413 ;; #(
16414 *)
16415 # `set' quotes correctly as required by POSIX, so do not add quotes.
16416 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16417 ;;
16418 esac |
16419 sort
16420) |
16421 sed '
16422 /^ac_cv_env_/b end
16423 t clear
16424 :clear
16425 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16426 t end
16427 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16428 :end' >>confcache
16429if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16430 if test -w "$cache_file"; then
16431 test "x$cache_file" != "x/dev/null" &&
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16433$as_echo "$as_me: updating cache $cache_file" >&6;}
16434 cat confcache >$cache_file
16435 else
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16437$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16438 fi
16439fi
16440rm -f confcache
16441
16442if test ${multilib} = yes; then
16443 multilib_arg="--enable-multilib"
fd6481cf 16444else
cd9a469c 16445 multilib_arg=
16446fi
16447
16448# Set up the set of libraries that we need to link against for libgomp.
4d07f291 16449# Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
cd9a469c 16450# which will force linkage against -lpthread (or equivalent for the system).
16451# That's not 100% ideal, but about the best we can do easily.
16452if test $enable_shared = yes; then
16453 link_gomp="-lgomp %{static: $LIBS}"
16454else
16455 link_gomp="-lgomp $LIBS"
16456fi
16457
16458
16459 if test "$ac_cv_fc_compiler_gnu" = yes; then
16460 USE_FORTRAN_TRUE=
16461 USE_FORTRAN_FALSE='#'
16462else
16463 USE_FORTRAN_TRUE='#'
16464 USE_FORTRAN_FALSE=
16465fi
16466
16467
16468# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16469# and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16470# the underscore here and update the PREREQ. If it doesn't, then we'll
16471# need to copy this macro to our acinclude.m4.
16472save_CFLAGS="$CFLAGS"
16473for i in $config_path; do
16474 if test -f $srcdir/config/$i/omp-lock.h; then
16475 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16476 break
16477 fi
16478done
fd6481cf 16479
cd9a469c 16480if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
fd6481cf 16481
cd9a469c 16482else
16483 as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16484fi
fd6481cf 16485
fd6481cf 16486
cd9a469c 16487if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
fd6481cf 16488
cd9a469c 16489fi
fd6481cf 16490
fd6481cf 16491
cd9a469c 16492if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
fd6481cf 16493
fd6481cf 16494fi
fd6481cf 16495
fd6481cf 16496
cd9a469c 16497if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
fd6481cf 16498
fd6481cf 16499fi
fd6481cf 16500
fd6481cf 16501
cd9a469c 16502if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
fd6481cf 16503
fd6481cf 16504else
cd9a469c 16505 as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16506fi
16507
16508
16509if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
fd6481cf 16510
16511fi
cd9a469c 16512
16513
16514if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16515
fd6481cf 16516fi
cd9a469c 16517
16518
16519if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16520
fd6481cf 16521fi
cd9a469c 16522
16523
fd6481cf 16524
16525# If the lock fits in an integer, then arrange for Fortran to use that
16526# integer. If it doesn't, then arrange for Fortran to use a pointer.
16527# Except that we don't have a way at present to multi-lib the installed
16528# Fortran modules, so we assume 8 bytes for pointers, regardless of the
16529# actual target.
16530OMP_LOCK_KIND=$OMP_LOCK_SIZE
16531OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16532if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16533 OMP_LOCK_KIND=8
16534fi
16535if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16536 OMP_NEST_LOCK_KIND=8
16537fi
16538OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16539OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16540if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16541 OMP_LOCK_25_KIND=8
16542fi
16543if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16544 OMP_NEST_LOCK_25_KIND=8
16545fi
16546
16547
16548
16549
16550
16551
107c3bbf 16552
16553
16554
16555
16556
16557
16558
16559CFLAGS="$save_CFLAGS"
16560
cd9a469c 16561ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
107c3bbf 16562
cd9a469c 16563ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
1e8e9920 16564
ca4c3545 16565ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16566
1e8e9920 16567cat >confcache <<\_ACEOF
16568# This file is a shell script that caches the results of configure
16569# tests run on this system so they can be shared between configure
16570# scripts and configure runs, see configure's option --config-cache.
16571# It is not useful on other systems. If it contains results you don't
16572# want to keep, you may remove or edit it.
16573#
16574# config.status only pays attention to the cache file if you give it
16575# the --recheck option to rerun configure.
16576#
16577# `ac_cv_env_foo' variables (set or unset) will be overridden when
16578# loading this file, other *unset* `ac_cv_foo' will be assigned the
16579# following values.
16580
16581_ACEOF
16582
16583# The following way of writing the cache mishandles newlines in values,
16584# but we know of no workaround that is simple, portable, and efficient.
cd9a469c 16585# So, we kill variables containing newlines.
1e8e9920 16586# Ultrix sh set writes to stderr and can't be redirected directly,
16587# and sets the high bit in the cache file unless we assign to the vars.
cd9a469c 16588(
16589 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16590 eval ac_val=\$$ac_var
16591 case $ac_val in #(
16592 *${as_nl}*)
16593 case $ac_var in #(
16594 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16595$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16596 esac
16597 case $ac_var in #(
16598 _ | IFS | as_nl) ;; #(
16599 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16600 *) { eval $ac_var=; unset $ac_var;} ;;
16601 esac ;;
16602 esac
16603 done
16604
1e8e9920 16605 (set) 2>&1 |
cd9a469c 16606 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16607 *${as_nl}ac_space=\ *)
16608 # `set' does not quote correctly, so add quotes: double-quote
16609 # substitution turns \\\\ into \\, and sed turns \\ into \.
1e8e9920 16610 sed -n \
16611 "s/'/'\\\\''/g;
16612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 16613 ;; #(
1e8e9920 16614 *)
16615 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 16616 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1e8e9920 16617 ;;
cd9a469c 16618 esac |
16619 sort
16620) |
1e8e9920 16621 sed '
cd9a469c 16622 /^ac_cv_env_/b end
1e8e9920 16623 t clear
cd9a469c 16624 :clear
1e8e9920 16625 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16626 t end
cd9a469c 16627 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16628 :end' >>confcache
16629if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16630 if test -w "$cache_file"; then
16631 test "x$cache_file" != "x/dev/null" &&
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16633$as_echo "$as_me: updating cache $cache_file" >&6;}
1e8e9920 16634 cat confcache >$cache_file
16635 else
cd9a469c 16636 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16637$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1e8e9920 16638 fi
16639fi
16640rm -f confcache
16641
16642test "x$prefix" = xNONE && prefix=$ac_default_prefix
16643# Let make expand exec_prefix.
16644test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16645
1e8e9920 16646DEFS=-DHAVE_CONFIG_H
16647
16648ac_libobjs=
16649ac_ltlibobjs=
16650for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16651 # 1. Remove the extension, and $U if already installed.
cd9a469c 16652 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16653 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16654 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16655 # will be set to the directory where LIBOBJS objects are built.
16656 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16657 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1e8e9920 16658done
16659LIBOBJS=$ac_libobjs
16660
16661LTLIBOBJS=$ac_ltlibobjs
16662
16663
aeda7a78 16664if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
cd9a469c 16665 as_fn_error "conditional \"GENINSRC\" was never defined.
16666Usually this means the macro was only invoked conditionally." "$LINENO" 5
16667fi
16668 if test -n "$EXEEXT"; then
16669 am__EXEEXT_TRUE=
16670 am__EXEEXT_FALSE='#'
16671else
16672 am__EXEEXT_TRUE='#'
16673 am__EXEEXT_FALSE=
aeda7a78 16674fi
cd9a469c 16675
1e8e9920 16676if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cd9a469c 16677 as_fn_error "conditional \"AMDEP\" was never defined.
16678Usually this means the macro was only invoked conditionally." "$LINENO" 5
1e8e9920 16679fi
16680if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cd9a469c 16681 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16682Usually this means the macro was only invoked conditionally." "$LINENO" 5
1e8e9920 16683fi
439d698f 16684if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
cd9a469c 16685 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16686Usually this means the macro was only invoked conditionally." "$LINENO" 5
439d698f 16687fi
a263d1ab 16688if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cd9a469c 16689 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16690Usually this means the macro was only invoked conditionally." "$LINENO" 5
a263d1ab 16691fi
ca4c3545 16692if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
16693 as_fn_error "conditional \"PLUGIN_NVPTX\" was never defined.
16694Usually this means the macro was only invoked conditionally." "$LINENO" 5
16695fi
1e8e9920 16696if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
cd9a469c 16697 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16698Usually this means the macro was only invoked conditionally." "$LINENO" 5
1e8e9920 16699fi
71cbce26 16700if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16701 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16702Usually this means the macro was only invoked conditionally." "$LINENO" 5
16703fi
16704if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16705 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16706Usually this means the macro was only invoked conditionally." "$LINENO" 5
16707fi
1e8e9920 16708if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
cd9a469c 16709 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16710Usually this means the macro was only invoked conditionally." "$LINENO" 5
1e8e9920 16711fi
16712
16713: ${CONFIG_STATUS=./config.status}
cd9a469c 16714ac_write_fail=0
1e8e9920 16715ac_clean_files_save=$ac_clean_files
16716ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cd9a469c 16717{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16718$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16719as_write_fail=0
16720cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1e8e9920 16721#! $SHELL
16722# Generated by $as_me.
16723# Run this file to recreate the current configuration.
16724# Compiler output produced by configure, useful for debugging
16725# configure, is in config.log if it exists.
16726
16727debug=false
16728ac_cs_recheck=false
16729ac_cs_silent=false
1e8e9920 16730
cd9a469c 16731SHELL=\${CONFIG_SHELL-$SHELL}
16732export SHELL
16733_ASEOF
16734cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16735## -------------------- ##
16736## M4sh Initialization. ##
16737## -------------------- ##
16738
16739# Be more Bourne compatible
16740DUALCASE=1; export DUALCASE # for MKS sh
16741if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1e8e9920 16742 emulate sh
16743 NULLCMD=:
cd9a469c 16744 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1e8e9920 16745 # is contrary to our usage. Disable this feature.
16746 alias -g '${1+"$@"}'='"$@"'
cd9a469c 16747 setopt NO_GLOB_SUBST
16748else
16749 case `(set -o) 2>/dev/null` in #(
16750 *posix*) :
16751 set -o posix ;; #(
16752 *) :
16753 ;;
16754esac
1e8e9920 16755fi
1e8e9920 16756
cd9a469c 16757
16758as_nl='
16759'
16760export as_nl
16761# Printing a long string crashes Solaris 7 /usr/bin/printf.
16762as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16763as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16764as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16765# Prefer a ksh shell builtin over an external printf program on Solaris,
16766# but without wasting forks for bash or zsh.
16767if test -z "$BASH_VERSION$ZSH_VERSION" \
16768 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16769 as_echo='print -r --'
16770 as_echo_n='print -rn --'
16771elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16772 as_echo='printf %s\n'
16773 as_echo_n='printf %s'
16774else
16775 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16776 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16777 as_echo_n='/usr/ucb/echo -n'
16778 else
16779 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16780 as_echo_n_body='eval
16781 arg=$1;
16782 case $arg in #(
16783 *"$as_nl"*)
16784 expr "X$arg" : "X\\(.*\\)$as_nl";
16785 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16786 esac;
16787 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16788 '
16789 export as_echo_n_body
16790 as_echo_n='sh -c $as_echo_n_body as_echo'
16791 fi
16792 export as_echo_body
16793 as_echo='sh -c $as_echo_body as_echo'
16794fi
16795
16796# The user is always right.
16797if test "${PATH_SEPARATOR+set}" != set; then
16798 PATH_SEPARATOR=:
16799 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16800 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16801 PATH_SEPARATOR=';'
16802 }
1e8e9920 16803fi
16804
16805
cd9a469c 16806# IFS
16807# We need space, tab and new line, in precisely that order. Quoting is
16808# there to prevent editors from complaining about space-tab.
16809# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16810# splitting by setting IFS to empty value.)
16811IFS=" "" $as_nl"
16812
16813# Find who we are. Look in the path if we contain no directory separator.
16814case $0 in #((
16815 *[\\/]* ) as_myself=$0 ;;
16816 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16817for as_dir in $PATH
16818do
16819 IFS=$as_save_IFS
16820 test -z "$as_dir" && as_dir=.
16821 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16822 done
16823IFS=$as_save_IFS
16824
16825 ;;
16826esac
16827# We did not find ourselves, most probably we were run as `sh COMMAND'
16828# in which case we are not to be found in the path.
16829if test "x$as_myself" = x; then
16830 as_myself=$0
16831fi
16832if test ! -f "$as_myself"; then
16833 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16834 exit 1
16835fi
16836
16837# Unset variables that we do not need and which cause bugs (e.g. in
16838# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16839# suppresses any "Segmentation fault" message there. '((' could
16840# trigger a bug in pdksh 5.2.14.
16841for as_var in BASH_ENV ENV MAIL MAILPATH
16842do eval test x\${$as_var+set} = xset \
16843 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16844done
1e8e9920 16845PS1='$ '
16846PS2='> '
16847PS4='+ '
16848
16849# NLS nuisances.
cd9a469c 16850LC_ALL=C
16851export LC_ALL
16852LANGUAGE=C
16853export LANGUAGE
16854
16855# CDPATH.
16856(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16857
16858
16859# as_fn_error ERROR [LINENO LOG_FD]
16860# ---------------------------------
16861# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16862# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16863# script with status $?, using 1 if that was 0.
16864as_fn_error ()
16865{
16866 as_status=$?; test $as_status -eq 0 && as_status=1
16867 if test "$3"; then
16868 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16869 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1e8e9920 16870 fi
cd9a469c 16871 $as_echo "$as_me: error: $1" >&2
16872 as_fn_exit $as_status
16873} # as_fn_error
16874
16875
16876# as_fn_set_status STATUS
16877# -----------------------
16878# Set $? to STATUS, without forking.
16879as_fn_set_status ()
16880{
16881 return $1
16882} # as_fn_set_status
16883
16884# as_fn_exit STATUS
16885# -----------------
16886# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16887as_fn_exit ()
16888{
16889 set +e
16890 as_fn_set_status $1
16891 exit $1
16892} # as_fn_exit
16893
16894# as_fn_unset VAR
16895# ---------------
16896# Portably unset VAR.
16897as_fn_unset ()
16898{
16899 { eval $1=; unset $1;}
16900}
16901as_unset=as_fn_unset
16902# as_fn_append VAR VALUE
16903# ----------------------
16904# Append the text in VALUE to the end of the definition contained in VAR. Take
16905# advantage of any shell optimizations that allow amortized linear growth over
16906# repeated appends, instead of the typical quadratic growth present in naive
16907# implementations.
16908if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16909 eval 'as_fn_append ()
16910 {
16911 eval $1+=\$2
16912 }'
16913else
16914 as_fn_append ()
16915 {
16916 eval $1=\$$1\$2
16917 }
16918fi # as_fn_append
16919
16920# as_fn_arith ARG...
16921# ------------------
16922# Perform arithmetic evaluation on the ARGs, and store the result in the
16923# global $as_val. Take advantage of shells that can avoid forks. The arguments
16924# must be portable across $(()) and expr.
16925if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16926 eval 'as_fn_arith ()
16927 {
16928 as_val=$(( $* ))
16929 }'
16930else
16931 as_fn_arith ()
16932 {
16933 as_val=`expr "$@" || test $? -eq 1`
16934 }
16935fi # as_fn_arith
16936
1e8e9920 16937
cd9a469c 16938if expr a : '\(a\)' >/dev/null 2>&1 &&
16939 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1e8e9920 16940 as_expr=expr
16941else
16942 as_expr=false
16943fi
16944
cd9a469c 16945if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1e8e9920 16946 as_basename=basename
16947else
16948 as_basename=false
16949fi
16950
cd9a469c 16951if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16952 as_dirname=dirname
16953else
16954 as_dirname=false
16955fi
1e8e9920 16956
cd9a469c 16957as_me=`$as_basename -- "$0" ||
1e8e9920 16958$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16959 X"$0" : 'X\(//\)$' \| \
cd9a469c 16960 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16961$as_echo X/"$0" |
16962 sed '/^.*\/\([^/][^/]*\)\/*$/{
16963 s//\1/
16964 q
16965 }
16966 /^X\/\(\/\/\)$/{
16967 s//\1/
16968 q
16969 }
16970 /^X\/\(\/\).*/{
16971 s//\1/
16972 q
16973 }
16974 s/.*/./; q'`
1e8e9920 16975
1e8e9920 16976# Avoid depending upon Character Ranges.
16977as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16978as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16979as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16980as_cr_digits='0123456789'
16981as_cr_alnum=$as_cr_Letters$as_cr_digits
16982
cd9a469c 16983ECHO_C= ECHO_N= ECHO_T=
16984case `echo -n x` in #(((((
16985-n*)
16986 case `echo 'xy\c'` in
16987 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16988 xy) ECHO_C='\c';;
16989 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16990 ECHO_T=' ';;
16991 esac;;
16992*)
16993 ECHO_N='-n';;
1e8e9920 16994esac
16995
cd9a469c 16996rm -f conf$$ conf$$.exe conf$$.file
16997if test -d conf$$.dir; then
16998 rm -f conf$$.dir/conf$$.file
1e8e9920 16999else
cd9a469c 17000 rm -f conf$$.dir
17001 mkdir conf$$.dir 2>/dev/null
1e8e9920 17002fi
cd9a469c 17003if (echo >conf$$.file) 2>/dev/null; then
17004 if ln -s conf$$.file conf$$ 2>/dev/null; then
1e8e9920 17005 as_ln_s='ln -s'
cd9a469c 17006 # ... but there are two gotchas:
17007 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17008 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17009 # In both cases, we have to default to `cp -p'.
17010 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17011 as_ln_s='cp -p'
17012 elif ln conf$$.file conf$$ 2>/dev/null; then
17013 as_ln_s=ln
17014 else
17015 as_ln_s='cp -p'
1e8e9920 17016 fi
1e8e9920 17017else
17018 as_ln_s='cp -p'
17019fi
cd9a469c 17020rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17021rmdir conf$$.dir 2>/dev/null
17022
17023
17024# as_fn_mkdir_p
17025# -------------
17026# Create "$as_dir" as a directory, including parents if necessary.
17027as_fn_mkdir_p ()
17028{
17029
17030 case $as_dir in #(
17031 -*) as_dir=./$as_dir;;
17032 esac
17033 test -d "$as_dir" || eval $as_mkdir_p || {
17034 as_dirs=
17035 while :; do
17036 case $as_dir in #(
17037 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17038 *) as_qdir=$as_dir;;
17039 esac
17040 as_dirs="'$as_qdir' $as_dirs"
17041 as_dir=`$as_dirname -- "$as_dir" ||
17042$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17043 X"$as_dir" : 'X\(//\)[^/]' \| \
17044 X"$as_dir" : 'X\(//\)$' \| \
17045 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17046$as_echo X"$as_dir" |
17047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17048 s//\1/
17049 q
17050 }
17051 /^X\(\/\/\)[^/].*/{
17052 s//\1/
17053 q
17054 }
17055 /^X\(\/\/\)$/{
17056 s//\1/
17057 q
17058 }
17059 /^X\(\/\).*/{
17060 s//\1/
17061 q
17062 }
17063 s/.*/./; q'`
17064 test -d "$as_dir" && break
17065 done
17066 test -z "$as_dirs" || eval "mkdir $as_dirs"
17067 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17068
1e8e9920 17069
cd9a469c 17070} # as_fn_mkdir_p
1e8e9920 17071if mkdir -p . 2>/dev/null; then
cd9a469c 17072 as_mkdir_p='mkdir -p "$as_dir"'
1e8e9920 17073else
17074 test -d ./-p && rmdir ./-p
17075 as_mkdir_p=false
17076fi
17077
cd9a469c 17078if test -x / >/dev/null 2>&1; then
17079 as_test_x='test -x'
17080else
17081 if ls -dL / >/dev/null 2>&1; then
17082 as_ls_L_option=L
17083 else
17084 as_ls_L_option=
17085 fi
17086 as_test_x='
17087 eval sh -c '\''
17088 if test -d "$1"; then
17089 test -d "$1/.";
17090 else
17091 case $1 in #(
17092 -*)set "./$1";;
17093 esac;
17094 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17095 ???[sx]*):;;*)false;;esac;fi
17096 '\'' sh
17097 '
17098fi
17099as_executable_p=$as_test_x
1e8e9920 17100
17101# Sed expression to map a string onto a valid CPP name.
17102as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17103
cd9a469c 17104# Sed expression to map a string onto a valid variable name.
17105as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1e8e9920 17106
1e8e9920 17107
17108exec 6>&1
cd9a469c 17109## ----------------------------------- ##
17110## Main body of $CONFIG_STATUS script. ##
17111## ----------------------------------- ##
17112_ASEOF
17113test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17114
17115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17116# Save the log message, to keep $0 and so on meaningful, and to
1e8e9920 17117# report actual input values of CONFIG_FILES etc. instead of their
cd9a469c 17118# values after options handling.
17119ac_log="
c35c9a62 17120This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
cd9a469c 17121generated by GNU Autoconf 2.64. Invocation command line was
1e8e9920 17122
17123 CONFIG_FILES = $CONFIG_FILES
17124 CONFIG_HEADERS = $CONFIG_HEADERS
17125 CONFIG_LINKS = $CONFIG_LINKS
17126 CONFIG_COMMANDS = $CONFIG_COMMANDS
17127 $ $0 $@
17128
cd9a469c 17129on `(hostname || uname -n) 2>/dev/null | sed 1q`
17130"
17131
1e8e9920 17132_ACEOF
17133
cd9a469c 17134case $ac_config_files in *"
17135"*) set x $ac_config_files; shift; ac_config_files=$*;;
17136esac
1e8e9920 17137
cd9a469c 17138case $ac_config_headers in *"
17139"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17140esac
1e8e9920 17141
1e8e9920 17142
cd9a469c 17143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17144# Files that config.status was made for.
17145config_files="$ac_config_files"
17146config_headers="$ac_config_headers"
17147config_commands="$ac_config_commands"
1e8e9920 17148
cd9a469c 17149_ACEOF
1e8e9920 17150
cd9a469c 17151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1e8e9920 17152ac_cs_usage="\
cd9a469c 17153\`$as_me' instantiates files and other configuration actions
17154from templates according to the current configuration. Unless the files
17155and actions are specified as TAGs, all are instantiated by default.
1e8e9920 17156
cd9a469c 17157Usage: $0 [OPTION]... [TAG]...
1e8e9920 17158
17159 -h, --help print this help, then exit
cd9a469c 17160 -V, --version print version number and configuration settings, then exit
17161 -q, --quiet, --silent
17162 do not print progress messages
1e8e9920 17163 -d, --debug don't remove temporary files
17164 --recheck update $as_me by reconfiguring in the same conditions
cd9a469c 17165 --file=FILE[:TEMPLATE]
17166 instantiate the configuration file FILE
17167 --header=FILE[:TEMPLATE]
17168 instantiate the configuration header FILE
1e8e9920 17169
17170Configuration files:
17171$config_files
17172
17173Configuration headers:
17174$config_headers
17175
17176Configuration commands:
17177$config_commands
17178
cd9a469c 17179Report bugs to the package provider.
c35c9a62 17180GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
cd9a469c 17181General help using GNU software: <http://www.gnu.org/gethelp/>."
1e8e9920 17182
cd9a469c 17183_ACEOF
17184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1e8e9920 17185ac_cs_version="\\
c35c9a62 17186GNU Offloading and Multi Processing Runtime Library config.status 1.0
cd9a469c 17187configured by $0, generated by GNU Autoconf 2.64,
17188 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1e8e9920 17189
cd9a469c 17190Copyright (C) 2009 Free Software Foundation, Inc.
1e8e9920 17191This config.status script is free software; the Free Software Foundation
17192gives unlimited permission to copy, distribute and modify it."
cd9a469c 17193
17194ac_pwd='$ac_pwd'
17195srcdir='$srcdir'
17196INSTALL='$INSTALL'
17197MKDIR_P='$MKDIR_P'
17198AWK='$AWK'
17199test -n "\$AWK" || AWK=awk
1e8e9920 17200_ACEOF
17201
cd9a469c 17202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17203# The default lists apply if the user does not specify any file.
1e8e9920 17204ac_need_defaults=:
17205while test $# != 0
17206do
17207 case $1 in
17208 --*=*)
cd9a469c 17209 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17210 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1e8e9920 17211 ac_shift=:
17212 ;;
cd9a469c 17213 *)
1e8e9920 17214 ac_option=$1
17215 ac_optarg=$2
17216 ac_shift=shift
17217 ;;
1e8e9920 17218 esac
17219
17220 case $ac_option in
17221 # Handling of the options.
1e8e9920 17222 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17223 ac_cs_recheck=: ;;
cd9a469c 17224 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17225 $as_echo "$ac_cs_version"; exit ;;
17226 --debug | --debu | --deb | --de | --d | -d )
1e8e9920 17227 debug=: ;;
17228 --file | --fil | --fi | --f )
17229 $ac_shift
cd9a469c 17230 case $ac_optarg in
17231 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17232 esac
17233 as_fn_append CONFIG_FILES " '$ac_optarg'"
1e8e9920 17234 ac_need_defaults=false;;
17235 --header | --heade | --head | --hea )
17236 $ac_shift
cd9a469c 17237 case $ac_optarg in
17238 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17239 esac
17240 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1e8e9920 17241 ac_need_defaults=false;;
cd9a469c 17242 --he | --h)
17243 # Conflict between --help and --header
17244 as_fn_error "ambiguous option: \`$1'
17245Try \`$0 --help' for more information.";;
17246 --help | --hel | -h )
17247 $as_echo "$ac_cs_usage"; exit ;;
1e8e9920 17248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17249 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17250 ac_cs_silent=: ;;
17251
17252 # This is an error.
cd9a469c 17253 -*) as_fn_error "unrecognized option: \`$1'
17254Try \`$0 --help' for more information." ;;
1e8e9920 17255
cd9a469c 17256 *) as_fn_append ac_config_targets " $1"
17257 ac_need_defaults=false ;;
1e8e9920 17258
17259 esac
17260 shift
17261done
17262
17263ac_configure_extra_args=
17264
17265if $ac_cs_silent; then
17266 exec 6>/dev/null
17267 ac_configure_extra_args="$ac_configure_extra_args --silent"
17268fi
17269
17270_ACEOF
cd9a469c 17271cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1e8e9920 17272if \$ac_cs_recheck; then
cd9a469c 17273 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17274 shift
17275 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17276 CONFIG_SHELL='$SHELL'
17277 export CONFIG_SHELL
17278 exec "\$@"
1e8e9920 17279fi
17280
17281_ACEOF
cd9a469c 17282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17283exec 5>>config.log
17284{
17285 echo
17286 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17287## Running $as_me. ##
17288_ASBOX
17289 $as_echo "$ac_log"
17290} >&5
1e8e9920 17291
cd9a469c 17292_ACEOF
17293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1e8e9920 17294#
cd9a469c 17295# INIT-COMMANDS
1e8e9920 17296#
17297
1e8e9920 17298srcdir="$srcdir"
17299host="$host"
17300target="$target"
17301with_multisubdir="$with_multisubdir"
17302with_multisrctop="$with_multisrctop"
17303with_target_subdir="$with_target_subdir"
17304ac_configure_args="${multilib_arg} ${ac_configure_args}"
17305multi_basedir="$multi_basedir"
17306CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17307CC="$CC"
0a475b3b 17308CXX="$CXX"
17309GFORTRAN="$GFORTRAN"
17310GCJ="$GCJ"
1e8e9920 17311AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17312
542f9784 17313
17314# The HP-UX ksh and POSIX shell print the target directory to stdout
17315# if CDPATH is set.
17316(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17317
17318sed_quote_subst='$sed_quote_subst'
17319double_quote_subst='$double_quote_subst'
17320delay_variable_subst='$delay_variable_subst'
e6408286 17321macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17322macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17323enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17324enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17325pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17326enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17327SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17328ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17329host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17330host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17331host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17332build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17333build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17334build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17335SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17336Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17337GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17338EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17339FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17340LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17341NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17342LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17343max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17344ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17345exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17346lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17347lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17348lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17349reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17350reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17351OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17352deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17353file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17354AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17355AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17356STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17357RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17358old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17359old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17360old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17361lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17362CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17363CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17364compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17365GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17366lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17367lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17368lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17369lt_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"`'
17370objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17371MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17372lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17373lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17374lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17375lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17376lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17377need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17378DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17379NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17380LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17381OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17382OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17383libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17384shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17385extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17386archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17387enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17388export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17389whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17390compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17391old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17392old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17393archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17394archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17395module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17396module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17397with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17398allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17399no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17400hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17401hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17402hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17403hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17404hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17405hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17406hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17407hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17408inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17409link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17410fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17411always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17412export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17413exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17414include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17415prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17416file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17417variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17418need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17419need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17420version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17421runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17422shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17423shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17424libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17425library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17426soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17427install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17428postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17429postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17430finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17431finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17432hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17433sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17434sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17435hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17436enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17437enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17438enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17439old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17440striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17441compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17442predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17443postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17444predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17445postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17446compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17447LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17448reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17449reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17450old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17451compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17452GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17453lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17454lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17455lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17456lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17457lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17458archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17459enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17460export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17461whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17462compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17463old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17464old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17465archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17466archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17467module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17468module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17469with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17470allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17471no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17472hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17473hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17474hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17475hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17476hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17477hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17478hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17479hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17480inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17481link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17482fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17483always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17484export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17485exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17486include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17487prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17488file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17489hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17490compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17491predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17492postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17493predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17494postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17495compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
542f9784 17496
17497LTCC='$LTCC'
17498LTCFLAGS='$LTCFLAGS'
17499compiler='$compiler_DEFAULT'
17500
e6408286 17501# A function that is used when there is no print builtin or printf.
17502func_fallback_echo ()
17503{
17504 eval 'cat <<_LTECHO_EOF
17505\$1
17506_LTECHO_EOF'
17507}
17508
542f9784 17509# Quote evaled strings.
e6408286 17510for var in SHELL \
17511ECHO \
17512SED \
542f9784 17513GREP \
17514EGREP \
17515FGREP \
17516LD \
17517NM \
17518LN_S \
17519lt_SP2NL \
17520lt_NL2SP \
17521reload_flag \
6d873a38 17522OBJDUMP \
542f9784 17523deplibs_check_method \
17524file_magic_cmd \
17525AR \
17526AR_FLAGS \
17527STRIP \
17528RANLIB \
17529CC \
17530CFLAGS \
17531compiler \
17532lt_cv_sys_global_symbol_pipe \
17533lt_cv_sys_global_symbol_to_cdecl \
17534lt_cv_sys_global_symbol_to_c_name_address \
6d873a38 17535lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
542f9784 17536lt_prog_compiler_no_builtin_flag \
17537lt_prog_compiler_wl \
17538lt_prog_compiler_pic \
17539lt_prog_compiler_static \
17540lt_cv_prog_compiler_c_o \
17541need_locks \
6d873a38 17542DSYMUTIL \
17543NMEDIT \
17544LIPO \
17545OTOOL \
17546OTOOL64 \
542f9784 17547shrext_cmds \
17548export_dynamic_flag_spec \
17549whole_archive_flag_spec \
17550compiler_needs_object \
17551with_gnu_ld \
17552allow_undefined_flag \
17553no_undefined_flag \
17554hardcode_libdir_flag_spec \
17555hardcode_libdir_flag_spec_ld \
17556hardcode_libdir_separator \
17557fix_srcfile_path \
17558exclude_expsyms \
17559include_expsyms \
17560file_list_spec \
17561variables_saved_for_relink \
17562libname_spec \
17563library_names_spec \
17564soname_spec \
e6408286 17565install_override_mode \
542f9784 17566finish_eval \
17567old_striplib \
17568striplib \
6d873a38 17569compiler_lib_search_dirs \
542f9784 17570predep_objects \
17571postdep_objects \
17572predeps \
17573postdeps \
17574compiler_lib_search_path \
17575LD_FC \
e6408286 17576reload_flag_FC \
542f9784 17577compiler_FC \
17578lt_prog_compiler_no_builtin_flag_FC \
17579lt_prog_compiler_wl_FC \
17580lt_prog_compiler_pic_FC \
17581lt_prog_compiler_static_FC \
17582lt_cv_prog_compiler_c_o_FC \
17583export_dynamic_flag_spec_FC \
17584whole_archive_flag_spec_FC \
17585compiler_needs_object_FC \
17586with_gnu_ld_FC \
17587allow_undefined_flag_FC \
17588no_undefined_flag_FC \
17589hardcode_libdir_flag_spec_FC \
17590hardcode_libdir_flag_spec_ld_FC \
17591hardcode_libdir_separator_FC \
17592fix_srcfile_path_FC \
17593exclude_expsyms_FC \
17594include_expsyms_FC \
17595file_list_spec_FC \
6d873a38 17596compiler_lib_search_dirs_FC \
542f9784 17597predep_objects_FC \
17598postdep_objects_FC \
17599predeps_FC \
17600postdeps_FC \
17601compiler_lib_search_path_FC; do
e6408286 17602 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
542f9784 17603 *[\\\\\\\`\\"\\\$]*)
e6408286 17604 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
542f9784 17605 ;;
17606 *)
17607 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17608 ;;
17609 esac
17610done
17611
17612# Double-quote double-evaled strings.
17613for var in reload_cmds \
17614old_postinstall_cmds \
17615old_postuninstall_cmds \
17616old_archive_cmds \
17617extract_expsyms_cmds \
17618old_archive_from_new_cmds \
17619old_archive_from_expsyms_cmds \
17620archive_cmds \
17621archive_expsym_cmds \
17622module_cmds \
17623module_expsym_cmds \
17624export_symbols_cmds \
17625prelink_cmds \
17626postinstall_cmds \
17627postuninstall_cmds \
17628finish_cmds \
17629sys_lib_search_path_spec \
17630sys_lib_dlsearch_path_spec \
e6408286 17631reload_cmds_FC \
542f9784 17632old_archive_cmds_FC \
17633old_archive_from_new_cmds_FC \
17634old_archive_from_expsyms_cmds_FC \
17635archive_cmds_FC \
17636archive_expsym_cmds_FC \
17637module_cmds_FC \
17638module_expsym_cmds_FC \
17639export_symbols_cmds_FC \
17640prelink_cmds_FC; do
e6408286 17641 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
542f9784 17642 *[\\\\\\\`\\"\\\$]*)
e6408286 17643 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
542f9784 17644 ;;
17645 *)
17646 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17647 ;;
17648 esac
17649done
17650
542f9784 17651ac_aux_dir='$ac_aux_dir'
17652xsi_shell='$xsi_shell'
17653lt_shell_append='$lt_shell_append'
17654
17655# See if we are running on zsh, and set the options which allow our
17656# commands through without removal of \ escapes INIT.
17657if test -n "\${ZSH_VERSION+set}" ; then
17658 setopt NO_GLOB_SUBST
17659fi
17660
17661
17662 PACKAGE='$PACKAGE'
17663 VERSION='$VERSION'
17664 TIMESTAMP='$TIMESTAMP'
17665 RM='$RM'
17666 ofile='$ofile'
17667
17668
17669
17670
17671
17672
01473a49 17673GCC="$GCC"
17674CC="$CC"
17675acx_cv_header_stdint="$acx_cv_header_stdint"
17676acx_cv_type_int8_t="$acx_cv_type_int8_t"
17677acx_cv_type_int16_t="$acx_cv_type_int16_t"
17678acx_cv_type_int32_t="$acx_cv_type_int32_t"
17679acx_cv_type_int64_t="$acx_cv_type_int64_t"
17680acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17681ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17682ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17683ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17684ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17685ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17686ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17687ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17688ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17689
17690
1e8e9920 17691_ACEOF
17692
cd9a469c 17693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1e8e9920 17694
cd9a469c 17695# Handling of arguments.
1e8e9920 17696for ac_config_target in $ac_config_targets
17697do
cd9a469c 17698 case $ac_config_target in
17699 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17700 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17701 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17702 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17703 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17704 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17705 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17706 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17707 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17708 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17709 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17710 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
ca4c3545 17711 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
cd9a469c 17712
17713 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1e8e9920 17714 esac
17715done
17716
cd9a469c 17717
1e8e9920 17718# If the user did not use the arguments to specify the items to instantiate,
17719# then the envvar interface is used. Set only those that are not.
17720# We use the long form for the default assignment because of an extremely
17721# bizarre bug on SunOS 4.1.3.
17722if $ac_need_defaults; then
17723 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17724 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17725 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17726fi
17727
17728# Have a temporary directory for convenience. Make it in the build tree
cd9a469c 17729# simply because there is no reason against having it here, and in addition,
1e8e9920 17730# creating and moving files from /tmp can sometimes cause problems.
cd9a469c 17731# Hook for its removal unless debugging.
17732# Note that there is a small window in which the directory will not be cleaned:
17733# after its creation but before its name has been assigned to `$tmp'.
1e8e9920 17734$debug ||
17735{
cd9a469c 17736 tmp=
17737 trap 'exit_status=$?
17738 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17739' 0
17740 trap 'as_fn_exit 1' 1 2 13 15
1e8e9920 17741}
1e8e9920 17742# Create a (secure) tmp directory for tmp files.
17743
17744{
cd9a469c 17745 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1e8e9920 17746 test -n "$tmp" && test -d "$tmp"
17747} ||
17748{
cd9a469c 17749 tmp=./conf$$-$RANDOM
17750 (umask 077 && mkdir "$tmp")
17751} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17752
17753# Set up the scripts for CONFIG_FILES section.
17754# No need to generate them if there are no CONFIG_FILES.
17755# This happens for instance with `./config.status config.h'.
17756if test -n "$CONFIG_FILES"; then
17757
17758
17759ac_cr=`echo X | tr X '\015'`
17760# On cygwin, bash can eat \r inside `` if the user requested igncr.
17761# But we know of no other shell where ac_cr would be empty at this
17762# point, so we can use a bashism as a fallback.
17763if test "x$ac_cr" = x; then
17764 eval ac_cr=\$\'\\r\'
17765fi
17766ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17767if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17768 ac_cs_awk_cr='\r'
17769else
17770 ac_cs_awk_cr=$ac_cr
17771fi
17772
17773echo 'BEGIN {' >"$tmp/subs1.awk" &&
17774_ACEOF
17775
17776
1e8e9920 17777{
cd9a469c 17778 echo "cat >conf$$subs.awk <<_ACEOF" &&
17779 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17780 echo "_ACEOF"
17781} >conf$$subs.sh ||
17782 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17783ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17784ac_delim='%!_!# '
17785for ac_last_try in false false false false false :; do
17786 . ./conf$$subs.sh ||
17787 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17788
17789 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17790 if test $ac_delim_n = $ac_delim_num; then
17791 break
17792 elif $ac_last_try; then
17793 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17794 else
17795 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17796 fi
17797done
17798rm -f conf$$subs.sh
17799
17800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17801cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17802_ACEOF
17803sed -n '
17804h
17805s/^/S["/; s/!.*/"]=/
17806p
17807g
17808s/^[^!]*!//
17809:repl
17810t repl
17811s/'"$ac_delim"'$//
17812t delim
17813:nl
17814h
17815s/\(.\{148\}\).*/\1/
17816t more1
17817s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17818p
17819n
17820b repl
17821:more1
17822s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17823p
17824g
17825s/.\{148\}//
17826t nl
17827:delim
17828h
17829s/\(.\{148\}\).*/\1/
17830t more2
17831s/["\\]/\\&/g; s/^/"/; s/$/"/
17832p
17833b
17834:more2
17835s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17836p
17837g
17838s/.\{148\}//
17839t delim
17840' <conf$$subs.awk | sed '
17841/^[^""]/{
17842 N
17843 s/\n//
1e8e9920 17844}
cd9a469c 17845' >>$CONFIG_STATUS || ac_write_fail=1
17846rm -f conf$$subs.awk
17847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17848_ACAWK
17849cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17850 for (key in S) S_is_set[key] = 1
17851 FS = "\a"
1e8e9920 17852
cd9a469c 17853}
17854{
17855 line = $ 0
17856 nfields = split(line, field, "@")
17857 substed = 0
17858 len = length(field[1])
17859 for (i = 2; i < nfields; i++) {
17860 key = field[i]
17861 keylen = length(key)
17862 if (S_is_set[key]) {
17863 value = S[key]
17864 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17865 len += length(value) + length(field[++i])
17866 substed = 1
17867 } else
17868 len += 1 + keylen
17869 }
1e8e9920 17870
cd9a469c 17871 print line
17872}
1e8e9920 17873
cd9a469c 17874_ACAWK
17875_ACEOF
17876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17877if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17878 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17879else
17880 cat
17881fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17882 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17883_ACEOF
17884
17885# VPATH may cause trouble with some makes, so we remove $(srcdir),
17886# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17887# trailing colons and then remove the whole line if VPATH becomes empty
17888# (actually we leave an empty line to preserve line numbers).
17889if test "x$srcdir" = x.; then
17890 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17891s/:*\$(srcdir):*/:/
17892s/:*\${srcdir}:*/:/
17893s/:*@srcdir@:*/:/
17894s/^\([^=]*=[ ]*\):*/\1/
17895s/:*$//
17896s/^[^=]*=[ ]*$//
17897}'
17898fi
1e8e9920 17899
cd9a469c 17900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17901fi # test -n "$CONFIG_FILES"
1e8e9920 17902
cd9a469c 17903# Set up the scripts for CONFIG_HEADERS section.
17904# No need to generate them if there are no CONFIG_HEADERS.
17905# This happens for instance with `./config.status Makefile'.
17906if test -n "$CONFIG_HEADERS"; then
17907cat >"$tmp/defines.awk" <<\_ACAWK ||
17908BEGIN {
1e8e9920 17909_ACEOF
17910
cd9a469c 17911# Transform confdefs.h into an awk script `defines.awk', embedded as
17912# here-document in config.status, that substitutes the proper values into
17913# config.h.in to produce config.h.
17914
17915# Create a delimiter string that does not exist in confdefs.h, to ease
17916# handling of long lines.
17917ac_delim='%!_!# '
17918for ac_last_try in false false :; do
17919 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17920 if test -z "$ac_t"; then
17921 break
17922 elif $ac_last_try; then
17923 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17924 else
17925 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1e8e9920 17926 fi
cd9a469c 17927done
1e8e9920 17928
cd9a469c 17929# For the awk script, D is an array of macro values keyed by name,
17930# likewise P contains macro parameters if any. Preserve backslash
17931# newline sequences.
17932
17933ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17934sed -n '
17935s/.\{148\}/&'"$ac_delim"'/g
17936t rset
17937:rset
17938s/^[ ]*#[ ]*define[ ][ ]*/ /
17939t def
17940d
17941:def
17942s/\\$//
17943t bsnl
17944s/["\\]/\\&/g
17945s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17946D["\1"]=" \3"/p
17947s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17948d
17949:bsnl
17950s/["\\]/\\&/g
17951s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17952D["\1"]=" \3\\\\\\n"\\/p
17953t cont
17954s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17955t cont
17956d
17957:cont
17958n
17959s/.\{148\}/&'"$ac_delim"'/g
17960t clear
17961:clear
17962s/\\$//
17963t bsnlc
17964s/["\\]/\\&/g; s/^/"/; s/$/"/p
17965d
17966:bsnlc
17967s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17968b cont
17969' <confdefs.h | sed '
17970s/'"$ac_delim"'/"\\\
17971"/g' >>$CONFIG_STATUS || ac_write_fail=1
17972
17973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17974 for (key in D) D_is_set[key] = 1
17975 FS = "\a"
17976}
17977/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17978 line = \$ 0
17979 split(line, arg, " ")
17980 if (arg[1] == "#") {
17981 defundef = arg[2]
17982 mac1 = arg[3]
17983 } else {
17984 defundef = substr(arg[1], 2)
17985 mac1 = arg[2]
17986 }
17987 split(mac1, mac2, "(") #)
17988 macro = mac2[1]
17989 prefix = substr(line, 1, index(line, defundef) - 1)
17990 if (D_is_set[macro]) {
17991 # Preserve the white space surrounding the "#".
17992 print prefix "define", macro P[macro] D[macro]
17993 next
17994 } else {
17995 # Replace #undef with comments. This is necessary, for example,
17996 # in the case of _POSIX_SOURCE, which is predefined and required
17997 # on some systems where configure will not decide to define it.
17998 if (defundef == "undef") {
17999 print "/*", prefix defundef, macro, "*/"
18000 next
18001 }
18002 }
18003}
18004{ print }
18005_ACAWK
1e8e9920 18006_ACEOF
cd9a469c 18007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18008 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18009fi # test -n "$CONFIG_HEADERS"
18010
18011
18012eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18013shift
18014for ac_tag
18015do
18016 case $ac_tag in
18017 :[FHLC]) ac_mode=$ac_tag; continue;;
18018 esac
18019 case $ac_mode$ac_tag in
18020 :[FHL]*:*);;
18021 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18022 :[FH]-) ac_tag=-:-;;
18023 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18024 esac
18025 ac_save_IFS=$IFS
18026 IFS=:
18027 set x $ac_tag
18028 IFS=$ac_save_IFS
18029 shift
18030 ac_file=$1
18031 shift
18032
18033 case $ac_mode in
18034 :L) ac_source=$1;;
18035 :[FH])
18036 ac_file_inputs=
18037 for ac_f
18038 do
18039 case $ac_f in
18040 -) ac_f="$tmp/stdin";;
18041 *) # Look for the file first in the build tree, then in the source tree
18042 # (if the path is not absolute). The absolute path cannot be DOS-style,
18043 # because $ac_f cannot contain `:'.
18044 test -f "$ac_f" ||
18045 case $ac_f in
18046 [\\/$]*) false;;
18047 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18048 esac ||
18049 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18050 esac
18051 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18052 as_fn_append ac_file_inputs " '$ac_f'"
18053 done
18054
18055 # Let's still pretend it is `configure' which instantiates (i.e., don't
18056 # use $as_me), people would be surprised to read:
18057 # /* config.h. Generated by config.status. */
18058 configure_input='Generated from '`
18059 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18060 `' by configure.'
18061 if test x"$ac_file" != x-; then
18062 configure_input="$ac_file. $configure_input"
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18064$as_echo "$as_me: creating $ac_file" >&6;}
18065 fi
18066 # Neutralize special characters interpreted by sed in replacement strings.
18067 case $configure_input in #(
18068 *\&* | *\|* | *\\* )
18069 ac_sed_conf_input=`$as_echo "$configure_input" |
18070 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18071 *) ac_sed_conf_input=$configure_input;;
18072 esac
18073
18074 case $ac_tag in
18075 *:-:* | *:-) cat >"$tmp/stdin" \
18076 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18077 esac
18078 ;;
1e8e9920 18079 esac
18080
cd9a469c 18081 ac_dir=`$as_dirname -- "$ac_file" ||
1e8e9920 18082$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18083 X"$ac_file" : 'X\(//\)[^/]' \| \
18084 X"$ac_file" : 'X\(//\)$' \| \
cd9a469c 18085 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18086$as_echo X"$ac_file" |
18087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18088 s//\1/
18089 q
18090 }
18091 /^X\(\/\/\)[^/].*/{
18092 s//\1/
18093 q
18094 }
18095 /^X\(\/\/\)$/{
18096 s//\1/
18097 q
18098 }
18099 /^X\(\/\).*/{
18100 s//\1/
18101 q
18102 }
18103 s/.*/./; q'`
18104 as_dir="$ac_dir"; as_fn_mkdir_p
1e8e9920 18105 ac_builddir=.
18106
cd9a469c 18107case "$ac_dir" in
18108.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18109*)
18110 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18111 # A ".." for each directory in $ac_dir_suffix.
18112 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18113 case $ac_top_builddir_sub in
18114 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18115 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18116 esac ;;
18117esac
18118ac_abs_top_builddir=$ac_pwd
18119ac_abs_builddir=$ac_pwd$ac_dir_suffix
18120# for backward compatibility:
18121ac_top_builddir=$ac_top_build_prefix
1e8e9920 18122
18123case $srcdir in
cd9a469c 18124 .) # We are building in place.
1e8e9920 18125 ac_srcdir=.
cd9a469c 18126 ac_top_srcdir=$ac_top_builddir_sub
18127 ac_abs_top_srcdir=$ac_pwd ;;
18128 [\\/]* | ?:[\\/]* ) # Absolute name.
1e8e9920 18129 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 18130 ac_top_srcdir=$srcdir
18131 ac_abs_top_srcdir=$srcdir ;;
18132 *) # Relative name.
18133 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18134 ac_top_srcdir=$ac_top_build_prefix$srcdir
18135 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1e8e9920 18136esac
cd9a469c 18137ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1e8e9920 18138
1e8e9920 18139
cd9a469c 18140 case $ac_mode in
18141 :F)
18142 #
18143 # CONFIG_FILE
18144 #
1e8e9920 18145
18146 case $INSTALL in
18147 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cd9a469c 18148 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1e8e9920 18149 esac
cd9a469c 18150 ac_MKDIR_P=$MKDIR_P
18151 case $MKDIR_P in
18152 [\\/$]* | ?:[\\/]* ) ;;
18153 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18154 esac
18155_ACEOF
1e8e9920 18156
cd9a469c 18157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18158# If the template does not know about datarootdir, expand it.
18159# FIXME: This hack should be removed a few years after 2.60.
18160ac_datarootdir_hack=; ac_datarootdir_seen=
18161ac_sed_dataroot='
18162/datarootdir/ {
18163 p
18164 q
18165}
18166/@datadir@/p
18167/@docdir@/p
18168/@infodir@/p
18169/@localedir@/p
18170/@mandir@/p'
18171case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18172*datarootdir*) ac_datarootdir_seen=yes;;
18173*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18175$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18176_ACEOF
18177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18178 ac_datarootdir_hack='
18179 s&@datadir@&$datadir&g
18180 s&@docdir@&$docdir&g
18181 s&@infodir@&$infodir&g
18182 s&@localedir@&$localedir&g
18183 s&@mandir@&$mandir&g
18184 s&\\\${datarootdir}&$datarootdir&g' ;;
18185esac
1e8e9920 18186_ACEOF
cd9a469c 18187
18188# Neutralize VPATH when `$srcdir' = `.'.
18189# Shell code in configure.ac might set extrasub.
18190# FIXME: do we really want to maintain this feature?
18191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18192ac_sed_extra="$ac_vpsub
1e8e9920 18193$extrasub
18194_ACEOF
cd9a469c 18195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1e8e9920 18196:t
18197/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cd9a469c 18198s|@configure_input@|$ac_sed_conf_input|;t t
18199s&@top_builddir@&$ac_top_builddir_sub&;t t
18200s&@top_build_prefix@&$ac_top_build_prefix&;t t
18201s&@srcdir@&$ac_srcdir&;t t
18202s&@abs_srcdir@&$ac_abs_srcdir&;t t
18203s&@top_srcdir@&$ac_top_srcdir&;t t
18204s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18205s&@builddir@&$ac_builddir&;t t
18206s&@abs_builddir@&$ac_abs_builddir&;t t
18207s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18208s&@INSTALL@&$ac_INSTALL&;t t
18209s&@MKDIR_P@&$ac_MKDIR_P&;t t
18210$ac_datarootdir_hack
18211"
18212eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18213 || as_fn_error "could not create $ac_file" "$LINENO" 5
18214
18215test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18216 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18217 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18219which seems to be undefined. Please make sure it is defined." >&5
18220$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18221which seems to be undefined. Please make sure it is defined." >&2;}
18222
18223 rm -f "$tmp/stdin"
1e8e9920 18224 case $ac_file in
cd9a469c 18225 -) cat "$tmp/out" && rm -f "$tmp/out";;
18226 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18227 esac \
18228 || as_fn_error "could not create $ac_file" "$LINENO" 5
18229 ;;
18230 :H)
18231 #
18232 # CONFIG_HEADER
18233 #
1e8e9920 18234 if test x"$ac_file" != x-; then
cd9a469c 18235 {
18236 $as_echo "/* $configure_input */" \
18237 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18238 } >"$tmp/config.h" \
18239 || as_fn_error "could not create $ac_file" "$LINENO" 5
18240 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18242$as_echo "$as_me: $ac_file is unchanged" >&6;}
1e8e9920 18243 else
cd9a469c 18244 rm -f "$ac_file"
18245 mv "$tmp/config.h" "$ac_file" \
18246 || as_fn_error "could not create $ac_file" "$LINENO" 5
1e8e9920 18247 fi
18248 else
cd9a469c 18249 $as_echo "/* $configure_input */" \
18250 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18251 || as_fn_error "could not create -" "$LINENO" 5
1e8e9920 18252 fi
cd9a469c 18253# Compute "$ac_file"'s index in $config_headers.
18254_am_arg="$ac_file"
1e8e9920 18255_am_stamp_count=1
18256for _am_header in $config_headers :; do
18257 case $_am_header in
cd9a469c 18258 $_am_arg | $_am_arg:* )
1e8e9920 18259 break ;;
18260 * )
18261 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18262 esac
18263done
cd9a469c 18264echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18265$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18266 X"$_am_arg" : 'X\(//\)[^/]' \| \
18267 X"$_am_arg" : 'X\(//\)$' \| \
18268 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18269$as_echo X"$_am_arg" |
18270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18271 s//\1/
18272 q
18273 }
18274 /^X\(\/\/\)[^/].*/{
18275 s//\1/
18276 q
18277 }
18278 /^X\(\/\/\)$/{
18279 s//\1/
18280 q
18281 }
18282 /^X\(\/\).*/{
18283 s//\1/
18284 q
18285 }
18286 s/.*/./; q'`/stamp-h$_am_stamp_count
18287 ;;
1e8e9920 18288
cd9a469c 18289 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18290$as_echo "$as_me: executing $ac_file commands" >&6;}
18291 ;;
18292 esac
1e8e9920 18293
18294
cd9a469c 18295 case $ac_file$ac_mode in
18296 "default-1":C)
1e8e9920 18297# Only add multilib support code if we just rebuilt the top-level
18298# Makefile.
18299case " $CONFIG_FILES " in
18300 *" Makefile "*)
18301 ac_file=Makefile . ${multi_basedir}/config-ml.in
18302 ;;
18303esac ;;
cd9a469c 18304 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18305 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18306 # are listed without --file. Let's play safe and only enable the eval
18307 # if we detect the quoting.
18308 case $CONFIG_FILES in
18309 *\'*) eval set x "$CONFIG_FILES" ;;
18310 *) set x $CONFIG_FILES ;;
18311 esac
18312 shift
18313 for mf
18314 do
18315 # Strip MF so we end up with the name of the file.
18316 mf=`echo "$mf" | sed -e 's/:.*$//'`
18317 # Check whether this is an Automake generated Makefile or not.
18318 # We used to match only the files named `Makefile.in', but
18319 # some people rename them; so instead we look at the file content.
18320 # Grep'ing the first line is not enough: some people post-process
18321 # each Makefile.in and add a new line on top of each file to say so.
18322 # Grep'ing the whole file is not good either: AIX grep has a line
18323 # limit of 2048, but all sed's we know have understand at least 4000.
18324 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18325 dirpart=`$as_dirname -- "$mf" ||
1e8e9920 18326$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18327 X"$mf" : 'X\(//\)[^/]' \| \
18328 X"$mf" : 'X\(//\)$' \| \
cd9a469c 18329 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18330$as_echo X"$mf" |
18331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18332 s//\1/
18333 q
18334 }
18335 /^X\(\/\/\)[^/].*/{
18336 s//\1/
18337 q
18338 }
18339 /^X\(\/\/\)$/{
18340 s//\1/
18341 q
18342 }
18343 /^X\(\/\).*/{
18344 s//\1/
18345 q
18346 }
18347 s/.*/./; q'`
18348 else
18349 continue
18350 fi
18351 # Extract the definition of DEPDIR, am__include, and am__quote
18352 # from the Makefile without running `make'.
18353 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18354 test -z "$DEPDIR" && continue
18355 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18356 test -z "am__include" && continue
18357 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18358 # When using ansi2knr, U may be empty or an underscore; expand it
18359 U=`sed -n 's/^U = //p' < "$mf"`
18360 # Find all dependency output files, they are included files with
18361 # $(DEPDIR) in their names. We invoke sed twice because it is the
18362 # simplest approach to changing $(DEPDIR) to its actual value in the
18363 # expansion.
18364 for file in `sed -n "
18365 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18366 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18367 # Make sure the directory exists.
18368 test -f "$dirpart/$file" && continue
18369 fdir=`$as_dirname -- "$file" ||
1e8e9920 18370$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18371 X"$file" : 'X\(//\)[^/]' \| \
18372 X"$file" : 'X\(//\)$' \| \
cd9a469c 18373 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18374$as_echo X"$file" |
18375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18376 s//\1/
18377 q
18378 }
18379 /^X\(\/\/\)[^/].*/{
18380 s//\1/
18381 q
18382 }
18383 /^X\(\/\/\)$/{
18384 s//\1/
18385 q
18386 }
18387 /^X\(\/\).*/{
18388 s//\1/
18389 q
18390 }
18391 s/.*/./; q'`
18392 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18393 # echo "creating $dirpart/$file"
18394 echo '# dummy' > "$dirpart/$file"
1e8e9920 18395 done
1e8e9920 18396 done
cd9a469c 18397}
542f9784 18398 ;;
cd9a469c 18399 "libtool":C)
542f9784 18400
18401 # See if we are running on zsh, and set the options which allow our
18402 # commands through without removal of \ escapes.
18403 if test -n "${ZSH_VERSION+set}" ; then
18404 setopt NO_GLOB_SUBST
18405 fi
18406
18407 cfgfile="${ofile}T"
18408 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18409 $RM "$cfgfile"
18410
18411 cat <<_LT_EOF >> "$cfgfile"
18412#! $SHELL
18413
18414# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6d873a38 18415# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
542f9784 18416# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18417# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18418#
6d873a38 18419# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
e6408286 18420# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
6d873a38 18421# Written by Gordon Matzigkeit, 1996
542f9784 18422#
6d873a38 18423# This file is part of GNU Libtool.
542f9784 18424#
6d873a38 18425# GNU Libtool is free software; you can redistribute it and/or
18426# modify it under the terms of the GNU General Public License as
18427# published by the Free Software Foundation; either version 2 of
18428# the License, or (at your option) any later version.
542f9784 18429#
6d873a38 18430# As a special exception to the GNU General Public License,
18431# if you distribute this file as part of a program or library that
18432# is built using GNU Libtool, you may include this file under the
18433# same distribution terms that you use for the rest of that program.
542f9784 18434#
6d873a38 18435# GNU Libtool is distributed in the hope that it will be useful,
18436# but WITHOUT ANY WARRANTY; without even the implied warranty of
18437# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18438# GNU General Public License for more details.
542f9784 18439#
6d873a38 18440# You should have received a copy of the GNU General Public License
18441# along with GNU Libtool; see the file COPYING. If not, a copy
18442# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18443# obtained by writing to the Free Software Foundation, Inc.,
18444# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
542f9784 18445
18446
18447# The names of the tagged configurations supported by this script.
18448available_tags="FC "
18449
18450# ### BEGIN LIBTOOL CONFIG
18451
18452# Which release of libtool.m4 was used?
18453macro_version=$macro_version
18454macro_revision=$macro_revision
18455
18456# Whether or not to build shared libraries.
18457build_libtool_libs=$enable_shared
18458
18459# Whether or not to build static libraries.
18460build_old_libs=$enable_static
18461
18462# What type of objects to build.
18463pic_mode=$pic_mode
18464
18465# Whether or not to optimize for fast installation.
18466fast_install=$enable_fast_install
18467
e6408286 18468# Shell to use when invoking shell scripts.
18469SHELL=$lt_SHELL
18470
18471# An echo program that protects backslashes.
18472ECHO=$lt_ECHO
18473
542f9784 18474# The host system.
18475host_alias=$host_alias
18476host=$host
18477host_os=$host_os
18478
18479# The build system.
18480build_alias=$build_alias
18481build=$build
18482build_os=$build_os
18483
18484# A sed program that does not truncate output.
18485SED=$lt_SED
18486
18487# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18488Xsed="\$SED -e 1s/^X//"
18489
18490# A grep program that handles long lines.
18491GREP=$lt_GREP
18492
18493# An ERE matcher.
18494EGREP=$lt_EGREP
18495
18496# A literal string matcher.
18497FGREP=$lt_FGREP
18498
18499# A BSD- or MS-compatible name lister.
18500NM=$lt_NM
18501
18502# Whether we need soft or hard links.
18503LN_S=$lt_LN_S
18504
18505# What is the maximum length of a command?
18506max_cmd_len=$max_cmd_len
18507
18508# Object file suffix (normally "o").
18509objext=$ac_objext
18510
18511# Executable file suffix (normally "").
18512exeext=$exeext
18513
18514# whether the shell understands "unset".
18515lt_unset=$lt_unset
18516
18517# turn spaces into newlines.
18518SP2NL=$lt_lt_SP2NL
18519
18520# turn newlines into spaces.
18521NL2SP=$lt_lt_NL2SP
18522
6d873a38 18523# An object symbol dumper.
18524OBJDUMP=$lt_OBJDUMP
18525
542f9784 18526# Method to check whether dependent libraries are shared objects.
18527deplibs_check_method=$lt_deplibs_check_method
18528
18529# Command to use when deplibs_check_method == "file_magic".
18530file_magic_cmd=$lt_file_magic_cmd
18531
18532# The archiver.
18533AR=$lt_AR
18534AR_FLAGS=$lt_AR_FLAGS
18535
18536# A symbol stripping program.
18537STRIP=$lt_STRIP
18538
18539# Commands used to install an old-style archive.
18540RANLIB=$lt_RANLIB
18541old_postinstall_cmds=$lt_old_postinstall_cmds
18542old_postuninstall_cmds=$lt_old_postuninstall_cmds
18543
e6408286 18544# Whether to use a lock for old archive extraction.
18545lock_old_archive_extraction=$lock_old_archive_extraction
18546
542f9784 18547# A C compiler.
18548LTCC=$lt_CC
18549
18550# LTCC compiler flags.
18551LTCFLAGS=$lt_CFLAGS
18552
18553# Take the output of nm and produce a listing of raw symbols and C names.
18554global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18555
18556# Transform the output of nm in a proper C declaration.
18557global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18558
18559# Transform the output of nm in a C name address pair.
18560global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18561
6d873a38 18562# Transform the output of nm in a C name address pair when lib prefix is needed.
18563global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18564
542f9784 18565# The name of the directory that contains temporary libtool files.
18566objdir=$objdir
18567
542f9784 18568# Used to examine libraries when file_magic_cmd begins with "file".
18569MAGIC_CMD=$MAGIC_CMD
18570
18571# Must we lock files when doing compilation?
18572need_locks=$lt_need_locks
18573
6d873a38 18574# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18575DSYMUTIL=$lt_DSYMUTIL
18576
18577# Tool to change global to local symbols on Mac OS X.
18578NMEDIT=$lt_NMEDIT
18579
18580# Tool to manipulate fat objects and archives on Mac OS X.
18581LIPO=$lt_LIPO
18582
18583# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18584OTOOL=$lt_OTOOL
18585
18586# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18587OTOOL64=$lt_OTOOL64
18588
542f9784 18589# Old archive suffix (normally "a").
18590libext=$libext
18591
18592# Shared library suffix (normally ".so").
18593shrext_cmds=$lt_shrext_cmds
18594
18595# The commands to extract the exported symbol list from a shared archive.
18596extract_expsyms_cmds=$lt_extract_expsyms_cmds
18597
18598# Variables whose values should be saved in libtool wrapper scripts and
18599# restored at link time.
18600variables_saved_for_relink=$lt_variables_saved_for_relink
18601
18602# Do we need the "lib" prefix for modules?
18603need_lib_prefix=$need_lib_prefix
18604
18605# Do we need a version for libraries?
18606need_version=$need_version
18607
18608# Library versioning type.
18609version_type=$version_type
18610
18611# Shared library runtime path variable.
18612runpath_var=$runpath_var
18613
18614# Shared library path variable.
18615shlibpath_var=$shlibpath_var
18616
18617# Is shlibpath searched before the hard-coded library search path?
18618shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18619
18620# Format of library name prefix.
18621libname_spec=$lt_libname_spec
18622
18623# List of archive names. First name is the real one, the rest are links.
18624# The last name is the one that the linker finds with -lNAME
18625library_names_spec=$lt_library_names_spec
18626
18627# The coded name of the library, if different from the real name.
18628soname_spec=$lt_soname_spec
18629
e6408286 18630# Permission mode override for installation of shared libraries.
18631install_override_mode=$lt_install_override_mode
18632
542f9784 18633# Command to use after installation of a shared archive.
18634postinstall_cmds=$lt_postinstall_cmds
18635
18636# Command to use after uninstallation of a shared archive.
18637postuninstall_cmds=$lt_postuninstall_cmds
18638
18639# Commands used to finish a libtool library installation in a directory.
18640finish_cmds=$lt_finish_cmds
18641
18642# As "finish_cmds", except a single script fragment to be evaled but
18643# not shown.
18644finish_eval=$lt_finish_eval
18645
18646# Whether we should hardcode library paths into libraries.
18647hardcode_into_libs=$hardcode_into_libs
18648
18649# Compile-time system search path for libraries.
18650sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18651
18652# Run-time system search path for libraries.
18653sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18654
18655# Whether dlopen is supported.
18656dlopen_support=$enable_dlopen
18657
18658# Whether dlopen of programs is supported.
18659dlopen_self=$enable_dlopen_self
18660
18661# Whether dlopen of statically linked programs is supported.
18662dlopen_self_static=$enable_dlopen_self_static
18663
18664# Commands to strip libraries.
18665old_striplib=$lt_old_striplib
18666striplib=$lt_striplib
18667
18668
18669# The linker used to build libraries.
18670LD=$lt_LD
18671
e6408286 18672# How to create reloadable object files.
18673reload_flag=$lt_reload_flag
18674reload_cmds=$lt_reload_cmds
18675
542f9784 18676# Commands used to build an old-style archive.
18677old_archive_cmds=$lt_old_archive_cmds
18678
18679# A language specific compiler.
18680CC=$lt_compiler
18681
18682# Is the compiler the GNU compiler?
18683with_gcc=$GCC
18684
18685# Compiler flag to turn off builtin functions.
18686no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18687
18688# How to pass a linker flag through the compiler.
18689wl=$lt_lt_prog_compiler_wl
18690
18691# Additional compiler flags for building library objects.
18692pic_flag=$lt_lt_prog_compiler_pic
18693
18694# Compiler flag to prevent dynamic linking.
18695link_static_flag=$lt_lt_prog_compiler_static
18696
18697# Does compiler simultaneously support -c and -o options?
18698compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18699
18700# Whether or not to add -lc for building shared libraries.
18701build_libtool_need_lc=$archive_cmds_need_lc
18702
18703# Whether or not to disallow shared libs when runtime libs are static.
18704allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18705
18706# Compiler flag to allow reflexive dlopens.
18707export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18708
18709# Compiler flag to generate shared objects directly from archives.
18710whole_archive_flag_spec=$lt_whole_archive_flag_spec
18711
18712# Whether the compiler copes with passing no objects directly.
18713compiler_needs_object=$lt_compiler_needs_object
18714
18715# Create an old-style archive from a shared archive.
18716old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18717
18718# Create a temporary old-style archive to link instead of a shared archive.
18719old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18720
18721# Commands used to build a shared archive.
18722archive_cmds=$lt_archive_cmds
18723archive_expsym_cmds=$lt_archive_expsym_cmds
18724
18725# Commands used to build a loadable module if different from building
18726# a shared archive.
18727module_cmds=$lt_module_cmds
18728module_expsym_cmds=$lt_module_expsym_cmds
18729
18730# Whether we are building with GNU ld or not.
18731with_gnu_ld=$lt_with_gnu_ld
18732
18733# Flag that allows shared libraries with undefined symbols to be built.
18734allow_undefined_flag=$lt_allow_undefined_flag
18735
18736# Flag that enforces no undefined symbols.
18737no_undefined_flag=$lt_no_undefined_flag
18738
18739# Flag to hardcode \$libdir into a binary during linking.
18740# This must work even if \$libdir does not exist
18741hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18742
18743# If ld is used when linking, flag to hardcode \$libdir into a binary
18744# during linking. This must work even if \$libdir does not exist.
18745hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18746
18747# Whether we need a single "-rpath" flag with a separated argument.
18748hardcode_libdir_separator=$lt_hardcode_libdir_separator
18749
18750# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18751# DIR into the resulting binary.
18752hardcode_direct=$hardcode_direct
18753
18754# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18755# DIR into the resulting binary and the resulting library dependency is
18756# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18757# library is relocated.
18758hardcode_direct_absolute=$hardcode_direct_absolute
18759
18760# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18761# into the resulting binary.
18762hardcode_minus_L=$hardcode_minus_L
18763
18764# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18765# into the resulting binary.
18766hardcode_shlibpath_var=$hardcode_shlibpath_var
18767
18768# Set to "yes" if building a shared library automatically hardcodes DIR
18769# into the library and all subsequent libraries and executables linked
18770# against it.
18771hardcode_automatic=$hardcode_automatic
18772
18773# Set to yes if linker adds runtime paths of dependent libraries
18774# to runtime path list.
18775inherit_rpath=$inherit_rpath
18776
18777# Whether libtool must link a program against all its dependency libraries.
18778link_all_deplibs=$link_all_deplibs
18779
18780# Fix the shell variable \$srcfile for the compiler.
18781fix_srcfile_path=$lt_fix_srcfile_path
18782
18783# Set to "yes" if exported symbols are required.
18784always_export_symbols=$always_export_symbols
18785
18786# The commands to list exported symbols.
18787export_symbols_cmds=$lt_export_symbols_cmds
18788
18789# Symbols that should not be listed in the preloaded symbols.
18790exclude_expsyms=$lt_exclude_expsyms
18791
18792# Symbols that must always be exported.
18793include_expsyms=$lt_include_expsyms
18794
18795# Commands necessary for linking programs (against libraries) with templates.
18796prelink_cmds=$lt_prelink_cmds
18797
18798# Specify filename containing input files.
18799file_list_spec=$lt_file_list_spec
18800
18801# How to hardcode a shared library path into an executable.
18802hardcode_action=$hardcode_action
18803
6d873a38 18804# The directories searched by this compiler when creating a shared library.
18805compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18806
542f9784 18807# Dependencies to place before and after the objects being linked to
18808# create a shared library.
18809predep_objects=$lt_predep_objects
18810postdep_objects=$lt_postdep_objects
18811predeps=$lt_predeps
18812postdeps=$lt_postdeps
18813
18814# The library search path used internally by the compiler when linking
18815# a shared library.
18816compiler_lib_search_path=$lt_compiler_lib_search_path
18817
18818# ### END LIBTOOL CONFIG
18819
18820_LT_EOF
18821
18822 case $host_os in
18823 aix3*)
18824 cat <<\_LT_EOF >> "$cfgfile"
18825# AIX sometimes has problems with the GCC collect2 program. For some
18826# reason, if we set the COLLECT_NAMES environment variable, the problems
18827# vanish in a puff of smoke.
18828if test "X${COLLECT_NAMES+set}" != Xset; then
18829 COLLECT_NAMES=
18830 export COLLECT_NAMES
18831fi
18832_LT_EOF
18833 ;;
18834 esac
18835
18836
18837ltmain="$ac_aux_dir/ltmain.sh"
18838
18839
18840 # We use sed instead of cat because bash on DJGPP gets confused if
18841 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18842 # text mode, it properly converts lines to CR/LF. This bash problem
18843 # is reportedly fixed, but why not run on old versions too?
18844 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18845 || (rm -f "$cfgfile"; exit 1)
18846
18847 case $xsi_shell in
18848 yes)
18849 cat << \_LT_EOF >> "$cfgfile"
6d873a38 18850
542f9784 18851# func_dirname file append nondir_replacement
18852# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18853# otherwise set result to NONDIR_REPLACEMENT.
18854func_dirname ()
18855{
18856 case ${1} in
18857 */*) func_dirname_result="${1%/*}${2}" ;;
18858 * ) func_dirname_result="${3}" ;;
18859 esac
18860}
18861
18862# func_basename file
18863func_basename ()
18864{
18865 func_basename_result="${1##*/}"
18866}
18867
6d873a38 18868# func_dirname_and_basename file append nondir_replacement
18869# perform func_basename and func_dirname in a single function
18870# call:
18871# dirname: Compute the dirname of FILE. If nonempty,
18872# add APPEND to the result, otherwise set result
18873# to NONDIR_REPLACEMENT.
18874# value returned in "$func_dirname_result"
18875# basename: Compute filename of FILE.
18876# value retuned in "$func_basename_result"
18877# Implementation must be kept synchronized with func_dirname
18878# and func_basename. For efficiency, we do not delegate to
18879# those functions but instead duplicate the functionality here.
18880func_dirname_and_basename ()
18881{
18882 case ${1} in
18883 */*) func_dirname_result="${1%/*}${2}" ;;
18884 * ) func_dirname_result="${3}" ;;
18885 esac
18886 func_basename_result="${1##*/}"
18887}
18888
542f9784 18889# func_stripname prefix suffix name
18890# strip PREFIX and SUFFIX off of NAME.
18891# PREFIX and SUFFIX must not contain globbing or regex special
18892# characters, hashes, percent signs, but SUFFIX may contain a leading
18893# dot (in which case that matches only a dot).
18894func_stripname ()
18895{
18896 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18897 # positional parameters, so assign one to ordinary parameter first.
18898 func_stripname_result=${3}
18899 func_stripname_result=${func_stripname_result#"${1}"}
18900 func_stripname_result=${func_stripname_result%"${2}"}
18901}
18902
18903# func_opt_split
18904func_opt_split ()
18905{
18906 func_opt_split_opt=${1%%=*}
18907 func_opt_split_arg=${1#*=}
18908}
18909
18910# func_lo2o object
18911func_lo2o ()
18912{
18913 case ${1} in
18914 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18915 *) func_lo2o_result=${1} ;;
18916 esac
18917}
6d873a38 18918
18919# func_xform libobj-or-source
18920func_xform ()
18921{
18922 func_xform_result=${1%.*}.lo
18923}
18924
18925# func_arith arithmetic-term...
18926func_arith ()
18927{
18928 func_arith_result=$(( $* ))
18929}
18930
18931# func_len string
18932# STRING may not start with a hyphen.
18933func_len ()
18934{
18935 func_len_result=${#1}
18936}
18937
542f9784 18938_LT_EOF
18939 ;;
18940 *) # Bourne compatible functions.
18941 cat << \_LT_EOF >> "$cfgfile"
6d873a38 18942
542f9784 18943# func_dirname file append nondir_replacement
18944# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18945# otherwise set result to NONDIR_REPLACEMENT.
18946func_dirname ()
18947{
18948 # Extract subdirectory from the argument.
e6408286 18949 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
542f9784 18950 if test "X$func_dirname_result" = "X${1}"; then
18951 func_dirname_result="${3}"
18952 else
18953 func_dirname_result="$func_dirname_result${2}"
18954 fi
18955}
18956
18957# func_basename file
18958func_basename ()
18959{
e6408286 18960 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
542f9784 18961}
18962
6d873a38 18963
542f9784 18964# func_stripname prefix suffix name
18965# strip PREFIX and SUFFIX off of NAME.
18966# PREFIX and SUFFIX must not contain globbing or regex special
18967# characters, hashes, percent signs, but SUFFIX may contain a leading
18968# dot (in which case that matches only a dot).
18969# func_strip_suffix prefix name
18970func_stripname ()
18971{
18972 case ${2} in
e6408286 18973 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18974 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
542f9784 18975 esac
18976}
18977
18978# sed scripts:
18979my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18980my_sed_long_arg='1s/^-[^=]*=//'
18981
18982# func_opt_split
18983func_opt_split ()
18984{
e6408286 18985 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18986 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
542f9784 18987}
18988
18989# func_lo2o object
18990func_lo2o ()
18991{
e6408286 18992 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
542f9784 18993}
6d873a38 18994
18995# func_xform libobj-or-source
18996func_xform ()
18997{
e6408286 18998 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
6d873a38 18999}
19000
19001# func_arith arithmetic-term...
19002func_arith ()
19003{
19004 func_arith_result=`expr "$@"`
19005}
19006
19007# func_len string
19008# STRING may not start with a hyphen.
19009func_len ()
19010{
19011 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19012}
19013
542f9784 19014_LT_EOF
19015esac
19016
19017case $lt_shell_append in
19018 yes)
19019 cat << \_LT_EOF >> "$cfgfile"
19020
19021# func_append var value
19022# Append VALUE to the end of shell variable VAR.
19023func_append ()
19024{
19025 eval "$1+=\$2"
19026}
19027_LT_EOF
19028 ;;
19029 *)
19030 cat << \_LT_EOF >> "$cfgfile"
19031
19032# func_append var value
19033# Append VALUE to the end of shell variable VAR.
19034func_append ()
19035{
19036 eval "$1=\$$1\$2"
19037}
6d873a38 19038
542f9784 19039_LT_EOF
19040 ;;
19041 esac
19042
19043
19044 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19045 || (rm -f "$cfgfile"; exit 1)
19046
19047 mv -f "$cfgfile" "$ofile" ||
19048 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19049 chmod +x "$ofile"
19050
19051
19052 cat <<_LT_EOF >> "$ofile"
19053
19054# ### BEGIN LIBTOOL TAG CONFIG: FC
19055
19056# The linker used to build libraries.
19057LD=$lt_LD_FC
19058
e6408286 19059# How to create reloadable object files.
19060reload_flag=$lt_reload_flag_FC
19061reload_cmds=$lt_reload_cmds_FC
19062
542f9784 19063# Commands used to build an old-style archive.
19064old_archive_cmds=$lt_old_archive_cmds_FC
19065
19066# A language specific compiler.
19067CC=$lt_compiler_FC
19068
19069# Is the compiler the GNU compiler?
19070with_gcc=$GCC_FC
19071
19072# Compiler flag to turn off builtin functions.
19073no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19074
19075# How to pass a linker flag through the compiler.
19076wl=$lt_lt_prog_compiler_wl_FC
19077
19078# Additional compiler flags for building library objects.
19079pic_flag=$lt_lt_prog_compiler_pic_FC
19080
19081# Compiler flag to prevent dynamic linking.
19082link_static_flag=$lt_lt_prog_compiler_static_FC
19083
19084# Does compiler simultaneously support -c and -o options?
19085compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19086
19087# Whether or not to add -lc for building shared libraries.
19088build_libtool_need_lc=$archive_cmds_need_lc_FC
19089
19090# Whether or not to disallow shared libs when runtime libs are static.
19091allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19092
19093# Compiler flag to allow reflexive dlopens.
19094export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19095
19096# Compiler flag to generate shared objects directly from archives.
19097whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19098
19099# Whether the compiler copes with passing no objects directly.
19100compiler_needs_object=$lt_compiler_needs_object_FC
19101
19102# Create an old-style archive from a shared archive.
19103old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19104
19105# Create a temporary old-style archive to link instead of a shared archive.
19106old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19107
19108# Commands used to build a shared archive.
19109archive_cmds=$lt_archive_cmds_FC
19110archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19111
19112# Commands used to build a loadable module if different from building
19113# a shared archive.
19114module_cmds=$lt_module_cmds_FC
19115module_expsym_cmds=$lt_module_expsym_cmds_FC
19116
19117# Whether we are building with GNU ld or not.
19118with_gnu_ld=$lt_with_gnu_ld_FC
19119
19120# Flag that allows shared libraries with undefined symbols to be built.
19121allow_undefined_flag=$lt_allow_undefined_flag_FC
19122
19123# Flag that enforces no undefined symbols.
19124no_undefined_flag=$lt_no_undefined_flag_FC
19125
19126# Flag to hardcode \$libdir into a binary during linking.
19127# This must work even if \$libdir does not exist
19128hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19129
19130# If ld is used when linking, flag to hardcode \$libdir into a binary
19131# during linking. This must work even if \$libdir does not exist.
19132hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19133
19134# Whether we need a single "-rpath" flag with a separated argument.
19135hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19136
19137# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19138# DIR into the resulting binary.
19139hardcode_direct=$hardcode_direct_FC
19140
19141# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19142# DIR into the resulting binary and the resulting library dependency is
19143# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19144# library is relocated.
19145hardcode_direct_absolute=$hardcode_direct_absolute_FC
19146
19147# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19148# into the resulting binary.
19149hardcode_minus_L=$hardcode_minus_L_FC
19150
19151# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19152# into the resulting binary.
19153hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19154
19155# Set to "yes" if building a shared library automatically hardcodes DIR
19156# into the library and all subsequent libraries and executables linked
19157# against it.
19158hardcode_automatic=$hardcode_automatic_FC
19159
19160# Set to yes if linker adds runtime paths of dependent libraries
19161# to runtime path list.
19162inherit_rpath=$inherit_rpath_FC
19163
19164# Whether libtool must link a program against all its dependency libraries.
19165link_all_deplibs=$link_all_deplibs_FC
19166
19167# Fix the shell variable \$srcfile for the compiler.
19168fix_srcfile_path=$lt_fix_srcfile_path_FC
19169
19170# Set to "yes" if exported symbols are required.
19171always_export_symbols=$always_export_symbols_FC
19172
19173# The commands to list exported symbols.
19174export_symbols_cmds=$lt_export_symbols_cmds_FC
19175
19176# Symbols that should not be listed in the preloaded symbols.
19177exclude_expsyms=$lt_exclude_expsyms_FC
19178
19179# Symbols that must always be exported.
19180include_expsyms=$lt_include_expsyms_FC
19181
19182# Commands necessary for linking programs (against libraries) with templates.
19183prelink_cmds=$lt_prelink_cmds_FC
19184
19185# Specify filename containing input files.
19186file_list_spec=$lt_file_list_spec_FC
19187
19188# How to hardcode a shared library path into an executable.
19189hardcode_action=$hardcode_action_FC
19190
6d873a38 19191# The directories searched by this compiler when creating a shared library.
19192compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19193
542f9784 19194# Dependencies to place before and after the objects being linked to
19195# create a shared library.
19196predep_objects=$lt_predep_objects_FC
19197postdep_objects=$lt_postdep_objects_FC
19198predeps=$lt_predeps_FC
19199postdeps=$lt_postdeps_FC
19200
19201# The library search path used internally by the compiler when linking
19202# a shared library.
19203compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19204
19205# ### END LIBTOOL TAG CONFIG: FC
19206_LT_EOF
19207
01473a49 19208 ;;
cd9a469c 19209 "gstdint.h":C)
01473a49 19210if test "$GCC" = yes; then
19211 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19212else
19213 echo "/* generated for $CC */" > tmp-stdint.h
19214fi
19215
19216sed 's/^ *//' >> tmp-stdint.h <<EOF
19217
19218 #ifndef GCC_GENERATED_STDINT_H
19219 #define GCC_GENERATED_STDINT_H 1
19220
19221 #include <sys/types.h>
19222EOF
19223
19224if test "$acx_cv_header_stdint" != stdint.h; then
19225 echo "#include <stddef.h>" >> tmp-stdint.h
19226fi
19227if test "$acx_cv_header_stdint" != stddef.h; then
19228 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19229fi
19230
19231sed 's/^ *//' >> tmp-stdint.h <<EOF
19232 /* glibc uses these symbols as guards to prevent redefinitions. */
19233 #ifdef __int8_t_defined
19234 #define _INT8_T
19235 #define _INT16_T
19236 #define _INT32_T
19237 #endif
19238 #ifdef __uint32_t_defined
19239 #define _UINT32_T
19240 #endif
19241
19242EOF
19243
19244# ----------------- done header, emit basic int types -------------
19245if test "$acx_cv_header_stdint" = stddef.h; then
19246 sed 's/^ *//' >> tmp-stdint.h <<EOF
19247
19248 #ifndef _UINT8_T
19249 #define _UINT8_T
542f9784 19250 #ifndef __uint8_t_defined
19251 #define __uint8_t_defined
9ad2e3f3 19252 #ifndef uint8_t
01473a49 19253 typedef unsigned $acx_cv_type_int8_t uint8_t;
19254 #endif
542f9784 19255 #endif
9ad2e3f3 19256 #endif
01473a49 19257
19258 #ifndef _UINT16_T
19259 #define _UINT16_T
542f9784 19260 #ifndef __uint16_t_defined
19261 #define __uint16_t_defined
9ad2e3f3 19262 #ifndef uint16_t
01473a49 19263 typedef unsigned $acx_cv_type_int16_t uint16_t;
19264 #endif
542f9784 19265 #endif
9ad2e3f3 19266 #endif
01473a49 19267
19268 #ifndef _UINT32_T
19269 #define _UINT32_T
542f9784 19270 #ifndef __uint32_t_defined
19271 #define __uint32_t_defined
9ad2e3f3 19272 #ifndef uint32_t
01473a49 19273 typedef unsigned $acx_cv_type_int32_t uint32_t;
19274 #endif
542f9784 19275 #endif
9ad2e3f3 19276 #endif
01473a49 19277
19278 #ifndef _INT8_T
19279 #define _INT8_T
542f9784 19280 #ifndef __int8_t_defined
19281 #define __int8_t_defined
9ad2e3f3 19282 #ifndef int8_t
01473a49 19283 typedef $acx_cv_type_int8_t int8_t;
19284 #endif
542f9784 19285 #endif
9ad2e3f3 19286 #endif
01473a49 19287
19288 #ifndef _INT16_T
19289 #define _INT16_T
542f9784 19290 #ifndef __int16_t_defined
19291 #define __int16_t_defined
9ad2e3f3 19292 #ifndef int16_t
01473a49 19293 typedef $acx_cv_type_int16_t int16_t;
19294 #endif
542f9784 19295 #endif
9ad2e3f3 19296 #endif
01473a49 19297
19298 #ifndef _INT32_T
19299 #define _INT32_T
542f9784 19300 #ifndef __int32_t_defined
19301 #define __int32_t_defined
9ad2e3f3 19302 #ifndef int32_t
01473a49 19303 typedef $acx_cv_type_int32_t int32_t;
19304 #endif
542f9784 19305 #endif
9ad2e3f3 19306 #endif
01473a49 19307EOF
19308elif test "$ac_cv_type_u_int32_t" = yes; then
19309 sed 's/^ *//' >> tmp-stdint.h <<EOF
19310
19311 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19312 #ifndef _INT8_T
19313 #define _INT8_T
19314 #endif
19315 #ifndef _INT16_T
19316 #define _INT16_T
19317 #endif
19318 #ifndef _INT32_T
19319 #define _INT32_T
19320 #endif
19321
19322 #ifndef _UINT8_T
19323 #define _UINT8_T
542f9784 19324 #ifndef __uint8_t_defined
19325 #define __uint8_t_defined
9ad2e3f3 19326 #ifndef uint8_t
01473a49 19327 typedef u_int8_t uint8_t;
19328 #endif
542f9784 19329 #endif
9ad2e3f3 19330 #endif
01473a49 19331
19332 #ifndef _UINT16_T
19333 #define _UINT16_T
542f9784 19334 #ifndef __uint16_t_defined
19335 #define __uint16_t_defined
9ad2e3f3 19336 #ifndef uint16_t
01473a49 19337 typedef u_int16_t uint16_t;
19338 #endif
542f9784 19339 #endif
9ad2e3f3 19340 #endif
01473a49 19341
19342 #ifndef _UINT32_T
19343 #define _UINT32_T
542f9784 19344 #ifndef __uint32_t_defined
19345 #define __uint32_t_defined
9ad2e3f3 19346 #ifndef uint32_t
01473a49 19347 typedef u_int32_t uint32_t;
19348 #endif
542f9784 19349 #endif
9ad2e3f3 19350 #endif
01473a49 19351EOF
19352else
19353 sed 's/^ *//' >> tmp-stdint.h <<EOF
19354
19355 /* Some systems have guard macros to prevent redefinitions, define them. */
19356 #ifndef _INT8_T
19357 #define _INT8_T
19358 #endif
19359 #ifndef _INT16_T
19360 #define _INT16_T
19361 #endif
19362 #ifndef _INT32_T
19363 #define _INT32_T
19364 #endif
19365 #ifndef _UINT8_T
19366 #define _UINT8_T
19367 #endif
19368 #ifndef _UINT16_T
19369 #define _UINT16_T
19370 #endif
19371 #ifndef _UINT32_T
19372 #define _UINT32_T
19373 #endif
19374EOF
19375fi
19376
19377# ------------- done basic int types, emit int64_t types ------------
19378if test "$ac_cv_type_uint64_t" = yes; then
19379 sed 's/^ *//' >> tmp-stdint.h <<EOF
19380
19381 /* system headers have good uint64_t and int64_t */
19382 #ifndef _INT64_T
19383 #define _INT64_T
19384 #endif
19385 #ifndef _UINT64_T
19386 #define _UINT64_T
19387 #endif
19388EOF
19389elif test "$ac_cv_type_u_int64_t" = yes; then
19390 sed 's/^ *//' >> tmp-stdint.h <<EOF
19391
19392 /* system headers have an u_int64_t (and int64_t) */
19393 #ifndef _INT64_T
19394 #define _INT64_T
19395 #endif
19396 #ifndef _UINT64_T
19397 #define _UINT64_T
542f9784 19398 #ifndef __uint64_t_defined
19399 #define __uint64_t_defined
9ad2e3f3 19400 #ifndef uint64_t
01473a49 19401 typedef u_int64_t uint64_t;
19402 #endif
542f9784 19403 #endif
9ad2e3f3 19404 #endif
01473a49 19405EOF
19406elif test -n "$acx_cv_type_int64_t"; then
19407 sed 's/^ *//' >> tmp-stdint.h <<EOF
19408
19409 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19410 #ifndef _INT64_T
19411 #define _INT64_T
9ad2e3f3 19412 #ifndef int64_t
01473a49 19413 typedef $acx_cv_type_int64_t int64_t;
19414 #endif
9ad2e3f3 19415 #endif
01473a49 19416 #ifndef _UINT64_T
19417 #define _UINT64_T
542f9784 19418 #ifndef __uint64_t_defined
19419 #define __uint64_t_defined
9ad2e3f3 19420 #ifndef uint64_t
01473a49 19421 typedef unsigned $acx_cv_type_int64_t uint64_t;
19422 #endif
542f9784 19423 #endif
9ad2e3f3 19424 #endif
01473a49 19425EOF
19426else
19427 sed 's/^ *//' >> tmp-stdint.h <<EOF
19428
19429 /* some common heuristics for int64_t, using compiler-specific tests */
19430 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19431 #ifndef _INT64_T
19432 #define _INT64_T
542f9784 19433 #ifndef __int64_t_defined
9ad2e3f3 19434 #ifndef int64_t
01473a49 19435 typedef long long int64_t;
19436 #endif
542f9784 19437 #endif
9ad2e3f3 19438 #endif
01473a49 19439 #ifndef _UINT64_T
19440 #define _UINT64_T
9ad2e3f3 19441 #ifndef uint64_t
01473a49 19442 typedef unsigned long long uint64_t;
19443 #endif
9ad2e3f3 19444 #endif
01473a49 19445
19446 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19447 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19448 does not implement __extension__. But that compiler doesn't define
19449 __GNUC_MINOR__. */
19450 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19451 # define __extension__
19452 # endif
19453
19454 # ifndef _INT64_T
19455 # define _INT64_T
9ad2e3f3 19456 # ifndef int64_t
01473a49 19457 __extension__ typedef long long int64_t;
19458 # endif
9ad2e3f3 19459 # endif
01473a49 19460 # ifndef _UINT64_T
19461 # define _UINT64_T
9ad2e3f3 19462 # ifndef uint64_t
01473a49 19463 __extension__ typedef unsigned long long uint64_t;
19464 # endif
9ad2e3f3 19465 # endif
01473a49 19466
19467 #elif !defined __STRICT_ANSI__
19468 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19469
19470 # ifndef _INT64_T
19471 # define _INT64_T
9ad2e3f3 19472 # ifndef int64_t
01473a49 19473 typedef __int64 int64_t;
19474 # endif
9ad2e3f3 19475 # endif
01473a49 19476 # ifndef _UINT64_T
19477 # define _UINT64_T
9ad2e3f3 19478 # ifndef uint64_t
01473a49 19479 typedef unsigned __int64 uint64_t;
19480 # endif
9ad2e3f3 19481 # endif
01473a49 19482 # endif /* compiler */
19483
19484 #endif /* ANSI version */
19485EOF
19486fi
19487
19488# ------------- done int64_t types, emit intptr types ------------
19489if test "$ac_cv_type_uintptr_t" != yes; then
19490 sed 's/^ *//' >> tmp-stdint.h <<EOF
19491
19492 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
542f9784 19493 #ifndef __uintptr_t_defined
9ad2e3f3 19494 #ifndef uintptr_t
01473a49 19495 typedef u$acx_cv_type_intptr_t uintptr_t;
542f9784 19496 #endif
9ad2e3f3 19497 #endif
542f9784 19498 #ifndef __intptr_t_defined
9ad2e3f3 19499 #ifndef intptr_t
01473a49 19500 typedef $acx_cv_type_intptr_t intptr_t;
542f9784 19501 #endif
9ad2e3f3 19502 #endif
01473a49 19503EOF
19504fi
19505
19506# ------------- done intptr types, emit int_least types ------------
19507if test "$ac_cv_type_int_least32_t" != yes; then
19508 sed 's/^ *//' >> tmp-stdint.h <<EOF
19509
19510 /* Define int_least types */
19511 typedef int8_t int_least8_t;
19512 typedef int16_t int_least16_t;
19513 typedef int32_t int_least32_t;
19514 #ifdef _INT64_T
19515 typedef int64_t int_least64_t;
19516 #endif
19517
19518 typedef uint8_t uint_least8_t;
19519 typedef uint16_t uint_least16_t;
19520 typedef uint32_t uint_least32_t;
19521 #ifdef _UINT64_T
19522 typedef uint64_t uint_least64_t;
19523 #endif
19524EOF
19525fi
19526
19527# ------------- done intptr types, emit int_fast types ------------
19528if test "$ac_cv_type_int_fast32_t" != yes; then
19529 sed 's/^ *//' >> tmp-stdint.h <<EOF
19530
19531 /* Define int_fast types. short is often slow */
19532 typedef int8_t int_fast8_t;
19533 typedef int int_fast16_t;
19534 typedef int32_t int_fast32_t;
19535 #ifdef _INT64_T
19536 typedef int64_t int_fast64_t;
19537 #endif
19538
19539 typedef uint8_t uint_fast8_t;
19540 typedef unsigned int uint_fast16_t;
19541 typedef uint32_t uint_fast32_t;
19542 #ifdef _UINT64_T
19543 typedef uint64_t uint_fast64_t;
19544 #endif
19545EOF
19546fi
19547
19548if test "$ac_cv_type_uintmax_t" != yes; then
19549 sed 's/^ *//' >> tmp-stdint.h <<EOF
19550
19551 /* Define intmax based on what we found */
9ad2e3f3 19552 #ifndef intmax_t
01473a49 19553 #ifdef _INT64_T
19554 typedef int64_t intmax_t;
19555 #else
19556 typedef long intmax_t;
19557 #endif
9ad2e3f3 19558 #endif
19559 #ifndef uintmax_t
01473a49 19560 #ifdef _UINT64_T
19561 typedef uint64_t uintmax_t;
19562 #else
19563 typedef unsigned long uintmax_t;
19564 #endif
9ad2e3f3 19565 #endif
01473a49 19566EOF
19567fi
19568
19569sed 's/^ *//' >> tmp-stdint.h <<EOF
19570
19571 #endif /* GCC_GENERATED_STDINT_H */
19572EOF
19573
19574if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19575 rm -f tmp-stdint.h
19576else
19577 mv -f tmp-stdint.h gstdint.h
19578fi
19579
1e8e9920 19580 ;;
cd9a469c 19581
1e8e9920 19582 esac
cd9a469c 19583done # for ac_tag
1e8e9920 19584
1e8e9920 19585
cd9a469c 19586as_fn_exit 0
1e8e9920 19587_ACEOF
1e8e9920 19588ac_clean_files=$ac_clean_files_save
19589
cd9a469c 19590test $ac_write_fail = 0 ||
19591 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19592
1e8e9920 19593
19594# configure is writing to config.log, and then calls config.status.
19595# config.status does its own redirection, appending to config.log.
19596# Unfortunately, on DOS this fails, as config.log is still kept open
19597# by configure, so config.status won't be able to write to it; its
19598# output is simply discarded. So we exec the FD to /dev/null,
19599# effectively closing config.log, so it can be properly (re)opened and
19600# appended to by config.status. When coming back to configure, we
19601# need to make the FD available again.
19602if test "$no_create" != yes; then
19603 ac_cs_success=:
19604 ac_config_status_args=
19605 test "$silent" = yes &&
19606 ac_config_status_args="$ac_config_status_args --quiet"
19607 exec 5>/dev/null
19608 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19609 exec 5>>config.log
19610 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19611 # would make configure fail if this is the last instruction.
cd9a469c 19612 $ac_cs_success || as_fn_exit $?
19613fi
19614if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19616$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1e8e9920 19617fi
19618